Skip to content

workspace: declare the promotion order of environments, used by promote, gates and the trunk lane #4030

Closed

Description

@lex00

Sub-issue of INTENTIUS/behold#678. Phase 0. From the #678 audit.

Context

components promote takes --from and --to each time, and behold guesses environment order from yodel-waves.json. The flow promotes a release environment by environment, so the order has to be declared once.

Environments are declared per member, in the environments array of the member's chant.config.ts, and per component through component.schema.json:64 (ws-095). Both are read by workspace/environments.ts. A release belongs to one member (#4028 question 4), so the member owns its promotion order.

Requirements

  1. The order of the member's environments array in chant.config.ts is its promotion order, with an optional canary per step. A component's environments entries (component.schema.json:64) say where its release is hosted in each environment; they don't set the order.
  2. components promote --to <env> defaults --from to the previous environment, and refuses a promotion that skips one unless asked.
  3. The order is in the read contract, so behold's lane reads it instead of guessing.

Acceptance

  • The ordering rule and canary field, with schema and docs.
  • Promote uses it, with a test that skipping an environment is refused.
  • The order appears in workspace status --json.

Activity

  1. added
    enhancement
    area:lifecycle
    area:workspace
    phase:0
    on Oct 16, 2026
  2. added a commit that references this issue on Oct 17, 2026
    374c014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:lifecyclearea:workspaceenhancementphase:0

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions