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.promoteToPreview

Promotes a draft tenant config to preview/testing state.

  • Type: operation (command)
  • Version: 1.0.0
  • Tags: app-config
  • File: packages/libs/contracts-spec/src/app-config/lifecycle-contracts.ts
  • field.key.label
    appConfig.lifecycle.promoteToPreview
    field.version.label
    1.0.0
    field.type.label
    operation (command)
    field.title.label
    appConfig.lifecycle.promoteToPreview
    field.description.label

    Promotes a draft tenant config to preview/testing state.

  • Type: operation (command)
  • Version: 1.0.0
  • Tags: app-config
  • File: packages/libs/contracts-spec/src/app-config/lifecycle-contracts.ts
  • field.tags.label
    app-config
    field.owners.label
    field.stability.label

    Promotes a draft tenant config to preview/testing state.

    Goal

    Enable validation and testing of draft configurations.

    Context

    Called when a draft passes initial checks and should be exposed to preview environments.

    Source Definition

    export const PromoteTenantConfigToPreviewCommand = defineCommand({
    	meta: {
    		key: 'appConfig.lifecycle.promoteToPreview',
    		version: '1.0.0',
    		description: 'Promotes a draft tenant config to preview/testing state.',
    		owners: [OwnersEnum.PlatformSigil],
    		tags: [TagsEnum.Hygiene, 'app-config'],
    		stability: StabilityEnum.Experimental,
    		goal: 'Enable validation and testing of draft configurations.',
    		context:
    			'Called when a draft passes initial checks and should be exposed to preview environments.',
    	},
    	io: {
    		input: PromotePreviewInput,
    		output: PromotePreviewOutput,
    	},
    	policy: LifecyclePolicy,
    	sideEffects: {
    		emits: [
    			{
    				ref: ConfigPromotedToPreviewEvent.meta,
    				when: 'after promotion to preview',
    			},
    		],
    	},
    });