From 0153ac49452422fe90076bc6602f9786809a83c6 Mon Sep 17 00:00:00 2001 From: Andrey Avtomonov <7889985+andreybavt@users.noreply.github.com> Date: Tue, 12 May 2026 01:34:18 +0200 Subject: [PATCH] Relax boundary check for test fixtures --- scripts/check-boundaries.mjs | 2 +- scripts/check-boundaries.test.mjs | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/scripts/check-boundaries.mjs b/scripts/check-boundaries.mjs index 86b98712..53455abd 100644 --- a/scripts/check-boundaries.mjs +++ b/scripts/check-boundaries.mjs @@ -95,7 +95,7 @@ function scansForContextProductionLlmBoundaries(relativePath) { } function scansForForbiddenIdentifiers(relativePath) { - return isCodeSource(relativePath) || isRuntimeAsset(relativePath); + return (isCodeSource(relativePath) && !isTestSource(relativePath)) || isRuntimeAsset(relativePath); } function skipsIdentifierScan(relativePath) { diff --git a/scripts/check-boundaries.test.mjs b/scripts/check-boundaries.test.mjs index 8d7fabdd..db8afafe 100644 --- a/scripts/check-boundaries.test.mjs +++ b/scripts/check-boundaries.test.mjs @@ -65,6 +65,13 @@ describe('scanFileContent', () => { assert.equal(scanFileContent('python/ktx-sl/openspec/specs/semantic-layer/spec.md', name).length, 0); }); + it('allows product identifiers in test fixtures', () => { + const name = lowerProductName(); + + assert.equal(scanFileContent('packages/cli/src/setup.test.ts', `project: ${name}-dev`).length, 0); + assert.equal(scanFileContent('packages/context/src/ingest/importer.test.ts', `email: system@${name}.dev`).length, 0); + }); + it('allows public package identifiers in release packaging and managed runtime source', () => { const name = lowerProductName();