@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.
Files changed (311) hide show
  1. package/.agents/plugins/marketplace.json +20 -0
  2. package/README.md +46 -317
  3. package/bin/codex-orchestrator.js +161 -0
  4. package/codex.orchestrator.json +149 -13
  5. package/dist/bin/codex-orchestrator.js +797 -1154
  6. package/dist/orchestrator/src/cli/adapters/CommandBuilder.js +50 -0
  7. package/dist/orchestrator/src/cli/adapters/CommandPlanner.js +22 -4
  8. package/dist/orchestrator/src/cli/adapters/CommandReviewer.js +3 -3
  9. package/dist/orchestrator/src/cli/adapters/CommandTester.js +2 -2
  10. package/dist/orchestrator/src/cli/adapters/cloudFailureDiagnostics.js +295 -11
  11. package/dist/orchestrator/src/cli/coStatusAttachCliShell.js +402 -0
  12. package/dist/orchestrator/src/cli/coStatusCliShell.js +451 -0
  13. package/dist/orchestrator/src/cli/coStatusOperatorAutopilotCliShell.js +120 -0
  14. package/dist/orchestrator/src/cli/codexCliShell.js +119 -0
  15. package/dist/orchestrator/src/cli/codexDefaultsSetup.js +265 -36
  16. package/dist/orchestrator/src/cli/config/delegationConfig.js +317 -5
  17. package/dist/orchestrator/src/cli/config/repoConfigPolicy.js +2 -3
  18. package/dist/orchestrator/src/cli/config/userConfig.js +28 -13
  19. package/dist/orchestrator/src/cli/control/authenticatedControlRouteGate.js +69 -0
  20. package/dist/orchestrator/src/cli/control/authenticatedRouteComposition.js +267 -0
  21. package/dist/orchestrator/src/cli/control/authenticatedRouteController.js +5 -0
  22. package/dist/orchestrator/src/cli/control/authenticatedRouteDispatcher.js +41 -0
  23. package/dist/orchestrator/src/cli/control/compatibilityIssuePresenter.js +1035 -0
  24. package/dist/orchestrator/src/cli/control/confirmationApproveController.js +62 -0
  25. package/dist/orchestrator/src/cli/control/confirmationCreateController.js +69 -0
  26. package/dist/orchestrator/src/cli/control/confirmationIssueConsumeController.js +43 -0
  27. package/dist/orchestrator/src/cli/control/confirmationListController.js +22 -0
  28. package/dist/orchestrator/src/cli/control/confirmationValidateController.js +58 -0
  29. package/dist/orchestrator/src/cli/control/confirmations.js +25 -3
  30. package/dist/orchestrator/src/cli/control/controlActionCancelConfirmation.js +65 -0
  31. package/dist/orchestrator/src/cli/control/controlActionController.js +77 -0
  32. package/dist/orchestrator/src/cli/control/controlActionControllerSequencing.js +161 -0
  33. package/dist/orchestrator/src/cli/control/controlActionExecution.js +142 -0
  34. package/dist/orchestrator/src/cli/control/controlActionFinalization.js +43 -0
  35. package/dist/orchestrator/src/cli/control/controlActionOutcome.js +60 -0
  36. package/dist/orchestrator/src/cli/control/controlActionPreflight.js +476 -0
  37. package/dist/orchestrator/src/cli/control/controlAuthenticatedRouteHandoff.js +57 -0
  38. package/dist/orchestrator/src/cli/control/controlBootstrapAssembly.js +39 -0
  39. package/dist/orchestrator/src/cli/control/controlBootstrapMetadataPersistence.js +16 -0
  40. package/dist/orchestrator/src/cli/control/controlEventTransport.js +49 -0
  41. package/dist/orchestrator/src/cli/control/controlExpiryLifecycle.js +102 -0
  42. package/dist/orchestrator/src/cli/control/controlHostOwnership.js +480 -0
  43. package/dist/orchestrator/src/cli/control/controlHostSupervision.js +630 -0
  44. package/dist/orchestrator/src/cli/control/controlOversightFacade.js +8 -0
  45. package/dist/orchestrator/src/cli/control/controlOversightReadContract.js +1 -0
  46. package/dist/orchestrator/src/cli/control/controlOversightReadService.js +16 -0
  47. package/dist/orchestrator/src/cli/control/controlOversightUpdateContract.js +1 -0
  48. package/dist/orchestrator/src/cli/control/controlPersistenceFiles.js +6 -0
  49. package/dist/orchestrator/src/cli/control/controlQuestionChildResolution.js +18 -0
  50. package/dist/orchestrator/src/cli/control/controlRequestContext.js +42 -0
  51. package/dist/orchestrator/src/cli/control/controlRequestController.js +9 -0
  52. package/dist/orchestrator/src/cli/control/controlRequestPredispatch.js +17 -0
  53. package/dist/orchestrator/src/cli/control/controlRequestRouteDispatch.js +44 -0
  54. package/dist/orchestrator/src/cli/control/controlRuntime.js +1003 -0
  55. package/dist/orchestrator/src/cli/control/controlServer.js +23 -1456
  56. package/dist/orchestrator/src/cli/control/controlServerAuditAndErrorHelpers.js +115 -0
  57. package/dist/orchestrator/src/cli/control/controlServerAuthenticatedRouteBranch.js +29 -0
  58. package/dist/orchestrator/src/cli/control/controlServerBootstrapLifecycle.js +30 -0
  59. package/dist/orchestrator/src/cli/control/controlServerBootstrapStartSequence.js +21 -0
  60. package/dist/orchestrator/src/cli/control/controlServerOwnedRuntimeLifecycle.js +67 -0
  61. package/dist/orchestrator/src/cli/control/controlServerPublicLifecycle.js +756 -0
  62. package/dist/orchestrator/src/cli/control/controlServerPublicRouteHelpers.js +86 -0
  63. package/dist/orchestrator/src/cli/control/controlServerReadyInstanceLifecycle.js +25 -0
  64. package/dist/orchestrator/src/cli/control/controlServerReadyInstanceStartup.js +18 -0
  65. package/dist/orchestrator/src/cli/control/controlServerRequestBodyHelpers.js +37 -0
  66. package/dist/orchestrator/src/cli/control/controlServerRequestShell.js +40 -0
  67. package/dist/orchestrator/src/cli/control/controlServerRequestShellBinding.js +17 -0
  68. package/dist/orchestrator/src/cli/control/controlServerSeedLoading.js +27 -0
  69. package/dist/orchestrator/src/cli/control/controlServerSeededRuntimeAssembly.js +186 -0
  70. package/dist/orchestrator/src/cli/control/controlServerStartupInputPreparation.js +31 -0
  71. package/dist/orchestrator/src/cli/control/controlServerStartupSequence.js +49 -0
  72. package/dist/orchestrator/src/cli/control/controlState.js +233 -2
  73. package/dist/orchestrator/src/cli/control/controlStatusDashboard.js +1904 -0
  74. package/dist/orchestrator/src/cli/control/controlTelegramBridgeBootstrapLifecycle.js +22 -0
  75. package/dist/orchestrator/src/cli/control/controlTelegramBridgeLifecycle.js +67 -0
  76. package/dist/orchestrator/src/cli/control/controlTelegramBridgeOversightFacadeFactory.js +8 -0
  77. package/dist/orchestrator/src/cli/control/controlTelegramCommandController.js +49 -0
  78. package/dist/orchestrator/src/cli/control/controlTelegramDispatchRead.js +40 -0
  79. package/dist/orchestrator/src/cli/control/controlTelegramPollingController.js +89 -0
  80. package/dist/orchestrator/src/cli/control/controlTelegramProjectionNotificationController.js +29 -0
  81. package/dist/orchestrator/src/cli/control/controlTelegramPushState.js +63 -0
  82. package/dist/orchestrator/src/cli/control/controlTelegramQuestionRead.js +13 -0
  83. package/dist/orchestrator/src/cli/control/controlTelegramReadController.js +216 -0
  84. package/dist/orchestrator/src/cli/control/controlTelegramUpdateHandler.js +63 -0
  85. package/dist/orchestrator/src/cli/control/controlWatcher.js +73 -5
  86. package/dist/orchestrator/src/cli/control/delegationRegisterController.js +35 -0
  87. package/dist/orchestrator/src/cli/control/dynamicToolBridgePolicy.js +139 -0
  88. package/dist/orchestrator/src/cli/control/eventsSseController.js +12 -0
  89. package/dist/orchestrator/src/cli/control/linearBudgetState.js +1789 -0
  90. package/dist/orchestrator/src/cli/control/linearDispatchSource.js +1137 -0
  91. package/dist/orchestrator/src/cli/control/linearGraphqlClient.js +150 -0
  92. package/dist/orchestrator/src/cli/control/linearRateLimit.js +102 -0
  93. package/dist/orchestrator/src/cli/control/linearWebhookController.js +499 -0
  94. package/dist/orchestrator/src/cli/control/liveLinearAdvisoryRuntime.js +70 -0
  95. package/dist/orchestrator/src/cli/control/observabilityApiController.js +173 -0
  96. package/dist/orchestrator/src/cli/control/observabilityReadModel.js +500 -0
  97. package/dist/orchestrator/src/cli/control/observabilitySurface.js +284 -0
  98. package/dist/orchestrator/src/cli/control/observabilityUpdateNotifier.js +22 -0
  99. package/dist/orchestrator/src/cli/control/operatorDashboardPresenter.js +252 -0
  100. package/dist/orchestrator/src/cli/control/providerAgentCapacity.js +70 -0
  101. package/dist/orchestrator/src/cli/control/providerControlHostFreshnessGauge.js +1068 -0
  102. package/dist/orchestrator/src/cli/control/providerIntakeState.js +473 -0
  103. package/dist/orchestrator/src/cli/control/providerIssueHandoff.js +6811 -0
  104. package/dist/orchestrator/src/cli/control/providerIssueObservability.js +1348 -0
  105. package/dist/orchestrator/src/cli/control/providerIssueRetryQueue.js +84 -0
  106. package/dist/orchestrator/src/cli/control/providerLinearRuntimeProof.js +588 -0
  107. package/dist/orchestrator/src/cli/control/providerLinearScreenshotProof.js +473 -0
  108. package/dist/orchestrator/src/cli/control/providerLinearWorkerTruth.js +383 -0
  109. package/dist/orchestrator/src/cli/control/providerLinearWorkflowAudit.js +254 -0
  110. package/dist/orchestrator/src/cli/control/providerLinearWorkflowFacade.js +5573 -0
  111. package/dist/orchestrator/src/cli/control/providerLinearWorkflowStates.js +115 -0
  112. package/dist/orchestrator/src/cli/control/providerMergeCloseout.js +1868 -0
  113. package/dist/orchestrator/src/cli/control/providerOperatorAutopilot.js +1580 -0
  114. package/dist/orchestrator/src/cli/control/providerOperatorAutopilotLifecycle.js +154 -0
  115. package/dist/orchestrator/src/cli/control/providerOperatorAutopilotLocalRolloutExecution.js +1006 -0
  116. package/dist/orchestrator/src/cli/control/providerPollingHealth.js +435 -0
  117. package/dist/orchestrator/src/cli/control/providerTerminalCleanup.js +516 -0
  118. package/dist/orchestrator/src/cli/control/providerWorkerHosts.js +191 -0
  119. package/dist/orchestrator/src/cli/control/providerWorkflowConfigStore.js +515 -0
  120. package/dist/orchestrator/src/cli/control/questionChildResolutionAdapter.js +361 -0
  121. package/dist/orchestrator/src/cli/control/questionQueueController.js +181 -0
  122. package/dist/orchestrator/src/cli/control/questionReadRetryDeduplication.js +9 -0
  123. package/dist/orchestrator/src/cli/control/questionReadSequence.js +10 -0
  124. package/dist/orchestrator/src/cli/control/securityViolationController.js +27 -0
  125. package/dist/orchestrator/src/cli/control/selectedRunProjection.js +1885 -0
  126. package/dist/orchestrator/src/cli/control/telegramOversightApiClient.js +48 -0
  127. package/dist/orchestrator/src/cli/control/telegramOversightBridge.js +180 -0
  128. package/dist/orchestrator/src/cli/control/telegramOversightBridgeProjectionDeliveryQueue.js +25 -0
  129. package/dist/orchestrator/src/cli/control/telegramOversightBridgeRuntimeLifecycle.js +45 -0
  130. package/dist/orchestrator/src/cli/control/telegramOversightBridgeStateStore.js +77 -0
  131. package/dist/orchestrator/src/cli/control/telegramOversightControlActionApiClient.js +45 -0
  132. package/dist/orchestrator/src/cli/control/trackerDispatchPilot.js +439 -0
  133. package/dist/orchestrator/src/cli/control/uiDataController.js +34 -0
  134. package/dist/orchestrator/src/cli/control/uiSessionController.js +100 -0
  135. package/dist/orchestrator/src/cli/controlHostCliShell.js +860 -0
  136. package/dist/orchestrator/src/cli/controlHostFreshnessGaugeCliShell.js +129 -0
  137. package/dist/orchestrator/src/cli/controlHostSupervisionCliShell.js +2127 -0
  138. package/dist/orchestrator/src/cli/delegationCliShell.js +62 -0
  139. package/dist/orchestrator/src/cli/delegationServer.js +567 -678
  140. package/dist/orchestrator/src/cli/delegationServerCliShell.js +52 -0
  141. package/dist/orchestrator/src/cli/delegationServerQuestionFlowShell.js +228 -0
  142. package/dist/orchestrator/src/cli/delegationServerToolDispatchShell.js +411 -0
  143. package/dist/orchestrator/src/cli/delegationServerTransport.js +274 -0
  144. package/dist/orchestrator/src/cli/delegationSetup.js +51 -171
  145. package/dist/orchestrator/src/cli/devtoolsCliShell.js +34 -0
  146. package/dist/orchestrator/src/cli/doctor.js +678 -164
  147. package/dist/orchestrator/src/cli/doctorCliRequestShell.js +72 -0
  148. package/dist/orchestrator/src/cli/doctorCliShell.js +138 -0
  149. package/dist/orchestrator/src/cli/doctorUsage.js +119 -15
  150. package/dist/orchestrator/src/cli/exec/experience.js +16 -2
  151. package/dist/orchestrator/src/cli/exec/summary.js +3 -0
  152. package/dist/orchestrator/src/cli/execCliShell.js +51 -0
  153. package/dist/orchestrator/src/cli/flowCliRequestShell.js +44 -0
  154. package/dist/orchestrator/src/cli/flowCliShell.js +239 -0
  155. package/dist/orchestrator/src/cli/frontendTestCliRequestShell.js +80 -0
  156. package/dist/orchestrator/src/cli/frontendTestCliShell.js +41 -0
  157. package/dist/orchestrator/src/cli/init.js +95 -1
  158. package/dist/orchestrator/src/cli/initCliShell.js +50 -0
  159. package/dist/orchestrator/src/cli/linearCliShell.js +1200 -0
  160. package/dist/orchestrator/src/cli/mcpEnableCliShell.js +132 -0
  161. package/dist/orchestrator/src/cli/metrics/metricsAggregator.js +3 -2
  162. package/dist/orchestrator/src/cli/metrics/metricsRecorder.js +56 -0
  163. package/dist/orchestrator/src/cli/orchestrator.js +66 -1376
  164. package/dist/orchestrator/src/cli/planCliShell.js +19 -0
  165. package/dist/orchestrator/src/cli/prCliShell.js +41 -0
  166. package/dist/orchestrator/src/cli/providerLinearChildLanePhaseContract.js +204 -0
  167. package/dist/orchestrator/src/cli/providerLinearChildLaneRunner.js +1835 -0
  168. package/dist/orchestrator/src/cli/providerLinearChildLaneShell.js +2420 -0
  169. package/dist/orchestrator/src/cli/providerLinearChildStreamShell.js +385 -0
  170. package/dist/orchestrator/src/cli/providerLinearWorkerRunner.js +6834 -0
  171. package/dist/orchestrator/src/cli/resumeCliShell.js +14 -0
  172. package/dist/orchestrator/src/cli/reviewCliLaunchShell.js +72 -0
  173. package/dist/orchestrator/src/cli/rlm/alignment.js +3 -3
  174. package/dist/orchestrator/src/cli/rlm/context.js +94 -7
  175. package/dist/orchestrator/src/cli/rlm/rlmCodexRuntimeShell.js +546 -0
  176. package/dist/orchestrator/src/cli/rlm/symbolic.js +4 -2
  177. package/dist/orchestrator/src/cli/rlmCliRequestShell.js +42 -0
  178. package/dist/orchestrator/src/cli/rlmCompletionCliShell.js +46 -0
  179. package/dist/orchestrator/src/cli/rlmLaunchCliShell.js +51 -0
  180. package/dist/orchestrator/src/cli/rlmRunner.js +83 -523
  181. package/dist/orchestrator/src/cli/run/blockMemory.js +500 -0
  182. package/dist/orchestrator/src/cli/run/manifest.js +410 -73
  183. package/dist/orchestrator/src/cli/run/manifestPersister.js +45 -14
  184. package/dist/orchestrator/src/cli/run/runMemoryController.js +216 -0
  185. package/dist/orchestrator/src/cli/run/source0.js +690 -0
  186. package/dist/orchestrator/src/cli/run/workspacePath.js +101 -0
  187. package/dist/orchestrator/src/cli/runtime/mode.js +2 -1
  188. package/dist/orchestrator/src/cli/runtime/provider.js +39 -2
  189. package/dist/orchestrator/src/cli/selfCheckCliShell.js +12 -0
  190. package/dist/orchestrator/src/cli/services/commandRunner.js +698 -18
  191. package/dist/orchestrator/src/cli/services/execRuntime.js +66 -1
  192. package/dist/orchestrator/src/cli/services/orchestratorAutoScoutEvidenceRecorder.js +71 -0
  193. package/dist/orchestrator/src/cli/services/orchestratorCloudBranchResolution.js +8 -0
  194. package/dist/orchestrator/src/cli/services/orchestratorCloudEnvironmentResolution.js +22 -0
  195. package/dist/orchestrator/src/cli/services/orchestratorCloudExecutionLifecycleShell.js +39 -0
  196. package/dist/orchestrator/src/cli/services/orchestratorCloudPromptBuilder.js +37 -0
  197. package/dist/orchestrator/src/cli/services/orchestratorCloudRouteFallbackContract.js +45 -0
  198. package/dist/orchestrator/src/cli/services/orchestratorCloudRouteShell.js +36 -0
  199. package/dist/orchestrator/src/cli/services/orchestratorCloudTargetExecutor.js +277 -0
  200. package/dist/orchestrator/src/cli/services/orchestratorControlPlaneLifecycle.js +98 -0
  201. package/dist/orchestrator/src/cli/services/orchestratorControlPlaneLifecycleShell.js +54 -0
  202. package/dist/orchestrator/src/cli/services/orchestratorExecutionLifecycle.js +112 -0
  203. package/dist/orchestrator/src/cli/services/orchestratorExecutionModePolicy.js +27 -0
  204. package/dist/orchestrator/src/cli/services/orchestratorExecutionRouteAdapterShell.js +59 -0
  205. package/dist/orchestrator/src/cli/services/orchestratorExecutionRouteDecisionShell.js +57 -0
  206. package/dist/orchestrator/src/cli/services/orchestratorExecutionRouteState.js +21 -0
  207. package/dist/orchestrator/src/cli/services/orchestratorExecutionRouter.js +2 -0
  208. package/dist/orchestrator/src/cli/services/orchestratorLocalPipelineExecutor.js +149 -0
  209. package/dist/orchestrator/src/cli/services/orchestratorLocalRouteShell.js +63 -0
  210. package/dist/orchestrator/src/cli/services/orchestratorPlanShell.js +54 -0
  211. package/dist/orchestrator/src/cli/services/orchestratorPlanTargetTracker.js +16 -0
  212. package/dist/orchestrator/src/cli/services/orchestratorResumePreparationShell.js +84 -0
  213. package/dist/orchestrator/src/cli/services/orchestratorResumeTokenValidation.js +15 -0
  214. package/dist/orchestrator/src/cli/services/orchestratorRunLifecycleCompletion.js +31 -0
  215. package/dist/orchestrator/src/cli/services/orchestratorRunLifecycleExecutionRegistration.js +37 -0
  216. package/dist/orchestrator/src/cli/services/orchestratorRunLifecycleOrchestrationShell.js +83 -0
  217. package/dist/orchestrator/src/cli/services/orchestratorRunLifecycleTaskManagerShell.js +37 -0
  218. package/dist/orchestrator/src/cli/services/orchestratorRuntimeManifestMutation.js +20 -0
  219. package/dist/orchestrator/src/cli/services/orchestratorStartPreparationShell.js +56 -0
  220. package/dist/orchestrator/src/cli/services/orchestratorStatusShell.js +70 -0
  221. package/dist/orchestrator/src/cli/services/pipelineResolver.js +7 -3
  222. package/dist/orchestrator/src/cli/services/plannerMemory.js +119 -0
  223. package/dist/orchestrator/src/cli/services/runPreparation.js +7 -3
  224. package/dist/orchestrator/src/cli/services/runSummaryWriter.js +9 -0
  225. package/dist/orchestrator/src/cli/setupBootstrapShell.js +114 -0
  226. package/dist/orchestrator/src/cli/setupCliShell.js +51 -0
  227. package/dist/orchestrator/src/cli/skillsCliShell.js +56 -0
  228. package/dist/orchestrator/src/cli/startCliRequestShell.js +53 -0
  229. package/dist/orchestrator/src/cli/startCliShell.js +68 -0
  230. package/dist/orchestrator/src/cli/statusCliShell.js +22 -0
  231. package/dist/orchestrator/src/cli/utils/authProvenanceFingerprint.js +27 -0
  232. package/dist/orchestrator/src/cli/utils/cloudPreflight.js +285 -7
  233. package/dist/orchestrator/src/cli/utils/codexFeatures.js +60 -0
  234. package/dist/orchestrator/src/cli/utils/delegationConfigParser.js +250 -0
  235. package/dist/orchestrator/src/cli/utils/delegationMcpHealth.js +1382 -0
  236. package/dist/orchestrator/src/cli/utils/devtools.js +2 -54
  237. package/dist/orchestrator/src/cli/utils/mcpServerEntry.js +53 -0
  238. package/dist/orchestrator/src/cli/utils/packageProgramResolver.js +151 -0
  239. package/dist/orchestrator/src/cli/utils/providerOverrideEnv.js +71 -0
  240. package/dist/orchestrator/src/cli/utils/trailingJsonObject.js +59 -0
  241. package/dist/orchestrator/src/learning/crystalizer.js +2 -2
  242. package/dist/orchestrator/src/manager.js +74 -4
  243. package/dist/orchestrator/src/persistence/ExperienceStore.js +233 -49
  244. package/dist/orchestrator/src/persistence/TaskStateStore.js +6 -6
  245. package/dist/orchestrator/src/persistence/lockFile.js +70 -4
  246. package/dist/orchestrator/src/persistence/sanitizeIdentifier.js +39 -0
  247. package/dist/orchestrator/src/sync/createCloudSyncWorker.js +3 -2
  248. package/dist/orchestrator/src/utils/atomicWrite.js +17 -2
  249. package/dist/packages/orchestrator/src/exec/unified-exec.js +99 -6
  250. package/dist/packages/orchestrator/src/instructions/promptPacks.js +150 -19
  251. package/dist/packages/sdk-node/src/orchestrator.js +137 -13
  252. package/dist/packages/shared/config/designConfig.js +8 -1
  253. package/dist/packages/shared/streams/stdio.js +1 -1
  254. package/dist/scripts/design/pipeline/permit.js +15 -0
  255. package/dist/scripts/lib/docs-catalog.js +399 -0
  256. package/dist/scripts/lib/docs-helpers.js +87 -5
  257. package/dist/scripts/lib/pr-watch-merge.js +1088 -80
  258. package/dist/scripts/lib/provider-run-contract.js +26 -0
  259. package/dist/scripts/lib/review-command-intent-classification.js +532 -0
  260. package/dist/scripts/lib/review-command-probe-classification.js +385 -0
  261. package/dist/scripts/lib/review-execution-boundary-preflight.js +279 -0
  262. package/dist/scripts/lib/review-execution-runtime.js +753 -0
  263. package/dist/scripts/lib/review-execution-state.js +1144 -0
  264. package/dist/scripts/lib/review-execution-telemetry.js +215 -0
  265. package/dist/scripts/lib/review-inspection-target-parsing.js +78 -0
  266. package/dist/scripts/lib/review-launch-attempt.js +601 -0
  267. package/dist/scripts/lib/review-meta-surface-boundary-analysis.js +300 -0
  268. package/dist/scripts/lib/review-meta-surface-normalization.js +746 -0
  269. package/dist/scripts/lib/review-non-interactive-handoff.js +61 -0
  270. package/dist/scripts/lib/review-prompt-context.js +376 -0
  271. package/dist/scripts/lib/review-scope-advisory.js +286 -0
  272. package/dist/scripts/lib/review-scope-paths.js +123 -0
  273. package/dist/scripts/lib/review-shell-command-parser.js +389 -0
  274. package/dist/scripts/lib/review-shell-env-interpreter.js +340 -0
  275. package/dist/scripts/lib/run-manifests.js +192 -36
  276. package/dist/scripts/lib/spark-policy-classifier.js +593 -0
  277. package/dist/scripts/run-review.js +507 -1777
  278. package/docs/README.md +43 -20
  279. package/docs/book/README.md +19 -0
  280. package/docs/book/codex-cli-0124-adoption.md +68 -0
  281. package/docs/book/local-hook-impact.md +73 -0
  282. package/docs/book/operations.md +60 -0
  283. package/docs/book/public-posture.md +34 -0
  284. package/docs/book/setup.md +91 -0
  285. package/docs/book/skills.md +11 -0
  286. package/docs/guides/codex-version-policy.md +104 -0
  287. package/docs/public/downstream-setup.md +113 -0
  288. package/docs/public/provider-onboarding.md +173 -0
  289. package/package.json +23 -10
  290. package/plugins/codex-orchestrator/.codex-plugin/plugin.json +30 -0
  291. package/plugins/codex-orchestrator/.mcp.json +13 -0
  292. package/plugins/codex-orchestrator/launcher.mjs +361 -0
  293. package/schemas/manifest.json +411 -0
  294. package/skills/README.md +26 -0
  295. package/skills/collab-subagents-first/SKILL.md +1 -1
  296. package/skills/delegation-usage/DELEGATION_GUIDE.md +30 -12
  297. package/skills/delegation-usage/SKILL.md +25 -14
  298. package/skills/land/SKILL.md +77 -0
  299. package/skills/linear/SKILL.md +255 -0
  300. package/skills/release/SKILL.md +47 -3
  301. package/skills/standalone-review/SKILL.md +6 -1
  302. package/templates/README.md +4 -2
  303. package/templates/codex/.codex/agents/awaiter-high.toml +2 -2
  304. package/templates/codex/.codex/agents/worker-complex.toml +1 -1
  305. package/templates/codex/.codex/config.toml +3 -4
  306. package/templates/codex/.codex/providers/README.md +13 -0
  307. package/templates/codex/.codex/providers/control.example.json +18 -0
  308. package/templates/codex/.codex/providers/provider.env.example +15 -0
  309. package/templates/codex/AGENTS.md +15 -8
  310. package/templates/codex/mcp-client.json +5 -1
  311. package/docs/assets/setup.gif +0 -0
@@ -0,0 +1,104 @@
1
+ # Codex Version Policy (CO)
2
+
3
+ ## Purpose
4
+ Define the current stable compatibility/adoption target for CO and keep newer CLI/model moves evidence-gated.
5
+
6
+ ## Current Posture
7
+ - Current CO-local ChatGPT-auth/appserver model posture is `gpt-5.5` / `xhigh` on Codex CLI `0.125.0` when live access smoke passes. CO-352 adopted that posture after local top-level, delegated, review-wrapper fallback, and runtime evidence passed.
8
+ - Current release-facing package/downstream-smoke compatibility target is Codex CLI `0.125.0`. CO-355 rebaselined marketplace/downstream-smoke compatibility to `0.125.0`, and current release-facing workflows (`core-lane`, `release`, and `pack-smoke-backstop`) already pin `@openai/codex@0.125.0`.
9
+ - Current cloud execution candidate remains Codex CLI `0.124.0`. The configured environment id failure remains a cloud-only blocker for `cloud-canary` promotion; it does not roll back the validated local ChatGPT-auth appserver/model posture or the separate `0.125.0` release-facing package/downstream-smoke pack-smoke contract.
10
+ - Latest app-server control-seam candidate audited by CO-351 is Codex CLI `0.125.0`; CO-351 approves explicit task-scoped control-host/proof use of the 0.125 app-server seam after local transport/schema/proxy/config/permission-profile/untrusted-config/resume-fork metadata/WebSocket checks passed. This is the accepted re-scoped adoption direction for those proven control/proof surfaces, not a blanket HOLD; it does not promote `0.125.0` as the provider runtime, provider supervision, cloud execution target, or `cloud-canary` target, and provider supervision remains gated on sticky environments, real turn-backed pagination, runtime-mode, and cloud evidence.
11
+ - Marketplace/downstream-smoke compatibility is separately rebaselined to Codex CLI `0.125.0` by CO-355 for the package-smoke contract only. Release-facing downstream-smoke workflows (`core-lane`, `release`, and `pack-smoke-backstop`) pin `@openai/codex@0.125.0` because `scripts/pack-smoke.mjs` now verifies current `codex plugin marketplace add`, `upgrade`, and `remove` support while preserving the older top-level `codex marketplace add` fallback for supported legacy pins. This is not a broad `0.125.0` active-posture, provider-runtime, provider-supervision, or `cloud-canary` promotion; those still require the runtime-mode and cloud evidence gates below.
12
+ - `cloud-canary` pins `@openai/codex@0.124.0` as the explicit cloud execution candidate.
13
+ - The current `0.125.0` local CLI/package posture keeps the previously recorded onboarding-sensitive help guarantees: `codex exec` accepts a prompt argument plus piped stdin (stdin appends as a `<stdin>` block), `codex login --device-auth` is available, and `codex review --help` exposes `[PROMPT]` alongside `--uncommitted` / `--base` / `--commit`.
14
+ - Current model posture is `gpt-5.5` / `xhigh` when available in ChatGPT-auth Codex sessions.
15
+ - Portable packaged/generated defaults still keep `gpt-5.4` / `xhigh` as fallback values when `gpt-5.5`, API/cloud portability, or downstream/no-network access is unavailable.
16
+ - CO-local `gpt-5.5` / `xhigh` configuration is the current ChatGPT-auth/appserver posture after live app-server/model smoke evidence; this is not a claim that every auth provider or cloud surface can select `gpt-5.5`.
17
+ - `codex-orchestrator doctor` treats `gpt-5.5` as non-drift when `codex debug models` verifies current model access. Additive defaults keep fresh implicit configs on portable fallback values; `--auth-scope chatgpt` writes current ChatGPT-auth/appserver defaults after live access smoke, and compatible prior `gpt-5.5` role files remain preserved without marker metadata.
18
+ - Keep `explorer_fast` as the only explicit `gpt-5.3-codex-spark` exception for file/codebase search only. CO-352 found `gpt-5.3-codex-spark` in the live `0.125.0` catalog but not in the bundled catalog, so no downstream/no-network role change is justified.
19
+ - For delegated/review surfaces, use `gpt-5.5` after local smoke or fresh provider-lane evidence validates that access; fall back to `gpt-5.4` only on concrete access failure.
20
+ - App-server `model/list` still reports `gpt-5.4` as `isDefault=true`; CO-341 has live app-server `model/list` plus `codex exec` evidence that explicit local `gpt-5.5` supports `xhigh`.
21
+ - The bundled debug model catalog may lag the live app-server catalog; use live app-server `model/list` and live exec evidence as the source of truth for model availability decisions.
22
+ - Residual plugin warnings seen during CO-341 came from local temporary plugin cache state, not CO-owned plugin manifests.
23
+ - CO-341 reran `node scripts/runtime-mode-canary.mjs` after `npm run build`; all scenario checks passed in `out/linear-4a684a5e-64b0-47fb-835a-d792eba29071/manual/runtime-mode-canary/post-build/runtime-mode-canary.log`, and both required cloud and fallback cloud contracts passed on the branch.
24
+ - Newer stable/prerelease Codex builds may run only in task-scoped lanes with captured evidence.
25
+ - Local appserver remains the expected default runtime path after the `CO-22` canary.
26
+ - Provider workers must keep `codex exec` / `codex exec resume` as the rollback supervision seam and must not adopt `0.125.0` app-server for provider runtime or local runtime operations until the required promotion gates pass. The proven `0.125.0` surfaces are limited to explicit control-host/proof use.
27
+ - Codex CLI `0.125.0` app-server Unix socket/proxy support is approved for guarded CO control proof usage. Local help and upstream tagged README document the `unix://` path, while hosted OpenAI app-server docs checked in CO-351 did not expose that wording; provider-supervision migration still requires configured-environment sticky proof, real turn-backed pagination proof, runtime-mode evidence, and cloud gate evidence.
28
+ - Treat `thread/shellCommand` as a sensitive unsandboxed surface; it is not part of the default provider-worker authority model.
29
+ - Manual Codex re-review requests are quota-aware: send at most one `@codex` ping per PR head SHA, then wait for a new head before re-requesting.
30
+ - Codex review quota exhaustion is an operational availability event, not an adoption/promotion signal; if it blocks review, use the merge-waiver path documented in `AGENTS.md` and `docs/AGENTS.md` (checks green, unresolved actionable threads = `0`, waiver evidence recorded).
31
+ - Do not newly promote, re-promote, or carry forward a newer cloud/release-facing Codex CLI target after baseline drift unless the candidate posture has recorded results for `node scripts/runtime-mode-canary.mjs`, `CODEX_CLOUD_ENV_ID=<env-id> CODEX_CLOUD_CANARY_REQUIRED=1 npm run ci:cloud-canary`, and the intentional fallback contract `CODEX_CLOUD_ENV_ID="" CODEX_CLOUD_CANARY_REQUIRED=1 CLOUD_CANARY_EXPECT_FALLBACK=1 npm run ci:cloud-canary`.
32
+
33
+ ## Candidate Audit Notes
34
+ - 2026-04-14: `CO-180` audited local `codex-cli 0.120.0` after baseline drift. The command-surface audit found no P0/P1 regression for `codex exec`, `codex exec resume`, `codex review`, or `codex login --device-auth`; raw logs are under `out/linear-acdc2c4c-b8b1-46e8-8e21-c9a9c014213d/manual/codex-0120-audit/` and `.runs/linear-acdc2c4c-b8b1-46e8-8e21-c9a9c014213d/manual/codex-0120-audit/`.
35
+ - 2026-04-14: the runtime-mode canary passed after building `dist`; the first canary attempt failed only because the package canary packs with `--ignore-scripts` and `dist/bin/codex-orchestrator.js` was absent before `npm run build`. Passing evidence is under `out/linear-acdc2c4c-b8b1-46e8-8e21-c9a9c014213d/manual/runtime-mode-canary-r2/`.
36
+ - 2026-04-14: promotion is held because the required cloud canary contract could not execute in this provider workspace without `CODEX_CLOUD_ENV_ID`. The cloud fallback run produced a successful local fallback manifest with `cloud_fallback.mode_used=mcp`, but the CI wrapper still exited failed under `CODEX_CLOUD_CANARY_REQUIRED=1` because the missing environment remains a required configuration blocker. Required/fallback logs are under `out/linear-acdc2c4c-b8b1-46e8-8e21-c9a9c014213d/manual/cloud-canary-required/` and `out/linear-acdc2c4c-b8b1-46e8-8e21-c9a9c014213d/manual/cloud-canary-fallback/`; fallback manifest: `.runs/linear-acdc2c4c-b8b1-46e8-8e21-c9a9c014213d/cli/2026-04-14T10-13-58-564Z-94eab37d/manifest.json`.
37
+ - 2026-04-14: `CO-183` expanded the candidate audit to official `rust-v0.119.0` and `rust-v0.120.0` release notes plus local help surfaces. The documented adoption target stayed at `0.118.0` because the required cloud canary had not passed or been explicitly waived. Evidence is under `out/linear-df69fabe-63c2-4b98-a226-9c37892b4f9d/manual/codex-0120-release-audit/`.
38
+ - 2026-04-14: `CO-183` classified the release-note deltas as follows: MCP resources/custom-server/file uploads/elicitations are adopt-as-compatible; MCP `outputSchema` is held for CO delegation tools because current outputs are pass-through control results with variable shapes and broad schemas would be false precision; `tool_search` ordering is no-op for CO wrappers; app-server and exec-server remote control stay behind the guarded resident-session authority seam; Realtime v2 / Agent Turn API is no-op for CO; scoped review prompt transport, runtime-mode canary, cloud-required canary, and cloud-fallback canary remain evidence gates recorded in the task packet.
39
+ - 2026-04-16: `CO-195` audited official `rust-v0.121.0`, OpenAI changelog, npm `@openai/codex latest=0.121.0`, and local `codex-cli 0.121.0` command surfaces. Local `codex exec`, `codex exec resume`, `codex review --help`, `codex login --device-auth`, `codex marketplace add --help`, app-server, MCP, and cloud help surfaces showed no P0/P1 regression. Runtime-mode canary passed 20/20. Promotion remains held because `CODEX_CLOUD_ENV_ID` is absent. The required cloud canary exited at preflight, and the fallback canary produced a successful local MCP fallback manifest while the required wrapper still exited failed under the missing-env configuration blocker. Evidence: `out/linear-4122489e-1a3b-43cf-a181-e98ada0a55e1/manual/codex-version-canary/compare/decision-go-no-go.md`, `out/linear-4122489e-1a3b-43cf-a181-e98ada0a55e1/manual/codex-0121-release-audit/`, `out/linear-4122489e-1a3b-43cf-a181-e98ada0a55e1/manual/runtime-mode-canary/`, `out/linear-4122489e-1a3b-43cf-a181-e98ada0a55e1/manual/cloud-canary-required/`, and `out/linear-4122489e-1a3b-43cf-a181-e98ada0a55e1/manual/cloud-canary-fallback/`.
40
+ - 2026-04-16: `CO-199` classifies `rust-v0.121.0` sandbox/security deltas without promoting `0.121.0`:
41
+ - Local-only: secure devcontainer posture, macOS private DNS, macOS Unix sockets, Windows elevated denial, WSL1 bubblewrap behavior, exec-server filesystem sandboxing, websocket token hash auth, `danger-full-access`, and `thread/shellCommand`.
42
+ - Cloud-only: remote exec environment policy.
43
+ - Not applicable to CO preflight: pinned inputs.
44
+ - MCP sandbox-state metadata: shared metadata only; it does not expand tool authority or replace cloud canary evidence.
45
+ - `doctor --cloud-preflight` now reports detectable local-only security advisories separately from cloud preflight blockers.
46
+ - 2026-04-21: `CO-269` audited official `rust-v0.122.0` release facts (`published_at=2026-04-20T18:38:40Z`), npm latest `@openai/codex@0.122.0` (`time.modified=2026-04-21T00:30:22.721Z`), and local `codex-cli 0.122.0` command/help surfaces (`timestamp=2026-04-21T01:50:53Z`). Local `codex exec`, `codex review --help`, `codex login --device-auth`, `codex app-server --help`, and `codex mcp --help` showed no P0/P1 regression. Evidence: `out/linear-a2949fd4-2319-4cd0-acd1-68e6404766f3/manual/codex-0122-release-audit/`, `out/linear-a2949fd4-2319-4cd0-acd1-68e6404766f3/manual/codex-0122-command-surface/`, and `out/linear-a2949fd4-2319-4cd0-acd1-68e6404766f3/manual/codex-version-canary/compare/decision-go-no-go.md`.
47
+ - 2026-04-21: `CO-269` runtime-mode evidence passes on the post-build sample (`ready_for_default_flip=true`, all four scenario checks passed 1/1). Required cloud evidence still blocks promotion: the required canary failed before task submission because the configured environment id was not found, and the fallback contract fell back to MCP for missing `CODEX_CLOUD_ENV_ID` but still terminated failed because the fallback rerun hit existing docs-freshness/spec-baseline debt before producing a clean success manifest. Evidence: `out/linear-a2949fd4-2319-4cd0-acd1-68e6404766f3/manual/runtime-mode-canary/post-build-sample/runtime-canary-summary.json`, `out/linear-a2949fd4-2319-4cd0-acd1-68e6404766f3/manual/cloud-canary-required/cloud-canary-required.log`, `out/linear-a2949fd4-2319-4cd0-acd1-68e6404766f3/manual/cloud-canary-fallback/cloud-canary-fallback.log`, `.runs/linear-a2949fd4-2319-4cd0-acd1-68e6404766f3-cloud-required/cli/2026-04-21T01-55-01-176Z-ec12a719/run-summary.json`, and `.runs/linear-a2949fd4-2319-4cd0-acd1-68e6404766f3-cloud-fallback/cli/2026-04-21T01-56-29-071Z-a7ced7cf/run-summary.json`.
48
+ - 2026-04-21: `CO-269` directly compared marketplace capability across the workflow-candidate versions. `npx --yes @openai/codex@0.121.0 marketplace --help` exposes `add`, while `npx --yes @openai/codex@0.122.0 marketplace --help` falls back to top-level Codex help and does not expose the old marketplace surface. At the time of that posture lane, `scripts/pack-smoke.mjs` still failed closed when `codex marketplace add` was unavailable, so downstream marketplace smoke workflows stayed pinned to `0.121.0` pending a follow-up command-surface rebaseline. Evidence: `out/linear-a2949fd4-2319-4cd0-acd1-68e6404766f3/manual/codex-0122-command-surface/marketplace-capability-compare.log`, `scripts/pack-smoke.mjs`, and `tests/pack-smoke.spec.ts`.
49
+ - 2026-04-21: `CO-269` classified `rust-v0.122.0` deltas for CO as follows:
50
+ - Adopt now: pin `cloud-canary` to explicit `@openai/codex@0.122.0` and document the workflow split so canary evidence no longer floats latest.
51
+ - Superseded by `CO-268`: release-facing downstream-smoke workflows no longer need to stay on `@openai/codex@0.121.0` because `pack:smoke` now intentionally uses the `0.122.0` `codex plugin marketplace add` contract with evidence.
52
+ - Hold: active-target promotion from `0.118.0` to `0.122.0` until the required cloud canary and fallback contract both complete with clean evidence in a configured environment.
53
+ - No-op for current CO posture: standalone installer changes, TUI `/side` conversations, plan-mode fresh-context start, plugin browsing/marketplace UX expansion, tool-search/image-generation defaults, and general docs/chore refactors because this lane found no CO-specific regression or required workflow change beyond the audited candidate pin policy.
54
+ - 2026-04-21: `CO-268` completed the marketplace follow-up by proving local `codex-cli 0.122.0` exposes `codex plugin marketplace add` and `codex plugin marketplace remove`, while `codex marketplace add --help` fails, then rebaselining public docs, launcher recovery guidance, pack-smoke detection/invocation, focused tests, and release-facing smoke workflow pins to `@openai/codex@0.122.0`. This does not promote the active CO compatibility target from `0.118.0`; it only updates the marketplace-dependent smoke contract and preserves the `CO-196` packaged marketplace architecture.
55
+ - 2026-04-23: `CO-322` audited official `rust-v0.123.0` release facts (`publishedAt=2026-04-23T01:26:06Z`) and npm latest `@openai/codex@0.123.0` (`time["0.123.0"]=2026-04-23T01:27:03.972Z`, `time.modified=2026-04-23T02:46:36.597Z`). Local command-surface checks using temporary `@openai/codex@0.123.0` execution found no P0/P1 drift for `codex exec`, `codex review --help`, `codex login --device-auth`, `codex mcp`, or `codex app-server`. Evidence: `out/linear-ed46eae2-f0f5-402f-9dc7-dd8dbc36e61f/manual/codex-0123-release-audit/`, `out/linear-ed46eae2-f0f5-402f-9dc7-dd8dbc36e61f/manual/command-surface-0123/help-surface.log`, and `out/linear-ed46eae2-f0f5-402f-9dc7-dd8dbc36e61f/manual/codex-version-canary/compare/decision-go-no-go.md`.
56
+ - 2026-04-23: `CO-322` runtime-mode evidence passes for the `0.123.0` candidate (`20/20`, `ready_for_default_flip=true`), but required cloud evidence still blocks promotion: the required canary failed before task submission because the configured environment id was not found. After replaying onto current main, the fallback canary passed the expected contract with `cloud_fallback.mode_requested=cloud`, `cloud_fallback.mode_used=mcp`, and only the expected `missing_environment` fallback issue; this validates fallback behavior but does not replace required cloud execution. Evidence: `out/linear-ed46eae2-f0f5-402f-9dc7-dd8dbc36e61f/manual/runtime-mode-canary-0123/runtime-canary-summary.json`, `.runs/linear-ed46eae2-f0f5-402f-9dc7-dd8dbc36e61f-cloud-required-0123-current/cli/2026-04-23T04-56-19-486Z-012f562d/manifest.json`, and `.runs/linear-ed46eae2-f0f5-402f-9dc7-dd8dbc36e61f-cloud-fallback-0123-current/cli/2026-04-23T04-56-47-062Z-7a811dfb/manifest.json`.
57
+ - 2026-04-23: `CO-322` directly compared the marketplace-sensitive surface across `0.122.0` and `0.123.0`. `npx --yes @openai/codex@0.123.0 marketplace --help` still falls back to top-level Codex help, but `npx --yes @openai/codex@0.123.0 plugin marketplace add --help` and `plugin marketplace remove --help` both expose the current plugin marketplace contract. Result: no marketplace-smoke regression versus the current `0.122.0` plugin-marketplace baseline, but no release-facing pin moves to `0.123.0` without clean cloud gates. Evidence: `out/linear-ed46eae2-f0f5-402f-9dc7-dd8dbc36e61f/manual/command-surface-0123/plugin-marketplace-0123.log`.
58
+ - 2026-04-23: `CO-322` classifies `rust-v0.123.0` deltas for CO as follows:
59
+ - Hold: do not promote the active target from `0.118.0` to `0.123.0` until required cloud and fallback cloud evidence both complete cleanly.
60
+ - Hold: keep `0.122.0` as the held release-planning candidate and keep `.github/workflows/cloud-canary.yml` pinned to explicit `@openai/codex@0.122.0` until a future `0.123.0` lane has clean cloud gates.
61
+ - Hold: release-facing downstream-smoke workflows remain on `@openai/codex@0.122.0` because current main already rebaselined smoke to `codex plugin marketplace add`, and 0.123.0 promotion is cloud-gate blocked rather than marketplace-surface blocked.
62
+ - No-op for current CO posture: Amazon Bedrock provider, `/mcp verbose`, broader `.mcp.json` plugin loading shapes, realtime handoff improvements, `remote_sandbox_config`, and refreshed model metadata because this lane found no CO-specific required workflow change without clean cloud-gate evidence.
63
+ - 2026-04-23: `CO-335` reran the `0.123.0` cloud gates after cloud env/auth rotation and supersedes the CO-322 cloud HOLD. Required cloud canary passed with `cloud_execution.status=ready`, environment `Kbediako/CO`, task `task_e_69e9ef5628408327b88b1fcd0ab14b24`, `poll_count=24`, and manifest `reference/linear-919ecdfa-9be9-4d93-995b-7f8e4a784e6f/cloud-gates/required-manifest.json`. Fallback cloud contract passed with `cloud_fallback.mode_requested=cloud`, `cloud_fallback.mode_used=mcp`, and issue `missing_environment` at `reference/linear-919ecdfa-9be9-4d93-995b-7f8e4a784e6f/cloud-gates/fallback-manifest.json`.
64
+ - 2026-04-23: `CO-335` promotion decision:
65
+ - Promote: active CO compatibility/adoption target moves from `0.118.0` to `0.123.0` because CO-322 found no P0/P1 local command, marketplace, or runtime-mode regression and CO-335 completed both cloud gates cleanly.
66
+ - Promote: release-facing downstream-smoke and `cloud-canary` workflows move to explicit `@openai/codex@0.123.0`.
67
+ - Release ship remains out of scope for CO-335; CO-316 may proceed with the cloud-gate blocker cleared, subject to its own release prerequisites.
68
+ - 2026-04-24: `CO-337` rechecked the marketplace command relocation truth that older notes had partially compressed. Local `codex-cli 0.123.0` still exposes `plugin` at top level, `codex plugin marketplace add --help` succeeds, and top-level `codex marketplace add --help` fails. Versioned repro confirms `0.121.0` accepts both add paths, while `0.122.0` and `0.123.0` require `codex plugin marketplace add`. This does not change the promoted `0.123.0` posture or workflow pins on current `main`; it corrects the command-surface wording used by `pack:smoke`, launcher/operator messages, and downstream setup docs.
69
+ - 2026-04-24: `CO-341` audited `rust-v0.124.0` / npm `@openai/codex@0.124.0` and aligns the repo CLI posture to `0.124.0` while keeping packaged/generated model defaults on `gpt-5.4` / `xhigh`. Local `codex-cli 0.124.0`, `codex exec`, `codex review --help`, and `codex login --help` keep the required prompt/device-auth surfaces. Live app-server `model/list` shows explicit local `gpt-5.5` supports `xhigh` while `gpt-5.4` remains the app-server catalog default; the bundled debug model catalog may lag. Residual plugin warnings are local temporary plugin cache warnings, not CO-owned plugin manifests. Runtime-mode canary, required cloud canary, fallback cloud contract, and pack-smoke evidence passed for the CO-341 branch. Evidence: `out/linear-4a684a5e-64b0-47fb-835a-d792eba29071/manual/local-probes/`, `out/linear-4a684a5e-64b0-47fb-835a-d792eba29071/manual/runtime-mode-canary/post-build/runtime-mode-canary.log`, `.runs/linear-4a684a5e-64b0-47fb-835a-d792eba29071/cli/2026-04-23T19-44-14-410Z-2e596753/manifest.json`, `.runs/linear-4a684a5e-64b0-47fb-835a-d792eba29071/cli/2026-04-23T19-49-46-024Z-0d81d04d/manifest.json`, and `tests/pack-smoke.spec.ts`.
70
+ - 2026-04-24: `CO-351` audited Codex CLI `0.125.0` app-server control-seam surfaces. Release facts were stable: local `/opt/homebrew/bin/codex --version` returned `codex-cli 0.125.0`, npm latest was `0.125.0`, and GitHub release `rust-v0.125.0` was published `2026-04-24T18:00:38Z`.
71
+ - 2026-04-24: `CO-351` generated app-server TypeScript and JSON Schema artifacts and ran a local Unix socket/proxy/WebSocket canary. Passing checks covered local `unix://` help, `app-server proxy --sock`, generated schema surfaces for thread start/resume/fork/turn pagination and permission profile fields, Unix socket creation, config/read under explicit untrusted project setup, `model/list` pagination, disabled permission-profile thread start, explicit untrusted project preservation, synthetic history injection, resume/fork metadata loading with `excludeTurns`, proxy auth status over `--sock`, and bursty WebSocket command output. Evidence: `out/linear-267f73e1-6347-496d-ad78-2f4177bfe450/manual/codex-0125-appserver-canary/runtime-canary-summary.json` and `docs/findings/linear-267f73e1-6347-496d-ad78-2f4177bfe450-codex-0125-appserver-control-seam.md`.
72
+ - 2026-04-24: `CO-351` approves the 0.125 app-server seam for explicit control-host/proof usage, not as a blanket provider-supervision replacement or provider-runtime promotion. Remaining constraints: `sticky-environment-explicit-id` failed closed with unknown environment id `co351-local-env`, and `thread/turns/list` only proved the response shape on a synthetic-history thread with `0` persisted turns. Provider workers must keep `codex exec` / `codex exec resume` as rollback supervision until a configured lane proves sticky environments and real turn-backed pagination cleanly and the normal promotion gates pass.
73
+ - 2026-04-24: `CO-352` audited `rust-v0.125.0` / npm `@openai/codex@0.125.0` model-catalog posture and adopts `gpt-5.5` / `xhigh` as the current CO-local ChatGPT-auth/appserver model posture. Local top-level and delegated `gpt-5.5` canaries passed, standalone review fallback passed, and runtime-mode canary passed `20/20`. Required cloud execution failed before task submission because the configured environment id was not found; the fallback contract passed with `missing_environment`. That exact failure blocks cloud execution and release-facing pin promotion, not local appserver posture. Live and bundled catalogs still disagree, so the prior portable model remains a fallback for unavailable surfaces. Evidence: `docs/findings/linear-f4469614-cfdf-49a6-a7ff-366f58229816-codex-0125-model-catalog-posture.md`, `out/linear-f4469614-cfdf-49a6-a7ff-366f58229816/manual/0.125-model-posture/`, `.runs/linear-f4469614-cfdf-49a6-a7ff-366f58229816-cloud-required/cli/2026-04-24T20-53-34-738Z-cf054a86/manifest.json`, and `.runs/linear-f4469614-cfdf-49a6-a7ff-366f58229816-cloud-fallback/cli/2026-04-24T20-54-06-599Z-bd863a12/manifest.json`.
74
+ - 2026-04-24: The `explorer_fast` file/codebase search only role stays unchanged; the `gpt-5.3-codex-spark` file/codebase search only role passed a live no-tool smoke, but live `codex debug models` and bundled `codex debug models --bundled` still diverge.
75
+ - 2026-04-24: `CO-355` rebaselined marketplace/downstream-smoke compatibility for Codex CLI `0.125.0` without promoting the broader active CO target, provider runtime, provider supervision, or cloud-canary target. Observed evidence: local `/opt/homebrew/bin/codex --version` reported `codex-cli 0.125.0`, npm `@openai/codex` latest/version returned `0.125.0`, `codex plugin marketplace add --help` accepted owner/repo, HTTP(S), SSH, and local marketplace roots, and `codex plugin marketplace upgrade --help` plus `remove --help` were available. Legacy `codex marketplace add --help` failed on `0.125.0`. After `scripts/pack-smoke.mjs` was updated to prefer `plugin marketplace add` with upgrade/remove help checks, preserve older top-level add fallback for supported legacy pins, and fail closed on incomplete current plugin help without a legacy path, an isolated npm-installed `@openai/codex@0.125.0` `npm run pack:smoke` canary passed. This supports moving only the release-facing downstream-smoke workflow pins from `@openai/codex@0.124.0` to `@openai/codex@0.125.0`; any broader `0.125.0` active-posture, provider-supervision, provider-runtime, or `cloud-canary` promotion remains pending until `node scripts/runtime-mode-canary.mjs`, `CODEX_CLOUD_ENV_ID=<env-id> CODEX_CLOUD_CANARY_REQUIRED=1 npm run ci:cloud-canary`, and the fallback cloud contract pass for that lane.
76
+
77
+ ## Required Evidence Gates
78
+ For any change to the current CO-local `gpt-5.5` / `xhigh` operator posture or portable `gpt-5.4` fallback defaults:
79
+ 1. Local appserver path passes on the candidate Codex CLI + model posture.
80
+ 2. Delegated/review surfaces are verified on the actual auth provider in use; for ChatGPT auth, require explicit local smoke before using `gpt-5.5`, otherwise fall back to the portable `gpt-5.4` defaults.
81
+ 3. Runtime-mode canary passes (`node scripts/runtime-mode-canary.mjs`).
82
+ 4. No P0/P1 regression versus the current stable baseline.
83
+
84
+ For any cloud execution or release-facing promotion of a newer Codex build in CO, also require:
85
+ 1. Cloud canary required contract passes (`CODEX_CLOUD_ENV_ID=<env-id> CODEX_CLOUD_CANARY_REQUIRED=1 npm run ci:cloud-canary`).
86
+ 2. Cloud fallback contract behavior remains correct (`CODEX_CLOUD_ENV_ID="" CODEX_CLOUD_CANARY_REQUIRED=1 CLOUD_CANARY_EXPECT_FALLBACK=1 npm run ci:cloud-canary`).
87
+
88
+ ## Cadence
89
+ - Re-verify the current posture when auth/provider behavior changes materially.
90
+ - Run canary on each newer stable/prerelease candidate considered for CO.
91
+ - Run weekly backstop canary while CO is actively adopting a non-baseline Codex build.
92
+
93
+ ## Rollback
94
+ - Failed gates hold or roll back only the surface they gate. Cloud gate failures block cloud execution and release-facing promotion; they do not roll back validated local appserver posture unless the evidence also shows a provider/model compatibility regression or P0/P1 signal.
95
+ - Record rollback decision in:
96
+ - `docs/TASKS.md`
97
+ - `tasks/index.json`
98
+ - task checklists under `tasks/` and `.agent/task/`
99
+
100
+ ## Evidence Paths
101
+ - Manifests: `.runs/<task-id>/cli/<run-id>/manifest.json`
102
+ - Logs/summaries: `out/<task-id>/manual/`
103
+ - Handover notes: `out/handovers/`
104
+ - Decision summary: `out/<task-id>/manual/codex-version-canary/compare/decision-go-no-go.md`
@@ -0,0 +1,113 @@
1
+ # Downstream Setup
2
+
3
+ This guide is the downstream-safe setup path shipped in the npm package.
4
+
5
+ ## Contract
6
+
7
+ - Once per machine: install Codex CLI and authenticate.
8
+ - Once per repo: seed the CO templates, run setup with the repo root so delegation is repo-scoped while bundled skills are installed and DevTools wiring is applied at the machine level, review the generated config, and start using task-scoped runs.
9
+ - CO-local ChatGPT-auth/appserver posture now uses `gpt-5.5` / `xhigh` on Codex CLI `0.125.0` when live access smoke passes; release-facing cloud/downstream pins remain evidence-gated in the version policy.
10
+ - Portable generated downstream defaults keep `gpt-5.4` / `xhigh` as a fallback when `gpt-5.5`, API/cloud portability, or downstream/no-network access is not proven.
11
+ - Local ChatGPT-auth `gpt-5.5` / `xhigh` is the preferred CO posture after `codex debug models` verifies current model access.
12
+ - `codex-orchestrator doctor` treats `gpt-5.5` as non-drift when `codex debug models` verifies current model access, and additive defaults keep fresh configs on portable fallback values unless `--auth-scope chatgpt` is explicitly requested after live access smoke; compatible prior `gpt-5.5` role files are preserved without requiring extra marker metadata.
13
+ - CO-196 posture lineage remains unchanged: npm is the supported baseline because it is the simplest supported CLI install path, and marketplace packaging is an additive registration path for newer Codex releases. `0.121.0` accepts both `codex marketplace add` and `codex plugin marketplace add`; `0.122.0+` require `codex plugin marketplace add`, and current `0.125.0` also exposes `codex plugin marketplace upgrade` / `remove`.
14
+
15
+ ## Once per machine
16
+
17
+ 1. Install CO:
18
+ ```bash
19
+ npm i -g @kbediako/codex-orchestrator
20
+ ```
21
+ 2. Authenticate Codex:
22
+ ```bash
23
+ codex login
24
+ # If browser auth is unavailable:
25
+ codex login --device-auth
26
+ ```
27
+ ## Codex plugin marketplace install
28
+
29
+ Use this when you want Codex to discover and enable CO from the plugin browser, while keeping npm available as the baseline CLI install path.
30
+
31
+ 1. Add the packaged marketplace root with the command that matches your Codex version:
32
+ ```bash
33
+ # Codex 0.121.0: either command works
34
+ codex marketplace add "$(npm root -g)/@kbediako/codex-orchestrator"
35
+ # Codex 0.122.0+:
36
+ codex plugin marketplace add "$(npm root -g)/@kbediako/codex-orchestrator"
37
+ ```
38
+ 2. Open `/plugins` inside Codex.
39
+ 3. Install `Codex Orchestrator`.
40
+ 4. Restart Codex if the plugin does not appear immediately.
41
+
42
+ The shipped marketplace files are:
43
+
44
+ - `.agents/plugins/marketplace.json`
45
+ - `plugins/codex-orchestrator/.codex-plugin/plugin.json`
46
+ - `plugins/codex-orchestrator/.mcp.json`
47
+ - `plugins/codex-orchestrator/launcher.mjs`
48
+
49
+ - Launcher behaviour: The plugin entry points at `plugins/codex-orchestrator`, and its launcher reads the `codex-orchestrator` marketplace entry in `${CODEX_HOME:-~/.codex}/config.toml` to locate the recorded source checkout before it execs the packaged CO CLI there via `node`. Local-directory sources run from the recorded source path. Git-backed sources run from Codex's installed checkout under `${CODEX_HOME:-~/.codex}/.tmp/marketplaces/codex-orchestrator`, so the MCP registration path stays independent of a second `codex-orchestrator` path entry after install.
50
+ - Local-directory add: Run the version-appropriate add command against the repository root that contains those files instead of the npm install directory. `0.121.0` accepts either `codex marketplace add <repository-root>` or `codex plugin marketplace add <repository-root>`; `0.122.0+` require `codex plugin marketplace add <repository-root>`.
51
+ - Git-backed add: Pass a Git identifier or URL such as `owner/repo[@ref]`, an HTTPS Git URL, or an SSH Git URL rather than a local path.
52
+ - When to re-run add: Re-run the same version-appropriate add command if you move or replace a local-directory source, or if you remove Codex's installed marketplace checkout and want to restore the Git-backed install. `0.121.0` documents the add flow under both marketplace paths; `0.122.0+` document local directories plus Git-backed sources under `codex plugin marketplace add --help`.
53
+ - Marketplace updates/removal: On current Codex CLI `0.125.0`, run `codex plugin marketplace upgrade codex-orchestrator` to refresh a Git-backed marketplace checkout when you want Codex to pull a newer source ref. Run `codex plugin marketplace remove codex-orchestrator` to remove the marketplace registration.
54
+ - Debug caveats: The bundled debug catalog can lag runtime posture briefly, and residual plugin warnings are local temporary plugin cache warnings rather than CO posture failures.
55
+
56
+ ## Rollback and removal
57
+
58
+ - Uninstall the plugin from the Codex plugin browser when you want to remove it completely.
59
+ - Set the plugin entry in `${CODEX_HOME:-~/.codex}/config.toml` to `enabled = false` when you want to keep it installed but turn it off.
60
+ - Remove the marketplace registration if you no longer want Codex to read the shipped marketplace source:
61
+ ```bash
62
+ codex plugin marketplace remove codex-orchestrator
63
+ ```
64
+ Use this command on Codex CLI `0.125.0` or newer. On older support lanes, or if the remove command is unavailable, remove the `[marketplaces.codex-orchestrator]` block from `${CODEX_HOME:-~/.codex}/config.toml` manually.
65
+ - Remove the npm install when you no longer want the standalone CLI or when you no longer need it as the marketplace source:
66
+ ```bash
67
+ npm uninstall -g @kbediako/codex-orchestrator
68
+ ```
69
+
70
+ ## Once per repo
71
+
72
+ 1. Seed the repo:
73
+ ```bash
74
+ codex-orchestrator init codex --cwd /path/to/repo
75
+ cd /path/to/repo
76
+ codex-orchestrator setup --yes --repo "$(pwd)"
77
+ ```
78
+ 2. Check readiness:
79
+ ```bash
80
+ codex-orchestrator doctor --format json
81
+ ```
82
+ 3. Review the generated files:
83
+ - `AGENTS.md`
84
+ - `.codex/config.toml`
85
+ - `.codex/providers/README.md`
86
+ - `.codex/providers/provider.env.example`
87
+ - `.codex/providers/control.example.json`
88
+ - `codex.orchestrator.json`
89
+ 4. Start with a task-scoped flow:
90
+ ```bash
91
+ codex-orchestrator flow --task <task-id>
92
+ ```
93
+
94
+ ## Version-Specific Notes
95
+
96
+ - `codex exec` now accepts both a prompt argument and piped stdin; piped stdin is appended as a `<stdin>` block.
97
+ - `codex login --device-auth` is available for environments where browser sign-in is not practical.
98
+ - CO keeps review-wrapper prompt transport explicit and artifact-backed; do not assume every `codex review` code path matches `codex exec`.
99
+
100
+ ## First-run checks
101
+
102
+ Use these before asking a reviewer to trust a new repo:
103
+
104
+ ```bash
105
+ cd /path/to/repo
106
+ codex-orchestrator doctor --format json
107
+ codex-orchestrator flow --task <task-id>
108
+ NOTES="Goal: ... | Summary: ... | Risks: ..." codex-orchestrator review --task <task-id>
109
+ ```
110
+
111
+ ## Provider onboarding
112
+
113
+ For Linear and Telegram setup, continue with [provider-onboarding.md](provider-onboarding.md).
@@ -0,0 +1,173 @@
1
+ # Provider Onboarding
2
+
3
+ This guide is the downstream-safe provider contract for Linear and Telegram.
4
+
5
+ ## Contract
6
+
7
+ - Once per machine: install CO, authenticate Codex, and confirm `codex-orchestrator doctor --format json` works.
8
+ - Once per repo: seed `.codex/providers/` with `codex-orchestrator init codex`.
9
+ - Runtime env carries secrets and provider bindings.
10
+ - Control policy carries `dispatch_pilot` and `transport_mutating_controls`.
11
+ - Linear and Telegram should both have a machine-checkable readiness signal before live smoke.
12
+
13
+ ## Generated scaffolding
14
+
15
+ `codex-orchestrator init codex` seeds:
16
+
17
+ - `.codex/providers/README.md`
18
+ - `.codex/providers/provider.env.example`
19
+ - `.codex/providers/control.example.json`
20
+
21
+ Use those files as the starting point for your repo-specific provider setup.
22
+
23
+ ## Environment variables
24
+
25
+ Recommended Linear env:
26
+
27
+ - `CO_LINEAR_API_TOKEN`
28
+ - `CO_LINEAR_WORKSPACE_ID`
29
+ - `CO_LINEAR_TEAM_ID`
30
+ - `CO_LINEAR_PROJECT_ID`
31
+ - `CO_LINEAR_WEBHOOK_SECRET`
32
+
33
+ Supported Linear token fallbacks:
34
+
35
+ - `CO_LINEAR_API_KEY`
36
+ - `LINEAR_API_KEY`
37
+
38
+ Telegram env:
39
+
40
+ - `CO_TELEGRAM_POLLING_ENABLED`
41
+ - `CO_TELEGRAM_BOT_TOKEN`
42
+ - `CO_TELEGRAM_ALLOWED_CHAT_IDS`
43
+ - `CO_TELEGRAM_ENABLE_MUTATIONS`
44
+ - `CO_TELEGRAM_POLL_INTERVAL_MS`
45
+ - `CO_TELEGRAM_PUSH_ENABLED`
46
+ - `CO_TELEGRAM_PUSH_INTERVAL_MS`
47
+
48
+ ## Control policy
49
+
50
+ Keep the provider policy explicit.
51
+
52
+ `dispatch_pilot` should declare a Linear source and stay advisory-first:
53
+
54
+ ```json
55
+ {
56
+ "feature_toggles": {
57
+ "dispatch_pilot": {
58
+ "enabled": true,
59
+ "source": {
60
+ "provider": "linear",
61
+ "live": true,
62
+ "workspace_id": "workspace-id",
63
+ "team_id": "team-id",
64
+ "project_id": "project-id"
65
+ }
66
+ }
67
+ }
68
+ }
69
+ ```
70
+
71
+ Telegram mutation policy should be explicit too:
72
+
73
+ ```json
74
+ {
75
+ "feature_toggles": {
76
+ "transport_mutating_controls": {
77
+ "enabled": true,
78
+ "allowed_transports": ["telegram"]
79
+ }
80
+ }
81
+ }
82
+ ```
83
+
84
+ Nested `coordinator.dispatch_pilot` and `coordinator.transport_mutating_controls` remain valid compatibility paths.
85
+
86
+ ## Readiness
87
+
88
+ `codex-orchestrator doctor --format json` is the machine-checkable readiness surface.
89
+
90
+ Expect it to tell you:
91
+
92
+ - whether delegation and DevTools wiring are present
93
+ - whether Linear credentials and binding env are populated
94
+ - whether `CO_LINEAR_WEBHOOK_SECRET` is present
95
+ - whether Telegram polling, token, and allowlist env are populated
96
+ - whether repo scaffolding under `.codex/providers/` exists
97
+
98
+ ## Smoke flow
99
+
100
+ Use this minimal smoke flow:
101
+
102
+ 1. Check readiness:
103
+ ```bash
104
+ codex-orchestrator doctor --format json
105
+ ```
106
+ 2. Start the host in a dedicated terminal and keep it running:
107
+ ```bash
108
+ codex-orchestrator control-host --format json
109
+ ```
110
+ This prints a startup readiness payload and then keeps the host alive.
111
+ 3. In another terminal, inspect the current status snapshot:
112
+ ```bash
113
+ codex-orchestrator co-status --format json
114
+ ```
115
+ 4. Telegram read-only smoke:
116
+ - send `/help` from an allowlisted chat
117
+ - confirm the bot replies
118
+ 5. Linear advisory smoke:
119
+ - confirm the status snapshot reaches `dispatch_pilot.status=ready`
120
+ - confirm the selected tracked issue resolves from the configured workspace, team, or project binding
121
+
122
+ ## Help surfaces
123
+
124
+ Use these commands when onboarding an operator:
125
+
126
+ ```bash
127
+ codex-orchestrator doctor --help
128
+ codex-orchestrator control-host --help
129
+ codex-orchestrator co-status --help
130
+ ```
131
+
132
+ `control-host --format json` is a persistent host startup handshake, not a one-shot status dump.
133
+
134
+ ## macOS launchd supervision
135
+
136
+ On macOS, use the shipped supervision surface instead of a copied local shell wrapper:
137
+
138
+ 1. Make sure the `codex-orchestrator` currently on `PATH` is current enough to expose `control-host supervise`:
139
+ - source-checkout operator: from the checkout root, run `npm link` so the active `codex-orchestrator` bin points at this checkout's `bin/codex-orchestrator.js`
140
+ - packaged/global install operator: upgrade the active package (for example `npm install -g @kbediako/codex-orchestrator@latest`) before attempting the migration
141
+ - verify the active CLI with:
142
+ ```bash
143
+ codex-orchestrator control-host supervise status --format json
144
+ ```
145
+ If the current machine is still on the legacy shim rollout, the JSON status now reports that rollout mode and that migration is still required.
146
+ 2. Install the LaunchAgent-backed supervisor from the repo root:
147
+ ```bash
148
+ codex-orchestrator control-host supervise install --format json
149
+ ```
150
+ This rewrites the existing `com.kbediako.co.control-host` LaunchAgent in place, replacing the legacy shim rollout when present, and records the active package's `bin/codex-orchestrator.js` bootstrap as the managed entrypoint.
151
+ 3. Inspect the current launchd, rollout mode, config, and restart-reason state:
152
+ ```bash
153
+ codex-orchestrator control-host supervise status --format json
154
+ ```
155
+ 4. Restart the supervised host after config or env changes:
156
+ ```bash
157
+ codex-orchestrator control-host supervise restart --format json
158
+ ```
159
+ The restart payload records the previously tracked supervised child pid (`previous_child_pid`), the newly observed supervised child pid when available (`child_pid`), and `cleanup.result`. If launchd leaves the old supervised tree alive, the payload fails closed unless CO can force-clean that exact stale control-host process group first; any forced cleanup also records the orphaned process-group and descendant pids in `cleanup`.
160
+ 5. Remove the generated LaunchAgent, config, state, and logs:
161
+ ```bash
162
+ codex-orchestrator control-host supervise uninstall --format json
163
+ ```
164
+
165
+ `control-host supervise status --format json` is the machine-checkable operator surface for whether the LaunchAgent is still on the legacy shim rollout or the managed packaged rollout, whether migration is still required, whether launchd is loaded, which supervised control-host child pid is currently recorded, and what last restart reason or health state the supervisor recorded.
166
+
167
+ When a replacement host encounters an already-running owner during a restart race, inspect:
168
+
169
+ ```bash
170
+ codex-orchestrator co-status --format json
171
+ ```
172
+
173
+ The `polling.control_host_owner` payload carries the duplicate/stale owner diagnostic path plus owner pid/token metadata. Treat that owner diagnostic as control-host evidence, not as a provider-worker list: detached `provider-linear-worker` issue processes run independently in their own issue workspaces and are not the restart cleanup target.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kbediako/codex-orchestrator",
3
- "version": "0.1.38",
3
+ "version": "0.2.1",
4
4
  "license": "MIT",
5
5
  "repository": {
6
6
  "type": "git",
@@ -12,10 +12,13 @@
12
12
  },
13
13
  "type": "module",
14
14
  "bin": {
15
- "codex-orchestrator": "dist/bin/codex-orchestrator.js",
16
- "codex-orch": "dist/bin/codex-orchestrator.js"
15
+ "codex-orchestrator": "bin/codex-orchestrator.js",
16
+ "codex-orch": "bin/codex-orchestrator.js"
17
17
  },
18
18
  "files": [
19
+ ".agents/plugins/marketplace.json",
20
+ "plugins/**",
21
+ "bin/codex-orchestrator.js",
19
22
  "dist/bin/**",
20
23
  "dist/orchestrator/**",
21
24
  "dist/packages/**",
@@ -27,7 +30,11 @@
27
30
  "templates/**",
28
31
  "skills/**",
29
32
  "codex.orchestrator.json",
30
- "docs/assets/setup.gif",
33
+ "docs/README.md",
34
+ "docs/book/**",
35
+ "docs/guides/codex-version-policy.md",
36
+ "docs/public/downstream-setup.md",
37
+ "docs/public/provider-onboarding.md",
31
38
  "README.md",
32
39
  "LICENSE"
33
40
  ],
@@ -49,6 +56,9 @@
49
56
  "docs:archive-implementation": "node scripts/implementation-docs-archive.mjs",
50
57
  "docs:archive-tasks": "node scripts/tasks-archive.mjs",
51
58
  "docs:freshness": "node scripts/docs-freshness.mjs --check",
59
+ "docs:freshness:maintain": "node scripts/docs-freshness-maintain.mjs --check",
60
+ "done-closeout:check": "node scripts/done-closeout-provenance-check.mjs --check",
61
+ "repo:stewardship": "node scripts/repo-stewardship-audit.mjs --check",
52
62
  "docs:sync": "node --loader ts-node/esm scripts/docs-hygiene.ts --sync",
53
63
  "ci:cloud-canary": "node scripts/cloud-canary-ci.mjs",
54
64
  "canary:js-repl-usage": "node scripts/js-repl-usage-matrix.mjs",
@@ -59,11 +69,14 @@
59
69
  "pack:smoke": "node scripts/pack-smoke.mjs",
60
70
  "prepack": "npm run clean:dist && npm run build && npm run pack:audit",
61
71
  "setup:design-tools": "node --loader ts-node/esm scripts/setup-design-tools.ts",
62
- "test": "npm run test:orchestrator",
63
- "test:orchestrator": "vitest run --config vitest.config.core.ts",
64
- "test:adapters": "vitest run --passWithNoTests --config vitest.config.ts adapters",
65
- "test:evaluation": "vitest run --passWithNoTests --config vitest.config.ts evaluation/tests",
66
- "eval:test": "vitest run evaluation/tests",
72
+ "test": "npm run test:core --",
73
+ "test:core": "vitest run --config vitest.config.core.ts",
74
+ "test:all": "node scripts/run-test-all.mjs",
75
+ "test:orchestrator": "npm run test:core --",
76
+ "test:adapters": "vitest run --passWithNoTests --config vitest.config.adapters.ts",
77
+ "test:evaluation": "vitest run --passWithNoTests --config vitest.config.evaluation.ts",
78
+ "eval:test": "npm run test:evaluation --",
79
+ "eval:provider-adoption": "node scripts/provider-linear-adoption-eval.mjs",
67
80
  "test:watch": "vitest",
68
81
  "review": "node --loader ts-node/esm scripts/run-review.ts",
69
82
  "pr:watch-merge": "node scripts/pr-monitor-merge.mjs",
@@ -128,7 +141,7 @@
128
141
  "js-yaml": "^4.1.0",
129
142
  "react": "^18.3.1"
130
143
  },
131
- "description": "![Setup demo](docs/assets/setup.gif)",
144
+ "description": "Codex-driven orchestration CLI with auditable manifests, downstream repo bootstrapping, and delegation MCP workflows.",
132
145
  "main": "dist/orchestrator/src/cli/orchestrator.js",
133
146
  "directories": {
134
147
  "doc": "docs",
@@ -0,0 +1,30 @@
1
+ {
2
+ "name": "codex-orchestrator",
3
+ "version": "0.2.1",
4
+ "description": "Codex Orchestrator plugin metadata for the packaged CO runtime.",
5
+ "author": {
6
+ "name": "Kbediako",
7
+ "url": "https://github.com/Kbediako"
8
+ },
9
+ "homepage": "https://github.com/Kbediako/CO#readme",
10
+ "repository": "https://github.com/Kbediako/CO",
11
+ "license": "MIT",
12
+ "keywords": [
13
+ "codex",
14
+ "mcp",
15
+ "orchestrator"
16
+ ],
17
+ "mcpServers": "./.mcp.json",
18
+ "interface": {
19
+ "displayName": "Codex Orchestrator",
20
+ "shortDescription": "Register CO's MCP orchestration server in Codex.",
21
+ "longDescription": "Connect Codex to Codex Orchestrator's MCP server for auditable task flows, manifests, and delegation workflows.",
22
+ "developerName": "Kbediako",
23
+ "category": "Productivity",
24
+ "capabilities": [
25
+ "MCP",
26
+ "Automation"
27
+ ],
28
+ "screenshots": []
29
+ }
30
+ }
@@ -0,0 +1,13 @@
1
+ {
2
+ "templateVersion": 1,
3
+ "mcpServers": {
4
+ "codex-orchestrator": {
5
+ "command": "node",
6
+ "args": [
7
+ "./launcher.mjs",
8
+ "mcp",
9
+ "serve"
10
+ ]
11
+ }
12
+ }
13
+ }