rehearsal: stage-staleness preflight gate — drive reds in seconds (not a droplet) when get.idss.nz lags an agent/bootstrap-touching commit #604

Closed
opened 2026-08-19 22:09:27 +00:00 by ben · 3 comments
Owner

Stage-staleness is now a structural hazard, not a one-off — tonight it has bitten three times (#595, #598's reseed, and drive 20260819T220305Z, which red at consent with #599's exact dial error because the drive fetched the pre-ec89a8c agent from get.idss.nz — the fix landed at 21:58, the stage was from 21:41).

Ask: the drive needs a stage-staleness preflight gate, mirroring phase 2's payload-staleness gate (4e16f16 precedent): before the journey starts, compare https://get.idss.nz's staged RELEASE sha against the drive checkout's HEAD for agent/bootstrap-affecting paths (agent/, bootstrap/, shared internal/ deps) and red loudly at preflight with a "re-stage required (Ben's ! — see runbook)" remedy, instead of burning a full droplet + drive to rediscover it at agent-install/consent. Optionally: the reporter recognises this preflight signature and does NOT file a code ticket for it — it is an ops action, not a defect.

Context: staging is classifier-gated to Ben's hands (sudo install + unit restart on the mail droplet), so the loop cannot self-heal it; the gate at least makes it cost seconds instead of a drive.

**Stage-staleness is now a structural hazard, not a one-off** — tonight it has bitten three times (#595, #598's reseed, and drive `20260819T220305Z`, which red at `consent` with #599's exact dial error because the drive fetched the pre-`ec89a8c` agent from get.idss.nz — the fix landed at 21:58, the stage was from 21:41). **Ask:** the drive needs a **stage-staleness preflight gate**, mirroring phase 2's payload-staleness gate (`4e16f16` precedent): before the journey starts, compare `https://get.idss.nz`'s staged RELEASE sha against the drive checkout's HEAD for agent/bootstrap-affecting paths (`agent/`, `bootstrap/`, shared `internal/` deps) and **red loudly at preflight** with a "re-stage required (Ben's `!` — see runbook)" remedy, instead of burning a full droplet + drive to rediscover it at `agent-install`/`consent`. Optionally: the reporter recognises this preflight signature and does NOT file a code ticket for it — it is an ops action, not a defect. Context: staging is classifier-gated to Ben's hands (`sudo install` + unit restart on the mail droplet), so the loop cannot self-heal it; the gate at least makes it cost seconds instead of a drive.

swarm-claim host=matou-dev-server-01 run=7859
(automated multi-host claim — lowest live claim id works this ticket)

swarm-claim host=matou-dev-server-01 run=7859 (automated multi-host claim — lowest live claim id works this ticket)
Author
Owner

Duplicate of #600 (filed by the loop minutes earlier, already agent-working) — closing in its favour. One extra suggestion carried over to #600 as a comment: the reporter should recognise the staleness-preflight signature as an ops action, not a code defect.

Duplicate of #600 (filed by the loop minutes earlier, already agent-working) — closing in its favour. One extra suggestion carried over to #600 as a comment: the reporter should recognise the staleness-preflight signature as an ops action, not a code defect.
ben closed this issue 2026-08-19 22:10:32 +00:00

close-report for #604 — status success

✅ close-report gates passed — every claim verified against main; closing.

envelope
{
  "issue": 604,
  "status": "success",
  "commits": [
    "f37fd88eaf2682bd01a80f46a44ac2edc12452c7"
  ],
  "changed_files": [
    "STATUS.md",
    "docs/GOTCHAS.md",
    "docs/operator-app/rehearsal-drive.md"
  ],
  "tests": [
    {
      "command": "bash scripts/tests/bootstrap-staleness-test.sh",
      "exit_code": 0
    }
  ],
  "criteria": {
    "stage-staleness preflight gate: compare get.idss.nz's served RELEASE sha against the checkout for agent/bootstrap-affecting paths and red loudly at preflight before the journey starts": "Delivered by the concurrently-merged #600 (bootstrap-staleness gate) — scripts/lib/bootstrap-staleness-lib.sh's oc_bootstrap_staleness HEADs get.idss.nz/get?arch=x86_64, reads x-ourcloud-release, and die_host's (exit 3) when the served pin is behind any agent/ go.mod go.sum internal/ commit up to origin/main, wired into scripts/smoke-private-path.sh's selfhosted preflight. #604 raced #600 across two hosts; a second parallel gate would be pure duplication (ADR 0174 two-way-door ruling to not reimplement the merged slice). Verified live: bootstrap-staleness-test.sh 8/8 green post-merge.",
    "remedy names a re-stage (Ben's ! — see runbook)": "docs/operator-app/rehearsal-drive.md now carries the exact re-stage recipe (build both binaries from origin/main, sudo install, write RELEASE, restart ourcloud-bootstrap.service) the bootstrap-stale: verdict points at; GOTCHAS #43 records the hazard Symptom->Cause->Rule per ADR 0160.",
    "optional: the reporter does NOT file a code ticket for this preflight signature (ops action, not a defect)": "Structurally met and documented: a preflight refusal is exit 3 with NO run directory, so rehearsal-cycle.sh's no-run-dir branch skips rehearsal-report.sh entirely — no code ticket is filed. Stated in GOTCHAS #43 and the runbook note."
  },
  "summary": "#604's stage-staleness gate was delivered by the concurrently-merged #600; #604 closed onto it by adding the operational paper trail #600 left implicit — GOTCHAS #43 and the runbook re-stage recipe.",
  "reason": "Not reimplementing a merged sibling slice (#600 shipped the equivalent gate first); the additive, non-duplicative deliverable is the hazard documentation and re-stage runbook recipe.",
  "blockers": []
}
**close-report** for #604 — status `success` :white_check_mark: **close-report gates passed** — every claim verified against main; closing. <details><summary>envelope</summary> ```json { "issue": 604, "status": "success", "commits": [ "f37fd88eaf2682bd01a80f46a44ac2edc12452c7" ], "changed_files": [ "STATUS.md", "docs/GOTCHAS.md", "docs/operator-app/rehearsal-drive.md" ], "tests": [ { "command": "bash scripts/tests/bootstrap-staleness-test.sh", "exit_code": 0 } ], "criteria": { "stage-staleness preflight gate: compare get.idss.nz's served RELEASE sha against the checkout for agent/bootstrap-affecting paths and red loudly at preflight before the journey starts": "Delivered by the concurrently-merged #600 (bootstrap-staleness gate) — scripts/lib/bootstrap-staleness-lib.sh's oc_bootstrap_staleness HEADs get.idss.nz/get?arch=x86_64, reads x-ourcloud-release, and die_host's (exit 3) when the served pin is behind any agent/ go.mod go.sum internal/ commit up to origin/main, wired into scripts/smoke-private-path.sh's selfhosted preflight. #604 raced #600 across two hosts; a second parallel gate would be pure duplication (ADR 0174 two-way-door ruling to not reimplement the merged slice). Verified live: bootstrap-staleness-test.sh 8/8 green post-merge.", "remedy names a re-stage (Ben's ! — see runbook)": "docs/operator-app/rehearsal-drive.md now carries the exact re-stage recipe (build both binaries from origin/main, sudo install, write RELEASE, restart ourcloud-bootstrap.service) the bootstrap-stale: verdict points at; GOTCHAS #43 records the hazard Symptom->Cause->Rule per ADR 0160.", "optional: the reporter does NOT file a code ticket for this preflight signature (ops action, not a defect)": "Structurally met and documented: a preflight refusal is exit 3 with NO run directory, so rehearsal-cycle.sh's no-run-dir branch skips rehearsal-report.sh entirely — no code ticket is filed. Stated in GOTCHAS #43 and the runbook note." }, "summary": "#604's stage-staleness gate was delivered by the concurrently-merged #600; #604 closed onto it by adding the operational paper trail #600 left implicit — GOTCHAS #43 and the runbook re-stage recipe.", "reason": "Not reimplementing a merged sibling slice (#600 shipped the equivalent gate first); the additive, non-duplicative deliverable is the hazard documentation and re-stage runbook recipe.", "blockers": [] } ``` </details>
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#604
No description provided.