Quality Checkpoints

Quality checkpoints are stories of type quality_checkpoint that act as story-level quality checks. They run an intensive inspection pipeline separate from the regular 4-phase story pipeline, and pause for human review before downstream stories continue. They're distinct from the release's own checks — releases run their own pipeline, documented on the Releases page.

What They're For

Every release plan has one checkpoint by default: the close-out, the last story of the release's last phase. It reviews and hardens the whole release before its checks run, so the stories before it can be big, real chunks of work and no phase needs a gate of its own.

A checkpoint at the end of an earlier phase is the exception. The Architect adds one only where a later phase builds on something that must be proven first, such as a foundation the rest of the release stands on, and the checkpoint's intent says why. The Commit card names the plan's checkpoints, so you see whether a plan has only the close-out or a phase checkpoint as well. You can add, move or remove a phase checkpoint like any story.

Phases run in order with or without one: the first stories of a phase wait on the last stories of the phase before it, or on its checkpoint when it has one.

How a Checkpoint Runs

A quality checkpoint is a story, so it runs the same four stages as any other under its own foreman: an analyst, an implementer, an auditor and a documenter. The checkpoint's description and acceptance criteria are its brief. As it starts, Trinity measures the project's health, which shows in Project settings → Gate → Health; a measurement that fails never holds the checkpoint up.

  1. Analyst — decides the checkpoint's work. It runs four helpers at once and merges what they find into one plan:

    • a panel of reviewers over everything merged since the last checkpoint, drawn from the same pool a story's review draws from;
    • the release's open follow-ups, whichever story or card filed them;
    • the project's health reading and the health follow-ups filed since the last checkpoint;
    • the documentation the stories left inconsistent: duplicates, drift and stale pages, starting from the notes the stories' documenters recorded.

    Every item in the plan has a disposition and a reason. Fix now items are done in this checkpoint. Harden items all go into ONE hardening story that the Architect adds after the checkpoint. Carry items go to a later release, or stay open with the project when no later release is open. Settle items are closed with their reason and are not raised again by a later checkpoint.

  2. Implementer — does every fix-now item in one pass, documentation consolidation included.

  3. Auditor — checks that the planned work landed and nothing regressed, and runs the checkpoint's acceptance.

  4. Documenter — brings the documentation in line with the final tree.

  5. Human approval (quality_checkpoint_approval) — review and approve before the block downstream of this checkpoint can run. Before it, Trinity tests what the gated stories changed together, once and scoped to the code they touched. The full suite runs here only when the change moved a package's boundary, or when the project's gate rigor is Strict; Lean runs nothing here and None runs only the checks. Each run is a row on the card's Preflight & SEO tab, ahead of the platform checks. Except at Strict, a failure that already existed before these stories is noted for the release's follow-ups and does not hold the approval. A placeholder in shipping code, or a failure the stories caused, holds the approval for you at every autonomy level.

The foreman narrates each move on the checkpoint's thread, and the auditor's verdict goes to it as on any story: it sends the work back to the implementer or accepts it with a note.

Auto-implement checkpoints

The Auto-implement checkpoints decision, in a release's automation settings beside Decide follow-ups, says what happens after the analyst's plan. When it is on, the checkpoint runs straight through to its approval. When it is off, which is the default for a new project, the foreman posts the plan on the checkpoint's thread and waits. Tell the foreman what to change (drop an item, move one to the next phase, add one), then approve; the implementer receives the plan as you left it. Either way, folded-in work stays within the budget and a restructure is always a proposal to the Architect.

Follow-ups

Checkpoints are where follow-ups are decided. A follow-up filed during a release never becomes a story of its own: it shows on the release's Follow-ups panel and waits, open, for the next checkpoint, which decides every open follow-up at once. One the checkpoint fixes is marked resolved, linked to the checkpoint's story and the commit that fixed it, and the card lists it under what was fixed. The ones it hardens become one hardening story together, one it carries moves to a later release, and one it settles closes for the release. Because the close-out always runs, every follow-up filed before it is decided there.

Pull Requests and Issues

A checkpoint's work (the documentation it updates, the consolidation, and any fixes) lands on a checkpoint branch, and Trinity opens a pull request for it in every repo that has changes, ready for your approval. Approving merges that pull request, so the checkpoint's changes travel with the phase into the release; skipping it closes the pull request with a comment instead, and nothing merges. Each of those pull requests links an issue on your repository host (Tracks) that carries the checkpoint's audit summary and findings as its plan, and the issue is updated when a later pass changes the audit. The issue closes as completed when the pull request merges. A checkpoint that changed nothing opens no pull request and files no issue. A host without an issue tracker (Bitbucket) carries the audit in the pull request description instead; see Story Issues.

Scope

Each checkpoint is scoped to the stories that depend on it. At audit time, the pipeline only inspects code produced by those upstream stories — it doesn't review pre-existing code or unrelated areas of the repo. This keeps the audit focused and keeps the checkpoint from trying to clean up the whole codebase.

On imported projects, the checkpoint's review is scoped to the code the release's stories wrote, so the audit doesn't drift into legacy code.

Dependency Gating

The first stories of the phase after a phase checkpoint list the checkpoint in their depends_on array. The coordinator treats a pending checkpoint as a hard block — nothing downstream runs until the checkpoint is approved (or skipped).

Approval

When the checkpoint's documenter has finished, the checkpoint story's thread shows a quality_checkpoint_approval card that carries the audit's verdict and counts and answers in place, and Show in rail opens the Details panel with the audit's tabs:

  • Approve — merges the checkpoint's pull request, marks the story passed, and makes downstream stories runnable. If the merge is held or fails, the checkpoint waits on you until it can land
  • Skip — closes the checkpoint's pull request unmerged, acknowledges unresolved issues and continues (logs an entry in the audit trail so you have a paper trail for what you skipped)
  • Request changes — runs another pass of the checkpoint's stages, starting at the analyst, over the work already on the branch

Run Project on the card starts your project so you can try the checkpoint's work before you answer. It runs the repo's scripts/start-*.sh scripts, or, in a repo with none, each package's dev script, fenced from the rest of your machine, with the secrets of their package. A script names its package on a first comment line, # trinity: package=<name>; a script without that line gets the secrets of the package in its own folder. When a script cannot start, a Failed to start project toast says why, and a repo with no start script and no dev script gets a No start scripts found toast instead. The output of what it started reads in the Details panel, which Run Project opens, and once the project prints its local address the panel offers it as an Open button. Answering the card stops what Run Project started.

While a checkpoint of a release waits on you, the release thread's Needs you item lists it, and its row opens the card on the checkpoint's thread. Approvals and skips both transition the checkpoint to completed and unblock downstream work. Whatever the audit found and nobody fixed, including what it flagged outside this checkpoint's scope, goes to the release's follow-ups when you approve or skip, or when your autonomy level approves for you. The same problem found in many places is one follow-up that lists each place it showed up, and a finding the audit itself classed as harmless (a placeholder in a test fixture or in docs) is not filed. Settling the card again adds nothing. The release's agent decides them at close-out; one you skipped is marked as skipped by you and left open by that same Skip, so close-out does not ask you about it again.

Checkpoints the release asks for

The release agent may ask the Architect for a checkpoint after a risky merge or a red tip check; it comes to you as any Architect plan does, with a Commit card.

When a release becomes ready and its stories left documentation notes that no checkpoint has consolidated, the release gets one closing checkpoint before its checks run, and goes back to In progress for it. You do not approve the plan: where the release's autonomy answers the checks decision Trinity creates the checkpoint, and where it asks the agent asks one card, Create the closing documentation checkpoint?, and creates it on your Create it. The release agent says on the release thread why the release went back. Choose Continue without it on the card, or skip the checkpoint on its card, and the release goes on without the consolidation and is not asked again. Continue without it is a Skip, the same as skipping the checkpoint on its card: either way the pages the checkpoint would have consolidated are filed as follow-ups on the release, one per page, marked as skipped by you and left open, so the release's close-out does not ask you about them a second time. After Continue without it the release stays Ready and goes on to its checks. After Create it, or where autonomy answers, the release stays In progress until the checkpoint has merged, and you press Mark Ready again, as after a story is added to a ready release.

Auto-Approve

Set the autonomy level to Unattended (on the story, the project or the workspace; the story's wins over the project's, which wins over the workspace's) to auto-approve these cards. The card is still recorded for audit purposes but resolves immediately so execution doesn't pause. Activity, your inbox and the story's timeline record that the level gave the answer, naming who set it; see When Your Autonomy Level Answers for You. Release approval always pauses.

A test failure the stories caused together holds the approval for you at every autonomy level, the same way a placeholder in shipping code does: the card opens as usual, names the failing tests first, and waits for your answer. The fixes the audit round makes are tested on their own changes, not by a second run of the combined change; the release's tip check tests them with the rest.

Checkpoints vs Auditor

Two distinct "quality" mechanisms — don't confuse them:

Feature Scope When it runs Needs-you card
Auditor (in story pipeline) A single story Inside the 4-phase story pipeline, automatic None — internal review round
Quality checkpoint (this page) Multiple upstream stories As its own quality_checkpoint story quality_checkpoint_approval

Tips

  • Don't over-place checkpoints — the close-out is usually enough. Each checkpoint adds real wall-clock time, so keep a phase checkpoint only where later work truly depends on proving the earlier work first.
  • Watch the reentry count — if a checkpoint keeps bouncing through feedback without converging, the scoped work likely needs manual review
  • Read the stated reason — a phase checkpoint the Architect added says why in its intent; remove it when the reason doesn't hold for your release