The COL collision-scanner and the CLAUDE.md cascade resolve ~/.claude from process.env.HOME (active-config-reader). Snapshot/byte CLIs were spawned with the developer's real HOME, so they picked up installed plugins/skills and the user CLAUDE.md — making the v5.0.0 + default-output snapshots machine- and time-dependent. They were seeded 2026-05-01 with COL=1 (a real ~/.claude skill collision) and drifted to COL=0 after the polyrepo split: 26 pre-existing failures unrelated to Batch 1. Fix (test-only, no production change): - tests/helpers/hermetic-home.mjs — empty temp HOME, mirroring the pattern collision.test.mjs already uses for the COL unit test. - 7 harnesses spawn CLIs (or call lint()) under the hermetic HOME, so output depends only on committed fixtures. Determinism verified across runs. - Re-seeded all snapshots under hermetic HOME via SEED_SNAPSHOT/UPDATE_SNAPSHOT (added a SEED guard to the frozen v5.0.0 byte tests). Snapshots now reflect the fixture alone (COL=0, fixture-only activeConfig counts). - Also re-seeded the unused env-aware snapshots (manifest/whats-active/ plugin-health), which had baked dozens of real ~/.claude skill/plugin names into the committed repo — privacy cleanup. Full suite: 812/812 green, stable across 3 runs.
35 lines
996 B
JSON
35 lines
996 B
JSON
{
|
|
"meta": {
|
|
"tool": "config-audit:manifest",
|
|
"repoPath": "/Users/ktg/repos/ktg-plugin-marketplace/config-audit/tests/fixtures/marketplace-medium",
|
|
"generatedAt": "2026-06-18T10:24:47.910Z",
|
|
"durationMs": 8
|
|
},
|
|
"sources": [
|
|
{
|
|
"kind": "claude-md",
|
|
"name": "/Users/ktg/repos/ktg-plugin-marketplace/config-audit/CLAUDE.md",
|
|
"source": "project",
|
|
"estimated_tokens": 1455
|
|
},
|
|
{
|
|
"kind": "mcp-server",
|
|
"name": "memory",
|
|
"source": ".mcp.json",
|
|
"estimated_tokens": 500
|
|
},
|
|
{
|
|
"kind": "claude-md",
|
|
"name": "/Users/ktg/repos/ktg-plugin-marketplace/config-audit/tests/fixtures/marketplace-medium/CLAUDE.md",
|
|
"source": "project",
|
|
"estimated_tokens": 116
|
|
},
|
|
{
|
|
"kind": "claude-md",
|
|
"name": "/Users/ktg/repos/ktg-plugin-marketplace/config-audit/tests/fixtures/marketplace-medium/.claude/shared.md",
|
|
"source": "import",
|
|
"estimated_tokens": 68
|
|
}
|
|
],
|
|
"total": 2139
|
|
}
|