README
¶
Orch
Your coding agent doesn't choose its own model, and Orch puts mechanical bounds on what it may write.
Left to itself, a coding agent picks its own model for every task, and it can write to any file it can reach. That's fine until the model is wrong for the job — too expensive for something trivial, or too weak for something that actually matters — or until a change lands somewhere you didn't intend it to.
Orch sits underneath the CLI you already use (Claude Code, Codex CLI, or OpenCode V2) and takes over those two decisions. By default it puts the repository in Assist: a mechanical, read-only mode where the agent can look around, search, explain and plan, but a write to a file git does not ignore is refused before it happens. When you approve a plan, Orch enters Delivery: each task becomes a GitHub issue with its own isolated git worktree, gets implemented there, is reviewed by a separate agent dispatch, runs CI, and is merged only after you approve it (before autonomy grants, #353, always you in person; now also an autonomy grant you created, on a Claude Code run, within its limits and stops). Which model handles which job is not the agent's call either — you route it, per role, to an exact model version and host-native execution profile.
The payoff: cheap, fast models handle read-only exploration and mechanical work, a frontier model gets spent only where the plan calls for it, and every change that lands is auditable and gated by a human at the one step that matters — the merge. Before #353 that gate was always a person; now a person may delegate it to an autonomy grant they created, and the record names the grant, never a person.
Jump to Quickstart → · See how it works →
How it works
Two modes. A repository running Orch is in exactly one of two states. Assist is the default and is read-only: the agent can read anything, search, explain and plan, but a write to a file git does not ignore is refused. Delivery is entered only for a plan you have read and approved. Each task in that plan becomes a GitHub issue, a branch, and its own git worktree; the work happens there, lands as a pull request, is reviewed by a separate agent, runs CI, and waits for you to approve the merge. When every task is merged or abandoned, the run's last step puts the repository back in Assist.
Six roles. Delivery work is split across roles, and you pin each one to an exact model version and host-native execution profile:
| Role | What it does |
|---|---|
| Architect | Plans the work, drives the pipeline, talks to you — your strongest model |
| Scout | Read-only exploration and fact-finding — cheap and fast |
| Implementer | Writes the code inside the issue's worktree |
| Specialist | Takes the issues routing marks risky or unusually difficult |
| Reviewer | Reviews the pull request in a separate dispatch from the one that wrote it |
| Review downgrade | A cheaper reviewer, allowed only when the plan affirms all four of mechanical, low-risk, fully specified, unsurprising |
Which role gets an issue is derived from the issue's own facts by a deterministic table, not chosen by the model that will run it. The reviewer is always a separate dispatch — never the session that wrote the code — though under the shipped defaults it is often the same model on both sides. What Orch guarantees is the independent dispatch and the recorded routing, not model diversity; pin different models per role (the Settings table below) if you want that too.
The guard. None of the above is an instruction the agent is asked to honor. Claude Code and Codex CLI wire their pre-write hooks to orch guard; the OpenCode V2 plugin calls the same guard before its edit, write, and patch tools. In Assist it denies every write to a file git does not ignore. In Delivery it allows a write only inside a worktree registered to the running plan, on that worktree's registered branch, in a phase where writing is allowed. Git internals are never writable, and neither is the orchestrator state your session is running against. It fails closed: anything it cannot establish is a denial. What it enforces is containment — it cannot tell which role is writing, and a file written by a shell command never reaches it at all (see Known issues).
Concretely, asking for a change goes like this:
- You describe what you want. The Architect plans it in Assist and shows you the plan: one issue per task, each carrying the model, effort and reviewer it will get and why.
- You approve it or send it back. Approving is what enters Delivery.
- Each issue gets a branch and a worktree. An implementer or a specialist does the work there and pushes.
- A reviewer reviews the pull request. CI runs.
- You approve the merge, and it runs against GitHub pinned to the commit that approval names — it fails closed if the pull request moved after that.
Each issue then walks the engine's Delivery pipeline, phase by phase:
The full product definition lives in ORCH-PRD.md.
Quickstart
Have your agent do it — recommended: one prompt, pasted into Claude Code, Codex CLI, or OpenCode V2
Paste this into a Claude Code, Codex CLI, or OpenCode V2 session, started anywhere. It does not assume you have cloned this repository.
Install the Orch development orchestrator (https://github.com/kninetimmy/orch)
on this machine. Work in a scratch directory, not in one of my projects.
1. Detect my OS and run the matching installer:
- Linux or macOS: download
https://raw.githubusercontent.com/kninetimmy/orch/main/install.sh
and run it with `sh install.sh`
- Windows: download
https://raw.githubusercontent.com/kninetimmy/orch/main/install.ps1
and run it with
`powershell -ExecutionPolicy Bypass -File .\install.ps1`
The installer downloads the release binary for this OS and architecture
and verifies its SHA-256 against the release's published SHA256SUMS
before installing anything. If that verification fails, STOP and report
the failure to me. Do not retry with verification skipped, do not fetch
the binary another way, and never install an unverified binary.
2. Confirm that `orch` resolves on PATH and that `orch status` prints a
release version on its first line — a line beginning `orch:` and giving
a release tag such as v0.7.0. Run it from anywhere: outside an
initialized repository it prints that version line first and then exits
non-zero saying the repository is not initialized, which is expected
here. On Windows the installer adds its install directory to my user
PATH and a new terminal is needed to pick that up: if `orch` is not
found, ask me to open a new terminal rather than guessing or editing
PATH yourself.
3. Install the plugin for the host you are running in. Preserve existing
host configuration; merge required entries instead of replacing files.
Use exactly these commands for a first installation:
- Claude Code:
claude plugin marketplace add kninetimmy/orch
claude plugin install orch-claude@orch
- Codex CLI:
codex plugin marketplace add kninetimmy/orch
codex plugin add orch@orch
- OpenCode V2: it is not a Codex marketplace plugin. Run
`git clone https://github.com/kninetimmy/orch.git "$HOME/orch"`
and `npm ci --prefix "$HOME/orch/adapters/opencode"`, then add
the absolute package directory `$HOME/orch/adapters/opencode`
to the `plugins` array in `opencode.json`. Restart OpenCode V2,
then run `opencode2 --version` and
`opencode2 api get /api/plugin`; version admission permits beta
18314 or stable 2.0.0 and newer releases, warning for unverified
versions. Run `orch doctor --host opencode` to require one active
`orch.delivery` server plugin in the verified project directory
before relying on enforcement.
4. Codex CLI only: tell me about the one-time trust prompt for the
plugin's bundled hooks. Approving it is an action only I can take;
hooks do not run until I approve it. Do not report enforcement as live
while approval or a host restart is outstanding. Do not add historical
experimental question settings to my configuration: check the current
session's permitted question tools instead.
5. Run `orch doctor` and report its full output to me, including every
note and every failing check. When run outside an initialized
repository it reports the git-repository and configuration checks as
failures; say so rather than hiding it.
6. Tell me to restart this CLI before relying on any of it, and to treat
the hooks as not yet running until I have. Do not assume a plugin
installed mid-session is live in this session. The tell that it took
is an Orch block at session start inside an initialized repository.
7. Point me to the per-repository setup prompt below. Orch does nothing
in an uninitialized repository. The agent drives `orch init`'s
interview, shows the proposed changes, and opens a pull request only
after I approve them; I still review and merge that PR. Bare `orch init`
only prints a report. After the PR is merged, update the primary checkout
with the merged configuration (for example, `git pull --ff-only` on the
repository's default branch). Confirm .orchestrator/config.toml is present
locally, then run `orch render-agents` and
`orch doctor --host <my configured host>` there.
The rendering command generates definitions for every enabled host.
Re-render after role-configuration changes or when an upgrade leaves
definitions stale. Keep all existing project instructions outside the
Orch managed block.
Previously this install prompt prescribed experimental Codex question settings. The current session's tool contract now decides which questions it can present; the Codex install guide retains the historical settings and their limits.
Then initialize each repository you want orchestrated
Installing the binary and the plugin sets up the machine. It does not touch any repository. In a repository that has not been initialized, Orch does nothing.
Open your agent at the repository root and ask:
Initialize Orch in this repository using the orch-setup skill. Detect my
environment, guide me through the setup choices and protected-path survey,
and show selectable questions wherever the current tool contract permits.
Show the final configuration and file changes for my approval before
opening the initialization PR. Preserve my existing project instructions.
The interview detects hosts, git, gh and memhub, then asks which hosts and
role models to use. Recommendations and defaults are suggestions, not answers.
Ordinary choices use a permitted native question tool when it can show every
option; otherwise the agent presents the complete question as plain text.
Approval questions also use complete plain text when the tool prohibits them.
The protected-path list and final changes need your affirmative approval.
The resulting .orchestrator/config.toml arrives in a PR you still review and
merge. Bootstrap leaves the primary checkout unchanged. After merging, update
that checkout with the merged configuration, for example with git pull --ff-only
on the repository's default branch. Confirm .orchestrator/config.toml is
present locally, then run orch render-agents and orch doctor --host codex
(use claude or opencode for another configured host).
Earlier guidance described bare orch init as the interview. Bare orch init,
orch configure and orch configure-local actually print reports; the agent's
setup skill drives their interactive steps. To change an initialized project,
ask your agent to configure Orch using that skill. Claude Code also offers
/orch:init, /orch:configure and /orch:configure-local; Codex invokes the
skill directly rather than using those Claude commands.
Delivery additionally needs git and the
GitHub CLI (gh) authenticated against the
repository's remote. Assist works without a remote.
Each adapter's README carries its host's exact install order and its own known limitations, worth reading once for the host you use: Claude Code, Codex CLI, and OpenCode V2.
Install it yourself — scripts, plugins, manual download, source builds
Quick install (script). Both scripts download the release binary for
your OS and architecture, verify its SHA-256 against the release's
SHA256SUMS before installing, and fail closed on any mismatch.
Linux / macOS — installs to ~/.local/bin (override with
ORCH_INSTALL_DIR); pin a version with ORCH_VERSION=v0.7.0:
curl -fsSLO https://raw.githubusercontent.com/kninetimmy/orch/main/install.sh
# inspect it, then:
sh install.sh
Windows (PowerShell) — installs to %LOCALAPPDATA%\Programs\orch and
appends that directory to your user PATH; skip the PATH change with
-NoPathUpdate, pin a version with -Version v0.7.0:
iwr https://raw.githubusercontent.com/kninetimmy/orch/main/install.ps1 -OutFile install.ps1
# inspect it, then:
powershell -ExecutionPolicy Bypass -File .\install.ps1
Adapter install. With the binary on PATH, Claude Code and Codex
CLI install their adapters from this repository's shared marketplace
manifest:
# Claude Code
claude plugin marketplace add kninetimmy/orch
claude plugin install orch-claude@orch
# Codex CLI
codex plugin marketplace add kninetimmy/orch
codex plugin add orch@orch
One manifest (.claude-plugin/marketplace.json) serves those two hosts,
and the other host's entry may show up in your listing too — install
yours by its exact name: orch-claude on Claude Code, orch on Codex
CLI. OpenCode V2 is npm-native, not a marketplace adapter: install the
local adapters/opencode/ package and configure its plugin module as
documented in its README. Then follow the host-specific steps in the adapter
READMEs — Claude Code,
Codex CLI,
OpenCode V2. Codex CLI needs the
one-time hook trust approval and a host restart before relying on enforcement.
Check its current question-tool contract; the historical configuration stanzas
formerly prescribed here do not override that contract. Every initialized
repository also needs orch render-agents after initialization and effective
role-configuration changes; after upgrades, re-render if definitions changed
or doctor reports them stale.
Adapter upgrade (existing installs). Do not repeat the first-install commands above. Upgrade the configured host's marketplace and adapter:
# Claude Code
claude plugin marketplace update orch
claude plugin update orch-claude@orch
# Codex CLI
codex plugin marketplace upgrade orch
For OpenCode V2, update the local checkout and run npm ci --prefix adapters/opencode again; see its README for the exact commands and
project-scoped plugin-health check. Restart Claude Code/Codex CLI or reload the
affected OpenCode V2 location after upgrading so the new hooks and skills are loaded.
Engine and adapter compatibility. Published v0.16.0 pairs with OpenCode and Claude/Codex manual adapters 0.13.0. The SDK, guard and bound-lookup changes were in the OpenCode package; Claude/Codex executable guidance had not changed since v0.15.2 at that point. Repair raised approval/execution contract 1 → 2; the contracts were incompatible in both directions despite retaining state schema 6. That checkpoint used Gate 3, Activation 2 and Review 3. #528 then moved Review to 4 and approval/execution to 3.
After #534, current source uses approval/execution contract 4 and these
manual wire versions: Gate 4, Status 4, Activation 3, Dispatch 4,
Review 4, Escalate 2, Block 2, Resume 2, Resolve Block 1 and
Repair 1. State schema 6, metrics document schema 2 and SDK/util/protocol
pins 2.2.6 are unchanged. The v0.17.0 candidate paired with 0.13.2
adapters and marketplace, following the 0.13.1 source bump in #522. The
published release retained that pairing; match the engine and adapter
content, not just those labels.
Inspection does not authorize continuation or migrate an older run.
OpenCode child lookup additionally requires lookup-context schema 2 and a
Memhub build supporting explicit --memory-root, --code-root and
--profile lookup-only serving. Old/missing interfaces are unavailable lookup,
not permission to use a full server or CLI fallback.
Historically, released engine v0.15.2 paired with Claude/Codex adapter 0.13.0
and OpenCode package 0.12.0, with approval contract 1. Claude/Codex 0.12.1 was
paired with engine v0.15.1, version 0.12.0 with engine v0.15.0, version 0.11.1
with engine v0.14.1, version 0.11.0 with engine v0.14.0, and version 0.10.0
with engine v0.13.0 and v0.13.1. Current orch doctor reports an installed
0.12.1 Claude/Codex adapter as a version mismatch. OpenCode's API does not expose
an adapter version; verify its loaded package/skills and source identity.
Agent definitions are embedded in the engine and written by orch render-agents.
Survey methodology is now 2. Older [protected] lists remain readable but
cannot authorize grants until an actual re-survey and fresh approval through
the agent's setup workflow (/orch:configure or /orch:init on Claude Code);
editing the stored methodology number is not approval.
Engine v0.14.1 and earlier refuse a config that contains a [protected]
section, so upgrade the engine on every machine that uses a repository before
that repository's list is merged.
Earlier upgrade guidance required re-rendering every Claude project after any
upgrade. More precisely, #358 changed all hosts' agent definitions in v0.13.0,
so upgrades from an earlier release require orch render-agents in every Orch
project. Claude definitions rendered before effort was added to their
frontmatter are also stale. When definitions and effective profiles are
unchanged, later upgrades need no re-render; doctor and activation still refuse
stale definitions. Release and adapter labels describe compatibility; source
revision and build identity identify the code that was built.
Update compatible engine and configured adapter content together while the
repository is in Assist; include compatible Memhub for OpenCode native child
reads. Restart Claude/Codex or reload the affected OpenCode location, then run
orch doctor --host claude|codex|opencode. Never replace these during an active
run. Finish an older run with its original engine and adapter, or explicitly run orch abort and
seek fresh plan approval; active runs are not migrated. See
decision-block recovery for the persisted
state and approval boundary.
Verify actual installed content and provenance between runs as well as version
labels: a cached 0.12.1 Codex adapter differed from source despite matching
labels. Record the plugin/cache path and source commit, and compare the loaded
skills and packaged survey with the intended release commit. Reload the host
after updating, then verify the installed workflow under a fresh bounded plan;
source tests and orch doctor alone do not prove that exercise passed.
These manual doctor and activation checks cover the contracts above. Earlier guidance called driver protocol, subscription authentication and isolation checks future preflights. Separate native preflights now exist, but passing manual doctor does not run them or establish native Windows Claude isolation, unattended execution or compatibility on untested platforms.
Manual download. Take the static binary for your OS and
architecture from
GitHub Releases
(orch_<os>_<arch>; Windows assets end in .exe), then verify its
SHA-256 against the SHA256SUMS file published with that release
before running it:
# Linux / macOS
sha256sum --check --ignore-missing SHA256SUMS
# Windows (PowerShell): compare against the matching SHA256SUMS line
(Get-FileHash orch_windows_amd64.exe -Algorithm SHA256).Hash
Rename it to orch (or orch.exe) and put it on your PATH. orch status and orch doctor each print the binary's release version on
their first line.
Build from source. Go 1.26+; source builds report version dev:
git clone https://github.com/kninetimmy/orch.git
cd orch
go build ./cmd/orch # produces ./orch (orch.exe on Windows)
or install straight onto your PATH:
go install github.com/kninetimmy/orch/cmd/orch@latest
Codex parity
Published engine v0.16.0 pairs with 0.13.0 on all three hosts. The v0.17.0 candidate paired with 0.13.2, as did the published release. That does not qualify new Codex/Claude behavior. Historically, v0.15.2 paired with Claude/Codex manual adapter 0.13.0 and OpenCode package 0.12.0. Codex shares the manual Delivery engine with Claude, but automation parity is unfinished.
| Capability | Codex status |
|---|---|
| Plans, named roles, isolated worktrees, review, CI and human merge gates | Implemented; the installed manual workflow was exercised for PR #434 with independent review, passing CI and fresh human merge approval |
| Guided setup, selectable ordinary questions and protected-path survey | Packaged in adapter 0.13.0; native choices depend on the current tool contract, and a fresh installed initial-setup/survey exercise remains outstanding |
| Completed child-agent usage | Implemented; executor and reviewer observations were captured in the #434 exercise |
| Automatic Architect usage | Missing on Codex; automatic run-window capture is Claude-only |
| Autonomy grants and fresh-context relay | Claude-only; Codex holder/permission binding, context handling, ownership transfer and predecessor stopping remain work to do |
| Native evaluation | Conditional admission only for reviewed Windows amd64 Codex 0.160.0 with the required controls; current-version live qualification and evaluation trials remain outstanding |
The 2026-11-07 Windows assessment found installed engine v0.15.2, adapter 0.13.0 and Codex CLI 0.167.0; critical installed adapter files matched release source. That installation record, Desktop child capture and green source/CI checks do not qualify every workflow on CLI 0.167.0. The native boundary does not admit that version merely because the manual adapter works.
The comparison baseline also has gaps: installed Claude Code 2.1.314 is not
recognized by the context reader, so its grant context-relay instruction does
not fire. Historically the v0.15.2 beta-only parser rejected stable OpenCode
output (opencode v2.2.6). Current diagnostics admit stable V2 versions and
verify active/server/project plugin state. Windows OpenCode 2.3.0 has since
been exercised with isolated smoke and a separately installed prerelease
candidate; see historical v0.16.0 qualification.
That is neither all-platform nor all-role model-driven qualification. Selected
Codex/Claude doctor checks passed with advisories; full host parity and an
all-host healthy result are not claimed.
What you actually get
- Read-only by default. Assist mode mechanically denies every write to a file git does not ignore — not a convention the agent is asked to honor, but a decision
orch guardmakes before the write happens. - You route the model, not the agent. Six roles — architect, scout, implementer, specialist, reviewer, and a cheaper review downgrade — each pin an exact model version and host-native execution profile you choose, so a cheap model handles read-only work and a frontier model is spent only where the plan calls for it.
- Every issue gets its own worktree. Delivery work happens on its own branch, in its own isolated git worktree, never in your primary checkout.
- A separate dispatch reviews the work. The pull request is reviewed in a dispatch separate from the one that wrote it — never the same run marking its own homework.
- You hold the merge gate. Nothing lands on your default branch until you approve it, and the merge fails closed if the pull request moved after your approval.
- Every issue and PR carries an audit record. The exact model, its execution profile, how the host delivered that profile, and the routing rationale are recorded on the issue and mirrored onto its pull request.
- Works with the CLI you already use. Orch works with Claude Code, Codex CLI, and OpenCode V2, so you keep working in the agent you already have.
Day to day
orch help lists every command, human and plumbing, in one place:
usage: orch <command>
commands:
init Interview and bootstrap this repository
status Show mode and configuration summary
doctor Check environment and configuration health (doctor [--host <claude|codex|opencode>] [--json])
configure Interview and deliver committed configuration changes
configure-local Interview and apply machine-local overrides
resume Reconcile an interrupted Delivery run against GitHub and continue
abort Stop dispatch and return to Assist
metrics Show local metrics (`metrics report` rolls up every run; `metrics record` records JSON observations)
eval Evaluation preview/run/status/stop/report (eval help for arguments)
grant Show the active autonomy grant; grant revoke ends it; grant relay hands it to a fresh Claude Code session; grant preview and grant create propose and record one (JSON stdin/stdout)
render-agents Render project agent definitions for every enabled host
mcp Serve inspections, bounded evaluation preparation, plan decision gates, human-approved activation and issue dispatch over stdio (mcp [--repo <path>] [--eval-storage-root <absolute-local-path>])
run Adapter plumbing: Delivery verbs (JSON stdin/stdout); inspection: status|next --json, readiness --issue <number> --json
guard Adapter plumbing: pre-write enforcement for host hooks (not a human command)
hook Adapter plumbing: host lifecycle-event verbs (not a human command)
Before the read-only inspection trial, the last three rows — run, guard,
hook — were described as what host adapters call for you, never invoked by
hand. Mutating Delivery verbs and the guards/hooks still have that role.
After trial item 3, run status --json, run next --json and
run readiness --issue <number> --json are also explicit read-only client or
human inspection entry points; none grants approval or advances the run.
Before the trial, mcp help described live run status alone. After item 3,
discovery also includes next-action guidance and review/merge readiness.
After item 4, discovery adds orch_doctor, equivalent to orch doctor --json
with optional host selection. Failed checks retain their report and CLI exit 1.
After separately approved item 5, source discovered five tools, adding
orch_config_effective. It accepts only {} and returns schema_version: 1
with configuration equal to the shared loader's fresh effective configuration:
defaults, permitted local overrides, host profiles, configured protected paths
and sorted applied-override keys. Existing Config JSON names (for example,
ConfigRevision, Hosts, Overrides) and legacy OpenCode Effort spelling
are preserved. Configuration failures are tool errors, not partial reports.
This local-only inspection reads current files, not Git HEAD or an active run's
approved configuration, and runs no health probes. Bare configure remains a
committed-setting summary, configure-local an override summary, status a
mode/configuration summary, and doctor health diagnostics; no new CLI command
is added.
Before items 6–7, that five-tool discovery and mcp [--repo <path>] launch
description did not include metrics or evaluations. After item 6, discovery adds
recorded metrics history and rollups; after separately approved item 7, source
discovers eight read-only tools, adding orch_eval_status. Existing launch forms
still work, with optional --eval-storage-root <absolute-local-path> to opt in to
one existing guarded local store. The new tool accepts only run_id, reuses CLI
status's retained evaluation report and rejects another repository's evidence.
Without the storage binding it returns an explicit tool error. Inspection does
not publish reports, grade, execute, stop or infer process liveness; private
source and raw worker output remain guarded references, not returned contents.
For optional MCP client access to those reports, see the
local stdio MCP guide. This optional surface was absent
from v0.15.2; building it does not install anything or replace the host plugins
and their enforcement hooks.
Before item 13, that MCP surface and its help were exclusively read-only.
After separately approved item 13, orch_eval_preview also accepts only a
repository-relative plan_file and may retain an immutable preparation record
in the launch-bound store. The proposal's canonical storage root must match that
binding before publication. This tool is not read-only: interrupted publication
may also retain .pending-* artifacts. It reuses CLI preview normalization,
read-only Git probes and no-replace publication, without creating an evaluation
execution, worker, approval, Delivery run, configuration or GitHub artifact.
Existing inspections and CLI preview (including external plan paths) remain
available; preparation never grants execution approval. See the guide for the
exact write footprint, path restrictions and blast radius.
Before item 10, the integrated issue-context/preview catalog exposed ten tools
and no plan gate. After separately approved item 10, orch_plan_gate adds the
engine's full effective-contract decision gate as an eleventh tool, taking only
{"plan": {...}}. The existing ten contracts are unchanged. The gate creates no
Orch/Git/GitHub artifacts or approvals, but its existing memhub probes may have
memhub-owned storage/provider side effects; it is not annotated read-only or
idempotent. Human approval of that exact gate and separate activation are still
required. Help now advertises the gate alongside inspections and preparation.
Source tests do not upgrade the binary an MCP client launches; separately verify
that binary's identity and discovered tools after an explicitly approved install.
Before item 15, MCP help advertised inspections, bounded preparation and plan
decision gates, with no lifecycle operation. After separately approved item 15,
source exposed sixteen tools plus four read-only resources and one template.
orch_run_activate alone submitted an explicit human-approved schema-2 activation
request to the existing engine; #534 changes that request to schema 3. A call,
validation or successful gate inspection is never approval; the human's
statement, approver, timestamp and exact
effective-contract digest must be supplied. Activation can mutate GitHub, Git,
state/locks and existing audit/metrics records and is not automatically retried.
Partial-failure recovery remains explicit; dispatch, merge, configuration
application and evaluation execution retain separate authority. The preceding
fifteen tool contracts and every resource's no-command/no-write contract hold.
Grant-based activation remains excluded from MCP, not removed from the CLI.
See the guide for the full approval handoff, mutations, recovery and blast radius.
Before item 16, that sixteen-tool MCP catalog exposed no dispatch endpoint;
activation was its sole lifecycle operation. After separately approved item 16,
source adds orch_run_dispatch for seventeen tools, retaining every preceding
tool/resource contract. It accepts only {"schema_version":4,"issue_number":493}
with a positive issue number, calls existing serialized dispatch in the fixed
launch-bound checkout and returns the complete approved execution brief.
It is mutating, non-idempotent and externally effectful, not issue-context
inspection, new approval or an agent launch. It does not choose a model or
perform PR/review/merge work. Errors/cancellation can retain partial effects;
inspect fresh state and use normal engine recovery, never automatically retry.
Building source does not upgrade an installed MCP server or qualify a live host.
See the guide's dispatch section for the exact effects, tests and blast radius.
Before #534: the three MCP Delivery endpoints trusted the server's checkout pin, and the schema-3 gate/schema-2 activation handoff did not bind that checkout or the GitHub destination to approval. After #534: OpenCode MCP gate, activation and dispatch verify the invoking session independently at the bound primary. Gate 4 and Activation 3 bind the verified primary checkout, GitHub host/owner/repository and stable GitHub repository ID. Activation rechecks them live before effects and targets its GitHub operations explicitly. Approval contract 4 requires fresh approval for a new run, not migration of an active one. Register OpenCode's checkout pin at project scope, not globally.
Previously metrics only accepted its read-only report form. That form still
works; metrics record now accepts durable observation JSON. See the
observation contract and compatibility notes.
Before issue #351, orch grant was absent from help and exited 2 as an
unknown command. Now orch grant prints the active autonomy grant (or says
none is active), orch grant revoke ends it, and orch grant preview /
orch grant create are the JSON plumbing an adapter uses to show a grant and
record it from the user's digest-bound approve-autonomy-grant approval.
Grants are machine-local, kept in the clone's git common directory. Before
#353 no command approved anything under a grant; now orch run activate
(statement grant-approve-and-enter-delivery) and orch run merge
(statement grant-approve-merge) accept an approval from the active grant
on a Claude Code run, approver grant:<id>, past the stops ORCH-PRD.md §8
lists, and orch grant lists each approval given. orch grant relay takes no
arguments: run by the session currently holding the grant, it starts a
background Claude Code session (claude --bg) with Remote Control on, in the
permission mode the grant records, and makes that session the holder. orch grant lists the holders in order.
To prepare an evaluation of an Orch change, see the
evaluation workflow and its
measurement contract. Before issue #312,
orch eval was unimplemented and absent from help. Now
orch eval preview --plan FILE [--json] validates version 1 local JSON, freezes
the bounded schedule and retains an immutable public preparation record under
an explicit existing local root outside the checkout, Git metadata and declared
worker/scratch locations. A valid blocked preview exits successfully; it grants
no approval. Its storage is unverified against worker access. Before issue #316,
"Evaluation execution, stop/status/report and protected runtime storage remain
proposed; unsupported evaluation verbs fail explicitly." After that increment,
orch eval run --plan sha256:DIGEST --storage-root ROOT [--approval FILE] [--json]
returns the frozen scope and requires a single-use, digest-bound human assertion.
Before issue #323, "Production attempts still refuse." After that increment,
version-2 plans can execute through the checked native boundary with declared
approved instructions and a matching clean controller build. Legacy and
unsupported contexts refuse. status and stop take --run ID --storage-root ROOT [--json]; report takes those selectors plus --format text|markdown|json. Every terminal outcome retains immutable report bundles;
reports also expose incomplete snapshots. See orch eval help and the workflow
for the approval format, strict arguments, exit codes and recovery limits.
Before issue #318, semantic grades and disputes remained unknown and grade
was unsupported. Now orch eval grade --run ID --storage-root ROOT --unit N --attempt N --submission FILE [--json] retains evidence-backed evaluator
assertions, with immutable corrections and initial/final coverage. See the
grading input and trust contract. Unknown or
disputed judgments remain unknown; scripted preparation never becomes model
trial acceptance. Existing execution records and older reports stay unchanged.
Before #323 this section listed worker-access/model-tool validation as
outstanding. The native boundary now checks enforcement and declared context
per attempt; separately approved live trials and the measured baseline remain
outstanding. Phase 1 is open. Existing metrics
and Delivery/configuration/merge gates retain their prior contracts.
The initial preview admitted Windows SUBST drive aliases during placement
checks, allowing a record to land inside an excluded worker location. After the
review repair, every preview directory uses Windows' handle-resolved drive-root
identity and rejects aliased or unverifiable roots, including aliases on the
excluded-path side. Worker-access protection remains unverified.
On Claude Code the three interviews also have slash commands:
/orch:init, /orch:configure, /orch:configure-local.
Settings — what you can tune
Configuration lives in two TOML files under .orchestrator/:
config.toml— committed to git, shared by everyone working on the repository. Changed withorch configure, which delivers the edit as a reviewable pull request.config.local.toml— machine-local and gitignored, for personal preferences. Changed withorch configure-local, applied directly.
The split is a closed table over every key in the schema, not a convention: policy keys can only live in the committed file, so a local override can never weaken a shared workflow rule.
| Setting | Values (default) | Local override? |
|---|---|---|
hosts.claude / hosts.codex / hosts.opencode |
enable a host by giving it a role table | no (committed) |
hosts.<host>.roles.<role>.model |
exact model version string | yes |
hosts.claude.roles.<role>.effort / hosts.codex.roles.<role>.effort |
low medium high xhigh max (+ ultra on codex) |
yes |
hosts.opencode.roles.<role>.variant |
model-specific variant; omit when committed or set "" locally for bare provider/model |
yes |
hosts.opencode.roles.<role>.effort |
v0.8.0 compatibility alias for the same-named variant | existing files continue to load |
concurrency.max_subagents |
integer ≥ 1 (3) |
yes |
metrics.enabled |
true / false (false when omitted) |
yes |
merge.strategy |
squash rebase merge-commit (squash) |
no (committed) |
memhub.mode |
required best-effort off (no default — you choose) |
no (committed) |
Every enabled host carries the same six roles: architect, scout,
implementer, specialist, reviewer, and review_downgrade (the
cheaper reviewer Orch may use only when the plan affirms all four of
mechanical, low-risk, fully specified and unsurprising — claims routing
takes at face value rather than checks). Each role
names one model string; the interview offers exact versions rather
than tier aliases, and whatever string is configured is the one that
lands in the audit record, so the record says what ran instead of what
tier it belonged to. The defaults orch init offers:
| Role | Claude Code | Codex CLI | OpenCode V2 |
|---|---|---|---|
| Architect | claude-opus-5-5 / xhigh |
gpt-6-astra / xhigh |
openai/gpt-5.6-sol#xhigh |
| Scout | claude-sonnet-5-5 / medium |
gpt-5.6-luna / max |
openai/gpt-5.6-luna#max |
| Implementer | claude-sonnet-5-5 / high |
gpt-6.1-sol / xhigh |
openai/gpt-5.6-terra#max |
| Specialist | claude-opus-5-5 / high |
gpt-6.1-sol / max |
openai/gpt-5.6-sol#max |
| Reviewer | claude-opus-5-5 / high |
gpt-6-astra / medium |
openai/gpt-5.6-sol#xhigh |
| Review downgrade | claude-sonnet-5-5 / high |
gpt-6.1-sol / high |
openai/gpt-5.6-sol#high |
These Codex defaults apply to fresh setup and newly enabled hosts. Existing
committed profiles and machine-local overrides keep their selections. Codex
model questions show at most four choices, including Astra, Sol 6.1 and the
current default; use Other for any prior or custom exact model ID. To adopt the
profiles in an existing repository, use orch configure for shared selections
or orch configure-local for this machine, then run orch render-agents after
the change is applied. Follow the Codex install order
when updating the engine and adapter; installing alone does not rewrite profiles.
Before optional OpenCode variants, OpenCode reused the effort key and always
rendered it as a #variant suffix. New OpenCode configuration uses optional
variant, so a model with no variant stays a bare provider/model (omitted in
committed config, or variant = "" in a local override); committed and local
schema-v1 effort values from v0.8.0 still load with the same
effective selection and configuration revision. This exception is OpenCode-only;
Claude Code and Codex keep their existing model/effort configuration and routing.
On beta build 18314 or newer, or stable V2 2.0.0 and later releases that pass the same contract checks, OpenCode setup reads the repository's live, location-validated catalog. Each of the six roles independently chooses any enabled, tool-capable text model, so one profile may mix providers and models. A second question offers only the selected model's advertised variants; models with none remain bare. Catalog choices use deterministic two- or three-choice native pages with explicit previous/next navigation, and every model appears exactly once. A one-model page adds cancel rather than emitting a host-invalid one-choice dialog.
If catalog discovery fails or returns no agent-capable model, initialization and OpenCode role edits stop with the discovery error; unrelated configuration edits preserve the existing OpenCode roles. Delivery activation rechecks all six exact selections and fails before mutation when a provider, model, or variant is no longer available. The plugin compares only the main session's selected model to the configured Architect reference: a mismatch adds a warning but never switches the session automatically, and child sessions are not compared to the Architect.
Optional DeepSeek-led mixed-provider preset. When a supported OpenCode V2
runtime (opencode2 or opencode) is detected and enabled, orch init offers
this opt-in alternative. orch configure and orch configure-local offer it
when editing OpenCode roles. Detecting or enabling the host does not select it;
declining keeps the manual/default path, committed selections, or effective
local preferences. Every role remains customizable before final approval.
| Role | Provider/model | Variant |
|---|---|---|
| Architect | opencode-go/deepseek-v4.1-flash |
max |
| Scout | opencode-go/glm-5.3-flash |
high |
| Implementer | openai/gpt-6.1-sol |
high |
| Specialist | openai/gpt-6.1-sol |
xhigh |
| Reviewer | openai/gpt-6.1-sol |
xhigh |
| Review downgrade | opencode-go/deepseek-v4.1-flash |
max |
The preset is offered only when the current project catalog contains every
exact model and variant above. Setup rechecks that requirement before proposal
and application, even after per-role customization; missing entries are explained
without substitutions. A nonempty catalog still supports manual role choices
when the preset is unavailable. Configuration stores separate model and
variant values, not legacy effort values.
Select the main-session Architect model and variant manually in OpenCode:
for these defaults, choose opencode-go/deepseek-v4.1-flash and max.
The preset does not switch sessions, install binaries, change global host
configuration, replace the shipped defaults above, or rewrite this repository's
Codex-matching shared role selections automatically. It changes only the
OpenCode roles approved in the chosen interview; other hosts and settings stay
unchanged.
Typical tuning: point a role at a bigger or smaller model on one
machine with configure-local (run the Architect on a frontier model
only where you have the subscription), raise max_subagents on a
machine that can take it, or turn on local metrics while experimenting.
orch status reports how many overrides are in effect and orch doctor names the exact keys they set, so a machine-local change is
never invisible.
Memhub integration
memhub is an external, optional, local-first per-repository
project-memory CLI. Orch talks to it when it is present but neither
requires it nor ships it: set memhub.mode to off and Orch never
looks for it.
memhub.mode is committed, in config.toml, and has three values:
off— memhub is skipped entirely: no probes, no doctor checks.best-effort— memhub's health and recall are probed and reported; planning probe failures are advisory. Unavailable native child lookup is reported for Architect-mediated fallback, never labelled successful.required— Delivery planning fails closed if either probe fails: the plan gate refuses to activate the run.
Both the plan gate and orch doctor run the same two-step check: a
memhub status health probe, then — only if that succeeds — a memhub recall against a fixed canary query, so a wedged retrieval path that
still exits 0 is caught rather than trusted. orch doctor is
mode-aware: off prints a skip note, best-effort reports the result
as a note without failing, and required fails the check outright.
Orch's engine client probes and recalls; it does not request semantic writes,
rendering, reindexing or sync. Architect CLI/full-server operations still use the
primary checkout. Previously every Memhub process was required to use that cwd.
Now all five OpenCode child roles may use only native orch_memhub status,
recall, get_row and locate, with explicit primary memory and assigned code
roots, cwd at the assigned checkout, legacy protocol and no pooling. The database
is never copied into a worktree. Claude/Codex children remain mediated.
Move the child session to its assigned checkout and verify the returned location. Call status first and compare explicit memory/code/common-directory identities with the dispatch and schema-2 engine context, including expected revision. Windows extended paths can identify the same directory; raw spelling and HEAD alone do not identify dirty code. Locate supplies per-hit SHA-256 evidence and an independent code index: coverage is tracked files, not untracked files or an atomic tree snapshot. Missing tools, unavailable service or mismatched roots stop qualification and go to the Architect, never a CLI, full-server or wrong-root fallback.
Lookup-only is not physically read-only: existing migrations, metadata/registry maintenance, query logs, model initialization and disposable index refresh may write. Semantic/admin writes remain Architect-only. Native permissions, executor checks and the Memhub profile fence the four-tool surface; shell bypass remains an instructional boundary, not a sandbox. Anything a child wants remembered comes back in its report. Authoritatively unmanaged locations retain ordinary Memhub behavior without Orch child fences or a bound service; failed discovery is not unmanaged scope. See the OpenCode binding and qualification guide.
v0.17.1 release target (not published)
Latest published engine remains v0.17.0, with 0.13.2
adapters and marketplace. The v0.17.1 candidate includes direct OpenCode
cleanup from PR #552, merged at
49ff995b677961d79af528331bedecf0e4bbf85a, and this final release-preparation
bump to 0.13.3 for all three adapters and the marketplace. This bump leaves
dependency declarations and resolved packages unchanged; SDK/util/protocol remain
2.2.6. No tag, release, installation or publication is part of this
preparation. OpenCode remains checkout-backed and unpublished to npm.
Direct OpenCode cleanup (#547, #549, #551)
Before (through v0.17.0): cleanup invoked inside Code Mode could block itself even when no other work was active. Recovery meant waiting for the job to finish, then rerunning the confirmed cleanup from a standalone terminal.
After: the matching engine and OpenCode adapter run confirmed cleanup
through the direct orch_cleanup tool from the verified primary session,
outside Code Mode. The predecessor's isolated Windows OpenCode 2.4.0
source smoke passed 37 checks, including the job hold and direct cleanup
without a standalone retry, with zero provider requests and verified owned
shutdown. That evidence belongs to PR #552's reviewed source head
74aa11dbcff635276662fdf8f097217404b70cfa, not this final candidate or an
installed host. The earlier
Windows 2.3.2 observation established the Code Mode hold, not direct-tool
qualification. Neither is installed qualification or a new engine runtime
baseline.
Running Code Mode jobs still block removal, including jobs owned by primary
sessions or first observed during bound merged cleanup's remote lookup or push.
For an activity hold, keep the checkouts unused, let the job finish, verify the
run and issue, then retry the confirmed orch_cleanup directly from primary.
For a repository or ownership refusal, preserve the work and inspect the
evidence instead of switching tools.
Before #551 / PR #552: inspecting a clean executor could still refresh its Git index before a destination refusal. After: the clean check reads status without that optional write. Modified, staged and untracked files still block removal.
Bound merged cleanup checks the recorded PR host, owner and repository name over verified HTTPS or SSH and requires the exact approved branch tip if the ref is present. Before URL pinning, Git used the remote name and its transport settings; now the bound lookup and deletion use the verified URL instead. See the named-remote settings before and after. These checks do not verify a stable repository ID. A replacement at the same URL with the same branch and commit can still match. Finish or pause pending cleanup before a repository migration, mirror cutover, or restore that replaces the repository. Do not resume an old run against the replacement. No new credential setup is required; the existing transport requirements still apply.
The cleanup guide preserves the released standalone recovery, which does not retain the new bound checks. The real #551 cleanup used an older standalone engine; it was not installed direct-tool qualification.
Qualification and release handoff. Source tests and predecessor smoke do not qualify the exact v0.17.1 merged candidate, installed/shared-host behavior, other platforms or real-model workflows. No local post-merge smoke or manual CI exception is part of this issue's execution or authority.
- After independent review, required CI and merge, record the full reviewed head and fetch/verify the exact clean main OID containing that reviewed content and this final 0.13.3 bump. Build and identify the candidate engine and matching adapter checkout from that merged commit.
- Under separate approval, run the Windows OpenCode smoke against that exact
candidate in both source-build and explicit-artifact modes. Unset
ORCH_SMOKE_ORCHandORCH_SMOKE_ADAPTERfor source-build; select the exact candidate with both variables for explicit-artifact, with compatibleORCH_SMOKE_MEMHUBin both modes. Retain commits, hashes, runtime identities, zero-provider-request evidence, shutdown verification and receipts under the smoke evidence rules. - Only after both passes and separate explicit tag/publish approval, tag that
same verified merged bump commit. Pushing a
v*tag triggers automatic GitHub release publication via the release workflow; obtain that approval before pushing. Do not add release content after the bump; further content needs a fresh bump and qualification, not different bytes under 0.13.3. No tag or publication is authorized by this preparation. - After that approved publication, verify all six published binary
assets against trusted
SHA256SUMSand GitHub asset digests, and verify tag/commit provenance. Verify downloaded binaries before execution. Installation and installed adapter/skills acceptance remain separate, Assist-only work under the upgrade and rollback guidance; finish active runs with their original engine and matching adapters first.
v0.17.0 release
Published 2026-11-23 UTC as
v0.17.0 at
61219da5f853fbf8f7956927c9404ebebfcda4c1. Before publication, v0.16.0
at 18fd5032c35253d58b11963777bb002d9acdde79 was the latest release.
v0.17.0 includes changes through PR #544
(e86ff7058cd80662df32eec36b97297fc2947d5e), plus the final release notes and
0.13.2 adapter/marketplace bump. The preparation itself did not publish
a tag, GitHub release or npm package. OpenCode remains unpublished to npm.
- Safer checkout cleanup refuses success while worktree residue remains and releases finished OpenCode locations before Git removal. Alias identity, cache-eviction rechecks, teardown holds and concurrent saved-session checks protect active sessions and terminals. Unknown or running Code Mode jobs block cleanup with standalone recovery guidance, not a forced removal. See cleanup and recovery (#507, #508, #511, #512, #524, #526, #538, #544).
- Windows OpenCode uses the native CLI behind npm shims without shell invocation. Deterministic fixtures preserve the source dependency graph; private smoke runtime copies retain byte-identity checks (#520).
- Audited, explicit human CI exceptions can accept observed incomplete checks for one independently reviewed head; a separate acknowledgment can recover an already-merged run. Neither supplies prior merge approval, authenticates the human, bypasses GitHub protection or makes a failed probe successful. See manual CI recovery (#518).
- Evidence-only review adds non-approving
needs-evidence/unverifiedoutcomes, durable per-criterion receipts and fresh independent review on the same head without a fabricated fix commit. Merge remains pinned to the successfully reviewed head. See review evidence (#530). - Plan approval binds the verified primary checkout and GitHub selector plus repository ID. Current approval/execution contract 4, Gate 4 and Activation 3 refuse old authorization rather than migrating it; Review remains 4 and state remains 6 (#535). Status from linked worktrees reports the clone's active Delivery run (#529).
- OpenCode Delivery guidance prefers native MCP dispatch, with CLI fallback
only when that Orch lifecycle tool is unavailable; dispatch still does not
launch an agent. This is not a fallback permission for native
orch_memhubchild lookups (#542). - CI's Go suite now has an explicit 20-minute timeout (#516). The local-only OpenCode smoke bounds fixture retention with verified pass receipts, failure archives and recovery-before-new-run refusal; its native storage lock is harness-only, not a new adapter dependency (#540). SDK/util/protocol pins remain 2.2.6, with no dependency or resolved-package changes in this bump.
Qualification and limits. Earlier Windows source/explicit-artifact smoke and installed observations in these guides qualify only their recorded commits and bytes, not the v0.17.0 candidate, its eventual merged binary or later source. Separately, v0.17.0 passed isolated Windows OpenCode smoke in source-build and explicit-artifact modes. Source tests and hosted CI do not replace the local Windows OpenCode smoke, prove shared-service activation or qualify a model-driven five-role trial, other platforms, Claude/Codex direct child memory or complete host parity.
Operator upgrade and release handoff. No final v0.17.0 artifact was published at the preparation stage described here.
- Finish active Delivery runs on their original engine and matching adapters before upgrading. Update only between runs in Assist. If a run cannot be finished, explicitly abort it and obtain fresh plan approval; never replace its engine to continue. State schema 6 does not make approval contracts 2, 3 and 4 compatible. Preserve the prior verified engine, adapter/skills, compatible Memhub and configuration with paths, commits and hashes. Upgrade the engine and matching adapters as a unit, not labels alone.
- After separately approved installation, verify downloaded binaries against
the trusted release's published
SHA256SUMSbefore execution. Reload the affected OpenCode location or restart Claude/Codex, refresh stale/changed agent definitions, run selected-host doctor and verify loaded source/hashes. Exercise a fresh bounded approved workflow. Rollback is also Assist-only and restores the recorded compatible engine/adapter/Memhub/configuration pair, never a live-run migration. - Separate post-merge gate: after independent review, CI and merge, fetch
and verify the exact clean main commit containing this final bump and the
reviewed content. Record its full OID. Build and identify the candidate
executable and matching adapter checkout from that commit. Qualify the local
Windows OpenCode smoke in both source-build and explicit-artifact modes:
select that candidate with
ORCH_SMOKE_ORCHandORCH_SMOKE_ADAPTER, plus a compatibleORCH_SMOKE_MEMHUB. Follow the smoke qualification and evidence rules, retaining artifact hashes, runtime identities and receipts. A source-only pass is not explicit candidate-artifact qualification. - Only after that qualification and separate explicit approval, tag that same verified main commit, not a later content commit. The version bump must remain the final content-bearing release-preparation commit; further content changes require a fresh bump and qualification, not different bytes under 0.13.2. Tagging, publication, installation and workflow changes are outside this preparation. Verify eventual published binary/checksums and installed adapter content separately; OpenCode remains unpublished to npm.
v0.16.0 release
Published 2026-11-15 as
v0.16.0 at
18fd5032c35253d58b11963777bb002d9acdde79 (PR #502), with adapter identities
0.13.0. These historical notes cover v0.15.2 through f57fc37 (PR #500)
and that release's final metadata/documentation change; the qualification
checkpoint below predates the tagged artifacts.
- Local stdio MCP now exposes 17 tools, four fixed resources and one issue-context template: status/next/readiness, structured doctor, effective configuration, recorded metrics, retained evaluation inspection, issue context, bounded evaluation preparation, configuration interview steps, approval/grant inspection, in-memory validation and effective-contract gates, explicit human-approved activation and approved issue dispatch. Inspections never grant approval; dispatch returns a brief, not an agent launch. Remaining MCP lifecycle/review/merge automation, configuration application and evaluation execution are not exposed. See the contracts.
- OpenCode supports admitted stable V2 runtimes as well as beta 18314+, package-directory loading with SDK/util/protocol 2.2.6, active project-scoped plugin/catalog health, native patch/path interpretation and fail-closed Windows junction containment. The opt-in DeepSeek-led mixed-provider setup preset still requires every exact catalog selection; it changes no session automatically and leaves existing profiles intact unless approved.
- Native lookup-only child memory uses primary memory plus each assigned implementation/review checkout. Schema 2 distinguishes verified unmanaged locations, fixing the global-plugin regression without relaxing managed child restrictions. All five roles are permitted the same four lookups; permission is not proof of five-role model-driven qualification.
- The required local-only OpenCode smoke can either build source or select an explicit engine/adapter pair, retaining separate harness, selected and executed identities. Private hosts use simulation and a zero-request provider trap; explicit-artifact results do not prove shared-service activation.
- Explicit integration repair restores a safe writable path for recovered pre-PR work or a pinned conflicting PR, retaining original scope and requiring renewed verification, independent review, CI and merge approval. It adds CLI Repair schema 1 and approval/execution contract 2, not an MCP repair mutator or active-run migration. See recovery and compatibility.
orch status, the bare configure report and doctor now show protected-list presence, repository-specific entry count, approved/required methodology and survey currency. Before #434 those reports omitted this status. Missing or stale lists produce agent setup guidance; doctor keeps it advisory for manual Delivery. A current empty list has zero repository-specific entries. Survey currency proves neither Codex grant support nor committed-config integrity. This behavior is absent from the released v0.15.2 binary.
Historical qualification and limits. The 2026-11-14 Windows checkpoint used OpenCode
2.3.0 (with the existing unverified-version advisory), Node 24.15.0 and Go
1.26.5, with SDK/util/protocol 2.2.6 and Memhub source eec177f5.
Source and explicit-artifact smoke each passed 25 checks with zero provider
requests and owned-host shutdown. Separately approved installation activated
engine v0.16.0-prep.f57fc37 and adapter/skills from f57fc37 (still labelled
0.12.0), not the released 0.13.0 package. Installed CLI/live-MCP doctor,
17/4/1 discovery, active plugin path, an Assist guard denial and unmanaged-scope
observation were checked. Those observations are distinct from the original
release-preparation source checks and native executor/reviewer lookup evidence
in that PR's audit, and are not v0.17.0 qualification.
All-five-role simulation is not a model-driven five-role trial; other platforms,
Claude/Codex direct child reads and complete host parity remain unqualified.
At that checkpoint, guide search, wrap-up integration and broader rollout
tasks 319/331 remained open.
Historical upgrade, rollback and publication gates.
- Update only between runs in Assist. Preserve the previous verified engine, adapter/package/skills content, Memhub and configuration provenance (paths, source commits and hashes). Select compatible content as a unit, including lookup-context schema 2 and explicit-root lookup-only Memhub. Finish old runs with their original engine/content or abort and seek fresh approval; state schema 6 alone did not make contracts 1 and 2 compatible at this checkpoint and does not make later contracts compatible either.
- A downloaded release binary must match that trusted release's published
SHA256SUMSbefore execution, including for published v0.16.0 artifacts. Reload the affected OpenCode location (or restart Claude/Codex), refresh agents when definitions changed or are stale, run selected-host doctor and verify actual loaded source/content, not just version labels. Exercise a fresh bounded approved workflow; source tests alone do not verify installation. - Roll back only in Assist, restoring the recorded compatible engine/adapter pair and any changed Memhub/configuration content, not mixing new lookup wiring with an old engine. Restore the recorded checkout/plugin and skill paths, reload, compare hashes/provenance and repeat doctor and bounded checks. Downloaded rollback binaries require the previous release's trusted checksums. Never migrate a live run, change a methodology number or bypass a gate.
- The final metadata/documentation bump merged at
18fd503, the commit tagged v0.16.0. The earlier checkpoint above does not verify that published binary, its checksums or its checkout-backed adapter content. Those require separate final-artifact and installed-release verification; publication does not retroactively qualify them. OpenCode remains unpublished to npm.
v0.15.2 release
- A wider generic protected-path floor. The host harness configuration,
dependency/registry manifests and root
.github/actionsadditions from #415 now also cover.agents/skillsand every descendant at any repository depth, plusAGENTS.override.mdby basename at any depth, ignoring case. Near misses and Windows path normalization retain their intended behavior — #425. - Protected-path survey methodology 2. The checkpoint, destructive-entry and capability rules from #414 are joined by an explicit ruling: loaded operating instructions, their source templates and command instructions qualify under test (a) when changing them can widen an unattended agent's permitted actions; descriptive prose alone does not. The Architect checks Git tracking and commit costs, using the actual range denominator and whole-history fallback when fewer than 101 first-parent commits exist. Presentation includes entry evidence/reasons, near misses, every destructive-entry ruling, empty categories and unresolved items; checkpoint examples must show what ships — #428.
- Codex setup now packages the same methodology-2 reference as Claude and guides
protected.pathsthrough survey, human edits/approval and final summary. Scouts require existing delegation authorization; otherwise the Architect performs the survey. Approved arrays are JSON text insideAnswerSetstring values. #417's complete-question, current-tool availability/purpose/capacity, built-in free-text/plain-text fallback and actual affirmative-approval rules remain in force — #430. - Reviewable init/configure changes. LF and CRLF checkouts show the same real configuration edits, and unchanged instruction files are omitted while enabled-host validation remains — #427. Generated issue/PR records start with What and Why, retain protected reasons, methodology, conflicts, real edits and validation, and omit the duplicated complete JSON dump — #429.
- Caller verification details above 2000 Unicode code points are rejected before any mutation, with guidance to split the evidence. Accepted evidence and old records remain intact; separate engine-owned and review-summary caps retain their behavior — #426.
At this historical release, engine v0.15.2 paired with shared Claude/Codex adapter 0.13.0 and OpenCode 0.12.0. Its manual wire versions (Gate 3, Status 4, Activation 2, Dispatch 4, Review 3, Escalate 2, Block 2, Resume 2, Resolve Block 1), approval contract 1, state schema 6 and metrics document schema 2 were unchanged from v0.15.1. That release's housekeeping changed no agent definition or hook. Methodology-1 lists stay inspectable but require a real methodology-2 re-survey and fresh approval before grants; changing only their stored version never re-approves them.
Source/CI evidence and remaining live work. The six content PRs #425–#430 and release PR #431 passed hosted checks, including full Windows, macOS and Ubuntu suites. The tag-driven release workflow also passed build, vet, tests and cross-compilation. These establish source contracts, not installed survey behavior or full parity. During preparation this section recorded installed engine v0.15.1 / adapter 0.12.1 with Codex CLI 0.163.0 and an outstanding manual exercise. The release pair has since been installed and the manual path exercised for #434; fresh initial-setup/survey verification and the automation gaps remain as listed in Codex parity.
Publication, installation and rollback. Preparation originally left
publication and installation for separate human approvals. Both occurred on
2026-10-31: v0.15.2
was published at #431's merge commit
c26d9e7481f5d478531edc70847856923a862fab, and the recorded Windows installation
verified downloaded binaries against the published SHA256SUMS and GitHub asset
digests. Installed adapter content was compared with that release source.
Future publication or installation still requires its own approval; this
documentation update performs neither.
- For installation on another machine, preserve the previous verified
engine/adapter pair and its source/cache provenance. Between runs, use the
inspected installer pinned to v0.15.2:
ORCH_VERSION=v0.15.2 sh install.shor.\install.ps1 -Version v0.15.2. These verify the downloaded binary against the trusted release's publishedSHA256SUMSbefore execution. Upgrade the configured adapter to 0.13.0 with the host commands above, and compare actual installed skills/survey content and source commit with the release commit; matching version labels alone are insufficient. - Restart/reload the host, refresh project agents with
orch render-agentsas required by the upgrade guidance, and runorch doctor --host codex(or--host claude). Separately approve a fresh bounded plan to exercise the installed Codex setup/survey and manual Delivery workflow, including actual affirmative gates. Record its results before claiming live verification. - Roll back only between runs in Assist, restoring a previous matching pair,
for example engine v0.15.1 with adapter 0.12.1. Pin the installer to that
engine tag and verify its published checksums. After inspecting the current
install, use the host's adapter remove/uninstall and marketplace remove
commands, then re-add the marketplace at the recorded previous source commit:
Codex supports
codex plugin marketplace add kninetimmy/orch --ref <previous-commit>; Claude supportsclaude plugin marketplace add <local-checkout-at-previous-commit>. Reinstall that host's adapter, reload, verify content/provenance and the engine/adapter versions, then repeat the selected-host doctor and bounded workflow checks. Do not migrate an active run, alter a methodology number or bypass grant checks to make the rollback pass.
v0.15.1 release target
- Protected-paths survey judged by what CI, review and revert cannot catch. The
Claude
orch-setupskill'sPROTECTED_PATHS_SURVEY.mdnow proposes a path only when a bad change there, after passing CI and review, would widen what an unattended agent may do, silently disable enforcement, or do damage a revert cannot undo. It reports near misses that you can promote to entries, and it asks for the recent change rate of large files. The document records the old rule ("when in doubt, propose; a redundant entry is harmless") and the new one as a before-and-after — #410. - What has run live since v0.15.0. On 2026-10-18 the protected-paths survey ran
for the first time from an installed adapter (0.12.0) through
/orch:configurein Orch. It proposed 62 entries, which would have sent nearly every grant merge to you. You approved a 27-entry list judged by the new test instead (#405). The revised survey text was then tried read-only on the memhub repository, where it proposed 7 entries, led by memhub's automatically applied database migrations.
Engine release v0.15.1 pairs with Claude/Codex manual-adapter version 0.12.1 and
OpenCode package 0.12.0; these are separate identities, and 0.12.0 was paired
with v0.15.0. The Claude/Codex version moved because the Claude orch-setup
skill changed; Claude Code caches plugins per version, so an installed Claude
session loads the new survey text only once the adapter version moves. A Codex
install must also move to 0.12.1 because the two share one version that orch doctor checks exactly. The OpenCode package stays 0.12.0 because none of its
files changed since v0.15.0. The survey methodology version is still 1, so a
[protected] list approved under v0.15.0 stays current and needs no new
approval. No wire version, state schema, metrics schema, agent definition or
hook configuration changed since v0.15.0.
v0.15.0 release target
- Relay stop for the previous grant holder.
orch grant relaynow reports whether the session that ran it is a background session, an interactive session or of unknown kind. When the successor starts, its session-start hook stops a background predecessor withclaude stop, neverclaude rm, so the conversation is kept. An interactive predecessor is never stopped by Orch: the successor asks you to end it with/exit. If listing or stopping fails, the hook names theclaude stopcommand to run by hand — #399. - Grant protection that left the binary. Before v0.15.0 the engine itself
protected Orch's own source: the paths the #366 and #391 entries name (the
kill switch, the grant hooks, the transcript reader,
orch run pr-open, and every adapter's skills, hooks and agents directories) and the rest of its compiled list. From v0.15.0 those paths are protected only when a repository's committed[protected]list in.orchestrator/config.tomlnames them. The built-in floor protects every repository: instruction files (CLAUDE.md,AGENTS.md), git attributes and ignore files, CI workflows, the.orchestratordirectory, the license, and dependency manifests, lockfiles and install or build scripts at any depth. Each[protected]entry is a repository-relative path and a one-line reason, and the section records the survey methodology version it was approved under. From v0.15.0orch grant preview,orch grant createand grant-approved merges refuse in every repository, Orch's own included, until that repository's[protected]list is approved through/orch:configureor/orch:initat the binary's survey methodology version; a merge that a grant cannot approve comes to you. The #366 and #391 entries above are left as written, describing what v0.13.0 and v0.14.1 did — #400. - Survey and approve the protected list.
/orch:initand/orch:configurenow ask for the repository's[protected]list: the answer can be deferred, an approved empty list, or a list of path and reason entries, and configure offers it by default when the committed list is missing or from another methodology version. Theorch-setupskill ships the survey methodology and tells the Architect to survey withorch-scoutsubagents and let you add, drop or defer entries before the answer is submitted. A Claude session start shows a one-line note while the repository's list is missing or out of date — #401. - What has run live since v0.14.1. The run that delivered #399, #400 and #401 was the first Claude Delivery run on an installed 0.11.1 adapter. You approved every gate and no grant was active. The Architect started the 60-second timer before each usage wait, and no subagent notification wait stalled.
- What has not happened yet.
claude stopon a background predecessor has not run live. The protected-paths survey has not run from an installed adapter. No grant has run under the floor-plus-list rules.
Engine release v0.15.0 pairs with Claude/Codex manual-adapter version 0.12.0 and
OpenCode package 0.12.0; these are separate identities, and 0.11.1 was paired
with v0.14.1. The Claude/Codex version moved because the Claude orch-delivery
and orch-setup skills changed. A Codex install must also move to 0.12.0
because the two share one version that orch doctor checks exactly, so orch doctor reports an installed 0.11.1 adapter as a version mismatch, although no
Codex adapter file changed. The OpenCode package stays 0.12.0 because none of
its files changed since v0.14.1. The manual wire versions, state schema 6 and
metrics document schema 2 are unchanged from v0.14.1. Agent definitions and hook
configuration are unchanged since v0.13.0, so orch render-agents does not need
to be re-run when upgrading from v0.13.0 or later. Engine v0.14.1 and earlier
refuse a config that contains a [protected] section (the installed v0.14.1
orch status fails with unknown keys: protected, protected.methodology_version),
so upgrade the engine on every machine that uses a repository before that
repository's list is merged. To upgrade, update the engine and the configured
Claude or Codex adapter together between runs (see the upgrade commands above),
restart the host and run orch doctor --host claude|codex. Then approve each
repository's [protected] list through /orch:configure before starting a
grant.
v0.14.1 release target
- Bounded wait for a subagent's task notification. The Claude
orch-deliveryskill now tells the Architect to start a background timer of about 60 seconds before ending its turn to wait for a subagent's task notification. If the notification has not arrived when the timer completes, the Architect makes theorch run pr-openororch run reviewcall withusageomitted instead of stalling until something else wakes it. This changes the Claude skill only — #392. - Grant protection for every adapter's skills. Every path under
adapters/<any adapter>/skills/is now grant-protected, so an autonomy grant can no longer approve the merge of a PR that changes any host's Orch skills; such a merge comes to you — #391. - Merge approval stated at run start. When a run starts while a grant is active, the Claude Architect now tells you in a push notification, for each issue, whether the grant can approve its merge or it will come to you, and why — #393.
- What has run live since v0.14.0, all on native Windows with Claude Code
2.1.301, engine v0.14.0 and adapter 0.11.0. Architect usage capture (#385)
ran on the released v0.14.0 and, in run
run-20261018T171010Z-4b23ae0c(which delivered #391 through #393), recorded the Claude Architect's own token counters and the run's host at completion for the first time. In that run the Architect followed the bounded wait #392 describes by hand: of six subagent hand-backs, three arrived with their task notification already present and three got a 60-second background timer, and no wait stalled. - What has not happened yet. #392's text itself has not run from an installed
adapter. #393's run-start statement has not run under a grant. Whether
CLAUDE_CODE_SESSION_IDchanges after/clearhas not been checked, and resume and fork have not been checked live.
Engine release v0.14.1 pairs with Claude/Codex manual-adapter version 0.11.1 and
OpenCode package 0.12.0; these are separate identities. The Claude/Codex
version moved because the Claude orch-delivery skill changed. A Codex install
must also move to 0.11.1 because the two share one version that orch doctor
checks exactly, although no Codex adapter file changed. The OpenCode package is
unchanged. The manual wire versions, state schema 6 and metrics document schema
2 are unchanged from v0.14.0. Agent definitions and hook configuration are
unchanged since v0.13.0, so orch render-agents does not need to be re-run when
upgrading from v0.13.0 or later. To upgrade, update the engine and the
configured Claude or Codex adapter together between runs (see the upgrade
commands above), restart the host and run orch doctor --host claude|codex.
v0.14.0 release target
- Claude subagent usage from the task notification. The Claude
orch-deliveryskill now tells the Architect to wait for a subagent's task notification before callingorch run pr-openororch run reviewfor its work, and to fillusageandexecutor_usagefrom the notification (subagent_tokensas total tokens, andduration_ms), never from the hand-back that arrives first and carries no usage. Usage is omitted, not estimated, when no notification has arrived or for a fix cycle done by a subagent resumed withSendMessage. The skill also shows how to record each scout's usage withorch metrics record, including scouts that ran before activation, and a test parses every example observation in it with the engine's parser. This changes the Claude skill only, and no engine behavior — #376. - Cross-run metrics report.
orch metrics reportprints one read-only rollup across every recorded run and writes no file. Issue outcomes are grouped by role, executor and reviewer profile, reviewer downgrade and approval source, with merged, abandoned and blocked counts, escalations, first-review approvals and review cycles. A dimension a run did not record is its ownunknowngroup, token counters are summed only within one host, source and stream with no total across groups, and run time is wall-clock time from the first to the last recorded event, not active time — #377. - Codex spawn-source test. This is a test-only change: it adds a test to
internal/codexusagethat fails if the check that a Codex child rollout names its parent were made to pass unconditionally. It changes no behavior for a user of orch — #381. - More facts in run metrics. A run activated by this release records its host,
and each issue's activate event records the risk domains, unusual difficulty
and four downgrade facts its plan declared. The
pr-openand merge events record the PR number, and a review that blocks its issue records whether a wrong criterion or the autonomy grant's fix-cycle limit caused it. Events and documents written before this release keep reporting those facts asunknown, never as false.orch metrics reportbreaks outcomes down by host and by each routing fact and counts blocking reviews by cause apart from request-changes fix cycles — #382. - Escaped defects. A plan issue may carry a
fixeslist of merged PR numbers.orch run planrefuses a number that is not positive or is repeated,orch run activaterefuses before creating anything when a listed PR does not exist or is not merged, the plan gate and the GitHub issue body show the PRs fixed, and theplan_digestis unchanged for a plan that lists none.orch metrics reportattributes each fixed PR to the original issue's run, profiles and review history, counts it under that issue's outcome group, and counts fixed PRs no recorded merge names as unattributed. The PlanDoc section of theorch-deliveryskill documentsfixeson all three hosts — #383. - Claude Architect usage. When a Claude-host run completes with metrics enabled,
orch run completerecords the Architect's own input, output, cache-read and cache-creation tokens, read from the transcripts of the Claude Code sessions that ran anorch runverb other thanstatus, between activation and completion and counting each assistant message once. The SessionStart hook records each starting session's id and transcript path under.orchestrator/metrics/claude-sessions/for this, prints the same text and exits the same way as before, and with[metrics] enabled = falsenothing new is written. A session whose usage cannot be established is recorded as unavailable with a reason, not guessed, andorch metrics reportshows the recorded counts as architect usage — #385. - What has not happened yet. Architect usage capture (#385) has not run on a
released binary. Whether
CLAUDE_CODE_SESSION_IDchanges after/clearhas not been checked; if it does not, Architect usage after a/clearis missed. Resume and fork have not been checked live, and a forked session that runs anorch runverb is reported as transcript-path-unrecorded. Architect usage capture recognizes only Claude Code 2.1.289, 2.1.295 and 2.1.301 transcripts. - What has run live since v0.13.1, all on native Windows with Claude Code
2.1.301 and engine v0.13.1. The corrected
orch grant relayrecorded as holder the session thatclaude agents --jsonlisted and whose ownCLAUDE_CODE_SESSION_IDmatched (2026-10-17), and has since handed one grant on three more times (2026-10-18). A push from a background session arrived with the phone app closed (2026-10-17). One grant approved two plans and the merges of #376 and #377 (2026-10-18). With/autocompactset to 100k the grant holder passed about 132k tokens without compacting while a session holding no grant compacted, but the holder showed no sign that the PreCompact block ran (2026-10-17).
Engine release v0.14.0 pairs with Claude/Codex manual-adapter version 0.11.0 and
OpenCode package 0.12.0; these are separate identities. Both adapter versions
moved because the orch-delivery skill changed on all three hosts (#376 on
Claude, #383 on all three). The manual wire versions, state schema 6 and
metrics document schema 2 are unchanged from v0.13.1; #382, #383 and #385 added
optional fields under document schema 2. An orch binary older than v0.14.0
refuses a metrics document that carries a field added by #382, #383 or #385
rather than ignoring it. Agent definitions and hook configuration are unchanged
since v0.13.0, so orch render-agents does not need to be re-run when
upgrading from v0.13.0 or v0.13.1. To upgrade, update the engine and the
configured Claude or Codex adapter together between runs (see the upgrade
commands above), update the OpenCode package checkout and run npm ci --prefix adapters/opencode, restart the host and run orch doctor --host claude|codex.
v0.13.1 release target
- Relay fix for Claude Code 2.1.301. On 2.1.301
claude --bgignored the--session-idthatorch grant relaypassed and started a session under an id of its own, so on v0.13.0 the relay's own check refused to record it and failed closed with the holder unchanged. The relay now records the full session id of the one background sessionclaude agents --jsonlists under the short idclaude --bgprinted. If it cannot identify exactly one such session it fails with the record unchanged and namesclaude stop <id>for the background session that was started — #371. See theorch grant relayentry under known issues and limitations for the before and after. - What has not happened yet. The corrected relay has not yet run live. The push from a background session and the PreCompact block have not been checked live either, and no plan or merge has been approved under a grant.
Engine release v0.13.1, the unchanged Claude/Codex manual-adapter version 0.10.0
and the unchanged OpenCode package 0.11.0 are separate identities; this release
changes no adapter or plugin artifact. The manual wire versions and state schema
6 are unchanged from v0.13.0. To upgrade, update the engine between runs (see
the upgrade commands above), restart the host and run
orch doctor --host claude|codex; an installed 0.10.0 adapter and the 0.11.0
OpenCode package need no update, and orch render-agents does not need to be
re-run.
v0.13.0 release target
- Autonomy grants. A grant is a machine-local record of what you have delegated:
its scope as named items, the gates it covers (plan, merge, wrap-up), an
expiry, run, merge and fix-cycle limits, a context threshold in tokens, the
Claude Code permission mode relayed sessions start in, and the one session
allowed to approve under it.
orch grantshows it,orch grant revokeends it for good, and creation takes an approval that carries the grant's digest and the exact statementapprove-autonomy-grant. Creation is refused while another grant is active, withoutCLAUDE_CODE_SESSION_ID, or for thebypassPermissionsmode. Records live in the clone's git common directory, so every worktree sees one grant andgit statusnever changes — #359. - Approving under a grant.
orch run activateandorch run mergenow accept an approval from the active grant on a Claude Code run, recorded as approvergrant:<id>, and the issue and PR bodies say that no person reviewed or approved the plan or merge. Engine-checked hard stops refuse it for a plan with a risk domain or a host other thanclaude, a caller that is not the grant's holder, an exhausted budget, an issue with any escalation or block, the downgraded reviewer, anything but passing required CI, and a PR touching a protected path. An issue that uses up the grant's fix cycles is blocked for you to resolve. Human approvals work exactly as before, and the metrics events gain an approval source ofhumanorgrant:<id>— #362. The protected-path list now also covers the kill switch (orch grant revoke), the grant hooks, the transcript reader andorch run pr-open, so a grant cannot merge a change to them — #366. - Relay and context hooks.
orch grant relaytakes no arguments: run by the session that holds the grant, it starts a successor as a background Claude Code session (claude --bg) with Remote Control on, in the grant's permission mode, and makes the successor the holder, so the previous session can no longer approve — #360. With an active grant, the Claude SessionStart text names the grant and whether this session holds it, a hook asks the holder to relay at the next stopping point once its context passes the threshold, and the PreCompact hook blocks automatic compaction for the holder. Manual/compactand other sessions are unaffected, and every hook fails open — #361. The Claudeorch-deliveryskill gainsGRANTS.md, telling the Architect how to set up a grant, approve inside it, stop and send a decision packet, wrap up and relay; tests pin its statement literals and subcommands to the engine — #363. - Claude Code 2.1.301. The transcript reader that sizes the holder's context
now recognizes Claude Code 2.1.301 as well as 2.1.295.
orch doctorprints one line with the installed Claude Code version and whether the reader recognizes it, and the holder's session-start text says when the relay instruction will not fire for an unrecognized version — #367. - Agent definitions. The reviewer definitions now tell the reviewer to resolve
the PR head by its commit OID or
origin/<branch>, neverFETCH_HEAD, and all four working roles use a three-dot diff against the live base instead of a local base branch for claims about the whole branch. This changes the agent definitions on all three hosts — #358. The v0.12.1 notes below also had two misplaced statements corrected — #357. - What has not happened yet. No autonomy grant has been created or run, so no
plan or merge has been approved under one. The live checks of
orch grant relay, of a push from a background session with the phone app closed, and of the PreCompact block have not been run. Grants work only with the Claude host. The transcript reader recognizes only Claude Code 2.1.295 and 2.1.301, and any other version gets no relay instruction. See the grant entries under known issues and limitations.
Engine release v0.13.0 pairs with Claude/Codex manual-adapter version 0.10.0.
The manual wire versions and state schema 6 are unchanged from v0.12.1, and
the OpenCode package stays 0.11.0: it exports only src/index.js, and nothing
under its src or skills changed since v0.12.1. Its agent definitions are
embedded in the engine and written into each project by orch render-agents,
so they arrive with the engine. To upgrade, update the engine and the
configured Claude or Codex adapter together between runs (see the upgrade
commands above), restart the host and run orch doctor --host claude|codex.
orch doctor reports an installed 0.9.0 adapter as a version mismatch. Re-run
orch render-agents in every project that uses Orch, because #358 changed the
agent definitions on all three hosts. State schema 6 has no active-run
migration, so an active run stays on its original pair.
v0.12.1 release target
- Claude Code evaluation worker. Evaluation plans can now name their host:
a version 3 plan carries a required
hostofclaudeorcodex, which is part of the plan digest and the approval scope. Version 1 and 2 plans stay Codex plans with unchanged bytes and digests, aclaudeplan declares no approved instruction files, and evaluation observations are accepted with hostclaudeas well ascodex— #342.orch eval runselects its worker from the frozen plan's host, and a version 3claudeplan now runs through a new Claude Code worker that launches one print-mode session per attempt with--restricted,--safe-mode,dontAskpermissions and a fixed tool set. It requires the Claude subscription login, refuses a workspaceCLAUDE.mdorAGENTS.md, and treats any model other than the pinned one as a safety failure. It records usage with unreported counters left unknown, stops attempts with an interrupt and a process-tree kill, and never resumes a disconnected session. Each worker refuses another host's plan before claiming it — #343. The host-neutral evaluation types and containment checks the worker shares with the Codex worker now live in a common package, with Codex behavior and stored-record bytes unchanged — #341. See the evaluation workflow. - Claude worker hardening. The Bash allowlist is now seven exact commands
(
go build,go testandgo vet, each bare or with./..., andgofmt -l .) instead of wildcard rules that accepted flags such as-toolexecorgofmt -w, so targeted commands likego test -run Xare denied; each child also getsGOWORK=off,GOTOOLCHAIN=local,GOPROXY=off,GOSUMDB=offandCGO_ENABLED=0— #345. Apermission_deniedevent from a denied tool call no longer ends the attempt as malformed, and the worker removes the emptyclaudedirectory Claude Code 2.1.289 leaves in the attempt scratch, which previously made every Claude attempt invalid evidence — #347. - No live Claude evaluation trial, four-case screening run or twelve-case graded
baseline has been completed, and the exact-match behavior of the Bash rules is
documented rather than observed. The worker's host-enforced containment is
policy enforced by Claude Code, not operating-system isolation, and
go teststill runs workspace test code with your rights. Phase 1 stays open, and a completed attempt is not a semantic grade.
Engine release v0.12.1, the unchanged Claude/Codex manual-adapter version 0.9.0
and the unchanged OpenCode package 0.11.0 are separate identities; this release
changes no adapter or plugin artifact. To upgrade, update the engine between
runs (see the upgrade commands above), restart the host and run
orch doctor --host claude|codex. For an upgrade from v0.12.0, an installed
0.9.0 adapter, its rendered agent definitions and the 0.11.0 OpenCode package
need no update; from an earlier release, follow the v0.12.0 release notes
below. State schema 6 has no active-run migration, so an active run stays on
its original pair. Metrics schema-2 history requires v0.11.0 or a newer
compatible reader, while legacy schema-1 history remains readable without
rewriting; evaluation observations use schema 3 and are rejected by Delivery
history.
v0.12.0 release
- Evaluation workflow. A reproducible measurement and grading contract defines
case selection and held-out handling, independent grader validation, matched
comparisons, complete attempt costs and explicit improved, regressed or
inconclusive decisions —
#307 — alongside a proposed
user workflow for preview, bounded approval, progress, stopping, local
reports and a separate adoption decision —
#309. The twelve-case
reference-v1corpus and its grading controls are prepared — #311. See the evaluation workflow and measurement contract. orch evalcommands.orch eval preview --plan FILEvalidates a version 1 plan, freezes its bounded schedule and retains an immutable local preparation record, granting no approval — #313. A guarded evaluation controller and runtime storage retain progress and attempt evidence — #315.run(behind a single-use, digest-bound human assertion),status,stopandreportcomplete the family, with text, Markdown and JSON report bundles retained immutably — #317.orch eval graderetains evidence-backed grading with immutable corrections and disputes — #319. See the grading contract.- Native Codex evaluation admission. Isolation validation replays synthetic
tool dispatch through the installed Windows Codex dispatcher and pins
TEMP,TMPandTMPDIRto scratch — #321. Native task sessions are admitted only on Windows amd64 with Codex 0.160.0 and verified isolation controls on the actual connection; every other host, platform or Codex version still refuses — #324. Approved evaluations now run through those sessions: a version 2 plan must declare its approved global instruction artifacts and protected roots, and both selected revisions must match the controller binary's clean embedded build revision, with only thenoneandrequested-profileinterventions executing — #325. See the native protocol contract. - No live model trial, screening run or measured baseline has been performed. Live completion, interruption and recovery checks and the graded baseline remain separate, separately approved work, and Phase 1 stays open. A completed attempt is not a semantic grade.
- Shipped default profiles. Fresh Codex setup now defaults to Architect
gpt-6-astra/xhigh, Scoutgpt-5.6-luna/max, Implementergpt-6.1-sol/xhigh, Specialistgpt-6.1-sol/max, Reviewergpt-6-astra/medium and Safe Reviewergpt-6.1-sol/high; prior and custom model IDs stay available through Other — #305. Fresh Claude setup now defaults to the 5.5 generation: Architectclaude-opus-5-5/xhigh, Scoutclaude-sonnet-5-5/medium, Implementerclaude-sonnet-5-5/high, Specialist and Reviewerclaude-opus-5-5/high, and Safe Reviewerclaude-sonnet-5-5/high — #330. Existing explicit configurations keep precedence, and OpenCode defaults are unchanged. - Claude routed effort is now pinned in each agent definition's
effortfrontmatter, written byorch render-agentsalongsidemodel, instead of being conveyed as a prompt cue; a definition whose rendered effort differs from the configured one is reported stale — #331. - The shipped Claude
orch-implementerandorch-specialistdefinitions now tell executors to run checks in the foreground with a Bash timeout long enough to finish, never to writeuntilorwhilewait loops, and, when a check has to run in the background, to wait for that command's completion notification before reporting back — #335.
Engine release v0.12.0, the Claude/Codex manual-adapter version 0.9.0 and the
unchanged OpenCode package 0.11.0 are separate identities. To upgrade, update
the engine and the configured Claude or Codex adapter together between runs
(see the upgrade commands above), restart the host, re-run orch render-agents
in each Claude project and run orch doctor --host claude|codex. State schema 6
has no active-run migration, so an active run stays on its original pair.
Metrics schema-2 history requires v0.11.0 or a newer compatible reader, while
legacy schema-1 history remains readable without rewriting; evaluation
observations use schema 3 and are rejected by Delivery history.
v0.11.1 release
- Codex child-usage capture now supports the bounded forked-rollout format, validating the fork boundary and exact child attribution while excluding inherited parent counters, timestamps and completion evidence. Unsupported or malformed evidence remains unavailable; root usage, complete-run savings and historical backfill are not provided — #301. See the metric observation contract.
- Internal native Codex groundwork adds bounded capability preflight, native Windows workspace/credential isolation diagnostics and single-task sessions with interruption, in-memory resume and attributable observations — #295, #296, #297. Diagnostic admission now checks capabilities and inherited tool restrictions rather than an exact host version — #299. Production native model execution remains unavailable because model-tool isolation is unverified; wider live model-tool validation is deferred. See the native protocol contract.
Engine release v0.11.1, the unchanged Claude/Codex manual-adapter contract 0.8.0,
and the unchanged OpenCode package 0.11.0 are separate identities; a 0.8.0
adapter label alone does not prove capture-v2 support. Adopt supporting engine
and adapter revisions together between runs. State schema 6 has no active-run
migration, so an active run stays on its original pair. Metrics schema-2 history
requires v0.11.0 or a newer compatible reader, while legacy schema-1 history
remains readable without rewriting.
v0.11.0 release
- Delivery mutations now share a repository serializer, and plan approval binds the submitted scope, engine-contributed criteria, routing, and effective execution settings.
- State schema 6 keeps human-decision blocks durable through recovery, while
orch doctor --hostfocuses diagnostics on one configured host without hiding failures from the others. - The OpenCode lockfile updates
brace-expansionfrom 2.1.4 to 2.1.7, clearing the prerequisite audit finding. - P1-A adds durable metric observations, attributable Codex child-session capture, and read-only coverage, measured timing, and outcome reporting. See the metric observation contract.
Status
Early software. See GitHub Releases
for the tagged-release history. Every pull request merged since PR #40 carries
an Orch audit record in its body — apart from the configuration deliveries,
which orch configure writes in its own body format. Since PR #40, this
repository has been built through the pipeline described above: a plan gate,
an isolated worktree per issue, a review dispatched separately from the work,
CI, and a merge that fails closed unless it carries an approval pinned to the
commit merge-report recorded.
All of that evidence comes from one repository: this one.
Known issues and limitations
What will bite you today — symptom, cause, workaround
Writes made through the shell are not guarded. The pre-write hook
covers Claude Code's Write, Edit, MultiEdit and NotebookEdit,
Codex CLI's apply_patch, and OpenCode V2's edit, write, and
patch. A file written by a shell command —
echo > file, a script, a git checkout — never reaches orch guard, so neither Assist's read-only rule nor Delivery's worktree
containment applies to it. Symptom: an agent modifies your working
tree in Assist and nothing denies it. Workaround: the host's own
permission and approval prompts on shell commands are the only
backstop; leave them on.
The guard cannot tell one role from another. orch guard has a
--role flag that would make a role mechanically read-only, but no
adapter passes it. Claude Code and Codex CLI hook manifests run the
bare command, and the OpenCode V2 orch.delivery guard is host-global
rather than attributed to a dispatched role. In a worktree the guard
treats as writable, a scout or reviewer is no more restricted by the
guard than the implementer. On Claude Code the orch-scout
subagent's tool whitelist does close its write surface — it carries no
Bash — but orch-reviewer and orch-reviewer-safe both carry
Bash, so their read-only discipline for shell-mediated writes rests
on instructions there too. Codex agent definitions carry no tool
whitelist. OpenCode's native orch-scout, orch-reviewer, and
orch-reviewer-safe definitions mechanically deny edit, shell,
and subagent; the edit denial covers every built-in V2 mutation
tool. Its read-only role enforcement therefore comes from those
definitions, not the host-global guard.
An orch run verb invoked from inside a Delivery worktree reports
Assist and names the wrong fix. Every orch command resolves
.orchestrator/ from its own working directory. A Delivery worktree
carries the committed .orchestrator/config.toml but no
state.json — that file is machine-local and gitignored — so orch status run there prints mode: assist while a run is active, and a
lifecycle verb fails with no delivery run is active; run `orch run activate` to enter Delivery first. Activating a second run is exactly
the wrong move. Workaround: run every orch run verb with the primary
checkout as the working directory.
A missing binary fails open, not closed. The Claude Code and Codex
CLI adapters invoke bare orch guard <host> commands; the OpenCode V2
plugin invokes orch guard check. If orch does not resolve on
PATH, the host does not receive an Orch denial, so the guard silently
stops enforcing and the session-start context stops being injected. No
error, no denial. On Codex CLI the same is true while the plugin's
one-time hook trust approval is outstanding — until you approve it,
the bundled hooks do not run at all. Symptom: no denial where you
expected one, and no Orch block at session start. Workaround: install
the binary before the plugin, approve the trust prompt, and run orch doctor; a missing session-start block is the visible tell.
claude plugin install on a host that already has the adapter
changes nothing and leaves the old version running. Claude Code
treats an install of a plugin it already carries as satisfied: claude plugin install orch-claude@orch exits 0 reporting Plugin "orch-claude@orch" is already installed, even when claude plugin marketplace update orch has just fetched a newer adapter into the
plugin cache. Installing and upgrading are two different commands, and
only claude plugin update orch-claude@orch replaces the active
version (it says Restart to apply changes when it does). Symptom:
following the agent install prompt's step 3 on a machine that already
has Orch reports success while the previous adapter goes on running.
Workaround: on an existing install use the upgrade commands above, not
the first-install ones; orch doctor names the installed and the
expected adapter version when they diverge.
orch doctor fails on a machine that lacks a configured host's
command-line tool. Plain orch doctor checks every host the committed
configuration names, and fails when any host's CLI, adapter, selection,
or project agent files fail their checks. Use orch doctor --host claude|codex|opencode to diagnose one configured host: common repository
and selected-host failures still fail the command, while failures from
other configured hosts are reported as advisory notes. Claude and Codex
adapter checks also report absent, duplicate, disabled, missing-version,
and version-mismatch states (plus Codex's not-installed state). A version
mismatch names the installed and expected adapter versions and tells you
to align the older engine or adapter to the same release. OpenCode instead
admits beta 18314 or stable 2.0.0 and newer runtimes, with advisory warnings
outside verified version baselines. It requires exactly one active server
plugin with ID orch.delivery in the verified project directory; counting
IDs alone no longer suffices. The API does not expose adapter versions.
Host enablement is a committed-only key
— the Settings table above marks hosts.claude / hosts.codex /
hosts.opencode as
no (committed) — so machine-local configuration cannot switch a
host off for one machine. Before selected-host diagnostics, a repository
configured for multiple hosts reported a failing doctor on every machine
that had only one of them installed; there was no per-machine diagnostic
choice. Now --host gives that machine a focused result without hiding
the other failures or changing committed host policy. Plain doctor keeps
the historical all-host failure behavior.
Codex workspace-write sandbox mode on Windows fails every agent
write where the sandbox helper infrastructure is absent. Observed
live: every apply_patch fails with orchestrator_helper_launch_failed
before any mutation, which stops Delivery execution cold. Workaround:
confirm the sandbox actually works on that machine before setting
sandbox_mode = "workspace-write" there.
Claude Code applies effort from the subagent definition. Each Claude
project agent definition carries an effort frontmatter field that
overrides the session effort while that subagent runs, and
orch render-agents writes each role's configured effort into it. New
audit records say Effort delivery: parameter; records written earlier
carry prompt-cue and still parse. Which effort levels a Claude model
accepts depends on the model. Codex pins effort in project agent definitions.
OpenCode instead pins its optional model-specific variant in the model reference;
the audit record says Profile delivery: model-variant, including an explicit
no-variant selection when the reference is bare.
A model override does not reach a dispatched agent by itself. No
host can override a model per spawn, so the
routed selection has to match the active project agent definition.
orch render-agents writes all five dispatched roles for every
enabled host under .claude/agents/, .codex/agents/, or
.opencode/agents/, using the
shipped plugin definition as the canonical body and changing only
that host's routing fields. Claude Code's scope priority
table
places project definitions above plugin definitions, so a generated
same-named .claude/agents/ file is what runs while retaining the
plugin's descriptions, tool allowlists, and role instructions. orch doctor checks each enabled host's project files separately from
installed-adapter health, and plan activation checks the selected
host; both fail closed, name every missing, unreadable, or stale path,
and direct you to orch render-agents. Changing effective role
configuration or upgrading Orch is not finished until you re-render.
A Codex CLI upgrade that adds a new apply_patch directive causes
denials until orch catches up. The guard's envelope parser treats
any *** directive line it does not recognize as a malformed
envelope and denies the write. That is deliberate — an unparsed write
must never be allowed — but it means a host upgrade can produce
spurious denials. Workaround: update orch.
OpenCode V2 uses version floors and real contract checks. Before project-scoped
catalog discovery, the live smoke check exercised exactly opencode2 v0.0.0-beta-17498 and @opencode-ai/plugin
0.0.0-beta-17498, while doctor checked only that runtime and the active
plugin ID. That old compatibility behavior no longer holds. The current
beta floor remains opencode2 v0.0.0-beta-18314. The later beta-only parser
incorrectly rejected stable V2 output. Source diagnostics now also admit
stable 2.0.0 and later releases, including future major versions, using
numeric comparison. There is no exact-runtime pin or upper-version block:
outside beta 18314 and stable 2.2.6, an advisory warns that behavior may
differ and contract checks continue. Doctor now verifies active state,
server presence and filesystem project identity rather than counting IDs.
It still requires compatible live skills and a URL-location-scoped model
catalog. The shared resolver prefers V2 opencode2, falling back to V2
opencode without choosing legacy V1 over available V2. The catalog retains
only enabled text-input/text-output tool-capable
provider/model IDs and their variant IDs; provider settings, headers,
credentials, account IDs, and raw API payloads never enter the returned
catalog or its diagnostics. The SDK and smoke previously stayed tied to
@opencode-ai/plugin 0.0.0-beta-18314. The adapter now uses
@opencode/plugin 2.2.6 and its matching simulation protocol, configured
as the package directory rather than the single-file path current V2 skips.
Native parser/path utilities supply every guarded patch/move target and
normalize Windows drive aliases; home-expanding forms are refused explicitly.
Those build dependencies do not cap runtime admission. The deterministic
private-server smoke is a required local Windows check against current V2
2.2.6; newer versions warn and proceed through actual contract checks.
It covers loading and guarded tool behavior without paid generation.
Hosted CI runs Go/Node checks on three platforms but does not run this live
smoke; other-platform and installed acceptance remain separate qualification.
The V2 API still does not expose an adapter version.
After an OpenCode upgrade, restart the service and rerun doctor
before relying on enforcement; upstream contract drift may require an Orch
update.
The merge gate cannot tell a human's approval from an agent's. The
engine requires an approval carrying the exact literal approve-merge,
pinned to the pull request and head commit merge-report recorded, and
gh pr merge --match-head-commit refuses if that commit is no longer
the head — so a stale or swapped merge fails closed. What none of that
establishes is who produced the approval: the agent assembles that JSON
itself, and internal/run/merge.go says so outright ("the engine
cannot verify a human, so this recorded string is the proof one
approved this specific merge"). Symptom: the audit trail's approval is
the agent's assertion that you approved. Workaround: the merge runs
through gh against GitHub, so GitHub-side branch protection is the
one control on this path that does not depend on the agent.
A crashed run leaves the Delivery lock held; there is no automatic
takeover. .orchestrator/delivery.lock is created with O_EXCL and
Orch never steals it on a staleness guess. This remains true for that
run-spanning lock; the separate per-command mutation serializer is
OS-owned and is released automatically when its process exits. Symptom:
the next run refuses to start, and orch doctor notes that the acquiring
process is no longer running. Workaround: orch resume to reconcile and
continue, or orch abort to end it.
orch grant relay is only partly checked live, and only on native
Windows. What ran live: on 2026-10-09, Claude Code 2.1.295 on native
Windows, a manual launch of the same shape (claude --bg --remote-control <name> --permission-mode auto "<prompt>", without --session-id). That
session started working on the prompt by itself and connected Remote
Control, and its CLAUDE_CODE_SESSION_ID matched the id --bg reported.
Before issue #370, orch grant relay passed a --session-id it generated
and succeeded only if --bg printed that id's first 8 characters; whether
--bg honored the passed --session-id had not run live. On 2026-10-17,
Claude Code 2.1.301 on native Windows, it ran live and did not: --bg
ignored the passed --session-id, printed backgrounded · 20b2927b, the
first 8 characters of the started session's id, and the relay failed closed
with the holder unchanged, leaving that session running. Now the relay passes
no --session-id. It reads the short id from the backgrounded · <id> line
--bg prints, runs claude agents --json, and records as the holder the
sessionId of the one entry with that id and kind background. If no
short id is printed, or that listing fails or does not name exactly one such
entry, the relay fails closed with the holder unchanged, and once a short id
was printed the error names claude stop <id>. Before 2026-10-17 this corrected path had not
run live; on 2026-10-17, on native Windows with Claude Code 2.1.301, it ran
live and recorded the right successor, the session that claude agents --json
listed and whose own CLAUDE_CODE_SESSION_ID matched. A failed relay can still leave a stray background session;
claude agents lists it and claude stop <id> removes it. macOS and Linux
were never checked live. A grant that records default as its permission
mode cannot relay on 2.1.295, whose CLI lists manual instead. Symptom:
orch grant relay exits non-zero with the launch error. Workaround: create
grants with a mode the CLI lists, and continue in the current session if a
relay fails.
Fixed
Defects already corrected, newest first
Everything here was merged on main and shipped in v0.10.0. See
GitHub Releases for the current
release history.
- The wrong-criterion guidance in the standard and safe reviewer definitions for each host now names a criterion about "how an LLM agent routes, decides, or behaves" as the standing instance of proxy-only evidence, instead of stating it of any agent; before, a reviewer applying the sentence literally could judge a criterion about this repository's own engine routing wrong — routing that is deterministic Go under a direct test suite — and needlessly block the issue — #213
- The interviews' effort questions now include the role's configured
default among the options they offer; before, a Codex role defaulting
to
maxwas asked to pick from four options that did not contain it, so the shipped default could not be chosen as offered — #210 - A model string typed into an interview that is a near miss of a known model now gets a did-you-mean check before it is accepted, and the check fires only on values you type — never on on-disk values or the engine's own proposed defaults; before, a near-miss string was pinned verbatim — #209
orch initandorch configurenow offer to seed a root instruction file this session creates — one yes/no question naming both files, defaulting to yes, asked when a host being newly enabled has no file of its own while the other host's carries content outside its managed block — and answering yes proposes that sibling's content copied verbatim above a fresh managed block, with the whole proposed file shown as the summary's diff before anything is written; answering no proposes the block-only file as before. Before, the created file held the Orch managed block and nothing else, so that host's agents ran with none of the repository's conventions — #192- An issue declaring at least one risk domain now carries one further acceptance criterion, contributed by the engine rather than by the plan document and always last: it asks for every element of the structure the change touches to be named with a verdict on whether the behavior it had before still holds, for a removed behavior to be recorded as a before-and-after in the document that stated the old behavior instead of that statement being deleted, and for a restriction attributed to one named symbol to be established as holding for that symbol alone or for every symbol of its kind. The gate document, the run state, the audit record and the created issue body all carry it, so the human approves it and the existing one-judgment-per-criterion rule holds the reviewer to it like any other criterion; all hosts' Delivery skills and every shipped reviewer definition — the standard reviewer and the safe review downgrade alike — now quote it and say what settles it: an enumeration in the pull request body of each element touched with its before-and-after, not a passing test suite. Before, a plan issue's criteria were exactly what the plan document listed, so a preservation clause naming one thing to protect left everything adjacent to it outside the standard the executor and the reviewer were measured against — #190
orch doctornow reports, once per enabled host, a root instruction file —CLAUDE.mdfor claude,AGENTS.mdfor codex — that holds the Orch managed block and nothing else, saying that host's agents see no project conventions and that they belong outside the block. It is a note rather than a failure: Orch cannot author a repository's conventions, and a repository with none to state is not broken. Before, a repository that kept its conventions in one host's file and let Orch create the other's got a file holding the managed block alone, with nothing anywhere reporting it — #189orch doctorgainedclaude agent definitions, the Claude counterpart of thecodex agent filescheck: it resolves the installed plugin root from the install pathclaude plugin list --jsonreports — the same listing the adapter check just ran, not a second one — reads the model each installed agent definition pins in its frontmatter, and fails naming every role whosehosts.claude.rolesmodel differs together with both models. It compares the installed copy rather than this repository's, because a plugin behind head can still carry an older pin, and it fails closed: no install path, an absent agents directory, an unreadable definition and a definition pinning no model are each a failure, never a pass. It repairs nothing — there is no Claude equivalent oforch render-agents, so you update the installed plugin or change the configured model. Before, nothing in the binary compared the two on Claude Code, and a role whose configured model no longer matched its installed definition went on being dispatched with only the Architect's skill instruction between the routed selection and a mismatched spawn — #186. That installed-copy comparison was the before state for this change; after, Claude uses rendered project definitions and both doctor and activation gate them, while installed-adapter health remains its own check.orch doctornow checks each configured host's installed Orch adapter and fails when it is absent, listed more than once, disabled, reporting no version at all, at a different version from the one this build ships, or, on Codex, marked not installed, naming the expected version and, whenever there is an installed one to name, the installed version too — an adapter that is absent or reports no version has none to name, so those failures report the expected version alone; before, an adapter left behind by a binary-only upgrade kept running while doctor reported the host healthy — #167orch doctorand Codex plan activation now compare the rendered agent definitions in.codex/agents/against the current build and the effective role configuration, and fail closed namingorch render-agents; before, definitions rendered from an older configuration went on being dispatched with nothing reporting them stale — #166. That Codex-only coverage was the before state; after this change the same generated-file check covers every enabled host.- Every reviewer agent definition on all hosts — the standard
reviewer and the safe review downgrade alike — now states that a
request-changesverdict is not confined to findings that block an acceptance criterion: a required test that fails, a security boundary the change weakens, and any defect of comparable severity are each grounds on their own, even when no acceptance criterion names the area they sit in; before, Claude Code's two reviewers closed the set at exactly two grounds — a finding blocking a criterion, or a criterion itself wrong — while Codex's two named the wrong-criterion ground without ever saying what else could drive request-changes, so on neither host did a required test failing outside every criterion's wording have to block the review — #159 orch run reviewnow refuses, before any mutation, a review that does not carry exactly one judgment per acceptance criterion the issue holds, and a criterion judged wrong blocks the issue for you as part of recording that review; before, a review could approve without saying anything about an individual criterion, and a criterion that was itself wrong reached you only if the Architect read the paragraph and made a second call by hand — #158- Codex usage capture now depends only on the rollout that actually identifies as the dispatched child, so an unrelated neighbour in the sessions tree — a zero-byte file caught mid-creation, one with no session metadata, an unparseable first line, or a shape written by another Codex version — no longer reports usage unavailable for every child in the run; a rollout that does match is still fully validated and two matching rollouts still fail closed — #148
- Claude Code's two reviewer agents now report every finding they make, low-severity and uncertain ones included, each carrying a severity and a confidence, and decide the verdict afterwards as a separate judgment, so a nit stays in the report without by itself costing another review cycle; before, neither agent said whether a minor or uncertain finding belonged in the report at all, nor that the verdict was a judgment made after the findings were listed — #117
- A verification entry whose text describes the branch as a whole is
given its
branch-scope:name prefix atpr-open, where the name is first chosen; before, a prefix added on a later review cycle appended a second entry instead of replacing the original, leaving the stale unprefixed one in the audit record permanently — #113 .gitattributesgained the rule that checks.gitignoreout with LF on every platform; before, a Windows checkout could get CRLF line endings in that file, which is what feeds the empty-pattern hazard the next entry describes — #110- Worktree containment no longer fails open on a
.gitignorewhose blank line survives as an empty pattern — a CRLF blank line, or a whitespace-only line under LF — becauseRequireIgnorednow queries two structurally dissimilar child probe paths and requires both to come back ignored, instead of a bare trailing-slash directory query, and an empty pattern can never match a non-empty basename — #106 - The metrics ignore line in
.gitignoreis now proposed unconditionally instead of only when metrics is enabled, closing a trap where turning metrics on before that line existed could leave metrics output un-ignored;orch configure-localandorch doctornow fail closed, naming the missing line, when metrics is enabled without it — #107 - Both adapters stopped claiming that per-agent tool whitelists make every read-only role unable to write; the shipped prose now matches what the guard actually enforces — #90
- After two or more escalations on one issue, the skills resolve the routing in force from the most recent escalation instead of an unqualified one — #84
- A rerouted issue's agent definition is checked against the model it was rerouted to, not the one it was dispatched with — #76
- A review submitted after an escalation is no longer rejected as a reviewer mismatch: the skills echo the reviewer currently in force — #71
- Claude spawns stopped passing a coarse tier alias as the model, which could never express an exact routed version; a spawn now matches the installed agent's frontmatter or stops — #70. That installed-agent match was the before state; after this change, a spawn matches the rendered project agent's frontmatter, which takes precedence over the plugin copy.
- Claude Code gained an
orch-reviewer-safeagent, so a routed reviewer downgrade dispatches the reviewer the audit record names — #66 - Verification entries carry the commit they were gathered at, so evidence from an earlier head is distinguishable from evidence at the head that merges — #62
- A review summary gets a 6000-character allowance of its own instead of the 2000 that cut a real reviewer's findings mid-criterion, and evidence re-run on a fix commit can now reach the audit record — #61
- A requested-changes cycle no longer sends the issue back through
pr-open, and the skills' stdin form works under PowerShell — #58 - A pull request with no required checks reports
no-checksinstead of erroring on an empty response fromgh pr checks --required— #44 - On Windows, a just-exited process no longer probes as still running,
so
orch doctor's dead-acquirer note can fire at all — #7
Under the hood
This section is for contributors and the curious; none of it is needed to use the tool.
Enforcement, not convention
The mode rules are resolved by a closed decision table in
internal/guard, reached through the host CLI's pre-write hook. In
Assist, a write to any in-repo file git does not ignore is denied;
git-ignored paths are allowed as local scratch. In Delivery, a write
is allowed only inside a worktree registered to the active run, in a
writable phase, with that worktree's HEAD on its registered branch. If
the guard cannot determine a fact — an unreadable state file, a path it
cannot canonicalize, an ignore probe that fails to run — it denies.
Two things are off limits in either mode, and one that looks like it
is, is not. Anything under .git is denied before the mode is even
consulted. The orchestrator state a session runs against —
state.json and the lock, in the primary checkout — is never writable
by an agent either: Assist denies it as orchestrator internals,
Delivery denies it as lying outside every registered worktree. A
worktree's own committed .orchestrator/config.toml is covered by
neither rule. Inside a registered worktree it is repository content on
a branch under review, so an executor can edit it, and that edit
reaches your configuration the way every other change does — through
the pull-request diff and the human merge gate. It cannot alter
enforcement mid-run, because the guard resolves state from the
outermost .orchestrator root, which is the primary checkout and
never the worktree's copy.
What the table decides is containment. The guard is given the write's
target paths, not the identity of the agent making the write, so it
cannot make one role read-only and another writable; no host adapter
passes the --role narrowing that exists for that purpose. Claude
Code and Codex CLI hook manifests invoke the bare guard command, while
the OpenCode V2 plugin invokes its host-global guard call. Nor does the
guard see writes the host does not route through a guarded tool, which
is why shell-mediated writes escape it entirely. Both gaps are in
Known issues.
Delivery is exclusive across hosts and machines: a lock file
(.orchestrator/delivery.lock, created with O_EXCL) is the lock,
and there is no automatic staleness takeover — recovery is always an
explicit orch abort or orch resume. Run state is schema-versioned
JSON at .orchestrator/state.json (machine-local, atomic writes,
fail-closed loads), persisted after every sub-step, so a crash at any
point is recoverable. Separately, every mutating Delivery command — all
mutating orch run verbs, orch resume, and orch abort — holds an
OS-owned repository serializer through its final state and metrics write.
Before that command-level serializer, the run-spanning lock excluded a
second run but let two invocations in the same run load and replace the
same documents concurrently. orch run plan and status commands remain
outside this serialization, and process exit releases it automatically.
The Delivery pipeline
The animation in How it works walks this lifecycle end to end; what follows is the same pipeline in detail.
A run starts at the plan gate: a schema-versioned plan document
(issues, dependency waves, risk facts) is validated fail-closed, and a
gate document derives each issue's executor and reviewer from those
facts alone through the routing table — the model never picks its own
reviewer. The gate also runs the memhub health and recall check
described above, gated by memhub.mode. Activation then creates the
GitHub label taxonomy, one issue per task carrying a structured
audit record (rendered markdown plus canonical JSON in a managed
body region: the approved objective, acceptance criteria and required
tests, plus the exact model, its host-native execution profile, how the host
delivered that profile, and the routing rationale, mirrored onto the
pull request), and one branch and isolated worktree per issue under
.orchestrator/worktrees/.
Each issue then walks a closed lifecycle driven by plumbing verbs:
dispatch (dependencies must be merged; the branch is fast-forwarded
onto the default branch) → pr-open (clean, strictly-ahead,
orphan-PR guarded) → review-worktree (a disposable detached
worktree of the pull request head, so the review does not run in the
primary checkout) → review (the routed reviewer, verified against
the live PR head) → ci (reads required checks as one of four honest
states — passing, failing, pending, or the explicit no-checks,
which is never conflated with passing) → merge-report (pins the
approved head SHA, and carries a no_ci_statement whenever
no-checks is what gates the merge, so "nothing gates this" is always
said outright) → merge (human-approved — before #353 only by a person,
now also by an autonomy grant past its stops — re-checked against the live
PR, pinned with --match-head-commit, setting the issue's terminal
delivered label) → cleanup → complete (fast-forward the primary
checkout, return to Assist). Failures route through escalate (the
routing ladder), block (closed failure classes; a secret found stops
the whole run) or abandon. Errors never mutate state; state advances
only on success.
Before #517, pending/failing required CI had no explicit manual continuation, and an unpinned out-of-band merge remained blocked. These remain the defaults. An owner can now explicitly accept CI for one reviewed head or separately acknowledge an already-merged reviewed PR, with attributable audit evidence, separate merge confirmation for open work, and ordinary separate cleanup/completion. Probes, review, grants, hooks and GitHub branch protection are not bypassed.
Before #505, cleanup treated missing Git registration as checkout absence.
Now executor and review paths must be absent on disk; unregistered residue
is preserved and blocks cleaned. Review replacement refuses it too.
See truthful checkout removal for retry guidance,
the before/after contract and retained safety boundaries.
orch resume reconciles an interrupted run against GitHub reality in
three strict stages — observe (all reads up front), classify (a pure
30-row decision table), apply (one state write, skipped when the run
has already converged). It never fabricates approval, never advances
past the human merge gate, and never deletes or recreates anything.
Before state v6 / resume v2, recovery re-derived every blocked issue from
healthy artifacts and copied approved work from the GitHub audit record.
Now operational blocks still recover that way, but review, escalation and
explicit decision blocks retain their cause and original reason until an
explicit resolution. Edited GitHub text cannot replace approved scope or
criteria. orch run resolve-block records a decision tied to the run, issue
and original block, only while approved work stays unchanged; orch resume
then reconciles artifacts. Changed work returns through the plan gate for
fresh approval. Unknown legacy blocks stay blocked with re-planning guidance.
The run-stop statement and per-PR merge approval remain separate gates.
See decision-block recovery for the wire
versions, recovery contract and affected consumers.
Routing and escalation
internal/routing is pure and deterministic: a five-row,
first-match-wins table over four task facts — whether the work is
read-only, whether it is unusually difficult, which of a closed
nine-domain risk enum it touches, and four affirmative claims
(mechanical, low-risk, fully specified, unsurprising) that alone
permit a cheaper reviewer — plus the models that have already failed
this issue. Read-only work goes to a scout, on the specialist model
when it is risky, difficult, or the scout model has already failed.
Risky, difficult or previously-failed work goes to a specialist with a
strong reviewer and refuses the downgrade there even when all four
claims hold, recording the refusal in the rationale. Everything else
goes to an implementer. Any conflict takes the stronger route and says
so in the rationale.
On failure, escalation retires the failed model permanently for that issue (an effort bump is still a retry; a model swap is not), restores the strong reviewer on any reroute, and resolves exhaustion to an explicit return-to-Architect. The code never ranks model strength on its own.
Package layout
| Path | Purpose |
|---|---|
cmd/orch/ |
CLI entry point |
internal/cli/ |
Command dispatch: human commands plus the run/guard/hook plumbing verbs |
internal/config/ |
Committed-config schema, fail-closed validation, local-override overlay, canonical TOML writer |
internal/state/ |
Assist/Delivery mode and per-issue run state (schema-versioned JSON, atomic writes) |
internal/lockfile/ |
Exclusive cross-host Delivery lock |
internal/paths/ |
Safe-path primitives: canonical paths, containment, repo-root discovery |
internal/execx/ |
Injectable external-command runner shared by the git/gh/memhub callers (+ scripted test fake) |
internal/gitops/ |
Delivery git mechanics: branches, worktrees, push, fast-forward — policy-free |
internal/ghops/ |
GitHub mechanics via the gh CLI: labels, issues, PRs, gated merge, CI state |
internal/manifest/ |
The issue/PR audit record — lossless render/parse over a managed body region |
internal/memhub/ |
Read-only client for the external memhub CLI: health probe and fixed-canary recall check |
internal/metrics/ |
Local, opt-in per-run JSON metrics recorder (schema-versioned, never transmitted) |
internal/evalplan/ |
Bounded evaluation controller, digest-bound approval and immutable reports. Before #323 production models refused and worker enforcement was unverified; version-2 attempts now require checked native protections, declared context and exact build/profile binding. Live trials/baseline remain pending. |
internal/codexusage/ |
Reader that recovers exact Codex subagent token totals from persisted child rollout files |
internal/routing/ |
Pure role routing and the escalation ladder |
internal/guard/ |
Mechanical pre-write enforcement behind host PreToolUse hooks |
internal/run/ |
The Delivery run engine: plan gate, activation, per-issue lifecycle, resume |
internal/agents/ |
Renders each enabled host's five project agent definitions, substituting host-supported routing fields onto canonical embedded bodies |
internal/instructions/ |
Managed instruction-block engine for AGENTS.md/CLAUDE.md |
internal/question/ |
Host-neutral native question contract (documents out, answer sets back) |
internal/interview/ |
Pure question engines for init, configure and configure-local |
internal/bootstrap/ |
Mechanical PR-flow executors behind init --bootstrap and configure --deliver |
internal/adaptertest/ |
Shared cross-host parity-test layer consumed by the host adapters' tests |
adapters/claude/, adapters/codex/ |
Marketplace host-adapter artifacts: plugin manifests, hooks, skills, agent definitions, plus Claude Code's slash commands |
adapters/opencode/ |
npm-native OpenCode V2 adapter package (@kninetimmy/orch-opencode): server plugin, native agents, skills, tests, and deterministic private-server smoke; not a Codex marketplace artifact |
ORCH-PRD.md |
Product requirements — source of truth for v1 |
Design principles
- Fail closed. Unknown config keys, schema drift, unreadable locks, indeterminate checks — everything unprovable is denied with a named remediation.
- Mechanics are policy-free.
gitops/ghops/manifestknow how;internal/runalone decides when and why. - Humans gate merges. Orch pins the approved head SHA and refuses if the pull request moved after approval; the merge itself happens on GitHub. Before #353 the approving human was always present; now they may delegate a merge to an autonomy grant they created, which refuses whenever one of its stops applies.
- Everything auditable. The exact model, its host-native execution profile, how the host delivered that profile, and the routing rationale live in the issue's audit record and are mirrored onto its pull request.
Build / test
Requires Go 1.26+.
go build ./... # build everything
go test ./... # run the test suite
go vet ./... # static checks
gofmt -l . # list unformatted files (CI fails on any)
go run ./cmd/orch status # or: doctor, help
License
MIT — see LICENSE.
Directories
¶
| Path | Synopsis |
|---|---|
|
adapters
|
|
|
claude
Package claude anchors the adapters/claude directory as a Go package so its validation tests (plugin_test.go) build and run under the module's ordinary `go test ./...`.
|
Package claude anchors the adapters/claude directory as a Go package so its validation tests (plugin_test.go) build and run under the module's ordinary `go test ./...`. |
|
codex
Package codex anchors the adapters/codex directory as a Go package so its validation tests (plugin_test.go) build and run under the module's ordinary `go test ./...`.
|
Package codex anchors the adapters/codex directory as a Go package so its validation tests (plugin_test.go) build and run under the module's ordinary `go test ./...`. |
|
opencode
Package opencode embeds the native OpenCode V2 adapter assets used by Orch.
|
Package opencode embeds the native OpenCode V2 adapter assets used by Orch. |
|
cmd
|
|
|
orch
command
Command orch is the shared-core CLI for the Orch development orchestrator (see ORCH-PRD.md).
|
Command orch is the shared-core CLI for the Orch development orchestrator (see ORCH-PRD.md). |
|
internal
|
|
|
adaptertest
Package adaptertest is the PRD §23 shared parity layer all hosts' adapters' plugin tests consume: fixtures (the committed §10 role profiles) and assertion helpers (skill/manifest drift pins) so cross-host invariants — the run-verb allowlist, the four anti-forgery statement literals, the plan/merge gate option text, the setup interview's terminal forms, hook command portability, matcher/ guard parity, the routed-selection opening line, and the blast-radius acceptance criterion the engine contributes to a risk-domain issue — have exactly one source instead of a copy per adapter that can silently drift apart.
|
Package adaptertest is the PRD §23 shared parity layer all hosts' adapters' plugin tests consume: fixtures (the committed §10 role profiles) and assertion helpers (skill/manifest drift pins) so cross-host invariants — the run-verb allowlist, the four anti-forgery statement literals, the plan/merge gate option text, the setup interview's terminal forms, hook command portability, matcher/ guard parity, the routed-selection opening line, and the blast-radius acceptance criterion the engine contributes to a risk-domain issue — have exactly one source instead of a copy per adapter that can silently drift apart. |
|
agents
Package agents renders the five dispatched role definitions `orch render-agents` writes for every enabled host.
|
Package agents renders the five dispatched role definitions `orch render-agents` writes for every enabled host. |
|
bootstrap
Package bootstrap executes PRD §18 steps 10-15: given the answers an interview (internal/interview, internal/question) collected, it re-derives the terminal question.Complete document itself and composes internal/config, internal/instructions, internal/gitops, and internal/ghops into the one mechanical act that turns an approved interview into an open bootstrap pull request — a mechanical in-binary executor, no model subagent (decision 30).
|
Package bootstrap executes PRD §18 steps 10-15: given the answers an interview (internal/interview, internal/question) collected, it re-derives the terminal question.Complete document itself and composes internal/config, internal/instructions, internal/gitops, and internal/ghops into the one mechanical act that turns an approved interview into an open bootstrap pull request — a mechanical in-binary executor, no model subagent (decision 30). |
|
claudenative
Package claudenative runs one approved evaluation task through Claude Code in non-interactive print mode with streaming JSON input and output.
|
Package claudenative runs one approved evaluation task through Claude Code in non-interactive print mode with streaming JSON input and output. |
|
claudenative/claudefake
Package claudefake is a scripted stand-in for Claude Code used only by tests.
|
Package claudefake is a scripted stand-in for Claude Code used only by tests. |
|
claudetranscript
Package claudetranscript reads a Claude Code session transcript to learn how large the main session's context is.
|
Package claudetranscript reads a Claude Code session transcript to learn how large the main session's context is. |
|
claudeusage
Package claudeusage counts a Claude Code Architect session's own token usage from its transcript.
|
Package claudeusage counts a Claude Code Architect session's own token usage from its transcript. |
|
cli
Package cli implements the orch command surface (PRD §22).
|
Package cli implements the orch command surface (PRD §22). |
|
codexnative
Package codexnative implements Codex preflights and bounded task sessions.
|
Package codexnative implements Codex preflights and bounded task sessions. |
|
codexusage
Package codexusage recovers exact completed Codex child-rollout totals.
|
Package codexusage recovers exact completed Codex child-rollout totals. |
|
config
Package config parses and validates the committed Orch configuration at .orchestrator/config.toml (PRD §17), then layers on the machine-local override file at config.local.toml when present.
|
Package config parses and validates the committed Orch configuration at .orchestrator/config.toml (PRD §17), then layers on the machine-local override file at config.local.toml when present. |
|
evalcorpus
Package evalcorpus prepares maintainer-owned reference packets.
|
Package evalcorpus prepares maintainer-owned reference packets. |
|
evalplan
Package evalplan retains evaluation preparation and bounded controller evidence.
|
Package evalplan retains evaluation preparation and bounded controller evidence. |
|
execx
Package execx defines the injectable external-command runner the orchestration core uses for git, gh, and host CLIs.
|
Package execx defines the injectable external-command runner the orchestration core uses for git, gh, and host CLIs. |
|
execx/execxtest
Package execxtest provides a scripted fake execx.Runner for transcript tests: each expected call is asserted in order and answered with a recorded result, so tests pin the exact argument vectors the core sends to git and gh without running either.
|
Package execxtest provides a scripted fake execx.Runner for transcript tests: each expected call is asserted in order and answered with a recorded result, so tests pin the exact argument vectors the core sends to git and gh without running either. |
|
ghops
Package ghops executes the GitHub mechanics of the Delivery workflow (PRD §12 steps 6, 9, 13-17) through the authenticated gh CLI (PRD §5), via an injected execx.Runner: repository resolution, the PRD §13 label taxonomy, issue lifecycle, and PR open, status, required-CI state, and merge.
|
Package ghops executes the GitHub mechanics of the Delivery workflow (PRD §12 steps 6, 9, 13-17) through the authenticated gh CLI (PRD §5), via an injected execx.Runner: repository resolution, the PRD §13 label taxonomy, issue lifecycle, and PR open, status, required-CI state, and merge. |
|
gitops
Package gitops executes the git mechanics of the Delivery workflow (PRD §12): per-issue feature branches and worktrees, post-merge cleanup, cleanliness and protected-branch preconditions (PRD §5, §15), and base-branch checkouts for reproducing failures (PRD §16).
|
Package gitops executes the git mechanics of the Delivery workflow (PRD §12): per-issue feature branches and worktrees, post-merge cleanup, cleanliness and protected-branch preconditions (PRD §5, §15), and base-branch checkouts for reproducing failures (PRD §16). |
|
grant
Package grant records machine-local autonomy grants: what the user has delegated (scope, covered gates, expiry, limits, the permission mode relayed sessions start in, and the session allowed to approve under it).
|
Package grant records machine-local autonomy grants: what the user has delegated (scope, covered gates, expiry, limits, the permission mode relayed sessions start in, and the session allowed to approve under it). |
|
guard
Package guard is the mechanical write-enforcement core behind the host-adapter PreToolUse hooks (PRD §23: "Assist reliably blocks tracked-file changes" and "Delivery cannot write outside registered worktrees").
|
Package guard is the mechanical write-enforcement core behind the host-adapter PreToolUse hooks (PRD §23: "Assist reliably blocks tracked-file changes" and "Delivery cannot write outside registered worktrees"). |
|
instructions
Package instructions renders, detects, upgrades, and removes the Orch-managed instruction block inside a repository's root AGENTS.md/CLAUDE.md file (PRD §19):
|
Package instructions renders, detects, upgrades, and removes the Orch-managed instruction block inside a repository's root AGENTS.md/CLAUDE.md file (PRD §19): |
|
interview
Package interview implements the pure `orch init` question engine (PRD §18): given the environment Detect found and the answers collected so far, Next derives the next question.Document to show — a batch of independent questions, the pre-approval summary, the terminal hand-off document, or an abort notice.
|
Package interview implements the pure `orch init` question engine (PRD §18): given the environment Detect found and the answers collected so far, Next derives the next question.Document to show — a batch of independent questions, the pre-approval summary, the terminal hand-off document, or an abort notice. |
|
lockfile
Package lockfile implements both Delivery locks from PRD §14: the run-spanning Delivery lock and the process-scoped mutation serializer.
|
Package lockfile implements both Delivery locks from PRD §14: the run-spanning Delivery lock and the process-scoped mutation serializer. |
|
manifest
Package manifest renders and parses the PRD §13 audit record that every Orch issue and PR body carries: the approved objective, acceptance criteria, and required tests, including which of those tests the plan declared the repository's CI does not run; the selected role, the exact executor/reviewer model+execution profile and how the host actually delivered that profile; the routing rationale, escalations and substitutions, the config revision, and named verification commands and results with the commit each was gathered at.
|
Package manifest renders and parses the PRD §13 audit record that every Orch issue and PR body carries: the approved objective, acceptance criteria, and required tests, including which of those tests the plan declared the repository's CI does not run; the selected role, the exact executor/reviewer model+execution profile and how the host actually delivered that profile; the routing rationale, escalations and substitutions, the config revision, and named verification commands and results with the commit each was gathered at. |
|
memhub
Package memhub is the mechanical PRD §20 client for the external memhub CLI.
|
Package memhub is the mechanical PRD §20 client for the external memhub CLI. |
|
metrics
Package metrics is the mechanical PRD §21 recorder: one schema-versioned JSON document per Delivery run at .orchestrator/metrics/<run-id>.json, local-only and never transmitted.
|
Package metrics is the mechanical PRD §21 recorder: one schema-versioned JSON document per Delivery run at .orchestrator/metrics/<run-id>.json, local-only and never transmitted. |
|
nativehost
Package nativehost holds the host-neutral task, evaluation-binding and evidence types plus the workspace-layout and instruction-file checks that every native host bridge and the evaluation controller share.
|
Package nativehost holds the host-neutral task, evaluation-binding and evidence types plus the workspace-layout and instruction-file checks that every native host bridge and the evaluation controller share. |
|
opencode
Package opencode reads the project-scoped OpenCode V2 model catalog.
|
Package opencode reads the project-scoped OpenCode V2 model catalog. |
|
paths
Package paths provides the safe-path and containment primitives (PRD §6, §15) the orchestration core builds on: canonical absolute paths with symlinks resolved, segment-aware containment checks for worktree enforcement, and discovery of the repository root that holds .orchestrator/.
|
Package paths provides the safe-path and containment primitives (PRD §6, §15) the orchestration core builds on: canonical absolute paths with symlinks resolved, segment-aware containment checks for worktree enforcement, and discovery of the repository root that holds .orchestrator/. |
|
question
Package question defines the native-question-tool compatibility contract (PRD §18, §24 — resolving the deferred "native question-tool compatibility handling" decision): a JSON document the Go core emits describing 1-4 mutually independent questions, and the AnswerSet an adapter submits back.
|
Package question defines the native-question-tool compatibility contract (PRD §18, §24 — resolving the deferred "native question-tool compatibility handling" decision): a JSON document the Go core emits describing 1-4 mutually independent questions, and the AnswerSet an adapter submits back. |
|
routing
Package routing is Orch's pure role-routing and escalation policy core (PRD §9 roles, §10 default profiles, §11 routing and escalation).
|
Package routing is Orch's pure role-routing and escalation policy core (PRD §9 roles, §10 default profiles, §11 routing and escalation). |
|
run
This file holds the shared infrastructure for the per-issue Delivery lifecycle verbs (PRD §12 steps 8-22), each in its own file:
|
This file holds the shared infrastructure for the per-issue Delivery lifecycle verbs (PRD §12 steps 8-22), each in its own file: |
|
state
Package state persists the Assist/Delivery operating mode (PRD §7) in .orchestrator/state.json, machine-local and gitignored.
|
Package state persists the Assist/Delivery operating mode (PRD §7) in .orchestrator/state.json, machine-local and gitignored. |