page:docs-specs-platform-gaps-roadmap-integration-audit
T3 integration-depth and spec-conformance audit (WP-CP-31) reference
<!-- generated by scripts/check-integration-ledger.cjs --write-report from docs/specs/platform-gaps/roadmap/integration-ledger.json; do not edit -->
T3 integration-depth and spec-conformance audit (WP-CP-31)
<!-- generated by scripts/check-integration-ledger.cjs --write-report from docs/specs/platform-gaps/roadmap/integration-ledger.json; do not edit -->
WP-CP-31 (spec 55 §3.12, §3.15; owner decision C3-21): the integration ledger of every T3-derived subsystem of apps/console-web, apps/environment and packages/client-runtime. Checked by scripts/check-integration-ledger.cjs (ci.yml:test, FL-INT-01); integration-audit.md is its rendered C4 report. Each slice moves its rows to integrated (§3.12 table) and its exit runs node scripts/check-integration-ledger.cjs --exit <slice>. A divergence's default decision is code-changes; spec-amended needs its reason and the amendment's section.
Audited at 2026-10-28 on c4/int @ b6b699680 (C4 integration review; the rows re-verified against the code of tracks A1, B1, B2 and C1). Owner decision C3-21; spec 55 §3.12 makes the rows of each slice an exit criterion of that slice.
Last refreshed: 2026-10-28.
Summary
| Subsystem | Slice | State | Conforms | Open divergences | Owner-deferred | Rule |
|---|---|---|---|---|---|---|
| Providers and drivers (incl. pi) | C4 | adapted | no | 0 | P1 → C5 (C4-1) | providers-through-acp-lanes |
| Hooks (session-start, stop, pre/post tool use) | C4 | integrated | yes | 0 | 0 | hooks-from-the-managed-plugin-set |
| Permissions and approvals | C4 | adapted | no | 0 | A1 → C5 (C4-1), A4 → C5 (C4-1), A5 → C5 (C4-1) | approvals-through-the-control-plane |
| Auth | C4 | integrated | yes | 0 | 0 | auth-through-control-plane-sign-in |
| Environment listing | C4 | integrated | yes | 0 | 0 | environments-from-the-control-plane-registry |
| Orchestration engine | C5 | as-is | no | 2 | 0 | turns-through-the-journal-lane |
| Settings | C5 | as-is | no | 2 | 0 | settings-secrets-on-the-control-plane |
| Project and workspace | C5 | adapted | no | 1 | 0 | projects-reference-repositories |
| Telemetry | C5 | adapted | no | 2 | 0 | telemetry-to-fabric-observability |
| Terminal and review | C6 | adapted | no | 2 | 0 | checkpoints-in-the-signed-journal |
| Model selection | C7 | as-is | no | 2 | 0 | models-from-the-inventory |
Providers and drivers (incl. pi) (C4, adapted)
Re-audited 2026-10-28 on c4/int: the pi driver and lane exist (Drivers/PiDriver.ts in BUILT_IN_DRIVERS; RunDispatch.ts lane pi over the worker's ollama), the environment's lanes come from its probed inventory (RunDispatch.ts laneStatuses) and the control plane dispatches only the admitted routes it registers (acp-lane-admission.js dispatchableLanes/laneRefusal), and the console offers no driverless codex provider. What stays T3-local is P1: a console thread turn still runs T3's provider stack (in-process Claude SDK adapter, T3-local ACP session runtime, OpenCode SDK adapter) rather than the one ACP lane runtime; that is the ACP flip of console turns (WP-ACP-03), which the owner deferred to C5 (C4-1), so the row is adapted in C4 and its rule still fails until the flip.
**T3 today.** T3's driver registry and per-driver adapters run every console turn. apps/environment/src/provider/builtInDrivers.ts:51, apps/environment/src/provider/Layers/ClaudeAdapter.ts:13, apps/environment/src/provider/Layers/CursorAdapter.ts:55, apps/environment/src/orchestration/Layers/ProviderCommandReactor.ts:741, apps/environment/src/orchestration/Layers/ProviderCommandReactor.ts:1549, apps/console-web/src/components/settings/AddProviderInstanceDialog.tsx:92
**Fabric integration point.** The one ACP lane runtime with its route registry (codecs lanes) and the environment's dispatched-run lanes. packages/adapters/codecs/src/lanes/registry.ts:28, apps/environment/src/acp/RunDispatch.ts:53, packages/kradle/core/src/environment-registry.js:32
**Governing spec sections.**
- spec 60 §4 one ACP lane runtime drives every harness:
docs/specs/platform-gaps/60-standards-alignment.md:101 - spec 60 §4 ACP terminates inside the environment:
docs/specs/platform-gaps/60-standards-alignment.md:103 - spec 60 §5 route matrix: Pi through the tracked pi-acp fork:
docs/specs/platform-gaps/60-standards-alignment.md:206 - spec 10 WP-T3-06 generic ACP lane runtime:
docs/specs/platform-gaps/10-t3code-migration.md:276 - spec 55 WP-CP-29 AC3 (pi driver and lane), AC4 (no lane constants):
docs/specs/platform-gaps/55-console-program.md:1313 - spec 55 §3.12 C4 row:
docs/specs/platform-gaps/55-console-program.md:617
**Architecture rule providers-through-acp-lanes** (forbid from ["']@anthropic-ai/claude-agent-sdk["']|from ["']@opencode-ai/sdk[^"']*["']|/AcpSessionRuntime(?:\.ts)?["'] in apps/environment/src, apps/console-web/src, packages/client-runtime/src): No production module of the three units runs a harness through a T3-local mechanism: no direct harness SDK import and no import of the T3-local ACP session runtime; harnesses run only through the codecs ACP lanes.
| Divergence | Spec | Code | Gap | Decision | Owner | Status |
|---|---|---|---|---|---|---|
| P1 | docs/specs/platform-gaps/60-standards-alignment.md:101 | apps/environment/src/provider/Layers/ClaudeAdapter.ts:13 | two lane systems: console turns run the in-process SDK adapter, the T3-local ACP session runtime and the OpenCode SDK adapter instead of the one ACP lane runtime (deferred to C5 with the ACP flip by owner decision C4-1, 2026-10-28: console turns move onto the one ACP lane runtime in WP-ACP-03, C5) | code-changes | D2 (WP-ACP-03 flip, behind c4.acp-flip) with A1 (WP-CP-29) | deferred to C5 by owner decision C4-1 (docs/specs/platform-gaps/55-console-program.md:439) |
| P2 | docs/specs/platform-gaps/55-console-program.md:1313 | apps/environment/src/provider/builtInDrivers.ts:61 | closed by WP-CP-29 (C4 A1/A2): a pi driver is in BUILT_IN_DRIVERS (Drivers/PiDriver.ts), the dispatched-run pi lane runs the pi route over the worker's ollama (acp/RunDispatch.ts), and the console lists pi as a provider, not coming soon (providerDriverMeta.ts) | code-changes | A1 (WP-CP-29) | closed |
| P3 | docs/specs/platform-gaps/55-console-program.md:1313 | apps/environment/src/acp/RunDispatch.ts:136 | closed by WP-CP-29 (C4 A1): the environment's lanes are its probed inventory filtered by the work-pool lanes (RunDispatch.ts laneStatuses), and the control plane dispatches a lane only when its route is admitted and the environment registers it (packages/kradle/core/src/acp-lane-admission.js:38 dispatchableLanes, agent-dispatch-controller.js:142 laneRefusal) | code-changes | A1 (WP-CP-29) | closed |
| P4 | docs/specs/platform-gaps/55-console-program.md:435 | apps/console-web/src/components/settings/providerDriverMeta.ts:52 | closed: the console's provider options are claudeAgent (the default), cursor, grok, pi, opencode and antigravity; no codex provider without a driver is offered (the Codex driver was pruned by WP-T3-19; Codex runs as the codex-acp route) | code-changes | A1 (WP-CP-29) | closed |
Hooks (session-start, stop, pre/post tool use) (C4, integrated)
Re-audited 2026-10-28 on c4/int: the image bakes the pinned babysitter CLI and the fabric-managed plugin (apps/environment/Dockerfile, WP-BAB-01), interactive Claude sessions and dispatched runs load the managed plugin set (managedPlugins.ts managedPluginLaunch from ClaudeAdapter.ts and RunDispatch.ts, WP-BAB-02), and under a pinned root the plugin's permission-deciding hooks run through the plugin hook gate (C4-2, H5). H4 closed 2026-10-28 (fix round 2): AcpIngestion consumes _fabric/hook facts into thread activities. Integrated 2026-10-28 (fix round 3) on the owner's rulings: the broad pre-approval hook matcher is accepted as it is (C4-4, H6), and the rule is re-targeted at the staged plugin path the environment resolves the managed set by (C4-6): the image sets FABRIC_MANAGED_CLAUDE_PLUGINS=/app/babysitter/plugins/babysitter, and scripts/check-babysitter-image.mjs proves that directory is the babysitter-unified build.
**T3 today.** The Claude adapter's setting sources and managed-settings posture decide which hooks load. apps/environment/src/provider/Layers/ClaudeAdapter.ts:1548, apps/environment/src/provider/Layers/ClaudeAdapter.ts:2177, apps/environment/src/provider/Layers/ClaudeAdapter.ts:2191, apps/environment/src/acp/RunDispatch.ts:387
**Fabric integration point.** The babysitter plugin's managed hook set and the fabric hook extension of ACP. plugins/babysitter-unified/plugin.json:23, packages/babysitter-sdk/src/harness/hooks/stopHookHandler.ts:238, packages/acp/src/_generated/fabric/schema.gen.ts:178, apps/environment/src/provider/managedPlugins.ts:319, apps/environment/src/provider/pluginHookGate.ts:63
**Governing spec sections.**
- spec 55 §3.5 decision 5 (babysitter in the image; managed plugin set):
docs/specs/platform-gaps/55-console-program.md:432 - spec 55 WP-BAB-02 AC (managed hooks under a pinned root, dispatched runs):
docs/specs/platform-gaps/55-console-program.md:1349 - spec 60 WP-T3-15 hooks emit _fabric/hook:
docs/specs/platform-gaps/60-standards-alignment.md:575 - spec 55 §3.12 C4 row:
docs/specs/platform-gaps/55-console-program.md:617 - spec 55 §0.1 owner decisions C4-4 and C4-6:
docs/specs/platform-gaps/55-console-program.md:45-47
**Architecture rule hooks-from-the-managed-plugin-set** (require FABRIC_MANAGED_CLAUDE_PLUGINS=/app/babysitter/plugins/babysitter in apps/environment/Dockerfile): The environment image hands its Claude sessions and dispatched runs the fabric-managed babysitter plugin set at its staged path (owner decision C4-6): FABRIC_MANAGED_CLAUDE_PLUGINS names /app/babysitter/plugins/babysitter, which scripts/check-babysitter-image.mjs proves is the babysitter-unified build.
| Divergence | Spec | Code | Gap | Decision | Owner | Status |
|---|---|---|---|---|---|---|
| H1 | docs/specs/platform-gaps/55-console-program.md:1349 | apps/environment/src/provider/Layers/ClaudeAdapter.ts:2189 | closed by WP-BAB-02 (C4 B1/B2): an interactive Claude session loads the fabric-managed plugin set (managedPluginLaunch) and registers its hooks as managed hooks under a pinned root; the permission-deciding hooks run through the plugin hook gate (H5, C4-2) | code-changes | B1 (WP-BAB-02) | closed |
| H2 | docs/specs/platform-gaps/55-console-program.md:1349 | apps/environment/src/acp/RunDispatch.ts:254 | closed by WP-BAB-02 (C4 B1): a dispatched run's Claude agent gets the same managed plugin set (RunDispatch.ts managedPluginLaunch, plugins option) | code-changes | B1 (WP-BAB-02) | closed |
| H3 | docs/specs/platform-gaps/55-console-program.md:432 | apps/environment/Dockerfile:79 | closed by WP-BAB-01 (C4 B1): the image bakes the pinned babysitter CLI and the plugin compiled from plugins/babysitter-unified, checks both versions at build and labels them (ai.a5c.fabric.babysitter-version, babysitter-plugin-version) | code-changes | B1 (WP-BAB-01) | closed |
| H4 | docs/specs/platform-gaps/60-standards-alignment.md:575 | apps/environment/src/acp/AcpIngestion.ts:163 | closed by the C4 fix round 2: the environment consumes _fabric/hook - a hook fact on an ACP transcript (the observe lane's lane fact or an agent's notification) becomes an acp.fabric.hook thread activity of its turn, decoded against the extension schema (@fabricstack/acp/fabric), an undecodable fact an error activity (AcpIngestion.hook.test.ts). Interactive Claude sessions keep reaching the thread through the adapter's native hook_started/hook_response events (ClaudeAdapter.ts hook.started/hook.completed); their observe-lane transcripts are not ingested. | code-changes | D2 (WP-T3-15) | closed |
| H5 | docs/specs/platform-gaps/55-console-program.md:1349 | apps/environment/src/provider/managedPlugins.ts:319 | owner redirect 2026-10-28 (the c4.acp-flip answer): under a pinned root the plugin's PreToolUse and PermissionRequest hooks were withheld and its allowed-tools stripped (B1's deviation); they must instead run through fabric's trust gate so a plugin hook can never answer allow on its own (closed: the plugin hook gate wraps those hooks, an allow becomes ask and reaches canUseTool and the trust gate, and allowed-tools pre-approvals are asked through the gate; apps/environment/src/provider/pluginHookGate.ts:63, pluginHookGate.test.ts) | code-changes | B2 (WP-BAB-02 amendment) | closed |
| H6 | docs/specs/platform-gaps/55-console-program.md:45 | apps/environment/src/provider/managedPlugins.ts:350 | the plugin hook gate's pre-approval matcher covers every tool a plugin pre-approves, broader than the pre-approved command (PreToolUse input carries no command or skill field to narrow it by); it over-asks - each matching tool use becomes a request the trust gate decides - and never admits on its own. Accepted as it is by owner decision C4-4. | spec-amended (owner decision C4-4 (2026-10-28) accepts the broad matcher: it fails closed (over-asks) and the hook input cannot narrow it; docs/specs/platform-gaps/55-console-program.md:45) | owner (C4-4) | closed |
Permissions and approvals (C4, adapted)
WP-T3-23 (track D1, C4) wired the run approvals through fabric: a run raises any of the seven typed actions (ctx.breakpoint(payload, { approval })) and a dispatched run's lane requests are approval records; fabric.approvals and POST /api/fabric/approvals/<id>/decide decide them with the session as the decider and, where a policy root is pinned, only with a human-signed answer the trust gate verifies; the control plane mirrors every record as an AgentApproval (a write-back one driving its ExternalWriteIntent) and refuses to decide a mirror. What stays T3-local: the tool-use requests of a session a person drives directly are still answered through T3's thread.approval.respond in the thread view (A-01 links there) and are not mirrored, and T3 plan proposals do not surface as review gates; both close with the ACP flip of console turns (providers row, D2/D3). Owner decision C4-1 (2026-10-28) deferred the flip to C5, so A1, A4 and A5 are deferred to C5 with it (spec 55 §3.5 decision 9 amendment): the row stays adapted in C4, and WP-T3-23 cannot close in C4 (its AC4 and the direct-session tool use stay T3-local until the flip).
**T3 today.** T3's pending-approvals projection and thread.approval.respond decide tool-use approvals in the environment. apps/environment/src/orchestration/Layers/ProviderRuntimeIngestion.ts:514, apps/environment/src/orchestration/Layers/ProjectionPipeline.ts:1785, apps/environment/src/orchestration/Layers/ProviderCommandReactor.ts:1658, apps/console-web/src/components/ChatView.tsx:1533, apps/console-web/src/fabric/screens/approvals/A-01.tsx:154
**Fabric integration point.** The control plane's AgentApproval records and the 7-action approvals contract with signed decisions. packages/kradle/core/src/agent-approval-controller.js:21, packages/kradle/core/src/approval-mirror.js:176, apps/environment/src/fabric/ApprovalRecords.ts:73, packages/contracts/src/fabric/approvals.ts:27
**Governing spec sections.**
- spec 10 §4.3 approval mapping (binding table):
docs/specs/platform-gaps/10-t3code-migration.md:160 - spec 10 WP-T3-23 acceptance criteria:
docs/specs/platform-gaps/10-t3code-migration.md:416 - spec 10 WP-T3-25 AC3 (approval UI for all 7 actions):
docs/specs/platform-gaps/10-t3code-migration.md:433 - spec 55 FL-APR-03 / FL-APR-04 / FL-APR-08:
docs/specs/platform-gaps/55-console-program.md:1655 - spec 55 §3.12 C4 row:
docs/specs/platform-gaps/55-console-program.md:617
**Architecture rule approvals-through-the-control-plane** (forbid thread\.approval\.respond|respondToThreadApproval|respondToApproval\b in apps/console-web/src, packages/client-runtime/src): The console decides approvals only through the fabric approvals group (A-01/A-02), never through T3's thread.approval.respond.
| Divergence | Spec | Code | Gap | Decision | Owner | Status |
|---|---|---|---|---|---|---|
| A1 | docs/specs/platform-gaps/10-t3code-migration.md:416 | apps/environment/src/orchestration/Layers/ProviderCommandReactor.ts:1658 | a tool-use request of a session a person drives directly never becomes an AgentApproval(tool-use); it resolves locally (a dispatched run's request is now a record, mirrored) (deferred to C5 with the ACP flip by owner decision C4-1, 2026-10-28: direct-session tool-use requests become AgentApprovals when console turns run on the ACP lanes) | code-changes | D2/D3 (the ACP flip of console turns) with D1 | deferred to C5 by owner decision C4-1 (docs/specs/platform-gaps/55-console-program.md:439) |
| A2 | docs/specs/platform-gaps/10-t3code-migration.md:416 | apps/environment/src/fabric/RunJournalViews.ts:547 | closed by WP-T3-23: a breakpoint raises any of the seven typed actions (metadata.approval), decoded against the contract union | code-changes | D1 (WP-T3-23) | closed |
| A3 | docs/specs/platform-gaps/10-t3code-migration.md:416 | apps/environment/src/acp/DispatchApprovals.ts:280 | closed by WP-T3-23: a decision carries the signed answer, an approval passes the trust gate before it releases the lane, and the control-plane decide route records the session as the decider | code-changes | D1 (WP-T3-23) | closed |
| A4 | docs/specs/platform-gaps/55-console-program.md:1656 | apps/console-web/src/fabric/screens/approvals/A-01.tsx:176 | A-01 still sends the person to the session to answer a tool-use request of a session driven directly (a dispatched run's request is decided in A-01/A-02) (deferred to C5 with the ACP flip by owner decision C4-1, 2026-10-28: A-01 decides direct-session requests once they are records) | code-changes | D2/D3 (the ACP flip of console turns) with D1 | deferred to C5 by owner decision C4-1 (docs/specs/platform-gaps/55-console-program.md:439) |
| A5 | docs/specs/platform-gaps/10-t3code-migration.md:167 | apps/environment/src/fabric/RunJournalViews.ts:553 | plan proposals do not surface as review gates (deferred to C5 with the ACP flip by owner decision C4-1, 2026-10-28: plan proposals surface as review gates with the ACP flip of console turns) | code-changes | D2/D3 (the ACP flip of console turns) with D1 | deferred to C5 by owner decision C4-1 (docs/specs/platform-gaps/55-console-program.md:439) |
Auth (C4, integrated)
Re-audited 2026-10-28 on c4/int: the console signs in through the control plane (WP-CP-30 stage c4, track C1): GET /api/fabric/console/sign-in and the OAuth callback send a verified org member back to <console>/pair#token=<grant> with a one-time, 120 s, console-scoped grant the control plane mints with its DPoP session (packages/kradle/core/src/console-sign-in.js mintPairingGrant), the pairing route redeems it with the console's own DPoP key and no sign-in path asks for a token (PairingRouteSurface.tsx), and client-runtime has a control-plane client (src/controlPlane/client.ts, catalog.ts). U1 closed (C4 fix, decision C1): Settings > Connections mints no pairing link and shows no link, code or QR (it lists unused grants with expiry and scopes, and revokes them), and no console module mints a pairing credential or puts a token on a URL (createServerPairingCredential, setPairingTokenOnUrl and buildHostedPairingUrl are gone from apps/console-web/src). Integrated 2026-10-28 (fix round 3) on the owner's ruling C4-5: the rule auth-through-control-plane-sign-in is narrowed to exclude exactly the /pair grant-redemption route WP-T3-30 requires (routes/pair.tsx, PairingRouteSurface.tsx, and submitServerAuthCredential where environments/primary/auth.ts defines it and index.ts exports it), each exception naming its file and tokens (rule.allow); every other console path matching the rule still fails (scripts/__tests__/integration-ledger.test.mjs).
**T3 today.** Environment-issued pairing tokens typed into the console, and environment-local grant issuance. apps/console-web/src/components/auth/PairingRouteSurface.tsx:100, apps/console-web/src/environments/primary/auth.ts:267, apps/console-web/src/fabric/screens/organization/O-03.tsx:61, apps/environment/src/auth/EnvironmentAuth.ts:1019
**Fabric integration point.** Control-plane GitHub sign-in (verified a5c-ai members) handing the console a one-time scoped pairing grant. packages/kradle/web/app/api/auth/callback/[provider]/route.js:68, packages/contracts/src/fabric/pairing.ts:105
**Governing spec sections.**
- spec 55 §3.4 control-plane sessions and membership:
docs/specs/platform-gaps/55-console-program.md:358 - spec 55 §3.5 decision 8 (sign-in, grant in the URL fragment, no pairing-token path):
docs/specs/platform-gaps/55-console-program.md:435 - spec 55 WP-CP-30 AC1:
docs/specs/platform-gaps/55-console-program.md:1322 - spec 10 WP-T3-30 acceptance criteria:
docs/specs/platform-gaps/10-t3code-migration.md:473 - spec 55 §0.1 owner decision C4-5:
docs/specs/platform-gaps/55-console-program.md:46
**Architecture rule auth-through-control-plane-sign-in** (forbid submitServerAuthCredential|createServerPairingCredential|PairingRouteSurface|setPairingTokenOnUrl in apps/console-web/src): No console path types, mints or forwards an environment pairing token; the console signs in through the control plane and redeems its grant. The one exception (owner decision C4-5) is the /pair grant-redemption route WP-T3-30 requires, named file by file in rule.allow.
| Divergence | Spec | Code | Gap | Decision | Owner | Status |
|---|---|---|---|---|---|---|
| U1 | docs/specs/platform-gaps/55-console-program.md:435 | apps/console-web/src/components/settings/ConnectionsSettings.tsx:310 | closed by the C4 fix of decision C1: Settings > Connections no longer mints a pairing link (the create-link dialog and its createServerPairingCredential call are gone) nor shows a link, code or QR (the share, copy and reveal panel is gone); it lists the environment's unused grants with expiry and scopes and revokes them (ConnectionsSettings.tsx:310 PairingLinkListRow, :461 AuthorizedClientsHeaderAction), and no console module builds a token URL (setPairingTokenOnUrl, buildHostedPairingUrl and pairingUrls.ts removed); e2e apps/console-web/e2e/specs/o-03.spec.ts:107 (FL-CON-04 decision C1: Settings > Connections mints, shows and accepts no pairing link or token) | code-changes | C1 (WP-CP-30 c4) | closed |
| U2 | docs/specs/platform-gaps/55-console-program.md:435 | packages/kradle/core/src/console-sign-in.js:180 | closed by WP-CP-30 stage c4 (C4 C1): the control plane's sign-in mints the console's one-time, scoped pairing grant through its DPoP session (console-sign-in.js mintPairingGrant; app/api/fabric/console/sign-in/route.js and the OAuth callback return to <console>/pair#token=<grant>) | code-changes | C1 (WP-CP-30 c4, WP-T3-30 grant-redemption) | closed |
| U3 | docs/specs/platform-gaps/55-console-program.md:1322 | packages/client-runtime/src/controlPlane/client.ts:71 | closed by WP-CP-30 stage c4 / WP-T3-24 catalog stage: client-runtime has the control-plane client (src/controlPlane/client.ts makeControlPlaneClient) and its environment catalog (catalog.ts) | code-changes | C1 (WP-CP-30 c4) | closed |
Environment listing (C4, integrated)
C4 track A2 (WP-T3-24 catalog stage, WP-CP-28 AC6): the console's connection catalog is the control plane's environment registry. client-runtime environmentCatalogFromRegistry builds one entry per environment fabric.pairing.listEnvironments lists (read with the person's control-plane session through the contract's route), the connection platform reconciles a ControlPlaneConnectionRegistration for every environment of the org a browser reaches (its DPoP session from a control-plane grant), and S-03 lists every environment and worker of the org by pool with health and load; fabric.environments.list stays the serving environment's own view (workspaces), beside them.
**T3 today.** T3's connection catalog over locally stored profiles, and one environment describing itself. packages/client-runtime/src/connection/registry.ts:159, apps/console-web/src/connection/storage.ts:812, apps/console-web/src/components/settings/ConnectionsSettings.tsx:1545, apps/environment/src/fabric/FabricConsoleRpc.ts:528
**Fabric integration point.** The control plane's environment registry over AgentEnvironment, served as fabric.pairing.listEnvironments and read by the console's catalog, connections and S-03. packages/kradle/core/src/environment-registry.js:201, packages/contracts/src/fabric/pairing.ts:184, packages/client-runtime/src/controlPlane/catalog.ts:81, apps/console-web/src/controlPlane/environmentCatalog.ts:67, apps/console-web/src/fabric/screens/agents/OrgEnvironments.tsx:197
**Governing spec sections.**
- spec 10 WP-T3-24 AC3 (catalog from the registry):
docs/specs/platform-gaps/10-t3code-migration.md:425 - spec 55 §3.5 decision 2 (listEnvironments, org-scoped, served by the control plane):
docs/specs/platform-gaps/55-console-program.md:429 - spec 55 §3.12 C4 row:
docs/specs/platform-gaps/55-console-program.md:617
**Architecture rule environments-from-the-control-plane-registry** (require listEnvironments in apps/console-web/src, packages/client-runtime/src): The console lists environments through the control plane's registry (fabric.pairing.listEnvironments) in client-runtime or console-web.
| Divergence | Spec | Code | Gap | Decision | Owner | Status |
|---|---|---|---|---|---|---|
| E1 | docs/specs/platform-gaps/10-t3code-migration.md:425 | packages/client-runtime/src/connection/registry.ts:159 | closed by the WP-T3-24 catalog stage (C4 A2): the catalog is the registry's listing (client-runtime controlPlane/catalog.ts), and the console connects to each reachable environment of the org (ControlPlaneConnectionTarget, console-web controlPlane/environmentCatalog.ts); FL-WRK-05 | code-changes | A2 (WP-T3-24 catalog stage) | closed |
| E2 | docs/specs/platform-gaps/55-console-program.md:429 | apps/environment/src/fabric/FabricConsoleRpc.ts:528 | closed: A1 serves fabric.pairing.listEnvironments (packages/kradle/web/app/api/fabric/pairing/[method]/route.js) and A2 binds it as the console's org view (GET /api/fabric/orgs/{org}/environments), which the console reads for S-03 by pool, the Models page and the connection catalog; fabric.environments.list remains the serving environment's own view; FL-WRK-05, FL-WRK-06 | code-changes | A1 (pairing server) and A2 (console) | closed |
Orchestration engine (C5, as-is)
Console thread turns run through T3's event-sourced engine (decider, SQLite event store, projector) and the T3 provider service; no babysitter run or journal entry exists for a console thread. Fabric's run engine and journal are a side path used only by dispatched runs.
**T3 today.** T3's decider and SQLite orchestration event store, with turns sent through the T3 provider service. apps/environment/src/orchestration/Layers/OrchestrationEngine.ts:246, apps/environment/src/persistence/Layers/OrchestrationEventStore.ts:130, apps/environment/src/orchestration/Layers/ProviderCommandReactor.ts:1549
**Fabric integration point.** The fabric run engine and journal (orchestrator SDK) behind the journal-bound ACP lane. apps/environment/src/acp/RunJournalLane.ts:136, apps/environment/src/fabric/RunJournalViews.ts:22
**Governing spec sections.**
- spec 10 §4.4 journal sovereignty rule:
docs/specs/platform-gaps/10-t3code-migration.md:176 - spec 10 WP-T3-16 affected paths (journalRunRef):
docs/specs/platform-gaps/10-t3code-migration.md:358 - spec 66 WP-EXE-01 (spawn and exit journaled):
docs/specs/platform-gaps/66-eval-exec-harness2-loom.md:173 - spec 55 §3.12 C5 row / FL-INT-02:
docs/specs/platform-gaps/55-console-program.md:1987
**Architecture rule turns-through-the-journal-lane** (forbid \.(?:startSession|sendTurn)\( in apps/environment/src/orchestration): The orchestration layer starts no provider session and sends no turn itself; turns run through the journal-bound lane.
| Divergence | Spec | Code | Gap | Decision | Owner | Status |
|---|---|---|---|---|---|---|
| O1 | docs/specs/platform-gaps/10-t3code-migration.md:176 | apps/environment/src/persistence/Layers/OrchestrationEventStore.ts:130 | turn identity and replay live only in SQLite; no .a5c/runs journal for a console thread | code-changes | C5 (WP-FN-05/07, WP-T3-16 routes) | open |
| O2 | docs/specs/platform-gaps/10-t3code-migration.md:358 | apps/environment/src/persistence/Migrations/005_Projections.ts:22 | no journalRunRef on run-scoped tables | code-changes | C5 | open |
Settings (C5, as-is)
Settings are T3's server settings.json plus browser storage; provider secrets go to the environment's file-backed secret store; the console's org screens read the primary environment's config, not the control plane's org settings, secrets and grants (fabric.orgAdmin has no consumer).
**T3 today.** T3's ServerSettingsService over stateDir/settings.json and the environment-local secret store. apps/environment/src/serverSettings.ts:193, apps/environment/src/serverSettings.ts:500, apps/console-web/src/hooks/useSettings.ts:1, apps/console-web/src/fabric/screens/organization/O-04.tsx:14
**Fabric integration point.** Org and user settings, secrets and grants on the control plane (org-admin contract, grant controller). packages/contracts/src/fabric/orgAdmin.ts:80, packages/kradle/core/src/agent-secret-config-grant-controller.js:39
**Governing spec sections.**
- spec 55 §3.12 C5 row:
docs/specs/platform-gaps/55-console-program.md:618 - spec 55 WP-CP-30 AC2 / AC8 (metadata only, through client-runtime and contracts):
docs/specs/platform-gaps/55-console-program.md:1322
**Architecture rule settings-secrets-on-the-control-plane** (forbid ServerSecretStore in apps/environment/src/serverSettings.ts): Server settings keep no provider secret in the environment-local secret store.
| Divergence | Spec | Code | Gap | Decision | Owner | Status |
|---|---|---|---|---|---|---|
| S1 | docs/specs/platform-gaps/55-console-program.md:618 | apps/environment/src/serverSettings.ts:500 | lane and provider secrets live in an environment-local file store, not in control-plane secrets and grants | code-changes | C5 (WP-CP-30 c5) | open |
| S2 | docs/specs/platform-gaps/55-console-program.md:1322 | apps/console-web/src/fabric/screens/organization/O-04.tsx:14 | org settings screens read the environment config; fabric.orgAdmin has no consumer | code-changes | C1 (WP-CP-30 c4) / C5 | open |
Project and workspace (C5, adapted)
Renamed and branded (fabric.json project files) but a project is only a local workspace root: no control-plane repository reference, and no work-item link is written for a thread or worktree.
**T3 today.** T3 projects as local workspace roots with locally resolved repository identity. apps/environment/src/orchestration/decider.ts:235, apps/environment/src/project/RepositoryIdentityResolver.ts:33, packages/client-runtime/src/operations/commands.ts:103
**Fabric integration point.** Control-plane Repository records and work-item links. packages/kradle/core/src/resource-model.js:13, packages/kradle/core/src/resource-model.js:61
**Governing spec sections.**
- spec 55 §3.12 C5 row:
docs/specs/platform-gaps/55-console-program.md:618 - spec 10 WP-T3-20 objective (org scoping, kradle dispatch into environments):
docs/specs/platform-gaps/10-t3code-migration.md:388
**Architecture rule projects-reference-repositories** (require repositoryRef in apps/environment/src/orchestration): A project carries a control-plane repository reference.
| Divergence | Spec | Code | Gap | Decision | Owner | Status |
|---|---|---|---|---|---|---|
| W1 | docs/specs/platform-gaps/55-console-program.md:618 | apps/environment/src/orchestration/decider.ts:235 | a project records only workspaceRoot: no repository or org reference | code-changes | C5 (WP-CP-30 c5, work items) | open |
Telemetry (C5, adapted)
Renamed per spec 15 (environment-server, fabric namespace, fabric_* metrics) and sent only when an operator configures a key, but T3's PostHog analytics service and its own OTLP layer are not wired into fabric observability, and environment logs do not use the shared redaction module.
**T3 today.** T3's PostHog analytics service and OTLP observability layer. apps/environment/src/telemetry/AnalyticsService.ts:155, apps/environment/src/observability/Layers/Observability.ts:22, apps/environment/src/config.ts:133
**Fabric integration point.** Fabric observability (the shared redaction module and harness observability). packages/adapters/observability/src/redact-log.ts:1
**Governing spec sections.**
- spec 15 telemetry rename, no built-in key:
docs/specs/platform-gaps/15-private-isolation-rename.md:174 - spec 20 WP-FN-22 secret redaction in the logging layer:
docs/specs/platform-gaps/20-functionality-coverage.md:324 - spec 55 §3.12 C5 row / FL-INT-02:
docs/specs/platform-gaps/55-console-program.md:1987
**Architecture rule telemetry-to-fabric-observability** (forbid posthog in apps/environment/src): No production module of the environment sends analytics to PostHog.
| Divergence | Spec | Code | Gap | Decision | Owner | Status |
|---|---|---|---|---|---|---|
| T1 | docs/specs/platform-gaps/55-console-program.md:1987 | apps/environment/src/telemetry/AnalyticsService.ts:155 | telemetry goes to a sink outside fabric observability | code-changes | C5 (WP-CP-15) | open |
| T2 | docs/specs/platform-gaps/20-functionality-coverage.md:324 | apps/environment/src/provider/acp/AcpStderr.ts:1 | environment logs do not use the shared redaction module | code-changes | C5 (WP-FN-22 integration note) | open |
Terminal and review (C6, adapted)
Checkpoints are hidden git refs with fabric naming and the typed checkpoint.unavailable activity, but neither restore nor diff touches the signed journal, restore is coupled to conversation rollback (which every lane declares false), and the terminal is gated only by an auth scope.
**T3 today.** T3's hidden-ref checkpoint store, the checkpoint reactor's revert, the review service and the PTY manager. apps/environment/src/checkpointing/CheckpointStore.ts:160, apps/environment/src/orchestration/Layers/CheckpointReactor.ts:788, apps/environment/src/orchestration/Layers/CheckpointReactor.ts:832, apps/environment/src/terminal/Manager.ts:147
**Fabric integration point.** Fabric checkpoints and the signed journal (orchestrator SDK journal). packages/babysitter-sdk/src/storage/journal.ts:1
**Governing spec sections.**
- spec 10 WP-T3-19 AC3 (checkpoints as hidden refs: capture, restore, diff):
docs/specs/platform-gaps/10-t3code-migration.md:383 - spec 10 WP-T3-25 AC2 (create, stream, approve, diff, checkpoint restore):
docs/specs/platform-gaps/10-t3code-migration.md:433 - spec 55 §3.12 C6 row / FL-INT-03:
docs/specs/platform-gaps/55-console-program.md:1988
**Architecture rule checkpoints-in-the-signed-journal** (require @fabricstack/orchestrator-sdk in apps/environment/src/checkpointing): Checkpoint capture and restore are journaled through the orchestrator SDK.
| Divergence | Spec | Code | Gap | Decision | Owner | Status |
|---|---|---|---|---|---|---|
| R1 | docs/specs/platform-gaps/10-t3code-migration.md:383 | apps/environment/src/orchestration/Layers/CheckpointReactor.ts:788 | a files restore is impossible without conversation rollback: the rollback assertion precedes the hidden-ref restore | code-changes | D1 (FL-RUN-04 restore leg) / D3 (ACP flip) | open |
| R2 | docs/specs/platform-gaps/55-console-program.md:1988 | apps/environment/src/orchestration/Layers/CheckpointReactor.ts:832 | restore and diff write only orchestration events, never the signed journal | code-changes | C6 | open |
Model selection (C7, as-is)
The model list is T3's static model manifest refreshed from a GitHub raw URL; the console picker reads driver snapshots; nothing reads the worker inventory, model routes or the model proxy.
**T3 today.** T3's static model manifest and per-driver provider snapshots. apps/environment/src/provider/ModelManifest.ts:37, apps/environment/src/provider/ModelManifest.ts:41, apps/console-web/src/providerModels.ts:31
**Fabric integration point.** Model routes on the control plane and the model gateway; the worker inventory (WP-CP-29). packages/kradle/core/src/api-controller.js:549, packages/adapters/transport/src/server.ts:1636
**Governing spec sections.**
- spec 10 WP-T3-33 AC4 (atlas bridge; JSON only as fixture):
docs/specs/platform-gaps/10-t3code-migration.md:505 - spec 55 FL-WRK-06 (the picker offers the inventory's models):
docs/specs/platform-gaps/55-console-program.md:1946 - spec 55 §3.12 C7 row / FL-INT-04:
docs/specs/platform-gaps/55-console-program.md:1989
**Architecture rule models-from-the-inventory** (forbid ModelManifest|model-manifest\.json in apps/environment/src, apps/console-web/src, packages/client-runtime/src): No production module of the three units reads the static model manifest.
| Divergence | Spec | Code | Gap | Decision | Owner | Status |
|---|---|---|---|---|---|---|
| M1 | docs/specs/platform-gaps/10-t3code-migration.md:505 | apps/environment/src/provider/ModelManifest.ts:41 | the static manifest (with a GitHub refresh) is the primary model source | code-changes | C7 (WP-T3-33) | open |
| M2 | docs/specs/platform-gaps/55-console-program.md:1946 | apps/console-web/src/providerModels.ts:31 | the picker reads T3 driver snapshots, not the worker inventory | code-changes | A2 (C4 console halves of WP-CP-29) / C7 | open |