Skip to content

fix(ci-fix): track repeat occurrences in transient classifier - #506

Merged
max-sixty merged 1 commit into
mainfrom
fix/issue-505
May 15, 2026
Merged

max-sixty merged 1 commit into
mainfrom
fix/issue-505

Conversation

@tend-agent

Copy link
Copy Markdown
Collaborator

Problem

The bundled ci-fix skill's §3a transient classifier evaluates each failure in isolation. The three criteria (recent success on same code path, filesystem/network shape, matching upstream incident) don't look at the bot's own classification history, so a failure that recurs across multiple sessions can be classified "transient" each time. PRQL's recent macOS rustup-init flake was misclassified four times in 8.5 hours before finally being diagnosed as structural.

Solution

Two changes to §3a of plugins/tend-ci-runner/skills/ci-fix/SKILL.md:

  1. Repeat-occurrence escalation — before applying the transient path, query bot-filed ci-fix: issues from the past 7 days. If 2+ match the current failure shape, escalate to durable: search for an upstream workaround, otherwise file a fix PR with a minimal mitigation and link the tracking issue.
  2. Tighten the success-prior criterion — "a recent prior run" → "the most recent 5 prior runs" so an isolated success amid a streak of failures doesn't trigger the transient path.

Testing

Skill-text change, no executable tests. The added recipe uses standard gh issue list --search syntax and the same (now - 7*86400) jq pattern already used elsewhere in the skill set.


Closes #505 — automated triage

Adds a repeat-occurrence escalation before applying the transient path:
query bot-filed ci-fix: issues from the past 7 days, and if 2+ match the
current failure shape, treat as durable. Also tightens the "recent prior
run" criterion to "most recent 5 prior runs" so a single success amid a
streak of failures doesn't reinforce the wrong classification.

Closes #505

Co-Authored-By: Claude <[email protected]>
@max-sixty
max-sixty merged commit 0ac92d1 into main May 15, 2026
4 checks passed
@max-sixty
max-sixty deleted the fix/issue-505 branch May 15, 2026 21:58
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.

ci-fix: transient classifier ignores repeat occurrences

2 participants