Stop copying your conventions from repo to repo.
27 decisions (commits, branching, delivery, supply chain, agent tooling) that every one of your Python or TypeScript repositories on GitHub imports and overrules where it disagrees; 17 of them come with a check that runs in CI. When a decision changes, each repository is told, instead of drifting.
ontrack-engineering is an ontrack track: an npm package of ADRs that your repository imports and rules on, one convention at a time.
| Domain | What you gain | What ontrack-engineering-check verifies |
|---|---|---|
| Agents (0017, 0022, 0026) | The rules you accepted, written by ontrack into a managed block of AGENTS.md, which Claude Code, opencode and Copilot CLI read on every session; plugins pinned; the agent opens the pull request and never approves one; a person merges it, or approves it so the agent can; if you choose, the agent acts under its own GitHub identity, so that approval is one GitHub enforces |
each declared host's settings exist (.claude/settings.json, opencode.json), deny gh pr review, and deny gh pr merge with review.by: maintainer (for Copilot CLI, through a hook, since it ignores denies); in CI, the default branch's ruleset matches review.approvals; the agent's identity is not verified |
| Architecture (0003, 0010) | A hexagonal core by default, where the domain depends on no I/O, so an agent writes and tests it without a running environment. The architecture is documented in arc42's twelve sections, with C4 diagrams generated from a LikeC4 model kept as code | the twelve arc42 section files; the LikeC4 model files, if you chose them |
| Code (0004, 0005, 0007, 0013, 0024) | Validation at every boundary (zod or pydantic), a test coverage target you set, and your own code scanned by CodeQL, its alerts blocking from high |
a scan workflow sends its SARIF to code scanning (or keeps it as an artifact); the threshold, held by the ruleset, is not verified |
| Decisions & docs (0001, 0002, 0008) | Decisions kept as ADRs, docs in one language under one root | each ruled ADR carries its ruling (status decided, no trait left empty, how-to-rule block gone), checked against the shipped .mdschema.yml; the docs tool and root exist |
| Delivery (0011, 0012, 0023, 0027) | A pipeline designed once (stages, a blocking gate, a merge queue or up-to-date branches so the default branch holds what was tested, releases cut from tags) that your agent writes from the rules and that zizmor reads for what those rules forbid, a licence others can reuse the code under, and, where you provision, infrastructure declared in the repository and applied by a person, never by the agent on its own | a workflow exists; zizmor finds no movable action reference, dangerous trigger, template injection or over-broad permission in the workflows; a queue's workflows run on merge_group, and in CI the ruleset holds the queue or the up-to-date rule; release-please runs in one; a Dockerfile if you ship a container; the root manifest declares the ruled licence and a licence file is committed; infrastructure files and the provider lock file are committed, and no state file is |
| Supply chain (0015, 0018, 0019, 0020, 0021, 0025) | Current practice, by name: gitleaks before every commit, dependencies admitted by a person with install scripts ignored, a CycloneDX SBOM scanned by Grype, SLSA Build Level 2 provenance, and the tools outside npm pinned by version and checksum in one place | gitleaks finds no secret on the branch; Dependabot is configured, and so is its automerge; the publishing workflow emits provenance; mise pins the tools your rulings name, and the checks run those, never a bin from node_modules |
| Workflow (0006, 0009, 0014, 0016) | One convention for commits and branch names, refused at the gate instead of argued in review | the branch's commits pass commitlint; the branch name has an accepted prefix; OpenSpec uses the schema you chose |
Checks confirm the wiring is there, not that it is right: the gate's ruleset, for one, is yours to set on GitHub. Reject any convention that doesn't fit your repository.
- ADR-0001 Record architecture decisions
- ADR-0002 Localization
- ADR-0003 Software architecture
- ADR-0004 Languages
- ADR-0005 Validation
- ADR-0006 Commits
- ADR-0007 Tests
- ADR-0008 Documentation
- ADR-0009 Branching
- ADR-0010 Architecture documentation
- ADR-0011 Forge and continuous integration
- ADR-0012 Delivery
- ADR-0013 Frontend
- ADR-0014 Work tracking
- ADR-0015 Secrets
- ADR-0016 Changes
- ADR-0017 Agent tooling
- ADR-0018 Dependencies
- ADR-0019 Vulnerabilities
- ADR-0020 Adding a dependency
- ADR-0021 Build provenance
- ADR-0022 Review and merge
- ADR-0023 License
- ADR-0024 Code scanning
- ADR-0025 Tools outside the package manager
- ADR-0026 Agent identity
- ADR-0027 Infrastructure
ontrack-engineering decides nothing about:
- licence compliance of your dependencies (ADR-0019 says so);
- which linter, formatter or test runner you use (ADR-0004); the pipeline runs the lint command your repository already has (ADR-0011);
- forges other than GitHub (ADR-0011);
- the workflow files themselves: none ship, your agent writes them from the rules;
- hosting and operations (logging, monitoring, incidents);
- ownership (
CODEOWNERS): ADR-0022 decides who reviews and merges, not who owns which path.
Each ADR proposes a convention, recommends its values and gives the reasons. You
rule on it by filling its traits:. From
ADR-0009, abridged:
While these keys are empty, an agent starting a piece of work does not know how to name its branch, whether it may push to the default branch, or whether its eight commits will land as eight or as one.
Key Recommended value Reason branching.modelgithub-flowone change, one branch, one pull request, one review branching.mergesquasha change becomes one commit on the default branch branching.prefixes[feat, fix, docs]these are already commit types
Accepted, its traits read:
traits:
branching:
model: github-flow
merge: squash
prefixes: [feat, fix, docs]With ontrack installed, add the track:
npm i -D trivoallan@npm:@trivoallan/ontrack-engineeringCheck the package was built by this repository's release workflow with
npm audit signatures.
Everything after that (ontrack plan, ontrack apply, what a new
revision means, ontrack check) is ontrack's, and
its documentation explains it.
ontrack imports this track: its
rulings are in
docs/adr/trivoallan/,
the rules they produce in its
AGENTS.md,
and its architecture in arc42 and LikeC4 under
docs/architecture/.
Setting up a clone (Claude Code plugins, the secret guard) is in CONTRIBUTING.md.
The code and the ADRs are under MIT-0. The logo is a painting by nota2k, under CC BY-ND 4.0.
