From 43c5c83734254a3dad05f6b71e4d9f9158531a09 Mon Sep 17 00:00:00 2001 From: garrytan Date: Mon, 19 Oct 2026 20:53:44 +0000 Subject: [PATCH] test: name the directly executed scripts in the isolation ratchet Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com> --- test/bun-entry-isolation.test.ts | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/test/bun-entry-isolation.test.ts b/test/bun-entry-isolation.test.ts index 491dda5cc..1c21957e9 100644 --- a/test/bun-entry-isolation.test.ts +++ b/test/bun-entry-isolation.test.ts @@ -79,6 +79,19 @@ describe('GSTA-56: gstack never takes configuration from the audited repository' expect(TRACKED.filter(f => firstLine(f) === ISOLATED_SHEBANG).length).toBeGreaterThan(100); }); + test('developer scripts run as ./scripts/.ts start isolated', () => { + const scripts = [ + 'browse/scripts/extension-id.ts', + 'scripts/detect-bump.ts', + 'scripts/eval-compare.ts', + 'scripts/eval-summary.ts', + 'scripts/garry-output-comparison.ts', + 'scripts/judge-controls.ts', + 'scripts/measure-journal-read.ts', + ]; + expect(scripts.filter(f => firstLine(f) !== ISOLATED_SHEBANG)).toEqual([]); + }); + test('the shell-caller detector flags unisolated calls and passes isolated ones', () => { for (const bad of [ 'bun run ~/.claude/skills/gstack/bin/gstack-render.ts x.html',