You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 897f042
Browse filesBrowse the repository at this point in the historyBrowse files
refactor(requirements): dedupe the ledger load, unpick a nested ternary
Simplifier pass over the four gate scripts and the renderer.
The strict ledger load plus its "does not load" error report was repeated
verbatim in three scripts, down to the `errors.length > 0 || root === undefined`
guard — the same duplication this shared module already existed to close for the
population walk. It is now `loadLedgerOrReport(dir, gate, detail?)`, with the one
caller's extra clause passed rather than the whole block copied.
The requirement-test renderer's body assignment had become a NESTED ternary when
`retired` got its own text — which this repo's own style notes call out. Same
three branches, same order, now an if/else chain, with the comment explaining why
the two skipped statuses must not share a body left verbatim.
Smaller: check-requirements-vocabulary walked the requirement tree twice, once to
validate and once again only to count the L5s; check-requirements-ledger computed
its own REPO_ROOT instead of importing the shared one; and the three self-tests'
`expect` helpers had drifted into two shapes.
Behaviour is unchanged and checked rather than assumed: the harness regenerates
byte-identically, all seven gates and self-tests pass, codegen-ts is 1332 pass /
0 fail, the workspace typechecks, and `ci-local.sh --only gates` is green. Every
fix from the preceding review pass was re-verified intact — bun_install first in
each gate, the round-trip derivation check, the validated --expect-warnings flag,
the scaffolder's non-zero bare run, textual --apply, the architectural filter, and
esc() on every prose interpolation.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NynrRND6ZUwGvq3ZUTCfxG
0 commit comments