Use Garry Tan's exact Claude Code setup: 23 opinionated tools that serve as CEO, Designer, Eng Manager, Release Manager, Doc Engineer, and QA
TypeScript
Keep a policy-floor test passing after gstack's version bump to 1.101 (#4495)
Garry Tan3610130d6e47
diff --git a/changelog.d/test-policy-floor-next-above-version.md b/changelog.d/test-policy-floor-next-above-version.mdnew file mode 100644index 000000000..f07c2cba5--- /dev/null+++ b/changelog.d/test-policy-floor-next-above-version.md@@ -0,0 +1,2 @@+### Tests+- A policy-floor test no longer fails once gstack's own version reaches the minor after the newest policy key; it now checks a floor above both, so the v1.101.0.0 release can pass CI.diff --git a/test/policy-floor-stable.test.ts b/test/policy-floor-stable.test.tsindex fab317844..fab5f5fcb 100644--- a/test/policy-floor-stable.test.ts+++ b/test/policy-floor-stable.test.ts@@ -200,7 +200,7 @@ describe('gstack-doctor --check floor row', () => {const lagging = floorRow(f, project(f, known));expect(lagging.line).toBe(`PASS floor ${known} declared by ${dir}/.gstack/ship-policy.json (installed 1.0.0.0, reads policies as ${known})`);expect(validatePolicy({ min_gstack_version: known }, { gstackVersion: runningGstackVersion() })).toEqual([]);- const next = known.replace(/^(\d+)\.(\d+)\..*$/, (_, a, b) => `${a}.${Number(b) + 1}.0.0`);+ const next = (newer(VERSION, known) ? VERSION : known).replace(/^(\d+)\.(\d+)\..*$/, (_, a, b) => `${a}.${Number(b) + 1}.0.0`);expect(validatePolicy({ min_gstack_version: next }).map(e => e.code)).toEqual(['POLICY_GSTACK_TOO_OLD']);expect(floorRow(f, project(f, next)).status).toBe('WARN');});