Skip to content

skills(triage): add rules against test-skip fixes and parallel same-root-cause PRs - #394

Merged
max-sixty merged 1 commit into
mainfrom
fix/issue-393
May 8, 2026
Merged

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

Conversation

@tend-agent

Copy link
Copy Markdown
Collaborator

Problem

Triage feedback from a run in max-sixty/worktrunk (PR #2633) surfaced two patterns the bundled triage skill doesn't currently guard against:

  1. The triage run "fixed" a failing test by inserting an early-return that silently bailed when the bug fired, removing coverage instead of restoring the assertion.
  2. An outstanding PR (worktrunk #2625) had been merged ~3 minutes earlier with a production-code fix for the same root-cause class. The triage PR's own body even named it as same-root-cause — but Step 3's duplicate check only catches identical fixes, not the same root cause class, different surface pattern, so the run shipped a parallel narrow workaround anyway.

worktrunk's overlay captured both rules in worktrunk PR #2639; both look generalizable to every tend consumer, hence promoting them to the bundled skill.

Solution

Two new subsections under Step 6 of plugins/tend-ci-runner/skills/triage/SKILL.md:

  • Don't "fix" tests by adding skip guards — names the smell patterns (newly-added early-returns, fresh #[ignore], pytest.skip keyed on the failing condition).
  • Defer to in-flight same-root-cause PRs — when triage analysis itself names an existing PR as same-root-cause, that's the signal to wait, not to ship a parallel workaround.

Both are strict additions. Step 3's existing duplicate-check guidance and Step 6's "Fix the root cause (not just the symptom)" remain in place; the new rules fill gaps neither covered.

Testing

pre-commit run --files plugins/tend-ci-runner/skills/triage/SKILL.md passes (trim trailing whitespace, fix end of files, typos, forbid bang-backtick).


Closes #393 — automated triage

@max-sixty
max-sixty merged commit 50c6b91 into main May 8, 2026
3 checks passed
@max-sixty
max-sixty deleted the fix/issue-393 branch May 8, 2026 18:25
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.

skills(triage): add rules against test-skip fixes and parallel same-root-cause PRs

2 participants