Skip to content

docs(design): ws-104 the release model (#4028) - #4050

Merged
lex00 merged 2 commits into
mainfrom
docs/ws-104-release-model
Oct 17, 2026
Merged

lex00 merged 2 commits into
mainfrom
docs/ws-104-release-model

Conversation

@lex00

@lex00 lex00 commented Oct 17, 2026 •

Copy link
Copy Markdown
Contributor

Closes #4028

Adds docs/design/decisions/ws-104-the-release-model.md, the decision record for the release model of behold#678. Alex decided it on 2026-10-16, accepting each recommendation as drafted (state decided, choice a, b and c rejected).

The decision in short:

  1. Option (a): a release is one green commit of one member, compiled per environment. A flag change is a commit and gets a config-only release with the same artifact digests.
  2. A release gate binds releaseDigest (new), environment (existing) and the change-set document digest, stored in the existing planDigest as the pull-request gate already does.
  3. The release lives at _releases/<releaseDigest>.json; cuts append to _releases/cuts.jsonl. The digest hashes member, commit, artifact digests and each target's templates and param values; actor, time, label and signature stay out. The human name is label, because version is already the schema-version field. ReleaseRecord stays the deploy record and gains an optional releaseDigest. A promote moves the whole release by default. Additive to contract 1, with a floor table.
  4. A release belongs to one member; trains are workspace: workspace Ops, the workspace pipeline and release trains (after #1939) #2554 (parked with workspace: releases across several members, reconciled with the release train (#2554) #4037).
  5. From the code: templates are synthesized for one environment per run and no archive holds one per environment, so the cut compiles every declared environment and promote checks template digests.
  6. Flags ship with trunk (i). An environment whose change set is provably empty passes its gate without approval, recorded with empty: true.

Acceptance

Checks

node scripts/import-decisions.mjs --check (105 decision files, 0 problems), node scripts/lint-docs-sentences.mjs, node scripts/check-docs-diataxis.mjs, node scripts/lint-prompts.mjs: all pass. The decisions directory is outside the docs site, so no site build applies.

@lex00
lex00 merged commit 36e02c2 into main Oct 17, 2026
11 checks passed
@lex00
lex00 deleted the docs/ws-104-release-model branch October 17, 2026 00:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

decision: the release model (what a release covers, what a gate binds, names and contract version, member vs workspace)

1 participant