7 .sandcastle/ vendored files have drifted from Matou/dev-factory since before #664 — port the local fixes upstream + re-vendor #666
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#666
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?
Context
While fixing #664's consumer half properly (landing the fix in
Matou/dev-factoryand re-vendoring, instead of the prior commit's direct hand-edit of vendored files), re-vendoring.sandcastle/at the newMatou/dev-factorypin surfaced 7 files already hand-edited directly inidss— drifted from the OLD pin (b913089) before this session touched anything:.sandcastle/limit-lib.sh.sandcastle/preflight-swarm.sh.sandcastle/rehearsal-report.sh.sandcastle/run-swarm.sh.sandcastle/sweep-lib.sh.sandcastle/tests/preflight-swarm-test.sh.sandcastle/tests/sweep-lib-test.shAll 7 are
FACTORY_MANIFESTentries — vendored byte-identical fromMatou/dev-factoryper ADR 0180. Editing them directly here is the exact ownership-inversion bug class that ADR retired:bash .sandcastle/check-harness-drift.shfails red naming each one.These are almost certainly genuine local bug fixes that landed as swarm/session commits into the protected
.sandcastle/path directly (rather than viaMatou/dev-factory+ aFACTORY_REFbump) — e.g.run-swarm.sh's diff includes real auth-refusal-classification logic (CLAUDE AUTH FAILED on account...), not a trivial change. They were deliberately left untouched while landing #664 (backed up before a forcedonboard.sh vendor --force, restored after) — out of scope for that ticket, and risky to blindly overwrite without understanding what each local edit fixes.What to build
For each of the 7 files: diff the local
idsscopy againstMatou/dev-factory's copy at the current pin (.sandcastle/FACTORY_REF), understand what the local edit does, and land it properly:Matou/dev-factory(with its own test coverage, TDD).Matou/dev-factory's own self-pin (.sandcastle/FACTORY_REFthere) and push..sandcastle/at the new ref (onboard.sh vendor .sandcastle <new-sha>from aMatou/dev-factorycheckout).bash .sandcastle/check-harness-drift.shis fully clean (all files, not just these 7).Why this is a separate issue
A swarm worker cannot land this — every file lives inside the
.sandcastle/+.forgejo/protected boundary (#445), and theMatou/dev-factoryhalf needs push access to that repo too. Needs an interactive agent session's standing (ADR 0174 rule 5), same as #664.Two-way door
Revertible by commit (both repos), provable by
check-harness-drift.shgoing clean plus each ported fix's own tests. No credential, security-posture, member-trust, data-destruction, or spend surface.Filed by the #664 consumer-half-fix agent (session) while working #664 — see that ticket's close-report for the full account of how this was found.
Ruled by agent under ADR 0174 — veto anytime. Two-way door as scoped (revertible by commit in both repos, provable by check-harness-drift.sh + each ported fix's own tests, per the ticket's own door analysis) — no credential, security-posture, member-trust, data-destruction, or spend surface touched.
What landed
Matou/dev-factory (root, its own history):
a8026c6— ported both idss-local hotfixes into the factory root, each with its own test coverage (TDD, red before green):limit-lib.shgainsCLAUDE_AUTH_RE/claude_auth_failed;preflight-swarm.shgainsguard_auth_detectionas guard 9 (+ mangled-regex red-and-named scenario);rehearsal-report.sh's healer/reporter loops fail over once then announce loudly (forgejo comment + mattermost) and file a named "NO DIAGNOSIS" body instead of the misleading "unparseable" one, plus capture the call's env;run-swarm.sh's worker guard mirrors the check.sweep-lib.sh'ssweep_worktreesnow spares anything younger than a run-lifetime (mirroringreap_containers's existing floor) and skips branches still checked out in a surviving worktree, so a live sibling swarm under the two-slot host-capacity pool is never unlinked mid-flight;run-swarm.sh's sweep comment updated to match.abd1c6e— bumped the factory's own self-vendored.sandcastle/copy toa8026c6(onboard.sh vendor .sandcastle a8026c6), STATUS.md updated.tests/*.sh,onboarding/tests/*.sh, and the self-copy's.sandcastle/tests/*.sh).Matou/idss (
8734b3a1):onboard.sh vendor .sandcastle a8026c6e81f7856bf86bc126a17f4be3d8c6d570 --forcefrom a Matou/dev-factory checkout (idss'sFACTORY_REFhad been stuck at1b7abc2since before #664, so this also carries forward everything the factory grew in between —landing-lib.sh/policy-lib.sh, PR-landing knobs, #19's git-identity layer — all additive, gated off by default).bash .sandcastle/check-harness-drift.sh→ OK, no drift (all files, not just the original 7).swarm-identity.sh(a per-repo template file, deliberately excluded from vendoring) predated #19'sswarm_git_identityhelper the freshly-vendoredsession-runner.sh/heal.shnow call — brought current by hand; andtests/policy-lib-test.sh(newly in-manifest) turned out to source../onboarding/onboard-lib.sh, a pathonboarding/**deliberately excludes from every consumer — a pre-existing dev-factory vendor-manifest defect, unrelated to this ticket's local hotfixes, filed as its own follow-up rather than fixed here: Matou/dev-factory#23..sandcastle/tests/*.shsuite green except that one pre-existing, out-of-scope gap (policy-lib-test.sh).Proof
bash .sandcastle/check-harness-drift.sh→check-harness-drift: OK — every vendored factory file matches https://git.matou.nz/Matou/dev-factory.git@a8026c6e81f7856bf86bc126a17f4be3d8c6d570..sandcastle/tests/*.shoffline suite green (48/49; the one red is Matou/dev-factory#23, tracked separately)..sandcastle/) green at botha8026c6andabd1c6e.Closing.