mirror of
https://github.com/garrytan/gstack.git
synced 2026-12-03 13:24:19 +01:00
After a fix, the second review round is always a full review (#4783)
After a blocking fix, /ship's second review round is now always a full review, with every reviewer recorded alongside the pass, instead of a narrower re-check whose reply could go missing. Why: the narrower re-check ran one reviewer outside the pass record, so a missing reply or a blocker it found never reached the verdict. Part of the /ship simplification Garry approved; nothing for readers to do. Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
This commit is contained in:
1 parent
c34b967346
commit
7deee4292c
23 files changed
+216
-167
No files matched your search
@@ -90,7 +90,8 @@ const HELP = `gstack-review-dispatch — verbatim reviewer briefs and loss-free
|
||||
takes no --extras, and a reviewer pass refuses to resume its manifest.
|
||||
<id> is letters, digits and dashes, read as lowercase (P1 is p1): the manifest, reader titles and a resume use that form.
|
||||
A fix-check reader (stage specialists) renders from decision 3.5's --fix-list, --hunks, --tests and --callers files.
|
||||
--diff-base sets every reader's base, a scoped pass's Red Team included (the targeted reader keeps the merge base).
|
||||
--diff-base sets every reader's base, except the targeted reader and, before Step 11 has run (no --adversarial-ran),
|
||||
the native adversarial and outside voice, which keep the merge base.
|
||||
An existing manifest for the same --pass is reused (resumed). --extras: [{"name","prompt_file","first"?,"model"?}]
|
||||
--audit-only skips the plan: the --extras readers are the whole pass (Step 14.5's docs audit)
|
||||
Before anything is written (and again before stage renders), each reviewer's diff is read once with a
|
||||
@@ -436,6 +437,7 @@ function pass(): number {
|
||||
const m = buildManifest({ pass: id, out, ledger: flag('--ledger') ?? path.join(out, 'review-ledger.jsonl'), base, diffBase, root, checklistRoot: flag('--checklist-root') ?? ROOT,
|
||||
dispatches: step === 'fix-check' ? p.dispatches : p.dispatches.filter(d => d.role !== 'fix-check'), next: step, planLines, learnings: readFile(flag('--learnings-file'), 'learnings') ?? null, extras,
|
||||
targetedClasses: p.targeted?.classes, mergeBase, rangeBase: flag('--diff-base') ? undefined : rangeBase,
|
||||
voiceBase: mergeBase && diffBase !== mergeBase && !planArgs.includes('--adversarial-ran') ? mergeBase : undefined,
|
||||
fixCheck: step === 'fix-check' && (flag('--fix-list') || flag('--hunks') || flag('--tests')) ? { fix_list: flag('--fix-list')!, hunks: flag('--hunks')!, tests: flag('--tests')!, callers: flag('--callers') } : undefined,
|
||||
...planExclude(p.review_exclude), ...(p.readers ? { readers: p.readers } : {}), voices: own.includes('--voices') });
|
||||
const over = ceiling('gstack-review-dispatch pass', base, m.out, m.readers, m.diff_base, (m.review_exclude as PlanExclude) ?? null);
|
||||
|
||||
@@ -65,13 +65,14 @@ const HELP = `gstack-review-plan — the review depth of the next /ship step (do
|
||||
--gated a,b specialists the hit-rate stats tag GATE_CANDIDATE
|
||||
--force a,b|all specialists forced by prompt flags (--all-specialists is all): at standard and full depth they join the
|
||||
batched specialist's checklists, where maintainability, performance and simplification are read only when
|
||||
forced; light runtime-0 docs and scoped passes dispatch them one reader each; targeted is no specialist and
|
||||
forced; light runtime-0 docs dispatch them one reader each; targeted is no specialist and
|
||||
refuses (exit 2): the plan dispatches it itself
|
||||
--reviewed-numbers <fp> the numeric-claim fingerprint the outside voice already reviewed
|
||||
--depth-floor standard|full raise the depth to at least this (never lowers it); /ship passes its prompt flag on every run
|
||||
--range-base <sha> the fix range's base (this pass's PASS_HEAD; with --post-review --last fix-check, the last fix-check's
|
||||
commit): after a fixed blocker on a diff below full depth, a
|
||||
committed range of at most ${SCOPED_RANGE_LINES} runtime lines plans a scoped pass; anything unread plans the full pass
|
||||
commit): after a fixed blocker, round 2 is a full pass on the range; below full depth, a
|
||||
committed range of at most ${SCOPED_RANGE_LINES} runtime lines now also gets a full pass (no scoped pass) that keeps
|
||||
the Red Team and, on a range with runtime lines, the native adversarial; anything unread plans the full pass
|
||||
--no-tiers specialists, audits and watchers at the host's default effort too (as gstack-config review_effort_tiers off does)
|
||||
--json the plan as JSON (depth, runtime_lines, rules, errors with input and repair, gate_scan, per-dispatch exclude)
|
||||
--pass1-depth <d> pass 1's REVIEW_DEPTH depth: full, or absent, keeps pass 2 full
|
||||
|
||||
Reference in new issue
Block a user