The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.
test(carriers): an interpolated from identifier is not an import
montjeffreye85c529eaff1
diff --git a/tests/scripts/validate-carrier-closure.test.js b/tests/scripts/validate-carrier-closure.test.jsindex a0ce842aa..5b660914b 100644--- a/tests/scripts/validate-carrier-closure.test.js+++ b/tests/scripts/validate-carrier-closure.test.js@@ -152,6 +152,11 @@ for (const [label, source, expected] of SCANNER_CASES) {});}+test('scanner: an identifier named from before a template chunk is not an import', () => {+ assert.deepEqual(validator().extractReferences('const s = `${from} is shipped as ${to}`;'),+ { specifiers: [], packages: [], dynamic: [] });+});+test('unknown flags are rejected', () => {const result = childProcess.spawnSync(process.execPath, [SCRIPT_PATH, '--write'], {cwd: REPO_ROOT, encoding: 'utf8', timeout: 120_000,