contract

package
v2.0.83 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 25, 2026 License: MIT Imports: 0 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL