mirror of
https://github.com/garrytan/gstack.git
synced 2026-12-04 05:44:23 +01:00
/gstack-ship drops bought extra review rounds and the second-model trail check (GST-3829) (#4826)
/gstack-ship no longer lets anyone buy an extra review round or a narrow re-check. After two review rounds, a blocking finding ships only as an owner's recorded ruling, or the PR waits. Why: these paths were switched off last release and kept breaking; four PRs in one day tried to repair them. This is part 4 of the approved /gstack-ship simplification. Nothing to do: each removed flag now refuses with a message that names what replaced it. Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com> Review-Finding: p1/specialist-batched#1 reader=security Review-Finding: p2/outside-voice#3 reader=outside-voice Review-Finding: p2/adversarial-native#1 reader=adversarial-native Review-Finding: p2/adversarial-native#3 reader=adversarial-native Review-Finding: p2/adversarial-native#6 reader=adversarial-native
This commit is contained in:
1 parent
e11a5833bc
commit
ec5d7e6fbd
106 files changed
+933
-5019
No files matched your search
@@ -22,12 +22,21 @@
|
||||
* g. main planned a scoped pass after a small blocking fix; the branch plans a full pass on the same range that keeps main's
|
||||
* readers the way kind a does, so no reader runs outside the pass record (GST-3562 part 3; Captain GStack Minder, 2026-11-24),
|
||||
* and each specialist main dispatched is read by a branch specialist under its name or checklist excluding no more paths.
|
||||
* h. a history main accepted and the branch no longer can be given (GST-3562 part 4): a fix-check as the last step, a fix-check
|
||||
* count, or a fix-check or round grant. Since part 1 no plan names a fix-check, and part 4 removed the flags that carried them
|
||||
* (gstack-review-plan refuses --last fix-check, --fix-checks, --grant, --round-grant and --stop), so no run reaches this state;
|
||||
* main's plan is read back unchanged.
|
||||
*/
|
||||
import { expect } from 'bun:test';
|
||||
import { planReviewAt, type PlanInput, type ReviewPlan } from '../../lib/review-depth';
|
||||
import { mainNextStep } from '../fixtures/review-depth-main/next-step-0408128';
|
||||
|
||||
export type Gst3562Kind = 'a' | 'b' | 'c' | 'd' | 'e' | 'f' | 'g';
|
||||
export type Gst3562Kind = 'a' | 'b' | 'c' | 'd' | 'e' | 'f' | 'g' | 'h';
|
||||
|
||||
/** Kind h: a history field gstack-review-plan no longer accepts (GST-3562 part 4). */
|
||||
export function retiredHistory(h: PlanInput['history']): boolean {
|
||||
return h.last === 'fix-check' || h.granted !== undefined || h.roundGrant !== undefined || h.grantedStop !== undefined || h.chained === true || (h.fixChecks ?? 0) > 0;
|
||||
}
|
||||
|
||||
export function asMainBeforeGst3562(input: PlanInput, plan: ReviewPlan): { plan: ReviewPlan; kind?: Gst3562Kind } {
|
||||
const main = planReviewAt(input, mainNextStep);
|
||||
@@ -35,7 +44,8 @@ export function asMainBeforeGst3562(input: PlanInput, plan: ReviewPlan): { plan:
|
||||
const h = input.history;
|
||||
const [was, now] = [main.next, plan.next];
|
||||
const kind: Gst3562Kind | undefined =
|
||||
was.step === now.step && ['stop', 'voices', 'done'].includes(now.step) ? 'b'
|
||||
retiredHistory(h) ? 'h'
|
||||
: was.step === now.step && ['stop', 'voices', 'done'].includes(now.step) ? 'b'
|
||||
: was.step === 'fix-check' && (now.step === 'full' || now.step === 'scoped') && now.reason.includes('GST-3562 A') ? 'a'
|
||||
: was.step === 'fix-check' && (now.step === 'stop' || now.step === 'voices') && now.reason.includes('a fix followed the read-only final review') ? 'c'
|
||||
: was.step === 'done' && !!h.fixedBelow && ['full', 'stop', 'voices', 'fix-check'].includes(now.step) ? 'd'
|
||||
|
||||
Reference in new issue
Block a user