You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
consider thirdshift diagnosing-bugs skill for issues labeled bug #957
Category: enhancement Summary: Runs on bug issues reproduce the bug before fixing it, using a new headless Factory skill
Current behavior:
Every Run's implement session gets the same prompt, starting /thirdshift-implement <issue URL>, whatever the issue's labels. Nothing makes a Run on a bug issue reproduce the bug before changing code. The Day shift's diagnosing-bugs skill does that: build a feedback loop, reproduce, minimise, hypothesise, instrument, fix, and add a regression test. But it is written for an interactive session with a human in the loop, and it isn't a Factory skill. #52 is the wider idea of turning a bug report into a PR fix.
Desired behavior:
Settled with the maintainer during triage: a new Factory skill, thirdshift-diagnosing-bugs, adapted from the Day shift's diagnosing-bugs for headless sessions. It drops the human-in-the-loop steps and always ends with an outcome the Run can act on.
When a Run's issue carries the bug label, its implement session uses that skill before changing code, in a fresh Run and in a Continuation. Runs on other issues keep today's prompt.
Reproduced: the session first writes a regression test that fails for the reported reason, then fixes the bug so the test passes. As PRs already do, the PR's Evidence shows the test failing before the fix and passing after.
Not reproduced: the session doesn't guess at a fix. It comments on the issue with what it tried and what it would need, in the triage notes format (what's established, what's still needed). It swaps ready-for-agent for needs-info so Pickup doesn't take the issue again. It ends with a final line the Run recognises, like the Security audit's complete and incomplete lines. The Run then ends without opening a pull request, with an outcome and notification that say the bug wasn't reproduced and link the comment, not as a failed session.
The Prompts and skills page and the generated prompts/ show the new skill and prompt text.
Key interfaces:
The Factory skills embedded from the repository's skills directory (SKILLS), written out and linked into each worktree for the Harness (ADR-0012).
The implement prompts, prompt::fresh and prompt::continuation, which don't take the issue's labels today.
The final-line pattern of the Security audit prompt (AUDIT_COMPLETE_LINE, AUDIT_INCOMPLETE_LINE), as a model for the "not reproduced" ending.
The generated prompts/ (regenerate with UPDATE_PROMPTS=1 cargo test prompts_page) and the Prompts and skills page.
Acceptance criteria:
A Run on an issue labelled bug gives its implement session a prompt that uses thirdshift-diagnosing-bugs. A Run on an enhancement or unlabelled issue gets today's prompt unchanged.
thirdshift-diagnosing-bugs ships as a Factory skill: it is linked into Run worktrees with the others and listed on the Prompts and skills page.
The skill has no step that waits for a human. It states both endings: reproduced (failing test first, then the fix) and not reproduced (comment, needs-info, no PR).
A Run whose session ends "not reproduced" opens no PR, merges nothing, and ends with an outcome that says so, not a session failure.
Activity
JacobStephens2 commentedon Oct 21, 2026
Agent Brief
Category: enhancement
Summary: Runs on
bugissues reproduce the bug before fixing it, using a new headless Factory skillCurrent behavior:
Every Run's implement session gets the same prompt, starting
/thirdshift-implement <issue URL>, whatever the issue's labels. Nothing makes a Run on abugissue reproduce the bug before changing code. The Day shift'sdiagnosing-bugsskill does that: build a feedback loop, reproduce, minimise, hypothesise, instrument, fix, and add a regression test. But it is written for an interactive session with a human in the loop, and it isn't a Factory skill. #52 is the wider idea of turning a bug report into a PR fix.Desired behavior:
thirdshift-diagnosing-bugs, adapted from the Day shift'sdiagnosing-bugsfor headless sessions. It drops the human-in-the-loop steps and always ends with an outcome the Run can act on.buglabel, its implement session uses that skill before changing code, in a fresh Run and in a Continuation. Runs on other issues keep today's prompt.ready-for-agentforneeds-infoso Pickup doesn't take the issue again. It ends with a final line the Run recognises, like the Security audit's complete and incomplete lines. The Run then ends without opening a pull request, with an outcome and notification that say the bug wasn't reproduced and link the comment, not as a failed session.prompts/show the new skill and prompt text.Key interfaces:
SKILLS), written out and linked into each worktree for the Harness (ADR-0012).prompt::freshandprompt::continuation, which don't take the issue's labels today.AUDIT_COMPLETE_LINE,AUDIT_INCOMPLETE_LINE), as a model for the "not reproduced" ending.prompts/(regenerate withUPDATE_PROMPTS=1 cargo test prompts_page) and the Prompts and skills page.Acceptance criteria:
buggives its implement session a prompt that usesthirdshift-diagnosing-bugs. A Run on anenhancementor unlabelled issue gets today's prompt unchanged.thirdshift-diagnosing-bugsships as a Factory skill: it is linked into Run worktrees with the others and listed on the Prompts and skills page.needs-info, no PR).prompts/is regenerated andcargo testpasses.Out of scope:
diagnosing-bugsskill.