Skip to content

Deferred review finding: bin/gstack-review-dispatch:158 — pass computes the diff base as git merge-base <base> HEAD  #3693

Closed

Description

@capy-ai

Filed by /ship's pre-landing review of branch gsta161/opus-lite-loadout (head bb539ba). The finding is in code that PR did not change, so it was deferred here instead of being fixed there (review scope frozen after pass 1).

  • Severity: CRITICAL
  • Where: bin/gstack-review-dispatch:158
  • Finding: pass computes the diff base as git merge-base <base> HEAD from the bare --base value, and line 165 does the same for mergeBase. render --role targeted (line 97) tries origin/<base> first. On Capy machines the local main is never updated after the clone. Here it is edf4c2e (v1.91.307.0), while git merge-base origin/main HEAD is 02da1a0. So this pass built every reader's DIFF_BASE from a range 62 commits too wide: 239 non-test files against the PR's real 27. Specialist findings, the red team and the receipt therefore certify review of a range that is mostly code already on main, and the PR's real change gets a fraction of the attention. In the same state a targeted reader would fail with BriefError, because its diff_base (local merge base) differs from the origin merge base that render checks.
  • Suggested fix: Resolve the base the way render does: try origin/<base> before <base> in pass, for both diffBase and mergeBase. Alternatively, refuse when the local base is behind origin/. Then rerun this /ship review pass with --diff-base $(git merge-base origin/main HEAD) before you trust its findings or receipt.
  • Found by: red-team

Activity

  1. added
    S3
    on Oct 31, 2026
  2. capy-ai commented on Nov 1, 2026

    @capy-ai
    ContributorAuthor

    Thanks for filing this. It's fixed on main by #3780 (v1.92.17.0): gstack-review-dispatch pass now takes the diff base and merge base from origin/<base> first (mergeBaseWith in bin/gstack-review-dispatch), the same way render --role targeted does. Closing as fixed.

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

    S3

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions