Skip to content

skills(running-tend): drop the two triage rules tend's fix-a-bug skill now carries - #4189

Merged
max-sixty merged 2 commits into
mainfrom
nightly/clean-overlay-restates-bundled-35427000660
Sep 19, 2026
Merged

max-sixty merged 2 commits into
mainfrom
nightly/clean-overlay-restates-bundled-35427000660

Conversation

@worktrunk-bot

@worktrunk-bot worktrunk-bot commented Sep 19, 2026 •

Copy link
Copy Markdown
Collaborator

Two H3 sections under ## Issue Triage in the running-tend overlay restate rules that tend's bundled fix-a-bug skill carries, so the overlay copies can only drift from them — and one already has.

  • Don't fix tests by adding skip guards duplicates 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 adds skipIf / 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 triage duplicates 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-bug is 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/skills is a symlink to .claude/skills, so the Codex view follows automatically.

…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 worktrunk-bot added the nightly-cleanup Issues found by nightly code quality sweep label Sep 19, 2026

@worktrunk-bot worktrunk-bot left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@max-sixty
max-sixty merged commit a000372 into main Sep 19, 2026
37 checks passed
@max-sixty
max-sixty deleted the nightly/clean-overlay-restates-bundled-35427000660 branch September 19, 2026 16:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

nightly-cleanup Issues found by nightly code quality sweep

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants