updates rail: a human can cut ONE testing release of kind feature — a test aid so the ask-me-first review path is walked on a real community (the rail only ever cuts patch) #1973

Closed
opened 2026-09-28 22:26:57 +00:00 by ben · 2 comments
Owner

Parent: #1562 — contract: ADR 0017 (the policy split), ADR 0068 (kind + signed notes), ADR 0248; rail built under #1578

Why (Ben, 2026-09-28)

Ben's order of proof: automated testing updates are proven on a kept community under the testing channel key FIRST; the production key and stable come after. This ticket is a test aid for that first step. It changes no rule about what a kind means.

What's true today (read on main @ be126a6b; Whakatōhea Demo read 2026-09-28)

  • The rail stamps every testing cut --kind patch (scripts/release-rail/publish.sh:172). release-publish.yml declares workflow_dispatch: {} — no inputs.
  • Whakatōhea Demo's history holds 63 releases: 27 applied, 36 superseded, all patch. Its policy is security/patch apply-automatically, feature/major ask-me-first.
  • So the ask-me-first half of the Updates surface — a release waiting as pending, the review sheet (U2), Approve, applied at the next window — has never met a real signed release on a real community. #1815 (the review sheet crashed on a real release's null services/nodes) was found by reading a parked patch, not by walking the path.

What to build

A way for a human to cut ONE testing release of kind feature or major, so the review path can be walked on the demo.

  • publish.sh publish takes the kind from its environment (RELEASE_KIND, default patch). It accepts patch, feature, major. It refuses security and any other value before building anything — a security kind is a human's call made only at promote (ADR 0068, #1578).
  • The scheduled run never sets it: the cron keeps cutting patch, byte-for-byte as today.
  • A hand door sets it. Proposed default (two-way door, ADR 0174 — rule otherwise and say so): a kind choice input on workflow_dispatch.
  • Mind the race. A cut needs a fleet-affecting tip the rail has not published, and one revision is published once (immutable version, sequence must advance). The 10-minute cron will cut a fresh tip as patch if it fires before the hand dispatch. The build must make the hand cut winnable without luck — e.g. the kind rides the tip commit as a trailer the rail reads, or the dispatch is documented with a hold. A dispatch naming a kind for a tip that is already published refuses in plain words; it never re-cuts.
  • scripts/release-rail/README.md gains the ritual: how to cut a feature release for a review test, and what the next patch cut does to it (below).

Known limit — accepted for this ticket

Every testing cut is main's tip. A later patch cut contains the feature release's code and applies by itself, so a waiting feature release is overtaken by the next commit to main. For this test that is accepted: keep main's fleet-software set quiet between the feature cut and the Approve. Whether feature should hold later cuts is a separate ruling (#1974) and is out of scope here.

Why session

The proposed default edits .forgejo/workflows/release-publish.yml, a protected path a swarm worker may not touch (#445).

Acceptance

Offline (scripts/tests/release-rail-test.sh):

  • Given no RELEASE_KIND, Then the cut is patch and the existing 36 checks stay green
  • Given RELEASE_KIND=feature (and major), Then the signed manifest's kind is that kind
  • Given RELEASE_KIND=security or an unknown value, Then the rail refuses before building and exits non-zero
  • Given a kind named for a tip that is already published, Then the rail refuses and publishes nothing
  • The scheduled path cannot be made to cut anything but patch

Live (Ben's eyes, after this lands — routed to #1562, not a condition of closing this ticket):

  • A feature release cut on testing appears on Whakatōhea Demo as pending the steward's decision, the review sheet shows its signed notes, Approve queues it, and it applies inside the 11:00–13:00 UTC window
## Parent: #1562 — contract: ADR 0017 (the policy split), ADR 0068 (kind + signed notes), ADR 0248; rail built under #1578 ## Why (Ben, 2026-09-28) Ben's order of proof: automated `testing` updates are proven on a kept community under the `testing` channel key FIRST; the production key and `stable` come after. This ticket is a **test aid** for that first step. It changes no rule about what a kind means. ## What's true today (read on `main` @ `be126a6b`; Whakatōhea Demo read 2026-09-28) - The rail stamps every `testing` cut `--kind patch` (`scripts/release-rail/publish.sh:172`). `release-publish.yml` declares `workflow_dispatch: {}` — no inputs. - Whakatōhea Demo's history holds 63 releases: 27 applied, 36 superseded, **all `patch`**. Its policy is security/patch `apply-automatically`, feature/major `ask-me-first`. - So the ask-me-first half of the Updates surface — a release waiting as pending, the review sheet (U2), Approve, applied at the next window — has never met a real signed release on a real community. #1815 (the review sheet crashed on a real release's null `services`/`nodes`) was found by reading a parked patch, not by walking the path. ## What to build A way for a human to cut ONE `testing` release of kind `feature` or `major`, so the review path can be walked on the demo. - `publish.sh publish` takes the kind from its environment (`RELEASE_KIND`, default `patch`). It accepts `patch`, `feature`, `major`. It **refuses `security`** and any other value before building anything — a `security` kind is a human's call made only at promote (ADR 0068, #1578). - The scheduled run never sets it: the cron keeps cutting `patch`, byte-for-byte as today. - A hand door sets it. Proposed default (two-way door, ADR 0174 — rule otherwise and say so): a `kind` choice input on `workflow_dispatch`. - **Mind the race.** A cut needs a fleet-affecting tip the rail has not published, and one revision is published once (immutable version, sequence must advance). The 10-minute cron will cut a fresh tip as `patch` if it fires before the hand dispatch. The build must make the hand cut winnable without luck — e.g. the kind rides the tip commit as a trailer the rail reads, or the dispatch is documented with a hold. A dispatch naming a kind for a tip that is already published refuses in plain words; it never re-cuts. - `scripts/release-rail/README.md` gains the ritual: how to cut a feature release for a review test, and what the next patch cut does to it (below). ## Known limit — accepted for this ticket Every `testing` cut is main's tip. A later `patch` cut contains the feature release's code and applies by itself, so a waiting feature release is overtaken by the next commit to main. For this test that is accepted: keep main's fleet-software set quiet between the feature cut and the Approve. Whether `feature` should hold later cuts is a separate ruling (#1974) and is **out of scope here**. ## Why session The proposed default edits `.forgejo/workflows/release-publish.yml`, a protected path a swarm worker may not touch (#445). ## Acceptance Offline (`scripts/tests/release-rail-test.sh`): - [ ] Given no `RELEASE_KIND`, Then the cut is `patch` and the existing 36 checks stay green - [ ] Given `RELEASE_KIND=feature` (and `major`), Then the signed manifest's kind is that kind - [ ] Given `RELEASE_KIND=security` or an unknown value, Then the rail refuses before building and exits non-zero - [ ] Given a kind named for a tip that is already published, Then the rail refuses and publishes nothing - [ ] The scheduled path cannot be made to cut anything but `patch` Live (Ben's eyes, after this lands — routed to #1562, not a condition of closing this ticket): - [ ] A `feature` release cut on `testing` appears on Whakatōhea Demo as pending the steward's decision, the review sheet shows its signed notes, Approve queues it, and it applies inside the 11:00–13:00 UTC window
ben self-assigned this 2026-09-28 22:41:35 +00:00

Close-report — landed on main @ c2f27b41, offline-proven (ADR 0174, two-way).

A human can now hand-cut ONE testing release of kind feature/major; the scheduled rail still only ever cuts patch. No rule about what a kind means changed — this is the test aid for the first ask-me-first proof (routed to parent #1562).

What landed

  • publish.sh publish reads the cut kind from RELEASE_KIND (default patch) via a new pure oc_release_cut_kind in scripts/lib/release-rail-lib.sh. patch/feature/major are cuttable; security and any unknown value are refused before building (a security kind is a human call made only at promote, ADR 0068). The release_cut call now passes --kind "$kind" (was hardcoded --kind patch).
  • The scheduled cron never sets RELEASE_KIND, so it cuts patch byte-for-byte as before. A hand door sets it: a kind choice input on release-publish.yml's workflow_dispatch (patch/feature/major — never security), bound to RELEASE_KIND: ${{ github.event.inputs.kind }}, which is empty on every schedule tick.
  • The race: one revision is published once (immutable version, sequence must advance — #1579/#1971). A dispatch naming a kind for a tip that is already published (e.g. the 10-min cron cut it as patch first) refuses in plain words and cuts nothing — it never re-cuts. Winnable ritual: land the fleet-affecting tip, keep main quiet, dispatch; if the cron beat you, push a fresh tip and dispatch again.
  • README.md gained the ritual + the accepted overtake note (a later patch cut overtakes a waiting feature; whether feature should hold later cuts is #1974, out of scope).
  • STATUS.md milestone prepended.

Proof — scripts/tests/release-rail-test.sh (111 checks, was 83, all green under nix/go):

  • oc_release_cut_kind: no-value/empty/patch → patch; feature/major echo unchanged; security and unknown refuse (rc≠0, echo nothing).
  • The signed manifest carries the cut kind — release-cut cut with --kind patch|feature|major, manifest .kind asserted (AC: RELEASE_KIND=feature/major → manifest kind is that kind).
  • publish.sh refuses RELEASE_KIND=security and an unknown value before building (never logs "building"; names security) → non-zero (AC: security/unknown refuse before building, exit non-zero).
  • publish.sh refuses a non-patch kind for an already-published tip (empty range) and publishes nothing, while the patch path on the same tip stays exit-0 "nothing to publish" (AC: a kind named for an already-published tip refuses, publishes nothing).
  • The workflow binds RELEASE_KIND to the dispatch input alone (empty on schedule → patch), the input is a choice, offers feature/major, and does not offer security (AC: the scheduled path cannot be made to cut anything but patch; AC: no RELEASE_KIND → patch, existing checks stay green).

All five offline acceptance boxes are covered and green.

Owed (not a condition of closing — routed to #1562, Ben's eyes): cutting a real feature on testing and walking the U2 review sheet → Approve → applied inside the 11:00–13:00 UTC window on Whakatōhea Demo.

Ruled by agent under ADR 0174 — two-way (revertible script/workflow/docs, proven by the offline seam) — veto anytime.

**Close-report — landed on `main` @ `c2f27b41`, offline-proven (ADR 0174, two-way).** A human can now hand-cut ONE `testing` release of kind `feature`/`major`; the scheduled rail still only ever cuts `patch`. No rule about what a kind means changed — this is the test aid for the first ask-me-first proof (routed to parent #1562). **What landed** - `publish.sh publish` reads the cut kind from `RELEASE_KIND` (default `patch`) via a new pure `oc_release_cut_kind` in `scripts/lib/release-rail-lib.sh`. `patch`/`feature`/`major` are cuttable; `security` and any unknown value are **refused before building** (a security kind is a human call made only at `promote`, ADR 0068). The `release_cut` call now passes `--kind "$kind"` (was hardcoded `--kind patch`). - The scheduled cron never sets `RELEASE_KIND`, so it cuts `patch` byte-for-byte as before. A hand door sets it: a `kind` **choice** input on `release-publish.yml`'s `workflow_dispatch` (`patch`/`feature`/`major` — never `security`), bound to `RELEASE_KIND: ${{ github.event.inputs.kind }}`, which is empty on every schedule tick. - **The race:** one revision is published once (immutable version, sequence must advance — #1579/#1971). A dispatch naming a kind for a tip that is **already published** (e.g. the 10-min cron cut it as `patch` first) refuses in plain words and cuts nothing — it never re-cuts. Winnable ritual: land the fleet-affecting tip, keep `main` quiet, dispatch; if the cron beat you, push a fresh tip and dispatch again. - `README.md` gained the ritual + the accepted overtake note (a later `patch` cut overtakes a waiting `feature`; whether `feature` should hold later cuts is #1974, out of scope). - `STATUS.md` milestone prepended. **Proof — `scripts/tests/release-rail-test.sh` (111 checks, was 83, all green under `nix`/`go`):** - `oc_release_cut_kind`: no-value/empty/`patch` → `patch`; `feature`/`major` echo unchanged; `security` and unknown refuse (rc≠0, echo nothing). - The signed manifest carries the cut kind — `release-cut` cut with `--kind patch|feature|major`, manifest `.kind` asserted (**AC: `RELEASE_KIND=feature`/`major` → manifest kind is that kind**). - `publish.sh` refuses `RELEASE_KIND=security` and an unknown value **before building** (never logs "building"; names security) → non-zero (**AC: security/unknown refuse before building, exit non-zero**). - `publish.sh` refuses a non-patch kind for an already-published tip (empty range) and publishes nothing, while the `patch` path on the same tip stays exit-0 "nothing to publish" (**AC: a kind named for an already-published tip refuses, publishes nothing**). - The workflow binds `RELEASE_KIND` to the dispatch input alone (empty on schedule → `patch`), the input is a `choice`, offers `feature`/`major`, and **does not** offer `security` (**AC: the scheduled path cannot be made to cut anything but `patch`**; **AC: no `RELEASE_KIND` → `patch`, existing checks stay green**). All five offline acceptance boxes are covered and green. **Owed (not a condition of closing — routed to #1562, Ben's eyes):** cutting a real `feature` on `testing` and walking the U2 review sheet → Approve → applied inside the 11:00–13:00 UTC window on Whakatōhea Demo. Ruled by agent under ADR 0174 — two-way (revertible script/workflow/docs, proven by the offline seam) — veto anytime.
matou-build-agent 2026-09-28 22:42:59 +00:00
ben removed their assignment 2026-09-28 22:45:30 +00:00
Author
Owner

A laptop session briefly claimed this ticket at ~22:36Z (assigned ben, swapped ready-for-session for no-triage) without seeing the session-runner claim from bens-mac-04 at 22:33Z. Labels and assignee are restored to what the runner left. The runner builds; the laptop session stands down and reviews the landing (Ben, 2026-09-28).

A laptop session briefly claimed this ticket at ~22:36Z (assigned `ben`, swapped `ready-for-session` for `no-triage`) without seeing the session-runner claim from bens-mac-04 at 22:33Z. Labels and assignee are restored to what the runner left. The runner builds; the laptop session stands down and reviews the landing (Ben, 2026-09-28).
Sign in to join this conversation.
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Matou/idss#1973
No description provided.