mirror of
https://github.com/garrytan/gstack.git
synced 2026-11-30 03:44:38 +01:00
Code changes get a second-model review of their final fixes, and the shipping record names that model's family (GST-4140) (#4886)
When a code change's first review leads to fixes, the second-model review now reads those fixes and the final review again, instead of being skipped once it had run. A reviewer from the same model family as the author (a Claude reader checking Claude's work) no longer counts as the second model, and the review record names the model family that reviewed. Nothing to do: when the second model can't run (Codex down, rate-limited or refused), that is still recorded and never blocks shipping. Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com> Review-Finding: p1/specialist-batched#1 reader=testing Review-Finding: p1/red-team#1 reader=red-team Review-Finding: s11/outside-voice#1 reader=outside-voice Review-Finding: s11/outside-voice#2 reader=outside-voice Review-Finding: s11/outside-voice#3 reader=outside-voice Review-Finding: s11/outside-voice#4 reader=outside-voice Review-Finding: s11/adversarial-native#1 reader=adversarial-native Review-Finding: s11/adversarial-native#2 reader=adversarial-native Review-Finding: s11/adversarial-native#3 reader=adversarial-native Review-Finding: s11/adversarial-native#5 reader=adversarial-native Review-Finding: s11/adversarial-native#7 reader=adversarial-native
This commit is contained in:
1 parent
942a12c618
commit
4a40464ea7
20 files changed
+557
-38
No files matched your search
+32
-8
@@ -238,7 +238,7 @@ rows, `claim`) was removed in GST-3562 part 4.
|
||||
| none | full pass 1 on the whole diff |
|
||||
| a full pass with no edits | done |
|
||||
| a full pass (`--last full`) with no fix flag, when the PR has its own unreviewed runtime commits since `--range-base` | stop: `review_required_no_readers` (exit 3), not done; see [troubleshooting](troubleshooting.md#review-required-no-readers) |
|
||||
| a full pass that fixed a blocking finding, below the cap, on a diff below full depth with a fix range of at most 150 runtime lines | full pass on the range (never a scoped pass, GST-3562), with the Red Team and, when the range changes runtime lines, the native adversarial pass again |
|
||||
| a full pass that fixed a blocking finding, below the cap, on a diff below full depth with a fix range of at most 150 runtime lines | full pass on the range (never a scoped pass, GST-3562), with the Red Team and, when the range changes runtime lines, the native adversarial pass again and, on code or gate class, the outside voice (GST-4140) |
|
||||
| a full pass that fixed a blocking finding, below the cap (full depth, a larger range, or a range or depth it could not read) | full pass on the range |
|
||||
| a full pass whose fix touched a gate-class path, below the cap | full pass on the range |
|
||||
| a full pass that fixed only below-floor findings | full pass on the range (round 2; GST-3562 A plans no new fix-check) |
|
||||
@@ -271,7 +271,8 @@ as the depth counts them: `gstack-review-plan --range-base $PASS_HEAD` prints
|
||||
scoped pass ran: a full-effort Red Team that excludes nothing, the native
|
||||
adversarial pass again when the range changes runtime lines (even after Step 11
|
||||
ran it), every force-included specialist, the outside voice when published
|
||||
numbers changed, and Step 11's voices that have not run yet. The driver's
|
||||
numbers changed (and, on code or gate class, whenever the range changes runtime
|
||||
lines, GST-4140), and Step 11's voices that have not run yet. The driver's
|
||||
`--diff-base RANGE_BASE` sets every reader's base except the targeted reader's
|
||||
and, before Step 11 has run (no `--adversarial-ran`), the native adversarial's and
|
||||
the outside voice's, which keep the merge base and read the whole PR. The range holds only
|
||||
@@ -562,11 +563,29 @@ counts and score, rate or speed claims (`NUMBERS: yes`). The claims' fingerprint
|
||||
(`fingerprint=`) is passed back as `--reviewed-numbers`; when a later fix changes a
|
||||
claim, only the outside voice reruns, on the numbers. It always reads the whole diff.
|
||||
|
||||
**The adversarial and outside voices run once per invocation** (Step 11, on the
|
||||
final tree), as the last full-pass plan lists them; after they ran, decision 2
|
||||
passes `--adversarial-ran` so a repeat lists them no more. Later full passes rerun the
|
||||
specialists on the range only. Step 11.5 binds a planned skip through the Step 9
|
||||
record's `CURRENT` freshness instead of a native record.
|
||||
**The adversarial and outside voices run in Step 11** (on the final tree), as the
|
||||
last full-pass plan lists them; after they ran, decision 2 passes `--adversarial-ran`.
|
||||
What a later full pass lists then depends on the class (GST-4140), so a code or gate
|
||||
PR never ships with no second-model read of the code its fixes changed:
|
||||
|
||||
- **Code or gate class at standard or full depth, pass 2 and later:** the outside
|
||||
voice is listed again, because the fixes changed code it has not read. The native
|
||||
adversarial is not, unless the pass reads the readers of a small fix range
|
||||
(`rangeReaders`, a range with runtime lines). A fix range with no runtime lines
|
||||
keeps the earlier outside read (`SKIP: outside-voice (run once per invocation: the
|
||||
fix range changes no runtime lines)`), and changed published numbers still add it.
|
||||
- **Code or gate class, the read-only final review** (R51's one full review of the
|
||||
whole PR diff at the final head): both voices are listed again.
|
||||
- **Docs or tests class, and light depth:** unchanged. The voices are not listed
|
||||
again (`run once per invocation`); the outside voice reruns only when a published
|
||||
number changes.
|
||||
|
||||
Later full passes rerun the specialists on the range only. Step 11.5 binds a planned
|
||||
skip through the Step 9 record's `CURRENT` freshness instead of a native record.
|
||||
An outside voice from the lane's own model family is never outside coverage:
|
||||
`gstack-review-dispatch collect` refuses it and records the family of every
|
||||
outside read, and on a clean ledger `verify` prints `OUTSIDE_VOICE_RECORD:` for the receipt
|
||||
([ship-policy.md](ship-policy.md#the-ship-receipt)).
|
||||
|
||||
**Effort.** The core checklist, the Red Team, the native adversarial pass and
|
||||
fix-checks run at `full` effort (the lane's reasoning); specialists run at
|
||||
@@ -1211,7 +1230,12 @@ ones, and the arm lost blockers. `bin/gstack-review-dispatch` closes both ends:
|
||||
as missing coverage (`COLLECT_UNAVAILABLE`); an empty reason or an output that holds findings is refused (exit 2), so a partial
|
||||
answer is collected normally and loses nothing. Verify prints its brief and output `UNAVAILABLE` and `unavailable=N` on the
|
||||
verdict line, and its coverage is logged `unavailable` in the review-log row; any other reader is refused (exit 2), because its
|
||||
missing coverage leaves the review incomplete. A mismatched send re-sent
|
||||
missing coverage leaves the review incomplete. Collect also records who read the outside voice (GST-4140): the model and
|
||||
provider from `--outside-model` and `--outside-provider`, or else from the reply's closing `OUTSIDE_STATUS:` line, the lane's
|
||||
model from `--native-model`, and each family from its model id. A read in the native model's family is `COLLECT_SAME_FAMILY`
|
||||
(exit 1, nothing merged), and a ledger that holds one anyway prints an `OUTSIDE <reader> SAME_FAMILY` row and is dirty. On a
|
||||
clean ledger verify prints `OUTSIDE_VOICE_RECORD:` for `gstack-ship-receipt write --outside-voice`
|
||||
([ship-policy.md](ship-policy.md#the-ship-receipt)), and `OUTSIDE_VOICE_RECORD_WITHHELD:` instead on a dirty one. A mismatched send re-sent
|
||||
byte-exact before anything was collected is void and counted (`voided=N` on the
|
||||
verdict line); one that produced an output stays `MISMATCH`. Then output hashes
|
||||
against the merged lines they produced, and each merged line against the finding collect
|
||||
|
||||
+25
-1
@@ -1334,7 +1334,7 @@ The ```` ```gstack-ship-receipt ```` block is the handoff record: identifiers
|
||||
first (`pr`, `head`, `version`, `base`), then the evidence (`gate`, `ci`,
|
||||
`head_tree`, `product_patch_id`, `gstack_version`, `review_depth`, `pregate`,
|
||||
`issues`, `approval`, `docs`, `review_loop`, `review_loop_exception`, `design`,
|
||||
`carry`, `no_stop`), validated
|
||||
`carry`, `no_stop`, `outside_voice`), validated
|
||||
against the `ship-receipt` schema (`gstack-artifact schema ship-receipt`) and
|
||||
read back by `gstack-ship-receipt read`, `result`, `carry` and the queue.
|
||||
Since GST-3562 (H), write and the queue's binding check need none of the
|
||||
@@ -1356,6 +1356,30 @@ and `read`, `result`, `gstack-ship-queue ready`, `train build` and `verify
|
||||
but no version source records no `version` at all (the audit still says what
|
||||
it looked for); pass `--version` to name one.
|
||||
|
||||
**`outside_voice`.** The second-model read the review ran, from
|
||||
`gstack-ship-receipt write --outside-voice '<json>'`, where the JSON is the line
|
||||
`gstack-review-dispatch verify` prints after `OUTSIDE_VOICE_RECORD:` (the line
|
||||
itself is accepted too, as is `@<file>`): `{ status, provider, model, family }`, with
|
||||
`native_family` when the lane's family is known and `reason` for missing coverage.
|
||||
`status` is `completed` (a review the outside model returned), `unavailable`
|
||||
(Codex or the host reader was down, disabled, rate-limited or refused under
|
||||
`cyber_policy` on every attempt) or `skipped` (the review plan listed no outside
|
||||
voice). A `completed` record needs the family its model id names (a bare router
|
||||
prefix such as `bedrock/` names none) and a recognized `native_family` that
|
||||
differs; a same-family fallback (a Claude reader beside a Claude lane), an
|
||||
unrecognized family or a missing native family is `RECEIPT_INVALID` and nothing
|
||||
is written. Missing coverage never blocks: record it as `unavailable` or
|
||||
`skipped`, never as a completed read by the lane's own family. `verify` itself
|
||||
reports an outside read it cannot prove cross-family (no model from
|
||||
`--outside-model` or the reply's closing `OUTSIDE_STATUS:` line, or no
|
||||
`--native-model`) as `unavailable`, so its record always binds, and it prints
|
||||
the record only when `VERIFY` is clean (`OUTSIDE_VOICE_RECORD_WITHHELD:`
|
||||
otherwise). `--outside-voice` also takes pretty-printed JSON or `verify`'s whole
|
||||
output. The field is
|
||||
optional, so receipts written before it stay valid, and `/gstack-ship`'s Step 19
|
||||
write does not pass `--outside-voice` yet: a receipt carries it only when the run
|
||||
passes the flag (GST-4140).
|
||||
|
||||
**`design`.** On a rendered-UI diff (`gstack-diff-scope` reports
|
||||
`SCOPE_FRONTEND=true` for the committed range, which counts CSS, views,
|
||||
components and, since GST-1718, Lit or htm tagged templates in .ts/.js files
|
||||
|
||||
Reference in new issue
Block a user