healer: escalate-repaired pings @ben on every recurrence (no silence latch); filed-ticket counts as repair; hardcoded "on matou-workstation" in post text #79
Closed
opened 2026-08-25 00:52:19 +00:00 by matou-build-agent
·
2 comments
No Branch/Tag specified
main
sandcastle/rescue-20261120-212246
sandcastle/rescue-20261120-202650
sandcastle/rescue-20261120-202316
sandcastle/worker/20261120192753-1909682
sandcastle/rescue-20261120-191443
sandcastle/rescue-20261120-195103
sandcastle/rescue-20261120-201254
sandcastle/rescue-20261120-201438
sandcastle/rescue-20261120-144756
sandcastle/rescue-20261120-184843
sandcastle/rescue-20261120-190817
sandcastle/rescue-20261120-045815
sandcastle/rescue-20261120-143144
sandcastle/rescue-20261120-144025
sandcastle/worker/20261120032838-3834852
sandcastle/worker/20261120034547-1076409
sandcastle/rescue-20261120-031041
sandcastle/rescue-20261120-035031
sandcastle/rescue-20261120-041046
sandcastle/rescue-20261120-041556
sandcastle/rescue-20261120-042712
sandcastle/rescue-20261120-044145
sandcastle/rescue-20261120-044401
sandcastle/worker/20261120020735-3225234
sandcastle/rescue-20261120-025017
sandcastle/worker/20261120012937-3577764
sandcastle/rescue-20261120-024432
sandcastle/rescue-20261120-012510
sandcastle/rescue-20261120-020027
sandcastle/rescue-20261120-022005
sandcastle/rescue-20261120-023040
sandcastle/rescue-20261120-023059
sandcastle/rescue-20261120-023617
sandcastle/rescue-20261120-023726
sandcastle/rescue-20261120-024624
sandcastle/rescue-20261120-030108
sandcastle/rescue-20261120-011059
sandcastle/rescue-20261119-235227
sandcastle/rescue-20261119-220002
sandcastle/rescue-20261119-234418
sandcastle/worker/20261119210537-2901903
sandcastle/rescue-20261119-215319
sandcastle/worker/20261119210832-2140478
sandcastle/rescue-20261119-205729
sandcastle/worker/20261119195637-2051281
sandcastle/rescue-20261119-203604
sandcastle/rescue-20261119-212545
sandcastle/rescue-20261119-213258
sandcastle/rescue-20261119-214233
sandcastle/rescue-20261119-215039
sandcastle/rescue-20261119-200052
sandcastle/rescue-20261119-202558
sandcastle/rescue-20261119-202859
sandcastle/rescue-20261119-204522
sandcastle/rescue-20261119-202901
sandcastle/worker/20261119192821-2242548
sandcastle/rescue-20261119-201432
sandcastle/worker/20261119185826-1049892
sandcastle/rescue-20261119-192442
sandcastle/rescue-20261119-194543
sandcastle/rescue-20261119-195715
sandcastle/rescue-20261119-195042
sandcastle/rescue-20261119-194153
sandcastle/rescue-20261119-193223
sandcastle/rescue-20261119-181821
sandcastle/rescue-20261119-182031
sandcastle/rescue-20261119-191400
sandcastle/rescue-20261119-184524
sandcastle/rescue-20261119-185251
sandcastle/rescue-20261119-190111
sandcastle/rescue-20261119-171507
sandcastle/rescue-20261119-172406
sandcastle/rescue-20261119-180227
sandcastle/rescue-20261119-181611
sandcastle/rescue-20261119-183926
sandcastle/rescue-20261119-165410
sandcastle/rescue-20261119-181300
sandcastle/worker/20261119152654-1251003
sandcastle/rescue-20261119-175608
sandcastle/rescue-20261119-153212
sandcastle/rescue-20261119-155612
sandcastle/rescue-20261119-161612
sandcastle/rescue-20261119-162645
sandcastle/rescue-20261119-151259
sandcastle/worker/20261119-091545-699963
sandcastle/rescue-20261119-152400
sandcastle/rescue-20261119-150650
sandcastle/rescue-20261119-151018
sandcastle/rescue-20261119-145753
sandcastle/rescue-20261119-144640
sandcastle/worker/20261119-141805-b375a7
sandcastle/rescue-20261119-143616
sandcastle/rescue-20261119-142315
sandcastle/rescue-20261119-143536
sandcastle/rescue-20261119-144907
sandcastle/rescue-20261119-150929
sandcastle/rescue-20261119-140252
sandcastle/rescue-20261119-132837
sandcastle/rescue-20261119-140917
sandcastle/rescue-20261118-232015
sandcastle/rescue-20261118-224358
sandcastle/rescue-20261118-231012
sandcastle/rescue-20261118-221954
sandcastle/rescue-20261118-223235
sandcastle/rescue-20261118-215029
sandcastle/rescue-20261118-220457
sandcastle/rescue-20261118-213647
sandcastle/rescue-20261118-213651
sandcastle/rescue-20261118-203142
sandcastle/rescue-20261118-201242
sandcastle/rescue-20261118-160449
sandcastle/worker/20261118-151037-fa1423
sandcastle/rescue-20261118-141033
sandcastle/rescue-20261118-153435
sandcastle/rescue-20261118-155226
sandcastle/rescue-20261118-140135
sandcastle/rescue-20261118-072336
sandcastle/rescue-20261118-071306
sandcastle/rescue-20261118-065902
sandcastle/rescue-20261118-070925
sandcastle/rescue-20261118-064628
sandcastle/rescue-20261118-060611
sandcastle/rescue-20261118-063652
sandcastle/rescue-20261118-065117
sandcastle/rescue-20261118-065556
sandcastle/rescue-20261118-055026
sandcastle/worker/20261118-000033-5f0b74
sandcastle/rescue-20261118-054929
sandcastle/rescue-20261118-053613
sandcastle/worker/20261118-050837-870db6
sandcastle/rescue-20261118-051315
sandcastle/rescue-20261118-052156
sandcastle/rescue-20261118-053056
sandcastle/rescue-20261118-042651
sandcastle/rescue-20261118-050517
sandcastle/rescue-20261118-052017
sandcastle/rescue-20261118-052046
sandcastle/rescue-20261118-053617
sandcastle/rescue-20261118-040341
sandcastle/rescue-20261118-035452
sandcastle/rescue-20261117-180034
sandcastle/worker/20261117-173516-cca624
backport/idss-2068-2111-2114
sandcastle/rescue-20261117-123242
sandcastle/rescue-20261117-124231
backport/idss-2057
sandcastle/rescue-20261116-154411
sandcastle/rescue-20261117-175037
sandcastle/rescue-20261116-153352
sandcastle/rescue-20261107-062749
session-runner-land-mode-recheck-2181
sandcastle/rescue-20261107-061316
fp/idss-2180
sandcastle/rescue-20261107-060212
forward-port/provision-disk-guard
sandcastle/rescue-20261107-060021
sandcastle/rescue-20261107-054649
sandcastle/worker/20261107-043349-cf0d7e
backport/idss-2177
sandcastle/rescue-20261116-175301
sandcastle/rescue-20261116-175950
backport/idss-2176
sandcastle/rescue-20261106-135208
sandcastle/rescue-20261107-045600
sandcastle/rescue-20261107-051315
sandcastle/rescue-20261107-053423
sandcastle/worker/20261106-111451-8c1ff0
sandcastle/rescue-20261106-023514
sandcastle/rescue-20261106-113455
sandcastle/rescue-20261106-115043
sandcastle/rescue-20261106-121303
sandcastle/rescue-20261106-134211
sandcastle/worker/20261106-013937-c15abc
fix/336-job-locality-runner-uuid
sandcastle/rescue-20261106-000320
sandcastle/rescue-20261105-113317
sandcastle/rescue-20261105-235352
sandcastle/rescue-20261106-020541
sandcastle/rescue-20261106-022516
sandcastle/rescue-20261106-024735
sandcastle/rescue-20261106-024744
sandcastle/rescue-20261106-024751
sandcastle/worker/20261105-104416-4319e1
sandcastle/rescue-20261105-111401
sandcastle/worker/20261105-054650-133b83
sandcastle/rescue-20261105-104304
sandcastle/rescue-20261105-110432
sandcastle/rescue-20261105-110637
sandcastle/rescue-20261105-112240
sandcastle/rescue-20261105-102818
sandcastle/worker/20261105-090131-e38a52
sandcastle/rescue-20261105-101105
sandcastle/rescue-20261105-094209
sandcastle/rescue-20261105-095705
sandcastle/rescue-20261105-091351
sandcastle/rescue-20261105-092126
sandcastle/rescue-20261105-093755
sandcastle/rescue-20261105-095339
sandcastle/rescue-20261105-101509
sandcastle/worker/20261105-033507-997386
sandcastle/worker/20261105-072852-43a339
sandcastle/rescue-20261105-085215
sandcastle/rescue-20261105-090546
sandcastle/rescue-20261105-090731
sandcastle/rescue-20261105-091600
sandcastle/worker/20261105-073544-9e3e7b
sandcastle/rescue-20261105-085541
sandcastle/worker/20261105-030149-b06fe6
sandcastle/rescue-20261105-075223
sandcastle/rescue-20261105-080157
sandcastle/rescue-20261105-081231
sandcastle/rescue-20261105-081252
sandcastle/rescue-20261105-081916
sandcastle/rescue-20261105-082029
sandcastle/rescue-20261105-082600
sandcastle/rescue-20261105-082859
sandcastle/rescue-20261105-083557
sandcastle/rescue-20261105-084327
sandcastle/rescue-20261105-090802
sandcastle/rescue-20261105-092213
sandcastle/worker/20261105-004228-d59980
sandcastle/worker/20261104-200255-c897e8
sandcastle/rescue-20261105-021604
sandcastle/rescue-20261105-062428
sandcastle/rescue-20261105-064420
sandcastle/worker/20261104-185608-12e745
sandcastle/rescue-20261105-011719
sandcastle/rescue-20261104-221030
sandcastle/rescue-20261105-003304
sandcastle/rescue-20261105-005511
sandcastle/rescue-20261105-013351
sandcastle/rescue-20261105-015246
sandcastle/worker/20261104-204335-4df59d
sandcastle/worker/20261104-144451-39719f
sandcastle/rescue-20261104-210849
sandcastle/rescue-20261104-211127
sandcastle/rescue-20261104-212722
sandcastle/worker/20261104-194113-a58f71
sandcastle/rescue-20261104-193329
sandcastle/rescue-20261104-200835
sandcastle/rescue-20261104-201057
sandcastle/rescue-20261104-202237
sandcastle/rescue-20261104-204239
sandcastle/rescue-20261104-185105
sandcastle/rescue-20261104-185510
sandcastle/rescue-20261104-192703
sandcastle/rescue-20261104-184907
sandcastle/rescue-20261104-183301
sandcastle/rescue-20261104-183354
backport/idss-2161
backport/idss-2155
fp/idss-2147
backport/idss-2145
backport/idss-2134
backport/idss-2119
sandcastle/worker/20261030-141035-c3d689
sandcastle/worker/20261030-125730-11b08b
sandcastle/worker/20261030-172321-20db0e
backport/idss-2114
backport/idss-2112
forward-port/idss-2111
forward-port/idss-2068
backport/idss-2111
backport/idss-2110
backport/idss-2106
backport/idss-2068
backport/idss-2104
sandcastle/rescue-20261030-110900
sandcastle/worker/20261029-055633-763b74
sandcastle/worker/20261029-000831-e4c652
sandcastle/worker/20261028-162655-0e8071
sandcastle/rescue-20261030-110112
sandcastle/rescue-20261030-110131
sandcastle/rescue-20261030-110135
sandcastle/rescue-20261030-110153
sandcastle/rescue-20261030-110156
sandcastle/rescue-20261030-110200
sandcastle/rescue-20261030-110220
backport/idss-1913
agent/issue-306
runner-busy-not-stalled
sandcastle/worker/20261024-045639-da1b9a
sandcastle/worker/20261023-060833-778cbe
fleet-queue-watcher-301-proposal
floor-vue
sandcastle/worker/20261021-191646-b93327
sandcastle/worker/20261021-233637-f21837
sandcastle/worker/20261021-233255-c766f7
sandcastle/worker/20261021-040000-b7a28d
backport/idss-2050
backport/idss-2050-session-pr-landing
sandcastle/worker/20261020-221737-cc96f3
backport/idss-2052
agent/issue-289
backstop-waiting-runs
sandcastle/worker/20261017-204619-942ae4
sandcastle/worker/20261017-204620-aa17c2
sandcastle/worker/20261017-144914-3ec608
sandcastle/worker/20261017-063336-7f5d31
sandcastle/rescue-20261017-062529
sandcastle/worker/20261017-010124-c49097
sandcastle/worker/20261017-003840-0c4ab1
sandcastle/rescue-20261017-054742
sandcastle/worker/20261017-053155-61c4c7
sandcastle/worker/20261017-050606-f20d66
sandcastle/rescue-20261017-052443
sandcastle/worker/20261017-050839-ec5b54
sandcastle/rescue-20261017-052212
sandcastle/worker/20261017-050442-495e4b
sandcastle/rescue-20261017-051857
sandcastle/worker/20261017-000426-34fa18
agent/issue-272
agent/issue-273
agent/issue-244
agent/issue-269
sandcastle/rescue-20261016-184726
sandcastle/rescue-20261016-184906
sandcastle/rescue-20261016-185533
sandcastle/rescue-20261016-191907
sandcastle/rescue-20261016-192219
sandcastle/worker/20261016-155725-c51ed1
agent/issue-195
agent/issue-196
agent/issue-197
agent/issue-198
agent/issue-200
agent/issue-203
agent/issue-205
agent/issue-206
agent/issue-207
agent/issue-209
agent/issue-213
agent/issue-216
agent/issue-217
agent/issue-218
agent/issue-222
agent/issue-238
agent/issue-208
sandcastle/worker/20261016-155833-1b8f77
agent/issue-241
agent/issue-230
agent/issue-239
land/issue-193
forward-port/idss-2048
backport/idss-2048
agent/issue-237
agent/issue-225
agent/issue-193
agent/issue-176
backport/1717-unclaimed-commit-gate
backport/1733-drive-yield-runlog
fix/159-rehearsal-report-token-leak
fix/157-ready-list-standdown
fix/154-verdict-no-match-trap
factory-floor-visual-rework
landing-shell-guard
No results found.
Labels
Clear labels
agent-blocked
Sandcastle hit a blocker — human resolves it, then re-adds ready-for-agent
agent-working
Claimed by a live swarm run — other hosts skip it
bug
Something is broken
deferred
Ruled defer-with-criteria: parked until a revisit criterion in the issue body fires
enhancement
New feature or improvement
landing-pr
Additive: this ticket lands ONLY by a PR with screenshots (or a waiver) that a human merges — ADR 0265. Only a human removes it.
model-haiku
Per-ticket model override (additive): run this ticket on the cheap/fast model
model-opus
Per-ticket model override (additive): run this ticket on the top-tier model
model-sonnet
Per-ticket model override (additive): run this ticket on the mid-tier model
needs-info
Waiting on reporter for more information
needs-triage
Maintainer needs to evaluate this issue
no-triage
Escape hatch: triage automation must skip this issue
priority
Additive urgency marker — the swarm queue works these first
ready-for-agent
Fully specified, ready for an AFK agent
ready-for-human
Needs the human's hands, eyes, or a one-way-door ruling (ADR 0174)
ready-for-session
Needs an interactive agent session (host creds/protected paths/live doors), not the human (ADR 0174)
wontfix
Will not be actioned
No labels
agent-blocked
agent-working
bug
deferred
enhancement
landing-pr
model-haiku
model-opus
model-sonnet
needs-info
needs-triage
no-triage
priority
ready-for-agent
ready-for-human
ready-for-session
wontfix
Milestone
Clear milestone
No items
No milestone
Projects
Clear projects
No items
No project
Assignees
Clear assignees
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/dev-factory#79
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?
Symptom
During the 2026-08-24 evening incident window (dev-factory swarm runs 719, 721, 722, 723, 724…, one every ~2 minutes), the healer pinged @ben on Mattermost with "swarm recurred after a repair attempt (
0fd2fa26ccd7) — the healer will not retry" once per red run, indefinitely. The underlying fault is real and already tracked (#77, theclaim-next-task.sh30s prompt-expansion timeout); this ticket is about the healer's own messaging ladder, which turned one known fault into an unbounded @ben ping storm.Three defects, all in the harness (
heal.sh/heal-lib.sh):1.
escalate-repairedhas no silence latchheal.sh(escalate-repairedbranch, ~line 315) posts an @ben ping and sets nothing in the ledger. Compareescalate-noisy(~lines 304–309): it says its piece once, setsescalated=1, and every later incident lands insilent.ledger_decide(heal-lib.sh:98–111) checksrepaired=1before the reply cap, so once a signature is marked repaired, every recurrence inside the cooldown returnsescalate-repaired— the reply counter never increments,escalatedis never consulted, and each incident refresheslast_seen, so the 6h cooldown (HEAL_COOLDOWN=21600) never expires while reds keep coming. The header comment inheal-lib.shsays the two brakes exist because "escalate-noisy stops it TALKING about the same fault forever" — the repaired branch bypasses that brake entirely.Evidence: ledger file
0fd2fa26ccd7on elitebook-03 at incident time —repaired=1,first_seen=1787596840(~18:40Z),last_seen=1787608600(~21:56Z), while @ben pings landed at 21:46, 21:48, 21:50, 21:51, 21:55… (Mattermost thread5s9n6egmztrz58xuq9thtucx7h).Suggested shape: mirror escalate-noisy — post the "recurred after a repair attempt, will not retry" message once, set a latch (e.g.
escalated=1, with therepairedcheck inledger_decidefalling through to theescalated→silentcheck), and stay quiet for the rest of the cooldown. The fault stays visible on the thread and in the run history; the ping fires once.2. A diagnosis-only outcome counts as a "repair attempt"
heal.shsetsrepaired=1whenever the diagnosis'sACTION-TAKENis anything other thannone. On 2026-08-24 18:46 the healer's action was "filed ready-for-agent ticket #77" — no code or config was touched, yet the signature was marked repaired, which is what routed every later recurrence into the (latch-less)escalate-repairedbranch instead of the reply-cap ladder.Filing a ticket is the right action for a product-class fault, but it is not a repair: the recurrence of the fault after it carries no new information ("the fix hasn't landed yet" is already known). A filed-ticket outcome should either not set
repaired, or set a distinct state (ticketed=<n>) whose recurrence path is the normal reply-cap ladder (or immediate silence with the thread already pointing at the ticket).3. Messages hardcode "on matou-workstation"
Both escalate branches (
heal.sh:308,315) and the:zzz:downgrade post end withevidence: \$EVIDENCE` on matou-workstation. The 2026-08-24 incidents were healed **on elitebook-03** — every ping's evidence path pointed at a host where the directory does not exist (verified: the/tmp/matou-heal-Matou-dev-factory.*` dirs live on elitebook-03).This is also a host name baked into a harness file, which the blast-radius rule forbids (no repo names/hosts/product paths in harness files — per-host values come from the identity layer or the environment). Use
$(hostname)or an identity-sourced host label.Acceptance
tests/heal-test.sh(or the heal-lib test) updated in the same commit to pin the latch + the ticketed-is-not-repaired routing.Context
issues: labeled/closed-triggered swarm run while the fleet-monitor DAG (#64–#75) was being worked..sandcastle/copy only at the next pin bump (GOTCHAS 4).Triage:
ready-for-session(alreadybug)Ruled by agent under ADR 0174 — veto anytime.
Ruling:
ready-for-session, notready-for-agent, and keep the three defects in one ticket.The reason is defect 2. The healer's diagnosis contract is declared in the prompt skeleton
prompts/heal-prompt.md, whose ACTION-TAKEN vocabulary is literallynone | <one line: what you committed/filed/cleaned>— "filed" is inside the free-text arm, which is precisely whyheal.sh's[ "$act" != "none" ]test marks a filed ticket as repaired. The honest fix adds a distinct outcome to that fixed vocabulary;docs/agents/triage-labels.mdputs every prompt-skeleton edit on the session-only side, and CLAUDE.md calls skeleton changes design work, not mechanical edits (they render into every future worker in every consumer at the nextrender-prompts). A worker that shipped the alternative — regex-sniffing the free-text ACTION-TAKEN line for "filed"/"ticket" — would be guessing at prose that a future healer session is free to word differently.Defects 1 and 3 are pure
heal.sh/heal-lib.shand would be agent-workable alone, but splitting them off would put two workers on the same two adjacent blocks (theescalate-*branches andledger_decide) for no gain.Why this is a two-way door: a label change, plus changes confined to the healer's messaging ladder — every one revertible by a later commit and provable offline by
tests/heal-test.sh/tests/heal-lib-test.sh. If a skeleton edit turns out to be unnecessary, re-labelready-for-agent. Not on the one-way-door list: no credential, no posture widening, no trust accept, no data destruction, no spend. Ben's veto is asynchronous.Verification — all three defects confirmed at
9e2aaf6escalate-repairedbranch inheal.shposts the@benping and calls noledger_setat all — compare theescalate-noisybranch immediately above it, which posts once then setsescalated 1.ledger_decide(heal-lib.sh) testsrepairedbefore the reply cap and beforeescalated, and returnsescalate-repairedunconditionally, sorepliesnever increments andescalatedis never consulted. Every incident refresheslast_seen, so theHEAL_COOLDOWNstaleness check never fires while reds keep arriving. The storm is unbounded, exactly as reported. The lib header's own claim — that the two brakes exist because "escalate-noisy stops it TALKING about the same fault forever" — is false for this path.heal.shsetsrepaired 1on[ -n "$act" ] && [ "$act" != "none" ] && [ -z "$HEAL_DRY_RUN" ], with$actthe raw ACTION-TAKEN line. "filed ready-for-agent ticket #77" satisfies it.on matou-workstationappears in four post strings, not two: both escalate branches, the:zzz:OOM downgrade, and the no-diagnosis@benalarm. This is the blast-radius rule violated in vendored text — CLAUDE.md forbids host names in harness files outright.Session Brief
Category: bug
Summary: The healer's repaired-recurrence path has no silence latch, a diagnosis-only outcome is misclassified as a repair, and four post strings name a host literally.
Current behavior: Once a signature is marked repaired, every recurrence inside the cooldown re-pings
@benwith "recurred after a repair attempt", forever, because the branch sets no state and the decision function short-circuits onrepairedbefore either brake. Filing a ticket setsrepaired, so a known-and-tracked product fault routes into that latch-less branch. Every ping's evidence line names one host regardless of where the healer ran.Desired behavior: A repaired-then-recurring signature pings once per cooldown window and then goes quiet, matching the
escalate-noisyshape. A diagnosis whose only action was filing a ticket does not take the repaired path. Evidence lines name the host the healer actually ran on.Key interfaces:
ledger_decide— the ordering of itsrepaired/ reply-cap /escalatedchecks is the defect. The repaired arm must be able to fall through to theescalated→silentcheck rather than returning unconditionally. Keep the two brakes conceptually distinct (one stops repairing twice, one stops talking forever); the bug is that the first currently swallows the second.heal.sh's repaired-gate must key on it explicitly and the skeleton's rendered output must stay reviewable (onboarding/tests/onboard-lib-test.shcutover-proof fixtures re-proven byte-identical, or deliberately updated with the wording change explained — CLAUDE.md).repaired,replies,escalated,last_seen,thread_id) — a new state key is fine; state written by an older healer must not crash a newer one.$(hostname)) or source it from the identity layer. Never a literal.Acceptance criteria:
@benping; subsequent recurrences post nothing (or a non-pinging thread reply, matchingescalate-noisy).grep -rn 'matou-workstation' *.sh prompts/returns nothing; all four post strings name the running host.tests/heal-test.shand/ortests/heal-lib-test.shupdated in the same commit, pinning both the latch and the ticketed-is-not-repaired routing (repo rule: every lib change updates its test in the same commit).for t in tests/*.sh onboarding/tests/*.sh; do case "$t" in *fakebin*|*fixtures*) continue;; esac; bash "$t" || echo "FAIL: $t"; doneOut of scope:
claim-next-task.sh30s prompt-expansion budget) — that is the fault that exposed this; this ticket is only the messaging ladder.HEAL_COOLDOWN/HEAL_MAX_REPLIESvalues.:zzz:OOM downgrade's own logic — only its hardcoded host string is in scope..sandcastle/FACTORY_REF. This is root-source; it reaches the running self-copy only when a human bumps the pin (GOTCHAS 4). Note that in the close report, do not do it here.Close report — landed on
mainas583e28eAll three defects fixed at the root source, one commit, tests red before green.
Full offline suite green (69 files), clean tree.
1.
escalate-repairedhad no silence latch.ledger_decidereadrepairedabove the reply cap, so every recurrence inside the cooldownreturned
escalate-repaired, the reply counter never moved,escalatedwasnever consulted, and each incident refreshed
last_seen— the window could notexpire while reds kept coming. The
escalatedlatch is now read first,above both ladders (
heal-lib.shledger_decide), and the branch sets it(
heal.sh), mirroringescalate-noisy: say it once, then quiet for the rest ofthe window. The post now also says it is going quiet, so the silence that
follows is not read as the healer dying.
Also fixed on the way, because "at most once per cooldown window" needs it: a
new window (
investigate-stale) clears the previous window's ladder state(
replies,escalated). Without that, a latch set once would have outlived itswindow and turned "once per window" into "once ever".
repairedis deliberatelynot cleared there — a signature that was genuinely repaired once keeps the
loop-breaker armed across windows, which is the pre-existing "never repair
twice" contract. Ruled by agent under ADR 0174 — veto anytime.
2. A filed ticket counted as a repair. New pure classifier
action_is_ticket_onlyinheal-lib.sh: an ACTION-TAKEN line is ticket-only iffit names a filing (filing verb + a ticket noun or a bare
#N) and names no verbthat changed something — so
filed ready-for-agent ticket #77is ticket-only,filed ticket #77 and restarted the runneris a repair. Such an outcome isrecorded as
ticketed=<n>and leavesrepaired=0, so recurrences ride thenormal reply-cap ladder (three replies → one escalation → silence), and each
reply says "a ticket is already filed for this fault — recurrence expected until
the fix lands" instead of a bare "still failing".
Judgement call, on the record: the classifier is a heuristic over agent prose,
and I chose it over adding a field to the diagnosis output contract because a
prompt-skeleton change is fleet-wide blast radius and a consumer whose rendered
prompt lags the pin would silently emit no new field. Both misreadings are now
bounded — it only ever picks which bounded ladder speaks, never whether the
healer can storm. Ruled by agent under ADR 0174 — veto anytime.
3. Hardcoded
on matou-workstation. All four post sites (both escalations,the
:zzz:downgrade, the no-diagnosis alert) now nameHEAL_EVIDENCE_HOST(
SWARM_HOST→hostname). Probe-first, deliberately diverging fromrehearsal-report.sh's #51 chain:heal.shruns on the bare host, sohostnameis ground truth, whereas
RUNNER_HOSTdeclares the ONE host a repo nominates —exactly the value that sent every 2026-08-24 evidence path to a box the
directory does not exist on.
SWARM_HOSTstill wins when set, so the evidenceline and the claim/commit identity agree. No host literal remains in
heal.sh/heal-lib.sh(the historical note names "one product's workstation", the #51precedent).
Proof
tests/heal-lib-test.sh(19 groups): the latch aboverepaired; anunlatched repaired signature still escalates once; the latch holds for the
rest of the window and does not survive cooldown expiry; a 13-case
ticket-only classifier table.
tests/heal-test.sh(14 scenarios): end-to-end, three recurrences after arepaired escalation post nothing and re-ping nobody, and the ledger carries
escalated=1; a ticketed fault over 8 runs produces exactly 3 replies, 1escalation, 3 silences and exactly one
@benping, never taking therepaired path, with
ticketed=1/repaired=0in the ledger; a genuine repairstill marks
repaired=1; the escalation readson box1underSWARM_HOST=box1and no output contains a host literal.SWARM_HOST=elitebook-03)reproduced the same sequence, evidence line included.
Also in the commit
The suite could not prove any of this at first:
tests/heal-test.shinheritedlimit-lib.sh's host-global claude markers, so on a genuinely limit-parkedhost (this one, at session start) every agent-path scenario bailed at the #253
limit gate and the file read as a code red at its first assertion — before my
changes, on clean
main. The markers are now pinned into$workin every runhelper, matching the #586 ambient-token scrub one level in. Recorded as GOTCHAS
29; the ping-storm class itself as GOTCHAS 28.
STATUS.mdheader + the Own swarm row updated in the same commit.Residue
The fix is root-source: it reaches this repo's own running
.sandcastle/copy(and every consumer) only when a human bumps the pin —
bash onboarding/onboard.sh vendor .sandcastle <sha>(GOTCHAS 4). Until thenthe live healer still runs the old ladder. #77 itself (the
claim-next-task.sh30s prompt-expansion budget) is untouched and stays open.