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#1913
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?
CI run 34250 on
mainred at Go: gofmt (tabs) — no formatting debt (#344) is the symptom (#1912 holds the one-line product fix). This issue is the harness root cause — the answer to #1912's open question, "so on the pushing machine eithercore.hooksPathwas not set or the push used--no-verify; gate logic itself looks correct."Gate logic is not correct. Gate 3b has never been able to produce a clean verdict on this host.
Root cause
gate_gofmt_default_cmd(.sandcastle/gate-lib.sh) scans the tree withgofmt -l ., filtering only^node_modules/. The swarm workdir also carries.sandcastle/nix-store/— gitignored (.sandcastle/.gitignore:9), untracked, present since 2026-09-11 — and that store holds the Go distribution's ownshare/go/src/. So the host gate reports:src/cmd/compile/internal/syntax/testdata/(deliberately-malformed Go), printed before any verdict.Reproduced read-only against the swarm workdir at
ce04cd10:Gate 3b landed 2026-09-12 (
70b3d228) — one day after the nix store appeared. It was born broken: every Go-touching push from a workdir carrying a nix store is refused with a verdict about files this repo does not own and cannot fix, whatever the pushed code looks like. CI never saw it (a clean checkout has nonix-store/), so #344 stayed the only honest gofmt verdict.That is the mechanism behind #1912's open question. A gate that blocks every push with 340 irrelevant files is a gate that gets bypassed — and gofmt debt reached
mainagain ince04cd10, the exact repeat off291b547/#1429 that Gate 3b exists to stop. #1912's own diagnosis usedgit ls-files '*.go' | xargs gofmt -l, which is why it saw a clean tree and the gate looked fine.The fix — and why the healer could not land it
Prune the scan's input (not its output, so the parse-error wall goes too), and fail closed if the pruner finds no Go file at all — an empty scan is a broken scan, not a clean tree. Patch below is written and verified, but
.sandcastle/gate-lib.shand.sandcastle/tests/gate-lib-test.share factory-vendored (ADR 0180;FACTORY_MANIFEST:21,102).check-harness-drift.shconfirms a direct edit drifts fromFACTORY_REF 87e1b556, and the pre-push drift gate blocks it. So this must land the vendored way:Matou/dev-factory,.sandcastle/FACTORY_REFand re-vendor (onboarding/onboard.sh vendor),scripts/seam-smoke.sh:208carries the samegofmt -l . | grep -v '^node_modules/'line. It is not vendored and is not broken in CI (clean checkout, no nix-store), but it is the same landmine for anyone running the seam locally onmatou-workstation. Sync it in the same change rather than leaving two implementations of one scan.Verification already done
Against the real workdir, patched lib sourced read-only:
ce04cd10)internal/controlapi/idip_backend_identity_test.go.sandcastle/tests/gate-lib-test.shgoes 34 → 37 checks. The three new ones exercisegate_gofmt_default_cmditself — every existing check stubs it viaGATE_GOFMT_CMD, which is precisely how this shipped untested. Confirmed they fail against the un-patched lib:and pass against the patched one (
gate-lib: 37 checks passed).The patch
Evidence: healer run
heal-Matou-idss-1790530202-517383, signaturedb456344a32d, evidence dir/tmp/matou-heal-Matou-idss.CN21JG. Run: https://git.matou.nz/Matou/idss/actions/runs/34250Filed by the swarm healer: harness-infra fault it could diagnose and fix but not land — the target files are factory-vendored, so the charter's one-attempt repair surface does not reach them.