Kaptio Ark

The intent-to-outcome orchestrator

Ark is a command line interface with a large, careful kernel in the middle. You feed it intents, not tickets. It decomposes a person-aligned intent into a cross-repo task graph, dispatches Builder agents in parallel inside isolated git worktrees, has an independent Reviewer challenge the work, records every agent run in a per-intent cost ledger reconciled against Cursor billing, and only closes the intent when measurement proves the outcome was met.

Repo agnostic, work agnostic, person agnostic. It has shipped Salesforce patches, KTAPI pricing changes, data-migration probes, permission sets, contracts, and commercial close plans. Same kernel, same board, same ledger.

Why it works

The memory palace

Intents are markdown files in a git repo, each with an append-only run log. Before decomposing new work, the kernel hands the Lead earlier intents for the same customer or project, with their evidence folders, and the KNOWN_ISSUES entries that match. The first Travel Studio intent was expensive; the third cost almost nothing, because it stood on what the first two learned. Feed Ark tickets one by one and this compounding never happens: a million intents, nothing shared.

Cost-to-outcome is the headline metric

Every agent run writes a ledger row. os reconcile allocates real Cursor billing (charged cents, not estimates) to intents, including interactive sessions once their session rows are published, and counts each billed cent once. The ark-reconcile CI job commits the result to main once a day. Budgets live on lanes: a lane's director (Jón, Alex, or Ragnar for the two open lanes) can set an envelope for the planning window, and Ark stops starting new work in a lane once its reconciled spend reaches it. A lane with no envelope has no lane cap. When the window total is spent, the daemon stops picking up new aligned intents. You can answer "what did this outcome actually cost" for every intent on the board. How your spend reaches an intent.

Proof, not vibes

Defect work on the code lanes is gated: reproduce and photograph the defect before any code change, write the red test, make it green, run the regression suites, verify the fix on an org through the path the customer reported, and carry a SIT handover in the MR describing exactly what was tested. After release, a Verifier reads live production signal before the intent may be called proven.

People stay where judgment lives

Align is the person gate the kernel enforces: no run starts until a person aligns the intent. The first builder also waits for a person to approve the plan. Builders never merge. Ark writes proven from a measured verdict, and people read that verdict and can reopen the intent. Work touching auth, secrets, payments, or tenant isolation needs a person's architecture sign-off; the kernel does not check for it, so the person merging the MR does. Your job is to shape the intent; Ark's job is to execute it.

How an intent travels

draft → aligned → in-flight → released / validating → proven. Ark writes the verdict from measurement; after not_met, a person re-aligns the intent with the measured gap as the new brief. An intent waiting on an external decision or dependency can move to blocked; Ark will not dispatch it until a person restores status: aligned.

draft align person gate aligned os run in-flight release released / validating verdict written by Ark met proven not_met: a person re-aligns it with the measured gap as the new brief
Stage Who What happens
1. Draft Lead agent or person An intent is proposed from real signal: Jira tickets, Slack threads, handovers, prior decisions.
2. Align Person gate A person confirms the problem, the desired outcome, the success metrics, and the constraints. The cheapest place to correct direction.
3. Decompose Lead The aligned intent becomes a cross-repo task graph: what changes where, in what order, with what dependencies.
4. Execute Builders Builder agents run in parallel, each in an isolated git worktree, each on a focused task brief, producing a task branch.
5. Review Reviewer An independent, skeptical reviewer with a separate context reviews architecture and code before any person sees the MR.
6. Integrate Kernel Approved task branches merge into one integration branch per repo. A SIT loop re-runs the quality gates and a TDD audit there and dispatches fix tasks, three rounds by default. Assembly and UAT run when the intent declares them, and an evidence check compares the run with its lane's policy. Success metrics wait for the Verifier.
7. Measure Verifier After the measurement window, live signal (Grafana, Loki, BigQuery, Salesforce SOQL) is read and actual is computed against target.
8. Verdict Verifier Ark writes proven, partial or not_met from the measured verdict. proven needs every operational metric to pass with enough signal, and an Outcome Report. People read the verdict and can reopen the intent; after not_met, a person re-aligns it with the measured gap as the new brief.

Who sets which status

The kernel writes two kinds of intent status. os run writes in-flight when it starts work on an aligned intent. Ark writes proven, partial or not_met itself from a measured verdict, through os verify <id> --write or the daemon's measurement tick once a released or validating intent's measurement window has passed. An inconclusive verdict leaves the status alone, and Ark refuses proven without an Outcome Report. People read the verdict and can reopen the intent. The intent-lifecycle rule still calls accept a person gate; that conflict is an open decision on INT-0001. Every other status (draft, aligned, blocked, ready-to-release, released, validating and the rest) is set by a person. People working an intent by hand set in-flight too; the run log has to show that work, or os run refuses it.

Intent status and task status are different vocabularies. An intent is in-flight; the tasks inside its graph move through pending, in_progress, done, failed, or blocked. "In progress" is a task word. An intent stays in-flight between runs and while its tasks are still moving. A task a stopped run left in_progress goes back to pending when the next os run starts. A task a person finished outside Ark is recorded with os task done and shows completed_by: person.

Inside one run

What os run does with an aligned intent. The Lead decomposes it, and the first builder waits until a person approves the plan with os plan <id> --approve --by <name>. Builders work in parallel and never see each other's worktrees. Each task is reviewed in a fresh session: on local runs the Reviewer also reads the Builder's own summary, and code lanes add an independent Reviewer that sees only the diff. The kernel merges approved branches into the intent's integration branch, one per repo, where a SIT loop re-runs the quality gates and dispatches fixes. UAT runs when the intent declares it, and a run that did work ends with a share pack, queued for the owner by default. os run does not open the MR: os mr opens it as a Draft that a person reviews and merges, except on config-only repos on the auto-merge allowlist.

Aligned intent spec + metrics Lead decomposes person approves plan Builder isolated worktree Builder isolated worktree Builder isolated worktree Reviewer fresh session Integration kernel merge + SIT person merges Draft MR from os mr Every agent run writes a row to the intent's cost ledger. Builders never merge.

Lanes

Every intent carries a lane: a governed workflow that decides who owns the gates, what evidence is mandatory, and where the work ships. Seven lanes are official and five are experiments aimed at official next cycle. Each lane's operators, gates, and evidence policy are on the Lanes page.

Lane Rollout Owner What it is
patch official Magda Customer fixes on that customer's release line
sweep official Alex Standing unblock loop over a project channel, config only
regression official Magda Per-customer agentic test packs
tech_health official Jón Reliability, performance, tech debt, platform tooling
golive_gap official Karen Minor product gaps and enhancements
migration official Alex Customer data runs into a Kaptio org
business_tools official Jón Scorecards, dashboards, internal tooling
product_pitch experiment Rowan and Karen Internally funded product features
funded_pitch experiment Karen Customer-paid features, including mini-SOWs
support_push experiment Magda One customer's sev-3 batch into a mainline release
presales experiment Tomas Prospect POCs and demos; nothing ships to production
concepts experiment Rowan and Karen Launches, showcases, throwaway prototypes

Read next