arco-workbench 0.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CONTRIBUTING.md +395 -0
- package/LICENSE +674 -0
- package/README.md +277 -0
- package/client/dist/arco-192.png +0 -0
- package/client/dist/arco-512.png +0 -0
- package/client/dist/arco.icns +0 -0
- package/client/dist/arco.ico +0 -0
- package/client/dist/assets/PhosphorBackdrop-CkVIGkeX.js +84 -0
- package/client/dist/assets/ThemedBackgroundShaderImpl-DHF7CnpE.js +5851 -0
- package/client/dist/assets/XtermView-DYP7pi_n.css +32 -0
- package/client/dist/assets/XtermView-SY0UcZUS.js +10 -0
- package/client/dist/assets/galleryEditor-Ca4F8HiM.js +702 -0
- package/client/dist/assets/index-CcNtMA2y.js +546 -0
- package/client/dist/assets/index-Dl8tYsSp.css +1 -0
- package/client/dist/assets/rough.esm-BCKZ66Jd.js +1 -0
- package/client/dist/backgrounds/LICENSE +18 -0
- package/client/dist/backgrounds/odytty-dark-waves.webp +0 -0
- package/client/dist/favicon.svg +24 -0
- package/client/dist/index.html +18 -0
- package/client/dist/licenses/Everforest-MIT.txt +21 -0
- package/client/dist/manifest.webmanifest +1 -0
- package/client/dist/phosphor-demo/OFL.txt +93 -0
- package/client/dist/phosphor-demo/jetbrains-mono-400.woff2 +0 -0
- package/client/dist/phosphor-demo/jetbrains-mono-700.woff2 +0 -0
- package/client/dist/phosphor-demo/jetbrains-mono-800.woff2 +0 -0
- package/client/dist/themes/deckle.svg +20 -0
- package/client/dist/themes/excalifont/Excalifont-Regular.woff2 +0 -0
- package/client/dist/themes/excalifont/OFL.txt +92 -0
- package/client/dist/themes/victor-mono/OFL.txt +93 -0
- package/client/dist/themes/victor-mono/VictorMono-Bold.otf +0 -0
- package/client/dist/themes/victor-mono/VictorMono-BoldOblique.otf +0 -0
- package/client/dist/themes/victor-mono/VictorMono-Medium.otf +0 -0
- package/client/dist/themes/victor-mono/VictorMono-MediumOblique.otf +0 -0
- package/client/dist/themes/victor-mono/VictorMono-Oblique.otf +0 -0
- package/client/dist/themes/victor-mono/VictorMono-Regular.otf +0 -0
- package/client/dist/themes/victor-mono/VictorMono-SemiBold.otf +0 -0
- package/client/dist/themes/victor-mono/VictorMono-SemiBoldOblique.otf +0 -0
- package/client/dist/voice-capture.js +145 -0
- package/client/dist/voice-setup-capture.js +16 -0
- package/client/src/App.tsx +1009 -0
- package/client/src/alerts/desktopAlerts.ts +49 -0
- package/client/src/alerts/waiting.ts +23 -0
- package/client/src/brief/briefFacts.ts +145 -0
- package/client/src/brief/briefFromStore.ts +46 -0
- package/client/src/buildCheck.ts +34 -0
- package/client/src/components/AppUpdateNotice.tsx +33 -0
- package/client/src/components/ArtifactModal.tsx +259 -0
- package/client/src/components/ArtifactPill.tsx +113 -0
- package/client/src/components/AskUserQuestionNotice.tsx +200 -0
- package/client/src/components/AttachmentPill.tsx +41 -0
- package/client/src/components/AuthOverlay.tsx +3 -0
- package/client/src/components/AuthReloginNotice.tsx +185 -0
- package/client/src/components/AutoCompactionThreshold/index.tsx +25 -0
- package/client/src/components/BriefControl.tsx +174 -0
- package/client/src/components/CatchMeUp.tsx +87 -0
- package/client/src/components/ChatMessage.tsx +960 -0
- package/client/src/components/ChatModeView.tsx +428 -0
- package/client/src/components/ChatPanel.tsx +596 -0
- package/client/src/components/CheckpointActions.tsx +221 -0
- package/client/src/components/ClaudeNativeAuthRow.tsx +86 -0
- package/client/src/components/ClusterActivityTab.tsx +820 -0
- package/client/src/components/ClusterComposerButtons.tsx +54 -0
- package/client/src/components/ClusterMemberPicker.tsx +180 -0
- package/client/src/components/ClusterPlanTab.tsx +895 -0
- package/client/src/components/ClusterRightPanel/AddWorkerSection.tsx +518 -0
- package/client/src/components/ClusterRightPanel/AutoPickupControl.tsx +267 -0
- package/client/src/components/ClusterRightPanel/ClusterHandoffsTab.tsx +58 -0
- package/client/src/components/ClusterRightPanel/ClusterReviewsList.tsx +220 -0
- package/client/src/components/ClusterRightPanel/EfficiencyControl.tsx +126 -0
- package/client/src/components/ClusterRightPanel/MailboxModal.tsx +174 -0
- package/client/src/components/ClusterRightPanel/MemberRow.tsx +683 -0
- package/client/src/components/ClusterRightPanel/MessageGuardControl.tsx +25 -0
- package/client/src/components/ClusterRightPanel/ProgressControl.tsx +58 -0
- package/client/src/components/ClusterRightPanel/ProjectTrustChip.tsx +67 -0
- package/client/src/components/ClusterRightPanel/ReplaceMemberDialog.tsx +309 -0
- package/client/src/components/ClusterRightPanel/index.tsx +1125 -0
- package/client/src/components/ClusterRightPanel/types.ts +219 -0
- package/client/src/components/ClusterTab.tsx +1369 -0
- package/client/src/components/ClusterTaskBoardTab.tsx +2904 -0
- package/client/src/components/CommandPalette.tsx +405 -0
- package/client/src/components/ComputerActivityPanel.tsx +36 -0
- package/client/src/components/ComputerAgentPicker.tsx +49 -0
- package/client/src/components/ComputerAutomationSection.tsx +22 -0
- package/client/src/components/ComputerComposer.tsx +55 -0
- package/client/src/components/ComputerMonitoringPanels.tsx +57 -0
- package/client/src/components/ComputerPanel.tsx +142 -0
- package/client/src/components/ComputerScriptsPanel.tsx +43 -0
- package/client/src/components/Connections/Connections.tsx +215 -0
- package/client/src/components/Connections/EndpointEditor.tsx +38 -0
- package/client/src/components/Connections/LocalCapacityEditor.tsx +36 -0
- package/client/src/components/Connections/connections.css +18 -0
- package/client/src/components/Connections/model.ts +80 -0
- package/client/src/components/ContextMeter.tsx +230 -0
- package/client/src/components/ConversationMenu.tsx +467 -0
- package/client/src/components/CursorIncludedGauge.tsx +79 -0
- package/client/src/components/CursorModelSelect.tsx +179 -0
- package/client/src/components/DeepSeekControls.tsx +51 -0
- package/client/src/components/DiagnosticsTab.tsx +259 -0
- package/client/src/components/DocsUpdateDialog.tsx +159 -0
- package/client/src/components/DragOverlay.tsx +82 -0
- package/client/src/components/DuplicateTabOverlay.tsx +79 -0
- package/client/src/components/EndpointHelp.tsx +29 -0
- package/client/src/components/ErrorBoundary.tsx +106 -0
- package/client/src/components/ExistingClustersList.tsx +181 -0
- package/client/src/components/FileExplorer.tsx +401 -0
- package/client/src/components/FileViewerModal.tsx +552 -0
- package/client/src/components/FirstRun.tsx +181 -0
- package/client/src/components/ForwardMessages.tsx +91 -0
- package/client/src/components/FreeVramButton.tsx +39 -0
- package/client/src/components/GateApprovalNotice.tsx +217 -0
- package/client/src/components/GenerationSpeedReadout.tsx +28 -0
- package/client/src/components/GitDialog.tsx +832 -0
- package/client/src/components/GitHubPanel/BranchesList.tsx +35 -0
- package/client/src/components/GitHubPanel/Breadcrumbs.tsx +26 -0
- package/client/src/components/GitHubPanel/CodeView.tsx +731 -0
- package/client/src/components/GitHubPanel/CommitView.tsx +48 -0
- package/client/src/components/GitHubPanel/GhFilesDiff.tsx +58 -0
- package/client/src/components/GitHubPanel/IssueView.tsx +202 -0
- package/client/src/components/GitHubPanel/PullView.tsx +408 -0
- package/client/src/components/GitHubPanel/RepoView.tsx +244 -0
- package/client/src/components/GitHubPanel/ReposView.tsx +76 -0
- package/client/src/components/GitHubPanel/RunView.tsx +128 -0
- package/client/src/components/GitHubPanel/ghDiff.ts +53 -0
- package/client/src/components/GitHubPanel/index.tsx +124 -0
- package/client/src/components/GitHubPanel/shared.tsx +415 -0
- package/client/src/components/GitHubPanel/types.ts +38 -0
- package/client/src/components/GitOtherWork.tsx +84 -0
- package/client/src/components/HandoffDialog.tsx +517 -0
- package/client/src/components/HandoffList.tsx +227 -0
- package/client/src/components/HandoffPromptsEditor.tsx +373 -0
- package/client/src/components/HandoffSeedPill.tsx +146 -0
- package/client/src/components/HeaderAuthChip.tsx +186 -0
- package/client/src/components/HeaderDropdown.tsx +162 -0
- package/client/src/components/HeaderVersionBox.tsx +99 -0
- package/client/src/components/HelpMenu.tsx +15 -0
- package/client/src/components/HistoryTab.tsx +657 -0
- package/client/src/components/Home/AddProject.tsx +75 -0
- package/client/src/components/Home/HomeStatus.tsx +34 -0
- package/client/src/components/Home/HomeView.tsx +258 -0
- package/client/src/components/Home/LocationDialog.tsx +27 -0
- package/client/src/components/Home/ProjectCard.tsx +249 -0
- package/client/src/components/Home/home.css +104 -0
- package/client/src/components/Home/homeStyles.ts +16 -0
- package/client/src/components/Home/projectApi.ts +24 -0
- package/client/src/components/HubLinkChip.tsx +79 -0
- package/client/src/components/LlamacppCatalogEditor.tsx +488 -0
- package/client/src/components/LoginCommand.tsx +84 -0
- package/client/src/components/LoginFlow.tsx +156 -0
- package/client/src/components/LongUserMessage.tsx +152 -0
- package/client/src/components/MdTuneupDialog.tsx +288 -0
- package/client/src/components/MediaAccessSettings.tsx +176 -0
- package/client/src/components/MemberCard.tsx +229 -0
- package/client/src/components/MemberPane.tsx +204 -0
- package/client/src/components/ModelHealthPanel.tsx +386 -0
- package/client/src/components/NativeLoginControls.tsx +22 -0
- package/client/src/components/NeedsYouBadge.tsx +158 -0
- package/client/src/components/NorthStarBar.tsx +172 -0
- package/client/src/components/NotificationCenter.tsx +181 -0
- package/client/src/components/NotificationChannelsSettings.tsx +123 -0
- package/client/src/components/NotificationToasts.tsx +126 -0
- package/client/src/components/OllamaReleasesModal.tsx +5 -0
- package/client/src/components/OperatorQuestionNotice.tsx +48 -0
- package/client/src/components/PendingQuestionsButton.tsx +33 -0
- package/client/src/components/PlanBodyRenderer.tsx +332 -0
- package/client/src/components/PlanCandidateBanner.tsx +200 -0
- package/client/src/components/PlanComposerDialog.tsx +157 -0
- package/client/src/components/PlanReviewPicker.tsx +415 -0
- package/client/src/components/PreviewTab.tsx +780 -0
- package/client/src/components/PrimaryStatus.tsx +81 -0
- package/client/src/components/PriorSessionsSection.tsx +68 -0
- package/client/src/components/ProjectLocationForm.tsx +43 -0
- package/client/src/components/ProjectRootsSettings.tsx +43 -0
- package/client/src/components/ProjectsSettings.tsx +94 -0
- package/client/src/components/ProviderOutageBanner.tsx +113 -0
- package/client/src/components/ProviderReleasesModal.tsx +242 -0
- package/client/src/components/ProvidersPopover.tsx +326 -0
- package/client/src/components/PurgeConversationModal.tsx +136 -0
- package/client/src/components/QueuedMessagesIndicator.tsx +396 -0
- package/client/src/components/Recall/RecallResultRow.tsx +252 -0
- package/client/src/components/Recall/RecallView.tsx +434 -0
- package/client/src/components/ResearchDialog.tsx +159 -0
- package/client/src/components/ReviewDialog.tsx +628 -0
- package/client/src/components/RightPanel/ActivityTab.tsx +709 -0
- package/client/src/components/RightPanel/BakeoffTab.tsx +454 -0
- package/client/src/components/RightPanel/BlastRadiusTab.tsx +70 -0
- package/client/src/components/RightPanel/CodebaseMemorySection.tsx +187 -0
- package/client/src/components/RightPanel/ConfigTab.tsx +3044 -0
- package/client/src/components/RightPanel/FilesTab.tsx +484 -0
- package/client/src/components/RightPanel/GenesisTab.tsx +522 -0
- package/client/src/components/RightPanel/HandoffsTab.tsx +49 -0
- package/client/src/components/RightPanel/KnowledgeTab.tsx +243 -0
- package/client/src/components/RightPanel/KnowledgeWizard.tsx +230 -0
- package/client/src/components/RightPanel/LedgerLinks.tsx +186 -0
- package/client/src/components/RightPanel/LedgerTab.tsx +407 -0
- package/client/src/components/RightPanel/McpRegistrySection.tsx +313 -0
- package/client/src/components/RightPanel/MoveTargetModal.tsx +151 -0
- package/client/src/components/RightPanel/OutputsPanel.tsx +232 -0
- package/client/src/components/RightPanel/PlanListRow.tsx +118 -0
- package/client/src/components/RightPanel/PlanTab.tsx +820 -0
- package/client/src/components/RightPanel/PlanWorkflowsSection.tsx +106 -0
- package/client/src/components/RightPanel/ResearchTab.tsx +214 -0
- package/client/src/components/RightPanel/ReviewTab.tsx +454 -0
- package/client/src/components/RightPanel/UsageTab.tsx +395 -0
- package/client/src/components/RightPanel/format.ts +173 -0
- package/client/src/components/RightPanel/index.tsx +434 -0
- package/client/src/components/RightPanel/reviewFindings.ts +89 -0
- package/client/src/components/RightPanel/types.ts +85 -0
- package/client/src/components/RunAsPicker.tsx +279 -0
- package/client/src/components/RuntimeStateBanner.tsx +139 -0
- package/client/src/components/SavedClustersList.tsx +312 -0
- package/client/src/components/ServicesTab.tsx +692 -0
- package/client/src/components/SettingsPanel.tsx +2846 -0
- package/client/src/components/ShortcutCheatSheet.tsx +178 -0
- package/client/src/components/ShutdownOverlay.tsx +115 -0
- package/client/src/components/SkillEditorDialog.tsx +404 -0
- package/client/src/components/SpawnDialog.tsx +555 -0
- package/client/src/components/SpawnSeedPill.tsx +163 -0
- package/client/src/components/StaleBuildBanner.tsx +31 -0
- package/client/src/components/SyncingOverlay.tsx +26 -0
- package/client/src/components/SystemHeader.tsx +350 -0
- package/client/src/components/SystemModal.tsx +193 -0
- package/client/src/components/TabBar.tsx +649 -0
- package/client/src/components/TabContextMenu.tsx +607 -0
- package/client/src/components/TabStatusChip.tsx +71 -0
- package/client/src/components/TaskCard.tsx +233 -0
- package/client/src/components/TasksPanel.tsx +196 -0
- package/client/src/components/Terminal/FloatingTerminalWindow.tsx +286 -0
- package/client/src/components/Terminal/FloatingWindow.tsx +175 -0
- package/client/src/components/Terminal/TerminalPopout.tsx +117 -0
- package/client/src/components/Terminal/XtermView.tsx +351 -0
- package/client/src/components/Terminal/XtermViewLazy.tsx +47 -0
- package/client/src/components/Terminal/composerBridge.ts +37 -0
- package/client/src/components/Terminal/detectCommand.ts +81 -0
- package/client/src/components/TerminalInput.tsx +2509 -0
- package/client/src/components/TerminalSessions.tsx +42 -0
- package/client/src/components/ThemedBackgroundShader.tsx +46 -0
- package/client/src/components/ThemedBackgroundShaderImpl.tsx +395 -0
- package/client/src/components/TidyComposer.tsx +103 -0
- package/client/src/components/TokenBadge.tsx +117 -0
- package/client/src/components/ToolCallPill.tsx +231 -0
- package/client/src/components/ToolboxMenu.tsx +66 -0
- package/client/src/components/TranscriptSendDialog.tsx +274 -0
- package/client/src/components/UpdateAction.tsx +89 -0
- package/client/src/components/UpdateResultNotice.tsx +30 -0
- package/client/src/components/UsageBar.tsx +552 -0
- package/client/src/components/UserManual/components.tsx +174 -0
- package/client/src/components/UserManual/index.tsx +437 -0
- package/client/src/components/UserManual/manual.css +56 -0
- package/client/src/components/UserManual/manualTypes.ts +26 -0
- package/client/src/components/UtilityAgentPicker.tsx +173 -0
- package/client/src/components/VoiceControl.tsx +192 -0
- package/client/src/components/VoiceMenu.tsx +59 -0
- package/client/src/components/VoiceOutputPicker.tsx +85 -0
- package/client/src/components/VoiceSetupSettings.tsx +199 -0
- package/client/src/components/WorkerCard.tsx +342 -0
- package/client/src/components/WorkerDetailModal.tsx +530 -0
- package/client/src/components/WorkflowCreator/ClusterMembersSection.tsx +497 -0
- package/client/src/components/WorkflowCreator/ClusterPresetsRow.tsx +198 -0
- package/client/src/components/WorkflowCreator/ClusterTemplatePicker.tsx +145 -0
- package/client/src/components/WorkflowCreator/PastChatsList.tsx +78 -0
- package/client/src/components/WorkflowCreator/ProjectPicker.tsx +55 -0
- package/client/src/components/WorkflowCreator/TemplatePickerRow.tsx +209 -0
- package/client/src/components/WorkflowCreator/clusterTemplates.ts +60 -0
- package/client/src/components/WorkflowCreator/index.tsx +1945 -0
- package/client/src/components/WorkflowCreator/memberProviders.ts +83 -0
- package/client/src/components/WorkflowCreator/modelOptions.ts +59 -0
- package/client/src/components/WorkflowCreator/pendingTemplateApply.ts +35 -0
- package/client/src/components/WorkflowCreator/permissionNotes.ts +4 -0
- package/client/src/components/WorkflowCreator/projectName.ts +13 -0
- package/client/src/components/WorkflowCreator/types.ts +116 -0
- package/client/src/components/WorkflowStatusChip.tsx +113 -0
- package/client/src/components/WorkflowView.tsx +304 -0
- package/client/src/components/WorkingDirectoryDefault.tsx +30 -0
- package/client/src/components/WorkspaceRename.tsx +48 -0
- package/client/src/components/clusterActivity.helpers.ts +66 -0
- package/client/src/components/clusterNeedsYou.ts +125 -0
- package/client/src/components/clusterSurface.helpers.ts +40 -0
- package/client/src/components/clusterTaskBoard.helpers.ts +59 -0
- package/client/src/components/compare/CompareDialog.tsx +213 -0
- package/client/src/components/compare/CompareDialogHost.tsx +35 -0
- package/client/src/components/compare/CompareGrid.tsx +99 -0
- package/client/src/components/compare/CompareOverlay.tsx +99 -0
- package/client/src/components/compare/CompareVote.tsx +62 -0
- package/client/src/components/composer/contextRefs.ts +115 -0
- package/client/src/components/composer/killLine.ts +28 -0
- package/client/src/components/dev/MemoryHud.tsx +79 -0
- package/client/src/components/diff/ChangesPanel.tsx +66 -0
- package/client/src/components/diff/CompareRemotePanel.tsx +377 -0
- package/client/src/components/diff/DiffView.tsx +159 -0
- package/client/src/components/diff/GitOpsBar.tsx +225 -0
- package/client/src/components/diff/LiveChangesPanel.tsx +527 -0
- package/client/src/components/diff/WorkingChangesPanel.tsx +290 -0
- package/client/src/components/diff/diff-view.css +142 -0
- package/client/src/components/editor/AiEditAffordance.tsx +255 -0
- package/client/src/components/editor/CodeEditor.tsx +203 -0
- package/client/src/components/headerActionStyle.ts +7 -0
- package/client/src/components/help/DocRef.tsx +61 -0
- package/client/src/components/help/DocViewer.tsx +249 -0
- package/client/src/components/help/HelpBanner.tsx +53 -0
- package/client/src/components/help/HelpButton.tsx +175 -0
- package/client/src/components/help/HelpCard.tsx +210 -0
- package/client/src/components/help/HelpPopover.tsx +169 -0
- package/client/src/components/help/ModalHelpButton.tsx +45 -0
- package/client/src/components/media/AudioEditor/AudioEditor.tsx +289 -0
- package/client/src/components/media/AudioEditor/AudioOpsPanel.tsx +238 -0
- package/client/src/components/media/AudioEditor/index.ts +2 -0
- package/client/src/components/media/DirectoryPicker.tsx +226 -0
- package/client/src/components/media/ImageEditor/ImageEditor.tsx +253 -0
- package/client/src/components/media/ImageEditor/index.ts +1 -0
- package/client/src/components/media/MediaAdvancedOps.tsx +261 -0
- package/client/src/components/media/MediaModalHost.tsx +621 -0
- package/client/src/components/media/MediaSaveControls.tsx +72 -0
- package/client/src/components/media/MediaStemsControls.tsx +149 -0
- package/client/src/components/media/VideoEditor/VideoEditor.tsx +215 -0
- package/client/src/components/media/VideoEditor/VideoOpsPanel.tsx +240 -0
- package/client/src/components/media/VideoEditor/index.ts +2 -0
- package/client/src/components/media/launchers.ts +60 -0
- package/client/src/components/media/postMediaOp.ts +158 -0
- package/client/src/components/plans/PlanRefsSection.tsx +312 -0
- package/client/src/components/plans/planRefs.ts +83 -0
- package/client/src/components/primitives/Panel.tsx +297 -0
- package/client/src/components/primitives/StatusLight.tsx +74 -0
- package/client/src/components/settings/AppVersionSection.tsx +36 -0
- package/client/src/components/settings/SettingsLayout.tsx +179 -0
- package/client/src/components/settings/navigation.ts +86 -0
- package/client/src/components/settings/settings.css +26 -0
- package/client/src/components/terminalInput/compare.ts +23 -0
- package/client/src/components/terminalInput/planDraft.ts +23 -0
- package/client/src/components/terminalInput/research.ts +46 -0
- package/client/src/components/usageVisibility.ts +10 -0
- package/client/src/components/utilityResult.ts +19 -0
- package/client/src/components/workSurface/WorkSurfaceControls.tsx +57 -0
- package/client/src/components/workSurface/workSurface.css +4 -0
- package/client/src/explorer/ArtifactsLens.tsx +171 -0
- package/client/src/explorer/ExplorerApp.tsx +177 -0
- package/client/src/explorer/PlansLens.tsx +271 -0
- package/client/src/explorer/RecentsLens.tsx +202 -0
- package/client/src/explorer/launch.ts +37 -0
- package/client/src/explorer/types.ts +118 -0
- package/client/src/help/content/chat.tsx +73 -0
- package/client/src/help/content/cluster.tsx +1287 -0
- package/client/src/help/content/composer.tsx +621 -0
- package/client/src/help/content/gitOps.tsx +84 -0
- package/client/src/help/content/github.tsx +76 -0
- package/client/src/help/content/header.tsx +497 -0
- package/client/src/help/content/index.tsx +35 -0
- package/client/src/help/content/media.tsx +469 -0
- package/client/src/help/content/misc.tsx +1912 -0
- package/client/src/help/content/recall.tsx +242 -0
- package/client/src/help/content/rightPanel.tsx +870 -0
- package/client/src/help/content/settings.tsx +505 -0
- package/client/src/help/content/shared.tsx +38 -0
- package/client/src/help/content/tabbar.tsx +73 -0
- package/client/src/help/helpContent.tsx +2 -0
- package/client/src/help/manualSections/actions.tsx +706 -0
- package/client/src/help/manualSections/chat.tsx +158 -0
- package/client/src/help/manualSections/clusters.tsx +2149 -0
- package/client/src/help/manualSections/configuration.tsx +1007 -0
- package/client/src/help/manualSections/deepseek.tsx +124 -0
- package/client/src/help/manualSections/gettingStarted.tsx +374 -0
- package/client/src/help/manualSections/index.tsx +42 -0
- package/client/src/help/manualSections/maintenance.tsx +218 -0
- package/client/src/help/manualSections/media.tsx +191 -0
- package/client/src/help/manualSections/plans.tsx +341 -0
- package/client/src/help/manualSections/powerFeatures.tsx +869 -0
- package/client/src/help/manualSections/providers.tsx +944 -0
- package/client/src/help/manualSections/reference.tsx +305 -0
- package/client/src/help/manualSections/strata.tsx +152 -0
- package/client/src/help/manualSections/troubleshooting.tsx +524 -0
- package/client/src/help/manualSections/voice.tsx +739 -0
- package/client/src/help/manualSections/workflows.tsx +294 -0
- package/client/src/help/manualSections/workspace.tsx +732 -0
- package/client/src/help/openManualSection.ts +21 -0
- package/client/src/help/shortcuts.ts +52 -0
- package/client/src/help/useHelpMode.ts +80 -0
- package/client/src/hooks/useClaudeNativeLogin.ts +117 -0
- package/client/src/hooks/useClusterPresets.ts +76 -0
- package/client/src/hooks/useCodexCatalog.ts +17 -0
- package/client/src/hooks/useProjectTrust.ts +70 -0
- package/client/src/hooks/useTabSingleton.ts +65 -0
- package/client/src/hooks/useTemplates.ts +77 -0
- package/client/src/hooks/useTension.ts +95 -0
- package/client/src/hooks/useTerminalTarget.ts +38 -0
- package/client/src/hooks/useWebSocket.ts +1486 -0
- package/client/src/main.tsx +56 -0
- package/client/src/phosphor-demo/Ambient.tsx +1 -0
- package/client/src/phosphor-demo/Demo.tsx +237 -0
- package/client/src/phosphor-demo/arco-palette.ts +1 -0
- package/client/src/phosphor-demo/demo.css +226 -0
- package/client/src/phosphor-demo/emission.ts +1 -0
- package/client/src/phosphor-demo/main.ts +31 -0
- package/client/src/phosphor-demo/paletteAdapter.ts +1 -0
- package/client/src/questions/waitingQuestion.ts +33 -0
- package/client/src/recall/closeSummary.ts +35 -0
- package/client/src/runtime/runtimeState.ts +183 -0
- package/client/src/stores/appStore.ts +2036 -0
- package/client/src/stores/appStore.types.ts +1069 -0
- package/client/src/stores/appUpdateStore.ts +39 -0
- package/client/src/stores/boardTaskRequest.ts +20 -0
- package/client/src/stores/chatFollowStore.ts +8 -0
- package/client/src/stores/clusterSnapshotsStore.ts +198 -0
- package/client/src/stores/compareStore.ts +166 -0
- package/client/src/stores/computerStore.ts +35 -0
- package/client/src/stores/docEditStore.ts +158 -0
- package/client/src/stores/draftStore.ts +95 -0
- package/client/src/stores/hubLinkStore.ts +31 -0
- package/client/src/stores/knowledgeDistillStore.ts +94 -0
- package/client/src/stores/liveChangesStore.ts +57 -0
- package/client/src/stores/mdTuneupStore.ts +184 -0
- package/client/src/stores/memoryTrim.ts +243 -0
- package/client/src/stores/messageSelectionStore.ts +26 -0
- package/client/src/stores/notificationChannelsStore.ts +39 -0
- package/client/src/stores/notificationStore.ts +45 -0
- package/client/src/stores/orchestrationAssistStore.ts +94 -0
- package/client/src/stores/persistence.ts +58 -0
- package/client/src/stores/recallStore.ts +244 -0
- package/client/src/stores/selectors.ts +79 -0
- package/client/src/stores/sessionIndexStore.ts +92 -0
- package/client/src/stores/startupStore.ts +40 -0
- package/client/src/stores/tabStatusStore.ts +58 -0
- package/client/src/stores/terminalStore.ts +225 -0
- package/client/src/styles/contextual-help.css +84 -0
- package/client/src/styles/global.css +270 -0
- package/client/src/styles/matrix.css +1289 -0
- package/client/src/themes/apply.ts +341 -0
- package/client/src/themes/bootstrap.ts +191 -0
- package/client/src/themes/definitions/abyssal.ts +88 -0
- package/client/src/themes/definitions/amberCrt.ts +103 -0
- package/client/src/themes/definitions/arch.ts +126 -0
- package/client/src/themes/definitions/arcoDefault.ts +117 -0
- package/client/src/themes/definitions/arcoJungle.ts +85 -0
- package/client/src/themes/definitions/arrakis.ts +98 -0
- package/client/src/themes/definitions/aurora.ts +88 -0
- package/client/src/themes/definitions/bloodmoon.ts +98 -0
- package/client/src/themes/definitions/blueprint.ts +93 -0
- package/client/src/themes/definitions/braun.ts +96 -0
- package/client/src/themes/definitions/cassetteFuturism.ts +93 -0
- package/client/src/themes/definitions/cherenkov.ts +90 -0
- package/client/src/themes/definitions/cicada.ts +90 -0
- package/client/src/themes/definitions/concrete.ts +95 -0
- package/client/src/themes/definitions/copper.ts +78 -0
- package/client/src/themes/definitions/cute.ts +81 -0
- package/client/src/themes/definitions/darkAcademia.ts +106 -0
- package/client/src/themes/definitions/dsky.ts +95 -0
- package/client/src/themes/definitions/everforest.ts +110 -0
- package/client/src/themes/definitions/forest.ts +78 -0
- package/client/src/themes/definitions/frutigerAero.ts +115 -0
- package/client/src/themes/definitions/holographic.ts +100 -0
- package/client/src/themes/definitions/infrared.ts +88 -0
- package/client/src/themes/definitions/kintsugi.ts +93 -0
- package/client/src/themes/definitions/lavender.ts +87 -0
- package/client/src/themes/definitions/matrix.ts +103 -0
- package/client/src/themes/definitions/midnightTokyo.ts +90 -0
- package/client/src/themes/definitions/nebula.ts +91 -0
- package/client/src/themes/definitions/nightCity.ts +92 -0
- package/client/src/themes/definitions/noir.ts +96 -0
- package/client/src/themes/definitions/ocean.ts +78 -0
- package/client/src/themes/definitions/oscilloscope.ts +96 -0
- package/client/src/themes/definitions/redPlanet.ts +112 -0
- package/client/src/themes/definitions/seismograph.ts +88 -0
- package/client/src/themes/definitions/sentinel.ts +91 -0
- package/client/src/themes/definitions/solarPaper.ts +103 -0
- package/client/src/themes/definitions/sonar.ts +90 -0
- package/client/src/themes/definitions/stealth.ts +92 -0
- package/client/src/themes/definitions/tarkovsky.ts +90 -0
- package/client/src/themes/definitions/ume.ts +78 -0
- package/client/src/themes/definitions/unfinishedWorks.ts +117 -0
- package/client/src/themes/definitions/voyager.ts +88 -0
- package/client/src/themes/fontPacks.ts +343 -0
- package/client/src/themes/phosphor/Ambient.tsx +108 -0
- package/client/src/themes/phosphor/PhosphorBackdrop.tsx +5 -0
- package/client/src/themes/phosphor/PhosphorControls.tsx +42 -0
- package/client/src/themes/phosphor/ambient.frag.glsl +83 -0
- package/client/src/themes/phosphor/arco-palette.ts +153 -0
- package/client/src/themes/phosphor/emission.ts +8 -0
- package/client/src/themes/phosphor/paletteAdapter.ts +54 -0
- package/client/src/themes/phosphor/phosphor.css +36 -0
- package/client/src/themes/phosphor/preferences.ts +23 -0
- package/client/src/themes/providerThemes.ts +196 -0
- package/client/src/themes/registry.ts +116 -0
- package/client/src/themes/shaders/amberCRT.frag.glsl +60 -0
- package/client/src/themes/shaders/aurora.frag.glsl +48 -0
- package/client/src/themes/shaders/bloodmoon.frag.glsl +33 -0
- package/client/src/themes/shaders/blueprintGrid.frag.glsl +57 -0
- package/client/src/themes/shaders/carbonWeave.frag.glsl +56 -0
- package/client/src/themes/shaders/cherenkov.frag.glsl +45 -0
- package/client/src/themes/shaders/cicada.frag.glsl +86 -0
- package/client/src/themes/shaders/concrete.frag.glsl +53 -0
- package/client/src/themes/shaders/dskyBloom.frag.glsl +33 -0
- package/client/src/themes/shaders/filmGrain.frag.glsl +34 -0
- package/client/src/themes/shaders/heatHaze.frag.glsl +65 -0
- package/client/src/themes/shaders/infrared.frag.glsl +68 -0
- package/client/src/themes/shaders/kintsugi.frag.glsl +81 -0
- package/client/src/themes/shaders/liquidGlass.frag.glsl +73 -0
- package/client/src/themes/shaders/marineSnow.frag.glsl +62 -0
- package/client/src/themes/shaders/matrixRain.frag.glsl +128 -0
- package/client/src/themes/shaders/nebula.frag.glsl +47 -0
- package/client/src/themes/shaders/nightCity.frag.glsl +80 -0
- package/client/src/themes/shaders/oscilloscope.frag.glsl +40 -0
- package/client/src/themes/shaders/penAndInk.frag.glsl +71 -0
- package/client/src/themes/shaders/rainGlass.frag.glsl +51 -0
- package/client/src/themes/shaders/sakuraPetals.frag.glsl +75 -0
- package/client/src/themes/shaders/seismograph.frag.glsl +86 -0
- package/client/src/themes/shaders/sentinel.frag.glsl +54 -0
- package/client/src/themes/shaders/sonar.frag.glsl +53 -0
- package/client/src/themes/shaders/starDrift.frag.glsl +49 -0
- package/client/src/themes/shaders/tapeDrift.frag.glsl +36 -0
- package/client/src/themes/shaders/tarkovsky.frag.glsl +40 -0
- package/client/src/themes/shaders/util.ts +28 -0
- package/client/src/themes/shaders/watercolor.frag.glsl +69 -0
- package/client/src/themes/types.ts +120 -0
- package/client/src/utils/chatFileLinks.ts +101 -0
- package/client/src/utils/chatText.ts +199 -0
- package/client/src/utils/claudeAllowance.ts +54 -0
- package/client/src/utils/claudeAuth.ts +74 -0
- package/client/src/utils/clusterNudge.ts +4 -0
- package/client/src/utils/completeOnboarding.ts +13 -0
- package/client/src/utils/computerAvailability.ts +20 -0
- package/client/src/utils/displayMessages.ts +262 -0
- package/client/src/utils/effortDefaults.ts +59 -0
- package/client/src/utils/eventTranscript.ts +147 -0
- package/client/src/utils/format.ts +268 -0
- package/client/src/utils/gateArgs.ts +33 -0
- package/client/src/utils/gitPushTarget.ts +10 -0
- package/client/src/utils/historyEvents.ts +210 -0
- package/client/src/utils/homeModel.ts +245 -0
- package/client/src/utils/linkify.tsx +44 -0
- package/client/src/utils/messageBoxSize.ts +47 -0
- package/client/src/utils/modelCatalog.ts +120 -0
- package/client/src/utils/operatorLabel.ts +10 -0
- package/client/src/utils/outputNavigation.ts +18 -0
- package/client/src/utils/pointer.ts +14 -0
- package/client/src/utils/projectLocations.ts +32 -0
- package/client/src/utils/rafThrottle.ts +64 -0
- package/client/src/utils/secondOpinionTally.ts +39 -0
- package/client/src/utils/spawnMemberName.ts +17 -0
- package/client/src/utils/startupGate.ts +145 -0
- package/client/src/utils/tabStatus.ts +38 -0
- package/client/src/utils/themeScramble.ts +165 -0
- package/client/src/utils/transcriptFormat.ts +61 -0
- package/client/src/utils/turnStep.ts +20 -0
- package/client/src/utils/uploadAttachment.ts +80 -0
- package/client/src/utils/usageFormat.ts +24 -0
- package/client/src/utils/worktreeNavigation.ts +43 -0
- package/client/src/utils/wsSession.ts +59 -0
- package/client/src/vendor/odysseus-editor/LICENSE +21 -0
- package/client/src/vendor/odysseus-editor/VENDOR.md +189 -0
- package/client/src/vendor/odysseus-editor/colorPicker.js +454 -0
- package/client/src/vendor/odysseus-editor/dragSort.js +266 -0
- package/client/src/vendor/odysseus-editor/editor/build/controls.js +366 -0
- package/client/src/vendor/odysseus-editor/editor/build/popups.js +112 -0
- package/client/src/vendor/odysseus-editor/editor/build/right-panel.js +201 -0
- package/client/src/vendor/odysseus-editor/editor/build/toolbar.js +73 -0
- package/client/src/vendor/odysseus-editor/editor/build/topbar.js +131 -0
- package/client/src/vendor/odysseus-editor/editor/build/transform-popup.js +109 -0
- package/client/src/vendor/odysseus-editor/editor/canvas-coords.js +21 -0
- package/client/src/vendor/odysseus-editor/editor/canvas-events.js +200 -0
- package/client/src/vendor/odysseus-editor/editor/canvas-transforms.js +132 -0
- package/client/src/vendor/odysseus-editor/editor/checkerboard.js +24 -0
- package/client/src/vendor/odysseus-editor/editor/clipboard-and-drop.js +133 -0
- package/client/src/vendor/odysseus-editor/editor/composite-helpers.js +83 -0
- package/client/src/vendor/odysseus-editor/editor/filters/blur.js +118 -0
- package/client/src/vendor/odysseus-editor/editor/filters/edge-feather.js +70 -0
- package/client/src/vendor/odysseus-editor/editor/fx/adj-popup.js +681 -0
- package/client/src/vendor/odysseus-editor/editor/fx/filter-string.js +38 -0
- package/client/src/vendor/odysseus-editor/editor/fx/histogram.js +67 -0
- package/client/src/vendor/odysseus-editor/editor/fx/pixel-pass.js +249 -0
- package/client/src/vendor/odysseus-editor/editor/harmonize-masks.js +116 -0
- package/client/src/vendor/odysseus-editor/editor/history-panel.js +178 -0
- package/client/src/vendor/odysseus-editor/editor/keyboard-shortcuts.js +266 -0
- package/client/src/vendor/odysseus-editor/editor/layer-helpers.js +131 -0
- package/client/src/vendor/odysseus-editor/editor/layer-panel.js +600 -0
- package/client/src/vendor/odysseus-editor/editor/mask-utils.js +91 -0
- package/client/src/vendor/odysseus-editor/editor/shortcuts-popover.js +152 -0
- package/client/src/vendor/odysseus-editor/editor/slider-ux.js +192 -0
- package/client/src/vendor/odysseus-editor/editor/snap.js +109 -0
- package/client/src/vendor/odysseus-editor/editor/state.js +257 -0
- package/client/src/vendor/odysseus-editor/editor/stroke-pipeline.js +162 -0
- package/client/src/vendor/odysseus-editor/editor/stroke-tool-sliders.js +64 -0
- package/client/src/vendor/odysseus-editor/editor/tools/clone.js +81 -0
- package/client/src/vendor/odysseus-editor/editor/tools/crop.js +137 -0
- package/client/src/vendor/odysseus-editor/editor/tools/flood-fill.js +72 -0
- package/client/src/vendor/odysseus-editor/editor/tools/lasso-mask.js +171 -0
- package/client/src/vendor/odysseus-editor/editor/tools/lasso.js +65 -0
- package/client/src/vendor/odysseus-editor/editor/tools/move.js +79 -0
- package/client/src/vendor/odysseus-editor/editor/tools/stroke.js +123 -0
- package/client/src/vendor/odysseus-editor/editor/tools/transform-drag.js +174 -0
- package/client/src/vendor/odysseus-editor/editor/tools/transform-handles.js +271 -0
- package/client/src/vendor/odysseus-editor/editor/tools/transform-session.js +382 -0
- package/client/src/vendor/odysseus-editor/editor/tools/wand.js +46 -0
- package/client/src/vendor/odysseus-editor/editor/wire-import.js +155 -0
- package/client/src/vendor/odysseus-editor/editor/wire-inpaint-controls.js +164 -0
- package/client/src/vendor/odysseus-editor/editor/wire-merge-buttons.js +141 -0
- package/client/src/vendor/odysseus-editor/editor/wire-selection-controls.js +170 -0
- package/client/src/vendor/odysseus-editor/editor/wire-topbar-menus.js +174 -0
- package/client/src/vendor/odysseus-editor/editor/wire-topbar-overflow.js +49 -0
- package/client/src/vendor/odysseus-editor/editor/wire-topbar.js +194 -0
- package/client/src/vendor/odysseus-editor/editor.css +5326 -0
- package/client/src/vendor/odysseus-editor/galleryEditor.d.ts +33 -0
- package/client/src/vendor/odysseus-editor/galleryEditor.js +3867 -0
- package/client/src/vendor/odysseus-editor/modalManager.js +50 -0
- package/client/src/vendor/odysseus-editor/spinner.js +406 -0
- package/client/src/vendor/odysseus-editor/storage.js +33 -0
- package/client/src/vendor/odysseus-editor/ui.js +84 -0
- package/client/src/vite-env.d.ts +1 -0
- package/client/src/voice/activity.ts +23 -0
- package/client/src/voice/commandBuffer.ts +104 -0
- package/client/src/voice/commands.ts +96 -0
- package/client/src/voice/computerControl.ts +67 -0
- package/client/src/voice/computerRequest.ts +15 -0
- package/client/src/voice/conditions.ts +24 -0
- package/client/src/voice/conversation.ts +201 -0
- package/client/src/voice/dialogs.ts +30 -0
- package/client/src/voice/executor.ts +519 -0
- package/client/src/voice/mailRules.ts +28 -0
- package/client/src/voice/modes.ts +10 -0
- package/client/src/voice/panels.ts +6 -0
- package/client/src/voice/reservedPhrases.ts +61 -0
- package/client/src/voice/runtime.ts +681 -0
- package/client/src/voice/screen.ts +412 -0
- package/client/src/voice/setupAudio.ts +65 -0
- package/client/src/voice/speech.ts +22 -0
- package/client/src/voice/store.ts +56 -0
- package/client/src/voice/toolBridge.ts +50 -0
- package/client/src/voice/usage.ts +31 -0
- package/client/src/voice/watches.ts +30 -0
- package/client/src/ws/handleServerMessage.ts +2379 -0
- package/client/src/ws/operatorQuestions.ts +28 -0
- package/client/src/ws/streamState.ts +62 -0
- package/client/src/ws/workspaceSync.ts +125 -0
- package/docs/ARCHITECTURE.md +1025 -0
- package/docs/BACKUP.md +303 -0
- package/docs/CHAT.md +188 -0
- package/docs/CHECKPOINTS.md +180 -0
- package/docs/CLIENT.md +1249 -0
- package/docs/CODEX_GPT56_CLUSTER_INCOMPAT.md +79 -0
- package/docs/DEEPSEEK.md +243 -0
- package/docs/DEVELOPMENT_STATUS.md +32 -0
- package/docs/DIAGNOSTICS.md +368 -0
- package/docs/DOCKER.md +296 -0
- package/docs/EXTENDING.md +408 -0
- package/docs/FEATURES.md +147 -0
- package/docs/GENESIS.md +166 -0
- package/docs/GETTING_STARTED.md +378 -0
- package/docs/GIT_WORKBENCH.md +337 -0
- package/docs/GLOSSARY.md +432 -0
- package/docs/GOTCHAS.md +1741 -0
- package/docs/HTTP_API.md +2275 -0
- package/docs/INDEX.md +80 -0
- package/docs/KNOWLEDGE.md +115 -0
- package/docs/LOCAL_SERVICES.md +264 -0
- package/docs/LSP.md +163 -0
- package/docs/MCP_REGISTRY.md +232 -0
- package/docs/MEDIA_STUDIO.md +330 -0
- package/docs/NOTIFICATIONS.md +213 -0
- package/docs/OPERATIONS.md +1304 -0
- package/docs/OPERATOR_ACTIONS.md +169 -0
- package/docs/OUTPUTS.md +92 -0
- package/docs/PERSISTENCE.md +997 -0
- package/docs/PHOSPHOR_DEMO.md +202 -0
- package/docs/PLAN_OR_BOARD.md +21 -0
- package/docs/PREVIEW_VERIFY.md +193 -0
- package/docs/PRIMITIVES.md +1229 -0
- package/docs/PROTOCOL.md +3012 -0
- package/docs/PROTOCOL_CLUSTER.md +1053 -0
- package/docs/PROTOCOL_PRIMITIVES.md +639 -0
- package/docs/PROVIDERS.md +1939 -0
- package/docs/RECALL.md +424 -0
- package/docs/REMOTE_MANAGEMENT.md +329 -0
- package/docs/REPO_LAYOUT.md +69 -0
- package/docs/RESUME_INDEX.md +224 -0
- package/docs/SERVICE_MODE.md +440 -0
- package/docs/SETTINGS.md +189 -0
- package/docs/STRATA.md +260 -0
- package/docs/STYLE.md +62 -0
- package/docs/TASK_LEDGER.md +460 -0
- package/docs/TERMINAL.md +443 -0
- package/docs/THIRD_PARTY.md +53 -0
- package/docs/VOICE.md +1171 -0
- package/docs/releases/v0.1.0.md +66 -0
- package/native/darwin-arm64/better_sqlite3.node +0 -0
- package/native/darwin-arm64/manifest.json +15 -0
- package/native/darwin-arm64/pty/pty.node +0 -0
- package/native/darwin-arm64/pty/spawn-helper +0 -0
- package/native/darwin-x64/better_sqlite3.node +0 -0
- package/native/darwin-x64/manifest.json +15 -0
- package/native/darwin-x64/pty/pty.node +0 -0
- package/native/darwin-x64/pty/spawn-helper +0 -0
- package/native/licenses/NOTICE.md +3 -0
- package/native/licenses/better-sqlite3.txt +21 -0
- package/native/licenses/node-addon-api.txt +9 -0
- package/native/licenses/node-pty.txt +69 -0
- package/native/licenses/winpty.txt +21 -0
- package/native/linux-arm64/better_sqlite3.node +0 -0
- package/native/linux-arm64/manifest.json +14 -0
- package/native/linux-arm64/pty/pty.node +0 -0
- package/native/linux-x64/better_sqlite3.node +0 -0
- package/native/linux-x64/manifest.json +14 -0
- package/native/linux-x64/pty/pty.node +0 -0
- package/native/win32-arm64/better_sqlite3.node +0 -0
- package/native/win32-arm64/manifest.json +18 -0
- package/native/win32-arm64/pty/conpty.node +0 -0
- package/native/win32-arm64/pty/conpty_console_list.node +0 -0
- package/native/win32-arm64/pty/pty.node +0 -0
- package/native/win32-arm64/pty/winpty-agent.exe +0 -0
- package/native/win32-arm64/pty/winpty.dll +0 -0
- package/native/win32-x64/better_sqlite3.node +0 -0
- package/native/win32-x64/manifest.json +18 -0
- package/native/win32-x64/pty/conpty.node +0 -0
- package/native/win32-x64/pty/conpty_console_list.node +0 -0
- package/native/win32-x64/pty/pty.node +0 -0
- package/native/win32-x64/pty/winpty-agent.exe +0 -0
- package/native/win32-x64/pty/winpty.dll +0 -0
- package/node_modules/@arco/shared/dist/autoPickupAck.d.ts +1 -0
- package/node_modules/@arco/shared/dist/autoPickupAck.js +7 -0
- package/node_modules/@arco/shared/dist/clusterCoordination.d.ts +10 -0
- package/node_modules/@arco/shared/dist/clusterCoordination.js +55 -0
- package/node_modules/@arco/shared/dist/clusterRolePresets.d.ts +8 -0
- package/node_modules/@arco/shared/dist/clusterRolePresets.js +68 -0
- package/node_modules/@arco/shared/dist/index.d.ts +8 -0
- package/node_modules/@arco/shared/dist/index.js +9 -0
- package/node_modules/@arco/shared/dist/localCapacity.d.ts +29 -0
- package/node_modules/@arco/shared/dist/localCapacity.js +63 -0
- package/node_modules/@arco/shared/dist/outputs.d.ts +31 -0
- package/node_modules/@arco/shared/dist/outputs.js +2 -0
- package/node_modules/@arco/shared/dist/protocol/__fixtures__/cursorCatalog.fixture.d.ts +5 -0
- package/node_modules/@arco/shared/dist/protocol/__fixtures__/cursorCatalog.fixture.js +194 -0
- package/node_modules/@arco/shared/dist/protocol/autoPickup.d.ts +102 -0
- package/node_modules/@arco/shared/dist/protocol/autoPickup.js +99 -0
- package/node_modules/@arco/shared/dist/protocol/bakeoffs.d.ts +86 -0
- package/node_modules/@arco/shared/dist/protocol/bakeoffs.js +2 -0
- package/node_modules/@arco/shared/dist/protocol/chat.d.ts +33 -0
- package/node_modules/@arco/shared/dist/protocol/chat.js +3 -0
- package/node_modules/@arco/shared/dist/protocol/checkpoints.d.ts +129 -0
- package/node_modules/@arco/shared/dist/protocol/checkpoints.js +20 -0
- package/node_modules/@arco/shared/dist/protocol/clientMessages.d.ts +218 -0
- package/node_modules/@arco/shared/dist/protocol/clientMessages.js +3 -0
- package/node_modules/@arco/shared/dist/protocol/clusters.d.ts +575 -0
- package/node_modules/@arco/shared/dist/protocol/clusters.js +99 -0
- package/node_modules/@arco/shared/dist/protocol/compare.d.ts +78 -0
- package/node_modules/@arco/shared/dist/protocol/compare.js +22 -0
- package/node_modules/@arco/shared/dist/protocol/computerConditions.d.ts +129 -0
- package/node_modules/@arco/shared/dist/protocol/computerConditions.js +8 -0
- package/node_modules/@arco/shared/dist/protocol/connections.d.ts +22 -0
- package/node_modules/@arco/shared/dist/protocol/connections.js +2 -0
- package/node_modules/@arco/shared/dist/protocol/diagnostics.d.ts +17 -0
- package/node_modules/@arco/shared/dist/protocol/diagnostics.js +19 -0
- package/node_modules/@arco/shared/dist/protocol/docEdit.d.ts +44 -0
- package/node_modules/@arco/shared/dist/protocol/docEdit.js +22 -0
- package/node_modules/@arco/shared/dist/protocol/endpointDiscovery.d.ts +15 -0
- package/node_modules/@arco/shared/dist/protocol/endpointDiscovery.js +13 -0
- package/node_modules/@arco/shared/dist/protocol/fallback.d.ts +28 -0
- package/node_modules/@arco/shared/dist/protocol/fallback.js +12 -0
- package/node_modules/@arco/shared/dist/protocol/genesis.d.ts +121 -0
- package/node_modules/@arco/shared/dist/protocol/genesis.js +18 -0
- package/node_modules/@arco/shared/dist/protocol/gitOps.d.ts +44 -0
- package/node_modules/@arco/shared/dist/protocol/gitOps.js +24 -0
- package/node_modules/@arco/shared/dist/protocol/handoffs.d.ts +108 -0
- package/node_modules/@arco/shared/dist/protocol/handoffs.js +3 -0
- package/node_modules/@arco/shared/dist/protocol/hardware.d.ts +32 -0
- package/node_modules/@arco/shared/dist/protocol/hardware.js +20 -0
- package/node_modules/@arco/shared/dist/protocol/index.d.ts +50 -0
- package/node_modules/@arco/shared/dist/protocol/index.js +55 -0
- package/node_modules/@arco/shared/dist/protocol/knowledge.d.ts +63 -0
- package/node_modules/@arco/shared/dist/protocol/knowledge.js +37 -0
- package/node_modules/@arco/shared/dist/protocol/liveChanges.d.ts +19 -0
- package/node_modules/@arco/shared/dist/protocol/liveChanges.js +2 -0
- package/node_modules/@arco/shared/dist/protocol/llamacppDiagnose.d.ts +21 -0
- package/node_modules/@arco/shared/dist/protocol/llamacppDiagnose.js +20 -0
- package/node_modules/@arco/shared/dist/protocol/localModels.d.ts +12 -0
- package/node_modules/@arco/shared/dist/protocol/localModels.js +2 -0
- package/node_modules/@arco/shared/dist/protocol/mcp.d.ts +96 -0
- package/node_modules/@arco/shared/dist/protocol/mcp.js +33 -0
- package/node_modules/@arco/shared/dist/protocol/mdTuneup.d.ts +96 -0
- package/node_modules/@arco/shared/dist/protocol/mdTuneup.js +4 -0
- package/node_modules/@arco/shared/dist/protocol/media.d.ts +330 -0
- package/node_modules/@arco/shared/dist/protocol/media.js +115 -0
- package/node_modules/@arco/shared/dist/protocol/models.d.ts +265 -0
- package/node_modules/@arco/shared/dist/protocol/models.js +444 -0
- package/node_modules/@arco/shared/dist/protocol/notifications.d.ts +60 -0
- package/node_modules/@arco/shared/dist/protocol/notifications.js +79 -0
- package/node_modules/@arco/shared/dist/protocol/ollamaThinking.d.ts +11 -0
- package/node_modules/@arco/shared/dist/protocol/ollamaThinking.js +47 -0
- package/node_modules/@arco/shared/dist/protocol/operatorQuestions.d.ts +42 -0
- package/node_modules/@arco/shared/dist/protocol/operatorQuestions.js +2 -0
- package/node_modules/@arco/shared/dist/protocol/opsDiagnostics.d.ts +94 -0
- package/node_modules/@arco/shared/dist/protocol/opsDiagnostics.js +12 -0
- package/node_modules/@arco/shared/dist/protocol/orchestrationAssist.d.ts +204 -0
- package/node_modules/@arco/shared/dist/protocol/orchestrationAssist.js +8 -0
- package/node_modules/@arco/shared/dist/protocol/phosphorPaletteIds.d.ts +1 -0
- package/node_modules/@arco/shared/dist/protocol/phosphorPaletteIds.js +74 -0
- package/node_modules/@arco/shared/dist/protocol/plans.d.ts +82 -0
- package/node_modules/@arco/shared/dist/protocol/plans.js +11 -0
- package/node_modules/@arco/shared/dist/protocol/previewCapture.d.ts +59 -0
- package/node_modules/@arco/shared/dist/protocol/previewCapture.js +2 -0
- package/node_modules/@arco/shared/dist/protocol/providers.d.ts +29 -0
- package/node_modules/@arco/shared/dist/protocol/providers.js +36 -0
- package/node_modules/@arco/shared/dist/protocol/recall.d.ts +88 -0
- package/node_modules/@arco/shared/dist/protocol/recall.js +9 -0
- package/node_modules/@arco/shared/dist/protocol/remoteManagement.d.ts +353 -0
- package/node_modules/@arco/shared/dist/protocol/remoteManagement.js +15 -0
- package/node_modules/@arco/shared/dist/protocol/research.d.ts +56 -0
- package/node_modules/@arco/shared/dist/protocol/research.js +22 -0
- package/node_modules/@arco/shared/dist/protocol/reviews.d.ts +82 -0
- package/node_modules/@arco/shared/dist/protocol/reviews.js +3 -0
- package/node_modules/@arco/shared/dist/protocol/serverMessages.d.ts +766 -0
- package/node_modules/@arco/shared/dist/protocol/serverMessages.js +20 -0
- package/node_modules/@arco/shared/dist/protocol/services.d.ts +19 -0
- package/node_modules/@arco/shared/dist/protocol/services.js +14 -0
- package/node_modules/@arco/shared/dist/protocol/settings.d.ts +152 -0
- package/node_modules/@arco/shared/dist/protocol/settings.js +10 -0
- package/node_modules/@arco/shared/dist/protocol/tasks.d.ts +179 -0
- package/node_modules/@arco/shared/dist/protocol/tasks.js +16 -0
- package/node_modules/@arco/shared/dist/protocol/templates.d.ts +12 -0
- package/node_modules/@arco/shared/dist/protocol/templates.js +25 -0
- package/node_modules/@arco/shared/dist/protocol/terminal.d.ts +54 -0
- package/node_modules/@arco/shared/dist/protocol/terminal.js +16 -0
- package/node_modules/@arco/shared/dist/protocol/themes.d.ts +7 -0
- package/node_modules/@arco/shared/dist/protocol/themes.js +70 -0
- package/node_modules/@arco/shared/dist/protocol/usage.d.ts +211 -0
- package/node_modules/@arco/shared/dist/protocol/usage.js +2 -0
- package/node_modules/@arco/shared/dist/protocol/usageStats.d.ts +33 -0
- package/node_modules/@arco/shared/dist/protocol/usageStats.js +22 -0
- package/node_modules/@arco/shared/dist/protocol/utilityAgent.d.ts +43 -0
- package/node_modules/@arco/shared/dist/protocol/utilityAgent.js +50 -0
- package/node_modules/@arco/shared/dist/protocol/voiceOperator.d.ts +131 -0
- package/node_modules/@arco/shared/dist/protocol/voiceOperator.js +20 -0
- package/node_modules/@arco/shared/dist/protocol/workers.d.ts +47 -0
- package/node_modules/@arco/shared/dist/protocol/workers.js +3 -0
- package/node_modules/@arco/shared/dist/protocol/workflows.d.ts +266 -0
- package/node_modules/@arco/shared/dist/protocol/workflows.js +40 -0
- package/node_modules/@arco/shared/dist/protocol.d.ts +1 -0
- package/node_modules/@arco/shared/dist/protocol.js +6 -0
- package/node_modules/@arco/shared/dist/runtimeVersions.d.ts +1 -0
- package/node_modules/@arco/shared/dist/runtimeVersions.js +29 -0
- package/node_modules/@arco/shared/dist/voice.d.ts +136 -0
- package/node_modules/@arco/shared/dist/voice.js +61 -0
- package/node_modules/@arco/shared/package.json +8 -0
- package/node_modules/node-pty/LICENSE +69 -0
- package/node_modules/node-pty/lib/conpty_console_list_agent.js +16 -0
- package/node_modules/node-pty/lib/eventEmitter2.js +47 -0
- package/node_modules/node-pty/lib/index.js +52 -0
- package/node_modules/node-pty/lib/interfaces.js +7 -0
- package/node_modules/node-pty/lib/shared/conout.js +11 -0
- package/node_modules/node-pty/lib/terminal.js +190 -0
- package/node_modules/node-pty/lib/types.js +7 -0
- package/node_modules/node-pty/lib/unixTerminal.js +346 -0
- package/node_modules/node-pty/lib/utils.js +39 -0
- package/node_modules/node-pty/lib/windowsConoutConnection.js +125 -0
- package/node_modules/node-pty/lib/windowsPtyAgent.js +320 -0
- package/node_modules/node-pty/lib/windowsTerminal.js +199 -0
- package/node_modules/node-pty/lib/worker/conoutSocketWorker.js +22 -0
- package/node_modules/node-pty/package.json +30 -0
- package/node_modules/node-pty/typings/node-pty.d.ts +211 -0
- package/package.json +56 -0
- package/scripts/packaging/arco.mjs +166 -0
- package/scripts/packaging/launch.mjs +111 -0
- package/scripts/packaging/native-repair.mjs +91 -0
- package/scripts/packaging/ports.mjs +95 -0
- package/scripts/packaging/service-logs.mjs +63 -0
- package/scripts/packaging/services.mjs +241 -0
- package/scripts/packaging/update.mjs +147 -0
- package/scripts/start.mjs +68 -0
- package/scripts/voice/audition-capture-cues.py +125 -0
- package/scripts/voice/audition-edge.py +107 -0
- package/scripts/voice/audition.py +81 -0
- package/scripts/voice/check-phrases.py +77 -0
- package/scripts/voice/preview.html +266 -0
- package/scripts/voice/preview.ts +222 -0
- package/scripts/voice/run.mjs +20 -0
- package/scripts/voice/setup.py +163 -0
- package/server/dist/appVersion.d.ts +5 -0
- package/server/dist/appVersion.js +7 -0
- package/server/dist/arcoHome.d.ts +1 -0
- package/server/dist/arcoHome.js +11 -0
- package/server/dist/artifacts.d.ts +11 -0
- package/server/dist/artifacts.js +42 -0
- package/server/dist/atomicFile.d.ts +33 -0
- package/server/dist/atomicFile.js +181 -0
- package/server/dist/attention.d.ts +34 -0
- package/server/dist/attention.js +184 -0
- package/server/dist/auth.d.ts +46 -0
- package/server/dist/auth.js +368 -0
- package/server/dist/authLoginInstructions.d.ts +2 -0
- package/server/dist/authLoginInstructions.js +17 -0
- package/server/dist/authLoginSession.d.ts +19 -0
- package/server/dist/authLoginSession.js +129 -0
- package/server/dist/bakeoffStore.d.ts +4 -0
- package/server/dist/bakeoffStore.js +87 -0
- package/server/dist/capabilities.d.ts +38 -0
- package/server/dist/capabilities.js +379 -0
- package/server/dist/catalog.d.ts +6 -0
- package/server/dist/catalog.js +124 -0
- package/server/dist/catchUp.d.ts +34 -0
- package/server/dist/catchUp.js +125 -0
- package/server/dist/chatMode.d.ts +12 -0
- package/server/dist/chatMode.js +113 -0
- package/server/dist/checkoutOwnership.d.ts +17 -0
- package/server/dist/checkoutOwnership.js +125 -0
- package/server/dist/claudeMdDiscovery.d.ts +3 -0
- package/server/dist/claudeMdDiscovery.js +63 -0
- package/server/dist/clusterAccessDoctrine.d.ts +1 -0
- package/server/dist/clusterAccessDoctrine.js +11 -0
- package/server/dist/clusterAutoTurn.d.ts +57 -0
- package/server/dist/clusterAutoTurn.js +442 -0
- package/server/dist/clusterBudget.d.ts +16 -0
- package/server/dist/clusterBudget.js +35 -0
- package/server/dist/clusterDirector.d.ts +3 -0
- package/server/dist/clusterDirector.js +28 -0
- package/server/dist/clusterEfficiency.d.ts +6 -0
- package/server/dist/clusterEfficiency.js +10 -0
- package/server/dist/clusterIdleNudger.d.ts +16 -0
- package/server/dist/clusterIdleNudger.js +199 -0
- package/server/dist/clusterMailbox.d.ts +38 -0
- package/server/dist/clusterMailbox.js +272 -0
- package/server/dist/clusterPeerOps.d.ts +207 -0
- package/server/dist/clusterPeerOps.js +1107 -0
- package/server/dist/clusterPlanBridge.d.ts +41 -0
- package/server/dist/clusterPlanBridge.js +197 -0
- package/server/dist/clusterPlanOutline.d.ts +1 -0
- package/server/dist/clusterPlanOutline.js +27 -0
- package/server/dist/clusterPlanStore.d.ts +61 -0
- package/server/dist/clusterPlanStore.js +276 -0
- package/server/dist/clusterPresets.d.ts +13 -0
- package/server/dist/clusterPresets.js +194 -0
- package/server/dist/clusterProgress.d.ts +2 -0
- package/server/dist/clusterProgress.js +57 -0
- package/server/dist/clusterRehydrate.d.ts +5 -0
- package/server/dist/clusterRehydrate.js +67 -0
- package/server/dist/clusterSnapshotBundle.d.ts +4 -0
- package/server/dist/clusterSnapshotBundle.js +97 -0
- package/server/dist/clusterSnapshots.d.ts +66 -0
- package/server/dist/clusterSnapshots.js +811 -0
- package/server/dist/clusterStore.d.ts +133 -0
- package/server/dist/clusterStore.js +997 -0
- package/server/dist/clusterStringFold.d.ts +21 -0
- package/server/dist/clusterStringFold.js +54 -0
- package/server/dist/clusterVaultCrypto.d.ts +5 -0
- package/server/dist/clusterVaultCrypto.js +80 -0
- package/server/dist/codexRolloutTokens.d.ts +21 -0
- package/server/dist/codexRolloutTokens.js +85 -0
- package/server/dist/codexUsage.d.ts +8 -0
- package/server/dist/codexUsage.js +398 -0
- package/server/dist/codexUsageRpc.d.ts +11 -0
- package/server/dist/codexUsageRpc.js +129 -0
- package/server/dist/configValue.d.ts +17 -0
- package/server/dist/configValue.js +170 -0
- package/server/dist/connectionCatalog.d.ts +3 -0
- package/server/dist/connectionCatalog.js +22 -0
- package/server/dist/contentSearch.d.ts +21 -0
- package/server/dist/contentSearch.js +121 -0
- package/server/dist/contextCalibrator.d.ts +16 -0
- package/server/dist/contextCalibrator.js +172 -0
- package/server/dist/contextEstimator.d.ts +21 -0
- package/server/dist/contextEstimator.js +203 -0
- package/server/dist/contextRefs.d.ts +14 -0
- package/server/dist/contextRefs.js +270 -0
- package/server/dist/crashRecovery.d.ts +8 -0
- package/server/dist/crashRecovery.js +110 -0
- package/server/dist/cursorUsage.d.ts +2 -0
- package/server/dist/cursorUsage.js +244 -0
- package/server/dist/defaults/models.md +168 -0
- package/server/dist/diagnostics/checks.d.ts +7 -0
- package/server/dist/diagnostics/checks.js +806 -0
- package/server/dist/diagnostics/codeSkew.d.ts +16 -0
- package/server/dist/diagnostics/codeSkew.js +131 -0
- package/server/dist/diagnostics/modelHealth.d.ts +2 -0
- package/server/dist/diagnostics/modelHealth.js +424 -0
- package/server/dist/diagnostics/shutdownForensics.d.ts +17 -0
- package/server/dist/diagnostics/shutdownForensics.js +54 -0
- package/server/dist/diagnostics/shutdownWindow.d.ts +9 -0
- package/server/dist/diagnostics/shutdownWindow.js +102 -0
- package/server/dist/diagnostics/supportBundle.d.ts +4 -0
- package/server/dist/diagnostics/supportBundle.js +228 -0
- package/server/dist/envAliases.d.ts +3 -0
- package/server/dist/envAliases.js +24 -0
- package/server/dist/explorerArtifacts.d.ts +16 -0
- package/server/dist/explorerArtifacts.js +165 -0
- package/server/dist/explorerChanged.d.ts +13 -0
- package/server/dist/explorerChanged.js +137 -0
- package/server/dist/explorerDocs.d.ts +13 -0
- package/server/dist/explorerDocs.js +106 -0
- package/server/dist/explorerLaunch.d.ts +14 -0
- package/server/dist/explorerLaunch.js +115 -0
- package/server/dist/explorerPlans.d.ts +2 -0
- package/server/dist/explorerPlans.js +37 -0
- package/server/dist/fileAccessPolicy.d.ts +14 -0
- package/server/dist/fileAccessPolicy.js +141 -0
- package/server/dist/genesis/creative.d.ts +8 -0
- package/server/dist/genesis/creative.js +209 -0
- package/server/dist/genesis/prompts.d.ts +6 -0
- package/server/dist/genesis/prompts.js +194 -0
- package/server/dist/genesis/scaffold.d.ts +16 -0
- package/server/dist/genesis/scaffold.js +311 -0
- package/server/dist/genesis/stages.d.ts +6 -0
- package/server/dist/genesis/stages.js +109 -0
- package/server/dist/git.d.ts +55 -0
- package/server/dist/git.js +279 -0
- package/server/dist/gitBakeoff.d.ts +21 -0
- package/server/dist/gitBakeoff.js +274 -0
- package/server/dist/gitDiff.d.ts +14 -0
- package/server/dist/gitDiff.js +176 -0
- package/server/dist/gitOps.d.ts +32 -0
- package/server/dist/gitOps.js +315 -0
- package/server/dist/gitOtherWork.d.ts +6 -0
- package/server/dist/gitOtherWork.js +107 -0
- package/server/dist/gitSafe.d.ts +4 -0
- package/server/dist/gitSafe.js +62 -0
- package/server/dist/gitSnapshots.d.ts +30 -0
- package/server/dist/gitSnapshots.js +716 -0
- package/server/dist/gitWorking.d.ts +10 -0
- package/server/dist/gitWorking.js +375 -0
- package/server/dist/github.d.ts +326 -0
- package/server/dist/github.js +315 -0
- package/server/dist/goalRun.d.ts +44 -0
- package/server/dist/goalRun.js +135 -0
- package/server/dist/handoffPrompts.d.ts +25 -0
- package/server/dist/handoffPrompts.js +263 -0
- package/server/dist/hardware/fit.d.ts +9 -0
- package/server/dist/hardware/fit.js +301 -0
- package/server/dist/hardware/modelFiles.d.ts +3 -0
- package/server/dist/hardware/modelFiles.js +15 -0
- package/server/dist/hardware/probe.d.ts +9 -0
- package/server/dist/hardware/probe.js +259 -0
- package/server/dist/http/appVersionRoutes.d.ts +2 -0
- package/server/dist/http/appVersionRoutes.js +35 -0
- package/server/dist/http/authLoginRoutes.d.ts +2 -0
- package/server/dist/http/authLoginRoutes.js +57 -0
- package/server/dist/http/clusterRoutes.d.ts +3 -0
- package/server/dist/http/clusterRoutes.js +848 -0
- package/server/dist/http/clusterSnapshotRoutes.d.ts +2 -0
- package/server/dist/http/clusterSnapshotRoutes.js +213 -0
- package/server/dist/http/connectionsRoutes.d.ts +2 -0
- package/server/dist/http/connectionsRoutes.js +39 -0
- package/server/dist/http/deepseekRoutes.d.ts +2 -0
- package/server/dist/http/deepseekRoutes.js +87 -0
- package/server/dist/http/diagnosticsRoutes.d.ts +2 -0
- package/server/dist/http/diagnosticsRoutes.js +101 -0
- package/server/dist/http/diffRoutes.d.ts +2 -0
- package/server/dist/http/diffRoutes.js +60 -0
- package/server/dist/http/endpointDiscoveryRoutes.d.ts +2 -0
- package/server/dist/http/endpointDiscoveryRoutes.js +38 -0
- package/server/dist/http/explorerRoutes.d.ts +2 -0
- package/server/dist/http/explorerRoutes.js +123 -0
- package/server/dist/http/fileRead.d.ts +32 -0
- package/server/dist/http/fileRead.js +57 -0
- package/server/dist/http/fileWriteRoutes.d.ts +12 -0
- package/server/dist/http/fileWriteRoutes.js +138 -0
- package/server/dist/http/gitBakeoffRoutes.d.ts +2 -0
- package/server/dist/http/gitBakeoffRoutes.js +47 -0
- package/server/dist/http/gitCompareRoutes.d.ts +2 -0
- package/server/dist/http/gitCompareRoutes.js +80 -0
- package/server/dist/http/gitDiffRoutes.d.ts +2 -0
- package/server/dist/http/gitDiffRoutes.js +65 -0
- package/server/dist/http/gitOpRoutes.d.ts +2 -0
- package/server/dist/http/gitOpRoutes.js +147 -0
- package/server/dist/http/gitWorktreeRoutes.d.ts +2 -0
- package/server/dist/http/gitWorktreeRoutes.js +51 -0
- package/server/dist/http/githubRoutes.d.ts +2 -0
- package/server/dist/http/githubRoutes.js +211 -0
- package/server/dist/http/imageWriteRoutes.d.ts +2 -0
- package/server/dist/http/imageWriteRoutes.js +160 -0
- package/server/dist/http/knowledgeRoutes.d.ts +2 -0
- package/server/dist/http/knowledgeRoutes.js +91 -0
- package/server/dist/http/mediaOpsRoutes.d.ts +2 -0
- package/server/dist/http/mediaOpsRoutes.js +389 -0
- package/server/dist/http/notificationChannelsRoutes.d.ts +2 -0
- package/server/dist/http/notificationChannelsRoutes.js +46 -0
- package/server/dist/http/originGuard.d.ts +12 -0
- package/server/dist/http/originGuard.js +98 -0
- package/server/dist/http/outputOpen.d.ts +10 -0
- package/server/dist/http/outputOpen.js +53 -0
- package/server/dist/http/outputRoutes.d.ts +2 -0
- package/server/dist/http/outputRoutes.js +132 -0
- package/server/dist/http/packageDocs.d.ts +1 -0
- package/server/dist/http/packageDocs.js +33 -0
- package/server/dist/http/projectRoutes.d.ts +2 -0
- package/server/dist/http/projectRoutes.js +75 -0
- package/server/dist/http/projectTrustRoutes.d.ts +2 -0
- package/server/dist/http/projectTrustRoutes.js +109 -0
- package/server/dist/http/readConfinement.d.ts +11 -0
- package/server/dist/http/readConfinement.js +95 -0
- package/server/dist/http/recallRoutes.d.ts +2 -0
- package/server/dist/http/recallRoutes.js +213 -0
- package/server/dist/http/router.d.ts +14 -0
- package/server/dist/http/router.js +2104 -0
- package/server/dist/http/searchRoutes.d.ts +2 -0
- package/server/dist/http/searchRoutes.js +55 -0
- package/server/dist/http/servicesRoutes.d.ts +2 -0
- package/server/dist/http/servicesRoutes.js +110 -0
- package/server/dist/http/smartPickupRoutes.d.ts +2 -0
- package/server/dist/http/smartPickupRoutes.js +18 -0
- package/server/dist/http/tidyRoutes.d.ts +2 -0
- package/server/dist/http/tidyRoutes.js +45 -0
- package/server/dist/http/usageStatsRoutes.d.ts +13 -0
- package/server/dist/http/usageStatsRoutes.js +269 -0
- package/server/dist/http/utilityAgentRoutes.d.ts +2 -0
- package/server/dist/http/utilityAgentRoutes.js +136 -0
- package/server/dist/http/voiceRoutes.d.ts +2 -0
- package/server/dist/http/voiceRoutes.js +343 -0
- package/server/dist/http/workflowDataRoutes.d.ts +3 -0
- package/server/dist/http/workflowDataRoutes.js +859 -0
- package/server/dist/http/writeConfinement.d.ts +22 -0
- package/server/dist/http/writeConfinement.js +162 -0
- package/server/dist/http/wsAuth.d.ts +18 -0
- package/server/dist/http/wsAuth.js +116 -0
- package/server/dist/index.d.ts +2 -0
- package/server/dist/index.js +2230 -0
- package/server/dist/initialProviders.d.ts +4 -0
- package/server/dist/initialProviders.js +26 -0
- package/server/dist/knowledge/distill.d.ts +34 -0
- package/server/dist/knowledge/distill.js +139 -0
- package/server/dist/knowledge/store.d.ts +37 -0
- package/server/dist/knowledge/store.js +243 -0
- package/server/dist/liveChanges.d.ts +5 -0
- package/server/dist/liveChanges.js +162 -0
- package/server/dist/llamacppCatalog.d.ts +9 -0
- package/server/dist/llamacppCatalog.js +103 -0
- package/server/dist/localCapacity.d.ts +4 -0
- package/server/dist/localCapacity.js +25 -0
- package/server/dist/localModels.d.ts +4 -0
- package/server/dist/localModels.js +167 -0
- package/server/dist/lsp/client.d.ts +57 -0
- package/server/dist/lsp/client.js +412 -0
- package/server/dist/lsp/servers.d.ts +8 -0
- package/server/dist/lsp/servers.js +112 -0
- package/server/dist/management/clusterActivity.d.ts +4 -0
- package/server/dist/management/clusterActivity.js +103 -0
- package/server/dist/management/hubLink.d.ts +32 -0
- package/server/dist/management/hubLink.js +257 -0
- package/server/dist/management/identity.d.ts +3 -0
- package/server/dist/management/identity.js +104 -0
- package/server/dist/management/initHubLink.d.ts +13 -0
- package/server/dist/management/initHubLink.js +829 -0
- package/server/dist/mcp/arcoMcpServer.d.ts +1 -0
- package/server/dist/mcp/arcoMcpServer.js +52 -0
- package/server/dist/mcp/client.d.ts +43 -0
- package/server/dist/mcp/client.js +452 -0
- package/server/dist/mcp/clusterMcpLoopback.d.ts +21 -0
- package/server/dist/mcp/clusterMcpLoopback.js +137 -0
- package/server/dist/mcp/clusterMcpServer.d.ts +1 -0
- package/server/dist/mcp/clusterMcpServer.js +62 -0
- package/server/dist/mcp/clusterMcpTools.d.ts +11 -0
- package/server/dist/mcp/clusterMcpTools.js +588 -0
- package/server/dist/mcp/mcpConfigWriter.d.ts +28 -0
- package/server/dist/mcp/mcpConfigWriter.js +229 -0
- package/server/dist/mcp/osvCheck.d.ts +24 -0
- package/server/dist/mcp/osvCheck.js +126 -0
- package/server/dist/mcp/planMcpTools.d.ts +15 -0
- package/server/dist/mcp/planMcpTools.js +254 -0
- package/server/dist/mcp/registry.d.ts +21 -0
- package/server/dist/mcp/registry.js +123 -0
- package/server/dist/mcp/registryWiring.d.ts +10 -0
- package/server/dist/mcp/registryWiring.js +102 -0
- package/server/dist/mcp/voiceMcpServer.d.ts +1 -0
- package/server/dist/mcp/voiceMcpServer.js +49 -0
- package/server/dist/mdTuneupPrompt.d.ts +11 -0
- package/server/dist/mdTuneupPrompt.js +78 -0
- package/server/dist/media/demucs.d.ts +25 -0
- package/server/dist/media/demucs.js +298 -0
- package/server/dist/media/ffmpeg.d.ts +43 -0
- package/server/dist/media/ffmpeg.js +972 -0
- package/server/dist/media/scratch.d.ts +15 -0
- package/server/dist/media/scratch.js +204 -0
- package/server/dist/memoryMonitor.d.ts +11 -0
- package/server/dist/memoryMonitor.js +69 -0
- package/server/dist/nativeSqlite.d.ts +5 -0
- package/server/dist/nativeSqlite.js +27 -0
- package/server/dist/net/forceIpv4.d.ts +1 -0
- package/server/dist/net/forceIpv4.js +28 -0
- package/server/dist/notifications.d.ts +31 -0
- package/server/dist/notifications.js +145 -0
- package/server/dist/npmPlatformResolve.d.ts +43 -0
- package/server/dist/npmPlatformResolve.js +157 -0
- package/server/dist/ntfyTransport.d.ts +26 -0
- package/server/dist/ntfyTransport.js +147 -0
- package/server/dist/outputStore.d.ts +19 -0
- package/server/dist/outputStore.js +68 -0
- package/server/dist/outputs.d.ts +38 -0
- package/server/dist/outputs.js +465 -0
- package/server/dist/peerRecipientContext.d.ts +19 -0
- package/server/dist/peerRecipientContext.js +32 -0
- package/server/dist/planRefContext.d.ts +24 -0
- package/server/dist/planRefContext.js +168 -0
- package/server/dist/planStore.d.ts +51 -0
- package/server/dist/planStore.js +471 -0
- package/server/dist/preview/captureViaCdp.d.ts +25 -0
- package/server/dist/preview/captureViaCdp.js +488 -0
- package/server/dist/previewAutoDetect.d.ts +21 -0
- package/server/dist/previewAutoDetect.js +319 -0
- package/server/dist/previewProxy.d.ts +9 -0
- package/server/dist/previewProxy.js +200 -0
- package/server/dist/primaryBackgroundTracker.d.ts +25 -0
- package/server/dist/primaryBackgroundTracker.js +232 -0
- package/server/dist/primitiveDrift.d.ts +7 -0
- package/server/dist/primitiveDrift.js +45 -0
- package/server/dist/primitives/exportContext.d.ts +53 -0
- package/server/dist/primitives/exportContext.js +747 -0
- package/server/dist/primitives/mdTuneupUndo.d.ts +20 -0
- package/server/dist/primitives/mdTuneupUndo.js +65 -0
- package/server/dist/primitives/parseReviewFindings.d.ts +8 -0
- package/server/dist/primitives/parseReviewFindings.js +93 -0
- package/server/dist/primitives/quickHandoff.d.ts +2 -0
- package/server/dist/primitives/quickHandoff.js +56 -0
- package/server/dist/primitives/reviewContent.d.ts +43 -0
- package/server/dist/primitives/reviewContent.js +686 -0
- package/server/dist/primitives/reviewSchema.d.ts +49 -0
- package/server/dist/primitives/reviewSchema.js +124 -0
- package/server/dist/primitives/runCompare.d.ts +36 -0
- package/server/dist/primitives/runCompare.js +162 -0
- package/server/dist/primitives/runDocEdit.d.ts +33 -0
- package/server/dist/primitives/runDocEdit.js +167 -0
- package/server/dist/primitives/runMdTuneup.d.ts +40 -0
- package/server/dist/primitives/runMdTuneup.js +398 -0
- package/server/dist/primitives/runResearch.d.ts +33 -0
- package/server/dist/primitives/runResearch.js +303 -0
- package/server/dist/primitives/runReviewer.d.ts +36 -0
- package/server/dist/primitives/runReviewer.js +330 -0
- package/server/dist/primitives/seedWorker.d.ts +87 -0
- package/server/dist/primitives/seedWorker.js +558 -0
- package/server/dist/project/orchestrationProposals.d.ts +17 -0
- package/server/dist/project/orchestrationProposals.js +258 -0
- package/server/dist/project/taskLedger.d.ts +84 -0
- package/server/dist/project/taskLedger.js +709 -0
- package/server/dist/project/taskWorktree.d.ts +10 -0
- package/server/dist/project/taskWorktree.js +187 -0
- package/server/dist/projectRecords.d.ts +67 -0
- package/server/dist/projectRecords.js +284 -0
- package/server/dist/projectStateIgnore.d.ts +4 -0
- package/server/dist/projectStateIgnore.js +26 -0
- package/server/dist/projectTrust.d.ts +33 -0
- package/server/dist/projectTrust.js +251 -0
- package/server/dist/projects.d.ts +62 -0
- package/server/dist/projects.js +377 -0
- package/server/dist/prompts.d.ts +29 -0
- package/server/dist/prompts.js +169 -0
- package/server/dist/providerAccounts.d.ts +11 -0
- package/server/dist/providerAccounts.js +62 -0
- package/server/dist/providers/attachments.d.ts +30 -0
- package/server/dist/providers/attachments.js +314 -0
- package/server/dist/providers/claude-native/appendOnlyPrefix.d.ts +86 -0
- package/server/dist/providers/claude-native/appendOnlyPrefix.js +256 -0
- package/server/dist/providers/claude-native/auth.d.ts +16 -0
- package/server/dist/providers/claude-native/auth.js +104 -0
- package/server/dist/providers/claude-native/authStatus.d.ts +2 -0
- package/server/dist/providers/claude-native/authStatus.js +33 -0
- package/server/dist/providers/claude-native/catalog.d.ts +66 -0
- package/server/dist/providers/claude-native/catalog.js +123 -0
- package/server/dist/providers/claude-native/contentBlocks.d.ts +125 -0
- package/server/dist/providers/claude-native/contentBlocks.js +345 -0
- package/server/dist/providers/claude-native/contextBudget.d.ts +24 -0
- package/server/dist/providers/claude-native/contextBudget.js +43 -0
- package/server/dist/providers/claude-native/editApply.d.ts +10 -0
- package/server/dist/providers/claude-native/editApply.js +178 -0
- package/server/dist/providers/claude-native/file-mutation-queue.d.ts +2 -0
- package/server/dist/providers/claude-native/file-mutation-queue.js +104 -0
- package/server/dist/providers/claude-native/filterConfigs/bash-cargo-test.d.ts +2 -0
- package/server/dist/providers/claude-native/filterConfigs/bash-cargo-test.js +70 -0
- package/server/dist/providers/claude-native/filterConfigs/bash-find.d.ts +2 -0
- package/server/dist/providers/claude-native/filterConfigs/bash-find.js +16 -0
- package/server/dist/providers/claude-native/filterConfigs/bash-git-status.d.ts +2 -0
- package/server/dist/providers/claude-native/filterConfigs/bash-git-status.js +28 -0
- package/server/dist/providers/claude-native/filterConfigs/bash-grep.d.ts +2 -0
- package/server/dist/providers/claude-native/filterConfigs/bash-grep.js +14 -0
- package/server/dist/providers/claude-native/filterConfigs/bash-jest-vitest.d.ts +2 -0
- package/server/dist/providers/claude-native/filterConfigs/bash-jest-vitest.js +54 -0
- package/server/dist/providers/claude-native/filterConfigs/bash-ls.d.ts +2 -0
- package/server/dist/providers/claude-native/filterConfigs/bash-ls.js +10 -0
- package/server/dist/providers/claude-native/filterConfigs/bash-pytest.d.ts +2 -0
- package/server/dist/providers/claude-native/filterConfigs/bash-pytest.js +48 -0
- package/server/dist/providers/claude-native/filterConfigs/index.d.ts +4 -0
- package/server/dist/providers/claude-native/filterConfigs/index.js +83 -0
- package/server/dist/providers/claude-native/filterToolResult.d.ts +23 -0
- package/server/dist/providers/claude-native/filterToolResult.js +138 -0
- package/server/dist/providers/claude-native/foldDigest.d.ts +10 -0
- package/server/dist/providers/claude-native/foldDigest.js +123 -0
- package/server/dist/providers/claude-native/gateReview.d.ts +26 -0
- package/server/dist/providers/claude-native/gateReview.js +0 -0
- package/server/dist/providers/claude-native/gateStore.d.ts +28 -0
- package/server/dist/providers/claude-native/gateStore.js +109 -0
- package/server/dist/providers/claude-native/hooks.d.ts +45 -0
- package/server/dist/providers/claude-native/hooks.js +234 -0
- package/server/dist/providers/claude-native/index.d.ts +65 -0
- package/server/dist/providers/claude-native/index.js +351 -0
- package/server/dist/providers/claude-native/modelParams.d.ts +8 -0
- package/server/dist/providers/claude-native/modelParams.js +171 -0
- package/server/dist/providers/claude-native/oauth.d.ts +32 -0
- package/server/dist/providers/claude-native/oauth.js +341 -0
- package/server/dist/providers/claude-native/outputAccumulator.d.ts +31 -0
- package/server/dist/providers/claude-native/outputAccumulator.js +99 -0
- package/server/dist/providers/claude-native/outputStyle.d.ts +2 -0
- package/server/dist/providers/claude-native/outputStyle.js +2 -0
- package/server/dist/providers/claude-native/peerTools.d.ts +17 -0
- package/server/dist/providers/claude-native/peerTools.js +476 -0
- package/server/dist/providers/claude-native/pretoolGuards.d.ts +44 -0
- package/server/dist/providers/claude-native/pretoolGuards.js +230 -0
- package/server/dist/providers/claude-native/rateLimit.d.ts +10 -0
- package/server/dist/providers/claude-native/rateLimit.js +123 -0
- package/server/dist/providers/claude-native/registryTools.d.ts +11 -0
- package/server/dist/providers/claude-native/registryTools.js +152 -0
- package/server/dist/providers/claude-native/resumeSummary.d.ts +56 -0
- package/server/dist/providers/claude-native/resumeSummary.js +522 -0
- package/server/dist/providers/claude-native/retainedContext.d.ts +20 -0
- package/server/dist/providers/claude-native/retainedContext.js +170 -0
- package/server/dist/providers/claude-native/sandboxExecutor.d.ts +16 -0
- package/server/dist/providers/claude-native/sandboxExecutor.js +174 -0
- package/server/dist/providers/claude-native/sandboxStore.d.ts +44 -0
- package/server/dist/providers/claude-native/sandboxStore.js +154 -0
- package/server/dist/providers/claude-native/sandboxTools.d.ts +10 -0
- package/server/dist/providers/claude-native/sandboxTools.js +180 -0
- package/server/dist/providers/claude-native/serverFold.d.ts +56 -0
- package/server/dist/providers/claude-native/serverFold.js +280 -0
- package/server/dist/providers/claude-native/toolLoopGuard.d.ts +26 -0
- package/server/dist/providers/claude-native/toolLoopGuard.js +118 -0
- package/server/dist/providers/claude-native/toolPosture.d.ts +15 -0
- package/server/dist/providers/claude-native/toolPosture.js +121 -0
- package/server/dist/providers/claude-native/toolResultEviction.d.ts +26 -0
- package/server/dist/providers/claude-native/toolResultEviction.js +203 -0
- package/server/dist/providers/claude-native/tools.d.ts +57 -0
- package/server/dist/providers/claude-native/tools.js +901 -0
- package/server/dist/providers/claude-native/wireFingerprint.d.ts +2 -0
- package/server/dist/providers/claude-native/wireFingerprint.js +14 -0
- package/server/dist/providers/claude-native/worker.d.ts +188 -0
- package/server/dist/providers/claude-native/worker.js +3450 -0
- package/server/dist/providers/claude-native/workerHelpers.d.ts +11 -0
- package/server/dist/providers/claude-native/workerHelpers.js +254 -0
- package/server/dist/providers/claude-native/workspaceFacts.d.ts +20 -0
- package/server/dist/providers/claude-native/workspaceFacts.js +167 -0
- package/server/dist/providers/claude.d.ts +5 -0
- package/server/dist/providers/claude.js +704 -0
- package/server/dist/providers/codex-appserver/bindings/AbsolutePathBuf.d.ts +10 -0
- package/server/dist/providers/codex-appserver/bindings/AbsolutePathBuf.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/AgentPath.d.ts +1 -0
- package/server/dist/providers/codex-appserver/bindings/AgentPath.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/ApplyPatchApprovalParams.d.ts +22 -0
- package/server/dist/providers/codex-appserver/bindings/ApplyPatchApprovalParams.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/ApplyPatchApprovalResponse.d.ts +4 -0
- package/server/dist/providers/codex-appserver/bindings/ApplyPatchApprovalResponse.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/AuthMode.d.ts +4 -0
- package/server/dist/providers/codex-appserver/bindings/AuthMode.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/ClientInfo.d.ts +5 -0
- package/server/dist/providers/codex-appserver/bindings/ClientInfo.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/ClientNotification.d.ts +3 -0
- package/server/dist/providers/codex-appserver/bindings/ClientNotification.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/ClientRequest.d.ts +470 -0
- package/server/dist/providers/codex-appserver/bindings/ClientRequest.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/CollaborationMode.d.ts +9 -0
- package/server/dist/providers/codex-appserver/bindings/CollaborationMode.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/ContentItem.d.ts +12 -0
- package/server/dist/providers/codex-appserver/bindings/ContentItem.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/ConversationGitInfo.d.ts +5 -0
- package/server/dist/providers/codex-appserver/bindings/ConversationGitInfo.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/ConversationSummary.d.ts +15 -0
- package/server/dist/providers/codex-appserver/bindings/ConversationSummary.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/ExecCommandApprovalParams.d.ts +18 -0
- package/server/dist/providers/codex-appserver/bindings/ExecCommandApprovalParams.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/ExecCommandApprovalResponse.d.ts +4 -0
- package/server/dist/providers/codex-appserver/bindings/ExecCommandApprovalResponse.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/ExecPolicyAmendment.d.ts +8 -0
- package/server/dist/providers/codex-appserver/bindings/ExecPolicyAmendment.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/FileChange.d.ts +11 -0
- package/server/dist/providers/codex-appserver/bindings/FileChange.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/ForcedLoginMethod.d.ts +1 -0
- package/server/dist/providers/codex-appserver/bindings/ForcedLoginMethod.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/FunctionCallOutputBody.d.ts +2 -0
- package/server/dist/providers/codex-appserver/bindings/FunctionCallOutputBody.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/FunctionCallOutputContentItem.d.ts +13 -0
- package/server/dist/providers/codex-appserver/bindings/FunctionCallOutputContentItem.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/FuzzyFileSearchMatchType.d.ts +1 -0
- package/server/dist/providers/codex-appserver/bindings/FuzzyFileSearchMatchType.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/FuzzyFileSearchParams.d.ts +5 -0
- package/server/dist/providers/codex-appserver/bindings/FuzzyFileSearchParams.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/FuzzyFileSearchResponse.d.ts +4 -0
- package/server/dist/providers/codex-appserver/bindings/FuzzyFileSearchResponse.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/FuzzyFileSearchResult.d.ts +12 -0
- package/server/dist/providers/codex-appserver/bindings/FuzzyFileSearchResult.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/FuzzyFileSearchSessionCompletedNotification.d.ts +3 -0
- package/server/dist/providers/codex-appserver/bindings/FuzzyFileSearchSessionCompletedNotification.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/FuzzyFileSearchSessionStartParams.d.ts +4 -0
- package/server/dist/providers/codex-appserver/bindings/FuzzyFileSearchSessionStartParams.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/FuzzyFileSearchSessionStartResponse.d.ts +1 -0
- package/server/dist/providers/codex-appserver/bindings/FuzzyFileSearchSessionStartResponse.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/FuzzyFileSearchSessionStopParams.d.ts +3 -0
- package/server/dist/providers/codex-appserver/bindings/FuzzyFileSearchSessionStopParams.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/FuzzyFileSearchSessionStopResponse.d.ts +1 -0
- package/server/dist/providers/codex-appserver/bindings/FuzzyFileSearchSessionStopResponse.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/FuzzyFileSearchSessionUpdateParams.d.ts +4 -0
- package/server/dist/providers/codex-appserver/bindings/FuzzyFileSearchSessionUpdateParams.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/FuzzyFileSearchSessionUpdateResponse.d.ts +1 -0
- package/server/dist/providers/codex-appserver/bindings/FuzzyFileSearchSessionUpdateResponse.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/FuzzyFileSearchSessionUpdatedNotification.d.ts +6 -0
- package/server/dist/providers/codex-appserver/bindings/FuzzyFileSearchSessionUpdatedNotification.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/GetAuthStatusParams.d.ts +4 -0
- package/server/dist/providers/codex-appserver/bindings/GetAuthStatusParams.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/GetAuthStatusResponse.d.ts +6 -0
- package/server/dist/providers/codex-appserver/bindings/GetAuthStatusResponse.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/GetConversationSummaryParams.d.ts +6 -0
- package/server/dist/providers/codex-appserver/bindings/GetConversationSummaryParams.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/GetConversationSummaryResponse.d.ts +4 -0
- package/server/dist/providers/codex-appserver/bindings/GetConversationSummaryResponse.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/GitDiffToRemoteParams.d.ts +3 -0
- package/server/dist/providers/codex-appserver/bindings/GitDiffToRemoteParams.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/GitDiffToRemoteResponse.d.ts +5 -0
- package/server/dist/providers/codex-appserver/bindings/GitDiffToRemoteResponse.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/GitSha.d.ts +1 -0
- package/server/dist/providers/codex-appserver/bindings/GitSha.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/ImageDetail.d.ts +1 -0
- package/server/dist/providers/codex-appserver/bindings/ImageDetail.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/InitializeCapabilities.d.ts +14 -0
- package/server/dist/providers/codex-appserver/bindings/InitializeCapabilities.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/InitializeParams.d.ts +6 -0
- package/server/dist/providers/codex-appserver/bindings/InitializeParams.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/InitializeResponse.d.ts +18 -0
- package/server/dist/providers/codex-appserver/bindings/InitializeResponse.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/InputModality.d.ts +4 -0
- package/server/dist/providers/codex-appserver/bindings/InputModality.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/InternalSessionSource.d.ts +1 -0
- package/server/dist/providers/codex-appserver/bindings/InternalSessionSource.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/LocalShellAction.d.ts +4 -0
- package/server/dist/providers/codex-appserver/bindings/LocalShellAction.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/LocalShellExecAction.d.ts +9 -0
- package/server/dist/providers/codex-appserver/bindings/LocalShellExecAction.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/LocalShellStatus.d.ts +1 -0
- package/server/dist/providers/codex-appserver/bindings/LocalShellStatus.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/MessagePhase.d.ts +7 -0
- package/server/dist/providers/codex-appserver/bindings/MessagePhase.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/ModeKind.d.ts +4 -0
- package/server/dist/providers/codex-appserver/bindings/ModeKind.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/NetworkPolicyAmendment.d.ts +5 -0
- package/server/dist/providers/codex-appserver/bindings/NetworkPolicyAmendment.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/NetworkPolicyRuleAction.d.ts +1 -0
- package/server/dist/providers/codex-appserver/bindings/NetworkPolicyRuleAction.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/ParsedCommand.d.ts +24 -0
- package/server/dist/providers/codex-appserver/bindings/ParsedCommand.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/Personality.d.ts +1 -0
- package/server/dist/providers/codex-appserver/bindings/Personality.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/PlanType.d.ts +1 -0
- package/server/dist/providers/codex-appserver/bindings/PlanType.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/RealtimeConversationVersion.d.ts +1 -0
- package/server/dist/providers/codex-appserver/bindings/RealtimeConversationVersion.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/RealtimeOutputModality.d.ts +1 -0
- package/server/dist/providers/codex-appserver/bindings/RealtimeOutputModality.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/RealtimeVoice.d.ts +1 -0
- package/server/dist/providers/codex-appserver/bindings/RealtimeVoice.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/RealtimeVoicesList.d.ts +7 -0
- package/server/dist/providers/codex-appserver/bindings/RealtimeVoicesList.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/ReasoningEffort.d.ts +4 -0
- package/server/dist/providers/codex-appserver/bindings/ReasoningEffort.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/ReasoningItemContent.d.ts +7 -0
- package/server/dist/providers/codex-appserver/bindings/ReasoningItemContent.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/ReasoningItemReasoningSummary.d.ts +4 -0
- package/server/dist/providers/codex-appserver/bindings/ReasoningItemReasoningSummary.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/ReasoningSummary.d.ts +6 -0
- package/server/dist/providers/codex-appserver/bindings/ReasoningSummary.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/RequestId.d.ts +1 -0
- package/server/dist/providers/codex-appserver/bindings/RequestId.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/Resource.d.ts +15 -0
- package/server/dist/providers/codex-appserver/bindings/Resource.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/ResourceContent.d.ts +21 -0
- package/server/dist/providers/codex-appserver/bindings/ResourceContent.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/ResourceTemplate.d.ts +12 -0
- package/server/dist/providers/codex-appserver/bindings/ResourceTemplate.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/ResponseItem.d.ts +75 -0
- package/server/dist/providers/codex-appserver/bindings/ResponseItem.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/ReviewDecision.d.ts +14 -0
- package/server/dist/providers/codex-appserver/bindings/ReviewDecision.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/ServerNotification.d.ts +252 -0
- package/server/dist/providers/codex-appserver/bindings/ServerNotification.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/ServerRequest.d.ts +50 -0
- package/server/dist/providers/codex-appserver/bindings/ServerRequest.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/ServiceTier.d.ts +1 -0
- package/server/dist/providers/codex-appserver/bindings/ServiceTier.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/SessionSource.d.ts +9 -0
- package/server/dist/providers/codex-appserver/bindings/SessionSource.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/Settings.d.ts +9 -0
- package/server/dist/providers/codex-appserver/bindings/Settings.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/SubAgentSource.d.ts +13 -0
- package/server/dist/providers/codex-appserver/bindings/SubAgentSource.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/ThreadId.d.ts +1 -0
- package/server/dist/providers/codex-appserver/bindings/ThreadId.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/ThreadMemoryMode.d.ts +1 -0
- package/server/dist/providers/codex-appserver/bindings/ThreadMemoryMode.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/Tool.d.ts +14 -0
- package/server/dist/providers/codex-appserver/bindings/Tool.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/Verbosity.d.ts +5 -0
- package/server/dist/providers/codex-appserver/bindings/Verbosity.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/WebSearchAction.d.ts +14 -0
- package/server/dist/providers/codex-appserver/bindings/WebSearchAction.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/WebSearchContextSize.d.ts +1 -0
- package/server/dist/providers/codex-appserver/bindings/WebSearchContextSize.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/WebSearchLocation.d.ts +6 -0
- package/server/dist/providers/codex-appserver/bindings/WebSearchLocation.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/WebSearchMode.d.ts +1 -0
- package/server/dist/providers/codex-appserver/bindings/WebSearchMode.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/WebSearchToolConfig.d.ts +7 -0
- package/server/dist/providers/codex-appserver/bindings/WebSearchToolConfig.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/index.d.ts +84 -0
- package/server/dist/providers/codex-appserver/bindings/index.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/serde_json/JsonValue.d.ts +3 -0
- package/server/dist/providers/codex-appserver/bindings/serde_json/JsonValue.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/Account.d.ts +10 -0
- package/server/dist/providers/codex-appserver/bindings/v2/Account.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/AccountLoginCompletedNotification.d.ts +5 -0
- package/server/dist/providers/codex-appserver/bindings/v2/AccountLoginCompletedNotification.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/AccountRateLimitsUpdatedNotification.d.ts +4 -0
- package/server/dist/providers/codex-appserver/bindings/v2/AccountRateLimitsUpdatedNotification.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/AccountUpdatedNotification.d.ts +6 -0
- package/server/dist/providers/codex-appserver/bindings/v2/AccountUpdatedNotification.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ActivePermissionProfile.d.ts +18 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ActivePermissionProfile.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ActivePermissionProfileModification.d.ts +5 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ActivePermissionProfileModification.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/AddCreditsNudgeCreditType.d.ts +1 -0
- package/server/dist/providers/codex-appserver/bindings/v2/AddCreditsNudgeCreditType.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/AddCreditsNudgeEmailStatus.d.ts +1 -0
- package/server/dist/providers/codex-appserver/bindings/v2/AddCreditsNudgeEmailStatus.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/AdditionalFileSystemPermissions.d.ts +14 -0
- package/server/dist/providers/codex-appserver/bindings/v2/AdditionalFileSystemPermissions.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/AdditionalNetworkPermissions.d.ts +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/AdditionalNetworkPermissions.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/AdditionalPermissionProfile.d.ts +9 -0
- package/server/dist/providers/codex-appserver/bindings/v2/AdditionalPermissionProfile.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/AgentMessageDeltaNotification.d.ts +6 -0
- package/server/dist/providers/codex-appserver/bindings/v2/AgentMessageDeltaNotification.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/AnalyticsConfig.d.ts +8 -0
- package/server/dist/providers/codex-appserver/bindings/v2/AnalyticsConfig.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/AppBranding.d.ts +11 -0
- package/server/dist/providers/codex-appserver/bindings/v2/AppBranding.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/AppInfo.d.ts +30 -0
- package/server/dist/providers/codex-appserver/bindings/v2/AppInfo.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/AppListUpdatedNotification.d.ts +7 -0
- package/server/dist/providers/codex-appserver/bindings/v2/AppListUpdatedNotification.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/AppMetadata.d.ts +16 -0
- package/server/dist/providers/codex-appserver/bindings/v2/AppMetadata.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/AppReview.d.ts +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/AppReview.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/AppScreenshot.d.ts +5 -0
- package/server/dist/providers/codex-appserver/bindings/v2/AppScreenshot.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/AppSummary.d.ts +10 -0
- package/server/dist/providers/codex-appserver/bindings/v2/AppSummary.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/AppToolApproval.d.ts +1 -0
- package/server/dist/providers/codex-appserver/bindings/v2/AppToolApproval.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/AppToolsConfig.d.ts +7 -0
- package/server/dist/providers/codex-appserver/bindings/v2/AppToolsConfig.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ApprovalsReviewer.d.ts +8 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ApprovalsReviewer.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/AppsConfig.d.ts +15 -0
- package/server/dist/providers/codex-appserver/bindings/v2/AppsConfig.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/AppsDefaultConfig.d.ts +5 -0
- package/server/dist/providers/codex-appserver/bindings/v2/AppsDefaultConfig.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/AppsListParams.d.ts +21 -0
- package/server/dist/providers/codex-appserver/bindings/v2/AppsListParams.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/AppsListResponse.d.ts +12 -0
- package/server/dist/providers/codex-appserver/bindings/v2/AppsListResponse.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/AskForApproval.d.ts +9 -0
- package/server/dist/providers/codex-appserver/bindings/v2/AskForApproval.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/AutoReviewDecisionSource.d.ts +4 -0
- package/server/dist/providers/codex-appserver/bindings/v2/AutoReviewDecisionSource.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ByteRange.d.ts +4 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ByteRange.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/CancelLoginAccountParams.d.ts +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/CancelLoginAccountParams.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/CancelLoginAccountResponse.d.ts +4 -0
- package/server/dist/providers/codex-appserver/bindings/v2/CancelLoginAccountResponse.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/CancelLoginAccountStatus.d.ts +1 -0
- package/server/dist/providers/codex-appserver/bindings/v2/CancelLoginAccountStatus.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ChatgptAuthTokensRefreshParams.d.ts +14 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ChatgptAuthTokensRefreshParams.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ChatgptAuthTokensRefreshReason.d.ts +1 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ChatgptAuthTokensRefreshReason.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ChatgptAuthTokensRefreshResponse.d.ts +5 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ChatgptAuthTokensRefreshResponse.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/CodexErrorInfo.d.ts +28 -0
- package/server/dist/providers/codex-appserver/bindings/v2/CodexErrorInfo.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/CollabAgentState.d.ts +5 -0
- package/server/dist/providers/codex-appserver/bindings/v2/CollabAgentState.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/CollabAgentStatus.d.ts +1 -0
- package/server/dist/providers/codex-appserver/bindings/v2/CollabAgentStatus.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/CollabAgentTool.d.ts +1 -0
- package/server/dist/providers/codex-appserver/bindings/v2/CollabAgentTool.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/CollabAgentToolCallStatus.d.ts +1 -0
- package/server/dist/providers/codex-appserver/bindings/v2/CollabAgentToolCallStatus.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/CollaborationModeListParams.d.ts +4 -0
- package/server/dist/providers/codex-appserver/bindings/v2/CollaborationModeListParams.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/CollaborationModeListResponse.d.ts +7 -0
- package/server/dist/providers/codex-appserver/bindings/v2/CollaborationModeListResponse.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/CollaborationModeMask.d.ts +11 -0
- package/server/dist/providers/codex-appserver/bindings/v2/CollaborationModeMask.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/CommandAction.d.ts +19 -0
- package/server/dist/providers/codex-appserver/bindings/v2/CommandAction.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/CommandExecOutputDeltaNotification.d.ts +27 -0
- package/server/dist/providers/codex-appserver/bindings/v2/CommandExecOutputDeltaNotification.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/CommandExecOutputStream.d.ts +4 -0
- package/server/dist/providers/codex-appserver/bindings/v2/CommandExecOutputStream.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/CommandExecParams.d.ts +105 -0
- package/server/dist/providers/codex-appserver/bindings/v2/CommandExecParams.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/CommandExecResizeParams.d.ts +15 -0
- package/server/dist/providers/codex-appserver/bindings/v2/CommandExecResizeParams.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/CommandExecResizeResponse.d.ts +4 -0
- package/server/dist/providers/codex-appserver/bindings/v2/CommandExecResizeResponse.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/CommandExecResponse.d.ts +21 -0
- package/server/dist/providers/codex-appserver/bindings/v2/CommandExecResponse.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/CommandExecTerminalSize.d.ts +13 -0
- package/server/dist/providers/codex-appserver/bindings/v2/CommandExecTerminalSize.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/CommandExecTerminateParams.d.ts +10 -0
- package/server/dist/providers/codex-appserver/bindings/v2/CommandExecTerminateParams.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/CommandExecTerminateResponse.d.ts +4 -0
- package/server/dist/providers/codex-appserver/bindings/v2/CommandExecTerminateResponse.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/CommandExecWriteParams.d.ts +19 -0
- package/server/dist/providers/codex-appserver/bindings/v2/CommandExecWriteParams.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/CommandExecWriteResponse.d.ts +4 -0
- package/server/dist/providers/codex-appserver/bindings/v2/CommandExecWriteResponse.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/CommandExecutionApprovalDecision.d.ts +11 -0
- package/server/dist/providers/codex-appserver/bindings/v2/CommandExecutionApprovalDecision.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/CommandExecutionOutputDeltaNotification.d.ts +6 -0
- package/server/dist/providers/codex-appserver/bindings/v2/CommandExecutionOutputDeltaNotification.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/CommandExecutionRequestApprovalParams.d.ts +58 -0
- package/server/dist/providers/codex-appserver/bindings/v2/CommandExecutionRequestApprovalParams.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/CommandExecutionRequestApprovalResponse.d.ts +4 -0
- package/server/dist/providers/codex-appserver/bindings/v2/CommandExecutionRequestApprovalResponse.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/CommandExecutionSource.d.ts +1 -0
- package/server/dist/providers/codex-appserver/bindings/v2/CommandExecutionSource.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/CommandExecutionStatus.d.ts +1 -0
- package/server/dist/providers/codex-appserver/bindings/v2/CommandExecutionStatus.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/CommandMigration.d.ts +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/CommandMigration.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/Config.d.ts +51 -0
- package/server/dist/providers/codex-appserver/bindings/v2/Config.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ConfigBatchWriteParams.d.ts +13 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ConfigBatchWriteParams.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ConfigEdit.d.ts +7 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ConfigEdit.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ConfigLayer.d.ts +8 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ConfigLayer.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ConfigLayerMetadata.d.ts +5 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ConfigLayerMetadata.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ConfigLayerSource.d.ts +30 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ConfigLayerSource.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ConfigReadParams.d.ts +9 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ConfigReadParams.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ConfigReadResponse.d.ts +10 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ConfigReadResponse.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ConfigRequirements.d.ts +19 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ConfigRequirements.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ConfigRequirementsReadResponse.d.ts +7 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ConfigRequirementsReadResponse.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ConfigValueWriteParams.d.ts +12 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ConfigValueWriteParams.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ConfigWarningNotification.d.ts +19 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ConfigWarningNotification.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ConfigWriteResponse.d.ts +12 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ConfigWriteResponse.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ConfiguredHookHandler.d.ts +11 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ConfiguredHookHandler.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ConfiguredHookMatcherGroup.d.ts +5 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ConfiguredHookMatcherGroup.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ContextCompactedNotification.d.ts +7 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ContextCompactedNotification.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/CreditsSnapshot.d.ts +5 -0
- package/server/dist/providers/codex-appserver/bindings/v2/CreditsSnapshot.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/DeprecationNoticeNotification.d.ts +10 -0
- package/server/dist/providers/codex-appserver/bindings/v2/DeprecationNoticeNotification.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/DeviceKeyAlgorithm.d.ts +4 -0
- package/server/dist/providers/codex-appserver/bindings/v2/DeviceKeyAlgorithm.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/DeviceKeyCreateParams.d.ts +12 -0
- package/server/dist/providers/codex-appserver/bindings/v2/DeviceKeyCreateParams.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/DeviceKeyCreateResponse.d.ts +14 -0
- package/server/dist/providers/codex-appserver/bindings/v2/DeviceKeyCreateResponse.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/DeviceKeyProtectionClass.d.ts +4 -0
- package/server/dist/providers/codex-appserver/bindings/v2/DeviceKeyProtectionClass.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/DeviceKeyProtectionPolicy.d.ts +4 -0
- package/server/dist/providers/codex-appserver/bindings/v2/DeviceKeyProtectionPolicy.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/DeviceKeyPublicParams.d.ts +6 -0
- package/server/dist/providers/codex-appserver/bindings/v2/DeviceKeyPublicParams.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/DeviceKeyPublicResponse.d.ts +14 -0
- package/server/dist/providers/codex-appserver/bindings/v2/DeviceKeyPublicResponse.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/DeviceKeySignParams.d.ts +8 -0
- package/server/dist/providers/codex-appserver/bindings/v2/DeviceKeySignParams.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/DeviceKeySignPayload.d.ts +62 -0
- package/server/dist/providers/codex-appserver/bindings/v2/DeviceKeySignPayload.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/DeviceKeySignResponse.d.ts +16 -0
- package/server/dist/providers/codex-appserver/bindings/v2/DeviceKeySignResponse.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/DynamicToolCallOutputContentItem.d.ts +7 -0
- package/server/dist/providers/codex-appserver/bindings/v2/DynamicToolCallOutputContentItem.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/DynamicToolCallParams.d.ts +9 -0
- package/server/dist/providers/codex-appserver/bindings/v2/DynamicToolCallParams.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/DynamicToolCallResponse.d.ts +5 -0
- package/server/dist/providers/codex-appserver/bindings/v2/DynamicToolCallResponse.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/DynamicToolCallStatus.d.ts +1 -0
- package/server/dist/providers/codex-appserver/bindings/v2/DynamicToolCallStatus.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/DynamicToolSpec.d.ts +8 -0
- package/server/dist/providers/codex-appserver/bindings/v2/DynamicToolSpec.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ErrorNotification.d.ts +7 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ErrorNotification.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ExecPolicyAmendment.d.ts +1 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ExecPolicyAmendment.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ExperimentalFeature.d.ts +34 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ExperimentalFeature.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ExperimentalFeatureEnablementSetParams.d.ts +11 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ExperimentalFeatureEnablementSetParams.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ExperimentalFeatureEnablementSetResponse.d.ts +8 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ExperimentalFeatureEnablementSetResponse.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ExperimentalFeatureListParams.d.ts +10 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ExperimentalFeatureListParams.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ExperimentalFeatureListResponse.d.ts +9 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ExperimentalFeatureListResponse.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ExperimentalFeatureStage.d.ts +1 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ExperimentalFeatureStage.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ExternalAgentConfigDetectParams.d.ts +10 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ExternalAgentConfigDetectParams.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ExternalAgentConfigDetectResponse.d.ts +4 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ExternalAgentConfigDetectResponse.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ExternalAgentConfigImportCompletedNotification.d.ts +1 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ExternalAgentConfigImportCompletedNotification.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ExternalAgentConfigImportParams.d.ts +4 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ExternalAgentConfigImportParams.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ExternalAgentConfigImportResponse.d.ts +1 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ExternalAgentConfigImportResponse.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ExternalAgentConfigMigrationItem.d.ts +11 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ExternalAgentConfigMigrationItem.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ExternalAgentConfigMigrationItemType.d.ts +1 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ExternalAgentConfigMigrationItemType.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/FeedbackUploadParams.d.ts +10 -0
- package/server/dist/providers/codex-appserver/bindings/v2/FeedbackUploadParams.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/FeedbackUploadResponse.d.ts +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/FeedbackUploadResponse.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/FileChangeApprovalDecision.d.ts +1 -0
- package/server/dist/providers/codex-appserver/bindings/v2/FileChangeApprovalDecision.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/FileChangeOutputDeltaNotification.d.ts +6 -0
- package/server/dist/providers/codex-appserver/bindings/v2/FileChangeOutputDeltaNotification.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/FileChangePatchUpdatedNotification.d.ts +7 -0
- package/server/dist/providers/codex-appserver/bindings/v2/FileChangePatchUpdatedNotification.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/FileChangeRequestApprovalParams.d.ts +14 -0
- package/server/dist/providers/codex-appserver/bindings/v2/FileChangeRequestApprovalParams.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/FileChangeRequestApprovalResponse.d.ts +4 -0
- package/server/dist/providers/codex-appserver/bindings/v2/FileChangeRequestApprovalResponse.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/FileSystemAccessMode.d.ts +1 -0
- package/server/dist/providers/codex-appserver/bindings/v2/FileSystemAccessMode.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/FileSystemPath.d.ts +12 -0
- package/server/dist/providers/codex-appserver/bindings/v2/FileSystemPath.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/FileSystemSandboxEntry.d.ts +6 -0
- package/server/dist/providers/codex-appserver/bindings/v2/FileSystemSandboxEntry.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/FileSystemSpecialPath.d.ts +16 -0
- package/server/dist/providers/codex-appserver/bindings/v2/FileSystemSpecialPath.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/FileUpdateChange.d.ts +6 -0
- package/server/dist/providers/codex-appserver/bindings/v2/FileUpdateChange.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/FsChangedNotification.d.ts +14 -0
- package/server/dist/providers/codex-appserver/bindings/v2/FsChangedNotification.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/FsCopyParams.d.ts +18 -0
- package/server/dist/providers/codex-appserver/bindings/v2/FsCopyParams.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/FsCopyResponse.d.ts +4 -0
- package/server/dist/providers/codex-appserver/bindings/v2/FsCopyResponse.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/FsCreateDirectoryParams.d.ts +14 -0
- package/server/dist/providers/codex-appserver/bindings/v2/FsCreateDirectoryParams.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/FsCreateDirectoryResponse.d.ts +4 -0
- package/server/dist/providers/codex-appserver/bindings/v2/FsCreateDirectoryResponse.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/FsGetMetadataParams.d.ts +10 -0
- package/server/dist/providers/codex-appserver/bindings/v2/FsGetMetadataParams.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/FsGetMetadataResponse.d.ts +25 -0
- package/server/dist/providers/codex-appserver/bindings/v2/FsGetMetadataResponse.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/FsReadDirectoryEntry.d.ts +17 -0
- package/server/dist/providers/codex-appserver/bindings/v2/FsReadDirectoryEntry.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/FsReadDirectoryParams.d.ts +10 -0
- package/server/dist/providers/codex-appserver/bindings/v2/FsReadDirectoryParams.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/FsReadDirectoryResponse.d.ts +10 -0
- package/server/dist/providers/codex-appserver/bindings/v2/FsReadDirectoryResponse.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/FsReadFileParams.d.ts +10 -0
- package/server/dist/providers/codex-appserver/bindings/v2/FsReadFileParams.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/FsReadFileResponse.d.ts +9 -0
- package/server/dist/providers/codex-appserver/bindings/v2/FsReadFileResponse.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/FsRemoveParams.d.ts +18 -0
- package/server/dist/providers/codex-appserver/bindings/v2/FsRemoveParams.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/FsRemoveResponse.d.ts +4 -0
- package/server/dist/providers/codex-appserver/bindings/v2/FsRemoveResponse.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/FsUnwatchParams.d.ts +9 -0
- package/server/dist/providers/codex-appserver/bindings/v2/FsUnwatchParams.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/FsUnwatchResponse.d.ts +4 -0
- package/server/dist/providers/codex-appserver/bindings/v2/FsUnwatchResponse.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/FsWatchParams.d.ts +14 -0
- package/server/dist/providers/codex-appserver/bindings/v2/FsWatchParams.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/FsWatchResponse.d.ts +10 -0
- package/server/dist/providers/codex-appserver/bindings/v2/FsWatchResponse.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/FsWriteFileParams.d.ts +14 -0
- package/server/dist/providers/codex-appserver/bindings/v2/FsWriteFileParams.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/FsWriteFileResponse.d.ts +4 -0
- package/server/dist/providers/codex-appserver/bindings/v2/FsWriteFileResponse.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/GetAccountParams.d.ts +10 -0
- package/server/dist/providers/codex-appserver/bindings/v2/GetAccountParams.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/GetAccountRateLimitsResponse.d.ts +13 -0
- package/server/dist/providers/codex-appserver/bindings/v2/GetAccountRateLimitsResponse.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/GetAccountResponse.d.ts +5 -0
- package/server/dist/providers/codex-appserver/bindings/v2/GetAccountResponse.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/GitInfo.d.ts +5 -0
- package/server/dist/providers/codex-appserver/bindings/v2/GitInfo.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/GrantedPermissionProfile.d.ts +6 -0
- package/server/dist/providers/codex-appserver/bindings/v2/GrantedPermissionProfile.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/GuardianApprovalReview.d.ts +14 -0
- package/server/dist/providers/codex-appserver/bindings/v2/GuardianApprovalReview.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/GuardianApprovalReviewAction.d.ts +37 -0
- package/server/dist/providers/codex-appserver/bindings/v2/GuardianApprovalReviewAction.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/GuardianApprovalReviewStatus.d.ts +4 -0
- package/server/dist/providers/codex-appserver/bindings/v2/GuardianApprovalReviewStatus.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/GuardianCommandSource.d.ts +1 -0
- package/server/dist/providers/codex-appserver/bindings/v2/GuardianCommandSource.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/GuardianRiskLevel.d.ts +4 -0
- package/server/dist/providers/codex-appserver/bindings/v2/GuardianRiskLevel.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/GuardianUserAuthorization.d.ts +4 -0
- package/server/dist/providers/codex-appserver/bindings/v2/GuardianUserAuthorization.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/GuardianWarningNotification.d.ts +10 -0
- package/server/dist/providers/codex-appserver/bindings/v2/GuardianWarningNotification.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/HookCompletedNotification.d.ts +6 -0
- package/server/dist/providers/codex-appserver/bindings/v2/HookCompletedNotification.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/HookErrorInfo.d.ts +4 -0
- package/server/dist/providers/codex-appserver/bindings/v2/HookErrorInfo.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/HookEventName.d.ts +1 -0
- package/server/dist/providers/codex-appserver/bindings/v2/HookEventName.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/HookExecutionMode.d.ts +1 -0
- package/server/dist/providers/codex-appserver/bindings/v2/HookExecutionMode.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/HookHandlerType.d.ts +1 -0
- package/server/dist/providers/codex-appserver/bindings/v2/HookHandlerType.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/HookMetadata.d.ts +19 -0
- package/server/dist/providers/codex-appserver/bindings/v2/HookMetadata.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/HookMigration.d.ts +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/HookMigration.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/HookOutputEntry.d.ts +5 -0
- package/server/dist/providers/codex-appserver/bindings/v2/HookOutputEntry.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/HookOutputEntryKind.d.ts +1 -0
- package/server/dist/providers/codex-appserver/bindings/v2/HookOutputEntryKind.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/HookPromptFragment.d.ts +4 -0
- package/server/dist/providers/codex-appserver/bindings/v2/HookPromptFragment.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/HookRunStatus.d.ts +1 -0
- package/server/dist/providers/codex-appserver/bindings/v2/HookRunStatus.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/HookRunSummary.d.ts +24 -0
- package/server/dist/providers/codex-appserver/bindings/v2/HookRunSummary.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/HookScope.d.ts +1 -0
- package/server/dist/providers/codex-appserver/bindings/v2/HookScope.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/HookSource.d.ts +1 -0
- package/server/dist/providers/codex-appserver/bindings/v2/HookSource.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/HookStartedNotification.d.ts +6 -0
- package/server/dist/providers/codex-appserver/bindings/v2/HookStartedNotification.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/HooksListEntry.d.ts +8 -0
- package/server/dist/providers/codex-appserver/bindings/v2/HooksListEntry.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/HooksListParams.d.ts +6 -0
- package/server/dist/providers/codex-appserver/bindings/v2/HooksListParams.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/HooksListResponse.d.ts +4 -0
- package/server/dist/providers/codex-appserver/bindings/v2/HooksListResponse.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ItemCompletedNotification.d.ts +6 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ItemCompletedNotification.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ItemGuardianApprovalReviewCompletedNotification.d.ts +32 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ItemGuardianApprovalReviewCompletedNotification.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ItemGuardianApprovalReviewStartedNotification.d.ts +30 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ItemGuardianApprovalReviewStartedNotification.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ItemStartedNotification.d.ts +6 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ItemStartedNotification.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ListMcpServerStatusParams.d.ts +16 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ListMcpServerStatusParams.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ListMcpServerStatusResponse.d.ts +9 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ListMcpServerStatusResponse.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/LoginAccountParams.d.ts +27 -0
- package/server/dist/providers/codex-appserver/bindings/v2/LoginAccountParams.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/LoginAccountResponse.d.ts +23 -0
- package/server/dist/providers/codex-appserver/bindings/v2/LoginAccountResponse.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/LogoutAccountResponse.d.ts +1 -0
- package/server/dist/providers/codex-appserver/bindings/v2/LogoutAccountResponse.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ManagedHooksRequirements.d.ts +11 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ManagedHooksRequirements.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/MarketplaceAddParams.d.ts +5 -0
- package/server/dist/providers/codex-appserver/bindings/v2/MarketplaceAddParams.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/MarketplaceAddResponse.d.ts +6 -0
- package/server/dist/providers/codex-appserver/bindings/v2/MarketplaceAddResponse.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/MarketplaceInterface.d.ts +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/MarketplaceInterface.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/MarketplaceLoadErrorInfo.d.ts +5 -0
- package/server/dist/providers/codex-appserver/bindings/v2/MarketplaceLoadErrorInfo.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/MarketplaceRemoveParams.d.ts +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/MarketplaceRemoveParams.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/MarketplaceRemoveResponse.d.ts +5 -0
- package/server/dist/providers/codex-appserver/bindings/v2/MarketplaceRemoveResponse.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/MarketplaceUpgradeErrorInfo.d.ts +4 -0
- package/server/dist/providers/codex-appserver/bindings/v2/MarketplaceUpgradeErrorInfo.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/MarketplaceUpgradeParams.d.ts +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/MarketplaceUpgradeParams.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/MarketplaceUpgradeResponse.d.ts +7 -0
- package/server/dist/providers/codex-appserver/bindings/v2/MarketplaceUpgradeResponse.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/McpAuthStatus.d.ts +1 -0
- package/server/dist/providers/codex-appserver/bindings/v2/McpAuthStatus.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/McpElicitationArrayType.d.ts +1 -0
- package/server/dist/providers/codex-appserver/bindings/v2/McpElicitationArrayType.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/McpElicitationBooleanSchema.d.ts +7 -0
- package/server/dist/providers/codex-appserver/bindings/v2/McpElicitationBooleanSchema.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/McpElicitationBooleanType.d.ts +1 -0
- package/server/dist/providers/codex-appserver/bindings/v2/McpElicitationBooleanType.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/McpElicitationConstOption.d.ts +4 -0
- package/server/dist/providers/codex-appserver/bindings/v2/McpElicitationConstOption.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/McpElicitationEnumSchema.d.ts +4 -0
- package/server/dist/providers/codex-appserver/bindings/v2/McpElicitationEnumSchema.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/McpElicitationLegacyTitledEnumSchema.d.ts +9 -0
- package/server/dist/providers/codex-appserver/bindings/v2/McpElicitationLegacyTitledEnumSchema.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/McpElicitationMultiSelectEnumSchema.d.ts +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/McpElicitationMultiSelectEnumSchema.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/McpElicitationNumberSchema.d.ts +9 -0
- package/server/dist/providers/codex-appserver/bindings/v2/McpElicitationNumberSchema.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/McpElicitationNumberType.d.ts +1 -0
- package/server/dist/providers/codex-appserver/bindings/v2/McpElicitationNumberType.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/McpElicitationObjectType.d.ts +1 -0
- package/server/dist/providers/codex-appserver/bindings/v2/McpElicitationObjectType.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/McpElicitationPrimitiveSchema.d.ts +5 -0
- package/server/dist/providers/codex-appserver/bindings/v2/McpElicitationPrimitiveSchema.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/McpElicitationSchema.d.ts +16 -0
- package/server/dist/providers/codex-appserver/bindings/v2/McpElicitationSchema.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/McpElicitationSingleSelectEnumSchema.d.ts +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/McpElicitationSingleSelectEnumSchema.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/McpElicitationStringFormat.d.ts +1 -0
- package/server/dist/providers/codex-appserver/bindings/v2/McpElicitationStringFormat.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/McpElicitationStringSchema.d.ts +11 -0
- package/server/dist/providers/codex-appserver/bindings/v2/McpElicitationStringSchema.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/McpElicitationStringType.d.ts +1 -0
- package/server/dist/providers/codex-appserver/bindings/v2/McpElicitationStringType.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/McpElicitationTitledEnumItems.d.ts +4 -0
- package/server/dist/providers/codex-appserver/bindings/v2/McpElicitationTitledEnumItems.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/McpElicitationTitledMultiSelectEnumSchema.d.ts +11 -0
- package/server/dist/providers/codex-appserver/bindings/v2/McpElicitationTitledMultiSelectEnumSchema.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/McpElicitationTitledSingleSelectEnumSchema.d.ts +9 -0
- package/server/dist/providers/codex-appserver/bindings/v2/McpElicitationTitledSingleSelectEnumSchema.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/McpElicitationUntitledEnumItems.d.ts +5 -0
- package/server/dist/providers/codex-appserver/bindings/v2/McpElicitationUntitledEnumItems.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/McpElicitationUntitledMultiSelectEnumSchema.d.ts +11 -0
- package/server/dist/providers/codex-appserver/bindings/v2/McpElicitationUntitledMultiSelectEnumSchema.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/McpElicitationUntitledSingleSelectEnumSchema.d.ts +8 -0
- package/server/dist/providers/codex-appserver/bindings/v2/McpElicitationUntitledSingleSelectEnumSchema.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/McpResourceReadParams.d.ts +5 -0
- package/server/dist/providers/codex-appserver/bindings/v2/McpResourceReadParams.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/McpResourceReadResponse.d.ts +4 -0
- package/server/dist/providers/codex-appserver/bindings/v2/McpResourceReadResponse.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/McpServerElicitationAction.d.ts +1 -0
- package/server/dist/providers/codex-appserver/bindings/v2/McpServerElicitationAction.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/McpServerElicitationRequestParams.d.ts +26 -0
- package/server/dist/providers/codex-appserver/bindings/v2/McpServerElicitationRequestParams.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/McpServerElicitationRequestResponse.d.ts +15 -0
- package/server/dist/providers/codex-appserver/bindings/v2/McpServerElicitationRequestResponse.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/McpServerMigration.d.ts +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/McpServerMigration.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/McpServerOauthLoginCompletedNotification.d.ts +5 -0
- package/server/dist/providers/codex-appserver/bindings/v2/McpServerOauthLoginCompletedNotification.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/McpServerOauthLoginParams.d.ts +5 -0
- package/server/dist/providers/codex-appserver/bindings/v2/McpServerOauthLoginParams.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/McpServerOauthLoginResponse.d.ts +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/McpServerOauthLoginResponse.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/McpServerRefreshResponse.d.ts +1 -0
- package/server/dist/providers/codex-appserver/bindings/v2/McpServerRefreshResponse.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/McpServerStartupState.d.ts +1 -0
- package/server/dist/providers/codex-appserver/bindings/v2/McpServerStartupState.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/McpServerStatus.d.ts +13 -0
- package/server/dist/providers/codex-appserver/bindings/v2/McpServerStatus.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/McpServerStatusDetail.d.ts +1 -0
- package/server/dist/providers/codex-appserver/bindings/v2/McpServerStatusDetail.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/McpServerStatusUpdatedNotification.d.ts +6 -0
- package/server/dist/providers/codex-appserver/bindings/v2/McpServerStatusUpdatedNotification.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/McpServerToolCallParams.d.ts +8 -0
- package/server/dist/providers/codex-appserver/bindings/v2/McpServerToolCallParams.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/McpServerToolCallResponse.d.ts +7 -0
- package/server/dist/providers/codex-appserver/bindings/v2/McpServerToolCallResponse.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/McpToolCallError.d.ts +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/McpToolCallError.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/McpToolCallProgressNotification.d.ts +6 -0
- package/server/dist/providers/codex-appserver/bindings/v2/McpToolCallProgressNotification.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/McpToolCallResult.d.ts +6 -0
- package/server/dist/providers/codex-appserver/bindings/v2/McpToolCallResult.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/McpToolCallStatus.d.ts +1 -0
- package/server/dist/providers/codex-appserver/bindings/v2/McpToolCallStatus.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/MemoryCitation.d.ts +5 -0
- package/server/dist/providers/codex-appserver/bindings/v2/MemoryCitation.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/MemoryCitationEntry.d.ts +6 -0
- package/server/dist/providers/codex-appserver/bindings/v2/MemoryCitationEntry.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/MemoryResetResponse.d.ts +1 -0
- package/server/dist/providers/codex-appserver/bindings/v2/MemoryResetResponse.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/MergeStrategy.d.ts +1 -0
- package/server/dist/providers/codex-appserver/bindings/v2/MergeStrategy.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/MigrationDetails.d.ts +14 -0
- package/server/dist/providers/codex-appserver/bindings/v2/MigrationDetails.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/MockExperimentalMethodParams.d.ts +6 -0
- package/server/dist/providers/codex-appserver/bindings/v2/MockExperimentalMethodParams.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/MockExperimentalMethodResponse.d.ts +6 -0
- package/server/dist/providers/codex-appserver/bindings/v2/MockExperimentalMethodResponse.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/Model.d.ts +21 -0
- package/server/dist/providers/codex-appserver/bindings/v2/Model.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ModelAvailabilityNux.d.ts +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ModelAvailabilityNux.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ModelListParams.d.ts +14 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ModelListParams.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ModelListResponse.d.ts +9 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ModelListResponse.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ModelProviderCapabilitiesReadParams.d.ts +1 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ModelProviderCapabilitiesReadParams.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ModelProviderCapabilitiesReadResponse.d.ts +5 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ModelProviderCapabilitiesReadResponse.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ModelRerouteReason.d.ts +1 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ModelRerouteReason.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ModelReroutedNotification.d.ts +8 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ModelReroutedNotification.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ModelUpgradeInfo.d.ts +6 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ModelUpgradeInfo.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ModelVerification.d.ts +1 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ModelVerification.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ModelVerificationNotification.d.ts +6 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ModelVerificationNotification.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/NetworkAccess.d.ts +1 -0
- package/server/dist/providers/codex-appserver/bindings/v2/NetworkAccess.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/NetworkApprovalContext.d.ts +5 -0
- package/server/dist/providers/codex-appserver/bindings/v2/NetworkApprovalContext.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/NetworkApprovalProtocol.d.ts +1 -0
- package/server/dist/providers/codex-appserver/bindings/v2/NetworkApprovalProtocol.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/NetworkDomainPermission.d.ts +1 -0
- package/server/dist/providers/codex-appserver/bindings/v2/NetworkDomainPermission.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/NetworkPolicyAmendment.d.ts +5 -0
- package/server/dist/providers/codex-appserver/bindings/v2/NetworkPolicyAmendment.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/NetworkPolicyRuleAction.d.ts +1 -0
- package/server/dist/providers/codex-appserver/bindings/v2/NetworkPolicyRuleAction.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/NetworkRequirements.d.ts +40 -0
- package/server/dist/providers/codex-appserver/bindings/v2/NetworkRequirements.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/NetworkUnixSocketPermission.d.ts +1 -0
- package/server/dist/providers/codex-appserver/bindings/v2/NetworkUnixSocketPermission.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/NonSteerableTurnKind.d.ts +1 -0
- package/server/dist/providers/codex-appserver/bindings/v2/NonSteerableTurnKind.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/OverriddenMetadata.d.ts +7 -0
- package/server/dist/providers/codex-appserver/bindings/v2/OverriddenMetadata.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/PatchApplyStatus.d.ts +1 -0
- package/server/dist/providers/codex-appserver/bindings/v2/PatchApplyStatus.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/PatchChangeKind.d.ts +8 -0
- package/server/dist/providers/codex-appserver/bindings/v2/PatchChangeKind.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/PermissionGrantScope.d.ts +1 -0
- package/server/dist/providers/codex-appserver/bindings/v2/PermissionGrantScope.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/PermissionProfile.d.ts +12 -0
- package/server/dist/providers/codex-appserver/bindings/v2/PermissionProfile.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/PermissionProfileFileSystemPermissions.d.ts +8 -0
- package/server/dist/providers/codex-appserver/bindings/v2/PermissionProfileFileSystemPermissions.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/PermissionProfileModificationParams.d.ts +5 -0
- package/server/dist/providers/codex-appserver/bindings/v2/PermissionProfileModificationParams.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/PermissionProfileNetworkPermissions.d.ts +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/PermissionProfileNetworkPermissions.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/PermissionProfileSelectionParams.d.ts +6 -0
- package/server/dist/providers/codex-appserver/bindings/v2/PermissionProfileSelectionParams.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/PermissionsRequestApprovalParams.d.ts +10 -0
- package/server/dist/providers/codex-appserver/bindings/v2/PermissionsRequestApprovalParams.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/PermissionsRequestApprovalResponse.d.ts +10 -0
- package/server/dist/providers/codex-appserver/bindings/v2/PermissionsRequestApprovalResponse.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/PlanDeltaNotification.d.ts +10 -0
- package/server/dist/providers/codex-appserver/bindings/v2/PlanDeltaNotification.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/PluginAuthPolicy.d.ts +1 -0
- package/server/dist/providers/codex-appserver/bindings/v2/PluginAuthPolicy.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/PluginDetail.d.ts +13 -0
- package/server/dist/providers/codex-appserver/bindings/v2/PluginDetail.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/PluginInstallParams.d.ts +6 -0
- package/server/dist/providers/codex-appserver/bindings/v2/PluginInstallParams.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/PluginInstallPolicy.d.ts +1 -0
- package/server/dist/providers/codex-appserver/bindings/v2/PluginInstallPolicy.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/PluginInstallResponse.d.ts +6 -0
- package/server/dist/providers/codex-appserver/bindings/v2/PluginInstallResponse.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/PluginInterface.d.ts +42 -0
- package/server/dist/providers/codex-appserver/bindings/v2/PluginInterface.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/PluginListParams.d.ts +8 -0
- package/server/dist/providers/codex-appserver/bindings/v2/PluginListParams.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/PluginListResponse.d.ts +7 -0
- package/server/dist/providers/codex-appserver/bindings/v2/PluginListResponse.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/PluginMarketplaceEntry.d.ts +13 -0
- package/server/dist/providers/codex-appserver/bindings/v2/PluginMarketplaceEntry.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/PluginReadParams.d.ts +6 -0
- package/server/dist/providers/codex-appserver/bindings/v2/PluginReadParams.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/PluginReadResponse.d.ts +4 -0
- package/server/dist/providers/codex-appserver/bindings/v2/PluginReadResponse.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/PluginSource.d.ts +13 -0
- package/server/dist/providers/codex-appserver/bindings/v2/PluginSource.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/PluginSummary.d.ts +14 -0
- package/server/dist/providers/codex-appserver/bindings/v2/PluginSummary.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/PluginUninstallParams.d.ts +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/PluginUninstallParams.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/PluginUninstallResponse.d.ts +1 -0
- package/server/dist/providers/codex-appserver/bindings/v2/PluginUninstallResponse.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/PluginsMigration.d.ts +4 -0
- package/server/dist/providers/codex-appserver/bindings/v2/PluginsMigration.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ProfileV2.d.ts +31 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ProfileV2.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/RateLimitReachedType.d.ts +1 -0
- package/server/dist/providers/codex-appserver/bindings/v2/RateLimitReachedType.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/RateLimitSnapshot.d.ts +13 -0
- package/server/dist/providers/codex-appserver/bindings/v2/RateLimitSnapshot.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/RateLimitWindow.d.ts +5 -0
- package/server/dist/providers/codex-appserver/bindings/v2/RateLimitWindow.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/RawResponseItemCompletedNotification.d.ts +6 -0
- package/server/dist/providers/codex-appserver/bindings/v2/RawResponseItemCompletedNotification.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ReasoningEffortOption.d.ts +5 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ReasoningEffortOption.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ReasoningSummaryPartAddedNotification.d.ts +6 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ReasoningSummaryPartAddedNotification.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ReasoningSummaryTextDeltaNotification.d.ts +7 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ReasoningSummaryTextDeltaNotification.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ReasoningTextDeltaNotification.d.ts +7 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ReasoningTextDeltaNotification.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/RemoteControlClientConnectionAudience.d.ts +4 -0
- package/server/dist/providers/codex-appserver/bindings/v2/RemoteControlClientConnectionAudience.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/RemoteControlClientEnrollmentAudience.d.ts +4 -0
- package/server/dist/providers/codex-appserver/bindings/v2/RemoteControlClientEnrollmentAudience.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/RemoteControlConnectionStatus.d.ts +1 -0
- package/server/dist/providers/codex-appserver/bindings/v2/RemoteControlConnectionStatus.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/RemoteControlStatusChangedNotification.d.ts +8 -0
- package/server/dist/providers/codex-appserver/bindings/v2/RemoteControlStatusChangedNotification.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/RequestPermissionProfile.d.ts +6 -0
- package/server/dist/providers/codex-appserver/bindings/v2/RequestPermissionProfile.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ResidencyRequirement.d.ts +1 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ResidencyRequirement.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ReviewDelivery.d.ts +1 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ReviewDelivery.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ReviewStartParams.d.ts +11 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ReviewStartParams.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ReviewStartResponse.d.ts +11 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ReviewStartResponse.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ReviewTarget.d.ts +16 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ReviewTarget.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/SandboxMode.d.ts +1 -0
- package/server/dist/providers/codex-appserver/bindings/v2/SandboxMode.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/SandboxPolicy.d.ts +17 -0
- package/server/dist/providers/codex-appserver/bindings/v2/SandboxPolicy.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/SandboxWorkspaceWrite.d.ts +6 -0
- package/server/dist/providers/codex-appserver/bindings/v2/SandboxWorkspaceWrite.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/SendAddCreditsNudgeEmailParams.d.ts +4 -0
- package/server/dist/providers/codex-appserver/bindings/v2/SendAddCreditsNudgeEmailParams.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/SendAddCreditsNudgeEmailResponse.d.ts +4 -0
- package/server/dist/providers/codex-appserver/bindings/v2/SendAddCreditsNudgeEmailResponse.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ServerRequestResolvedNotification.d.ts +5 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ServerRequestResolvedNotification.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/SessionMigration.d.ts +5 -0
- package/server/dist/providers/codex-appserver/bindings/v2/SessionMigration.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/SessionSource.d.ts +6 -0
- package/server/dist/providers/codex-appserver/bindings/v2/SessionSource.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/SkillDependencies.d.ts +4 -0
- package/server/dist/providers/codex-appserver/bindings/v2/SkillDependencies.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/SkillErrorInfo.d.ts +4 -0
- package/server/dist/providers/codex-appserver/bindings/v2/SkillErrorInfo.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/SkillInterface.d.ts +9 -0
- package/server/dist/providers/codex-appserver/bindings/v2/SkillInterface.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/SkillMetadata.d.ts +17 -0
- package/server/dist/providers/codex-appserver/bindings/v2/SkillMetadata.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/SkillScope.d.ts +1 -0
- package/server/dist/providers/codex-appserver/bindings/v2/SkillScope.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/SkillSummary.d.ts +10 -0
- package/server/dist/providers/codex-appserver/bindings/v2/SkillSummary.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/SkillToolDependency.d.ts +8 -0
- package/server/dist/providers/codex-appserver/bindings/v2/SkillToolDependency.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/SkillsChangedNotification.d.ts +7 -0
- package/server/dist/providers/codex-appserver/bindings/v2/SkillsChangedNotification.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/SkillsConfigWriteParams.d.ts +12 -0
- package/server/dist/providers/codex-appserver/bindings/v2/SkillsConfigWriteParams.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/SkillsConfigWriteResponse.d.ts +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/SkillsConfigWriteResponse.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/SkillsListEntry.d.ts +7 -0
- package/server/dist/providers/codex-appserver/bindings/v2/SkillsListEntry.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/SkillsListExtraRootsForCwd.d.ts +4 -0
- package/server/dist/providers/codex-appserver/bindings/v2/SkillsListExtraRootsForCwd.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/SkillsListParams.d.ts +15 -0
- package/server/dist/providers/codex-appserver/bindings/v2/SkillsListParams.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/SkillsListResponse.d.ts +4 -0
- package/server/dist/providers/codex-appserver/bindings/v2/SkillsListResponse.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/SortDirection.d.ts +1 -0
- package/server/dist/providers/codex-appserver/bindings/v2/SortDirection.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/SubagentMigration.d.ts +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/SubagentMigration.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/TerminalInteractionNotification.d.ts +7 -0
- package/server/dist/providers/codex-appserver/bindings/v2/TerminalInteractionNotification.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/TextElement.d.ts +11 -0
- package/server/dist/providers/codex-appserver/bindings/v2/TextElement.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/TextPosition.d.ts +10 -0
- package/server/dist/providers/codex-appserver/bindings/v2/TextPosition.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/TextRange.d.ts +5 -0
- package/server/dist/providers/codex-appserver/bindings/v2/TextRange.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/Thread.d.ts +75 -0
- package/server/dist/providers/codex-appserver/bindings/v2/Thread.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ThreadActiveFlag.d.ts +1 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ThreadActiveFlag.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ThreadApproveGuardianDeniedActionParams.d.ts +8 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ThreadApproveGuardianDeniedActionParams.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ThreadApproveGuardianDeniedActionResponse.d.ts +1 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ThreadApproveGuardianDeniedActionResponse.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ThreadArchiveParams.d.ts +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ThreadArchiveParams.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ThreadArchiveResponse.d.ts +1 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ThreadArchiveResponse.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ThreadArchivedNotification.d.ts +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ThreadArchivedNotification.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ThreadBackgroundTerminalsCleanParams.d.ts +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ThreadBackgroundTerminalsCleanParams.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ThreadBackgroundTerminalsCleanResponse.d.ts +1 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ThreadBackgroundTerminalsCleanResponse.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ThreadClosedNotification.d.ts +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ThreadClosedNotification.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ThreadCompactStartParams.d.ts +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ThreadCompactStartParams.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ThreadCompactStartResponse.d.ts +1 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ThreadCompactStartResponse.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ThreadDecrementElicitationParams.d.ts +9 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ThreadDecrementElicitationParams.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ThreadDecrementElicitationResponse.d.ts +13 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ThreadDecrementElicitationResponse.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ThreadForkParams.d.ts +63 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ThreadForkParams.js +5 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ThreadForkResponse.d.ts +42 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ThreadForkResponse.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ThreadGoal.d.ts +11 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ThreadGoal.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ThreadGoalClearParams.d.ts +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ThreadGoalClearParams.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ThreadGoalClearResponse.d.ts +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ThreadGoalClearResponse.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ThreadGoalClearedNotification.d.ts +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ThreadGoalClearedNotification.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ThreadGoalGetParams.d.ts +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ThreadGoalGetParams.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ThreadGoalGetResponse.d.ts +4 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ThreadGoalGetResponse.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ThreadGoalSetParams.d.ts +7 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ThreadGoalSetParams.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ThreadGoalSetResponse.d.ts +4 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ThreadGoalSetResponse.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ThreadGoalStatus.d.ts +1 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ThreadGoalStatus.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ThreadGoalUpdatedNotification.d.ts +6 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ThreadGoalUpdatedNotification.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ThreadIncrementElicitationParams.d.ts +9 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ThreadIncrementElicitationParams.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ThreadIncrementElicitationResponse.d.ts +13 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ThreadIncrementElicitationResponse.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ThreadInjectItemsParams.d.ts +8 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ThreadInjectItemsParams.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ThreadInjectItemsResponse.d.ts +1 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ThreadInjectItemsResponse.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ThreadItem.d.ts +180 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ThreadItem.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ThreadListParams.d.ts +51 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ThreadListParams.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ThreadListResponse.d.ts +16 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ThreadListResponse.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ThreadLoadedListParams.d.ts +10 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ThreadLoadedListParams.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ThreadLoadedListResponse.d.ts +11 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ThreadLoadedListResponse.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ThreadMemoryModeSetParams.d.ts +5 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ThreadMemoryModeSetParams.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ThreadMemoryModeSetResponse.d.ts +1 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ThreadMemoryModeSetResponse.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ThreadMetadataGitInfoUpdateParams.d.ts +17 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ThreadMetadataGitInfoUpdateParams.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ThreadMetadataUpdateParams.d.ts +10 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ThreadMetadataUpdateParams.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ThreadMetadataUpdateResponse.d.ts +4 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ThreadMetadataUpdateResponse.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ThreadNameUpdatedNotification.d.ts +4 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ThreadNameUpdatedNotification.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ThreadReadParams.d.ts +7 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ThreadReadParams.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ThreadReadResponse.d.ts +4 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ThreadReadResponse.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ThreadRealtimeAppendAudioParams.d.ts +8 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ThreadRealtimeAppendAudioParams.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ThreadRealtimeAppendAudioResponse.d.ts +4 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ThreadRealtimeAppendAudioResponse.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ThreadRealtimeAppendTextParams.d.ts +7 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ThreadRealtimeAppendTextParams.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ThreadRealtimeAppendTextResponse.d.ts +4 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ThreadRealtimeAppendTextResponse.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ThreadRealtimeAudioChunk.d.ts +10 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ThreadRealtimeAudioChunk.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ThreadRealtimeClosedNotification.d.ts +7 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ThreadRealtimeClosedNotification.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ThreadRealtimeErrorNotification.d.ts +7 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ThreadRealtimeErrorNotification.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ThreadRealtimeItemAddedNotification.d.ts +8 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ThreadRealtimeItemAddedNotification.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ThreadRealtimeListVoicesParams.d.ts +4 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ThreadRealtimeListVoicesParams.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ThreadRealtimeListVoicesResponse.d.ts +7 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ThreadRealtimeListVoicesResponse.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ThreadRealtimeOutputAudioDeltaNotification.d.ts +8 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ThreadRealtimeOutputAudioDeltaNotification.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ThreadRealtimeSdpNotification.d.ts +7 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ThreadRealtimeSdpNotification.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ThreadRealtimeStartParams.d.ts +18 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ThreadRealtimeStartParams.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ThreadRealtimeStartResponse.d.ts +4 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ThreadRealtimeStartResponse.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ThreadRealtimeStartTransport.d.ts +13 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ThreadRealtimeStartTransport.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ThreadRealtimeStartedNotification.d.ts +9 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ThreadRealtimeStartedNotification.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ThreadRealtimeStopParams.d.ts +6 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ThreadRealtimeStopParams.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ThreadRealtimeStopResponse.d.ts +4 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ThreadRealtimeStopResponse.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ThreadRealtimeTranscriptDeltaNotification.d.ts +12 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ThreadRealtimeTranscriptDeltaNotification.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ThreadRealtimeTranscriptDoneNotification.d.ts +12 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ThreadRealtimeTranscriptDoneNotification.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ThreadResumeParams.d.ts +73 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ThreadResumeParams.js +5 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ThreadResumeResponse.d.ts +42 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ThreadResumeResponse.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ThreadRollbackParams.d.ts +10 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ThreadRollbackParams.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ThreadRollbackResponse.d.ts +11 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ThreadRollbackResponse.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ThreadSetNameParams.d.ts +4 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ThreadSetNameParams.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ThreadSetNameResponse.d.ts +1 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ThreadSetNameResponse.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ThreadShellCommandParams.d.ts +10 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ThreadShellCommandParams.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ThreadShellCommandResponse.d.ts +1 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ThreadShellCommandResponse.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ThreadSortKey.d.ts +1 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ThreadSortKey.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ThreadSourceKind.d.ts +1 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ThreadSourceKind.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ThreadStartParams.d.ts +66 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ThreadStartParams.js +5 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ThreadStartResponse.d.ts +42 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ThreadStartResponse.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ThreadStartSource.d.ts +1 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ThreadStartSource.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ThreadStartedNotification.d.ts +4 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ThreadStartedNotification.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ThreadStatus.d.ts +11 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ThreadStatus.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ThreadStatusChangedNotification.d.ts +5 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ThreadStatusChangedNotification.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ThreadTokenUsage.d.ts +6 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ThreadTokenUsage.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ThreadTokenUsageUpdatedNotification.d.ts +6 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ThreadTokenUsageUpdatedNotification.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ThreadTurnsListParams.d.ts +16 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ThreadTurnsListParams.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ThreadTurnsListResponse.d.ts +16 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ThreadTurnsListResponse.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ThreadUnarchiveParams.d.ts +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ThreadUnarchiveParams.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ThreadUnarchiveResponse.d.ts +4 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ThreadUnarchiveResponse.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ThreadUnarchivedNotification.d.ts +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ThreadUnarchivedNotification.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ThreadUnsubscribeParams.d.ts +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ThreadUnsubscribeParams.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ThreadUnsubscribeResponse.d.ts +4 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ThreadUnsubscribeResponse.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ThreadUnsubscribeStatus.d.ts +1 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ThreadUnsubscribeStatus.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/TokenUsageBreakdown.d.ts +7 -0
- package/server/dist/providers/codex-appserver/bindings/v2/TokenUsageBreakdown.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ToolRequestUserInputAnswer.d.ts +6 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ToolRequestUserInputAnswer.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ToolRequestUserInputOption.d.ts +7 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ToolRequestUserInputOption.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ToolRequestUserInputParams.d.ts +10 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ToolRequestUserInputParams.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ToolRequestUserInputQuestion.d.ts +12 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ToolRequestUserInputQuestion.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ToolRequestUserInputResponse.d.ts +9 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ToolRequestUserInputResponse.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ToolsV2.d.ts +5 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ToolsV2.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/Turn.d.ts +29 -0
- package/server/dist/providers/codex-appserver/bindings/v2/Turn.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/TurnCompletedNotification.d.ts +5 -0
- package/server/dist/providers/codex-appserver/bindings/v2/TurnCompletedNotification.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/TurnDiffUpdatedNotification.d.ts +9 -0
- package/server/dist/providers/codex-appserver/bindings/v2/TurnDiffUpdatedNotification.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/TurnEnvironmentParams.d.ts +5 -0
- package/server/dist/providers/codex-appserver/bindings/v2/TurnEnvironmentParams.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/TurnError.d.ts +6 -0
- package/server/dist/providers/codex-appserver/bindings/v2/TurnError.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/TurnInterruptParams.d.ts +4 -0
- package/server/dist/providers/codex-appserver/bindings/v2/TurnInterruptParams.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/TurnInterruptResponse.d.ts +1 -0
- package/server/dist/providers/codex-appserver/bindings/v2/TurnInterruptResponse.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/TurnPlanStep.d.ts +5 -0
- package/server/dist/providers/codex-appserver/bindings/v2/TurnPlanStep.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/TurnPlanStepStatus.d.ts +1 -0
- package/server/dist/providers/codex-appserver/bindings/v2/TurnPlanStepStatus.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/TurnPlanUpdatedNotification.d.ts +7 -0
- package/server/dist/providers/codex-appserver/bindings/v2/TurnPlanUpdatedNotification.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/TurnStartParams.d.ts +87 -0
- package/server/dist/providers/codex-appserver/bindings/v2/TurnStartParams.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/TurnStartResponse.d.ts +4 -0
- package/server/dist/providers/codex-appserver/bindings/v2/TurnStartResponse.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/TurnStartedNotification.d.ts +5 -0
- package/server/dist/providers/codex-appserver/bindings/v2/TurnStartedNotification.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/TurnStatus.d.ts +1 -0
- package/server/dist/providers/codex-appserver/bindings/v2/TurnStatus.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/TurnSteerParams.d.ts +16 -0
- package/server/dist/providers/codex-appserver/bindings/v2/TurnSteerParams.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/TurnSteerResponse.d.ts +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/TurnSteerResponse.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/UserInput.d.ts +23 -0
- package/server/dist/providers/codex-appserver/bindings/v2/UserInput.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/WarningNotification.d.ts +10 -0
- package/server/dist/providers/codex-appserver/bindings/v2/WarningNotification.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/WebSearchAction.d.ts +14 -0
- package/server/dist/providers/codex-appserver/bindings/v2/WebSearchAction.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/WindowsSandboxSetupCompletedNotification.d.ts +6 -0
- package/server/dist/providers/codex-appserver/bindings/v2/WindowsSandboxSetupCompletedNotification.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/WindowsSandboxSetupMode.d.ts +1 -0
- package/server/dist/providers/codex-appserver/bindings/v2/WindowsSandboxSetupMode.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/WindowsSandboxSetupStartParams.d.ts +6 -0
- package/server/dist/providers/codex-appserver/bindings/v2/WindowsSandboxSetupStartParams.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/WindowsSandboxSetupStartResponse.d.ts +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/WindowsSandboxSetupStartResponse.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/WindowsWorldWritableWarningNotification.d.ts +5 -0
- package/server/dist/providers/codex-appserver/bindings/v2/WindowsWorldWritableWarningNotification.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/WriteStatus.d.ts +1 -0
- package/server/dist/providers/codex-appserver/bindings/v2/WriteStatus.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/index.d.ts +458 -0
- package/server/dist/providers/codex-appserver/bindings/v2/index.js +3 -0
- package/server/dist/providers/codex-appserver/catalog.d.ts +5 -0
- package/server/dist/providers/codex-appserver/catalog.js +193 -0
- package/server/dist/providers/codex-appserver/imageGen.d.ts +30 -0
- package/server/dist/providers/codex-appserver/imageGen.js +130 -0
- package/server/dist/providers/codex-appserver/index.d.ts +10 -0
- package/server/dist/providers/codex-appserver/index.js +473 -0
- package/server/dist/providers/codex-appserver/jsonRpc.d.ts +43 -0
- package/server/dist/providers/codex-appserver/jsonRpc.js +215 -0
- package/server/dist/providers/codex-appserver/operatorQuestions.d.ts +37 -0
- package/server/dist/providers/codex-appserver/operatorQuestions.js +144 -0
- package/server/dist/providers/codex-appserver/worker.d.ts +110 -0
- package/server/dist/providers/codex-appserver/worker.js +1515 -0
- package/server/dist/providers/codex-stream.d.ts +18 -0
- package/server/dist/providers/codex-stream.js +248 -0
- package/server/dist/providers/codex.d.ts +11 -0
- package/server/dist/providers/codex.js +495 -0
- package/server/dist/providers/codexCodeMode.d.ts +5 -0
- package/server/dist/providers/codexCodeMode.js +102 -0
- package/server/dist/providers/codexContextWindow.d.ts +8 -0
- package/server/dist/providers/codexContextWindow.js +39 -0
- package/server/dist/providers/cursor/acpJsonRpc.d.ts +40 -0
- package/server/dist/providers/cursor/acpJsonRpc.js +173 -0
- package/server/dist/providers/cursor/acpSegments.d.ts +8 -0
- package/server/dist/providers/cursor/acpSegments.js +18 -0
- package/server/dist/providers/cursor/authToken.d.ts +9 -0
- package/server/dist/providers/cursor/authToken.js +50 -0
- package/server/dist/providers/cursor/catalog.d.ts +5 -0
- package/server/dist/providers/cursor/catalog.js +112 -0
- package/server/dist/providers/cursor/index.d.ts +36 -0
- package/server/dist/providers/cursor/index.js +346 -0
- package/server/dist/providers/cursor/print.d.ts +2 -0
- package/server/dist/providers/cursor/print.js +155 -0
- package/server/dist/providers/cursor/worker.d.ts +72 -0
- package/server/dist/providers/cursor/worker.js +691 -0
- package/server/dist/providers/deepseek.d.ts +11 -0
- package/server/dist/providers/deepseek.js +33 -0
- package/server/dist/providers/deepseekProfiles.d.ts +71 -0
- package/server/dist/providers/deepseekProfiles.js +239 -0
- package/server/dist/providers/endpointDiscovery.d.ts +20 -0
- package/server/dist/providers/endpointDiscovery.js +303 -0
- package/server/dist/providers/errorClassifier.d.ts +18 -0
- package/server/dist/providers/errorClassifier.js +203 -0
- package/server/dist/providers/fallbackChain.d.ts +53 -0
- package/server/dist/providers/fallbackChain.js +137 -0
- package/server/dist/providers/goalBlock.d.ts +4 -0
- package/server/dist/providers/goalBlock.js +54 -0
- package/server/dist/providers/index.d.ts +6 -0
- package/server/dist/providers/index.js +152 -0
- package/server/dist/providers/llamacpp.d.ts +25 -0
- package/server/dist/providers/llamacpp.js +1212 -0
- package/server/dist/providers/llamacppBinary.d.ts +7 -0
- package/server/dist/providers/llamacppBinary.js +39 -0
- package/server/dist/providers/llamacppManager.d.ts +49 -0
- package/server/dist/providers/llamacppManager.js +504 -0
- package/server/dist/providers/llamacppRecovery.d.ts +30 -0
- package/server/dist/providers/llamacppRecovery.js +218 -0
- package/server/dist/providers/llamacppServeDiagnose.d.ts +6 -0
- package/server/dist/providers/llamacppServeDiagnose.js +139 -0
- package/server/dist/providers/lmstudio.d.ts +56 -0
- package/server/dist/providers/lmstudio.js +824 -0
- package/server/dist/providers/localModelControl.d.ts +6 -0
- package/server/dist/providers/localModelControl.js +19 -0
- package/server/dist/providers/ollama.d.ts +115 -0
- package/server/dist/providers/ollama.js +2334 -0
- package/server/dist/providers/ollamaBoundaryStore.d.ts +13 -0
- package/server/dist/providers/ollamaBoundaryStore.js +63 -0
- package/server/dist/providers/ollamaCtxFallback.d.ts +25 -0
- package/server/dist/providers/ollamaCtxFallback.js +115 -0
- package/server/dist/providers/ollamaDurableCompaction.d.ts +21 -0
- package/server/dist/providers/ollamaDurableCompaction.js +107 -0
- package/server/dist/providers/ollamaExecutionHistory.d.ts +21 -0
- package/server/dist/providers/ollamaExecutionHistory.js +109 -0
- package/server/dist/providers/ollamaFencedTools.d.ts +22 -0
- package/server/dist/providers/ollamaFencedTools.js +397 -0
- package/server/dist/providers/ollamaForceCompact.d.ts +2 -0
- package/server/dist/providers/ollamaForceCompact.js +35 -0
- package/server/dist/providers/ollamaParams.d.ts +25 -0
- package/server/dist/providers/ollamaParams.js +164 -0
- package/server/dist/providers/ollamaRecovery.d.ts +56 -0
- package/server/dist/providers/ollamaRecovery.js +371 -0
- package/server/dist/providers/ollamaResilience.d.ts +86 -0
- package/server/dist/providers/ollamaResilience.js +382 -0
- package/server/dist/providers/ollamaTokens.d.ts +44 -0
- package/server/dist/providers/ollamaTokens.js +179 -0
- package/server/dist/providers/ollamaToolSubset.d.ts +18 -0
- package/server/dist/providers/ollamaToolSubset.js +202 -0
- package/server/dist/providers/ollamaTools.d.ts +38 -0
- package/server/dist/providers/ollamaTools.js +1164 -0
- package/server/dist/providers/ollamaUtility.d.ts +74 -0
- package/server/dist/providers/ollamaUtility.js +383 -0
- package/server/dist/providers/ollamaVram.d.ts +23 -0
- package/server/dist/providers/ollamaVram.js +322 -0
- package/server/dist/providers/outputSignature.d.ts +1 -0
- package/server/dist/providers/outputSignature.js +23 -0
- package/server/dist/providers/outputStyle.d.ts +2 -0
- package/server/dist/providers/outputStyle.js +87 -0
- package/server/dist/providers/ragInjection.d.ts +47 -0
- package/server/dist/providers/ragInjection.js +230 -0
- package/server/dist/providers/runtimeVersions.d.ts +4 -0
- package/server/dist/providers/runtimeVersions.js +54 -0
- package/server/dist/providers/strata.d.ts +11 -0
- package/server/dist/providers/strata.js +60 -0
- package/server/dist/providers/strataProfiles.d.ts +50 -0
- package/server/dist/providers/strataProfiles.js +212 -0
- package/server/dist/providers/types.d.ts +48 -0
- package/server/dist/providers/types.js +2 -0
- package/server/dist/quota.d.ts +44 -0
- package/server/dist/quota.js +136 -0
- package/server/dist/recall/index.d.ts +53 -0
- package/server/dist/recall/index.js +747 -0
- package/server/dist/recall/search.d.ts +12 -0
- package/server/dist/recall/search.js +164 -0
- package/server/dist/recall/summarize.d.ts +20 -0
- package/server/dist/recall/summarize.js +177 -0
- package/server/dist/recentFilesLedger.d.ts +22 -0
- package/server/dist/recentFilesLedger.js +134 -0
- package/server/dist/rulePickupGuard.d.ts +26 -0
- package/server/dist/rulePickupGuard.js +96 -0
- package/server/dist/runtimeEnv.d.ts +3 -0
- package/server/dist/runtimeEnv.js +86 -0
- package/server/dist/server/broadcast.d.ts +56 -0
- package/server/dist/server/broadcast.js +636 -0
- package/server/dist/server/constants.d.ts +17 -0
- package/server/dist/server/constants.js +68 -0
- package/server/dist/server/logger.d.ts +18 -0
- package/server/dist/server/logger.js +187 -0
- package/server/dist/server/prompts.d.ts +11 -0
- package/server/dist/server/prompts.js +79 -0
- package/server/dist/server/readiness.d.ts +10 -0
- package/server/dist/server/readiness.js +43 -0
- package/server/dist/server/state.d.ts +12 -0
- package/server/dist/server/state.js +34 -0
- package/server/dist/server/updateCheck.d.ts +6 -0
- package/server/dist/server/updateCheck.js +18 -0
- package/server/dist/services/discover.d.ts +2 -0
- package/server/dist/services/discover.js +369 -0
- package/server/dist/sessionJsonl.d.ts +18 -0
- package/server/dist/sessionJsonl.js +117 -0
- package/server/dist/settings.d.ts +17 -0
- package/server/dist/settings.js +1383 -0
- package/server/dist/skillAudit.d.ts +10 -0
- package/server/dist/skillAudit.js +65 -0
- package/server/dist/skillUsage.d.ts +13 -0
- package/server/dist/skillUsage.js +116 -0
- package/server/dist/skills.d.ts +70 -0
- package/server/dist/skills.js +398 -0
- package/server/dist/smartPickup.d.ts +24 -0
- package/server/dist/smartPickup.js +177 -0
- package/server/dist/smartPickupAdapters.d.ts +47 -0
- package/server/dist/smartPickupAdapters.js +472 -0
- package/server/dist/smartPickupCorpus.d.ts +29 -0
- package/server/dist/smartPickupCorpus.js +44 -0
- package/server/dist/smartPickupEvaluator.d.ts +91 -0
- package/server/dist/smartPickupEvaluator.js +189 -0
- package/server/dist/smartPickupLedger.d.ts +40 -0
- package/server/dist/smartPickupLedger.js +169 -0
- package/server/dist/smartPickupObserver.d.ts +30 -0
- package/server/dist/smartPickupObserver.js +375 -0
- package/server/dist/smartPickupThread.d.ts +8 -0
- package/server/dist/smartPickupThread.js +31 -0
- package/server/dist/taskDispatcher.d.ts +40 -0
- package/server/dist/taskDispatcher.js +354 -0
- package/server/dist/templates/store.d.ts +14 -0
- package/server/dist/templates/store.js +191 -0
- package/server/dist/terminal/ptyManager.d.ts +54 -0
- package/server/dist/terminal/ptyManager.js +270 -0
- package/server/dist/terminal/ptyPidRegistry.d.ts +7 -0
- package/server/dist/terminal/ptyPidRegistry.js +98 -0
- package/server/dist/terminal/terminalChannel.d.ts +18 -0
- package/server/dist/terminal/terminalChannel.js +167 -0
- package/server/dist/tidyDraft.d.ts +11 -0
- package/server/dist/tidyDraft.js +17 -0
- package/server/dist/toolbox.d.ts +22 -0
- package/server/dist/toolbox.js +300 -0
- package/server/dist/toolboxWorkflow.d.ts +7 -0
- package/server/dist/toolboxWorkflow.js +28 -0
- package/server/dist/turnChanges.d.ts +18 -0
- package/server/dist/turnChanges.js +90 -0
- package/server/dist/ultracodeFleetWatcher.d.ts +22 -0
- package/server/dist/ultracodeFleetWatcher.js +210 -0
- package/server/dist/updateCheck.d.ts +23 -0
- package/server/dist/updateCheck.js +106 -0
- package/server/dist/updateManager.d.ts +90 -0
- package/server/dist/updateManager.js +200 -0
- package/server/dist/usage.d.ts +3 -0
- package/server/dist/usage.js +173 -0
- package/server/dist/utilityBrief.d.ts +3 -0
- package/server/dist/utilityBrief.js +32 -0
- package/server/dist/utilityJob.d.ts +18 -0
- package/server/dist/utilityJob.js +92 -0
- package/server/dist/voice/activity.d.ts +20 -0
- package/server/dist/voice/activity.js +244 -0
- package/server/dist/voice/activityBus.d.ts +9 -0
- package/server/dist/voice/activityBus.js +22 -0
- package/server/dist/voice/activityStore.d.ts +38 -0
- package/server/dist/voice/activityStore.js +114 -0
- package/server/dist/voice/capture-ready.wav +0 -0
- package/server/dist/voice/computerContext.d.ts +9 -0
- package/server/dist/voice/computerContext.js +148 -0
- package/server/dist/voice/conditionContext.d.ts +9 -0
- package/server/dist/voice/conditionContext.js +73 -0
- package/server/dist/voice/conditionFacts.d.ts +23 -0
- package/server/dist/voice/conditionFacts.js +67 -0
- package/server/dist/voice/conditionReply.d.ts +7 -0
- package/server/dist/voice/conditionReply.js +72 -0
- package/server/dist/voice/conditionSchema.d.ts +167 -0
- package/server/dist/voice/conditionSchema.js +117 -0
- package/server/dist/voice/conditionStore.d.ts +31 -0
- package/server/dist/voice/conditionStore.js +223 -0
- package/server/dist/voice/conditions.d.ts +87 -0
- package/server/dist/voice/conditions.js +590 -0
- package/server/dist/voice/history.d.ts +16 -0
- package/server/dist/voice/history.js +44 -0
- package/server/dist/voice/inputObservation.d.ts +10 -0
- package/server/dist/voice/inputObservation.js +63 -0
- package/server/dist/voice/localRecognizer.d.ts +36 -0
- package/server/dist/voice/localRecognizer.js +155 -0
- package/server/dist/voice/luna.d.ts +5 -0
- package/server/dist/voice/luna.js +125 -0
- package/server/dist/voice/mailRuleStore.d.ts +34 -0
- package/server/dist/voice/mailRuleStore.js +111 -0
- package/server/dist/voice/mailRules.d.ts +15 -0
- package/server/dist/voice/mailRules.js +320 -0
- package/server/dist/voice/operatorPrompt.d.ts +1 -0
- package/server/dist/voice/operatorPrompt.js +38 -0
- package/server/dist/voice/operatorTools.d.ts +21 -0
- package/server/dist/voice/operatorTools.js +85 -0
- package/server/dist/voice/recognizer.py +188 -0
- package/server/dist/voice/sessions.d.ts +27 -0
- package/server/dist/voice/sessions.js +107 -0
- package/server/dist/voice/toolDefinitions.d.ts +18 -0
- package/server/dist/voice/toolDefinitions.js +48 -0
- package/server/dist/voice/turnWatchdog.d.ts +28 -0
- package/server/dist/voice/turnWatchdog.js +41 -0
- package/server/dist/voice/voiceSetup.d.ts +60 -0
- package/server/dist/voice/voiceSetup.js +140 -0
- package/server/dist/voice/watchStore.d.ts +21 -0
- package/server/dist/voice/watchStore.js +71 -0
- package/server/dist/voice/watches.d.ts +22 -0
- package/server/dist/voice/watches.js +153 -0
- package/server/dist/windowsCommand.d.ts +15 -0
- package/server/dist/windowsCommand.js +76 -0
- package/server/dist/workers/StreamParser.d.ts +51 -0
- package/server/dist/workers/StreamParser.js +337 -0
- package/server/dist/workers/WorkerManager.d.ts +100 -0
- package/server/dist/workers/WorkerManager.js +458 -0
- package/server/dist/workers/interruptProcess.d.ts +2 -0
- package/server/dist/workers/interruptProcess.js +19 -0
- package/server/dist/workers/limits.d.ts +5 -0
- package/server/dist/workers/limits.js +76 -0
- package/server/dist/workers/pidRegistry.d.ts +14 -0
- package/server/dist/workers/pidRegistry.js +130 -0
- package/server/dist/workers/procListening.d.ts +1 -0
- package/server/dist/workers/procListening.js +116 -0
- package/server/dist/workers/procListeningAll.d.ts +6 -0
- package/server/dist/workers/procListeningAll.js +141 -0
- package/server/dist/workers/processActivity.d.ts +16 -0
- package/server/dist/workers/processActivity.js +166 -0
- package/server/dist/workers/processKill.d.ts +5 -0
- package/server/dist/workers/processKill.js +50 -0
- package/server/dist/workers/processStartTime.d.ts +11 -0
- package/server/dist/workers/processStartTime.js +102 -0
- package/server/dist/workers/stuckBreaker.d.ts +28 -0
- package/server/dist/workers/stuckBreaker.js +115 -0
- package/server/dist/workflowMeta.d.ts +126 -0
- package/server/dist/workflowMeta.js +392 -0
- package/server/dist/workflowStore.d.ts +25 -0
- package/server/dist/workflowStore.js +585 -0
- package/server/dist/workflows/modelTitles.d.ts +17 -0
- package/server/dist/workflows/modelTitles.js +97 -0
- package/server/dist/workflows/purgeWorkflow.d.ts +8 -0
- package/server/dist/workflows/purgeWorkflow.js +157 -0
- package/server/dist/workflows/sessionDiscovery.d.ts +16 -0
- package/server/dist/workflows/sessionDiscovery.js +395 -0
- package/server/dist/workflows/sessionIndex.d.ts +23 -0
- package/server/dist/workflows/sessionIndex.js +472 -0
- package/server/dist/workflows/terminalSessions.d.ts +6 -0
- package/server/dist/workflows/terminalSessions.js +180 -0
- package/server/dist/workflows/transcripts.d.ts +11 -0
- package/server/dist/workflows/transcripts.js +210 -0
- package/server/dist/workflows/types.d.ts +117 -0
- package/server/dist/workflows/types.js +2 -0
- package/server/dist/workspace.d.ts +15 -0
- package/server/dist/workspace.js +164 -0
- package/server/dist/ws/bakeoffHandlers.d.ts +16 -0
- package/server/dist/ws/bakeoffHandlers.js +327 -0
- package/server/dist/ws/clusterHandlers.d.ts +76 -0
- package/server/dist/ws/clusterHandlers.js +2713 -0
- package/server/dist/ws/compactHandlers.d.ts +5 -0
- package/server/dist/ws/compactHandlers.js +395 -0
- package/server/dist/ws/compareHandlers.d.ts +6 -0
- package/server/dist/ws/compareHandlers.js +189 -0
- package/server/dist/ws/gateHandlers.d.ts +8 -0
- package/server/dist/ws/gateHandlers.js +141 -0
- package/server/dist/ws/genesisHandlers.d.ts +12 -0
- package/server/dist/ws/genesisHandlers.js +713 -0
- package/server/dist/ws/handoffHandlers.d.ts +29 -0
- package/server/dist/ws/handoffHandlers.js +1756 -0
- package/server/dist/ws/knowledgeHandlers.d.ts +4 -0
- package/server/dist/ws/knowledgeHandlers.js +62 -0
- package/server/dist/ws/mcpHandlers.d.ts +8 -0
- package/server/dist/ws/mcpHandlers.js +170 -0
- package/server/dist/ws/messageQueue.d.ts +2 -0
- package/server/dist/ws/messageQueue.js +11 -0
- package/server/dist/ws/operatorQuestionHandlers.d.ts +4 -0
- package/server/dist/ws/operatorQuestionHandlers.js +28 -0
- package/server/dist/ws/postureHandlers.d.ts +4 -0
- package/server/dist/ws/postureHandlers.js +30 -0
- package/server/dist/ws/previewCaptureHandlers.d.ts +3 -0
- package/server/dist/ws/previewCaptureHandlers.js +215 -0
- package/server/dist/ws/projectTrustHandlers.d.ts +4 -0
- package/server/dist/ws/projectTrustHandlers.js +48 -0
- package/server/dist/ws/taskLedgerHandlers.d.ts +38 -0
- package/server/dist/ws/taskLedgerHandlers.js +355 -0
- package/server/dist/ws/taskWorktreeHandlers.d.ts +4 -0
- package/server/dist/ws/taskWorktreeHandlers.js +72 -0
- package/server/dist/ws/turnEngine.d.ts +91 -0
- package/server/dist/ws/turnEngine.js +2907 -0
- package/server/dist/ws/updatePrimaryConfig.d.ts +4 -0
- package/server/dist/ws/updatePrimaryConfig.js +455 -0
- package/server/dist/ws/workflowHandlers.d.ts +44 -0
- package/server/dist/ws/workflowHandlers.js +2089 -0
- package/server/package.json +6 -0
- package/server/src/appVersion.ts +9 -0
- package/server/src/arcoHome.ts +11 -0
- package/server/src/artifacts.ts +58 -0
- package/server/src/atomicFile.ts +186 -0
- package/server/src/attention.ts +179 -0
- package/server/src/auth.ts +435 -0
- package/server/src/authLoginInstructions.ts +18 -0
- package/server/src/authLoginSession.ts +131 -0
- package/server/src/bakeoffStore.ts +91 -0
- package/server/src/capabilities.ts +439 -0
- package/server/src/catalog.ts +127 -0
- package/server/src/catchUp.ts +96 -0
- package/server/src/chatMode.ts +123 -0
- package/server/src/checkoutOwnership.ts +117 -0
- package/server/src/claudeMdDiscovery.ts +63 -0
- package/server/src/clusterAccessDoctrine.ts +11 -0
- package/server/src/clusterAutoTurn.ts +460 -0
- package/server/src/clusterBudget.ts +41 -0
- package/server/src/clusterDirector.ts +30 -0
- package/server/src/clusterEfficiency.ts +11 -0
- package/server/src/clusterIdleNudger.ts +214 -0
- package/server/src/clusterMailbox.ts +284 -0
- package/server/src/clusterPeerOps.ts +1345 -0
- package/server/src/clusterPlanBridge.ts +234 -0
- package/server/src/clusterPlanOutline.ts +25 -0
- package/server/src/clusterPlanStore.ts +322 -0
- package/server/src/clusterPresets.ts +212 -0
- package/server/src/clusterProgress.ts +66 -0
- package/server/src/clusterRehydrate.ts +74 -0
- package/server/src/clusterSnapshotBundle.ts +100 -0
- package/server/src/clusterSnapshots.ts +907 -0
- package/server/src/clusterStore.ts +1225 -0
- package/server/src/clusterStringFold.ts +71 -0
- package/server/src/clusterVaultCrypto.ts +78 -0
- package/server/src/codexRolloutTokens.ts +106 -0
- package/server/src/codexUsage.ts +389 -0
- package/server/src/codexUsageRpc.ts +100 -0
- package/server/src/configValue.ts +165 -0
- package/server/src/connectionCatalog.ts +23 -0
- package/server/src/contentSearch.ts +152 -0
- package/server/src/contextCalibrator.ts +215 -0
- package/server/src/contextEstimator.ts +231 -0
- package/server/src/contextRefs.ts +298 -0
- package/server/src/crashRecovery.ts +113 -0
- package/server/src/cursorUsage.ts +289 -0
- package/server/src/defaults/models.md +168 -0
- package/server/src/diagnostics/checks.ts +868 -0
- package/server/src/diagnostics/codeSkew.ts +157 -0
- package/server/src/diagnostics/modelHealth.ts +446 -0
- package/server/src/diagnostics/shutdownForensics.ts +73 -0
- package/server/src/diagnostics/shutdownWindow.ts +121 -0
- package/server/src/diagnostics/supportBundle.ts +256 -0
- package/server/src/envAliases.ts +23 -0
- package/server/src/explorerArtifacts.ts +164 -0
- package/server/src/explorerChanged.ts +126 -0
- package/server/src/explorerDocs.ts +101 -0
- package/server/src/explorerLaunch.ts +116 -0
- package/server/src/explorerPlans.ts +37 -0
- package/server/src/fileAccessPolicy.ts +128 -0
- package/server/src/genesis/creative.ts +217 -0
- package/server/src/genesis/prompts.ts +215 -0
- package/server/src/genesis/scaffold.ts +336 -0
- package/server/src/genesis/stages.ts +121 -0
- package/server/src/git.ts +362 -0
- package/server/src/gitBakeoff.ts +318 -0
- package/server/src/gitDiff.ts +210 -0
- package/server/src/gitOps.ts +335 -0
- package/server/src/gitOtherWork.ts +98 -0
- package/server/src/gitSafe.ts +58 -0
- package/server/src/gitSnapshots.ts +907 -0
- package/server/src/gitWorking.ts +414 -0
- package/server/src/github.ts +585 -0
- package/server/src/goalRun.ts +176 -0
- package/server/src/handoffPrompts.ts +318 -0
- package/server/src/hardware/fit.ts +342 -0
- package/server/src/hardware/modelFiles.ts +15 -0
- package/server/src/hardware/probe.ts +273 -0
- package/server/src/http/appVersionRoutes.ts +31 -0
- package/server/src/http/authLoginRoutes.ts +62 -0
- package/server/src/http/clusterRoutes.ts +927 -0
- package/server/src/http/clusterSnapshotRoutes.ts +240 -0
- package/server/src/http/connectionsRoutes.ts +29 -0
- package/server/src/http/deepseekRoutes.ts +57 -0
- package/server/src/http/diagnosticsRoutes.ts +108 -0
- package/server/src/http/diffRoutes.ts +65 -0
- package/server/src/http/endpointDiscoveryRoutes.ts +43 -0
- package/server/src/http/explorerRoutes.ts +129 -0
- package/server/src/http/fileRead.ts +53 -0
- package/server/src/http/fileWriteRoutes.ts +159 -0
- package/server/src/http/gitBakeoffRoutes.ts +48 -0
- package/server/src/http/gitCompareRoutes.ts +88 -0
- package/server/src/http/gitDiffRoutes.ts +72 -0
- package/server/src/http/gitOpRoutes.ts +174 -0
- package/server/src/http/gitWorktreeRoutes.ts +56 -0
- package/server/src/http/githubRoutes.ts +181 -0
- package/server/src/http/imageWriteRoutes.ts +165 -0
- package/server/src/http/knowledgeRoutes.ts +106 -0
- package/server/src/http/mediaOpsRoutes.ts +425 -0
- package/server/src/http/notificationChannelsRoutes.ts +46 -0
- package/server/src/http/originGuard.ts +95 -0
- package/server/src/http/outputOpen.ts +49 -0
- package/server/src/http/outputRoutes.ts +98 -0
- package/server/src/http/packageDocs.ts +28 -0
- package/server/src/http/projectRoutes.ts +70 -0
- package/server/src/http/projectTrustRoutes.ts +124 -0
- package/server/src/http/readConfinement.ts +76 -0
- package/server/src/http/recallRoutes.ts +221 -0
- package/server/src/http/router.ts +2154 -0
- package/server/src/http/searchRoutes.ts +60 -0
- package/server/src/http/servicesRoutes.ts +123 -0
- package/server/src/http/smartPickupRoutes.ts +18 -0
- package/server/src/http/tidyRoutes.ts +31 -0
- package/server/src/http/usageStatsRoutes.ts +296 -0
- package/server/src/http/utilityAgentRoutes.ts +120 -0
- package/server/src/http/voiceRoutes.ts +263 -0
- package/server/src/http/workflowDataRoutes.ts +856 -0
- package/server/src/http/writeConfinement.ts +148 -0
- package/server/src/http/wsAuth.ts +115 -0
- package/server/src/index.ts +2411 -0
- package/server/src/initialProviders.ts +29 -0
- package/server/src/knowledge/distill.ts +180 -0
- package/server/src/knowledge/store.ts +303 -0
- package/server/src/liveChanges.ts +170 -0
- package/server/src/llamacppCatalog.ts +112 -0
- package/server/src/localCapacity.ts +29 -0
- package/server/src/localModels.ts +121 -0
- package/server/src/lsp/client.ts +439 -0
- package/server/src/lsp/servers.ts +135 -0
- package/server/src/management/clusterActivity.ts +102 -0
- package/server/src/management/hubLink.ts +328 -0
- package/server/src/management/identity.ts +107 -0
- package/server/src/management/initHubLink.ts +917 -0
- package/server/src/mcp/arcoMcpServer.ts +59 -0
- package/server/src/mcp/client.ts +500 -0
- package/server/src/mcp/clusterMcpLoopback.ts +155 -0
- package/server/src/mcp/clusterMcpServer.ts +69 -0
- package/server/src/mcp/clusterMcpTools.ts +718 -0
- package/server/src/mcp/mcpConfigWriter.ts +291 -0
- package/server/src/mcp/osvCheck.ts +148 -0
- package/server/src/mcp/planMcpTools.ts +289 -0
- package/server/src/mcp/registry.ts +147 -0
- package/server/src/mcp/registryWiring.ts +116 -0
- package/server/src/mcp/voiceMcpServer.ts +47 -0
- package/server/src/mdTuneupPrompt.ts +78 -0
- package/server/src/media/demucs.ts +326 -0
- package/server/src/media/ffmpeg.ts +1012 -0
- package/server/src/media/scratch.ts +215 -0
- package/server/src/memoryMonitor.ts +73 -0
- package/server/src/nativeSqlite.ts +24 -0
- package/server/src/net/forceIpv4.ts +30 -0
- package/server/src/notifications.ts +164 -0
- package/server/src/npmPlatformResolve.ts +193 -0
- package/server/src/ntfyTransport.ts +173 -0
- package/server/src/outputStore.ts +57 -0
- package/server/src/outputs.ts +317 -0
- package/server/src/peerRecipientContext.ts +40 -0
- package/server/src/planRefContext.ts +185 -0
- package/server/src/planStore.ts +482 -0
- package/server/src/preview/captureViaCdp.ts +541 -0
- package/server/src/previewAutoDetect.ts +343 -0
- package/server/src/previewProxy.ts +203 -0
- package/server/src/primaryBackgroundTracker.ts +268 -0
- package/server/src/primitiveDrift.ts +59 -0
- package/server/src/primitives/exportContext.ts +906 -0
- package/server/src/primitives/mdTuneupUndo.ts +56 -0
- package/server/src/primitives/parseReviewFindings.ts +90 -0
- package/server/src/primitives/quickHandoff.ts +52 -0
- package/server/src/primitives/reviewContent.ts +791 -0
- package/server/src/primitives/reviewSchema.ts +135 -0
- package/server/src/primitives/runCompare.ts +227 -0
- package/server/src/primitives/runDocEdit.ts +225 -0
- package/server/src/primitives/runMdTuneup.ts +407 -0
- package/server/src/primitives/runResearch.ts +364 -0
- package/server/src/primitives/runReviewer.ts +405 -0
- package/server/src/primitives/seedWorker.ts +782 -0
- package/server/src/project/orchestrationProposals.ts +288 -0
- package/server/src/project/taskLedger.ts +812 -0
- package/server/src/project/taskWorktree.ts +206 -0
- package/server/src/projectRecords.ts +243 -0
- package/server/src/projectStateIgnore.ts +18 -0
- package/server/src/projectTrust.ts +277 -0
- package/server/src/projects.ts +353 -0
- package/server/src/prompts.ts +192 -0
- package/server/src/providerAccounts.ts +70 -0
- package/server/src/providers/attachments.ts +327 -0
- package/server/src/providers/claude-native/appendOnlyPrefix.ts +333 -0
- package/server/src/providers/claude-native/auth.ts +134 -0
- package/server/src/providers/claude-native/authStatus.ts +33 -0
- package/server/src/providers/claude-native/catalog.ts +171 -0
- package/server/src/providers/claude-native/contentBlocks.ts +422 -0
- package/server/src/providers/claude-native/contextBudget.ts +74 -0
- package/server/src/providers/claude-native/editApply.ts +204 -0
- package/server/src/providers/claude-native/file-mutation-queue.ts +109 -0
- package/server/src/providers/claude-native/filterConfigs/bash-cargo-test.ts +54 -0
- package/server/src/providers/claude-native/filterConfigs/bash-find.ts +18 -0
- package/server/src/providers/claude-native/filterConfigs/bash-git-status.ts +31 -0
- package/server/src/providers/claude-native/filterConfigs/bash-grep.ts +16 -0
- package/server/src/providers/claude-native/filterConfigs/bash-jest-vitest.ts +37 -0
- package/server/src/providers/claude-native/filterConfigs/bash-ls.ts +12 -0
- package/server/src/providers/claude-native/filterConfigs/bash-pytest.ts +44 -0
- package/server/src/providers/claude-native/filterConfigs/index.ts +82 -0
- package/server/src/providers/claude-native/filterToolResult.ts +176 -0
- package/server/src/providers/claude-native/foldDigest.ts +126 -0
- package/server/src/providers/claude-native/gateReview.ts +0 -0
- package/server/src/providers/claude-native/gateStore.ts +133 -0
- package/server/src/providers/claude-native/hooks.ts +302 -0
- package/server/src/providers/claude-native/index.ts +419 -0
- package/server/src/providers/claude-native/modelParams.ts +181 -0
- package/server/src/providers/claude-native/oauth.ts +357 -0
- package/server/src/providers/claude-native/outputAccumulator.ts +132 -0
- package/server/src/providers/claude-native/outputStyle.ts +2 -0
- package/server/src/providers/claude-native/peerTools.ts +556 -0
- package/server/src/providers/claude-native/pretoolGuards.ts +315 -0
- package/server/src/providers/claude-native/rateLimit.ts +130 -0
- package/server/src/providers/claude-native/registryTools.ts +157 -0
- package/server/src/providers/claude-native/resumeSummary.ts +633 -0
- package/server/src/providers/claude-native/retainedContext.ts +184 -0
- package/server/src/providers/claude-native/sandboxExecutor.ts +188 -0
- package/server/src/providers/claude-native/sandboxStore.ts +186 -0
- package/server/src/providers/claude-native/sandboxTools.ts +190 -0
- package/server/src/providers/claude-native/serverFold.ts +310 -0
- package/server/src/providers/claude-native/toolLoopGuard.ts +141 -0
- package/server/src/providers/claude-native/toolPosture.ts +136 -0
- package/server/src/providers/claude-native/toolResultEviction.ts +235 -0
- package/server/src/providers/claude-native/tools.ts +956 -0
- package/server/src/providers/claude-native/wireFingerprint.ts +13 -0
- package/server/src/providers/claude-native/worker.ts +3667 -0
- package/server/src/providers/claude-native/workerHelpers.ts +254 -0
- package/server/src/providers/claude-native/workspaceFacts.ts +188 -0
- package/server/src/providers/claude.ts +742 -0
- package/server/src/providers/codex-appserver/bindings/AbsolutePathBuf.ts +14 -0
- package/server/src/providers/codex-appserver/bindings/AgentPath.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/ApplyPatchApprovalParams.ts +21 -0
- package/server/src/providers/codex-appserver/bindings/ApplyPatchApprovalResponse.ts +6 -0
- package/server/src/providers/codex-appserver/bindings/AuthMode.ts +8 -0
- package/server/src/providers/codex-appserver/bindings/ClientInfo.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/ClientNotification.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/ClientRequest.ts +98 -0
- package/server/src/providers/codex-appserver/bindings/CollaborationMode.ts +10 -0
- package/server/src/providers/codex-appserver/bindings/ContentItem.ts +6 -0
- package/server/src/providers/codex-appserver/bindings/ConversationGitInfo.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/ConversationSummary.ts +8 -0
- package/server/src/providers/codex-appserver/bindings/ExecCommandApprovalParams.ts +16 -0
- package/server/src/providers/codex-appserver/bindings/ExecCommandApprovalResponse.ts +6 -0
- package/server/src/providers/codex-appserver/bindings/ExecPolicyAmendment.ts +12 -0
- package/server/src/providers/codex-appserver/bindings/FileChange.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/ForcedLoginMethod.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/FunctionCallOutputBody.ts +6 -0
- package/server/src/providers/codex-appserver/bindings/FunctionCallOutputContentItem.ts +10 -0
- package/server/src/providers/codex-appserver/bindings/FuzzyFileSearchMatchType.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/FuzzyFileSearchParams.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/FuzzyFileSearchResponse.ts +6 -0
- package/server/src/providers/codex-appserver/bindings/FuzzyFileSearchResult.ts +9 -0
- package/server/src/providers/codex-appserver/bindings/FuzzyFileSearchSessionCompletedNotification.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/FuzzyFileSearchSessionStartParams.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/FuzzyFileSearchSessionStartResponse.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/FuzzyFileSearchSessionStopParams.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/FuzzyFileSearchSessionStopResponse.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/FuzzyFileSearchSessionUpdateParams.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/FuzzyFileSearchSessionUpdateResponse.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/FuzzyFileSearchSessionUpdatedNotification.ts +6 -0
- package/server/src/providers/codex-appserver/bindings/GetAuthStatusParams.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/GetAuthStatusResponse.ts +6 -0
- package/server/src/providers/codex-appserver/bindings/GetConversationSummaryParams.ts +6 -0
- package/server/src/providers/codex-appserver/bindings/GetConversationSummaryResponse.ts +6 -0
- package/server/src/providers/codex-appserver/bindings/GitDiffToRemoteParams.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/GitDiffToRemoteResponse.ts +6 -0
- package/server/src/providers/codex-appserver/bindings/GitSha.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/ImageDetail.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/InitializeCapabilities.ts +17 -0
- package/server/src/providers/codex-appserver/bindings/InitializeParams.ts +7 -0
- package/server/src/providers/codex-appserver/bindings/InitializeResponse.ts +20 -0
- package/server/src/providers/codex-appserver/bindings/InputModality.ts +8 -0
- package/server/src/providers/codex-appserver/bindings/InternalSessionSource.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/LocalShellAction.ts +6 -0
- package/server/src/providers/codex-appserver/bindings/LocalShellExecAction.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/LocalShellStatus.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/MessagePhase.ts +11 -0
- package/server/src/providers/codex-appserver/bindings/ModeKind.ts +8 -0
- package/server/src/providers/codex-appserver/bindings/NetworkPolicyAmendment.ts +6 -0
- package/server/src/providers/codex-appserver/bindings/NetworkPolicyRuleAction.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/ParsedCommand.ts +12 -0
- package/server/src/providers/codex-appserver/bindings/Personality.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/PlanType.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/RealtimeConversationVersion.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/RealtimeOutputModality.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/RealtimeVoice.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/RealtimeVoicesList.ts +6 -0
- package/server/src/providers/codex-appserver/bindings/ReasoningEffort.ts +14 -0
- package/server/src/providers/codex-appserver/bindings/ReasoningItemContent.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/ReasoningItemReasoningSummary.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/ReasoningSummary.ts +10 -0
- package/server/src/providers/codex-appserver/bindings/RequestId.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/Resource.ts +9 -0
- package/server/src/providers/codex-appserver/bindings/ResourceContent.ts +17 -0
- package/server/src/providers/codex-appserver/bindings/ResourceTemplate.ts +9 -0
- package/server/src/providers/codex-appserver/bindings/ResponseItem.ts +17 -0
- package/server/src/providers/codex-appserver/bindings/ReviewDecision.ts +10 -0
- package/server/src/providers/codex-appserver/bindings/ServerNotification.ts +70 -0
- package/server/src/providers/codex-appserver/bindings/ServerRequest.ts +18 -0
- package/server/src/providers/codex-appserver/bindings/ServiceTier.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/SessionSource.ts +7 -0
- package/server/src/providers/codex-appserver/bindings/Settings.ts +9 -0
- package/server/src/providers/codex-appserver/bindings/SubAgentSource.ts +7 -0
- package/server/src/providers/codex-appserver/bindings/ThreadId.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/ThreadMemoryMode.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/Tool.ts +9 -0
- package/server/src/providers/codex-appserver/bindings/Verbosity.ts +9 -0
- package/server/src/providers/codex-appserver/bindings/WebSearchAction.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/WebSearchContextSize.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/WebSearchLocation.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/WebSearchMode.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/WebSearchToolConfig.ts +7 -0
- package/server/src/providers/codex-appserver/bindings/index.ts +86 -0
- package/server/src/providers/codex-appserver/bindings/serde_json/JsonValue.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/v2/Account.ts +6 -0
- package/server/src/providers/codex-appserver/bindings/v2/AccountLoginCompletedNotification.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/v2/AccountRateLimitsUpdatedNotification.ts +6 -0
- package/server/src/providers/codex-appserver/bindings/v2/AccountUpdatedNotification.ts +7 -0
- package/server/src/providers/codex-appserver/bindings/v2/ActivePermissionProfile.ts +21 -0
- package/server/src/providers/codex-appserver/bindings/v2/ActivePermissionProfileModification.ts +6 -0
- package/server/src/providers/codex-appserver/bindings/v2/AddCreditsNudgeCreditType.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/v2/AddCreditsNudgeEmailStatus.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/v2/AdditionalFileSystemPermissions.ts +15 -0
- package/server/src/providers/codex-appserver/bindings/v2/AdditionalNetworkPermissions.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/v2/AdditionalPermissionProfile.ts +11 -0
- package/server/src/providers/codex-appserver/bindings/v2/AgentMessageDeltaNotification.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/v2/AnalyticsConfig.ts +6 -0
- package/server/src/providers/codex-appserver/bindings/v2/AppBranding.ts +8 -0
- package/server/src/providers/codex-appserver/bindings/v2/AppInfo.ts +19 -0
- package/server/src/providers/codex-appserver/bindings/v2/AppListUpdatedNotification.ts +9 -0
- package/server/src/providers/codex-appserver/bindings/v2/AppMetadata.ts +7 -0
- package/server/src/providers/codex-appserver/bindings/v2/AppReview.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/v2/AppScreenshot.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/v2/AppSummary.ts +8 -0
- package/server/src/providers/codex-appserver/bindings/v2/AppToolApproval.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/v2/AppToolsConfig.ts +6 -0
- package/server/src/providers/codex-appserver/bindings/v2/ApprovalsReviewer.ts +12 -0
- package/server/src/providers/codex-appserver/bindings/v2/AppsConfig.ts +8 -0
- package/server/src/providers/codex-appserver/bindings/v2/AppsDefaultConfig.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/v2/AppsListParams.ts +24 -0
- package/server/src/providers/codex-appserver/bindings/v2/AppsListResponse.ts +14 -0
- package/server/src/providers/codex-appserver/bindings/v2/AskForApproval.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/v2/AutoReviewDecisionSource.ts +8 -0
- package/server/src/providers/codex-appserver/bindings/v2/ByteRange.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/v2/CancelLoginAccountParams.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/v2/CancelLoginAccountResponse.ts +6 -0
- package/server/src/providers/codex-appserver/bindings/v2/CancelLoginAccountStatus.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/v2/ChatgptAuthTokensRefreshParams.ts +16 -0
- package/server/src/providers/codex-appserver/bindings/v2/ChatgptAuthTokensRefreshReason.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/v2/ChatgptAuthTokensRefreshResponse.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/v2/CodexErrorInfo.ts +12 -0
- package/server/src/providers/codex-appserver/bindings/v2/CollabAgentState.ts +6 -0
- package/server/src/providers/codex-appserver/bindings/v2/CollabAgentStatus.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/v2/CollabAgentTool.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/v2/CollabAgentToolCallStatus.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/v2/CollaborationModeListParams.ts +8 -0
- package/server/src/providers/codex-appserver/bindings/v2/CollaborationModeListResponse.ts +9 -0
- package/server/src/providers/codex-appserver/bindings/v2/CollaborationModeMask.ts +10 -0
- package/server/src/providers/codex-appserver/bindings/v2/CommandAction.ts +6 -0
- package/server/src/providers/codex-appserver/bindings/v2/CommandExecOutputDeltaNotification.ts +30 -0
- package/server/src/providers/codex-appserver/bindings/v2/CommandExecOutputStream.ts +8 -0
- package/server/src/providers/codex-appserver/bindings/v2/CommandExecParams.ts +106 -0
- package/server/src/providers/codex-appserver/bindings/v2/CommandExecResizeParams.ts +18 -0
- package/server/src/providers/codex-appserver/bindings/v2/CommandExecResizeResponse.ts +8 -0
- package/server/src/providers/codex-appserver/bindings/v2/CommandExecResponse.ts +24 -0
- package/server/src/providers/codex-appserver/bindings/v2/CommandExecTerminalSize.ts +16 -0
- package/server/src/providers/codex-appserver/bindings/v2/CommandExecTerminateParams.ts +13 -0
- package/server/src/providers/codex-appserver/bindings/v2/CommandExecTerminateResponse.ts +8 -0
- package/server/src/providers/codex-appserver/bindings/v2/CommandExecWriteParams.ts +22 -0
- package/server/src/providers/codex-appserver/bindings/v2/CommandExecWriteResponse.ts +8 -0
- package/server/src/providers/codex-appserver/bindings/v2/CommandExecutionApprovalDecision.ts +7 -0
- package/server/src/providers/codex-appserver/bindings/v2/CommandExecutionOutputDeltaNotification.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/v2/CommandExecutionRequestApprovalParams.ts +58 -0
- package/server/src/providers/codex-appserver/bindings/v2/CommandExecutionRequestApprovalResponse.ts +6 -0
- package/server/src/providers/codex-appserver/bindings/v2/CommandExecutionSource.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/v2/CommandExecutionStatus.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/v2/CommandMigration.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/v2/Config.ts +25 -0
- package/server/src/providers/codex-appserver/bindings/v2/ConfigBatchWriteParams.ts +14 -0
- package/server/src/providers/codex-appserver/bindings/v2/ConfigEdit.ts +7 -0
- package/server/src/providers/codex-appserver/bindings/v2/ConfigLayer.ts +7 -0
- package/server/src/providers/codex-appserver/bindings/v2/ConfigLayerMetadata.ts +6 -0
- package/server/src/providers/codex-appserver/bindings/v2/ConfigLayerSource.ts +16 -0
- package/server/src/providers/codex-appserver/bindings/v2/ConfigReadParams.ts +11 -0
- package/server/src/providers/codex-appserver/bindings/v2/ConfigReadResponse.ts +8 -0
- package/server/src/providers/codex-appserver/bindings/v2/ConfigRequirements.ts +12 -0
- package/server/src/providers/codex-appserver/bindings/v2/ConfigRequirementsReadResponse.ts +10 -0
- package/server/src/providers/codex-appserver/bindings/v2/ConfigValueWriteParams.ts +11 -0
- package/server/src/providers/codex-appserver/bindings/v2/ConfigWarningNotification.ts +22 -0
- package/server/src/providers/codex-appserver/bindings/v2/ConfigWriteResponse.ts +12 -0
- package/server/src/providers/codex-appserver/bindings/v2/ConfiguredHookHandler.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/v2/ConfiguredHookMatcherGroup.ts +6 -0
- package/server/src/providers/codex-appserver/bindings/v2/ContextCompactedNotification.ts +8 -0
- package/server/src/providers/codex-appserver/bindings/v2/CreditsSnapshot.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/v2/DeprecationNoticeNotification.ts +13 -0
- package/server/src/providers/codex-appserver/bindings/v2/DeviceKeyAlgorithm.ts +8 -0
- package/server/src/providers/codex-appserver/bindings/v2/DeviceKeyCreateParams.ts +13 -0
- package/server/src/providers/codex-appserver/bindings/v2/DeviceKeyCreateResponse.ts +14 -0
- package/server/src/providers/codex-appserver/bindings/v2/DeviceKeyProtectionClass.ts +8 -0
- package/server/src/providers/codex-appserver/bindings/v2/DeviceKeyProtectionPolicy.ts +8 -0
- package/server/src/providers/codex-appserver/bindings/v2/DeviceKeyPublicParams.ts +8 -0
- package/server/src/providers/codex-appserver/bindings/v2/DeviceKeyPublicResponse.ts +14 -0
- package/server/src/providers/codex-appserver/bindings/v2/DeviceKeySignParams.ts +9 -0
- package/server/src/providers/codex-appserver/bindings/v2/DeviceKeySignPayload.ts +54 -0
- package/server/src/providers/codex-appserver/bindings/v2/DeviceKeySignResponse.ts +18 -0
- package/server/src/providers/codex-appserver/bindings/v2/DynamicToolCallOutputContentItem.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/v2/DynamicToolCallParams.ts +6 -0
- package/server/src/providers/codex-appserver/bindings/v2/DynamicToolCallResponse.ts +6 -0
- package/server/src/providers/codex-appserver/bindings/v2/DynamicToolCallStatus.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/v2/DynamicToolSpec.ts +6 -0
- package/server/src/providers/codex-appserver/bindings/v2/ErrorNotification.ts +6 -0
- package/server/src/providers/codex-appserver/bindings/v2/ExecPolicyAmendment.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/v2/ExperimentalFeature.ts +37 -0
- package/server/src/providers/codex-appserver/bindings/v2/ExperimentalFeatureEnablementSetParams.ts +12 -0
- package/server/src/providers/codex-appserver/bindings/v2/ExperimentalFeatureEnablementSetResponse.ts +9 -0
- package/server/src/providers/codex-appserver/bindings/v2/ExperimentalFeatureListParams.ts +13 -0
- package/server/src/providers/codex-appserver/bindings/v2/ExperimentalFeatureListResponse.ts +11 -0
- package/server/src/providers/codex-appserver/bindings/v2/ExperimentalFeatureStage.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/v2/ExternalAgentConfigDetectParams.ts +13 -0
- package/server/src/providers/codex-appserver/bindings/v2/ExternalAgentConfigDetectResponse.ts +6 -0
- package/server/src/providers/codex-appserver/bindings/v2/ExternalAgentConfigImportCompletedNotification.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/v2/ExternalAgentConfigImportParams.ts +6 -0
- package/server/src/providers/codex-appserver/bindings/v2/ExternalAgentConfigImportResponse.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/v2/ExternalAgentConfigMigrationItem.ts +11 -0
- package/server/src/providers/codex-appserver/bindings/v2/ExternalAgentConfigMigrationItemType.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/v2/FeedbackUploadParams.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/v2/FeedbackUploadResponse.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/v2/FileChangeApprovalDecision.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/v2/FileChangeOutputDeltaNotification.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/v2/FileChangePatchUpdatedNotification.ts +6 -0
- package/server/src/providers/codex-appserver/bindings/v2/FileChangeRequestApprovalParams.ts +14 -0
- package/server/src/providers/codex-appserver/bindings/v2/FileChangeRequestApprovalResponse.ts +6 -0
- package/server/src/providers/codex-appserver/bindings/v2/FileSystemAccessMode.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/v2/FileSystemPath.ts +7 -0
- package/server/src/providers/codex-appserver/bindings/v2/FileSystemSandboxEntry.ts +7 -0
- package/server/src/providers/codex-appserver/bindings/v2/FileSystemSpecialPath.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/v2/FileUpdateChange.ts +6 -0
- package/server/src/providers/codex-appserver/bindings/v2/FsChangedNotification.ts +17 -0
- package/server/src/providers/codex-appserver/bindings/v2/FsCopyParams.ts +21 -0
- package/server/src/providers/codex-appserver/bindings/v2/FsCopyResponse.ts +8 -0
- package/server/src/providers/codex-appserver/bindings/v2/FsCreateDirectoryParams.ts +17 -0
- package/server/src/providers/codex-appserver/bindings/v2/FsCreateDirectoryResponse.ts +8 -0
- package/server/src/providers/codex-appserver/bindings/v2/FsGetMetadataParams.ts +13 -0
- package/server/src/providers/codex-appserver/bindings/v2/FsGetMetadataResponse.ts +28 -0
- package/server/src/providers/codex-appserver/bindings/v2/FsReadDirectoryEntry.ts +20 -0
- package/server/src/providers/codex-appserver/bindings/v2/FsReadDirectoryParams.ts +13 -0
- package/server/src/providers/codex-appserver/bindings/v2/FsReadDirectoryResponse.ts +13 -0
- package/server/src/providers/codex-appserver/bindings/v2/FsReadFileParams.ts +13 -0
- package/server/src/providers/codex-appserver/bindings/v2/FsReadFileResponse.ts +12 -0
- package/server/src/providers/codex-appserver/bindings/v2/FsRemoveParams.ts +21 -0
- package/server/src/providers/codex-appserver/bindings/v2/FsRemoveResponse.ts +8 -0
- package/server/src/providers/codex-appserver/bindings/v2/FsUnwatchParams.ts +12 -0
- package/server/src/providers/codex-appserver/bindings/v2/FsUnwatchResponse.ts +8 -0
- package/server/src/providers/codex-appserver/bindings/v2/FsWatchParams.ts +17 -0
- package/server/src/providers/codex-appserver/bindings/v2/FsWatchResponse.ts +13 -0
- package/server/src/providers/codex-appserver/bindings/v2/FsWriteFileParams.ts +17 -0
- package/server/src/providers/codex-appserver/bindings/v2/FsWriteFileResponse.ts +8 -0
- package/server/src/providers/codex-appserver/bindings/v2/GetAccountParams.ts +13 -0
- package/server/src/providers/codex-appserver/bindings/v2/GetAccountRateLimitsResponse.ts +14 -0
- package/server/src/providers/codex-appserver/bindings/v2/GetAccountResponse.ts +6 -0
- package/server/src/providers/codex-appserver/bindings/v2/GitInfo.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/v2/GrantedPermissionProfile.ts +7 -0
- package/server/src/providers/codex-appserver/bindings/v2/GuardianApprovalReview.ts +13 -0
- package/server/src/providers/codex-appserver/bindings/v2/GuardianApprovalReviewAction.ts +9 -0
- package/server/src/providers/codex-appserver/bindings/v2/GuardianApprovalReviewStatus.ts +8 -0
- package/server/src/providers/codex-appserver/bindings/v2/GuardianCommandSource.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/v2/GuardianRiskLevel.ts +8 -0
- package/server/src/providers/codex-appserver/bindings/v2/GuardianUserAuthorization.ts +8 -0
- package/server/src/providers/codex-appserver/bindings/v2/GuardianWarningNotification.ts +13 -0
- package/server/src/providers/codex-appserver/bindings/v2/HookCompletedNotification.ts +6 -0
- package/server/src/providers/codex-appserver/bindings/v2/HookErrorInfo.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/v2/HookEventName.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/v2/HookExecutionMode.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/v2/HookHandlerType.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/v2/HookMetadata.ts +9 -0
- package/server/src/providers/codex-appserver/bindings/v2/HookMigration.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/v2/HookOutputEntry.ts +6 -0
- package/server/src/providers/codex-appserver/bindings/v2/HookOutputEntryKind.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/v2/HookPromptFragment.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/v2/HookRunStatus.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/v2/HookRunSummary.ts +13 -0
- package/server/src/providers/codex-appserver/bindings/v2/HookScope.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/v2/HookSource.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/v2/HookStartedNotification.ts +6 -0
- package/server/src/providers/codex-appserver/bindings/v2/HooksListEntry.ts +7 -0
- package/server/src/providers/codex-appserver/bindings/v2/HooksListParams.ts +9 -0
- package/server/src/providers/codex-appserver/bindings/v2/HooksListResponse.ts +6 -0
- package/server/src/providers/codex-appserver/bindings/v2/ItemCompletedNotification.ts +6 -0
- package/server/src/providers/codex-appserver/bindings/v2/ItemGuardianApprovalReviewCompletedNotification.ts +30 -0
- package/server/src/providers/codex-appserver/bindings/v2/ItemGuardianApprovalReviewStartedNotification.ts +29 -0
- package/server/src/providers/codex-appserver/bindings/v2/ItemStartedNotification.ts +6 -0
- package/server/src/providers/codex-appserver/bindings/v2/ListMcpServerStatusParams.ts +19 -0
- package/server/src/providers/codex-appserver/bindings/v2/ListMcpServerStatusResponse.ts +11 -0
- package/server/src/providers/codex-appserver/bindings/v2/LoginAccountParams.ts +21 -0
- package/server/src/providers/codex-appserver/bindings/v2/LoginAccountResponse.ts +17 -0
- package/server/src/providers/codex-appserver/bindings/v2/LogoutAccountResponse.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/v2/ManagedHooksRequirements.ts +6 -0
- package/server/src/providers/codex-appserver/bindings/v2/MarketplaceAddParams.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/v2/MarketplaceAddResponse.ts +6 -0
- package/server/src/providers/codex-appserver/bindings/v2/MarketplaceInterface.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/v2/MarketplaceLoadErrorInfo.ts +6 -0
- package/server/src/providers/codex-appserver/bindings/v2/MarketplaceRemoveParams.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/v2/MarketplaceRemoveResponse.ts +6 -0
- package/server/src/providers/codex-appserver/bindings/v2/MarketplaceUpgradeErrorInfo.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/v2/MarketplaceUpgradeParams.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/v2/MarketplaceUpgradeResponse.ts +7 -0
- package/server/src/providers/codex-appserver/bindings/v2/McpAuthStatus.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/v2/McpElicitationArrayType.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/v2/McpElicitationBooleanSchema.ts +6 -0
- package/server/src/providers/codex-appserver/bindings/v2/McpElicitationBooleanType.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/v2/McpElicitationConstOption.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/v2/McpElicitationEnumSchema.ts +8 -0
- package/server/src/providers/codex-appserver/bindings/v2/McpElicitationLegacyTitledEnumSchema.ts +6 -0
- package/server/src/providers/codex-appserver/bindings/v2/McpElicitationMultiSelectEnumSchema.ts +7 -0
- package/server/src/providers/codex-appserver/bindings/v2/McpElicitationNumberSchema.ts +6 -0
- package/server/src/providers/codex-appserver/bindings/v2/McpElicitationNumberType.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/v2/McpElicitationObjectType.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/v2/McpElicitationPrimitiveSchema.ts +9 -0
- package/server/src/providers/codex-appserver/bindings/v2/McpElicitationSchema.ts +13 -0
- package/server/src/providers/codex-appserver/bindings/v2/McpElicitationSingleSelectEnumSchema.ts +7 -0
- package/server/src/providers/codex-appserver/bindings/v2/McpElicitationStringFormat.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/v2/McpElicitationStringSchema.ts +7 -0
- package/server/src/providers/codex-appserver/bindings/v2/McpElicitationStringType.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/v2/McpElicitationTitledEnumItems.ts +6 -0
- package/server/src/providers/codex-appserver/bindings/v2/McpElicitationTitledMultiSelectEnumSchema.ts +7 -0
- package/server/src/providers/codex-appserver/bindings/v2/McpElicitationTitledSingleSelectEnumSchema.ts +7 -0
- package/server/src/providers/codex-appserver/bindings/v2/McpElicitationUntitledEnumItems.ts +6 -0
- package/server/src/providers/codex-appserver/bindings/v2/McpElicitationUntitledMultiSelectEnumSchema.ts +7 -0
- package/server/src/providers/codex-appserver/bindings/v2/McpElicitationUntitledSingleSelectEnumSchema.ts +6 -0
- package/server/src/providers/codex-appserver/bindings/v2/McpResourceReadParams.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/v2/McpResourceReadResponse.ts +6 -0
- package/server/src/providers/codex-appserver/bindings/v2/McpServerElicitationAction.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/v2/McpServerElicitationRequestParams.ts +16 -0
- package/server/src/providers/codex-appserver/bindings/v2/McpServerElicitationRequestResponse.ts +17 -0
- package/server/src/providers/codex-appserver/bindings/v2/McpServerMigration.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/v2/McpServerOauthLoginCompletedNotification.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/v2/McpServerOauthLoginParams.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/v2/McpServerOauthLoginResponse.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/v2/McpServerRefreshResponse.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/v2/McpServerStartupState.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/v2/McpServerStatus.ts +9 -0
- package/server/src/providers/codex-appserver/bindings/v2/McpServerStatusDetail.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/v2/McpServerStatusUpdatedNotification.ts +6 -0
- package/server/src/providers/codex-appserver/bindings/v2/McpServerToolCallParams.ts +6 -0
- package/server/src/providers/codex-appserver/bindings/v2/McpServerToolCallResponse.ts +6 -0
- package/server/src/providers/codex-appserver/bindings/v2/McpToolCallError.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/v2/McpToolCallProgressNotification.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/v2/McpToolCallResult.ts +6 -0
- package/server/src/providers/codex-appserver/bindings/v2/McpToolCallStatus.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/v2/MemoryCitation.ts +6 -0
- package/server/src/providers/codex-appserver/bindings/v2/MemoryCitationEntry.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/v2/MemoryResetResponse.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/v2/MergeStrategy.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/v2/MigrationDetails.ts +11 -0
- package/server/src/providers/codex-appserver/bindings/v2/MockExperimentalMethodParams.ts +9 -0
- package/server/src/providers/codex-appserver/bindings/v2/MockExperimentalMethodResponse.ts +9 -0
- package/server/src/providers/codex-appserver/bindings/v2/Model.ts +10 -0
- package/server/src/providers/codex-appserver/bindings/v2/ModelAvailabilityNux.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/v2/ModelListParams.ts +17 -0
- package/server/src/providers/codex-appserver/bindings/v2/ModelListResponse.ts +11 -0
- package/server/src/providers/codex-appserver/bindings/v2/ModelProviderCapabilitiesReadParams.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/v2/ModelProviderCapabilitiesReadResponse.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/v2/ModelRerouteReason.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/v2/ModelReroutedNotification.ts +6 -0
- package/server/src/providers/codex-appserver/bindings/v2/ModelUpgradeInfo.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/v2/ModelVerification.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/v2/ModelVerificationNotification.ts +6 -0
- package/server/src/providers/codex-appserver/bindings/v2/NetworkAccess.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/v2/NetworkApprovalContext.ts +6 -0
- package/server/src/providers/codex-appserver/bindings/v2/NetworkApprovalProtocol.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/v2/NetworkDomainPermission.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/v2/NetworkPolicyAmendment.ts +6 -0
- package/server/src/providers/codex-appserver/bindings/v2/NetworkPolicyRuleAction.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/v2/NetworkRequirements.ts +32 -0
- package/server/src/providers/codex-appserver/bindings/v2/NetworkUnixSocketPermission.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/v2/NonSteerableTurnKind.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/v2/OverriddenMetadata.ts +7 -0
- package/server/src/providers/codex-appserver/bindings/v2/PatchApplyStatus.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/v2/PatchChangeKind.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/v2/PermissionGrantScope.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/v2/PermissionProfile.ts +7 -0
- package/server/src/providers/codex-appserver/bindings/v2/PermissionProfileFileSystemPermissions.ts +6 -0
- package/server/src/providers/codex-appserver/bindings/v2/PermissionProfileModificationParams.ts +6 -0
- package/server/src/providers/codex-appserver/bindings/v2/PermissionProfileNetworkPermissions.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/v2/PermissionProfileSelectionParams.ts +6 -0
- package/server/src/providers/codex-appserver/bindings/v2/PermissionsRequestApprovalParams.ts +7 -0
- package/server/src/providers/codex-appserver/bindings/v2/PermissionsRequestApprovalResponse.ts +11 -0
- package/server/src/providers/codex-appserver/bindings/v2/PlanDeltaNotification.ts +9 -0
- package/server/src/providers/codex-appserver/bindings/v2/PluginAuthPolicy.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/v2/PluginDetail.ts +9 -0
- package/server/src/providers/codex-appserver/bindings/v2/PluginInstallParams.ts +6 -0
- package/server/src/providers/codex-appserver/bindings/v2/PluginInstallPolicy.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/v2/PluginInstallResponse.ts +7 -0
- package/server/src/providers/codex-appserver/bindings/v2/PluginInterface.ts +35 -0
- package/server/src/providers/codex-appserver/bindings/v2/PluginListParams.ts +11 -0
- package/server/src/providers/codex-appserver/bindings/v2/PluginListResponse.ts +7 -0
- package/server/src/providers/codex-appserver/bindings/v2/PluginMarketplaceEntry.ts +13 -0
- package/server/src/providers/codex-appserver/bindings/v2/PluginReadParams.ts +6 -0
- package/server/src/providers/codex-appserver/bindings/v2/PluginReadResponse.ts +6 -0
- package/server/src/providers/codex-appserver/bindings/v2/PluginSource.ts +6 -0
- package/server/src/providers/codex-appserver/bindings/v2/PluginSummary.ts +9 -0
- package/server/src/providers/codex-appserver/bindings/v2/PluginUninstallParams.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/v2/PluginUninstallResponse.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/v2/PluginsMigration.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/v2/ProfileV2.ts +20 -0
- package/server/src/providers/codex-appserver/bindings/v2/RateLimitReachedType.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/v2/RateLimitSnapshot.ts +9 -0
- package/server/src/providers/codex-appserver/bindings/v2/RateLimitWindow.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/v2/RawResponseItemCompletedNotification.ts +6 -0
- package/server/src/providers/codex-appserver/bindings/v2/ReasoningEffortOption.ts +6 -0
- package/server/src/providers/codex-appserver/bindings/v2/ReasoningSummaryPartAddedNotification.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/v2/ReasoningSummaryTextDeltaNotification.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/v2/ReasoningTextDeltaNotification.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/v2/RemoteControlClientConnectionAudience.ts +8 -0
- package/server/src/providers/codex-appserver/bindings/v2/RemoteControlClientEnrollmentAudience.ts +8 -0
- package/server/src/providers/codex-appserver/bindings/v2/RemoteControlConnectionStatus.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/v2/RemoteControlStatusChangedNotification.ts +9 -0
- package/server/src/providers/codex-appserver/bindings/v2/RequestPermissionProfile.ts +7 -0
- package/server/src/providers/codex-appserver/bindings/v2/ResidencyRequirement.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/v2/ReviewDelivery.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/v2/ReviewStartParams.ts +12 -0
- package/server/src/providers/codex-appserver/bindings/v2/ReviewStartResponse.ts +13 -0
- package/server/src/providers/codex-appserver/bindings/v2/ReviewTarget.ts +9 -0
- package/server/src/providers/codex-appserver/bindings/v2/SandboxMode.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/v2/SandboxPolicy.ts +7 -0
- package/server/src/providers/codex-appserver/bindings/v2/SandboxWorkspaceWrite.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/v2/SendAddCreditsNudgeEmailParams.ts +6 -0
- package/server/src/providers/codex-appserver/bindings/v2/SendAddCreditsNudgeEmailResponse.ts +6 -0
- package/server/src/providers/codex-appserver/bindings/v2/ServerRequestResolvedNotification.ts +6 -0
- package/server/src/providers/codex-appserver/bindings/v2/SessionMigration.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/v2/SessionSource.ts +6 -0
- package/server/src/providers/codex-appserver/bindings/v2/SkillDependencies.ts +6 -0
- package/server/src/providers/codex-appserver/bindings/v2/SkillErrorInfo.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/v2/SkillInterface.ts +6 -0
- package/server/src/providers/codex-appserver/bindings/v2/SkillMetadata.ts +13 -0
- package/server/src/providers/codex-appserver/bindings/v2/SkillScope.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/v2/SkillSummary.ts +7 -0
- package/server/src/providers/codex-appserver/bindings/v2/SkillToolDependency.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/v2/SkillsChangedNotification.ts +11 -0
- package/server/src/providers/codex-appserver/bindings/v2/SkillsConfigWriteParams.ts +14 -0
- package/server/src/providers/codex-appserver/bindings/v2/SkillsConfigWriteResponse.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/v2/SkillsListEntry.ts +7 -0
- package/server/src/providers/codex-appserver/bindings/v2/SkillsListExtraRootsForCwd.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/v2/SkillsListParams.ts +18 -0
- package/server/src/providers/codex-appserver/bindings/v2/SkillsListResponse.ts +6 -0
- package/server/src/providers/codex-appserver/bindings/v2/SortDirection.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/v2/SubagentMigration.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/v2/TerminalInteractionNotification.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/v2/TextElement.ts +14 -0
- package/server/src/providers/codex-appserver/bindings/v2/TextPosition.ts +13 -0
- package/server/src/providers/codex-appserver/bindings/v2/TextRange.ts +6 -0
- package/server/src/providers/codex-appserver/bindings/v2/Thread.ts +77 -0
- package/server/src/providers/codex-appserver/bindings/v2/ThreadActiveFlag.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/v2/ThreadApproveGuardianDeniedActionParams.ts +10 -0
- package/server/src/providers/codex-appserver/bindings/v2/ThreadApproveGuardianDeniedActionResponse.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/v2/ThreadArchiveParams.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/v2/ThreadArchiveResponse.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/v2/ThreadArchivedNotification.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/v2/ThreadBackgroundTerminalsCleanParams.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/v2/ThreadBackgroundTerminalsCleanResponse.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/v2/ThreadClosedNotification.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/v2/ThreadCompactStartParams.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/v2/ThreadCompactStartResponse.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/v2/ThreadDecrementElicitationParams.ts +12 -0
- package/server/src/providers/codex-appserver/bindings/v2/ThreadDecrementElicitationResponse.ts +16 -0
- package/server/src/providers/codex-appserver/bindings/v2/ThreadForkParams.ts +56 -0
- package/server/src/providers/codex-appserver/bindings/v2/ThreadForkResponse.ts +38 -0
- package/server/src/providers/codex-appserver/bindings/v2/ThreadGoal.ts +6 -0
- package/server/src/providers/codex-appserver/bindings/v2/ThreadGoalClearParams.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/v2/ThreadGoalClearResponse.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/v2/ThreadGoalClearedNotification.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/v2/ThreadGoalGetParams.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/v2/ThreadGoalGetResponse.ts +6 -0
- package/server/src/providers/codex-appserver/bindings/v2/ThreadGoalSetParams.ts +6 -0
- package/server/src/providers/codex-appserver/bindings/v2/ThreadGoalSetResponse.ts +6 -0
- package/server/src/providers/codex-appserver/bindings/v2/ThreadGoalStatus.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/v2/ThreadGoalUpdatedNotification.ts +6 -0
- package/server/src/providers/codex-appserver/bindings/v2/ThreadIncrementElicitationParams.ts +12 -0
- package/server/src/providers/codex-appserver/bindings/v2/ThreadIncrementElicitationResponse.ts +16 -0
- package/server/src/providers/codex-appserver/bindings/v2/ThreadInjectItemsParams.ts +10 -0
- package/server/src/providers/codex-appserver/bindings/v2/ThreadInjectItemsResponse.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/v2/ThreadItem.ts +101 -0
- package/server/src/providers/codex-appserver/bindings/v2/ThreadListParams.ts +54 -0
- package/server/src/providers/codex-appserver/bindings/v2/ThreadListResponse.ts +18 -0
- package/server/src/providers/codex-appserver/bindings/v2/ThreadLoadedListParams.ts +13 -0
- package/server/src/providers/codex-appserver/bindings/v2/ThreadLoadedListResponse.ts +14 -0
- package/server/src/providers/codex-appserver/bindings/v2/ThreadMemoryModeSetParams.ts +6 -0
- package/server/src/providers/codex-appserver/bindings/v2/ThreadMemoryModeSetResponse.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/v2/ThreadMetadataGitInfoUpdateParams.ts +20 -0
- package/server/src/providers/codex-appserver/bindings/v2/ThreadMetadataUpdateParams.ts +12 -0
- package/server/src/providers/codex-appserver/bindings/v2/ThreadMetadataUpdateResponse.ts +6 -0
- package/server/src/providers/codex-appserver/bindings/v2/ThreadNameUpdatedNotification.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/v2/ThreadReadParams.ts +9 -0
- package/server/src/providers/codex-appserver/bindings/v2/ThreadReadResponse.ts +6 -0
- package/server/src/providers/codex-appserver/bindings/v2/ThreadRealtimeAppendAudioParams.ts +9 -0
- package/server/src/providers/codex-appserver/bindings/v2/ThreadRealtimeAppendAudioResponse.ts +8 -0
- package/server/src/providers/codex-appserver/bindings/v2/ThreadRealtimeAppendTextParams.ts +8 -0
- package/server/src/providers/codex-appserver/bindings/v2/ThreadRealtimeAppendTextResponse.ts +8 -0
- package/server/src/providers/codex-appserver/bindings/v2/ThreadRealtimeAudioChunk.ts +8 -0
- package/server/src/providers/codex-appserver/bindings/v2/ThreadRealtimeClosedNotification.ts +8 -0
- package/server/src/providers/codex-appserver/bindings/v2/ThreadRealtimeErrorNotification.ts +8 -0
- package/server/src/providers/codex-appserver/bindings/v2/ThreadRealtimeItemAddedNotification.ts +9 -0
- package/server/src/providers/codex-appserver/bindings/v2/ThreadRealtimeListVoicesParams.ts +8 -0
- package/server/src/providers/codex-appserver/bindings/v2/ThreadRealtimeListVoicesResponse.ts +9 -0
- package/server/src/providers/codex-appserver/bindings/v2/ThreadRealtimeOutputAudioDeltaNotification.ts +9 -0
- package/server/src/providers/codex-appserver/bindings/v2/ThreadRealtimeSdpNotification.ts +8 -0
- package/server/src/providers/codex-appserver/bindings/v2/ThreadRealtimeStartParams.ts +16 -0
- package/server/src/providers/codex-appserver/bindings/v2/ThreadRealtimeStartResponse.ts +8 -0
- package/server/src/providers/codex-appserver/bindings/v2/ThreadRealtimeStartTransport.ts +13 -0
- package/server/src/providers/codex-appserver/bindings/v2/ThreadRealtimeStartedNotification.ts +9 -0
- package/server/src/providers/codex-appserver/bindings/v2/ThreadRealtimeStopParams.ts +8 -0
- package/server/src/providers/codex-appserver/bindings/v2/ThreadRealtimeStopResponse.ts +8 -0
- package/server/src/providers/codex-appserver/bindings/v2/ThreadRealtimeTranscriptDeltaNotification.ts +13 -0
- package/server/src/providers/codex-appserver/bindings/v2/ThreadRealtimeTranscriptDoneNotification.ts +13 -0
- package/server/src/providers/codex-appserver/bindings/v2/ThreadResumeParams.ts +66 -0
- package/server/src/providers/codex-appserver/bindings/v2/ThreadResumeResponse.ts +38 -0
- package/server/src/providers/codex-appserver/bindings/v2/ThreadRollbackParams.ts +12 -0
- package/server/src/providers/codex-appserver/bindings/v2/ThreadRollbackResponse.ts +14 -0
- package/server/src/providers/codex-appserver/bindings/v2/ThreadSetNameParams.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/v2/ThreadSetNameResponse.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/v2/ThreadShellCommandParams.ts +12 -0
- package/server/src/providers/codex-appserver/bindings/v2/ThreadShellCommandResponse.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/v2/ThreadSortKey.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/v2/ThreadSourceKind.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/v2/ThreadStartParams.ts +55 -0
- package/server/src/providers/codex-appserver/bindings/v2/ThreadStartResponse.ts +38 -0
- package/server/src/providers/codex-appserver/bindings/v2/ThreadStartSource.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/v2/ThreadStartedNotification.ts +6 -0
- package/server/src/providers/codex-appserver/bindings/v2/ThreadStatus.ts +6 -0
- package/server/src/providers/codex-appserver/bindings/v2/ThreadStatusChangedNotification.ts +6 -0
- package/server/src/providers/codex-appserver/bindings/v2/ThreadTokenUsage.ts +6 -0
- package/server/src/providers/codex-appserver/bindings/v2/ThreadTokenUsageUpdatedNotification.ts +6 -0
- package/server/src/providers/codex-appserver/bindings/v2/ThreadTurnsListParams.ts +18 -0
- package/server/src/providers/codex-appserver/bindings/v2/ThreadTurnsListResponse.ts +18 -0
- package/server/src/providers/codex-appserver/bindings/v2/ThreadUnarchiveParams.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/v2/ThreadUnarchiveResponse.ts +6 -0
- package/server/src/providers/codex-appserver/bindings/v2/ThreadUnarchivedNotification.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/v2/ThreadUnsubscribeParams.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/v2/ThreadUnsubscribeResponse.ts +6 -0
- package/server/src/providers/codex-appserver/bindings/v2/ThreadUnsubscribeStatus.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/v2/TokenUsageBreakdown.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/v2/ToolRequestUserInputAnswer.ts +8 -0
- package/server/src/providers/codex-appserver/bindings/v2/ToolRequestUserInputOption.ts +8 -0
- package/server/src/providers/codex-appserver/bindings/v2/ToolRequestUserInputParams.ts +9 -0
- package/server/src/providers/codex-appserver/bindings/v2/ToolRequestUserInputQuestion.ts +9 -0
- package/server/src/providers/codex-appserver/bindings/v2/ToolRequestUserInputResponse.ts +9 -0
- package/server/src/providers/codex-appserver/bindings/v2/ToolsV2.ts +6 -0
- package/server/src/providers/codex-appserver/bindings/v2/Turn.ts +30 -0
- package/server/src/providers/codex-appserver/bindings/v2/TurnCompletedNotification.ts +6 -0
- package/server/src/providers/codex-appserver/bindings/v2/TurnDiffUpdatedNotification.ts +9 -0
- package/server/src/providers/codex-appserver/bindings/v2/TurnEnvironmentParams.ts +6 -0
- package/server/src/providers/codex-appserver/bindings/v2/TurnError.ts +6 -0
- package/server/src/providers/codex-appserver/bindings/v2/TurnInterruptParams.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/v2/TurnInterruptResponse.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/v2/TurnPlanStep.ts +6 -0
- package/server/src/providers/codex-appserver/bindings/v2/TurnPlanStepStatus.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/v2/TurnPlanUpdatedNotification.ts +6 -0
- package/server/src/providers/codex-appserver/bindings/v2/TurnStartParams.ts +86 -0
- package/server/src/providers/codex-appserver/bindings/v2/TurnStartResponse.ts +6 -0
- package/server/src/providers/codex-appserver/bindings/v2/TurnStartedNotification.ts +6 -0
- package/server/src/providers/codex-appserver/bindings/v2/TurnStatus.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/v2/TurnSteerParams.ts +15 -0
- package/server/src/providers/codex-appserver/bindings/v2/TurnSteerResponse.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/v2/UserInput.ts +10 -0
- package/server/src/providers/codex-appserver/bindings/v2/WarningNotification.ts +13 -0
- package/server/src/providers/codex-appserver/bindings/v2/WebSearchAction.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/v2/WindowsSandboxSetupCompletedNotification.ts +6 -0
- package/server/src/providers/codex-appserver/bindings/v2/WindowsSandboxSetupMode.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/v2/WindowsSandboxSetupStartParams.ts +7 -0
- package/server/src/providers/codex-appserver/bindings/v2/WindowsSandboxSetupStartResponse.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/v2/WindowsWorldWritableWarningNotification.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/v2/WriteStatus.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/v2/index.ts +460 -0
- package/server/src/providers/codex-appserver/catalog.ts +202 -0
- package/server/src/providers/codex-appserver/imageGen.ts +166 -0
- package/server/src/providers/codex-appserver/index.ts +485 -0
- package/server/src/providers/codex-appserver/jsonRpc.ts +248 -0
- package/server/src/providers/codex-appserver/operatorQuestions.ts +130 -0
- package/server/src/providers/codex-appserver/worker.ts +1661 -0
- package/server/src/providers/codex-stream.ts +312 -0
- package/server/src/providers/codex.ts +527 -0
- package/server/src/providers/codexCodeMode.ts +119 -0
- package/server/src/providers/codexContextWindow.ts +58 -0
- package/server/src/providers/cursor/acpJsonRpc.ts +207 -0
- package/server/src/providers/cursor/acpSegments.ts +20 -0
- package/server/src/providers/cursor/authToken.ts +60 -0
- package/server/src/providers/cursor/catalog.ts +108 -0
- package/server/src/providers/cursor/index.ts +359 -0
- package/server/src/providers/cursor/print.ts +164 -0
- package/server/src/providers/cursor/worker.ts +738 -0
- package/server/src/providers/deepseek.ts +33 -0
- package/server/src/providers/deepseekProfiles.ts +207 -0
- package/server/src/providers/endpointDiscovery.ts +320 -0
- package/server/src/providers/errorClassifier.ts +297 -0
- package/server/src/providers/fallbackChain.ts +181 -0
- package/server/src/providers/goalBlock.ts +55 -0
- package/server/src/providers/index.ts +176 -0
- package/server/src/providers/llamacpp.ts +1308 -0
- package/server/src/providers/llamacppBinary.ts +40 -0
- package/server/src/providers/llamacppManager.ts +544 -0
- package/server/src/providers/llamacppRecovery.ts +276 -0
- package/server/src/providers/llamacppServeDiagnose.ts +165 -0
- package/server/src/providers/lmstudio.ts +864 -0
- package/server/src/providers/localModelControl.ts +20 -0
- package/server/src/providers/ollama.ts +2675 -0
- package/server/src/providers/ollamaBoundaryStore.ts +63 -0
- package/server/src/providers/ollamaCtxFallback.ts +188 -0
- package/server/src/providers/ollamaDurableCompaction.ts +85 -0
- package/server/src/providers/ollamaExecutionHistory.ts +124 -0
- package/server/src/providers/ollamaFencedTools.ts +427 -0
- package/server/src/providers/ollamaForceCompact.ts +37 -0
- package/server/src/providers/ollamaParams.ts +193 -0
- package/server/src/providers/ollamaRecovery.ts +451 -0
- package/server/src/providers/ollamaResilience.ts +504 -0
- package/server/src/providers/ollamaTokens.ts +233 -0
- package/server/src/providers/ollamaToolSubset.ts +246 -0
- package/server/src/providers/ollamaTools.ts +1232 -0
- package/server/src/providers/ollamaUtility.ts +539 -0
- package/server/src/providers/ollamaVram.ts +358 -0
- package/server/src/providers/outputSignature.ts +23 -0
- package/server/src/providers/outputStyle.ts +88 -0
- package/server/src/providers/ragInjection.ts +294 -0
- package/server/src/providers/runtimeVersions.ts +41 -0
- package/server/src/providers/strata.ts +66 -0
- package/server/src/providers/strataProfiles.ts +190 -0
- package/server/src/providers/types.ts +66 -0
- package/server/src/quota.ts +164 -0
- package/server/src/recall/index.ts +761 -0
- package/server/src/recall/search.ts +180 -0
- package/server/src/recall/summarize.ts +230 -0
- package/server/src/recentFilesLedger.ts +152 -0
- package/server/src/rulePickupGuard.ts +65 -0
- package/server/src/runtimeEnv.ts +95 -0
- package/server/src/server/broadcast.ts +629 -0
- package/server/src/server/constants.ts +77 -0
- package/server/src/server/logger.ts +204 -0
- package/server/src/server/prompts.ts +90 -0
- package/server/src/server/readiness.ts +56 -0
- package/server/src/server/state.ts +42 -0
- package/server/src/server/updateCheck.ts +17 -0
- package/server/src/services/discover.ts +391 -0
- package/server/src/sessionJsonl.ts +130 -0
- package/server/src/settings.ts +1193 -0
- package/server/src/skillAudit.ts +81 -0
- package/server/src/skillUsage.ts +129 -0
- package/server/src/skills.ts +471 -0
- package/server/src/smartPickup.ts +171 -0
- package/server/src/smartPickupAdapters.ts +439 -0
- package/server/src/smartPickupCorpus.ts +56 -0
- package/server/src/smartPickupEvaluator.ts +257 -0
- package/server/src/smartPickupLedger.ts +208 -0
- package/server/src/smartPickupObserver.ts +365 -0
- package/server/src/smartPickupThread.ts +35 -0
- package/server/src/taskDispatcher.ts +425 -0
- package/server/src/templates/store.ts +229 -0
- package/server/src/terminal/ptyManager.ts +321 -0
- package/server/src/terminal/ptyPidRegistry.ts +101 -0
- package/server/src/terminal/terminalChannel.ts +211 -0
- package/server/src/tidyDraft.ts +15 -0
- package/server/src/toolbox.ts +315 -0
- package/server/src/toolboxWorkflow.ts +28 -0
- package/server/src/turnChanges.ts +83 -0
- package/server/src/ultracodeFleetWatcher.ts +205 -0
- package/server/src/updateCheck.ts +99 -0
- package/server/src/updateManager.ts +156 -0
- package/server/src/usage.ts +157 -0
- package/server/src/utilityBrief.ts +34 -0
- package/server/src/utilityJob.ts +98 -0
- package/server/src/voice/activity.ts +135 -0
- package/server/src/voice/activityBus.ts +20 -0
- package/server/src/voice/activityStore.ts +85 -0
- package/server/src/voice/computerContext.ts +136 -0
- package/server/src/voice/conditionContext.ts +56 -0
- package/server/src/voice/conditionFacts.ts +28 -0
- package/server/src/voice/conditionReply.ts +48 -0
- package/server/src/voice/conditionSchema.ts +94 -0
- package/server/src/voice/conditionStore.ts +133 -0
- package/server/src/voice/conditions.ts +296 -0
- package/server/src/voice/history.ts +38 -0
- package/server/src/voice/inputObservation.ts +29 -0
- package/server/src/voice/localRecognizer.ts +129 -0
- package/server/src/voice/luna.ts +102 -0
- package/server/src/voice/mailRuleStore.ts +85 -0
- package/server/src/voice/mailRules.ts +204 -0
- package/server/src/voice/operatorPrompt.ts +37 -0
- package/server/src/voice/operatorTools.ts +74 -0
- package/server/src/voice/recognizer.py +188 -0
- package/server/src/voice/sessions.ts +98 -0
- package/server/src/voice/toolDefinitions.ts +46 -0
- package/server/src/voice/turnWatchdog.ts +36 -0
- package/server/src/voice/voiceSetup.ts +147 -0
- package/server/src/voice/watchStore.ts +57 -0
- package/server/src/voice/watches.ts +108 -0
- package/server/src/windowsCommand.ts +81 -0
- package/server/src/workers/StreamParser.ts +379 -0
- package/server/src/workers/WorkerManager.ts +701 -0
- package/server/src/workers/interruptProcess.ts +20 -0
- package/server/src/workers/limits.ts +82 -0
- package/server/src/workers/pidRegistry.ts +127 -0
- package/server/src/workers/procListening.ts +108 -0
- package/server/src/workers/procListeningAll.ts +135 -0
- package/server/src/workers/processActivity.ts +192 -0
- package/server/src/workers/processKill.ts +50 -0
- package/server/src/workers/processStartTime.ts +103 -0
- package/server/src/workers/stuckBreaker.ts +157 -0
- package/server/src/workflowMeta.ts +645 -0
- package/server/src/workflowStore.ts +583 -0
- package/server/src/workflows/modelTitles.ts +105 -0
- package/server/src/workflows/purgeWorkflow.ts +170 -0
- package/server/src/workflows/sessionDiscovery.ts +357 -0
- package/server/src/workflows/sessionIndex.ts +509 -0
- package/server/src/workflows/terminalSessions.ts +129 -0
- package/server/src/workflows/transcripts.ts +181 -0
- package/server/src/workflows/types.ts +254 -0
- package/server/src/workspace.ts +184 -0
- package/server/src/ws/bakeoffHandlers.ts +393 -0
- package/server/src/ws/clusterHandlers.ts +2892 -0
- package/server/src/ws/compactHandlers.ts +402 -0
- package/server/src/ws/compareHandlers.ts +214 -0
- package/server/src/ws/gateHandlers.ts +156 -0
- package/server/src/ws/genesisHandlers.ts +766 -0
- package/server/src/ws/handoffHandlers.ts +1876 -0
- package/server/src/ws/knowledgeHandlers.ts +74 -0
- package/server/src/ws/mcpHandlers.ts +202 -0
- package/server/src/ws/messageQueue.ts +12 -0
- package/server/src/ws/operatorQuestionHandlers.ts +27 -0
- package/server/src/ws/postureHandlers.ts +33 -0
- package/server/src/ws/previewCaptureHandlers.ts +232 -0
- package/server/src/ws/projectTrustHandlers.ts +55 -0
- package/server/src/ws/taskLedgerHandlers.ts +433 -0
- package/server/src/ws/taskWorktreeHandlers.ts +91 -0
- package/server/src/ws/turnEngine.ts +3033 -0
- package/server/src/ws/updatePrimaryConfig.ts +440 -0
- package/server/src/ws/workflowHandlers.ts +2225 -0
- package/shared/dist/autoPickupAck.d.ts +1 -0
- package/shared/dist/autoPickupAck.js +7 -0
- package/shared/dist/clusterCoordination.d.ts +10 -0
- package/shared/dist/clusterCoordination.js +55 -0
- package/shared/dist/clusterRolePresets.d.ts +8 -0
- package/shared/dist/clusterRolePresets.js +68 -0
- package/shared/dist/index.d.ts +8 -0
- package/shared/dist/index.js +9 -0
- package/shared/dist/localCapacity.d.ts +29 -0
- package/shared/dist/localCapacity.js +63 -0
- package/shared/dist/outputs.d.ts +31 -0
- package/shared/dist/outputs.js +2 -0
- package/shared/dist/protocol/__fixtures__/cursorCatalog.fixture.d.ts +5 -0
- package/shared/dist/protocol/__fixtures__/cursorCatalog.fixture.js +194 -0
- package/shared/dist/protocol/autoPickup.d.ts +102 -0
- package/shared/dist/protocol/autoPickup.js +99 -0
- package/shared/dist/protocol/bakeoffs.d.ts +86 -0
- package/shared/dist/protocol/bakeoffs.js +2 -0
- package/shared/dist/protocol/chat.d.ts +33 -0
- package/shared/dist/protocol/chat.js +3 -0
- package/shared/dist/protocol/checkpoints.d.ts +129 -0
- package/shared/dist/protocol/checkpoints.js +20 -0
- package/shared/dist/protocol/clientMessages.d.ts +218 -0
- package/shared/dist/protocol/clientMessages.js +3 -0
- package/shared/dist/protocol/clusters.d.ts +575 -0
- package/shared/dist/protocol/clusters.js +99 -0
- package/shared/dist/protocol/compare.d.ts +78 -0
- package/shared/dist/protocol/compare.js +22 -0
- package/shared/dist/protocol/computerConditions.d.ts +129 -0
- package/shared/dist/protocol/computerConditions.js +8 -0
- package/shared/dist/protocol/connections.d.ts +22 -0
- package/shared/dist/protocol/connections.js +2 -0
- package/shared/dist/protocol/diagnostics.d.ts +17 -0
- package/shared/dist/protocol/diagnostics.js +19 -0
- package/shared/dist/protocol/docEdit.d.ts +44 -0
- package/shared/dist/protocol/docEdit.js +22 -0
- package/shared/dist/protocol/endpointDiscovery.d.ts +15 -0
- package/shared/dist/protocol/endpointDiscovery.js +13 -0
- package/shared/dist/protocol/fallback.d.ts +28 -0
- package/shared/dist/protocol/fallback.js +12 -0
- package/shared/dist/protocol/genesis.d.ts +121 -0
- package/shared/dist/protocol/genesis.js +18 -0
- package/shared/dist/protocol/gitOps.d.ts +44 -0
- package/shared/dist/protocol/gitOps.js +24 -0
- package/shared/dist/protocol/handoffs.d.ts +108 -0
- package/shared/dist/protocol/handoffs.js +3 -0
- package/shared/dist/protocol/hardware.d.ts +32 -0
- package/shared/dist/protocol/hardware.js +20 -0
- package/shared/dist/protocol/index.d.ts +50 -0
- package/shared/dist/protocol/index.js +55 -0
- package/shared/dist/protocol/knowledge.d.ts +63 -0
- package/shared/dist/protocol/knowledge.js +37 -0
- package/shared/dist/protocol/liveChanges.d.ts +19 -0
- package/shared/dist/protocol/liveChanges.js +2 -0
- package/shared/dist/protocol/llamacppDiagnose.d.ts +21 -0
- package/shared/dist/protocol/llamacppDiagnose.js +20 -0
- package/shared/dist/protocol/localModels.d.ts +12 -0
- package/shared/dist/protocol/localModels.js +2 -0
- package/shared/dist/protocol/mcp.d.ts +96 -0
- package/shared/dist/protocol/mcp.js +33 -0
- package/shared/dist/protocol/mdTuneup.d.ts +96 -0
- package/shared/dist/protocol/mdTuneup.js +4 -0
- package/shared/dist/protocol/media.d.ts +330 -0
- package/shared/dist/protocol/media.js +115 -0
- package/shared/dist/protocol/models.d.ts +265 -0
- package/shared/dist/protocol/models.js +444 -0
- package/shared/dist/protocol/notifications.d.ts +60 -0
- package/shared/dist/protocol/notifications.js +79 -0
- package/shared/dist/protocol/ollamaThinking.d.ts +11 -0
- package/shared/dist/protocol/ollamaThinking.js +47 -0
- package/shared/dist/protocol/operatorQuestions.d.ts +42 -0
- package/shared/dist/protocol/operatorQuestions.js +2 -0
- package/shared/dist/protocol/opsDiagnostics.d.ts +94 -0
- package/shared/dist/protocol/opsDiagnostics.js +12 -0
- package/shared/dist/protocol/orchestrationAssist.d.ts +204 -0
- package/shared/dist/protocol/orchestrationAssist.js +8 -0
- package/shared/dist/protocol/phosphorPaletteIds.d.ts +1 -0
- package/shared/dist/protocol/phosphorPaletteIds.js +74 -0
- package/shared/dist/protocol/plans.d.ts +82 -0
- package/shared/dist/protocol/plans.js +11 -0
- package/shared/dist/protocol/previewCapture.d.ts +59 -0
- package/shared/dist/protocol/previewCapture.js +2 -0
- package/shared/dist/protocol/providers.d.ts +29 -0
- package/shared/dist/protocol/providers.js +36 -0
- package/shared/dist/protocol/recall.d.ts +88 -0
- package/shared/dist/protocol/recall.js +9 -0
- package/shared/dist/protocol/remoteManagement.d.ts +353 -0
- package/shared/dist/protocol/remoteManagement.js +15 -0
- package/shared/dist/protocol/research.d.ts +56 -0
- package/shared/dist/protocol/research.js +22 -0
- package/shared/dist/protocol/reviews.d.ts +82 -0
- package/shared/dist/protocol/reviews.js +3 -0
- package/shared/dist/protocol/serverMessages.d.ts +766 -0
- package/shared/dist/protocol/serverMessages.js +20 -0
- package/shared/dist/protocol/services.d.ts +19 -0
- package/shared/dist/protocol/services.js +14 -0
- package/shared/dist/protocol/settings.d.ts +152 -0
- package/shared/dist/protocol/settings.js +10 -0
- package/shared/dist/protocol/tasks.d.ts +179 -0
- package/shared/dist/protocol/tasks.js +16 -0
- package/shared/dist/protocol/templates.d.ts +12 -0
- package/shared/dist/protocol/templates.js +25 -0
- package/shared/dist/protocol/terminal.d.ts +54 -0
- package/shared/dist/protocol/terminal.js +16 -0
- package/shared/dist/protocol/themes.d.ts +7 -0
- package/shared/dist/protocol/themes.js +70 -0
- package/shared/dist/protocol/usage.d.ts +211 -0
- package/shared/dist/protocol/usage.js +2 -0
- package/shared/dist/protocol/usageStats.d.ts +33 -0
- package/shared/dist/protocol/usageStats.js +22 -0
- package/shared/dist/protocol/utilityAgent.d.ts +43 -0
- package/shared/dist/protocol/utilityAgent.js +50 -0
- package/shared/dist/protocol/voiceOperator.d.ts +131 -0
- package/shared/dist/protocol/voiceOperator.js +20 -0
- package/shared/dist/protocol/workers.d.ts +47 -0
- package/shared/dist/protocol/workers.js +3 -0
- package/shared/dist/protocol/workflows.d.ts +266 -0
- package/shared/dist/protocol/workflows.js +40 -0
- package/shared/dist/protocol.d.ts +1 -0
- package/shared/dist/protocol.js +6 -0
- package/shared/dist/runtimeVersions.d.ts +1 -0
- package/shared/dist/runtimeVersions.js +29 -0
- package/shared/dist/voice.d.ts +136 -0
- package/shared/dist/voice.js +61 -0
- package/shared/src/autoPickupAck.ts +7 -0
- package/shared/src/clusterCoordination.ts +55 -0
- package/shared/src/clusterRolePresets.ts +74 -0
- package/shared/src/index.ts +8 -0
- package/shared/src/localCapacity.ts +74 -0
- package/shared/src/outputs.ts +28 -0
- package/shared/src/protocol/__fixtures__/cursorCatalog.fixture.ts +193 -0
- package/shared/src/protocol/autoPickup.ts +200 -0
- package/shared/src/protocol/bakeoffs.ts +108 -0
- package/shared/src/protocol/chat.ts +66 -0
- package/shared/src/protocol/checkpoints.ts +274 -0
- package/shared/src/protocol/clientMessages.ts +639 -0
- package/shared/src/protocol/clusters.ts +1140 -0
- package/shared/src/protocol/compare.ts +147 -0
- package/shared/src/protocol/computerConditions.ts +52 -0
- package/shared/src/protocol/connections.ts +24 -0
- package/shared/src/protocol/diagnostics.ts +46 -0
- package/shared/src/protocol/docEdit.ts +87 -0
- package/shared/src/protocol/endpointDiscovery.ts +40 -0
- package/shared/src/protocol/fallback.ts +69 -0
- package/shared/src/protocol/genesis.ts +252 -0
- package/shared/src/protocol/gitOps.ts +95 -0
- package/shared/src/protocol/handoffs.ts +166 -0
- package/shared/src/protocol/hardware.ts +101 -0
- package/shared/src/protocol/index.ts +57 -0
- package/shared/src/protocol/knowledge.ts +133 -0
- package/shared/src/protocol/liveChanges.ts +25 -0
- package/shared/src/protocol/llamacppDiagnose.ts +55 -0
- package/shared/src/protocol/localModels.ts +14 -0
- package/shared/src/protocol/mcp.ts +204 -0
- package/shared/src/protocol/mdTuneup.ts +135 -0
- package/shared/src/protocol/media.ts +536 -0
- package/shared/src/protocol/models.ts +799 -0
- package/shared/src/protocol/notifications.ts +170 -0
- package/shared/src/protocol/ollamaThinking.ts +63 -0
- package/shared/src/protocol/operatorQuestions.ts +40 -0
- package/shared/src/protocol/opsDiagnostics.ts +211 -0
- package/shared/src/protocol/orchestrationAssist.ts +255 -0
- package/shared/src/protocol/phosphorPaletteIds.ts +73 -0
- package/shared/src/protocol/plans.ts +160 -0
- package/shared/src/protocol/previewCapture.ts +109 -0
- package/shared/src/protocol/providers.ts +90 -0
- package/shared/src/protocol/recall.ts +202 -0
- package/shared/src/protocol/remoteManagement.ts +482 -0
- package/shared/src/protocol/research.ts +105 -0
- package/shared/src/protocol/reviews.ts +105 -0
- package/shared/src/protocol/serverMessages.ts +1609 -0
- package/shared/src/protocol/services.ts +35 -0
- package/shared/src/protocol/settings.ts +345 -0
- package/shared/src/protocol/tasks.ts +316 -0
- package/shared/src/protocol/templates.ts +50 -0
- package/shared/src/protocol/terminal.ts +106 -0
- package/shared/src/protocol/themes.ts +73 -0
- package/shared/src/protocol/usage.ts +362 -0
- package/shared/src/protocol/usageStats.ts +78 -0
- package/shared/src/protocol/utilityAgent.ts +90 -0
- package/shared/src/protocol/voiceOperator.ts +147 -0
- package/shared/src/protocol/workers.ts +59 -0
- package/shared/src/protocol/workflows.ts +841 -0
- package/shared/src/protocol.ts +5 -0
- package/shared/src/runtimeVersions.ts +22 -0
- package/shared/src/voice.ts +78 -0
package/docs/GOTCHAS.md
ADDED
|
@@ -0,0 +1,1741 @@
|
|
|
1
|
+
# Gotchas
|
|
2
|
+
|
|
3
|
+
Coupling warnings and do-not-regress rules that are not obvious from the code alone. Each entry exists because someone previously broke it, or because the load-bearing detail is surprising enough that a fresh change would miss it. Read the relevant section before touching chat rendering, worker lifecycle, session rotation, or the protocol.
|
|
4
|
+
|
|
5
|
+
For the architecture map, see [Architecture](ARCHITECTURE.md). For chronological history, see [DEVLOG.md](../DEVLOG.md). For terminology, see [Glossary](GLOSSARY.md).
|
|
6
|
+
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
## Topics
|
|
10
|
+
|
|
11
|
+
| Topic |
|
|
12
|
+
| --- |
|
|
13
|
+
| [Shadow-git checkpoints](#shadow-git-checkpoints) |
|
|
14
|
+
| [A2 checkpoints vs I3 real git mutation (keep the code paths separate)](#a2-checkpoints-vs-i3-real-git-mutation-keep-the-code-paths-separate) |
|
|
15
|
+
| [Worker safety (non-negotiable)](#worker-safety-non-negotiable) |
|
|
16
|
+
| [Provider / worker plumbing](#provider--worker-plumbing) |
|
|
17
|
+
| [Claude Native transport](#claude-native-transport) |
|
|
18
|
+
| [Codex](#codex) |
|
|
19
|
+
| [Media ops FFmpeg wrapper (H6 audio + H7 video)](#media-ops-ffmpeg-wrapper-h6-audio--h7-video) |
|
|
20
|
+
| [Media access fence](#media-access-fence) |
|
|
21
|
+
| [Advanced media ops](#advanced-media-ops) |
|
|
22
|
+
| [Demucs stem separation](#demucs-stem-separation) |
|
|
23
|
+
| [Strata](#strata) |
|
|
24
|
+
| [DeepSeek / Xolotl](#deepseek--xolotl) |
|
|
25
|
+
| [Ollama](#ollama) |
|
|
26
|
+
| [Cursor](#cursor) |
|
|
27
|
+
| [Chat / UI](#chat--ui) |
|
|
28
|
+
| [Themes / shaders](#themes--shaders) |
|
|
29
|
+
| [Cross-platform](#cross-platform) |
|
|
30
|
+
| [Persistence / workflow lifecycle](#persistence--workflow-lifecycle) |
|
|
31
|
+
| [Server-authoritative workspace (mirrored tabs)](#server-authoritative-workspace-mirrored-tabs) |
|
|
32
|
+
| [Plans](#plans) |
|
|
33
|
+
| [Handoff prompt overrides](#handoff-prompt-overrides) |
|
|
34
|
+
| [Context calibration](#context-calibration) |
|
|
35
|
+
| [Chat message attachments](#chat-message-attachments) |
|
|
36
|
+
| [Review primitive](#review-primitive) |
|
|
37
|
+
| [Plan-review parsing invariants](#plan-review-parsing-invariants) |
|
|
38
|
+
| [DOCS / GIT composer buttons](#docs--git-composer-buttons) |
|
|
39
|
+
| [Protocol](#protocol) |
|
|
40
|
+
| [Operator session-cookie gate (WS + HTTP)](#operator-session-cookie-gate-ws--http) |
|
|
41
|
+
| [Goal run (north-star auto-continue)](#goal-run-north-star-auto-continue) |
|
|
42
|
+
| [Project trust](#project-trust) |
|
|
43
|
+
| [Skills, primitives & config interpolation](#skills-primitives--config-interpolation) |
|
|
44
|
+
| [Local-model picker](#local-model-picker) |
|
|
45
|
+
| [Restore-point forks (REWIND CONVERSATION)](#restore-point-forks-rewind-conversation) |
|
|
46
|
+
| [DEBAG durable review gate (review safe-mode)](#debag-durable-review-gate-review-safe-mode) |
|
|
47
|
+
| [Server lifecycle](#server-lifecycle) |
|
|
48
|
+
| [Service mode boot resolution](#service-mode-boot-resolution) |
|
|
49
|
+
| [LSP diagnostics](#lsp-diagnostics) |
|
|
50
|
+
| [Runtime observable states](#runtime-observable-states) |
|
|
51
|
+
| [Robustness invariants](#robustness-invariants) |
|
|
52
|
+
| [HISTORY tab](#history-tab) |
|
|
53
|
+
| [Git worktrees per task](#git-worktrees-per-task) |
|
|
54
|
+
| [arco-agent - signed lifecycle supervisor](#arco-agent---signed-lifecycle-supervisor) |
|
|
55
|
+
| [arco-management hub](#arco-management-hub) |
|
|
56
|
+
| [Workflow-reporting layer](#workflow-reporting-layer) |
|
|
57
|
+
| [SSH lifecycle fallback](#ssh-lifecycle-fallback) |
|
|
58
|
+
| [ntfy external transport](#ntfy-external-transport) |
|
|
59
|
+
| [Per-workflow REMOTE opt-in](#per-workflow-remote-opt-in) |
|
|
60
|
+
| [Remote Control v2](#remote-control-v2) |
|
|
61
|
+
| [Task children](#task-children) |
|
|
62
|
+
| [Preview tab](#preview-tab) |
|
|
63
|
+
| [Efficiency behavior](#efficiency-behavior) |
|
|
64
|
+
| [Cluster mode](#cluster-mode) |
|
|
65
|
+
| [Integrated terminal](#integrated-terminal) |
|
|
66
|
+
| [Worktree bake-offs](#worktree-bake-offs) |
|
|
67
|
+
| [ARTIFACTS explorer (`?app=explorer`)](#artifacts-explorer-appexplorer) |
|
|
68
|
+
| [Backup / restore archive safety](#backup--restore-archive-safety) |
|
|
69
|
+
| [Genesis](#genesis) |
|
|
70
|
+
| [Hands-free voice](#hands-free-voice) |
|
|
71
|
+
| [Hands-free Computer voice operator](#hands-free-computer-voice-operator) |
|
|
72
|
+
|
|
73
|
+
## Shadow-git checkpoints
|
|
74
|
+
|
|
75
|
+
- **Snapshots must never touch the user's real index / HEAD / working tree.** `server/src/gitSnapshots.ts` snapshots via a **unique per-operation `GIT_INDEX_FILE`** (`$TMPDIR/arco-snapshot-<cwd-hash>-<pid>-<uuid>.index`; the shadow repo uses an equally unique index inside its bare gitdir) and only ever writes `refs/arco/<wfid>/<seq>`. The unique name is load-bearing because checkpoint capture is fire-and-forget and multiple workflows can share one cwd; a fixed `snap.index` races on `snap.index.lock`. The repo scratch file must stay outside the worktree too, or one concurrent capture can stage another's scratch when `.arco` is not ignored. No `reset`/`checkout`/`stash`/`add` against the real index - the operator's `git status` must stay byte-identical. The smoke (`npm run smoke:checkpoints`) asserts isolation, cleanup, and concurrency; don't weaken it. All git calls use `execFile` arg arrays (no shell-string interpolation).
|
|
76
|
+
- **The pre-turn checkpoint hook lives in `turnEngine.handleUserMessage`, not `seedWorker.ts`.** `runPrimaryTurn` is shared by reviewers / handoff seeds / `exportContext` / Task children, which must **not** checkpoint the operator tree. Snapshot only on operator turns, skipped in `armPlanMode`, fire-and-forget so it never blocks/fails the turn. See `docs/CHECKPOINTS.md`.
|
|
77
|
+
- **Checkpoints are never exposed to the LLM** - no tool, no system-prompt mention. Pure operator infra.
|
|
78
|
+
- **The non-git fallback's size caps are load-bearing in BOTH directions - and size is not stable.** The shadow store (bare repo at `~/.arco/checkpoints/<cwd-hash>/git`) writes `<wfid>.<seq>.skipped.json` beside each ref. Revert excludes target-skipped paths from its seed even if they later shrink; if a currently over-cap path overlaps the target tree, it aborts before any write because the safety snapshot cannot preserve those bytes. A same-caps walk alone is insufficient: a large-at-capture file can shrink and be deleted, while a small-at-capture file can grow and be overwritten. Don't remove the sidecar/pruning/purge paths or weaken the abort. Don't reintroduce tar creation either: a tar per turn copies the entire cwd with zero sharing (a 318 GB ComfyUI cwd accrued 302 GB of timeout-truncated partial tars, twice - 2026-08-18/19); the legacy tar READER stays only for pre-shadow checkpoints. See `docs/CHECKPOINTS.md`.
|
|
79
|
+
- **Revert's seed must be `add -A` + `rm --cached -- .arco`, not an exclude pathspec.** `add -A -- ':!.arco' ':!.git'` makes git treat matched-but-ignored dirs as explicitly requested; with a global `**/.arco/` ignore rule (the operator's `~/.config/git/ignore`) the add REFUSES and every revert in a repo containing `.arco` fails (found 2026-08-19; pinned by `npm run smoke:checkpoint-revert`).
|
|
80
|
+
|
|
81
|
+
## A2 checkpoints vs I3 real git mutation (keep the code paths separate)
|
|
82
|
+
|
|
83
|
+
- **A2 checkpoints (`server/src/gitSnapshots.ts`) NEVER touch the real index/HEAD/working tree. I3 direct git ops (`server/src/gitOps.ts`) INTENTIONALLY DO - that's the whole point of I3.** These are deliberate opposites and must stay strictly separated: **`gitOps.ts` must NEVER import from `gitSnapshots.ts`, and `gitSnapshots.ts` must NEVER import from `gitOps.ts`.** A2 is the operator's safety net (shadow refs under `refs/arco/`, a separate `GIT_INDEX_FILE`); I3 is the operator's hands on the wheel (`git add`/`reset`/`commit`/`push`/`stash`/`branch`/`tag` against the real repo). Routing one through the other would either corrupt the operator's index (A2's invariant) or silently fail to mutate (I3's contract). If you ever need shared helpers, put them in a third module (e.g. the argv validators already live in `server/src/gitSafe.ts`, imported by both `gitOps.ts` and `gitWorking.ts`/`gitDiff.ts`) - never have one of the two import the other.
|
|
84
|
+
- **I3 is safe under the four-question test even though it mutates real git state.** Each op is an explicit operator click, bounded by deterministic argv with inputs validated by `gitSafe.ts` (`isSafePath`/`isSafeRef`/`isSafeRemote`), logged to `events.jsonl` as a `git_op_result` event, and reversible (git reflog / unstage / stash pop / branch recreate). The mutation is allowed *because* of those four properties, not in spite of them.
|
|
85
|
+
- **The security contract is non-negotiable.** Every git invocation is `execFile('git', argv, {cwd})` - never a shell string. Every operator value is validated before it reaches argv; `--` always precedes pathspecs. A push to a protected branch (`PROTECTED_BRANCH_RE`, shared from `shared/src/protocol/gitOps.ts`) or ANY force push requires explicit `confirm:true` - without it `push()` returns `needsConfirm` and git is NOT run; confirmed force uses `--force-with-lease`, never bare `--force`. Commit messages are committed verbatim - **no `Co-Authored-By` (or any) trailer is ever injected.** `npm run smoke:git-ops` locks all of this in (incl. adversarial flag-smuggling / metachar / no-confirm-push / empty-message assertions); don't weaken it.
|
|
86
|
+
- **I4 PR creation rides the REST `body`, never a `gh pr create` shell/argv string.** `github.createPullRequest` → the pure `buildCreatePrRequest` → `gh<T>(path, { method:'POST', body })`. Operator title/body/base/head go in the **JSON body** - never interpolated into a command, so a title beginning with `-` is harmless (it can't be read as an argv flag). This mirrors `mergePull`/`commentIssue`. PR creation is an outward action gated on an explicit form submit (no auto-create, no agent path) and - like the other GitHub write endpoints - does **not** broadcast to `events.jsonl`. `npm run smoke:github-pr` unit-tests `buildCreatePrRequest` (incl. the leading-dash-title-in-body and empty-field-rejection cases) with no live `gh`/network/PR; never create a real PR from a test.
|
|
87
|
+
- **GitHub's `files[].patch` is BARE HUNKS - reconstruct a git header before parsing.** A PR/commit file's `patch` starts straight at `@@ … @@` with no `diff --git`, `--- a/…`, or `+++ b/…` lines. `react-diff-view`'s `parseDiff` needs those to bind a filename + add/delete/rename type, so the raw patch yields a path-less file. `client/src/components/GitHubPanel/ghDiff.ts` (`ghFileToUnifiedDiff` / `ghFilesToUnifiedDiff`) prepends a synthetic `diff --git a/<old> b/<new>` / `--- a/<old>` / `+++ b/<new>` header per file, using `previous_filename ?? filename` for `<old>` and `/dev/null` for the add (`---`) / remove (`+++`) sides. Files with no `patch` (binary/oversized) are EXCLUDED from the renderer and shown as a notice row. The helper is pure (no React) and reused by both the PR files view and the commit-detail view; `npm run smoke:github-pr` asserts the header/`/dev/null`/rename/exclusion behavior. Don't feed GitHub's raw `patch` straight to `DiffView`.
|
|
88
|
+
|
|
89
|
+
## Worker safety (non-negotiable)
|
|
90
|
+
|
|
91
|
+
These guardrails bound worker memory use and prevent a runaway subprocess from destabilizing the server. Do not loosen them without reviewing the risk.
|
|
92
|
+
|
|
93
|
+
- `MAX_WORKER_OUTPUT_BYTES = 5MB` per-worker (capped in per-provider accumulators).
|
|
94
|
+
- `RSS_KILL_BYTES = 32GB` tree-RSS auto-kill via `WorkerManager.startActivityPoll`. Per-workflow opt-out exists via `meta.json` `disableRssGuard` for legitimate heavy jobs (kernel compiles, big LTO links). Reviewers and handoff reflections always run under the global cap regardless.
|
|
95
|
+
- Subprocesses spawn `detached: true`; `killProcessTree` takes down descendants on cancel.
|
|
96
|
+
- Linux `/proc`-based activity probe (`processActivity.ts`, polled 1.5s) drives the CPU-pulse UI + silent-exit supervision. See `server/src/workers/limits.ts`.
|
|
97
|
+
- **Operator-terminal (PTY) reaping mirrors worker reaping, but with NO RSS auto-kill (§K2).** node-pty children are *not* `detached`, so a clean exit reaps them - but a hard kill reparents them to init and leaks them. So they get the same durable-registry treatment: `server/src/terminal/ptyPidRegistry.ts` persists pids to `~/.arco/terminal-pids.json` (a **separate** file from `worker-pids.json`, so the two reap sets can't clobber each other), and `reapOrphanTerminals()` runs right after `reapOrphanWorkers()` before `listen()`, SIGKILLing stale pids via the shared `forceKillPid`. **Crucial difference: do NOT add an RSS auto-kill of operator shells.** A worker is autonomous and bounded by `RSS_KILL_BYTES`; a terminal runs processes the *operator started intentionally* (dev server, build, REPL), so SIGKILLing their shell on a memory threshold would be destructive and violate the operator-in-control fence. Orphan reaping (a *prior crashed run's* leak) is safe; killing a *live* operator session on a heuristic is not. Any future guard must default to observation-only. Two windows can attach to one session (multi-listener `Set` in `PtySession`); closing one window disposes only its listener, not the co-viewer's.
|
|
98
|
+
- **The §3.1 stuck-worker breaker pauses a worker that keeps FAILING THE SAME WAY - error-persistence, not action-pattern.** `workers/stuckBreaker.ts` keys per workflow on the signature `toolName|inputHash|outputHash` (the watchdog's NORMALIZED `outputHash` from `providers/outputSignature.ts`, so "the same error" with drifting digits/timestamps collapses to one signature) and counts a streak of FAILING results (`failed` status OR non-zero `exitCode` OR an `[error]` sentinel) with no success interleaved: ≥`DETECT_AT` (3) → `nudge`, ≥`ESCALATE_AT` (5) → recommend a reversible `pause`; any success or different signature → `recovered`. It NEVER kills/prompts a worker itself - it returns a verdict `seedWorker` turns into a visible `worker_stuck` event. A model may legitimately repeat an action pattern, so detection requires repeated failures. Cross-turn + cross-provider (consumes `worker_tool_use` from any transport carrying `outputHash` - claude-native + codex today). Composes with the in-turn Native H9 guard.
|
|
99
|
+
- **H46 RSS/heap trend logging is OFF by default and observation-only.** `memoryMonitor.ts` samples `process.memoryUsage()` every ~5 min (plus a `boot` baseline and a `shutdown` high-water line) into a file log ONLY when file logging is enabled - a cheap trend the operator greps, never a kill trigger. The `RSS_KILL_BYTES` tree-RSS guard above stays the only auto-kill. Don't wire an action onto the trend.
|
|
100
|
+
|
|
101
|
+
## Provider / worker plumbing
|
|
102
|
+
|
|
103
|
+
- **Provider logins run in Arco's terminal, never spawned by the server.**
|
|
104
|
+
`POST /api/auth-login` returns `{ command }` - each CLI's headless mode
|
|
105
|
+
(`claude auth login`, `codex login --device-auth`, `env NO_OPEN_BROWSER=1
|
|
106
|
+
cursor-agent login`, `gh auth login --web`) -
|
|
107
|
+
and the client's `LoginCommand` pre-fills it into the terminal (§K3 fence:
|
|
108
|
+
the operator presses Enter). Don't reintroduce detached `spawn('claude',
|
|
109
|
+
['auth','login'])` with `stdio:'ignore'` or desktop-terminal launches: with
|
|
110
|
+
no reachable browser/display they no-op silently, and in remote-access
|
|
111
|
+
setups a server-side browser launch can open on the wrong device. Return the
|
|
112
|
+
sign-in command for execution from the browser user's terminal.
|
|
113
|
+
Claude Native's PKCE redirect is `localhost:53692`, so its paste-the-URL box
|
|
114
|
+
is ALWAYS offered, not only on `manualFallback`.
|
|
115
|
+
|
|
116
|
+
- **A failed `claude auth status` probe is "unknown", never "logged out".**
|
|
117
|
+
`getClaudeAuthStatus` retries once, then returns the last known answer with
|
|
118
|
+
`probeFailed:true`; only a parsed `loggedIn:false` counts. `HeaderAuthChip`
|
|
119
|
+
ignores `probeFailed`, and App.tsx keeps polling while logged out. A failed
|
|
120
|
+
probe must preserve the last known authentication state; otherwise polling
|
|
121
|
+
can stop and leave a false sign-in prompt visible.
|
|
122
|
+
|
|
123
|
+
- **Chat mode is an execution boundary, not a CSS toggle.** `kind:'chat'` must
|
|
124
|
+
become `WorkerConfig.interactionMode:'chat'` on every turn. Keep project
|
|
125
|
+
prompt expansion, context refs, trust discovery, skills/CLAUDE.md/knowledge,
|
|
126
|
+
plans, MCP wiring, preview sniffing, and checkpoints behind
|
|
127
|
+
`projectContextEnabled`. The hidden `~/.arco/chats/<wfid>` cwd exists only
|
|
128
|
+
because persistence and subprocess APIs require a cwd; never treat it as a
|
|
129
|
+
project. Native/local providers must omit project tools; an armed Ollama Chat
|
|
130
|
+
gets only `WebSearch` / `WebFetch`. Codex/Cursor must remain
|
|
131
|
+
read-only and isolated. Removed providers remain rejected server-side even if a stale client crafts a create request.
|
|
132
|
+
|
|
133
|
+
- **Web access is the ONE tool a Chat tab may hold, and it is per-tab operator
|
|
134
|
+
state.** `chatWebArmed(config, provider)` in `server/src/chatMode.ts` is the
|
|
135
|
+
single source of truth: unset `chatWebAccess` means armed for a saved Chat and
|
|
136
|
+
disarmed for Incognito (the query leaves the machine), and only
|
|
137
|
+
`CHAT_WEB_PROVIDERS` (claude, codex, ollama, strata) can honor it. Every transport
|
|
138
|
+
states it
|
|
139
|
+
outright rather than inheriting a provider default - CLI Claude
|
|
140
|
+
`--tools WebSearch,WebFetch`, Native `buildChatWebTools()` (web_search +
|
|
141
|
+
web_fetch only; NOT `buildClaudeServerTools`, whose `code_execution` would
|
|
142
|
+
hand a projectless chat an interpreter nobody armed), Codex exec + app-server
|
|
143
|
+
`web_search="live"|"disabled"`; Ollama advertises only its local
|
|
144
|
+
SearXNG-backed `WebSearch` / `WebFetch` pair and auto-executes that narrowed
|
|
145
|
+
pair even though Chat has no Agent AUTO toggle. `ollamaToolCallAllowed()`
|
|
146
|
+
repeats the web-only check at dispatch because a model can invent a known but
|
|
147
|
+
unadvertised tool name; never rely on `tools[]` alone as the Chat boundary.
|
|
148
|
+
Ollama Chat transcript replay must use `preserveThinking:false`: hidden
|
|
149
|
+
reasoning from an earlier offline turn can quote the old no-web system prompt
|
|
150
|
+
and override the newly armed state by recency. The latest user turn also gets
|
|
151
|
+
`ollamaChatWebReminder()` so visible historical refusals are explicitly stale.
|
|
152
|
+
The system prompt must move with the toolset -
|
|
153
|
+
`chatSystemPrompt(armed)` - or the model refuses lookups it can actually do
|
|
154
|
+
(2026-09-10: "Not in this Chat tab, I don't have web access here" while the
|
|
155
|
+
operator was asking for a search). Nothing else about the boundary moves: no
|
|
156
|
+
filesystem, no shell, no MCP, no project.
|
|
157
|
+
|
|
158
|
+
- **The strict-incognito config fence has exactly three exceptions.**
|
|
159
|
+
`INCOGNITO_SAFE_CONFIG_FIELDS` in `server/src/index.ts` lets an
|
|
160
|
+
`update_primary_config` carrying ONLY `model` / `effort` / `chatWebAccess`
|
|
161
|
+
through; every other field (`remoteEnabled` above all) still gets
|
|
162
|
+
"unavailable in strict Incognito Chat". The exception holds because those
|
|
163
|
+
three choose what the next turn spawns and nothing more - an incognito chat's
|
|
164
|
+
cwd is the private per-process `incognitoChatCwd()` dir (0700 mkdtemp under
|
|
165
|
+
the temp root - never the shared world-writable root itself, whose planted
|
|
166
|
+
CLAUDE.md / AGENTS.md / .claude/settings.json provider CLIs would load), so
|
|
167
|
+
the handler's meta write finds no meta.json to update. Widening this set means re-proving disklessness for the new field.
|
|
168
|
+
|
|
169
|
+
- **Incognito Chat must be diskless at every Arco boundary.** `incognito:true`
|
|
170
|
+
is Chat-only and cannot resume. Do not add it to `workflowCwds`, call
|
|
171
|
+
`initWorkflowStore`/`persistInitialMeta`, or let it through the Zustand
|
|
172
|
+
`partialize` jobs map. Stateless providers rebuild prior turns from
|
|
173
|
+
`WorkflowState.incognitoEvents` (not `/tmp/.arco`); streaming text is
|
|
174
|
+
coalesced there to avoid chunk-count growth. Claude CLI must receive no
|
|
175
|
+
session id (`--no-session-persistence`), ordinary Codex Chat uses `exec --ephemeral`,
|
|
176
|
+
and Computer alone uses verified app-server `thread/start {ephemeral:true}`
|
|
177
|
+
(reject resume or a non-ephemeral/pathful response before inference),
|
|
178
|
+
must use Native. `server/logger.ts` suppresses the whole incognito
|
|
179
|
+
async tree plus any delayed line carrying its workflow/worker id; CLI stderr
|
|
180
|
+
forwarding, notifications, remote reporting, and the durable PID registry
|
|
181
|
+
are also disabled. Claude framing/history rides stdin, never argv or an
|
|
182
|
+
append-system-prompt temp file. Cursor has no ephemeral-session switch and
|
|
183
|
+
llama.cpp has an unavoidable shared `~/.arco/llamacpp.log`; both are
|
|
184
|
+
rejected rather than given a misleading privacy label. The protocol fence
|
|
185
|
+
rejects attachments, skills, primitives, and all non-chat workbench actions.
|
|
186
|
+
On the last observer disconnect, a 10-second reconnect grace ends in
|
|
187
|
+
`handleRemoveWorkflow`, which kills workers and drops transcript memory.
|
|
188
|
+
"Incognito" describes Arco's persistence; remote API providers retain
|
|
189
|
+
requests under their own policies.
|
|
190
|
+
|
|
191
|
+
- Workers inherit `cwd` from the workflow.
|
|
192
|
+
- `kill()` in every provider snapshots `wasRunning` BEFORE mutating status, then emits a synthetic `'error'` so `WorkerManager`'s promise resolves. Don't regress - cancelled workers will otherwise hang the workflow busy forever.
|
|
193
|
+
- `WorkerConfig.sandbox?: 'read-only' | 'workspace-write' | 'danger-full-access'` (in `shared/src/protocol/workflows.ts`) gates Codex sandbox mode. `codex.ts:buildArgs` prefers `config.sandbox`, falls back to `skipPermissions ? 'danger-full-access' : 'workspace-write'`. Other providers ignore. Claude reviewers still gate via `READ_ONLY_CLAUDE_TOOLS`.
|
|
194
|
+
- **Codex resume drops sandbox flags.** `codex exec resume` doesn't accept `--color`, `-s <mode>`, `-C <cwd>`, or `--add-dir`. `buildArgs` branches on `isResume` and drops them. Sandbox maps to `--full-auto` (workspace-write) or `--dangerously-bypass-approvals-and-sandbox` (danger-full-access). `cwd` rides on `spawn({ cwd })`. `-c` overrides (`reasoning_effort`, `model_context_window`, chat `web_search`) are shared by both sides; `--ephemeral` and the chat `--ignore-user-config` pair are exec-only. Don't add new flags to the resume path without checking which side accepts them.
|
|
195
|
+
- **Codex placeholder UUID reconciliation is mandatory.** First-turn Codex doesn't have a thread_id until the `thread.started` event fires; Arco mints a placeholder UUID for `meta.cliSessions[]` and reconciles it in place via `reconcileLatestCliSession()` after the real id arrives. Without this, the next resume fails with "no rollout found."
|
|
196
|
+
- **Session rotation (handoff/spawn) MUST call `startSessionWatcher` in every path** - both pre-minted (`initialSessionId`) and async-discovered (`onSessionDiscovered`) branches. The watcher's internal dispose-then-start makes repeated calls safe. Missing this pins the watcher to the archived JSONL; new writes never become `session_entry` events and finalized assistants vanish from chat on `primary_complete`.
|
|
197
|
+
- **Concurrent-writer guard**: JSONL watcher detects entries with `entrypoint !== 'sdk-cli'` (a native `claude --resume` terminal touching the same session), emits debounced `system_notice` (30s window), and `handleUserMessage` refuses to start a new turn within 60s of the last foreign write. Contaminated sessions recover via Handoff, not in-place. Watcher starts with `byteLength` offset so past touches don't retrigger.
|
|
198
|
+
- **API resilience** (Claude): `StreamParser` catches `{"type":"error"}` envelopes (top-level + text-delta variants) and surfaces them as `system_notice` events. `ClaudeWorkerProcess` retries on pre-result hard exits with 15s/30s/60s backoff, up to 3 attempts, reusing the same session-resume id (idempotent - the prompt never reached the API on pre-result exit). `kill()` clears the retry timer. Don't retry inside the CLI's internal retry window - gate is "exited non-zero without result," not mid-stream.
|
|
199
|
+
- **Ultracode result-coalescing is load-bearing - under `config.ultracode`, the turn settles on PROCESS EXIT, not the first `result` event.** An ultracode turn runs the harness WorkflowTool's subagent fleet in the **background**, so one `claude -p` process emits **two `result` events**: an early "workflow launched" ack, then the real synthesis when the fleet finishes (the process exits 0 only after the last). WorkerManager settles on the FIRST `result` (its `settled` flag), so without intervention the operator gets the ack and the synthesis is dropped. Fix, gated on the flag, in `claude.ts`: `parser.on('result')` does NOT emit under ultracode - it HOLDS the result in `_heldResult` (emitting a superseded prior as an `[ultracode] workflow checkpoint` progress `system_notice`); the `exit` handler FLUSHES the last held result as the canonical `result`. **Don't move the finalize back onto the first `result`, and don't drop the exit-flush** - either regresses to the ack-as-answer bug. Don't ungate it either: normal CLI turns emit exactly one `result` then exit, and must stay byte-identical (they never hit the hold path). The flush fires on ANY exit when a held result exists (so a workflow that crashed mid-flight surfaces what it has rather than hanging the turn busy). The activity probe is safe for the long quiet gap: its silent-exit killer only fires on `!alive` past a grace window, never on an alive-but-quiet process, and the exit-flush settles the worker before the probe's next tick. See the Claude and Ultracode sections in `docs/PROVIDERS.md`.
|
|
200
|
+
- **The ultracode FLEET watcher is read-only transient telemetry - `ultracode_fleet_progress` is NEVER persisted.** `server/src/ultracodeFleetWatcher.ts` polls the CLI WorkflowTool's background subagent transcripts (`<sessionId>/subagents/workflows/wf_*/…`) and emits a per-turn snapshot via `broadcastTransient` - it replaces the prior in place (like `context_usage`), so it never lands in events.jsonl. Turn-scoped (baselines pre-existing `wf_*` dirs so only this turn's runs count), started only when `ultracode && wf.primarySessionId`, torn down in the settle `finally`. It never writes run dirs and never steers (four-question test). Don't document it as an events.jsonl record and don't add a persist path.
|
|
201
|
+
- **Auth-expired notices use a `[AUTH:<provider>]` content sentinel.** `ClaudeWorkerProcess` special-cases `authentication_error` in the `stream_error` handler (hard stop - does NOT set `_lastTransientError`, retrying doesn't refresh tokens). Cursor ACP is stranger: its long-lived process answers with ordinary assistant text `Please sign in to continue`, so `CursorAcpTurn` holds only that short candidate prefix, recognizes the exact settled response, emits `[AUTH:cursor]`, and retires the cached worker. This retirement is load-bearing - the auth-status poll reads `~/.config/cursor/auth.json` fresh but an already-running ACP child keeps its old auth state and binary. `ChatMessage` detects the prefix via `parseAuthNotice` and renders `AuthReloginNotice` instead of the italic system line; inline **RE-LOGIN** hits `/api/auth-login?provider=<name>`, whose router allowlist must include every supported sentinel provider (especially `cursor`, or it silently falls back to Claude). The same sentinel is emitted client-side by `TerminalInput`'s TUI-only slash-command guard (`/login`, `/logout`). Keep the emitters, parser allowlist, and HTTP router in sync.
|
|
202
|
+
- **TUI-only slash commands are intercepted client-side.** `TerminalInput.handleSubmit` checks the first token against `TUI_ONLY_SLASH_COMMANDS` (18 Claude Code TUI commands: login/logout/context/clear/model/config/help/compact/cost/status/doctor/memory/agents/permissions/init/ide/bug/release-notes). Match → drop a local system message instead of sending. Arco runs `claude -p` so these never reach the interactive dispatcher; without the guard they hit the API as literal prompts (and expired `/login` attempts come back as 401s). Toolbox entries pass through - names don't collide.
|
|
203
|
+
- **Claude effort levels use doc overrides on top of `/v1/models`.** The live Anthropic catalog can lag newly-published model behavior; on 2026-05-30 it reported Opus 4.8 without `xhigh` while the current API and Claude Code docs list `low/medium/high/xhigh/max`. `effortsForModel()` unions live catalog levels with `CLAUDE_MODEL_EFFORTS` for known Claude IDs so pickers match the documented surface. Fable 5 / Mythos 5 and Opus 4.7/4.8 are adaptive-thinking models with `low/medium/high/xhigh/max`; keep 4.6/Sonnet 4.6 at `low/medium/high/max` (no `xhigh`). `ultracode` is intentionally not in `EffortLevel`: it is a Claude Code session setting (`xhigh` plus dynamic workflow permission), not an API effort value.
|
|
204
|
+
- **ARG_MAX overflow on `--append-system-prompt`** (Claude). Long appendSystemPrompts can push argv past Linux's per-arg limit (~128 KB); the CLI `E2BIG`s the spawn. Mitigation in claude.ts: above `APPEND_SP_ARG_MAX` (64 KB) it writes the value to `/tmp/arco-prompts/append-sp-<id>-<pid>.txt` and passes it via the **separate** `--append-system-prompt-file` flag (a documented peer of `--append-system-prompt` in the CLI's bare help) - not the same flag with a path. If the tmpfile write fails it falls back to inline `--append-system-prompt`. Tmpfiles are cleaned up on settle and on server exit.
|
|
205
|
+
- **A CLI that is installed but crashing must NOT collapse into "not installed" - `probeVersion` returns `'unknown'` (absent, ENOENT) vs `'broken'` (present, non-zero exit), and the PROVIDERS popover hides only the former.** 2026-09-03: the popover's own codex update command (`npm install -g @openai/codex@latest`, `capabilities.ts` `UPDATE_COMMAND`) silently skipped the 129 MB `@openai/codex-linux-x64` platform binary - it's an **optional** dependency, so npm exited 0 and reported success - leaving a launcher that threw `Missing optional dependency` on every invocation. `probeVersion` caught the throw and returned `'unknown'`, the popover's `version === 'unknown'` filter dropped the row, and CODEX vanished from the UI entirely: no error, no version, nothing to click. Auth compounded it - `getCodexAuthStatus` shells `codex login status`, so every profile reported logged-out despite intact `auth.json` files, sending the operator after a credential problem that did not exist. Three invariants: (1) keep the absent/broken distinction in `probeVersion` - collapsing them is what made the failure invisible; (2) `runCliUpdate` must not infer success from the version string merely *changing* (`'unknown' !== '0.153.1'` read as `updated: true` and rendered `→ vunknown`) - a post-update probe that can't report a version is a **failure**, and `probeFailureReason` re-runs the binary to surface its first `Error:` line; (3) an update failure is sticky in the popover (it survives the 6 s auto-clear) - auto-dismissing the only line that explains the breakage is how this stayed unexplained. Note the recovery trap: capabilities re-probe only at boot and every 4 h (`index.ts periodicCapabilityProbe`), and the sole manual re-probe is clicking the provider row - which is hidden while broken, so a service restart was the only way out.
|
|
206
|
+
- **Provider updates resolve an installable version BEFORE installing - `@latest` is not automatically installable.** `npmPlatformResolve.ts` (`resolveInstallableVersion`, called from `runCliUpdate`) asks the registry whether the `latest` wrapper's **self-published** platform build exists for this `platform-arch` and, if it doesn't, walks back to the newest version that has one and reports a `notice`. This closes the 2026-09-03 / 2026-09-04 codex breakage at the cause rather than after the fact. The cause is a **publish race**, which is why it recurs: upstream moves the `latest` dist-tag when the wrapper is published and the six platform tarballs land separately. Observed directly on 2026-09-04 - at 19:12 local `@openai/codex@0.153.3` was `latest` with no `0.153.3-linux-x64` in the registry (the `linux-x64` dist-tag still read `0.153.2`); by 19:35 the build had appeared and the identical install succeeded. Anyone clicking update inside that window gets a broken codex; clicking again later silently fixes it. Three invariants: (1) **the `ownPackage` narrowing in `findPlatformDep` is load-bearing** - some CLIs optionally depend on third-party platform packages and run fine without them. Resolve only a platform build published by the CLI package itself; do not downgrade a working CLI based on an unrelated optional dependency. (2) **Never infer success from npm's exit code** - a skipped optional dep exits 0; success is "the binary runs afterwards," which is why `runCliUpdate` still probes and still keeps the post-flight `--force` retry for the case where npm skips a build that *does* exist. (3) **A walk-back is a downgrade, not a fix** - it is capped at `MAX_WALK_BACK` (25) so a package that genuinely stopped shipping this platform fails loudly instead of silently installing something ancient, and the operator-facing notice says to re-run once upstream finishes publishing. Registry lookups are pure HTTP against `registry.npmjs.org`; the abbreviated packument (~4 MB for codex) is fetched **only** on the walk-back path, and any registry failure returns null so the updater falls back to plain `@latest` rather than blocking an update on a network blip. Parser shape pinned by `npmPlatformResolve.test.ts`.
|
|
207
|
+
- **Multiple Codex CLI installs can coexist.** Arco invokes bare `codex` from `PATH`, so path order determines which binary runs. The provider updater installs through npm global; after an update, confirm that `codex` still resolves to the intended executable before removing or reordering installs.
|
|
208
|
+
|
|
209
|
+
## Claude Native transport
|
|
210
|
+
|
|
211
|
+
- **Cache discipline is load-bearing.** The forced first system block (`"You are Claude Code, ..."`) is byte-stable across every Native tab; the appendSystemPrompt block is byte-stable across iterations within a turn. Never insert per-turn-variable content (timestamps, request IDs, operator name) above the cache marker - that invalidates every prior turn's cache on every tab. System-block ordering is fixed (canonical list in the `buildSystemBlocks` header comment: FORCED_FIRST_BLOCK → north-star → cluster plan → role → efficiency/progress doctrine → delegation contract → sandbox nudge → env note → turn discipline → workspace facts → appendSystemPrompt → systemPrompt → output style; a Chat tab short-circuits to FORCED_FIRST_BLOCK → chat prompt); reordering on a deploy invalidates every active tab's cache. The hardcoded `FORCED_FIRST_BLOCK` constant in `worker.ts` is the single source of truth - operator overrides were intentionally rejected (§14 Q4). On the OAuth subscription path, requests and diagnostics must include the identity block; omitting it can produce a rate-limit error.
|
|
212
|
+
- **Stateless Native helpers live in siblings, re-exported from `worker.ts` (P0 carve-out).** To stay under the 2000-line cap, the pure leaf helpers were moved to `modelParams.ts` (token/thinking/effort/ctx), `contentBlocks.ts` (content-block types + image/message/server-tool/context-mgmt/strip-thinking helpers), and `workerHelpers.ts` (`replayMessagesFromEvents`, `mergeUsage`, `truncateOutput`, `planParserAdvisories`, `sleepWithSignal`). `worker.ts` re-exports the previously-public names so `from './worker.js'` imports (including the test files) keep working - **add new pure helpers to the sibling modules, not back into `worker.ts`**; only stateful class logic belongs there. The `FORCED_FIRST_BLOCK` constant stays in `worker.ts` (single source of truth, see cache-discipline bullet above).
|
|
213
|
+
- **Replay-on-restart is the canonical recovery path.** On `ensureStarted` the worker tail-reads `events.jsonl` and reconstructs `messages[]` from `user_message_echo` + `primary_text` entries. Tool_use / tool_result events are NOT replayed (the model gets a clean USER/ASSISTANT view; reconstructing tool ids with full fidelity is deferred - §14 Q7). Don't add a periodic snapshot path without first measuring whether replay cost actually bites. The reconstruction logs to stderr under `[claude-native:<wfid>]`; that's the forensic surface.
|
|
214
|
+
- **`replayMessagesFromEvents` pair-flushes - solo user / solo assistant entries are dropped.** `flushPair()` only emits a (user, assistant) tuple when BOTH `userBuf` and `assistantBuf` are non-empty. An in-flight `user_message_echo` with no `primary_complete` yet, or an orphan `primary_text` from a reflection turn that landed in events.jsonl without a preceding echo, both fall on the floor. Reason: a trailing user-only entry would duplicate against the next operator prompt's fresh user push; an orphan assistant would invert into the `[assistant, user, …]` shape Anthropic rejects. Don't "fix" the asymmetry by emitting partial pairs.
|
|
215
|
+
- **`replayMessagesFromEvents` resets `messages[]` on every successful `handoff_artifact_ready`.** Anything before the most recent successful handoff event is discarded; only the post-handoff seed turn and what follows seeds the replayed worker. This is what makes Handoff a true rotation rather than an additive seed prompt. Don't change the reset to "merge" semantics - the rotated-out session's tool history would re-enter the worker's view and break the operator's mental model of "handoff is a fresh start."
|
|
216
|
+
- **Server compaction block must be resent verbatim** (`compact_20260112`, opt-in `claudeNativeCompact`). The response's `{type:'compaction', content}` block stays in the assistant message in stream order and goes back on every later request - the API ignores everything before it, and dropping it (the pre-2026-09-25 behaviour) re-compacted every round. Never render it as assistant text. Once one is in history the `compact-2026-01-12` beta rides every request even with the toggle off. It is not a history edit under preserved thinking (the prefix check restarts at the block), but never re-insert earlier assistant turns with their thinking after it. Replay is text-only, so a restart may re-compact once.
|
|
217
|
+
- **Server Fold (`context_folded {engine:'server'}`, `compact-2026-09-04`) keeps the prefix FROZEN and persists the RAW kept turns - both deliberate exceptions.** Kept thinking stays valid only while `system` + `tools` match the requests that produced it, so when turns are kept `serverFoldInPlace` does NOT call `resetPrefixFreeze` (Fold/compact do); instead it marks `deliveredSystem = frozenSystem` and rebuilds `activeToolKeys` from the frozen base + tool changes surviving in the tail (`activeToolKeysAfterServerFold`), so system/tool deltas that lived in the summarized range are restated after the NEXT user turn - never between the block and the kept turns (that breaks their thinking). With zero kept turns it resets the freeze like Fold. And unlike `keptTail`, `keptMessages` is the raw message array (thinking signatures, tool_use/tool_result pairs): the API requires kept turns unchanged, so live AND replay both consume that same persisted array via `serverFoldSeed` (byte-identity pinned by `serverFold.test.ts`); the 256 KB cap keeps it out of the way of the 1 MB exact-replay window. The signed block must go back exactly as returned and FIRST in `messages` - never re-project, re-render, or scrub it, and don't put summarized messages in front of it (`compaction_block_misplaced`). The cut must fall before an operator user message (not a tool_result message) so no tool call straddles it and the first kept role differs from the last summarized one.
|
|
218
|
+
- **Operator in-place compact (`native_compacted`) is replay-load-bearing - the live seed and the replay seed MUST be the same helper.** `worker.compactInPlace()` runs one summarization round, replaces `messages[]` with `compactSummarySeed(summary, keptTail)`, and persists a `native_compacted { summary, keptTail? }` event. On restart, `buildMessagesFromReplayEvents` and `summarizeClaudeNativePriorTurns` reset at that marker (same semantics as `handoff_artifact_ready`) and re-seed via the **same** `compactSummarySeed` - so a live worker and a replayed worker land on byte-identical history. If you fork the seed wording between the two sites, the prompt cache splits and a transcript diff shows phantom drift across a reload. `compactSummarySeed` lives in `resumeSummary.ts` (not the worker) precisely so both sites share it; don't inline a copy.
|
|
219
|
+
- **Manual COMPACT must cold-acquire Native workers.** A restarted service, rehydrated tab, or post-handoff disposal can leave `workersByWorkflow` empty even though `events.jsonl` has completed turns to compact. `compactClaudeNativeWorker(workflowId, config)` must acquire a worker when needed and let `ensureStarted()` replay before `compactInPlace()` runs. Do not regress to a map-only lookup that tells the operator to "run a turn first" for an existing Native transcript.
|
|
220
|
+
- **Native `inFlight` is per-provider-round, not durable busy state.** `streamOneRound()` installs a fresh `AbortController` for each Anthropic `messages.create`; successful turns and hard API failures MUST clear it before returning idle. `compactInPlace()` uses a non-aborted `inFlight` as the last defense against compacting during a live request, so a stale controller after a completed/terminated turn makes COMPACT falsely fail with "a turn is in flight" even though `wf.busy` and the UI are idle.
|
|
221
|
+
- **COMPACT summarizes a clean conversational projection, never raw live tool protocol.** A cancelled/interrupted Native tool loop can leave an assistant `tool_use` without the immediately-following user `tool_result` Anthropic requires. Normal turns call `pruneOrphanToolUse()` before appending the next operator prompt; `compactInPlace()` must do the same before its summary round and emit the same visible `ctx_action`. The summary request then uses `projectCompactSummaryMessages()` so even older completed `tool_use` / `tool_result` blocks are stripped before hitting `messages.create`; replay never reconstructs those protocol blocks either, and the compact summary only needs the visible user/assistant text.
|
|
222
|
+
- **Arco keep-last-N tail rides the EVENT, not the post-marker event stream.** The kept verbatim tail (last ~3 user/assistant pairs, `projectKeptTail` in `workerHelpers.ts`) consists of messages that occur BEFORE the marker, so replay (which resets at the marker) would lose them - they're persisted in `native_compacted.keptTail` and re-appended via the SAME `compactSummarySeed(summary, keptTail)` at both sites. The projection mirrors replay's own shape: it skips tool_use/tool_result/image-only/empty messages (replay never reconstructs those), collapses consecutive same-role messages to the most recent, and drops any leading assistant so the tail starts on a `user` boundary (the seed ends on an assistant ack - a leading assistant would invert the order Anthropic rejects). Don't persist raw `messages[]` (tool_use blocks) into `keptTail` and don't change the projection on only one of the two sites - the live `messages[]` and the replayed array must consume the SAME persisted `keptTail`. Byte-identity is pinned by `npm run test:resume-summary -w server` ("compact keep-tail: live seed and replay reseed are byte-identical").
|
|
223
|
+
- ** compaction takeover must always have a clear path - it can't strand.** `native_compacting` (emitted from `compactInPlace` BEFORE the summary round, once for both the manual button and the auto path) flips the client `JobState.compacting` overlay. The flag is cleared on FOUR signals so it can never stick: `native_compacted` (success), a compaction-failure `system_notice` (the no-`native_compacted` path - the empty/failed summary leaves history untouched and emits ONLY a `Compact failed` / `Compaction skipped` notice; matched by `isCompactionFailureNotice`, unit-pinned by `npm run test:compacting-notice -w client`), `primary_turn_started` (a real turn resumed), and `turn_cancelled`. Do NOT clear it on `primary_turn_ended` - the manual COMPACT path fires a transient `primary_turn_ended` right after `native_compacted`, and clearing there would wipe the post-compaction "Continue" affordance the operator hasn't clicked yet. `native_compacting` is advisory on replay (the takeover is live-only; replay never re-opens it).
|
|
224
|
+
- **Auto-continue is opt-in and goes through the normal operator path.** `nativeCompactAutoContinue` (default false) is the ONLY thing that makes `maybeAutoContinueAfterCompact` dispatch the continuance turn (`COMPACT_CONTINUE_PROMPT`) after a successful compaction - via `handleUserMessage`, so it's a real, visible turn in `events.jsonl`. Default is MANUAL (the operator clicks ▸ CONTINUE in the composer) because between-turn compaction ends the turn, so auto-continuing is autonomous continuation (CLAUDE.md autonomy fence). The auto path only fires when `ws`/`session` are in scope (the operator's connection) - the `__debug_native_auto_compact_probe` smoke passes neither, so it never auto-continues (no API spend). Both the manual (`compactHandlers`) and auto (`turnEngine`) paths call the SAME `maybeAutoContinueAfterCompact`; keep them in sync.
|
|
225
|
+
- **Between-turn auto-compaction uses the manual COMPACT path.** Provider defaults to 90% for Claude Native and Ollama, leaving 10% headroom; explicit policies take precedence. A fresh reading and ownership checks guard Native compaction, and auto-fold consumes the boundary before a second action. Claude API compaction is a separate per-tab beta and stays opt-in.
|
|
226
|
+
- **OAuth refresh races.** `proper-lockfile` serializes the read-refresh-write cycle on `~/.arco/auth.json`. The lock is **not** held across the SDK call - only across the token rewrite. Two workers refreshing simultaneously: both acquire the lock in turn, the second sees the freshly-written token from the first and skips its own refresh. Don't hold the lock across `messages.create`; you'll deadlock the second worker against a 30-second SDK request.
|
|
227
|
+
- **Anthropic SDK pins `authToken` at construction; rebuild on rotation.** `new Anthropic({ authToken })` captures the token by value - refreshing the token file on disk does NOT update an existing client. A long-lived Native worker that survived a RE-LOGIN keeps its stale token and 401s every subsequent call until the tab closes. `ClaudeNativeWorker.ensureStarted()` stamps `clientTokenObtainedAt` from `ensureLiveTokens()` and rebuilds the SDK client on mismatch (logs `tokens rotated - rebuilding Anthropic client`). The rotation path skips `discoverHooks` and the `init` emit - both are first-time-wiring concerns. Don't pin the SDK client across a token rotation; the auto-refresh path inside `ensureLiveTokens` benefits from the same rebuild.
|
|
228
|
+
- **Callback port (53692) EADDRINUSE.** When the local OAuth callback server can't bind, `oauth.ts` falls back to manual-paste mode automatically and surfaces a flag the UI shows. Don't try a different port - Anthropic's redirect URI is registered against the constant.
|
|
229
|
+
- **H10: the Native worker honors Anthropic's OWN retry timing on 429/529/overload - and with the SDK's internal retries off (`maxRetries:0`) this ladder is the ONLY backoff.** `rateLimit.ts resolveRateLimitWait` reads `retry-after` (delta-seconds or HTTP-date) first, else the soonest `anthropic-ratelimit-*-reset` RFC-3339 timestamp; `classifyRateLimit` distinguishes a genuine rate limit from an overload. When no usable header is present (mid-stream SSE errors carry none) it falls back to the fixed 15/30/60s ladder. Don't re-enable SDK `maxRetries` to "help" - you'd double the backoff and lose the header-honoring wait.
|
|
230
|
+
- **Wire fingerprint pin is deliberate, not tracked.** `claude-cli/2.1.280` today (`wireFingerprint.ts`; 2.1.75 from Pi → 2.1.257 for Fable 5.1 → 2.1.280 for Opus 5.5). Bumping is a deliberate revalidation against an observed Anthropic-side rejection - not a routine `npm update` or `claude update`. Same rule for `@anthropic-ai/sdk@^0.91.1` (verify `Anthropic({ authToken })` field name + stream-event shape on bumps).
|
|
231
|
+
- **`anthropic-dangerous-direct-browser-access` IS sent on Claude Native OAuth requests.** Current Pi sends it on the SDK `authToken` path together with `x-app: cli`; Arco follows that wire fingerprint. Older Arco docs said Pi did not send it - that was stale after re-checking `earendil-works/pi` on 2026-05-31.
|
|
232
|
+
- **Native web search/fetch are Anthropic server tools, and their response `usage` is NOT the CTX bar.** `buildToolDefs()` appends Anthropic `web_search_20260209` / `web_fetch_20260309` plus `code_execution_20260120` (required for the efficient 2026 dynamic-filtering path). The response usage fields can include internal search/fetch processing tokens from a single request; those are real billing/processing telemetry but they can be hundreds of thousands of tokens larger than the retained conversation context. Do not drive `CTX: N / window` from `response.usage` on server-tool turns. Worker code prunes completed-turn server-tool evidence / citation metadata / hidden thinking from retained Native history, then uses `messages.countTokens()` with client tools only to estimate the next-turn prompt footprint. Do not add local `WebSearch` / `WebFetch` to `tools.ts` unless the product goal changes to operator-owned search providers; that would route browsing through Arco's dispatcher instead of Claude's native server-tool path.
|
|
233
|
+
- **Never edit the LATEST assistant message - not its thinking blocks, not the blocks around them.** Anthropic freezes the last assistant message in `messages[]`: *"`thinking` or `redacted_thinking` blocks in the latest assistant message cannot be modified. These blocks must remain as they were in the original response."* This is a much wider rule than the whole-prefix binding `enforcesPreservedThinking()` gates on (Fable/Mythos 5.1) - Opus 4.8 enforces it too - so protection must be unconditional, not model-keyed. The trap: Anthropic server tools return their evidence INSIDE the same assistant message that carries the final answer, so `pruneServerToolEvidenceAfterTurn` (which deletes `server_tool_use` / `*_tool_result` blocks and appends a retained-history note) was rewriting exactly that message. It now skips the latest assistant message; mid-turn assistant messages are still prunable. **The one intentional opt-out is `scrubServerToolEvidenceOnAbort` (`protectLatestAssistant: false`)** - an aborted round leaves a partial assistant message Arco assembled from a truncated stream, and its dangling `server_tool_use` is itself a guaranteed 400, so there the edit is mandatory. Same helper, opposite requirement; `npm run test:orphan-tooluse -w server` pins the abort side and `test:append-only` pins the settled side. **Symptom when regressed (2026-09-05, workflows `1f308e4c` / `b27a3dce` on opus-4-8):** the prune logs normally, `count_tokens` 400s ~150ms later, and the tab is then dead - every subsequent turn replays the same rejected history, and COMPACT can't rescue it because `generateCompactSummary` replays that history too. REWIND / rehydrate is the escape hatch (replay never reconstructs thinking blocks). **Protecting that message is necessary but not sufficient - see the mirror invariant below.** The same rule constrains `stripTrailingThinkingBlocks`, which mutates `this.messages` in place across the whole unsent tail - it has never actually fired in production (0 occurrences in 1466 opus-4-8 turns; `display:'omitted'` rarely ends a message on thinking), so it was left alone, but it is a live source of the identical 400 if that changes.
|
|
234
|
+
- **The 400-recovery matcher must cover BOTH preserved-thinking wordings.** `isThinkingBindingError` originally matched only the signature form (*"Invalid `signature` in `thinking` block"* / *"bound to a different conversation"* / `prefix_mismatch_behavior`). The latest-assistant-message form shares none of that vocabulary, so it fell through to the fatal branch and wedged the tab instead of triggering the one-shot `stripAllThinkingBlocks` retry. Any new Anthropic wording for "you edited history we froze" belongs in that matcher - the recovery is the same either way. Relatedly, `bindingStripUsed` re-arms per turn (`runTurn`), not per worker lifetime: it exists to stop a strip-retry loop within a round (already bounded by `attempt`), and a worker that self-healed once must not spend the rest of its life unable to recover again.
|
|
235
|
+
- **Edit refuses if file wasn't Read this turn.** Mirrors Claude Code's "blind edit" footgun - operators sometimes report "the model wrote a file it never looked at" on CLI; Native enforces the discipline at the dispatcher level. Per-turn read-set is reset at the top of `runTurn`. Reads from a prior turn don't carry over.
|
|
236
|
+
- **Background Bash → KillShell registry.** `Bash(run_in_background:true)` returns a `shellId` and registers `{kill, backgrounded:true}` on the worker's per-turn shell map. Foreground Bash also registers (cleared on close) so KillShell can interrupt a stuck foreground command. The map is per-worker (not per-turn) so a background shell started in turn N is killable from turn N+5. Operator cancel + tab close also iterate the map and kill everything.
|
|
237
|
+
- **Hooks fire inside the dispatcher; they're not the steer-drain hook.** `PreToolUse` / `PostToolUse` fire around each tool call inside `dispatchTool(...)`. The steer-drain hook fires between tool-result append and the next API round-trip in the agent loop. Both can fire on the same iteration without conflict - they have separate purposes (settings.json hooks observe individual tool calls; steer drain delivers operator-typed mid-turn input).
|
|
238
|
+
- **Handoff disposes the cached worker.** After `handoff_complete`, `disposeProviderResources(workflowId)` is called which tears down the cached `ClaudeNativeWorker`. The next operator turn rebuilds the messages array from the post-handoff transcript. Don't skip this - the worker's in-memory `messages[]` array would otherwise still reference the pre-handoff thread.
|
|
239
|
+
- **Original-worker handoff may fall back to fresh-summarizer.** Native original-worker reflection can fail after a long/expensive turn when Anthropic terminates the stream (`Anthropic HTTP 0: terminated`) or the source session is otherwise degraded. `runExportContext` keeps the same handoffId/artifactName and falls back to the configured fresh summarizer when original-worker returns an error. It also enforces a bounded original-worker reflection timeout (`ARCO_HANDOFF_ORIGINAL_WORKER_TIMEOUT_MS`, default 180s, clamped 30s-600s) so a degraded old session cannot hold Handoff for minutes before the fallback path starts. This is still operator-initiated Handoff, not an autonomous second-LLM loop: the operator clicked the primitive, the fallback is visible as a system notice, and the final artifact flows through the normal `handoff_artifact_ready` / `handoff_complete` path. Client upsert must clear a prior handoff error if the same handoffId later succeeds.
|
|
240
|
+
- **`handleHandoffRequest` disposes the Native worker BEFORE the pre-warm, for every mode - not just `original-worker`.** Originally the dispose was gated on `effectiveMode === 'original-worker' && transport === 'native'` because only that path ran the reflection on the cached worker; fresh-summarizer ran the reflection on a separate CLI summarizer worker, so the cached Native worker was thought untouched. That gating was wrong: any prior operator turn that was cancelled mid-tool-dispatch (CANCEL click / RSS guard / abort mid-tool-loop) leaves the cached worker with a trailing orphan `assistant(tool_use)` in `messages[]`. Push the seed prompt on top → next `messages.create` 400s with `tool_use ids were found without tool_result blocks immediately after`. Always dispose the cached Native worker for native handoff so the seed turn boots fresh from `replayMessagesFromEvents` (which skips tool_use entries entirely).
|
|
241
|
+
- **`pruneOrphanToolUse` is the defense-in-depth backstop, called at the top of every `runTurn`.** Same orphan-trailing-`assistant(tool_use)` shape can arise outside handoff - any subsequent operator turn following a cancel-mid-tool-loop in the same worker would have hit the 400 first. The dispatcher pops any trailing assistant message whose content contains `tool_use` blocks before appending the new user message, and emits a `ctx_action { action: 'prune_orphan_tool_use', trigger: 'recovery', detail: 'unpaired tool_use ids: ...' }` for the audit trail (silent context manipulation remains behind a hard fence). Don't add mid-array pruning without an explicit reason - only the tail case is reachable from our code paths today.
|
|
242
|
+
- **The Native tool loop continues on Arco-owned pending WORK, not on `stop_reason`.** `runTurn` dispatches another round when the assistant response contains a client `tool_use` block Arco must execute, or when Anthropic returns the documented `stop_reason === 'pause_turn'` server-tool continuation. It deliberately does NOT gate on `stop_reason === 'tool_use'`. It also deliberately does NOT loop on a bare `server_tool_use` under `end_turn`: Anthropic server tools (`web_search` / `web_fetch`) execute inside the Messages API, and their result belongs in the same assistant turn unless the API explicitly pauses. Reason (2026-05-30/31, Opus 4.8): Opus 4.8 returns `stop_reason: 'end_turn'` for a response that can still contain an unexecuted client tool. Gating on stop_reason abandoned the client tool. But treating every server tool as pending caused the opposite failure: Native re-fed server-tool turns, searched repeatedly, and diverged from Claude Code's one-pass behavior on the same prompt.
|
|
243
|
+
- **(1) `tools 0B`, dies in ~6s.** A response with an unexecuted client `tool_use` alongside a `server_tool_use` (parallel `Read` + `web_search`) came back `end_turn`; gating on stop_reason broke the loop → the client tool never dispatched (orphaned → pruned by `pruneOrphanToolUse`), the search never resolved.
|
|
244
|
+
- **(2) Re-search spiral / stale-source answers.** A later workaround continued on unresolved-looking server tools under `end_turn`. That made Native over-drive web_search/web_fetch, especially when context editing had already cleared older search results. Same prompt, same model, same effort worked cleanly in the real Claude CLI; Native was the outlier. The fix is to match the documented server-tool contract: continue for client tools or `pause_turn`, otherwise let the assistant settle.
|
|
245
|
+
- **(3) Parallel tool use stays enabled.** A temporary global ban reduced duplicate reads but also disabled legitimate independent work. Keep parallel calls enabled unless a current failing test demonstrates a provider regression; do not infer a global rule from one repeated-call symptom.
|
|
246
|
+
|
|
247
|
+
Regression guards: `server/src/providers/claude-native/workerParity.test.ts` pins the pure continuation decision; `scripts/smoke/web-search-tool-loop.ts` (`npm run smoke:web-search-tool-loop`, spends real quota) covers the mixed local Read + server web_search path end-to-end.
|
|
248
|
+
- **An orphan `server_tool_use` permanently wedges a long-lived Native worker - and `pruneOrphanToolUse` must drop it, not just client `tool_use`.** A `server_tool_use` (web_search / web_fetch) pairs with its `*_tool_result` in the SAME assistant message. If a round is aborted/interrupted after the call streams but before the result does (or a `pause_turn` continuation dies on the next round), the assistant message at line 1206 is pushed with the call and no result. Anthropic then 400s `web_search tool use ... was found without a corresponding web_search_tool_result block` on EVERY later `messages.create` - and because the worker is long-lived, it never self-heals until it replays from disk (restart / Handoff-dispose / tab reopen, all of which skip tool blocks). Two-part guard: (1) `pruneOrphanToolUse` (the top-of-turn recovery pruner) detects unpaired *server* tool ids too, via the pure `orphanToolUseIds` helper in `contentBlocks.ts` - the old version filtered `type === 'tool_use'` only and walked right past the orphan; (2) every early-return path in `runTurn` (hard stream error, mid-tool abort, iteration cap) calls `scrubServerToolEvidenceOnAbort(turnMessageStart)` so the orphan is stripped on the way out, not left in `messages[]` to also break a between-turn `countTokens` / auto-compact. The normal-completion `pruneServerToolEvidenceAfterTurn` already strips all server_tool_use regardless of pairing - the bug was only that the abort paths skipped it. Do NOT narrow `pruneOrphanToolUse` back to client tools, and do NOT drop the scrub from any new early-return you add. Regression guard: `npm run test:orphan-tooluse -w server` (`orphanToolUse.test.ts` pins the pure detector AND drives both worker recovery methods against a synthetic wedged history - the inert Native constructor makes this deterministic and zero-quota, unlike `smoke:web-search-tool-loop` which can't hit the interrupt window reliably).
|
|
249
|
+
- **The mirror wedge: a `*_tool_result` whose `server_tool_use` was pruned out from under it.** A `pause_turn` splits a server-tool call from its result across TWO assistant messages - the paused message ends on the bare `server_tool_use`, the continuation opens with the `*_tool_result` carrying that id (worker.ts pushes the paused message and loops, per the resend-as-is contract). Because `pruneServerToolEvidenceAfterTurn` protects only the LATEST assistant message, it deleted the call from the paused message while the protected continuation kept the result, and Anthropic 400s the exact inverse of the orphan above: *"unexpected `tool_use_id` found in `web_search_tool_result` blocks: srvtoolu_… Each `web_search_tool_result` block must have a corresponding `server_tool_use` block before it."* Same permanence - every later `messages.create` replays it (2026-09-05, hours after the latest-assistant protection landed; FOLD / COMPACT / restart heal it because all three project history to text-only). Two-part guard, mirroring the orphan one: (1) the prune collects the `tool_use_id`s the protected message's results reference and KEEPS those `server_tool_use` blocks wherever they live - everything else still goes, including a self-contained pair in the same mid-turn message; (2) `stripDanglingServerToolResults` (`retainedContext.ts`) runs at the top of every turn next to `pruneOrphanToolUse` and removes any result block with no preceding call, emitting a `ctx_action` / `trigger:'recovery'` - a no-op on healthy history, there so no future path can wedge a worker for good. Note the asymmetry that makes this legal: a call in message N answered in message N+1 is a shape Anthropic itself produces, so pairing is checked over all PRIOR blocks, not within one message. Regression guard: `npm run test:append-only -w server` (both directions, plus the ordering case where a result precedes its call). Ids are unique per call - never write a fixture that reuses one across rounds, or the pairing rule will (correctly) treat the earlier round's call as load-bearing.
|
|
250
|
+
- **An assistant message must never END with a `thinking` block.** Anthropic 400s with `messages.N: The final block in an assistant message cannot be 'thinking'`. With interleaved thinking Opus 4.8 routinely emits a round whose last streamed block is `thinking` (it reasons after its final tool_use, then the response ends); we push `round.contentBlocks` verbatim, so that trailing thinking is a landmine - the whole history is re-validated on every resend, so a stale earlier message (`messages.15` mid-turn, 3 min into a heavy research turn) detonates a later request. `stripTrailingThinkingBlocks()` runs in the pre-request scrub path (next to `scrubEmptyTextContent`, before every `messages.create`) and drops the contiguous trailing run of thinking from every assistant message. Mid-message thinking (preceding a tool_use / text) is KEPT with signatures for reasoning continuity - only the trailing run, which the API forbids keeping anyway, goes; a pure-thinking message becomes a placeholder text block so it never strips to empty. Emits `ctx_action { action: 'strip_trailing_thinking', trigger: 'recovery' }`, which is persisted to `events.jsonl` for the audit trail - but the client (`handleServerMessage.ts`) deliberately does NOT render it as a chat `ctx-divider` (unlike the rare `prune_orphan_tool_use` / `scrub_empty_text_blocks` recoveries). It fires on most multi-round 4.8 turns, so a divider per turn is noise, not signal; the audit record in the event log is the surface, not the conversation. Don't "fix" the missing divider by re-adding it. Pure core is `stripTrailingThinkingFromContent` (exported) with deterministic unit tests: `npm run test:thinking-strip -w server`.
|
|
251
|
+
- **An empty `image` block permanently wedges a long-lived Native worker - 0-byte uploads must never become image blocks.** An empty image body can poison a long-lived worker's history and make subsequent requests fail. Three guards, all load-bearing: `/upload` rejects empty bodies with a 400 (`http/router.ts`); `buildImageBlock` returns null on a 0-byte read so the attachment falls back to the `[attached file: ...]` text ref; and `scrubEmptyTextContent` drops empty image blocks (top-level and nested in tool_result content) in the pre-request scrub pass so an already-poisoned live worker self-heals without a respawn. Replay-on-restart was never affected - it rebuilds history text-only. Don't remove any single guard on the grounds that the other two cover it: the upload check protects every consumer of `uploads/`, the builder check protects steer/spawn paths that bypass `/upload`, and the scrub is the only one that heals history that already went bad. Regression guard: `emptyImageScrub.test.ts`.
|
|
252
|
+
- **Capability lookups key on `capModel`, never on a raw alias.** The `opus` / `opus[1m]` aliases are absent from `/v1/models`, so a catalog lookup keyed on the alias returns `null` and silently disables ctx-management/compact gating - the same class of miss that once gave alias tabs `max_tokens: 8192` and a dead effort knob (Opus-5 plan). The worker resolves capabilities through `capModel` (echoed concrete id, persisted to `meta.resolvedModelId`, restored on rehydrate only while `config.model` is still an alias, falling back to the catalog alias resolution before the first echo). Static alias entries in `modelParams.ts` / `models.ts` cover turn 1 before any echo. If you add a new capability decision to the worker, route it through `capModel`, not `this.config.model`. Turn-1 shape pinned by the alias test in `workerParity.test.ts`.
|
|
253
|
+
- **The request `model:` field must be a CONCRETE id - never a family alias.** The Messages API has no alias resolution: `model: "opus"` returns `not_found_error: model: opus`. Only the Claude Code *CLI* resolves `opus` / `sonnet` / `haiku` / `opus[1m]`, client-side, before calling the API - which is why the aliases are safe on the CLI transport and fatal on Native. Dispatch now goes through `requestModel()` → `resolveClaudeAliasFromCatalog()` (newest in-family id by `created_at`, `CLAUDE_ALIAS_FALLBACK` when the catalog is cold; `ensureStarted` warms the catalog once for alias tabs). The tab's configured model stays the alias, so auto-tracking survives where it actually belongs - in the resolution, not the wire. If you add a new `messages.create` / `countTokens` call site, use `this.requestModel()`, not `this.config.model`.
|
|
254
|
+
- **A controlled `<select>` whose `value` matches no `<option>` silently renders the FIRST option - and fires no `onChange`.** This is how the alias bug stayed invisible: the creator, CONFIG, and tab-context-menu model pickers all build options from the live catalog (which excludes aliases) while their value came from stored defaults, so a tab on `opus` *displayed* "OPUS 5" everywhere, and re-picking the displayed option in CONFIG was a no-op that couldn't repair it. Creator + context menu now reconcile state to the option list on change; CONFIG renders the unmatched value as an explicit `(unlisted)` option instead of hiding it. Any new picker fed by a live catalog needs one of those two treatments - never assume the stored value is in the list.
|
|
255
|
+
- **A refusal is a 200, not an error - and never regex-detect it.** `stop_reason: 'refusal'` arrives on a successful response, so `errorClassifier` (which only sees thrown errors) can never surface it; `runTurn` branches on the stop reason, emits a `system_notice` naming `stop_details.category`/`explanation` (both nullable - guard) and a durable `primary_refusal` event. The malformed turn needs no special pruning: the per-request `scrubEmptyTextContent` / `stripTrailingThinkingBlocks` pass repairs an empty or thinking-terminated assistant message before the next `messages.create`. Do NOT add a text/regex refusal detector - server-side model judgment on content is on the wrong side of the CLAUDE.md § Non-goals fence; `stop_reason` is the structured ground truth.
|
|
256
|
+
- **Reviewers / handoff seeds always run on CLI transport.** They leave `claudeTransport` unset, the dispatcher falls through to the CLI provider. Don't thread `claudeTransport` through `handleReviewRequest` / `handleHandoffRequest` / `handleSpawnFromHere` / `runExportContext` - Native sessions are Arco-internal and the handoff destination needs a `--resume`-able CLI session on disk.
|
|
257
|
+
- **Per-tab toggle does NOT dispose a running worker.** Flipping CONFIG-tab `cli` ↔ `native` mid-turn is a no-op against the in-flight turn. The next operator turn picks up the new transport. Mirrors Codex's contract.
|
|
258
|
+
- **Plan-mode gates `Write` / `Edit`, NOT `Bash`.** EnterPlanMode flips a per-worker boolean that short-circuits the `Write` and `Edit` dispatchers. `Bash` is intentionally not gated - detecting "write intent" in arbitrary shell commands generically (sed -i, redirection, grep -l & rm pipelines, in-place git operations) would be a regex arms race with high false-positive cost. Operators relying on plan mode as a hard write barrier should rely on the surrounding sandbox or CI contract; the per-tool gate is for the *common* footgun of the model patching files before sketching the plan, not a universal write firewall. Plan-parser advisories surface from `EnterPlanMode` as part of the tool result (warnings only, never reject - model corrects on next turn).
|
|
259
|
+
- **Cross-tab `TaskOutput` is rejected.** The `tasksByTaskId` map lives on the spawning parent worker. Only the parent that called `Task` can read its child's accumulated output via `TaskOutput`; a `TaskOutput` call against a `taskId` not present in the local map returns `[error] no such task`. Map entries drop on parent dispose, so a child tab promoted to standalone (rare; operator-only) becomes unaddressable from the parent's side. Don't rebuild this as a global registry - it would let any Native worker peek at any other's children, breaking the depth-1 cap's containment story.
|
|
260
|
+
- **`Task` is depth-1 only.** Children spawn with `claudeNativeTaskDisabled: true` in WorkerConfig; the worker checks that flag at construction and `getNativeToolDefinitions({ taskDisabled: true })` drops `Task` from the tool list sent to Anthropic. The Task tool dispatcher also early-returns `[error] Task is depth-capped at 1` if the model finds another path to invoke it. Don't loosen this - the explicit non-goals forbid autonomous orchestration trees, and depth-1 is the right ceiling for the operator-visible spawn-from-here UX.
|
|
261
|
+
- **Registry MCP sessions MUST be closed on `dispose()` - no leaked stdio children (E1-Native).** The Native worker is an MCP host: it opens a long-lived `McpSession` (`connectServer`) per operator-allowed registry server and keeps the map across operator turns, reconciled at the top of `runTurn` (`reconcileMcpSessions` - open newly-allowed, close newly-removed). `dispose()` (tab close + after `handoff_complete`, via `disposeClaudeNativeWorker`) calls `closeMcpSessions()` which force-kills every child - a leaked stdio child would otherwise outlive the worker. `cancel()` deliberately does NOT close sessions (they survive an operator CANCEL by design and are torn down only on full disposal). Don't move the close into `cancel()` thinking it's "cleanup" - that would respawn every server on the next turn. If you add a new teardown path that bypasses `dispose()`, it MUST also call `closeMcpSessions()`.
|
|
262
|
+
- **The MCP dangerous-tool denylist is enforced on Native at TWO points: omission (primary) + a dispatch-time guard (defense in depth).** `buildToolDefs()` → `registryToolDefs()` includes a registry tool iff it's safe (`!classifyDangerous`) OR its bare name is in the server's operator-ticked `allowedDangerousTools`. A dangerous-unticked tool is **never added to the tool defs**, so the model never sees it (no-hidden-expansion / four-question test) - this mirrors the cluster peer-tool registration gate (advertise iff allowed). But omission alone is NOT a hard boundary: a model can emit a `tool_use` for a name it was never advertised - guessing the namespace off an advertised safe sibling (`mcp__reg-x__read_file` → `mcp__reg-x__delete_file`), or replaying one from earlier context - and the server session is open, so dispatch would execute it. So `dispatchTool` ALSO calls `isRegistryToolAllowed(config.mcpRegistryServers, key, tool)` (the exact omission rule) before routing to the session, and returns `[error] … not enabled for this tab` on a dangerous-unticked name. This gives Native the same guarantee the CLI path already has (Claude Code's `--disallowedTools` rejects at its own dispatch). Keep BOTH: do not relax the omission and rely only on the dispatch reject (the model shouldn't see capabilities it can't use), and do not drop the dispatch guard trusting omission (un-advertised names bypass it). Tool names use underscores only (`mcp__<key>__<tool>`) - Anthropic's tool-name regex rejects dotted forms, same rule as peer tools.
|
|
263
|
+
- **H20: spawned MCP children get an ALLOWLISTED env, never the host environment.** `mcp/client.ts buildSafeEnv` passes only a small safe set (`PATH`/`HOME`/`SHELL`/`USER`/`TERM`/locale `LC_*`/`TMPDIR`/`XDG_*`) PLUS the operator-declared `def.env` (the intended secret channel) - everything else is dropped. Before H20 both spawn paths merged the full `process.env`, handing every untrusted MCP server the Claude OAuth token, a GitHub PAT, and provider keys. Don't re-add `{ ...process.env }` to an MCP spawn; `mcp/safeEnv.test.ts` asserts no host secret survives the filter.
|
|
264
|
+
- **DD11b: a per-MCP-server `disabledTools` list OMITS a tool outright and DISABLE WINS - even over a dangerous-tool tick.** `isRegistryToolAllowed` returns false for a disabled name BEFORE the dangerous/ticked check, and `registryToolDefs` skips disabled tools first. The operator-declared disable-list is preserved across a config update when the caller omits it (`workflowMeta.ts`). Distinct from the dangerous-tool denylist (name-token classification) - this is an explicit per-server operator off-switch that a `classifyDangerous` tick can't override.
|
|
265
|
+
- **DD11a: plan mode hides non-readonly MCP tools (omission) AND rejects them at dispatch.** With plan mode on, `registryToolDefs(planMode=true)` OMITS every tool not provably read-only (annotation-first, verb fallback, fail-closed) - mirroring how `Write`/`Edit` short-circuit; and `isRegistryToolReadOnly` re-checks at dispatch so a model emitting an un-advertised mutating MCP name still can't run it (the same dispatch-time guarantee the CLI gets from `--disallowedTools`). Keep BOTH the omission and the dispatch guard, exactly like the dangerous-tool denylist pair above.
|
|
266
|
+
- **AskUserQuestion has no timeout.** A pending question stays open until answered or the turn is cancelled. Don't add a timer - operators step away, and a timeout-driven `[error]` returned to the model would prompt it to invent answers it doesn't have. Cancel mid-question rejects the awaiting Promise with `AbortError` so the tool result reflects the cancellation cleanly. Only one open question per worker - a second `AskUserQuestion` call returns `[error] another question is awaiting response` and the model is expected to sequence them.
|
|
267
|
+
- **Context-management beta-header strings are NOT what the catalog keys imply.** Anthropic's `/v1/models` advertises capability keys `clear_thinking_20251015`, `clear_tool_uses_20250919`, `compact_20260112`. The actual beta-header values are `context-management-2025-06-27` (umbrella for the two clear edits) and `compact-2026-01-12` (compact). Sending `clear-thinking-2025-10-15` / `clear-tool-uses-2025-09-19` directly returns 400 invalid_request_error. Source: `https://platform.claude.com/docs/en/build-with-claude/context-editing.md` + followup probe. Don't infer a beta-header string from a catalog capability key.
|
|
268
|
+
- **`clear_thinking` / `clear_tool_uses` are not enabled by default in Native.** Clearing tool results can remove search evidence and cause repeated searches or stale conclusions. Keep these edits off by default; `compact_20260112` and Arco auto-handoff remain the pressure valves. If an operator-triggered clear surface is added, `clear_thinking_20251015` must precede `clear_tool_uses_20250919` or Anthropic returns 400.
|
|
269
|
+
- **Legacy server-side compact true values migrate off.** Anthropic `compact_20260112` is not the same as Arco COMPACT: it fires inside `messages.create`, can evict the working set mid-turn, and was a root cause of slow/re-read spirals. New tabs default `claudeNativeCompact` off. Older `meta.json` files with `claudeNativeCompact: true` but no `claudeNativeCompactUserSetAt` marker are treated as legacy defaults and migrated to false on rehydrate / before the next Native turn. If the operator re-enables the CONFIG toggle after that, `update_primary_config` stamps `claudeNativeCompactUserSetAt` and the opt-in sticks.
|
|
270
|
+
- **Context-management betas are gated against the live `/v1/models` catalog.** The Native worker calls `getCachedModelCapabilities(modelId)` per request and skips unsupported betas/body fields when the cached entry returns `null` (cold-start, fetch failure) or the model entry doesn't advertise the relevant capability key. The only context-management body Arco can send today is `compact_20260112`, and only after an explicit server-side compaction opt-in; `clear_thinking` / `clear_tool_uses` remain off even if the catalog supports them. The `[claude-native:<wfid>] → messages.create … ctx_mgmt=compact` log line shows what actually went out.
|
|
271
|
+
- **`max_tokens` for adaptive thinking follows model caps, not an Arco effort table.** Adaptive thinking has no explicit budget - the model picks how much to think, and `max_tokens` bounds total output (thinking + text) **in a single response**. Flat 8K silently truncated mid-thinking on heavy turns, and 32K/64K were still Arco-only guesses. Current model metadata advertises **128K** output for Fable 5 / Mythos 5, Opus 4.6/4.7/4.8, and Sonnet 5, and **64K** for Sonnet 4.6, so `chooseMaxTokens()` mirrors those model-family caps. We deliberately do NOT auto-continue a `max_tokens` truncation - a response cut mid-`thinking` leaves an incomplete thinking block that isn't cleanly resumable (same family as the trailing-thinking landmine above).
|
|
272
|
+
- **Task children always spawn on the Native transport - never reintroduce a conditional.** The Task tool only exists on Native workers, so a Task child's parent is Native by construction. The old spawn code (`index.ts`) pinned `claudeTransport: 'native'` only when the parent tab carried an *explicit* per-tab override; tabs riding the settings cascade sent `undefined`, and provider selection (`providers/index.ts`, strict `=== 'native'`) dropped those children onto the per-turn CLI - where they failed closed quickly (`Not logged in · Please run /login` became the tool_result) and the parent silently planned around dead delegations. Pin each Task child to the parent's Native transport so a settings-cascade value cannot send the child through an unavailable CLI path.
|
|
273
|
+
- **The Native system prompt carries a standing turn-discipline block - don't remove it as "prompt bloat."** The forced first block is only the one-line Claude Code identity; the real CLI ships extensive turn-completion doctrine that Native historically lacked, which is why a model could checkpoint mid-task ("Continuing now." → end_turn → idle) where Claude Code would keep working. `buildSystemBlocks` appends the doctrine after the env note and before operator prompts: keep working until done or blocked, never end a turn on a status update/promise, report failed Task delegations explicitly. Cache-stable, unconditional, no cache breakpoint of its own.
|
|
274
|
+
- **Adaptive-thinking display defaults to `omitted` - a long Fable/Opus think is invisible by design.** `buildThinkingParams` sends `thinking: {type: 'adaptive', display: 'omitted'}` (Claude Code parity), so during an adaptive-thinking stretch the SSE stream carries only `ping` events - nothing bumps `lastPrimaryEventAt` and the client's 30s stuck banner fires on a perfectly healthy worker (a long adaptive-thinking stretch can be legitimately silent for minutes). The per-tab CONFIG `THINKING VISIBILITY` picker (`claudeNativeThinkingDisplay`, `'omitted' | 'summarized'`) flips to `summarized`, streaming thinking deltas into the Activity tab (`primary_thinking` rows) which also refresh the stuck clock. The stream pipeline (`thinking_delta` → `emit('thinking')` → `primary_thinking`) already existed for budget-thinking models - don't "optimize" it away for adaptive ones. Primitives (reviewers / handoff seeds / DOCS / GIT) leave the field unset ⇒ omitted, mirroring outputStyle's forced `'normal'`.
|
|
275
|
+
- **Interleaved-thinking beta is skipped for adaptive-thinking models by default.** Current Pi comments that adaptive-thinking models have interleaved thinking built in, so it appends `interleaved-thinking-2025-05-14` only for non-adaptive Anthropic thinking paths. Arco mirrors that by default. The CONFIG tab has a Native-only debug toggle (`claudeNativeForceInterleavedThinkingBeta`) that forces the legacy beta anyway on the next turn for A/B testing if a future model starts repeating searches or missing tool-result evidence. Keep the default off unless a fresh failing transcript justifies the experiment.
|
|
276
|
+
- **Image attachments build proper content blocks.** `buildUserMessageContent` reads `.png/.jpg/.jpeg/.gif/.webp` files and base64-encodes them into Anthropic image content blocks; non-image attachments fold to `[attached file: <path>]` text refs (matches exec-mode codex behavior). Anthropic supports png/jpeg/gif/webp via base64; up to 5 MB per image, up to 20 images per request. **Replay-after-restart limitation:** `replayMessagesFromEvents` reconstructs from `user_message_echo` text only; past-turn images aren't re-attached on resume because attachment paths aren't persisted on the echo event. Lower-priority follow-up.
|
|
277
|
+
- **Tool-loop iteration cap is a runaway-loop safety net, not an expected workload boundary.** Default `MAX_TOOL_TURNS = 1000` (override via `ARCO_CLAUDE_NATIVE_MAX_TOOL_TURNS` up to 10000). CLI is unbounded; the cap exists purely to catch a stuck model burning tokens indefinitely on a multi-tab Arco. Real workloads top out in the low hundreds; if you ever see this fire on a legitimate task, the cap should go away entirely.
|
|
278
|
+
- **The §2.3 budget meter (`context_budget`) reads against the EFFECTIVE window, not the raw one.** `contextBudget.ts` computes `pct = usedTokens / (windowSize − reservedOutput)` - the reserved output tokens (`chooseMaxTokens`) are unusable for input, so a percent against the raw window under-reports how close the prompt is to the wall the API enforces. Pure + LLM-free (the worker passes three ground-truth numbers: `lastPromptTokens`, `KNOWN_CTX`, `chooseMaxTokens`). This meter - NOT the CTX bar's `context_usage` - is the signal the Fold/auto-fold trigger reads. Emitted alongside every `primary_complete`; transient (derived per turn, not persisted).
|
|
279
|
+
- **§2.1 Fold (`context_folded`) is a deterministic in-place trim - and like COMPACT it MUST re-seed from the SAME helper at the live and replay sites.** `foldClaudeNativeWorker` replaces a mid-history prefix with a deterministic `foldDigest` (NO model call - task / files / cmds / searches / errors / recent-asks / open-todos extracted from the folded prefix + the live todo list) plus a verbatim token-bounded tail, persists `context_folded { summary, keptTail }`, and continues the SAME session. Replay resets at that marker and re-seeds via `compactSummarySeed(summary, keptTail)` - the exact dual-site byte-identity rule as `native_compacted` (don't fork the wording between sites). It is a DISTINCT event from `native_compacted` so the UI/transcript can tell an instant deterministic Fold from an LLM `/compact`. Manual via the composer FOLD button (`fold_workflow`, idle + Native-gated); auto via the per-tab `autoFold` config (default OFF, set through `update_primary_config`) whose `foldAt` sits BELOW `autoHandoff.warnAt` so the cheap Fold is tried before a handoff is recommended. Anti-thrash: a fold whose `byteDelta < MIN_EFFECTIVE_FOLD_BYTES` increments `foldIneffectiveCount`; ≥2 ineffective folds (`MAX_INEFFECTIVE_FOLDS`) stop auto-fold.
|
|
280
|
+
- **`tool_evicted` (§2.2 aggregate spill) is DISTINCT from `tool_filtered` (per-pack tool-result trim) - don't conflate them.** `toolResultEviction.planTurnSpill` fires only when a turn's SUMMED tool-result token cost exceeds the turn budget, then replaces the largest results with a semantic 1-liner receipt (`[Bash] npm test → exit 0 · 47 lines`) largest-first until the retained sum is back under budget. Operator-armed via the `ARCO_TOOL_EVICT` env var (`toolEvictEnabled()` - `on`/`1`/`true`; a per-tab CONFIG toggle is the planned layer on top of this floor). Cache-safe: rewrites only the just-finished turn's results before they form a cache breakpoint. The cross-turn `planTailEviction` (which DOES rewrite prior turns - a deliberate cache break) runs ONLY inside the §2.1 Fold path. Both gzip the raw output to `rawArtifactPath` (fully reversible), same convention as `tool_filtered`.
|
|
281
|
+
- **§4.1 tool posture filters `buildToolDefs()` to a DETERMINISTIC bundle; `toolPosture.ts` is the single source of truth (clusterEfficiency.ts pattern).** `full` (default) is a no-op (byte-identical tab). `coding`/`review`/`chat` keep a curated CORE set - but tools OUTSIDE the known universe (operator-opted-in `mcp__*` / `peer_*` / `ctx_*` dynamic tools) ALWAYS pass through: a posture must never silently strip an explicit operator opt-in. Two guards: a non-empty fallback (a bundle that would empty the set falls back to `full` + logs, so a turn never bricks on zero tools) and `scrubCrossRefs` (drops "X is still available" clauses in surviving descriptions that name a now-removed tool). Session-local on `WorkflowState` (NEVER meta.json - a reload returns to `full`), but the pick IS broadcast/persisted in events.jsonl via `tool_posture_set` for review. Flipping posture re-breaks the cached `tools[]` prefix once, then re-warms. Native-only; `set_tool_posture` takes effect next turn.
|
|
282
|
+
- **H50 fuzzy Edit apply NEVER writes back the model's drifted `old_string` - it splices the file's ACTUAL bytes.** `editApply.ts` runs an exact-first chain (`exact` → `escape-drift` → `trailing-ws` → `indent`); each fuzzy strategy must be UNAMBIGUOUS (exactly one match) unless `replace_all`, and the splice replaces the matched region's real bytes (so a one-space / re-indent / over-escaped-`\n` drift applies cleanly instead of returning "old_string not found" and burning a turn). On total no-match it returns a "closest lines" hint so the model corrects without re-Reading. MultiEdit/batch is out of scope. Don't let a fuzzy strategy write the drifted string - that would corrupt the file with the model's mis-remembered whitespace.
|
|
283
|
+
- **H54 workspace facts are CACHE-STABLE - probed ONCE at worker start, with NO live dirty-status.** `workspaceFacts.ts` detects the project's real verify/build/test commands + package manager + dev runner deterministically (lockfiles + package.json scripts + Makefile targets + ecosystem markers; no model call) and folds them into a `cache_control`'d system block. Git branch is captured ONCE; live `git status` dirtiness is deliberately EXCLUDED because it flips every turn and would break the prefix cache (§ cache discipline above). `primaryVerify` also seeds Handoff/Spawn docs. Any signal you add here must stay stable across a turn or it cache-busts every request.
|
|
284
|
+
- **H47 sensitive-path write floor gates Write/Edit to credential / VCS / key paths on an explicit operator OK - even outside plan mode.** `isSensitiveWritePath` matches `.env` / `.env.*`, `id_rsa`/`id_ed25519`/etc., `*.pem`, and any path component `.git` / `.ssh` (a plain `.gitignore` file does NOT match - it's a file, not the `.git` dir). The gate reuses `AskUserQuestion` (no parallel approval system) and is FAIL-CLOSED - a non-Native caller / no approval channel REFUSES the write rather than allowing it. It's a floor (model-proposes / operator-one-clicks / reversible), not a tiered policy.
|
|
285
|
+
- **DD2 Bash output NEVER kills on the cap - it spills the COMPLETE output to a tempfile and keeps a bounded RAM tail.** `outputAccumulator.ts` decodes with a streaming `TextDecoder` (UTF-8 chars don't straddle pipe-chunk boundaries → no mojibake), keeps a bounded tail in RAM, and once total output exceeds the cap spills the full stream from byte 0 to a tempfile the model can re-read. The spill sink is INJECTED (the bash tool wires a real tempfile; tests wire an in-memory sink) so the accumulator does no I/O itself. Don't restore a kill-on-cap path - a truncated-and-killed command loses the very tail (compiler/test errors land at the end) the operator and model need.
|
|
286
|
+
- **DD3: Native Write/Edit serialize per real file path through a MODULE-LEVEL mutation queue - the fix for silent lost writes between cluster members on one cwd.** `file-mutation-queue.ts` keys `withFileMutationLock` by `realpath()` (symlink aliases collapse to one queue), and the queue `Map` is module-level so every Native worker in the process (all members of one cluster) serializes against each other, not just a worker against itself - distinct files still run in parallel. The enqueue critical section (async `realpath` + tail read/write) is itself serialized via `registrationTail` to close a registration race for a brand-new path. Emits `file_mutation_queued` ONLY when a write actually waited (its presence in events.jsonl IS the contention signal). NOT proper-lockfile (that's cross-process; DD3 is in-process - CLI claude edits in a child and is out of scope).
|
|
287
|
+
- **H62: a Write after only a PARTIAL Read of the file this turn surfaces a non-blocking warning (cluster-correctness).** A `Write` replaces the whole file; if the model Read only a slice (`offset`/`limit`) it never saw the tail, and the write silently destroys the unseen lines. The worker's `partialReadSet` (paths Read with offset/limit this turn; a later FULL Read of the same path clears it) drives a warning note on the tool result + a `tool_gate_triggered` event - NOT a gate (a wholesale rewrite is sometimes intended). `Edit` is exempt (targeted splice). Reset per turn alongside `readSet`.
|
|
288
|
+
- **H30: a Task child inherits the parent's `outputStyle` - thread it through `runPrimaryTurn`, NOT `derivePrimaryConfig`.** `derivePrimaryConfig` drops `outputStyle`, so the child silently ran `normal` regardless of the parent's OUTPUT STYLE pick until the child turn passed `outputStyle: parent.config.outputStyle` explicitly. The Task tool description also instructs the child to END with a verifiable self-report (files changed / verify commands + outcome / anything undone) so the parent can trust the result without re-deriving it.
|
|
289
|
+
- **H9 in-turn tool-loop guard (`toolLoopGuard.ts`, Native) is warnings-only by default; hard-stop is opt-in.** Two per-turn signals (reset at `primary_turn_started`): identical-repeat (same `tool`+`argsHash` N×, higher threshold - paging/polling is legitimate) and no-progress (same `tool`+`argsHash`+normalized `outputHash` - the model re-calls on a byte-identical result, lower threshold). Default `warn` emits a `tool_loop_warning` + `system_notice`; `ARCO_TOOL_LOOP_GUARD=stop` aborts the loop on first trip; `off` disables detection. Event metadata is `{toolName, argsHash}` ONLY - never raw args (secrets / large pastes). Sibling of the cross-turn §3.1 stuck breaker (see § Worker safety) - the two compose: H9 catches a tight same-turn spin in a few iterations, §3.1 catches a worker failing the same way across turns.
|
|
290
|
+
- **H8 aggregate `@`-ref budget gate (`contextRefs.ts`, all providers) soft-warns at ~25% and HARD-REFUSES any ref past ~50% of the window.** The per-ref 64 KB cap bounds ONE ref; H8 sums estimated tokens across every `@file:` / `@diff` / `@git` ref in a turn and, once the running aggregate would cross the hard ceiling, refuses that ref AND every ref after it - so a stack of pastes can't bury the operator's actual instruction. Conservative default window (200k) for unknown models so the gate still bites. Runs at the send path in `handleUserMessage`, not in a provider - so it's transport-agnostic.
|
|
291
|
+
|
|
292
|
+
- **The Native request prefix is FROZEN per worker and only ever extended.** Claude Fable 5.1 binds every thinking block's signature to the top-level `system`, the name-sorted `tools` set, and every earlier message; editing any of them invalidates every later block (`drop_block` degradation applies when the request opts in - Arco opts in). `resolvePrefixForRequest()` snapshots `system` + `tools` on the worker's FIRST `messages.create` and puts that snapshot on the wire forever after. `buildSystemBlocks()` / `buildToolDefs()` still run per request, but their output is DIFFED (`appendOnlyPrefix.ts`), not sent: a changed system block set becomes an appended `{role:'system'}` message (`ctx_action system_delta`), a changed tool set becomes `tool_addition` / `tool_removal` blocks (`ctx_action tool_set_change`, beta `mid-conversation-tool-changes-2026-07-01`; newly-seen tools are appended to the frozen array with `defer_loading:true`, never inserted). Models without `role:'system'` support (Sonnet 5, Opus 4.7 and older) keep the old rebuild-per-request path - they don't enforce binding. **Never "fix" a stale system prompt by rebuilding it mid-worker, and never reset the freeze on a config change** - `resetPrefixFreeze()` is only for a conversation restart (Fold, Compact, replay, seed). Description-text changes on a still-present tool (posture `scrubCrossRefs`, `webSearchMaxUses`) are ignored while frozen and logged.
|
|
293
|
+
- **Per-turn text goes on the USER message, never in `system` (`WorkerConfig.turnNotice`).** The peer-mailbox notice and the plan-mode arm nudge used to be `firstIteration`-gated folds into `appendSystemPrompt`, which flipped the system prompt between consecutive requests of one auto-continued turn. On Native they now ride `turnNotice` → `appendTextToLastUserMessage` (a trailing `text` block on the operator's message, kept in history for good - deleting it next turn would be the same edit). CLI / Codex still get them inside `appendSystemPrompt`. Don't add a new per-turn reminder to `buildSystemBlocks()`; add it to `turnNoticeParts` in turnEngine.
|
|
294
|
+
- **Thinking blocks are never deleted from history; on binding-enforcing models the end-of-turn evidence prune is skipped.** `pruneServerToolEvidenceAfterTurn` keeps `thinking` / `redacted_thinking` on every model (the pre-2026-09 shape deleted them, so no reasoning ever crossed a turn and Fable/Opus 5 started every turn cold). On `fable-5-1` / `mythos-5-1` / `opus-5-5` the whole prune is skipped after a normal turn - removing server-tool evidence from the turn's own messages would invalidate that turn's later thinking. The abort-path `scrubServerToolEvidenceOnAbort` still runs everywhere (an orphan `server_tool_use` is a guaranteed 400 - correctness beats cache). Pre-request scrubs (`scrubEmptyTextContent`, `stripTrailingThinkingBlocks`) walk only `unsentTail()` - messages past `sentThrough`, which advances after every accepted request.
|
|
295
|
+
- **A `role:'system'` message directly followed by a user message is a 400.** `runTurn` calls `popTrailingSystemMessages` before pushing the operator turn; `resolvePrefixForRequest` only appends when the last message is a user turn (else the delta waits a round and logs `pending`). Arco's own system messages carry a private `arco:` marker that `toWireMessages` strips - Fold / Compact / replay projections already skip non-user/assistant roles, so they never leak into a summary seed.
|
|
296
|
+
- **Binding controls are on for Fable 5.1 / Mythos 5.1 / Opus 5.5 (`enforcesPreservedThinking`): `thinking.block_binding.prefix_mismatch_behavior:'drop_block'` + beta `thinking-binding-controls-2026-08-01`.** Opus 5.5 (2026-09-22) ships the same preserved-thinking check as Fable 5.1; Opus 5 does NOT and 400s on `block_binding` - every gate keys on `opus-5-5` explicitly because `includes('opus-5')` matches both (pinned in `appendOnlyPrefix.test.ts`). Every `message_start` then carries `input_transformations`; the worker logs `input_transformations=N` per round and emits `ctx_action { action:'thinking_dropped_by_api', trigger:'api' }` when N>0. **Empty on every round is the proof the harness is append-only** - a `prefix_binding_mismatch` entry is a bug to chase (something before `path` changed since the previous request); `model_binding_mismatch` right after a live model swap is expected and unbilled. Two 400 recoveries in `handleApiError`: a signature/binding rejection strips every thinking block once and retries (`strip_thinking_binding_mismatch`); a rejection naming `tool_addition` / `tool_reference` / `role 'system'` / `block_binding` / `clear_at` THAWS the worker (`prefixThawed`, Arco system messages removed, rebuild-per-request for the rest of its life) and retries - worst case is the pre-plan behaviour, never a dead tab.
|
|
297
|
+
- **`claudeNativeThinkingDisplay:'updates'` is a third display mode (Fable 5 / 5.1 / Mythos 5.1 / Opus 5.5 only).** On Opus 5.5 the between-tool-call notes Opus 5 returned as `text` come back as thinking blocks, so under the default `omitted` an Opus 5.5 tab's Activity goes quiet during long tool loops - use `summarized` (or try `updates`). Sends `display:'updates'` + beta `thinking-display-updates-2026-08-18`; the model's between-tool-call progress notes come back as non-empty `thinking` blocks (reasoning stays hidden) and stream through the existing `primary_thinking` rows. `resolveThinkingDisplay` degrades it to `omitted` on any other model so an unknown enum value never 400s. Echo them back unchanged like any thinking block. The stream handler forwards non-empty `thinking_delta` values; the provider may return empty blocks.
|
|
298
|
+
- **The Claude-Code wire fingerprint (`user-agent: claude-cli/<ver>`) is model-gated by Anthropic - `wireFingerprint.ts` is the single source of truth.** Fable 5.1 requires CLI version 2.1.251 or newer. The pin prevents a local CLI update from silently changing the wire fingerprint. Update the constant rather than its call sites (worker `messages.create`, `catalog.ts` `/v1/models`, and the diagnostic probe), and validate supported models.
|
|
299
|
+
|
|
300
|
+
## Codex
|
|
301
|
+
|
|
302
|
+
- **Codex's reasoning-effort enum is NOT capped at `xhigh` any more - GPT-6 Astra added `max` and `ultra` above it.** Astra shipped 2026-09-03 with `supportedReasoningEfforts: [low, medium, high, xhigh, max, ultra]` (`ultra` = "Maximum reasoning with automatic task delegation"), and Codex's own catalog reports `isDefault: true` for it. Arco dropped both new levels on release day because the surface was pinned to the old ceiling in four independent places, each failing silently: (1) `client/src/utils/format.ts effortsForModel` intersected the live catalog against a hard-coded `low|medium|high|xhigh` allowlist, so the picker showed four levels while the catalog advertised six; (2) both transports' `baseMapEffort` / `baseMapEffortToReasoning` collapsed `max` → `xhigh` (correct when Codex genuinely stopped at xhigh, a silent downgrade of every MAX turn afterwards); (3) `codex-appserver/catalog.ts EFFORT_RANK` had no entry for either, so both ranked 0, sorted to the FRONT, and corrupted the `efforts[efforts.length - 1]` "highest supported effort" clamp both transports rely on; (4) `CodexReasoningEffort` and the ts-rs `ReasoningEffort` binding both stopped at `xhigh`. Invariants: **every value Codex can return must be ranked in `EFFORT_RANK`** (the clamp is positional - an unranked value silently breaks it); **`EFFORT_RANK` in `shared/src/protocol/providers.ts` is typed `Record<EffortLevel, number>` so a new level cannot be added without ranking it** - keep it total; **never widen `effortsForProvider('codex')`** (the no-catalog fallback stays `low|medium|high` - a model that really stops at `high` must not be offered more, and the per-model catalog is the only authority); and **`ultra` is Codex-only** - it is in the shared `EffortLevel` union so the picker can represent it, but no Claude/local model advertises it, so `effortsForModel` is what keeps it off every other provider. The ts-rs binding is hand-edited (upstream's generated enum still lags); re-apply after any regen. Pinned by `client/src/utils/codexEfforts.test.ts` (`npm run test:codex-efforts`).
|
|
303
|
+
- **Codex context size has a conservative default and a larger catalog maximum.** As of 2026-09-11, Astra and the GPT-5.6 workers (and GPT-6 Sol / Luna from 2026-09-22) advertise `context_window:272000`, `max_context_window:872000`, and `effective_context_window_percent:95`, producing 258.4K STANDARD or 828.4K MAX. Arco defaults per-tab `codexContextPolicy` to MAX and reads these values from the selected account's live `$CODEX_HOME/models_cache.json`; never hardcode the override because model/account entitlements can change. Both exec and app-server must receive the same policy. Changing policy/model/account must change the app-server bootstrap signature so the child recycles and resumes the durable thread on the next turn. Missing metadata omits the override and fails safe to Codex's own default. The stream-reported `model_context_window` still wins in the CTX bar.
|
|
304
|
+
- **No concurrent-writer guard for Codex rollouts (yet).** Claude's JSONL watcher detects foreign `claude --resume <uuid>` writes and refuses turns for 60s. Codex doesn't have an equivalent. Probe (2026-04-26): every rollout file at `~/.codex/sessions/<y>/<m>/<d>/rollout-*.jsonl` carries a unique UUID in its filename - strong evidence that each `codex exec` and `codex exec resume <uuid>` invocation creates a NEW rollout file rather than appending to the existing one (the long 1k-line rollouts in the wild are from the interactive `codex` TUI, not from `exec --json`). If that holds for current Codex CLI versions, two concurrent `exec resume` calls against the same `thread_id` produce two separate rollout files and there's no interleaved-write corruption to worry about. **Caveat: this hasn't been verified by triggering the race directly.** If a future Codex CLI version flips to append-mode, port the Claude pattern from `sessionJsonl.ts` (entrypoint-detection + 60s refusal). For now, the operator-self-inflicted concurrent-resume risk is treated as acceptable and the guard is deferred.
|
|
305
|
+
- **Codex `cached_input_tokens` is a SUBSET of `input_tokens`, not disjoint.** OpenAI and Anthropic report cache fields with opposite semantics. For **Anthropic/Claude**, `input`, `cacheRead`, and `cacheCreate` are disjoint and sum to the total prompt - Arco's ctx for Claude is `input + cacheCreate`. For **OpenAI/Codex**, `input_tokens` IS the full prompt size and `cached_input_tokens` is informational ("of those input_tokens, this many were served from cache"). Confirmed against real rollout: `input=8402, cached=7296, total=8641` - math only checks out if cached is a subset of input. Arco's ctx for Codex is therefore just `input`. Adding cacheRead would double-count the cached portion. The client's `contextTokens(usage, provider)` branches accordingly; don't unify the formula and don't flip Codex back to a sum.
|
|
306
|
+
- **GPT-5.5's "400K window" is misleading - it splits 272K input + 128K output.** Codex itself reports ~258K via `model_context_window` (272K × 0.95 effective-window multiplier). Confirmed against a real rollout's `model_context_window: 258400` field and tracked in upstream Codex issues #19319, #19409, #19208. Arco now captures the stream-reported value directly: `codex-stream.ts` parses both `turn.completed` envelopes and `event_msg::token_count` payloads, forwards `model_context_window` as `result.modelContextWindow`, which `WorkerManager` puts on `worker_complete.modelContextWindow`, which `seedWorker` puts on `primary_complete.modelContextWindow`, which the client store keeps as `JobState.modelContextWindow`. The ContextMeter prefers this observed value over the hardcoded fallback (`client/src/utils/format.ts:codexModelWindow()`, default 272K). The dot indicator next to the percentage flips ● (reported) vs ○ (estimate). When OpenAI ships a Codex model with a different window, the stream value picks it up automatically - only update the hardcoded default if a fresh-spawn-pre-first-turn estimate matters. Auto-handoff for Codex app-server must use the post-settle rollout `last_token_usage` snapshot, not aggregated `turn.completed.usage`. Explicit compact must clear `wf.lastContextPercent` so a pre-compact percentage cannot fire later.
|
|
307
|
+
- **TokenUsage carries Codex-only fields too.** `reasoningOutput` is a subset of `output` representing the model's hidden reasoning trace (high-effort GPT-5.x turns can put significant tokens here, and they roll forward into the next turn's prompt - explains why session ctx grows faster than visible chat would suggest). `total` is the provider-reported total when present. Both are captured from `turn.completed.usage.reasoning_output_tokens` / `total_tokens` and from `event_msg::token_count.info.last_token_usage` if Codex emits the TUI envelope. Don't sum them with input/output manually - they're informational subsets/totals, not additive.
|
|
308
|
+
- **`codex exec --json`'s `turn.completed.usage` aggregates across internal LLM calls within an operator turn - that's a billing number, not a context-window-fill number.** GPT-5.5 high is agentic: one operator turn can drive 5+ internal model calls (think → tool → think → tool → respond). The `usage` block on `turn.completed` reports `input_tokens` summed across all those internal calls. For a 60-character prompt that triggered a heavy investigation, this can land at 400k while the model's actual per-call context fill was ~80k. To recover the per-call reality, the server tails `~/.codex/sessions/<y>/<m>/<d>/rollout-*-<thread_id>.jsonl` after `turn.settled` and reads the latest `event_msg::token_count.info.last_token_usage` (per-call snapshot) and `model_context_window` (the only honest source - exec --json doesn't surface it). Broadcast as `codex_token_snapshot`; client overrides `lastTurnTokens` so the CTX bar reflects per-call reality. `totalTokens` (cumulative billing) keeps the aggregated number - that's the right metric for "you've burned X input tokens this turn" reporting. The post-settle read is awaited before `maybeAutoHandoff()` so threshold checks use the fresh percentage. Code: `server/src/workflows/transcripts.ts` + the post-settle path in `server/src/ws/turnEngine.ts`. Don't simplify back to using `turn.completed.usage` for the CTX bar.
|
|
309
|
+
- **Original-worker Handoff on a near-full Codex thread will fail at `exec resume`.** Arco's reflection prompt is fixed-length (a few KB), so prompt size isn't the bottleneck. The risk is the thread itself: `codex exec resume <thread_id>` loads the full prior context internally, and if that context already saturates the model's window, the resume errors out before reflection runs. Not original-worker-specific - any `exec resume` on a near-full thread has the same limit. Mitigation if it bites: fall back to `fresh-summarizer` mode (renders the transcript through a fresh Codex worker, which sees only the rendered text + summary prompt). The mode picker exposes both; operator picks. No automatic threshold-based fallback today.
|
|
310
|
+
- **Exit-code-0 must emit a synthetic result if the parser never settled.** Codex exiting cleanly without the parser ever firing `done`/`result` (abrupt stdout close, stream `end` racing past process exit) used to leave the worker stuck running forever. The exit handler now mirrors `claude.ts`'s done-fallback (its `process.on('exit')` handler) for code 0. Don't drop this - the parser-only path is not always reached.
|
|
311
|
+
- **App-server transport invariants.** When `codex.transport === 'appserver'`, Codex's lifecycle / cancel / steer model is fundamentally different from `exec`. Don't regress these:
|
|
312
|
+
- **One long-lived `codex app-server` child per workflow tab**, not per turn. Cached in `server/src/providers/codex-appserver/index.ts:workersByWorkflow`, disposed only on `handleRemoveWorkflow`. Reviewers and handoff seed turns hard-code `'exec'` (in `handleReviewRequest` / `handleHandoffRequest` / `handleSpawnFromHere` / `runExportContext`) so the per-tab cache never picks them up - don't thread `codexTransport` through those paths.
|
|
313
|
+
- **Cancel is a two-step `turn/interrupt` RPC, not SIGKILL.** Operator cancel sends `turn/interrupt`, waits up to 5 s for the `turn/completed { status: 'interrupted' }` notification, then settles. If the ack times out or the RPC errors, fall through to SIGKILL the app-server child and emit a fatal - the next operator turn re-resumes the thread on disk via `thread/resume`. Don't shortcut to SIGKILL on the happy path; the structured cancel keeps the rollout consistent.
|
|
314
|
+
- **`turn/steer` requires `expectedTurnId` and races against `turn/completed`.** The steer drain hook fires on every `item/completed`. Between drain and round-trip the turn can end; Codex enforces `expectedTurnId` and the steer fails with a mismatch error. Treat that as expected and re-queue via `WorkerConfig.requeueSteer`: `activeTurnNotSteerable {turnKind:'review'|'compact'}` → re-enqueue to **steer** bucket; mismatched turn id or generic transport error → re-enqueue to **follow-up**. Don't paper over the failure or land the steer in a future turn implicitly.
|
|
315
|
+
- **The toggle flips per-tab, not the running process.** `WorkflowConfig.codexTransport` switches what the *next* operator turn picks up; an already-spawned app-server child stays mounted until the tab closes, regardless of toggle direction. Don't add a "kill on toggle to exec" path - it'd break parity with the documented contract and risk a half-stopped tab. The idle child's RSS is O(100 MB) so the leak window is cheap.
|
|
316
|
+
- **Refresh cached-worker config every turn.** The app-server child is long-lived, but `WorkerConfig` is per-turn. `CodexAppServerTurn.spawn()` must call `worker.updateConfig(config)` before `ensureStarted()` / `beginTurn()` so current-turn attachments become `localImage` input items, non-image attachments fold into the text tail, and live model/effort/cwd/sandbox changes don't reuse stale values from the first turn that created the child. Claude Native has the same pattern. If a current-turn image shows in `user_message_echo.attachments` but the Codex rollout has `images:[]` / `local_images:[]`, this invariant is the first thing to check.
|
|
317
|
+
- **Clarification questions are separate from approvals.** The app-server worker intercepts `item/tool/requestUserInput` for explicit operator answers; approval requests keep deterministic declines. Async `agentMessage.delivery=async` question cards survive successful turn settlement and reply through normal operator messages. RPC handles close with their turn; cancel/transport death closes all handles. Reconnect snapshots must include `operatorQuestions: []` when none remain, so replayed questions cannot silently reactivate after a restart. Redact secret answers before publishing/persistence.
|
|
318
|
+
- **NDJSON over stdio, no JSON-RPC envelope.** Codex's app-server emits bare `{id, method, params}` / `{id, result}` / `{method, params}` lines, not the `"jsonrpc":"2.0"` form. `jsonRpc.ts` parses both directions accordingly. If a future Codex bump starts emitting the envelope field, allow it - don't reject.
|
|
319
|
+
- **`serverOverloaded` is model capacity, not provider quota.** Codex app-server used that enum for the "Selected model is at capacity" error. Marking it throttled promoted one model's transient capacity miss into a provider-wide 30-minute cooldown, made the header claim an invented quota reset, and stopped operator-armed Goal Runs. Only `usageLimitExceeded`, an explicit HTTP 429, or a 429/Too-Many-Requests fallback message changes quota state. Keep `serverOverloaded` as the visible turn error and let the operator retry or choose another model. Regression: `npm run test:codex-quota`.
|
|
320
|
+
- **Operator compact (`thread/compact/start`) must stay locked until the compact turn's own `turn/completed`.** Codex models compaction as an internal turn, but the `Turn` binding carries NO `turnKind`; `compacting` isolates it and `compactTurnId` records the id from `turn/started` without adopting it into operator `current`. `thread/compacted` means the summary landed, **not that the turn is idle** - never resolve on it. A compaction can outlast a short timeout; returning `ok:true` early unlocks Arco while sends during the remaining compaction bounce as `ActiveTurnNotSteerable { turn_kind: Compact }`. The waiter must be registered BEFORE `thread/compact/start` so a fast completion cannot race ahead of it. The 10-minute ceiling is a hard failure: kill/recycle the app-server worker, emit `Compact failed`, and resume the durable thread on the next turn - never claim timeout as success. `teardownProcess()` resolves waiters as `transport-ended`, also a failure. Pinned by `npm run test:codex-compact-lifecycle`.
|
|
321
|
+
Manual COMPACT is a valid pressure valve, but it is intentionally lossy: Codex replaces older conversation detail with its compacted summary. Use Handoff or source artifacts when exact historical wording is load-bearing.
|
|
322
|
+
- **Arco adopts ONLY the turns it starts, and clears Codex's native thread goal on every bootstrap.** Codex persistent goals can start additional turns without an operator request. Two guards prevent this: (1) `turn/started` adopts an id only when `current.startedAt` is set by `beginTurn()` before the `turn/start` RPC. (2) `clearThreadGoal()` sends `thread/goal/clear` after every `thread/start` / `thread/resume` (best-effort, never fails bootstrap), and a `thread/goal/updated` notification re-clears and surfaces a `system_notice`. Only bootstrap failures bump the spawn-failure breaker in `codex-appserver/index.ts`; a `beginTurn` pre-flight throw does not indicate a failed child process.
|
|
323
|
+
- **Consecutive `agentMessage` items need an explicit `\n\n` separator.** Codex emits a fresh `agentMessage` item for each narration block between tool calls; the `item/agentMessage/delta` deltas within one item are continuous, but Codex inserts NO separator between items. Streaming each delta straight into `appendText` therefore glued the blocks into a wall of text (`…release process.Kernel.org confirms…`). `worker.ts` tracks `current.lastAgentMsgItemId` (from the delta's `itemId`) and appends `\n\n` when the id changes (guarded on prior-text-exists so the first block gets no leading break). Don't drop the tracker - the boundary is the only place the paragraph break can be reconstructed (no delimiter survives downstream to split on). The `exec` transport (`codex-stream.ts`) has the same latent issue but emits whole items rather than deltas; if you see walls there, the fix is the same item-boundary `\n\n`.
|
|
324
|
+
- **Effort enum is `none|minimal|low|medium|high|xhigh`, not just `low/medium/high`.** Pre-2026-05 mappers downgraded `xhigh`/`max` → `high` thinking Codex topped out there; the actual ceiling is `xhigh` ("Extra high" in the CLI picker). Pass `xhigh` through to the appserver and `-c reasoning_effort=xhigh` to exec. Arco's `max` (an Arco-only level) collapses to Codex's `xhigh`. **Catalog-aware downgrade**: if the active model's catalog entry doesn't list the requested effort under `supportedReasoningEfforts`, mappers fall back to the highest supported effort instead of letting the appserver 400. See `docs/PROVIDERS.md § Codex § Live model catalog`.
|
|
325
|
+
- **Hardcoded `CODEX_MODELS` in `shared/src/protocol/models.ts` is a fallback only** (protocol types now live under `shared/src/protocol/`; `protocol.ts` is a thin re-export barrel). The picker reads from the live `/api/codex/catalog` snapshot; the static list serves only on cold-start or when the appserver isn't reachable. Don't keep the hardcoded list in sync as a primary source of truth - operator-facing model freshness comes from the catalog poll. The `CODEX_MODEL_INFO` static effort table is a tertiary fallback for `effortsForModel` (after live catalog → CODEX_MODEL_INFO → effortsForProvider).
|
|
326
|
+
|
|
327
|
+
## Media ops FFmpeg wrapper (H6 audio + H7 video)
|
|
328
|
+
|
|
329
|
+
`server/src/media/ffmpeg.ts` shells out to `ffmpeg`/`ffprobe` - the fence-critical media surface. Every invariant is load-bearing; the director reads this file line by line:
|
|
330
|
+
|
|
331
|
+
- **`execFile` with an argv array ONLY.** The binary is the **fixed literal** `'ffmpeg'`/`'ffprobe'`; every argument is a separate array element. **Never** `exec`, **never** a shell string, **never** `shell: true`. There is nothing for a shell to parse. Don't "simplify" a run into a template string - that reopens shell injection.
|
|
332
|
+
- **Typed-spec → args, never operator text.** `buildArgs(spec, in, out)` is **PURE + total** over the `MediaOpSpec` union (audio AND video ops). The only operator-influenced argv values are validated numbers (clip/extract/fade/resample/spans) or whitelisted enums (`AUDIO_FORMATS` codec / bounded bitrate / mono|stereo / bounded sample-rate; `VIDEO_FORMATS` container+codecs / `VIDEO_VCODECS` override). No operator string is ever concatenated into a flag or path. `validateSpec` runs first (in<out, known format, …). The smoke asserts the exact argv per op.
|
|
333
|
+
- **Video resolution/codec/container are whitelisted/validated too.** `-c:v` comes only from `VIDEO_FORMATS` defaults or the bounded `VIDEO_VCODECS` set; the container comes from a `VIDEO_FORMATS` key (→ output ext). **Resolution never flows raw into `-vf`:** a preset maps to a **fixed** `scale=-2:<h>` string we control, and an explicit `{w,h}` is validated (positive integers ≤ `VIDEO_DIM_MAX`) then composed by us into `scale=w:h`. Never the operator's `-vf`/`-c:v` text. **`runAudioOp` was renamed `runMediaOp`** - one confine/cancel/cleanup body for both; `runAudioOp`/`runVideoOp` are aliases (do not add a second ffmpeg spawn path).
|
|
334
|
+
- **Input AND output gated by the N2 access fence** (was `resolveWithinCwd`; see § Media access fence below). The output basename is also sanitized (`sanitizeOutputBasename`: no separators / `..` / leading-dash / NUL). An out-of-fence path is rejected (`code: 'bad-path'`).
|
|
335
|
+
- **Output is a NEW file; never overwrites the source.** `deriveOutputBasename` → `<stem>.<op>.<ext>`, `uniqueBasename` appends `-2/-3/…`, and there's an explicit `outputAbs === inputAbs` refusal + ffmpeg's `-n` (never overwrite). Three independent guards. The source file is read-only.
|
|
336
|
+
- **Cancel kills the child + cleans up the partial.** The route wires `req.on('close')` → `AbortController.abort()`; the signal `child.kill('SIGKILL')`s the ffmpeg child and `runMediaOp` **unlinks the (possibly partial) output**. No half-written file is ever returned as success. A cancel is `code: 'cancelled'` and is NOT broadcast as a failure.
|
|
337
|
+
- **Graceful when ffmpeg is missing.** `ffmpegAvailable()` (cached `ffmpeg -version`) gates every op; absent → `200 { code: 'ffmpeg-missing' }` with an `OPERATIONS.md` pointer, never a spawn crash / 500. (Restart the server to re-probe after installing.)
|
|
338
|
+
- **`/api/media/raw` is read-only.** Range-able (`206`), no write, no exec - the on-disk waveform/playback source. **Since N2 it gates `path` through the same access fence** as the op route (not bare `resolveWithinCwd`), so a scratch / unconfined path can be previewed.
|
|
339
|
+
|
|
340
|
+
## Media access fence
|
|
341
|
+
|
|
342
|
+
`server/src/media/ffmpeg.ts::resolveMediaInput` / `resolveMediaOutputDir` widen the studio from "cwd-only" to a general tool - **carefully**. The fence is the security core; don't loosen a tier or skip a gate.
|
|
343
|
+
|
|
344
|
+
- **Three tiers, in order:** (1) inside the workflow cwd → always; (2) inside Arco's `media-scratch` (`server/src/media/scratch.ts::isWithinScratch`) → always; (3) anywhere else → **only** when `mediaUnconfined !== false`. A path clearing none throws `bad-path`. The output dir is gated by the **same** `gate()`.
|
|
345
|
+
- **`unconfined: false` MUST reproduce the pre-N2 fence exactly** (cwd + scratch only). The positional `runMediaOp(cwd, path, spec)` form passes no `opts`, so `unconfined` defaults to `false` - this is what keeps the `audio-ops`/`video-ops` smokes' path-escape assertions (`/etc/hosts`, `../../`) green. Don't flip the default to open.
|
|
346
|
+
- **Default-OPEN is deliberate but tunnel-sensitive.** `mediaUnconfined` undefined ⇒ open (`!== false`); the route reads it per-op from the cascade (`readSettings(cwd)`) so a project `.arco/settings.json` can pin it. The operator switches to CONFINED on an exposed instance - keep the Settings toggle + the `bad-path` message that points at it.
|
|
347
|
+
- **Scratch is always allowed but bounded.** Upload writes to a **fresh per-upload dir** under a **sanitized** basename (can't escape regardless of `?name=`), with a per-upload byte cap, a 24h TTL, and a total-size cap (oldest evicted). `isWithinScratch` is a pure path-containment check - we wrote the bytes, so no symlink-following is needed. Don't gate uploads behind `mediaUnconfined` (imported-file conversion must work even when CONFINED).
|
|
348
|
+
- **Operator-chosen output never escapes the never-overwrite invariant.** `outputBasenameFor` keeps the stem but **forces** the op's target ext (`targetOutputExt`); `uniqueBasename` + the `outputAbs === inputAbs` refusal + ffmpeg `-n` still hold. `relPath` is returned **only** for an in-cwd output (drives REVEAL IN FILES); out-of-cwd returns the absolute `outputPath` only.
|
|
349
|
+
|
|
350
|
+
## Advanced media ops
|
|
351
|
+
|
|
352
|
+
The N3 ops (`framegrab` / `gif` / `geometry` / `speed` / `gain` / `spectrogram` / `join` / `swap` + the `inspect` endpoint) extend `server/src/media/ffmpeg.ts` - same fences, a few new load-bearing rules:
|
|
353
|
+
|
|
354
|
+
- **Multi-input ops gate EVERY input.** `join.extraInputs` and `swap.replace.audioPath` flow through `specExtraInputs(spec)` → `resolveMediaInput` (the same tiered fence) + a `stat` **before any path reaches `buildArgs`**. `buildArgs` receives only **resolved abs paths**, never the raw spec strings. Don't pass a spec string straight into the argv - an out-of-cwd extra must be rejected exactly like the primary when the fence is locked (`media-advanced-ops` asserts it). `JOIN_MAX_INPUTS` caps the fan-in.
|
|
355
|
+
- **Audio-vs-video is a `video` boolean on the spec, set by the PANEL - not a probe, not free text.** `speed.video` / `join.video` pick whether a video filtergraph (`setpts`, `[i:v]` concat labels, `v=1`) is built. The AUDIO panel sends `false`, the VIDEO panel `true`. This is why an audio file never gets a `-vf`/`[:v]` it has no stream for. (Edge: a *silent* video + `speed` fails on `-af` - surfaces as `ffmpeg-failed`, not a crash. Acceptable; don't "fix" it by probing in `buildArgs` - that breaks purity.)
|
|
356
|
+
- **`buildArgs` stays PURE + total over RENDER ops.** `inspect` produces no file, so it is **NOT** a `MediaOpSpec` - it's `inspectMedia` behind `POST /api/media/inspect`. Don't fold a "render nothing" op into the union; it would force a fake `buildArgs` case and a different result shape. `framegrab`/`gif` build their **own** argv (the `-ss`/`-t` seek goes **before** `-i`, so they don't use the shared `pre`); everything else extends `pre`.
|
|
357
|
+
- **Filter strings are composed only in the dedicated builders** (`atempoChain`, `geometryFilter`, `animFilter`) from **already-validated** numbers/enums. `atempo` only accepts `[0.5, 2.0]` per link → the chain covers `[0.25, 4]` in ≤2 links. A geometry preset maps to a fixed filter; a crop `{w,h,x,y}` is validated (pixel dims) then composed. Never interpolate an unvalidated value into a filter.
|
|
358
|
+
- **New media-producing ext is in `targetOutputExt` ONLY.** framegrab → the still ext, gif → the anim ext, spectrogram → `.png`; the rest keep the source container. The derive/uniquify/never-overwrite path is otherwise untouched.
|
|
359
|
+
|
|
360
|
+
## Demucs stem separation
|
|
361
|
+
|
|
362
|
+
`server/src/media/demucs.ts` is a **separate runner** from ffmpeg - long-running, GPU, multi-output, `spawn` not `execFile`. Don't fold it into `runMediaOp`/`MediaOpSpec`; it has its own request/result shapes and broadcast.
|
|
363
|
+
|
|
364
|
+
- **Same fence, but errors must be RE-KEYED.** It reuses `resolveMediaInput`/`resolveMediaOutputDir`, which throw `MediaOpError('bad-path')` - a *different class* than `DemucsError`. `runDemucsStems` wraps both gate calls in `gateOrThrow`, which re-throws as `DemucsError('bad-path')`. **Without this the route's `instanceof DemucsError` check misses it and returns a 500** instead of a structured `200 { code: 'bad-path' }`. If you add another shared-resolver call, route it through `gateOrThrow` too. (The smoke asserts the out-of-cwd reject.)
|
|
365
|
+
- **Fresh dir we own → safe whole-dir cleanup.** Output goes into a freshly `mkdir`'d uniquified `<track>.stems[-N]/`. A cancel/failure `fs.rm`s the **entire** dir - correct *only because we created it* (never point this at a pre-existing dir). demucs forces a `<model>/` subdir; `flattenAndCollect` moves the files up and removes it (read the subdir back, don't assume its name).
|
|
366
|
+
- **Presence check is a PATH scan, NOT a spawn.** `demucs --help` imports torch (seconds). `binaryOnPath` scans `$PATH` + `~/.local/bin` (pip --user) for an executable. Cached; restart re-probes. Don't "verify" by running demucs.
|
|
367
|
+
- **No timeout; cancel is the only stop.** `runDemucs` (spawn) has no timeout (a long separation is normal) and bounds the stderr tail to ~4 KB. The `AbortSignal` SIGKILLs the child; the route wires `req.on('close')`. **Device is auto** - no forced `-d` (cuda-if-available else cpu) so it stays cross-platform.
|
|
368
|
+
- **mp3 is the safe default; wav/flac need `torchcodec`.** Some torchaudio builds route wav/flac saves through `save_with_torchcodec`. The runner detects the `/torchcodec/i` stderr and returns a `demucs-failed` with a use-mp3/install-torchcodec hint - keep that detection if you touch the error path.
|
|
369
|
+
- **Visible.** Success/failure broadcasts `media_stems_result` (in the `ServerMessage` union); it lands in `events.jsonl` like `media_op_result`. A cancel is **not** broadcast as a failure.
|
|
370
|
+
|
|
371
|
+
## Strata
|
|
372
|
+
|
|
373
|
+
- Reuse the OpenAI HTTP worker, but keep Strata's identity, endpoint and discovery
|
|
374
|
+
separate from LM Studio/Ollama. Discover `meta.n_ctx` and live image modalities;
|
|
375
|
+
a text-only service must never get a vision badge from its model name.
|
|
376
|
+
- Saved Chat advertises only its armed web pair and checks the allowed names
|
|
377
|
+
again at dispatch. Agent/primitive tool restrictions are enforced there too.
|
|
378
|
+
Never register Strata for Incognito while its service logs/image cache persist.
|
|
379
|
+
- Strata owns its memory cgroup. Optional operator-registered local profiles
|
|
380
|
+
may switch through their named user services on the next turn. Hold Strata's
|
|
381
|
+
serial slot through the entire tool loop; never alias two weight sets to the
|
|
382
|
+
same running engine. Confirm the served model before inference, preserve
|
|
383
|
+
startup guards/cgroup limits, and restore the old profile on failure/cancel.
|
|
384
|
+
The switch and FREE VRAM share one exclusion guard; remote/unregistered
|
|
385
|
+
endpoints stay HTTP-only. Selecting a dropdown never interrupts a turn.
|
|
386
|
+
Inspect VRAM and cgroup/RAM headroom before changing its image encoder; keep
|
|
387
|
+
the configured expert-cache cap and desktop reserve unless the operator opts in.
|
|
388
|
+
|
|
389
|
+
## DeepSeek / Xolotl
|
|
390
|
+
|
|
391
|
+
- Keep port 8150, its registry and Xolotl `--ctx`/Engram validation separate
|
|
392
|
+
from Qwen/Strata on 8081. No Ollama import, downloader or direct engine spawn.
|
|
393
|
+
- Start/stop only through the registered guarded launcher and existing user
|
|
394
|
+
units. Never stop other GPU workloads; preserve asset/mount/RAM/VRAM guards and cgroup limits.
|
|
395
|
+
- Hold the whole-turn serial slot and shared local-operation guard through
|
|
396
|
+
switch/cleanup/recovery. Manual controls refuse all local work; inference
|
|
397
|
+
preparation excludes only its own serialized DeepSeek turns. Reject external
|
|
398
|
+
in-flight/queued requests and mismatched service/model/context identities.
|
|
399
|
+
- Exact/Light remain selectable offline. A prepared model is not proof of
|
|
400
|
+
residency; service active and engine loaded are separate. FREE VRAM stops the
|
|
401
|
+
managed DeepSeek service and confirms endpoint loss. Idle reload is guarded.
|
|
402
|
+
- Preserve native reasoning/tool-call pairs and configured total output budgets.
|
|
403
|
+
Vision comes from validated encoder assets/config, never a model-name guess.
|
|
404
|
+
Text-only profiles reject images before loading; live vision must match the
|
|
405
|
+
selected prepared profile. Keep the lazy CPU encoder within service limits.
|
|
406
|
+
Strict Incognito, clusters and Computer selection
|
|
407
|
+
remain excluded until their boundaries are explicitly implemented.
|
|
408
|
+
- Version checks read metadata/Git only, never load a GPU engine. Strata's
|
|
409
|
+
offline BUILD.json fallback keeps its row visible while stopped. Xolotl source
|
|
410
|
+
revision drift does not establish a built-binary update or semver ordering.
|
|
411
|
+
|
|
412
|
+
## Ollama
|
|
413
|
+
|
|
414
|
+
- **Cache prefix invariance.** Ollama's prefix cache hits on byte-identical message stack prefixes. Anything that mutates the system prompt or transcript bytes between turns flushes the cache: timestamps, random ids, switching `effort` mid-workflow (low → high invalidates because `/no_think` toggles), changing `OLLAMA_PRIMARY_SYSTEM_PROMPT`, or per-request `options` overrides. Plan §5.5 deliberately doesn't surface inline `num_ctx`/sampler overrides for this reason - those live in the Modelfile so they stay byte-stable across spawns.
|
|
415
|
+
- **Single-slot, single-model.** `OLLAMA_NUM_PARALLEL=1` and `OLLAMA_MAX_LOADED_MODELS=1` are required for cache reliability. Concurrent workflows hitting the same daemon serialize at the daemon level. Without these, Ollama allocates separate decode slots per request and the prefix cache fragments.
|
|
416
|
+
- **Polite eviction default.** `keep_alive: '10m'` per request - model evicts 10 minutes after the last Arco turn, freeing VRAM for Resolve / games. `OLLAMA_KEEP_ALIVE` env at the daemon level does NOT win over the per-request value (only matters for non-Arco clients hitting the same daemon).
|
|
417
|
+
- **`MAX_TOOL_TURNS = 50` default cap.** Hard limit per primary turn, tunable with `ARCO_OLLAMA_MAX_TOOL_TURNS` up to 200. A workflow that hits the cap is suspect; split the task or open an issue. Reset on the next operator turn.
|
|
418
|
+
- **Preparatory-only local replies are not final.** Ollama models can stream text like "Let me inspect the diff" with no tool calls; without a guard, Arco would mark the turn complete because `/api/chat` has no stronger "I am done" signal than "no tool_calls". `looksPreparatoryOnly()` allows up to two continuation prompts before accepting a no-tool reply as final. Keep this guard ahead of cluster-report enforcement so a worker gets a chance to do the work before being told to report.
|
|
419
|
+
- **Cluster Ollama workers must `peer_send` before finalizing.** For non-director cluster members, `OllamaWorkerProcess` tracks tool names seen this turn. If the model tries to finish without `peer_send`, Arco injects one private continuation telling it to send PASS/FAIL or DONE/BLOCKED to the assigning peer. This is intentionally bounded to one retry; do not make it unbounded, or a model that cannot call tools can trap the turn.
|
|
420
|
+
- **Think-tag streaming, two paths.** Native-parser models (qwen3.5/qwen3.6 with `RENDERER qwen3.5` / `PARSER qwen3.5`, qwen3-vl-thinking, deepseek3, gpt-oss) emit reasoning in `message.thinking` separate from `message.content`. `ollama.ts` reads both: `message.thinking` is forwarded straight to the `thinking` event channel; `message.content` runs through `ThinkSplitter` for legacy non-native-parser models (heretic-tools, qwopus) that still embed `<think>...</think>` in content. Native-parser models also need `think: true` in the request body - `ollama.ts` sends this as `effort !== 'low'`. Don't reintroduce a hand-rolled TEMPLATE that omits the qwen3.5 RENDERER/PARSER directives - capability detection breaks (no `thinking` advertised) and reasoning silently disappears.
|
|
421
|
+
- **`config.tools` is now an allowlist for Ollama.** Reviewer spawns pass `READ_ONLY_OLLAMA_TOOLS = ['Read','Grep','Glob','WebSearch','WebFetch']` to restrict the registry. Primary spawns pass `tools: undefined` to get the full kit. The Ollama reviewer also overrides `skipPermissions: true` so tools execute (SAFE mode would otherwise return denial strings, defeating the purpose of a code-reading reviewer). Allowlist is the safety net; AUTO/SAFE doesn't apply when no destructive tools are on the menu.
|
|
422
|
+
- **Read tool cap is 32 KB, not 256 KB.** Local model windows are smaller than Claude's; a single big Read can overflow context, and 5 parallel Reads definitely will. Models that need more from a file should use the Claude-shape `offset` (1-based start line) and `limit` (max lines) args. Don't bump the cap without a similar bump to `num_ctx` in every Modelfile.
|
|
423
|
+
- **Vision routing trap.** When a model has a vision projector blob (CLIP `mmproj`), Ollama routes loads through llama.cpp instead of its Go-side runner. llama.cpp's vendored snapshot is older than upstream master and may not know the model's architecture (current case: `qwen35`). The fix for Qwen3.6-27B was to strip the projector by `FROM`-ing the text-only blob directly - see `<local-llm-tools>/models/qwen3.6-27b-coder.Modelfile` for the worked example. Vision-capable workflows should pick a model whose arch IS in the vendored llama.cpp (qwen3vlmoe, llava, mllama, etc.).
|
|
424
|
+
- **Tool runtime is server-side.** Ollama's `/api/chat` returns `tool_calls`; Arco executes them in `OllamaWorkerProcess.dispatchToolCalls()` (see `ollamaTools.ts`). Path validation lives in the executor, not the loop. v1 allowlist is Read/Glob/Grep/Write/Bash/WebSearch/WebFetch - don't expand without a security pass on the new tool's blast radius.
|
|
425
|
+
- **SAFE mode = denial string, not protocol pause.** SAFE mode (operator's `skipPermissions: false`) returns a denial string as the tool result so the loop converges without a new approval-protocol surface. Operator-level cancel still works at any point. This is intentional per plan §5.4 design choice (a).
|
|
426
|
+
- **Stream EOF drains the trailing buffer.** `streamOneTurn`'s NDJSON loop synthesizes a `\n` and re-splits when `reader.read()` returns `done:true` with non-empty `buf`. Without this, daemons that close the stream right after the final `done:true` envelope (no trailing newline) drop token counts (`prompt_eval_count` / `eval_count`) and `total_duration`, breaking the CTX-bar denominator. Don't simplify the loop back to plain `if (done) break`.
|
|
427
|
+
- **Malformed tool-arg JSON surfaces an explicit `argError`, not a defaulted `{}`.** When `message.tool_calls[].function.arguments` is a JSON string that fails to parse, the call carries an `argError` and `dispatchToolCalls` short-circuits with `[error] tool "X" arguments rejected: ...`. A silent `args = {}` was firing tools against the wrong target and producing confusing tool results. The model needs to see the parse failure to retry correctly.
|
|
428
|
+
- **WebFetch pre-resolves DNS and re-validates resolved IPs.** `dns.lookup({ all: true })` runs before `fetch()` and every resolved IP gets re-checked through `isPrivateOrLoopbackHost`. Hostname-string matching alone is bypassable via DNS rebinding (attacker returns public IPs to our lookup, loopback IPs to fetch's lookup). There's a residual TOCTOU window when fetch re-resolves; documented in the code. Don't drop the pre-resolution.
|
|
429
|
+
- **`tool_choice` / `functions` make Ollama HANG - strip them.** litellm's hard-won lesson: Ollama's `/api/chat` does NOT understand the OpenAI-style `tool_choice` / `functions` fields and **hangs** if they're present. `streamOneTurn` has a belt-and-suspenders `delete raw.tool_choice; delete raw.functions` before send. Arco doesn't currently set them, but the guard is there against a future regression; don't remove it, and don't add either field to the request shape.
|
|
430
|
+
- **`format` and `tools` are mutually exclusive on the wire.** The structured-output `format` field is only sent when **no** tools are advertised (`format && !(tools?.length)` in `streamOneTurn`) - `format` constrains the sampler to JSON and suppresses `tool_calls`, so sending both yields a tool-less turn. The Review path exploits this deliberately: the tool-loop runs free (native tools, no `format`), then ONE schema-constrained synthesis turn sends `format` with tools omitted. Don't "simplify" by always attaching `format`.
|
|
431
|
+
|
|
432
|
+
### Ollama multi-backend
|
|
433
|
+
|
|
434
|
+
- **NEVER cool the only/last healthy backend (the load-bearing guard).** `reportFailure` in `ollamaResilience.ts` skips the cooldown when `healthyServingCount <= 1` and emits a `cooldown_skip_last` event instead. Cooling your sole remaining host is self-sabotage: the operator then sees "no backend available" when the host was about to recover (litellm's SINGLE_DEPLOYMENT rule). We keep using it and let the per-request error surface. The caller MUST count healthy serving backends *including* the just-failed host (the guard asks "would cooling this strand the operator?") - `ollama.ts` counts with `isBackendCooled` over the serving set. Don't "simplify" the guard away or move the count to *after* recording the failure.
|
|
435
|
+
- **400 (context overflow) must NOT cool the backend.** `classifyOllamaError` returns `{retryable:false, cooldown:false}` for any 4xx except 429. A 400 is the transcript's fault, not the host's - context-window fallback owns that path. Cooling a host on a 400 would penalize a perfectly healthy daemon for an oversized prompt.
|
|
436
|
+
- **Cooldown TTLs are SHORT (12s remote / 6s local), not minutes.** odysseus's hard-won lesson: a single transient blip used to trip a 60s lockout and the operator thought the model died. Lazy recovery - `isBackendCooled` is a pure query; expired entries are dropped on the next `selectBackend` pass. There is **no background health-prober** (rejected as overkill for 1-3 hosts); don't add one.
|
|
437
|
+
- **Zero backoff is the failover speed.** `backoffMs(hasHealthyPeer=true, …) === 0`. Jittered exponential applies ONLY when down to the last/only host. If you see slow failover, check that a healthy peer is actually being detected (serves-model + not-cooled + not-attempted), not that backoff is misconfigured.
|
|
438
|
+
- **Connect timeout is a SECOND AbortController, cleared once headers arrive.** `streamOneTurn` wires a connect-timeout controller (default 3s) and clears the timer the moment `fetch` resolves - decode stays unbounded (a real model turn can take minutes). The operator-abort bridge stays wired through streaming so a cancel still aborts the body read. The timeout abort carries `CONNECT_TIMEOUT_MARKER`; classification keys off it to tell a dead-host timeout (retryable) from an operator cancel (bail).
|
|
439
|
+
- **Mid-stream drop after bytes were emitted does NOT fail over.** Failing over to a peer after partial output already streamed would double-emit a fresh response. `streamOneTurn` stamps `_emittedBytes` on the error; `streamWithFailover` treats a mid-stream-with-output error as terminal. Pre-byte connection drops do fail over.
|
|
440
|
+
- **Tailscale fallback is best-effort and MUST fail soft (cross-platform).** `resolveViaTailscale` shells out via `execFile` (argv-only, no shell) trying `tailscale` on PATH + `/usr/bin/tailscale` + the macOS app-bundle path, 2.5s timeout, returns null on any error. A missing/erroring Tailscale must never break normal operation. Only fires on a DNS (`ENOTFOUND`) failure, never on a loopback host. Don't make it a hard dependency or add a `which tailscale` precondition that errors when absent.
|
|
441
|
+
- **Back-compat: empty `backends` is the degenerate single-backend case.** `getOllamaBackends` synthesizes one backend from the legacy `baseUrl`→`OLLAMA_URL_BASE`→localhost cascade when `backends` is unset. Probe/status paths (`probeOllama`, `probeOllamaLive`, auth) still use `getOllamaBase()` (the primary backend) - multi-backend changes only the chat path. Don't fan auth/status probes across all backends without an explicit decision (it'd multiply boot-time probe cost).
|
|
442
|
+
|
|
443
|
+
### Ollama prefix-cache byte-stability
|
|
444
|
+
|
|
445
|
+
The prefix cache is the **load-bearing invariant of this whole program** - Ollama only re-prefills the changed tail, so the early region of the request (system block + tool schemas + applied `options`) MUST be byte-identical across a workflow's turns or every turn pays full prefill cost.
|
|
446
|
+
|
|
447
|
+
- **The `options` envelope is the single insertion point for Ollama parameters.** `applyOllamaParams` merges the preset blob into `options` and `keep_alive` at the request root. Do not inject per-turn values such as timestamps, random seeds, or a drifting `num_ctx`; any change invalidates the prefix cache. `clampNumCtx` emits a value only when `/api/show` provides a probe, clamped to the Modelfile value or the architecture context ceiling. Without a probe, omit it. The CTX bar and compaction window use `effectiveNumCtx`, resolved from the operator value, Modelfile value, or daemon default measured from `/api/ps`. Do not treat the architecture ceiling as the active window.
|
|
448
|
+
- **Tool subsetting ranks against the STABLE system block, not the last message.** `ollamaToolSubset` computes the advertised set **once per turn** from the system-block signal so `tools[]` stays byte-identical turn-to-turn. Ranking against the volatile last user message would re-order/re-pick the schema region every turn and flush the cache. The core set (`Read/Grep/Glob/Bash` + cluster tools) is never trimmed; cap is 9 (`ARCO_OLLAMA_TOOL_CAP`), disable with `ARCO_OLLAMA_TOOL_SUBSET=0`. Don't move the ranking signal to the last message.
|
|
449
|
+
- **The fenced-protocol prompt is folded INTO the (stable) system block and must stay PURE.** `buildFencedToolPrompt` is a pure function of the (already-subsetted, already-stable) tool list - no clock, no per-turn user text. Folding it into the system block means it's prefix-cache-stable AND counted by the context-fill estimator for free (the fenced text rides every request where native schemas would). Don't make it depend on per-turn input or the cache breaks and the context-fill estimate goes wrong.
|
|
450
|
+
|
|
451
|
+
### Ollama compaction tool-message invariants
|
|
452
|
+
|
|
453
|
+
Front-trimming the transcript to compact can corrupt the tool-pairing Ollama validates positionally - these repairs are hard-won (ported from odysseus); don't skip them.
|
|
454
|
+
|
|
455
|
+
- **Pairing is POSITIONAL - there is no `tool_call_id`.** Ollama's native message shape pairs a `role:'tool'` result to the immediately-preceding assistant `tool_calls` by adjacency. `sanitizeToolMessages` runs after any cut to drop/repair orphans: a `role:'tool'` with no preceding `tool_calls` (the classic front-cut orphan) and a dangling assistant `tool_calls` with no following result. An orphan makes the daemon 400.
|
|
456
|
+
- **Truncate oversized tool-call args, don't drop the message.** A single tool turn can itself overflow; `truncateToolCallArgs` shrinks the `arguments` to a `{_truncated_for_context: N}` placeholder, **preserving name/type** so pairing survives. Don't delete the whole turn (orphans its result).
|
|
457
|
+
- **Keep system + current + last-10 verbatim; summarize only the older half.** `ARCO_OLLAMA_COMPACT_KEEP_LAST`=10. The leading system block is preserved (a naïve split that drops it breaks the prefix cache and the safety footer). Compaction **fails open** - `deterministicDigest` produces a usable recap when the utility-model summary call returns `null`; never fail closed.
|
|
458
|
+
- **Gate at 0.85 / warn-only at 0.75 / max 1 per turn.** The Ollama worker is stateless per turn, so `maybeCompact` fires at the **front edge** of `run()` (before the tool-loop), not at the end like llama.cpp. Don't move it mid-tool-loop.
|
|
459
|
+
|
|
460
|
+
### Ollama context-window fallback - escalate, don't re-compact
|
|
461
|
+
|
|
462
|
+
- **context-window fallback escalates the window; context compaction owns the transcript.** On a detected overflow, `planCtxEscalation` re-dispatches to a larger window - order is `numctx_bump` (same backend, full probed ceiling, only when `>` the failing window) then `peer_backend` (a known-larger probed window). It does NOT re-summarize; compaction already shrank the transcript and re-running it would lose more for no window gain. Bounded to `MAX_CTX_ESCALATIONS` hops (default 2, no re-pick), with a mid-stream guard so a re-dispatch can't double-emit.
|
|
463
|
+
- **A 400 (context overflow) stays non-retryable AND keeps the host HOT.** This is the same `classifyOllamaError`/`contextOverflow` rule as multi-backend routing - a 400 is the transcript's fault, not the host's. context-window fallback is the path that consumes it; cooling the backend on a 400 would penalize a healthy daemon for an oversized prompt.
|
|
464
|
+
|
|
465
|
+
### Ollama RAG injection is discipline-only
|
|
466
|
+
|
|
467
|
+
- **`ragInjection.ts` is pure primitives with NO live retriever feeding it.** A survey at ship time confirmed no scored retrieval-injection path exists today. Recall is backward-looking FTS5 archive search (never injected); `buildKnowledgeBlock` is an **unranked pinned-facts dump**, not a ranked retriever; codebase-memory is an external MCP tool. Don't mistake `buildKnowledgeBlock` for a retriever, and don't assume `fuseRRF`/`selectTopK`/`buildRagBlock` are wired into any turn - they're the shaped landing zone for a future retriever at the `turnEngine.ts` knowledge-injection site.
|
|
468
|
+
|
|
469
|
+
### Ollama utility job - timeout + thinking (`ollamaUtility.ts`)
|
|
470
|
+
|
|
471
|
+
The utility/summarizer call is `stream:false`, and two non-obvious facts make it silently return the deterministic digest (or an empty summary) if regressed:
|
|
472
|
+
|
|
473
|
+
- **`stream:false` ⇒ TTFB == total.** Ollama sends NO response bytes (not even headers) until generation finishes - verified empirically. So the ENTIRE cold-load + generation lives in the headers-arrival window. The hot path's 3s `OLLAMA_CONNECT_TIMEOUT_MS` is therefore **wrong for this call** - any cold load or any summary taking >3s would abort and fall back to the digest, so a remote/large utility model would *almost never actually run*. The fix: a cheap liveness probe (`GET /api/version`, the short connect budget) fast-fails a dead/hung host, then the real call gets `UTILITY_TOTAL_TIMEOUT_MS` (180s) covering cold load + full generation. Don't "restore" the short timeout on the generation call.
|
|
474
|
+
- **`think: false` is REQUIRED, not optional.** A thinking-capable model (qwen3.5, qwen3, …) left to its default burns the whole `num_predict` budget on `message.thinking` and returns EMPTY `message.content` - a silently empty summary that reads as "the summarizer returned nothing." `buildUtilityRequest` sets `think:false` explicitly; it's a harmless no-op on non-thinking models. Don't drop it.
|
|
475
|
+
- **Fail-soft still applies.** When the host is genuinely unreachable (liveness fails) the caller falls back to the deterministic digest - that's correct. The bugs above were it failing soft when it *shouldn't* have (cold but reachable).
|
|
476
|
+
|
|
477
|
+
### Ollama VRAM context-sizer (`ollamaVram.ts` `computeOllamaFit`)
|
|
478
|
+
|
|
479
|
+
**MEASURE, don't guess.** Max-num_ctx capacity depends on the daemon's KV-cache quant (`OLLAMA_KV_CACHE_TYPE` - f16/q8_0/q4_0 swing it ~4×) and flash attention, which a static arch formula can't know. Two earlier static approaches were both wrong: a param-count heuristic (off ~50% on GQA), then an exact-arch f16 calc (still 4×+ low for an operator running q4_0 KV, which is the *normal* "maximize context" setup). The only reliable signal is the model's actual VRAM.
|
|
480
|
+
|
|
481
|
+
- **`estimateMethod: 'measured-live'` is the trusted path.** When the model is loaded, `/api/ps` gives its real `size_vram` at its real `context_length`. Back out KV/token = `(size_vram − weights) / context_length` (base = on-disk weights, NOT weights+overhead - overhead falls into the slope, which keeps it conservative and, critically, never negative so a tiny q4_0 KV doesn't false-negative to 'needs-load'). Then `maxNumCtx = (totalVram − weights) / kvPerTok`, capped at `contextMax`. This reflects q4_0/q8_0/flash-attention automatically. ONLY this path drives SET TO FIT + the warning.
|
|
482
|
+
- **`'needs-load'`** - dense model not loaded. Don't fabricate a number (can't know the KV quant). Tell the operator to run a turn so it can be measured. No warning.
|
|
483
|
+
- **`'sliding-window'`** (gemma: `*.attention.sliding_window` in `model_info`) - KV is window-bounded, context isn't the VRAM limiter; report the full trained `contextMax`, never warn. (gemma also omits `head_count_kv`, so even a dense calc is impossible.)
|
|
484
|
+
- **`'unknown'`** - no GPU / no metadata. Informational only.
|
|
485
|
+
- **`kvCacheType`** is read best-effort from the local daemon (`systemctl show ollama`, Linux+systemd only) for display - the math doesn't depend on it (the live measurement already reflects it).
|
|
486
|
+
- **Don't reintroduce a static f16 max-context number.** It reads as authoritative and is wrong for anyone running a quantized KV cache.
|
|
487
|
+
|
|
488
|
+
## Cursor
|
|
489
|
+
|
|
490
|
+
Cursor is an ACP provider (`cursor-agent acp`). Current transport details are summarized in `docs/PROVIDERS.md`; these are the load-bearing traps.
|
|
491
|
+
|
|
492
|
+
- **Cluster peer tools ride a loopback HTTP MCP, never stdio.** Cursor ACP advertises `mcpCapabilities:{http:true,sse:true}` and **no stdio** - the stdio child Claude-CLI/Codex members spawn is silently ignored (a stdio `mcpServers` entry is accepted but its tool never called). Cursor members get peer tools from an in-process loopback **StreamableHTTP** MCP server (`server/src/mcp/clusterMcpLoopback.ts`). Don't try to route Cursor through `mcpConfigWriter` / the stdio child.
|
|
493
|
+
- **`clusterMcpTools.ts` is the single source of truth for the tool set.** The stdio child (`clusterMcpServer.ts`) and the loopback both call `registerClusterTools(server, ctx)`. Don't fork tool names / descriptions / REST wiring between transports - edit the factory once.
|
|
494
|
+
- **Fresh-only membership - the exclusion is deliberate.** `mcpServers` is fixed at `session/new`, so the loopback URL can only be injected at worker bootstrap. A Cursor member must be spawned already inside the cluster (cluster creator / FRESH-spawn). A standalone Cursor tab is excluded from `AddWorkerSection`'s EXISTING candidates on purpose - joining it would produce a mute member (session opened without the MCP). **Do not "fix" this by adding cursor to the EXISTING candidates without also solving ACP session re-attach** (session/load with a populated `mcpServers`, preserving the transcript) - otherwise you ship a peer-toolless member.
|
|
495
|
+
- **The loopback listener is per-member, not per-cluster.** `peer_send` stamps `from: workflowId`, so each member bakes its own identity + can't share a URL. It's torn down on `dispose` (`closeClusterLoopbackMcp`); the ctx is refreshed each `beginTurn` so a mid-life task-board attach/detach lands.
|
|
496
|
+
- **`resolveClusterOverrideProvider` skips the mismatch check for explicit `cursor` picks.** Cursor proxies the claude-\*/gpt-\*/glm-\* model families, so a Cursor member on `claude-4-opus` is legitimate - inferring `claude` from the id and rejecting it would be wrong. Only bare `auto` + `grok-*` infer to `cursor`. The reverse (requesting `claude` with a grok id) still trips the mismatch, correctly.
|
|
497
|
+
- **`GET /api/usage-summary` is the ONLY endpoint carrying the included-allocation denominator - don't re-derive it.** The "Included in Pro" gauge (`CursorIncludedGauge`) needs a used/limit denominator that the other dashboard endpoints don't expose for individual accounts: `get-hard-limit` returns only `{noUsageBasedAllowed}`, the legacy `/api/usage` has `maxRequestUsage: null` on usage-based plans, and the endpoint list can't be scraped from the JS bundle (paths built dynamically; the authed page 307s through a separate web-auth). `/api/usage-summary` (GET, session cookie, no CSRF) → `individualUsage.plan.{used,limit,remaining}` cents + `{total,auto,api}PercentUsed` + billing-cycle bounds. `fetchIncludedUsage` is **non-fatal** - if it drifts, `included` is absent and the card falls back to the charged-$ line; don't make it throw.
|
|
498
|
+
- **The gauge bar fills from Cursor's `totalPercentUsed`, NOT `used/limit` - don't "fix" it.** Cursor weights first-party vs API usage differently, so `totalPercentUsed` (0.23 with used=44¢, limit=2000¢) is deliberately not `44/2000`. Filling the bar from `used/limit` would disagree with cursor.com's own Spending page. The dollar caption uses `used`/`limit`; only the *fill* uses the blended percent. `fmtPct` shows `<1%` for a real-but-sub-1% value rather than rounding live usage to `0%`.
|
|
499
|
+
- **Cursor's separate `Other Models` meter is `apiPercentUsed`, not a share of local event totals.** The R-dot hover renders it as a second bar alongside the blended included-plan gauge. Keep both percentages sourced directly from `/api/usage-summary`; dashboard events are bounded/display-oriented and cannot reconstruct either quota safely.
|
|
500
|
+
- **Cursor bakes reasoning effort into the model id - the worker IGNORES `config.primaryEffort`.** Catalog ids carry the effort (`grok-4.5-xhigh`, `-low`/`-high`/`-max`), so there is no separate effort surface. The picker (`CursorModelSelect`) moves family×effort×flags coordinates and then LOOKS UP the exact catalog id (`resolveCursorModelId`) - it never concatenates one; effort display parses the effort back OUT of the id (`parseCursorModelId`), never `config.primaryEffort`. The worker maps the bare id to the ACP bracket-param form (`grok-4.5[effort=high,fast=true]`, Auto = `default[]`). Don't synthesize model ids or thread `primaryEffort` into a Cursor turn.
|
|
501
|
+
- **Cursor COMPACT must send `/compress` as the ENTIRE ACP prompt.** Normal Cursor turns prepend north-star + cluster plan/role/doctrine before `session/prompt`; sending `/compress` through `beginTurn()` therefore bypasses Cursor's slash-command parser and wastes a model turn. `compressConversation()` is the dedicated unprefixed path, gated by the cached `available_commands_update` snapshot when one has arrived. The worker header says `CTX: Cursor-managed` because Cursor ACP still emits no `usage_update` / retained prompt count; dashboard billing totals are not a context-fill signal. No signal means no Cursor threshold auto-handoff - don't manufacture a percentage from bytes or billed tokens.
|
|
502
|
+
- **`sandbox: 'read-only'` is the exclusive signal that routes a Cursor turn to the stateless print path - primitives MUST NOT reuse the ACP worker cache.** Reviewer / fresh-summarizer / DOCS / research / compare primitives carry the *initiating* tab's `workflowId`; the ACP worker is cached per `workflowId` (`workersByWorkflow`), so reusing it would run the primitive INSIDE the operator's live Cursor session (transcript pollution, primary model, read-write). The dispatcher routes `name === 'cursor' && config.sandbox === 'read-only'` to `CursorPrintProvider` (`cursor-agent -p --mode ask`, read-only Q&A) instead. Primary turns never set `sandbox: 'read-only'`; the handoff/summarizer spawn does (`exportContext.ts`, load-bearing for this routing). Task-child / spawn-from-here tabs carry their own `workflowId` and no read-only sandbox, so they keep the full ACP worker.
|
|
503
|
+
|
|
504
|
+
## Chat / UI
|
|
505
|
+
|
|
506
|
+
- **Store retention is already comprehensive - don't "fix" a memory report by re-adding caps.** Every hot array is capped on append (`memoryTrim.ts`: messages/sessionChat 500, activity 500, historyEvents 1000, workers 80, turnTokenUsage 200, plus per-field byte caps), `removeJob` drops the `JobState` + revokes attachment blob URLs on tab close, persist `partialize` strips workers, and an A1 audit of every component interval/observer/listener + the `useWebSocket` reconnect path found no leak. If a session still grows in RAM, **measure before changing code**: enable the `MemoryHud` (`?memhud=1`) and read `getRetentionStats()`. Heap up + counts flat ⇒ the leak is non-store (detached DOM, highlight cache, blob URLs, the Preview iframe) - chase that, don't lower a cap. A per-tab count climbing unbounded ⇒ a specific append path is bypassing its cap - fix that path. Invariants: `client/src/stores/retentionStats.test.ts`.
|
|
507
|
+
- **Auto-scroll uses imperative `el.scrollTop = el.scrollHeight - el.clientHeight`**, not `virtualizer.scrollToIndex`. Two fire paths in `ChatPanel`: a `useLayoutEffect` keyed on `[virtualizer.getTotalSize(), visibleRows.length]`, and a `ResizeObserver` on the inner height wrapper. Don't reintroduce `scrollToIndex` in the auto-scroll path - its cached-offset arithmetic is always one frame stale during streaming.
|
|
508
|
+
- **Voice intent re-pins the selected transcript.** `chatFollowStore` retains
|
|
509
|
+
one transient targeted request across panel mounting/reuse. Voice selection,
|
|
510
|
+
back and successful sends/nudges to the selected worker resume follow;
|
|
511
|
+
failed sends, unrelated recipients and background output do not. A later
|
|
512
|
+
manual scroll-up still unpins. Never force follow on every streamed chunk.
|
|
513
|
+
- **`displayMessages` must be memoized on `[job.sessionChat, job.messages]`** - a fresh array ref every render makes dep-less effects fire on every keystroke. `visibleRows` (the virtualizer input, which layers the PRIOR-SESSIONS pill on top) must also be memoized on `[displayMessages, priorSessionsExpanded]` for the same reason.
|
|
514
|
+
- **`ChatPanel` virtualizer passes `getItemKey`** from `visibleRows[i]?.key`. Message rows key by `message.id`; the synthetic prior-sessions pill keys by the literal string `'prior-sessions'`. Default index-keyed measurements leak stale row heights onto new rows when `session_entry` arrivals sort-insert. Don't let a new row type land in `visibleRows` without a stable `key`.
|
|
515
|
+
- **Virtualizer uses a per-row `estimateSize`, not a flat constant.** Rows span wildly different heights (tool-use pill ~36px, system ~44px, user 80px, prior-sessions pill 44px, `LongUserMessage` pill ~55px, assistant scaled by content length clamped 90-640px). A flat estimate causes visible scroll jitter when off-screen rows settle to real heights on scroll-up - `getTotalSize()` jumps hundreds of pixels and shifts every row's `vi.start` mid-scroll. `overscan: 16` (raised from the tanstack default) lets more off-screen rows pre-measure before entering the viewport. Don't collapse back to a constant without confirming jitter regression.
|
|
516
|
+
- **Jump-to-bottom button uses a 200px threshold, separate from the 40px `pinnedToBottom` slack.** The button surfaces only on meaningful scroll-away, not on row re-measure drift. `pinnedToBottom` stays as a ref (load-bearing for auto-scroll, can't re-render per scroll event); `showJumpToBottom` is separate state that flips only on threshold crossings. React's same-value update dedup keeps the scroll handler cheap even though it calls `setState` every tick.
|
|
517
|
+
- **Passthrough-bubble dedup has two paths, not one.** Exact-prefix match against `sessionAssistantConcat` is the fast path; when it fails (whitespace drift between streamed deltas and JSONL writes, or a `tool_use` interleave collapsing a gap in the concat), a whitespace-normalized coverage check decides whether to drop the streaming bubble or keep it pinned. Dropping when normalized `sessionChat` covers ≥90% of the streaming content loses a few in-flight tokens for one frame (until `primary_complete` flips `isStreaming: false`) but avoids rendering the whole turn twice, which is what the old pin-to-bottom fallback did. Don't simplify back to exact-prefix-only.
|
|
518
|
+
- **Optimistic user `timestamp` is carried onto the sessionChat echo**, not just `attachments`. The optimistic add uses client `Date.now()`; the sessionChat echo uses Claude's JSONL wall-clock (different clock, can land seconds later). Sorting by the echo's timestamp caused large pastes to visually reorder relative to streaming/system messages already above them. Same content-prefix + 5s proximity key used for the attachments merge.
|
|
519
|
+
- **Both render paths sort by timestamp.** The merged path (sessionChat + extras) sorts at the end. The early-return path (when `sessionChat` is empty - non-Claude providers, or fresh workflow before JSONL is populated) **also** sorts. Without this, frames that arrive out of order on the wire (long pauses between text chunks, reconnect replay) render in arrival order and the chat looks scrambled. Both branches must stay sorted.
|
|
520
|
+
- **The queue strip's source of truth is `job.queue`, not `job.messages.queued`.** introduced server-authoritative queue snapshots: the server emits `queue_update` on every mutation (enqueue / drain / cancel-one / cancel-all), and the strip in `QueuedMessagesIndicator.tsx` renders directly from `job.queue.steering` + `job.queue.followUp`. The optimistic `ChatMessage.queued` flag is still set on the originating tab so the operator sees their own send echoed instantly, but the strip's render no longer reads from there. This gives replay-on-reconnect coherence (the latest `queue_update` in events.jsonl is the definitive state) AND survives the 30 s `onRehydrateStorage` rule that prunes stale optimistic queued messages on reload.
|
|
521
|
+
- **Interrupt and send preserves the primary claim through provider teardown.** `kind:'interrupt'` is a priority entry in the steering bucket, excluded from `drainSteerForWorker`; its correction runs separately before older queued messages. Never implement this as client CANCEL + resend: CANCEL clears the queue and revokes the claim before asynchronous teardown. CLI interrupt waits for actual child exit; Native waits for `runTurn` and carries forward a correction cancelled before `turnInputAccepted`; Codex app-server deduplicates concurrent interrupt/STOP waiters. STOP/removal must still prevent a queued correction from starting. Interrupted work never arms or extends Goal Run. Queued picks, refs, attachments and IDs follow their own instruction. Pinned by `test:interrupt-send` + isolated `smoke:interrupt-send`.
|
|
522
|
+
- **Steer vs follow-up delivery depends on transport.** Claude Native and local loops drain between tool results and the next API request; Codex app-server drains on `item/completed`. Single-shot transports drain after completion. The server orders pending interrupts first, then remaining steering before follow-ups. A normal steer never aborts an API request to arrive sooner.
|
|
523
|
+
- **Mid-turn steer delivery boundaries (Ollama + llama.cpp).** The hook lives in `OllamaWorkerProcess.run` / `LlamacppWorkerProcess.run` between `messages.push(...toolResults)` and the next `streamOneTurn`. Server-side `drainSteerForWorker` *splices* the whole steering bucket (drain-all, not shift-one) and broadcasts `queue_update` + `queued_messages_drained`; the originator's `user_message_echo` was emitted at enqueue time in `handleUserMessage` (shape, unchanged) and is the authoritative transcript record - the drain hook does not re-echo. Three invariants here that future edits must not break:
|
|
524
|
+
- **Splice is destructive; same-iteration re-call returns `[]`.** This is the only mechanism preventing double-deliver under llama.cpp's auto-continue path (which fires on the same iteration after the drain). If you replace `splice(0)` with a non-destructive read, you must also gate the call site against re-entry.
|
|
525
|
+
- **Recovery arms in llamacpp.ts (`reasoning_runaway` / `stall` / `wall_clock` / `empty_completion`) `continue` *before* reaching the drain hook.** They inject their own synthetic user message and intentionally don't see the queue; they're conversation-repair flows, not normal-flow delivery points. If a future recovery arm wants to flush pending steers, it must call the drain hook explicitly - placing the hook above the recovery branches would cause their injected messages to interleave incorrectly.
|
|
526
|
+
- **Mid-turn steer attachments fold to text references (`[attached file: <path>]`), not re-encoded binaries.** The post-turn merged drain still encodes attachments via the provider's normal `buildMessages` path, so a follow-up-with-image queued on a busy tab continues to work as before. Mid-turn image re-encoding for Ollama's `images: [...]` / llama.cpp's `image_url` parts is deferred until a real ask.
|
|
527
|
+
- Steer pending while a worker is mid-API-call delivers on the *next* iteration. Arco does not abort in-flight provider calls to land a steer faster - same posture as the post-turn drain.
|
|
528
|
+
- **Pinned Arco skills store references, never body snapshots.** `WorkflowConfig` / `meta.json` carry only `{scope, slug}`; `turnEngine` re-runs `resolvePinnedSkills` and rebuilds the standing system block every primary turn. This is what makes SKILL.md edits immediate and lets pins survive Native Fold/compaction, Handoff, reload, and restart. Keep one-shot `pickedSkills` in the user-prompt path and pinned skills in the system-prompt path. Pin replacement is bounded (`MAX_PINNED_SKILLS` + aggregate byte cap), persisted before `pinned_skills_set`, and project pins intentionally bypass DD7 discovery suppression because clicking PIN is the operator's explicit vouch. Missing/deleted skills are skipped visibly, never silently auto-unpinned.
|
|
529
|
+
- **The composer's busy-Enter / Alt+Enter / Alt+↑ / Esc bindings are load-bearing.** `TerminalInput.tsx` `handleKeyDown` checks `isComposing` (IME guard - Enter inside an open candidate window must commit, not submit) and disambiguates by modifier:
|
|
530
|
+
- Idle + `Enter` → send (start a fresh turn)
|
|
531
|
+
- Busy + `Enter` → enqueue as steer
|
|
532
|
+
- Busy + `Alt+Enter` → enqueue as follow-up
|
|
533
|
+
- Busy Claude/Codex + `Ctrl/Cmd+Enter` → interrupt and send next
|
|
534
|
+
- `Shift+Enter` → newline (preserved in every state)
|
|
535
|
+
- `Alt+↑` → recall most recent queued message into the editor (last follow-up else last steer)
|
|
536
|
+
- Busy + `Esc` → cancel turn; if queue non-empty, `window.confirm("Drop N queued messages?")` first
|
|
537
|
+
- Busy + `Shift+Esc` → force-cancel without the prompt
|
|
538
|
+
- Idle + `Esc` (empty composer) → cancel last queued message (legacy muscle-memory; rare since the strip's [×] is the primary path)
|
|
539
|
+
|
|
540
|
+
Cancelling an in-flight turn drops the queue too - this matches today's behaviour but is now made explicit (the confirm prompt names the count). Don't add additional Enter behaviours without rechecking IME composition + modifier disambiguation.
|
|
541
|
+
- **Queued interjections are hidden from the chat log, not just tagged.** `ChatPanel.tsx` filters `m.queued === true` out of `displayMessages` in both the normal extras pipeline AND the `sessionChat.length === 0` early-return path (both filters must stay - the early-return window covers fresh workflows, post-reload replay gaps, and non-Claude providers that never emit `session_entry`). Queued entries surface only in the composer-adjacent `QueuedMessagesIndicator` (pill + preview modal) until the corresponding `session_entry` (Claude's JSONL user-turn write) arrives - at that point the `session_entry` case in `client/src/ws/handleServerMessage.ts` removes every queued optimistic whose 120-char content prefix appears as a substring anywhere in the drained prompt, and lets the sessionChat entry render as the sole visible copy. Removal-on-`session_entry`, not flip-on-echo: the server's `user_message_echo` fires at enqueue time, minutes before Claude actually processes the drained prompt, so using it to flip `queued:false` would (a) surface the message in chat during the wait, and (b) leave the later sessionChat entry to double-render once the 5s content-prefix dedup proximity window blows. The match rule is **substring, not equality**, because the server merges the entire queue into one `\n\n`-joined follow-up turn - a single `session_entry` can resolve N queued optimistic entries at once. Scanning is `queued:true`-only, so a regular (non-queued) send that happens to quote an old queued prefix can never accidentally remove one. Do NOT route queued messages through the 5s sessionChat dedup by unhiding them and relying on proximity; that window cannot span an arbitrary queue wait. The one-turn merge and its client-side matching rules must be changed together.
|
|
542
|
+
- **Queue drains as a single merged turn, not one turn per queued message.** the turn-drain loop in `server/src/ws/turnEngine.ts` `splice(0)`s both `wf.queue.steering` and `wf.queue.followUp` (steering first) after the current turn settles, joins contents with `\n\n`, flattens attachments, and runs one follow-up turn. Prior behavior drained one-per-iteration; flipped on 2026-04-23 because operators typically stack queued messages as cumulative thoughts and want one integrated reply. Don't revert without thinking through the client-side consequences - the `session_entry` substring match above depends on the merged prompt containing every queued prefix; going back to one-per-turn needs the match to revert to "equals" + oldest-tiebreak in the same commit.
|
|
543
|
+
- **`onRehydrateStorage` drops `queued:true` entries older than 30s.** A genuinely-just-queued optimistic transitions to visible-in-chat within seconds of the server drain (via the `session_entry` removal above), so 30s+ is definitionally stale - either a ghost from before the removal path landed, or a server-restart case where the client kept the optimistic after the in-memory `pendingInterjections` queue was lost. Dropping (not clearing the flag) is safe because sessionChat already has the real copy once Claude processed the prompt; keeping the stale optimistic around would double-render on that arrival, since the 5s content-prefix dedup can't bridge the gap.
|
|
544
|
+
- **`FileViewerModal` is portaled to `document.body` via `createPortal`** so `position: fixed` escapes the chat virtualizer's transformed ancestor. Don't regress anywhere the modal is used.
|
|
545
|
+
- **Long-session hydration is tail-first**: server splits `loadSessionJsonl` into `earlier` + `tail` (last 200), emits only `tail` as `session_entry`, stores `earlier` on `WorkflowState.pendingEarlierEntries`, sends `SessionHistoryStatusMessage { hasEarlier, earlierRemaining }`. Client renders "↑ LOAD EARLIER MESSAGES" pill; click dispatches on `earlierSource` (`'ws'` for JSONL queue, `'transcript'` for REST paging). Scroll preserved via pre-click `scrollHeight` capture + post-layout shift. `MAX_CHAT_MESSAGES` cap removed from `upsertSessionChat` (would drop oldest-of-tail first under paged inserts). events.jsonl replay on reconnect is deliberately untouched - lastSeq-gated; partial replay risks stranding streaming `primary_text` without matching `primary_complete`.
|
|
546
|
+
- **Chat renders Claude tool_use blocks inline** as `ToolCallPill` between assistant bubbles. `toSessionEntries` emits `tool_use` entries alongside `message` entries (discriminated `SessionEntryMessage.entry`); `ChatMessage` dispatches on `message.toolUse`. Claude-only (uses session JSONL). Inline pills for Codex would need a rollout-file watcher parallel to Claude's session-JSONL watcher.
|
|
547
|
+
- **Seed-bubble pills are detection-string-coupled to the server - three consumers.** `HandoffSeedPill` matches `startsWith('[HANDOFF - new session initialized for this tab.')` emitted by `handleHandoffRequest`; `ChatPanel`'s PRIOR-SESSIONS compression uses the same prefix to find handoff boundaries; `server/src/primitives/reviewContent.ts` uses it again to scope the `current-session` Review option. `SpawnSeedPill` matches suffix `\n\n---\n\nNew direction: ` or `\n\n---\n\nRead the handoff above. Acknowledge with "READY"` emitted by `handleSpawnFromHereRequest`. Change the seed string and all four sites go silently dormant - compression stops grouping, Review `current-session` degrades to `full`, pills render as regular long-user messages. Change detection + server strings together.
|
|
548
|
+
- **Long-user-message auto-collapse thresholds** (`ChatMessage.tsx`): 800 chars OR 12 lines. Pastes over either threshold route to `LongUserMessage` pill (expandable, same pattern as `HandoffSeedPill`). Attachment chips stay visible on the collapsed pill so operators can see what was sent. Content is always sent verbatim to the agent regardless of render state - only composer transform is `value.trim()` at `TerminalInput.handleSubmit`.
|
|
549
|
+
- **Prior-sessions compression collapses everything through the _most recent_ handoff seed** - one pill at the top, not nested per-handoff. Expanding re-inlines the full history with intermediate handoff seeds rendering as their own `HandoffSeedPill` pills (stacked handoffs still navigable). Message count for the label filters out `toolUse` entries so "N messages" reflects real turns, not tool-call rows.
|
|
550
|
+
- **Operator-message and `LongUserMessage`-expanded text is linkified via `utils/linkify.tsx`**. Operator messages render as plain text (no markdown, intentionally - operator markdown in the composer would be surprising), so the linkifier is the only path that makes URLs clickable there. Assistant messages go through remark-gfm + the `a → target="_blank"` override and don't need it. Linkifier strips trailing punctuation (`. , ; ) ]`) off the URL so "see https://example.com." links the URL and leaves the period.
|
|
551
|
+
- **Attachment pills open `FileViewerModal`, not a custom viewer.** `AttachmentPill` (used by `ChatMessage` + `LongUserMessage`) opens the uploaded file's absolute path via `/api/file-content`. Uploads live at `<repo>/uploads/<id>-<name>` (see `POST /upload`); the file-content endpoint resolves arbitrary absolute paths, so no extra plumbing is needed for the attachment case.
|
|
552
|
+
- **Client `sessionChat` is deliberately NOT cleared on `handoff_complete`** - pre-handoff content stays visible above the `[HANDOFF]` marker for continuity.
|
|
553
|
+
- **`ChatMessage.tsx` ReactMarkdown overrides `a → target="_blank" rel="noopener noreferrer"`** so URLs the primary emits don't navigate the Arco tab away. Other ReactMarkdown sites (modals/dialogs) deliberately unchanged until a concrete report hits them.
|
|
554
|
+
- **`TerminalInput.isBusy` is a three-way OR**: `(job.busy === true) || hasActiveWorkers || hasStreaming`. Any code path that ends a turn must clear all three, or the composer stays locked in interjection mode. Normal turn-end works because `primary_complete` fires `finalizeMessage` (flips the live message's `isStreaming: false`) and `primary_turn_ended` fires `endPrimaryTurn` (flips `busy: false`). The cancel path skips `primary_complete` - `endPrimaryTurn` therefore also walks `job.messages` and finalizes any `isStreaming: true` entries itself (matches `applyWorkflowSnapshot`'s behavior when it sees `busy: false`). `recordTurnCancelled` does the same defensive clear so the cancel path doesn't depend on a trailing `primary_turn_ended` to unstick the composer. If you add a new "turn ended" event, either route it through `endPrimaryTurn` or replicate the streaming-finalize step explicitly.
|
|
555
|
+
- **The composer diagnostic chip (`b·w·s`) is intentional, not debug noise.** Renders next to CANCEL whenever `isBusy` is true. Tells the operator (and the next agent debugging a stuck composer) which of `busy` / `activeWorkers` / `streaming` is keeping the composer in queue mode. If you remove it, you lose the one-glance diagnostic for stuck-composer reports.
|
|
556
|
+
- **Late `primary_text` frames must be finalized AND coalesced, not opened as fresh streams nor split one-bubble-per-delta.** The server's turn-settle path resolves on a microtask, so a `worker_text` event dispatched between the parser's `result` and that microtask broadcasts AFTER `primary_turn_ended` has already cleared `isStreaming` and `busy` on the client. The naive `if (!ref[key]) { mintFreshStreamingMessage(...) }` path created a new `isStreaming: true` message that nothing would ever finalize (`primary_complete` already fired), and the composer stayed pinned in queue mode (`b0·w0·s1`) until the next turn. The first fix (commit `435f060`) pushed each not-in-progress chunk as its own *finalized* message - which unstuck the composer but introduced a worse symptom: a late burst is rarely one chunk (the final answer can stream as dozens of deltas after `primary_turn_ended`), so the answer fragmented into a stack of one-token `< ARCO :: PASSTHROUGH` rows. That fragmented state then persisted to localStorage and reappeared verbatim on reload, while a clean seq-ordered RESUME replay (where the text sits *before* `primary_turn_ended` on disk) showed it coalesced - the exact divergence operators reported ("reload looks shattered, resume looks fine"). Current fix in `handleServerMessage.ts`'s `primary_text` handler: in the not-in-progress branch, reuse `ref[key]` as a coalesce target - first chunk mints ONE `isStreaming:false` bubble, subsequent chunks append. Same path also covers a `rehydrate_workflows` replay whose window opens mid-turn (`clientLastSeq` fell between turn start/end, so the bracketing `primary_turn_started` was never re-sent → `turnInProgress` stays false for the whole replayed burst). Because the late branch now SETS `ref[key]`, `primary_turn_started` must also null the phase refs (it didn't before) so a stale late ref can't leak into the next turn and absorb its text. Don't simplify back to per-delta messages. Regression guard: `client/src/ws/lateText.test.ts` (`npm run test:late-text -w client`). (Originating fix: commit `435f060`; coalesce fix: this branch.)
|
|
557
|
+
- **Help-mode CSS depends on the `help-system-ui` escape hatch class.** When `body.help-mode` is set, `styles/contextual-help.css` rules disable pointer events on `#root` and re-enable them only on `[data-help]` and `.help-system-ui` elements. The help-system-ui class is the only thing keeping `HelpButton`, `HelpBanner`, `HelpPopover`, and `DocViewer` interactive while help mode is on - rename or drop it without rewriting the CSS and the help system itself goes inert (button click does nothing, no way to exit besides Esc). The class also survives the `[data-help] *` pointer-events:none cascade because the CSS rule applies to `.help-system-ui` and all descendants. Nested native button/select help targets need a noninteractive wrapper:
|
|
558
|
+
the help-mode CSS deliberately disables native controls inside `[data-help]`.
|
|
559
|
+
ProvidersPopover's outside-click handler must ignore `.help-system-ui` so
|
|
560
|
+
entering help leaves its version chips mounted. Originating commit:
|
|
561
|
+
contextual help system landing; Strata audit follow-up 2026-10-15.
|
|
562
|
+
- **`DocViewer` Escape uses capture-phase to beat `UserManual`'s window-level Escape.** Both modals listen for Escape at the window level - without capture-phase ordering, hitting Esc inside DocViewer would close both the file viewer AND the manual underneath it (visible as the manual flashing closed alongside DocViewer). DocViewer's handler is registered with `{ capture: true }` and calls `stopPropagation()` so the manual's bubble-phase handler never sees the event. If you add a third stacked modal in this family, register its Escape handler with capture too and stop propagation - don't rely on z-index alone.
|
|
563
|
+
- **`handleCancel` broadcasts turn-end unconditionally** (`server/src/ws/workflowHandlers.ts`). Prior version only called `wf.manager.killAll()` + `wf.busy = false` and relied on the worker-kill path's synthetic-error → `settled` → `seedWorker`'s `primary_turn_ended` emission. That only fires when a worker was actually in `running`/`spawning` state. For ghost cases (already-settled primary worker, post-restart orphan state, emission-ordering bugs) the kill loop is a no-op and the UI stays stuck forever with every CANCEL click silently doing nothing. Fix is an escape hatch: `handleCancel` now also sends `turn_cancelled` (the only emitter of this message type - its client case in `client/src/ws/handleServerMessage.ts` was dead code until this fix) and `primary_turn_ended` directly. Idempotent with the worker-kill path; don't collapse back to "only kill the worker."
|
|
564
|
+
|
|
565
|
+
## Themes / shaders
|
|
566
|
+
|
|
567
|
+
- **Composer drafts live in `stores/draftStore.ts`, NOT `appStore` - this is a performance boundary.** Zustand notifies *every* subscriber of a store on every `set()`, and appStore has several hundred mounted subscriptions (some looping over clusters/members). While drafts lived there, each keystroke paid the whole fan-out: a benchmark found that every keystroke notified all subscribers, and the cost was script in the `oninput` listener rather than CSS/layout. Keep drafts in the dedicated store; retain only a reproducible benchmark fixture rather than machine-specific measurements. This also explains why cluster tabs typed slower than single-worker tabs: more subscribers mounted, identical keystroke. `setDraft` / `clearDraft` remain on appStore as **delegating wrappers** so ReviewTab, the terminal→composer bridge and the seed-prompt handler are unchanged. Don't move drafts back, and don't "simplify" the wrappers away.
|
|
568
|
+
- **`TerminalInput` must not subscribe to the draft.** The textarea and the `@`-ref chips are separate memoised components (`ComposerTextarea`, `ContextRefChips`) that own the subscription; TerminalInput's handlers read it non-reactively via `readDraft()`. Reintroducing a `useDraftStore(s => s.drafts[...])` in TerminalInput drags ~2,500 lines (toolbar, chips, status, nine dialogs) back into every keystroke.
|
|
569
|
+
- **`ChatMessage` is memoised and its props must stay referentially stable.** ChatPanel virtualises with `overscan: 16`, so ~30 rows are mounted, each rendering react-markdown + rehype-highlight. Without memo, any ChatPanel re-render re-rendered all of them - and in a live cluster ChatPanel re-renders constantly (several components subscribe to whole `s.jobs` / `s.clusters` maps, which change identity on every worker event). The memo only works because `writtenFiles` / `onMakeTask` are `useMemo`'d in ChatPanel and `message` is a store object. Add an unstable prop and it silently stops helping.
|
|
570
|
+
- **No `[style*="..."]` attribute-substring selectors in theme CSS.** An attribute-substring match on `style` is re-matched whenever any element's inline style attribute changes, and the composer's auto-resize writes `style.height` on every keystroke. Prefer class-based sites for the Arch theme's pulse override instead of an attribute-substring match on style.
|
|
571
|
+
- **The decorative shader and xterm.js are code-split behind lazy gates - don't import them statically.** `ThemedBackgroundShaderImpl.tsx` (three.js 636KB + 120KB of `?raw` GLSL) is reached only via `ThemedBackgroundShader.tsx`, which checks `shaderPreset` *before* touching the heavy module, so `shaderPreset: 'none'` themes never fetch the chunk. `XtermView.tsx` (~290KB) is reached only via `XtermViewLazy.tsx`. A static import from anywhere collapses the split and puts ~866KB back in the main chunk (4,367 → 3,501KB when it was done).
|
|
572
|
+
- **A new theme needs three coordinated edits - the `VALID_THEME_IDS` allowlist is the always-forgotten one.** A palette theme needs (1) its definition file under `client/src/themes/definitions/`, (2) registration in `client/src/themes/registry.ts` (`THEME_REGISTRY`), and (3) its id added to `VALID_THEME_IDS` in `shared/src/protocol/themes.ts`. Miss (3) and the theme silently reverts to the default on select (the id fails the shared allowlist gate) with no error - the hardest of the three to diagnose because the def + registry look complete. `provider-auto` is a sentinel in the list, not a palette; provider tints (e.g. `PROVIDER_THEMES.cursor`) resolve under it and are NOT separate `VALID_THEME_IDS` entries.
|
|
573
|
+
- **Decorative shader rAF loop is throttled and visibility-paused.** `ThemedBackgroundShader` routes per-frame work through `client/src/utils/rafThrottle.ts`, which caps the loop and stops calling rAF while `document.hidden`. Keep both protections so background tabs do not run an unnecessary animation loop.
|
|
574
|
+
- **Per-preset fps cap, not a global one.** `LOW_FPS_PRESETS` in `ThemedBackgroundShader.tsx` runs discrete/noisy/slow-atmospheric presets (matrix-rain, amber-crt, blueprint-grid, film-grain, star-drift, aurora, nebula, sentinel, cicada) at 24fps; smooth fast-motion presets (liquid-glass, watercolor) stay at 30. The eye picks up stutter on continuous fast motion but not on cell-quantized or slow content. Theme switches restart the rAF with the right fps. Don't unify back to a single fps without measuring - 24 vs 30 is a real ~20% compositor-upload reduction on the matched presets.
|
|
575
|
+
- **The renderer is `alpha: false` (opaque framebuffer).** `ThemedBackgroundShader` clears to `0x000000`; the page background uses the same `--color-bg` token, so an opaque canvas avoids an extra blend without changing the visible result. Do not enable alpha without a concrete requirement.
|
|
576
|
+
- **Do not restore the bloom-overlay companion canvas.** Its second WebGL pipeline and full-screen blur/screen blend forced a compositor read-back each frame for a haze effect rather than useful detail. Per-element glow remains available through CSS `text-shadow` and `box-shadow`.
|
|
577
|
+
- **A continuous WebGL loop can keep the GPU active while a scene appears idle.** Do not treat utilization alone as evidence that shader work is saturated. Keep render loops throttled and paused while the document is hidden; reducing frame rate alone may not change the graphics stack power state.
|
|
578
|
+
- **Background-shader rule: no smooth radial gradients on dark themes.** 8-bit alpha compositing produces visible posterization rings on low-amplitude radial vignettes / noise washes / breathing blobs against near-black. Even with per-pixel ±1/255 dithering the bands persist because the gradient lives across only a few alpha bytes. Strip such effects entirely; rely on structural elements (particles, streaks, grids, dots, vein lines, scanlines, hard-edged cells) to carry the theme. Originating pass: 2026-04-27 sweep across Sentinel, Cherenkov, Sonar, Tarkovsky, Bloodmoon, DSKY, Oscilloscope, Cassette Futurism, Noir, Aurora, Nebula, Midnight Tokyo, Abyssal, Cicada, Kintsugi, Night City, Stealth, Concrete, Voyager, Arrakis, Amber CRT, Infrared. Light-mood themes (Solar Paper, Frutiger, Blueprint, Dark Academia, Braun, Holographic, Seismograph) untouched - banding doesn't show against light backgrounds.
|
|
579
|
+
- **Star-twinkle / shimmer was operator-rejected on Aurora & Nebula.** Stars there now drift on per-star hashed velocity vectors at fixed brightness, wrapping the viewport. If you re-add brightness modulation, gate it behind a setting; default off.
|
|
580
|
+
- **`.arco-led` base style has NO `filter: drop-shadow`.** Filters force every LED into its own GPU compositor layer regardless of state, so the previous base-class drop-shadow was paying layer-promotion cost for every nominal/idle LED forever. The 3-layer `box-shadow` provides the halo; the visual diff is subtle on small round LEDs. Warning/critical keyframes reapply `filter: drop-shadow` for the duration of their animation only - that's where it pulls visual weight. Don't put `filter:` back on the base.
|
|
581
|
+
- **Nominal LEDs are static (no breathing animation).** `.led-breathe-nominal { animation: none }` - only warning and critical breathe. Most LEDs in Arco's UI are nominal most of the time; animating them was constant compositor work (filter + box-shadow interpolation per LED) for no signal. Don't reintroduce a "calm pulse" - a steadily-glowing dot reads as "on" without animation, and reserving motion for the meaningful states (warning / critical) makes those states more legible.
|
|
582
|
+
- **`body::before` tension vignette is gated on `body.tension-active`.** `useTension` toggles the class when the scalar crosses 0.05; CSS only creates the pseudo-element under the active class. Earlier the element was unconditional with `opacity: calc(var(--tension) * 0.18)` - a fixed full-screen layer at z:9998 sits in the compositor tree even at opacity:0, costing per-frame compositor work when nothing's wrong. Don't drop the gate.
|
|
583
|
+
|
|
584
|
+
## Cross-platform
|
|
585
|
+
|
|
586
|
+
- **Arco runs on Linux (primary dev machine) and macOS (secondary).** Any server-side shell-out or spawn needs to work on both. GNU-only flags, Linux-only binaries, and `/proc/` reads without a fallback are the usual traps. Concrete rules:
|
|
587
|
+
- **No `setsid` binary.** Not installed by default on macOS. Node's `spawn(..., { detached: true })` already calls `setsid(2)` on POSIX and gives you the same new-session / no-controlling-terminal behavior for free. `nohup` is also redundant once `stdio: 'ignore'` + detach is in place. A restart path that `spawn('setsid', ...)`'d would silently `ENOENT` on Darwin.
|
|
588
|
+
- **Shell scripts target bash 3.2+.** macOS ships bash 3.2 by default. `set -uo pipefail`, POSIX traps, `||` short-circuits are all fine. Bash-4 features like associative arrays (`declare -A`), `[[ =~ ]]` with `BASH_REMATCH` quirks, `readarray`, or `${var,,}` lowercase-expansion do not round-trip.
|
|
589
|
+
- **`/proc/` reads need a platform check or a fallback.** `processActivity.ts` is Linux-only by design (gated); copy that pattern for anything else that peeks at `/proc`.
|
|
590
|
+
- **`pkill -f` works on both platforms** but beware: macOS's `pkill` is BSD, which matches against `argv[0]` truncated at 16 chars by default for `-f` purposes; Linux matches full cmdline. If you're doing pattern-based process targeting, test on both or switch to PID-based targeting.
|
|
591
|
+
|
|
592
|
+
## Persistence / workflow lifecycle
|
|
593
|
+
|
|
594
|
+
- **Every JSON/text store writes through `server/src/atomicFile.ts`** (`atomicWriteFile`, or `atomicWriteFileSync` for the two PID registries that write from the shutdown path). Do NOT hand-roll `tmp + rename` in a new store - there used to be ~20 such sites and 11 byte-identical private `atomicWrite` helpers, all of them missing the fsync and the failure-path cleanup. The temp MUST stay in the target's own directory: `rename` is only atomic within one filesystem, so a temp in `os.tmpdir()` silently degrades to a copy across mounts.
|
|
595
|
+
- **The fsync before the rename is the load-bearing part.** `rename` orders the directory entry, not the bytes - without the flush a crash can leave a **zero-length file where a good one used to be**. Pass `durability: 'advisory'` ONLY for best-effort telemetry that already swallows its own write failures (`recent-files.jsonl`, `skill-usage.json`). Never for `meta.json`, `trust.json`, `settings.json`, `known-cwds.json`, or the PID registries. The parent directory is deliberately NOT fsynced: losing the rename leaves the previous good file, which is safe; a truncated file is not.
|
|
596
|
+
- **An atomic write does NOT make a read-modify-write safe.** Unique temp names stop two writers colliding on the rename; they do nothing about two readers loading the same old state and the second write dropping the first one's mutation. Any store that reads-then-writes must wrap the whole critical section in `withFileLock(key, fn)` - currently `patchSettings()`, `writeTrustDecision()` / `removeTrustDecision()`, `rememberCwd()`, `recordSkillRead()`, `updateMeta()` (every `workflowMeta.ts` RMW helper), cluster meta setters, the cluster plan bridge, `planStore.ts` index mutators, `session-index.json`, and task-ledger comment appends. The lock is not re-entrant - a locked export called from inside another's critical section on the same key deadlocks; use the `*Unlocked` twin. Adding a field to one of those is fine; moving the read outside the lock re-opens the bug.
|
|
597
|
+
- **`events.jsonl` is append-only and must never be written through `atomicFile.ts`.** It goes through `workflowStore.ts`'s append path; rewriting it whole would break seq continuity and lossless replay.
|
|
598
|
+
- **Cluster mailbox writes MUST stay atomic (`clusterMailbox.ts`).** Not for crash-durability - mailbox files really are ephemeral - but because `drain` runs concurrently with `peer_send` (two members, same process, independent async tool calls). `readMessageFile` collapses ANY parse error to `null`, and `drain` treats `null` as "stale" and **unlinks the file**. So a reader that observes a half-written message destroys it outright, with no `peer_message_received` in the recipient's log - silent cross-member message loss, the same class DD3's file-mutation queue closed for edits. The safety comes from the temp being renamed in under a `.tmp` name while every reader filters `.endsWith('.json')`. Do NOT "simplify" these back to `fs.writeFile`; `npm run test:atomic-file` pins the property.
|
|
599
|
+
- **The snapshot manifests in `clusterSnapshots.ts` are the real exception** - written inside a hidden staging directory that is itself atomically swapped, so a plain `writeFile` there is correct and converting them buys nothing. Same for the `tempDir` paths in that file: those are directory swaps, not file replacements, and `atomicFile.ts` does not apply.
|
|
600
|
+
- **Any new workflow-creation path MUST `await initWorkflowStore(cwd, wfid)` before first broadcast** - otherwise `seq` restarts from 0 and events.jsonl replay corrupts on next reconnect.
|
|
601
|
+
- **Calibration `{ratio, overhead, lastGroundTruth}` is persisted to `meta.json`**; `lastContextPercent` and `zonesCalibrated` are in-memory only. Both the `handleRehydrateWorkflows` and `handleCreateWorkflow` resume paths read calibration back into `wf.calibration`. `zonesCalibrated` is deliberately reset on restart so the next zone crossing re-samples against whatever the session has grown into; every successful calibration (auto or manual) calls `writeCalibrationToMeta` to update disk.
|
|
602
|
+
- **Two `cwd → ~/.claude/projects/<hash>` encoders must agree**: `resolveSessionJsonlPath` (`server/src/sessionJsonl.ts`) and `encodeProjectDir` (`server/src/http/fileRead.ts`, imported by `workflowDataRoutes.ts` / `purgeWorkflow.ts` / `sessionDiscovery.ts` / `recall/index.ts`). Claude replaces any non-`[A-Za-z0-9-]` char with `-` (so `Sample_Project` → `Sample-Project`). Earlier versions of one or the other only replaced `/`, which silently broke context-fill + session watching + the Resume picker for any project path with `_`, `.`, or whitespace. If you touch one, check the other.
|
|
603
|
+
- **Snapshot-only fallback on rotation** (`workflowStore.ts`): when `clientLastSeq + 1 < firstSeq`, events have rotated/fallen off disk and partial replay isn't possible. Server sends `workflow_state_snapshot` with `snapshotOnly: true` and `snapshotReason: 'events-rotated'`; client force-sets its `lastSeq` to the server's head, accepting that some history is lost. Don't try to "be helpful" by falling back to partial replay - it strands streaming events without their completes.
|
|
604
|
+
- **Worker PID registry persists** to `~/.arco/worker-pids.json` and is read on every boot's `reapOrphanWorkers()`. **H44 - each entry now pairs the pid with its process START TIME (`{ procs: [{ pid, startTime }] }`); `reapProc` (`workers/pidRegistry.ts`) only SIGKILLs when the live process's start time matches the recorded one** (a recycled pid that now belongs to an unrelated process is left alone -> `reused`; a missing pid is `gone`). Windows queries run once with an eight-second limit. Unknown start-time on either side, including a timed-out query, leaves the process alive and retains its record for a later check. A legacy `{ pids: [...] }` file still reads, but a missing recorded token cannot establish identity. The same start-time-verified reaping applies to the operator-terminal pid registry (`reapOrphanTerminals`). Don't revert to "SIGKILL anything still listed" - a boot can land on a reused pid. Don't disable or skip the reap - orphan workers from a server crash eat CPU until the kernel reaps them, and they hold detached file descriptors on their session JSONLs.
|
|
605
|
+
|
|
606
|
+
## Server-authoritative workspace (mirrored tabs)
|
|
607
|
+
|
|
608
|
+
- **The open-tab set is server state** (`server/src/workspace.ts` → `~/.arco/workspace.json`; `workspace-<port>.json` on any port but 3001 so a smoke server sharing `~/.arco` can't clobber prod's). Every browser reconciles to it; don't reintroduce a client-only open/close path, and don't send `rehydrate_workflows` before the `workspace_snapshot` reconcile - rehydrating unknown ids recreates them server-side, which is exactly how one browser used to resurrect tabs another closed.
|
|
609
|
+
- **The open hook is `send()`'s `workflow_created` branch** (after fan-out, so the creator sees `workflow_created` before `workspace_changed`). Every creation path - create / resume / spawn / handoff / bake-off / genesis - already announces there; a new path that bypasses `send()` (raw `ws.send`) won't open a tab. Replays and `handleClusterMemberRehydrate` use raw `ws.send` deliberately so they never re-open.
|
|
610
|
+
- **Close = `handleRemoveWorkflow`, before its registry guard** (a tab can be open while unregistered after a restart). Cluster close rides `broadcastCluster(cluster_deleted)`; cluster open is `handleClusterSubscribe` success.
|
|
611
|
+
- **Former members inherit tabs only if the cluster was open** (`handleClusterDelete` / collapse check `isClusterOpen` first). Orphan clusters' members are boot-registered too; deleting one from CLOSED CLUSTERS must not pop its members into every browser.
|
|
612
|
+
- **Live reconcile removes only ids that were in the previous snapshot.** A member between its `workflow_created` and its cluster's `cluster_created` is briefly in neither list; an initial-style "drop everything absent" on `workspace_changed` would close it.
|
|
613
|
+
- **Incognito never enters the workspace** (`trackable()` + client filter). It stays per-browser - the memory-only boundary.
|
|
614
|
+
- **A never-seen tab replays tail-first, sequentially.** Full-history replay across many tabs can consume excessive memory and destabilize the server. Any `rehydrate_workflows` entry with `tail: true` or `lastSeq: 0`, and any gap over 5000 events, goes through `replayTailEvents` (last 3 MB, starting at a `user_message_echo` boundary, one `replay_batch`, a per-browser `[MIRRORED]` notice). `handleRehydrateWorkflows` awaits each entry in the client order (focused tab first) and replays only the message entries. Per-rehydrate task-lifecycle scans stream via `scanEventsOfTypes` instead of parsing the whole log. Do not restore parallel or whole-file paths.
|
|
615
|
+
- **Task children are never workspace entries** (hidden, and their logs are the big ones). **Only an unseeded server adopts a browser's local tabs** - a second browser's stale localStorage must not push old tabs onto every screen.
|
|
616
|
+
- **Active tab is per-browser by design.** Only the open set, order (`settings.tabOrder`, now refetched live on `settings_updated`), names and config mirror.
|
|
617
|
+
|
|
618
|
+
## Plans
|
|
619
|
+
|
|
620
|
+
- **`handleNativeEnterPlanModeSet` must NEVER write the shared cluster plan.** For a cluster member it emits `plan_candidate_ready` and lets the operator pick via `PlanCandidateBanner` (save-to-worker / attach-to-cluster / discard); ATTACH TO CLUSTER routes to `cluster_plan_set` → `handleClusterPlanSet`. `plan_set` still fires either way for the events.jsonl audit.
|
|
621
|
+
- **Why this is load-bearing:** from 2026-05-19 (`683bbb3`) to 2026-09-01 this branch called `setClusterPlanBody()` directly, which bypassed every guard the deliberate model-driven path enforces. `peerPlanWrite` (the `cluster_plan_write` peer tool) denies mailbox-only members and rejects a destructive body with `destructive_write_requires_operator` via `validatePlanWritePreservesCheckboxes` - doctrine: a model may author or non-destructively restructure the plan but "must preserve existing checkbox tasks and their status". EnterPlanMode did a wholesale body replace with none of that, so one member could wipe every task and its status for every other member - the cluster plan is folded into all of their system prompts.
|
|
622
|
+
- It was collateral in a plan-storage refactor, not a decision: the same commit updated `PlanCandidateBanner.tsx`'s ATTACH TO CLUSTER semantics, `plan_candidate_ready` survived only in the `catch` block, and the function's own doc comment still described the gate. `scripts/smoke/phase-2.6.ts` caught it (17/18); it is back to 18/18.
|
|
623
|
+
- The two legitimate write paths are the operator's (`cluster_plan_set`) and the guarded peer tool (`peerPlanWrite`). Do not add a third.
|
|
624
|
+
- **`cluster_plan_changed` is an audit record and must persist.** `broadcastCluster` is live-push only (no seq, no events.jsonl), which is fine for `cluster_state` but silently made plan rewrites untraceable - despite the client handler and `peerTools.ts` both documenting that it lands in events.jsonl. `broadcastCluster` now special-cases this one type and mirrors it to each member via `broadcastWorkflow`. The client handler is a no-op, so the duplicate delivery is inert. Don't route it around that helper.
|
|
625
|
+
|
|
626
|
+
|
|
627
|
+
- **Deleted plan files leave the attachment dangling.** If `<cwd>/.arco/plans/<planId>.md` is removed externally, the next turn's `buildPlanPrefix()` returns empty and the agent runs without the brief. No error surfaced - graceful degradation. Operator notices when the agent stops referencing the plan. The trade-off is intentional (don't break a turn because of file-system drift), but worth knowing.
|
|
628
|
+
- **`plan_create` / `plan_attach` / `plan_list` are the sanctioned model path (MCP server `arco`).** `server/src/mcp/planMcpTools.ts`, served by the `arcoMcpServer.ts` stdio child (CLI Claude via `mcp-config.json`, both Codex transports via `-c mcp_servers.arco.*`) and by Cursor's loopback for members. Deliberately a SEPARATE server from `arco-cluster`: those tools are cluster-scoped and their wire names (`mcp__arco-cluster__peer_send`) are referenced in prompts and the gpt-5.6 code-mode addendum, so they must not move - and a solo tab shouldn't advertise peer tools it can't use. **Unlike the cluster entry, this one is wired for every workflow with a cwd**, so the three MCP call sites (`turnEngine` CLI-Claude branch, `providers/codex.ts`, `codex-appserver/worker.ts`) no longer gate on cluster/codebase-memory/registry. `plan_create` **rejects** a body with no `###` headings or no top-level `- [ ]` lines (`lintPlanBody`) and returns the problems plus the `allowUnstructured` escape hatch - catching at write time what used to surface much later as an empty per-section Review. Keep the lint in sync with `parsePlan`'s regexes. Claude Native has no in-process registration (its `EnterPlanMode` already creates+attaches); Ollama / LM Studio have no MCP wiring and still rely on the prefix note.
|
|
629
|
+
- **A model cannot attach a plan by writing a file, and `buildPlanPrefix` now says so.** Plan existence is defined by `<cwd>/.arco/plans/index.json` - `listPlans` reads only that index, never the directory - and plan ids must match `PLAN_ID_PATTERN`. So a hand-written `my-plan.md` is invisible twice over. Attach is reachable from a shell (`POST /api/plans` with `attach:true` + `workflowId`, or `POST /api/plans/attach`; both call the same `handlePlanAttach` as the WS message), but only Claude Native's `EnterPlanMode` hook reaches it via a tool - so on Codex / CLI Claude / Cursor / Ollama the model had to guess Arco has a local HTTP API and reverse-engineer the route. Workers either probe the HTTP API over several turns or write markdown into an artifacts dir and wrongly report the plan as attached. When no plan is attached, `planAuthoringNote()` now injects the endpoint and the body contract. Keep the "don't create a plan unless asked" clause - the note rides every plan-less turn and without it reads as an invitation.
|
|
630
|
+
- **Plan body structure is parsed, not decorative.** `parsePlan` (`reviewContent.ts`) keys plan sections off `### `, closes a section on any `## ` (H2, intervening content discarded), and counts a task only from a **top-level** `- [ ]` / `- [x]` line - indented bullets are continuations, and `- **4.1**` is a fallback for agents that stripped the checkboxes. A model-authored plan without checkboxes therefore parses to **zero tasks**: per-section Review and the operator's item picker have nothing to offer, even though the plan reads fine to a human. That's the failure mode behind a "poorly designed plan" complaint - it's a parser contract, not taste. `planAuthoringNote` states the shape; if you change these regexes, change that note too.
|
|
631
|
+
- **`planLastSeenUpdatedAt` drives plan-edit refresh.** When the plan body's `updatedAt` exceeds the recorded last-seen, the next turn injects a "plan was edited since last turn - re-read the file" marker. If you change how plan injection composes the prompt, keep this signal - without it the agent might miss mid-session plan revisions.
|
|
632
|
+
- **`buildPlanPrefix` always emits a one-liner - never the full body.** Three variants (first-attach / edited-since-last-turn / stable) all fit on a single bracketed line. Earlier behavior injected `<plan>…</plan>` on first attach and on every `updatedAt` bump, which created two problems: (a) the agent's own edits to the plan file (the directive encourages tick-offs and inline findings) bumped `updatedAt` and re-injected the body the very next turn - a feedback loop where every working turn cost 1.5-5KB of plan prose, and (b) Claude's session JSONL captures prompts verbatim so the body re-rendered as a duplicate user bubble in chat. Don't reintroduce the full-body branch - let the agent re-read the file on demand instead.
|
|
633
|
+
- **`stripPlanPrefix` in `toSessionEntries` is load-bearing for chat cleanliness.** The plan prefix is meant to be invisible to the operator (server-side prompt construction only), but Claude's session JSONL records the full prompt. Without this strip, the operator sees their message rendered twice - once clean from `user_message_echo`, once with the plan prefix prepended from `session_entry`. Regex `^\[Active project plan[^\n]*\]\n(?:<plan>\n[\s\S]*?\n<\/plan>\n)?\n` is anchored at message start (won't touch user-typed content that quotes the bracket form later) and includes the optional `<plan>…</plan>` branch to handle entries written before the one-liner-only switch.
|
|
634
|
+
- **Plans survive Handoff.** `wf.planId` persists in `meta.json` so the new session inherits the attached plan. The Handoff seed prompt acknowledges the attachment so the new session knows what's pinned. If you change handoff seed composition, don't lose this acknowledgment.
|
|
635
|
+
- **Handoff resets `meta.planLastSeenUpdatedAt = 0`.** The new session has zero context of the prior plan attachment; treating it as a fresh attach is correct. Without the reset, `buildPlanPrefix` would emit the *stable* one-liner ("file: …") on the seed turn, and the new session might miss the "you have a plan, read it" signal. With the reset, the seed turn gets the *newly-attached* form ("Read the brief at .arco/plans/<id>.md to orient"). Best-effort meta write - failure means the new session sees the stable form, which is still functional, just less directive.
|
|
636
|
+
- **Spawn does not auto-copy the parent's plan.** Spawn mints a new workflowId with a fresh `meta.json`; `planId` is never carried over by default. The SpawnDialog's "Include plan from parent" checkbox is the *only* way a spawn ends up with the parent's plan attached. Server-side, `handleSpawnFromHere` honors `msg.includePlan` by writing `planId` into the new meta, calling `recordAttachment` (so the spawn shows up in the plan's "active in" list), acquiring the watcher, and broadcasting `plan_attached` to the new tab. The seed turn's `buildPlanPrefix` then emits the "newly attached" form because the new meta starts with `planLastSeenUpdatedAt = 0`. If you change the spawn flow, preserve the opt-in default - accidentally copying the parent's plan creates surprising attach-span entries.
|
|
637
|
+
- **fs.watch on `<cwd>/.arco/plans/` is ref-counted, debounced, and skip-flagged.** `acquirePlansWatcher`/`releasePlansWatcher` ref-count by attached workflow + cwd; the watcher debounces 200ms and filters to `*.md`. Operator-driven REST writes (`PATCH` body, `DELETE`) push the planId onto `watcherState.skipNext` BEFORE the disk write so the inevitable subsequent watcher fire is consumed silently - without this every operator edit would deliver a duplicate `plan_attached` (or `plan_detached`) to clients ~200ms after the direct broadcast. Skip is keyed per planId per cwd; consume-once on fire. PATCH that touches only `completedAt` does not write the body and skips the skip-flag too.
|
|
638
|
+
- **Watcher reconcile owns title for new files only.** `reconcilePlanFile` extracts the H1 from the body when seeding a brand-new entry (agent created the `.md` directly), but for existing entries it bumps `updatedAt` and leaves the title alone. The operator owns titles via the UI/PATCH; the agent owns the body. Don't rewrite title from H1 on every edit - it would let body content silently retitle plans the operator already named.
|
|
639
|
+
- **Mark-complete auto-detaches; reopen does not auto-attach.** `PATCH { completedAt: <ts> }` runs `detachAllForPlan` server-side: closes every open span, broadcasts `plan_detached`, clears `meta.planId`, releases the watcher. `PATCH { completedAt: null }` only clears the timestamp - operator must re-click to attach. The asymmetry is deliberate: a completed plan shouldn't keep getting injected into turns, but reopening it should let the operator decide whether it's worth re-engaging.
|
|
640
|
+
- **Attachment spans are append-only with idempotent open-spans.** `recordAttachment` is a no-op when an open span for the (planId, workflowId) pair already exists, so rehydrate replay (server restart → meta.planId resurfaces → re-acquire watcher → recordAttachment) doesn't double-add. `closeOpenSpansForWorkflow` runs on tab close to flip every workflow's open spans to closed (preserves history rather than deleting). `workflowName` is snapshotted at attach time - if the operator renames the tab afterward, the span stays stale; rare enough to skip the bookkeeping.
|
|
641
|
+
- **`PlanCandidateBanner` autosave fires once per candidate.** `autosaveFiredRef.current` guards against re-entry; the candidate stays in store until either the save succeeds (cleared via timeout) or the operator hits DISCARD. `turn_cancelled` clears `pendingPlanCapture` (the *arm*) but NOT a candidate that's already captured - once the agent's reply is in hand, cancellation of a later turn shouldn't void it.
|
|
642
|
+
- **Plan body fetch surfaces failure rather than silently rendering empty.** `PlanTab` shows `Body fetch failed: HTTP 4xx - <reason>` above the `<pre>` when the GET fails. Old behavior (`setBody('')` on error) made `(empty plan)` ambiguous between "real empty body" and "fetch failed", which masked a class of bugs. Don't revert.
|
|
643
|
+
- **`<pre>` body needs `flexShrink: 0`, not `overflow: hidden`, to scroll.** PlanTab's outer container is a flex column with `flex: 1, minHeight: 0, overflowY: auto`. A `<pre>` flex item with `overflow: hidden` reports its flex-min-size as 0 and flex compresses it to fit, clipping the body and starving `overflowY: auto` of anything to scroll past. `flexShrink: 0` keeps the pre at content height so the parent actually scrolls. Confirmed regression on 2026-04-26.
|
|
644
|
+
- **Checkbox renderer regex matches `- [ ] item` / `- [x] item` only.** `CHECKBOX_RE = /^(\s*)-\s+\[([ xX])\]\s+(.*)$/`. Indentation is preserved (so nested `- [ ]` works); other markdown patterns (numbered lists, plain bullets) pass through as preformatted text. Click handler does an optimistic body update + `PATCH /api/plans { body }` and reverts on failure; the server's broadcast confirms the same value via the body-refetch useEffect.
|
|
645
|
+
- **Plan reference docs live beside the plan, not in the index.** `<cwd>/.arco/plans/<planId>.refs/<slug>.md`, directory-listed by `listPlanRefs` - deliberately the opposite of plan existence (index-only), so an agent with plain file tools can add a ref by writing a file. The `.refs` suffix and the watcher's non-recursive `*.md` filter mean a ref write never triggers `reconcilePlanFile`; keep both properties (`planRefs.test.ts` pins the reconcile no-op). Consequence: a ref written directly doesn't bump the plan's `updatedAt` - only the REST PUT/DELETE do (`announcePlanTouched`) - so the UI also refetches on focus. `deletePlan` removes the dir; `movePlan` copies it before dropping the source. Over-cap ref bodies are **refused**, unlike plan bodies (silently truncated at 256 KB) - a clipped spec is worse than an error the agent can split around.
|
|
646
|
+
- **The refs hint rides `buildPlanPrefix`'s one line - slugs only.** Slug charset `[a-z0-9-]` can't contain a newline, so the single-line `PLAN_PREFIX_RE` strip still holds; ref *titles* are never put in the prefix. Capped at 12 slugs. For cluster members the slugs go in a trailing `#### Plan reference docs …` heading appended to the folded cluster plan text - a heading on purpose, because `planOutline` keeps every heading, so the line survives the outline fallback. `cluster_plan_read` returns `refs` + `refsDir`.
|
|
647
|
+
- **Every path that hands an agent plan work goes through `server/src/planRefContext.ts`.** `refsDoctrine` is the one wording for the per-turn plan header and the cluster-plan trailer, and it **must stay one line** (`PLAN_PREFIX_RE` - `planRefContext.test.ts` pins it). `cluster_task_show` attaches `referenceDocs` (resolved from `ref:` tokens in the task title / notes / comments against the cluster plan + any `kind:'plan'` task link; dangling slugs come back `exists:false`, not dropped; it also adds the refs of the task's **originating plan item** - `planItemContextFor` text-matches the title to a cluster-plan checkbox, nested stage checkboxes included (exact, then a shared leading item id like `P6.9`/`T1`, then longest containment ≥16 normalized chars; ref links and their labels are stripped before comparing) and takes that item's nested block + its phase preamble, so members never have to copy links into tasks they create). Plan-scoped Review inlines the linked refs of in-scope items (16 KB each / 48 KB total). The `ref:` token grammar (`[l](ref:s)`, `[[ref:s]]`, bare `ref:s` not preceded by `[\w/:-]`) is duplicated in the client's `REF_LINK_RE` - change both, or the operator's chips and the agent's resolved refs disagree.
|
|
648
|
+
- **Lean-plan lint warns, never refuses.** `leanPlanWarnings` (`planMcpTools.ts`) flags a body over 12 KB or a task with >400 chars of continuation prose and returns `warnings` on the `plan_create` success result. The structural `lintPlanBody` stays the only refusal. Don't promote the lean check to a refusal: a long plan is a style problem, a checkbox-less plan is a parser contract breach.
|
|
649
|
+
|
|
650
|
+
## Handoff prompt overrides
|
|
651
|
+
|
|
652
|
+
- **The `[HANDOFF - ` seed-prefix is load-bearing across four call sites.** Three of them are detection-only (`HandoffSeedPill` `startsWith` match, `ChatPanel` PRIOR-SESSIONS compression, `reviewContent.ts` `current-session` scope) and the fourth (`server/src/index.ts` `handleHandoffRequest`) is the *emitter* that produces the seed turn. The literal string is also exported from `server/src/handoffPrompts.ts` as `HANDOFF_SEED_PREFIX` and exposed to operator-edited prompts as the `{{seedPrefix}}` substitution variable so a custom prompt referencing the prefix doesn't fork the constant. **Do not let the prompt editor rewrite the seed itself** - only the *reflection / summarizer* prompts are operator-editable; the seed-prompt assembly lives in `handleHandoffRequest` and stays hard-coded. Changing the prefix means coordinated edits at all five sites; left it untouched.
|
|
653
|
+
- **Handoff prompt validation is advisory.** The editor warns when an original-worker override omits `[HANDOFF_COMPLETE]`; saves are not blocked. Arco collects the read-only writer reply and writes the handoff artifact. An empty reply fails the handoff.
|
|
654
|
+
- **Empty / whitespace-only override files are treated as absent.** `loadEffectivePrompt` falls through to the next tier (project → global → default) when a file exists but `body.trim().length === 0`. Saving an empty body via the UI is therefore *not* the way to "blank out" an inherited prompt - use [RESET TO DEFAULT] (which calls DELETE on the override file) instead. This rule exists so an accidental empty save can't silently strip the agent's instructions and produce empty handoff documents.
|
|
655
|
+
- **`runExportContext`'s `ctx.cwd` is the override-resolution cwd in both Handoff and Spawn paths.** For Handoff this is the workflow being rotated; for Spawn-from-here it's the *new* workflow's cwd, which is normally the same as the parent's (Spawn doesn't change cwd). If a future feature lets Spawn target a different cwd, the override resolution will follow the new cwd - that's the desired behaviour, but worth knowing.
|
|
656
|
+
|
|
657
|
+
## Context calibration
|
|
658
|
+
|
|
659
|
+
- **`appendActivity` must NOT auto-correct `busy` / `turnStartedAt`.** Prior versions stamped `turnStartedAt = Date.now()` on any incoming `primary_tool_use` / `primary_thinking` to cover reconnect-mid-turn. But `events.jsonl` replay re-emits every historical tool_use on every reconnect, so the auto-correct re-stamped wall-clock-now against stale replays and any workflow with an orphaned post-`primary_turn_ended` tool_use showed permanent `CHURNING Nm Ns`. Authoritative signal for busy + turnStartedAt is `workflow_state_snapshot` via `applyWorkflowSnapshot`; keep it that way.
|
|
660
|
+
- **First-observation `fromPercent = 0`, not `currentPercent`.** `maybeCalibrate` builds a range `[fromPercent, currentPercent]` and picks the highest uncalibrated zone that overlaps. Earlier logic used `fromPercent = currentPercent` on first observation (prev undefined), producing a zero-width range - if `current` sat between two zone ranges (e.g. 34%, between A 20-30 and B 45-55), nothing overlapped and calibration never fired. Resumed mid-range sessions stayed on byte-count forever. Using `0` catches every uncalibrated zone the session has already passed through.
|
|
661
|
+
- **Calibration runs `claude --resume <sid> --print "/context"`, not a pty.** The TUI spends 10+ seconds re-rendering prior conversation on large sessions before accepting slash-command input - the 10s pty timeout fired every time on a 247k-context Opus 1M session. `--print` hits the same slash-command dispatcher, returns the report, and exits in ~3s. Don't reintroduce pty-based automation here.
|
|
662
|
+
- **`/context` output parser must handle both legacy and markdown formats.** Claude TUI emits `**Tokens:** 247k / 1m (25%)` + a table row `| Messages | 223.8k | 22.4% |` (label sits *before* the numbers). Earlier builds emitted `62k/200k tokens` + `Messages: 44k tokens` (label *after*). `parseContextOutput` keeps both regex shapes. `parseTokenCount` also needs the `m` suffix path (`1m → 1_000_000`) for the 1M-context denominator.
|
|
663
|
+
- **Every `claude --print "/<cmd>"` writes three rows to the session JSONL** - a `<local-command-caveat>` user row with `isMeta:true`, a `<command-name>` user row (no isMeta), and a `system` row with `subtype:"local_command"` holding stdout. The system row is filtered by `toSessionEntries`' user/assistant-only type check; the two user rows must be filtered by the isMeta flag + content-prefix sniff for `<command-name>` or `<local-command-caveat>`. Without the filter, every background calibration surfaces as fake operator turns in chat. `SessionJsonlEntry.isMeta?: boolean` exists for this exact check.
|
|
664
|
+
- **Manual recalibrate goes through the same busy guard as auto.** `handleRecalibrateRequest` refuses when `wf.busy` is true - two `claude` processes touching the same session JSONL is the corruption pattern the concurrent-writer guard catches. The client-side button is also disabled while busy, but server-side guard is the authority.
|
|
665
|
+
|
|
666
|
+
## Chat message attachments
|
|
667
|
+
|
|
668
|
+
- **Attachments live on the optimistic `job.messages` entry only** - Claude's JSONL user-turn content is a multi-block array where image blocks sit alongside text blocks, and `toSessionEntries` only extracts text. When the `session_entry` echo arrives and the `ChatPanel` dedup filter picks it over the optimistic entry, the attachments are gone unless explicitly merged. `ChatPanel` walks `job.messages` for user sends with `attachments` and folds them onto the matching sessionChat entry by content-prefix + 5s timestamp proximity (same key used for dedup) before the final sort. Don't remove the merge pass unless you extend `toSessionEntries` to materialize image/file blocks from the JSONL.
|
|
669
|
+
|
|
670
|
+
## Review primitive
|
|
671
|
+
|
|
672
|
+
- **`ReviewContextRef` is a tagged union, not a string literal.** Protocol: six transcript-scope variants (`last-turn`, `last-n`, `current-session`, `full`, `git-diff`, `since-event` with `anchorEventSeq`) plus three plan-scope variants (`plan-whole`, `plan-phase`, `plan-items` - all carry `mode: 'verify' | 'critique'`). Server-side scoping reads `.kind` and dispatches to `buildReviewContent` (transcript) or `buildPlanReviewContent` (plan); artifact frontmatter flattens to a single string via `contextRefToString` for easy grepping. `ReviewRequestMessage.includeGitDiff?: boolean` layers a `git diff HEAD` block onto any transcript scope (plan scopes ignore it). Don't re-narrow `contextRef` back to a literal.
|
|
673
|
+
- **`buildReviewContent` skips in-flight turns.** The turn extractor only emits turns with a `primary_complete` event - a prompt that Claude is still replying to isn't included. `last-turn` scope therefore rejects with "Primary agent has not replied to the last prompt yet" if the operator hits Review mid-turn. Don't "helpfully" include partial replies; reviewers critiquing half-generated work produce useless feedback.
|
|
674
|
+
- **`current-session` scope depends on handoff-seed detection** (the same prefix `HandoffSeedPill` and `ChatPanel` compression use). If the seed string changes server-side, `current-session` silently degrades to the full transcript. Safe failure, but noted.
|
|
675
|
+
- **Review `git diff HEAD` has a 10MB `maxBuffer`.** Bigger diffs are almost always lockfile churn or generated code and would blow the reviewer's context window anyway. Not-a-repo / git-not-installed errors surface briefly inline in the diff block so the reviewer knows the diff is empty by accident, not by absence.
|
|
676
|
+
- **Review verdict is regex-extracted.** `Verdict:\s*(PASS|MINOR|BLOCKING)` (case-insensitive). If the reviewer's markdown deviates, `verdict` stays undefined and the badge shows `?`. The body is still readable. Don't tighten the regex to require exact formatting - reviewers occasionally indent or italicize the verdict line.
|
|
677
|
+
- **Reviewer artifact body is NOT persisted to events.jsonl** - only on disk. If the artifact file is deleted, the Review tab still shows the entry but `GET /api/workflows/artifact` 404s.
|
|
678
|
+
- **Local-reviewer addendum is provider-gated.** `runReviewer.ts` builds framing as `BASE_FRAMING + LOCAL_REVIEWER_ADDENDUM` only when `provider === 'ollama' || provider === 'llamacpp'`. Frontier reviewers don't need it (and stuffing it in would dilute the framing). The addendum tells the local reviewer to use its read-only tools (Read/Grep/Glob/WebFetch/WebSearch), with a verdict rule that "PASS without using tools" should be downgraded to MINOR. Don't extend the addendum to all reviewers without a real rationale.
|
|
679
|
+
- **Cluster-routed review dispatch uses `sendMessage`, NOT `operator_peer_send` (2026-05-11).** When the operator picks a cluster peer as reviewer (STEP 2 row in `ReviewDialog`), `App.tsx → onReviewViaMember` calls `buildClusterReviewTask` and dispatches via `sendMessage(reviewerWfid, content)` - a real operator turn on the reviewer. `peer_send` was the obvious-but-wrong choice: it stuffs the mailbox without waking the worker, and with AUTO-PICKUP off (the default) the task sits in mailbox limbo forever. Don't refactor the dispatch to peer_send "for consistency" - the path is operator-driven and the reviewer needs an immediate turn. The cluster-routed review explicitly tells the reviewer NOT to forward findings (no hidden forwarding); the operator forwards via `→ TRANSCRIPT`. The sub-worker path (default) still uses the existing review primitive (`requestReview` → `runReviewer`) and writes a `.md` artifact; cluster-routed reviews don't. Don't conflate the two paths in callers - they have different artifact shapes and different REVIEWS-tab visibility (sub-worker shows up; member-routed doesn't).
|
|
680
|
+
|
|
681
|
+
## Plan-review parsing invariants
|
|
682
|
+
|
|
683
|
+
- **H2 closes plan sections.** An `##` header inside a plan section ends that section; intervening content (until the next `###`) is silently discarded. Without this, headers like `## Open Questions / Blockers` between plan sections leak into the preceding section's preamble and corrupt review bodies. If prose must appear between sections, place it inline in the preceding section, not as an H2 section.
|
|
684
|
+
- **Numbered-bullet fallback recognizes naked numbered tasks.** `parsePlan()` treats `- **N.M** Task` (no checkbox) as an unchecked task. This is a foot-gun mitigation - agents (especially Qwen) sometimes strip checkboxes when "updating" a plan, and review surfaces would otherwise break silently. Indented variant ` - **1**` is a subtask. Plain indented bullets (` - Some text` with no checkbox or numbered prefix) are continuation prose, not separate tasks. Don't tighten the regex to require checkboxes - that re-introduces the foot-gun.
|
|
685
|
+
- **Preamble is reviewable in VERIFY mode.** A phase with zero `[x]` items but containing prose (e.g., " Completed: we did X, Y, Z") renders the prose for the reviewer. Completion-claims-as-prose is a valid claim. Decision rule: render phase if `taskCount > 0 OR preambleLength > 0`; don't reject only because there are no checked items. Only reject VERIFY scope when both the checked-task count AND the preamble are empty.
|
|
686
|
+
- **Item ID instability.** `${phaseIdx}/${taskIdx}` IDs are stable across check-state toggles but break on reorder/delete. If the operator edits a plan between selecting items in the picker and dispatching the review, unresolvable IDs trigger a reject naming the missing items. Don't try to "rescue" by fuzzy-matching surviving items - operator must re-pick.
|
|
687
|
+
- **Mode doesn't filter `plan-items`.** VERIFY/CRITIQUE filtering (show only `[x]` vs show all) applies only to `plan-whole` and `plan-phase`. For `plan-items`, the operator's explicit selection is authoritative; mode only affects the reviewer's framing/instructions. All selected items render regardless of check state.
|
|
688
|
+
|
|
689
|
+
## DOCS / GIT composer buttons
|
|
690
|
+
|
|
691
|
+
- **DOCS prompt explicitly excludes `.arco/plans/`.** Load-bearing reason: plan files have checkbox / H3 phase structure that the Plan tab parses for per-section review and the spawn-from-task surface. When agents (especially Qwen) "update docs" without this constraint, they rewrite plans as prose and silently break those features. Don't loosen the prompt to "doc updates including plans" - keep the exclusion explicit.
|
|
692
|
+
- **GIT button never auto-pushes protected branches.** `PROTECTED_BRANCH_RE = /^(main|master|release\/.*|prod|production)$/i`. The pattern is checked client-side in `inferDefaultAction(status)` (drives the smart action default) and embedded into the structured prompt (which tells the agent to pause and confirm). Don't remove the client check - the smart default depends on it. Don't auto-push protected branches - operator must confirm.
|
|
693
|
+
- **Server-side `checkoutBranch` refuses on dirty trees.** Hard reject if `git status --porcelain` is non-empty; operator must commit or stash first. Moving uncommitted changes across branches creates confusion (file shows as "modified" on the new branch with no clear context). The refusal happens before any branch state changes - no partial state.
|
|
694
|
+
- **Branch name validation is `/^[A-Za-z0-9._/-]+$/`.** Runs on both switch and create paths. Rejects with HTTP 400. Don't widen this to allow shell metacharacters - a name containing `;` or `$()` would be unsafe even with execFile.
|
|
695
|
+
- **RUN AS spawn clears session IDs.** `spawnConfigFromRunAs()` sets `resumeSessionId: undefined, resumeWorkflowId: undefined` to force a fresh dispatch in the new tab, not a resume. GIT and DOCS are one-off work, not session-rooted; resuming a parent's session into a different model would seed it with foreign tool history. Don't preserve those IDs in the spawned config.
|
|
696
|
+
|
|
697
|
+
## Protocol
|
|
698
|
+
|
|
699
|
+
- **Protocol rename:** everything that was `orchestrator*` is now `primary*` - `PrimaryTextMessage` / `PrimaryCompleteMessage` / `PrimaryModelMessage` / `PrimaryArtifactMessage`, `PrimaryPhase`, `PRIMARY_PROVIDERS`, `WorkflowConfig.primaryProvider/Model/Effort`, `WorkflowDefaults.primary*`. Only the read-compat shims in `workflowMeta.ts` + `settings.ts` still mention the old names, to absorb on-disk state from before the rename. Don't reintroduce `orchestrator*` names in new code.
|
|
700
|
+
- **Neither dispatcher is exhaustiveness-checked - a missing `case` fails silently.** The server's `ClientMessage` switch (`server/src/index.ts` `ws.on('message')`) and the client's `ServerMessage` switch (`client/src/ws/handleServerMessage.ts`, split out of `useWebSocket.ts`) have no `default`/`never` guard, so a new type added to the union but not to the switch is dropped with no `tsc` error and no log. When adding a message type, add the `case` on the receiving side in the same commit (and a smoke that asserts the round-trip). Don't widen `msg` to `unknown` to paper over a narrowing error - the discriminated union is the only type safety left here.
|
|
701
|
+
|
|
702
|
+
## Operator session-cookie gate (WS + HTTP)
|
|
703
|
+
|
|
704
|
+
- **`/ws`, `/terminal`, `/upload` and every non-agent `/api/*` route need the browser session cookie** (`server/src/http/wsAuth.ts`). Origin guard alone admitted every Origin-less local process - a local script could otherwise drive `cluster_dispatch_once` and `update_primary_config { goalRun }` over a Node `ws` connection with every automation toggle OFF. Don't add an Origin-less or cookie-less bypass for convenience; scripted clients use a test server with `ARCO_WS_AUTH=off`.
|
|
705
|
+
- **The signing key is memory-only and per-boot.** Never persist it or put it in env/a file - anything an agent can `cat` defeats the gate. Consequence: every restart invalidates cookies, so every client connect path must `await ensureWsSession()` first (both `useWebSocket.ts` and `XtermView.tsx` do). A new socket opener that skips it works until the first deploy, then 401-loops.
|
|
706
|
+
- **Mint requires browser fetch metadata** (`Sec-Fetch-Site: same-origin`, `Sec-Fetch-Mode: cors|same-origin`, `Sec-Fetch-Dest: empty`, `Origin`). Not an OS sandbox: a same-user process that forges those headers can mint. The gate makes scripting the control plane deliberate circumvention, and logs every refusal.
|
|
707
|
+
- **Cookie name carries the server port** (`arco_session_<port>`) - cookies ignore ports, so dev and prod on one host would otherwise clobber each other.
|
|
708
|
+
- **Agent tool routes stay open** - `/api/clusters/:id/peer/<op>` (CLI/Codex/Cursor MCP children bridge) and `/api/plans` + `/api/plans/attach` (plan MCP tools) are called from agent processes by design (`isAgentToolRoute`). A new MCP tool that calls back into Arco over HTTP must be added there or it 401s; never widen the exemption to a prefix.
|
|
709
|
+
- **Cookie is session-only (no `Max-Age`)** so it never lands in the on-disk cookie DB. The client keeps it alive itself: `installSessionFetch` (401 → re-mint → retry once), `startSessionRefresh` (20 min + on tab focus), both called from `main.tsx` before any window renders. `<a href>`/`<img>` loads of `/api/*` can't retry - they rely on the refresh.
|
|
710
|
+
|
|
711
|
+
## Goal run (north-star auto-continue)
|
|
712
|
+
|
|
713
|
+
Operator-armed, per tab, default OFF; while armed, one continuation turn is dispatched after each settled turn. It is the sanctioned answer to "keep working toward the north star", built so a model-owned goal (such as Codex's native `create_goal`) can't recur through Arco's own surfaces. Goal runs require a finite server-enforced iteration budget, decremented before dispatch; no model decision may extend a run. Load-bearing:
|
|
714
|
+
|
|
715
|
+
- **The loop never asks a model whether to continue.** `evaluateGoalRun` is a pure function of facts the server already holds (iterations left, token ceiling, busy, queue depth, last-turn error, throttle, context pct). Continuation is *budget remaining*, termination is *budget spent* - never a completion judgment. A model signal may only ever SHORTEN a run; wiring one that extends a run, routes work, or spawns anything re-creates the archived failure (CLAUDE.md § Non-goals, fence A). Don't add a "the model said it's done" branch, and don't add a "the model said it needs more turns" one either.
|
|
716
|
+
- **Iteration budget is mandatory and finite** (default 10, `GOAL_RUN_MAX_ITERATIONS` 500, clamped server-side - never trust the client's number). A null budget is the failure this loop exists to prevent.
|
|
717
|
+
- **`remaining` is decremented BEFORE the dispatch await.** A fast re-entrant settle would otherwise read the pre-decrement count and spend one iteration twice.
|
|
718
|
+
- **Counters are NOT mirrored to meta.json.** A server restart ends any armed run. This is deliberate: the restart already killed the turn, and a deploy silently resuming an unattended loop is precisely the surprise the feature is designed to avoid. Don't "fix" this by persisting the counters.
|
|
719
|
+
- **Busy / queued is a skip, not a stop** - no iteration consumed, next settle re-evaluates. Only the six reasons in `GOAL_RUN_STOP_TEXT` end a run, and each one is announced with its reason.
|
|
720
|
+
- **`maybeGoalRun` runs LAST** among the post-settle armed actions (after auto-fold, auto-handoff, native auto-compaction). Each of those reshapes the context the tick would run against.
|
|
721
|
+
- **Arming requires a north star**, and clearing the north star mid-run stops it (`no_north_star`) - otherwise the loop dispatches turns pointing at nothing.
|
|
722
|
+
- **Operator messages don't disarm.** Steering mid-run is expected; stopping is always explicit (the chip or `/goal run stop`). The chip renders only while armed, so an unattended loop can never be running without a visible counter and a one-click stop above the composer - don't hide it behind a panel.
|
|
723
|
+
|
|
724
|
+
## Project trust
|
|
725
|
+
|
|
726
|
+
The gate (`server/src/projectTrust.ts`) suppresses a cloned repo's `CLAUDE.md` /
|
|
727
|
+
project skills (`.arco/skills`) / project `.arco/settings.json` from the model
|
|
728
|
+
turn until the operator vouches for it - the cloned-repo prompt-injection vector.
|
|
729
|
+
Load-bearing invariants:
|
|
730
|
+
|
|
731
|
+
- **Two-pass bootstrap - trust is resolved from USER/GLOBAL scope ONLY.** `gateProjectResources(cwd)` reads `~/.arco/trust.json` + the global `settings.json`'s `defaultProjectTrust` BEFORE any project-local surface is read. A cloned repo must never be able to self-grant trust by shipping a `.arco/settings.json` that sets `defaultProjectTrust: 'always'` - `readDefaultProjectTrust()` calls `readSettings()` with NO cwd (global-only branch). Don't "fix" it to read the cascade with a cwd.
|
|
732
|
+
- **The gate is threaded as `includeProject`, not enforced inside the leaf functions.** `readSettings`/`listSkills`/`discoverClaudeMdFiles` take an optional `{ includeProject }` (default `true`) so UI/HTTP callers still see project state; only the turn path in `turnEngine.ts handleUserMessage` passes the resolved trust. Don't gate inside the leaf functions globally - it would blank the settings UI's project overrides.
|
|
733
|
+
- **Fail-safe, not fail-open.** If `gateProjectResources` throws, the turn-path catch sets `includeProject: false`. An error must suppress, never leak.
|
|
734
|
+
- **Nearest-ancestor, deepest-wins.** `decideTrust` picks the deepest recorded ancestor of the cwd, so a `never` on a subdir overrides an `always` on its parent. Clusters get one decision per cwd tree for free (keys are canonical paths).
|
|
735
|
+
- **Operator-prompt only; deduped per cwd.** `markPromptPending`/`clearPromptPending` raise one `project_trust_prompt` per cwd per server lifetime (cleared when a decision is recorded). The turn ALWAYS proceeds with resources suppressed - the prompt only grants trust for future turns. The gate never auto-trusts. `'never'` suppresses silently (no per-turn notice); `'ask'`/fail-safe log the suppression to events.jsonl.
|
|
736
|
+
- **The one-shot prompt is not the only way in - keep the standing surfaces working.** The dedup above plus the fact that the banner renders in ONE tab's composer (`TerminalInput`) means it's routinely missed: in a cluster the prompt lands in whichever member's turn hit the gate first, and the parent tab has no CONFIG tab, so the operator sees only the per-turn `[PROJECT TRUST] … suppressed` notice with no button. The standing surfaces are `GET`/`POST /api/project-trust` (`http/projectTrustRoutes.ts`) behind `useProjectTrust`: the global SettingsPanel **PROJECT TRUST** section, the per-tab CONFIG row, and the `ClusterRightPanel` **TRUST** chip. Don't "simplify" any of them back onto the workflow-scoped `set_project_trust` WS message - the settings panel has no workflowId, which is why the routes are HTTP.
|
|
737
|
+
- **`decision: 'clear'` must re-arm, not just delete.** `removeTrustDecision` drops the entry AND the route calls `clearPromptPending(cwd)`; without that the cwd would sit at `ask` with its one-shot prompt already consumed - suppressed forever with no prompt. HTTP writes also fan a `project_trust_set` broadcast to every live workflow the key covers (events.jsonl visibility + clears stale banners in every cluster member).
|
|
738
|
+
|
|
739
|
+
## Skills, primitives & config interpolation
|
|
740
|
+
|
|
741
|
+
- **The SKILLS menu keeps separate catalogs.** `/api/skills` supplies Arco-managed playbooks for APPLY ONCE and PIN TO TAB. `/api/toolbox` supplies provider-native entries only for Codex and Claude CLI; use the returned invocation (`$name` or `/name`). Claude Native has no provider-native section. Namespaced plugin invocations and operator-only skills retain their existing behavior.
|
|
742
|
+
|
|
743
|
+
Eight borrowed-improvement features share one rule: **operator-visible, deterministic, reversible - never a server-authoritative judgment.** Load-bearing invariants:
|
|
744
|
+
|
|
745
|
+
- **Skill-usage telemetry (`skillUsage.ts`, §5.2) is fed at ONE point: the `worker_tool_use` case in `seedWorker.ts`.** That's the cross-transport convergence - every provider's tool_use lands there before broadcast. The signal is a `Read` whose `file_path` is a `.arco/skills/<slug>/SKILL.md` (segment-aware match, not basename). It's fire-and-forget (`void recordSkillRead`), serialized via a module-level write-chain, fail-safe (a write error is swallowed). Counts attach in `listSkills`, NEVER in `buildSkillsManifest` - telemetry must not enter the model prompt. Don't re-hook per-transport.
|
|
746
|
+
- **Primitive drift guard (`primitiveDrift.ts`, §5.1) is FAIL-OPEN.** `checkModelDrift` flags only when the injected catalog probe (`catalogDriftProbe` in clusterHandlers - cluster-member providers only, others/cold-catalog return true) affirmatively says the model is gone. A probe error / unsupported provider / empty input never flags. It FLAGS (a `system_notice`), never blocks the primitive. Don't turn it into a hard refuse.
|
|
747
|
+
- **DD8 operator-only skills: `buildSkillsManifest` FILTERS `operatorOnly`; full bodies enter context only after an explicit operator action.** `operator-only: true` frontmatter → omitted from the model manifest (removes model authority). **APPLY ONCE** rides `pickedSkills` on `user_message`, applies on the FIRST iteration only, and emits a byte-delta `system_notice`. **PIN TO TAB** rides `update_primary_config { pinnedSkills }`, persists stable refs, and re-resolves bodies into the system prompt every turn until removed. Either click is the operator's explicit action, so project skills apply REGARDLESS of the DD7 discovery gate. `renderSkillFile` must keep writing `operator-only: true` or an edit silently strips it.
|
|
748
|
+
- **DD12 config interpolation: the badge introspects WITHOUT resolving; resolved values are NEVER logged.** `describeConfigValue` classifies `!cmd` / `${ENV}` / literal for the `{configured, source}` badge with no spawn / no env-value read. `resolveConfigValue` runs the command (argv-only, no shell, 10 s timeout) or env-expands (`$$`->`$`, `$!`->`!`), caches successes by raw string, and is consumed lazily (Ollama/LM Studio base URLs - URL-validated AFTER resolution, fail to the default).
|
|
749
|
+
- **DD10 `/prompt` commands expand BEFORE the turn is recorded, and gate project scope on the raw trust DECISION.** Expansion runs first in `handleUserMessage` (before context-refs, before the echo) so `events.jsonl` carries the expanded turn. A project template (`<cwd>/.arco/prompts/*.md`) needs `resolveTrustStatus(cwd) === 'always'` - NOT `gateProjectResources.includeProject` (a prompts-only repo has no other gated resource, so includeProject would be true and let an untrusted template through). Global templates (`~/.arco/prompts`) are ungated.
|
|
750
|
+
- **H17 hardline command floor is ALWAYS ON (not operator-disablable) and checked FIRST in the Native dispatch.** `checkHardlineCommand` refuses Arco self-restart/self-kill + `rm -rf` of repo/home/root. It's a FLOOR for the cooperative self-restart mistake, NOT an adversary sandbox - trivial obfuscation slips through and that's accepted. Don't add an operator opt-out.
|
|
751
|
+
- **H21 OSV malware pre-check is FAIL-OPEN + block-with-override.** `checkCommandForMalware` flags only an `MAL-` advisory (ordinary CVEs don't block); a network error / unreachable OSV resolves to allow. On a hit the create is NOT applied - the server echoes the payload back with `overrideMalwareWarning: true` so the operator can re-send to proceed. Don't make a network failure block the add.
|
|
752
|
+
- **H35 skill audit is DIAGNOSTIC ONLY - there is deliberately NO install verdict.** `auditSkillContent` returns invisible-unicode + threat-pattern findings; it must never carry `should_allow_install` / `blocked` / `verdict` (that's border-A - a server-authoritative quality judgment). The operator reads the findings and decides; nothing is auto-blocked. The unit test pins the absence of a verdict field.
|
|
753
|
+
|
|
754
|
+
## Local-model picker
|
|
755
|
+
|
|
756
|
+
Two deterministic, operator-readable fit/diagnosis helpers. Both pass the four-question test (operator-triggered readouts, fixed rules, reversible). Load-bearing invariants:
|
|
757
|
+
|
|
758
|
+
- **DD15 Apple-Silicon fit: the darwin probe presents a UNIFIED-MEMORY BUDGET as VRAM, or every model scores NO.** Before DD15 `doProbe()` returned `totalVramBytes:0` on darwin, so `scoreFit` → `available 0` → `NO` for everything. `probeAppleSilicon()` now parses `system_profiler SPDisplaysDataType -json` (`parseAppleGpu`, **"apple"-name guard** - an Intel Mac's non-Apple GPU must NOT get a budget, it falls back to the no-VRAM profile), derives `appleUnifiedMemoryBudget` (size-scaled 0.67/0.75/0.80, **`sysctl iogpu.wired_limit_mb` override wins when >0**), and sets it as `totalVramBytes` + `gpus[0].vramBytes`. Both `system_profiler` and `sysctl` are **execFile argv-only, darwin-gated, never-throw**. Throughput uses `APPLE_BANDWIDTH_BY_CORES` (fit.ts, ~100→800 GB/s keyed by `hw.gpuCores`; flat `metal=4e11` is only the cores-unknown fallback) - NOT the old flat metal bandwidth, which mis-estimated ~8×. Constants are PORTED (hard-coded), not imported.
|
|
759
|
+
- **DD13 serve-failure diagnosis is a DETERMINISTIC ordered regex registry - never a model verdict.** `diagnoseLlamacppServeFailure` (pure) classifies the stderr tail: **order matters - OOM is checked before ctx-too-large** (an OOM tail often mentions the KV cache; the OOM remediation must win), **binary-missing before gguf-missing**. Unmatched → `{matched:false, cause:'unknown'}` with no invented fix. Only `set-ctx-size`/`set-ngl`/`add-extra-arg` fixes exist (they map onto the catalog editor's three fields); advisory-only causes (port/path/install) carry `fixes:[]` and rely on `suggestions` text. `modelHealth.ts` computes it ONLY when `managerState === 'failed'`, feeding the failed loadout's current ctx/ngl so a fix suggests a concrete halved value. The panel's fix button mirrors `LlamacppCatalogEditor`'s apply+reload EXACTLY (GET catalog → mutate → POST full catalog → `/api/llamacpp-load`) so it's reversible; `add-extra-arg` appends argv tokens idempotently. vLLM/SGLang entries from the upstream reference are DROPPED - llama.cpp subset only.
|
|
760
|
+
|
|
761
|
+
## Restore-point forks (REWIND CONVERSATION)
|
|
762
|
+
|
|
763
|
+
In-tab rewind/branch over the append-only `events.jsonl` . Native-first. Load-bearing invariants:
|
|
764
|
+
|
|
765
|
+
- **`meta.leafSeq` ABSENT ⇒ flat replay when `leafSeq` is absent.** The branch-aware replay pre-pass (`filterEventsToBranch`/`walkBranchSeqs` in `resumeSummary.ts`) only runs when `meta.leafSeq` is set. Absent ⇒ flat replay, no filtering, fast path, no whole-file read. Never make the filter unconditional - that is the no-regression guarantee.
|
|
766
|
+
- **`leaf_move` is a REDIRECT node - that is what prunes the abandoned branch, NOT `parentEventSeq` alone.** `persistAndStampSeq` stamps the linear predecessor as `parentEventSeq` (no write-path change for), so after a rewind the post-rewind events' parents still point at the physical tail. The walk excludes the abandoned span ONLY because, when it lands on a `leaf_move`, it jumps to `targetSeq` instead of following `parentEventSeq`. Don't "simplify" the walk to pure parentEventSeq.
|
|
767
|
+
- **Replay walks from the PHYSICAL TAIL, not from the stored `leafSeq` value.** `meta.leafSeq` being set just means "branch mode on"; `replayMessagesWithResumePolicy` starts the walk at the greatest seq present. Each rewind appends a fresh `leaf_move` at the tail and every post-rewind turn appends after it, so the newest event is always on the active branch and the latest redirect is on its ancestry path. This is why post-rewind turns are picked up **without advancing `leafSeq` per turn** - do not add per-turn `leafSeq` bumps.
|
|
768
|
+
- **Branch mode bypasses the byte-range summary path** (reads the whole file) because the lineage walk needs the full event set to resolve parents/redirects across the tail boundary - the §5 "walk before summarization" rule. `walkBranchSeqs` reports `truncated` when ancestry has rotated off the size-capped log; that surfaces as `ResumeReplayResult.reconstructed` and a loud worker `console.warn` (hygiene-B: never silently degrade a lossless rewind into a lossy one). `inScope` holds only surviving events.
|
|
769
|
+
- **The rewind disposes the live Native worker** (`disposeClaudeNativeWorker`) so the next turn cold-rebuilds from the branch - reuses the proven post-handoff teardown rather than force-mutating a live `messages[]`. Busy-guarded: rejected mid-turn.
|
|
770
|
+
- **Native-only in v1.** `handleRevertToPointRequest` resolves the effective transport (tab override → cascade) and rejects non-Native: on CLI/Codex `meta.leafSeq` is never read, so a rewind would silently no-op. The client hides the button for non-Claude providers. **Named REWIND CONVERSATION, deliberately distinct from `revert_to_checkpoint`** (the git working-tree RESTORE FILES) - two REVERT verbs on one HISTORY tab would confuse.
|
|
771
|
+
- **Reversible by construction:** abandoned branches stay byte-identical on disk; "undo the undo" is just another `leaf_move`. Contrast Purge, which destroys.
|
|
772
|
+
- **`branch_summary` is RESERVED + UNEMITTED - forks ship via `leaf_move`, not `branch_summary`.** The `BranchSummaryMessage` type exists in the protocol (declared early so events.jsonl/HISTORY readers recognize the kind without a second schema bump) but NO server path emits it. The fork record is the `leaf_move` redirect event + `meta.leafSeq`. Don't wire `branch_summary` into the rewind path thinking it's the fork marker.
|
|
773
|
+
|
|
774
|
+
## DEBAG durable review gate (review safe-mode)
|
|
775
|
+
|
|
776
|
+
Operator-armed HITL approval gate. Native-only. When `WorkflowConfig.reviewSafeMode === 'on'`, the Native worker's `dispatchTool` pauses on a *sensitive* call (`gateReview.ts` static allowlist: Bash, KillShell, write-outside-cwd, git push/reset --hard/clean) and surfaces an editable proposal. Load-bearing invariants:
|
|
777
|
+
|
|
778
|
+
- **Two-condition firing, default OFF.** `evaluateGate(armed, …)` returns a proposal ONLY when safe-mode is armed AND the call is sensitive. Safe-mode off ⇒ null ⇒ the hot path is byte-for-byte untouched. The gate slots in AFTER the hardline/config/fact-force guards (a call refused there never reaches it) and sees the EFFECTIVE post-hook-rewrite `input`.
|
|
779
|
+
- **The standing-approval signature is NON-lossy - never reuse `outputHash`.** `gateSignature` hashes the full canonicalized (sorted-key) tool name + args. `outputHash` strips digits (`\d+→#`) for error-loop detection, so `rm -rf dir1`==`rm -rf dir2` there; reusing it would broaden a standing approval to commands the operator never saw (a nudge toward border-A). Over-prompting (key reorder is canonicalized away, but any value change re-prompts) is the safe direction; under-prompting is forbidden.
|
|
780
|
+
- **`gate_required` is written BEFORE the Promise parks** (events.jsonl + the per-workflow sidecar `.arco/workflows/<wfid>/gate-approvals.json`). Writing it after reopens the lost-on-crash hole the whole feature exists to close. Sequential tool dispatch means the for-loop simply suspends on the `await` (plan §4.4); batch-settle for parallel `Task` is deferred (`Task` isn't sensitive).
|
|
781
|
+
- **Restart-resume is a deliberate discontinuity, NOT a bug (§4.5).** A gate that survived a `systemctl restart` cannot resume the dead in-process tool-loop - the parked Promise is gone. `rehydrateGatesOnce` (Set-guarded, on `rehydrate_workflows`) re-emits `gate_required` from the sidecar so the card reappears regardless of the client's event-replay cursor (the synthetic `gate::<id>` message dedupes, so replay + rehydrate double-delivery is harmless). When the operator then resolves it, `routeClaudeNativeGateReply` finds no live park → `resolveOrphanedGate` clears the sidecar, emits `gate_resolved`, and for approve **feeds the approved action as the next-turn input** (`handleUserMessage`, like `maybeAutoContinueAfterCompact`) - an honest re-issue, not a seamless continuation. If safe-mode is still armed the re-issued call gates AGAIN, live (a fresh park resolved normally) - that second approval is the documented cost of a restart-orphaned gate, not a loop.
|
|
782
|
+
- **Cancel drains the parked gate AND its sidecar record** (`cancel()` rejects every `pendingGates` entry; the park's catch clears the sidecar) so a cancelled turn's gate doesn't resurrect on the next rehydrate.
|
|
783
|
+
- **Fence:** operator-armed (default off), deterministic allowlist (no model judgment about what's dangerous), every gate_required/gate_resolved in events.jsonl, reject + disarm + (sub-) revoke make it reversible. The model only *proposes*; the server pauses and waits.
|
|
784
|
+
|
|
785
|
+
## Server lifecycle
|
|
786
|
+
|
|
787
|
+
- **`tsx watch` restarts on `server/` and `shared/` saves and takes spawned CLIs with it.** During active turns, editing server source kills the worker mid-stream. Warn before editing, or pause the watch via the launcher script.
|
|
788
|
+
- **Provider `worker_error` MUST retain `workflowId` through the `error` protocol message.** The client routes scoped errors to that workflow and only uses `activeJobId` for truly global errors. Keep `workflowId` on provider errors so the client routes a refusal to its originating workflow rather than the currently focused tab; dropping it also prevents the failure from landing in the source workflow's `events.jsonl`.
|
|
789
|
+
- **Restart path is SIGKILL + 500 ms grace, not SIGTERM + port-poll.** Earlier 5-second grace + port-binding poll raced concurrently/tsx teardown; ports were freed by kernel sync and the new process bound before the old fully exited. SIGKILL is immediate; ports release on socket-close which kernel does in the same syscall. Don't loosen back to graceful shutdown for the dev wrapper - the `arco` launcher script is the supervisor.
|
|
790
|
+
- **Shutdown handler flushes events.jsonl before exit.** `flushAllWorkflowEvents()` clears in-memory pending writes synchronously. Don't add async work between the SIGTERM handler and `flushAll()` - it widens the crash-loss window.
|
|
791
|
+
- **`handleUserMessage`'s `.catch` MUST broadcast `system_notice` + `primary_turn_ended` and clear `wf.busy`.** A bare `console.error`-only catch was leaving the UI mid-turn forever on any internal exception. Don't simplify the catch back to a log-only path; the operator sees nothing if you do.
|
|
792
|
+
- **`sessionJsonl.startWatcher` dedups its own restart timer.** A flapping fs error fires the watcher's `error` handler multiple times; without the `restartTimer` guard, each fires a new `setTimeout(startWatcher, 2000)` and they fan out. Cleanup must clear `restartTimer`.
|
|
793
|
+
- **Launcher port-fallback exports `ARCO_PORT` + `ARCO_CLIENT_PORT`.** When 5173/3001 are held by non-Arco processes, the launcher walks forward to the next free port (cap +50) and exports the chosen values to `npm run dev`. `vite.config.ts` honors them with `strictPort: true` so vite fails loudly if it can't bind the launcher-chosen port (a silent slide would diverge from the launcher's `wait_ready` URL). Server reads `ARCO_PORT`. Don't hardcode 3001/5173 anywhere new.
|
|
794
|
+
- **H43 code-skew banner: prod runs the COMPILED `dist`, so a rebuilt/pulled checkout can silently outrun the running build.** `diagnostics/codeSkew.ts` snapshots the git HEAD at boot (the rev the running build started from) and the `core.code-skew` Diagnostics check (`diagnostics/checks.ts`) WARNs "N commits behind" when the on-disk HEAD has advanced past it. SKIPPED under tsx-watch dev (source is live there, so skew is meaningless) and when not a git checkout. Read-only `git` via `execFile` (argv array, cwd pinned to the three-levels-up repo root, timeout). If you change the dist layout, keep that repo-root resolution honest - the systemd unit sets no `WorkingDirectory`, so process cwd is not the repo.
|
|
795
|
+
- **H42 systemd shutdown-window probe warns when the unit's `TimeoutStopUSec` is below the graceful-shutdown budget** - the SIGKILL-the-worker-groups + reap-PTY/LSP + flush-every-workflow's-events work `onSignal` does before exit. Read-only `systemctl show`, Linux + `INVOCATION_ID`-set only. Part B is the `onSignal` forensics line (`formatShutdownForensics` - what the stop interrupted: in-flight turns by provider, PTY count, uptime/RSS) logged inside the ~100 ms flush budget. Don't add async work to `onSignal` between the handler and `flushAll()` - it widens the crash-loss window (existing rule above) and eats into the systemd window H42 is checking.
|
|
796
|
+
|
|
797
|
+
## Service mode boot resolution
|
|
798
|
+
|
|
799
|
+
- **`@arco/shared` MUST resolve to compiled JS under bare `node`, or `node server/dist/index.js` (production / `arco service`) crash-loops on boot** with `ERR_UNKNOWN_FILE_EXTENSION: Unknown file extension ".ts"`. `shared/package.json` carries a conditional `exports` map: `development`→`./src/index.ts` (Vite serve + `tsx --conditions development`), `types`→`./src/index.ts` (tsc, `moduleResolution: bundler`), `import`/`default`→`./dist/index.js` (bare node). **Do not revert it to `"main": "./src/index.ts"`** - that's the original bug. The server dev script + `test:*` scripts pass `--conditions development`; drop that flag and `npm run dev` loses live `shared` source resolution. Guarded by `scripts/smoke/service-cli.ts` (static exports assertion + a bare-node import boot check). Full rationale: `docs/SERVICE_MODE.md § Build & @arco/shared resolution`.
|
|
800
|
+
- **The prod static-serve is gated on `ARCO_SERVE_CLIENT=1` (set only by the systemd unit), NOT `NODE_ENV`.** Unset → the server returns its normal 404 and Vite owns the client (dev unchanged). The fallback runs after every API/preview route, GET-only, and is path-traversal-guarded (resolved path must stay inside `client/dist`); a missing asset 404s, a missing non-asset path falls back to `index.html`. Don't key it on `NODE_ENV` - dev sets nothing and must stay inert.
|
|
801
|
+
- **Promotion bakes `ARCO_HUB_URL` and `ARCO_NTFY_URL` into the service unit; service mode has no hot reload.** When the server is hub-linked, configure both variables before installing so `renderSystemdUnit` writes them as `Environment=` lines. If they are omitted, the compiled server leaves `initHubLink` and `initNtfyTransport` inert. Service mode runs compiled `server/dist`, so source edits require `npm run build` followed by `systemctl --user restart arco.service`; the restart stops in-flight workers. Use `npm run dev` for source iteration.
|
|
802
|
+
|
|
803
|
+
## LSP diagnostics
|
|
804
|
+
|
|
805
|
+
- **The post-write hook is fire-and-forget and MUST NOT be able to break a Write/Edit.** `claude-native/tools.ts` calls `try { ctx.onFileWritten?.(abs); } catch { /* best-effort */ }` AFTER the successful `fs.writeFile` in both `Write` and `Edit` - never awaited, never allowed to throw into the write path (the write path is P0). The worker's wiring additionally `void`s the returned promise and `.catch()`es it so an async rejection can't surface as an unhandled rejection. Don't make the hook awaited, don't move it before the write, and don't let any LSP error propagate to the tool's return.
|
|
806
|
+
- **Absent language server = silent no-op.** When no LSP server is on PATH for the changed file's language, `resolveServer` returns null and the subsystem does nothing - NO error, NO crash, NO chat notice. This is intentional (bring-your-own-upstream, same as the caveman output style). Don't "helpfully" surface an error when a server is missing; that would spam every operator who hasn't installed `typescript-language-server` et al. `tsserver` is NOT a candidate - it speaks the TSServer protocol, not LSP.
|
|
807
|
+
- **0-based → 1-based conversion happens exactly once, in `mapPublishDiagnostics` (`server/src/lsp/client.ts`).** LSP positions are 0-based; the protocol `DiagnosticItem.line/column` are 1-based (`+1` at that boundary). The client never re-converts. If you add another consumer of LSP positions, convert at the same boundary - don't push raw 0-based numbers across the wire.
|
|
808
|
+
- **Server lifecycle mirrors `llamacppManager`: one process per `(cwd, languageId)`, dedup, idle-reap, shutdown-kill.** `lspManager.shutdown()` is wired into the server's SIGTERM/SIGINT handler (`server/src/index.ts`) and SIGTERM+SIGKILLs every live child. Idle-reap evicts after `ARCO_LSP_KEEPALIVE_MS` (default 5 min). **Orphan gap (noted, accepted):** unlike worker subprocesses, LSP servers have NO durable pid registry / boot-sweep - a hard `kill -9` of the Node server can leak a language-server child until the OS reaps it. Acceptable because they burn no API tokens and idle-reap bounds them; if it ever matters, mirror `pidRegistry.ts`. See `docs/LSP.md`.
|
|
809
|
+
- **An empty `items[]` clears the file's diagnostics.** `store.setDiagnostics` drops the per-file key on an empty array, so "fix the error → badge drops" just works. Don't change `diagnostics` to accumulate - each message is the authoritative full set for its `file`.
|
|
810
|
+
- **The DIAGNOSTICS row click opens the file but does NOT scroll to the line yet.** The `FileViewerModal` has no line-scroll affordance; the row shows `line:col` and the tooltip carries the line. Best-effort per the §C3 spec - noted gap, not a bug.
|
|
811
|
+
|
|
812
|
+
## Runtime observable states
|
|
813
|
+
|
|
814
|
+
- **Two orthogonal axes, never one.** The connection axis (`ConnectionState`) and the per-workflow axis (`WorkflowRuntimeState`) are derived separately and must not be collapsed into one enum. The taxonomy maps to the runtime-state categories: `disconnected` = (a) browser/network WS drop, server alive; `server-down` = (b) server process gone; `busy` = (c) workflow working with recent output; `stuck` = (d) busy but silent; `idle` = (e) operator's turn; `replay-recovered` = (f) just rehydrated from disk. `connecting` is the pre-first-open boot state. Both live in `client/src/runtime/runtimeState.ts`.
|
|
815
|
+
- **The `/healthz` probe is the ONLY thing that distinguishes `disconnected` from `server-down` - don't conflate them.** A closed WS alone can't tell you whether the *server process* is dead or just the *socket* dropped (browser slept, network blip, Vite proxy hiccup). The WS hook (`useWebSocket.ts`) fires a `fetch('/healthz', { signal: AbortSignal.timeout(HEALTHZ_PROBE_TIMEOUT_MS) })` on close + each reconnect tick: 2xx → server alive → `disconnected`; reject/timeout/non-2xx → `server-down`. A null probe (not yet resolved) stays optimistically `disconnected` so there's no spurious SERVER DOWN flash in the gap before the probe lands. The probe reuses the same relative base-URL convention as `/api/restart` + `/api/transcript` (Vite proxy in dev, same-origin in prod) - do NOT fork a second server-URL derivation.
|
|
816
|
+
- **`stuck` is derived from ABSENCE of primary content, NOT from `primary_activity`.** `primary_activity` is change-gated - it only broadcasts when the descendant-process set changes, so it is NOT a heartbeat and a quietly-working turn can go minutes without one. The stuck check is `now - lastPrimaryEventAt >= STUCK_THRESHOLD_MS`, where `lastPrimaryEventAt` is bumped by the genuine primary signals (`primary_turn_started` / `_text` / `_thinking` / `_tool_use` / `_complete`, plus `_activity` as a weak extra). Crucially it is NOT bumped by `worker_*` deltas - a child Task streaming does not prove the primary is alive. Don't "fix" stuck-ness by treating `primary_activity` as the liveness source; it would let a hung worker read as busy forever.
|
|
817
|
+
- **The deriver is pure - no `Date.now()` / `new Date()` inside it. `now` is always injected.** This is what lets `scripts/smoke/runtime-states.ts` assert every state (and the killing-the-server-vs-silent-worker contrast) deterministically with a fixed clock and no live socket. The clock-reading impurity lives in the component layer (`RuntimeStateBanner`, which ticks once a second while a transient state shows) and in `SystemHeader`. If you add a new state, add its case to the deriver and a smoke step - never read the clock inside the deriver.
|
|
818
|
+
- **The threshold constants live in the deriver, exported, with rationale.** `STUCK_THRESHOLD_MS` (30s - clears a long-but-live tool call, surfaces a genuine hang within a watched turn), `REPLAY_RECOVERED_WINDOW_MS` (12s - long enough to notice "came back from disk", short enough not to shadow idle), `HEALTHZ_PROBE_TIMEOUT_MS` (2s - clears a healthy localhost round-trip with margin). Tune them there, not by hard-coding numbers in components.
|
|
819
|
+
- **`connectionState` is ephemeral (not persisted) and `connected` stays load-bearing.** `connectionState` is absent from the store's `partialize` so a reload always re-derives it from a live socket rather than a stale snapshot; `recoveredAt` / `lastPrimaryEventAt` are likewise not in the persisted job shape. The existing `connected` boolean is unchanged - other code reads it; `connectionState` is the richer display overlay layered on top.
|
|
820
|
+
|
|
821
|
+
## Robustness invariants
|
|
822
|
+
|
|
823
|
+
- **The audit harness is pure by design - keep it clock-injected and headless.** `scripts/smoke/robustness-audit.ts` exercises all nine enumerated failure cases as timelines of input frames over the §C1/§C2 derivers - no live server, no spawned provider, no real socket. The moment it grows a `Date.now()` read, a real `fetch`, or a WS connection it stops being deterministic and the audit rots (same rule as `runtime-states.ts` / `retry-paths.ts`). New failure case → new pure scenario, not a live probe.
|
|
824
|
+
- **The connecting gap must NEVER flash `server-down`.** On fresh boot and on client reload the socket is `connecting`/`closed` with `everOpened` false and an unresolved (`null`) probe - that derives `connecting`/`disconnected`, NOT `server-down`. Only an explicit `healthzReachable === false` promotes to `server-down`. Don't "tidy" the deriver into treating a null probe as a failed probe; CASE 9 guards this and it's the difference between a calm reload and a scary SERVER DOWN flash on every refresh.
|
|
825
|
+
- **A silent provider crash must surface as `stuck`, never `idle`.** When a provider process dies WITHOUT a clean `primary_turn_ended`, `busy` stays true and the only honest read after `STUCK_THRESHOLD_MS` of no primary content is `stuck` (→ CANCEL TURN), not `idle`. A clean exit flips `busy`→false → `idle`. CASE 4i/4ii pin both. Don't add a "process exited → force idle" shortcut: a silently-dead worker would then read as the operator's turn with the dead turn never cancelled.
|
|
826
|
+
- **The audit asserts end-states for the three non-deriver mechanics - it does not fake them.** Codex resume correctness (CASE 5), Native replay-not-blocking-the-UI (CASE 6), and terminal orphan reaping (CASE 7) are transport / perf / process-lifecycle properties, not deriver properties. The harness asserts only the observable end-state each produces when it works; the internal correctness lives in `smoke:phase-4` / `smoke:compare`, the Native replay manual recipe, and `smoke:terminal` respectively (see `docs/OPERATIONS.md § Robustness audit`). Don't move that internal verification into the pure harness - it can't model it honestly.
|
|
827
|
+
|
|
828
|
+
## HISTORY tab
|
|
829
|
+
|
|
830
|
+
- **Lifecycle events re-broadcast on rehydrate regardless of `clientLastSeq`.** `task_started` / `task_status` and `operator_label` are persisted on the parent workflow but the client-side state they drive (`taskChildren`, the HISTORY filter) is rebuilt from the events themselves. A workflow whose only Task fan-out happened pre-refresh would otherwise come up showing `0s · RUNNING` forever (events sit below the seq cutoff). Re-broadcast is safe because the corresponding store actions are idempotent - `recordTaskStarted` / `recordTaskStatus` on `taskId`, and `operator_label` flows through `narrativeEventFromMessage` → `appendHistoryEvent`, which dedupes on `seq`. Don't add a "skip if seq <= clientLastSeq" gate to lifecycle replay - it'll silently regress the refresh path.
|
|
831
|
+
- **Pinned label anchors are by `targetEventSeq`, not by chat-row id.** A label pins to the seq of an event in `events.jsonl`; if the chat-row id changes (e.g. session JSONL renames it), the label still resolves because HistoryTab reads `event.seq → row` rather than chasing the row id. Don't try to "stabilize" labels by switching to row ids - the seq is the load-bearing identity.
|
|
832
|
+
- **`since-event` Review framing names the operator label.** When `anchorEventSeq` points at an `operator_label` event, `buildReviewContent` lifts the label's `text` into the framing (`research checkpoint` becomes the named anchor); otherwise the framing falls back to the bare seq. If you change the label-event shape, update `buildReviewContent` too - silent fallback to the bare seq is honest but loses operator context.
|
|
833
|
+
- **Spawn cutoff is honored in fresh-summarizer + Native original-worker, IGNORED in CLI original-worker.** `cutoffEventSeq` filters the rendered transcript and stops Native pre-warm replay at the cutoff; CLI `--resume` carries the parent's full session and there's no clean way to retroactively trim its view. The dialog tells the operator to choose fresh-summarizer when a hard cutoff matters; don't try to enforce the cutoff CLI-side without rebuilding the resume mechanism.
|
|
834
|
+
- **PURGE is irreversible and the type-the-name gate is the ONLY guard.** `DELETE /api/workflows/:wfid` (`purgeWorkflow.ts`) deletes the workflow tree + checkpoints (git refs + tar) + recall row + cluster mailbox; the `nuclear` tier also deletes the bound provider session files. The route requires `confirm:true`, and `nuclear` requires `confirmName` === `meta.name` (server-enforced, not just client). Deletion order matters: read `meta.cliSessions` for the nuclear provider-file paths **before** `rm`-ing the workflow dir (which holds meta.json). Each step is best-effort/isolated so one failure can't strand the rest; the client drops the tab via `removeJob` on success (the server already ran `handleRemoveWorkflow`). Don't add a soft-delete/trash - purge means gone.
|
|
835
|
+
|
|
836
|
+
## Git worktrees per task
|
|
837
|
+
|
|
838
|
+
`server/src/project/taskWorktree.ts` spins an optional isolated `git worktree`
|
|
839
|
+
per ledger task. Load-bearing invariants (mirror the checkpoint store's):
|
|
840
|
+
|
|
841
|
+
- **Worktrees live ONLY under the managed root** (`~/.arco/worktrees/<cwd-hash>/<taskId>`), never inside the user's tree. `removeTaskWorktree` asserts the resolved path is under that root before any destructive `git worktree remove --force`. Don't relax this - it's the only thing standing between a bug and `rm -rf` on a path the operator owns.
|
|
842
|
+
- **Removal NEVER deletes the branch.** `git worktree remove --force` + `git worktree prune` only - the `arco/task/<id>` branch survives so committed work isn't lost. A "clean up everything including the branch" path is intentionally absent.
|
|
843
|
+
- **The `worktree` field is server-set only.** Clients ask via `task_worktree_create` / `task_worktree_remove`; the field is set through `persistLedgerMutation` → `applyUpdate` (the same event-sourced path as every other ledger mutation). The `task_ledger_update` WS message deliberately has no `worktree` member - a client can't forge one. Keep it that way.
|
|
844
|
+
- **Create needs a repo + at least one commit.** On an unborn HEAD `git worktree add` fails; we pre-check and throw `TaskWorktreeError('no-commit', …)` so the route returns a clean error, not a 500. Same for a non-repo (`'not-a-repo'`).
|
|
845
|
+
- **All git calls are `execFile` argv arrays** - never `shell:true`, never string interpolation (same rule as `gitSnapshots.ts`).
|
|
846
|
+
- **Checkpoints inside a worktree are fine and intended.** A linked worktree shares the main repo's object store, so `createCheckpoint({ cwd: worktreePath, … })` works unchanged and dedupes objects across sibling worktrees. Don't special-case worktree cwds in the checkpoint store.
|
|
847
|
+
|
|
848
|
+
## arco-agent - signed lifecycle supervisor
|
|
849
|
+
|
|
850
|
+
`scripts/agent/` + `scripts/arco-agent.ts` is the per-host supervisor the K2 hub drives over a tailnet WS.
|
|
851
|
+
Load-bearing invariants - relaxing any one re-opens the §1 trust boundary:
|
|
852
|
+
|
|
853
|
+
- **The inbound vocabulary is the fixed `LIFECYCLE_COMMANDS` allowlist, nothing else.** No file access, no workflow access, no free-form shell. `renderLifecycleCommand` maps a command to an **argv array** (never a shell string) - there is no interpolation surface. A command not in the enum is rejected `not-allowlisted` and never reaches the runner.
|
|
854
|
+
- **Execute ONLY after full verification, in this order:** structural → allowlisted-cmd → Ed25519 signature → instance match → freshness (issuedAt skew) → single-use nonce. `verifyCommand` returns the FIRST failure and is **pure** (never records the nonce) so a forged signature can't poison the replay set. The nonce is recorded in `handleSignedCommand` only *after* a clean verify and *before* exec, so a duplicate in flight is `replay`, not a double-run.
|
|
855
|
+
- **Canonical payload serialization is fixed-field-order** (`canonicalizePayload`), never `JSON.stringify(payload)` directly - object key order is not guaranteed and signer/verifier must hash byte-identical input.
|
|
856
|
+
- **The hub holds the PRIVATE key; agents only ever get `hub.pub`.** `keygen` writes `hub.key` mode `600`. Never commit either key; never ship the private key to an agent.
|
|
857
|
+
- **Forging tests must flip a LEADING base64 char**, not the trailing `=` padding - padding decodes to identical signature bytes, so a padding flip does NOT corrupt the signature (this bit the first selftest; see the comment in `arco-agent.ts doSelftest`).
|
|
858
|
+
- **The runner is injected.** `handleSignedCommand` / `createAgentConnection` take a `CommandRunner` so the smoke asserts the dispatched argv WITHOUT spawning systemctl (and runs on macOS). Production supplies `systemctlRunner()`. Don't hard-wire `execFile` into the handler.
|
|
859
|
+
- **macOS has no autostart in v1** (§13.3) - `install` writes a systemd unit on Linux only; on macOS the lifecycle subcommands print a manual notice. The agent there runs only when launched from the app launcher.
|
|
860
|
+
- **The live hub WS endpoint is K2.** `run` connects outbound to `ARCO_HUB_URL`; until the hub exists there is nothing to connect to. The command-handling core is fully tested via `npm run smoke:arco-agent` (fake in-process hub). Verify offline with `npm run arco:agent -- selftest`.
|
|
861
|
+
|
|
862
|
+
## arco-management hub
|
|
863
|
+
|
|
864
|
+
`scripts/management/` is the tailnet-only hub the K1 agents register to. Invariants:
|
|
865
|
+
|
|
866
|
+
- **`serve` must never bind a public or all-interfaces address.** `arco-management serve` refuses `0.0.0.0` and `::`. Keep the listener on a trusted private interface: access depends on private-network reachability plus the signed-command layer, so public exposure would bypass the intended network boundary.
|
|
867
|
+
- **The hub holds the PRIVATE key and is the only signer.** `keygen` writes `hub.key` mode `600` under `~/.arco/hub/` and refuses to overwrite. Agents get only `hub.pub`. The hub signs every lifecycle command; the agent verifies. Never move the private key onto an agent.
|
|
868
|
+
- **The hub is a ROUTER, not an authority on validity.** `routeAction` forwards a workflow action to the owning instance's socket; the *local Arco instance re-validates* against its current pending request (that handler is its own integration - the hub does not decide whether an action is still valid). Don't add validity logic to the hub.
|
|
869
|
+
- **Offline never deletes a registry entry.** `InstanceRegistry` keeps last-seen so the console shows *which* machine is asleep; `deriveState` returns offline but the entry stays. Only explicit `remove` drops it. Lifecycle dispatch to an offline/socketless instance returns `instance-offline`, not a hang.
|
|
870
|
+
- **Lifecycle replies correlate by nonce, with a timeout.** `sendLifecycleCommand` keys a pending resolver on the command's nonce and clears it on `lifecycle_result` or a `commandTimeoutMs` timeout - so a never-answering agent yields `timeout`, not a leaked promise.
|
|
871
|
+
- **Install is additive on a shared server.** Keep Arco service files and resources under its own service account. Do not restart, remove, or reconfigure services managed by the host or other applications.
|
|
872
|
+
- **Build and smoke locally before remote deployment.** `npm run smoke:management-hub` wires a K1 agent to a hub in-process. Treat any remote deployment as a separate, operator-reviewed step.
|
|
873
|
+
|
|
874
|
+
## Workflow-reporting layer
|
|
875
|
+
|
|
876
|
+
The live Arco *service* reporting workflows + applying reply/stop/continue. `server/src/management/{hubLink,initHubLink,identity}.ts` + the hub's service socket. Invariants:
|
|
877
|
+
|
|
878
|
+
- **INERT unless `ARCO_HUB_URL` is set.** `initHubLink` returns immediately with no env - an ordinary `npm run dev` / production boot must stay byte-unchanged. Never make the hub link connect by default.
|
|
879
|
+
- **Two connections, one card.** The agent (lifecycle, role `agent`) and the service (workflows, role `service`) both register under the SAME `instanceId` (shared `~/.arco/instance-id`). The hub keeps `agentSockets` + `serviceSockets` separately but ONE registry entry. Lifecycle commands route to the agent socket; workflow actions to the service socket. Don't collapse the two socket maps.
|
|
880
|
+
- **The local instance re-validates - the hub only routes.** `initHubLink.applyAction` looks up the live workflow and checks state (stop requires `busy`; reply requires non-empty body) BEFORE applying. The hub's `routeWorkflowAction` never decides validity. Keep validity logic server-side.
|
|
881
|
+
- **Apply via the existing turn primitives, synthetic ws+session.** stop → `handleCancel`; reply/continue → `handleUserMessage` with a `readyState: CLOSED` fake ws + a synthetic `Session` (mirrors the cluster auto-turn dispatch in `clusterAutoTurn.ts` - persistence runs, socket writes skip, events land in the workflow's events.jsonl). Don't invent a parallel turn path.
|
|
882
|
+
- **`hubLink.ts` stays turn-engine-free.** It takes `snapshotWorkflows` + `applyAction` as injected seams so it's smoke-tested without the server (`smoke:workflow-reporting`). The ONLY file coupling to server internals is `initHubLink.ts`. Keep that boundary.
|
|
883
|
+
- **`ARCO_HUB_URL` is shared by agent + service; path is cosmetic.** The hub WSS accepts any path and disambiguates by `role` on register. So one env var lights up both connections.
|
|
884
|
+
- **Desktop hub-link indicator is the ONLY management element in the Arco UI; status lives in an isolated store.** `client/src/stores/hubLinkStore.ts` (not the central appStore - keep it isolated so this optional surface can't destabilize the load-bearing store). Fed by `hub_link_status` (broadcast on change + on client connect). The chip renders nothing unless a hub is configured (`hubUrl` present). The click toggles `hub_link_set_enabled` → `setHubLinkEnabled` (local kill switch / reconnect). Everything else management-related stays in the separate console (trust boundary §1 rule 4) - don't grow the desktop surface.
|
|
885
|
+
- **Remote handoff is same-worker only + rejected mid-turn.** The `handoff` workflow action calls `handleHandoffRequest` with `mode:'quick'` (same provider/model) and `initHubLink.applyAction` returns `busy` if `wf.busy` - handoff summarizes *settled* context, so don't allow it mid-turn. It's fire-and-forget (the rotation streams through the workflow's normal events); the action result just confirms acceptance.
|
|
886
|
+
- **Transcript is reconstructed by the service, never read by the hub.** The hub has no filesystem access to the owning Arco instance, so `GET /transcript` triggers `transcript_request`; the service reads its own `events.jsonl` (bounded to 8 MB / 800 turns; `user_message_echo` is the operator, `primary_text` is the assistant, thinking is skipped) and returns `transcript_response`, correlated by requestId with a timeout. Do not make the hub read transcripts from disk; that would break the trust boundary and fail in remote deployments.
|
|
887
|
+
- **Decision context comes from tailing `events.jsonl`, not in-memory transcript.** `initHubLink.readLastMessage` reads the bounded tail (1MB) and reconstructs the **full** last assistant message from `primary_text` events (skip `phase:'thinking'`), back to the last `primary_turn_started` (capped at `MAX_MESSAGE_CHARS=200k` only to bound a runaway - keeps the tail if exceeded). Best-effort + never throws. Don't replace this with a per-broadcast in-memory hook without measuring - the tail read is cheap and avoids coupling to the broadcast path. The 1MB bound is load-bearing: `task_ledger_snapshot` events are large + frequent and crowd the tail, and the full message must be recoverable past them. The console renders it in a ≤60vh scrollable block.
|
|
888
|
+
|
|
889
|
+
## SSH lifecycle fallback
|
|
890
|
+
|
|
891
|
+
`scripts/management/sshLifecycle.ts` + the `sshTargets`/`sshExec` path in `createHub`. Invariants:
|
|
892
|
+
|
|
893
|
+
- **SSH is the LAST resort - only when the agent socket is down.** `sendLifecycleCommand` tries the agent socket first; it falls back to SSH only in the `instance-offline` branch, and only if a target is configured. A healthy agent always wins. Don't reorder.
|
|
894
|
+
- **The SSH path is NOT Ed25519-signed - that's intentional.** The agent path is signed because the agent verifies; over SSH there's no agent, so the **tailnet + ACLs are the auth** and `nonce:'ssh'` is a sentinel (it correlates nothing). Don't try to sign the SSH path or route it through `pending`.
|
|
895
|
+
- **Same allowlist template, wrapped - never a shell string.** `renderSshLifecycle` calls the SAME `renderLifecycleCommand` and passes the remote argv after `ssh … -- `, so there's no interpolation surface. It returns `null` for an off-platform/off-allowlist command (e.g. `arco-agent.restart` on macOS) and the hub reports `instance-offline` rather than running anything. Don't build the remote command as a string.
|
|
896
|
+
- **Targets are operator-supplied, never discovered, never committed.** `~/.arco/hub/ssh-targets.json` keyed by instanceId OR friendly name (`sshTargetFor` tries id then name). `parseSshTargets` drops malformed entries / bad platforms / non-JSON → empty map (no SSH fallback). The file holds host/user identity → keep it out of git.
|
|
897
|
+
- **`systemctl --user` over SSH needs the owning user session.** Connect as the account that owns the Arco user units, not root, so `systemctl --user` reaches that account's bus. An active session or `enable-linger` must keep the user manager available; root would target the system manager instead.
|
|
898
|
+
|
|
899
|
+
## ntfy external transport
|
|
900
|
+
|
|
901
|
+
`server/src/ntfyTransport.ts` + the `registerNoticeTransport` seam on `server/src/notifications.ts`. Invariants:
|
|
902
|
+
|
|
903
|
+
- **INERT unless `ARCO_NTFY_URL` is set.** `initNtfyTransport` returns `false` and registers nothing with no env - an ordinary `npm run dev` must stay byte-unchanged (same gating contract as `initHubLink`). Never push by default.
|
|
904
|
+
- **Mute is enforced UPSTREAM - never re-check it in the transport.** `emit()` returns `null` for a muted category *before* the transport fan-out, so a transport only ever sees surviving notices. This is the load-bearing single-chokepoint promise: muting an in-app category suppresses the push for free. Don't add mute logic to `ntfyTransport.ts`.
|
|
905
|
+
- **Transports are fire-and-forget; they can never break the in-app path.** `emit()` calls each transport in a try/catch (sync throws caught) and swallows async rejections (`.catch(()=>{})`). A slow/down ntfy must not delay or fail the `workbench_notice` broadcast. Don't `await` transports inside `emit()`.
|
|
906
|
+
- **ntfy header values are ascii-safe + single-line.** `headerSafe()` transliterates em/en-dashes + smart quotes to ASCII, strips remaining non-ascii, collapses whitespace, caps 200 chars - because ntfy `Title`/etc. are latin-1 HTTP headers and a unicode title (Arco uses em-dashes liberally) would otherwise break the request. The body (POST payload, not a header) keeps unicode. Don't pass raw titles as headers.
|
|
907
|
+
- **`Priority` never uses `urgent`.** error/warning→`high`, success→`default`, info→`low`. `urgent` (max) can bypass Do-Not-Disturb - deliberately unused.
|
|
908
|
+
- **Console tap-link is derived, not hardcoded.** `deriveConsoleUrl(ARCO_HUB_URL)` maps `ws→http`/`wss→https` and drops the path (the console is the hub's HTTP root on the same port). `ARCO_CONSOLE_URL` overrides. Don't hardcode the console URL.
|
|
909
|
+
- **Treat the notification topic as a secret.** The ntfy transport forwards only an opaque wakeup id, not notification content. The topic is the credential when authentication is not enabled; keep it in local configuration such as `ARCO_NTFY_URL`, never in the repository or documentation. Restrict any notification listener to a trusted network.
|
|
910
|
+
|
|
911
|
+
## Per-workflow REMOTE opt-in
|
|
912
|
+
|
|
913
|
+
`WorkflowConfig.remoteEnabled` (default OFF, persisted to meta.json) is the documented `REMOTE CONTINUATION` gate. Invariants:
|
|
914
|
+
|
|
915
|
+
- **One flag, three gates, all on the owning instance.** Visibility (`initHubLink.snapshotWorkflows` `continue`s past opted-out workflows), actions (`initHubLink.applyAction` returns `remote-disabled`), and notifications (the ntfy transport's `isRemoteEnabled` predicate) use the same opt-in state. The remote console omits opted-out workflows because filtering happens at the snapshot source. Do not add hub-side filtering; keep the gate at the source.
|
|
916
|
+
- **Default OFF is load-bearing.** Absent/false ⇒ invisible + uncontrollable + silent. A workflow only reaches the phone/console after the operator flips `◉ REMOTE` in the composer. Never default it on, and never report a workflow the operator hasn't opted in.
|
|
917
|
+
- **A toggle re-pushes immediately.** `handleUpdatePrimaryConfig` calls `refreshHubReporting()` (→ `link.pushNow()` + `emitStatus()`) only when the value actually changed, so the console + header monitored-count update at once instead of on the 4 s timer. Guard on a real change to avoid spamming pushes.
|
|
918
|
+
- **`handleUpdatePrimaryConfig` lives in `server/src/ws/updatePrimaryConfig.ts`** (split out of `workflowHandlers.ts` for the size budget, re-exported there). The in-memory and meta.json field lists must stay in sync - add new per-tab config fields to BOTH blocks.
|
|
919
|
+
|
|
920
|
+
## Remote Control v2
|
|
921
|
+
|
|
922
|
+
- **The cluster switch OVERRIDES member flags, both directions.** `isWorkflowRemoteVisible` (initHubLink) is the ONE visibility rule: a clustered workflow follows `ClusterState.remoteEnabled` and its own `remoteEnabled` is ignored - a member flag flipped before joining must not leak the cluster, and the cluster switch must not need N member flips. The same rule gates snapshot, applyAction, monitored-count, AND the ntfy predicate in `index.ts` - change one, change all four (that's why it's one function).
|
|
923
|
+
- **Gates arming is a SECOND switch, never implied - and cluster-level for members (2026-07-18).** Remote conversation must never grant remote gate-approval authority. `areGatesRemoteResolvable` (initHubLink) is the one rule: clustered workflows follow `ClusterState.remoteGatesEnabled` (the cluster ⛨ GATES chip; member flags ignored), solo tabs their own `remoteGatesEnabled` (composer chip). `gate_resolve` re-validates server-side (`gates-disabled`); the console renders unarmed gates read-only. No remote arg-editing - approvals run the parked proposal as-is.
|
|
924
|
+
- **The console mailbox path uses `peek()`, never `drain()`.** Draining destroys the message files (§ Cluster mode); every remote mailbox surface is read-only reconstruction. Same for the R5 activity feed - bounded `events.jsonl` tail reads, no state mutation.
|
|
925
|
+
- **A1 forces at most ONE refresh per turn, and only when a retry slot remains.** The per-turn flag stops a dead refresh chain from looping; the `attempt < MAX_RETRY_ATTEMPTS - 1` guard stops a discarded-'retry' silent failure. `forceRefreshTokens(staleObtainedAt)` skips the refresh when another worker already rotated the chain - don't remove the obtainedAt guard (concurrent workers would burn each other's rotated tokens).
|
|
926
|
+
- **The manual NUDGE is not the idle nudger.** The idle nudger stays operator-facing-only (never prompts workers). The remote NUDGE verb is one operator tap = one canned visible prompt through `handleUserMessage` - per-tap, no standing behavior. Keep them distinct.
|
|
927
|
+
- **`cluster_member_reorder` must be a full permutation.** `setMemberOrder` rejects length/set mismatches so a stale drag can't drop or duplicate members. Order is display-only - nothing may start routing on members[] position.
|
|
928
|
+
- **initHubLink ↔ clusterHandlers is a deliberate ESM cycle** (refreshHubReporting one way, cluster action handlers the other). Both sides touch the other's exports only at call time - never add module-evaluation-time usage across that edge.
|
|
929
|
+
|
|
930
|
+
## Task children
|
|
931
|
+
|
|
932
|
+
- **Depth-1 cap is enforced at construction.** Children spawn with `claudeNativeTaskDisabled: true` in `WorkerConfig`; the worker checks the flag and `getNativeToolDefinitions({ taskDisabled: true })` drops `Task` from the tool registry sent to Anthropic. The dispatcher also early-returns `[error] Task is depth-capped at 1` if the model finds another path. Don't loosen - the explicit non-goals forbid autonomous orchestration trees.
|
|
933
|
+
- **`tasksByTaskId` map is per-worker, not global.** Only the parent that called `Task` can read its child's accumulated output via `TaskOutput`; cross-tab `TaskOutput` calls return `[error] no such task`. The map drops entries on parent dispose, so a child tab promoted to standalone (rare; operator-only) becomes unaddressable from the parent's side. Don't rebuild this as a global registry - it would let any Native worker peek at any other's children, breaking the depth-1 cap's containment story.
|
|
934
|
+
- **Parallel `Task` dispatch is `Promise.all` for `Task` blocks, sequential for everything else.** Task children share no filesystem state so concurrent dispatch is safe and substantially faster on fan-out turns. Other tools stay sequential because they often share the cwd's filesystem state (Edit-after-Read invariant, etc.).
|
|
935
|
+
|
|
936
|
+
## Preview tab
|
|
937
|
+
|
|
938
|
+
- **Stale `vite.config.js` shadows `vite.config.ts`.** Vite resolves `.js` before `.ts`. A stray `tsc` run that compiles `client/vite.config.ts` to `vite.config.js` (and `.d.ts`/`.js.map`) means every subsequent edit to the `.ts` is silently ignored - Vite loads the frozen `.js`. The three artifacts are gitignored but easy to forget. Symptom: Vite changes don't take effect even after restart; `npx vite --debug config` shows the old shape. If you see this, delete `client/vite.config.{js,js.map,d.ts}`. The repo's typecheck script must use `tsc --noEmit`; don't introduce a build step that emits next to the source.
|
|
939
|
+
- **Vite's bypass needs the bless map for transitive imports.** When `/src/main.ts` imports `/src/render/foo.ts`, the browser's Referer for the sub-import is `http://localhost:5173/src/main.ts` - NOT the iframe URL. A naive Referer regex (`/api/preview/<wfid>/`) misses the entire transitive import graph and they fall through to Arco's own Vite, which 404s as text/html → empty MIME → blocked module. Fix: every URL the bypass proxies gets blessed (path → wfid, 60 s TTL); subsequent requests whose Referer points at a blessed path also resolve. Bless by **pathname only** - Vite's pre-bundled deps include `?v=hash` query strings but the lookup uses `URL(ref).pathname`. Don't store `path?query` as the bless key.
|
|
940
|
+
- **The bypass rewrites `req.url` to include the explicit `/api/preview/<wfid>/` prefix.** Once a request is identified as preview-bound, it's forwarded with the rewritten URL so the server's `PREFIX_RE` matcher catches it without needing Referer. The browser still sees the response on its original request, so its module URL stays `/src/main.ts` - keeping the import graph consistent.
|
|
941
|
+
- **Preview proxy responses set `cache-control: no-store` + `connection: close` + drop the upstream `etag`.** Earlier symptoms were "iframe stays white after restart": Firefox had cached previous empty-MIME failures (when the proxy or port wasn't ready) under the canonical URL, then Etag-revalidated to 304 against Vite's index.html and kept the bad cached body. `no-store` prevents future caching, dropping etag prevents revalidation reuse, `connection: close` prevents response-boundary misalignment on parallel keep-alive fetches through the double-proxy chain (5173 → 3001 → 5181). All three together. If you remove any, expect a regression. The proxy also strips RFC 7230 hop-by-hop headers (`connection`, `keep-alive`, `transfer-encoding`, `upgrade`, `proxy-*`, `te`, `trailer`) in both directions - forwarding them confuses HTTP parsers.
|
|
942
|
+
- **Iframe is given a fixed logical viewport (width 1920, height per operator-selected aspect ratio: 1440 / 1200 / 1080 for 4:3 / 16:10 / 16:9), CSS-scaled to the largest fitting box-of-that-ratio.** Don't change the iframe to `width: 100%; height: 100%`; the dev server inside renders to its viewport size and most apps assume a desktop-class width. The fixed logical size + scale is what gives "no clipping at any pane size." `ResizeObserver` on the wrapper recomputes scale on every pane resize AND on aspect change. Aspect choice persists to localStorage `arco.preview.aspect` (global, not per-workflow). Width was originally 1280 - bumped to 1920 on 2026-04-28 because real desktop apps overflowed at 1280. Frame is centered in the pane both axes (`alignItems: center`); top-aligning leaves a tall black band below short content.
|
|
943
|
+
- **`previewAutoDetect` never overrides `manual: true`.** When the operator types a port and hits BIND, the binding is sticky - Layer 1 / Layer 2 detection still runs (in case the agent later spins up a fresh server) but cannot replace a manual entry. Don't unify the paths; the operator's choice always wins.
|
|
944
|
+
- **`freshlyBound: true` only on real binds, not hydration replay.** The auto-flip-to-PREVIEW UX hinges on this flag: replays stamp `false`. If you ever broadcast `preview_set` from a path that isn't a fresh operator/auto bind (e.g. a periodic refresh), set `freshlyBound: false` or the user gets yanked into the preview tab on every server restart.
|
|
945
|
+
- **`PreviewTab`'s scaling `useLayoutEffect` must depend on `src`.** The effect observes `fitWrapRef.current` to set `boxStyle`, but that wrapper div only mounts when `src` is non-null. Object refs don't notify effects when the underlying DOM node attaches - so on first BIND the wrapper appears in DOM but the effect (deps `[logicalH]` only) never re-runs, `boxStyle` stays null, and the iframe never renders. Symptom: BIND appears to do nothing until you switch tabs and back (which remounts the component). Keep `src` in the dep array.
|
|
946
|
+
- **Preview history is per-workflow and persisted to `meta.previewHistory`.** Every successful `set_preview_port` appends an entry (most-recent first, capped at 5, consecutive same-port dedupes to a timestamp refresh). `preview_history` rebroadcasts on hydrate alongside `preview_set` so reconnect doesn't lose the chain. If you add a new bind path (a third-party detector, an API trigger), make sure it goes through `handleSetPreviewPort` so history stays in sync - don't write `wf.preview` directly.
|
|
947
|
+
- **Right-pane tab state is per-workflow.** `RightPanel` stores `Record<workflowId, RightTab>` under `localStorage['arco.sidePanelTab.byWorkflow']`. Earlier this was a single global key, which leaked tab state across workflows (PREVIEW on one tab dragged every workflow onto PREVIEW). Default for unknown workflowIds is `'files'`. Don't reintroduce a single global key.
|
|
948
|
+
|
|
949
|
+
### Preview verification / capture
|
|
950
|
+
|
|
951
|
+
- **The dev server is NOT a CDP endpoint.** It serves HTTP. "Capture the preview" means launch a *browser* and point it at `http://127.0.0.1:<port>/`. Don't try to connect CDP to the dev-server port - there's nothing listening for it there.
|
|
952
|
+
- **No bundled browser - ever.** Installs are expected to be manifest-tracked (never `curl|sh`); puppeteer/playwright download a Chromium on `npm install`, which is exactly what we can't do. `captureViaCdp.ts` drives a *system* Chrome/Chromium over the existing `ws` dep (no new dependency). If you're tempted to add puppeteer for "robustness", don't - extend `findBrowserBinary` instead.
|
|
953
|
+
- **Capture must degrade, never throw.** `capturePreview` always resolves; no browser / no port / nav failure all land in `{ ok:false, error }` (or `ok:true` with a navigation-failure console entry for a refused connection). The `finally` block *always* kills the headless child + removes the temp `--user-data-dir`, even on error - a leaked headless Chrome per capture would pile up fast.
|
|
954
|
+
- **The report references the screenshot by filename - no base64 data-URI embed.** Embedding bloats the report and, when G2 attaches it to a Review, ships a huge image the reviewer can't read (and pays tokens for). The UI shows the image via `/api/workflows/artifact-raw`. If you "improve" the report by inlining the screenshot, you'll regress both.
|
|
955
|
+
- **`/api/workflows/artifact-raw` must be matched BEFORE `/api/workflows/artifact`.** The JSON reader's prefix (`/api/workflows/artifact`) also matches the longer raw path; route order in `workflowDataRoutes.ts` is load-bearing. Same path-safety guards apply (sanitized name, resolved-prefix escape check).
|
|
956
|
+
- **`previewCaptures` is ephemeral (not replayed).** It lives only in the client store, not in `events.jsonl` replay - the artifacts on disk are the durable record. After a reconnect the strip is empty until the next capture; that's expected, don't add replay plumbing for it.
|
|
957
|
+
|
|
958
|
+
## Efficiency behavior
|
|
959
|
+
|
|
960
|
+
- **Hook stdout parser is tolerant - never throws.** `parseHookOutput` (`server/src/providers/claude-native/hooks.ts`) treats non-JSON, malformed JSON, and non-object top-levels as `{}`. A hook that prints log lines to stdout is safe; only well-formed JSON whose top level is an object yields recognized fields. Don't wrap the parser in try/catch in callers - that's the contract; surface-area regressions break rtk integration.
|
|
961
|
+
- **`hook_rewrote_input` must fire on every PreToolUse rewrite.** Without the event, transcript review can't tell why a tool input differs from what the model emitted - looks like a model hallucination of the input. The chain is: `parseHookOutput(stdout).hookSpecificOutput.updatedInput` non-empty → `workflowEventBroadcast({type: 'hook_rewrote_input', ...})` → `broadcastWorkflow` → `events.jsonl`. If you add a new rewrite-capable surface (e.g. PostToolUse input rewrites in a future revision), emit the same event.
|
|
962
|
+
- **Last-write-wins across multiple hooks for `updatedInput`.** `{ ...input, ...updatedInput }` is applied in hook iteration order; each rewrite emits its own `hook_rewrote_input` event so the operator can see the chain. Matches Claude Code's documented behavior - don't switch to first-write-wins or deep-merge.
|
|
963
|
+
- **`config-protection` matches by basename, not regex on the full path.** `checkConfigProtection` (`pretoolGuards.ts`) resolves the input path against `cwd` then matches `basename()` against `PROTECTED_BASENAMES` plus a small regex set for `tsconfig.*.json`. A nested package's `tsconfig.json` is just as protected as the root's. Don't over-broaden the patterns (regression risk: blocking a source file named `eslint.config.ts` in user code). Don't use absolute-path globs unless we're explicitly carving out an exception path - they hide where the gate fires.
|
|
964
|
+
- **`config-protection` is per-tab relaxable via `efficiencyConfigProtection` - default ON, opt-out is explicit.** The gate now reads `(this.config.efficiencyConfigProtection ?? 'on') === 'on'` in `worker.ts:dispatchTool` before calling `checkConfigProtection`. Absent field ⇒ gate ON (safety default), so a missing value never silently disables it; only an operator flip to `'off'` (CONFIG-tab → CONFIG-PROTECTION GATE, Native-only) relaxes it. Wired exactly like `efficiencyFactForce` (protocol → meta.json → updatePrimaryConfig live-set + rehydrate restore → turnEngine per-turn resolve → seedWorker/WorkerManager) **except** there is NO new-tab default stamp: fact-force explicitly stamps `'off'` for new tabs so the workflow-created echo and saved metadata agree, while config-protection's `?? 'on'` fallback means its default is uniform and needs no stamping. Don't add a config-protection stamp - it would make an absent field and an explicit `'on'` indistinguishable on disk for no behavior gain. The gate is Native-only because `checkConfigProtection` only runs in the in-process Native `dispatchTool` (same protocol limit as fact-force - see the Codex note below); `turnEngine` hard-zeros non-Native transports to `'off'` so the flag is never a meaningless no-op flag on a CLI/Codex tab.
|
|
965
|
+
- **`tool_gate_triggered` is the audit signal - keep firing it from every guard.** Even if a guard becomes "default off in CONFIG-tab", the event still fires when the guard ran and decided "allowed". Operators reading transcripts depend on knowing which guards inspected which calls.
|
|
966
|
+
- **Auto-compaction fires Arco COMPACT, not Claude API compaction.** Provider selects the Native and Ollama defaults; old efficiency values migrate to explicit policies. The API beta remains independent and off by default.
|
|
967
|
+
- **Per-turn token telemetry uses API ground truth.** `primary_turn_token_usage.input/output/cacheRead/cacheCreate` come from the Anthropic / Codex API response; never estimate them. `thinkingBytes`/`toolResultBytes` are byte sums (deliberately labeled "B"/"KB" in the UI, not "tk") because no public Anthropic tokenizer matches their billing tokenizer. CLI/Codex transports set `toolResultBytes = -1` (unknown) - render as " - " not 0; 0 implies "no tool calls happened" which is wrong.
|
|
968
|
+
- **`turnMessageStart` index in Native must come BEFORE the operator message push.** The byte-counting walk (`worker.ts:runTurn`) starts from this index and sums thinking/tool_result blocks added during the turn. If you move the operator-message push above the index capture, the walk also counts the operator's message - but operator messages don't have thinking/tool_result blocks so the bug is silent until someone audits the numbers.
|
|
969
|
+
- **`TURN_TOKEN_USAGE_CAP = 200` is a sliding window, not the durable record.** `events.jsonl` has every turn forever; the client store caps at 200 because rendering 5000 rows in the Activity tab hurts scroll perf. If you need full history, write a `tokenStats(workflowId)` helper that scans `events.jsonl` server-side - don't bump the cap.
|
|
970
|
+
- **Filters never operate retroactively (cache invariant).** The `filterToolResult` pipeline runs only on the *current* turn's tool_result before it enters `messages[]`. Prior turns are never rewritten - that would invalidate every upstream cache breakpoint and turn a token-saving feature into a token-burner. If a future "rewrite history to save more" idea surfaces, the right surface is Arco's operator-clicked `clear_tool_uses` (already cache-busts under operator control), not silent retroactive mutation.
|
|
971
|
+
- **Raw-tools artifacts must round-trip - operator must recover what the model didn't see.** When `tool_filtered.originalBytes !== filteredBytes`, the worker MUST write the pre-filter raw bytes to `artifacts/raw-tools/<turnId>-<toolUseId>.txt.gz` AND stamp `rawArtifactPath` on the event. Skipping the artifact write because "the filter looks safe" is the failure mode that turns filtering from a transparent reduction into a silent context manipulation. The chat chip's path-copy affordance is operator-facing proof that recovery exists; if the file isn't there, the chip lies.
|
|
972
|
+
- **`branch_on_exit` is critical for compiler / test packs: errors land at the end.** `cargo test`, `pytest`, `jest` all emit the failure summary AFTER the test run. A naive `head_cap` on a failed run truncates exactly the bytes the operator and model need. Pack authors set `branch_on_exit: true` and the dispatcher flips `head_cap → tail_cap` when `exitCode !== 0`. Forgetting this on a new pack will silently bury errors - review every new pack's red-path test (`makeCargoTestRed` / `pytest red run` shape) before merging.
|
|
973
|
+
- **Filter pipeline applies BEFORE PostToolUse hook augmentation.** Order in `dispatchTool`: `executeNativeTool` → filter → PostToolUse hook stderr/`additionalContext` append. If you flip the order, hook output gets caught by `replace[]` / `skip[]` patterns meant for the tool's own output and operator-curated context disappears.
|
|
974
|
+
- **`tool_filtered` is emitted even when the filter is a passthrough (no byte delta).** Operators reading transcripts depend on knowing "the filter ran and chose not to shrink" vs "the filter never fired" - same shape rule as `tool_gate_triggered`. The `rawArtifactPath` field is the truth source for "did bytes change": absent ⇒ passthrough; present ⇒ recovery available.
|
|
975
|
+
- **Filename safety in `persistRawArtifact`.** `toolUseId` is sanitized via `replace(/[^a-zA-Z0-9_-]/g, '_').slice(0, 64)` and prefixed with `currentTurnId.toString(36)`. Anthropic's tool-use ids today are URL-safe, but tightening to a regex-passable charset costs nothing and inoculates against a future SDK change that ships colons or slashes. Don't loosen back to raw-string.
|
|
976
|
+
- **Aggressive mode is identical to conservative until packs are promoted.** Tool-result filtering ships only conservative packs (`bash-cargo-test`, `bash-jest-vitest`, `bash-pytest`, `bash-git-status`, `bash-find`, `bash-grep`, `bash-ls`); `aggressive` resolves the same list. Promoting `bash-npm-install` / `bash-cargo-build` / `bash-docker-build` / `bash-git-push` from named-deferred to shipped requires follow-up work with operator data showing the conservative wins are real and the aggressive packs don't bury operator-relevant errors. Don't ship aggressive defaults without that data.
|
|
977
|
+
- **Bash dispatcher classifies by leading token only - piped commands count as their pre-pipe tool.** `classifyBashCommand` matches `head + sub` (e.g. `git status`, `cargo test`) on the first whitespace-delimited tokens after stripping `sudo` / `time` / env-var prefixes. Pipes, redirections, and command substitutions are NOT parsed: `find . -type f | wc -l` classifies as `find` and emits a `tool_filtered` event keyed to the `find-head-cap` pack - even though the actual tool stdout is `wc`'s 6-byte count. `originalBytes` / `filteredBytes` always refer to the FINAL tool output (post-pipe), not the unpiped command's hypothetical output. This is correct behavior (filtering operates on the bytes the model actually receives, not on shell-pipeline internals) but inflates `tool_filtered` event counts and produces lots of equal-byte passthrough events when the model defensively pipes. Don't "fix" this by parsing pipelines - that path leads to a shell parser inside the dispatcher.
|
|
978
|
+
- **`codebase-memory-mcp` ships a `--skip-config` flag - Arco MUST use it.** The upstream binary auto-edits user agent config files (`~/.claude/settings.json` and friends) on install / run unless `--skip-config` is passed. Both spawn sites hard-code it: the codebase-memory reindex route (`/api/workflows/:wfId/codebase-memory/reindex` in `server/src/http/clusterRoutes.ts`) and the F9 `serve` entry (`buildCodebaseMemoryEntry` in `server/src/mcp/mcpConfigWriter.ts`). Any future code path that invokes the binary inherits this invariant - grep for `codebase-memory-mcp` before merging anything that spawns it.
|
|
979
|
+
- **ADR is the only LLM-write surface in `codebase-memory-mcp`; operator-prompted only.** The binary itself is deterministic (tree-sitter graph + BM25 + SQL queries). The only path that triggers a write is `manage_adr`, and it fires only when the operator explicitly asks ("make an ADR for this"). Don't add auto-extraction surfaces ("after every primary_complete, save a fact"), don't surface ADR creation as a background action, don't let the model write ADRs unprompted. Those patterns are the canonical bad shape per the autonomy four-question test.
|
|
980
|
+
- **Phase F9 attach is spawn-time MCP registration, gated on project context.** `WorkflowConfig.codebaseMemory.attached` threads to `WorkerConfig.codebaseMemoryAttached` / `codebaseMemoryIndexPath` (`indexPath || cwd`) in `turnEngine.ts`. CLI Claude gets a `codebase-memory` entry in `.arco/<wfid>/mcp-config.json` via `mcpConfigWriter.writeFor`; both Codex transports layer the same child via `-c mcp_servers.*` overrides (app-server folds the index path into its bootstrap signature, so a path change recycles the child). Native ignores it. Chat tabs (`projectContextEnabled` false) never attach.
|
|
981
|
+
- **Fact-force gate must be silent on second+ edits per turn (`filesEditedThisTurn` set).** `checkFactForceFirstEdit` (`pretoolGuards.ts`) consults the worker's `filesEditedThisTurn` Set and returns `blocked: false` for any path already in the set - including a path that was blocked earlier this turn and is now being re-issued. The worker MUST `filesEditedThisTurn.add(resolvedPath)` on both the blocked AND the allowed branches (see `worker.ts:dispatchTool`); skipping the add on the blocked branch would re-fire the gate every time the model re-issued the edit and create an infinite ping-pong. The set is cleared at the top of `runTurn`; cancel paths return before mutating it, so a cancelled turn leaves the prior set in place - defensible because the gate engages on the NEXT operator message regardless.
|
|
982
|
+
- **Fact-force defaults OFF (2026-09-02).** It is a cognitive nudge, not a verifier: the synthetic failed tool result makes the model recite importers, API surface, and the operator instruction, but Arco does not check whether those statements are true. The per-file failure, prose and retry add content to the transcript and append-only context. New workflows explicitly stamp `'off'`; absent values also resolve off; a saved or newly supplied explicit `'on'` remains honored. Keep it available as a per-tab CONFIG opt-in, but do not restore a default-on path without measured operator evidence.
|
|
983
|
+
- **Pre-tool-use guard order is load-bearing: config-protection first, fact-force second.** Two reasons: (1) config-protection is a cheap path-shape check (no state), so running it first short-circuits without touching the fact-force state. (2) If both rules fire on the same path (e.g. operator armed fact-force AND the model edits `tsconfig.json`), the operator gets the more specific config-protection message - "fix your code instead of weakening the config" beats "list importers and re-issue." Don't reverse the order; the model's re-issued edit after fact-force would then bounce off config-protection on the second pass, which is twice the synthetic-result churn.
|
|
984
|
+
- **Fact-force is Native-only at first ship - CLI parity is F4 deferred.** The gate lives inside `claude-native/dispatchTool`, which only runs on the Native transport. CLI Claude reaches the same surface via the `.arco/<wfid>/hooks.json` shim when this parity path is enabled. Don't add a CLI codepath inside `pretoolGuards.ts`; the canonical site for CLI parity is the hooks shim, not the gate function. If operator data shows CLI tabs need it before F4 ships, prefer the shim over a parallel implementation - the gate semantics MUST match Native exactly or transcript review on cross-transport sessions will be confusing.
|
|
985
|
+
- **Fact-force (and most other Native-only efficiency knobs) being absent for Codex is a protocol limit, not an oversight - don't "port" it.** The Native gate works because tool dispatch is synchronous and in-process: Arco returns a synthetic `tool_result` *before* the edit lands. Codex gives no equivalent pre-execution gate - `exec` only surfaces tool calls in the final aggregated output (no mid-turn hook at all), and `appserver` *has* approval bindings (`FileChangeRequestApprovalParams`, `CommandExecutionRequestApprovalParams`) but they're dropped in `onNotification`'s `default` case and there is **no approval-response RPC path** wired to send a denial back. Wiring it is ~500 LOC against an undocumented approval-response shape (needs a live Codex harness to pin down) and would bolt a pre-execution gate onto Codex's async-after-completion event model. Same root reason server-side compaction, interleaved-thinking beta, tool-result filter, and sandbox tools can't exist for Codex today: they all mutate the in-process Anthropic request (body / beta headers / `tools[]` / system blocks), which an external subprocess doesn't expose. Output style is the narrow exception for Codex app-server because Arco owns the stable per-turn input prefix there. If fact-force on Codex ever becomes worth it, it's a standalone initiative starting from the approval protocol, not a parity shim. (The F4 hooks shim above is for **Claude CLI**, which Codex does not read.)
|
|
986
|
+
- **`ctx_action` sentinels must be emitted from every code path that mutates `messages[]` in a way the operator should see during transcript review.** Today's emit sites (`worker.ts`): `prune_orphan_tool_use` (trigger: recovery) on the orphan-drop at the top of `runTurn`, and `compact` (trigger: auto-threshold) inside `maybeEmitAutoThreshold`. Normal turn-flow pushes (operator message, assistant message, tool_results, drainSteer items) do NOT emit ctx_action - they're additions, not reshapes. `seedMessages` (Spawn-from-here init), `replayMessagesFromEvents` (rehydrate), and `dispose` (tear-down) are lifecycle paths that also don't emit. Server-side `compact_20260112` mutates Anthropic's prompt prefix, not our local `messages[]`, so it doesn't emit ctx_action from Arco either - it rides as a per-turn body field, not an event. Same rule applies if `clear_thinking` / `clear_tool_uses` ever return behind an explicit operator action. Forgetting the sentinel on a NEW path that does mutate local `messages[]` (e.g. a future "cancel-the-last-turn-and-reissue" surface) breaks transcript review silently; the operator sees turn N+1 without knowing turn N was rewound.
|
|
987
|
+
- **`primary_tool_counter` is the worker-authoritative chip signal - don't recount from events.** shipped the chip reading `JobState.toolCallsSinceHandoff` (a client-side recount of `primary_tool_use` events). The worker counter adds `JobState.toolCallsSinceCompact` mirrored from the worker's `toolCallCountSinceCompact`. The chip prefers the worker mirror; the recount stays as the audit fallback for non-Native tabs and for the first paint before the worker emits. Worker rebuild after `handoff_complete` is the implicit reset (the new worker starts at counter=0); the client also eagerly zeroes the mirror on `handoff_complete` to avoid a stale paint between the handoff and the first post-handoff tool dispatch. Auto-threshold compact firing inside `maybeEmitAutoThreshold` emits a follow-up counter=0 event after the reset; without it, the chip would stay at `n` until the next tool dispatch.
|
|
988
|
+
- **The per-tab sandbox database MUST be cleared on tab close (`remove_workflow`) or the operator's explicit Clear-DB click.** `destroySandbox(cwd, wfId)` closes the cached `better-sqlite3` handle and unlinks `sandbox.db` + `sandbox.db-wal` + `sandbox.db-shm`. Skipping the tear-down on tab close would leak per-tab state across workflows that share a cwd - defeating the per-tab opt-in contract. The teardown path is in `handleRemoveWorkflow` (`server/src/index.ts`) and the operator clear hits `POST /api/workflows/:wfId/sandbox/clear`. Both fire WS events (`sandbox_db_cleared`) so transcript review can see the truncation. If a future code path adds another lifecycle endpoint that should also clear (e.g. a hypothetical "reset workflow"), call `destroySandbox` from there too.
|
|
989
|
+
- **Sandbox subprocess executor MUST kill the process group on timeout, not just the immediate child.** `sandboxExecutor.ts` spawns with `detached: true` so the child becomes the process-group leader, and the timeout path calls `process.kill(-child.pid, 'SIGTERM')` (negative PID - the kernel interprets that as the process group) with a 1 s SIGKILL escalation. A python script that forks workers or a shell script that `&`-launches background jobs would leak grandchildren past a naive `child.kill('SIGTERM')`. Don't refactor to the simpler form - the test that surfaced this on context-mode's PolyglotExecutor (the inspiration) was a `python -c "import multiprocessing; multiprocessing.Pool(4).map(time.sleep, [60]*4)"` script that leaked 4 sleepers per call.
|
|
990
|
+
- **`node:sqlite` (Node 22+ builtin) has NO FTS5 module - the sandbox uses `better-sqlite3` instead.** The plan brief listed `node:sqlite` as a fallback option; in practice Node 22.14.0's bundled SQLite is compiled without FTS5 so `CREATE VIRTUAL TABLE … USING fts5(…)` returns `Error: no such module: fts5`. Don't switch back to `node:sqlite` without verifying FTS5 availability on the target Node version. The `SandboxStore` class encapsulates the choice; if a future Node release lights up FTS5 (or someone wants a loadable-extension build), swapping is a single-file refactor.
|
|
991
|
+
- **The sandbox FTS5 tokenizer is `unicode61` (the default) - NO stopwords applied.** Spot-checks show 'added' / 'fix' / 'the' all survive tokenization and match exactly. The original brief warned about stopword false-negatives; the inverse is the actual invariant - DO NOT switch to a tokenizer that adds stopwords (e.g. `porter` with a stopword set) without measuring the impact on technical search. The fact that short common English words match is load-bearing for the kind of "search for 'added the foo handler'" the model is likely to issue.
|
|
992
|
+
- **Sandbox nudge ordering: cluster plan + role BEFORE sandbox nudge BEFORE operator's appendSystemPrompt / systemPrompt / output style.** `buildSystemBlocks()` appends in that order so cluster framing wins over the sandbox nudge (cluster context is more load-bearing) but the sandbox nudge wins over operator prompts only insofar as it comes earlier - Anthropic's system block ordering doesn't enforce precedence, but the prompt-cache implications (sandbox nudge gets its own cache-control:ephemeral block) and the model's reading order both rely on this sequence. Don't insert the sandbox block before plan / role; don't append it after the operator's blocks. Documented as a forced-block invariant in `a forced-block invariant`.
|
|
993
|
+
- **Sandbox tools are per-tab, not per-cluster - each cluster member has its own sandbox.db.** Cluster mode and sandbox mode interact orthogonally. If a future operator wants a shared knowledge graph across a cluster, the answer is "attach codebase-memory-mcp" , not "extend the sandbox to be cluster-wide." Cluster-wide sandbox would (a) re-introduce a shared-state coordination problem on the path chosen for per-tab isolation to avoid, and (b) cross the per-tab opt-in contract.
|
|
994
|
+
- **`update_primary_config` field threading needs FOUR call sites or the toggle dies silently.** Adding a new per-tab config field (e.g. `efficiencyToolFilter`, `outputStyle`) requires edits to: (1) `WorkflowConfig` and `WorkerConfig` in `shared/src/protocol/workflows.ts` and `UpdatePrimaryConfigMessage`, (2) `useWebSocket.updatePrimaryConfig`'s undefined-check + spread, (3) `handleUpdatePrimaryConfig` in `server/src/ws/updatePrimaryConfig.ts` (`wf.config` mutation + `meta.json` mirror - both blocks), and (4) `appStore.updateJobPrimary`'s parameter type AND its setter logic. Skipping (4) is silent: TS structural typing accepts the wider object passed from `App.tsx`'s `onUpdatePrimary` arg into the narrower `updateJobPrimary` action, the WS message goes through, the server persists - but the local optimistic update never lands so the CONFIG-tab button highlight never moves. Surfaced during the tool-filter smoke test; same trap will catch any future field. When adding a new field, grep for the existing `claudeNativeCompact` threading as the canonical four-place template.
|
|
995
|
+
|
|
996
|
+
### Output style
|
|
997
|
+
|
|
998
|
+
- **Addendum text is checked into the repo - not LLM-generated, not session-modified.** `outputStyleAddendum(level)` (`server/src/providers/outputStyle.ts`) is the single source of truth for the per-level provider-prompt text. Editing it requires a code change + commit; no operator-facing knob can mutate the body. This is the autonomy-test guardrail: an LLM can't curate its own instructions. If a future "let the model self-tune the addendum" idea surfaces, that's the canonical bad pattern from `CLAUDE.md`'s hard fences - reject without a plan-doc update + operator sign-off.
|
|
999
|
+
- **Review / Handoff seed / DOCS / GIT primitives MUST run with `outputStyle: 'normal'` regardless of source-tab pick.** Hard-coded at four sites (plan §6): `runReviewer.ts` (reviewer WorkerConfig), `exportContext.ts` (CLI handoff path, Native handoff path, fresh-summarizer path), and `handleUserMessage` (overrides outputStyle when `UserMessage.primitive === 'docs' | 'git'`, set by the in-tab DOCS / GIT composer dialogs). DOCS / GIT new-tab spawn forces normal client-side via `spawnConfigFromRunAs`. Terse-style reviews regress operator comprehension; terse handoff seeds reduce the *next* worker's input fidelity. Don't make this a per-spawn knob. If a future operator argues for a terse review, treat it as operator data toward changing the default - not as a config-knob escape hatch.
|
|
1000
|
+
- **Spawn-from-here DOES inherit the parent's `outputStyle`.** Different from the four primitives above. `SpawnDialog` spreads `...parentConfig`, so `outputStyle` flows through; the operator can flip in the child tab. Don't add an opt-out at `SpawnDialog` for `outputStyle` - terse → terse is the explicit operator pick on the parent and they kept it for a reason. Inheritance is the right default for a fresh-but-related tab.
|
|
1001
|
+
- **Addendum text MUST preserve code blocks / error strings / file paths verbatim AND MUST NOT compress security warnings, irreversible operations, or order-sensitive multi-step sequences.** Each level's text leads with explicit "auto-clarity" rules and a verbatim-preserve list. A new level (e.g., a hypothetical `ultra`) shipped without these rules will silently regress technical correctness - the model will compress a sed command's flags or shorten an error string. Don't ship a new level without the verbatim list; review the existing levels' text as the floor.
|
|
1002
|
+
|
|
1003
|
+
## Cluster mode
|
|
1004
|
+
|
|
1005
|
+
- **BLIND is context isolation, ISOLATED is filesystem isolation.** BLIND
|
|
1006
|
+
keeps the project cwd but receives no plan/board/roster/role/focus/efficiency
|
|
1007
|
+
or progress context and gets only `peer_send` / `peer_read`. ISOLATED is
|
|
1008
|
+
Claude-Native-only, executes in
|
|
1009
|
+
`~/.arco/clusters/<clusterId>/isolates/<wfid>/workspace`, removes Bash,
|
|
1010
|
+
hooks, project prompts/refs/attachments/settings/skills/knowledge/goal,
|
|
1011
|
+
codebase memory and registry MCPs, and still persists events/meta under the
|
|
1012
|
+
real project workflow directory. Do not weaken this to a prompt-only rule.
|
|
1013
|
+
- **A BLIND member cannot transition its assigned board task; completion returns by mail.** Task assignment/transfer may still point at a BLIND workflow so the operator and STANDARD members can track ownership, but every plan/task tool is intentionally absent and the shared peer-ops layer returns `access_denied` if the member guesses the real REST shim. The member must finish the substantive work, `peer_send` its report, and ask a STANDARD member/operator to update the board. `BLIND_CLUSTER_DOCTRINE` is shared by Native, local, and string-form providers and explicitly forbids probing Arco HTTP APIs/workflow storage to recover hidden state. Keep this centralized: a blind member cannot update task status, so it returns `access_denied` and requires escalation through the supported peer-report path rather than probing routes.
|
|
1014
|
+
- **Entering ISOLATED always means replacement.** Reusing a workflow/session
|
|
1015
|
+
that previously saw the project would leak retained context. ISOLATED rejects
|
|
1016
|
+
transcript import and task transfer. Replacement keeps the old workflow on
|
|
1017
|
+
disk, atomically swaps the cluster slot, and discards its mailbox.
|
|
1018
|
+
- **Isolated artifacts cross the boundary only through mailbox copies.**
|
|
1019
|
+
`peer_send artifact_paths` accepts paths rooted in the isolated workspace,
|
|
1020
|
+
at most 8 files / 256 KB total. On drain Arco writes copies under the
|
|
1021
|
+
recipient's `.arco/peer-artifacts/<msgId>` (or its own isolated scratch).
|
|
1022
|
+
Never expose the project cwd to an isolated sender as an artifact shortcut.
|
|
1023
|
+
|
|
1024
|
+
- **Mailbox is per-recipient, not per-cluster - don't index it the wrong way.** Files live at `~/.arco/clusters/<clusterId>/mailbox/<recipientWorkflowId>/<msgId>.json`. `clusterMailbox.enqueue/peek/drain` take a single `wfId` (the recipient) and resolve the cluster via `clusterStore.getClusterIdForWorkflow`. A bug that scans `mailbox/` flat would commingle all recipients' inboxes; a bug that scans every cluster looking for `<msgId>` would cost O(clusters × messages) on every operation. Stick to the per-recipient layout - `peek(wfId)` reads exactly one directory.
|
|
1025
|
+
- **Peer tools must be gated on `worker.config.clusterId` - leaking them into non-cluster workflows breaks the no-orchestrator invariant.** `worker.ts:buildToolDefs` returns peer descriptors only when `clusterId !== undefined`; the dispatch branch in `dispatchTool` mirrors the same gate. A workflow that the operator never opted into a cluster has no business seeing `peer_send` in its tool list - the four-question test (operator-opted-in) fails the moment a non-cluster worker can address peers it has no relationship with. If a future change adds a "tool list debug dump" or similar, do not bypass this gate.
|
|
1026
|
+
- **Tool names use underscores, not the plan's dotted form.** Anthropic's tool-name regex is `^[a-zA-Z0-9_-]{1,64}$`; `peer.list` would 400 at API call time. Wire-level names are `peer_list / peer_send / peer_read`. Plan §13 carries the decision. When wiring CLI / Codex transports in + via MCP, the namespace prefix (`mcp__arco-cluster__peer_list`) similarly must avoid periods inside the tool-name segment.
|
|
1027
|
+
- **Pre-turn peer-mailbox handling is depth-notice, NOT auto-drain (superseded - see the 2026-05-11 afternoon entry "Peer mailbox no longer auto-drains pre-turn" below for the canonical contract).** The original shape called `drainPeerMailbox` before `user_message_echo` so `peer_message_received` events landed first; that was reverted because the subsequent `peer_read` then returned empty (drain already consumed the files) and the model conflated "nothing to read" with "no work to do." Current code (`server/src/ws/turnEngine.ts`) reads `clusterMailbox.depthFor(workflowId)` on `firstIteration` and folds a `--- PEER MAILBOX ---` notice with the pending count into `appendSystemPrompt`; the actual drain + `peer_message_received` events fire on the worker's `peer_read` call. The drain-destroys-files / events.jsonl-is-the-durable-record invariant still holds - the drain just moved to `peer_read`. Don't re-introduce pre-turn auto-drain.
|
|
1028
|
+
- **The `peerMessagesPrologue` system block bypasses prefix cache for that turn.** The prologue text is per-turn variable (different mailbox contents), so it cache-busts the `appendSystemPrompt` block from the operator's pick onward. This is fine - peer messages are new content the model has never seen - but don't try to "stabilize" the prologue by hashing or omitting timestamps. The unique line-per-message + timestamp shape is what makes injection traceable; the cache cost is the price of that traceability.
|
|
1029
|
+
- **Drain destroys the mailbox file; the durable record lives in `events.jsonl`.** `clusterMailbox.drain` removes the file after returning the message - the corresponding `peer_message_received` event in events.jsonl is the audit trail. If you want a "view the full mailbox history" UI in a later phase, scan events.jsonl, don't try to re-keep mailbox files. keeping mailbox files post-drain only grows unboundedly with no read path.
|
|
1030
|
+
- **The send budget resets per-sender on `primary_turn_started`, not per-cluster or per-message.** `clusterBudget.reset(workflowId)` fires from `seedWorker.runPrimaryTurn` for every member starting a new turn. A member that hits the 15-cap can keep sending again only after the operator advances *its* turn - not after a peer's turn or a wall-clock interval. If you ever add a "system-initiated turn" path (auto-handoff, scheduled refresh) and want it to count against the budget, call `recordSend`; if you want it not to count, leave the counter alone - but don't quietly skip `reset` because the turn was system-initiated.
|
|
1031
|
+
- **`peer_send_rejected` MUST emit on every refusal - silent budget violations are a hard fence (plan §6.2).** Three rejection paths: budget exhausted, unknown peer, content too large (and in principle `recipient_not_in_cluster`, though the resolver catches that as `unknown_peer`). All four return an `[error]` string visible to the model AND fire the WS event. If you add a fourth rejection class, follow the same shape: model-visible `[error] <code>: ...` + `peer_send_rejected` event with a stable `reason` code.
|
|
1032
|
+
- **No depth-2 clusters; no cross-cluster membership.** `clusterStore.createCluster` rejects when any candidate workflowId already lives in a cluster (`member_already_in_cluster`). Reversal path is `DELETE /api/clusters/<id>` - clears the membership index, then the same workflowIds are re-clusterable. Don't add a `move-member` API: the right shape is delete + re-create, which makes the change visible at the events.jsonl level.
|
|
1033
|
+
- **`createCluster` is the one validation site for the "no nested clusters" fence.** Today it rejects only a wfid already in `memberIndex` (depth-2 / cross-cluster). The cluster tab is keyed by `clusterId`, not a workflow, and although `WorkflowConfig.kind` admits `'cluster'` (skipped by the busy sweep and hub reporting), no server path creates one - so the "member is itself a cluster" case is still forward-compat. If a path ever mints a `kind:'cluster'` workflow, add an explicit reject clause here. The fence belongs at the validation site, not at the peer.send dispatch (where it would silently neuter cross-cluster sends instead of refusing the cluster).
|
|
1034
|
+
- **REST endpoints are the only surface - no WS messages yet.** `POST /api/clusters`, `GET /api/clusters/:id`, `DELETE /api/clusters/:id`. Arco adds `cluster_*` WS messages and a UI tab; until then, operator wires clusters via curl. Don't pre-emptively add WS handlers - the shape isn't stable until the UI design lands.
|
|
1035
|
+
- **Member display names default to the 8-char workflowId prefix.** `clusterStore.displayNameFor(wfid)` returns `wfid.slice(0,8)`. Editable names are deferred until the UI exists. When added, persist them on the *cluster*'s `meta.json` rather than the member workflow's meta - names are cluster-relative (the same workflow could in principle be re-clustered with a different display name, though the no-cross-cluster fence makes that simultaneous case impossible).
|
|
1036
|
+
- **Handoffs serialize per-cwd via `cwdHandoffChain`.** A queued handoff waits for the prior handoff before reading Git state. Each slot is released on success, cancellation, or failure.
|
|
1037
|
+
|
|
1038
|
+
### Task board + task peer-tools
|
|
1039
|
+
|
|
1040
|
+
- **`done` / `archived` are operator-gated AT THE PEER LAYER - `peerTaskUpdate` rejects them before touching the ledger.** The §D1 invariant ("only the operator's `task_ledger_update` reaches `applyUpdate` with a terminal status") now spans the cluster peer surface. `clusterPeerOps.peerTaskUpdate` returns `{ ok:false, code:'operator_gated' }` when `status === 'done' || status === 'archived'`, so `applyUpdate` never sees those statuses from a worker. This is **not** a global block - the operator's WS path still reaches `applyUpdate(done/archived)` and succeeds. Don't "simplify" by moving the peer-layer check into `applyUpdate` itself: that would also break the operator path, which is the legitimate terminal-status setter. Asserted by `scripts/smoke/task-board.ts` steps (d) + (e); regressing either is a hard fail.
|
|
1041
|
+
- **The task peer-tools are gated on `clusterId` via `getPeerToolDefinitions()` - same gate as `peer_*` / `cluster_plan_*`.** `cluster_task_list/show/create/claim/update/heartbeat/link/unlink/comment/block/complete` are in `PEER_TOOL_NAMES` and the schema array, both consumed by `worker.ts:buildToolDefs` only when `clusterId !== undefined`. `buildToolDefs` enumerates via the function, not a hand-maintained name list, so the gate covers them automatically. Don't add a separate registration path that bypasses the clusterId check - a non-cluster workflow has no shared cwd ledger to read.
|
|
1042
|
+
- **`cluster_task_list` returns a COMPACT model-facing view (`taskLedger.formatBoardForModel`), NOT the raw ledger - don't "simplify" it back to a full dump.** The raw `JSON.stringify(tasks)` dump is all statuses, oldest-first, full notes; the worker's tool result is hard-capped at 64KB (`MAX_TOOL_OUTPUT_BYTES`, applied by `truncateOutput` on Native / the transport on CLI/Codex), so the byte-slice lopped off the NEWEST/active rows and left invalid JSON cut mid-object. On a 128-task board (120 done) the live rows were never visible - a worker couldn't see its own active work. The formatter drops done/archived from `tasks` (counts them in `completedCount`, lists the latest 10 in `recentlyCompleted`; any task still fetchable by id via `cluster_task_show`), strips notes to a one-line preview + length, sorts active newest-updated-first, and bounds to valid JSON under a 48KB budget (dropping oldest from the tail, reporting `omittedActive`). Applied at BOTH model-facing seams - `peerTools.ts` (Native) and the `/task-list` REST endpoint (read by the MCP child for CLI/Codex). The operator UI is untouched: it renders from `task_ledger_snapshot` WS broadcasts, which still carry the full task set. Pinned by `npm run test:board-view -w server`.
|
|
1043
|
+
- **`cluster_task_claim` concurrency guard lives INSIDE the per-cwd lock, not before it.** The owner check runs inside the `persistLedgerMutation` mutate callback (which holds the per-cwd lock), so two concurrent claims serialize and the second sees the first's `assignee`. A pre-lock read-then-claim would race: both members would read "unclaimed" and the second would stomp the first. If you refactor the claim path, keep the guard under the lock.
|
|
1044
|
+
- **cwd is derived from `clusterStore.readCluster(clusterId).cwd`, NOT the caller's config.** A cluster has one authoritative shared cwd on its record; a member workflow may be unhydrated (`workflows.get(wfid)` misses). The plan-ops resolve cwd the same way. Don't switch the task-ops to `workflowCwds.get(callerWfid)` - that's the workflow-scoped operator path's source and can disagree with the cluster's cwd.
|
|
1045
|
+
- **Task mutations broadcast `task_ledger_snapshot` CLUSTER-wide, plan-tick-style - not workflow-scoped.** The operator WS path broadcasts on the originating workflow (its observers look at that cwd); the peer-ops must reach every member's board, so they take a `broadcastCluster` callback exactly like `peerPlanTick`. The durable `task_ledger_event` is still appended to the *acting* member's events.jsonl via `persistLedgerMutation` → `broadcastWorkflow`, so rebuild folds it. Don't drop the cluster-wide snapshot in favor of the per-workflow one - other members' boards would go stale until their next snapshot.
|
|
1046
|
+
- **Task comments/runs are source-of-truth event payloads, not only snapshot decoration.** `cluster_task_comment`, `cluster_task_block`, `cluster_task_complete`, and note-bearing `cluster_task_heartbeat` append a `TaskComment` in the `task_ledger_event.payload.comment` field; `cluster_task_heartbeat` also carries `payload.run`. `saveKernel()` materializes them into `tasks.json`, and `loadKernel()` rebuilds them from event payloads when the snapshot is missing/corrupt. If you add more lifecycle tools, carry durable handoff text through `payload.comment` and run state through `payload.run`; otherwise details vanish after snapshot rebuild.
|
|
1047
|
+
- **H48: `cluster_task_complete` enforces hallucinated-id + ownership guards INSIDE the per-cwd lock.** A worker can only complete a task that EXISTS in this cluster's ledger AND has `assignee === itself` - both checked inside the `persistLedgerMutation` mutate callback (under the lock, so a concurrent claim can't slip an owner change past the check). An id not in the ledger → `not_found` (stops a member fabricating/guessing an id); another member's / unassigned task → `not_owner` (with a "coordinate via peer_send" / "claim it first" hint). Complete moves `in_progress → review`; the operator's task-ledger update path stays the ONLY `done`/`archived` setter. Mirrors `cluster_task_claim`'s in-lock owner pre-check - don't hoist either guard above the lock.
|
|
1048
|
+
- **`cluster_dispatch_once` is explicit-assignee-only and persists before prompting.** The dispatcher does not infer from role/tier/focus and does not ask a model to route. It scans ready tasks deterministically, rejects anything without a concrete idle supported assignee, writes `dispatch_fired` with the updated task plus `payload.run` under the per-cwd lock, then starts the synthetic worker turn. `dispatch_skipped` is durable for every ready-task refusal. `rebuildRunsFromEvents()` must keep folding `dispatch_fired.payload.run`; otherwise run history disappears after snapshot rebuild.
|
|
1049
|
+
- **The armed task dispatcher daemon is just repeated one-shot dispatch behind a persisted OFF-by-default gate.** `dispatcher.enabled` lives in cluster meta and mirrors on `cluster_state`; absent means OFF. The interval loop may call only the same deterministic dispatch kernel as `cluster_dispatch_once`. Do not add a second routing path, role/tier/focus inference, or model-based assignment in the daemon.
|
|
1050
|
+
- **Worktree-required dispatch is also operator-armed.** `LedgerTask.worktreeRequired` is just a task flag. The dispatcher must skip it with `worktree_required` unless the task already has a server-set `worktree` or cluster dispatcher `autoWorktree` is explicitly true. When auto-provisioning, create the managed worktree before `dispatch_fired`, persist the pointer in that same mutation, and include the path/branch in the prompt. Do not silently switch the member workflow cwd; Stage J only prompts the worker to edit in the task worktree.
|
|
1051
|
+
- **Daemon sweeps must not double-dispatch open runs, including after restart.** The open-run check belongs inside the persisted dispatch path, not only in daemon memory. A server restart forgets timers but not `dispatch_fired.payload.run`; after replay, a task with a `claimed`/`running` run must be skipped with `active_run`, never fired again.
|
|
1052
|
+
- **Disarming the daemon stops new fires only.** `cluster_dispatch_toggle(enabled:false)` clears/sets meta state and cancels future interval work, but it must not complete, fail, reclaim, or delete already-open runs. Worker lifecycle stays on `cluster_task_heartbeat`, `cluster_task_block`, `cluster_task_complete`, and later explicit recovery controls.
|
|
1053
|
+
- **The dispatcher is not a terminal-status path.** Fired tasks move `ready -> in_progress`; workers complete via `cluster_task_complete` into `review`; only the operator's task-ledger update path marks `done` / `archived`. Do not add auto-done, quality verdicts, or server-side "is this complete?" checks to the dispatcher.
|
|
1054
|
+
- **The cluster BOARD drawer may expose DONE / ARCHIVE only through the operator WS path.** The drawer's status selector calls the same `task_ledger_update` sender as the standalone LEDGER tab, using a cluster member workflowId only to resolve the cwd. Do not route terminal statuses through `cluster_task_update` / peer tools, and do not let Director acceptance auto-apply terminal state. The operator click is the acceptance boundary.
|
|
1055
|
+
- **`task_run_recover` mutates exactly one selected run.** Reclaim / terminate / reassign / fail all look up `runId` inside the per-cwd lock and reject if it does not belong to `taskId`. Never "recover the task" by bulk-closing every open run; sibling attempts must stay intact unless the operator targets them too. Reclaim returns the task to `ready` and clears assignee, reassign resolves the target cluster member and sets assignee, terminate blocks immediately, and fail blocks only after the configured consecutive-failure limit. None of these actions may set `done` / `archived`.
|
|
1056
|
+
- **Stale reclaim must be checked server-side, not only by the button state.** The BOARD UI disables `RECLAIM` until an open run has no heartbeat for five minutes, but the authoritative guard is `staleOnly` in `handleTaskRunRecover`, using `lastHeartbeatAt ?? startedAt` under the lock. Keep that check even if the UI grows better stale indicators; otherwise a stale-looking row from an old snapshot could reclaim a fresh heartbeat.
|
|
1057
|
+
- **Stage I swarm creation is graph construction, not orchestration.** `cluster_swarm_create` should create ordinary ledger tasks and dependencies: root blackboard, N workers, verifier depending on all workers, synthesizer depending on verifier. It must not create a parallel swarm store, infer assignees through a model, or mark non-root tasks `done`. If the operator asks to dispatch after creation, call the existing deterministic dispatcher path and keep the same terminal-status fence; the smoke target is `scripts/smoke/task-swarm.ts`.
|
|
1058
|
+
- **Stage K orchestration assist is proposal-only until explicit accept.** Assist requests may draft task graphs, assignments, swarm layouts, recovery actions, synthesis comments, and provider/model/effort suggestions, but they must not mutate task state, dispatcher settings, member config, or worktrees by themselves. Reject is audit-only. Accept selected items by calling the normal task-kernel mutation path so ordinary `task_ledger_event` rows are emitted; provider/model/effort suggestions stay inert unless their own selected items are accepted. Smoke target: `scripts/smoke/task-orchestration-assist.ts`.
|
|
1059
|
+
|
|
1060
|
+
### Board interaction overhaul
|
|
1061
|
+
|
|
1062
|
+
- **Creation defaults must not become read defaults.** `createCluster` uses Balanced, Warn only at 15, a cluster-local board and Both. `normalizeTaskBoardMode` preserves legacy omitted board fields; omitted stored styles mean Thorough. Snapshot restore resolves legacy guard caps before applying styles. No existing project or cluster tasks move when the creation default changes.
|
|
1063
|
+
- **The board's create/edit/delete operator surfaces send `wsSendRaw` task-ledger messages directly - they are NOT new server surface.** `createTask` / `editTask` / `deleteTask` in `ClusterTaskBoardTab` build `task_ledger_create` / `task_ledger_update` / `task_ledger_delete` with `workflowId = taskShowWorkflowId(members)` (first member, cwd-derived) and `boardKey = cluster.taskBoardKey`. Don't add parallel handlers - the existing `handleTaskLedger*` + `applyUpdate` / `removeTask` are the only path. `done` / `archived` are never set through these field edits; they stay on the dedicated status controls (the operator-acceptance boundary).
|
|
1064
|
+
- **Create-on-board is a SINGLE board-level composer, deliberately not per-column.** `task_ledger_create` always yields `todo` (operator-confirmed-done invariant), so a per-column "Add a task…" field would mislead - every column's input would still produce a `todo` card. If a future change wants per-column create-into-status, it needs a create→update chain keyed on the server-assigned id (which arrives via snapshot, not a direct response), so it's non-trivial; don't "fix" the single composer into a misleading per-column one.
|
|
1065
|
+
- **Drag-to-restatus routes through `onUpdateTaskStatus` (the operator path) with a done/archived confirm - dnd-kit, pointer-only.** `BoardCard` is `useDraggable`, `BoardColumn` is `useDroppable`, `handleDragEnd` → `moveTask(active.id, over.id)`. The 4px PointerSensor activation distance is load-bearing: it lets a plain click still open the drawer (the card is a `<button onClick>` with `{...listeners}`). Touch has no drag path - the drawer status dropdown is the fallback. Don't drop the 4px constraint (clicks would start drags) and don't move terminal-status drops off the confirm.
|
|
1066
|
+
- **The editable drawer reuses DEBAG's *visual* edit pattern, not the `GateApprovalNotice` component.** §10.7 said "build against DEBAG's shared proposal component"; in practice the gate card carries approve/reject/remember + arg-parsing semantics that don't fit task authoring. The drawer uses inline `editLabelStyle` / `editInputStyle` (accent-on-dirty) matching the gate look. This was a deliberate, documented call (plan §13 2026-06-26) - not an oversight; don't force a shared component that would couple task editing to gate semantics.
|
|
1067
|
+
- **The plan/peer→task bridges are board-attached-only and reuse `task_ledger_create`.** `PlanBodyRenderer.onPromoteTask` (→ TASK pill on unchecked checkboxes) and `MailboxModal.onMakeTask` (→ TASK per pending peer message) both fire `task_ledger_create` on the first member with `cluster.taskBoardKey`, gated on `cluster.taskBoardMode !== 'none'`. The peer bridge lives on the pending-mailbox surface (it has cluster context); a delivered-chat `PeerMessageBlock` bridge is deferred (needs per-workflow cluster context). Don't wire the bridges when the board is detached - the task would land on a board the operator can't see.
|
|
1068
|
+
- **The automation header (DISPATCH / SWARM / ASSIST / DISPATCHER) is collapsed by default behind `▸ AUTOMATION`.** `automationOpen` defaults `false`; the task count + toggle stay visible. The `assistOpen` panel is now gated on `automationOpen && assistOpen`. This is a UX de-emphasis only - the controls and their fences are unchanged. Don't default it open "for discoverability"; the whole point is the board reads "groom tasks," not "run a swarm."
|
|
1069
|
+
|
|
1070
|
+
### Director sign-off + per-card actions
|
|
1071
|
+
|
|
1072
|
+
- **`LedgerTask.signoff` is ADVISORY and never a terminal-status path.** A director writes `{ state: 'met' | 'not_met' | 'partial', summary? }` via `cluster_task_update`; `peerTaskUpdate` validates the state, **server-stamps `byWorkflowId` + `at`** (the model can't spoof author/time), and threads it into `applyUpdate`. It does NOT move the task to `done`/`archived` - those stay operator-only (the §D1 / H48 fence is untouched; `scripts/smoke/task-peer-lifecycle.ts` step `(d3)` asserts a worker still can't reach `done` through this path). The sign-off is a recommendation the operator reads on the card; the operator click is still the acceptance boundary. Don't let a `met` verdict auto-apply `done`.
|
|
1073
|
+
- **The verdict is a field ON the task, written through all three transports.** `cluster_task_update`'s `signoff` arg is wired in `peerTools.ts` (Native input_schema + dispatch), `clusterMcpServer.ts` (zod schema + `callTaskUpdate`), and the `task-update` HTTP op in `clusterRoutes.ts` (read by the MCP child for CLI/Codex). It lives on `LedgerTask` (not a comment) precisely because the board card only has the task list - comments aren't loaded until drill-in, so an at-a-glance chip needs the data on the task. Additive + projection-safe like `assignee`/`worktree`: `normalizeTask` sanitizes it (`sanitizeSignoff`), `rebuildFromEvents` folds it through the carried `ev.task`.
|
|
1074
|
+
- **Per-card ACCEPT / RECHECK are operator surfaces, not new server messages.** `✓ ACCEPT` (formerly DONE) reuses `onUpdateTaskStatus` (the operator `task_ledger_update` path, same as MARK ALL DONE and ACCEPT ALL MET) - no confirm, since the labelled click is itself the acceptance. `↩ RECHECK` reuses the existing `operator_peer_send` rail to drop a templated recheck note into the sign-off author's mailbox. Both render only on REVIEW cards; the buttons are `role="button"` spans (NOT `<button>`, because the card is itself a draggable `<button>` - nested buttons are invalid HTML) with `onPointerDown`/`onClick` `stopPropagation` so they neither start a drag nor open the drawer.
|
|
1075
|
+
- **RECHECK's sender must differ from the recipient - `operator_peer_send` rejects `from === to`.** `recheckSenderFor` picks the task's assignee (if a member and ≠ the sign-off author), else any other member; if the only member is the author, RECHECK is unavailable (the call site gates on `cluster.members.length >= 2`). Don't send the recheck from the director to itself - the server (`ws/clusterHandlers.ts`, "cannot send to self") will reject it.
|
|
1076
|
+
- **LATENT (not fixed, by decision): `rebuildFromEvents` fold order is undefined on same-millisecond cross-workflow edits to the SAME task.** Events sort by `(at, seq)`, but `at` is wall-clock ms and `seq` is *per-workflow* monotonic - non-comparable across workflows on an `at` tie, so last-writer-wins is non-deterministic. This affects **only the rebuild-from-events fallback** (snapshot missing/corrupt), never the live board (mutations serialize under `withCwdLock` and broadcast in real order), and it's **field-agnostic + pre-existing** (predates sign-off; applies to `status`/`assignee` too). Real director review lands seconds after worker completion, so `at` never ties in production. The `task-peer-lifecycle` smoke forces the tie because it runs sub-ms; step `(d2)` inserts a few-ms gap modeling real review latency. A correct fix would need a per-cwd monotonic emit sequence folded on instead of `at` - its own change, weighed against the **byte-identical replay** invariant, with a dedicated same-ms smoke. Deferred until observed in practice; if a verdict/status silently reverts after a snapshot rebuild, this is the cause.
|
|
1077
|
+
|
|
1078
|
+
### client-side gotchas
|
|
1079
|
+
|
|
1080
|
+
- **Operator NUDGE uses each member's normal chat send path.** Idle members get the existing wake-up prompt; active members get a gentler reminder to check mail at a convenient point, sent as `steer`. Providers without mid-turn steering fall back to delivery after the current turn. Choose wording from current busy/worker/streaming state at submit, keep recipients explicit, and leave `peer_read` responsible for draining mail. Typed BROADCAST still uses `cluster_broadcast` and queues busy recipients as follow-up. The NUDGE picker must remain usable even when the broadcast recipient picker has no selection.
|
|
1081
|
+
- **`activeJobId` and `activeClusterId` are mutually exclusive in the store.** `setActiveJob` clears `activeClusterId` and vice-versa. App.tsx routes via `if (activeClusterId) <ClusterTab>` else `if (showCreator || !activeJob) <WorkflowCreator>` else `<WorkflowView>`. Adding a new top-level view that should also be exclusive needs the same pattern - add a clear-action on every `setActive*` reducer and add the routing branch in App.tsx in the same priority order. Don't try to express exclusivity through a single discriminator field; the cluster mirror lives in a separate map and the active key is the cleanest signal.
|
|
1082
|
+
- **`MemberPane` threads REVIEW / HANDOFF / SPAWN / RECALIBRATE / UPDATE-PRIMARY / PLAN-MODE primitive callbacks (slice 6a).** TerminalInput's primitive buttons render conditionally on the `on*` props being set; MemberPane now passes them through from App → ClusterTab. Behavior is unchanged from standalone-workflow primitives - cluster-aware behavior (HANDOFF preserves cluster membership, SPAWN-into-this-cluster as a default option, REVIEW understands peer rows) ships with cluster-aware primitive behavior. The comment in `MemberPane.tsx` that said "primitives stay per-tab" was correct under Arco's flat tab structure but is no longer true after slice 6a hides member tabs from the top row. If you add a new primitive callback to App-level workflow dispatch, mirror the App → ClusterTab → MemberPane threading or it'll be unreachable for cluster members.
|
|
1083
|
+
- **`PeerMessageBlock` early-return order in `ChatMessage.tsx` is load-bearing.** Peer rows must short-circuit before the system-notice / handoff-seed / spawn-seed branches because the existing branches assume `role === 'user' | 'assistant' | 'system'`. Reordering the branches breaks peer rendering silently - the role union widens but the existing branches don't widen with it. The peer branch sits right after the toolUse early return; keep it there.
|
|
1084
|
+
- **Sender color is hashed from `senderWorkflowId`, not the displayed name.** djb2-style hash + 8-color palette in `ChatMessage.tsx`'s `hashSenderColor`. Same workflow always renders the same color across reloads, across sender/recipient panes, across cluster compositions. Don't switch to hashing displayName - that breaks the "color tracks identity, not display preference" invariant when lands operator-editable names.
|
|
1085
|
+
- **`cluster_state` push gate (`CLUSTER_STATE_TRIGGERS` in `server/src/server/broadcast.ts`) is the single source of truth.** Adding a new workflow-scoped event that should refresh cluster_state means editing that set; don't sprinkle `notifyClusterStateForWorkflow` calls at random emit sites. Today's set is `{ primary_turn_started, primary_turn_ended, peer_message_sent, peer_message_received }` - busy flips on the first pair, mailbox depth flips on the second pair. Streaming `primary_text` chunks deliberately do NOT trigger.
|
|
1086
|
+
- **Broadcast's idle-vs-queued split is a local snapshot, not the server's reply.** `ClusterTab`'s composer reads `cluster.members[i].status` at submit time to render the toast. The authoritative split lands in `cluster_broadcast_dispatched` but we don't currently mirror it to the store. The race window is tiny (member flips busy between snapshot and server fan-out) and the toast is informational. If a future surface needs accuracy (e.g. "couldn't reach member X" rendered visually), wire the dispatched event into the store there.
|
|
1087
|
+
- **Layout-prop-leak invariant.** `MemberPane` props that are passed to ChatPanel + TerminalInput need to be passed in *every* density/layout variant of MemberPane - if you add a "compact MemberPane" mode, every prop the dense variant threads must also be threaded by the compact variant. Pokegents' AgentCard regression (referenced in plan §7e) was a missing prop in one variant; the bug only surfaced for users who hit that variant. Pattern fix: make the prop list explicit, never spread `{...props}` across variants.
|
|
1088
|
+
- **Right-click context menu is the only such surface in the app.** `TabContextMenu` is scoped to "create cluster from this tab + others." If a future feature wants a tab right-click action (rename, duplicate, move-to-cluster), plug into the same component rather than spawning a parallel context-menu pattern. Resist the urge to make `TabContextMenu` generic until there are actually two consumers.
|
|
1089
|
+
- **Cluster tear-down must go through `cluster_delete` (or REST `DELETE /api/clusters/:id`).** Don't add a UI-only "remove cluster from store" path. Removing the local entry without the server-side teardown leaves the mailbox directory + meta.json on disk and the per-member `clusterId` lookup intact - the next peer_send call would still resolve. The autonomy four-question test answer #4 (reversibility) requires a single teardown path; both REST and WS delegate to `clusterStore.deleteCluster`.
|
|
1090
|
+
- **`cluster_state` is NOT persisted to events.jsonl - it's a derived snapshot.** Every member has its own events.jsonl with `peer_message_*` events; the cluster meta.json lives on disk; mailbox files live on disk. `cluster_state` is built fresh from those three sources every push. If you find yourself wanting to persist cluster_state for offline replay, you're recreating state that's already on disk in three places. Use those instead.
|
|
1091
|
+
|
|
1092
|
+
### Slice 6a gotchas (TabBar restructure)
|
|
1093
|
+
|
|
1094
|
+
- **`@dnd-kit` PointerSensor + button-that-covers-entire-tab requires NO `onPointerDown` stopPropagation on the activate button.** The activate `<button>` in `SortableWorkflowTab` / `SortableClusterTab` covers the whole visible tab face; if it stops `pointerdown`, the parent `<div>`'s `{...listeners}` drag handle never sees the event and drag-reorder silently dies. The `PointerSensor` is configured with `activationConstraint: { distance: 4 }`, which already separates click from drag - a stationary press fires `onClick` and never starts a drag; movement >4 px arms the drag. *Keep* `stopPropagation` on the small close × button (it's a tiny target and benefits from event isolation; losing 4 px of drag start area at the × corner is fine - that's how Chrome tabs behave). Rule of thumb: stopPropagation on small isolated buttons, NOT on buttons that span the entire drag-handle surface. Regressing this is silent and hard to diagnose because the tab still highlights on click - only drag is broken.
|
|
1095
|
+
- **Bottom-row activation rule: render only when a cluster tab is the active top-row tab.** Standalone tab active → no bottom row. Cluster tab active → bottom row lists that cluster's members. Don't try to "always show the last viewed cluster's members" - that breaks the visual exclusivity the operator relies on for "where am I?" Bottom row collapses to nothing when activeClusterId is null.
|
|
1096
|
+
- **Focused-member persistence lives in `appStore.clusterFocusedMember[clusterId]`, kept in sync by `setClusterState`'s reducer.** When a member is removed (or never selected), the reducer re-pins focus to the first remaining member - but only if the previous focus is now stale. The no-op-on-unchanged-state guard sits *after* the focus check; future contributors extending the reducer must not move the guard before the focus fix-up or focus will dangle on a removed member.
|
|
1097
|
+
- **`settings.tabOrder` mixes workflowIds AND clusterIds in one list.** They share the top row; operator can interleave them. A stale entry (workflow closed, cluster deleted) lingers until the operator next drag-reorders. `applyTabOrder` ignores stale entries (they're filtered out before sorting) so the UI renders correctly, but `settings.json` accumulates them. Acceptable today; a periodic cleanup pass is deferred. Don't add server-side cleanup that fires on every workflow/cluster deletion - that'd race with optimistic local updates.
|
|
1098
|
+
- **Bottom-row member × is "remove from cluster AND close workflow" - single click, single confirm.** If a future feature wants "detach but keep workflow alive" (the considered alternative), introduce a second mode (shift-× was sketched). Don't change the single-× semantics silently - it's a destructive operation gated on a confirm dialog, and the operator's mental model is "× ends this thing."
|
|
1099
|
+
- **`cluster_member_remove` collapses the cluster if remaining members <2.** `clusterStore.removeMember` calls `deleteCluster` internally; subscribers get `cluster_deleted`. The leaving member's mailbox dir is wiped (peer messages destined for it lose recipient context). Don't try to leave a 1-member cluster alive - `createCluster`'s ≥2 invariant means it'd be inconsistent and `peer_send` from the lone member would fail with `unknown_peer` anyway. The collapse behavior is the right shape.
|
|
1100
|
+
- **Cluster rename does NOT emit an events.jsonl event.** The display name is a label on the cluster, not a workflow-scoped action. Server pushes a fresh `cluster_state` so subscribers see the new name; that's it. If a future feature wants a "renamed by operator at <ts>" audit trail, that's an opt-in surface (e.g. a separate `cluster_renamed` push that lands in some cluster-scoped log file), not a workflow-event hijack.
|
|
1101
|
+
- **Default cluster name (`<basename(cwd)> · <short-id>`) is computed at render time, never persisted.** `clusterDisplayName` derives it from `cluster.cwd` + `cluster.clusterId`. Operator-set name lives on `cluster.name`. Empty/whitespace `name` clears the override (the client falls back to the derived default). Don't try to "snapshot" the derived default into `cluster.name` on cluster create - that defeats the "renamed if op renamed, otherwise basename" mental model; the operator never typed that name.
|
|
1102
|
+
- **Drag-reorder persistence is `setTabOrder` → POST `/api/settings`, not events.jsonl.** Tab order is operator preference, not a workflow-scoped action. Keep it that way - flooding events.jsonl with operator-preference noise breaks the autonomy fence #3 ("events.jsonl carries actions, not preferences").
|
|
1103
|
+
|
|
1104
|
+
### gotchas (primitives + cluster management UX)
|
|
1105
|
+
|
|
1106
|
+
- **HANDOFF preserves cluster membership for free - DO NOT add explicit rebind logic.** `clusterStore` keys membership on `workflowId`; HANDOFF rotates the session inside the same `workflowId`. The `clusterId` lookup at `handleUserMessage` turn start re-resolves on every turn, so the post-handoff session sees `peer_*` tools register naturally. Adding "preserve cluster" code in `handleHandoffRequest` would be no-op but would create the impression that membership is tracked elsewhere - and a future contributor might "fix" the no-op by introducing an actual rebind, which races against `clusterStore.memberIndex` and creates duplicate-member bugs.
|
|
1107
|
+
- **SPAWN-into-cluster validates Native transport BEFORE creating the new workflow.** Up-front rejection means no orphan tabs on `member_not_native`. A post-create rejection (workflow exists but cluster join refused) is the backstop for genuine race conditions (cluster deleted between validate and join); it surfaces a system_notice rather than tearing down the new tab. Don't reorder - operator getting a created tab they didn't want is worse than a clear up-front error.
|
|
1108
|
+
- **REVIEW peer-row serialization is in `extractTurns`, not a separate pass.** Don't try to inject peer rows in `formatTurns` by re-walking events - `extractTurns` is the only place that knows the turn-boundary positions (between `user_message_echo` and `primary_complete`). The `pendingPeerReceived` running buffer is the correct shape; resetting it on every echoed turn (whether or not the turn made it into the output) prevents stale received-rows from leaking forward.
|
|
1109
|
+
- **`peer_message_sent` carries only a `contentPreview` (≤200 chars), not the full content.** The recipient's `peer_message_received` event has the full body - that's the durable record. Reviewer sees the preview on the sender side and the full body on the recipient side. Don't try to "rejoin" by msgId in the serializer; the reviewer's window into the conversation is per-workflow.
|
|
1110
|
+
- **`createBlankNativeWorkflow` is a minimal pre-replay helper for B3 - don't extend it for resume / rehydrate cases.** It deliberately skips the savedMeta restoration logic (autoHandoff / efficiency toggles / outputStyle / planId / calibration / preview) that `handleCreateWorkflow` performs because B3 only creates *fresh* workflows. If a future surface wants to "fork N workers from a template that has prior state," it should call `handleCreateWorkflow` (so resume + rehydrate hooks fire) and chain the cluster create separately. Mixing the two paths in one helper would silently drop state on the fresh path.
|
|
1111
|
+
- **Cluster provider fence follows peer-tool wiring, not provider brand.** Claude and Codex get peer tools through Native/CLI/MCP wiring; Ollama now gets them through the local tool registry when `WorkerConfig.clusterId` + `workflowId` are present. Providers without peer-tool wiring remain fenced out. Do not loosen a provider by UI-only changes; the worker must actually receive `peer_list` / `peer_send` / `peer_read` / plan tools.
|
|
1112
|
+
- **Cluster Reviews sub-tab reads `job.reviews[]` per member, not a cluster-scoped review list.** Reviews dispatched from MemberPane fire through the existing per-workflow `requestReview` path; the per-member `job.reviews[]` is populated by the same `review_started` / `review_artifact_ready` WS handlers as the standalone Review tab. The Reviews sub-tab is purely a read-side aggregation. If cluster-wide review (one reviewer call across all members) lands later, that's a separate `cluster_reviews[]` list - don't write cluster-wide review state into per-member arrays.
|
|
1113
|
+
- **TabContextMenu's three modes share one modal; mode preconditions short-circuit submit.** `ADD TO EXISTING` requires at least one same-cwd cluster AND anchor-not-already-a-member; `CREATE WITH EXISTING` requires at least one selected; `CREATE WITH FRESH` always allowed for Native anchors. Switching modes mid-flow keeps the picker open (no re-trigger needed). If a fourth mode lands (e.g. "fork cluster"), make it a sibling component rather than a fourth conditional - the current single-component conditional is at its readable limit.
|
|
1114
|
+
|
|
1115
|
+
### gotchas (cluster-attached plan + role hints)
|
|
1116
|
+
|
|
1117
|
+
- **System-block ordering invariant: FORCED_FIRST_BLOCK → north-star → cluster plan → cluster role → appendSystemPrompt → systemPrompt → output style.** The Native worker's `buildSystemBlocks()` is the single source of truth. The plan + role blocks land AFTER `FORCED_FIRST_BLOCK` (which keeps its `cache_control: ephemeral, ttl: 1h`) and BEFORE the operator's prompts so the model reads them as load-bearing framing. Reordering breaks the prefix-cache strategy AND moves the operator's prompt before the cluster context - that flip would cause the model to read cluster guidance as a mid-prompt aside instead of a frame. Plan + role both carry `cache_control: ephemeral` (no ttl, normal cache shape).
|
|
1118
|
+
- **North-star (GOAL_NORTHSTAR_PLAN.md) sits immediately after `FORCED_FIRST_BLOCK`, before the cluster plan, and carries NO cache breakpoint of its own.** `goalBlock(this.config.goal)` is pushed at index 1 in `buildSystemBlocks()` (the most stable per-session block after the identity block, so it rides the plan-boundary / last-block breakpoint's cached prefix). It is null-when-empty (`goalBlock` returns null for blank ⇒ no block, zero extra input tokens). The trailer ("It is context, not an instruction to act autonomously... not trigger unrequested work") is load-bearing - it forecloses the model reading the north-star as license to self-drive; do not soften it. **Injection is per-provider, NOT via the turnEngine `finalAppend` fold:** Native pushes its own block; every other transport folds `goalBlock(config.goal)` inside its own provider (CLI Claude `--append-system-prompt`, both Codex prefixes system array, Ollama/llama.cpp/LM Studio `systemPrompt`, Cursor ACP worker + print path). This is deliberate - reviewers spawn via `manager.spawn` and handoff seeds via `runPrimaryTurn`, both of which bypass the operator-turn `finalAppend` assembly but still carry `config.goal`, so the provider fold is the one place that covers operator turns AND primitive seeds without double-injecting. Don't add a turnEngine `finalAppend`/`finalSystemPrompt` fold "for parity" - it would double-inject on non-Native operator turns.
|
|
1119
|
+
- **Cluster plan + role are resolved per-turn in `handleUserMessage`, not at worker construction.** They live on `WorkerConfig.clusterPlan` / `clusterRole` and the Native worker reads `this.config.clusterPlan` from `buildSystemBlocks()`. `ClaudeNativeTurn.spawn` calls `worker.updateConfig(this.config)` on every turn, so plan / role changes between turns surface automatically - no callback, no re-construction. The "callback" alternative (worker invokes `clusterContext()` during build) was rejected in §13; don't reintroduce it without a §13 entry explaining why per-turn resolution stopped working.
|
|
1120
|
+
- **Editing the plan mid-turn does NOT tear down the running turn.** The worker reads `this.config.clusterPlan` once at `buildSystemBlocks` per `messages.create`; the new body lands on the NEXT `runPrimaryTurn` call. This is the correct shape - in-flight tool dispatch carries on uninterrupted; the next operator prompt picks up the new plan. If you find yourself wanting to push the new plan into an in-flight turn, stop: that path leads to mid-turn system-prompt invalidation, which Anthropic's API doesn't support cleanly.
|
|
1121
|
+
- **Plan body cap = 32768 chars (`PLAN_MAX_BYTES`), role cap = 120 chars (`MEMBER_ROLE_MAX`).** Both are server-enforced; the UI soft-warns at 28672 chars. Server returns explicit `{type:'error', message:'cluster_plan_set rejected: body_too_large:N'}` which rides through `NotificationToasts`. Don't loosen these without a §13 entry - the caps exist to bound steady-state per-turn context size.
|
|
1122
|
+
- **Model-driven cluster plan writes are additive.** `cluster_plan_write` reads the existing `plan.md` and rejects writes that remove any existing checkbox task text or change its `[ ]` / `[x]` status. New sections, prose, and new checkbox items are fine. Status changes go through `cluster_plan_tick`; destructive replace/clear is operator-only through the PLAN tab. This guard applies to existing clusters because it reads the current persisted plan on every model write.
|
|
1123
|
+
- **`cluster_state` push now carries the full plan body inline (up to 32 KB), not a hash + lazy fetch.** Acceptable today (32 KB × N members × push frequency is well under any practical bandwidth concern), but worth noting before adding additional `CLUSTER_STATE_TRIGGERS`. If push frequency grows, switch `state.plan` to a hash + `GET /api/clusters/:id/plan` fetch rather than dropping the field.
|
|
1124
|
+
- **Plan block's `cache_control: ephemeral` means editing the plan invalidates the cache for the suffix.** `FORCED_FIRST_BLOCK` keeps its 1h-ttl cache regardless, so at minimum the front-of-prompt cache survives - but `appendSystemPrompt`, operator `systemPrompt`, and the output-style block all lose their hits on the next turn after a plan edit. This is the right trade (plan changes are operator-driven and rare; cache-miss-on-suffix is cheap), but don't add a second `cache_control` after the plan block unless you mean to fragment the cache further.
|
|
1125
|
+
- **Role overlay is operator-chosen - presets are editor suggestions, never silent defaults.** Lite §12 open question 4 originally shipped no defaults; `shared/src/clusterRolePresets.ts` now offers presets the operator picks in the editor, and `normalizeClusterRoleText` only upgrades exact older preset strings (never operator-edited text). Defaults imply an opinion about workflow shape, which is a non-goal. If a future surface wants to suggest roles (e.g. "this looks like a director - set role?"), it must surface as an operator-confirmed suggestion, not a silent default. Read `CLAUDE.md`'s "operator-armed surfaces" framing before adding any seeded value.
|
|
1126
|
+
- **`getMemberRole(clusterId, workflowId)` is synchronous (in-memory cache only).** Called per-turn in `handleUserMessage`. The cache is populated by `readCluster` on first access; if you ever add a path that calls `getMemberRole` without `readCluster` first (e.g. a fresh-server-process read for a clusterId that hasn't been touched yet), it returns `undefined` silently. The handleUserMessage path is safe because `getClusterIdForWorkflow` already populated the cache, but a different call site might surprise you.
|
|
1127
|
+
- **PROMOTE TO CLUSTER copies the plan body into `cluster_plan_set`; it does NOT detach the source plan from the workflow.** The per-workflow plan stays attached to the member that promoted it. Operator can clear the cluster plan independently. This is intentional - the cluster plan is a separate concept from the per-workflow plan, not a "view" of it; treating them as linked would force a re-architecture of `planStore` keying.
|
|
1128
|
+
|
|
1129
|
+
### gotchas (CLI transport - MCP wiring)
|
|
1130
|
+
|
|
1131
|
+
- **MCP tool names are namespaced on the wire: `mcp__arco-cluster__peer_send`, NOT bare `peer_send`.** Claude CLI surfaces MCP tools with the `mcp__<server-name>__` prefix where `<server-name>` is the top-level key in `mcp-config.json`'s `mcpServers` map. Native registers bare names. Function shapes match so the model treats them identically, but any code that pattern-matches on the wire-level tool name (transcript renderers, hook filters, reviewer serializers) needs to handle both forms. Today's match site is just `isPeerTool` in `peerTools.ts`, which only runs on Native; CLI dispatches through MCP's own routing. If you add a CLI-side hook that fires on peer_* tool calls, match both prefixes. **Codex code-mode adds a third form**: inside the exec code cell the same tools appear as `tools.mcp__arco_cluster__peer_send` - dash → **underscore** in the server-name segment. Three shapes for one tool; never assume one.
|
|
1132
|
+
- **Codex code-mode cluster members need the code-mode addendum - don't remove it.** Catalog-marked models including gpt-5.6 sol/terra/luna and gpt-6 astra/sol/luna run OpenAI's own multi-agent harness ("you are `/root`", native `spawn_agent`/`send_message`, tool surface = a JS `exec` code cell). The arco-cluster tools survive but only as `tools.mcp__arco_cluster__<tool>` inside the exec cell - a member told "use peer_send" finds nothing and coordinates through the harness's own (dead-end) tools instead, reporting itself as the director. `turnEngine` folds `codexCodeModeClusterAddendum()` (`server/src/providers/codexCodeMode.ts`) after the role hint for Codex members whose model the Codex `models_cache.json` catalog marks code-mode (`tool_mode`/`multi_agent_version` - the fields that gate the harness client-side). Detection is catalog-driven and fail-open on unknown; the addendum text is conditionally phrased so it's inert on plain function-calling models. App-server also sends the stable role, tool mapping, and Director contract through `developerInstructions`. Verified live on both Codex transports for the original gpt-5.6 fix; the Astra prompt contract is pinned by `npm run smoke:astra-cluster-director`. Full write-up: `docs/CODEX_GPT56_CLUSTER_INCOMPAT.md`.
|
|
1133
|
+
- **The string-form cluster fold shrinks ONLY the plan - never the small blocks.** CLI transports retain the 16 KB `APPEND_CLUSTER_MAX`; Codex app-server uses a bounded 48 KB `CODEX_APP_SERVER_CLUSTER_MAX` because JSON-RPC stdin has no argv ceiling and the larger bound admits a maximum-size plan plus role/doctrines. Do not make app-server unlimited: its prefix repeats per turn and consumes thread context. `composeClusterAppend` reserves small blocks plus already-folded bytes first. An over-budget plan folds as a deterministic OUTLINE; `clusterPlanOutline.ts` preserves headings, checkboxes, and sections labelled standing/rules/gates/contract/authority/cadence, with the full body one `cluster_plan_read` call away. The outline header and truncation logging are load-bearing. Regression tests: `npm run test:cluster-fold -w server` and `npm run smoke:astra-cluster-director`.
|
|
1134
|
+
- **The MCP child is per-spawn, NOT per-cluster.** Each `claude` CLI invocation launches its own short-lived stdio MCP child via `mcp-config.json`. N CLI members of one cluster CANNOT share one MCP child - stdio is point-to-point and Claude CLI owns the child lifecycle. The shared backing store is Arco's in-memory state, reached by every MCP child over loopback HTTP. Plan §13 (2026-05-10) records the decision. Don't try to refactor to a "per-cluster long-lived MCP server"; that path needs SSE transport and an internal IPC bridge that doesn't pay back its complexity.
|
|
1135
|
+
- **Arco's HTTP port flows to the MCP child via positional argv, NOT env-inherited.** `mcpConfigWriter.writeFor` writes the third argv as `process.env.ARCO_PORT ?? '3001'`. The child does NOT read `process.env.ARCO_PORT` - claude may scrub or mutate env on the way down. If a future surface needs another runtime parameter passed to the child (auth token, cluster-scoped flag), add a fourth argv rather than relying on env.
|
|
1136
|
+
- **The MCP child's stdout is the JSON-RPC wire - all logging goes to stderr.** `clusterMcpServer.ts` uses `console.error` exclusively (and the SDK's own logging also routes to stderr). A `console.log` slipping into the child would corrupt the MCP protocol stream and break tool dispatch silently. If you extend the child with new tools, hold this invariant. Operator-visible diagnostics surface as `[mcp:arco-cluster:stderr]` in the claude CLI's transcript.
|
|
1137
|
+
- **`mcp-config.json` cleanup is best-effort, but mandatory on member detach.** `handleClusterDelete` and `handleClusterMemberRemove` call `mcpConfigWriter.cleanupFor` for every leaving member. A stale config on a downgraded-to-plain workflow would launch an MCP child on the next CLI spawn - the child would 404 on every tool call (REST surface verifies cluster exists) but the wasted spawn cycle is operator-visible churn. The cleanup uses `fs.rm({ force: true })` so missing files don't throw.
|
|
1138
|
+
- **REST `/api/clusters/:id/peer/*` trusts the body's `from`/`workflowId` field - loopback-only assumption.** The MCP child has the workflowId baked into argv at spawn time, and the server binds 127.0.0.1 by default. Any future remote-access mode (tunnel, container exposure on 0.0.0.0) MUST add authentication to these endpoints first - otherwise a remote client could impersonate any cluster member. Memory: Arco remote access architecture says tunneling exists; Arco makes the trust assumption explicit but doesn't gate on it.
|
|
1139
|
+
- **CLI cluster member `--append-system-prompt` is soft-capped at 16 KB.** The peer-mailbox prologue + plan + role get combined into `finalAppend` in `handleUserMessage`. The hard kernel limit for argv is ~128 KB (ARG_MAX), and the existing tmpfile fallback (`--append-system-prompt-file`) handles arbitrary sizes - but the 16 KB soft cap surfaces pathological mailbox growth (worst case 50 × 16 KB = 800 KB) early instead of writing that to tmpfs every turn. The cap truncates with a `[... truncated by cluster appendSystemPrompt cap]` sentinel; the truncated content is always at the *end* (peer prologue + plan + role sit at the head).
|
|
1140
|
+
- **`assertAllMembersClaude` was renamed to `assertAllMembersClaudeOrCodex` in - but the fence has since widened past its name.** It now gates on `isClusterMemberProvider(provider)` (`shared/src/protocol/clusters.ts` `CLUSTER_MEMBER_PROVIDERS = ['claude', 'codex', 'ollama', 'llamacpp', 'cursor']`), so it accepts Claude (Native + CLI), Codex (`exec` + `appserver`), Ollama, llama.cpp, and Cursor (ACP, peer tools via the loopback HTTP MCP); it rejects unsupported providers (including removed Z.ai / Gemini / Antigravity). The function name is now misleading - don't infer the accepted set from it. Local Ollama / llama.cpp membership is limited by `localClusterCapacity` (Connections; default 1 each); create/add/replace refuse with `local_capacity: <reason>` unless `ARCO_CLUSTER_ALLOW_MULTIPLE_LOCAL=1`. Every cluster-join path goes through `assertAllMembersClaudeOrCodex` - loosening the provider fence further requires an explicit protocol decision.
|
|
1141
|
+
- **Shared `clusterPeerOps.ts` is the single source of truth for peer-op behaviour.** Native `peerTools.ts` and the REST handlers in `http/clusterRoutes.ts` (the CLI/Codex/Cursor MCP children's backend) both delegate to this module. The events emitted (`peer_message_sent` / `peer_send_rejected` / `peer_message_received`) are identical across transports. If you add a new rejection class, do it in `clusterPeerOps.peerSend`'s return shape (extend `PeerSendRejection.code`) so both transports get it for free. Don't add transport-specific event variants - the peer wire surface stays unified.
|
|
1142
|
+
- **MCP SDK version (`@modelcontextprotocol/sdk`) is loosely pinned.** Package.json says `^1.18.0`; npm resolved 1.29.0 at install. The API surface used (`McpServer.registerTool` + `StdioServerTransport`) is stable across this range. If Anthropic's CLI ever returns a protocol-version mismatch error, switch `^` to `=` and pin to the version that matches the CLI's `--version` output.
|
|
1143
|
+
|
|
1144
|
+
### gotchas (Codex transport)
|
|
1145
|
+
|
|
1146
|
+
- **Codex registers MCP via `-c key=value` argv overrides - there is NO `--mcp-config <path>` flag.** `codex --help` lists `-c <key=value>` (TOML dotted-path override) as the canonical mechanism for layering on top of `~/.codex/config.toml`. `mcpConfigWriter.buildCodexMcpOverrides` returns the two `-c` argv pairs; both `codex.ts` and `codex-appserver/worker.ts` consume that helper. If a future Codex CLI version adds `--mcp-config <path>`, switching is a one-edit change in those two providers - but until then, do NOT introduce a temp config.toml file or a `~/.codex/config.toml` merge layer; the overrides preserve the operator's existing MCP entries without any merge logic.
|
|
1147
|
+
- **Codex `app-server`'s MCP child and cluster developer instructions live for the appserver thread bootstrap, not per-turn.** Asymmetric with `codex exec` and Claude CLI (both per-spawn). `currentMcpSignature` includes cluster wiring, account, role, and model. A change recycles the cached child and resumes the same Codex thread; `thread/start` / `thread/resume` then receive the current operator role, code-mode mapping, and derived Director contract through `developerInstructions`. Mutable plan content still rides per-turn input.
|
|
1148
|
+
- **No `mcp-config.json` file is written for Codex cluster members.** `mcpConfigWriter.writeFor` is Claude-CLI-only. Arco's smoke explicitly asserts the file's absence for Codex members - if a regression starts emitting it, the cleanup-on-detach path won't be wired for the Codex side and stale configs would accumulate. (And it'd be wasted work - Codex doesn't read the file anyway.)
|
|
1149
|
+
- **The Director contract delegates and lands; it never tells the director to keep working until the plan is done.** `clusterDirector.ts` gives a role starting with Director/Coordinator: delegate implementation/builds/tests via peer_send, don't write code, read the full diff + peer gate evidence, then commit/push; edit plan tasks but keep status on the board. The Director delegates, reviews evidence, and does not continue implementation or record progress in the plan. Don't reintroduce continue-until-done or evidence-into-plan wording (CLAUDE.md fence: model proposes/delegates, operator owns "is this done?"). Pinned by `smoke:astra-cluster-director` + `test:codex-code-mode`.
|
|
1150
|
+
- **Cluster plan + role + mailbox prologue ride through `WorkerConfig.appendSystemPrompt` for both Codex transports.** Native still injects forced system blocks. Codex app-server also duplicates the stable role/tool/Director contract at developer level because its built-in `/root` framing otherwise outranks the user-text prefix. The app-server fold cap is 48 KB; CLI stays 16 KB.
|
|
1151
|
+
- **Codex CLI's `-c` value is parsed as TOML.** Strings need quoting, arrays use TOML array syntax. We emit via `JSON.stringify` because TOML strings and arrays are a strict superset of JSON's quoting rules for `string | string[]` shapes - handy. If you ever extend `buildCodexMcpOverrides` to emit non-string-non-array values (booleans, integers), JSON.stringify still works for those primitives because TOML accepts the JSON literal forms.
|
|
1152
|
+
- **`SpawnDialog` / `TabContextMenu` / `ClusterRightPanel` candidate filters now accept `provider === 'codex'` alongside `'claude'`.** A polish pass should rename the still-misleadingly-named `anchorIsNative` local in `TabContextMenu.tsx` to something provider-agnostic; left as-is to keep the diff scoped.
|
|
1153
|
+
|
|
1154
|
+
### gotchas (Polish - rehydrate · detach · activity · idle nudger)
|
|
1155
|
+
|
|
1156
|
+
- **History rehydrate fires on first `cluster_subscribe` per server lifetime - NOT on server boot.** `server/src/clusterRehydrate.ts` holds an in-memory `rehydratedClusters: Set<string>`; the first WS to subscribe triggers a `peek` over the recipient mailbox dirs and re-broadcasts `peer_message_sent` for each undelivered file. Subsequent subscribes (same server, additional WS clients) skip the scan. Decision recorded in the cluster design notes (2026-05-10). Don't add a boot-time eager rehydrate - it scans clusters the operator may never reopen and emits events on channels with zero subscribers.
|
|
1157
|
+
- **Re-emitted `peer_message_sent` from rehydrate persists to the SENDER's events.jsonl.** The re-emit rides through `broadcastWorkflow` only - NOT `broadcastCluster`. Cluster panels always subscribe to every member workflow on tab open (the same pattern the original peer_message_sent emit uses), so broadcastWorkflow reaches both workflow observers and the cluster panel through that one channel. DOUBLE-BROADCASTING (via both `broadcastWorkflow` and `broadcastCluster`) would deliver every event twice to a WS subscribed to both, which is what an early draft did - the smoke caught it as a "cap appears broken" false positive (server-side cap held; client saw 2× events). Same rule applies to `cluster_member_nudged`: broadcastWorkflow only. Across a server restart, rehydrate may write a duplicate row to events.jsonl (the original send already persisted in the previous lifetime; rehydrate writes another). Accepted today as audit-trail bloat, not a correctness issue. If a future contributor wants to dedupe, scan the recipient's events.jsonl for a matching `msgId` before re-emit - DON'T silently skip re-emit, because the smoke verifies the event lands.
|
|
1158
|
+
- **`clusterMailbox.drain` destroys the file - anything left on disk is by definition undelivered.** Rehydrate's `peek(wfid)` returns exactly the undelivered messages because there are no delivered messages on disk to skip. If you ever change `drain` to keep the file with a `delivered: true` stamp, you MUST also teach rehydrate to filter on `msg.delivered === false` (today's `peek` already does this, but the simplification "everything on disk is pending" is load-bearing for the audit trail).
|
|
1159
|
+
- **No cancel path drains the mailbox - verified by audit, documented as a guarded invariant.** `handleCancel` / `handleCancelQueuedMessage` / `handleCancelReview` / `handleRemoveWorkflow` and every primitive teardown path are clean. The only `clusterMailbox.drain` callers are `seedWorker.drainPeerMailbox` (turn-start in `handleUserMessage`) and `clusterPeerOps.peerRead` (model-issued `peer_read` or the matching REST endpoint). The autonomy four-question test answer #4 (reversibility) requires this: cancelling a turn must preserve the recipient's pending peer messages, otherwise an operator STOP would silently destroy peer mail without notifying the sender. If a future feature adds a "cancel + drop pending mail" path (e.g. "reassign this member"), it must NOT live inside the existing cancel handlers - new surface = new handler.
|
|
1160
|
+
- **HANDOFF preserves cluster membership for free - verified by audit (re-confirm).** `handleHandoffRequest`, `runExportContext`, `disposeProviderResources` do not mutate `clusterStore`. Cluster membership keys on `workflowId`; handoff rotates the worker session inside the same `workflowId`. `getClusterIdForWorkflow` re-resolves on every operator turn at `handleUserMessage`, so the post-handoff session sees `peer_*` tools register naturally. DO NOT add explicit "preserve cluster" code in `handleHandoffRequest` - it's a no-op but creates the impression that membership is tracked elsewhere, and a future contributor might "fix" the no-op with an actual rebind that races against `clusterStore.memberIndex`. (Mirrors the entry; restated here so the audit anchor is co-located.)
|
|
1161
|
+
- **Detach button wires to the SAME `cluster_member_remove` message as the bottom-row ×.** Single wire shape across both UI surfaces means cleanup paths (mcp-config.json on Claude CLI, Codex `-c` overrides on next spawn, member-index drop, idle-nudger state drop) stay trivially symmetric. The workflow tears down - events.jsonl persists on disk for Resume; that's the "keeps its history" interpretation. Don't introduce a separate "soft detach that keeps the workflow alive" wire shape without concrete operator data motivating it - the UI question "where does the detached-but-alive workflow live in the bottom-row tab list?" is the trap.
|
|
1162
|
+
- **Idle nudger predicate is a 5-AND gate; flipping any one prevents fire.** `idle ≥ floor` AND `cooldown ≥ floor since last nudge` AND `pending ≥ 1` AND `nudgesThisTurn < cap` AND `no cluster member is busy`. Per-member `nudgesThisTurn` resets on the member's `primary_turn_started` (caught via the `broadcastWorkflow` hook on `primary_turn_*`). Cluster-wide busy-suppression means if ANY member is busy, no nudges fire anywhere in the cluster - the simplification chosen over "only if this member's peer is busy" because the "peer" concept is fuzzy in N>2 clusters. Document any future predicate change in a §13 decision log entry.
|
|
1163
|
+
- **Idle nudger NEVER sends prompts to workers.** The event is `cluster_member_nudged { reason, idleSeconds, pendingCount }` - toast-only operator alert. This is the autonomy-test-passing version of the previously rejected autonomous auto-advance pattern. If you find yourself wanting to "auto-issue a peer_read on the operator's behalf" or "kick a turn" from the nudger, STOP - that's the archived pattern. The whole point of the toast is to inform the operator who can then issue the prompt manually.
|
|
1164
|
+
- **`ARCO_CLUSTER_IDLE_FLOOR_SECONDS` is the env knob for the idle floor.** Production default 10s; smoke uses 1s. Read at module load in `clusterIdleNudger.ts` (`process.env.ARCO_CLUSTER_IDLE_FLOOR_SECONDS`). `NUDGES_PER_TURN` stays a hardcoded constant (3) because hitting that cap means "the operator is genuinely ignoring this member" - a per-cluster override would just delay that conclusion.
|
|
1165
|
+
- **`ClusterStatePayload.idleNudgerEnabled` is optional; absent ≡ false.** The nudger toggle persists in the cluster's meta.json; the client reads it from the `cluster_state` push. UI chip renders OFF when absent or false; ENABLED only when explicitly `true`. Don't render a third state - the toggle is binary at every layer.
|
|
1166
|
+
- **Efficiency level is a deterministic 3-effect bundle; `clusterEfficiency.ts` is the SINGLE source of truth.** `level → { doctrineText, sendBudget, mailboxNoticeVariant }`. Never split these across files - if you tune the doctrine, the budget, or the notice independently they drift apart and contradict. The known trap: at `balanced`/`lean` the doctrine says "don't re-review unless signalled", so the pre-turn mailbox notice MUST swap to its softened/minimal variant - otherwise the notice's "re-engage on every inbound" language contradicts the doctrine and the over-review loop comes right back. `turnEngine` resolves the level once at turn start and uses it for BOTH the doctrine block AND the notice; keep them tied to the same level read.
|
|
1167
|
+
- **Efficiency presets are STATIC operator-selected text - not LLM-mutated instructions.** This is the load-bearing distinction from the `headroom learn` hard fence (CLAUDE.md). The doctrine strings live in code; the operator picks a level + optionally appends a note. Never derive the doctrine from session traces, never let a model rewrite it. `thorough` (the default) injects NO doctrine, keeps the historical 15-send budget, and uses the byte-identical historical mailbox notice - so `efficiencyLevel`/`efficiencyAddendum` are emitted in `cluster_state` only when non-default (absent ≡ `thorough`), and pre-feature meta.json loads unchanged.
|
|
1168
|
+
- **Message guards are independent of efficiency.** `clusterPeerOps.peerSend` resolves `getMessageGuard` on each send. Legacy missing guards resolve to hard 15/8/4; `setEfficiency` pins that guard before changing style. Warn-only warnings are claimed after successful enqueue, at most once per primary turn. Failed sends refund reservations; mode edits do not reset counts. No limit does not disable deduplication, size, permissions or automatic-execution fences.
|
|
1169
|
+
- **Progress-tracking mode is a per-cluster deterministic doctrine knob whose default (`'both'`) is intentionally NON-empty - unlike efficiency's no-op `'thorough'`.** `clusterProgress.ts` `buildProgressDoctrine(mode, hasPlan, hasBoard)` returns a canned system-prompt clause bundle (`PLAN_CLAUSE`/`BOARD_CLAUSE`/`RECONCILE_CLAUSE`), gated on which surfaces actually exist - `undefined` only when neither exists. Modes `'plan' | 'board' | 'both'`, default `CLUSTER_PROGRESS_DEFAULT = 'both'`. turnEngine resolves it once and threads it as `WorkerConfig.clusterProgressDoctrine`; every transport that folds the cluster plan folds this too (Native pushes it as its own block after the efficiency doctrine, before the delegation contract). Operator entry is `cluster_progress_set { clusterId, mode }`; `ClusterState.progressTracking` persists to cluster meta.json ONLY when non-default (so pre-feature cluster meta stays byte-identical), echoed in `ClusterStatePayload.progressTracking` only when non-default. Because the default is non-empty, a brand-new cluster gets the doctrine - don't "optimize" it to inject nothing by default.
|
|
1170
|
+
- **`ClusterActivityTab` derives membership/role/plan events from `cluster_state` diffs, not a server-side audit log.** The diff happens in a `useEffect` snapshot inside the component - if the operator opens the ACTIVITY tab AFTER a membership change, the change won't appear (no diff baseline). This is intentional: a server-side audit log would duplicate state that already lives in `cluster_state` + per-member events.jsonl. If a future surface needs full membership history, it scans events.jsonl, NOT a new audit file.
|
|
1171
|
+
- **`ClusterRightPanel` uses the same two-level grouping pattern as `RightPanel`.** Groups are `WORKSPACE` (`members`, `files`), `AGENT` (`activity`, `reviews`, `handoffs`, `plan`, `board`, `mailbox`), `MEMORY` (`history`), and `RUNTIME` (`preview`, `config`, `github`). CONFIG is member-scoped: it renders the existing `ConfigTab` for the selected member and dispatches ordinary per-workflow update wires (`update_primary_config`, codebase-memory, MCP registry). Do not add an implicit "apply to every member" path without an explicit operator confirmation surface and event trail.
|
|
1172
|
+
|
|
1173
|
+
### Cluster-ops push gotchas
|
|
1174
|
+
|
|
1175
|
+
- **`buildSystemBlocks` cache_control stamping is breakpoint-based, capped at 4.** Anthropic returns 400 `invalid_request_error` if a request carries more than 4 system blocks with `cache_control` set. The Native worker (`buildSystemBlocks` in `server/src/providers/claude-native/worker.ts`) now pushes every block plain, then assigns cache breakpoints AFTER in priority order: (1) FORCED_FIRST_BLOCK with `ttl: '1h'`, (2) the final block (5min), (3) cluster-plan boundary, (4) role boundary. Block ORDER itself is unchanged (see the Cache-discipline entry above). Pre-fix path was "stamp every stable block as cached on push" - that blew past 4 the moment cluster plan + role + sandbox nudge + an operator system prompt were all present. If you add a new system block, decide whether it deserves a cache breakpoint (rule of thumb: stable across turns + ≥1 KB) and place it in priority order; don't unconditionally add `cache_control` on push.
|
|
1176
|
+
- **`notifyClusterStateForWorkflow(workflowId)` MUST fire after every `wf.busy = false` write.** Pre-fix: the busy-flip-to-idle wasn't pushing `cluster_state`, so the cluster status indicator could stay solid after a turn settled. Three call sites: `runPrimaryTurn` finally block, the `user_message` crash handler, and `handleCancel`. If a future feature adds another path that flips `wf.busy = false`, add the notify call. `CLUSTER_STATE_TRIGGERS` covers `primary_turn_started / primary_turn_ended / peer_message_sent / peer_message_received` for the normal hot path, but ad-hoc busy resets (crash recovery, cancel) bypass the trigger and need the explicit call.
|
|
1177
|
+
- **`cluster_plan_tick` schema cannot use top-level `oneOf`.** Anthropic input_schema accepts `properties` / `required` but rejects top-level `oneOf` / `allOf` / `anyOf` with 400 `invalid_request_error`. Shape is "both `lineIndex?` and `taskText?` optional in the schema; the dispatcher in `peerTools.ts` checks types and falls through to `peerPlanTick` which returns `invalid_matcher` when neither / both are supplied." The description text encodes the either/or contract verbatim so the model still picks one. Don't try to express the constraint at the schema level - the API rejects the request before the model ever sees it.
|
|
1178
|
+
- **PROMOTE TO CLUSTER detaches the worker plan.** After `setClusterPlan` writes through, the worker's local plan slot clears via `detachPlan`. Single source of truth invariant: a cluster member should never inject BOTH the cluster plan (forced system block via `WorkerConfig.clusterPlan`) AND its own attached plan (`appendSystemPrompt` fold). Pre-fix path left both attached, doubling the plan footprint and surfacing two conflicting "the plan" framings. If you add another PROMOTE-shaped operation, mirror the detach.
|
|
1179
|
+
- **`cluster_subscribe` attaches the WS as observer on every member workflow.** `handleClusterSubscribe` adds the subscribing socket to each member's `wf.observers` set; `Session.clusterObserved: Map<clusterId, Set<workflowId>>` tracks which adds came from a cluster-subscribe (so detach doesn't strip observer entries from other sources). Symmetric detach on `cluster_unsubscribe`, `cluster_member_remove`, and `cluster_delete`. This is what lets the cluster ACTIVITY tab surface per-member tool activity without the operator pre-opening each member tab. If you add a new "subscribe to a multi-workflow surface" wire shape, mirror the observer-attach pattern OR the new surface won't see per-member events. The detach is "remove ONLY when the cluster-subscribe was the source of the add" - don't blanket-remove from `wf.observers`, that'd kick out explicit tab subscribers and parallel cluster subscribers.
|
|
1180
|
+
- **`peer_send` resolves by wfid prefix → exact displayName → displayName prefix (case-insensitive).** Ambiguous (>1 match) folds into `unknown_peer` with a roster hint (`available peers: <name> (<8-char>), ...`). Don't add a fourth resolution mode without auditing the ambiguity rule - the priority order is intentional (wfid is unforgeable; exact name beats prefix). The bug this fixed: models commonly type the friendly name (`Harbor #2`) instead of a wfid prefix, and pre-fix that just returned `unknown_peer` even though the cluster had exactly one member with that name.
|
|
1181
|
+
- **`peer_message_sent.chainDepth` is stamped server-side from `currentAutoTurnDepth(senderWfid)`, never sent by clients.** `broadcastWorkflow` intercepts the event and reads the in-flight auto-turn depth marker for the sender. Operator-initiated peer-sends have no marker → `chainDepth = 0`. Auto-turn fires call `markAutoTurnDepth(R, parentDepth + 1)` BEFORE dispatching; `primary_turn_ended` clears the marker. The depth cap (default 3) is checked against the INCOMING message's chainDepth - i.e., if a peer_send rides at depth 3, no auto-turn fires for the recipient. Three knobs together prevent runaway: `ARCO_CLUSTER_AUTO_TURN_COOLDOWN_MS` (per-recipient cooldown, default 20000), `ARCO_CLUSTER_AUTO_TURN_RATE_CAP_PER_MINUTE` (per-cluster rolling 60s cap, default 10), `ARCO_CLUSTER_AUTO_TURN_MAX_CHAIN_DEPTH` (default 3). Smoke harnesses dial all three down to test guard behaviour without burning real API spend.
|
|
1182
|
+
- **AUTO-PICKUP DOES dispatch a synthetic primary turn - distinct from the idle nudger.** The idle nudger is toast-only (operator alert, no worker prompt). AUTO-PICKUP dispatches a real `user_message`-equivalent on the recipient via `buildClusterAutoPickup`: `"(auto-pickup) Peer mail arrived while idle. Read your mailbox."` plus a role- and efficiency-aware mail action. Both are operator-armed default-OFF; Rule-based AUTO-PICKUP uses acknowledgement filtering, loop and wake-budget guards in addition to the existing caps and reversible toggle. Don't fold the two into one toggle: the nudger's "toast only" semantics are the autonomy-test-passing escape hatch; AUTO-PICKUP picks a different point on the spectrum (operator-armed automation with deterministic caps).
|
|
1183
|
+
- **`ClusterActivityTab` is sorted oldest-first / newest-at-bottom.** Chat-convention; pre-fix was newest-first. Auto-scroll is sticky-bottom, not unconditional: `onScroll` records whether the operator was near the bottom before new rows render, and `useLayoutEffect` snaps to `scrollHeight` only when that sticky flag is true (or on first fill / member-lane switch). Do not recompute "near bottom" only after rendering new rows - bursty tool activity increases `scrollHeight` and can make a previously pinned view look far from bottom. If you mount a sort toggle later, the persisted preference key should be cluster-scoped (one orientation per cluster), not global - operators with multiple clusters sometimes want different views per cluster.
|
|
1184
|
+
- **Cursor reply segments close at reasoning and tool boundaries, and the streaming cursor takes no layout.** Cursor ACP interleaves `agent_thought_chunk` and `tool_call` updates between `agent_message_chunk`s of one reply. Two things must hold: (1) `primary_thinking` for a `cursor` job calls `splitPrimaryText`, and the thinking activity row carries `eventSeq` and counts as a boundary in the `primary_text` reuse test (otherwise the next chunk re-opens the earlier segment, appends to it with no separator, and re-lights its cursor); the server worker also puts a paragraph break (`SegmentJoiner`, `providers/cursor/acpSegments.ts`) between chunks that ran on across such a boundary so the combined turn text does not read "fix.While". (2) `appStore.finalizeStreamingExcept` is called when a segment starts or resumes streaming, so at most one assistant message per job is streaming. The cursor itself is a `::after` on the last text block of an `.arco-streaming` message (`styles/matrix.css`), with zero net width, so it neither wraps onto a line of its own nor changes the message height.
|
|
1185
|
+
- **Cluster thinking chunks coalesce AFTER the global time sort, with raw whitespace intact.** Cursor ACP chunk size is model-defined; Kimi K3 was observed emitting one word/punctuation token per `agent_thought_chunk`, which produced a full bordered ACTIVITY row per word even though the per-workflow Activity tab already coalesced its deltas. `clusterActivity.helpers.ts:coalesceThinkingRuns` now joins only adjacent same-member thinking rows; tools, cluster events, and other members remain boundaries. Do not `.trim()` each source chunk before this pass - a standalone whitespace chunk is often the only separator between two word chunks. Trim the completed display run only. The derived row is capped at 64K characters so coalescing cannot multiply the store's bounded memory footprint. Auto-scroll must key on the row-array update, not only row count, because a coalesced row grows while its count remains one.
|
|
1186
|
+
- **`cluster_plan_tick` REST endpoint validates `workflowId ∈ cluster.members` before dispatch.** The MCP child posts as a member's worker, so the endpoint's auth is "membership in the named cluster." Don't drop the membership check thinking "the MCP child only spawns for cluster members anyway" - a stale config file could re-launch a child after detach, and the REST endpoint is the catch-all.
|
|
1187
|
+
|
|
1188
|
+
### Cluster-polish push gotchas
|
|
1189
|
+
|
|
1190
|
+
- **Peer mailbox no longer auto-drains pre-turn - workers MUST call `peer_read` to receive content.** `handleUserMessage` used to call `drainPeerMailbox` before `user_message_echo`, injecting peer content into the system prompt and emitting `peer_message_received` events at turn-start. That created a false-negative: `peer_read` then returned empty (the drain already consumed the files) and the model conflated "I have nothing to read" with "I have no work to do." Pre-turn now only reads `clusterMailbox.depthFor(workflowId)` and folds a short notice into `appendSystemPrompt` (`clusterEfficiency.buildPeerMailboxNotice(level, depth)`, called from `server/src/ws/turnEngine.ts`; restricted-access members get a one-line variant). The `peer_message_received` events fire on the worker's actual `peer_read` call (where they belong). The OLD invariant about "drain destroys files; events.jsonl is the durable record" still holds - `peer_read` is just where the drain happens now. Do NOT re-introduce pre-turn auto-drain without rethinking the false-negative case.
|
|
1191
|
+
- **The pre-turn notice is per-turn-variable and cache-busts.** It carries `N` (the pending depth at turn start), so the system block hash changes per turn - same trade-off as the old prologue. Don't try to "stabilize" by omitting N; the count is the load-bearing signal for the model.
|
|
1192
|
+
- **`peer_send` dedupe is process-local; restarts clear the cache.** `(from, to, sha256(content))` cache in `clusterPeerOps.ts` (`PEER_SEND_DEDUPE_MS`), 60s window (`ARCO_PEER_SEND_DEDUPE_MS`). This is correct, not a bug: a server restart also wipes the orphan-tool-use state that caused the rapid-fire retry pattern in the first place, so cache survival across restarts would refuse legitimate sends that the model now has no memory of having issued. The cache is lazily swept on lookup (>256 entries triggers an inline sweep); no scheduled timer.
|
|
1193
|
+
- **`operator_peer_send` bypasses budget + dedupe.** `clusterPeerOps.peerSend(ctx, args, opts)` accepts `{ bypassBudget?, bypassDedupe?, maxContentBytes? }`. The operator path (`handleOperatorPeerSend` in `server/src/ws/clusterHandlers.ts`) passes all three; model-driven sends never set them. Do NOT route model-driven sends through the operator path "for simplicity" - the gates exist to constrain model behaviour (per-turn budget, retry-loop dedupe), and bypassing them via the substrate would silently disable those constraints. Operator-driven raises the mailbox cap to 32 KB (matches the cluster-plan body cap); model-driven stays at 16 KB (`MAX_CONTENT_BYTES`).
|
|
1194
|
+
- **Chat-row dedupe by deterministic id is load-bearing.** `peer_message_sent` → row id `peer-sent-<msgId>`; `peer_message_received` → row id `peer-recv-<msgId>`. Three layers of defense: (1) the WS handlers in `client/src/ws/handleServerMessage.ts` check for an existing row before `addMessage`; (2) `appStore.addMessage` does defense-in-depth id dedupe; (3) `onRehydrateStorage` strips persisted duplicates on load (one-time historical cleanup for pre-fix chats that piled up rows across tsx-watch restarts). Do NOT re-introduce non-deterministic ids (`peer-sent-${randomUUID()}` etc.) for peer rows - rehydrate-on-subscribe + every tsx-watch restart re-fires the same `peer_message_sent` and the chat grows unboundedly without the deterministic-id check. The random-id form is fine for genuinely unique rows (peer-rejected pills, user turns) because they never re-fire.
|
|
1195
|
+
- **`ChatMessage.targetWorkflowId` is the full recipient wfid on `peer-sent` rows.** Set in the `peer_message_sent` WS handler (`client/src/ws/handleServerMessage.ts`); consumed by `PeerMessageBlock` in `ChatMessage.tsx`. The block looks up the relevant peer (recipient for sent rows, sender for received rows) in the cluster store and renders `displayName (role)`. Reactive on rename / re-role. The lookup memoizes on `clusters` (the referentially-stable map) - selecting via `s => ({...})` literal returns a fresh object each render and re-running through `useMemo` triggers an infinite update loop. Don't switch the selector shape.
|
|
1196
|
+
- **Mailbox CANCEL is operator-only and only mutates pending state.** `DELETE /api/clusters/:id/mailbox/:wfid/:msgId` unlinks a pending file; delivered messages live in `events.jsonl` and are out of reach. The endpoint fires `notifyClusterStateForWorkflow(wfid)` so the depth chip drops without a refetch. No event is emitted to events.jsonl - the message was never delivered, so there's nothing to record. If a future surface wants an audit trail for cancellations, add an explicit `cluster_peer_message_cancelled` event; do NOT fake one through `peer_send_rejected` (that event's contract is "the substrate refused this send," not "the operator cancelled a queued send").
|
|
1197
|
+
- **Review body inlines via `/api/workflows/artifact` are best-effort.** The `review_artifact_ready` handler in `client/src/ws/handleServerMessage.ts` seeds a header row immediately, then fetches the artifact body and patches the row. If the fetch fails, the header stays visible (REVIEWS tab still surfaces the artifact independently). Don't replace the header-then-patch with a single addMessage-after-fetch - the operator scrolling chat needs immediate verdict feedback even if the body fetch is slow.
|
|
1198
|
+
|
|
1199
|
+
### Cluster snapshots
|
|
1200
|
+
|
|
1201
|
+
- **Portable does not mean provider-session-portable.** `.arcocluster` carries Arco's config/events, not Claude/Codex/Cursor session stores or credentials. Native transports can rebuild from captured events where supported; CLI/app-server transports may start a fresh provider session on another machine. `portableWorkflowMeta()` clears `cliSessions` at BOTH save and restore: save keeps new artifacts honest; restore makes old artifacts safe. Do not remove the restore-side fence - otherwise a pre-fix Codex snapshot fails `thread/resume` with "no rollout found" on its destination. Never claim byte-identical proprietary provider context across computers.
|
|
1202
|
+
- **Cloud blobs are encrypted before upload; the hub never receives the key.** `clusterVaultCrypto.ts` owns `ARCOCV01` AES-256-GCM envelopes and `~/.arco/cluster-vault.key` (0600). The remote hub stores opaque bytes and bounded metadata only. Do not move encryption into the hub or include the key in the portable bundle.
|
|
1203
|
+
- **Imported/restored clusters are forks and runtime arming stays OFF.** Fresh cluster/member IDs prevent collisions. REMOTE, remote gates, idle nudges, auto-turn, and dispatcher execution are deliberately not re-armed by restore; a portable artifact must not start work or expose a cluster merely because it was imported. New snapshots carry the live member's full durable `WorkflowConfig` so client-only settings survive, but strip transient creation tokens and machine-local resume pointers; old snapshots fall back to canonical `workflowConfigFromMeta`. Passive cluster settings go through cluster setters.
|
|
1204
|
+
- **Bundle verification is all-or-nothing.** `ARCOCL01` declares every regular file's path, byte length, and SHA-256. Traversal, duplicates, missing/extra files, truncation, checksum mismatch, and over-cap bodies fail before `importSnapshotFiles` creates the final snapshot directory.
|
|
1205
|
+
- **Same-name snapshot replacement is ID-pinned and staged, never delete-then-save.** The first save returns `cluster_snapshot_conflict` with the existing summary; only the operator-confirmed retry carrying that exact `replaceSnapshotId` may replace it. `saveSnapshot` writes every member + manifest into a hidden sibling, renames the old directory to a hidden backup, then swaps the complete replacement at the stable id. Cloud follows the same ask/retry contract and pins `X-Arco-Vault-Replace-Id`; never weaken either path to a bare `replace: true` or delete the recoverable old copy before the new bytes exist.
|
|
1206
|
+
- **A cluster tab is only a browser mirror; the live record is server-durable.** A lost localStorage entry must be recovered by listing `GET /api/clusters` and sending the normal `cluster_subscribe` for the original id - never by restoring an older snapshot (which forks new ids). Conversely, a genuinely missing id returns structured `cluster_not_found`; the client prunes that one stale mirror so it cannot emit "Unknown cluster" forever.
|
|
1207
|
+
- **Restore replay MUST stay compacted - never replay raw streaming granularity.** `restoreSnapshot` pipes each member's captured `events.jsonl` through `truncateToLastNTurns` then `compactRestoredEvents` (`server/src/clusterSnapshots.ts`) before writing the target-cwd copy the WS handler replays. A live turn records token-ish `primary_text` deltas (the large majority of a raw log), started/completed `primary_tool_use` pairs, and per-call `primary_tool_counter` / per-file `diagnostics` state events. Replaying that raw flooded the client one WS message + one store update at a time: the tab stalled for minutes, missed heartbeats, and reconnect-looped under the SYNCING overlay (`snapshotReceived` never settling). Compaction merges adjacent same-phase text runs (the client coalesces replayed text into one bubble anyway), drops transient tool-status rows whose call settles later in the log, and keeps only the last counter / last diagnostics-per-file (both client handlers are last-write-wins). Verify size limits with synthetic fixtures. Do NOT "restore full fidelity" - delta boundaries are invisible once the turn is history.
|
|
1208
|
+
- **Codex call identity is `itemId`, not `toolUseId`.** Codex mints a fresh `toolUseId` per status event (started and completed carry different ones); only `itemId` (`call_…`) is stable across a call's lifecycle. `compactRestoredEvents` keys settled-call detection on `itemId ?? toolUseId`. Keying on `toolUseId` alone silently stops compacting Codex members (the 2026-06-12 first-pass bug).
|
|
1209
|
+
- **Snapshot-shaped event types are latest-wins in compaction - `task_ledger_snapshot` especially.** Each one is a FULL copy of the cwd's task ledger and a busy cluster re-broadcasts it on every mutation: a large workflow can carry many of them, dominating the total size. Text-delta coalescing alone left that untouched (UI froze per batch, WS backpressure stalled the socket, the server's zombie-socket heartbeat terminated the client mid-delivery, reconnect into a half-ingested cluster). Compaction now also: keeps only the last `task_ledger_snapshot` per workflowId (rule 5), truncates `primary_tool_use` input/output at 16 KB (rule 6 - the client's display cap; Native provider-context replay skips tool events so the model loses nothing), and keeps only the newest 300 tool rows per workflowId (rule 7 - the client trims chat at 500 messages / activity at 500 entries, so older rows were ingested and immediately discarded). Restore compacts text deltas, transient status rows, and superseded state snapshots before replay. If you add a new broadcast type that re-sends whole-state snapshots into `events.jsonl`, add it to the latest-wins set here.
|
|
1210
|
+
- **The client persist layer must stringify LAZILY - never per `set()`.** `client/src/stores/persistence.ts` (`debouncedJSONStorage`) holds the partialized state object and JSON.stringifies once per debounced flush. Wrapping `createJSONStorage(...)` instead serializes the entire multi-MB jobs slice on EVERY store update - the debounce only delayed the disk write, not the serialization - which is what compounded a replay_batch ingest (thousands of `set()` calls in one task) into a minutes-long main-thread freeze. The freeze is what stops the browser draining the socket and gets the client heartbeat-terminated. Quota overflows at flush are logged (`persist flush failed`), not silent.
|
|
1211
|
+
- **`cluster_created` is sent BEFORE any member history streams.** The restore handler (`handleClusterSnapshotRestore` in `server/src/ws/clusterHandlers.ts`) registers all members, sends `cluster_created`, and only then sends per-member `workflow_created` + event replay. Members-first ordering left the restored workers rendering as standalone tabs for the whole replay window (and permanently, if the operator closed the tab mid-flood). The cluster must exist client-side before any member does.
|
|
1212
|
+
- **Each member's history is delivered as ONE `replay_batch` message - never a stream of N live events.** The client persists `lastSeq` + the last 200 chat messages on a debounce and reconnect asks for "events since lastSeq". Streaming history as live events races that model: an interrupt mid-flood (reload, heartbeat-miss disconnect) persisted `lastSeq≈head` with no chat, and replay-since-seq then had nothing left to resend - the member rendered as a **permanently blank worker** (2026-06-12). The batch is ingested by the client in one synchronous task (`case 'replay_batch'` in `handleServerMessage.ts` re-dispatches each inner event through the same reducer), so run-to-completion makes it all-or-nothing, React batches one render, and the debounced persist fires once. Do NOT revert to per-event `ws.send` loops for restore delivery. The reconnect path got the same treatment: `rehydrateOneWorkflow` (`handoffHandlers.ts`) ships a gap larger than 200 events as one `replay_batch` too (small gaps keep the per-event path), so a client that disconnects mid-restore can't be re-flooded by its own catch-up replay.
|
|
1213
|
+
- **Provider-side context after restore (what the model actually sees on the next turn).** The restored chat window is only honest if the worker's next turn carries the conversation. Per transport: **Claude Native** rebuilds its API message history from the restored events.jsonl itself (`replayMessagesFromEvents` - pair-flush of `user_message_echo`/`primary_text`/`primary_complete`; tool events skipped), so the operator's `turnsPerMember` choice IS the model's restored context depth, and the compacted log is the ideal input (text already merged into one event per run). **Claude CLI** resumes the snapshot's last `cliSessions` entry - safe to wire even while the original member is open because `claude -p --resume <id>` FORKS into a fresh session file - but only on same-cwd restores (session files are keyed by cwd on disk; cross-cwd resume errors). **Codex** (`exec resume <uuid>`) APPENDS to the one thread with no fork, so the restore handler wires resume only when the original member workflow is no longer live; two live workflows pinned to one thread would interleave their turns. A codex member restored while its original is open starts its next turn with fresh provider context (chat window is history-only) - known, deliberate limitation.
|
|
1214
|
+
- **Restore is a fork.** New clusterId + new member workflowIds are minted up front and folded into one idMap; `rewriteEventsLine` remaps every embedded id (peer `to`/`from`, the old clusterId in `cluster_member_nudged`, …) in the replayed lines. The snapshot's `planId` is deliberately NOT reattached - plans are keyed `(cwd, planId)`, so reuse would make the fork share one mutable plan file with the original; restore mints a fresh plan from `manifest.planBody`.
|
|
1215
|
+
- **Save requires a quiescent cluster.** The save handler refuses while any member is `busy` - the event buffer flush + whole-file read could otherwise capture a torn final line. Snapshots store FULL member logs (no truncation at save time); truncation + compaction are restore-time so the operator chooses depth (`turnsPerMember`, default 25, "All" = omit) per restore from one full-fidelity capture.
|
|
1216
|
+
- **`done`/`archived` stay operator-gated; smoke is `npm run smoke:cluster-snapshot`** - it asserts over-the-wire delivery (workflow_created + replayed history reach the client), truncation count, clusterId remap, and delta coalescing. Keep those assertions; each one guards a shipped regression.
|
|
1217
|
+
|
|
1218
|
+
### No-turn member rehydrate after a restart
|
|
1219
|
+
|
|
1220
|
+
- **A cluster member's roster card and its transcript job come from two DIFFERENT messages, and they can drift.** `cluster_state` carries the roster (member cards render from `cluster.members`); `workflow_created` carries the per-member job that the transcript + Activity panes read from (`ClusterTab` renders the pane only when `jobs[wfid]` exists, else the **"AWAITING REHYDRATE…"** placeholder). Member jobs are materialized LAZILY - a member that never takes a turn never gets a `workflow_created`, so it's never persisted to the client's `arco-jobs` localStorage and can't ride the reconnect `rehydrate_workflows` (which is built from `Object.values(store.jobs)` and needs the config the client never got). Result before the fix: a no-turn member (or one shadowed by a stale-localStorage twin - same display name, different id) rendered a card but its pane was stuck on "AWAITING REHYDRATE…" **forever**, and any turns it ran post-restart were invisible (their events fanned out to the cluster observer but landed on no job). It is NOT a blank conversation - there is no job object at all.
|
|
1221
|
+
- **The server's `workflows` map does NOT register cluster members on boot - it fills lazily from client `rehydrate_workflows`.** So `workflows.get(memberWfid)` returns `undefined` after a restart for any member no connected client rehydrated. The first-pass fix (a `cluster_member_rehydrate` message that only sent `workflow_created` for a member already in `workflows`) therefore bailed silently on exactly the stuck case. The shipped handler (`handleClusterMemberRehydrate`) now reconstructs the member's `WorkflowConfig` from its persisted `meta.json` (config is stored field-by-field there - `primaryProvider`/`primaryModel`/`primaryEffort`/`cwd`/`name`/`providerAccountRef`/`efficiencyToolFilter` - NOT under a `config` key; `skipPermissions` defaults `true`) and registers the `WorkflowState` (WorkerManager + `derivePrimaryConfig` + `deriveAutoHandoff` + restored `cliSessions` primarySessionId) before sending `workflow_created` + `rehydrateOneWorkflow(…, 0)`. Per-branch `console.log` on every early return - the silent bail cost a debug round-trip; keep the logging.
|
|
1222
|
+
- **The client request is deduped by `workflowId` and cleared ONLY on `workflow_created` (`requestedMemberRehydrate` in `handleServerMessage.ts`).** A failed attempt (server bailed, no `workflow_created`) leaves the guard set, so a plain WS auto-reconnect won't retry - a **page reload** is required to reset the module-level Set. This is why the recovery needs a hard refresh after a fix-deploy, not just a reconnect. If you make this retry on reconnect, clear the guard on a timeout or on `cluster_state` instead.
|
|
1223
|
+
- **Eager boot-time member registration is now the primary fix (2026-07-10 followup).** `registerAllClusterMembersOnBoot` (`handoffHandlers.ts`, fired failure-isolated in the `index.ts` listen() epilogue alongside the recall backfill) walks `clusterStore.loadAllClustersFromDisk()` and registers every member's `WorkflowState` from `meta.json` so the `workflows` map never drifts across a restart - no more lazy-fill gap. It also warms `clusterStore`'s `memberIndex` (via `readCluster` per cluster) so a member's first post-restart turn resolves its `clusterId` for peer-tool wiring. `cluster_member_rehydrate` stays as the client-driven job-materialization channel (boot registration makes the server side complete; the client still needs `workflow_created` to build its job) AND the dynamic-add path (a member added mid-session that this browser has no job for).
|
|
1224
|
+
- **Config reconstruction lives in ONE mapper - `workflowConfigFromMeta` (`workflowMeta.ts`).** Shared by the boot path and the on-demand handler (via `materializeMemberFromMeta`) so they can't drift. It carries EVERY turn-relevant persisted field, NOT just provider/model/effort - dropping `claudeTransport`/`codexTransport` alone silently runs a Native member on CLI / an appserver Codex member on exec (the latent bug the first pass shipped). Falsy-but-valid values must use type checks, not truthiness: `webSearchMaxUses: 0` (`typeof === 'number'`), `claudeNativeCompact: false` (`!== undefined`), efficiency `'off'` (truthy string). `caveman` outputStyle is aliased to `terse` in the mapper (the config type dropped the legacy value).
|
|
1225
|
+
- **`meta.json` cannot carry client-only config fields - `advanced` (fallbackModel / additionalDirectories), `fastMode`, `allowedProviders`, `skipPermissions`.** A boot/on-demand materialization forces `skipPermissions: true` (the cluster-member default) and resets the rest. Two load-bearing consequences: (1) a member materialized from meta is marked `wf.bootMaterialized = true`, and the `existing` branch of `handleRehydrateWorkflows` REPLACES that placeholder config with the client's full one + re-derives `primary` when the client reconnects (`!busy` guarded) - this is what restores a SAFE-mode member's `skipPermissions: false` and a `fallbackModel`. Without it, boot registration wins the race against the client reconnect and the client's authoritative config is silently discarded. (2) A **boot-only member** (no client ever reconnects with its config - e.g. an armed dispatcher fires a turn on a browserless member) still runs with `skipPermissions: true`; the durable fix is to persist `skipPermissions`/`advanced` into `WorkflowMeta` (deferred follow-up).
|
|
1226
|
+
- **`materializeMemberFromMeta` re-checks `workflows.get()` AFTER its `await readMeta` (TOCTOU).** The boot scan runs fire-and-forget concurrently with client reconnects; the top-of-function guard fires before the await, so a concurrent `rehydrate_workflows` could register the member in the window and the unconditional `workflows.set` would clobber it - dropping the client's observer (→ the exact frozen-pane symptom) and resetting an in-flight `WorkerManager` (→ defeated busy guard, double-turn). The post-await re-check closes it. Never remove it.
|
|
1227
|
+
- **Dynamic membership (frequent add/remove) is handled by the existing paths, not by this fix.** Every add/remove path (add-existing, spawn-join, fresh-workers, detach/remove) already registers/deregisters in the `workflows` map at the moment of the change AND pushes a fresh `cluster_state`, so `requestMissingMemberJobs` materializes a runtime-added member and a removed member drops from the roster. Boot registration + the on-demand message only close the RESTART gap; both key off the atomically-maintained `members[]`, so add/remove between restarts is reflected automatically. Known minor edges (follow-ups): a client job for a removed member lingers (no `workflow_removed`; `cluster_member_removed` is a client no-op), and the `requestedMemberRehydrate` dedup guard clears only on `workflow_created` (a genuinely-unreadable-meta member stays stuck for the session).
|
|
1228
|
+
- **Smoke: `npm run smoke:cluster-member-rehydrate`.** Drives the real reconstruction branch WITHOUT a restart via `remove_workflow` (evicts the map entry, keeps roster + meta). Two load-bearing traps it was written to avoid: (1) it must DRAIN the member's creation-time `workflow_created` before asserting the rehydrate one, else the buffer-first `waitFor` matches the stale message and passes even if the fix is broken; (2) the membership-guard test must use a workflow that HAS `meta.json` but isn't in the roster (else `readMeta`→null makes it pass guard-independently).
|
|
1229
|
+
|
|
1230
|
+
## Integrated terminal
|
|
1231
|
+
|
|
1232
|
+
- **Operator-only - NEVER wire the model into the PTY.** `ptyManager` is not a tool; nothing in `server/src/providers/*Tools.ts` or any tool registry references it. Agents have their own per-turn Bash within tool-use. Exposing this PTY as a callable tool is the autonomous-shell fence - the exact thing the four-question test exists to reject. If you add a "run a command in the terminal" surface, it must be operator-pre-filled-never-auto-executed (the K3 chip pattern), not a model tool.
|
|
1233
|
+
- **Session ≠ connection - closing the window must DETACH, not kill.** `terminalChannel.ts`'s `ws.on('close')` calls `ptyManager.detach`, never `kill`. The shell (and any `npm run dev` / `sleep 30` in it) keeps running; the scrollback ring keeps filling so the next attach repaints. Only `terminal_kill` (operator KILL), `killForWorkflow` (tab close), or `killAll` (shutdown) reap a session. If you ever make window-close kill the shell, you've broken THE acceptance criterion. The smoke (`npm run smoke:terminal`) asserts detach-keeps-alive explicitly.
|
|
1234
|
+
- **The raw byte stream is OFF the seq'd `/ws` protocol and OUT of `events.jsonl`.** It rides the dedicated `/terminal` WS path (`terminalChannel.ts`), which never touches `persistAndStampSeq` or `broadcastWorkflow`. Only lifecycle (`terminal_opened` / `terminal_killed`) and command lines (`terminal_command_logged`) are persisted, via `broadcastWorkflow` from `index.ts`. Don't "unify" the channels to simplify - streaming every PTY frame through `events.jsonl` would bloat the log by orders of magnitude (the deliberate granularity choice).
|
|
1235
|
+
- **`/terminal` inherits `/ws`'s access posture; it does not add its own.** Both ride the same loopback-bound HTTP server (`HOST=127.0.0.1` by default - `server/src/server/constants.ts`). There is NO per-connection token/origin check on `/ws`; the loopback bind IS the gate. `terminalChannel.handleTerminalUpgrade` is fed from the same `httpServer.on('upgrade')` fan-out, so it's exactly as exposed as `/ws` - no more, no less. If you ever add auth to `/ws`, add the same to `/terminal` in the same change; don't let them drift.
|
|
1236
|
+
- **The HTTP server must have exactly ONE `upgrade` listener - the manual fan-out in `index.ts`.** Do NOT build the `/ws` server as `new WebSocketServer({ server: httpServer, path: '/ws' })`: that makes ws attach its OWN `upgrade` listener IN ADDITION to the manual fan-out. Both fire for every upgrade, and for any non-`/ws` upgrade (`/terminal`, preview) the fan-out upgrades the socket first, then ws's listener (path mismatch → `shouldHandle` false) calls `abortHandshake(socket, 400)` on the now-LIVE socket, writing `HTTP/1.1 400 Bad Request` into the raw WS stream. The browser reads the leading `H` (0x48) as a frame header with RSV1 set → "Invalid frame header" and a permanently dead channel. Fix/shape: `wss` is `noServer:true`; the single fan-out routes `/ws` via `wss.handleUpgrade(req, socket, head, (c, r) => wss.emit('connection', c, r))`. If you add another WS endpoint, route it in that SAME fan-out - never give a second `WebSocketServer` the `{ server }` option.
|
|
1237
|
+
- **xterm needs LITERAL colours/fonts - CSS custom properties don't resolve in a canvas (2026-06-01).** `XtermView` renders to `<canvas>`, so `theme.background` / `fontFamily` must be concrete strings; `fontFamily: 'var(--font-code)'` silently fell back to monospace and the bg was hardcoded. Read the computed tokens off `:root` - `getComputedStyle(document.documentElement).getPropertyValue('--color-bg' | '--color-fg' | '--color-accent-primary' | '--font-code')` - pass those to the `Terminal` ctor, and re-apply on `settings.themeId` change (apply.ts has written the new vars by then). Never hand `var(--…)` to xterm options. ANSI 16-colour palette is left at xterm's default on purpose so coloured shell output stays legible on every theme.
|
|
1238
|
+
- **The `/terminal` WS must be proxied in `client/vite.config.ts` - and the smokes can't catch a regression (§K4).** XtermView connects to `ws(s)://${location.host}/terminal`; in the browser / over a 5173 tunnel that host is Vite, so the `configureServer` upgrade handler must forward `/terminal` upgrades to the Arco server exactly like `/ws`. K1 shipped proxying only `/ws`, so the in-app terminal and the K4 pop-out were both dead in an actual browser - undetected because `scripts/smoke/terminal*.ts` connect to `:3001` directly, bypassing Vite. K4 added `/terminal` to the handler (`wsPath === '/ws' || wsPath === '/terminal' || previewWfid`). It's collision-free: Vite's own HMR upgrade keys off the `vite-hmr` subprotocol, which a bare `new WebSocket('/terminal')` never sends. If you touch that upgrade handler, keep `/terminal` in it; there is no automated test guarding it (browser-only path).
|
|
1239
|
+
- **Remote-shell caveat (Tailscale).** When Arco is tunneled, `/terminal` is a remote shell on the target machine. This is intentional, but it is the highest-blast-radius surface Arco exposes. Keep the warning prominent. If a future remote-exposure toggle is added, gate the terminal behind explicit opt-in. Arco does not sandbox commands entered by the operator, as with any terminal.
|
|
1240
|
+
- **cwd never escapes the workflow root.** `ptyManager.spawn` runs `resolveWithinCwd(workflowRoot, requestedCwd)` on every spawn; an escape throws and NO shell is spawned (the `index.ts` handler errors back). The Files-tab "open terminal here" entry passes an absolute dir path that's already inside the root, but the guard is the backstop. Don't bypass it by passing a pre-resolved cwd straight to `pty.spawn`.
|
|
1241
|
+
- **Command-line capture is best-effort and client-side.** `XtermView` accumulates printable input and flushes on Enter (`\r`). It's a visibility log, not a shell parser - it doesn't expand aliases/history, handle heredocs, or know about `&&` pipelines. The *guarantee* is robust lifecycle logging (`terminal_opened`/`terminal_killed`); exact command capture is documented best-effort. Don't build server-side parsing of the raw stream to "improve" it - that re-introduces the chattiness the channel split exists to avoid.
|
|
1242
|
+
- **§K2 multi-listener: `attach` ADDS a listener, it no longer REPLACES.** K1's `PtySession.onData`/`onExit` was a single callback; a second attach silently stole the stream from the first window. §K2 widened this to a `Set<Listener>` so two windows can view one session and both render live output, and `proc.onData` fans out to all. `attach` returns a `dispose` that removes EXACTLY that listener; the channel calls it on socket close. Don't revert to a single callback or use `detach(sessionId)` (clears ALL) on a single-window close - closing one of two co-viewing windows would kill the other's stream. The smoke asserts two listeners on one session both receive, and that disposing one leaves the other live.
|
|
1243
|
+
- **§K2 session list comes from the LIVE `ptyManager`, not events.jsonl.** `terminal_opened` is only broadcast at spawn time and PTYs don't survive a server restart, so replaying the events.jsonl lifecycle history would list DEAD sessions. The switcher is populated by `terminal_list`→`terminal_sessions` (a live `ptyManager.infoForWorkflow` snapshot), and the server re-emits `terminal_sessions` on rehydrate (per-socket, in `rehydrateOneWorkflow`). Don't try to reconstruct the session list from replayed `terminal_opened`/`terminal_killed` events - it'll resurrect sessions that died with the last restart.
|
|
1244
|
+
- **§K2 PTY orphan reaping mirrors workers, with NO RSS auto-kill.** See `§ Worker safety` above for the full rule. Short version: `ptyPidRegistry.ts` + `reapOrphanTerminals()` (wired after `reapOrphanWorkers()` before `listen()`) reap shells leaked by a hard kill; a clean `kill`/exit/shutdown unregisters the pid so the next boot sweep won't SIGKILL a recycled pid. **Never RSS-auto-kill an operator shell** - it runs processes the operator started on purpose; that's the operator-in-control fence, distinct from the autonomous-worker RSS guard.
|
|
1245
|
+
- **§K4 pop-out is a query-param-on-root branch, NOT a new route/router.** There is no router in the client. `main.tsx` reads `?popoutTerminal=<sessionId>` and renders `<TerminalPopout/>` instead of `<App/>` (after `bootstrapCachedTheme()`). The query-param-on-root shape is deliberate: root `/` is always served `index.html` (Vite dev SPA fallback; the `^/.*` proxy bypass returns `req.url` for any non-preview request), so it can't collide with the `/terminal` **WS upgrade** path (an upgrade is not a GET; the fan-out matches the exact `/terminal` path post-query-strip), `/ws`, or `/api/*`. Don't "promote" this to a `/terminal/<id>` path segment - it would visually collide with the WS path and any future `/terminal` proxy rule, and Arco ships only as a Vite dev server (the :3001 server serves no client HTML), so there's no prod static handler to lean on. Don't add react-router for this.
|
|
1246
|
+
- **§K4 pop-out ATTACHES, never spawns - and offers no Kill.** `TerminalPopout` mounts `<XtermView sessionId={id}/>` only; it boots no app stores and no `/ws`. The `/terminal` `attach` needs only the sessionId (the session knows its workflowId server-side). The pop-out coexists with the in-app floating window viewing the same session (§K2 multi-listener fans output to both; typing in either drives the same shell) - popping out does NOT close the floating window, and that coexistence is the K4 acceptance point. Closing the pop-out fires `ws.on('close', detach)` → the per-socket `disposeListener` removes ONLY that socket's listener, leaving the floating window attached and the shell alive (the §K1/§K2 invariants, unchanged - K4 needed no server change). The pop-out has no KILL (it can't resolve the label without `/ws` either - it shows the 8-char id); Kill stays on windows that have the `/ws` control plane. K4 added no protocol/server surface, so it has no smoke of its own - acceptance is manual (open a pop-out, type in both windows, close the pop-out, confirm the shell survives); the existing `smoke:terminal` multi-listener step already covers the two-sockets-one-session mechanism it relies on.
|
|
1247
|
+
- **§K3 pre-fill MUST NOT submit a line - single OR multi-line.** The "Run in terminal" chat chip writes an agent-suggested command to the PTY input line via the `/terminal` channel's `prefill { data }` message; the handler calls `ptyManager.write(sessionId, wrapPrefillForPty(data))`. `wrapPrefillForPty` strips ANY trailing `\r`/`\n` (via `stripLineTerminator`) AND wraps the body in **bracketed-paste markers** (`\x1b[200~` … `\x1b[201~`). The wrap is load-bearing for **multi-line** blocks: `stripLineTerminator` only removes the *trailing* terminator, so a multi-line ```` ```bash ```` block (e.g. `npm install\nnpm test`) still carries an INTERIOR `\n` - written bare, the PTY line discipline executes the first line immediately, leaving the rest on the prompt. Bracketed paste makes a paste-aware shell hold the whole block on the edit line until the **operator** presses Enter - nothing executes without an operator keystroke. This is the operator-in-the-loop guarantee that makes K3 not "the agent runs a command". If you drop the bracketed-paste wrap, or append `\n`/`\r` on the prefill path (client or server), you've broken the fence and turned a suggestion into an auto-run. **Degradation caveat:** a shell with bracketed paste *disabled* shows the `\x1b[200~`/`\x1b[201~` markers as literal text rather than executing - strictly safer than the old bare-newline path, just cosmetically odd (matches a real paste into such a shell); modern shells (bash ≥4.4, zsh, fish) enable it by default. There is NO server path that submits a command line on its own. The "run immediately" toggle from the plan was deliberately not built. The smoke (`npm run smoke:terminal-prefill`) asserts the wrapped transform (single + multi-line) + spawns a real PTY to confirm neither a single-line command nor a multi-line block's first line executes until Enter.
|
|
1248
|
+
|
|
1249
|
+
## Worktree bake-offs
|
|
1250
|
+
|
|
1251
|
+
- **A bake-off is an implementation race, not COMPARE with write access.**
|
|
1252
|
+
COMPARE stays a read-only, no-tools answer primitive. BAKE-OFF creates
|
|
1253
|
+
ordinary visible workflow tabs and isolated linked worktrees from one exact
|
|
1254
|
+
source commit. Keep the surfaces and protocol domains distinct.
|
|
1255
|
+
- **The source must be project-clean at start and promotion, and its `HEAD`
|
|
1256
|
+
must still equal `baseRef`.** `.arco` state is intentionally ignored by
|
|
1257
|
+
the cleanliness check. Never weaken the exact-base guard into "merge whatever
|
|
1258
|
+
is current" - a stale candidate then stops being a fair/reproducible race.
|
|
1259
|
+
- **No model picks the winner.** Attempt agents may implement and report; only
|
|
1260
|
+
`bakeoff_promote`, sent by an explicit operator click, may merge. There is no
|
|
1261
|
+
automatic rank, merge, push, or cleanup path.
|
|
1262
|
+
- **`.arco` must never reach a candidate merge.** Candidate diffs exclude it;
|
|
1263
|
+
promotion stages normally then unstages `.arco`; and pre-existing attempt
|
|
1264
|
+
commits are scanned and refused if they contain `.arco` paths. This matters
|
|
1265
|
+
because each attempt is itself an Arco workflow and writes journals into
|
|
1266
|
+
its worktree.
|
|
1267
|
+
- **Force-removal is fenced twice.** `removeBakeoffAttempt` accepts only a path
|
|
1268
|
+
beneath `~/.arco/bakeoffs/<cwd-hash>/worktrees`, then checks git's registered
|
|
1269
|
+
worktree list. Cleanup removes the checkout, not its branch or manifest.
|
|
1270
|
+
- **Project trust inheritance requires proof, not the config field.**
|
|
1271
|
+
`managedWorktreeSourceCwd` is persisted so attempt tabs can reuse the source
|
|
1272
|
+
repo's DD7 decision, but `turnEngine` first proves the target is beneath the
|
|
1273
|
+
source's managed bake-off root and registered by git. Never trust the
|
|
1274
|
+
client-supplied source path on its own or write a duplicate trust decision
|
|
1275
|
+
for the generated worktree path.
|
|
1276
|
+
- **Disable fan-out multipliers on attempt tabs.** Attempt config forces
|
|
1277
|
+
Ultracode off and clears Goal Run; the bake-off's 2-5 legs are the entire
|
|
1278
|
+
operator-authorized budget. `workflow_created.backgroundCreated` also keeps a
|
|
1279
|
+
batch from stealing source-tab focus once per leg.
|
|
1280
|
+
|
|
1281
|
+
Smoke: `npm run smoke:bakeoff`.
|
|
1282
|
+
|
|
1283
|
+
## ARTIFACTS explorer (`?app=explorer`)
|
|
1284
|
+
|
|
1285
|
+
- **Every `/api/explorer/*` listing/scan endpoint is $HOME-jailed and fail-soft - always 200, never 5xx.** `server/src/http/explorerRoutes.ts` applies a post-resolution `realpath` check ($HOME jail, the same discipline as `/api/docs/source`) on every path it touches; `artifacts` / `docs` / `recents` / `changed` degrade to an empty collection (`[]`) on any error rather than throwing. `POST /api/explorer/open` also returns 200 `{ ok:false, code }` (`no-browser` / `spawn-failed`) on launch failure so the client can fall back. Don't add a path input that skips the realpath jail, and don't let a scan throw a 5xx - the window degrades to empty, never an error page.
|
|
1286
|
+
- **The window opens via a same-browser `window.open` popup first.** `client/src/explorer/launch.ts` `openArchive()` prefers a named popup because it inherits the workspace window display context and avoids guessing the primary display settings. If the popup is refused, fall back to `POST /api/explorer/open` and then a plain tab. Do not reorder the server-spawned window ahead of the popup.
|
|
1287
|
+
- **The window is a query-param-on-root branch, not a route.** `client/src/main.tsx` renders `<ExplorerApp/>` when `?app=explorer` (parallel to the terminal pop-out branch). Read-only, zero model authority.
|
|
1288
|
+
- **The recent-files ledger is advisory/best-effort - `appendRecord` swallows its own errors so it can NEVER break a broadcast.** `server/src/recentFilesLedger.ts` (`~/.arco/recent-files.jsonl`, append-only, compacted `MAX_LINES=1000` → `KEEP_LINES=500`) is fed fire-and-forget from the persisting broadcast chokepoints (`server/src/server/broadcast.ts`) and the manual `POST /api/files/write`. A ledger write failure is caught and dropped; don't `await` it into a broadcast path or let it reject a mutation.
|
|
1289
|
+
|
|
1290
|
+
## Backup / restore archive safety
|
|
1291
|
+
|
|
1292
|
+
- **The FORMAT eliminates dangerous archive ENTRIES; restore guards the TARGET tree.** `scripts/backup/archive.ts` can ONLY represent regular files (`{relPath, bytes}`) - there is nowhere on the wire to encode a symlink target, a hardlink, or a special-file type, and `readArchive` re-rejects an unsafe `relPath` (leading `/` or any `..` segment) on read. So a malicious/corrupt archive can't smuggle a symlink/device/fifo through. **Do not add symlink/hardlink/special-entry "support" to the format** - that re-introduces the exact dangerous-entry class the format exists to delete. Restore (`scripts/backup/restore.ts`) therefore defends the **target directory** and the **extraction act**, not the entries: traversal, target-tree symlinks, overwrite, and exhaustion.
|
|
1293
|
+
- **Restore is verify-FIRST and aborts the WHOLE run on any problem.** `planRestore` runs `verifyArchive` before anything else; on any problem it returns `aborted` and `applyRestore` writes NOTHING. There is no "restore the good parts of a bad archive" path - a tampered/truncated/incomplete archive never touches the fs. Don't add a `--skip-verify` flag.
|
|
1294
|
+
- **`applyRestore` lstat()s EVERY intermediate path component and refuses to descend a symlink.** The archive can't carry a symlink, but the **target** dir might already contain one (`linkdir -> /etc`), and writing `linkdir/x` would escape the root. Per planned file, walk each directory component under `targetRoot` with **`lstatSync`** (NOT `statSync` - we must SEE the symlink, not follow it); a symlinked (or non-directory) component → the entry is recorded `rejected` and skipped, never followed. Don't "optimize" this to a single `mkdir -p` + write: `mkdir` follows existing symlinks and the write would land outside the root.
|
|
1295
|
+
- **Never overwrite - writes use the `wx` flag (`O_CREAT | O_EXCL`).** A pre-existing target makes the write fail `EEXIST` → recorded as `skippedExisting`, never clobbered. This is why restore can't destroy an operator's local edits even if pointed at a populated dir. Don't switch to `writeFile` default flag or a `force`/overwrite mode without re-deriving this fence - the smoke asserts original bytes survive.
|
|
1296
|
+
- **A cap breach aborts the WHOLE run (no partial extraction).** `MAX_FILES` (50 000) / `MAX_TOTAL_BYTES` (2 GiB) are checked in `planRestore` against the declared entry set; exceeding either returns `aborted` so `applyRestore` writes nothing. The point is to bound a maliciously-inflated manifest BEFORE any bytes hit disk - keep the cap check in the pure plan, not mid-write.
|
|
1297
|
+
- **Restore NEVER writes into the live `~/.arco` by default.** `--into <DIR>` is required and must NOT already exist (a fresh dir can't merge into a live tree). The CLI refuses a target that is or is inside the live Arco home (`ARCO_HOME`/`~/.arco`) unless `--force-into-live` is given. `planRestore`/`applyRestore` are home-agnostic (operate only on the `targetRoot` handed in); the live-home refusal lives in the CLI (`doRestore`), which is the only layer that knows the home. Any rejection surfaces as a non-zero exit so a scripting operator notices a partial result. Smoke: `npm run smoke:backup-restore`.
|
|
1298
|
+
|
|
1299
|
+
## Genesis
|
|
1300
|
+
|
|
1301
|
+
- **A from-nothing genesis workflow is NOT cwd-less at runtime - it runs in a scratch dir.** The turn engine hard-guards on a working directory (`turnEngine.ts` - "Workflow has no working directory configured"), so `handleCreateWorkflow` assigns `~/.arco/genesis/<wfid>` (`genesisScratchDir`) when `config.genesisSeed && !config.workingDirectory`. "No cwd" is a UI/product framing; on disk there's always a real cwd. Don't try to relax the turn guard for genesis - the scratch dir is the sanctioned answer.
|
|
1302
|
+
- **The genesis system block injects while in the scratch dir OR while Creative mode is armed.** `turnEngine.ts` gates `buildGenesisSystemBlock` on `inGenesisScratch || inGenesisCreative` - `inGenesisScratch = genesisSeed && /[\\/]\.arco[\\/]genesis[\\/]/.test(cwd)` (from-nothing) and `inGenesisCreative = genesisSeed.creative === true` (in-workflow). A from-nothing genesis stops injecting after scaffold (cwd becomes real, `creative` unset); a Creative-mode workflow keeps injecting until disarmed. **Don't gate on `genesisSeed` alone** (it's mirrored into meta after a from-nothing scaffold, so it stays set - you'd inject forever on a real project that isn't in Creative mode).
|
|
1303
|
+
- **Scaffold = move-the-store rebind; seq + transcript continuity depend on the exact order.** `handleGenesisScaffold` MUST: `flushWorkflowBuffer(scratch)` → move `.arco/workflows/<wfid>` scratch→real (rename, EXDEV-fallback to cp+rm) → `forgetWorkflowBuffer(scratch)` → `initWorkflowStore(real)` (which recovers the seq from the MOVED `events.jsonl` tail). Re-init AFTER the move, not before, or the seq resets to 0 and the client sees a gap. Guard on `!wf.busy` so no turn is writing the events file mid-move. Smoke: `npm run smoke:genesis-rebind`.
|
|
1304
|
+
- **From-nothing scaffold reuses the current workflow tab, then renames it.** It does NOT spawn a new tab by default; it rebinds the existing scratch workflow to the real project cwd and broadcasts `workflow_renamed` with the final seed title. Otherwise the tab keeps the throwaway Genesis working name even though files/cwd are correct.
|
|
1305
|
+
- **The scaffold writer is the security boundary (Appendix D).** `writeScaffold` rejects absolute / `..` / backslash / NUL / hidden-dotfile paths except the deterministic root `.gitignore`, refuses to write through a **symlinked ancestor** (lstat the chain), never overwrites (`wx` flag), and caps the file count. Seed docs are generated deterministically from the seed - **no model proposes paths**. Don't reroute scaffold writes through `writeFileWithinCwd` (it allows overwrite + doesn't reject symlink ancestors). Smoke: `npm run smoke:genesis-scaffold`.
|
|
1306
|
+
- **Genesis `.gitignore` must protect local workflow/agent state before git init.** From-nothing scaffold moves `.arco/workflows/<wfid>` into the project before `git init`, so `buildSeedDocs` must generate a root `.gitignore` that excludes `.arco/` and local agent notes (`AGENTS.md`, `CLAUDE.md`) before `git add -A` runs. Public-facing project brief belongs in README/SPEC/TODO; local agent notes stay untracked. Smoke: `npm run smoke:genesis-scaffold`.
|
|
1307
|
+
- **Genesis field assist is proposal-only.** `genesis_assist_request` may call the workflow's current primary agent, but it must run as a read-only, tool-less worker and emit only `genesis_assist_started` / `genesis_assist_proposed`. It must NOT mutate `wf.config.genesisSeed`, write files, generate scaffold paths, or bypass the normal `genesis_seed_update` apply path. Smoke: `npm run smoke:genesis-assist`.
|
|
1308
|
+
- **Genesis name history lives on the seed, not transient UI.** Working-name assists can return `options[]`, but shortlisted/rejected names must persist through `GenesisSeed.nameWorkbench` via `genesis_seed_update`; otherwise a refresh/restart makes the model loop through rejected names again. Smoke: `npm run smoke:genesis-assist`.
|
|
1309
|
+
- **The seed's durable home while cwd-less is `WorkflowConfig.genesisSeed`, not meta.json.** Before scaffold there's a scratch meta.json, but the authoritative copy rides the client-persisted config (re-sent on `rehydrate_workflows`). After scaffold it's mirrored into `meta.json`. The `genesis_seed_update` handler writes both (config always; meta only if a cwd exists).
|
|
1310
|
+
- **Creative-mode scaffold NEVER touches the existing project.** `handleGenesisScaffold` branches on `seed.creative` to `handleCreativeScaffold`, which writes into a sibling `<cwd>/ALTERNATIVE/<slug>/` dir and seeds a **separate** plan (fresh id). It must NOT move the store, NOT rebind the cwd, NOT `git init` (it's inside the existing repo), and NOT set `wf.planId` (the existing active plan stays the workflow's plan; the alternative is attached so it's discoverable, not imposed). Confinement to `ALTERNATIVE/` + the writer's no-overwrite guard are the safety boundary. Don't reuse the from-nothing move/rebind path here.
|
|
1311
|
+
- **Creative-mode arm reads are deterministic and model-free.** `gatherProjectContext` / `assessCodebase` (`server/src/genesis/creative.ts`) only read disk (`package.json`, `README.md`, `git ls-files`, a capped walk) - never a model, never a write. The walk skips `.git`/`node_modules`/build dirs and caps at 400 so a giant tree can't stall arming. `assessCodebase`'s `established`/warning is **advisory** - it gates nothing. `gatherProjectContext`'s output rides `seed.projectContext` and is injected *before* the seed so the model anchors to it; the grounding rule forbids inventing past it. Smoke: `npm run smoke:genesis-scaffold` (creative section).
|
|
1312
|
+
|
|
1313
|
+
|
|
1314
|
+
## Hands-free voice
|
|
1315
|
+
|
|
1316
|
+
- **Do not enable browser microphone AGC.** Both production capture and the
|
|
1317
|
+
standalone microphone preview request `autoGainControl:false`: browser AGC
|
|
1318
|
+
can lower the system input gain without the operator noticing. Retain
|
|
1319
|
+
echo cancellation and noise suppression. New constraints apply on mic start.
|
|
1320
|
+
- **Speech endpointing is only transcription scheduling.** Use 350 ms silence
|
|
1321
|
+
segments while retaining the two-minute command buffer and explicit closing
|
|
1322
|
+
phrase. Parakeet v3 INT8 is the preferred CPU recognizer on Linux; retain
|
|
1323
|
+
Moonshine on Windows (known empty Parakeet finals there). Prepare both ASR
|
|
1324
|
+
and TTS before listening; no speech model stays alive after session deletion.
|
|
1325
|
+
Recognition failure discards the pending command rather than allowing a
|
|
1326
|
+
later End capture to submit the incomplete remainder. Timing diagnostics
|
|
1327
|
+
stay in the non-persisted voice store.
|
|
1328
|
+
- **Project updates are one bounded operator request.** Resolve the named
|
|
1329
|
+
workflow or one unique cluster director; preserve drafts/attachments and
|
|
1330
|
+
send through normal chat as follow-up. Never guess a director. Only an idle
|
|
1331
|
+
recipient gets one new-answer readback subscription, cancelled on off,
|
|
1332
|
+
mode/selection change or the next command. Never read an older busy turn
|
|
1333
|
+
as the requested status. This adds no new worker/orchestration authority.
|
|
1334
|
+
- **Fast wake is provisional; full transcription authorizes capture.** Streaming
|
|
1335
|
+
local Vosk phrase detection can play the acknowledgement/show capture before the
|
|
1336
|
+
silence endpoint. It cannot invoke Luna or execute a command. Keep the full
|
|
1337
|
+
overlapping PCM segment, validate Computer as its first whole word, and retain
|
|
1338
|
+
immediate follow-on words. "First whole word" is tolerant, not literal
|
|
1339
|
+
(`repairWakeWord`: wake-word matching tolerates common recognition
|
|
1340
|
+
substitutions while requiring the wake word as the first whole word; tests
|
|
1341
|
+
cover both retries and false wakes): a first token one edit from "computer" (s ignored -
|
|
1342
|
+
Computers, Commuter, Computed) wakes alone; with the phrase grammar or the
|
|
1343
|
+
fast wake agreeing, up to three edits or two fused tokens ("Come here").
|
|
1344
|
+
Never loosen it to a prepend: "Hey Computer …" and an unrecognizable first
|
|
1345
|
+
word must still fail, or a speculative fast wake could authorize an
|
|
1346
|
+
utterance whose first word was something else (the runtime test pins it).
|
|
1347
|
+
Reject later/prefixed mentions, canceled/late candidates and responses after
|
|
1348
|
+
disable. The fast-wake partial is HELD until 0.6 s of speech has been heard
|
|
1349
|
+
(`recognizer.py`): the forced grammar turned "Can you..." into a
|
|
1350
|
+
partial "computer" 250 ms in and chimed; "Can you bring up the plan" now
|
|
1351
|
+
stays silent in `scripts/voice/check-phrases.py` while "Computer" still
|
|
1352
|
+
chimes as the word ends in that synthetic check - but live it still fired on
|
|
1353
|
+
"Thank you", so **the chime no longer plays on the fast wake at all**: it
|
|
1354
|
+
plays when the full transcript verifies Computer as the first word
|
|
1355
|
+
(`receive`, `input.started`). The fast wake only shows the early capture
|
|
1356
|
+
so follow-on speech is kept. Never move the chime back to the grammar.
|
|
1357
|
+
- **Computer does the literal thing; dialogs open, they don't act.** "Bring
|
|
1358
|
+
up the nudge dialog" once sent a nudge because the only nudge-shaped tool
|
|
1359
|
+
sent one. `arco_open_dialog` opens a picker via `voice/dialogs.ts` (a
|
|
1360
|
+
synchronous DOM event the owning ClusterTab / TerminalInput answers) and
|
|
1361
|
+
reports "not available" when nothing answered; `arco_nudge` sends. Keep
|
|
1362
|
+
the prompt's open-means-open rule and never let a tool description invite
|
|
1363
|
+
the model to substitute a nearby action.
|
|
1364
|
+
- **`arco_screen` / `arco_act` are the long tail, not a shortcut.** They
|
|
1365
|
+
drive the real DOM (`.click()`, native value setter + input/change,
|
|
1366
|
+
KeyboardEvent on the focused element or document), so a control is only
|
|
1367
|
+
reachable if it is visible and has a name: aria-label, label, text, help
|
|
1368
|
+
title or title. New icon-only buttons need a `data-help` key (with a title)
|
|
1369
|
+
or an aria-label or Computer cannot see them. Dialogs must keep
|
|
1370
|
+
`role="dialog"` + `aria-label` (or a heading) - that is how the listing
|
|
1371
|
+
groups them and how act reports "Dialog X closed". Destructive labels
|
|
1372
|
+
(`DANGER` in screen.ts) refuse without `confirm`; keep dialog Cancel/Close
|
|
1373
|
+
off that list. The numbered snapshot is only valid until the next
|
|
1374
|
+
`arco_screen`; stale numbers are rejected rather than clicking whatever
|
|
1375
|
+
moved into the slot. A manual End during verification
|
|
1376
|
+
waits for that verification; Cancel prevents late rearming. Wake failure
|
|
1377
|
+
leaves full recognition available. Never restart wake scanning mid-utterance.
|
|
1378
|
+
- **Reserved-phrase repairs need independent final acoustic agreement.** Keep
|
|
1379
|
+
raw general transcription separate from the constrained grammar. Repair a
|
|
1380
|
+
hallucinated A/The Computer prefix only at a new capture, and And capture
|
|
1381
|
+
only as a verified terminal closing phrase in a command. Ordinary dictation
|
|
1382
|
+
and later Computer stay literal. Show raw → corrected diagnostics in memory;
|
|
1383
|
+
no control history is created. Never replace/drop the directive body just
|
|
1384
|
+
because the phrase grammar only recognized Computer.
|
|
1385
|
+
- **Voice status reserves layout space.** The compact row is beneath the tabs;
|
|
1386
|
+
details expand inside it and collapse after enabling. No fixed/absolute
|
|
1387
|
+
overlay over workflow content. Disable and capture controls stay reachable
|
|
1388
|
+
while collapsed; ambiguity choices must remain visible.
|
|
1389
|
+
- **Computer is the required first word for commands.** Use the shared client
|
|
1390
|
+
`voiceCommandBody` gate before deterministic parsing or Luna interpretation,
|
|
1391
|
+
also in the standalone recognition test. No legacy Arco trigger or "hey"
|
|
1392
|
+
preamble. Computer alone arms an empty directive. Unprefixed speech continues
|
|
1393
|
+
an armed capture or explicit dictation; otherwise it is ignored.
|
|
1394
|
+
- **Pause is never a command terminator.** `VoiceCommandBuffer` accumulates
|
|
1395
|
+
segments until the exact "End capture" directive. No parsing, model
|
|
1396
|
+
call, or action before submission. No timer executes a command. Pending text
|
|
1397
|
+
stays visible and memory-only; cancel/disable discard it. Bind selection at
|
|
1398
|
+
command start and reject changes before spending quota/executing. Quiet/off
|
|
1399
|
+
are the immediate controls; playback cannot arm/append/commit commands.
|
|
1400
|
+
End capture and Cancel capture are whole reserved closing phrases, including
|
|
1401
|
+
across ASR segments. A two-minute idle expiry discards the buffer without
|
|
1402
|
+
action; each recognized segment renews it. Wake acknowledgement uses a short
|
|
1403
|
+
local chime without blocking the next spoken directive behind TTS playback.
|
|
1404
|
+
- **OFF owns no microphone or recognition work.** Voice never auto-arms on
|
|
1405
|
+
mount/reload. Stop tracks, close audio, abort fetches, delete the server lease
|
|
1406
|
+
and invalidate the epoch before accepting any more callbacks. Late permission
|
|
1407
|
+
grants must stop their newly returned tracks; late transcripts/model/speech
|
|
1408
|
+
responses must not execute. Disconnect/pagehide also disarm.
|
|
1409
|
+
- **Voice control history is deliberately absent.** Audio, utterances, rosters,
|
|
1410
|
+
model responses and usage stay in memory. No voice audit event, transcript,
|
|
1411
|
+
console tee or persistence cwd. Only ordinary effects use existing history.
|
|
1412
|
+
Incognito names/content never enter Luna; direct/local commands remain usable.
|
|
1413
|
+
- **Recipient pinning and explicit send are load-bearing.** Silence only ends an
|
|
1414
|
+
audio segment. Drafts stay on the original workflow across navigation. Reject
|
|
1415
|
+
a command if selection changed while it was recognized/interpreted. Ambiguity
|
|
1416
|
+
requires a numbered choice; removed recipients/disconnect/compaction preserve
|
|
1417
|
+
the draft. Playback-captured audio can only quiet or disable, never send -
|
|
1418
|
+
unless it starts with the name: "Computer …" heard during playback cuts
|
|
1419
|
+
the speech and is an ordinary directive (barge-in).
|
|
1420
|
+
- **Barge-in holds speech, it does not kill it.** `receiveWake` during
|
|
1421
|
+
playback calls `holdSpeech()` (the fast wake is only the phrase grammar's
|
|
1422
|
+
guess); the verified transcript ends playback via `quiet()`, an unverified
|
|
1423
|
+
one (`wake-unverified`), a discarded utterance or the wake expiry calls
|
|
1424
|
+
`releaseSpeech()` / `quiet()`. Never drop the `speech.held` replay path: a
|
|
1425
|
+
false fast wake would otherwise silently swallow the rest of an answer.
|
|
1426
|
+
`speakingItsOwnName()` ignores a wake while the sentence being spoken
|
|
1427
|
+
contains "Computer" - keep it; the manual's voice section says the word in
|
|
1428
|
+
most sentences and echo cancellation is not perfect. "stop" / "quiet" are
|
|
1429
|
+
closings ONLY for an empty capture (`STANDALONE_STOP`); inside a directive
|
|
1430
|
+
they are literal text.
|
|
1431
|
+
- **Luna is a discrete subscription helper, not a standing director.** Direct
|
|
1432
|
+
commands/dictation bypass it. Fresh ephemeral Codex turns use low effort,
|
|
1433
|
+
fixed instruction/schema files, no project docs/user config/rules/MCP, disabled
|
|
1434
|
+
shell/agent/web/app features, read-only scratch cwd, timeout/output limits and
|
|
1435
|
+
no retries. Keep `OPENAI_API_KEY` out of the child environment. Token receipts
|
|
1436
|
+
are live-only, not a claimed percentage of subscription quota.
|
|
1437
|
+
- **Local speech processes are leased to an enabled window.** Heartbeat every
|
|
1438
|
+
15s, expiry at 45s, at most two windows. Delete aborts interpretation and kills
|
|
1439
|
+
recognition/output processes; Linux speech children also set parent-death
|
|
1440
|
+
signalling. Setup installs assets only and never starts microphone capture.
|
|
1441
|
+
|
|
1442
|
+
- **A tab on a stale bundle answers "Unknown tool." to every tool it predates** (Computer reports the screen tool error instead of closing the window). Prod serves `client/dist` from disk, so every `npm run build` swaps the bundle under open tabs silently. `client/src/buildCheck.ts` re-fetches `index.html` on every WebSocket open and raises the yellow RELOAD banner (`StaleBuildBanner`) when the hashed bundle differs; the executor's unknown-tool error now says the page needs a reload. Keep both: the banner is the only signal an operator gets, and Computer relays the error text verbatim. Every `/api/voice/tool` call and its answer is logged as `[voice tool] name args → ok|ERROR ms` so the next one is diagnosable from the journal.
|
|
1443
|
+
- **A question *about* a project is answered by Computer; a question *to* a worker is typed to it.** Computer distinguishes questions about Arco from messages intended for a worker. The prompt's third case (CONVERSATION) routes: how Arco works → manual (`arco_open manual` + `arco_read_text` filter); project/member state → `arco_read_recent` / `arco_status` on the project or its Director; on-screen → `arco_read_text`; otherwise just answer. Only an utterance that addresses the worker ("ask the director...") becomes `arco_send_message`. The smoke's status-question steps pin this. Memory is the Codex thread itself (one persistent chat, resumed every turn); the prompt tells Computer to use it for follow-ups and to drop context on a subject change.
|
|
1444
|
+
- **Dictation is a prompt rule, not a client keyword.** "dictate" / "verbatim" / "word for word" / "exactly this" make the rest of the utterance (or, after "I want to dictate a message to X" → "Go ahead.", the whole next utterance) go to the worker character for character; otherwise messages are typed in the operator's words and intent. The smoke asserts byte equality on two dictations with fillers and a stutter. Don't add a client-side "dictate" parser - that would be exact matching, and Luna already keeps the text intact at low effort.
|
|
1445
|
+
- **`arco_read_text` is Computer's eyes for words; `arco_screen` is for controls.** `arco_read_text` returns visible manual text by heading or relevant passage; without it Computer can open a manual entry but cannot read it aloud. `readText` returns the open dialog's text (topmost = last in DOM order), or one section by heading match (`section`/`article`/`details`/... ancestor of a matching `h1-h6`), else passages mentioning the word, capped at 12 000 chars. Real browsers use `innerText`; jsdom gets a block-aware walker. The prompt says reading aloud is the one case where a long reply is right.
|
|
1446
|
+
- **Role-less modals are dialogs too.** Most Arco modals are a `position: fixed; inset: 0` backdrop with no `role="dialog"` (DOCS, GIT, SPAWN, REVIEW, HANDOFF, SYSTEM, the nudge picker). `screen.ts` treats any fixed ancestor covering ≥80 % of the viewport that takes pointer events and holds a control as a dialog, named by its aria-label, heading, or first short text run; the phosphor backdrops are `pointer-events: none` and never qualify. Don't add a per-dialog list. The nudge picker also got `role="dialog" aria-label="Nudge - pick recipients"`.
|
|
1447
|
+
- **Labels exclude nested controls and join text nodes with spaces.** A tab wrapper is "RELAY", not "RELAY×"; a member row is "Builder BUILDER BUSY", not "BuilderBUILDERBUSY". When several controls match exactly and one contains the others, the innermost wins (the name button inside the tab wrapper); `kind + label` ("button SEND") also counts as an exact match.
|
|
1448
|
+
|
|
1449
|
+
|
|
1450
|
+
## Hands-free Computer voice operator
|
|
1451
|
+
|
|
1452
|
+
- **Resolve conversational scope before testing ambiguity.** The roster line
|
|
1453
|
+
describes the UI, not a replacement for the retained conversation. Explicit
|
|
1454
|
+
current targets win, then clear references in recent questions/answers/tool
|
|
1455
|
+
results, then the selected cluster when no topic exists. A Relay mail
|
|
1456
|
+
answer naming its unique builder establishes "the builder" for a nudge even
|
|
1457
|
+
if Comet is selected. Two builders inside the relevant cluster still require
|
|
1458
|
+
a scoped question; never choose by mail count/activity/list order. Do not
|
|
1459
|
+
restore the old global-roster-count rule or require a previous send before
|
|
1460
|
+
conversational references count. Keep this in the shared model prompt, not
|
|
1461
|
+
client phrase/name heuristics. `smoke:voice-luna` exercises the real Luna LOW
|
|
1462
|
+
over multiple turns with actual target resolution and canned worker actions.
|
|
1463
|
+
|
|
1464
|
+
- **Completion watches bind IDs AND busy generations.** Only release of the
|
|
1465
|
+
owning user-turn drain claim reports finished, after queued messages. Never
|
|
1466
|
+
use provider `primary_turn_ended`, selection changes, matching display names
|
|
1467
|
+
or model judgments. Other busy releases default to interrupted. STOP/removal
|
|
1468
|
+
revokes the claim before a resend can replace it. Saved watches become
|
|
1469
|
+
interrupted on restart; private watches never persist or enter notification
|
|
1470
|
+
transports and are discarded on private clear/removal. No polling AI or
|
|
1471
|
+
worker prompts. Announcement claims deduplicate across windows; microphone
|
|
1472
|
+
and category mute still gate speech. Unit state-machine + real fake-provider
|
|
1473
|
+
HTTP lifecycle coverage: `test:voice`, `smoke:computer-tools`.
|
|
1474
|
+
- **Quota is separate from tokens and throttling.** `arco_usage` preserves
|
|
1475
|
+
source/fetchedAt/unavailable state. Only explicit used/remaining percentages
|
|
1476
|
+
yield a numeric quota value. Never leak Codex profile paths/raw account text.
|
|
1477
|
+
- **Voice sensitivity changes the worklet gate, not ASR text.** Preserve the
|
|
1478
|
+
adaptive room floor. A Vosk "over" must not overrule a longer full transcript
|
|
1479
|
+
such as "over it"; that can be legitimate dictation. Use diagnostics to
|
|
1480
|
+
distinguish an unheard quiet word from a wrong transcript.
|
|
1481
|
+
|
|
1482
|
+
|
|
1483
|
+
- **Tool strings must contain well-formed Unicode.** `String.slice` can leave
|
|
1484
|
+
half an emoji at a label/result cap. JS JSON accepts an escaped lone surrogate;
|
|
1485
|
+
Codex's Rust MCP path can then wait 300 seconds for a result already returned by
|
|
1486
|
+
Arco. Use shared `voiceText` for screen text and
|
|
1487
|
+
central relay result/error caps. Test with a deliberately malformed label,
|
|
1488
|
+
not just large ASCII. The real Luna smoke includes one on every screen read.
|
|
1489
|
+
- **Computer liveness measures useful progress, not process activity.** The
|
|
1490
|
+
Codex voice-only watchdog ignores token/CPU ticks and repeated code-mode
|
|
1491
|
+
waits. It fences late tools before disposing, retires the process before any
|
|
1492
|
+
new resume, surfaces a spoken error, and never retries actions. Timeout
|
|
1493
|
+
cancellation removes queued optimistic rows too. A private thread lost with
|
|
1494
|
+
the worker must clear memory/browser context visibly; saved threads resume.
|
|
1495
|
+
Do not extend this to coding agents or local model loads by accident.
|
|
1496
|
+
- **The capture acknowledgement is intentionally quiet.** Use the bundled
|
|
1497
|
+
230 ms Soft double pulse at its authored peak 0.065, with unity playback.
|
|
1498
|
+
Never normalize it toward the old TNG alert level. Include `capture-ready.wav`
|
|
1499
|
+
in the server build. A fast grammar wake stays silent; verified Computer
|
|
1500
|
+
plays the cue once, without awaiting completion before accepting more speech.
|
|
1501
|
+
- **Computer switches wait for the SERVER clean boundary.** Provider
|
|
1502
|
+
`primary_turn_ended` is emitted before the queue drains and the server busy
|
|
1503
|
+
claim releases. Client `computerTurnActive` stays set until transient
|
|
1504
|
+
`computer_context_updated {settled:true}`; reconnect snapshots rebase it.
|
|
1505
|
+
Do not switch on a per-provider end or an empty queue update alone.
|
|
1506
|
+
- **Computer no-history is strict Incognito, not hidden saved history.** Use a
|
|
1507
|
+
separate private workflow; never toggle an existing saved workflow in place
|
|
1508
|
+
or copy its messages. Clear also discards memory events + browser messages;
|
|
1509
|
+
leaving removes the private workflow. Only non-content preferences persist.
|
|
1510
|
+
Voice requests carry a capture-bound private header; suppress recognition,
|
|
1511
|
+
diagnostics and tool-relay logs. Drop late recognition across selection
|
|
1512
|
+
boundaries. Only Computer gets narrow private `voice_tool_result` and
|
|
1513
|
+
`computer_context_control` protocol exceptions. Strata stays saved-only.
|
|
1514
|
+
- **Local Computer history must include actual tool calls/results.** Text-only
|
|
1515
|
+
USER/AGENT replay teaches Qwen that a bare Done executes an instruction.
|
|
1516
|
+
`voice/history.ts` retains structured assistant tool calls and matching tool
|
|
1517
|
+
results; replay only completed turns since the last full reset. No heuristic
|
|
1518
|
+
tool subsetting, phrase routing or automatic compaction in Computer's local
|
|
1519
|
+
path. Native/Codex paths retain the same bounded tools and no project access.
|
|
1520
|
+
Private Codex keeps live token receipts in memory: there is no rollout to
|
|
1521
|
+
read for context fullness. Never silently downgrade its ephemeral handshake.
|
|
1522
|
+
- **Reply voice is independent of microphone/conversation state.** Persist only
|
|
1523
|
+
the validated output ID, never enabled/capture state. A change applies to the
|
|
1524
|
+
next reply; freeze one ID for every chunk/prefetch of the current reply.
|
|
1525
|
+
Retain the session/recognizer/waker when rotating only its speech worker.
|
|
1526
|
+
An old cancelled request may demote only its own worker, never a replacement.
|
|
1527
|
+
Off-mic previews create no lease or recognizer and stop before enabling;
|
|
1528
|
+
live previews use runtime playback so echo/barge-in guards remain intact.
|
|
1529
|
+
Test: `npm run test:voice`; browser: `npm run smoke:computer-panel`.
|
|
1530
|
+
- **Computer fresh-context thresholds run only after the FULL turn/queue drain.**
|
|
1531
|
+
Default 50% subscription / 75% local of the provider-reported/configured window; KEEP CONTEXT/OFF pause automatic
|
|
1532
|
+
resets. Never use model output, topic heuristics or a timer to decide that
|
|
1533
|
+
work is done. A manual busy request is persisted as `pendingFresh`. Retire the
|
|
1534
|
+
idle app-server and persist the archive + cleared active CLI ledger before
|
|
1535
|
+
announcing the boundary; otherwise a restart can silently resume old context.
|
|
1536
|
+
`computerResetting` must keep new prompts queued even if STOP revokes busy
|
|
1537
|
+
during the disk write. The transcript/lifetime usage stay; only model context
|
|
1538
|
+
is reset. `smoke:computer-context` pins queue continuity and restart behavior.
|
|
1539
|
+
- **`voice_tool_call` is sent straight to the chat's sockets, never through
|
|
1540
|
+
`broadcastWorkflow`.** A persisted call would be replayed on reconnect and
|
|
1541
|
+
could re-run an action. The model's own tool-use item in the Computer chat
|
|
1542
|
+
transcript is the durable record; the relay is ephemeral (`operatorTools.ts`).
|
|
1543
|
+
- **Only the window that opened the Computer chat answers, and only while
|
|
1544
|
+
hands-free is enabled** (`toolBridge.ts`). Other observers ignore the call;
|
|
1545
|
+
an unanswered call times out after 20 s so the model gets an error, not a
|
|
1546
|
+
hang. A call arriving after DISABLE is refused (browser smoke pins this).
|
|
1547
|
+
- **Computer has a header panel, never a project tab.** `voiceOperator` jobs
|
|
1548
|
+
stay in the store and persistence for their history/relay, but creation
|
|
1549
|
+
must preserve the workbench selection, and TabBar / tab search / PAST CHATS
|
|
1550
|
+
exclude them by flag, never name. `setActiveJob` routes history links to
|
|
1551
|
+
`ComputerPanel` without changing the tool target; hydration migrates old
|
|
1552
|
+
active Computer tabs back to the workbench and keeps their saved thread.
|
|
1553
|
+
Opening/closing the panel must never enable/disable voice or send a turn.
|
|
1554
|
+
- **The arco-voice MCP child does not import `@arco/shared`.** It is
|
|
1555
|
+
spawned without `--conditions development`, so a shared import would resolve
|
|
1556
|
+
to a possibly stale `shared/dist`. Constants are mirrored literally.
|
|
1557
|
+
- **`/api/voice/tool` is cookie-exempt but loopback-only**, like the cluster
|
|
1558
|
+
peer routes; it also requires the target workflow to be a `kind:'chat'` with
|
|
1559
|
+
`voiceOperator:true`.
|
|
1560
|
+
- **Edge TTS is one failure away from Kokoro.** `session.edgeSpeaker` is set to
|
|
1561
|
+
null on the first error and the WAV path takes over without a client change;
|
|
1562
|
+
the client decodes MP3 and WAV alike. `X-Voice-Engine` says which spoke.
|
|
1563
|
+
- **Capture cancellation is not script cancellation.** Standalone cancel/
|
|
1564
|
+
belay that or Cancel capture discards only the browser's unsent capture,
|
|
1565
|
+
without a model call. Fillers such as "oh cancel" can reach the model as
|
|
1566
|
+
ordinary text; the operator prompt requires clarification, not cancelling
|
|
1567
|
+
a recently discussed script/watch/worker. Specific "cancel that script"
|
|
1568
|
+
remains an ordinary authorized action. Keep this semantic distinction in
|
|
1569
|
+
the prompt; do not add fuzzy cancellation routing in the client.
|
|
1570
|
+
- **There is no deterministic command parser.** Every captured directive goes
|
|
1571
|
+
to Computer (`runtime.ts`); only microphone controls in `immediateVoiceControl`
|
|
1572
|
+
are handled instantly. Keep new Computer actions tool-driven instead of adding
|
|
1573
|
+
a brittle phrase-specific parser.
|
|
1574
|
+
- **The arco-voice entry must carry `default_tools_approval_mode="approve"`.**
|
|
1575
|
+
Codex 0.163 refuses every MCP call in a chat-mode thread (approvalPolicy
|
|
1576
|
+
'never', read-only profile) with "MCP tool call requires approval, but
|
|
1577
|
+
approval policy is never"; the model then reports it "can't see" the
|
|
1578
|
+
project. Agent-tab MCP children (arco-cluster) are not affected.
|
|
1579
|
+
`npm run smoke:voice-luna` (opt-in, spends Codex quota) boots an isolated
|
|
1580
|
+
server against the real Luna and pins tool selection for four utterances.
|
|
1581
|
+
- **The generic Chat preamble is skipped for the Computer chat** (`turnEngine.ts`,
|
|
1582
|
+
`wf.config.voiceOperator`). Folded, its "do not use backend tools… continue
|
|
1583
|
+
in an Agent tab" made Luna refuse the arco-voice tools even with the
|
|
1584
|
+
operator prompt as base instructions.
|
|
1585
|
+
- **A bare `Done.` from Computer is swallowed, not spoken** (`COMPUTER_SILENT`,
|
|
1586
|
+
`conversation.ts`). The prompt asks for exactly that after acting; the
|
|
1587
|
+
operator reads the result in Arco. Do not "improve" the prompt into
|
|
1588
|
+
confirming what it did: Computer can return a silent completion marker after an action, and the result remains available in Arco.
|
|
1589
|
+
- **Computer names the selection the way the operator did.** Luna passes
|
|
1590
|
+
`target:"this project"`, `"it"`, `"the current tab"`; `resolveVoiceTarget`
|
|
1591
|
+
maps all of those to the selection. Keep that list in step with the prompt.
|
|
1592
|
+
|
|
1593
|
+
- **Computer request status must not depend on speech playback.** A settled
|
|
1594
|
+
clarification can wait behind capture or have spoken feedback disabled.
|
|
1595
|
+
`ComputerConversation` clears working status when the reply settles, and
|
|
1596
|
+
`computerVoiceStatus` repairs an old working label when the selected Computer
|
|
1597
|
+
is idle. Panel/strip Stop buttons share `computerRequestActive`, including
|
|
1598
|
+
queue and `computerTurnActive`; provider end alone is not full settlement.
|
|
1599
|
+
- **Typed Computer requests work with the microphone off.** A deliberate send
|
|
1600
|
+
scopes `toolBridge.allowComputerTextTools` to that exact Computer until full
|
|
1601
|
+
settlement. STOP, disconnect and owner changes revoke it. Panel visibility
|
|
1602
|
+
alone is never a tool grant. Drafts use memory-only `draftStore`, including
|
|
1603
|
+
private Computer. Do not enable the mic or broaden project tools for typing.
|
|
1604
|
+
|
|
1605
|
+
### Computer conditional mailbox rules
|
|
1606
|
+
|
|
1607
|
+
- `arco_mail_rule` is operator-armed deterministic mailbox automation, not a
|
|
1608
|
+
model polling or judging completion. Resolve exact IDs in the shared prompt;
|
|
1609
|
+
no voice phrase/name heuristics. One-shot nudges/watches keep their semantics.
|
|
1610
|
+
- All non-final pinned members must be idle with empty mailboxes and queues;
|
|
1611
|
+
final recipient idle WITH mail. Membership/AUTO-PICKUP changes stop the rule.
|
|
1612
|
+
Never silently toggle AUTO-PICKUP, auto-drain mail or interrupt a busy worker.
|
|
1613
|
+
- Check strict mailbox IDs under `clusterMailboxRoot`'s existing lock through
|
|
1614
|
+
the actual turn busy claim, after async turn preflight. Conditional nudges
|
|
1615
|
+
never enter the ordinary busy queue. Cancellation during preflight must fence
|
|
1616
|
+
the claim. Corrupt mail is an error, never an empty-mailbox success.
|
|
1617
|
+
- Same pending IDs never cause another nudge. Bounds: two hours, 30s cooldown,
|
|
1618
|
+
eight nudges per worker, ≤16 selected workers, one active rule per cluster.
|
|
1619
|
+
Monitoring is free; worker turns incur normal provider usage. Final success
|
|
1620
|
+
means nudge dispatched, not work completed. STOP/errors/removal stop rules;
|
|
1621
|
+
restart interrupts and requires re-arming, never resumes synthetic turns.
|
|
1622
|
+
- Private rule metadata never reaches disk, recipient audit notices or external
|
|
1623
|
+
transports. Full private clear/removal fences pending dispatch and drops it.
|
|
1624
|
+
Only the requested generic nudge enters a normal worker's history. Keep
|
|
1625
|
+
Native/local and MCP array serialization aligned via `computerToolWireArgs`.
|
|
1626
|
+
|
|
1627
|
+
### Computer event stream and optional agent updates
|
|
1628
|
+
|
|
1629
|
+
- **General scripts are declarations, never eval or canned phrase routing.**
|
|
1630
|
+
`arco_condition` composes typed worker/group/count facts with AND/OR/NOT,
|
|
1631
|
+
ordered actions and dependencies. Unknown stays unknown under NOT. A Director
|
|
1632
|
+
nudge is never implicit. Named tool compaction aliases normalize to the same
|
|
1633
|
+
server-side compact action; no microphone/browser is required for worker
|
|
1634
|
+
sends, nudges or compact. UI actions retain ordinary schema/confirmations,
|
|
1635
|
+
exact target IDs and stable control labels. Scripts cannot re-arm scripts
|
|
1636
|
+
or create more standing authority. Keep all four operator-arming safeguards.
|
|
1637
|
+
- **Revalidate snapshots through claim.** Sorted mailbox locks across scope
|
|
1638
|
+
cover the last mailbox/busy/queue/input check and the real busy claim, even
|
|
1639
|
+
after provider preflight. Cancellation, source identity changes, STOP and
|
|
1640
|
+
private clear must fence late callbacks. Compaction's full internal operation
|
|
1641
|
+
must finish before compacting=false; Codex thread/compacted alone is too early.
|
|
1642
|
+
A manual compact's interrupted busy release is not an operator STOP.
|
|
1643
|
+
- **Input holds do not answer questions.** Native questions/gates and Codex
|
|
1644
|
+
operator questions are explicit facts. For armed scripts, changed ordinary
|
|
1645
|
+
replies may use isolated ephemeral tool-free Luna LOW observation, capped
|
|
1646
|
+
at 24 batches/owner/hour and reported separately from optional agent updates.
|
|
1647
|
+
Unknown/failure/truncation holds; never regex-match prose or infer permission
|
|
1648
|
+
from idle. Identity/version fence the result. Human input starts a new check.
|
|
1649
|
+
An explicit needs-input notification can alert while other actions are held.
|
|
1650
|
+
Restore the latest reply with the streaming visitor in scanEventsOfTypes;
|
|
1651
|
+
a fixed byte tail can contain only later board/activity records and strand
|
|
1652
|
+
needs_input=null forever. Retain only one bounded reply, require a complete
|
|
1653
|
+
turn boundary, fence live changes, and keep true long/incomplete histories
|
|
1654
|
+
held. Explicit resume can retry unknown restored history; no automatic loop.
|
|
1655
|
+
Preserve detailed history/budget/failure hold reasons after predicate checks.
|
|
1656
|
+
- **Actions in a clause are ordered.** A missing/busy/mail-free worker action
|
|
1657
|
+
cannot be skipped to emit a false "I nudged it" notification. A started once
|
|
1658
|
+
clause latches, retaining holds/idle/cancellation checks while completing its
|
|
1659
|
+
actions. Dependencies wait for all earlier action targets to dispatch;
|
|
1660
|
+
successful dispatch is not completed project work. Do not invent dependencies
|
|
1661
|
+
on optional recurring mail nudges for a state-only finishing condition: a
|
|
1662
|
+
mailbox can already be empty without that worker ever being nudged.
|
|
1663
|
+
Recurrence is bounded and
|
|
1664
|
+
mail IDs deduplicate independently of busy changes. Recurring compact watches
|
|
1665
|
+
completed runs; continuation after each in-place compact watches
|
|
1666
|
+
compactions_finished. Ollama only arms next-turn compaction: its requested
|
|
1667
|
+
continuation starts that turn; waiting on the in-place counter first deadlocks it.
|
|
1668
|
+
- **Restore context facts after restart.** `conditionContext` reads saved
|
|
1669
|
+
final-request measurements, with the current account/session's Codex rollout
|
|
1670
|
+
fallback for older records. Never use summed billing input/cache tokens.
|
|
1671
|
+
Reads are coalesced once per uninitialized public worker and fenced against
|
|
1672
|
+
live measurements, compaction, removal and provider/session changes. Prior
|
|
1673
|
+
compaction/handoff/rewind readings stay unknown; private state is excluded.
|
|
1674
|
+
Absolute token counts do not require a known model window.
|
|
1675
|
+
- **Wait on post-action facts, not the trigger.** A 40%-context trigger belongs
|
|
1676
|
+
before compact. Requiring context≥40 afterwards strands continuation after
|
|
1677
|
+
the summary shrinks it. Native context becomes unknown until measured again;
|
|
1678
|
+
no false zero or stale aggregate is invented. A finishing clause waits for
|
|
1679
|
+
every requested action. Default STOP/error behavior can be overridden only
|
|
1680
|
+
by an operator-directed declaration that handles those events explicitly.
|
|
1681
|
+
- **Script budgets belong to the operator.** General scripts default to null
|
|
1682
|
+
expiry/action/worker-turn limits, not the legacy 2h/32-action/8-turn ceilings.
|
|
1683
|
+
Explicit positive limits still enforce stopping; cooldown defaults to 30s
|
|
1684
|
+
but accepts operator-requested zero. Saved numeric limits remain unchanged.
|
|
1685
|
+
Retain counters/receipts beyond the old maxima on save/load; lifting only the
|
|
1686
|
+
create schema strands valid scripts at restart. Null expiry schedules no
|
|
1687
|
+
expiry timer; cap long setTimeout delays to the supported timer range.
|
|
1688
|
+
- Script edits retain spent counters, seen mail and matching completed
|
|
1689
|
+
actions. Read the full definition/current revision before update, preserve
|
|
1690
|
+
clause IDs, and fence old-revision preflights. Do not cancel/recreate merely
|
|
1691
|
+
to add a guard or remove a limit; that could resend work already handled.
|
|
1692
|
+
Unchanged TTL preserves the absolute deadline; explicitly changed numeric
|
|
1693
|
+
TTL starts from the update and null removes expiry. Validate the new deadline
|
|
1694
|
+
before mutating any clause state. Runtime idle/input/deduplication guards
|
|
1695
|
+
remain even without count/time limits.
|
|
1696
|
+
- Saved script definitions/state/claims use locked durable atomic writes;
|
|
1697
|
+
persist before dispatch and fail closed. Restart interrupts, never retries.
|
|
1698
|
+
Private definitions/counters/notices stay memory-only and clear with their
|
|
1699
|
+
owner. Bounded worker text is volatile, not another persistent transcript.
|
|
1700
|
+
Legacy mailbox rules/AUTO-PICKUP cannot coexist with scripts in one cluster.
|
|
1701
|
+
|
|
1702
|
+
- **Restore the saved Computer owner before reading activity.** `ComputerPanel`
|
|
1703
|
+
can render a saved chat while `computerStore.activeId` is still null after
|
|
1704
|
+
reload. Bind the matching saved selection on mount and delayed job hydration,
|
|
1705
|
+
without requiring an utterance/USE AGENT, enabling the mic, changing project
|
|
1706
|
+
selection or auto-adopting a private context. Activity/watches/rules share
|
|
1707
|
+
that owner; otherwise HTTP results are discarded and controls stay disabled.
|
|
1708
|
+
Keep loading/disconnection/errors visible and offer an explicit retry.
|
|
1709
|
+
|
|
1710
|
+
- Publish metadata from real mutation sites, not provider text/tool deltas.
|
|
1711
|
+
Worker finished is after the full claim/queue release; STOP/failure stays
|
|
1712
|
+
distinct. Never put Computer's own turns or private chats in the public bus.
|
|
1713
|
+
- Mailbox rule checks subscribe to worker/queue/mailbox/cluster changes, latch
|
|
1714
|
+
changes arriving during an async evaluation, and validate under the mailbox
|
|
1715
|
+
lock through claim. Only real cooldown/expiry deadlines have timers. No
|
|
1716
|
+
recurring condition scan or browser projection poll. External manual edits
|
|
1717
|
+
of mailbox files are not supported event sources.
|
|
1718
|
+
- Background agent updates are operator-opted-in per owner, OFF by default;
|
|
1719
|
+
source facts remain data. Enforce read-only at the central tool relay for ALL
|
|
1720
|
+
providers, not only in the prompt. Queue user directions as follow-ups, clear
|
|
1721
|
+
that restriction at the first actual settled update, and token-fence stale
|
|
1722
|
+
cleanup. Wait through `computerSettled`/the complete reset boundary before
|
|
1723
|
+
dispatching another update; do not steal an operator reply between turns.
|
|
1724
|
+
- Bound spend and memory: 12 batch turns/rolling hour, ten facts/batch, 50
|
|
1725
|
+
waiting facts. Persist rate counters separately from capped delivery history;
|
|
1726
|
+
never evict in-flight state for overflow/history. Failures/restart never
|
|
1727
|
+
automatically replay an update. Switching Computer agents disables the old
|
|
1728
|
+
feed and cancels its waiting updates without copying private context.
|
|
1729
|
+
- Transient `computer_activity_changed` invalidations drive coalesced HTTP
|
|
1730
|
+
refreshes. Reads do not invalidate themselves. Initial/reconnect snapshots
|
|
1731
|
+
close missed-push gaps; epoch guards reject stale private responses. Keep
|
|
1732
|
+
normal activity metadata, private matched facts and owner inboxes separated
|
|
1733
|
+
before every disk write/notification. No Redis or extra worker model call.
|
|
1734
|
+
|
|
1735
|
+
## Related links
|
|
1736
|
+
|
|
1737
|
+
- [Architecture](ARCHITECTURE.md)
|
|
1738
|
+
- [Providers](PROVIDERS.md)
|
|
1739
|
+
- [WebSocket protocol](PROTOCOL.md)
|
|
1740
|
+
- [Operations](OPERATIONS.md)
|
|
1741
|
+
- [Documentation style](STYLE.md)
|