Skip to content

Find a track

This guide shows how to find a track that someone else wrote, and what to look at before you install it. Use it to adopt a track, or to read one before you write your own.

Authors mark a published track with the keyword ontrack-tracks:

Search npm for keywords:ontrack-tracks

The search shows the tracks published to the registry with that keyword. A track published by git URL only does not appear in it.

A track was called a source before ontrack 0.5. A package published then may still carry the earlier keyword: search npm for keywords:ontrack-source.

@trivoallan/ontrack-engineering is the track ontrack uses on itself. Its ADRs are in trivoallan/ontrack-engineering; Use the ontrack-engineering track shows how to install it and follow its releases.

A repository installs a whole track. Each of its conventions then waits for a ruling. Before you install, read in the README and in the ADRs of the track:

  • how many conventions it ships, and on which subjects;
  • which conventions carry a check key. The command it names runs in your repository, with ontrack check, once you accept the ADR;
  • how often its conventions are revised.

Install the package under an alias. The alias is the namespace: the ADRs land in docs/adr/<alias>/. It must be unscoped, and cannot be local, the namespace of your own ADRs.

Terminal window
npm i -D <alias>@npm:<package>
npx ontrack plan

plan lists the conventions and changes no file. npx ontrack apply then imports them. The tutorial goes through these steps with a track.

You cannot install part of a track. You rule on each convention instead:

  • Every convention arrives as proposed, and is listed in AGENTS.md under “Not yet decided” until you rule.
  • rejected is a full ruling: the convention does not apply here, and the ADR says what stands in for it.
  • When the author revises a convention, it comes back for a ruling, even when you rejected it.

How ontrack works follows a convention from its arrival to its revision. A repository may install several tracks, each under its own alias.