Skip to content

Use the ontrack-engineering track

This guide shows how to install @trivoallan/ontrack-engineering in a repository, how to take its new releases, and how to reject one of its conventions. It assumes ontrack is installed: see the tutorial, step 1.

Terminal window
npm i -D engineering@npm:@trivoallan/ontrack-engineering

The alias, engineering, is the track’s namespace: its conventions land in docs/adr/engineering/, and AGENTS.md names them engineering/ADR-…. It is the package name without its scope and without ontrack-. If another track you install would get the same alias, prefix it with the author: acme-engineering.

Terminal window
npm audit signatures

The track is published by its release workflow, with provenance. This command checks that the package you installed is the one that workflow built.

Terminal window
npx ontrack plan
npx ontrack apply
claude "$(npx ontrack review)"

The tutorial takes these steps one at a time, from step 2.

A release of the track can add a convention, revise one, or change how one is checked. Update it, then see what moved:

Terminal window
npm update engineering
npx ontrack plan

plan says, for each convention, what changed and what to do: rule a new or revised convention with npx ontrack review, then run npx ontrack apply. Revise a convention walks through a revised convention, from step 4.

To be told when the track moves, rather than remember to update it, see Run ontrack in CI.

The alias names the folder and every reference to the track’s ADRs. To install the track under another one, eng for example, reinstall it and let ontrack move the folder:

Terminal window
npm uninstall engineering
npm i -D eng@npm:@trivoallan/ontrack-engineering
npx ontrack plan
npx ontrack apply

plan reads the old folder as the track’s and ends with rename: docs/adr/engineering/ → docs/adr/eng/. apply moves it as a whole, so your rulings stay. It then lists the links and the supersedes: entries that still name engineering: edit them, and run npx ontrack apply again to write AGENTS.md.

A convention that does not fit your repository is ruled on by rejecting it: a rejection is a full ruling. Ask the agent to rule on it:

Terminal window
claude "$(npx ontrack review ADR-0013)"

It proposes rejected only on evidence that the convention does not apply. Once you agree, it sets the status, removes the traits: block, writes in the ADR what stands in for the convention, and runs npx ontrack apply. AGENTS.md then carries no instruction for it, and plan no longer lists it as pending.

  • Conventions: the conventions of the installed release, by domain.
  • Concepts: what a ruling is.