Repository navigation
Releases
v0.7.0
Highlights
ontrack now helps you write decisions down, not only check them. Two new commands hand the work to your coding agent:
npx ontrack suggest, once, when you adopt ontrack: the agent looks through your review comments, git history, AGENTS.md and design notes for the decisions your repository made and never recorded, and proposes at most five, each with its evidence. See Record the decisions you never wrote down.npx ontrack decide, whenever you settle something: the agent records that one decision with you as a local ADR, then runsapply. See Record a decision.
plan no longer ignores a supersedes: entry that matches no ADR. It lists it as unresolved and exits with 2, because the ADR it meant to supersede is still in force.
What you must do
- Run
npx ontrack applyafter upgrading. The instructions block now sends your agent todecidewhen you ask it to record a decision, socheckreports itout of dateuntil you do. - If
plannow reportsunresolvedlines, fix thesupersedes:entries it names: each must match theadr:identifier of the ADR it replaces.
0.7.0 (2026-11-26)
Features
- cli: add ontrack decide, to record a new decision with the user (#245) (92d806c)
- cli: add ontrack suggest, an audit of the decisions never recorded (#243) (278f26a)
- plan: report supersedes entries that designate no ADR (#241) (f3ec014)
Bug Fixes
v0.6.0
Highlights
Update with:
npm i -D @trivoallan/ontrack@0.6.0review starts from what your repository already does
The prompt ontrack review prints now has your coding agent survey the repository first: its files, configuration, CI and history. The conventions your repository already answers come first, each value with the file that shows it; those that need a discussion come after. Each proposed value is marked observed or absent. You can skip an ADR or stop at any time: the repository works with the rest left open.
What a track ships is called a convention
ontrack's vocabulary says convention in its output, its prompts and its documentation. A convention is a shared ADR, proposed to every repository that installs the track; what your repository decides on it is a ruling.
Every command speaks JSON
--json prints what every command reports, and every error, as JSON. Each document starts with the address of its JSON Schema, and every error carries a stable code.
Rename a track's alias without losing its rulings
When you change the npm alias of a track, ontrack apply moves docs/adr/<old>/ to docs/adr/<new>/ with the rulings it holds.
Migrate from 0.5.0
- The AGENTS.md block. The block opens with
## Project instructions (ontrack). Runontrack applyonce to rewrite it, then commit.planandapplyprintAGENTS.md: instructions block ..., andcheckprintsadr: <path>after a fail line: update any script that matches the old strings. - Error lines. An error line starts with
ontrack[E<nnn>]:where it started withontrack:. The message after the colon and the exit code1are unchanged.
Feedback
Open an issue: https://github.com/trivoallan/ontrack/issues
Full changelog
0.6.0 (2026-11-16)
⚠ BREAKING CHANGES
- the block of AGENTS.md opens with "## Project instructions (ontrack)"; plan and apply print "AGENTS.md: instructions block ..."; check prints "adr: " after a fail line; the prompts of review say "convention". Run "ontrack apply" once to rewrite the block.
- cli: an error line starts with
ontrack[E<nnn>]:where it started withontrack:. The message after the colon and the exit code1are unchanged.
Features
- apply: rename a track's namespace without losing its rulings (#208) (2139a3f)
- call what a track ships a convention (#221) (13157a5)
- cli: give every error a stable code (#214) (08d20c5)
- cli: print what every command reports, and every error, as JSON (#219) (071ce2e)
- cli: publish a JSON Schema for each document of --json (#217) (0e1228c)
- cli: start each document of --json with the address of its schema (#218) (e1e17c0)
- review: rule from the repository's practice, and mark each value observed or absent (#205) (0b5565e)
- review: rule what the history answers first, and stop when you choose (#210) (dd26cb9)
Bug Fixes
v0.5.0
Highlights
The reference track, question by question, on the site
The documentation now has a page for the ontrack-engineering track: what a repository gets from it, its domains, and every question it asks, blank, as your repository receives it. Each question links to how ontrack itself answered it.
Packages of questions are called tracks
ontrack's vocabulary says track where it said source, in its output, its errors and its documentation. A track is what you install; its questions become ADRs in your repository.
Your own ADRs live in docs/adr/local/
ontrack apply moves the ADRs your repository wrote itself to docs/adr/local/, next to docs/adr/<alias>/ for each track. Imported and own decisions no longer share a directory.
Call the propose and apply workflows from your repository
Other repositories can call ontrack's propose and apply GitHub workflows instead of copying them.
Migrate from 0.4.0
- Output wording and the npm keyword.
ontrack planprintsno track foundwhere it printedno ontrack source found, and discovery errors saytrack "<alias>"where they saidsource "<alias>". Update any script that matches those strings. A published track is found by the npm keywordontrack-tracks, no longerontrack-source: add it to thekeywordsof your track'spackage.jsonand publish again. Exit codes and file formats are unchanged. - Own ADRs move to
docs/adr/local/. While your own ADRs sit directly indocs/adr/,ontrack planexits with 2. Runontrack applyonce to move them, then commit the move;planexits 0 again. The aliaslocalis now reserved: a track installed under that alias must be renamed inpackage.json. The propose workflow refuses a new ADR placed directly indocs/adr/.
Feedback
Open an issue: https://github.com/trivoallan/ontrack/issues
Full changelog
0.5.0 (2026-11-15)
⚠ BREAKING CHANGES
- tracks:
ontrack planprintsno track foundwhere it printedno ontrack source found; discovery errors saytrack "<alias>"where they saidsource "<alias>"; the npm keyword of a published package isontrack-tracks, no longerontrack-source. Exit codes and file formats are unchanged. - own ADRs directly in docs/adr/ make
ontrack planexit with 2 untilontrack applyhas moved them to docs/adr/local/. A source can no longer be installed under the aliaslocal. The propose workflow refuses a new ADR placed directly in docs/adr/.
Features
- instructions: point agents at
ontrack reviewin the rules block (#185) (f982ce0) - let other repositories call the propose and apply workflows (#156) (e2144ac)
- move a repository's own ADRs to docs/adr/local (#165) (ef7a712)
- review: import the new ADRs before ruling them (#175) (43e6bbf)
- review: title tracking items by bracketed ADR reference (#169) (a194d20)
- tracks: call a package of questions a track (#168) (f20966c)
- verify-release-provenance (#134) (1778e73)
Bug Fixes
- apply: start one apply session per head commit (#160) (4eb88cf)
- cli: name the package in printed commands when ontrack is not installed (#202) (73d7272)
- give the apply sessions the secret guard the checks expect (#142) (00d3a7e)
- keep the apply session silent on the pull request's draft state (#141) (80690b7)
- review: give the supersedes reference ontrack resolves (#191) (8c125e8)
- tracks: say where to run from when there is no package.json (#177) (66b9caf)
v0.4.0
Highlights
Rulings follow the question when a source revises it
When a source revises a question you already answered, ontrack review now puts that ADR back in front of you instead of keeping a ruling that answers the old question.
See every decision at a glance
ontrack plan --all lists every ADR with its verdict, not only the ones that still need work. Use it to audit where a repository stands.
Improvements
- Tracking without duplicates:
reviewlabels the tracking items it opensontrackand skips the rulings that already have one, so running it twice no longer files the same item twice. - Know what to do next: while ADRs are still proposed,
applynames the next step on stderr instead of leaving you to guess.
Documentation
- New "How ontrack works" page, replacing the features list.
- New reference for the file formats and for the output contracts.
- New how-to guides: writing a source, finding and publishing one on npm, revising a question, running ontrack in CI.
- A comparison with rules sync, ADR check and standards tools.
Supply chain
- Each release now ships a CycloneDX SBOM.
- Sources install from the npm registry.
Feedback
Open an issue: https://github.com/trivoallan/ontrack/issues
Full changelog
0.4.0 (2026-11-14)
Features
- apply: name the next step on stderr while ADRs are proposed (#79) (17ad58d)
- draft a change for every labelled issue (#129) (6051ccd)
- gate the apply of a change behind an approved pull request (#136) (5450a62)
- plan: list every ADR with its verdict under --all (#113) (4255764)
- review: label tracking items ontrack and skip rulings already tracked (#101) (2e7a459)
- review: rule again the ADRs whose source revised the question (#82) (fe52ff1)
- tell the pull request where its apply session is and why it stopped (#137) (b22219b)
Bug Fixes
- draft a proposal for an open issue only (#123) (a2b1cb3)
- find the apply session's address in the answer that starts it (#138) (ef75999)
- give the propose workflow its workspace (#122) (4c7b75c)
- let the proposal agent run its commands (#125) (4a3b803)
- let the proposal agent write the change (#133) (b1769f7)
- put the framework's command within the proposal agent's reach (#135) (268e41b)
- show what stopped the proposal agent (#132) (e7b33fc)
- show why the proposal agent fails on its first turn (#124) (0b8b87b)
v0.3.0
v0.2.0
ontrack 0.2.0: the first tagged release
ontrack imports shared architecture decision records (ADRs) into a repository
from npm sources, and tells you when a decision has to be taken again.
Until now ontrack was installed from main, so nobody could name the version
they ran. From this release on, every version has a tag you can pin:
npm i -D ontrack@git+https://github.com/trivoallan/ontrack.git#v0.2.0
What ontrack does today
ontrack planreports what importing the sources would change, without
writing anything. Its exit code lets a CI job detect an out-of-date
repository.ontrack applyimports new ADRs, moves files from the flat layout, and
keeps the rules block ofAGENTS.mdcurrent. It never touches an ADR you
already decided on.ontrack instructionspreviews the decided traits as the block coding
agents read.ontrack reviewprints a prompt asking a coding agent to rule the proposed
ADRs, or to supersede an accepted one.ontrack checkruns the check command of each decided ADR.
For source authors
ontrack now publishes a JSON Schema for the ontrack key of a source's
package.json. Point your editor at it and a missing or mistyped adr is
flagged while you type. The README has the VS Code setting.
If you were installing from main
- Node 22.18 or later is required (it was 20.19).
- The lines printed by
ontrack planchanged: arevisedline now shows the
ADR's title, and the title is dropped when the file name already carries a
slug. Update anything that parses that output.
Documentation
The documentation site, https://trivoallan.github.io/ontrack/, now holds
the architecture of ontrack: an arc42 document and a LikeC4 model of its
modules.
The full list of changes follows.
0.2.0 (2026-11-14)
⚠ BREAKING CHANGES
- Node 22.18 or later is required (was 20.19).
- plan: drop the title when the ADR name carries a slug (#21)
- plan:
revisedlines read<name> <title> (revision a → b)instead of<name> revision a → b.
Features
- apply: implement ontrack apply (#14) (3593a3f)
- apply: keep the AGENTS.md rules block up to date (#18) (204873c)
- apply: keep the check line of imported ADRs in step with the source (#57) (c4823f8)
- check: run the check command of each decided ADR (#41) (961e8de)
- cli: CLI skeleton and ontrack plan output contract (#5) (2f435dd)
- govern ontrack with trivoallan/governance (#12) (5a3a0f9)
- instructions: print decided ADR traits as a block for AGENTS.md (#17) (0f4b385)
- migrate the code to TypeScript (#46) (faed0e5), closes #30
- plan: drop the title when the ADR name carries a slug (#21) (c7b3145)
- plan: implement ontrack plan (#8) (d13401f), closes #4
- plan: show each ADR's title (#13) (5a195b8)
- review: print a prompt asking an agent to rule the proposed ADRs (#22) (2d9372e)
- review: print a supersession prompt for a named accepted ADR (#49) (9c96d2b)
- review: propose tracking items for rulings the repository does not follow yet (#29) (ce3e6f3)
- revision: read an ADR's revision and classify it against upstream (#6) (10bff07)
- sources: discover ontrack sources from npm dependencies (#7) (6b3c06d)
- sources: publish a JSON Schema for a source's ontrack key (#54) (3b5fbc1)
- sources: validate input boundaries with zod (#53) (877e62e)