mirror of
https://github.com/garrytan/gstack.git
synced 2026-11-23 00:21:14 +01:00
/ship's review works when the shipped checkout isn't the project's default checkout (GST-3145) (#4507)
/ship's review pass now lets its readers start in a checkout of an unrelated repository, and refuses to start them in any other checkout that holds the review's diff base, such as a sibling worktree or a separate clone of the shipped repository. Why: a project whose default checkout is another repository needed a fresh machine for every /ship review, while a worktree or clone of the same history could read the wrong diff with no error. Nothing to do: the pass still stops before anything starts if the shipped checkout can't be reached. Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
This commit is contained in:
1 parent
12bd33b648
commit
c25390daa2
4 files changed
+90
-31
No files matched your search
@@ -1188,11 +1188,14 @@ ones, and the arm lost blockers. `bin/gstack-review-dispatch` closes both ends:
|
||||
outside voice's tree failure is recorded `unavailable` only when its reply holds no finding. The line catches a reader that
|
||||
worked elsewhere by accident; it is not proof of reading, since diff text can predict it. A `printed:` label
|
||||
before the line (plain, bold or inside its backticks) is still read, and its tree and toplevel are still compared
|
||||
exactly (GST-776). Capy cannot start a subagent in a chosen directory, so before a stage takes a start token or sends
|
||||
its first reader, the Capy pass program compares the checkout with the one shared readers start in (the thread's
|
||||
working directory) and stops when that is another checkout or cannot be read: run /ship in the thread's own checkout.
|
||||
A start directory outside any checkout, such as a multi-repo workspace root, holds no tree to review by mistake and
|
||||
dispatches. Step 11's voices take the `adversarial-review` start
|
||||
exactly (GST-776). Capy cannot start a subagent in a chosen directory, so shared readers start in the thread's working
|
||||
directory, which may be another checkout, such as a project whose default checkout is a different repository. That is
|
||||
allowed: the workspace step's `cd` and the `REVIEWED_TREE` check above cover it (GST-3145). Before a stage takes a
|
||||
start token or sends its first reader, the Capy pass program checks that the shipped checkout can be reached from
|
||||
the directory readers start in, and stops, with nothing taken or dispatched, when it cannot or when readers start in
|
||||
any other checkout that holds the pass's diff base commit, such as another worktree or a clone of the same history:
|
||||
there a command run without its `cd` reads that checkout's diff with no error. A checkout without the diff base
|
||||
fails on that command instead, so it dispatches. Step 11's voices take the `adversarial-review` start
|
||||
token by default, and a `logStart` list without it stops before anything runs. Decision 3.5's fix-check pass turns a
|
||||
`review` start into `review-fix-check`, so its row is never a pass (GST-1031).
|
||||
|
||||
|
||||
Reference in new issue
Block a user