Environment
- Windows 11, Node v24.14.0
- Cloned from main (commit 8114597)
Steps to reproduce
git clone https://github.com/cobusgreyling/loop-engineering
cd loop-engineering
npm ci
cd tools/loop-audit
npm ci && npm test
Observed behavior
TypeScript build fails with 43 errors across 4 files:
src/auditor.ts — Cannot find module '@cobusgreyling/readiness-core'
src/autofixer.ts — Cannot find module + 10x Property 'signals' does not exist on type 'AuditResult'
src/reporter.ts — 30x missing properties (score, level, findings, signals, etc.)
src/cli.ts — Property 'score' does not exist on type 'AuditResult'
Root cause (suspected)
readiness-core was extracted in 7e1ec65 and published to npm in 0792e03.
However tools/loop-audit/src/ has not been updated to consume the new
package's exported types — AuditResult interface in readiness-core
appears to have a different shape than what loop-audit expects.
Last loop-audit/src/ commit predates the refactor:
5bd6c18 fix(loop-audit,loop-sandbox): correct gate.yaml auto-fix schema
Additional note
This also causes a cascade failure in tools/loop tests:
loop audit --help pass-through fails with ERR_MODULE_NOT_FOUND
for @cobusgreyling/readiness-core
loop doctor --json returns object instead of number for score
These were observed while investigating PR #502.
Willing to help
Happy to assist with the fix if you can confirm the expected
AuditResult shape from readiness-core.
Environment
Steps to reproduce
git clone https://github.com/cobusgreyling/loop-engineering
cd loop-engineering
npm ci
cd tools/loop-audit
npm ci && npm test
Observed behavior
TypeScript build fails with 43 errors across 4 files:
src/auditor.ts— Cannot find module '@cobusgreyling/readiness-core'src/autofixer.ts— Cannot find module + 10xProperty 'signals' does not exist on type 'AuditResult'src/reporter.ts— 30x missing properties (score, level, findings, signals, etc.)src/cli.ts—Property 'score' does not exist on type 'AuditResult'Root cause (suspected)
readiness-corewas extracted in7e1ec65and published to npm in0792e03.However
tools/loop-audit/src/has not been updated to consume the newpackage's exported types —
AuditResultinterface inreadiness-coreappears to have a different shape than what
loop-auditexpects.Last
loop-audit/src/commit predates the refactor:5bd6c18 fix(loop-audit,loop-sandbox): correct gate.yaml auto-fix schemaAdditional note
This also causes a cascade failure in
tools/looptests:loop audit --help pass-throughfails withERR_MODULE_NOT_FOUNDfor
@cobusgreyling/readiness-coreloop doctor --jsonreturnsobjectinstead ofnumberfor scoreThese were observed while investigating PR #502.
Willing to help
Happy to assist with the fix if you can confirm the expected
AuditResultshape fromreadiness-core.