Skip to content

v0.6.0

Choose a tag to compare

@trivoallan trivoallan released this 16 Nov 18:52
5f2f16b

Highlights

Update with:

npm i -D @trivoallan/ontrack@0.6.0

review 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

  1. The AGENTS.md block. The block opens with ## Project instructions (ontrack). Run ontrack apply once to rewrite it, then commit. plan and apply print AGENTS.md: instructions block ..., and check prints adr: <path> after a fail line: update any script that matches the old strings.
  2. Error lines. An error line starts with ontrack[E<nnn>]: where it started with ontrack:. The message after the colon and the exit code 1 are 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 with ontrack:. The message after the colon and the exit code 1 are 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

  • cli: name the cause or the next step in four dead-end messages (#211) (ea5821f)
  • review: say what review prints in one short help line (#213) (f9e6936)