From 2545d9a6d2ef60e0dcf48cfe7593d025736f3260 Mon Sep 17 00:00:00 2001 From: garrytan Date: Fri, 16 Oct 2026 23:25:55 +0000 Subject: [PATCH] test: the DRIVER template names the reviewer trailer relay (pregate lane) Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com> --- test/capy-review-voice.test.ts | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/test/capy-review-voice.test.ts b/test/capy-review-voice.test.ts index fead9d7b2..662c3bfbb 100644 --- a/test/capy-review-voice.test.ts +++ b/test/capy-review-voice.test.ts @@ -197,4 +197,13 @@ describe('the no-Drive command has one text', () => { expect(text).not.toMatch(/no (gstack )?install (is )?needed/i); } }); + + test('autoplan/DRIVER.md.tmpl (and its committed render) tells the parent to relay each reviewer\'s trailer, never to waive the install', () => { + for (const rel of ['autoplan/DRIVER.md.tmpl', 'autoplan/DRIVER.md']) { + const text = fs.readFileSync(path.join(REPO, rel), 'utf8').replace(/\s+/g, ' '); + expect(text, rel).toContain('Every prompt ends with a `GSTACK TRAILER` block: the reviewer runs the `--for review-voice` install'); + expect(text, rel).toContain('Never tell a reviewer that no install is needed'); + expect(text, rel).toContain('treat a missing line as `gstack: fail not-installed`'); + } + }); });