Bump .sandcastle/FACTORY_REF to carry dev-factory #107 (scheduler canary: workflow_id match, host-env source, unvendored-copy skip) #909
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#909
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?
Hand-off from dev-factory #107 (AC4). The scheduler-silence canary's first live tick on the workstation exposed three faults in the copy idss vendored via #891 (FACTORY_REF
8ea613a); dev-factory fixed them incec8b3conmain. idss's vendored copy carries the OLD behavior until its FACTORY_REF is bumped past that commit.What the fix carries
cimatch read the task's.name, but a task is named by its JOB — idss'sci.ymlsurfaces asname="seam",workflow_id="ci.yml"— soclaimedwas always 0 and everymainhead ≥ 45 min old raised a false UNGATED. Now matches.workflow_id == "ci.yml".backstop-tick.shruns from cron with a bare environment and sourced nothing, sonotify-mattermost.shhad noMATTERMOST_URL/_CHANNEL_ID/_BOT_TOKEN— the 15:15 UNGATED post never reached Mattermost, and the canary swallowed the "would have sent:" line too. The tick now sources the registryenvfile; the canary lets notify's stderr through.canary()ran.sandcastle/scheduler-canary.shunconditionally, erroringNo such fileon repos pinned before #105. Now prefers the vendored copy, falls back to the repo-root copy (self-hosting), and skips with one line when neither exists.What idss must do
Bump
.sandcastle/FACTORY_REFto dev-factorymainat ≥cec8b3cand re-vendor (onboarding/onboard.sh vendor .sandcastle <sha>), then re-runonboard.sh host-cron installon the workstation so the renderedbackstop-tick.shsources the host env and the canary matches byworkflow_id. This is a protected-path change (.sandcastle/), henceready-for-session. Precedent: idss #891.See dev-factory GOTCHAS 34 ("First live tick (#107)") for the full symptom→cause→rule.
Close report — #909 landed (Ruled by agent under ADR 0174, veto anytime)
Both halves of the hand-off from dev-factory #107 are in and proven end-to-end.
1. idss vendored copy bumped past
cec8b3conboard.sh vendor .sandcastle cec8b3c…(the sanctioned path — never a hand-edit of the protected.sandcastle/, #445 / GOTCHAS 4). Pin moved8ea613a→cec8b3c(dev-factorymaintip). The span is two commits; the manifest is unchanged, so four files refreshed:scheduler-canary.sh(#107 / GOTCHAS 34): claimed-cimatch now keys on.workflow_id == "ci.yml"(idss'sci.ymlsurfaces as jobname="seam", so the old.name == "ci"counted 0 and false-UNGATED'd every aged head); andnotify()stops swallowingnotify-mattermost.sh's stderr so a "would have sent:" line survives when chat is unwired.run-triage.sh(#106 / GOTCHAS 33): before/aftercommpinned toLC_ALL=C— carried in the same bump.Commit:
56b66806onmain(pushed).Proof:
check-harness-drift.shbyte-clean againstcec8b3c; vendoredscheduler-canary-test.shgreen (12 scenarios);run-triage-test.shgreen (17).2.
onboard.sh host-cron installre-run on the workstationThe host-side halves of #107 live in dev-factory's unvendored
onboarding/host-state-lib.sh, so they land via re-render, not the vendor. Ranhost-cron installfrom a cleancec8b3ccheckout against~/swarm/host-registry.conf. The regenerated/home/dev/swarm/factory-cron/backstop-tick.shnow:[ -f /home/dev/swarm/host-env.sh ] && . /home/dev/swarm/host-env.sh(carriesMATTERMOST_URL/_CHANNEL_ID/_BOT_TOKEN), so an UNGATED post actually reaches Mattermost;canary()prefers the vendored copy, falls back to the repo-root copy (self-hosting dev-factory), and skips with one line when neither exists — no moreNo such filereds on pre-#105 pins.~/swarm/cron-backups/crontab-20260827T165431Z.txt; managed block spliced (8 lines), unmanaged lines untouched.host-cron diffnow reports no change (host matches registry).3. Live proof on the deployed checkout
/home/dev/swarm/Matou/idss(the checkout the 15-min tick canaries) fast-forwarded clean to56b66806, now carrying theworkflow_idcanary. Ran the canary exactly as the tick does (host env sourced):No false UNGATED, no
No such file, exit 0 — theworkflow_id == "ci.yml"match correctly finds idss's agedmainhead gated.Two-way-door note
Every step is revertible (pin bump = one commit; host-cron = re-render from the old ref + the crontab backup) and provable (drift check, vendored tests,
host-cron diff, the live canary run above). No one-way door touched: no personal credentials, no security widening, no data destruction — host env is referenced by path, never written into the repo or the cron script (rule 6). Precedent: idss #891.Closing.