mirror of
https://github.com/garrytan/gstack.git
synced 2026-11-23 16:41:35 +01:00
Step 11.5 keeps a reviewed head current across base-only merges (GST-3308) (#4577)
When main is merged into a pull request after its code review, /ship no longer throws that review away. If every commit since the review is a clean merge of the base branch and the pull request's own changes are byte-identical, `gstack-review-read` now reports the review as current, so /ship finishes without another review round. Nothing to do. Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com> Review-Finding: p1/specialist-batched#1 reader=specialist-batched
This commit is contained in:
1 parent
14a84980ee
commit
92c57ca4ce
8 files changed
+345
-142
No files matched your search
@@ -1849,6 +1849,18 @@ Step 9 row of the same pass, commit and bound tree, because Step 9 carries Step
|
||||
that is missing or changed attaches nothing, and any row that claims issues but
|
||||
lists no findings reads `it lists no findings (fcount 0) but claims …` with the
|
||||
cause (harness-evals#515, GST-3296).
|
||||
A row read on other content still reads `CURRENT` when HEAD is the row's commit
|
||||
plus clean merges of `origin/<base>` and nothing else, the head R51 counts as
|
||||
already reviewed (harness-evals#515 at 2d3ab19d, GST-3308). Every commit after
|
||||
the reviewed one must be a two-parent merge whose second parent the base holds and
|
||||
whose tree is exactly what `git merge-tree --write-tree` writes for its parents,
|
||||
the working tree must be HEAD's, and the branch's patch against the base must be
|
||||
the reviewed one twice over: the product patch-id the receipt carry compares
|
||||
(`lib/ship-receipt-patch.ts`) and the patch-id over every path, so tests,
|
||||
release metadata and gate paths stay covered. The reason then names the reviewed
|
||||
base to save with the reviewed tree for finish's `--reviewed-base`.
|
||||
An own edit, a conflict resolution, an edit inside a merge, base context moved
|
||||
beside the branch's hunks or an uncommitted change reads `STALE` and says which.
|
||||
|
||||
<a id="security-findings-stay-private"></a>
|
||||
**Security findings stay private (GST-3076).** A PR body keeps every earlier
|
||||
|
||||
+1
-1
@@ -261,7 +261,7 @@ Every review (CEO, Eng, Design) logs its result. At the end of each review, you
|
||||
|
||||
Eng Review is the only required gate (disable with `gstack-config set skip_eng_review true`). CEO and Design are informational — recommended for product and UI changes respectively.
|
||||
|
||||
Diff reviews use the `review_freshness` grade computed by `gstack-review-read`, shared by `/ship` and `/land-and-deploy`. CURRENT requires a clean, reviewer-reported completed and converged pass whose captured start and finish fingerprints match the current working-tree content. Tracked edits and non-ignored untracked source both count; an identical commit hash or zero commits since review is not a fallback.
|
||||
Diff reviews use the `review_freshness` grade computed by `gstack-review-read`, shared by `/ship` and `/land-and-deploy`. CURRENT requires a clean, reviewer-reported completed and converged pass whose captured start and finish fingerprints match the current working-tree content. Tracked edits and non-ignored untracked source both count; an identical commit hash or zero commits since review is not a fallback. The one exception is a head that holds only clean merges of the base on top of the reviewed commit, with the branch's own patch unchanged: it still grades CURRENT, and the reason names the reviewed base ([ship policy](ship-policy.md)).
|
||||
|
||||
A captured pass with different start/end content grades STALE, as does a previously verified pass whose fingerprint no longer matches. Missing or reused start receipts, legacy log-only records, incomplete or nonconverged passes, and unresolved findings cannot grade CURRENT; missing evidence grades UNVERIFIED. Ship telemetry is not a review pass. After fixes, run a genuine full re-review with a new start receipt rather than capturing one only to log the result. Completion remains reviewer-reported, not independent proof that a model read the source.
|
||||
|
||||
|
||||
Reference in new issue
Block a user