Skip to content

Quality Requirements

The three quality goals of Introduction and Goals, as scenarios. Each scenario is stated in full in the specification it links to, and tested by the test file of the module named beside it.

Scenario Specified in Tested in
The track raises the revision of an ADR the repository ruled: apply reports it and leaves the file as it is. apply, “Revised ADR left alone” test/apply.test.ts
apply --confirm names an ADR it cannot confirm: apply fails before writing any file. apply, “Confirm a name that is not undetermined” test/apply.test.ts
Only the local ruling differs from the track’s copy: the ADR is unchanged. adr-revision, “Only the local ruling changed” test/revision.test.ts
apply --confirm on an undetermined ADR changes its revision: line and nothing else. apply, “Confirm one ADR” test/apply.test.ts
apply rewrites the instructions block of AGENTS.md and leaves the rest of the file untouched. agents-file, “Block replaced, the rest untouched” test/agents.test.ts
Scenario Specified in Tested in
Nothing differs from the tracks: apply writes nothing, prints what plan prints and exits with 0. apply, “Nothing to apply” test/apply.test.ts
plan leaves the working tree as it found it. plan, “Tree unchanged” test/plan.test.ts
A new ADR is copied byte for byte from the track. apply, “New ADR imported” test/apply.test.ts
The same project always gives the same output: tracks are sorted by namespace and ADRs by name. plan, “Output format” test/plan.test.ts
apply --dry-run writes nothing and announces what a real run would do. apply, “Dry run” test/apply.test.ts
Scenario Checked by
The package declares two runtime dependencies, yargs and zod. dependencies in package.json
The package ships compiled code only, and nothing under docs/ or site/. files in package.json; docs-site, “Package content”
No command opens a network connection. plan, “Read-only and offline”, apply, “Same plan as plan”
The lowest supported Node runs the whole test suite. the node-22 job of test.yml