Type to search pages and rules.

Use with Agents

Release Stage

Stack: anyConcern: operations

The release stage tells whether any deployment holds customer data yet, because several provisions assume a running service that the first builds do not have. This page states how a project declares its stage, which provisions the early stage defers and until when, and how a recorded decision ends the deferral. A project selects it while no deployment holds customer data, or afterwards to record a past move to production, so relaxed early provisions expire on a date instead of lingering by accident.

Markdown3 rules
On this page

Activation#

Activation scope: project.

Applicable specification kinds: None.

The project selects stage before its first deployment holds customer data, or afterwards to put a past promotion on record. The selection declares the current stage and bounds what the early stage defers.

Baseline Relationship#

This extension replaces no baseline provision. A pre-production consumer defers named provisions through this extension, while the compat extension still governs versioning once selected.

It switches on no record type: the promotion decision is a core record every project requires.

Standards#

Declare the Release Stage#

rulerequiredcheckable
litespec/ext/stage#declare-the-release-stage
Statement

A consumer MUST declare pre-production or production as its release stage in .litespec/project.yaml.

Applies toartifact: any

Why

The release stage is a project fact, not a departure from any rule, so it lives as data in the stage selection: releaseStage holds pre-production or production, while each deferral lives in its own departure record. Without the declared stage, tools and reviewers cannot tell which provisions the project owes today.

Example

A consumer with no customer data in any deployment declares the early stage.

YAML
selectedExtensions:
  - id: stage
    criterion: no deployment holds customer data
    releaseStage: pre-production
Checkchecked by a tool

Checked bylitespec model check reports project-invalid for a stage selection with a missing or unknown releaseStage.

Marked checkable: the tool named here checks it.

Defer Named Provisions Until Promotion#

rulerequiredcheckable
litespec/ext/stage#defer-named-provisions-until-promotion
Statement

A pre-production consumer MUST record each deferred provision as a departure expiring at promotion, with a production consumer carrying no deferred provision.

Applies toartifact: record:departure

Why

An early-stage deferral without a named end becomes permanent by neglect. Each departure names the deferred provision in covers with the date its deferral ends in expiresOn, and the promotion decision names the same provisions, so promotion closes every deferral at once.

Example

Each deferral is a departure covering its provision until promotion.

YAML
type: departure
id: departure/compat-classification-until-promotion
title: Compat Classification Until Promotion
covers:
  - litespec/ext/compat#classify-breaking-contract-changes
paths:
  - apps/api/**
reason: No consumer reads the contract before the first deployment.
exit: Promotion to production ends the deferral and the classification applies.
expiresOn: 2026-12-01
Checkchecked by a tool

Checked bylitespec model check refuses a deferral departure naming an unknown provision, and any deferral in production; litespec model check reports departure-expired for a departure past its expiresOn.

Marked checkable: the tool named here checks it.

Promote Through a Recorded Decision#

rulerequiredguidance
litespec/ext/stage#promote-through-a-recorded-decision
Statement

A consumer MUST record its promotion to production as a decision before its first deployment holds customer data, ending every deferred provision.

Applies toartifact: record:decision; when: project

Why

Promotion is the moment relaxed provisions end, and an unrecorded moment never arrives: the relaxed provisions last until somebody notices they never ended. The decision stands in git before the first deployment holds customer data, so the data sits under full rules from day one. The decision also covers the migration and cutover work that moves customer data into production.

Checka reviewer answers

Reviewed forWhich promotion decisions under .litespec/intent/decisions/ come after the first deployment holds customer data, or leave a deferred provision open? Look at the decision records beside the deferrals they end.

Marked guidance: a reviewer answers this question.

Conventions#

None.

Dependencies#

Packages: None.

Related extensions: None.

Guides: None.