CI red on main: vendored rehearsal-report.sh drifted - bdb42ff6’s token-leak fix must land in dev-factory (which still leaks) and ride back on a FACTORY_REF bump #1683
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#1683
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?
What is red
ci.ymlstage "Factory core: vendored .sandcastle files match FACTORY_REF (#571/#602)" fails on every push tomainsincebdb42ff6:Run https://git.matou.nz/Matou/idss/actions/runs/28940 (healer sig
60539fe3c068). Reproduced here:bash .sandcastle/check-harness-drift.shatbdb42ff6names exactly those two files and nothing else.Cause - not a bad fix, a fix landed on the wrong side
bdb42ff6(jamin, 2026-09-20) is a correct and urgent secret-leak fix:claude_auth_announce's${tok:+${tok:0:14}...}${tok:-EMPTY}expanded to the whole Claude OAuth token and posted it to the drive ticket, Mattermost and the executor log (GOTCHAS #303). It must not be reverted.But both files it touches are
Matou/dev-factory-OWNED and listed in.sandcastle/FACTORY_MANIFEST, so the drift gate reds by design - this repo pulls the factory core at a pinned ref (ADR 0180 / #571) and a local edit to a vendored file is exactly what the gate exists to catch. GOTCHAS #228 already records the same rule for this same file: arehearsal-report.shfix "must land upstream in the factory and be re-vendored (drift gate) ... NOT applied in this repo directly".dev-factory's
mainstill carries the leaking line (rehearsal-report.sh:200, verbatim${tok:+${tok:0:14}...}${tok:-EMPTY}), so every other consumer repo still leaks its token on an auth-failure alert. That is the larger half of this ticket.Ask
bdb42ff6's two-file change upstream inMatou/dev-factory(rehearsal-report.sh+tests/rehearsal-report-test.sh), via the factory's normal issue/PR flow..sandcastle/FACTORY_REFhere and re-vendor (onboard.sh vendor), which un-reds the seam.Why a session, not a swarm worker
.sandcastle/paths (#445), and the work needs push standing on a second repo (Matou/dev-factory) - any session host with that standing.41495283is 15 commits behind dev-factorymain, so step 2 is not a two-file re-vendor:pin..mainis 1641 files (thefleet-tuirework plusheal.sh,run-swarm.sh,verdict-lib.sh,landing-lib.sh,forgejo-lib.sh,close-report). Adopting that is a deliberate harness upgrade someone should watch land, not a headless one-shot. (The swarm healer is also forbidden from modifyingheal.sh/heal-lib.sh, which a bump tomainwould rewrite.)Rejected shortcut
Dropping the two paths from
FACTORY_MANIFESTwould green CI in one line, but the manifest is generated (DO NOT EDIT BY HAND), it permanently un-vendors two factory-owned files so future upstream fixes stop arriving, and it leaves the leak live in dev-factory and every sibling repo. Not done.Related
limit-lib.sh" clause, so the two upstream lands may want to ride together.bdb42ff6's message and GOTCHAS #303, not owned by this ticket.Filed by the swarm healer (run
heal-Matou-idss-1789965214-1541708, sig60539fe3c068). No repair attempted - see "Why a session".Ruled by agent under ADR 0174 — veto anytime
Ruling: greened CI the two-way way, and split the one part that must be
watched.
The drift was correct-by-design: bdb42ff6's token-leak fix (a real, urgent
security fix — keep it) edited two
dev-factory-owned vendored files, so thefix had to land upstream and ride back on a
FACTORY_REFbump (GOTCHAS #228).Two ways to bump existed, and they are NOT equal:
The whole-
mainbump the Ask sketched is ~16 commits / ~1.6k files —the
fleet-tuirework plusheal.sh/heal-lib.sh,run-swarm.sh,verdict-lib.sh,landing-lib.sh,forgejo-lib.sh,close-report.Checked: no consumer repo is on
main(pregnancy-navigator9055eb55and matou-app
a553c00fboth lag ~15 too), so it is an unadopted-in-fieldharness-core upgrade that rewrites the swarm's own
heal.sh/run-swarm.sh.A headless one-shot cannot watch that land or catch a wedged swarm — not a
two-way door for this session (the Ask itself said "someone should watch
land, not a headless one-shot"). → split to #1684 (
ready-for-human),which also carries #1682's
limit-lib.shcompanion land.A minimal re-vendor IS a clean two-way door: I branched the leak fix off
idss's own current pin base
41495283, where the two files arebyte-identical to
main, committed142a3c10, and merged it intodev-factory
maintoo (issue Matou/dev-factory#159, PR #160) so everyconsumer stops leaking on their next bump.
FACTORY_REF→142a3c10is thena byte-identical two-file re-vendor with zero harness churn.
Why it's two-way: revertible (one-line
FACTORY_REF+ a dev-factory revert),provable (
check-harness-drift.shgreen; the reporter test is red-before-green),no posture change. The rejected manifest-drop shortcut was NOT used.
Close report
Landed here:
c4f65280—FACTORY_REF41495283→142a3c10, STATUS.md.bash .sandcastle/check-harness-drift.sh→ OK (was FAILED on both files).No
onboard.sh vendorrun: the vendored bytes already matched, so the pin bumpalone greens it — and that dodges the FACTORY_MANIFEST token-leak that
onboard.sh vendorhas caused before.Landed upstream (the larger half — dev-factory
mainstill leaked):main(89b6bad); fix commit142a3c10.tests/rehearsal-report-test.shFAILs with the leak line reintroduced, PASSes (50 cases) with the fix.Split off: #1684 — the deliberate, watched
FACTORY_REF→mainharnessupgrade (unadopted by any consumer; rides #1682).
Not owned here: rotating the leaked account-B token (
bdb42ff6message,GOTCHAS #303).
Closing — CI drift gate is green and the leak is out of the factory core.