Skip to content

Gap check and replay

Command and output reference for the current JavaScript/TypeScript gap-check CLI.

Run a check

shell
pnpm exec oracle-gaps --package <package-dir> --source <src/file.ts> --seed <n>
  • Source paths and --config are relative to the selected package.
  • Include configuration discovery, environment prefix, daemon use and report location.
  • Document the main flags with defaults and links to less common controls.

Read the baseline first

  • Each test file’s result, failing law, counterexample and replay command.
  • A failing law is left out of judging; passing tests in the same file still judge mutants. A broken owner file judges nothing.
  • Mutants reached only by failing laws or broken owner files are blocked, and the report is provisional.
  • Distinguish setup refusal, an oracle disagreement and a production defect.

Interpret gaps

  • An unnoticed fault starts an investigation. Check whether the histories reach it, the driver observes its consequences and the comparison recognizes the violation; strengthen the oracle and run again.
  • Enforcement gaps are not waived. If a gap exposes undecided behavior, resolve the design question; if the tooling is wrong, report the evidence and fix the tooling.
  • Explain the reported classes and the observation each asks the author to investigate.
  • Separate reproducible law verdicts from crashes, timeouts, ordinary-test results and unowned code.
  • Link the relevant design/review instructions without copying the full workflow here.

Replay a failure

  • Seed, path, property and unit selection with the configured environment prefix.
  • Copy the exact replay line from the report before changing expectations.
  • Keep a useful counterexample as a regression history after diagnosis.

Reports and exit statuses

  • summary.md, structured results and diagnostic logs.
  • Exit 0 means the run completed; gaps may remain.
  • Refused, internal-error and stopped outcomes, with their diagnostic paths.
  • The final oracle-gaps: done line and progress/heartbeat output.

Troubleshoot a run

  • Wrong package/config, incompatible environment, blocked owners and resource limits.
  • Report framework problems with evidence; keep the law intact while investigating.
  • Link Writing an oracle and adoption.