Repository navigation
skills(running-tend): drop the two triage rules tend's fix-a-bug skill now carries - #4189
Conversation
…l now carries The skip-guard and same-root-cause sections restate bundled rules, and scope them to triage when fix-a-bug applies them to every workflow. Keep only the worktrunk-specific test-setup guidance, as an addition to the bundled rule.
worktrunk-bot
left a comment
There was a problem hiding this comment.
The rule this keeps — reworking a test that leans on inherited state — is still an H3 under ## Issue Triage, which is the scope defect the PR body names ("both overlay copies sit under ## Issue Triage, so they read as triage-only rules"). Deferring the two general rules to fix-a-bug does fix their scope, because that skill loads before any fix in any workflow. The worktrunk-specific remainder inherits the old placement instead, so a nightly-sweep or ci-fix session reading the overlay still finds it filed under triage and hand-rolls its own test setup rather than reaching for TestRepo::with_initial_commit() plus a tempdir.
The overlay already has the shape for a rule that outgrew triage: ## Weigh the root-cause fix before shipping a workaround is an H2 that closes with "This governs every workflow that opens a PR here, not just issue triage." Promoting the retained rule to an H2 beside ## Test Commands gives it the same reach. Pushing that as a follow-up commit.
Two H3 sections under
## Issue Triagein therunning-tendoverlay restate rules that tend's bundledfix-a-bugskill carries, so the overlay copies can only drift from them — and one already has.Don't fix tests by adding skip guardsduplicates bundled Don't "fix" tests by adding skip guards, down to the same smell list (let Ok(_) = … else { return };,if !path.exists() { return; },#[ignore]). The bundled version is already wider: it addsskipIf/pytest.skip, and it leads with the test that generalizes — does the change restore the assertion, or remove coverage for the failing scenario?Same-root-cause-class triageduplicates bundled Defer to in-flight same-root-cause PRs, with nothing left over.The drift that matters is scope. Both overlay copies sat under
## Issue Triage, so they read as triage-only rules;fix-a-bugis loaded before any fix in any workflow, so the bundled rules bind a nightly sweep and a CI-fix run too. A session reading the overlay alone could conclude a skip guard is fair game outside triage. That's the same correction #4086 made for the root-cause rule.So this PR deletes both sections and keeps only what is genuinely worktrunk's, as an addition to the bundled rule rather than a restatement of it: a test leaning on inherited state reworks its own setup via
TestRepo::with_initial_commit()plus a tempdir. That survivor moves to a top-level section beside the test commands, since it is no more triage-specific than the rules it defers to, and says so explicitly.Both rules were added by #2639, whose own body flagged that the skip-guard one "may also generalize beyond worktrunk" — it since has.
No regression test: this is instruction text with no code path to exercise. The overlay carries no cross-references to either heading, and
.agents/skillsis a symlink to.claude/skills, so the Codex view follows automatically.