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.
93 lines
2.5 KiB
JSON
93 lines
2.5 KiB
JSON
{
|
|
"meta": {
|
|
"tool": "config-audit:whats-active",
|
|
"version": "1.0.0",
|
|
"generatedAt": "2026-06-18T10:24:48.072Z",
|
|
"repoPath": "/Users/ktg/repos/ktg-plugin-marketplace/config-audit/tests/fixtures/marketplace-medium",
|
|
"gitRoot": "/Users/ktg/repos/ktg-plugin-marketplace/config-audit",
|
|
"projectKey": null,
|
|
"durationMs": 9
|
|
},
|
|
"claudeMd": {
|
|
"files": [
|
|
{
|
|
"path": "/Users/ktg/repos/ktg-plugin-marketplace/config-audit/CLAUDE.md",
|
|
"scope": "project",
|
|
"bytes": 5818,
|
|
"lines": 119,
|
|
"parent": null
|
|
},
|
|
{
|
|
"path": "/Users/ktg/repos/ktg-plugin-marketplace/config-audit/tests/fixtures/marketplace-medium/CLAUDE.md",
|
|
"scope": "project",
|
|
"bytes": 464,
|
|
"lines": 25,
|
|
"parent": null
|
|
},
|
|
{
|
|
"path": "/Users/ktg/repos/ktg-plugin-marketplace/config-audit/tests/fixtures/marketplace-medium/.claude/shared.md",
|
|
"scope": "import",
|
|
"bytes": 273,
|
|
"lines": 14,
|
|
"parent": "/Users/ktg/repos/ktg-plugin-marketplace/config-audit/tests/fixtures/marketplace-medium/CLAUDE.md"
|
|
}
|
|
],
|
|
"totalBytes": 6555,
|
|
"totalLines": 158,
|
|
"estimatedTokens": 1639
|
|
},
|
|
"plugins": [],
|
|
"skills": [],
|
|
"mcpServers": [
|
|
{
|
|
"name": "memory",
|
|
"source": ".mcp.json",
|
|
"command": "npx -y @modelcontextprotocol/server-memory",
|
|
"enabled": true,
|
|
"disabledBy": null,
|
|
"toolCount": null,
|
|
"toolCountUnknown": true,
|
|
"estimatedTokens": 500
|
|
}
|
|
],
|
|
"hooks": [],
|
|
"settings": {
|
|
"cascade": [
|
|
{
|
|
"scope": "user",
|
|
"path": "/var/folders/xc/d_fh7ldj4svc066qgskvx0xr0000gn/T/tmp.rOWg3kmoYU/.claude/settings.json",
|
|
"exists": false,
|
|
"keyCount": 0
|
|
},
|
|
{
|
|
"scope": "project",
|
|
"path": "/Users/ktg/repos/ktg-plugin-marketplace/config-audit/tests/fixtures/marketplace-medium/.claude/settings.json",
|
|
"exists": true,
|
|
"keyCount": 3
|
|
},
|
|
{
|
|
"scope": "local",
|
|
"path": "/Users/ktg/repos/ktg-plugin-marketplace/config-audit/tests/fixtures/marketplace-medium/.claude/settings.local.json",
|
|
"exists": false,
|
|
"keyCount": 0
|
|
}
|
|
]
|
|
},
|
|
"totals": {
|
|
"plugins": 0,
|
|
"skills": 0,
|
|
"mcpServers": 1,
|
|
"hooks": 0,
|
|
"claudeMdFiles": 3,
|
|
"estimatedTokens": {
|
|
"claudeMd": 1639,
|
|
"plugins": 0,
|
|
"skills": 0,
|
|
"mcpServers": 500,
|
|
"hooks": 0,
|
|
"grandTotal": 2139
|
|
}
|
|
},
|
|
"suggestDisables": null,
|
|
"warnings": []
|
|
}
|