Skip to main content

Module coverage_gate

Module coverage_gate 

Source
Expand description

L3: zagens coverage-gate — cross-platform Layer-2 completion gate.

Replaces the PowerShell check scripts with a portable Rust implementation.

§Exit codes

CodeMeaning
0All gate checks passed
1One or more checks failed (unless --no-fail)
2Configuration error (bad args, missing workspace, etc.)

§Checks performed

  1. fmtcargo fmt --check
  2. clippycargo clippy -- -D warnings
  3. compilecargo test --no-run
  4. testscargo test (only when --run-tests is set)
  5. checklist — all todo items in .zagens/todo.json are completed (only when --require-checklist-complete)
  6. craft — last CRAFT task in .zagens/craft-ab-metrics.jsonl has terminal_verdict == "PASS" (when a task_id is provided)

Structs§

GateCheck
Result of a single gate check.
GateReport
Full gate report.

Functions§

run
Entry point for zagens coverage-gate.
run_gate
Run all gate checks and return the report.