Skip to content

skills(running-tend): prefer CI rerun over exclude list for transient failures - #2050

Merged
max-sixty merged 1 commit into
mainfrom
daily/review-runs-24233412050
Apr 10, 2026
Merged

max-sixty merged 1 commit into
mainfrom
daily/review-runs-24233412050

Conversation

@worktrunk-bot

Copy link
Copy Markdown
Collaborator

Problem

Run 24223378129 (tend-ci-fix) opened #2045 to add caddyserver.com to the lychee exclude list after a single link-check timeout. Maintainer closed the PR 21 seconds after it was created, because they had already rerun CI (attempt 2 passed) — the underlying link was fine; the first attempt was a transient network blip.

Timeline from the workflow run attempts API:

The bot's own reasoning in the session log actually flagged the failure as transient ("previous CI run an hour earlier passed fine"), but proceeded with a permanent config change anyway — the ci-fix skill has no guidance for classifying infrastructure flakes as "do not fix."

Solution

Add a "CI Fix: Prefer Rerun for Transient Infrastructure Failures" section to .claude/skills/running-tend/SKILL.md that:

  1. Tells ci-fix to classify failures before opening a PR (transient infra / flaky test / real regression).
  2. Calls out lychee link-check timeouts as always transient unless the same URL has failed on ≥2 separate runs within the last few days.
  3. Lists the signals that distinguish a transient failure from a broken link (previous run on same commit passed, only [TIMEOUT] reported, reachable from local curl).
  4. Tells the bot to comment on the run and wait rather than open a churn PR.

This is repo-local guidance only — no change to the generic tend-ci-runner skill or to .config/lychee.toml itself (which already sets max_retries = 6 and maintains an exclude list for genuinely unreliable hosts).

Evidence and gate assessment

  • Classification: Structural. The ci-fix skill's decision path would recur for any future transient infrastructure blip — lychee, apt-get, codecov upload, runner disk. One clear occurrence of the pattern is enough for a targeted fix.
  • Confidence: High for this specific ci-fix outcome — the maintainer's close+rerun action is unambiguous ground truth that the bot's PR was the wrong response.
  • Magnitude: Targeted fix (new section in an existing skill overlay). Passes Gate 2 at the "High confidence / Normal bar" intersection.
  • Scope check: Previous ci-fix runs (24163478291, 24164619577) correctly skipped known-flaky PTY shell tests without opening PRs, so the bot already understands "flaky test → don't fix." The new guidance extends that intuition to infra/link-check flakes, which weren't covered before.

Testing

Skill overlay is documentation only. Content will exercise on the next ci-fix trigger. No code changes; no test suite to run.


Automated fix for failed run (tend-ci-runner review-runs).

… failures

Add guidance to skip fix PRs for transient infrastructure failures
(link-check timeouts, apt-get flakes, runner blips). The ci-fix run
24223378129 opened PR #2045 excluding caddyserver.com from lychee after
a single timeout; max-sixty rerun CI instead (attempt 2 passed) and
closed the PR 21 seconds after it was created. The bot correctly
identified the failure as transient ("previous CI run an hour earlier
passed fine") but still chose a permanent config change.

Co-Authored-By: Claude Opus 4.6 <[email protected]>
@max-sixty
max-sixty merged commit b0d23c2 into main Apr 10, 2026
22 checks passed
@max-sixty
max-sixty deleted the daily/review-runs-24233412050 branch April 10, 2026 13:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants