mirror of
https://github.com/garrytan/gstack.git
synced 2026-11-27 18:34:05 +01:00
fix(ship): the receipt counts every blocker the readers found (GST-951)
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
This commit is contained in:
1 parent
dd9834d44d
commit
f4a1cf093b
22 files changed
+322
-36
No files matched your search
@@ -387,14 +387,17 @@ narrowed to the gate scan's tagged hunks.
|
||||
|
||||
## What the receipt records
|
||||
|
||||
`gstack-review-scope summary --since <REVIEW_SINCE>` reads this invocation's
|
||||
review-log rows and writes the counters `gstack-ship-receipt write --review-loop`
|
||||
`gstack-review-scope summary --since <REVIEW_SINCE> --run <run dir>` reads this invocation's
|
||||
review-log rows and the dispatch ledgers under the run directory (`--ledger <f>` names one;
|
||||
`--no-ledger` when no reader ran through `gstack-review-dispatch`) and writes the counters `gstack-ship-receipt write --review-loop`
|
||||
puts in the receipt:
|
||||
|
||||
| Field | Meaning |
|
||||
|---|---|
|
||||
| `review_loop.passes` | full review passes this ship ran (1 or 2; up to 3 under `review_scope: all`) |
|
||||
| `review_loop.blocking_found` | distinct blocking findings across the passes |
|
||||
| `review_loop.blocking_found` | every blocker found (GST-951): per reviewer, the larger of the rows' blocking findings (classified, or an unclassified CRITICAL) and the ledgers' CRITICAL findings as collected or judged, so an adversarial, outside-voice or not-yet-classified blocker counts. An unreadable ledger, merged file or judged set, or a judged set changed since `judge`, is `REVIEW_SCOPE_LEDGER`, never a count |
|
||||
| `review_loop.unrecorded` | blockers found that no row gives a disposition (fixed, deferred, noted, skipped, a gate answer); absent when 0 |
|
||||
| `review_loop.ledgers` | dispatch ledgers the count read; absent under `--no-ledger` |
|
||||
| `review_loop.deferred` | blocking findings in unchanged code filed as issues (a Step 11 late defer, logged as a `review-late-defer` row so it never displaces the newest `review` pass, counts here and is not a pass) |
|
||||
| `review_loop.noted` | below-floor findings listed in the PR body |
|
||||
| `review_loop.fixed` | findings fixed in this PR |
|
||||
|
||||
+4
-4
@@ -1268,11 +1268,11 @@ construction:
|
||||
the run and names the finding (path, severity, problem) for the owner instead
|
||||
of a third round; the owner may grant one scoped fix-check.
|
||||
|
||||
`gstack-review-scope summary --since <REVIEW_SINCE>` reads the branch's review-log
|
||||
rows for this invocation and writes the counters the ship receipt carries
|
||||
`gstack-review-scope summary --since <REVIEW_SINCE> --run <run dir>` reads the branch's review-log
|
||||
rows for this invocation and its dispatch ledgers, and writes the counters the ship receipt carries
|
||||
(`gstack-ship-receipt write … --review-loop @<file>`): `review_loop: { passes,
|
||||
blocking_found, deferred, noted, fixed, scope }`, plus `fix_checks`, `dispatches`
|
||||
and `est_input_tokens` when the run recorded them, printed on the receipt summary
|
||||
blocking_found, deferred, noted, fixed, scope }`, plus `fix_checks`, `dispatches`,
|
||||
`est_input_tokens`, `unrecorded` and `ledgers` when the run recorded them, printed on the receipt summary
|
||||
line as `passes=<n> blocking_found=<k> deferred=<m>`, so a scorecard can track
|
||||
passes per PR.
|
||||
|
||||
|
||||
@@ -5646,6 +5646,24 @@ pass).
|
||||
the invocation record, and start a full pass (`--pass 1`) when the branch was
|
||||
rebased; /ship's own rule is to merge the base in, never rebase a reviewed head.
|
||||
|
||||
<a id="review-scope-ledger"></a>
|
||||
### `REVIEW_SCOPE_LEDGER`
|
||||
|
||||
**Meaning.** `gstack-review-scope summary` could not count the review's
|
||||
dispatch ledgers, so it wrote no `REVIEW_LOOP:` line rather than a count that
|
||||
might be low (GST-951). Either no ledger was named (`--run`, `--ledger` or
|
||||
`--no-ledger`), `--run` holds no `review-ledger.jsonl`, or a ledger, the
|
||||
`merged.jsonl` it names or its judged set is unreadable, or the judged set
|
||||
changed after `judge` checked it. The ledgers hold every reader's findings
|
||||
(specialists, Red Team, both adversarial voices, targeted, fix-check) before any
|
||||
review-log row classifies them, which is why the count reads them.
|
||||
|
||||
**Fix.** Pass `--run <run dir>`, the directory the review passes wrote (on
|
||||
Capy, `ship/DRIVER.md`'s run directory), or each `--ledger <f>`. Pass
|
||||
`--no-ledger` only when no reader ran through `gstack-review-dispatch`. When a
|
||||
file moved, restore it; when a judged set changed, rerun `gstack-review-dispatch
|
||||
judge` on it.
|
||||
|
||||
<a id="receipt-carry-refused"></a>
|
||||
### `RECEIPT_CARRY_REFUSED`
|
||||
|
||||
|
||||
+2
-1
@@ -172,7 +172,8 @@ unpushed head is `QUEUE_RECEIPT_STALE` to the queue.
|
||||
The receipt's `review_loop` object, written from `gstack-review-scope summary
|
||||
--since <REVIEW_SINCE>`, is the loop's machine-readable outcome: `passes`
|
||||
(Step 9 full passes this ship ran, 1 or 2; up to 3 under `review_scope: all`),
|
||||
`blocking_found` (distinct blocking findings across them), `deferred`
|
||||
`blocking_found` (every blocker the readers found, rows and dispatch ledgers
|
||||
both, [review-policy.md](review-policy.md#what-the-receipt-records)), `deferred`
|
||||
(blocking findings in unchanged code filed as issues, Step 11's late defers
|
||||
included), `noted`, `fixed` and `scope`. The
|
||||
summary line a parent reads prints it as `passes=<n> blocking_found=<k>
|
||||
|
||||
Reference in new issue
Block a user