Status: Living record — the external coding clients change weekly; this is the dated, owned source of truth for what each does and what DPF depends on / should adopt.
Owner: Enterprise Architect persona / dpf-platform:dpf-architecture-review.
Refresh cadence: Monthly (see “Refresh ritual”). Last full refresh: 2026-06-20. Last verified: 2026-08-12 (Codex MCP host-registry acceptance — see update below).
Standard it serves: docs/architecture/context-engineering-standards.md.
Why this exists
DPF runs across, and is driven by, external coding agents (Claude Code, Codex, Grok Build, OpenCode) plus our own native local LLM. Their context/memory/tool mechanisms change weekly — new token-savers ship (deferred tools, code-execution), conventions converge (AGENTS.md), and behaviours regress (the prompt-cache TTL silently reverted 1h → 5m). A point-in-time analysis decays fast. This tracker keeps the design criteria applicable to subsequent changes by recording, per client, the capabilities we depend on or could adopt, with a last-verified date and a DPF adoption status, so the monthly scan diffs against something concrete and files follow-up work.
Adoption status legend: ✅ adopted · ◐ partial/planned · ⬜ not adopted · ➖ n/a · ⚠️ regression to track.
Client capability profile (generated, BI-64795FD0)
Since 2026-10-13 the per-client capabilities that DPF rules depend on live in one machine-readable profile, packages/dpf-skill-pack/client-capabilities.json. The MCP credential policy, the toolchain floor, the release manifest’s clients map and the matrix below all read it. A value changes only through a reviewed PR that cites a source passage and a live probe.
- A connection that reports a client version newer than the profile’s verified version marks that client “capabilities unverified for
" in `get_fleet_readiness` and files one backlog item, deduplicated on `client-capability: @ `. - A weekly scheduled task (
client-capability-reverify-weekly) reads only each row’ssources[]and the CLI versions the updater reports. It files at most one proposal item per client and never edits the profile. A source that fails marks the rowverificationStale; two failed runs in a row raise one platform notification. - Each pack-loading row lists in
writes[]every file its adapter writes, who owns it, and whether the client’s own CLI writes it (BI-1DCF9F23). Where a CLI covers a setting, the CLI is the only writer:agy mcp addowns Antigravity’s MCP config, and theclaude,codexandgrokplugin commands own their caches and records. A direct write is allowed only where no CLI covers the setting; thereasonsays why, for example thatcodex mcp addcannot set headers.scripts/single_writer_test.pyruns the updater against a fixture home with every CLI faked and fails on any undeclared write, or a write to a CLI-covered file. - The updater reports success only from each client’s own read-back: Grok’s plugin store, Antigravity’s skills directory and MCP config, Codex’s plugin source, the Claude caches and the shared copy’s connector. A client whose CLI is missing reports
absent, and a dry run reportspreview.
The sections after the matrix are the dated prose history. They stay as the record of how each finding was reached.
Rendered from packages/dpf-skill-pack/client-capabilities.json. Edit the profile, never this block. “unproven” means no live probe is recorded, so every rule treats the capability as absent. Server-side controls stay the guarantee; a missing hook is a missing accelerator, shown here so it is not silent. The harness host is a client started by an orchestrating harness such as T3 Code; a session started that way is read under harness, not under cli, desktop or ide. A verified host proves only the events listed as firing; its other events stay unproven.
| Client | Verified version | OAuth https | OAuth loopback http | Static headers | Declaration carrier | Plugin scopes | Reload required | Skills load | Hook plane |
|---|---|---|---|---|---|---|---|---|---|
Claude Code (claude-code) |
2.1.295 | yes (encoded, not live-proven) | no (verified 2026-09-17) | yes (encoded, not live-proven) | helper (encoded, not live-proven) | user, project, local (encoded, not live-proven) | yes (encoded, not live-proven) | yes (verified 2026-07-26) | cli: hooks unproven; desktop: verified; ide: hooks unproven; harness: verified |
Codex CLI (codex) |
0.155.0-alpha.16 | yes (encoded, not live-proven) | yes (verified 2026-09-20) | unproven | header (encoded, not live-proven) | user (encoded, not live-proven) | yes (encoded, not live-proven) | yes (verified 2026-07-26) | cli: verified; desktop: hooks unproven; ide: hooks unproven; harness: hooks unproven |
Grok Build (grok) |
0.2.87 | unproven | unproven | unproven | query (encoded, not live-proven) | user (encoded, not live-proven) | yes (encoded, not live-proven) | yes (verified 2026-07-26) | cli: verified; desktop: hooks unproven; ide: hooks unproven; harness: hooks unproven |
Antigravity (antigravity) |
none | yes (encoded, not live-proven) | unproven | yes (encoded, not live-proven) | header (encoded, not live-proven) | unproven | yes (encoded, not live-proven) | unproven | cli: hooks unproven; desktop: hooks unproven; ide: hooks unproven; harness: hooks unproven |
VS Code (vscode) |
none | yes (encoded, not live-proven) | unproven | yes (encoded, not live-proven) | unproven | unproven | unproven | unproven | cli: hooks unproven; desktop: hooks unproven; ide: hooks unproven; harness: hooks unproven |
Hook plane by host.
| Client | Host | Events | Deny envelope | Permission modes | Verified | Evidence |
|---|---|---|---|---|---|---|
claude-code |
cli | hooks unproven | hookSpecificOutput | none | no | No live probe of the terminal host is recorded. The desktop proof (BI-E5C45F61) ran the same Claude Code version in another host. |
claude-code |
desktop | fires: PreToolUse shell, PreToolUse ask; unproven: SessionStart, PreToolUse write, UserPromptSubmit, Stop, SessionEnd | hookSpecificOutput | bypassPermissions | 2026-10-13, v2.1.295 | docs/superpowers/specs/2026-07-03-harness-enforced-decision-routing-and-lease-punt-gates-design.md §15.1 (BI-E5C45F61, #6287): desktop app 2.31226.1 ran every PreToolUse hook but discarded a top-level decision “deny”; with the fix, compose-guard and decision-routing-guard probes were denied live. The 2026-10-07 reading that the AskUserQuestion matcher was skipped (BI-271B8EEC) was disproven there. |
claude-code |
ide | hooks unproven | hookSpecificOutput | none | no | No probe recorded for the IDE extension host. |
claude-code |
harness | fires: SessionStart, PreToolUse shell; unproven: PreToolUse ask, PreToolUse write, UserPromptSubmit, Stop, SessionEnd | hookSpecificOutput | bypassPermissions | 2026-11-24, v2.1.330 | BI-95665E9B live observation 2026-11-24: T3 Code 0.1.11 started Claude Code 2.1.330 through the Agent SDK (CLAUDE_CODE_ENTRYPOINT=t3-code, –permission-mode=bypassPermissions) in the root clone. The SessionStart hooks returned their context to the session, and npx tsc --version was denied by raw-tool-guard (PreToolUse on Bash). Which of the two delivery planes fired was not isolated. Write/Edit, the ask tool, UserPromptSubmit, Stop and SessionEnd were not probed. |
codex |
cli | fires: PreToolUse shell; does not fire: PreToolUse ask; unproven: SessionStart, PreToolUse write, UserPromptSubmit, Stop, SessionEnd | hookSpecificOutput | codex exec with hook trust granted | 2026-07-07, v0.142.5 | docs/superpowers/specs/2026-07-03-harness-enforced-decision-routing-and-lease-punt-gates-design.md §11 (BI-883FC2FC): a lease-punt probe ran without hook trust and was denied with it. The ask tool is not named AskUserQuestion, so that matcher never fires (BI-B22DE548). Single plugin plane since #5636 (BI-2B634E68, codex-cli 0.155.0-alpha.16). |
codex |
desktop | hooks unproven | hookSpecificOutput | none | no | No probe recorded for the Codex desktop host. |
codex |
ide | hooks unproven | hookSpecificOutput | none | no | No probe recorded for the Codex IDE extension host. |
codex |
harness | hooks unproven | hookSpecificOutput | none | no | T3 Code driving Codex. BI-80B5E939 (2026-11-19): this host names its ask tool request_user_input_async (title + plain-string options), now covered by the AskUserQuestion|request_user_input|request_user_input_async matcher and the shared question reader. Delivery stays unproven: a live T3 probe (2026-11-15) ran a harmless docker compose command with no compose-guard denial, and Codex hooks/list reported every DPF plugin hook trustStatus=modified (skipped until the operator reviews trust). Direct unit calls and an installed hooks file are not live proof; the closed prior items BI-383668B9, BI-271B8EEC and BI-B22DE548 do not cover this host. Moved here from the desktop row by BI-95665E9B. |
grok |
cli | fires: SessionStart, PreToolUse shell, PreToolUse write, Stop; unproven: PreToolUse ask, UserPromptSubmit, SessionEnd | dual | headless grok -p –always-approve | 2026-10-14, v1.0.52 | BI-742D707B live probe 2026-10-14, Grok 1.0.52 headless -p –always-approve: npx tsc --version was denied by raw-tool-guard (PreToolUse on run_terminal_command); a write of a root-clone file with the session rooted there was denied by root-clone-guard (Grok names its write tools write and search_replace, so the Write|Edit|MultiEdit matcher alone never fired); worktree-session-heartbeat wrote its marker at SessionStart and refreshed it at Stop. The marker was still present after exit, so SessionEnd stays unproven in headless mode. ask_user_question was not probed. Earlier: BI-883FC2FC (0.2.87) prisma migrate deny; Grok ignores plugin-bundled hooks. |
grok |
desktop | hooks unproven | dual | none | no | No probe recorded for the Grok desktop app. |
grok |
ide | hooks unproven | unknown | none | no | No Grok IDE host is known to DPF. |
grok |
harness | hooks unproven | dual | none | no | No probe recorded for this client started by an orchestrating harness such as T3 Code. |
antigravity |
cli | hooks unproven | unknown | none | no | docs/architecture/agent-client-capability-parity.md governance table G3: hooks unproven, an honest gap |
antigravity |
desktop | hooks unproven | unknown | none | no | No probe recorded. |
antigravity |
ide | hooks unproven | unknown | none | no | No probe recorded. |
antigravity |
harness | hooks unproven | unknown | none | no | No probe recorded for this client started by an orchestrating harness such as T3 Code. |
vscode |
cli | hooks unproven | unknown | none | no | VS Code has no DPF hook plane. |
vscode |
desktop | hooks unproven | unknown | none | no | VS Code has no DPF hook plane. |
vscode |
ide | hooks unproven | unknown | none | no | VS Code has no DPF hook plane. |
vscode |
harness | hooks unproven | unknown | none | no | VS Code has no DPF hook plane. |
Capability matrix (verified 2026-06-20)
| Capability | Claude Code | Codex CLI | Gemini CLI | Grok Build | OpenCode | DPF dependency / adoption |
|---|---|---|---|---|---|---|
| Instruction file | CLAUDE.md + memory | AGENTS.md (originated) | GEMINI.md | reads CLAUDE.md | AGENTS.md (+reads CLAUDE.md) | AGENTS.md canonical; plugin ships skills+hooks cross-surface. ✅ |
| Compaction style | summarize + tool-result clearing | encrypted latent-state | /compress (lossy) |
window scale-out | auto//smol |
window-aware compactAgenticMessages. ✅ |
| Out-of-window instruction retention | system reminders | — | /memory add pin |
— | Focus-Chain-like | withPlanReminder re-injects plan every iteration. ✅ (ahead) |
| Prompt caching / cache boundary | static/dynamic boundary; ⚠️ TTL 1h→5m (2026-03) | prefix cache | prefix cache | n/a (beta) | provider-dependent | SYSTEM_PROMPT_DYNAMIC_BOUNDARY mirrored; local prefix-KV ◐ (R6 verify). ⚠️ track TTL. |
| Deferred / search-based tool loading | Tool Search Tool (defer_loading, ~85% list cut) |
host-deferred catalog observed in Desktop; Streamable HTTP omits User-Agent and mid-turn list_changed does not refresh the callable registry |
all enabled | discovers MCP | per-tool wildcard perms | native and external paths share intent matching; Claude Code/Codex bootstrap with explicit ?tier=full, while generic/Grok/unknown clients keep core and may expand with load_tools. ✅ contract; fresh-host acceptance required per release. |
| Code execution / programmatic tool calling | code-exec w/ MCP (37–98% cut) | sandboxed shell | — | — | — | run_tool_script shipped dark ◐ (R4; governed read-only, flag+grant gated, live-verify pending). |
| Tool-result cap | ~25K-token default | — | — | — | — | tool-result-budget.ts (native + MCP route). ✅ |
| Subagents / context isolation | Task subagents | subagents | subagents (tool allowlist) | up to 8 parallel | primary+sub | Build Studio specialists; A2A. ✅ |
| Skills (progressive disclosure) | SKILL.md (desc always, body on demand) | skills | — | Claude-skill compatible | — | Block-5 skill summaries not bodies. ✅ |
| Deterministic guards (hooks) | PreToolUse… | adopted hook protocol | — | reads Claude hooks | — | kernel runtime gate + plugin prechecks. ✅ (ahead) |
| MCP support | yes | yes | yes | yes | yes (wildcard perms) | /api/mcp/v1 JSON-RPC; 242-tool registry. ✅ |
| Context window (base) | ~200K | ~200K+ | 1M | 2M (CLI) | provider-dependent | local served ~24,576 (binding). ➖ |
Sources for the row data are catalogued in the design spec appendix (2026-06-20-context-engineering-tool-efficiency-design.md).
2026-06-26 refresh (delivery-surface sweep)
Verified 2026-06-26 against the delivery-surface optimization study (docs/superpowers/specs/2026-06-26-delivery-surface-optimization-study-design.md). Deltas since the 2026-06-20 full refresh:
- Prompt-cache emission (Anthropic): ⬜→◐ shipped — DPF now emits
cache_control:{type:"ephemeral"}on the stable system prefix for the Anthropic/messagespath (BI-79A5C00F, PR #2447 merged;apps/web/lib/routing/anthropic-cache.ts). 5-minute TTL; 1-hour TTL still a follow-up (needs the extended-cache beta header). OpenAI/xAI caching remains automatic; cloud hit-rate observability still ⬜. - Prompt-cache TTL: ⚠️ Anthropic default remains 5 minutes (reverted from 1h ~2026-03) — re-confirm each refresh; it changes the break-even for long sessions.
- Deterministic guards (hooks): Codex hooks are now officially documented (plugin-bundled + managed-trust); DPF has structural hook wiring for Claude/Codex/Grok (
packages/dpf-skill-pack/hooks/plugin-hooks-wired.test.mjs). Functional proof on Codex/Grok still pending (BI-14E9F7CE), including the GrokGROK_PLUGIN_ROOTvsCLAUDE_PLUGIN_ROOTportability seam. - Lean tool surface: external CLI core-tier discovery (~29 tools) is the default for clients without proven host-side lazy attachment. Claude Code and Codex keep the full authorized server catalogue for their native lazy registries; Grok/generic/unknown callers keep core unless they opt into
?tier=full. Core includes WWMD (principle_decide,wiki_query) for clients without host ToolSearch. - Code-graph for external sessions: ⬜→◐ a code-graph-first standing rule added to AGENTS.md §8 for direct Claude/Codex/Grok sessions (BI-0FD9E685).
- Unified WIP across surfaces: workroom-plane foundation shipped (BI-937128F6;
apps/web/lib/build/unified-wip.ts) + §17 doctrine — the unit of WIP is the Workroom, not the Build Studio build. The enforced admission cap is now wired to that plane: the two build-entry gates (createFeatureBuild,promote_to_build_studio) derive their decision from the unified, pool-aware pressure (apps/web/lib/build/unified-wip-query.ts→decideUnifiedWip), so a promote is blocked only when the finite pool it contends on (gatingPool) is saturated across ALL surfaces — not a BS-only build count. Per-pool capacities are named constants inwip-cap.ts(WIP_POOL_CAPACITY); thebs-sandboxpool is the physical sandbox pool (sandboxPoolSize(),DPF_SANDBOX_POOL_SIZE). Since BI-3430B3A4 the pools are reported, not used to admit: admission is by points in flight per portfolio (apps/web/lib/build/investment-admission.ts), attributed by the sameresolveBudgetPortfoliothe budget proposal uses, so platform/common work with no portfolio draws on Foundational (BI-291F7451); since BI-77313ADD only actively running work counts as in flight (in-progress, an active build, or a room whose drive is dispatching or whose lease is held), so a parked room or a delivered item awaiting acceptance does not hold the allowance, and the count capBUILD_WIP_CAPis retired. bs-sandbox pressure is still read from the authoritativeFeatureBuildcount — build-studio workroom status is not synced on build terminality, so counting those workrooms would mis-gate. That count, and every other “active build” query, uses the one predicateACTIVE_BUILD_WHEREinwip-cap.ts(not abandoned, not parked on an owner answer); a build escalated to its owner is parked withwaitingOnOwnerSincerather than abandoned, so it frees WIP and keeps its work (BI-B6894001). - Cross-surface review: golden-triangle activation policy for independent deliberation on external artifacts (BI-A245FE00;
apps/web/lib/deliberation/external-review-activation.ts). - MCP token var: active standard is
DPF_MCP_BEARER_TOKEN(staleDPF_MCP_TOKENsurvives only in the gitignored local.mcp.json). - Grok Build (xAI): GA CLI launched 2026-05-25; reads
.claude/directly (CLAUDE.md, marketplaces, skills, MCP) but exposesGROK_PLUGIN_ROOT(the hook seam above).
2026-07-24 refresh (BI-14E9F7CE closeout — Grok hook portability)
Reconciles the “Functional proof on Codex/Grok still pending” line above (2026-06-26 refresh) with work that landed in between and was not cross-referenced back to this tracker:
- The
GROK_PLUGIN_ROOTvsCLAUDE_PLUGIN_ROOTseam named above turned out to be moot for actual enforcement. BI-883FC2FC live-probed real Grok 0.2.87 / Codex 0.142.x sessions and found the deeper root cause: Grok’s hook-execution plane ignores the plugin-bundledhooks/hooks.jsonentirely (a plugin showshas_hooks=trueingrok inspectyet contributestotal_hooks=0— confirmed live, not inferred). So whether${CLAUDE_PLUGIN_ROOT}resolves inside that file never mattered for Grok’s guard enforcement; the token is inert there either way. The actual delivery path Grok honors is a global~/.grok/hooks/dpf-guards.json, written bypackages/dpf-skill-pack/scripts/update_agent_toolchain.py::install_grok_hookswith fully pre-resolved absolute paths baked in by the Python installer at install time — no runtime env-var substitution involved at all. Codex is not analogous: Codex does load the plugin-bundledhooks/hooks.jsonfrom its plugin cache, soinstall_codex_hookswrites the guards into~/.codex/hooks.jsononly as a fallback when the enabled plugin’s cache cannot be proven to carry every guard. When it can, the installer prunes the DPF copy so each guard runs and is trusted once (BI-2B634E68, 2026-09-24). Either plane is gated by Codex’s interactive hook-trust step (BI-66EBEA06). - Static trace could not confirm the shared
hooks/hooks.json’s${CLAUDE_PLUGIN_ROOT}substitution mechanics are safe to alter. Official Claude Code docs (fetched 2026-07-24) confirm${CLAUDE_PLUGIN_ROOT}is substituted as literal host-side text before a shell ever sees it (shell-agnostic today); wrapping it in POSIX fallback syntax (${CLAUDE_PLUGIN_ROOT:-$GROK_PLUGIN_ROOT}) would force that resolution to depend on the downstream shell instead — an unverifiable regression risk on Windows Claude Code installs (DPF’s ownrun-hook.mjscomment asserts Windows hooks run under PowerShell, not Git Bash, which cannot be confirmed live without a session restart). No change was made tohooks/hooks.jsonfor this reason, matching the same judgment call PR #2455 made for this BI’s first slice. - What DID land (BI-14E9F7CE, this refresh): a drift guard (
packages/dpf-skill-pack/scripts/update_agent_toolchain_test.py::GrokCodexGuardSyncTest) assertingGROK_HOOK_GUARDS/CODEX_BASH_GUARDS/CODEX_ASK_GUARDS/CODEX_WRITE_GUARDScan never silently diverge fromhooks/hooks.json’s actual blocking guards (classified byemitDeny(usage) — closing the realistic version of “guard hooks may silently not fire”: a future blocking guard added tohooks.jsonwithout a matching addition to those hand-maintained tuples. - The drift guard proved itself (BI-0B292D84, 2026-08-26). Adding
workroom-claim-guard.mjstohooks/hooks.jsonalone left it wired for Claude and invisible to Codex and Grok;GrokCodexGuardSyncTestfailed three assertions until the guard was added toGROK_HOOK_GUARDS,GROK_PRETOOLUSE_GROUPS,CODEX_BASH_GUARDSandCODEX_WRITE_GUARDS, plus aHOOK_PURPOSESentry. This is the first new blocking guard since the drift guard landed, and it caught exactly the failure it was written for. Two of its own assertions did have to change: they compared the wired-hook count againstlen(GROK_HOOK_GUARDS), which held only while every guard sat in exactly one matcher group.workroom-claim-guard.mjsis wired on both the shell and the write matcher (ashooks.jsonwires it for Claude), so those assertions now derive the expected count fromGROK_PRETOOLUSE_GROUPS. The matchers are disjoint, so a guard in two groups still fires at most once per call. - One deny envelope for every surface stopped working on Claude (BI-E5C45F61, 2026-10-13). Claude Code 2.1.295 (desktop app 2.31226.1) validates PreToolUse output and accepts a top-level
decisiononly asapprove/block. The shared deny carried Grok’sdecision: "deny"beside Claude’shookSpecificOutput, so Claude discarded the whole output and ran the tool, in every permission mode.hooks/lib/hook-io.mjsnow answers each surface in its own envelope (Grok keeps the dual one), and the plugin’s SessionStartpretooluse-guard-selftest.mjsreports “PreToolUse guards inactive in this session” when a probe is not denied in the Claude contract. Hook coverage is a property of the host version, so re-probe after a client update (probes indocs/install/platform-support-watchlist.mdD24). - What remains genuinely unverified: whether BI-883FC2FC’s live-probe findings (Grok 0.2.87, Codex 0.142.x) still hold on current client versions — these clients change weekly per this tracker’s own framing, and no live Grok/Codex session was exercised in this pass (static trace + prior evidence only). Re-verify at the next monthly refresh.
- MCP token var: re-confirmed clean — no active setup snippet references bare
DPF_MCP_TOKEN; the one surviving reference (e2e/fixtures/evidence.ts) is a deliberateDPF_MCP_BEARER_TOKEN ?? DPF_MCP_TOKENback-compat fallback landed by PR #2455, not drift.
Refresh ritual — operationalization (BI-4B8EABF8 follow-up). The monthly ritual below is documented; wiring it as an actual scheduledAgentTask on the existing agent-task-scheduler.ts / agent-task-dispatch.ts substrate (read official docs → diff this tracker → file a BI per material drift → record sources + verification age) is the remaining code slice. No new cron — reuse the cognitive-load-migration scan substrate.
2026-10-14 refresh (BI-742D707B — which hooks each client runs)
The founder saw 33 DPF hooks in Codex and a different number elsewhere. All three plugin caches carried the same hooks/hooks.json (34 entries); the difference was in delivery:
- Claude Code runs the plugin
hooks.json: 34 of 34. - Codex loads the same file from its plugin cache and trusts 33. It does not run
WorktreeCreate. - Grok ignores plugin-bundled hooks and ran a hand-kept list of 17. Two blocking guards never reached it:
raw-tool-guard.mjswas listed for Grok but put in no matcher group, and the write-pathroot-clone-guard.mjswas missing. The drift test passed because it checked list membership, not the payload Grok receives. - Antigravity has no proven hook plane, so it runs none.
Since this refresh, hooks/client-hook-planes.json records, for each client, what delivers hooks and every entry left out, with its reason. Grok’s ~/.grok/hooks/dpf-guards.json is generated from hooks.json minus those exclusions (25 wired, 3 run inside grok-session-start.mjs, 6 excluded). A test fails when an entry is neither wired nor excluded with a reason for any client. The per-client table is generated into hooks/README.md; read the current counts there, not from this dated note.
A live probe on Grok 1.0.52 found a second, older gap. Grok names its tools write, search_replace and ask_user_question, so the Write|Edit|MultiEdit and AskUserQuestion matchers never fired there, and the guards’ own tool-name checks were Claude-only. Every write-path guard and the decision-routing guard had been failing open on Grok. The Grok matcher aliases and the shared isFileWriteTool / isDecisionTool sets in hooks/lib/hook-io.mjs now include those names. With that fix, raw-tool-guard and the write-path root-clone-guard denied live, and the session heartbeat was written at SessionStart and refreshed at Stop. The probe is recorded in client-capabilities.json (Grok cli hook plane).
Every client kind is named (2026-10-27). client-hook-planes.json now covers each client kind the host run discovers (toolchain_convergence.DISCOVERY: Claude Code, Codex, Grok, Antigravity, VS Code, Cursor, Gemini CLI, OpenCode) plus the Build Studio sandbox, and a test fails when that list and DISCOVERY differ. The sandbox seed (apps/web/lib/build/sandbox/grok-governance-seed.ts) no longer keeps its own six-guard list (BI-413882E5). The sandbox has Node and no Python, so it runs the pack’s hooks/lib/grok-hook-plane.mjs against the workspace pack; a test pins that output equal to the host generator’s.
Hook output is proven per client (BI-5DD46FDA, pack 0.2.21). Plane membership says a hook runs; it does not say the client honours what the hook prints. Between 2026-10-07 and 10-14, Claude rejected the workroom-claim guard’s top-level "decision":"deny" 477 times and ran the tool each time.
hooks/lib/hook-output-contract.mjsholds each client’s output rules per event: Claude’s and Codex’s from their published hook references, Grok’s from the probed envelope.hooks/hook-output-contract.test.mjsruns everyhooks.jsonentry each client runs, on fixture calls shaped as that client sends them, and fails naming the hook and the client.- The walk found three defects, all now fixed:
worktree-session-hygieneemitted a SessionEndhookSpecificOutput, which Claude rejects.uncommitted-work-guardemitted a StophookSpecificOutputon Codex.- Grok’s
write/search_replaceedits were judged by the session folder rather than the file (fixed inhooks/lib/hook-io.mjswith BI-F17F2188).
Provider exit does not reap a checkout (BI-F52EF21B). The hygiene hook logs the refusal on SessionEnd and emits no stdout. The T3 host settlement path and the platform janitor own cleanup. The signed updater delivers this change through the same hook planes.
A resolvable raw-tool command is rewritten, not refused (BI-F17F2188, pack 0.2.20). When raw-tool-guard can resolve the package from the folder a command runs in, it returns the rewritten command (pnpm exec, pnpm --filter <pkg> typecheck, or a package-scoped vitest run) in hookSpecificOutput.updatedInput, and names the rewrite in additionalContext. The decision is allow only under bypassPermissions and ask otherwise, so no permission prompt is skipped. A command it cannot resolve is still refused, and the refusal names the exact command for that package. hook-io now tells Codex from Claude by turn_id. REWRITE_SURFACES in hooks/lib/hook-io.mjs names the clients that may receive a rewritten command. Only Claude is listed today: Codex’s rewrite has no live probe yet, and Grok has no rewrite channel. hook-io also judges Grok’s write / search_replace edits by the file rather than the session folder.
How existing installs get it. The release pack carries every file in the pack tree, and its content digest changes with any hook or plane change (BI-4F9E3221). The toolchain agent (BI-65C17737) runs the signed updater when the digest changes. A client session that finds a stale copy starts it at once, detached and windowless. DPF installs no OS scheduler for it: a platform upgrade and the platform’s daily safety net reach the host through the native edge node (BI-590DD63E, BI-6ABE989B), and the updater removes the scheduled task, launchd agent or systemd timer that earlier packs registered. That run refreshes the Claude and Codex plugin caches and rewrites ~/.grok/hooks/dpf-guards.json; a test covers an old hand-kept Grok file converging in one run. Each client loads the new hooks on its next restart. A Build Studio dispatch regenerates the sandbox file from the branch under build every time.
Grok’s own config was breaking that upgrade (BI-E7806C0F). Grok rewrites ~/.grok/config.toml with fully quoted keys (["mcp_servers"."dpf"]). The updater’s Grok credential step matched only [mcp_servers.dpf], appended a second table, and Grok then refused to start (“duplicate key”). It now matches any spelling of the key and folds an existing duplicate back into one table on the next run.
Still open: Grok SessionEnd is not shown to fire in headless mode, and ask_user_question was not probed live. Antigravity, VS Code, Cursor, Gemini CLI and OpenCode have no DPF hook adapter; the server-side controls stay their guarantee.
Governance outcomes (G1–G9) — multi-client parity
Spec: docs/superpowers/specs/2026-07-26-multi-client-governance-parity-design.md
Plan: docs/superpowers/plans/2026-07-26-multi-client-governance-parity.md
Last verified (live install sample): 2026-07-26. Outcomes are required; mechanisms may differ per client (thin adapters).
| Outcome | Meaning |
|---|---|
| G1 Skills | dpf-platform skills installed and loadable |
| G2 Competitive | Known competitive process plugins disabled (disable-not-delete), not merely warned |
| G3 Plane-1 hooks | lease / lease-punt / root-clone / compose / decision-routing / plan-backlog fire and can deny |
| G4 Session plane | SessionStart process-spine + competitive; SessionEnd/Stop uncommitted + lease/capsule release where events exist |
| G5 MCP | DPF_MCP_BEARER_TOKEN wired; tools reachable when portal not quiescing |
| G6 Workroom | Work claims a workroom / FeatureBuild; orphans detectable |
| G7 Worktree lifecycle | Canonical sibling base; Tier-A reaping; no nested-root sprawl as steady state |
| G8 Headless-safe | Always-approve / non-interactive still honors deny; no operator TUI required |
| G9 Readiness | record_surface_readiness / bootstrap readiness observable |
| Client | G1 | G2 | G3 | G4 | G5 | G6 | G7 | G8 | G9 | Notes (2026-07-26, Wave 3 update) |
|---|---|---|---|---|---|---|---|---|---|---|
| Claude Code (host) | ✅ | ✅ disable | ✅ dual plane | ✅ plugin | ✅ | ◐ | ◐ create + session hygiene | ✅ | ◐ | BI-A4BEFE99: claude plugin disable adapter |
| Codex CLI (host) | ✅ | ✅ disable | ✅ if hook-trust | ✅ | ✅ | ◐ | ◐ | ✅ | ◐ | Hook-trust fail-open until trusted |
| Grok Build (host) | ✅ | ✅ disable | ✅ global only | ✅ SessionStart/Stop | ✅ | ◐ | ◐ session hygiene + janitor | ✅ | ◐ | BI-BCA23DBB: global hooks + competitive |
| Grok (Build Studio sandbox) | ✅ seed | ◐ | ◐ seeded guards | ➖ | ◐ | ✅ BS | ➖ | ◐ always-approve + guards | ◐ | BI-C5F9A232: pack seeded at dispatch |
| Antigravity (agy) | ◐ pack | ⬜ unsupported | ⬜ unproven | ⬜ | ◐ MCP wire | ◐ | ⬜ | ❓ | ⬜ | No plugin-disable CLI; hooks unproven — honest gap |
| Build Studio (agentic in-portal) | ✅ seed skills | ➖ | runtime gates | ➖ | ✅ | ✅ | sandbox GC | ✅ phase HITL | ◐ | Not CLI-hook based; BS worktree GC landed |
| OpenCode (suggested / BS dispatch) | ⬜ | ⬜ | ⬜ | ⬜ | ◐ | ✅ BS | ➖ | ❓ | ⬜ | Checklist only until product pull — see skill-pack README |
| Gemini CLI (suggested) | ⬜ | ⬜ | ⬜ | ⬜ | ⬜ | ⬜ | ⬜ | ❓ | ⬜ | Checklist only until product pull |
| Cursor (compat / optional) | ⬜ | ⬜ | ◐ via Grok compat paths | ⬜ | ⬜ | ⬜ | ⬜ | ❓ | ⬜ | Hook event aliases; not first-class bootstrap |
Backlog (filed 2026-07-26): BI-F4A1A0DC (docs/matrix), BI-BCA23DBB (Grok host plane + competitive), BI-C5F9A232 (BS Grok seed), BI-42FA7DD8 (worktree Tier-A reap), BI-A4BEFE99 (remaining clients equalize), BI-8BD61C30 (BS sandbox GC). Waves 0–3 implementation shipped via PRs #3594–#3601 + this branch.
Suggested-client adapter checklist (OpenCode / Gemini / Cursor)
Promote a suggested client only after each gate has evidence (or an explicit “comply by construction” note):
- G1 Skills — install path for
dpf-platformskills (plugin / skills dir / seed). - G2 Competitive — non-destructive disable of
process-spine-replacements.jsoncompetitive ids. - G3 Plane-1 hooks — lease / root-clone / compose deny, or documented substitute.
- G4 Session — SessionStart/End plane where the client exposes events.
- G5 MCP — token env + snippet format.
- G6 Workroom — external executor kind + evidence attribution.
- G7 Worktree — canonical sibling base + hygiene hooks when events exist.
- G8 Headless — non-interactive still honors deny.
- G9 Readiness — bootstrap or dispatch readiness observable.
Source checklist also lives in packages/dpf-skill-pack/README.md (adapter checklist section).
Codex connector declaration (BI-B6641BC2). The updater refreshes its managed X-DPF-Toolchain header in inline and nested TOML header tables while preserving custom header values. A refresh without a delivered declaration keeps existing headers intact. Saved configuration convergence does not prove that an already-running client has reloaded it.
Adding a client (the updater’s adapter contract, BI-D43723D7)
Clients change weekly, so the updater finds them on every run instead of using a list fixed at bootstrap. A binary on PATH or an app bundle counts as installed. A config folder alone does not, because one is often left behind after an uninstall. DISCOVERY in packages/dpf-skill-pack/scripts/toolchain_convergence.py lists where each known client shows itself. An installed client with no adapter is reported unproven in the run report, never skipped. So is an adapted client whose app is present without the CLI DPF converges it through.
A client is adapted when it has all three of these:
- An adapter in
update_agent_toolchain.pywith four parts:- discover: a
resolve_<client>_binaryresolver and aDISCOVERYentry; - converge: writes only through the client’s own CLI wherever the CLI covers the setting;
- verify: a read-back of the client’s own view, in
ConvergenceReport.readback_failure; - prune: removes records the client no longer needs, through its CLI.
- discover: a
- A profile row in
client-capabilities.json, with itswrites[]declaration and itsdeclarationCarrier. The carrier must matchDEFAULT_CARRIERS, and a client listed there counts as adapted. - Fixture tests against a fixture home:
- a read-back case in
readback_test.pywhere the write succeeds and the client’s view differs; - the single-writer run in
single_writer_test.py; - discovery cases in
discovery_test.py.
- a read-back case in
When an adapted client’s version changes, the host agent’s next run re-checks it. If the read-back fails at the new version, the agent records unproven.<client>.<version> with the failing read-back, keeps the last version that passed as the reference, and reports the host failed. After a day, that raises one attention item naming the client and version. The fix is a pack change, which then ships like any other release.
What this currently tells us (the open adoption gaps)
- Governance parity (2026-07-26): Waves 1–3 closed Grok host/BS seed, competitive disable on Codex/Grok/Claude, worktree Tier-A, and BS sandbox GC. Remaining: Antigravity disable+hooks proof, OpenCode/Gemini/Cursor product pull, Docker image reap (separate). Token economy rows below remain separate.
- R3 — deferred tools on
/api/mcp/v1(✅ server / ◐ host proof): Phase 2 shipped in PR #4112 and the 2026-08-08 conformance hardening adds initialize bootstrap guidance, shared natural-language intent resolution, structured recovery, and a four-profile protocol probe. Do not infer that a host honorslist_changed; record that separately when observed live. - R4 — code execution in the native loop (⬜): the single biggest local-window token lever; sandbox already exists.
- R6 — local prefix-KV cache (◐): confirm DMR/llama.cpp reuses the static prefix.
- ⚠️ prompt-cache TTL: re-confirm each refresh; the 5-minute default changes the break-even math for long sessions.
Refresh ritual (monthly — how this stays fresh)
Update 2026-10-13 (BI-64795FD0): step 1 is now wired. The weekly client-capability-reverify-weekly task reads each profile row’s declared sources and files proposals; see “Client capability profile” above. Steps 2 and 3 are how a person acts on a proposal: verify with a live probe, then change the profile by PR.
Reuse existing substrate; no new cron, no new system:
- Trigger. A monthly
scheduledAgentTask(theagent-task-scheduler.ts/agent-task-dispatch.tssubstrate already used by the cognitive-load-migration scan) dispatches the refresh to the Enterprise Architect persona on the 1st. - Method. For each client, read the official docs (the
dpf-platform:claude-apiskill rule applies — never answer from memory) and diff against this matrix. Theclaude-code-guideagent type and web research cover the non-Anthropic clients. - Output. Update the cells +
Last verifieddates here; for each new token-saver worth adopting or each regression/deprecation, file a backlog item (dpf-file-backlog-item) linked to the context-engineering epic, and updatecontext-engineering-standards.mdif a criterion shifts. - Graph projection (planned). Project the matrix as nodes/edges in the living-architecture-graph (EP-ARCH-GRAPH-LIVE) so staleness is queryable and the Parity Engine surfaces drift automatically — the durable home once R-graph wiring lands.
Related
docs/architecture/context-engineering-standards.md— the criteria this keeps current.docs/superpowers/specs/2026-06-20-context-engineering-tool-efficiency-design.md— research + sources.docs/superpowers/specs/2026-06-16-living-architecture-graph-and-operational-bridge-design.md— the graph home for the projected tracker.