Skip to content

Session prompts name origin/<base> as the review's fixed point #1899

Closed

Description

@JacobStephens2

This was generated by AI during triage.

From the 2026-11-09 retro of thirdshift's own runs.

Agent Brief

Category: enhancement
Summary: Session prompts tell the session to review "using <base> as the fixed point". The local branch of that name can be behind origin, and the session can't update it, because another worktree has it checked out. thirdshift's own comparisons use origin/<base>, and the prompts should name the same ref.

Current behavior:

  • The fresh prompt says: "The base branch is <base>. Review with the thirdshift-code-review skill using <base> as the fixed point." The other prompts that take the Base branch name it the same way: continuation, pull_request_review, code_review and spec_review.
  • For a Ticket run in a Spec run, <base> is the Spec branch. The Spec run's worktree has it checked out, and it falls behind origin each time a sibling Ticket's pull request merges. For another Ticket run it is the Launch directory's branch, which can fall behind origin while the run works.
  • With a stale fixed point, git diff <base>...HEAD also shows work that has merged since.
  • A session that notices tries to move the branch and fails, because git won't update a branch that a worktree has checked out:
$ git fetch origin issue-706:issue-706
fatal: refusing to fetch into branch 'refs/heads/issue-706' checked out at '…'
$ git branch -f issue-1768 origin/issue-1768
fatal: cannot force update the branch 'issue-1768' used by worktree at '…'

13 implement sessions did this between 2026-10-29 and 11-09: on Spec branches, and once on main.

  • thirdshift itself branches from, merges and compares against origin/<base>.

Desired behavior:

  • Every Session prompt that gives a Base branch as the review's fixed point gives its remote-tracking ref, origin/<base>.
  • The pull request target stays <base>: "create a pull request against <base>" is unchanged.
  • A prompt whose fixed point is a commit, such as the conflict Repair's own head, is unchanged.

Key interfaces:

  • The prompt builders that take the Base branch: fresh, continuation, pull_request_review, code_review and spec_review.
  • The generated prompts/ pages and the site's prompts page, regenerated from their sources.

Acceptance criteria:

  • The fresh prompt for Base branch main contains "using origin/main as the fixed point" and "pull request against main".
  • The same holds for every other prompt that names a Base branch as its fixed point.
  • The conflict Repair prompt's fixed point is unchanged.
  • cargo test prompts_page passes with the regenerated pages committed.

Out of scope:

  • Fetching during a session. thirdshift already samples origin before the session starts.
  • The thirdshift-code-review skill's own text.
  • How this repository's documents name the ref passed to scripts/affected-tests.

Activity

  1. added
    enhancement
    ready-for-agent
    in-progress
    and removed
    ready-for-agent
    on Nov 9, 2026
  2. removed
    in-progress
    on Nov 10, 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