|
| 1 | +# PR_26140_077 Advanced Index Barrel Removal Report |
| 2 | + |
| 3 | +## Scope |
| 4 | +- Removed the remaining targeted internal advanced barrels: |
| 5 | + - `src/advanced/promotion/index.js` |
| 6 | + - `src/advanced/state/index.js` |
| 7 | +- Replaced active imports from `src/advanced/state/index.js` with direct canonical module imports. |
| 8 | +- No schema files were changed. |
| 9 | +- No sample JSON files were changed. |
| 10 | +- No sample/game entry `index.js` files were removed. |
| 11 | +- No replacement pass-through barrels or shims were created. |
| 12 | + |
| 13 | +## Import Updates |
| 14 | +- `tests/world/WorldGameStateAuthoritativeScore.test.mjs` now imports state constants, system creation, and registration directly from their owning modules. |
| 15 | +- `tests/world/WorldGameStateAuthoritativeHandoff.test.mjs` now imports state constants, system creation, and registration directly from their owning modules. |
| 16 | +- `src/shared/state/contracts.js` had a stale reference to the previously removed `src/shared/contracts/index.js`; focused advanced/state validation exposed it. This was repaired with direct exports from `sharedStateContracts.js` and `replayContracts.js` only. |
| 17 | + |
| 18 | +## Validation |
| 19 | +- PASS: `node --check src/shared/state/contracts.js` |
| 20 | +- PASS: `node --check tests/world/WorldGameStateAuthoritativeScore.test.mjs` |
| 21 | +- PASS: `node --check tests/world/WorldGameStateAuthoritativeHandoff.test.mjs` |
| 22 | +- PASS: `rg -n "advanced/(promotion|state)/index\.js" --glob "*.js" --glob "*.mjs" --glob "!docs/dev/reports/**" --glob "!tests/results/**"` returned no active references. |
| 23 | +- PASS: `Test-Path src/advanced/promotion/index.js; Test-Path src/advanced/state/index.js` returned `False` for both targeted barrels. |
| 24 | +- PASS: focused `WorldGameStateAuthoritativeScore` test run. |
| 25 | +- PASS: focused `WorldGameStateAuthoritativeHandoff` test run. |
| 26 | +- PASS: `npm run test:workspace-v2` passed 59 tests. |
| 27 | + |
| 28 | +## Affected Advanced/State Tests |
| 29 | +- `tests/world/WorldGameStateAuthoritativeScore.test.mjs` |
| 30 | +- `tests/world/WorldGameStateAuthoritativeHandoff.test.mjs` |
| 31 | + |
| 32 | +## Full Samples Smoke Test |
| 33 | +- Skipped. This PR is import-only cleanup plus one stale direct-import repair; it does not broadly impact the sample loader/framework. |
| 34 | + |
| 35 | +## Manual Validation Notes |
| 36 | +- Confirm the two targeted advanced barrel files no longer exist. |
| 37 | +- Confirm code search shows no active imports from the targeted advanced barrels. |
| 38 | +- Confirm Workspace Manager V2 still passes its standard validation gate. |
0 commit comments