Files
msd-core/scripts/lint-core-spine-imports.allowlist.json
Tom Boucher 48d9cec6fe refactor(#1268): re-home core re-export-spine squatters + migration-convergence lint (#1272)
Re-home the 6 implementation functions squatting in the core.cjs re-export
spine (ADR-857) into the modules whose interface they belong to, with core
re-exporting them BY REFERENCE so all 32 callers + the shim-identity tests
keep resolving unchanged:
- worktree-safety: resolveWorktreeRoot, pruneOrphanedWorktrees
- git-base-branch (broadened to the Git Query Module): gitWorktreeInfoInternal
- agent-install-check (new leaf): getAgentsDir, checkAgentsInstalled
- delete the _resetRuntimeWarningCacheForTests wrapper; consumers use a
  shared resetRuntimeWarningCaches() helper in tests/helpers.cjs

Add scripts/lint-core-spine-imports.cjs (migration-convergence lint with a
30-importer allowlist, wired into lint:ci) so the staged spine retirement
provably converges: CI fails on any new ./core import. Register the new
generated agent-install-check.cjs in eslint-ignore + .gitignore +
INVENTORY-MANIFEST.json.

No behaviour change. First tranche (T0) of epic #1267.

Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-15 15:08:58 -04:00

36 lines
1.1 KiB
JSON

{
"_comment": "Files allowed to import the core re-export spine during the staged retirement (issue #1268). Entries are REMOVED as each tranche migrates a leaf; the file + this lint are deleted in T-final.",
"allow": [
"gsd-core/bin/gsd-tools.cjs",
"src/agent-command-router.cts",
"src/audit-command-router.cts",
"src/capability-state.cts",
"src/capability-writer.cts",
"src/check-command-router.cts",
"src/commands.cts",
"src/config.cts",
"src/docs.cts",
"src/frontmatter.cts",
"src/gap-checker.cts",
"src/graphify-command-router.cts",
"src/gsd2-import.cts",
"src/init.cts",
"src/intel-command-router.cts",
"src/learnings.cts",
"src/loop-resolver.cts",
"src/milestone.cts",
"src/phase.cts",
"src/profile-output.cts",
"src/roadmap-command-router.cts",
"src/roadmap.cts",
"src/state.cts",
"src/task-command-router.cts",
"src/template.cts",
"src/uat.cts",
"src/verification.cts",
"src/verify.cts",
"src/workstream-inventory.cts",
"src/workstream.cts"
]
}