Skip to content

skills(ci-fix): label transient-tracker issues tend-outage to suppress no-op cascade - #670

Merged
max-sixty merged 1 commit into
mainfrom
hourly/review-27130895184
Jun 8, 2026
Merged

max-sixty merged 1 commit into
mainfrom
hourly/review-27130895184

Conversation

@tend-agent

Copy link
Copy Markdown
Collaborator

Closes the no-op cascade where every tend-ci-fix transient-tracker issue triggers a silent-exit tend-triage run (on issues.opened) and a silent-exit tend-mention run (on the bot's own close comment). The fix labels the tracker issue with tend-outage so the existing workflow-level if: skips in triage.yaml.j2 and mention.yaml.j2 filter the cascade before any agent boots. tend-outage is already the canonical "skip cascade workflows on this bookkeeping issue" label — the action's "Report failure" step uses it the same way, and the review-reviewers skill's Non-issues section names it explicitly as the accepted shape for loop-prevention.

Evidence

19 ci-fix: transient … issues opened-and-closed within 1–5 seconds by worktrunk-bot since 2026-05-11, all unlabeled, each firing the two-workflow cascade:

# Created Closed Title prefix
#3018 2026-06-08T09:56:35Z +1s transient 504 gateway-timeout wave on 27122253273
#3017 2026-06-08T08:23:57Z +1s transient setup-nu 504 on 27121352081
#2996 2026-06-06T23:09:43Z +1s transient codecov uploader GPG signature failure on 27073218369
#2993 2026-06-06T21:35:04Z +1s transient codecov uploader GPG signature failure on 27072336952
#2974 2026-06-03T16:49:06Z +1s transient Windows DLL-init failure (0xc0000142) on 26888924959
#2963 2026-06-02T15:49:23Z +4s transient lychee 503 on 26825478066
#2958 2026-06-01T19:26:05Z +1s transient macOS profraw cleanup ENOTEMPTY on 26769127359
#2957 2026-06-01T17:47:24Z +5s transient runner disk-full on 26767318774
…11 more in May

This run's occurrence (#3018) fired two visible cascade runs:

  • tend-triage 27129923256 — silent-exit via running-in-ci's "Triggering issue/PR already closed" rule (issue was closed 5 s before the triage run started).
  • tend-mention 27129923378 — silent-exit via the prompt's self-conversation guard (trigger was the bot's own close-out comment).

Per-occurrence cost is ~94 s of tend-mention agent context-load + ~90 s of tend-triage agent context-load — ~3 minutes wasted on every transient. At the observed rate (~4 / week), that's ~12 min/week of cascade no-op cost, growing as CI-flake density grows.

Gate evaluation

  • Evidence level: High — consistent pattern across 19 sessions over 5 weeks, every occurrence reproduces the same cascade. Gate 1 High threshold is 2–3; pass with margin.
  • Classification: Structural — no decision point. Every unlabeled bot-opened-and-closed ci-fix: transient issue produces the same two cascade runs; the agent's silent-exit guards fire correctly each time but only after context-load.
  • Change type: Targeted fix — one gh label create … || true line plus --label tend-outage on the existing gh issue create, mirroring the action's own Report failure pattern. Gate 2 Normal threshold = Gate 1 High = 2–3; pass.
  • Both gates pass: act.

Why tend-outage (not a new label)

  • Already exists in every consumer repo — the action's Report failure step creates it idempotently (gh label create tend-outage … 2>/dev/null || true) and applies it to outage-tracker issues. No generator change, no new label to provision.
  • Workflow-level skip is already wired: triage.yaml.j2:13 and mention.yaml.j2:52-62 already filter tend-outage-labeled issues. The cascade simply doesn't run.
  • The review-reviewers Non-issues list names tend-outage as the canonical example of label-based loop-prevention.
  • Semantically: both shapes (Anthropic action outage, project CI transient) are bot-bookkeeping records of a transient external incident — the nightly enrich-tend-outage-issues.sh only touches open outage issues, so closed transient trackers don't enter that path.

Evidence gist

Full per-run accumulation in the review-reviewers evidence gist for max-sixty/worktrunk 2026-06.

This run: 27130895184.

…s no-op cascade

Every unlabeled ci-fix transient-tracker issue (opened-and-closed within
~1s) fires a silent-exit tend-triage on issues.opened and a silent-exit
tend-mention on the bot's own close comment — ~3 min of wasted agent
context-load per occurrence. 19 occurrences observed on max-sixty/worktrunk
since 2026-05-11. The tend-outage label is already wired through the
workflow-level `if:` skips in triage.yaml.j2 and mention.yaml.j2 and is
the canonical loop-prevention label per the review-reviewers Non-issues
list; the action's own Report-failure step applies it the same way.
@tend-agent tend-agent added the claude-behavior Behavioral issues found by review-reviewers label Jun 8, 2026
@max-sixty

Copy link
Copy Markdown
Owner

ok, though surely we do want to try to triage the outage?

@tend-agent

Copy link
Copy Markdown
Collaborator Author

Worth pulling apart what "triage" would look like here — I think the answer is that ci-fix already did it, and the cascade runs we're suppressing produce nothing today:

  1. The issue body is the triage output. ci-fix runs the full diagnosis (failure mode, root cause, "transient — no fix needed") before opening the tracker, then opens-and-closes it with that diagnosis in the body. A fresh tend-triage agent has strictly less context than the ci-fix run that just wrote the body — re-running it just duplicates the analysis.

  2. The cascade runs are no-ops today, verified. On worktrunk#3018 (this run's occurrence), neither cascade workflow posted anything — only the bot's own close-out comment is on the issue. tend-triage silent-exits because the issue was closed ~5 s before it started; tend-mention silent-exits via the self-conversation guard (its trigger was the bot's own close-out comment). The PR moves that exit from "after agent context-load" to "before the job runs."

  3. Same shape as action Report failure issues. Those already carry tend-outage and skip the cascade for the same reason — the issue body is the bookkeeping record of a transient external incident, and re-triaging just produces a duplicate (or, for persistent outages, a loop the workflow-level filter was added to break).

If the underlying ask is cross-occurrence pattern detection — "this is the 3rd setup-nu 504 this week, maybe pin a version" — that's a useful thing but it's a different shape than today's tend-triage / tend-mention, which look at one issue at a time. Happy to file that as a separate issue if it's worth doing.

@max-sixty
max-sixty merged commit 131183e into main Jun 8, 2026
5 checks passed
@max-sixty
max-sixty deleted the hourly/review-27130895184 branch June 8, 2026 14:28
@max-sixty max-sixty mentioned this pull request Jun 11, 2026
max-sixty added a commit that referenced this pull request Jun 11, 2026
Bumps the generator version to 0.1.4, syncs the lockfile, and adds the
0.1.4 CHANGELOG section (published as the GitHub Release notes on tag
push).

Notable changes since 0.1.3:

- Claude harnesses switch to `bypassPermissions` (#677)
- GitHub Releases publish from `CHANGELOG.md` on tag push (#678) — this
release is the first live exercise of that workflow
- Interactive sandbox receives GitHub Actions context env vars (#664)
- install-tend bot-token step restructured around scope-audit
remediation (#680)
- Review skill checks the rollup before APPROVE (#667);
running-in-ci/triage/ci-fix skill refinements (#661, #666, #669, #670,
#671)

> _This was written by Claude Code on behalf of max_

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-authored-by: Claude Fable 5 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

claude-behavior Behavioral issues found by review-reviewers

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants