GeezerVison is showing github.com — impl(deploy): the release verb — tag cutting, attestation, and the untagged-release refusal (#11177 implementation) · Issue #13306 · developing-today/code
impl(deploy): the release verb — tag cutting, attestation, and the untagged-release refusal (#11177 implementation) #13306Descriptionimpl(deploy): the release verb — tag cutting, attestation, and the untagged-release refusal (#11177 implementation)
Implements the release workflow designed in
doc/2026-11-23T13-09-25Z_design_release-workflow-per-app-tags/
(#11177, follow-on to #5790 §5). Until this lands, no per-app
release tags are cut — that is the design's recorded gate decision
(§7).
Scope
In pkgs/deploy/deploy.py (plus registry/tests as needed):
deploy release <app> [--version X.Y.Z] [--commit <sha>]
per design §2: refuse unless the commit is reachable from
origin/main, the attestation gate (§3 of the design) is green
for that exact commit, and the version obeys the ratified
discipline (short deploy-name prefix, first tag 0.1.0, 0.x
only, next minor/patch only). On success: create the annotated
app tag carrying the release-attestation:v1 block, create the
annotated repo/v<YYYYMMDD>.<minor>.<patch> tag at a release
point, push, and append the release record to the deploy
ledger.
- Attestation judging per design §3: the main-gate watched
set (.github/workflows/main-broken.yml, in sync with
.github/scripts/release-gate.sh) judged by the release-gate
rules for the exact commit, plus the app's own evidence
workflow when outside the watched set. Add the per-app
evidence-workflow field to the deploy registry (fleet:
fleet-rust-tests).
- The deploy-time refusal per design §6: a deploy claiming
release status (artifact self-reports a clean X.Y.Z) is
refused unless an attested <app>/vX.Y.Z tag exists at the
artifact's source commit with a verifiable attestation block.
Prerelease (-dev) deploys are unaffected.
deploy status reads the release ledger (design §4):
releases and their gate evidence beside the existing
per-target deployed-version report; a ledger/tag disagreement
is reported, with the tag winning.
- A pointer line in
pkgs/fleet/README.md's "Tag and release
procedure" naming the design record as the workflow of record.
Acceptance
Out of scope
Activitydeveloping-today commented on Nov 23, 2026 dezren39 commented on Nov 23, 2026
🤖 Lane claim — Lane XD (archer)
Taking #13306 (impl(deploy): the release verb — tag cutting, attestation, and the untagged-release refusal). Ownership check: issue has 1 comment (the kaneo bot link), no other claim; read with per_page=100 and count confirmed (1/1).
Premise verified on origin/main 619b7e56e6dc: the design record doc/2026-11-23T13-09-25Z_design_release-workflow-per-app-tags/ is on main, pkgs/deploy/deploy.py has no release/tag logic (verbs: deploy, rollback, status, list, restore), and no fleet/v* or repo/v* tag exists yet.
Plan: implement in one pass — (1) deploy release <app> [--version] [--commit] [--bump] with the §2 preconditions, §3 gate judging mirroring release-gate.sh's rules, §4 attestation block in the annotated tag + the §5 repo tag, push, ledger append; (2) the §6 deploy-time refusal in both activation paths; (3) evidenceWorkflow as an optional registry field, set to fleet-rust-tests on the fleet-backed definitions in services.nix; (4) release section in deploy status (ledger read, tag wins on disagreement); (5) the fleet README pointer line; (6) a new test suite covering the acceptance set (red-gate refusal, version-discipline refusal, untagged-release deploy refusal, successful release against a fixture remote with parseable attestation, ledger round-trip through status). The first real release cut (fleet/v0.1.0) follows the merge if the gate judges green at cutting time, recorded on #11177. dezren39 commented on Nov 23, 2026
Done record — Lane XD (archer), 2026-11-23. Implementation landed and verified; the issue stays open on one leg: the first real release, which is gate-gated (evidence below and on #11177).
Landed: PR #13329 merged, merge commit ed3ab902cf40f42069097ed6048a001f2e939a0e, head SHA-guarded at 8e882d539d50921f97b98963066c20b8398dfa79.
deploy release <app> [--version] [--commit] [--bump minor|patch] in pkgs/deploy/deploy.py: §2 preconditions (reachable from origin/main; discipline — first tag 0.1.0, 0.x only, next minor/patch only, duplicate checked before discipline so a re-cut says "already released"; unpublished local leftovers deleted on the precondition pass), §3 gate judging mirroring release-gate.sh (non-push ancestor rule live; push rules kept), §4 attestation block in the annotated tag + release ledger (releases.jsonl), §5 repo tag (repo/v<YYYYMMDD>.<minor>.<patch>; counter continues within a date, resets to a 0.0 base on a new date with the point's own increment applying — first feature point of a date is .1.0), push, ledger append. --dry-run judges and reports, cuts nothing.
- §6 deploy-time refusal in both activation paths (systemd + sandbox): an artifact self-reporting a clean X.Y.Z (its
Derived version: line) is refused unless an attested tag verifies at the artifact's source commit; the app a definition speaks for is its name or the app whose binary it runs, so the fleet services verify against fleet/vX.Y.Z. -dev artifacts unaffected.
- Registry: optional
evidenceWorkflow field, validated; fleet-rust-tests set on queue-broker + secrets-broker in services.nix (verified present in the built CLI's rendered registry JSON; nix build .#deploy green).
deploy status reads the ledger beside the per-target reports; tag wins on disagreement, disagreements reported. Fleet README procedure names the design record as the workflow of record.
Verification:
- New
pkgs/deploy/test_deploy_release.py: 17/17 (fixture git remote, faked gh) — red-gate refusal, missing-signal refusal, off-main refusal, version-discipline refusals, untagged-release deploy refusal + attested control, successful release with parseable attestation, ledger round-trip through status incl. tag-wins disagreement.
- All nine
pkgs/deploy suites pass on the laptop, and again in the remote dispatch at the PR head: fleet-command run 45185669528, conclusion success, all nine suites PASS (the laptop run is the route that verified the fixture-git tests first; the dispatch confirms them in the container).
Remaining leg: the first real release. Attempted with the merged verb at main ed3ab902cf40: refused by the gate — id run 45044837033 concluded cancelled, mcpx run 45018365692 concluded failure. Full record on #11177. When the watched set next runs green, deploy release fleet cuts fleet/v0.1.0 + the repo tag; record that cut on #11177 and this issue can close. dezren39 commented on Nov 24, 2026
MetadataMetadataDevelopmentNo branches or pull requestsIssue actions
|