Loop uses layered quality gates: local correctness, coverage proof, policy enforcement, and release-grade verification.
make checkRuns:
- Type checks
- Tests
make coverageRuns:
scripts/run_coverage.shcargo llvm-covline-coverage gate (COVERAGE_MIN_LINES, default69)- Artifact output:
coverage/lcov.info,coverage/summary.txt
Notes:
- If
cargo-llvm-covis missing locally, the script exits with actionable install guidance. - GitHub Actions workflow
rlm-core-coverage.ymlis the canonical enforcement path. - Coverage CI bootstraps
rlm-core/python/.venvand installsrlm-core/pythonso REPL-backed Rust tests run with deterministic Python dependencies.
make rustdoc-checkPurpose:
- Keep public docs buildable and warning-free.
- Catch broken intra-doc links and rustdoc lint regressions early.
make py-integration-gatePurpose:
- Validate package-level compatibility helpers (
version,version_tuple,has_feature,available_features). - Reject false-green all-skipped/no-tests-ran outcomes.
make ignored-repl-gatePurpose:
- Ensure ignored REPL/Lean subprocess integration tests complete deterministically in unattended runs.
- Catch orphan-process cleanup regressions early.
make proptest-gatePurpose:
- Enforce invariant-level proptest coverage across epistemic math, signature validation, fallback behavior, and router/accounting logic.
- Run with deterministic proptest configuration (
PROPTEST_CASES=96,PROPTEST_RNG_SEED=424242,PROPTEST_RNG_ALGORITHM=cc) so CI/local results are reproducible. - Fail fast if any scoped property-test suite accidentally runs zero tests (false-green guardrail).
make claude-adapter-gatePurpose:
- Validate realistic Claude adapter observe/orient/decide/act scenarios, not just activation plumbing.
- Enforce scenario-level quality assertions (context observation, signal-driven mode choice, execution/accounting outputs).
- Guard against false green from test-filter drift by requiring at least two scenario tests to execute.
make docs-checkPurpose:
- Enforce documentation punctuation/style constraints for operational docs.
- Prevent typographic em dash punctuation from creeping into maintained guides.
./scripts/dp review --json
./scripts/dp verify --jsonPurpose:
- Consistent, machine-readable status
- Standardized workflow enforcement
./scripts/dp enforce pre-commit --policy dp-policy.json --json
./scripts/dp enforce pre-push --policy dp-policy.json --jsonPurpose:
- Block policy violations before commit/push boundaries
- Exit code is authoritative.
- JSON
okis authoritative. - Warnings are not failures, but they are not decorative either.
When a gate fails:
- Re-run same command to confirm.
- Isolate first failing step.
- Fix root cause.
- Re-run full gate chain.
No partial-pass narratives.
- During iteration: targeted tests.
- Before commit:
make check. - Before push:
make coverage(or verify CI coverage gate pass when local tool install is blocked). - Before push:
make rustdoc-check. - Before push:
make py-integration-gatewhen Python bindings or compatibility surface changed. - Before push:
make proptest-gate. - Before push:
make claude-adapter-gate. - Before push:
make docs-check. - Before push (release-grade subprocess changes):
make ignored-repl-gate. - Before push: full
dpenforcement chain.
For major changes, capture outputs into:
docs/execution-plan/evidence/<date>/<scope>/...
This makes reviews faster and postmortems less fictional.