factory drift: #865's sticky-account edit landed in vendored limit-lib.sh but never in Matou/dev-factory — check-harness-drift.sh is RED #867
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
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Matou/idss#867
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?
Found while working #857 (running the harness suite to check for regressions). Not caused by #857 — reproduced on
2bda2096with #857's changes stashed.Symptom
Cause
Commit
6620f7ca(#865, "the active Claude account goes sticky") changedclaude_active_accountto dropCLAUDE_ACTIVE_TTLand made the marker sticky, editinglimit-lib.shandtests/limit-lib-test.shin this repo. Both are inFACTORY_MANIFEST— vendored, owned byMatou/dev-factory(ADR 0180). The change is Ben's 2026-08-26 ruling and is correct; what is missing is landing it upstream, bumpingFACTORY_REFand re-vendoring, which #865 never did and never filed.Why it matters
scripts/seam-smoke.shrunsbash .sandcastle/check-harness-drift.shas its "Factory core" stage underset -euo pipefail, so on the face of it everyciseam run should now be red. Observedseamruns on2bda2096report success, so either the stage is not failing the way the script reads, or something on the runner differs — worth confirming as part of this ticket, because if the gate is silently passing, the door-stays-shut discipline that stage exists for is not shut.Second cost, regardless: while the drift stands, this repo cannot re-vendor at a newer pin without reverting Ben's sticky-account ruling.
What closing this needs
Matou/dev-factory(limit-lib.sh+tests/limit-lib-test.sh), carrying #865's reasoning..sandcastle/FACTORY_REFhere and re-vendor, confirmingcheck-harness-drift.shgoes green.ciseam stage was actually failing on this drift, and say which.Note
Matou/dev-factory#101is also open (a vendored test that reds on any consumer declaringswarm-policy.sh) — the same pin bump should pick it up.ready-for-session: needs.sandcastle/(a protected path) plus push standing onMatou/dev-factory.Step 1 was not "never done" — it was done on the wrong copy
The ticket assumed
#865's edit simply never reachedMatou/dev-factory. It did reach it, as22d4a82, whose subject reads exactly right: "the active Claude account goes sticky — B stays primary after a failover until it fails over back (Matou/idss#865)". But its diffstat is:Matou/dev-factoryis self-hosting — it vendors the factory core into its own.sandcastle/exactly like a product repo does, pinned at its ownFACTORY_REF(dc8d234). So22d4a82edited dev-factory's vendored copy of itself, not the canonical rootlimit-lib.shthatFACTORY_MANIFESTconsumers actually pull. Proof:So the loop was closed: idss's drift message said "land the fix THERE, bump FACTORY_REF, and re-vendor", the fix had been landed there by subject line, and re-vendoring at ANY dev-factory ref would have silently reverted Ben's ruling.
dev-factoryruns nocheck-harness-drift.shstage in its own ci (unlike idss), so its identical drift was invisible on that side.One more trap the vendored copy carried: it predates
#100's limit-park history, so landing it upstream verbatim would have revertedclaude_limit_park's account stamping and itsswarm.dbpark edge. The canonical change had to be re-derived on top of#100, not copied across.Landed
Matou/dev-factory@e61aa00puts the ruling on the canonicallimit-lib.sh+tests/limit-lib-test.sh, on top of#100. It also moves the two READERS that restate the rule, because a sticky writer with decaying readers is a monitor that lies:tui/data/limits.py'sactive_accountdrops itsttlargument (onlylimit_parkedbeside it is still a freshness question), and the fleet monitor'sfleet-tui/snapshot.pystops decaying_active_letterto the primary. Both would have shownalphaan hour after a failover while every claude call on that host really rodebravo. dev-factory's offline suite is green,tui169 passed,fleet-tui50 passed.Step 3: the
ciseam stage was NOT failing on this drift — and the reason is worse than the driftscripts/seam-smoke.shends with:with the comment "The
ifkeepsset -efail-fast active inside seam()". It does the opposite.set -eis suspended for any command that is anifcondition and for any non-final element of a pipeline — and that suspension propagates into the function body.seam()therefore runs every stage to completion regardless of failures, and returns the status of its LAST command only. Minimal repro:So the answer to "was the gate silently passing": yes, and not just for this stage. Every stage except the last — the drift check, the OpenAPI contract, the mermaid/theming contracts, the TypeScript and Go builds and tests — has been unable to fail
ciat all. The whole gate reduces to whether its final command (golangci-lint run ./...inbroker/) passes. That is a strictly larger problem than #867 and is being filed separately rather than ridden in on the pin bump.Ruled by agent under ADR 0174 — veto anytime.
seamgate is toothless —set -eis suspended inside seam(), so every stage but the last is unable to fail a run #871idss-broker-installis a hand-placed copy that nothing re-places or checks #872seamgate is toothless —set -eis suspended inside seam(), so every stage but the last is unable to fail a run #871