healer: the ci incident signature keys on dashboard console noise, not the failing Go diagnostic — distinct seam reds collapse onto one signature #948

Closed
opened 2026-08-28 18:32:29 +00:00 by matou-build-agent · 2 comments

Filed by the swarm healer from incident evidence /tmp/matou-heal-Matou-idss.o25Cca (run https://git.matou.nz/Matou/idss/actions/runs/13343, signature 60bdf274ed9b).

Symptom

Every red of the Go: go.work resolves both modules; build, vet, test, lint each seam stage produces the SAME healer signature, because the line the signature keys on is console noise from an earlier stage that PASSED.

run-verdict.txt for run 13343:

stage=Go: go.work resolves both modules; build, vet, test, lint each
exit=1
--- error lines ---
dashboard test:   at <SurfaceErrorBoundary>       <-- signature keys on THIS
... (10 more dashboard-test lines) ...
control-plane/cmd/control-plane/compose_enroll_test.go:353:2: redefines-builtin-id: redefinition of the built-in function real (revive)   <-- the ACTUAL fault

The healer's trigger line was therefore Go: go.work ... :: dashboard test: at <SurfaceErrorBoundary> — it names no fault at all.

Cause

Two head/tail choices meet in the middle:

  • scripts/seam-smoke.sh write_verdict() greps error-ish lines across the WHOLE teed log and keeps tail -12. With errexit armed (#871) the seam aborts AT the failing command, so the causative diagnostic is the LAST of those lines. The other 11 are Vue SurfaceErrorBoundary component-stack prints emitted by the passing TypeScript: build (tsc), test (vitest), lint (eslint) stage.
  • .sandcastle/heal-lib.sh seam_verdict_signal() takes head -1 of that block for the signature.

So the signature is stage + oldest-surviving noise line, which is stable across unrelated faults.

Evidence that it actually collapses distinct faults

Ledger .sandcastle/.state/healer/60bdf274ed9b: first_seen ~41.5h before 2026-08-28T18:23Z, attempts=2, repaired=1 — i.e. this one signature already spans #914's revive break in agent/internal/trust/trust_test.go:94 AND #945's revive break in control-plane/cmd/control-plane/compose_enroll_test.go:353. Two different files, two different commits, one signature.

This is the exact failure mode .sandcastle/heal.sh's own comment (lines 220-232) says the per-run verdict was introduced to prevent: "a moved fault masked as 'still failing'". Consequence: within the 6h HEAL_COOLDOWN, a genuinely NEW seam red matches a signature already marked repaired=1, ledger_decide returns escalate-repaired, and the healer declines to investigate it.

Suggested shape (not prescriptive)

Make the verdict's error block lead with the causative line. Options: reverse the retained order (tail -12 then print last-first), or prefer lines matching the compiler/lint file:line:col: diagnostic form over free prose, or scope the grep to output emitted after the last ==> banner (i.e. the failing stage only) — the last is the most faithful, since the log already delimits stages.

Acceptance criteria

  • A seam red in the Go stage yields a healer trigger line naming the Go diagnostic, not a line from a stage that passed.
  • Two different Go-stage faults (e.g. #914's and #945's revive breaks) produce two different signatures.
  • Covered by an offline test under scripts/tests/ in the house pattern (peer: scripts/tests/seam-errexit-test.sh, which already injects a failing non-final stage into seam-smoke.sh).
  • .sandcastle/heal-lib.sh's unit cover (tests/heal-lib-test.sh) still passes.

Not in scope

The run-13343 red itself needs nothing: it fired on the superseded sha fa0d297c (dispatch raced the push) and the revive break already landed on main as 180570f9. Verified clean at HEAD in a fresh clone under nix develop: go vet ./control-plane/... rc=0, golangci-lint run ./control-plane/... rc=0, go test ./control-plane/cmd/control-plane/ -run TestComposeEnroll rc=0.

Filed by the swarm healer from incident evidence `/tmp/matou-heal-Matou-idss.o25Cca` (run https://git.matou.nz/Matou/idss/actions/runs/13343, signature `60bdf274ed9b`). ## Symptom Every red of the `Go: go.work resolves both modules; build, vet, test, lint each` seam stage produces the SAME healer signature, because the line the signature keys on is console noise from an earlier stage that PASSED. `run-verdict.txt` for run 13343: ``` stage=Go: go.work resolves both modules; build, vet, test, lint each exit=1 --- error lines --- dashboard test: at <SurfaceErrorBoundary> <-- signature keys on THIS ... (10 more dashboard-test lines) ... control-plane/cmd/control-plane/compose_enroll_test.go:353:2: redefines-builtin-id: redefinition of the built-in function real (revive) <-- the ACTUAL fault ``` The healer's trigger line was therefore `Go: go.work ... :: dashboard test: at <SurfaceErrorBoundary>` — it names no fault at all. ## Cause Two `head`/`tail` choices meet in the middle: - `scripts/seam-smoke.sh` `write_verdict()` greps error-ish lines across the WHOLE teed log and keeps `tail -12`. With errexit armed (#871) the seam aborts AT the failing command, so the causative diagnostic is the LAST of those lines. The other 11 are Vue `SurfaceErrorBoundary` component-stack prints emitted by the *passing* `TypeScript: build (tsc), test (vitest), lint (eslint)` stage. - `.sandcastle/heal-lib.sh` `seam_verdict_signal()` takes `head -1` of that block for the signature. So the signature is stage + oldest-surviving noise line, which is stable across unrelated faults. ## Evidence that it actually collapses distinct faults Ledger `.sandcastle/.state/healer/60bdf274ed9b`: `first_seen` ~41.5h before 2026-08-28T18:23Z, `attempts=2`, `repaired=1` — i.e. this one signature already spans #914's revive break in `agent/internal/trust/trust_test.go:94` AND #945's revive break in `control-plane/cmd/control-plane/compose_enroll_test.go:353`. Two different files, two different commits, one signature. This is the exact failure mode `.sandcastle/heal.sh`'s own comment (lines 220-232) says the per-run verdict was introduced to prevent: "a moved fault masked as 'still failing'". Consequence: within the 6h `HEAL_COOLDOWN`, a genuinely NEW seam red matches a signature already marked `repaired=1`, `ledger_decide` returns `escalate-repaired`, and the healer declines to investigate it. ## Suggested shape (not prescriptive) Make the verdict's error block lead with the causative line. Options: reverse the retained order (`tail -12` then print last-first), or prefer lines matching the compiler/lint `file:line:col:` diagnostic form over free prose, or scope the grep to output emitted after the last `==> ` banner (i.e. the failing stage only) — the last is the most faithful, since the log already delimits stages. ## Acceptance criteria - A seam red in the Go stage yields a healer trigger line naming the Go diagnostic, not a line from a stage that passed. - Two different Go-stage faults (e.g. #914's and #945's revive breaks) produce two different signatures. - Covered by an offline test under `scripts/tests/` in the house pattern (peer: `scripts/tests/seam-errexit-test.sh`, which already injects a failing non-final stage into `seam-smoke.sh`). - `.sandcastle/heal-lib.sh`'s unit cover (`tests/heal-lib-test.sh`) still passes. ## Not in scope The run-13343 red itself needs nothing: it fired on the superseded sha `fa0d297c` (dispatch raced the push) and the revive break already landed on main as `180570f9`. Verified clean at HEAD in a fresh clone under `nix develop`: `go vet ./control-plane/...` rc=0, `golangci-lint run ./control-plane/...` rc=0, `go test ./control-plane/cmd/control-plane/ -run TestComposeEnroll` rc=0.
Author
Member

swarm-claim host=elitebook-distributed-server-03 run=13364
(automated multi-host claim — lowest live claim id works this ticket)

swarm-claim host=elitebook-distributed-server-03 run=13364 (automated multi-host claim — lowest live claim id works this ticket)
Author
Member

close-report for #948 — status success

✅ close-report gates passed — every claim verified against main; issue closed.

envelope
{
  "issue": 948,
  "status": "success",
  "commits": [
    "5b45e69"
  ],
  "changed_files": [
    "scripts/seam-smoke.sh",
    "scripts/tests/seam-verdict-causative-test.sh"
  ],
  "tests": [
    {
      "command": "bash scripts/tests/seam-verdict-causative-test.sh",
      "exit_code": 0
    },
    {
      "command": "bash scripts/tests/seam-errexit-test.sh",
      "exit_code": 0
    },
    {
      "command": "bash .sandcastle/tests/heal-lib-test.sh",
      "exit_code": 0
    }
  ],
  "criteria": {
    "A seam red in the Go stage yields a healer trigger line naming the Go diagnostic, not a line from a stage that passed": "scripts/seam-smoke.sh write_verdict() scopes the error scan to the run of lines after the last '==> ' banner (the failing stage) and leads with a file:line:col: diagnostic; seam-verdict-causative-test.sh check 1 asserts the first error line names the Go diagnostic and is not the SurfaceErrorBoundary/dashboard-test noise from the passing TypeScript stage",
    "Two different Go-stage faults (e.g. #914's and #945's revive breaks) produce two different signatures": "seam-verdict-causative-test.sh check 3 runs #945's compose_enroll_test.go:353 and #914's trust_test.go:94 breaks through the REAL heal-lib.sh seam_verdict_signal + compute_signature and asserts sigA != sigB",
    "Covered by an offline test under scripts/tests/ in the house pattern": "scripts/tests/seam-verdict-causative-test.sh, built with the seam()-body-swap technique of its peer scripts/tests/seam-errexit-test.sh; picked up automatically by seam-smoke.sh's offline-harness-tests loop",
    ".sandcastle/heal-lib.sh's unit cover (tests/heal-lib-test.sh) still passes": "heal-lib.sh untouched (protected path); bash .sandcastle/tests/heal-lib-test.sh exits 0 (19 groups)"
  },
  "summary": "The seam verdict's error block now leads with the causative Go diagnostic scoped to the failing stage, so the healer's head-1 signature stops keying on a passing stage's constant console noise and distinct reds get distinct signatures.",
  "blockers": []
}
**close-report** for #948 — status `success` :white_check_mark: **close-report gates passed** — every claim verified against main; issue closed. <details><summary>envelope</summary> ```json { "issue": 948, "status": "success", "commits": [ "5b45e69" ], "changed_files": [ "scripts/seam-smoke.sh", "scripts/tests/seam-verdict-causative-test.sh" ], "tests": [ { "command": "bash scripts/tests/seam-verdict-causative-test.sh", "exit_code": 0 }, { "command": "bash scripts/tests/seam-errexit-test.sh", "exit_code": 0 }, { "command": "bash .sandcastle/tests/heal-lib-test.sh", "exit_code": 0 } ], "criteria": { "A seam red in the Go stage yields a healer trigger line naming the Go diagnostic, not a line from a stage that passed": "scripts/seam-smoke.sh write_verdict() scopes the error scan to the run of lines after the last '==> ' banner (the failing stage) and leads with a file:line:col: diagnostic; seam-verdict-causative-test.sh check 1 asserts the first error line names the Go diagnostic and is not the SurfaceErrorBoundary/dashboard-test noise from the passing TypeScript stage", "Two different Go-stage faults (e.g. #914's and #945's revive breaks) produce two different signatures": "seam-verdict-causative-test.sh check 3 runs #945's compose_enroll_test.go:353 and #914's trust_test.go:94 breaks through the REAL heal-lib.sh seam_verdict_signal + compute_signature and asserts sigA != sigB", "Covered by an offline test under scripts/tests/ in the house pattern": "scripts/tests/seam-verdict-causative-test.sh, built with the seam()-body-swap technique of its peer scripts/tests/seam-errexit-test.sh; picked up automatically by seam-smoke.sh's offline-harness-tests loop", ".sandcastle/heal-lib.sh's unit cover (tests/heal-lib-test.sh) still passes": "heal-lib.sh untouched (protected path); bash .sandcastle/tests/heal-lib-test.sh exits 0 (19 groups)" }, "summary": "The seam verdict's error block now leads with the causative Go diagnostic scoped to the failing stage, so the healer's head-1 signature stops keying on a passing stage's constant console noise and distinct reds get distinct signatures.", "blockers": [] } ``` </details>
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#948
No description provided.