trw_build_check
Record build and test results to validate delivery gates and track ceremony progress.
Instructions
Record build/test results for ceremony tracking and delivery gates.
Use when:
You just ran project-native validation (via shell/CI/script) and need the outcome logged.
You want the delivery gate to see the latest pass/fail + coverage.
You want Q-learning feedback attached to a phase transition.
This tool does NOT execute subprocesses — run validation commands first, then call this with the results.
Input:
tests_passed: True or False — required; no default guess.
test_count: total checks/tests that ran.
failure_count: number that failed.
coverage_pct: 0.0-100.0, if measured.
static_checks_clean: preferred neutral status for configured static/type/lint/schema checks.
mypy_clean: legacy compatibility alias; use only for older clients or Python-specific reports.
scope: label like
full,quick,type-check,cargo test,npm test.failures: optional list of up to 10 failure descriptions.
run_path: optional run directory for event logging.
min_coverage: when set, falls tests_passed to False if coverage_pct is below the threshold (adds
coverage_threshold_failedflag).
Output: dict with fields {status, run_id?, outcome, tests_passed, coverage_pct, static_checks_clean, mypy_clean, coverage_threshold_failed?, gate_effects: list[str]}.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| scope | No | full | |
| failures | No | ||
| run_path | No | ||
| mypy_clean | No | ||
| test_count | No | ||
| coverage_pct | No | ||
| min_coverage | No | ||
| tests_passed | No | ||
| failure_count | No | ||
| static_checks_clean | No |