mirror of
https://github.com/garrytan/gstack.git
synced 2026-12-02 12:54:04 +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
@@ -151,7 +151,7 @@ describe('gstack-review-plan', () => {
|
||||
expect(spawnSync(BIN, [], { encoding: 'utf8', timeout: 10_000 }).status).toBe(2);
|
||||
expect(run(repo({ 'a.md': 'x' }), ['--last', 'later']).status).toBe(2);
|
||||
});
|
||||
test('scratch under .gstack/tmp/ is ignored, a subdirectory run plans the whole repository, and --adversarial-ran drops the repeat adversarial pass', () => {
|
||||
test('scratch under .gstack/tmp/ is ignored, a subdirectory run plans the whole repository, and --adversarial-ran drops the repeat adversarial pass but keeps the outside voice on code (GST-4140)', () => {
|
||||
const r = repo({ 'docs/a.md': '# a\n' });
|
||||
fs.mkdirSync(path.join(r.dir, '.gstack', 'tmp'), { recursive: true });
|
||||
fs.writeFileSync(path.join(r.dir, '.gstack', 'tmp', 'fix-check-list.ts'), 'export const x = 1;\n');
|
||||
@@ -165,7 +165,8 @@ describe('gstack-review-plan', () => {
|
||||
expect(run(code, repeat).stdout).toContain('DISPATCH: adversarial-native adversarial effort=full');
|
||||
const ran = run(code, [...repeat, '--adversarial-ran']).stdout;
|
||||
expect(ran).not.toContain('DISPATCH: adversarial-native');
|
||||
expect(ran).toContain('SKIP: adversarial-native and outside-voice (run once per invocation)');
|
||||
expect(ran).toContain('SKIP: adversarial-native (run once per invocation)');
|
||||
expect(ran).toContain('DISPATCH: outside-voice outside-voice effort=host');
|
||||
});
|
||||
});
|
||||
|
||||
@@ -228,10 +229,11 @@ describe('gstack-review-plan: the full round 2 on a small fix range (GSTA-152 D6
|
||||
}
|
||||
const pass2 = ['--pass', '1', '--last', 'full', '--fixed-blocking', '--adversarial-ran', '--pass1-depth', 'standard'];
|
||||
const full1 = ['--pass', '1', '--last', 'full', '--fixed-blocking', '--adversarial-ran', '--pass1-depth', 'full'];
|
||||
test('--range-base with a small fix range plans a full pass 2 with the batched specialist, the Red Team and the native adversarial, and no fix-check', () => {
|
||||
test('--range-base with a small fix range plans a full pass 2 with the batched specialist, the Red Team, the native adversarial and the outside voice, and no fix-check', () => {
|
||||
const { r, rangeBase } = fixed(24);
|
||||
const out = run(r, [...pass2, '--range-base', rangeBase]).stdout;
|
||||
expect(out).toMatch(/^REVIEW_PLAN: class=code pass=2 next=full dispatches=3 /m);
|
||||
expect(out).toMatch(/^REVIEW_PLAN: class=code pass=2 next=full dispatches=4 /m);
|
||||
expect(out).toContain('DISPATCH: outside-voice outside-voice effort=host');
|
||||
expect(out).toContain(`FIX_RANGE: runtime_lines=24 base=${rangeBase}`);
|
||||
expect(out).toMatch(/^NEXT: full \(a blocking finding was fixed on a light diff with 24 runtime lines in the fix range: full pass on the range, never a scoped pass, so every reader is in the pass record \(GST-3562\)\)$/m);
|
||||
expect(out).not.toContain('DISPATCH: fix-check');
|
||||
|
||||
Reference in new issue
Block a user