Skip to content

consider thirdshift diagnosing-bugs skill for issues labeled bug #957

Closed

Description

@JacobStephens2
No description provided.

Activity

  1. added
    enhancement
    needs-triage
    on Oct 21, 2026
  2. JacobStephens2 commented on Oct 21, 2026

    @JacobStephens2
    OwnerAuthor

    This was generated by AI during triage.

    Agent Brief

    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.
    • prompts/ is regenerated and cargo test passes.

    Out of scope:

  3. added
    ready-for-agent
    in-progress
    and removed
    needs-triage
    ready-for-agent
    in-progress
    on Oct 21, 2026
  4. removed
    in-progress
    on Oct 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions