healer watchdog: watchdog_detect groups runs by JOB name, so four workflows' publish jobs share one streak bucket — a phantom release-publish streak billed a full investigation #2056
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#2056
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?
Filed by the healer (
heal-Matou-idss-1792738980-1510695, watchdog pass of 2026-10-23 07:02 UTC, signatured7a36c36cdb3). The fault is in.sandcastle/heal-lib.sh, which the heal charter forbids me to modify — hence a ticket. Protected path (.sandcastle), soready-for-human.Symptom
The trigger line was
watchdog: streak (no verdict for workflow release-publish). But in the veryruns.jsonthe detector read,release-publishhad no streak of its own — its terminal runs, newest first, werefailure(52357), success(52351), success(52347).Cause
watchdog_detect(heal-lib.sh~line 207) groups by.name:.nameon theactions/tasksendpoint is the job name, and the job name is not unique across workflows. Four workflows in.forgejo/workflows/declare a job keyedpublish:So all four land in ONE bucket. The bucket this pass built, reproduced with the shipped function against the incident's own evidence:
$runs[0].status == "failure" and $runs[1].status == "failure"is true only because rows 1 and 2 are different workflows. The emitted label then takes$runs[0].workflow—release-publish— and the incident is reported as that workflow's streak. Neither workflow had two consecutive failures; the healer should have been silent this tick.Reproduction (on
matou-dev-server-01):The same conflation can also mint an
always-redacross hosts:cache-publishruns onmatou-workstationwhile the other three run onelitebook-03, so one wedged host's reds can fold into the other host's workflow label.Why the existing comment did not catch it
The function's comment block was written for exactly this class — #1045 moved the emitted label from
.nameto.workflow_id, and the block states "Grouping stays per-.name(each job keeps its own streak)". That premise is what is false: a job name is unique per workflow, not per repo. The label was fixed one layer above the key.Suggested shape (for the human to rule on)
Group on the workflow — or on the pair, if per-leg streaks are still wanted:
Grouping on
.workflow_idalone also collapses a matrix's legs onto one incident, which the comment block already names as desirable. Either way the key must include the workflow, so two workflows can never interleave into one streak.Worth a
scripts/tests/case: a fixture with interleavedrelease-publish/reseed-publishpublishrows must emit nothing.Related
Evidence
/tmp/matou-heal-Matou-idss.v1QOyjonmatou-dev-server-01(runs.json,prompt.txt). No repair attempted; no containers started.The real fault this phantom alert happened to point at is filed as #2057 (
elitebook-03degraded since ~03:24 UTC — every pinned job burns its timeout ceiling). Two of that host's workflows are in the conflatedpublishbucket described above, which is how one isolated failure in each read as a streak in one.Second sighting, 2026-10-23 16:02 UTC (healer
heal-Matou-idss-1792771387-2805806, signature34d79489ef32, evidence/tmp/matou-heal-Matou-idss.sQJGUg). The conflation is confirmed still live, but with a wrinkle worth pinning before anyone fixes it: this time the alert was not a phantom.The bucket
.name == "publish"held three rows from two workflows:All three failures, so the shipped detector emitted
reseed-publish always-red. Butreseed-publish's own rows in isolation arefailure(52383), failure(52377)— ≥2 terminal runs, all failed. The suggested regrouping on(.workflow_id, .name)therefore still emitsreseed-publish always-redhere, correctly, and would additionally have stayed silent onrelease-publish(one failure).So the fix is safe against this payload rather than merely untested on it — but the
scripts/tests/fixture should assert both directions, not just the silence case:release-publish/reseed-publishrows with no per-workflow streak → emit nothing (the 07:10 phantom);reseed-publishfailures alongside onerelease-publishfailure → emitreseed-publish always-redand nothing forrelease-publish(this payload).Without (2) a regrouping that over-corrects — say, dropping a bucket whose rows span workflows — would have swallowed a genuine always-red on a rail that has been dark since 03:24 UTC (#2057, now escalated).
No repair attempted;
.sandcastle/heal-lib.shremains out of charter. No containers started./is 100% full (0 bytes free) because /etc/cron.d/swarm-prune still points at the rootless docker socket — every task landing on its runner dies in 1-3s at Set up job, includingswarm-pool triage/resume-asks #2076/is 100% full (0 bytes free) because /etc/cron.d/swarm-prune still points at the rootless docker socket — every task landing on its runner dies in 1-3s at Set up job, includingswarm-pool triage/resume-asks #2076workflow preparedwith ENOSPC on /home/swarm/.cache/act, so ~1 in 3 pool-label triage/resume-asks/ci ticks reds instantly (#2076 mechanism, second host) #2174