apps/desktop/src/clientPersistence.test.ts | 2 +- apps/server/integration/OrchestrationEngineHarness.integration.ts | 2 +- apps/server/integration/TestProviderAdapter.integration.ts | 6 +- apps/server/integration/fixtures/providerRuntime.ts | 4 +- apps/server/integration/orchestrationEngine.integration.test.ts | 37 +- apps/server/integration/providerService.integration.test.ts | 60 ++-- apps/server/src/auth/Layers/SessionCredentialService.ts | 2 +- apps/server/src/auth/Services/AuthControlPlane.ts | 4 +- apps/server/src/auth/Services/BootstrapCredentialService.ts | 4 +- apps/server/src/auth/Services/ServerAuth.ts | 4 +- apps/server/src/auth/Services/ServerAuthPolicy.ts | 4 +- apps/server/src/auth/Services/ServerSecretStore.ts | 9 +- apps/server/src/auth/Services/SessionCredentialService.ts | 4 +- apps/server/src/checkpointing/Layers/CheckpointDiffQuery.test.ts | 8 +- apps/server/src/checkpointing/Layers/CheckpointStore.test.ts | 2 +- apps/server/src/checkpointing/Services/CheckpointDiffQuery.ts | 4 +- apps/server/src/checkpointing/Services/CheckpointStore.ts | 6 +- apps/server/src/checkpointing/Utils.ts | 2 +- apps/server/src/cli-config.test.ts | 63 ++++ apps/server/src/cli.test.ts | 4 + apps/server/src/cli.ts | 105 ++---- apps/server/src/codexAppServerManager.test.ts | 10 +- apps/server/src/codexAppServerManager.ts | 32 +- apps/server/src/config.ts | 4 +- apps/server/src/environment/Layers/ServerEnvironment.ts | 2 +- apps/server/src/environment/Layers/ServerEnvironmentLabel.ts | 12 +- apps/server/src/environment/Services/ServerEnvironment.ts | 9 +- apps/server/src/git/Layers/GitCore.test.ts | 4 +- apps/server/src/git/Layers/GitCore.ts | 3 +- apps/server/src/git/Layers/GitManager.ts | 6 +- apps/server/src/git/Layers/RoutingTextGeneration.ts | 6 +- apps/server/src/git/Services/GitCore.ts | 6 +- apps/server/src/git/Services/GitHubCli.ts | 4 +- apps/server/src/git/Services/GitManager.ts | 4 +- apps/server/src/git/Services/GitStatusBroadcaster.ts | 4 +- apps/server/src/git/Services/TextGeneration.ts | 4 +- apps/server/src/keybindings.ts | 4 +- apps/server/src/observability/Services/BrowserTraceCollector.ts | 4 +- apps/server/src/open.ts | 4 +- apps/server/src/orchestration/Layers/CheckpointReactor.test.ts | 238 +++++++------ apps/server/src/orchestration/Layers/CheckpointReactor.ts | 12 +- apps/server/src/orchestration/Layers/OrchestrationEngine.test.ts | 124 +++---- apps/server/src/orchestration/Layers/ProjectionPipeline.test.ts | 604 ++++++++++++++++---------------- apps/server/src/orchestration/Layers/ProjectionPipeline.ts | 2 +- apps/server/src/orchestration/Layers/ProjectionSnapshotQuery.test.ts | 24 +- apps/server/src/orchestration/Layers/ProviderCommandReactor.test.ts | 289 ++++++++------- apps/server/src/orchestration/Layers/ProviderCommandReactor.ts | 4 +- apps/server/src/orchestration/Layers/ProviderRuntimeIngestion.test.ts | 88 +++-- apps/server/src/orchestration/Layers/ProviderRuntimeIngestion.ts | 18 +- apps/server/src/orchestration/Services/CheckpointReactor.ts | 9 +- apps/server/src/orchestration/Services/OrchestrationEngine.ts | 6 +- apps/server/src/orchestration/Services/OrchestrationReactor.ts | 4 +- apps/server/src/orchestration/Services/ProjectionPipeline.ts | 4 +- apps/server/src/orchestration/Services/ProjectionSnapshotQuery.ts | 4 +- apps/server/src/orchestration/Services/ProviderCommandReactor.ts | 4 +- apps/server/src/orchestration/Services/ProviderRuntimeIngestion.ts | 4 +- apps/server/src/orchestration/Services/RuntimeReceiptBus.ts | 9 +- apps/server/src/orchestration/commandInvariants.test.ts | 50 ++- apps/server/src/orchestration/decider.projectScripts.test.ts | 68 ++-- apps/server/src/orchestration/projector.test.ts | 8 +- apps/server/src/persistence/Layers/OrchestrationEventStore.test.ts | 16 +- apps/server/src/persistence/Layers/ProjectionRepositories.test.ts | 10 +- apps/server/src/persistence/Layers/ProjectionThreadMessages.test.ts | 8 +- apps/server/src/persistence/NodeSqliteClient.ts | 20 +- apps/server/src/persistence/Services/AuthPairingLinks.ts | 4 +- apps/server/src/persistence/Services/AuthSessions.ts | 4 +- apps/server/src/persistence/Services/OrchestrationCommandReceipts.ts | 4 +- apps/server/src/persistence/Services/OrchestrationEventStore.ts | 6 +- apps/server/src/persistence/Services/ProjectionCheckpoints.ts | 4 +- apps/server/src/persistence/Services/ProjectionPendingApprovals.ts | 4 +- apps/server/src/persistence/Services/ProjectionProjects.ts | 4 +- apps/server/src/persistence/Services/ProjectionState.ts | 4 +- apps/server/src/persistence/Services/ProjectionThreadActivities.ts | 4 +- apps/server/src/persistence/Services/ProjectionThreadMessages.ts | 4 +- apps/server/src/persistence/Services/ProjectionThreadProposedPlans.ts | 4 +- apps/server/src/persistence/Services/ProjectionThreadSessions.ts | 4 +- apps/server/src/persistence/Services/ProjectionThreads.ts | 4 +- apps/server/src/persistence/Services/ProjectionTurns.ts | 4 +- apps/server/src/persistence/Services/ProviderSessionRuntime.ts | 4 +- apps/server/src/project/Layers/RepositoryIdentityResolver.ts | 24 +- apps/server/src/project/Services/ProjectFaviconResolver.ts | 4 +- apps/server/src/project/Services/ProjectSetupScriptRunner.ts | 4 +- apps/server/src/project/Services/RepositoryIdentityResolver.ts | 4 +- apps/server/src/provider/Layers/ClaudeAdapter.test.ts | 46 ++- apps/server/src/provider/Layers/ClaudeAdapter.ts | 32 +- apps/server/src/provider/Layers/CodexAdapter.test.ts | 16 +- apps/server/src/provider/Layers/CodexAdapter.ts | 18 +- apps/server/src/provider/Layers/EventNdjsonLogger.test.ts | 6 +- apps/server/src/provider/Layers/ProviderRegistry.test.ts | 1 + apps/server/src/provider/Layers/ProviderService.test.ts | 12 +- apps/server/src/provider/Layers/ProviderSessionDirectory.test.ts | 10 +- apps/server/src/provider/Services/ClaudeAdapter.ts | 6 +- apps/server/src/provider/Services/ClaudeProvider.ts | 4 +- apps/server/src/provider/Services/CodexAdapter.ts | 6 +- apps/server/src/provider/Services/CodexProvider.ts | 4 +- apps/server/src/provider/Services/ProviderAdapterRegistry.ts | 4 +- apps/server/src/provider/Services/ProviderRegistry.ts | 4 +- apps/server/src/provider/Services/ProviderService.ts | 6 +- apps/server/src/provider/Services/ProviderSessionDirectory.ts | 4 +- apps/server/src/server.test.ts | 64 ++-- apps/server/src/serverLifecycleEvents.test.ts | 2 +- apps/server/src/serverLifecycleEvents.ts | 4 +- apps/server/src/serverRuntimeStartup.ts | 12 +- apps/server/src/serverSettings.ts | 4 +- apps/server/src/telemetry/Services/AnalyticsService.ts | 4 +- apps/server/src/terminal/Layers/Manager.ts | 4 +- apps/server/src/terminal/Services/Manager.ts | 4 +- apps/server/src/terminal/Services/PTY.ts | 4 +- apps/server/src/workspace/Layers/WorkspaceEntries.ts | 14 +- apps/server/src/workspace/Services/WorkspaceEntries.ts | 4 +- apps/server/src/workspace/Services/WorkspaceFileSystem.ts | 4 +- apps/server/src/workspace/Services/WorkspacePaths.ts | 4 +- apps/server/src/ws.ts | 4 +- apps/web/src/clientPersistenceStorage.test.ts | 2 +- apps/web/src/components/BranchToolbar.logic.test.ts | 4 +- apps/web/src/components/ChatView.browser.tsx | 14 +- apps/web/src/components/ChatView.logic.test.ts | 101 +++--- apps/web/src/components/GitActionsControl.browser.tsx | 2 +- apps/web/src/components/KeybindingsToast.browser.tsx | 2 +- apps/web/src/components/Sidebar.logic.test.ts | 226 ++++++------ apps/web/src/components/ThreadTerminalDrawer.browser.tsx | 2 +- apps/web/src/components/chat/ChangedFilesTree.test.tsx | 4 +- apps/web/src/components/chat/CompactComposerControlsMenu.browser.tsx | 4 +- apps/web/src/components/chat/ComposerPendingTerminalContexts.test.tsx | 2 +- apps/web/src/components/chat/MessagesTimeline.test.tsx | 2 +- apps/web/src/components/chat/MessagesTimeline.virtualization.browser.tsx | 2 +- apps/web/src/components/chat/TraitsPicker.browser.tsx | 6 +- apps/web/src/components/settings/SettingsPanels.browser.tsx | 10 +- apps/web/src/composerDraftStore.test.ts | 44 +-- apps/web/src/composerDraftStore.ts | 29 +- apps/web/src/diffRouteSearch.ts | 2 +- apps/web/src/environmentGrouping.test.ts | 26 +- apps/web/src/environments/primary/bootstrap.test.ts | 2 +- apps/web/src/environments/runtime/catalog.test.ts | 8 +- apps/web/src/environments/runtime/connection.test.ts | 14 +- apps/web/src/environments/runtime/service.addSavedEnvironment.test.ts | 4 +- apps/web/src/environments/runtime/service.ts | 2 +- apps/web/src/historyBootstrap.test.ts | 2 +- apps/web/src/lib/contextWindow.test.ts | 4 +- apps/web/src/lib/gitReactQuery.test.ts | 4 +- apps/web/src/lib/gitStatusState.test.ts | 4 +- apps/web/src/lib/providerReactQuery.test.ts | 4 +- apps/web/src/lib/terminalContext.test.ts | 2 +- apps/web/src/lib/terminalStateCleanup.test.ts | 2 +- apps/web/src/lib/utils.ts | 10 +- apps/web/src/localApi.test.ts | 40 +-- apps/web/src/orchestrationEventEffects.test.ts | 24 +- apps/web/src/projectScripts.ts | 2 +- apps/web/src/routes/_chat.draft.$draftId.tsx | 2 +- apps/web/src/rpc/protocol.ts | 8 +- apps/web/src/rpc/serverState.test.ts | 14 +- apps/web/src/session-logic.test.ts | 86 ++--- apps/web/src/session-logic.ts | 4 +- apps/web/src/store.test.ts | 152 ++++---- apps/web/src/terminalStateStore.test.ts | 2 +- apps/web/src/threadRoutes.test.ts | 4 +- apps/web/src/threadSelectionStore.test.ts | 12 +- apps/web/src/uiStateStore.test.ts | 34 +- apps/web/src/worktreeCleanup.test.ts | 24 +- apps/web/test/authHttpHandlers.ts | 2 +- bun.lock | 28 +- package.json | 14 +- packages/client-runtime/src/knownEnvironment.test.ts | 10 +- packages/contracts/src/baseSchemas.ts | 5 +- packages/contracts/src/environment.ts | 4 +- packages/contracts/src/orchestration.ts | 34 +- packages/contracts/src/providerRuntime.ts | 4 +- packages/contracts/src/settings.ts | 52 +-- packages/contracts/src/terminal.ts | 4 +- packages/shared/src/Net.ts | 4 +- scripts/build-desktop-artifact.test.ts | 45 +++ scripts/build-desktop-artifact.ts | 18 +- scripts/dev-runner.test.ts | 4 +- scripts/dev-runner.ts | 47 +-- 174 files changed, 1853 insertions(+), 1870 deletions(-)