Skip to content
Like what we’re building? Star on GitHub

ADR-178 — claw is the only harness: Tier A retires in v8, claude_code is a frozen bridge until v9 ​

  • Status: Accepted — records the operator's decision D1, taken in the #3153 arbitration of 2026-11-21 and confirmed with its option on #3454 on 2026-11-23. The record is a decision and a freeze; the retirements it decides are not shipped yet (see Decided and executed).
  • Date: 2026-12-02
  • Deciders: jo (the decision), Claude (the record and its guards)
  • Amends: ADR-065 and ADR-085 — their backends are retired by the v8 pruning release; both stay in force until that release ships
  • Relates to: ADR-161 (the credential resolver; no claude_code arm is built) · ADR-087 (cross-backend fallback, the route off a retired harness) · philosophy.md (the doctrine addendum this record re-states)
  • Serves: #3454 · epics #3153 and #3527 (v8 pruning, unit L0-01) · coordinates #3455 (unregister Tier A), #3464 (claude_code migration waves), #3466 (the fold, ADR-179)

Context ​

iterion runs agent and judge nodes through seven registered backends (pkg/backend/backendcaps/registry.json): claw, the in-process harness folded into pkg/claw, and six delegates that drive another vendor's CLI — claude_code, codex, pi, kimi, grok and opencode. Until this record the doctrine said claw and claude_code were interchangeable on the same node, and the five others were supported: they compile and run, but none was exercised against the whole feature set.

Every delegate is a second implementation of what claw already does — credentials, metering, the permission gate, session resume, MCP, events — and each one is a place where a capability silently works on one backend only. The v8 pruning plan (#3527) measured the cost: the per-backend delegate code of Tier A alone is about 7,600 lines of source and 11,100 of tests, plus a vendored fork of the codex SDK; claude_code is about 11,100 lines of source and 24,600 of tests, and 115 catalogue nodes in 35 bots still resolve to it.

claude_code is not like the five others. It carries the operator's Claude subscription (the claude_forfait credential, OAuth kind claude_code), and moving its nodes to claw changes what each run costs: the subscription's included quota against the extra usage that claw spends through the same subscription. That cost had not been measured when the decision was taken.

Decision ​

The operator's decision D1, verbatim from the plan (#3527, §2):

claw est le seul harness. Tier A : codex, pi, kimi, grok et opencode sont retirés dans la release d'élagage, avec refus typé. Tier B : claude_code est gelé comme pont d'abonnement déclaré, puis retiré après les vagues 1-2 de #3464 prouvées en live et la mesure du coût quota inclus contre extra-usage. ADR : #3454.

In English: claw is the only harness. Tier A — codex, pi, kimi, grok and opencode — is retired in the pruning release, with a typed refusal. Tier B — claude_code — is frozen as a declared subscription bridge, then retired once waves 1 and 2 of #3464 are proven live and the included quota has been measured against extra usage.

Options the operator rejected (#3454, 2026-11-23):

  • retire claude_code in the first v8 — a cost shock, and a release held hostage by the whole migration;
  • keep claude_code indefinitely — it contradicts "claw-code-go only".

Tier A — retired in v8 ​

The five names are unregistered in the v8 pruning release (unit L3-04, #3455), and every surface that accepts a backend name refuses them with a typed diagnostic that names the remedy: compilation, launch after expansion, the credential resolver, stored-record validation, the API validators, the CLI --backend and --fallback flags, the MCP launch tool, the default-backend environment, the model catalogue and the studio. A stored record that names one (override cells, pair orders, manifests, model preferences, pledges, launch vars, sources, non-terminal runs) is cleaned by a registered migration step before the refusal ships (L3-03).

BackendRemedyWhat is lost
codexbackend: claw with an OpenAI model. The ChatGPT subscription stays reachable on claw through chatgpt_forfait (OAuth kind codex, CODEX_HOME): the routes move to claw first (lot L2), a hard prerequisite of the unregistration.The codex CLI's own agent loop and tool set, and the vendored codex SDK fork. Image-to-image through images: goes with images: (plan decision L3-a).
pibackend: claw with the same provider and model.pi's agentic prompt, its context-file loading, its extension and SDK (pisdk, piext, pi-extension).
kimibackend: claw with a Moonshot model on a metered key.The Kimi CLI subscription: its quota does not reach claw.
grokbackend: claw with an xAI model on a metered key.The Grok CLI subscription, likewise.
opencodebackend: claw with the provider opencode was routing to.opencode's own agent, and any account only the opencode CLI can serve.

The generic CLI-agent seam (CLIAgentBackend, CLIAgentProtocol) and the permission hook have no consumer once the five are gone, and are deleted with them (plan decision L3-f): a future harness comes back through delegate.Backend and its own record, not through a dormant library.

Tier B — claude_code, a frozen bridge ​

The freeze rule, in force from this record:

  • claude_code gains no capability. Its row in pkg/backend/backendcaps/registry.json keeps its 25 capability cells, and no cell is added above a typed refusal: a cell may move only toward a typed refusal (a gap refused rather than left silent) or down (the upstream CLI dropped something), never up, and a capability claw gains enters the row as typed-refused.
  • It gains no knob. The ITERION_CLAUDE_CODE_* family stays the 20 names the engine reads today — 13 operator-grade (internal/envtrust/operator.go), 7 writable bot vars. The guard pins that family by its prefix; a knob the bridge would read under another name is held by review.
  • A capability claw gains is wired for claude_code only where it already was; otherwise it is refused there with a typed diagnostic. The parity rule survives the freeze in that form: nothing works silently on one backend only.
  • Bug fixes, security fixes, metering correctness and upstream CLI version bumps that keep the row as it is remain in scope: the bridge keeps working until it retires.
  • A gap met on claude_code is answered on claw — the node moves — not by wiring the bridge.

The retirement gates. claude_code is retired, with a typed refusal, only when all of these hold:

  1. Wave 1 of #3464 — the sellable bots (Vigie, Revi, Obsy) — runs on claw and is proven live.
  2. Wave 2 — the promising bots (Seki, Appy, Doki, Vetty) — likewise.
  3. The included subscription quota has been measured against the extra usage of claw + claude_forfait (plan unit L9-02), and the operator gives the go on that measurement.

The vehicle is v9 (plan decision T2): v8 carries lots L1–L8, Tier A and the storage epoch; v9 carries the claude_code retirement (lot L9) and lot L10. On the way, the non-breaking units of L9 ship in v8.x. A node that names no backend resolves to claw only with the consent of #3461, in the v9 train (plan decision T4); until then the detection order still prefers claude_code where its CLI is present.

What remains ​

  • The seam. delegate.Backend stays the one interface a harness implements; claw implements it.
  • backend: stays optional in the DSL. backend: claw is the explicit spelling; an unset backend keeps today's resolution until T4 flips it.
  • fallbacks: routes and the run-level fallback stay: they are how a node moves off a retired harness, and each production switch measures the move.
  • Events keep naming the backend and the served model.
  • The codex credential vocabulary stays: OAuth kind codex, CODEX_HOME, chatgpt_forfait — claw reads them for the ChatGPT subscription. Likewise OAuth kind claude_code and claude_forfait keep their stored values after v9 (plan decision L2-D1).

Retired codes are never reused ​

A diagnostic code retired with a backend (the delegate-only codes the plan lists for unit L3-09) stays reserved: a new diagnostic takes a new number, never a retired one, so an old log, report or remedy page can never be read against a different meaning. The same holds for the retired backend names: they keep a tombstone that refuses them, typed and with a remedy, and are never re-bound to another implementation. The registry of refusals (L0-11, #3553) lists both.

Decided and executed ​

What this record decides is a target. What is executed is what main ships. As of the record's date (main 667daba07):

ItemDecidedExecuted on main
Doctrine: claw is the only harnessThis record.In force: AGENTS.md and docs/philosophy.md state it (this change); every other teaching page says it since unit L0-03 (#4066), and a docs tripwire refuses the retired doctrine's phrases (see Guards).
Freeze of claude_codeThis record.In force: guards pin the row's 25 cells (a new one only as typed-refused) and the 20-name ITERION_CLAUDE_CODE_* family (see Guards).
Tier A unregistered, typed refusal everywherev8 pruning release, L3-04 (#3455).Not executed. The five rows are in registry.json; backend: codex (or pi, kimi, grok, opencode) compiles and runs.
Stored records naming Tier A cleanedv8, L3-03.Not executed.
Tier A code, SDK fork, CLI-agent seam, CLIs in the imagesv8, L3-06 to L3-10.Not executed.
ADR-065 and ADR-085 supersededWhen their code is deleted (L3-06, L3-08).Not executed: both are Accepted and amended by this record.
claude_code retiredv9, after the three gates above (L9-29).Not executed. claude_code is first in the default preference and the detection order.
An unset backend resolves to clawv9 train, with #3461's consent (T4).Not executed.
Retired codes never reusedThis record.No code is retired yet.

No page may announce a retirement as shipped before its row says so, nor promise claw parity with a backend that is leaving.

Guards ​

  • internal/docsguard/claw_only_prose_test.go — AGENTS.md and docs/philosophy.md no longer call claw and claude_code interchangeable, and both still state the decision and link this record.
  • internal/docsguard/retired_harness_prose_test.go — a best-effort tripwire: an exact list of the retired doctrine's phrases is refused on every teaching page outside a reasoned allowlist, and the session: persist lists of SKILL.md and docs/dsl.md match the registry both ways.
  • pkg/backend/backendcaps/claude_code_freeze_test.go — the 25 cells of the claude_code row (name, axis, verdict, scoped verdicts, subject) are a literal table: any move is an edit of that table, read in review against the freeze rule. A new cell passes only when every verdict it carries is typed-refused.
  • internal/envtrust/claude_code_freeze_test.go — the 20 ITERION_CLAUDE_CODE_* names the engine's source spells outside the operator inventory, and the 13 that inventory refuses, are literal sets: a new knob, or a new classification, is an edit of those sets in review.
  • pkg/repomap/agenttree_test.go — the AGENTS.md byte budget, which bounds the doctrine line this record changed.

Consequences ​

  • The work on claw is the work: a claw gap is a claw-code-go backlog item, not a reason to stay on a delegate.
  • Tier A users lose their CLI subscriptions (Kimi, Grok) and any account only a retired CLI serves; the remedies above are metered keys or the provider claw already reaches. The v8 migration page (L0-11) lists each loss.
  • claude_code users keep their subscription route through v8; the cost of leaving it is measured before it is removed, not after.
  • Every retired name and code stays readable: a refusal that names its remedy, never a silent fallback to another harness.