fix(cli): accurate --json help + strict gate message; note #331 contract
Two defects surfaced while grading #33:
- The global --json help said only "read and status subcommands" honor it,
but this PR also added the {"ok":true,…} mutation envelope. Reword to
describe reads, status, and mutations.
- gate_result reported `counts.uncovered` in its error message even under
--strict, so a strict run failing only on partials printed "0 uncovered
requirement(s)". Report the whole failing-set size instead.
Also note in the clear_requirements test that the list payload carries
parent_id per the server contract (fangorn/anvil #331) — that fix is what
makes the children-first ordering deterministic against the real API.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
SHA:
1bd4dc532b8609fcfd621e33cf0dc20904877073
Author:
CI <ci@anvil.test>
Date:
2026-07-06 22:06
Parents:
58c52f6
2 files changed
+11
-3
| Type | ||
|---|---|---|
|
|
src/commands/mod.rs | +5 −2 |
|
||
|
|
src/commands/requirement.rs | +6 −1 |
|
||