diff --git a/tests/system/ci-runner/ci-artifact-contract.test.ts b/tests/system/ci-runner/ci-artifact-contract.test.ts index 3aa99b33..4bdff407 100644 --- a/tests/system/ci-runner/ci-artifact-contract.test.ts +++ b/tests/system/ci-runner/ci-artifact-contract.test.ts @@ -2232,12 +2232,16 @@ async function createProviderFixture() { * with timeouts and ENOTEMPTY clean-ups (1103/11-04). None of them is tracked, * so the candidate's tracked-file inventory does not miss them. */ -const PROVIDER_BASE_FIXTURE_UNCOPIED_ENTRIES: readonly string[] = Object.freeze([ +// Paths from the repository root. The copy keeps `.git`, so a tracked file +// left out of it is a file `git ls-files` names and the supply-chain +// inventory cannot open: `.claude/` holds tracked agents, rules and skills +// since the harness (2026-11-08), and only its nested worktrees stay behind. +const PROVIDER_BASE_FIXTURE_UNCOPIED_PATHS: readonly string[] = Object.freeze([ ".release", "artifacts", "dist", "node_modules", - ".claude", + ".claude/worktrees", ".worktrees", ".tmp", "graphify-out", @@ -2250,10 +2254,11 @@ async function ensureProviderBaseFixture(): Promise { await cp(sourceRoot, root, { recursive: true, filter: (source) => { - const relative = path.relative(sourceRoot, source); + const relative = path.relative(sourceRoot, source).split(path.sep).join("/"); if (!relative) return true; - const first = relative.split(path.sep)[0]; - return !PROVIDER_BASE_FIXTURE_UNCOPIED_ENTRIES.includes(first ?? ""); + return !PROVIDER_BASE_FIXTURE_UNCOPIED_PATHS.some( + (uncopied) => relative === uncopied || relative.startsWith(`${uncopied}/`), + ); }, }); // The release evidence, minus the trace and Storybook trees. Copying the