Skip to content

A bug Continuation whose branch already fixes the bug hands back needs-info #1373

Closed

Description

@JacobStephens2

Problem

A Continuation of a bug issue whose Issue branch already holds the fix hands the issue back as needs-info, instead of finishing.

#1362 is the case.

  • The first Ticket run committed and pushed the fix (0bc80be5), then failed on a provider capacity error.
  • Its recovery Continuation, thirdshift <issue URL> merge …, started a session whose prompt asks it to "use diagnosing-bugs to reproduce A model-at-capacity error fails a Trial instead of voiding it #1362 before changing production code, building on the commits already on issue-1362. If reproduction fails, hand back needs-info".
  • The session ran the fix's own regression tests on the branch, and they passed. The bug therefore "could not be reproduced". The session posted Triage Notes asking for evidence of the failure in a build containing 0bc80be5, and swapped the label to needs-info.
  • So the finished fix got no review and no PR, and the issue is now parked as needs-info.

Reproducing a bug on a branch that already fixes it can't succeed. Reproduction belongs at the Base branch, or at the branch's merge base with it.

Second problem in the same Run: the Claim was lost

What to build

  1. Continuations. When an Issue branch already has commits beyond the Base branch, a bug Ticket run's reproduction step reproduces at the merge base (or the Base branch) and checks the fix on the branch. It hands back needs-info only when the bug doesn't reproduce at the base either. Otherwise it continues to review, the PR and merge.
  2. Claims. Find what restored ready-for-agent on A model-at-capacity error fails a Trial instead of voiding it #1362 at 08:41:26 EDT on 2026-10-26, and make sure nothing removes a live Claim while its Run is running. The evidence is in ~/.thirdshift/logs/JacobStephens2/thirdshift/commands/issue/1362-20261026T084033-0400~OTgh4MOGFKHJDxFL* and in the issue's timeline.

Acceptance criteria

  • A fake Continuation of a bug issue whose branch fixes the bug reproduces at the merge base, sees the branch's fix pass, and goes on to review and the PR. It doesn't hand back needs-info.
  • A bug that doesn't reproduce at the base still hands back needs-info, as today.
  • The cause of the 08:41:26 label change is identified in the PR, and a test shows a running Run's Claim survives whatever caused it.

Activity

  1. added
    bug
    ready-for-agent
    in-progress
    and removed
    ready-for-agent
    on Oct 26, 2026
  2. JacobStephens2 commented on Oct 26, 2026

    @JacobStephens2
    OwnerAuthor

    Triage Notes

    What we've established so far:

    • Investigated checkout 8fcee47c on issue-1373, using the supplied issue file and the diagnosis skill. The Continuation problem and the unexplained live Claim loss have different evidence limits.
    • A temporary fake Continuation fixture put behavior.txt = broken on main and behavior.txt = fixed on issue-7. Its scripted agent mirrored A model-at-capacity error fails a Trial instead of voiding it #1362's probe of the already-fixed checkout. Running cargo test --test bug_run a_continuation_reproduces_at_its_baseline_and_delivers_the_existing_fix -- --exact --nocapture compiled successfully and then failed with exit 101: expected https://github.com/acme/widgets/pull/1, received https://github.com/acme/widgets/issues/7#issuecomment-42. This exercises the incorrect handoff path; it does not reproduce the cause of the separate live Claim removal.
    • Read A model-at-capacity error fails a Trial instead of voiding it #1362's label events with gh api --paginate repos/JacobStephens2/thirdshift/issues/1362/events, selecting label events only. Events 34258750110 and 34258750215 confirm removal of in-progress and application of ready-for-agent at 2026-10-26 12:41:26 UTC / 08:41:26 EDT. Both name JacobStephens2; both have performed_via_github_app: null. Those fields do not identify the browser, command, process, or token client that sent the edit.
    • The supplied 1362-20261026T084033-0400~OTgh4MOGFKHJDxFL Command log and Session trace show the Claim being made at 08:40:38, read-only work around 08:41:26, and the Session continuing until 08:47:55. No Claim release or label-edit command appears at the disputed time. The later Pickup log confirms another Claim at 08:46:15 and failure against the occupied worktree.
    • Narrow checks of overlapping factory logs, relevant operator/Harness tool histories, and retained evidence on the second host found no matching label writer. The current Claim code ends Claims after the Run returns; no actual operation causing this mid-Run removal was identified. Replaying a deliberate external relabel would assume the cause rather than test whatever caused these events.
    • The live Claim-loss trigger therefore remains unreproduced: we cannot yet write an unattended regression showing that the running Run's Claim survives that actual trigger. Production code is unchanged; the exploratory fixture was removed and the working tree is clean. No commit, push, or PR was created. Following the skill's missing-artifact ending for this unresolved part of the issue.

    What we still need from you (@JacobStephens2):

    • A command/client-side HTTP audit record for the 08:41:26 EDT label edit, identifying the client or process and the label request payload, or the specific operator action and repeatable steps that produced it. Please redact credentials. If another script or service shares the operator token, its relevant command/log/configuration is the missing artifact.
    • This is needed to distinguish a factory Claim-ending bug from an independent label writer and to test Claim survival against the real operation. The Continuation handoff itself does not need another failing-build report.
  3. added
    needs-info
    and removed
    in-progress
    on Oct 26, 2026
  4. JacobStephens2 commented on Oct 26, 2026

    @JacobStephens2
    OwnerAuthor

    This was generated by AI during triage.

    Agent Brief

    Category: bug
    Summary: When a bug Continuation's Issue branch already has commits beyond the Base branch, reproduce the bug at the branch's merge base with the Base branch, not on the branch itself, so a fix that's already pushed goes on to review and a PR instead of coming back as needs-info.

    Scope change: This issue now covers only the first half, Continuations. The lost Claim at 08:41:26 EDT turned out to be a manual relabel by the operator, part of a cleanup that also touched #1363 and #1365. No thirdshift code removed it. Whether a Run should notice a lost Claim is now tracked in #1376. Drop the original acceptance criterion about the cause of the 08:41:26 change.

    Current behavior:
    A bug Ticket run starts with the thirdshift-diagnosing-bugs skill, which must reproduce the bug before production code changes. If it can't, the run ends with Bug not reproduced: <comment URL>, posts Triage Notes and swaps the label to needs-info. In a Continuation, the session runs in a worktree of the existing Issue branch. When an earlier Run already committed and pushed the fix there, as in #1362 (0bc80be5), the fix's own tests pass on the branch. The session reports "not reproduced", and the finished fix gets no review and no PR.

    The earlier Pickup run on this issue reproduced the defect with a temporary fake: behavior.txt = broken on main and fixed on issue-7, with a scripted agent that probes the checkout as #1362's session did. It expected the PR URL https://github.com/acme/widgets/pull/1 but got the triage comment URL https://github.com/acme/widgets/issues/7#issuecomment-42.

    Desired behavior:

    • When a bug Ticket run continues an Issue branch with commits beyond the Base branch, the diagnosis checks the bug at the merge base of the Issue branch and the Base branch, then checks the fix on the branch.
      • The bug reproduces at the merge base and the branch fixes it: this is the reproduced ending. The run goes on to whatever implementation is still needed, then review, the PR and merge, as for any reproduced bug.
      • The bug reproduces at the merge base but not on the branch's fix: the reproduced ending, and the session finishes the fix.
      • The bug doesn't reproduce at the merge base either: the not-reproduced ending (needs-info), as today.
    • A fresh bug Ticket run, or a Continuation whose Issue branch has nothing beyond the Base branch, behaves as it does now.
    • The session learns from its prompt or Continuation facts that it is continuing, and what the merge base is. It shouldn't have to infer that from git history. The Factory skill thirdshift-diagnosing-bugs and the bug diagnosis prompt (diagnosing_bugs, and the Continuation facts it keeps) say where to reproduce.

    Key interfaces:

    • The bug diagnosis Session prompt and the Continuation facts it carries: add the merge base (commit or ref) when the Issue branch is ahead of the Base branch.
    • The thirdshift-diagnosing-bugs Factory skill: its reproduction step names the merge base as the place to reproduce in a Continuation, and the branch as the place to confirm the fix.
    • The completion lines Bug reproduced: fixed and Bug not reproduced: <comment URL> don't change.
    • Prompts are generated: edit the sources and regenerate prompts/ and the site fragment with UPDATE_PROMPTS=1 cargo test prompts_page.

    Acceptance criteria:

    • A fake Continuation of a bug issue whose Issue branch already fixes the bug (broken at the merge base, fixed on the branch) ends with a PR and goes on to review. It doesn't hand back needs-info or post Triage Notes.
    • A fake Continuation of a bug that doesn't reproduce at the merge base still hands back needs-info, as today.
    • A fake fresh bug Ticket run, with no Issue branch beyond the Base branch, behaves as before.
    • A test checks that the Continuation's diagnosis prompt names the merge base, and the generated prompts are regenerated and pass cargo test prompts_page.
    • Any hand-written site page that describes bug diagnosis in Continuations is updated to match.

    Out of scope:

  5. added
    ready-for-agent
    in-progress
    and removed
    needs-info
    ready-for-agent
    on Oct 26, 2026
  6. JacobStephens2 commented on Oct 26, 2026

    @JacobStephens2
    OwnerAuthor

    Retrying on codex. The 10:42 Run failed on a grok API error (HTTP 400 Bad Request) during implementation; nothing about the issue changed. Branch issue-1373 is reused.

  7. removed
    in-progress
    on Oct 26, 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

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions