mirror of
https://github.com/garrytan/gstack.git
synced 2026-12-03 05:13:49 +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
@@ -798,8 +798,8 @@ owner pre-approved (train gates, screens, bisects, the backstop, focused paid ca
|
||||
the owner's date and words and the cap per rerun; anything over the cap is a fresh ask.
|
||||
After a PR's two review rounds (`PR_ROUND_CAP`) it ships with its open notes listed, or the controller
|
||||
rules on the blocker; a PR past the cap whose code changed gets one read-only full review of its final head,
|
||||
never an owner ask ([rounds per pull request](../../docs/review-policy.md#rounds-per-pull-request)). Round and
|
||||
fix-check grants are deprecated and go in the next release.
|
||||
never an owner ask ([rounds per pull request](../../docs/review-policy.md#rounds-per-pull-request)). There are no
|
||||
round or fix-check grants (GST-3562 part 4).
|
||||
|
||||
**B. The plan ask** ([template](../../captain/templates/plan-ask.md)): before → after, why it
|
||||
matters, what caused this work, the big decisions, and what we need from you in the ask
|
||||
|
||||
@@ -184,7 +184,7 @@ export async function trainMain(ctx: QueueContext, args: string[]): Promise<numb
|
||||
return usage(`unknown train subcommand ${sub}`);
|
||||
}
|
||||
|
||||
export async function readyMain(ctx: QueueContext, args: string[], base: { pr: string; pregate?: string; trail?: string; gateExit?: number; gateLog?: string }): Promise<number> {
|
||||
export async function readyMain(ctx: QueueContext, args: string[], base: { pr: string; pregate?: string; gateExit?: number; gateLog?: string }): Promise<number> {
|
||||
const screen = args.includes('--screen');
|
||||
const noScreen = args.includes('--no-screen');
|
||||
if (screen && noScreen) return usage('pass one of --screen or --no-screen');
|
||||
|
||||
@@ -37,7 +37,7 @@ import { finishPlanLine, readyPlan } from '../../lib/plan-record';
|
||||
const Q = 'gstack-ship-queue';
|
||||
|
||||
export interface ReadyOptions {
|
||||
pr: string; pregate?: string; trail?: string; gateExit?: number; gateLog?: string; screen?: 'screen' | 'no-screen'; broad: boolean; dryRun: boolean;
|
||||
pr: string; pregate?: string; gateExit?: number; gateLog?: string; screen?: 'screen' | 'no-screen'; broad: boolean; dryRun: boolean;
|
||||
/** `--dispatch-ci`: run these workflows on the PR branch, wait, and clear the matching requires-remote pregate lanes before reading the head. */
|
||||
dispatchCi?: { workflows: string[]; timeoutSec: number; pollMs: number };
|
||||
/** `--base-red --fixer <n>`: a conditional READY on a paused receipt, owned by the fixer PR (trains with gates only). */
|
||||
|
||||
@@ -87,7 +87,7 @@ function newShip(f: Fixture, sc: Scenario): { calls: Call[]; ending: string } {
|
||||
adversarialRan ||= plan.dispatches.some(d => d.role === 'adversarial-native');
|
||||
if (plan.next.step === 'voices') continue;
|
||||
const o = outcomes[sc][Math.min(i, outcomes[sc].length - 1)] ?? {};
|
||||
const last = plan.next.step === 'scoped' ? 'full' : plan.next.step;
|
||||
const last = plan.next.step === 'scoped' || plan.next.step === 'fix-check' ? 'full' : plan.next.step;
|
||||
h = { fullPasses: h.fullPasses + (last === 'full' ? 1 : 0), last, ...o };
|
||||
}
|
||||
for (const a of FIXED_AUDITS) calls.push({ role: 'audit', effort: 'light', diffBytes: f.diff_bytes / 2 });
|
||||
|
||||
@@ -83,11 +83,11 @@ describe('ready refuses a READY note that never reached origin', () => {
|
||||
}, 120_000);
|
||||
});
|
||||
|
||||
describe('ready under a train policy reads --trail and trial-merges non-ASCII paths (GST-3200 follow-up)', () => {
|
||||
// Value: protects=gstack's own policy declares a train block, so its READY goes through the train route, which must carry
|
||||
// --trail and compare sibling paths that git would C-quote; fails_when=the train route drops --trail and prints MISSING, or
|
||||
// a sibling sharing café.txt reads as none share a file; seam=bin/gstack-ship-queue ready --no-screen with the train gh shim
|
||||
test('the trail-read row names the reviewer and a sibling sharing café.txt is trial-merged', () => {
|
||||
describe('ready under a train policy trial-merges non-ASCII paths (GST-3200 follow-up)', () => {
|
||||
// Value: protects=gstack's own policy declares a train block, so its READY goes through the train route, which must compare
|
||||
// sibling paths that git would C-quote and ask for no cross-family trail read (GST-3562 part 4); fails_when=a sibling sharing
|
||||
// café.txt reads as none share a file, or the READY asks for a trail read; seam=bin/gstack-ship-queue ready --no-screen with the train gh shim
|
||||
test('a sibling sharing café.txt is trial-merged and no trail read is asked for', () => {
|
||||
const fx = trainFixture();
|
||||
fixtures.push(fx);
|
||||
const sibling = openPr(fx, '2', { file: 'café.txt', text: 'from #2\n', changelog: false });
|
||||
@@ -96,11 +96,9 @@ describe('ready under a train policy reads --trail and trial-merges non-ASCII pa
|
||||
const tree = runBin(fx.repo, 'gstack-wtree', []).out.trim();
|
||||
const pregate = path.join(fx.repo.root, 'pregate.json');
|
||||
fs.writeFileSync(pregate, JSON.stringify({ schema_version: 1, tree, head, verdict: 'pass', checks: FULL_CHECKS }));
|
||||
const trail = path.join(fx.repo.root, 'decisions.tsv');
|
||||
fs.writeFileSync(trail, 'ts\tphase\tdecision\twhy\tevidence\tresult\n2026-11-19T00:00:00Z\tstart\trun x opens this trail\tno earlier rows\trun:x\topen\n2026-11-19T00:01:00Z\ttrail-read\topenai/gpt-6.2-sol (Subagent 4)\trule 27\tflags.md\tNo flags\n');
|
||||
const r = queue(fx, ['ready', '--pr', '1', '--pregate', pregate, '--no-screen', '--trail', trail]);
|
||||
expect(r.out).toContain('reviewed by openai/gpt-6.2-sol (Subagent 4) (');
|
||||
expect(r.out).toContain('trail row 2)');
|
||||
const r = queue(fx, ['ready', '--pr', '1', '--pregate', pregate, '--no-screen']);
|
||||
expect(r.out).not.toContain('trail read');
|
||||
expect(r.out).toContain('Attention:');
|
||||
expect(line(r.out, 'TRIAL_MERGES: ')).toStartWith(`TRIAL_MERGES: #2 ${sibling.slice(0, 12)} shares café.txt: `);
|
||||
}, 120_000);
|
||||
});
|
||||
Reference in new issue
Block a user