Release Planning Pipeline

The planning pipeline transforms your project's roadmap into a structured, executable plan for a release: its phases, epics and stories. It's a 4-phase pipeline that runs when the Architect generates your plan, and that same run opens by drafting the roadmap itself — one run, one read of your project, rather than a roadmap run followed by a plan run. If you've already edited a complete roadmap in this conversation, the run uses it as it stands and goes straight to phase 1 — each phase is focused on one concern and writes its results straight into the release's plan tree in the draft the Architect is holding for this conversation, which the next phase picks up and builds on. There is one plan the whole way through, and each phase can only change the fields that are its job.

Small and big work run the same pipeline. A change that needs only a handful of stories is a small release plan, one phase with one epic, and a big plan is more phases in the same release (see Architect). The four phases run in the same order either way; the complexity tier phase 1 grades decides how many phases and epics the plan is sized for. A release has no story limit: each epic holds as many stories as its work takes.

Each phase is its own background run, started and reviewed by the plan run you can see in the Architect's run bar — each phase is a step under that run, named after itself (Dependency mapper, and so on) rather than a generic "plan phase". Four things follow from that. A redirect you send to the plan run while a phase is working is picked up as soon as that phase lands, rather than at the end of the whole generation — so steering a plan mid-flight is worth doing. You're told when that moment arrives without having to watch for it: each phase sealing leaves a notification in your inbox (Foundation sealed, and so on) that opens that phase's own transcript, and the plan's own notification arrives after the fifth — five checkpoints on a long generation instead of silence until the end. You can also open a phase in the run bar and redirect it directly, which is what you want when that one phase is visibly going wrong and waiting for it to finish would waste the work; a phase you steer that way says so when it reports back, so the plan run writes the next phase's brief against what actually happened. And if the app closes partway through, the phase that was running is still on the books when Trinity comes back, instead of disappearing with it.

How Plan Generation Works

Phase 1: Foundation

Designs the high-level structure the run adds to the release's tree:

  • Phases — major development stages with clear objectives; the user's phasing decisions are the authoritative build order
  • Epics — groups of related work within each phase, each with its own summary of what the group is and why it exists
  • Rationale — why things are organized this way
  • Complexity tier — trivial / simple / moderate / complex (affects guidance for downstream phases)

No stories are created yet — this phase focuses on getting the overall shape right.

Phase 2: Story Writer

Creates individual stories inside each epic:

  • Title, description, and acceptance criteria — clear, specific, and written so a change could fail them: a criterion that says nothing changes says what it compares with, a search names where it searches, a count names the command that produces it, and none asks for something the project's own checks refuse
  • Story type — standard (most stories) or quality_checkpoint (inserted later by the Dependency Mapper). A CI change story that comes up after planning goes into the related epic, or into a small epic the Architect adds, in the right phase
  • Implementation scope — each story is sized to be independently executable by an agent

Phase 3: Dependency Mapper

Walks the story list and adds:

  • depends_on — which stories must complete before each one can start. The first stories of every phase after the first wait on the previous phase's last stories, or on its quality checkpoint when it has one, so the release graph shows the phases running in order. Inside a phase, epics run side by side: a story waits on another epic's story only when it uses what that story produces
  • Contracts — for each story that consumes another's output, the shape between them. When the two stories sit in different phases, or one side is a doc, prompt or config file, the phase appends one criterion naming that shape to each story's acceptance criteria, and leaves every existing criterion as it was
  • Quality-checkpoint stories — the release's close-out, the last story of its last phase, always; and a checkpoint at the end of an earlier phase only where a later phase builds on work that must be proven first, with its intent saying why. These are story-level quality checks (intensive QA pipeline + human approval), not the same as a release's approval.
  • Topology assignments — which story installs each thing the plan introduces: a target or a package. Each assignment names the entity, its package, and the installing story, and the installing story has to land in the entity's own package — the commit rejects a plan whose assignments don't resolve rather than dropping them silently.
  • Stack revisions — which story adds or removes each stack item. When you commit the plan, Trinity saves each new stack item, links it to the project, and records the choice (its version, the reason for it and its price) as that story's version of the item. Swapping one tool for another is one story that removes the old item and adds its replacement. Two stories that both change one stack item need an order between them, so the plan asks you to make one depend on the other, or to merge one, before it commits. If the other story belongs to a different plan, it has to merge or have its revision retracted first.
  • Design revisions — which story introduces or changes each design system. When you commit the plan, Trinity saves each design system, links it to the project, and records the system as that story's version of it. Two stories that both change one design system need an order between them, so the plan asks you to make one depend on the other, or to merge one, before it commits. If the other story belongs to a different plan, it has to merge or have its revision retracted first.

The phase sends off one helper run per phase, every phase in parallel; each maps its phase's dependencies from data flow and shared files, and the phase then reviews all of their results together and writes the graph, with the phase gates between phases. While the plan is generating, the phase opens in place on the plan run's card in the Agents panel, with one square per helper run that you can click to open what it decided about a single phase and steer it while it works.

Phase 4: Folder Mapper

Scopes every story to the folders its code changes — a package's own folder, or a shared component or core folder that packages embed. The packages a story reaches follow from its folders. Sends off one helper run per story batch in parallel, each one a square under the phase on the plan run's card in the Agents panel, openable and steerable while it works. If the LLM misses any, Trinity scopes the story to every package's folder as a safe fallback — the pipeline never leaves a story un-scoped.

Scoping to folders rather than the shipped artifact is deliberate: a story lands as a diff, and a diff lands in directories. Every target built from the packages those folders reach is credited automatically, so a shared-code change to a React Native codebase that ships both a Mobile and a Web App target is attributed to both without anyone remembering to say so.

Folders are the only scope the phase writes; the packages and the artifact set follow from them. See Story scoping for what that means downstream.

Execution settings

The pipeline sets no model or reasoning effort on a story: the story's analyst chooses the tier and effort of the implement, audit and docs steps when it plans, and each other step runs its operation's tier, until you pin a model on the story page. You can edit any of these there:

  • Model — which model runs a step. A step you leave unpinned runs its operation's tier, and its row names the model that is; the implement, audit and docs rows read "Analyst’s choice" instead, since the analyst sets their tier and effort. A pin outranks the analyst. To run a step on another model, such as a reasoning-class model for genuinely complex or security-critical work, pin it. The leaner micro tier is reserved for Trinity's own mechanical background steps (classification, scoring) and never runs a story. A frontier-class model is opt-in only, reachable by pinning it.
  • Reasoning effort — low to max (or ultra on models that support it, currently GPT-6.2 Astra, GPT-6.2 Sol and GPT-6.1 Terra), defaulting to medium; raised for work that benefits from deeper reasoning. It applies to a pinned step. The run path clamps it down to whatever the resolved model actually supports.
  • Review passes — how many audit rounds the story gets; a further round runs only after one that applied a fix. A story inherits the project's Review passes, and you can give one story its own (0 skips the audit for throwaway work, up to 10). Checkpoints have no review passes.

Post-Pipeline Validation

Trinity checks the draft before it validates anything: all four phases must have completed and the plan must carry at least one story. A run that stops short fails, naming the phases that never finished — you get a failed task you can retry rather than an empty plan reported as a success. A retry starts over from Phase 1; there is no resuming a half-finished run.

Once the draft passes that check, Trinity runs an iterative validation + fix loop on it before it's saved:

  • Vague acceptance criteria — flags ACs containing weasel words like properly, appropriately, correctly, as needed, handle all, various
  • Dependency validation — catches circular dependencies, missing references, and targets that fall outside the release the plan belongs to

Each iteration collects warnings, asks the agent to fix them directly in the plan, re-reads the result, and repeats until the plan is clean or the max iteration count is hit. A fix pass can only edit stories — it cannot add or remove one. It edits the stories it was asked about, and only the fields it names, so the step settings you set stay as you set them, and the plan you review has exactly the stories the pipeline wrote. The run's summary says what each pass repaired, and the progress line names the pass while it works, so the stretch after the last phase isn't a silent gap.

The coverage check hands you findings, not stories

Trinity also compares the plan against your roadmap — what the release's overview, phasing, architecture and design sections said it would build, minus anything you listed as a non-goal — and reports the capabilities no story covers. The release's roadmap describes its whole tree, so the check reads every story in it, whichever round planned each one.

That report comes to you, on the plan itself, and nothing acts on it automatically. A gap means the plan doesn't cover something the roadmap promised, and what to do about it is a decision rather than a repair: accept it as out of scope for this release, ask the Architect for the stories that close it, or carry it into the next release. Closing a gap changes what the plan is for, and that stays yours — which is why no step of generation writes a story to make one go away.

Each story is one reviewable slice

A story is one pull request that delivers a real, usable piece of the release, and a big one is fine: the release's close-out checkpoint reviews and hardens the whole release, so a story doesn't have to be small to be safe. Every story also carries a fixed cost of its own (its planning, review, docs, pull request and checks), so the pipeline writes fewer, fuller stories rather than many thin ones. Small hardening and polish items don't become stories of their own; they go into the story that owns that code, or into the close-out's batched triage.

After the fix loop, Trinity reads the plan for stories that look smaller than that: a story with only one or two acceptance criteria that touches a single folder, or two stories in the same epic where one only feeds the other in the same code, which reads as one change split in two. Each one comes to you as a sizing warning on the plan, the same way coverage findings do. Nothing is merged automatically: the Architect names each warning when it walks you through the plan and offers the merge, and you decide.

Existing Work in the Release

When a round adds to a release that already holds a plan, the pipeline plans against the tree as it stands. The planning context lists the release's phases, epics and stories with each story's status (merged, skipped or pending) and its display ID, so a new story's depends_on can reference a real upstream story by that stable code. It also carries your direction for the round — what you want it to focus on.

Foundation adds only the phases and epics the round needs, and the other phases write only what the run added, so committed stories stay as they are.

Plan Review Best Practices

After generation, review the plan before starting execution. The planning dashboard and the release's story graph are the fastest ways to skim it.

Check Story Scope

Each story should be:

  • Specific — clearly defined, not vague
  • Independent — executable on its own (given its dependencies)
  • Testable — acceptance criteria an agent can verify: a "no new errors" says compared with what, a "nothing uses X anymore" says where it looks, and a number says what produces it

Verify Dependencies

  • Stories that should depend on each other but don't
  • Unnecessary dependencies that serialize work that could run in parallel
  • A story that reads another's field, setting or status that doesn't name it in its acceptance criteria, or a producing story that doesn't name it either
  • A phase checkpoint whose stated reason doesn't hold for your release (the close-out already reviews everything)
  • Epics chained one after another when they could run side by side

Tune Execution Settings

You know your codebase best. To change how a story runs, open its Execution Settings card and adjust the review passes, the pinned model, or reasoning effort directly:

  • Touching unfamiliar third-party APIs → consider pinning a reasoning-class model and/or adding a review pass
  • Story that's similar to existing code → consider leaving the model unpinned or 0 review passes to avoid over-scrutiny
  • Security-critical / real-time / perf-critical → a reasoning-class model, higher effort, and more review passes

Check Quality-Checkpoint Placement

Quality-checkpoint stories are story-level quality checks — they run the story's four stages, led by an analyst that reviews the work since the last checkpoint, decides what to fix and decides every open follow-up, and end at a human approval before downstream stories continue. A plan has one by default, the close-out at the end of the release, and the Commit card names any other. Keep a phase checkpoint only where:

  • A later phase builds on a foundation that must be proven first
  • A major architectural shift would make a late fix expensive

Release-level approval (tagging, release notes, preflight) is a separate concept — see Releases.

Check Package Scoping

Folder Mapper auto-fills any story it misses with every package's folder, which is a safe fallback but often wider than the work. For polyrepos or multi-package projects, skim the story list to make sure each story is scoped to the package(s) it actually changes — a "set up mobile auth" story shouldn't be scoped to the marketing site's package.

You don't need to check target attribution separately. A story is attributed to every target its packages ship, so a shared-code change covering two artifacts is right by construction rather than something to correct.

Editing Stories

You can edit stories directly from the dashboard, the graph, or the release thread's Stories:

  • Click a story to open its detail view
  • Edit description, acceptance criteria, dependencies, targets, or the execution settings (review passes, pinned model, reasoning effort).
  • Changes save immediately

To drop a story you don't want, use Architect's removal flow — it deletes the story along with anything that depends on it as one reviewed change.

All edits are tracked in the activity feed.