Problem
M2 spine progress is cited in multiple places with easy drift:
| Source |
Typical value |
test/unit/BootstrapSelfhostBundleTest.php |
582 (canonical) |
docs/self-host-target.md, README.md, development-status.md |
582/586 |
| ROADMAP #78 / #1380 comments |
sometimes 578 after hygiene closes |
docs/roadmap-wave3.md |
582/586 (synced #1815) |
Batch hygiene (#1818 ✅) closed stale m2-spine-unit issues but did not add a guard when ROADMAP issue bodies lag BootstrapSelfhostBundleTest.
Goal
- Add
script/check-selfhost-spine-count-sync.php that reads the expected spine count from BootstrapSelfhostBundleTest (or compiler_lib_spine_smoke/main.php require_once count) and fails if key docs diverge:
- Gate
SELFHOST_SPINE_COUNT_SYNC_GATE in ci-fast.sh (default 0; flip 1 after first sync PR)
Acceptance criteria
php script/check-selfhost-spine-count-sync.php
SELFHOST_SPINE_COUNT_SYNC_GATE=1 ./script/ci-fast.sh
BOOTSTRAP_LIB_SPINE_SMOKE=1 make bootstrap-selfhost-lib-spine-smoke # still 582 bundle OK
Dependencies
Non-goals
- GitHub Actions
- Replacing
php script/bootstrap-inventory.php --check (586 inventory files)
Links
Problem
M2 spine progress is cited in multiple places with easy drift:
test/unit/BootstrapSelfhostBundleTest.phpdocs/self-host-target.md,README.md,development-status.mddocs/roadmap-wave3.mdBatch hygiene (#1818 ✅) closed stale
m2-spine-unitissues but did not add a guard when ROADMAP issue bodies lagBootstrapSelfhostBundleTest.Goal
script/check-selfhost-spine-count-sync.phpthat reads the expected spine count fromBootstrapSelfhostBundleTest(orcompiler_lib_spine_smoke/main.phprequire_oncecount) and fails if key docs diverge:docs/roadmap-wave3.mdsummary linedocs/self-host-target.mdM2 tableSELFHOST_SPINE_COUNT_SYNC_GATEinci-fast.sh(default0; flip1after first sync PR)Acceptance criteria
php script/check-selfhost-spine-count-sync.php SELFHOST_SPINE_COUNT_SYNC_GATE=1 ./script/ci-fast.sh BOOTSTRAP_LIB_SPINE_SMOKE=1 make bootstrap-selfhost-lib-spine-smoke # still 582 bundle OKDependencies
Non-goals
php script/bootstrap-inventory.php --check(586 inventory files)Links