Documentation
¶
Overview ¶
Package contract pins the command-line rules in AGENTS.md to the real binaries.
It holds no code, only a test: contract_test.go builds each nova tool (bus, cairn, config, fleet, reserve, roadmap, sandbox, secrets; a directory absent from the checkout is skipped by name) with go build into a temporary directory, runs it as a subprocess with a scrubbed environment and every path under the temporary directory, and asserts the help, flag, verb, missing-input and exit-code rules of the command-line contract.
Banners differ per tool, so the verbs of each tool are listed in the test (toolSpecs) and each is checked to appear in the tool's own help banner. Adding a verb to a tool means adding it to toolSpecs; the test then holds it to the contract. Every failure message starts with an assertion id (A1..A6), then names the tool and verb, what was expected and what was seen.
readme_test.go holds the user docs to the same binaries: every nova command a README or a play's header quotes names a real verb and real flags, the help commands run, and every quoted refusal is in docRefusals, run cold where it needs nothing but a directory.
The functional tier (build tag functional) adds the fault contract: faults_test.go runs the rows of faults_<tool>_test.go against real failures, and lint_test.go reads the source for silent discards, silent exits and no_log tasks with no receipt. AGENTS.md has the rules.
The CLI contract above is test-only and needs no network and no real store.