@kbediako/codex-orchestrator 0.1.38 → 0.2.1
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/.agents/plugins/marketplace.json +20 -0
- package/README.md +46 -317
- package/bin/codex-orchestrator.js +161 -0
- package/codex.orchestrator.json +149 -13
- package/dist/bin/codex-orchestrator.js +797 -1154
- package/dist/orchestrator/src/cli/adapters/CommandBuilder.js +50 -0
- package/dist/orchestrator/src/cli/adapters/CommandPlanner.js +22 -4
- package/dist/orchestrator/src/cli/adapters/CommandReviewer.js +3 -3
- package/dist/orchestrator/src/cli/adapters/CommandTester.js +2 -2
- package/dist/orchestrator/src/cli/adapters/cloudFailureDiagnostics.js +295 -11
- package/dist/orchestrator/src/cli/coStatusAttachCliShell.js +402 -0
- package/dist/orchestrator/src/cli/coStatusCliShell.js +451 -0
- package/dist/orchestrator/src/cli/coStatusOperatorAutopilotCliShell.js +120 -0
- package/dist/orchestrator/src/cli/codexCliShell.js +119 -0
- package/dist/orchestrator/src/cli/codexDefaultsSetup.js +265 -36
- package/dist/orchestrator/src/cli/config/delegationConfig.js +317 -5
- package/dist/orchestrator/src/cli/config/repoConfigPolicy.js +2 -3
- package/dist/orchestrator/src/cli/config/userConfig.js +28 -13
- package/dist/orchestrator/src/cli/control/authenticatedControlRouteGate.js +69 -0
- package/dist/orchestrator/src/cli/control/authenticatedRouteComposition.js +267 -0
- package/dist/orchestrator/src/cli/control/authenticatedRouteController.js +5 -0
- package/dist/orchestrator/src/cli/control/authenticatedRouteDispatcher.js +41 -0
- package/dist/orchestrator/src/cli/control/compatibilityIssuePresenter.js +1035 -0
- package/dist/orchestrator/src/cli/control/confirmationApproveController.js +62 -0
- package/dist/orchestrator/src/cli/control/confirmationCreateController.js +69 -0
- package/dist/orchestrator/src/cli/control/confirmationIssueConsumeController.js +43 -0
- package/dist/orchestrator/src/cli/control/confirmationListController.js +22 -0
- package/dist/orchestrator/src/cli/control/confirmationValidateController.js +58 -0
- package/dist/orchestrator/src/cli/control/confirmations.js +25 -3
- package/dist/orchestrator/src/cli/control/controlActionCancelConfirmation.js +65 -0
- package/dist/orchestrator/src/cli/control/controlActionController.js +77 -0
- package/dist/orchestrator/src/cli/control/controlActionControllerSequencing.js +161 -0
- package/dist/orchestrator/src/cli/control/controlActionExecution.js +142 -0
- package/dist/orchestrator/src/cli/control/controlActionFinalization.js +43 -0
- package/dist/orchestrator/src/cli/control/controlActionOutcome.js +60 -0
- package/dist/orchestrator/src/cli/control/controlActionPreflight.js +476 -0
- package/dist/orchestrator/src/cli/control/controlAuthenticatedRouteHandoff.js +57 -0
- package/dist/orchestrator/src/cli/control/controlBootstrapAssembly.js +39 -0
- package/dist/orchestrator/src/cli/control/controlBootstrapMetadataPersistence.js +16 -0
- package/dist/orchestrator/src/cli/control/controlEventTransport.js +49 -0
- package/dist/orchestrator/src/cli/control/controlExpiryLifecycle.js +102 -0
- package/dist/orchestrator/src/cli/control/controlHostOwnership.js +480 -0
- package/dist/orchestrator/src/cli/control/controlHostSupervision.js +630 -0
- package/dist/orchestrator/src/cli/control/controlOversightFacade.js +8 -0
- package/dist/orchestrator/src/cli/control/controlOversightReadContract.js +1 -0
- package/dist/orchestrator/src/cli/control/controlOversightReadService.js +16 -0
- package/dist/orchestrator/src/cli/control/controlOversightUpdateContract.js +1 -0
- package/dist/orchestrator/src/cli/control/controlPersistenceFiles.js +6 -0
- package/dist/orchestrator/src/cli/control/controlQuestionChildResolution.js +18 -0
- package/dist/orchestrator/src/cli/control/controlRequestContext.js +42 -0
- package/dist/orchestrator/src/cli/control/controlRequestController.js +9 -0
- package/dist/orchestrator/src/cli/control/controlRequestPredispatch.js +17 -0
- package/dist/orchestrator/src/cli/control/controlRequestRouteDispatch.js +44 -0
- package/dist/orchestrator/src/cli/control/controlRuntime.js +1003 -0
- package/dist/orchestrator/src/cli/control/controlServer.js +23 -1456
- package/dist/orchestrator/src/cli/control/controlServerAuditAndErrorHelpers.js +115 -0
- package/dist/orchestrator/src/cli/control/controlServerAuthenticatedRouteBranch.js +29 -0
- package/dist/orchestrator/src/cli/control/controlServerBootstrapLifecycle.js +30 -0
- package/dist/orchestrator/src/cli/control/controlServerBootstrapStartSequence.js +21 -0
- package/dist/orchestrator/src/cli/control/controlServerOwnedRuntimeLifecycle.js +67 -0
- package/dist/orchestrator/src/cli/control/controlServerPublicLifecycle.js +756 -0
- package/dist/orchestrator/src/cli/control/controlServerPublicRouteHelpers.js +86 -0
- package/dist/orchestrator/src/cli/control/controlServerReadyInstanceLifecycle.js +25 -0
- package/dist/orchestrator/src/cli/control/controlServerReadyInstanceStartup.js +18 -0
- package/dist/orchestrator/src/cli/control/controlServerRequestBodyHelpers.js +37 -0
- package/dist/orchestrator/src/cli/control/controlServerRequestShell.js +40 -0
- package/dist/orchestrator/src/cli/control/controlServerRequestShellBinding.js +17 -0
- package/dist/orchestrator/src/cli/control/controlServerSeedLoading.js +27 -0
- package/dist/orchestrator/src/cli/control/controlServerSeededRuntimeAssembly.js +186 -0
- package/dist/orchestrator/src/cli/control/controlServerStartupInputPreparation.js +31 -0
- package/dist/orchestrator/src/cli/control/controlServerStartupSequence.js +49 -0
- package/dist/orchestrator/src/cli/control/controlState.js +233 -2
- package/dist/orchestrator/src/cli/control/controlStatusDashboard.js +1904 -0
- package/dist/orchestrator/src/cli/control/controlTelegramBridgeBootstrapLifecycle.js +22 -0
- package/dist/orchestrator/src/cli/control/controlTelegramBridgeLifecycle.js +67 -0
- package/dist/orchestrator/src/cli/control/controlTelegramBridgeOversightFacadeFactory.js +8 -0
- package/dist/orchestrator/src/cli/control/controlTelegramCommandController.js +49 -0
- package/dist/orchestrator/src/cli/control/controlTelegramDispatchRead.js +40 -0
- package/dist/orchestrator/src/cli/control/controlTelegramPollingController.js +89 -0
- package/dist/orchestrator/src/cli/control/controlTelegramProjectionNotificationController.js +29 -0
- package/dist/orchestrator/src/cli/control/controlTelegramPushState.js +63 -0
- package/dist/orchestrator/src/cli/control/controlTelegramQuestionRead.js +13 -0
- package/dist/orchestrator/src/cli/control/controlTelegramReadController.js +216 -0
- package/dist/orchestrator/src/cli/control/controlTelegramUpdateHandler.js +63 -0
- package/dist/orchestrator/src/cli/control/controlWatcher.js +73 -5
- package/dist/orchestrator/src/cli/control/delegationRegisterController.js +35 -0
- package/dist/orchestrator/src/cli/control/dynamicToolBridgePolicy.js +139 -0
- package/dist/orchestrator/src/cli/control/eventsSseController.js +12 -0
- package/dist/orchestrator/src/cli/control/linearBudgetState.js +1789 -0
- package/dist/orchestrator/src/cli/control/linearDispatchSource.js +1137 -0
- package/dist/orchestrator/src/cli/control/linearGraphqlClient.js +150 -0
- package/dist/orchestrator/src/cli/control/linearRateLimit.js +102 -0
- package/dist/orchestrator/src/cli/control/linearWebhookController.js +499 -0
- package/dist/orchestrator/src/cli/control/liveLinearAdvisoryRuntime.js +70 -0
- package/dist/orchestrator/src/cli/control/observabilityApiController.js +173 -0
- package/dist/orchestrator/src/cli/control/observabilityReadModel.js +500 -0
- package/dist/orchestrator/src/cli/control/observabilitySurface.js +284 -0
- package/dist/orchestrator/src/cli/control/observabilityUpdateNotifier.js +22 -0
- package/dist/orchestrator/src/cli/control/operatorDashboardPresenter.js +252 -0
- package/dist/orchestrator/src/cli/control/providerAgentCapacity.js +70 -0
- package/dist/orchestrator/src/cli/control/providerControlHostFreshnessGauge.js +1068 -0
- package/dist/orchestrator/src/cli/control/providerIntakeState.js +473 -0
- package/dist/orchestrator/src/cli/control/providerIssueHandoff.js +6811 -0
- package/dist/orchestrator/src/cli/control/providerIssueObservability.js +1348 -0
- package/dist/orchestrator/src/cli/control/providerIssueRetryQueue.js +84 -0
- package/dist/orchestrator/src/cli/control/providerLinearRuntimeProof.js +588 -0
- package/dist/orchestrator/src/cli/control/providerLinearScreenshotProof.js +473 -0
- package/dist/orchestrator/src/cli/control/providerLinearWorkerTruth.js +383 -0
- package/dist/orchestrator/src/cli/control/providerLinearWorkflowAudit.js +254 -0
- package/dist/orchestrator/src/cli/control/providerLinearWorkflowFacade.js +5573 -0
- package/dist/orchestrator/src/cli/control/providerLinearWorkflowStates.js +115 -0
- package/dist/orchestrator/src/cli/control/providerMergeCloseout.js +1868 -0
- package/dist/orchestrator/src/cli/control/providerOperatorAutopilot.js +1580 -0
- package/dist/orchestrator/src/cli/control/providerOperatorAutopilotLifecycle.js +154 -0
- package/dist/orchestrator/src/cli/control/providerOperatorAutopilotLocalRolloutExecution.js +1006 -0
- package/dist/orchestrator/src/cli/control/providerPollingHealth.js +435 -0
- package/dist/orchestrator/src/cli/control/providerTerminalCleanup.js +516 -0
- package/dist/orchestrator/src/cli/control/providerWorkerHosts.js +191 -0
- package/dist/orchestrator/src/cli/control/providerWorkflowConfigStore.js +515 -0
- package/dist/orchestrator/src/cli/control/questionChildResolutionAdapter.js +361 -0
- package/dist/orchestrator/src/cli/control/questionQueueController.js +181 -0
- package/dist/orchestrator/src/cli/control/questionReadRetryDeduplication.js +9 -0
- package/dist/orchestrator/src/cli/control/questionReadSequence.js +10 -0
- package/dist/orchestrator/src/cli/control/securityViolationController.js +27 -0
- package/dist/orchestrator/src/cli/control/selectedRunProjection.js +1885 -0
- package/dist/orchestrator/src/cli/control/telegramOversightApiClient.js +48 -0
- package/dist/orchestrator/src/cli/control/telegramOversightBridge.js +180 -0
- package/dist/orchestrator/src/cli/control/telegramOversightBridgeProjectionDeliveryQueue.js +25 -0
- package/dist/orchestrator/src/cli/control/telegramOversightBridgeRuntimeLifecycle.js +45 -0
- package/dist/orchestrator/src/cli/control/telegramOversightBridgeStateStore.js +77 -0
- package/dist/orchestrator/src/cli/control/telegramOversightControlActionApiClient.js +45 -0
- package/dist/orchestrator/src/cli/control/trackerDispatchPilot.js +439 -0
- package/dist/orchestrator/src/cli/control/uiDataController.js +34 -0
- package/dist/orchestrator/src/cli/control/uiSessionController.js +100 -0
- package/dist/orchestrator/src/cli/controlHostCliShell.js +860 -0
- package/dist/orchestrator/src/cli/controlHostFreshnessGaugeCliShell.js +129 -0
- package/dist/orchestrator/src/cli/controlHostSupervisionCliShell.js +2127 -0
- package/dist/orchestrator/src/cli/delegationCliShell.js +62 -0
- package/dist/orchestrator/src/cli/delegationServer.js +567 -678
- package/dist/orchestrator/src/cli/delegationServerCliShell.js +52 -0
- package/dist/orchestrator/src/cli/delegationServerQuestionFlowShell.js +228 -0
- package/dist/orchestrator/src/cli/delegationServerToolDispatchShell.js +411 -0
- package/dist/orchestrator/src/cli/delegationServerTransport.js +274 -0
- package/dist/orchestrator/src/cli/delegationSetup.js +51 -171
- package/dist/orchestrator/src/cli/devtoolsCliShell.js +34 -0
- package/dist/orchestrator/src/cli/doctor.js +678 -164
- package/dist/orchestrator/src/cli/doctorCliRequestShell.js +72 -0
- package/dist/orchestrator/src/cli/doctorCliShell.js +138 -0
- package/dist/orchestrator/src/cli/doctorUsage.js +119 -15
- package/dist/orchestrator/src/cli/exec/experience.js +16 -2
- package/dist/orchestrator/src/cli/exec/summary.js +3 -0
- package/dist/orchestrator/src/cli/execCliShell.js +51 -0
- package/dist/orchestrator/src/cli/flowCliRequestShell.js +44 -0
- package/dist/orchestrator/src/cli/flowCliShell.js +239 -0
- package/dist/orchestrator/src/cli/frontendTestCliRequestShell.js +80 -0
- package/dist/orchestrator/src/cli/frontendTestCliShell.js +41 -0
- package/dist/orchestrator/src/cli/init.js +95 -1
- package/dist/orchestrator/src/cli/initCliShell.js +50 -0
- package/dist/orchestrator/src/cli/linearCliShell.js +1200 -0
- package/dist/orchestrator/src/cli/mcpEnableCliShell.js +132 -0
- package/dist/orchestrator/src/cli/metrics/metricsAggregator.js +3 -2
- package/dist/orchestrator/src/cli/metrics/metricsRecorder.js +56 -0
- package/dist/orchestrator/src/cli/orchestrator.js +66 -1376
- package/dist/orchestrator/src/cli/planCliShell.js +19 -0
- package/dist/orchestrator/src/cli/prCliShell.js +41 -0
- package/dist/orchestrator/src/cli/providerLinearChildLanePhaseContract.js +204 -0
- package/dist/orchestrator/src/cli/providerLinearChildLaneRunner.js +1835 -0
- package/dist/orchestrator/src/cli/providerLinearChildLaneShell.js +2420 -0
- package/dist/orchestrator/src/cli/providerLinearChildStreamShell.js +385 -0
- package/dist/orchestrator/src/cli/providerLinearWorkerRunner.js +6834 -0
- package/dist/orchestrator/src/cli/resumeCliShell.js +14 -0
- package/dist/orchestrator/src/cli/reviewCliLaunchShell.js +72 -0
- package/dist/orchestrator/src/cli/rlm/alignment.js +3 -3
- package/dist/orchestrator/src/cli/rlm/context.js +94 -7
- package/dist/orchestrator/src/cli/rlm/rlmCodexRuntimeShell.js +546 -0
- package/dist/orchestrator/src/cli/rlm/symbolic.js +4 -2
- package/dist/orchestrator/src/cli/rlmCliRequestShell.js +42 -0
- package/dist/orchestrator/src/cli/rlmCompletionCliShell.js +46 -0
- package/dist/orchestrator/src/cli/rlmLaunchCliShell.js +51 -0
- package/dist/orchestrator/src/cli/rlmRunner.js +83 -523
- package/dist/orchestrator/src/cli/run/blockMemory.js +500 -0
- package/dist/orchestrator/src/cli/run/manifest.js +410 -73
- package/dist/orchestrator/src/cli/run/manifestPersister.js +45 -14
- package/dist/orchestrator/src/cli/run/runMemoryController.js +216 -0
- package/dist/orchestrator/src/cli/run/source0.js +690 -0
- package/dist/orchestrator/src/cli/run/workspacePath.js +101 -0
- package/dist/orchestrator/src/cli/runtime/mode.js +2 -1
- package/dist/orchestrator/src/cli/runtime/provider.js +39 -2
- package/dist/orchestrator/src/cli/selfCheckCliShell.js +12 -0
- package/dist/orchestrator/src/cli/services/commandRunner.js +698 -18
- package/dist/orchestrator/src/cli/services/execRuntime.js +66 -1
- package/dist/orchestrator/src/cli/services/orchestratorAutoScoutEvidenceRecorder.js +71 -0
- package/dist/orchestrator/src/cli/services/orchestratorCloudBranchResolution.js +8 -0
- package/dist/orchestrator/src/cli/services/orchestratorCloudEnvironmentResolution.js +22 -0
- package/dist/orchestrator/src/cli/services/orchestratorCloudExecutionLifecycleShell.js +39 -0
- package/dist/orchestrator/src/cli/services/orchestratorCloudPromptBuilder.js +37 -0
- package/dist/orchestrator/src/cli/services/orchestratorCloudRouteFallbackContract.js +45 -0
- package/dist/orchestrator/src/cli/services/orchestratorCloudRouteShell.js +36 -0
- package/dist/orchestrator/src/cli/services/orchestratorCloudTargetExecutor.js +277 -0
- package/dist/orchestrator/src/cli/services/orchestratorControlPlaneLifecycle.js +98 -0
- package/dist/orchestrator/src/cli/services/orchestratorControlPlaneLifecycleShell.js +54 -0
- package/dist/orchestrator/src/cli/services/orchestratorExecutionLifecycle.js +112 -0
- package/dist/orchestrator/src/cli/services/orchestratorExecutionModePolicy.js +27 -0
- package/dist/orchestrator/src/cli/services/orchestratorExecutionRouteAdapterShell.js +59 -0
- package/dist/orchestrator/src/cli/services/orchestratorExecutionRouteDecisionShell.js +57 -0
- package/dist/orchestrator/src/cli/services/orchestratorExecutionRouteState.js +21 -0
- package/dist/orchestrator/src/cli/services/orchestratorExecutionRouter.js +2 -0
- package/dist/orchestrator/src/cli/services/orchestratorLocalPipelineExecutor.js +149 -0
- package/dist/orchestrator/src/cli/services/orchestratorLocalRouteShell.js +63 -0
- package/dist/orchestrator/src/cli/services/orchestratorPlanShell.js +54 -0
- package/dist/orchestrator/src/cli/services/orchestratorPlanTargetTracker.js +16 -0
- package/dist/orchestrator/src/cli/services/orchestratorResumePreparationShell.js +84 -0
- package/dist/orchestrator/src/cli/services/orchestratorResumeTokenValidation.js +15 -0
- package/dist/orchestrator/src/cli/services/orchestratorRunLifecycleCompletion.js +31 -0
- package/dist/orchestrator/src/cli/services/orchestratorRunLifecycleExecutionRegistration.js +37 -0
- package/dist/orchestrator/src/cli/services/orchestratorRunLifecycleOrchestrationShell.js +83 -0
- package/dist/orchestrator/src/cli/services/orchestratorRunLifecycleTaskManagerShell.js +37 -0
- package/dist/orchestrator/src/cli/services/orchestratorRuntimeManifestMutation.js +20 -0
- package/dist/orchestrator/src/cli/services/orchestratorStartPreparationShell.js +56 -0
- package/dist/orchestrator/src/cli/services/orchestratorStatusShell.js +70 -0
- package/dist/orchestrator/src/cli/services/pipelineResolver.js +7 -3
- package/dist/orchestrator/src/cli/services/plannerMemory.js +119 -0
- package/dist/orchestrator/src/cli/services/runPreparation.js +7 -3
- package/dist/orchestrator/src/cli/services/runSummaryWriter.js +9 -0
- package/dist/orchestrator/src/cli/setupBootstrapShell.js +114 -0
- package/dist/orchestrator/src/cli/setupCliShell.js +51 -0
- package/dist/orchestrator/src/cli/skillsCliShell.js +56 -0
- package/dist/orchestrator/src/cli/startCliRequestShell.js +53 -0
- package/dist/orchestrator/src/cli/startCliShell.js +68 -0
- package/dist/orchestrator/src/cli/statusCliShell.js +22 -0
- package/dist/orchestrator/src/cli/utils/authProvenanceFingerprint.js +27 -0
- package/dist/orchestrator/src/cli/utils/cloudPreflight.js +285 -7
- package/dist/orchestrator/src/cli/utils/codexFeatures.js +60 -0
- package/dist/orchestrator/src/cli/utils/delegationConfigParser.js +250 -0
- package/dist/orchestrator/src/cli/utils/delegationMcpHealth.js +1382 -0
- package/dist/orchestrator/src/cli/utils/devtools.js +2 -54
- package/dist/orchestrator/src/cli/utils/mcpServerEntry.js +53 -0
- package/dist/orchestrator/src/cli/utils/packageProgramResolver.js +151 -0
- package/dist/orchestrator/src/cli/utils/providerOverrideEnv.js +71 -0
- package/dist/orchestrator/src/cli/utils/trailingJsonObject.js +59 -0
- package/dist/orchestrator/src/learning/crystalizer.js +2 -2
- package/dist/orchestrator/src/manager.js +74 -4
- package/dist/orchestrator/src/persistence/ExperienceStore.js +233 -49
- package/dist/orchestrator/src/persistence/TaskStateStore.js +6 -6
- package/dist/orchestrator/src/persistence/lockFile.js +70 -4
- package/dist/orchestrator/src/persistence/sanitizeIdentifier.js +39 -0
- package/dist/orchestrator/src/sync/createCloudSyncWorker.js +3 -2
- package/dist/orchestrator/src/utils/atomicWrite.js +17 -2
- package/dist/packages/orchestrator/src/exec/unified-exec.js +99 -6
- package/dist/packages/orchestrator/src/instructions/promptPacks.js +150 -19
- package/dist/packages/sdk-node/src/orchestrator.js +137 -13
- package/dist/packages/shared/config/designConfig.js +8 -1
- package/dist/packages/shared/streams/stdio.js +1 -1
- package/dist/scripts/design/pipeline/permit.js +15 -0
- package/dist/scripts/lib/docs-catalog.js +399 -0
- package/dist/scripts/lib/docs-helpers.js +87 -5
- package/dist/scripts/lib/pr-watch-merge.js +1088 -80
- package/dist/scripts/lib/provider-run-contract.js +26 -0
- package/dist/scripts/lib/review-command-intent-classification.js +532 -0
- package/dist/scripts/lib/review-command-probe-classification.js +385 -0
- package/dist/scripts/lib/review-execution-boundary-preflight.js +279 -0
- package/dist/scripts/lib/review-execution-runtime.js +753 -0
- package/dist/scripts/lib/review-execution-state.js +1144 -0
- package/dist/scripts/lib/review-execution-telemetry.js +215 -0
- package/dist/scripts/lib/review-inspection-target-parsing.js +78 -0
- package/dist/scripts/lib/review-launch-attempt.js +601 -0
- package/dist/scripts/lib/review-meta-surface-boundary-analysis.js +300 -0
- package/dist/scripts/lib/review-meta-surface-normalization.js +746 -0
- package/dist/scripts/lib/review-non-interactive-handoff.js +61 -0
- package/dist/scripts/lib/review-prompt-context.js +376 -0
- package/dist/scripts/lib/review-scope-advisory.js +286 -0
- package/dist/scripts/lib/review-scope-paths.js +123 -0
- package/dist/scripts/lib/review-shell-command-parser.js +389 -0
- package/dist/scripts/lib/review-shell-env-interpreter.js +340 -0
- package/dist/scripts/lib/run-manifests.js +192 -36
- package/dist/scripts/lib/spark-policy-classifier.js +593 -0
- package/dist/scripts/run-review.js +507 -1777
- package/docs/README.md +43 -20
- package/docs/book/README.md +19 -0
- package/docs/book/codex-cli-0124-adoption.md +68 -0
- package/docs/book/local-hook-impact.md +73 -0
- package/docs/book/operations.md +60 -0
- package/docs/book/public-posture.md +34 -0
- package/docs/book/setup.md +91 -0
- package/docs/book/skills.md +11 -0
- package/docs/guides/codex-version-policy.md +104 -0
- package/docs/public/downstream-setup.md +113 -0
- package/docs/public/provider-onboarding.md +173 -0
- package/package.json +23 -10
- package/plugins/codex-orchestrator/.codex-plugin/plugin.json +30 -0
- package/plugins/codex-orchestrator/.mcp.json +13 -0
- package/plugins/codex-orchestrator/launcher.mjs +361 -0
- package/schemas/manifest.json +411 -0
- package/skills/README.md +26 -0
- package/skills/collab-subagents-first/SKILL.md +1 -1
- package/skills/delegation-usage/DELEGATION_GUIDE.md +30 -12
- package/skills/delegation-usage/SKILL.md +25 -14
- package/skills/land/SKILL.md +77 -0
- package/skills/linear/SKILL.md +255 -0
- package/skills/release/SKILL.md +47 -3
- package/skills/standalone-review/SKILL.md +6 -1
- package/templates/README.md +4 -2
- package/templates/codex/.codex/agents/awaiter-high.toml +2 -2
- package/templates/codex/.codex/agents/worker-complex.toml +1 -1
- package/templates/codex/.codex/config.toml +3 -4
- package/templates/codex/.codex/providers/README.md +13 -0
- package/templates/codex/.codex/providers/control.example.json +18 -0
- package/templates/codex/.codex/providers/provider.env.example +15 -0
- package/templates/codex/AGENTS.md +15 -8
- package/templates/codex/mcp-client.json +5 -1
- package/docs/assets/setup.gif +0 -0
package/schemas/manifest.json
CHANGED
|
@@ -62,6 +62,20 @@
|
|
|
62
62
|
"artifact_root": { "type": "string", "minLength": 1 },
|
|
63
63
|
"compat_path": { "type": "string", "minLength": 1 },
|
|
64
64
|
"log_path": { "type": "string", "minLength": 1 },
|
|
65
|
+
"issue_provider": { "type": ["string", "null"] },
|
|
66
|
+
"issue_id": { "type": ["string", "null"] },
|
|
67
|
+
"issue_identifier": { "type": ["string", "null"] },
|
|
68
|
+
"issue_updated_at": { "type": ["string", "null"] },
|
|
69
|
+
"workspace_path": { "type": ["string", "null"], "minLength": 1 },
|
|
70
|
+
"provider_launch_source": { "type": ["string", "null"] },
|
|
71
|
+
"provider_control_host_task_id": { "type": ["string", "null"] },
|
|
72
|
+
"provider_control_host_run_id": { "type": ["string", "null"] },
|
|
73
|
+
"provider_linear_worker_tokens": {
|
|
74
|
+
"anyOf": [
|
|
75
|
+
{ "type": "null" },
|
|
76
|
+
{ "$ref": "#/definitions/providerLinearWorkerTokenUsage" }
|
|
77
|
+
]
|
|
78
|
+
},
|
|
65
79
|
"summary": { "type": ["string", "null"] },
|
|
66
80
|
"metrics_recorded": { "type": "boolean" },
|
|
67
81
|
"resume_token": { "type": "string", "minLength": 1 },
|
|
@@ -239,6 +253,10 @@
|
|
|
239
253
|
}
|
|
240
254
|
},
|
|
241
255
|
"guardrails_required": { "type": ["boolean", "null"] },
|
|
256
|
+
"guardrails_required_source": {
|
|
257
|
+
"type": ["string", "null"],
|
|
258
|
+
"enum": ["explicit", "stage_detection", null]
|
|
259
|
+
},
|
|
242
260
|
"runtime_mode_requested": { "type": "string", "enum": ["cli", "appserver"] },
|
|
243
261
|
"runtime_mode": { "type": "string", "enum": ["cli", "appserver"] },
|
|
244
262
|
"runtime_provider": { "type": "string", "enum": ["CliRuntimeProvider", "AppServerRuntimeProvider"] },
|
|
@@ -466,6 +484,88 @@
|
|
|
466
484
|
"type": "array",
|
|
467
485
|
"items": { "type": "string", "minLength": 1 }
|
|
468
486
|
},
|
|
487
|
+
"retrieval_policy": {
|
|
488
|
+
"type": ["object", "null"],
|
|
489
|
+
"additionalProperties": false,
|
|
490
|
+
"required": ["kind", "min_score", "score_weights", "anti_dominance_normalization"],
|
|
491
|
+
"properties": {
|
|
492
|
+
"kind": { "type": "string", "const": "competitive_scoring_v1" },
|
|
493
|
+
"min_score": {
|
|
494
|
+
"type": ["number", "null"],
|
|
495
|
+
"minimum": 0
|
|
496
|
+
},
|
|
497
|
+
"score_weights": {
|
|
498
|
+
"type": "object",
|
|
499
|
+
"additionalProperties": false,
|
|
500
|
+
"required": ["gt_score", "relative_rank"],
|
|
501
|
+
"properties": {
|
|
502
|
+
"gt_score": { "type": "number", "minimum": 0 },
|
|
503
|
+
"relative_rank": { "type": "number", "minimum": 0 }
|
|
504
|
+
}
|
|
505
|
+
},
|
|
506
|
+
"anti_dominance_normalization": {
|
|
507
|
+
"type": "object",
|
|
508
|
+
"additionalProperties": false,
|
|
509
|
+
"required": ["enabled", "strength", "source_grouping"],
|
|
510
|
+
"properties": {
|
|
511
|
+
"enabled": { "type": "boolean" },
|
|
512
|
+
"strength": { "type": "number", "minimum": 0 },
|
|
513
|
+
"source_grouping": { "type": "string", "const": "provenance_fallback_v1" }
|
|
514
|
+
}
|
|
515
|
+
}
|
|
516
|
+
}
|
|
517
|
+
},
|
|
518
|
+
"retrieval_selection": {
|
|
519
|
+
"type": ["object", "null"],
|
|
520
|
+
"additionalProperties": false,
|
|
521
|
+
"required": [
|
|
522
|
+
"candidate_count",
|
|
523
|
+
"selected_count",
|
|
524
|
+
"diagnostics_path",
|
|
525
|
+
"selected_ids",
|
|
526
|
+
"suppressed_source_keys",
|
|
527
|
+
"selected"
|
|
528
|
+
],
|
|
529
|
+
"properties": {
|
|
530
|
+
"candidate_count": { "type": "integer", "minimum": 0 },
|
|
531
|
+
"selected_count": { "type": "integer", "minimum": 0 },
|
|
532
|
+
"diagnostics_path": { "type": ["string", "null"] },
|
|
533
|
+
"selected_ids": {
|
|
534
|
+
"type": "array",
|
|
535
|
+
"items": { "type": "string", "minLength": 1 }
|
|
536
|
+
},
|
|
537
|
+
"suppressed_source_keys": {
|
|
538
|
+
"type": "array",
|
|
539
|
+
"items": { "type": "string", "minLength": 1 }
|
|
540
|
+
},
|
|
541
|
+
"selected": {
|
|
542
|
+
"type": "array",
|
|
543
|
+
"items": {
|
|
544
|
+
"type": "object",
|
|
545
|
+
"additionalProperties": false,
|
|
546
|
+
"required": [
|
|
547
|
+
"id",
|
|
548
|
+
"source_key",
|
|
549
|
+
"source_kind",
|
|
550
|
+
"raw_score",
|
|
551
|
+
"competitive_score",
|
|
552
|
+
"dominance_penalty"
|
|
553
|
+
],
|
|
554
|
+
"properties": {
|
|
555
|
+
"id": { "type": "string", "minLength": 1 },
|
|
556
|
+
"source_key": { "type": "string", "minLength": 1 },
|
|
557
|
+
"source_kind": {
|
|
558
|
+
"type": "string",
|
|
559
|
+
"enum": ["group_id", "run_id", "manifest_path", "stamp_signature"]
|
|
560
|
+
},
|
|
561
|
+
"raw_score": { "type": "number" },
|
|
562
|
+
"competitive_score": { "type": "number" },
|
|
563
|
+
"dominance_penalty": { "type": "number", "minimum": 0 }
|
|
564
|
+
}
|
|
565
|
+
}
|
|
566
|
+
}
|
|
567
|
+
}
|
|
568
|
+
},
|
|
469
569
|
"experiences": {
|
|
470
570
|
"type": ["array", "null"],
|
|
471
571
|
"items": { "type": "string", "minLength": 1 }
|
|
@@ -473,6 +573,288 @@
|
|
|
473
573
|
}
|
|
474
574
|
}
|
|
475
575
|
},
|
|
576
|
+
"memory": {
|
|
577
|
+
"type": ["object", "null"],
|
|
578
|
+
"additionalProperties": false,
|
|
579
|
+
"properties": {
|
|
580
|
+
"block_memory": {
|
|
581
|
+
"type": ["object", "null"],
|
|
582
|
+
"additionalProperties": false,
|
|
583
|
+
"required": ["schema_version", "kind", "index_path", "generated_at", "block_count"],
|
|
584
|
+
"properties": {
|
|
585
|
+
"schema_version": { "type": "integer", "minimum": 1 },
|
|
586
|
+
"kind": { "type": "string", "const": "index" },
|
|
587
|
+
"index_path": {
|
|
588
|
+
"type": "string",
|
|
589
|
+
"minLength": 1,
|
|
590
|
+
"pattern": "^(?![A-Za-z]:[\\\\/])(?![\\\\/])(?!.*(?:^|[\\\\/])\\.\\.(?:[\\\\/]|$)).+$"
|
|
591
|
+
},
|
|
592
|
+
"generated_at": { "type": "string", "minLength": 1 },
|
|
593
|
+
"block_count": { "type": "integer", "minimum": 1 }
|
|
594
|
+
}
|
|
595
|
+
},
|
|
596
|
+
"source_0": {
|
|
597
|
+
"type": ["object", "null"],
|
|
598
|
+
"additionalProperties": false,
|
|
599
|
+
"required": [
|
|
600
|
+
"schema_version",
|
|
601
|
+
"kind",
|
|
602
|
+
"object_id",
|
|
603
|
+
"pointer",
|
|
604
|
+
"dir_path",
|
|
605
|
+
"index_path",
|
|
606
|
+
"source_path",
|
|
607
|
+
"byte_length",
|
|
608
|
+
"chunk_count",
|
|
609
|
+
"created_at",
|
|
610
|
+
"origin",
|
|
611
|
+
"inherited_from"
|
|
612
|
+
],
|
|
613
|
+
"properties": {
|
|
614
|
+
"schema_version": { "type": "integer", "minimum": 1 },
|
|
615
|
+
"kind": { "type": "string", "const": "context_object" },
|
|
616
|
+
"object_id": { "type": "string", "minLength": 1 },
|
|
617
|
+
"pointer": { "type": "string", "minLength": 1 },
|
|
618
|
+
"dir_path": {
|
|
619
|
+
"type": "string",
|
|
620
|
+
"minLength": 1,
|
|
621
|
+
"pattern": "^(?![A-Za-z]:[\\\\/])(?![\\\\/])(?!.*(?:^|[\\\\/])\\.\\.(?:[\\\\/]|$)).+$"
|
|
622
|
+
},
|
|
623
|
+
"index_path": {
|
|
624
|
+
"type": "string",
|
|
625
|
+
"minLength": 1,
|
|
626
|
+
"pattern": "^(?![A-Za-z]:[\\\\/])(?![\\\\/])(?!.*(?:^|[\\\\/])\\.\\.(?:[\\\\/]|$)).+$"
|
|
627
|
+
},
|
|
628
|
+
"source_path": {
|
|
629
|
+
"type": "string",
|
|
630
|
+
"minLength": 1,
|
|
631
|
+
"pattern": "^(?![A-Za-z]:[\\\\/])(?![\\\\/])(?!.*(?:^|[\\\\/])\\.\\.(?:[\\\\/]|$)).+$"
|
|
632
|
+
},
|
|
633
|
+
"byte_length": { "type": "integer", "minimum": 0 },
|
|
634
|
+
"chunk_count": { "type": "integer", "minimum": 1 },
|
|
635
|
+
"created_at": { "type": "string", "minLength": 1 },
|
|
636
|
+
"origin": {
|
|
637
|
+
"type": "object",
|
|
638
|
+
"additionalProperties": false,
|
|
639
|
+
"required": ["run_id", "task_id", "manifest_path"],
|
|
640
|
+
"properties": {
|
|
641
|
+
"run_id": { "type": "string", "minLength": 1 },
|
|
642
|
+
"task_id": { "type": "string", "minLength": 1 },
|
|
643
|
+
"manifest_path": { "type": "string", "minLength": 1 }
|
|
644
|
+
}
|
|
645
|
+
},
|
|
646
|
+
"inherited_from": {
|
|
647
|
+
"type": ["object", "null"],
|
|
648
|
+
"additionalProperties": false,
|
|
649
|
+
"required": ["run_id", "task_id", "manifest_path"],
|
|
650
|
+
"properties": {
|
|
651
|
+
"run_id": { "type": "string", "minLength": 1 },
|
|
652
|
+
"task_id": { "type": "string", "minLength": 1 },
|
|
653
|
+
"manifest_path": { "type": "string", "minLength": 1 }
|
|
654
|
+
}
|
|
655
|
+
}
|
|
656
|
+
}
|
|
657
|
+
},
|
|
658
|
+
"observability": {
|
|
659
|
+
"type": ["object", "null"],
|
|
660
|
+
"additionalProperties": false,
|
|
661
|
+
"required": [
|
|
662
|
+
"schema_version",
|
|
663
|
+
"recorded_at",
|
|
664
|
+
"selected_memory",
|
|
665
|
+
"rejected_candidates",
|
|
666
|
+
"rediscovered_memory",
|
|
667
|
+
"manual_repairs",
|
|
668
|
+
"counters"
|
|
669
|
+
],
|
|
670
|
+
"properties": {
|
|
671
|
+
"schema_version": { "type": "integer", "minimum": 1 },
|
|
672
|
+
"recorded_at": { "type": "string", "minLength": 1 },
|
|
673
|
+
"selected_memory": {
|
|
674
|
+
"type": "object",
|
|
675
|
+
"additionalProperties": false,
|
|
676
|
+
"required": [
|
|
677
|
+
"selection",
|
|
678
|
+
"pointer",
|
|
679
|
+
"object_id",
|
|
680
|
+
"dir_path",
|
|
681
|
+
"index_path",
|
|
682
|
+
"source_path",
|
|
683
|
+
"created_at",
|
|
684
|
+
"origin",
|
|
685
|
+
"inherited_from"
|
|
686
|
+
],
|
|
687
|
+
"properties": {
|
|
688
|
+
"selection": {
|
|
689
|
+
"type": "string",
|
|
690
|
+
"enum": ["root", "inherited_reuse", "fresh_rebuild"]
|
|
691
|
+
},
|
|
692
|
+
"pointer": { "type": "string", "minLength": 1 },
|
|
693
|
+
"object_id": { "type": "string", "minLength": 1 },
|
|
694
|
+
"dir_path": {
|
|
695
|
+
"type": "string",
|
|
696
|
+
"minLength": 1,
|
|
697
|
+
"pattern": "^(?![A-Za-z]:[\\\\/])(?![\\\\/])(?!.*(?:^|[\\\\/])\\.\\.(?:[\\\\/]|$)).+$"
|
|
698
|
+
},
|
|
699
|
+
"index_path": {
|
|
700
|
+
"type": "string",
|
|
701
|
+
"minLength": 1,
|
|
702
|
+
"pattern": "^(?![A-Za-z]:[\\\\/])(?![\\\\/])(?!.*(?:^|[\\\\/])\\.\\.(?:[\\\\/]|$)).+$"
|
|
703
|
+
},
|
|
704
|
+
"source_path": {
|
|
705
|
+
"type": "string",
|
|
706
|
+
"minLength": 1,
|
|
707
|
+
"pattern": "^(?![A-Za-z]:[\\\\/])(?![\\\\/])(?!.*(?:^|[\\\\/])\\.\\.(?:[\\\\/]|$)).+$"
|
|
708
|
+
},
|
|
709
|
+
"created_at": { "type": "string", "minLength": 1 },
|
|
710
|
+
"origin": {
|
|
711
|
+
"type": "object",
|
|
712
|
+
"additionalProperties": false,
|
|
713
|
+
"required": ["run_id", "task_id", "manifest_path"],
|
|
714
|
+
"properties": {
|
|
715
|
+
"run_id": { "type": "string", "minLength": 1 },
|
|
716
|
+
"task_id": { "type": "string", "minLength": 1 },
|
|
717
|
+
"manifest_path": { "type": "string", "minLength": 1 }
|
|
718
|
+
}
|
|
719
|
+
},
|
|
720
|
+
"inherited_from": {
|
|
721
|
+
"type": ["object", "null"],
|
|
722
|
+
"additionalProperties": false,
|
|
723
|
+
"required": ["run_id", "task_id", "manifest_path"],
|
|
724
|
+
"properties": {
|
|
725
|
+
"run_id": { "type": "string", "minLength": 1 },
|
|
726
|
+
"task_id": { "type": "string", "minLength": 1 },
|
|
727
|
+
"manifest_path": { "type": "string", "minLength": 1 }
|
|
728
|
+
}
|
|
729
|
+
}
|
|
730
|
+
}
|
|
731
|
+
},
|
|
732
|
+
"rejected_candidates": {
|
|
733
|
+
"type": "array",
|
|
734
|
+
"items": {
|
|
735
|
+
"type": "object",
|
|
736
|
+
"additionalProperties": false,
|
|
737
|
+
"required": [
|
|
738
|
+
"pointer",
|
|
739
|
+
"object_id",
|
|
740
|
+
"dir_path",
|
|
741
|
+
"index_path",
|
|
742
|
+
"source_path",
|
|
743
|
+
"created_at",
|
|
744
|
+
"origin",
|
|
745
|
+
"inherited_from",
|
|
746
|
+
"reason",
|
|
747
|
+
"detail"
|
|
748
|
+
],
|
|
749
|
+
"properties": {
|
|
750
|
+
"pointer": { "type": "string", "minLength": 1 },
|
|
751
|
+
"object_id": { "type": "string", "minLength": 1 },
|
|
752
|
+
"dir_path": {
|
|
753
|
+
"type": "string",
|
|
754
|
+
"minLength": 1,
|
|
755
|
+
"pattern": "^(?![A-Za-z]:[\\\\/])(?![\\\\/])(?!.*(?:^|[\\\\/])\\.\\.(?:[\\\\/]|$)).+$"
|
|
756
|
+
},
|
|
757
|
+
"index_path": {
|
|
758
|
+
"type": "string",
|
|
759
|
+
"minLength": 1,
|
|
760
|
+
"pattern": "^(?![A-Za-z]:[\\\\/])(?![\\\\/])(?!.*(?:^|[\\\\/])\\.\\.(?:[\\\\/]|$)).+$"
|
|
761
|
+
},
|
|
762
|
+
"source_path": {
|
|
763
|
+
"type": "string",
|
|
764
|
+
"minLength": 1,
|
|
765
|
+
"pattern": "^(?![A-Za-z]:[\\\\/])(?![\\\\/])(?!.*(?:^|[\\\\/])\\.\\.(?:[\\\\/]|$)).+$"
|
|
766
|
+
},
|
|
767
|
+
"created_at": { "type": "string", "minLength": 1 },
|
|
768
|
+
"origin": {
|
|
769
|
+
"type": "object",
|
|
770
|
+
"additionalProperties": false,
|
|
771
|
+
"required": ["run_id", "task_id", "manifest_path"],
|
|
772
|
+
"properties": {
|
|
773
|
+
"run_id": { "type": "string", "minLength": 1 },
|
|
774
|
+
"task_id": { "type": "string", "minLength": 1 },
|
|
775
|
+
"manifest_path": { "type": "string", "minLength": 1 }
|
|
776
|
+
}
|
|
777
|
+
},
|
|
778
|
+
"inherited_from": {
|
|
779
|
+
"type": ["object", "null"],
|
|
780
|
+
"additionalProperties": false,
|
|
781
|
+
"required": ["run_id", "task_id", "manifest_path"],
|
|
782
|
+
"properties": {
|
|
783
|
+
"run_id": { "type": "string", "minLength": 1 },
|
|
784
|
+
"task_id": { "type": "string", "minLength": 1 },
|
|
785
|
+
"manifest_path": { "type": "string", "minLength": 1 }
|
|
786
|
+
}
|
|
787
|
+
},
|
|
788
|
+
"reason": {
|
|
789
|
+
"type": "string",
|
|
790
|
+
"enum": ["missing_artifacts", "provenance_contradiction"]
|
|
791
|
+
},
|
|
792
|
+
"detail": { "type": ["string", "null"] }
|
|
793
|
+
}
|
|
794
|
+
}
|
|
795
|
+
},
|
|
796
|
+
"rediscovered_memory": {
|
|
797
|
+
"type": ["object", "null"],
|
|
798
|
+
"additionalProperties": false,
|
|
799
|
+
"required": [
|
|
800
|
+
"from_pointer",
|
|
801
|
+
"from_object_id",
|
|
802
|
+
"to_pointer",
|
|
803
|
+
"to_object_id",
|
|
804
|
+
"reason"
|
|
805
|
+
],
|
|
806
|
+
"properties": {
|
|
807
|
+
"from_pointer": { "type": "string", "minLength": 1 },
|
|
808
|
+
"from_object_id": { "type": "string", "minLength": 1 },
|
|
809
|
+
"to_pointer": { "type": "string", "minLength": 1 },
|
|
810
|
+
"to_object_id": { "type": "string", "minLength": 1 },
|
|
811
|
+
"reason": {
|
|
812
|
+
"type": "string",
|
|
813
|
+
"enum": ["missing_artifacts", "provenance_contradiction"]
|
|
814
|
+
}
|
|
815
|
+
}
|
|
816
|
+
},
|
|
817
|
+
"manual_repairs": {
|
|
818
|
+
"type": "array",
|
|
819
|
+
"items": {
|
|
820
|
+
"type": "object",
|
|
821
|
+
"additionalProperties": false,
|
|
822
|
+
"required": ["timestamp", "actor", "reason", "outcome", "detail"],
|
|
823
|
+
"properties": {
|
|
824
|
+
"timestamp": { "type": "string", "minLength": 1 },
|
|
825
|
+
"actor": { "type": "string", "minLength": 1 },
|
|
826
|
+
"reason": { "type": "string", "minLength": 1 },
|
|
827
|
+
"outcome": { "type": "string", "const": "accepted" },
|
|
828
|
+
"detail": { "type": ["string", "null"] }
|
|
829
|
+
}
|
|
830
|
+
}
|
|
831
|
+
},
|
|
832
|
+
"counters": {
|
|
833
|
+
"type": "object",
|
|
834
|
+
"additionalProperties": false,
|
|
835
|
+
"required": [
|
|
836
|
+
"contradiction_count",
|
|
837
|
+
"rediscovery_count",
|
|
838
|
+
"resume_latency_ms",
|
|
839
|
+
"manual_repair_count",
|
|
840
|
+
"repeated_failure_streak",
|
|
841
|
+
"retrieval_hits",
|
|
842
|
+
"retrieval_misses"
|
|
843
|
+
],
|
|
844
|
+
"properties": {
|
|
845
|
+
"contradiction_count": { "type": "integer", "minimum": 0 },
|
|
846
|
+
"rediscovery_count": { "type": "integer", "minimum": 0 },
|
|
847
|
+
"resume_latency_ms": { "type": ["integer", "null"], "minimum": 0 },
|
|
848
|
+
"manual_repair_count": { "type": "integer", "minimum": 0 },
|
|
849
|
+
"repeated_failure_streak": { "type": "integer", "minimum": 0 },
|
|
850
|
+
"retrieval_hits": { "type": "integer", "minimum": 0 },
|
|
851
|
+
"retrieval_misses": { "type": "integer", "minimum": 0 }
|
|
852
|
+
}
|
|
853
|
+
}
|
|
854
|
+
}
|
|
855
|
+
}
|
|
856
|
+
}
|
|
857
|
+
},
|
|
476
858
|
"tfgrpo": {
|
|
477
859
|
"type": ["object", "null"],
|
|
478
860
|
"additionalProperties": false,
|
|
@@ -879,6 +1261,24 @@
|
|
|
879
1261
|
"type": "array",
|
|
880
1262
|
"items": { "type": "string", "minLength": 1 }
|
|
881
1263
|
},
|
|
1264
|
+
"sender_agent_path": { "type": ["string", "null"], "minLength": 1 },
|
|
1265
|
+
"receiver_agent_paths": {
|
|
1266
|
+
"type": ["array", "null"],
|
|
1267
|
+
"items": { "type": "string", "minLength": 1 }
|
|
1268
|
+
},
|
|
1269
|
+
"receiver_agents": {
|
|
1270
|
+
"type": ["array", "null"],
|
|
1271
|
+
"items": {
|
|
1272
|
+
"type": "object",
|
|
1273
|
+
"additionalProperties": false,
|
|
1274
|
+
"properties": {
|
|
1275
|
+
"thread_id": { "type": ["string", "null"], "minLength": 1 },
|
|
1276
|
+
"agent_nickname": { "type": ["string", "null"], "minLength": 1 },
|
|
1277
|
+
"agent_role": { "type": ["string", "null"], "minLength": 1 },
|
|
1278
|
+
"agent_path": { "type": ["string", "null"], "minLength": 1 }
|
|
1279
|
+
}
|
|
1280
|
+
}
|
|
1281
|
+
},
|
|
882
1282
|
"prompt": { "type": ["string", "null"] },
|
|
883
1283
|
"fork_context": { "type": ["boolean", "null"] },
|
|
884
1284
|
"agents_states": {
|
|
@@ -1175,6 +1575,17 @@
|
|
|
1175
1575
|
"notes": { "type": "array", "items": { "type": "string" } }
|
|
1176
1576
|
}
|
|
1177
1577
|
},
|
|
1578
|
+
"providerLinearWorkerTokenUsage": {
|
|
1579
|
+
"type": "object",
|
|
1580
|
+
"required": ["input_tokens", "output_tokens", "total_tokens"],
|
|
1581
|
+
"additionalProperties": false,
|
|
1582
|
+
"properties": {
|
|
1583
|
+
"input_tokens": { "type": ["integer", "null"], "minimum": 0 },
|
|
1584
|
+
"output_tokens": { "type": ["integer", "null"], "minimum": 0 },
|
|
1585
|
+
"total_tokens": { "type": ["integer", "null"], "minimum": 0 },
|
|
1586
|
+
"reasoning_output_tokens": { "type": ["integer", "null"], "minimum": 0 }
|
|
1587
|
+
}
|
|
1588
|
+
},
|
|
1178
1589
|
"designMetrics": {
|
|
1179
1590
|
"type": "object",
|
|
1180
1591
|
"additionalProperties": false,
|
package/skills/README.md
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# Bundled Skills
|
|
2
|
+
|
|
3
|
+
Install bundled skills into `$CODEX_HOME/skills`:
|
|
4
|
+
|
|
5
|
+
```bash
|
|
6
|
+
codex-orchestrator skills install
|
|
7
|
+
```
|
|
8
|
+
|
|
9
|
+
Bundled skills:
|
|
10
|
+
- `agent-first-adoption-steering`
|
|
11
|
+
- `chrome-devtools`
|
|
12
|
+
- `codex-orchestrator`
|
|
13
|
+
- `collab-deliberation`
|
|
14
|
+
- `collab-evals`
|
|
15
|
+
- `collab-subagents-first`
|
|
16
|
+
- `delegate-early`
|
|
17
|
+
- `delegation-usage`
|
|
18
|
+
- `docs-first`
|
|
19
|
+
- `elegance-review`
|
|
20
|
+
- `land`
|
|
21
|
+
- `linear`
|
|
22
|
+
- `long-poll-wait`
|
|
23
|
+
- `release`
|
|
24
|
+
- `standalone-review`
|
|
25
|
+
|
|
26
|
+
Prefer globally installed skills when present, fall back to bundled `skills/<name>/SKILL.md`, and refresh skills after upgrading the npm package when you need new workflow instructions.
|
|
@@ -175,7 +175,7 @@ Do not treat wrapper handoff-only output as a completed review.
|
|
|
175
175
|
- Rebuild managed CLI only (optional): `codex-orchestrator codex setup --source <codex-repo> --yes --force`.
|
|
176
176
|
- Managed routing is explicit opt-in: `export CODEX_CLI_USE_MANAGED=1` (stock/global `codex` remains default otherwise).
|
|
177
177
|
- If local codex is materially behind upstream, sync before diagnosing collab behavior differences.
|
|
178
|
-
- In Codex CLI `0.
|
|
178
|
+
- In Codex CLI `0.124.0`, built-in `explorer` inherits top-level model defaults unless you attach a role `config_file`; reserve spark for optional `[agents.explorer_fast]` file/codebase search only, and use `gpt-5.5` only in validated ChatGPT-auth lanes.
|
|
179
179
|
- For cloud-heavy streams, treat fallback as a safety net only; set `CODEX_ORCHESTRATOR_CLOUD_FALLBACK=deny` in fail-fast lanes.
|
|
180
180
|
- If compatibility remains unstable, continue with non-collab execution path and document the degraded mode.
|
|
181
181
|
|
|
@@ -5,7 +5,7 @@ Use this guide for deeper context on delegation behavior, tool surfaces, and tro
|
|
|
5
5
|
|
|
6
6
|
## Mental model
|
|
7
7
|
|
|
8
|
-
- The delegation MCP server is a local stdio process (`codex-orchestrator delegate-server
|
|
8
|
+
- The delegation MCP server is a local stdio process. Register the direct dist entrypoint (`node /path/to/@kbediako/codex-orchestrator/dist/bin/codex-orchestrator.js delegate-server`); `delegation-server` is still accepted as an alias.
|
|
9
9
|
- It does **not** provide general tools itself; it only exposes `delegate.*` + optional `github.*` tools.
|
|
10
10
|
- Child runs get tools based on `delegate.mode` + `delegate.tool_profile` + repo caps.
|
|
11
11
|
- Delegation MCP stays enabled by default (only MCP on by default); disable it only when required by safety constraints.
|
|
@@ -63,7 +63,7 @@ Fix by re-registering the server with a TOML-quoted override:
|
|
|
63
63
|
codex mcp remove delegation
|
|
64
64
|
codex mcp add delegation \
|
|
65
65
|
--env 'CODEX_MCP_CONFIG_OVERRIDES=delegate.mode="full"' \
|
|
66
|
-
-- codex-orchestrator delegate-server
|
|
66
|
+
-- node /path/to/@kbediako/codex-orchestrator/dist/bin/codex-orchestrator.js delegate-server
|
|
67
67
|
```
|
|
68
68
|
|
|
69
69
|
## Server mode vs child mode (don’t mix them up)
|
|
@@ -108,12 +108,18 @@ If you want deeper recursion or longer wall-clock time for delegated runs, set R
|
|
|
108
108
|
```bash
|
|
109
109
|
codex mcp add delegation \
|
|
110
110
|
--env 'CODEX_MCP_CONFIG_OVERRIDES=rlm.max_subcall_depth=8;rlm.wall_clock_timeout_ms=14400000' \
|
|
111
|
-
-- codex-orchestrator delegate-server
|
|
111
|
+
-- node /path/to/@kbediako/codex-orchestrator/dist/bin/codex-orchestrator.js delegate-server
|
|
112
112
|
```
|
|
113
113
|
|
|
114
114
|
For the `rlm` pipeline specifically, use:
|
|
115
115
|
- `RLM_MAX_MINUTES=240` for a 4-hour cap.
|
|
116
116
|
|
|
117
|
+
If stale delegate-server processes accumulate from prior sessions, remove only the orphaned ones with:
|
|
118
|
+
|
|
119
|
+
```bash
|
|
120
|
+
codex-orchestrator delegation cleanup-stale --yes
|
|
121
|
+
```
|
|
122
|
+
|
|
117
123
|
## delegate.spawn start-only (default)
|
|
118
124
|
|
|
119
125
|
- `delegate.spawn` defaults to `start_only=true` (requires `task_id`).
|
|
@@ -127,7 +133,13 @@ If you need delegation to respect a repo’s `.codex/orchestrator.toml` (e.g., s
|
|
|
127
133
|
|
|
128
134
|
## Version guard (JSONL handshake)
|
|
129
135
|
|
|
130
|
-
Delegation MCP expects JSONL. Keep `codex-orchestrator` aligned with the current
|
|
136
|
+
Delegation MCP expects JSONL. Keep `codex-orchestrator` aligned with the current CO compatibility or adoption target (`codex-cli 0.125.0` for local ChatGPT-auth/appserver posture) unless a task-scoped canary is explicitly evaluating something newer.
|
|
137
|
+
|
|
138
|
+
Current `0.125.0` CO-local posture also confirms that:
|
|
139
|
+
- `codex exec` accepts a prompt argument plus piped stdin, with stdin appended as a `<stdin>` block.
|
|
140
|
+
- `codex login --device-auth` is available for non-browser sign-in fallback.
|
|
141
|
+
- App-server model/list evidence under ChatGPT auth can vary by account; keep `gpt-5.4` only as the fallback packaged default because it may still appear as the app-server `isDefault`.
|
|
142
|
+
- The bundled debug catalog can lag runtime posture briefly, and residual plugin warnings are local temporary plugin cache warnings rather than CO posture failures.
|
|
131
143
|
|
|
132
144
|
- Check: `codex-orchestrator --version`
|
|
133
145
|
- Update global: `npm i -g @kbediako/codex-orchestrator@latest`
|
|
@@ -145,16 +157,22 @@ Delegation MCP expects JSONL. Keep `codex-orchestrator` aligned with the current
|
|
|
145
157
|
- `spawn_agent` omission defaults to `default`; require explicit `agent_type` for every spawn.
|
|
146
158
|
- For symbolic collab runs, include a first-line role tag in spawned prompts: `[agent_type:<role>]`.
|
|
147
159
|
- Multi-turn subagent loops are supported (`spawn_agent` -> `send_input` -> `wait`/`resume_agent` -> `close_agent`).
|
|
148
|
-
- In Codex CLI `0.
|
|
149
|
-
-
|
|
150
|
-
|
|
160
|
+
- In Codex CLI `0.125.0`, built-in `explorer` continues to inherit top-level defaults unless overridden in `~/.codex/config.toml`.
|
|
161
|
+
- Current model posture is `gpt-5.5` / `xhigh` when available in ChatGPT-auth Codex sessions.
|
|
162
|
+
- Portable generated config keeps `gpt-5.4` / `xhigh` as fallback values.
|
|
163
|
+
- Recommended packaged baseline:
|
|
164
|
+
- `model = "gpt-5.4"`
|
|
165
|
+
- `review_model = "gpt-5.4"`
|
|
151
166
|
- `model_reasoning_effort = "xhigh"`
|
|
152
|
-
- `[agents] max_threads = 12` with `max_depth = 4` and `max_spawn_depth
|
|
167
|
+
- For normal `features.multi_agent=true` and older Codex behavior, `[agents] max_threads = 12` is the seeded baseline. For Codex CLI `0.125+` with `features.multi_agent_v2=true`, do not write or recommend `agents.max_threads`; upstream rejects the key, so doctor/default setup must omit it. Keep explicit `max_depth = 4` only when your local Codex parser accepts it, and treat `max_spawn_depth` as a legacy local override rather than current baseline guidance
|
|
153
168
|
- Leave `[agents.explorer]` undefined unless you intentionally want to override built-in explorer behavior.
|
|
154
|
-
- Add optional `[agents.explorer_fast]` for `gpt-5.3-codex-spark` (
|
|
155
|
-
- Add optional `[agents.awaiter]` override for `gpt-5.
|
|
156
|
-
- Add `[agents.worker_complex]` for high-risk edits (`gpt-5.
|
|
157
|
-
-
|
|
169
|
+
- Add optional `[agents.explorer_fast]` for `gpt-5.3-codex-spark` (file/codebase search only).
|
|
170
|
+
- Add optional `[agents.awaiter]` override for `gpt-5.4` + `high` while preserving awaiter instructions.
|
|
171
|
+
- Add `[agents.worker_complex]` for high-risk edits (`gpt-5.4`, `xhigh`).
|
|
172
|
+
- Use `gpt-5.5` for delegated/review surfaces after access smoke validates the local posture; otherwise use the portable `gpt-5.4` fallback defaults.
|
|
173
|
+
- Caveat: app-server `isDefault` may still report `gpt-5.4` even when newer local models are available.
|
|
174
|
+
- Fallback posture is contingency-only and applies only to v1/older configs that still accept thread/depth caps: `8/2` (constrained/high-risk), legacy `6/1/1` break-glass when an older parser/runtime still consumes spawn-depth caps.
|
|
175
|
+
- If native `codex` startup fails with `invalid type: integer ... expected struct AgentRoleToml` under `[agents]`, remove only the live `max_depth` and `max_spawn_depth` keys from `~/.codex/config.toml` and leave the role subtables unchanged.
|
|
158
176
|
|
|
159
177
|
## Common failures
|
|
160
178
|
|
|
@@ -61,9 +61,9 @@ Optional (only if you need it):
|
|
|
61
61
|
- If the task needs external docs or APIs, enable only the relevant MCP server for that environment.
|
|
62
62
|
- If `delegate.spawn` is missing, re-register the MCP server with full mode (server config controls tool surface):
|
|
63
63
|
- `codex mcp remove delegation`
|
|
64
|
-
- `codex mcp add delegation --env 'CODEX_MCP_CONFIG_OVERRIDES=delegate.mode="full"' -- codex-orchestrator delegate-server`
|
|
64
|
+
- `codex mcp add delegation --env 'CODEX_MCP_CONFIG_OVERRIDES=delegate.mode="full"' -- node /path/to/@kbediako/codex-orchestrator/dist/bin/codex-orchestrator.js delegate-server`
|
|
65
65
|
- To raise RLM budgets for delegated runs, re-register with an override (TOML-quoted):
|
|
66
|
-
- `codex mcp add delegation --env 'CODEX_MCP_CONFIG_OVERRIDES=rlm.max_subcall_depth=8;rlm.wall_clock_timeout_ms=14400000' -- codex-orchestrator delegate-server`
|
|
66
|
+
- `codex mcp add delegation --env 'CODEX_MCP_CONFIG_OVERRIDES=rlm.max_subcall_depth=8;rlm.wall_clock_timeout_ms=14400000' -- node /path/to/@kbediako/codex-orchestrator/dist/bin/codex-orchestrator.js delegate-server`
|
|
67
67
|
|
|
68
68
|
For deeper background patterns and troubleshooting, see `DELEGATION_GUIDE.md`.
|
|
69
69
|
For runner + delegation coordination (short `--task` flow), see `docs/delegation-runner-workflow.md`.
|
|
@@ -89,10 +89,12 @@ For runner + delegation coordination (short `--task` flow), see `docs/delegation
|
|
|
89
89
|
- Optional low-friction MCP enable pass: `codex-orchestrator mcp enable --yes`
|
|
90
90
|
- Enables disabled MCP servers from existing Codex config entries (plan mode redacts env/secret values in displayed command lines).
|
|
91
91
|
- `codex-orchestrator delegation setup --yes`
|
|
92
|
-
- Delegation-only setup (
|
|
93
|
-
- `codex mcp add delegation -- codex-orchestrator delegate-server`
|
|
92
|
+
- Delegation-only setup (registers the direct dist transport and keeps wiring discoverable via `codex-orchestrator doctor`).
|
|
93
|
+
- `codex mcp add delegation -- node /path/to/@kbediako/codex-orchestrator/dist/bin/codex-orchestrator.js delegate-server`
|
|
94
94
|
- Optional: append `--repo /path/to/repo` to pin the server to one repo (not recommended if you work across repos).
|
|
95
95
|
- `delegate-server` is the canonical name; `delegation-server` is supported as an alias.
|
|
96
|
+
- `codex-orchestrator delegation cleanup-stale --yes`
|
|
97
|
+
- Safe cleanup for orphaned delegate-server processes that are no longer rooted in a live Codex client.
|
|
96
98
|
- Per-run `-c 'mcp_servers.delegation.enabled=true'` only works **after** registration.
|
|
97
99
|
- If `delegate.*` tools are missing mid-task, start a new run with:
|
|
98
100
|
- `codex -c 'mcp_servers.delegation.enabled=true' ...`
|
|
@@ -103,7 +105,10 @@ For runner + delegation coordination (short `--task` flow), see `docs/delegation
|
|
|
103
105
|
|
|
104
106
|
### 0a) Version guard (JSONL handshake)
|
|
105
107
|
|
|
106
|
-
- Delegation MCP uses JSONL; keep `codex-orchestrator` aligned with the current
|
|
108
|
+
- Delegation MCP uses JSONL; keep `codex-orchestrator` aligned with the current CO compatibility or adoption target (`codex-cli 0.125.0` for local ChatGPT-auth/appserver posture).
|
|
109
|
+
- Current `0.125.0` CO-local posture keeps the onboarding-relevant behaviors from `0.124.0`: `codex exec` accepts a prompt argument plus piped stdin, and `codex login --device-auth` is available for non-browser sign-in fallback.
|
|
110
|
+
- App-server model/list evidence under ChatGPT auth can vary by account; keep `gpt-5.4` only as the fallback packaged default because it may still appear as the app-server `isDefault`.
|
|
111
|
+
- The bundled debug catalog can lag runtime posture briefly, and residual plugin warnings are local temporary plugin cache warnings rather than CO posture failures.
|
|
107
112
|
- Check installed version: `codex-orchestrator --version`
|
|
108
113
|
- Preferred update path: `npm i -g @kbediako/codex-orchestrator@latest`
|
|
109
114
|
- Deterministic pin path (for reproducible environments): `npx -y @kbediako/codex-orchestrator@<version> delegate-server`
|
|
@@ -120,17 +125,23 @@ For runner + delegation coordination (short `--task` flow), see `docs/delegation
|
|
|
120
125
|
- `spawn_agent` omission defaults to `default`; require explicit `agent_type` for every spawn.
|
|
121
126
|
- For symbolic collab runs, include a first-line role tag in spawned prompts: `[agent_type:<role>]`.
|
|
122
127
|
- Multi-turn subagent loops are supported (`spawn_agent` -> `send_input` -> `wait`/`resume_agent` -> `close_agent`).
|
|
123
|
-
- In Codex CLI `0.
|
|
124
|
-
-
|
|
125
|
-
|
|
128
|
+
- In Codex CLI `0.125.0`, built-in `explorer` continues to inherit top-level model defaults unless a role `config_file` overrides it.
|
|
129
|
+
- Current model posture is `gpt-5.5` / `xhigh` when available in ChatGPT-auth Codex sessions.
|
|
130
|
+
- Portable generated config keeps `gpt-5.4` / `xhigh` as fallback values.
|
|
131
|
+
- Recommended packaged baseline in `~/.codex/config.toml`:
|
|
132
|
+
- `model = "gpt-5.4"`
|
|
133
|
+
- `review_model = "gpt-5.4"`
|
|
126
134
|
- `model_reasoning_effort = "xhigh"`
|
|
127
|
-
- `[agents] max_threads = 12` with `max_depth = 4` and `max_spawn_depth
|
|
135
|
+
- For normal `features.multi_agent=true` and older Codex behavior, `[agents] max_threads = 12` is the seeded baseline. For Codex CLI `0.125+` with `features.multi_agent_v2=true`, do not write or recommend `agents.max_threads`; upstream rejects the key, so doctor/default setup must omit it. Keep explicit `max_depth = 4` only when your local Codex parser accepts it, and treat `max_spawn_depth` as a legacy local override rather than current baseline guidance
|
|
128
136
|
- Leave `[agents.explorer]` undefined unless you intentionally want to override built-in explorer behavior
|
|
129
|
-
- Optional `[agents.explorer_fast]` -> `~/.codex/agents/explorer-fast.toml` (`gpt-5.3-codex-spark`,
|
|
130
|
-
- Optional `[agents.awaiter]` override -> `~/.codex/agents/awaiter-high.toml` when you want awaiter at `gpt-5.
|
|
131
|
-
- `[agents.worker_complex]` -> `~/.codex/agents/worker-complex.toml` (`gpt-5.
|
|
132
|
-
-
|
|
133
|
-
-
|
|
137
|
+
- Optional `[agents.explorer_fast]` -> `~/.codex/agents/explorer-fast.toml` (`gpt-5.3-codex-spark`, file/codebase search only)
|
|
138
|
+
- Optional `[agents.awaiter]` override -> `~/.codex/agents/awaiter-high.toml` when you want awaiter at `gpt-5.4` + `high` while preserving awaiter instructions
|
|
139
|
+
- `[agents.worker_complex]` -> `~/.codex/agents/worker-complex.toml` (`gpt-5.4`, `xhigh`)
|
|
140
|
+
- Use `gpt-5.5` for delegated/review surfaces when access smoke validates current ChatGPT-auth/appserver availability; otherwise use the portable `gpt-5.4` fallback defaults.
|
|
141
|
+
- Caveat: app-server `isDefault` may still report `gpt-5.4` even when newer local models are available.
|
|
142
|
+
- Fallback posture is contingency-only and applies only to v1/older configs that still accept thread/depth caps: `8/2` for constrained/high-risk lanes, legacy `6/1/1` as break-glass when an older parser/runtime still consumes spawn-depth caps.
|
|
143
|
+
- Downstream users should converge on this baseline via `codex-orchestrator init codex`; when `features.multi_agent_v2=true`, init/default setup must omit `agents.max_threads`.
|
|
144
|
+
- If native `codex` startup fails with `invalid type: integer ... expected struct AgentRoleToml` under `[agents]`, remove only the live `max_depth` and `max_spawn_depth` keys from `~/.codex/config.toml` and leave the role subtables unchanged.
|
|
134
145
|
|
|
135
146
|
### 0b) Background terminal bootstrap (required when MCP is disabled)
|
|
136
147
|
|