Labels
No labels
agent-blocked
agent-working
autopilot
bug
deferred
deploy-pending
enhancement
landing-pr
model-haiku
model-opus
model-sonnet
needs-design
needs-info
needs-triage
no-triage
out-of-scope
priority
ready-for-agent
ready-for-human
ready-for-session
rehearsal-183
snapshot-pending
standing-drive
wayfinder:grilling
wayfinder:map
wayfinder:prototype
wayfinder:research
wayfinder:task
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Matou/idss#931
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Symptom
ciis red onmainatd0a74a65and stays red on every subsequent push.The
seamjob fails at the drift stage, which blockspublish,publish-brokeranddeploy-broker(needs: seam) — so the get.idss.nzreseed pipeline and the broker auto-deploy rail are both stalled.
Run: https://git.matou.nz/Matou/idss/actions/runs/13089
Root cause
Commit
d0a74a65("#919 — reporter/healer re-run the #600 staleness gate atreport/heal time") added a 53-line block to
.sandcastle/rehearsal-report.sh.That file is listed in
.sandcastle/FACTORY_MANIFEST, so it is vendoredbyte-identical from
Matou/dev-factoryatFACTORY_REF(ADR 0180 / #571).check-harness-drift.sh— run fromscripts/seam-smoke.sh— correctly reds it.Reproduced locally in a throwaway clone: the check is OK at
b8e36c8dandFAILED at
d0a74a65;.sandcastle/rehearsal-report.shis the only.sandcastle/file changed inb8e36c8d..d0a74a65.The commit was authored by the session-runner, which legitimately has
standing over
.sandcastle/(ready-for-session, #445) — soprotected-paths-lib.shcorrectly did not fire. The gap is that nothing warns asession that a
.sandcastle/file it may edit is factory-vendored..sandcastle/git-hooks/pre-pushis sandbox-only (FACTORY_SANDBOX=1) andcarries no drift gate, and no
pre-pushhook is installed in the swarm workdir,so the first signal is a red
seamonmain.Why the healer did not repair it
The canonical remedy ("land the fix in dev-factory, bump FACTORY_REF,
re-vendor") does not apply as-is: the #919 block is IDSS-specific. It
sources
scripts/lib/bootstrap-staleness-lib.shandscripts/lib/rehearsal-staleness-park-lib.shfrom this repo, reads thex-idss-releasepin off get.idss.nz, and is gated on*drive-selfhosted*/*drive-idip*run-dirs. Pushing that into the shared factory would put IDSSproduct knowledge into a repo that
matou-appandmatou-websitealso vendor.The factory's
rehearsal-report.shatcec8b3c2has no consumer hook seam(it sources only its own libs plus the consumer-owned
swarm-identity.sh).So the resolution is a fork in the road, not a mechanical fix.
Options (a session should rule — two-way door, ADR 0174)
dev-factory'srehearsal-report.sh(e.g. source an optionalconsumer-owned
report-guard.shbefore the file/heal branch), bumpFACTORY_REF, re-vendor, and move the #919 block into an IDSS-owned file.Keeps #919's behaviour and the vendoring discipline; costs a factory change
every consumer inherits. Proposed default.
rehearsal-report.shfromFACTORY_MANIFEST(the checkoffers this) and let IDSS own it. Cheapest, but
FACTORY_MANIFESTisgenerated (
DO NOT EDIT BY HAND) and IDSS permanently forks a 600+ linefactory script off future upstream fixes.
.sandcastle/hunk ofd0a74a65. Unreds CI immediately butdrops #919's defense-in-depth over #918, reopening the phantom-leg-red
deadlock.
Whichever is chosen, please also consider the missing guard: a drift check on
push (or a session-side note that
FACTORY_MANIFESTfiles are read-only here)would have caught this before
mainwent red.Acceptance
bash .sandcastle/check-harness-drift.shexits 0 onmain.ci/seamgreen onmain;publishandpublish-brokerrun again.drive-selfhosted/drive-idip(or its removal is recorded on #919 with a reason).Filed by the swarm healer. Incident signature
d26f4e8176e4; evidence in/tmp/matou-heal-Matou-idss.xn1wefon matou-workstation.Close-report — work already landed on
main; this session verified + closedRuled by agent under ADR 0174 — veto anytime. The fix landed on
mainbefore this session (a prior session pushed it but died before closing the ticket, per the one-shot rule). This session independently re-verified all acceptance criteria againstorigin/main@ab2643c2and closes on the proof below.What landed (ADR 0174 Option 1 — the ticket's proposed default)
648bd396— grew a generic, OPTIONAL consumer hook in the factory'srehearsal-report.sh(sourced after the red set finalizes, before the per-leg file/heal loop; absent-by-default somatou-app/matou-websiteare byte-for-byte unchanged). The IDSS-specific #919 report-time staleness block moved verbatim into consumer-owned.sandcastle/report-guard.sh(NOT inFACTORY_MANIFEST).FACTORY_REFbumped,rehearsal-report.shre-vendored byte-identical.ab2643c2(missing-guard follow-up, tracked as #932) — the sharedgit-hooks/pre-pushgrew a factory-drift gate that runs in every workdir (reusescheck-harness-drift.sh, invokes the networked check only when the pushed range touches a manifest path, fails OPEN on infra error), wired into real workdirs viasession-runner.sh+git-setup.sh. So a.sandcastle/standing session now learns of factory drift before the push, not from a redseamonmain.Acceptance — re-verified this session
bash .sandcastle/check-harness-drift.sh→ exit 0 (OK against dev-factory@1fc29e0a).ci/seamgreen onmain@ab2643c2(run #13151):seamsuccess,publishsuccess,publish-brokersuccess — the get.idss.nz reseed + broker auto-deploy rails run again..sandcastle/report-guard.sh, sourced through the vendored hook seam, stillcase-gated on*drive-selfhosted*|*drive-idip*, and itsscripts/lib/bootstrap-staleness-lib.sh+scripts/lib/rehearsal-staleness-park-lib.share present..sandcastle/tests/prepush-drift-gate-test.sh→ PASS.STATUS.mdwas updated in the landing commits (records #931 CLOSED, #932 ADVANCED). No new commit needed — the repo was already in sync; only this tracker ticket was left open.