OSS-first docs
These docs teach the open system first: contracts, generated surfaces, runtimes, governance, and incremental adoption. Studio shows up as the operating layer on top, not as the source of truth.
Create a new team space.
Goal
Organize teams/projects.
Context
Workspace creation.
Source Definition
import { defineCommand } from '@lssm-tech/lib.contracts-spec';
import { CreateSpaceInputModel, SpaceModel } from './space.schema';
export const CreateSpaceContract = defineCommand({
meta: {
key: 'team.space.create',
version: '1.0.0',
stability: 'stable',
owners: ['@examples.team-hub'],
tags: ['team-hub', 'space', 'create'],
description: 'Create a new team space.',
goal: 'Organize teams/projects.',
context: 'Workspace creation.',
},
io: {
input: CreateSpaceInputModel,
output: SpaceModel,
},
policy: { auth: 'user' },
acceptance: {
scenarios: [
{
key: 'create-space-happy-path',
given: ['User is authenticated'],
when: ['User creates a new space'],
then: ['Space is created'],
},
],
examples: [
{
key: 'create-engineering',
input: { name: 'Engineering', description: 'Engineering team space' },
output: { id: 'space-123', name: 'Engineering' },
},
],
},
});