add gstack 2 parity and lifecycle gates

This commit is contained in:
Sinabina
2026-07-17 11:08:32 -07:00
parent b6572ebbb7
commit 9919c4cdd3
212 changed files with 29098 additions and 3845 deletions
+4 -3
View File
@@ -11,8 +11,9 @@ const read = (rel: string) => fs.readFileSync(path.join(ROOT, rel), 'utf-8');
describe('dev-setup: worktree stays canonical', () => {
const devSetup = read('bin/dev-setup');
test('passes GSTACK_SKIP_GBRAIN_REGEN inline on the nested setup call', () => {
expect(devSetup).toContain('GSTACK_SKIP_GBRAIN_REGEN=1 "$GSTACK_LINK/setup"');
test('does not invoke the per-user runtime installer from a development worktree', () => {
expect(devSetup).not.toMatch(/\$GSTACK_LINK\/setup/);
expect(devSetup).toContain('Do not call the user runtime installer');
});
test('never exports GSTACK_SKIP_GBRAIN_REGEN (would leak into other setup paths)', () => {
@@ -29,7 +30,7 @@ describe('dev-setup: worktree stays canonical', () => {
});
});
describe('setup: honors GSTACK_SKIP_GBRAIN_REGEN', () => {
describe.skipIf(read('setup').includes('optional GStack 2 runtime'))('legacy setup: honors GSTACK_SKIP_GBRAIN_REGEN', () => {
const setup = read('setup');
test('skips the in-place :user regen when the guard is set', () => {