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.

appConfig.lifecycle.createDraft

Creates a new draft tenant config version.

  • Type: operation (command)
  • Version: 1.0.0
  • Tags: app-config
  • File: packages/libs/contracts-spec/src/app-config/lifecycle-contracts.ts
  • Allow operators to start editing a new tenant config version.

    field.key.label
    appConfig.lifecycle.createDraft
    field.version.label
    1.0.0
    field.type.label
    operation (command)
    field.title.label
    appConfig.lifecycle.createDraft
    field.description.label

    Creates a new draft tenant config version.

  • Type: operation (command)
  • Version: 1.0.0
  • Tags: app-config
  • File: packages/libs/contracts-spec/src/app-config/lifecycle-contracts.ts
  • Allow operators to start editing a new tenant config version.

    field.tags.label
    app-config
    field.owners.label
    field.stability.label

    Creates a new draft tenant config version.

    Goal

    Allow operators to start editing a new tenant config version.

    Context

    Invoked by the Studio or automation when starting a new configuration run.

    Source Definition

    export const CreateTenantConfigDraftCommand = defineCommand({
    	meta: {
    		key: 'appConfig.lifecycle.createDraft',
    		version: '1.0.0',
    		description: 'Creates a new draft tenant config version.',
    		owners: [OwnersEnum.PlatformSigil],
    		tags: [TagsEnum.Hygiene, 'app-config'],
    		stability: StabilityEnum.Experimental,
    		goal: 'Allow operators to start editing a new tenant config version.',
    		context:
    			'Invoked by the Studio or automation when starting a new configuration run.',
    	},
    	io: {
    		input: CreateDraftInput,
    		output: CreateDraftOutput,
    	},
    	policy: LifecyclePolicy,
    	sideEffects: {
    		emits: [
    			{
    				ref: ConfigDraftCreatedEvent.meta,
    				when: 'after successful draft creation',
    			},
    		],
    	},
    });