Skip to content

Qualify the Local Review Skill's Merge-Base Command to Match the Engine #2107

Closed

Description

@ptr727

Problem

The local-strict-review Skill tells the reviewer to diff from git merge-base origin/<target> HEAD (its "What It Does" section and the Paths: line of its brief). Git resolves the short name origin/<target> through refs/heads/ before refs/remotes/, so a local branch literally named origin/<target> defines the diff the reviewer reads.

Since the #1235 fix, scripts/local_review.py's merge_base resolves the target as refs/remotes/origin/<target>, so the engine keys the receipt on the true fork point. In the shadowed case the reviewer reads one change set, and status and record --expect-digest attest to another, so check reports a pass covering content nobody read. Before #1235 both halves resolved the short name and agreed, wrongly.

Reproduction

In a scratch repository with refs/remotes/origin/develop at the base commit and a local branch named origin/develop at the task tip, git merge-base origin/develop HEAD returns the tip (git warns that the refname is ambiguous), while local_review.merge_base("develop", ...) returns the base.

Possible direction

Qualify the Skill's commands as refs/remotes/origin/<target>, in the source under .agents/skills/ with the generated trees regenerated by scripts/build_dist.py. Alternatively, have the Skill take the base from the engine's status output (mergeBase), so the reviewer's diff and the receipt's key cannot diverge.

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

    bugpre-existingskills

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions