sumo_qa_record_coverage
Validate and persist a coverage summary into the QA report's coverage.json artifact.
Instructions
Validate a host-collected coverage summary and persist it as the
.sumo-qa/coverage.json artifact the QA report loads (issue #147
follow-up). FILE/FORMAT PLUMBING ONLY — the host skill runs the coverage
tool and the LLM reads its output (any format); this tool runs nothing
and infers nothing.
Common natural-language phrasings that map to this tool: "record the coverage result", "save coverage into the QA report", "persist the coverage summary".
coverage is a dict with optional line_percent (0–100),
freshness (fresh/stale/unknown/absent), detail (e.g. uncovered
changed files), plus source_tool and generated_at provenance.
Omit line_percent for a not-measured signal. Validation fails BEFORE
any write. Coverage is REPORTED, never gated — it cannot flip a verdict.
write_to defaults to the conventional .sumo-qa/coverage.json
under the target repo; a relative path is confined to root.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| root | Yes | ||
| coverage | Yes | ||
| write_to | No | .sumo-qa/coverage.json |