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.
Install it
Section titled “Install it”1. Install the track under its alias
Section titled “1. Install the track under its alias”npm i -D engineering@npm:@trivoallan/ontrack-engineeringThe 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.
2. Check where it was built
Section titled “2. Check where it was built”npm audit signaturesThe track is published by its release workflow, with provenance. This command checks that the package you installed is the one that workflow built.
3. Import and rule on its conventions
Section titled “3. Import and rule on its conventions”npx ontrack plannpx ontrack applyclaude "$(npx ontrack review)"The tutorial takes these steps one at a time, from step 2.
Take a new release
Section titled “Take a new release”A release of the track can add a convention, revise one, or change how one is checked. Update it, then see what moved:
npm update engineeringnpx ontrack planplan 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.
Change the alias
Section titled “Change the alias”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:
npm uninstall engineeringnpm i -D eng@npm:@trivoallan/ontrack-engineeringnpx ontrack plannpx ontrack applyplan 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.
Reject a convention
Section titled “Reject a convention”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:
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.
Related
Section titled “Related”- Conventions: the conventions of the installed release, by domain.
- Concepts: what a ruling is.
