seam RED on main: four factory-vendored .sandcastle files drifted from FACTORY_REF (09d2ea0e) — port upstream to dev-factory and bump the pin #943

Closed
opened 2026-08-28 15:10:19 +00:00 by matou-build-agent · 0 comments

ci / seam is RED on main at the stage "Factory core: vendored .sandcastle files match FACTORY_REF (#571/#602)" and will stay red for every subsequent push until this is resolved.

What drifted

Commit 09d2ea0e ("sandcastle: healer rails — line cap 200 non-test lines … and rail 6 keyed on the fault, not the leg (GOTCHAS #115)", jamin, 2026-08-28) edited four factory-vendored files directly in this repo. All four are FACTORY_MANIFEST paths, so they are owned by Matou/dev-factory and must be byte-identical to FACTORY_REF (ADR 0180):

file changed lines vs pin
.sandcastle/rehearsal-heal-lib.sh 29
.sandcastle/rehearsal-report.sh 17
.sandcastle/tests/rehearsal-heal-lib-test.sh 29
.sandcastle/tests/rehearsal-healer-test.sh 26

FACTORY_REF is 1fc29e0a3783bb3349e5c6870202334a262dabcb, which is also dev-factory main tip — so none of this change exists upstream. Verified by diffing every manifest path at origin/main (c61eeb63) against a fresh checkout of the pin: exactly those four drift, nothing else.

The change itself looks correct and wanted (it is the #854 device-drive post-mortem: the 60-line heal cap reverting two correct heals, and the leg-keyed rail-6 counter locking the whole join leg so #938/#939 never got a heal attempt). It is landed in the wrong repo.

The fix (canonical remedy, per check-harness-drift.sh and ADR 0180)

  1. Port the four files' changes upstream to Matou/dev-factory (they are the rehearsal-healer's own machinery — land them there as one commit referencing GOTCHAS #115).
  2. Bump .sandcastle/FACTORY_REF here to the new dev-factory SHA.
  3. Re-vendor (onboard.sh vendor) so all four local copies become byte-identical again, and re-run .sandcastle/check-harness-drift.sh to confirm green.

Precedent: 8734b3a1 ("#666 — port 7 hand-edited .sandcastle/ files upstream to Matou/dev-factory, re-vendor at the new pin").

Do not fix this by reverting 09d2ea0e or by deleting the four paths from FACTORY_MANIFEST — the first throws away a wanted fix, the second abandons the vendoring discipline the alarm exists to enforce.

Secondary gap worth a line in the same change

The pre-push drift gate landed in ab2643c2 / dev-factory 1fc29e0 is wired via git config core.hooksPath .sandcastle/git-hooks, which is set only by session-runner.sh, git-setup.sh and main.mts — i.e. only in harness-managed checkouts. A human's own clone of this repo has no core.hooksPath and no .git/hooks/pre-push, so the gate never ran for this push. That is exactly the hole this incident fell through. Consider having the seam (or a documented one-liner in the contributor setup) wire core.hooksPath in any clone, so the gate is not opt-in-by-harness.

Evidence

  • Failing run: https://git.matou.nz/Matou/idss/actions/runs/13277 (seam, head 09d2ea0e)
  • Healer evidence dir: /tmp/matou-heal-Matou-idss.RUN5AP (run-verdict.txt carries the stage + the drift diff)
  • Filed by the swarm healer (signature 3dead81b6258). The healer did not repair this: the remedy spans a second repo (Matou/dev-factory), which is outside its allowed-repair surface, and the drifted files are healer machinery it is forbidden from editing.
`ci` / `seam` is RED on `main` at the stage **"Factory core: vendored .sandcastle files match FACTORY_REF (#571/#602)"** and will stay red for every subsequent push until this is resolved. ## What drifted Commit `09d2ea0e` ("sandcastle: healer rails — line cap 200 non-test lines … and rail 6 keyed on the fault, not the leg (GOTCHAS #115)", jamin, 2026-08-28) edited **four factory-vendored files directly in this repo**. All four are `FACTORY_MANIFEST` paths, so they are owned by `Matou/dev-factory` and must be byte-identical to `FACTORY_REF` (ADR 0180): | file | changed lines vs pin | |---|---| | `.sandcastle/rehearsal-heal-lib.sh` | 29 | | `.sandcastle/rehearsal-report.sh` | 17 | | `.sandcastle/tests/rehearsal-heal-lib-test.sh` | 29 | | `.sandcastle/tests/rehearsal-healer-test.sh` | 26 | `FACTORY_REF` is `1fc29e0a3783bb3349e5c6870202334a262dabcb`, which is also `dev-factory` **main tip** — so none of this change exists upstream. Verified by diffing every manifest path at `origin/main` (`c61eeb63`) against a fresh checkout of the pin: exactly those four drift, nothing else. The change itself looks correct and wanted (it is the #854 device-drive post-mortem: the 60-line heal cap reverting two correct heals, and the leg-keyed rail-6 counter locking the whole `join` leg so #938/#939 never got a heal attempt). It is landed in the **wrong repo**. ## The fix (canonical remedy, per `check-harness-drift.sh` and ADR 0180) 1. Port the four files' changes upstream to `Matou/dev-factory` (they are the rehearsal-healer's own machinery — land them there as one commit referencing GOTCHAS #115). 2. Bump `.sandcastle/FACTORY_REF` here to the new dev-factory SHA. 3. Re-vendor (`onboard.sh vendor`) so all four local copies become byte-identical again, and re-run `.sandcastle/check-harness-drift.sh` to confirm green. Precedent: `8734b3a1` ("#666 — port 7 hand-edited .sandcastle/ files upstream to Matou/dev-factory, re-vendor at the new pin"). Do **not** fix this by reverting `09d2ea0e` or by deleting the four paths from `FACTORY_MANIFEST` — the first throws away a wanted fix, the second abandons the vendoring discipline the alarm exists to enforce. ## Secondary gap worth a line in the same change The pre-push drift gate landed in `ab2643c2` / dev-factory `1fc29e0` is wired via `git config core.hooksPath .sandcastle/git-hooks`, which is set only by `session-runner.sh`, `git-setup.sh` and `main.mts` — i.e. only in harness-managed checkouts. A human's own clone of this repo has no `core.hooksPath` and no `.git/hooks/pre-push`, so the gate never ran for this push. That is exactly the hole this incident fell through. Consider having the seam (or a documented one-liner in the contributor setup) wire `core.hooksPath` in any clone, so the gate is not opt-in-by-harness. ## Evidence - Failing run: https://git.matou.nz/Matou/idss/actions/runs/13277 (`seam`, head `09d2ea0e`) - Healer evidence dir: `/tmp/matou-heal-Matou-idss.RUN5AP` (`run-verdict.txt` carries the stage + the drift diff) - Filed by the swarm healer (signature `3dead81b6258`). The healer did not repair this: the remedy spans a second repo (`Matou/dev-factory`), which is outside its allowed-repair surface, and the drifted files are healer machinery it is forbidden from editing.
ben closed this issue 2026-08-28 15:16:13 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Matou/idss#943
No description provided.