Skip to content

[bug] loop-audit fails to build after readiness-core extraction (43 TS errors) #504

Description

@TayyabHussain03

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.tsProperty '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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions