swarm: healer ci signatures go stage-aware — a moved fault must re-trigger investigation #197
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#197
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 happened (2026-07-30 evening)
Seam run 1445 (commit
35cb1cd) went red; the healer's hook diagnosis was excellent — it reproduced innix developand named the exact staticcheck defect (#193's SA4010 dead store). But runs 1450 and 1452 then failed on a different defect (#195's revive shadowed-builtin inwiring_test.go), and the healer replied "🔄 still failing (26418c5a86f3, ci)" to both — same signature, no re-investigation. The fault had moved; the signature couldn't see it.Why
For
cifailures the healer has no local seam artifact, soheal.sh'serror_line()degrades the incident signature to the workflow name alone (its own comment says so). Any subsequentcifailure within the cooldown — whatever the cause — matches the ledgered signature and lands inreply-recurring, which posts a one-liner and re-diagnoses nothing. Tonight that masked a moved fault for ~40 minutes; with a slower human it could mask one for the whole cooldown.What to build
Make the
ciincident signature stage/fault-aware so a changed fault re-triggersinvestigate:seam-verdict.txtartifact — failing stage + first error lines — that survives for the healer to read; the runner is host-mode on the workstation, so a well-known path works even without a log API).reply-recurringas today; changed fault → freshinvestigatewith a new thread reply.Acceptance criteria
cifailures with different failing stages or error lines, When the healer runs, Then the second gets a fresh investigation, not areply-recurringone-linerTask manifest
Triage
Category: enhancement (already applied)
State: →
ready-for-agentVerification: read
.sandcastle/heal.sh'serror_line()— its own comment (lines ~68-71) confirms the exact limitation the issue reports: "ci/triage failures have no local artifact ... their signature degrades to the workflow name alone: distinct ci faults within one cooldown share an incident. Accepted limitation." This matches the reported incident (runs 1450/1452 both matching run 1445's signature despite a different underlying fault). Confirmed, not already fixed.Prior rejection check: no
.out-of-scope/directory exists yet.Design gate: not applicable — healer/CI infra, no UX flow or wireframe.
Human-decision gate: task manifest's
needs_human_decisionis empty.The issue body's task manifest + Given/When/Then acceptance criteria (including the explicit "no readable evidence → say so" degrade-and-announce case) is a complete agent brief already. No separate brief comment needed.
Done in
1af9a2a(onmain).What shipped — the
ciincident signature is now stage/fault-aware:scripts/seam-smoke.shwrites a verdict artifact on failure (stage=+ first error lines) to a well-known host path (/tmp/matou-seam-verdict.txt). The runner is host-mode, so the path survives without a log API. The failing stage is read back from the log’s==>banners, so the pipe subshell can’t strand it.seam_verdict_signal(heal-lib.sh) folds<stage> :: <error>;error_lineprefers it forcionly (non-ci signatures already carry error lines — out of scope, untouched).cifailures with different stages/error lines → distinct signatures → the second gets a freshinvestigate, not areply-recurringone-liner.signature degraded to workflow name — treat "still failing" as unverified.Seam tests (offline, deterministic):
heal-lib-test.sh— 12 groups (stage/fault-aware + degrade signals; a moved fault → different signature, same fault → same, line-number jitter normalizes).heal-test.sh— 6 scenarios (a moved ci fault re-investigates; the same fault escalates unchanged; a degraded post is flagged). Both green.git worktree repairkilled run 1649's sibling worker #239seam), not workflow (ci) #1045templatestable, sotemplateNameFiltersilently falls back tovanilla— and writesdefaulttheme=vanillaintosettings_global, which then outranks config.php forever #1326