create-principles-disciple 1.154.5 → 1.155.2

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 (428) hide show
  1. package/_release/product-identity.json +2 -2
  2. package/codex-adapter/dist/codec/input-decoder.d.ts +17 -0
  3. package/codex-adapter/dist/codec/input-decoder.js +39 -0
  4. package/codex-adapter/dist/ingestion/explicit-owner-statement.js +125 -1
  5. package/codex-adapter/dist/ingestion/pain-receipt-fallback.d.ts +46 -0
  6. package/codex-adapter/dist/ingestion/pain-receipt-fallback.js +193 -0
  7. package/codex-adapter/dist/ingestion/turn-context.d.ts +10 -15
  8. package/codex-adapter/dist/ingestion/turn-context.js +35 -9
  9. package/codex-adapter/dist/pd-hook.js +57 -1
  10. package/codex-adapter/dist/worker/workspace-worker.d.ts +15 -0
  11. package/codex-adapter/dist/worker/workspace-worker.js +91 -12
  12. package/codex-adapter/package.json +1 -1
  13. package/console/dist/server/index.js +11 -0
  14. package/console/dist/server/models/EvidenceChainConsoleModel.js +31 -0
  15. package/console/dist/server/routes/health.d.ts +1 -0
  16. package/console/dist/server/routes/health.js +12 -0
  17. package/console/dist/server/routes/service-host.d.ts +19 -0
  18. package/console/dist/server/routes/service-host.js +129 -0
  19. package/console/dist/web/assets/app.js +39 -39
  20. package/console/package.json +1 -1
  21. package/core/dist/runtime/adapter/pi-ai-http-transport.d.ts.map +1 -1
  22. package/core/dist/runtime/adapter/pi-ai-http-transport.js.map +1 -1
  23. package/core/dist/runtime/context-payload.d.ts +48 -0
  24. package/core/dist/runtime/context-payload.d.ts.map +1 -1
  25. package/core/dist/runtime/context-payload.js +12 -0
  26. package/core/dist/runtime/context-payload.js.map +1 -1
  27. package/core/dist/runtime/diagnostician/rootcause-prompt-builder.d.ts.map +1 -1
  28. package/core/dist/runtime/diagnostician/rootcause-prompt-builder.js +18 -0
  29. package/core/dist/runtime/diagnostician/rootcause-prompt-builder.js.map +1 -1
  30. package/core/dist/runtime/diagnostician-candidate.d.ts.map +1 -1
  31. package/core/dist/runtime/diagnostician-candidate.js +18 -2
  32. package/core/dist/runtime/diagnostician-candidate.js.map +1 -1
  33. package/core/dist/runtime/evidence-guards.d.ts +7 -3
  34. package/core/dist/runtime/evidence-guards.d.ts.map +1 -1
  35. package/core/dist/runtime/evidence-guards.js +9 -7
  36. package/core/dist/runtime/evidence-guards.js.map +1 -1
  37. package/core/dist/runtime/feature-flags/feature-flag-contract.d.ts.map +1 -1
  38. package/core/dist/runtime/feature-flags/feature-flag-contract.js +14 -0
  39. package/core/dist/runtime/feature-flags/feature-flag-contract.js.map +1 -1
  40. package/core/dist/runtime/feature-flags/feature-flag-lifecycle.d.ts.map +1 -1
  41. package/core/dist/runtime/feature-flags/feature-flag-lifecycle.js +8 -0
  42. package/core/dist/runtime/feature-flags/feature-flag-lifecycle.js.map +1 -1
  43. package/core/dist/runtime/host-submission-context.d.ts +83 -0
  44. package/core/dist/runtime/host-submission-context.d.ts.map +1 -0
  45. package/core/dist/runtime/host-submission-context.js +183 -0
  46. package/core/dist/runtime/host-submission-context.js.map +1 -0
  47. package/core/dist/runtime/index.d.ts +9 -2
  48. package/core/dist/runtime/index.d.ts.map +1 -1
  49. package/core/dist/runtime/index.js +29 -2
  50. package/core/dist/runtime/index.js.map +1 -1
  51. package/core/dist/runtime/intent/intent-doc.d.ts.map +1 -1
  52. package/core/dist/runtime/intent/intent-doc.js +29 -5
  53. package/core/dist/runtime/intent/intent-doc.js.map +1 -1
  54. package/core/dist/runtime/internalization/diag-distiller-runner.d.ts +9 -0
  55. package/core/dist/runtime/internalization/diag-distiller-runner.d.ts.map +1 -1
  56. package/core/dist/runtime/internalization/diag-distiller-runner.js +13 -0
  57. package/core/dist/runtime/internalization/diag-distiller-runner.js.map +1 -1
  58. package/core/dist/runtime/internalization/diag-rootcause-runner.d.ts +11 -0
  59. package/core/dist/runtime/internalization/diag-rootcause-runner.d.ts.map +1 -1
  60. package/core/dist/runtime/internalization/diag-rootcause-runner.js +10 -0
  61. package/core/dist/runtime/internalization/diag-rootcause-runner.js.map +1 -1
  62. package/core/dist/runtime/internalization/diag-router-runner.d.ts +9 -0
  63. package/core/dist/runtime/internalization/diag-router-runner.d.ts.map +1 -1
  64. package/core/dist/runtime/internalization/diag-router-runner.js +13 -0
  65. package/core/dist/runtime/internalization/diag-router-runner.js.map +1 -1
  66. package/core/dist/runtime/internalization/index.d.ts +1 -1
  67. package/core/dist/runtime/internalization/index.d.ts.map +1 -1
  68. package/core/dist/runtime/internalization/index.js +1 -1
  69. package/core/dist/runtime/internalization/index.js.map +1 -1
  70. package/core/dist/runtime/internalization/intake-to-internalization-bridge.d.ts +19 -0
  71. package/core/dist/runtime/internalization/intake-to-internalization-bridge.d.ts.map +1 -1
  72. package/core/dist/runtime/internalization/intake-to-internalization-bridge.js +24 -0
  73. package/core/dist/runtime/internalization/intake-to-internalization-bridge.js.map +1 -1
  74. package/core/dist/runtime/internalization/internalization-orchestrator.d.ts +8 -0
  75. package/core/dist/runtime/internalization/internalization-orchestrator.d.ts.map +1 -1
  76. package/core/dist/runtime/internalization/internalization-orchestrator.js +36 -4
  77. package/core/dist/runtime/internalization/internalization-orchestrator.js.map +1 -1
  78. package/core/dist/runtime/internalization/source-authorization-boundary.d.ts +39 -0
  79. package/core/dist/runtime/internalization/source-authorization-boundary.d.ts.map +1 -0
  80. package/core/dist/runtime/internalization/source-authorization-boundary.js +57 -0
  81. package/core/dist/runtime/internalization/source-authorization-boundary.js.map +1 -0
  82. package/core/dist/runtime/internalization/split-diagnostician-runner.d.ts.map +1 -1
  83. package/core/dist/runtime/internalization/split-diagnostician-runner.js +72 -5
  84. package/core/dist/runtime/internalization/split-diagnostician-runner.js.map +1 -1
  85. package/core/dist/runtime/pain-admission-disposition.d.ts +60 -0
  86. package/core/dist/runtime/pain-admission-disposition.d.ts.map +1 -0
  87. package/core/dist/runtime/pain-admission-disposition.js +37 -0
  88. package/core/dist/runtime/pain-admission-disposition.js.map +1 -0
  89. package/core/dist/runtime/pain-ingress-payload.d.ts +36 -2
  90. package/core/dist/runtime/pain-ingress-payload.d.ts.map +1 -1
  91. package/core/dist/runtime/pain-ingress-payload.js +63 -6
  92. package/core/dist/runtime/pain-ingress-payload.js.map +1 -1
  93. package/core/dist/runtime/pain-ingress.d.ts.map +1 -1
  94. package/core/dist/runtime/pain-ingress.js +28 -0
  95. package/core/dist/runtime/pain-ingress.js.map +1 -1
  96. package/core/dist/runtime/pain-recall-read-model.d.ts +13 -1
  97. package/core/dist/runtime/pain-recall-read-model.d.ts.map +1 -1
  98. package/core/dist/runtime/pain-recall-read-model.js +50 -7
  99. package/core/dist/runtime/pain-recall-read-model.js.map +1 -1
  100. package/core/dist/runtime/pain-receipt-recovery.d.ts +147 -0
  101. package/core/dist/runtime/pain-receipt-recovery.d.ts.map +1 -0
  102. package/core/dist/runtime/pain-receipt-recovery.js +475 -0
  103. package/core/dist/runtime/pain-receipt-recovery.js.map +1 -0
  104. package/core/dist/runtime/pain-signal-bridge.d.ts +13 -1
  105. package/core/dist/runtime/pain-signal-bridge.d.ts.map +1 -1
  106. package/core/dist/runtime/pain-signal-bridge.js +174 -0
  107. package/core/dist/runtime/pain-signal-bridge.js.map +1 -1
  108. package/core/dist/runtime/pain-signal-runtime-factory.d.ts +9 -0
  109. package/core/dist/runtime/pain-signal-runtime-factory.d.ts.map +1 -1
  110. package/core/dist/runtime/pain-signal-runtime-factory.js +8 -3
  111. package/core/dist/runtime/pain-signal-runtime-factory.js.map +1 -1
  112. package/core/dist/runtime/pain-submit-capability.d.ts +11 -0
  113. package/core/dist/runtime/pain-submit-capability.d.ts.map +1 -1
  114. package/core/dist/runtime/pain-submit-capability.js +77 -3
  115. package/core/dist/runtime/pain-submit-capability.js.map +1 -1
  116. package/core/dist/runtime/pain-target-evidence-reconcile.d.ts +55 -0
  117. package/core/dist/runtime/pain-target-evidence-reconcile.d.ts.map +1 -0
  118. package/core/dist/runtime/pain-target-evidence-reconcile.js +164 -0
  119. package/core/dist/runtime/pain-target-evidence-reconcile.js.map +1 -0
  120. package/core/dist/runtime/pain-to-principle-service.d.ts +8 -0
  121. package/core/dist/runtime/pain-to-principle-service.d.ts.map +1 -1
  122. package/core/dist/runtime/pain-to-principle-service.js +1 -0
  123. package/core/dist/runtime/pain-to-principle-service.js.map +1 -1
  124. package/core/dist/runtime/source-material-authorization.d.ts +166 -0
  125. package/core/dist/runtime/source-material-authorization.d.ts.map +1 -0
  126. package/core/dist/runtime/source-material-authorization.js +250 -0
  127. package/core/dist/runtime/source-material-authorization.js.map +1 -0
  128. package/core/dist/runtime/store/context/index.d.ts +1 -0
  129. package/core/dist/runtime/store/context/index.d.ts.map +1 -1
  130. package/core/dist/runtime/store/context/index.js +1 -0
  131. package/core/dist/runtime/store/context/index.js.map +1 -1
  132. package/core/dist/runtime/store/context/promoted-evidence-reader.d.ts +8 -0
  133. package/core/dist/runtime/store/context/promoted-evidence-reader.d.ts.map +1 -1
  134. package/core/dist/runtime/store/context/promoted-evidence-reader.js +15 -1
  135. package/core/dist/runtime/store/context/promoted-evidence-reader.js.map +1 -1
  136. package/core/dist/runtime/store/context/sqlite-context-assembler.d.ts +22 -0
  137. package/core/dist/runtime/store/context/sqlite-context-assembler.d.ts.map +1 -1
  138. package/core/dist/runtime/store/context/sqlite-context-assembler.js +153 -3
  139. package/core/dist/runtime/store/context/sqlite-context-assembler.js.map +1 -1
  140. package/core/dist/runtime/store/context/trajectory-turn-reader.d.ts +13 -0
  141. package/core/dist/runtime/store/context/trajectory-turn-reader.d.ts.map +1 -1
  142. package/core/dist/runtime/store/lifecycle/lease-manager.d.ts +15 -0
  143. package/core/dist/runtime/store/lifecycle/lease-manager.d.ts.map +1 -1
  144. package/core/dist/runtime/store/lifecycle/lease-manager.js +16 -1
  145. package/core/dist/runtime/store/lifecycle/lease-manager.js.map +1 -1
  146. package/core/dist/runtime/store/runtime-state-manager.d.ts +2 -0
  147. package/core/dist/runtime/store/runtime-state-manager.d.ts.map +1 -1
  148. package/core/dist/runtime/store/runtime-state-manager.js.map +1 -1
  149. package/core/dist/runtime/store/task/memory-task-store.d.ts +1 -0
  150. package/core/dist/runtime/store/task/memory-task-store.d.ts.map +1 -1
  151. package/core/dist/runtime/store/task/memory-task-store.js +37 -0
  152. package/core/dist/runtime/store/task/memory-task-store.js.map +1 -1
  153. package/core/dist/runtime/store/task/sqlite-task-store.d.ts +10 -0
  154. package/core/dist/runtime/store/task/sqlite-task-store.d.ts.map +1 -1
  155. package/core/dist/runtime/store/task/sqlite-task-store.js +20 -0
  156. package/core/dist/runtime/store/task/sqlite-task-store.js.map +1 -1
  157. package/core/dist/runtime/store/task/task-store.d.ts +16 -0
  158. package/core/dist/runtime/store/task/task-store.d.ts.map +1 -1
  159. package/core/dist/runtime/task-status.d.ts +13 -0
  160. package/core/dist/runtime/task-status.d.ts.map +1 -1
  161. package/core/dist/runtime/task-status.js +9 -0
  162. package/core/dist/runtime/task-status.js.map +1 -1
  163. package/core/dist/runtime/types/evidence-chain-contract.d.ts +10 -0
  164. package/core/dist/runtime/types/evidence-chain-contract.d.ts.map +1 -1
  165. package/core/dist/runtime/types/evidence-chain-contract.js +7 -0
  166. package/core/dist/runtime/types/evidence-chain-contract.js.map +1 -1
  167. package/core/package.json +2 -2
  168. package/dist/index.d.ts.map +1 -1
  169. package/dist/index.js +11 -0
  170. package/dist/index.js.map +1 -1
  171. package/dist/installer.d.ts.map +1 -1
  172. package/dist/installer.js +77 -30
  173. package/dist/installer.js.map +1 -1
  174. package/dist/installers/mcp-registration-conflict.d.ts +8 -0
  175. package/dist/installers/mcp-registration-conflict.d.ts.map +1 -1
  176. package/dist/installers/mcp-registration-conflict.js +34 -1
  177. package/dist/installers/mcp-registration-conflict.js.map +1 -1
  178. package/dist/installers/workbuddy-host-installer.d.ts +45 -13
  179. package/dist/installers/workbuddy-host-installer.d.ts.map +1 -1
  180. package/dist/installers/workbuddy-host-installer.js +284 -21
  181. package/dist/installers/workbuddy-host-installer.js.map +1 -1
  182. package/dist/prompts.d.ts +11 -0
  183. package/dist/prompts.d.ts.map +1 -1
  184. package/dist/prompts.js +4 -0
  185. package/dist/prompts.js.map +1 -1
  186. package/dist/service-host-bridge.d.ts +67 -0
  187. package/dist/service-host-bridge.d.ts.map +1 -0
  188. package/dist/service-host-bridge.js +292 -0
  189. package/dist/service-host-bridge.js.map +1 -0
  190. package/dist/uninstaller.d.ts.map +1 -1
  191. package/dist/uninstaller.js +26 -0
  192. package/dist/uninstaller.js.map +1 -1
  193. package/dist/update/install-layout.d.ts +0 -12
  194. package/dist/update/install-layout.d.ts.map +1 -1
  195. package/dist/update/install-layout.js +42 -15
  196. package/dist/update/install-layout.js.map +1 -1
  197. package/host-runtime/dist/diagnostician-auto-run.js +4 -1
  198. package/host-runtime/dist/governance-observation-store.d.ts +7 -0
  199. package/host-runtime/dist/governance-observation-store.js +15 -4
  200. package/host-runtime/dist/governance-signal-admission.d.ts +49 -0
  201. package/host-runtime/dist/governance-signal-admission.js +355 -94
  202. package/host-runtime/dist/governance-trajectory-turn-reader.d.ts +20 -4
  203. package/host-runtime/dist/governance-trajectory-turn-reader.js +77 -5
  204. package/host-runtime/dist/index.d.ts +2 -0
  205. package/host-runtime/dist/index.js +5 -0
  206. package/host-runtime/dist/internalization-consumer-cycle.js +4 -1
  207. package/host-runtime/dist/pd-config.d.ts +10 -0
  208. package/host-runtime/dist/pd-config.js +37 -0
  209. package/host-runtime/dist/signal-stage2-cycle.js +28 -1
  210. package/host-runtime/dist/source-material-authorization.d.ts +53 -0
  211. package/host-runtime/dist/source-material-authorization.js +67 -0
  212. package/host-runtime/dist/source-revocation-sweep.d.ts +172 -0
  213. package/host-runtime/dist/source-revocation-sweep.js +928 -0
  214. package/host-runtime/package.json +5 -1
  215. package/install-layout/dist/background-execution-transition.d.ts +258 -0
  216. package/install-layout/dist/background-execution-transition.js +836 -0
  217. package/install-layout/dist/index.d.ts +8 -0
  218. package/install-layout/dist/index.js +8 -0
  219. package/install-layout/package.json +6 -2
  220. package/package.json +7 -6
  221. package/pd-cli/dist/commands/candidate.d.ts.map +1 -1
  222. package/pd-cli/dist/commands/candidate.js +16 -5
  223. package/pd-cli/dist/commands/candidate.js.map +1 -1
  224. package/pd-cli/dist/commands/codex-setup.d.ts.map +1 -1
  225. package/pd-cli/dist/commands/codex-setup.js +17 -1
  226. package/pd-cli/dist/commands/codex-setup.js.map +1 -1
  227. package/pd-cli/dist/commands/codex-worker.d.ts.map +1 -1
  228. package/pd-cli/dist/commands/codex-worker.js +8 -4
  229. package/pd-cli/dist/commands/codex-worker.js.map +1 -1
  230. package/pd-cli/dist/commands/consent-sweep-revoked.d.ts +20 -0
  231. package/pd-cli/dist/commands/consent-sweep-revoked.d.ts.map +1 -0
  232. package/pd-cli/dist/commands/consent-sweep-revoked.js +85 -0
  233. package/pd-cli/dist/commands/consent-sweep-revoked.js.map +1 -0
  234. package/pd-cli/dist/commands/console.d.ts.map +1 -1
  235. package/pd-cli/dist/commands/console.js +9 -0
  236. package/pd-cli/dist/commands/console.js.map +1 -1
  237. package/pd-cli/dist/commands/context.d.ts.map +1 -1
  238. package/pd-cli/dist/commands/context.js +9 -1
  239. package/pd-cli/dist/commands/context.js.map +1 -1
  240. package/pd-cli/dist/commands/diagnose.d.ts.map +1 -1
  241. package/pd-cli/dist/commands/diagnose.js +12 -6
  242. package/pd-cli/dist/commands/diagnose.js.map +1 -1
  243. package/pd-cli/dist/commands/health-console.d.ts +1 -1
  244. package/pd-cli/dist/commands/health-console.d.ts.map +1 -1
  245. package/pd-cli/dist/commands/health-console.js +15 -1
  246. package/pd-cli/dist/commands/health-console.js.map +1 -1
  247. package/pd-cli/dist/commands/health.d.ts.map +1 -1
  248. package/pd-cli/dist/commands/health.js +7 -1
  249. package/pd-cli/dist/commands/health.js.map +1 -1
  250. package/pd-cli/dist/commands/openclaw-worker.d.ts +11 -0
  251. package/pd-cli/dist/commands/openclaw-worker.d.ts.map +1 -0
  252. package/pd-cli/dist/commands/openclaw-worker.js +199 -0
  253. package/pd-cli/dist/commands/openclaw-worker.js.map +1 -0
  254. package/pd-cli/dist/commands/pain-explicit.d.ts.map +1 -1
  255. package/pd-cli/dist/commands/pain-explicit.js +1 -0
  256. package/pd-cli/dist/commands/pain-explicit.js.map +1 -1
  257. package/pd-cli/dist/commands/pain-recall.d.ts +2 -2
  258. package/pd-cli/dist/commands/pain-recall.d.ts.map +1 -1
  259. package/pd-cli/dist/commands/pain-recall.js +7 -1
  260. package/pd-cli/dist/commands/pain-recall.js.map +1 -1
  261. package/pd-cli/dist/commands/pain-retry.d.ts.map +1 -1
  262. package/pd-cli/dist/commands/pain-retry.js +12 -6
  263. package/pd-cli/dist/commands/pain-retry.js.map +1 -1
  264. package/pd-cli/dist/commands/runtime-internalization-enqueue-successors.d.ts.map +1 -1
  265. package/pd-cli/dist/commands/runtime-internalization-enqueue-successors.js +2 -1
  266. package/pd-cli/dist/commands/runtime-internalization-enqueue-successors.js.map +1 -1
  267. package/pd-cli/dist/commands/runtime-internalization-run-once.d.ts +1 -0
  268. package/pd-cli/dist/commands/runtime-internalization-run-once.d.ts.map +1 -1
  269. package/pd-cli/dist/commands/runtime-internalization-run-once.js +32 -8
  270. package/pd-cli/dist/commands/runtime-internalization-run-once.js.map +1 -1
  271. package/pd-cli/dist/commands/runtime-internalization-wake-once.d.ts.map +1 -1
  272. package/pd-cli/dist/commands/runtime-internalization-wake-once.js +2 -1
  273. package/pd-cli/dist/commands/runtime-internalization-wake-once.js.map +1 -1
  274. package/pd-cli/dist/commands/service-handover.d.ts +12 -0
  275. package/pd-cli/dist/commands/service-handover.d.ts.map +1 -0
  276. package/pd-cli/dist/commands/service-handover.js +117 -0
  277. package/pd-cli/dist/commands/service-handover.js.map +1 -0
  278. package/pd-cli/dist/commands/service-lifecycle.d.ts +31 -0
  279. package/pd-cli/dist/commands/service-lifecycle.d.ts.map +1 -0
  280. package/pd-cli/dist/commands/service-lifecycle.js +207 -0
  281. package/pd-cli/dist/commands/service-lifecycle.js.map +1 -0
  282. package/pd-cli/dist/commands/service-run-once.d.ts +96 -0
  283. package/pd-cli/dist/commands/service-run-once.d.ts.map +1 -1
  284. package/pd-cli/dist/commands/service-run-once.js +432 -13
  285. package/pd-cli/dist/commands/service-run-once.js.map +1 -1
  286. package/pd-cli/dist/commands/workbuddy-setup.d.ts.map +1 -1
  287. package/pd-cli/dist/commands/workbuddy-setup.js +22 -2
  288. package/pd-cli/dist/commands/workbuddy-setup.js.map +1 -1
  289. package/pd-cli/dist/program.d.ts.map +1 -1
  290. package/pd-cli/dist/program.js +167 -9
  291. package/pd-cli/dist/program.js.map +1 -1
  292. package/pd-cli/dist/services/admission-write-gate.d.ts +3 -1
  293. package/pd-cli/dist/services/admission-write-gate.d.ts.map +1 -1
  294. package/pd-cli/dist/services/admission-write-gate.js +1 -0
  295. package/pd-cli/dist/services/admission-write-gate.js.map +1 -1
  296. package/pd-cli/dist/services/console-launcher.d.ts +93 -1
  297. package/pd-cli/dist/services/console-launcher.d.ts.map +1 -1
  298. package/pd-cli/dist/services/console-launcher.js +375 -10
  299. package/pd-cli/dist/services/console-launcher.js.map +1 -1
  300. package/pd-cli/dist/services/service-host/coordinator-common.d.ts +49 -0
  301. package/pd-cli/dist/services/service-host/coordinator-common.d.ts.map +1 -0
  302. package/pd-cli/dist/services/service-host/coordinator-common.js +158 -0
  303. package/pd-cli/dist/services/service-host/coordinator-common.js.map +1 -0
  304. package/pd-cli/dist/services/service-host/handover-claims.d.ts +14 -0
  305. package/pd-cli/dist/services/service-host/handover-claims.d.ts.map +1 -0
  306. package/pd-cli/dist/services/service-host/handover-claims.js +50 -0
  307. package/pd-cli/dist/services/service-host/handover-claims.js.map +1 -0
  308. package/pd-cli/dist/services/service-host/index.d.ts +19 -3
  309. package/pd-cli/dist/services/service-host/index.d.ts.map +1 -1
  310. package/pd-cli/dist/services/service-host/index.js +21 -3
  311. package/pd-cli/dist/services/service-host/index.js.map +1 -1
  312. package/pd-cli/dist/services/service-host/install-identity.d.ts +23 -3
  313. package/pd-cli/dist/services/service-host/install-identity.d.ts.map +1 -1
  314. package/pd-cli/dist/services/service-host/install-identity.js +15 -5
  315. package/pd-cli/dist/services/service-host/install-identity.js.map +1 -1
  316. package/pd-cli/dist/services/service-host/locking/service-run-lock.d.ts +130 -9
  317. package/pd-cli/dist/services/service-host/locking/service-run-lock.d.ts.map +1 -1
  318. package/pd-cli/dist/services/service-host/locking/service-run-lock.js +99 -19
  319. package/pd-cli/dist/services/service-host/locking/service-run-lock.js.map +1 -1
  320. package/pd-cli/dist/services/service-host/managed-run.d.ts +75 -0
  321. package/pd-cli/dist/services/service-host/managed-run.d.ts.map +1 -0
  322. package/pd-cli/dist/services/service-host/managed-run.js +550 -0
  323. package/pd-cli/dist/services/service-host/managed-run.js.map +1 -0
  324. package/pd-cli/dist/services/service-host/progress-evidence.d.ts +38 -0
  325. package/pd-cli/dist/services/service-host/progress-evidence.d.ts.map +1 -0
  326. package/pd-cli/dist/services/service-host/progress-evidence.js +155 -0
  327. package/pd-cli/dist/services/service-host/progress-evidence.js.map +1 -0
  328. package/pd-cli/dist/services/service-host/run-once.d.ts.map +1 -1
  329. package/pd-cli/dist/services/service-host/run-once.js +4 -136
  330. package/pd-cli/dist/services/service-host/run-once.js.map +1 -1
  331. package/pd-cli/dist/services/service-host/scheduler/contract.d.ts +184 -0
  332. package/pd-cli/dist/services/service-host/scheduler/contract.d.ts.map +1 -0
  333. package/pd-cli/dist/services/service-host/scheduler/contract.js +86 -0
  334. package/pd-cli/dist/services/service-host/scheduler/contract.js.map +1 -0
  335. package/pd-cli/dist/services/service-host/scheduler/index.d.ts +76 -0
  336. package/pd-cli/dist/services/service-host/scheduler/index.d.ts.map +1 -0
  337. package/pd-cli/dist/services/service-host/scheduler/index.js +128 -0
  338. package/pd-cli/dist/services/service-host/scheduler/index.js.map +1 -0
  339. package/pd-cli/dist/services/service-host/scheduler/linux.d.ts +27 -0
  340. package/pd-cli/dist/services/service-host/scheduler/linux.d.ts.map +1 -0
  341. package/pd-cli/dist/services/service-host/scheduler/linux.js +1010 -0
  342. package/pd-cli/dist/services/service-host/scheduler/linux.js.map +1 -0
  343. package/pd-cli/dist/services/service-host/scheduler/macos.d.ts +13 -0
  344. package/pd-cli/dist/services/service-host/scheduler/macos.d.ts.map +1 -0
  345. package/pd-cli/dist/services/service-host/scheduler/macos.js +819 -0
  346. package/pd-cli/dist/services/service-host/scheduler/macos.js.map +1 -0
  347. package/pd-cli/dist/services/service-host/scheduler/runtime-io.d.ts +13 -0
  348. package/pd-cli/dist/services/service-host/scheduler/runtime-io.d.ts.map +1 -0
  349. package/pd-cli/dist/services/service-host/scheduler/runtime-io.js +141 -0
  350. package/pd-cli/dist/services/service-host/scheduler/runtime-io.js.map +1 -0
  351. package/pd-cli/dist/services/service-host/scheduler/service-status.d.ts +99 -0
  352. package/pd-cli/dist/services/service-host/scheduler/service-status.d.ts.map +1 -0
  353. package/pd-cli/dist/services/service-host/scheduler/service-status.js +202 -0
  354. package/pd-cli/dist/services/service-host/scheduler/service-status.js.map +1 -0
  355. package/pd-cli/dist/services/service-host/scheduler/windows.d.ts +40 -0
  356. package/pd-cli/dist/services/service-host/scheduler/windows.d.ts.map +1 -0
  357. package/pd-cli/dist/services/service-host/scheduler/windows.js +688 -0
  358. package/pd-cli/dist/services/service-host/scheduler/windows.js.map +1 -0
  359. package/pd-cli/dist/services/service-host/shadow-progress-store.d.ts +43 -0
  360. package/pd-cli/dist/services/service-host/shadow-progress-store.d.ts.map +1 -0
  361. package/pd-cli/dist/services/service-host/shadow-progress-store.js +156 -0
  362. package/pd-cli/dist/services/service-host/shadow-progress-store.js.map +1 -0
  363. package/pd-cli/dist/services/service-host/shadow-run.d.ts +87 -0
  364. package/pd-cli/dist/services/service-host/shadow-run.d.ts.map +1 -0
  365. package/pd-cli/dist/services/service-host/shadow-run.js +549 -0
  366. package/pd-cli/dist/services/service-host/shadow-run.js.map +1 -0
  367. package/pd-cli/dist/services/service-host/status/service-run-status.d.ts +114 -4
  368. package/pd-cli/dist/services/service-host/status/service-run-status.d.ts.map +1 -1
  369. package/pd-cli/dist/services/service-host/status/service-run-status.js +37 -0
  370. package/pd-cli/dist/services/service-host/status/service-run-status.js.map +1 -1
  371. package/pd-cli/dist/services/service-host/worker-adapter-codex.d.ts +2 -0
  372. package/pd-cli/dist/services/service-host/worker-adapter-codex.d.ts.map +1 -0
  373. package/pd-cli/dist/services/service-host/worker-adapter-codex.js +76 -0
  374. package/pd-cli/dist/services/service-host/worker-adapter-codex.js.map +1 -0
  375. package/pd-cli/dist/services/service-host/worker-adapter-openclaw.d.ts +2 -0
  376. package/pd-cli/dist/services/service-host/worker-adapter-openclaw.d.ts.map +1 -0
  377. package/pd-cli/dist/services/service-host/worker-adapter-openclaw.js +49 -0
  378. package/pd-cli/dist/services/service-host/worker-adapter-openclaw.js.map +1 -0
  379. package/pd-cli/dist/services/service-host/worker-adapter-workbuddy.d.ts +2 -0
  380. package/pd-cli/dist/services/service-host/worker-adapter-workbuddy.d.ts.map +1 -0
  381. package/pd-cli/dist/services/service-host/worker-adapter-workbuddy.js +36 -0
  382. package/pd-cli/dist/services/service-host/worker-adapter-workbuddy.js.map +1 -0
  383. package/pd-cli/dist/services/service-host/worker-adapter.d.ts +187 -0
  384. package/pd-cli/dist/services/service-host/worker-adapter.d.ts.map +1 -0
  385. package/pd-cli/dist/services/service-host/worker-adapter.js +609 -0
  386. package/pd-cli/dist/services/service-host/worker-adapter.js.map +1 -0
  387. package/pd-cli/dist/services/service-host/worker-env.d.ts +84 -0
  388. package/pd-cli/dist/services/service-host/worker-env.d.ts.map +1 -0
  389. package/pd-cli/dist/services/service-host/worker-env.js +195 -0
  390. package/pd-cli/dist/services/service-host/worker-env.js.map +1 -0
  391. package/pd-cli/dist/services/service-host/worker-process.d.ts +75 -0
  392. package/pd-cli/dist/services/service-host/worker-process.d.ts.map +1 -0
  393. package/pd-cli/dist/services/service-host/worker-process.js +225 -0
  394. package/pd-cli/dist/services/service-host/worker-process.js.map +1 -0
  395. package/pd-cli/dist/services/service-host/workspace-dispatch.d.ts +61 -0
  396. package/pd-cli/dist/services/service-host/workspace-dispatch.d.ts.map +1 -0
  397. package/pd-cli/dist/services/service-host/workspace-dispatch.js +105 -0
  398. package/pd-cli/dist/services/service-host/workspace-dispatch.js.map +1 -0
  399. package/pd-cli/dist/services/service-host/workspace-handover.d.ts +190 -0
  400. package/pd-cli/dist/services/service-host/workspace-handover.d.ts.map +1 -0
  401. package/pd-cli/dist/services/service-host/workspace-handover.js +1393 -0
  402. package/pd-cli/dist/services/service-host/workspace-handover.js.map +1 -0
  403. package/pd-cli/package.json +6 -5
  404. package/pd-mcp-server/dist/submit-assembly.js +159 -42
  405. package/pd-mcp-server/dist/version.d.ts +1 -1
  406. package/pd-mcp-server/dist/version.js +1 -1
  407. package/pd-mcp-server/package.json +1 -1
  408. package/plugin/dist/bundle.js +662 -637
  409. package/plugin/dist/openclaw-worker.d.ts +92 -0
  410. package/plugin/dist/openclaw-worker.js +2446 -0
  411. package/plugin/dist/openclaw.plugin.json +1 -1
  412. package/plugin/dist/service/gateway-consumer-lease.d.ts +142 -0
  413. package/plugin/dist/service/gateway-quiesce-ack.d.ts +40 -0
  414. package/plugin/dist/service/internalization-auto-consumer-service.d.ts +68 -1
  415. package/plugin/openclaw.plugin.json +1 -1
  416. package/plugin/package.json +5 -1
  417. package/release-manager/dist/installer.js +77 -30
  418. package/release-manager/dist/installers/mcp-registration-conflict.js +34 -1
  419. package/release-manager/dist/installers/workbuddy-host-installer.js +284 -21
  420. package/release-manager/dist/service-host-bridge.js +292 -0
  421. package/release-manager/dist/update/install-layout.js +42 -15
  422. package/release-manager/package.json +5 -4
  423. package/workbuddy-adapter/dist/index.d.ts +1 -1
  424. package/workbuddy-adapter/dist/index.js +1 -1
  425. package/workbuddy-adapter/dist/worker/workspace-worker.d.ts +7 -0
  426. package/workbuddy-adapter/dist/worker/workspace-worker.js +179 -10
  427. package/workbuddy-adapter/package.json +1 -1
  428. package/workbuddy-adapter/plugin/.codebuddy-plugin/plugin.json +2 -2
@@ -1,6 +1,102 @@
1
+ /**
2
+ * `pd service run-once` — the PD Service Host run-once coordinator CLI
3
+ * (SPEC-PD-SERVICE-HOST-001 §11 Phase 1 + Phase 2 + Phase 3).
4
+ *
5
+ * Three modes (cli-4):
6
+ * - bare / `--json` (Phase 3, PRI-1281): the MANAGED execution — the OS
7
+ * scheduler's entry. Auto-discovers workspaces and executes ONLY
8
+ * `effectiveOwner=service_host` ones (§8.4); zero such workspaces is a
9
+ * legal empty run.
10
+ * - `--dry-run` (Phase 1): the read-only discovery dry-run — NO worker,
11
+ * NO ownership change, no business writes.
12
+ * - `--shadow` (Phase 2, PRI-1280): an explicit, bounded REAL worker cycle
13
+ * for each `--workspace <dir>` selection through the unified Worker
14
+ * Adapter. Shadow calls the real worker — business tasks may advance —
15
+ * and requires explicit workspace selection; never scheduled.
16
+ *
17
+ * `--trigger manual|scheduler` records the SELF-DECLARED trigger source
18
+ * (task §4/§11 review): the scheduler registers `--trigger scheduler`, but
19
+ * the flag is written by the run-once process itself — it is a REPORTED
20
+ * trigger, not verified OS evidence. Any caller may claim 'scheduler';
21
+ * consumers (status document, Examiner, Console) must never treat the flag
22
+ * as proof of an OS-triggered run — the OS scheduler witnesses
23
+ * (registration/lastRun) are the verified side. Login vs periodic is
24
+ * deliberately NOT distinguished (no platform reports it reliably).
25
+ *
26
+ * cli-1: `--json` stdout carries exactly one machine-readable document;
27
+ * diagnostics go to stderr. cli-2/cli-5: refusals set the exit code without
28
+ * mutating anything. cli-6: every refusal carries reason + nextAction.
29
+ */
30
+ import { type ShadowRunResult, type ManagedRunResult, type ServiceRunTriggerSource } from '../services/service-host/index.js';
31
+ import type { WorkerHostKind } from '../services/service-host/index.js';
1
32
  export interface ServiceRunOnceArgs {
2
33
  readonly dryRun: boolean;
34
+ readonly shadow: boolean;
35
+ /** Explicit workspace selections for shadow mode (at least one required). */
36
+ readonly workspaces: readonly string[];
37
+ /** Restrict shadow to one host adapter (codex | workbuddy). */
38
+ readonly host?: WorkerHostKind;
39
+ /** Set when --host was given a value outside codex|workbuddy (fail-closed). */
40
+ readonly invalidHost?: string;
41
+ /** Self-declared trigger source for the status record (default manual) —
42
+ * reported, never verified (task §11). */
43
+ readonly trigger?: ServiceRunTriggerSource;
44
+ /** Set when --trigger was given a value outside manual|scheduler (fail-closed). */
45
+ readonly invalidTrigger?: string;
46
+ /** Trusted home injection (scheduler registration / installer / tests). */
47
+ readonly pdHome?: string;
48
+ /**
49
+ * The RAW --timeout-ms argument string (F8 review fix): validated in full
50
+ * here — a partial parse like `5m` → 5 used to start a REAL cycle with a
51
+ * 1-second deadline, and an unparseable value silently fell back to the
52
+ * 45-minute default. Both paths now refuse before any execution.
53
+ */
54
+ readonly timeoutMsRaw?: string;
55
+ /**
56
+ * Caller-provided cancellation (F11 review fix). When absent, the CLI
57
+ * wires terminal SIGINT/SIGTERM to an internal controller so a terminal
58
+ * interrupt aborts the in-flight worker child through the SAME signal
59
+ * path. Tests inject a signal directly.
60
+ */
61
+ readonly signal?: AbortSignal;
3
62
  readonly json: boolean;
4
63
  }
64
+ /**
65
+ * F8: validate the full --timeout-ms value BEFORE any real execution. The
66
+ * whole string must be a decimal integer inside the supported range —
67
+ * partial parses (`5m` → 5) and silent defaults (`five` → 45min) are
68
+ * refused with a structured reason instead of starting a mis-bounded
69
+ * worker.
70
+ */
71
+ export declare function parseShadowTimeoutMs(raw: string | undefined): {
72
+ ok: true;
73
+ timeoutMs: number;
74
+ } | {
75
+ ok: false;
76
+ reason: string;
77
+ nextAction: string;
78
+ };
79
+ /**
80
+ * Wire the terminal's OS signals into ONE AbortController (F11 + P1-01
81
+ * final-closure review): SIGINT, SIGTERM and — on POSIX — SIGHUP all drive
82
+ * the same cancellation path the in-flight worker child already honours
83
+ * (process-group SIGTERM → bounded grace → SIGKILL → bounded stdio drain).
84
+ * A dropped SSH/terminal session must terminate the detached worker group
85
+ * through the coordinator's normal cleanup instead of leaving an
86
+ * uncontrolled worker — and a released lock — behind. Windows keeps its
87
+ * existing semantics: SIGHUP is never registered there.
88
+ *
89
+ * Returns the teardown that removes every listener it installed; callers
90
+ * invoke it exactly once when the coordinated work settles.
91
+ */
92
+ export declare function wireTerminalAbortSignals(controller: AbortController): () => void;
93
+ /** Human rendering of one shadow execution (task §10: outcome + progress + health stay distinct). */
94
+ export declare function printHumanShadow(result: Extract<ShadowRunResult, {
95
+ outcome: 'completed';
96
+ }>): void;
97
+ /** Human rendering of one managed execution (task §4 admission matrix). */
98
+ export declare function printHumanManaged(result: Extract<ManagedRunResult, {
99
+ outcome: 'completed';
100
+ }>): void;
5
101
  export declare function handleServiceRunOnce(args: ServiceRunOnceArgs): Promise<void>;
6
102
  //# sourceMappingURL=service-run-once.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"service-run-once.d.ts","sourceRoot":"","sources":["../../src/commands/service-run-once.ts"],"names":[],"mappings":"AAiBA,MAAM,WAAW,kBAAkB;IACjC,QAAQ,CAAC,MAAM,EAAE,OAAO,CAAC;IACzB,QAAQ,CAAC,IAAI,EAAE,OAAO,CAAC;CACxB;AAmDD,wBAAsB,oBAAoB,CAAC,IAAI,EAAE,kBAAkB,GAAG,OAAO,CAAC,IAAI,CAAC,CA0FlF"}
1
+ {"version":3,"file":"service-run-once.d.ts","sourceRoot":"","sources":["../../src/commands/service-run-once.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACH,OAAO,EAKL,KAAK,eAAe,EACpB,KAAK,gBAAgB,EACrB,KAAK,uBAAuB,EAC7B,MAAM,mCAAmC,CAAC;AAC3C,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,mCAAmC,CAAC;AAExE,MAAM,WAAW,kBAAkB;IACjC,QAAQ,CAAC,MAAM,EAAE,OAAO,CAAC;IACzB,QAAQ,CAAC,MAAM,EAAE,OAAO,CAAC;IACzB,6EAA6E;IAC7E,QAAQ,CAAC,UAAU,EAAE,SAAS,MAAM,EAAE,CAAC;IACvC,+DAA+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@@ -1,19 +1,65 @@
1
1
  /**
2
2
  * `pd service run-once` — the PD Service Host run-once coordinator CLI
3
- * (SPEC-PD-SERVICE-HOST-001 §11 Phase 1).
3
+ * (SPEC-PD-SERVICE-HOST-001 §11 Phase 1 + Phase 2 + Phase 3).
4
4
  *
5
- * Phase 1 contract: `--dry-run` is REQUIRED. The coordinator executes the
6
- * real pipeline (install identity → single-instance lock → active release →
7
- * install manifest → validated claims → workspace discovery → read-only
8
- * owner projection → versioned operational status) and starts NO Worker and
9
- * changes NO consumer ownership. A run without `--dry-run` is refused
10
- * (fail-closed) rather than silently doing less than the operator asked.
5
+ * Three modes (cli-4):
6
+ * - bare / `--json` (Phase 3, PRI-1281): the MANAGED execution — the OS
7
+ * scheduler's entry. Auto-discovers workspaces and executes ONLY
8
+ * `effectiveOwner=service_host` ones (§8.4); zero such workspaces is a
9
+ * legal empty run.
10
+ * - `--dry-run` (Phase 1): the read-only discovery dry-run — NO worker,
11
+ * NO ownership change, no business writes.
12
+ * - `--shadow` (Phase 2, PRI-1280): an explicit, bounded REAL worker cycle
13
+ * for each `--workspace <dir>` selection through the unified Worker
14
+ * Adapter. Shadow calls the real worker — business tasks may advance —
15
+ * and requires explicit workspace selection; never scheduled.
16
+ *
17
+ * `--trigger manual|scheduler` records the SELF-DECLARED trigger source
18
+ * (task §4/§11 review): the scheduler registers `--trigger scheduler`, but
19
+ * the flag is written by the run-once process itself — it is a REPORTED
20
+ * trigger, not verified OS evidence. Any caller may claim 'scheduler';
21
+ * consumers (status document, Examiner, Console) must never treat the flag
22
+ * as proof of an OS-triggered run — the OS scheduler witnesses
23
+ * (registration/lastRun) are the verified side. Login vs periodic is
24
+ * deliberately NOT distinguished (no platform reports it reliably).
11
25
  *
12
26
  * cli-1: `--json` stdout carries exactly one machine-readable document;
13
27
  * diagnostics go to stderr. cli-2/cli-5: refusals set the exit code without
14
28
  * mutating anything. cli-6: every refusal carries reason + nextAction.
15
29
  */
16
- import { runServiceRunOnce } from '../services/service-host/index.js';
30
+ import { runServiceRunOnce, runServiceShadowOnce, runServiceManagedOnce, } from '../services/service-host/index.js';
31
+ /** Node timers support 2^31-1 ms; above that setTimeout overflows to ~1ms. */
32
+ const MAX_TIMEOUT_MS = 2_147_483_647;
33
+ const MIN_TIMEOUT_MS = 1_000;
34
+ const DEFAULT_TIMEOUT_FALLBACK_MS = 45 * 60_000;
35
+ /**
36
+ * F8: validate the full --timeout-ms value BEFORE any real execution. The
37
+ * whole string must be a decimal integer inside the supported range —
38
+ * partial parses (`5m` → 5) and silent defaults (`five` → 45min) are
39
+ * refused with a structured reason instead of starting a mis-bounded
40
+ * worker.
41
+ */
42
+ export function parseShadowTimeoutMs(raw) {
43
+ if (raw === undefined || raw.trim() === '')
44
+ return { ok: true, timeoutMs: DEFAULT_TIMEOUT_FALLBACK_MS };
45
+ const value = raw.trim();
46
+ if (!/^\d+$/.test(value)) {
47
+ return {
48
+ ok: false,
49
+ reason: `invalid_timeout_ms:${value.slice(0, 40)}`,
50
+ nextAction: '--timeout-ms must be a plain millisecond integer (e.g. 2700000). Values like "5m" are not accepted; omit the flag for the 45-minute default.',
51
+ };
52
+ }
53
+ const parsed = Number(value);
54
+ if (!Number.isSafeInteger(parsed) || parsed < MIN_TIMEOUT_MS || parsed > MAX_TIMEOUT_MS) {
55
+ return {
56
+ ok: false,
57
+ reason: `timeout_ms_out_of_range:${value.slice(0, 40)}`,
58
+ nextAction: `--timeout-ms must be between ${MIN_TIMEOUT_MS} and ${MAX_TIMEOUT_MS} milliseconds (a per-workspace bound of at least one second, at most the Node timer ceiling).`,
59
+ };
60
+ }
61
+ return { ok: true, timeoutMs: parsed };
62
+ }
17
63
  /** Render the completed dry-run for humans (JSON mode prints the status verbatim). */
18
64
  function printHumanCompleted(result) {
19
65
  const { discovery, manifest, activeRelease, identity } = result;
@@ -40,16 +86,120 @@ function printHumanCompleted(result) {
40
86
  }
41
87
  console.log(` next: ${result.status.nextAction}`);
42
88
  }
89
+ /**
90
+ * Wire the terminal's OS signals into ONE AbortController (F11 + P1-01
91
+ * final-closure review): SIGINT, SIGTERM and — on POSIX — SIGHUP all drive
92
+ * the same cancellation path the in-flight worker child already honours
93
+ * (process-group SIGTERM → bounded grace → SIGKILL → bounded stdio drain).
94
+ * A dropped SSH/terminal session must terminate the detached worker group
95
+ * through the coordinator's normal cleanup instead of leaving an
96
+ * uncontrolled worker — and a released lock — behind. Windows keeps its
97
+ * existing semantics: SIGHUP is never registered there.
98
+ *
99
+ * Returns the teardown that removes every listener it installed; callers
100
+ * invoke it exactly once when the coordinated work settles.
101
+ */
102
+ export function wireTerminalAbortSignals(controller) {
103
+ const onOsSignal = () => controller.abort();
104
+ process.on('SIGINT', onOsSignal);
105
+ process.on('SIGTERM', onOsSignal);
106
+ const posixHangup = process.platform !== 'win32';
107
+ if (posixHangup)
108
+ process.on('SIGHUP', onOsSignal);
109
+ return () => {
110
+ process.removeListener('SIGINT', onOsSignal);
111
+ process.removeListener('SIGTERM', onOsSignal);
112
+ if (posixHangup)
113
+ process.removeListener('SIGHUP', onOsSignal);
114
+ };
115
+ }
43
116
  /** Render one refusal for humans. */
44
117
  function printHumanRefusal(reason, nextAction) {
45
118
  console.error(`pd service run-once refused: ${reason}`);
46
119
  console.error(`Next action: ${nextAction}`);
47
120
  }
121
+ /** Human rendering of one shadow execution (task §10: outcome + progress + health stay distinct). */
122
+ export function printHumanShadow(result) {
123
+ const { identity, activeRelease } = result;
124
+ console.log(`pd service run-once (shadow) — install identity resolved`);
125
+ console.log(` pdHome: ${identity.pdHome}`);
126
+ console.log(` activeRelease: ${activeRelease.valid ? (activeRelease.releaseId ?? 'unknown identity') : (activeRelease.reason ?? 'unavailable')}`);
127
+ for (const record of result.executions) {
128
+ if (record.admission === 'refused') {
129
+ console.log(` [refused] ${record.requestedDir} — ${record.refusalReason ?? 'refused'}`);
130
+ console.log(` next: ${record.refusalNextAction ?? ''}`);
131
+ continue;
132
+ }
133
+ const { execution } = record;
134
+ if (execution === undefined) {
135
+ // P2-04: records with no Worker execution (workspace_timeout_budget_
136
+ // exhausted, adapter_threw, worker_spawn_failed) still owe the human
137
+ // output their recorded reason and nextAction, not a bare label.
138
+ console.log(` [${record.workspaceState}] ${record.requestedDir} (${record.hostKind ?? '?'}) — ${record.refusalReason ?? 'adapter failure'}`);
139
+ if (record.refusalNextAction !== undefined)
140
+ console.log(` next: ${record.refusalNextAction}`);
141
+ continue;
142
+ }
143
+ const progress = record.lastProgressAt !== null ? record.lastProgressAt : 'none yet';
144
+ const driver = execution.health.lastCycleDriver ?? 'unknown';
145
+ console.log(` [${record.workspaceState}] ${execution.workspaceDir} (${execution.hostKind} via ${execution.worker.cliEntrySource}) — ${execution.cycleOutcome}${execution.reason !== undefined ? ` (${execution.reason})` : ''}`);
146
+ console.log(` progress: last=${progress} (source=${record.lastProgressSource ?? 'none'}); tasks changed=${execution.businessProgress.changedTaskCount}; driver=${driver}; duration=${execution.durationMs}ms`);
147
+ if (execution.nextAction !== undefined)
148
+ console.log(` next: ${execution.nextAction}`);
149
+ }
150
+ if (result.statusWrite.ok) {
151
+ console.log(` status: ${result.statusWrite.path}`);
152
+ }
153
+ else {
154
+ console.error(` status write FAILED: ${result.statusWrite.reason}`);
155
+ console.error(` next action: ${result.statusWrite.nextAction}`);
156
+ }
157
+ console.log(` next: ${result.status.nextAction}`);
158
+ }
159
+ /** Human rendering of one managed execution (task §4 admission matrix). */
160
+ export function printHumanManaged(result) {
161
+ const { identity, activeRelease } = result;
162
+ console.log(`pd service run-once (managed, trigger=${result.status.triggerSource}) — install identity resolved`);
163
+ console.log(` pdHome: ${identity.pdHome}`);
164
+ console.log(` activeRelease: ${activeRelease.valid ? activeRelease.releaseId ?? 'unknown identity' : activeRelease.reason ?? 'unavailable'}`);
165
+ const section = result.status.managed;
166
+ if (section !== undefined && section.emptyReason !== undefined) {
167
+ console.log(` result: legal empty run (${section.emptyReason}) — no Worker started`);
168
+ }
169
+ for (const record of result.executions) {
170
+ if (record.admission === 'skipped') {
171
+ console.log(` [skipped] ${record.canonicalDir} — ${record.skipReason ?? 'skipped'}`);
172
+ if (record.skipNextAction !== undefined)
173
+ console.log(` next: ${record.skipNextAction}`);
174
+ continue;
175
+ }
176
+ if (record.execution === undefined) {
177
+ console.log(` [${record.workspaceState}] ${record.canonicalDir} (${record.hostKind ?? '?'}) — ${record.skipReason ?? 'failed before cycle'}`);
178
+ if (record.skipNextAction !== undefined)
179
+ console.log(` next: ${record.skipNextAction}`);
180
+ continue;
181
+ }
182
+ const { execution } = record;
183
+ const progress = record.lastProgressAt !== null ? record.lastProgressAt : 'none yet';
184
+ console.log(` [${record.workspaceState}] ${execution.workspaceDir} (${execution.hostKind} via ${execution.worker.cliEntrySource}) — ${execution.cycleOutcome}${execution.reason !== undefined ? ` (${execution.reason})` : ''}`);
185
+ console.log(` progress: last=${progress} (source=${record.lastProgressSource ?? 'none'}); tasks changed=${execution.businessProgress.changedTaskCount}; duration=${execution.durationMs}ms`);
186
+ if (execution.nextAction !== undefined)
187
+ console.log(` next: ${execution.nextAction}`);
188
+ }
189
+ if (result.statusWrite.ok) {
190
+ console.log(` status: ${result.statusWrite.path}`);
191
+ }
192
+ else {
193
+ console.error(` status write FAILED: ${result.statusWrite.reason}`);
194
+ console.error(` next action: ${result.statusWrite.nextAction}`);
195
+ }
196
+ console.log(` next: ${result.status.nextAction}`);
197
+ }
48
198
  export async function handleServiceRunOnce(args) {
49
- // Phase 1 admission boundary: only the read-only dry-run exists.
50
- if (!args.dryRun) {
51
- const reason = 'dry_run_required_phase1';
52
- const nextAction = 'Phase 1 supports the read-only dry-run only: re-run with --dry-run. Real worker cycles arrive with a later phase (PRI-1280).';
199
+ // Invalid --host value: fail closed before any mode runs (cli-6).
200
+ if (args.invalidHost !== undefined) {
201
+ const reason = `invalid_host_kind:${args.invalidHost.slice(0, 40)}`;
202
+ const nextAction = 'Use --host codex or --host workbuddy (or omit --host to run every bound adapter).';
53
203
  if (args.json) {
54
204
  const output = { schemaVersion: 'pd.service-run-status.v1', outcome: 'refused', dryRun: false, runId: 'n/a', reason, nextAction };
55
205
  console.log(JSON.stringify(output));
@@ -60,7 +210,276 @@ export async function handleServiceRunOnce(args) {
60
210
  process.exitCode = 1;
61
211
  return;
62
212
  }
63
- const result = runServiceRunOnce();
213
+ // Invalid --trigger value: fail closed before any mode runs (cli-6).
214
+ if (args.invalidTrigger !== undefined) {
215
+ const reason = `invalid_trigger:${args.invalidTrigger.slice(0, 40)}`;
216
+ const nextAction = 'Use --trigger manual or --trigger scheduler. Login vs periodic is deliberately not distinguishable — PD never fabricates a finer trigger source than it can prove.';
217
+ if (args.json) {
218
+ const output = { schemaVersion: 'pd.service-run-status.v1', outcome: 'refused', dryRun: false, runId: 'n/a', reason, nextAction };
219
+ console.log(JSON.stringify(output));
220
+ }
221
+ else {
222
+ printHumanRefusal(reason, nextAction);
223
+ }
224
+ process.exitCode = 1;
225
+ return;
226
+ }
227
+ // Mode gate (cli-4): --dry-run and --shadow stay mutually exclusive; a
228
+ // bare run is the Phase 3 MANAGED execution (the scheduler entry).
229
+ if (args.dryRun && args.shadow) {
230
+ const reason = 'dry_run_shadow_mutually_exclusive';
231
+ const nextAction = 'Choose one mode: --dry-run (read-only discovery), --shadow --workspace <dir> (explicit bounded worker cycles), or a bare run (managed execution — service_host_owned workspaces only).';
232
+ if (args.json) {
233
+ const output = { schemaVersion: 'pd.service-run-status.v1', outcome: 'refused', dryRun: true, runId: 'n/a', reason, nextAction };
234
+ console.log(JSON.stringify(output));
235
+ }
236
+ else {
237
+ printHumanRefusal(reason, nextAction);
238
+ }
239
+ process.exitCode = 1;
240
+ return;
241
+ }
242
+ const triggerSource = args.trigger ?? 'manual';
243
+ if (args.shadow) {
244
+ // F8: full-value validation BEFORE the coordinator acquires the lock or
245
+ // spawns any real cycle.
246
+ const timeout = parseShadowTimeoutMs(args.timeoutMsRaw);
247
+ if (!timeout.ok) {
248
+ if (args.json) {
249
+ const output = { schemaVersion: 'pd.service-run-status.v1', outcome: 'refused', dryRun: false, runId: 'n/a', reason: timeout.reason, nextAction: timeout.nextAction };
250
+ console.log(JSON.stringify(output));
251
+ }
252
+ else {
253
+ printHumanRefusal(timeout.reason, timeout.nextAction);
254
+ }
255
+ process.exitCode = 1;
256
+ return;
257
+ }
258
+ // F11: cancellation reaches the coordinator and the in-flight worker
259
+ // child through ONE AbortSignal — injected by tests, or wired here to
260
+ // terminal SIGINT/SIGTERM/SIGHUP so an operator interrupt (or a dropped
261
+ // terminal) behaves identically.
262
+ let unwireOsSignals;
263
+ const { signal: injectedSignal } = args;
264
+ let signal = injectedSignal;
265
+ if (signal === undefined) {
266
+ const controller = new AbortController();
267
+ ({ signal } = controller);
268
+ unwireOsSignals = wireTerminalAbortSignals(controller);
269
+ }
270
+ let result;
271
+ try {
272
+ result = await runServiceShadowOnce({
273
+ workspaces: args.workspaces,
274
+ ...(args.host !== undefined ? { hostFilter: args.host } : {}),
275
+ timeoutMs: timeout.timeoutMs,
276
+ ...(signal !== undefined ? { signal } : {}),
277
+ ...(args.pdHome !== undefined ? { trustedHomeDir: args.pdHome } : {}),
278
+ });
279
+ }
280
+ finally {
281
+ unwireOsSignals?.();
282
+ }
283
+ if (result.outcome === 'refused') {
284
+ if (args.json) {
285
+ const output = {
286
+ schemaVersion: 'pd.service-run-status.v1',
287
+ outcome: 'refused',
288
+ dryRun: false,
289
+ runId: result.runId,
290
+ reason: result.reason,
291
+ nextAction: result.nextAction,
292
+ ...(result.statusWrite !== undefined ? { statusWrite: result.statusWrite } : {}),
293
+ };
294
+ console.log(JSON.stringify(output));
295
+ }
296
+ else {
297
+ printHumanRefusal(result.reason, result.nextAction);
298
+ if (result.statusWrite !== undefined && !result.statusWrite.ok) {
299
+ console.error(` status write FAILED: ${result.statusWrite.reason}`);
300
+ }
301
+ }
302
+ process.exitCode = 1;
303
+ return;
304
+ }
305
+ if (result.outcome === 'already_running') {
306
+ if (args.json) {
307
+ const output = {
308
+ schemaVersion: 'pd.service-run-status.v1',
309
+ outcome: 'already_running',
310
+ dryRun: false,
311
+ runId: result.runId,
312
+ reason: result.reason,
313
+ nextAction: result.nextAction,
314
+ };
315
+ console.log(JSON.stringify(output));
316
+ }
317
+ else {
318
+ console.log(`pd service run-once (shadow): already running (lock held).`);
319
+ console.log(` holder: ${result.holderBodyHash}`);
320
+ console.log(` next: ${result.nextAction}`);
321
+ }
322
+ process.exitCode = 0;
323
+ return;
324
+ }
325
+ if (args.json) {
326
+ const output = {
327
+ schemaVersion: 'pd.service-run-status.v1',
328
+ outcome: 'completed',
329
+ dryRun: false,
330
+ runId: result.runId,
331
+ installation: result.status.installation,
332
+ environmentIsolation: result.status.environmentIsolation,
333
+ manifest: result.manifest,
334
+ activeRelease: result.activeRelease,
335
+ discovery: {
336
+ discoveredTotal: result.discovery.discoveredTotal,
337
+ counts: result.discovery.counts,
338
+ hostRoots: result.status.discovery.hostRoots,
339
+ incomplete: result.status.discovery.incomplete,
340
+ },
341
+ workspaces: result.discovery.workspaces,
342
+ shadow: result.status.shadow,
343
+ executions: result.executions,
344
+ statusWrite: result.statusWrite,
345
+ nextAction: result.status.nextAction,
346
+ ...(result.statusWrite.ok ? { statusPath: result.statusWrite.path } : {}),
347
+ };
348
+ console.log(JSON.stringify(output, null, 2));
349
+ }
350
+ else {
351
+ printHumanShadow(result);
352
+ }
353
+ // Exit-code policy: 0 only when at least one cycle ran and every
354
+ // admitted execution ended completed/paused; refusals, failures,
355
+ // timeouts, degradations and a failed status write are non-zero.
356
+ const admitted = result.executions.filter((e) => e.admission === 'admitted');
357
+ const allHealthy = admitted.length > 0
358
+ && admitted.every((e) => e.workspaceState === 'completed' || e.workspaceState === 'paused');
359
+ const statusFailed = !result.statusWrite.ok;
360
+ const anyRefused = result.executions.some((e) => e.admission === 'refused');
361
+ process.exitCode = allHealthy && !statusFailed && !anyRefused ? 0 : 1;
362
+ return;
363
+ }
364
+ // ── Phase 3 managed execution (bare run — the OS scheduler entry) ──
365
+ if (!args.dryRun) {
366
+ const timeout = parseShadowTimeoutMs(args.timeoutMsRaw);
367
+ if (!timeout.ok) {
368
+ if (args.json) {
369
+ const output = { schemaVersion: 'pd.service-run-status.v1', outcome: 'refused', dryRun: false, runId: 'n/a', reason: timeout.reason, nextAction: timeout.nextAction };
370
+ console.log(JSON.stringify(output));
371
+ }
372
+ else {
373
+ printHumanRefusal(timeout.reason, timeout.nextAction);
374
+ }
375
+ process.exitCode = 1;
376
+ return;
377
+ }
378
+ let unwireOsSignals;
379
+ const { signal: injectedSignal } = args;
380
+ let signal = injectedSignal;
381
+ if (signal === undefined) {
382
+ const controller = new AbortController();
383
+ ({ signal } = controller);
384
+ unwireOsSignals = wireTerminalAbortSignals(controller);
385
+ }
386
+ let result;
387
+ try {
388
+ result = await runServiceManagedOnce({
389
+ triggerSource,
390
+ timeoutMs: timeout.timeoutMs,
391
+ ...(signal !== undefined ? { signal } : {}),
392
+ ...(args.pdHome !== undefined ? { trustedHomeDir: args.pdHome } : {}),
393
+ });
394
+ }
395
+ finally {
396
+ unwireOsSignals?.();
397
+ }
398
+ if (result.outcome === 'refused') {
399
+ if (args.json) {
400
+ const output = {
401
+ schemaVersion: 'pd.service-run-status.v1',
402
+ outcome: 'refused',
403
+ dryRun: false,
404
+ runId: result.runId,
405
+ reason: result.reason,
406
+ nextAction: result.nextAction,
407
+ ...(result.statusWrite !== undefined ? { statusWrite: result.statusWrite } : {}),
408
+ };
409
+ console.log(JSON.stringify(output));
410
+ }
411
+ else {
412
+ printHumanRefusal(result.reason, result.nextAction);
413
+ if (result.statusWrite !== undefined && !result.statusWrite.ok) {
414
+ console.error(` status write FAILED: ${result.statusWrite.reason}`);
415
+ }
416
+ }
417
+ process.exitCode = 1;
418
+ return;
419
+ }
420
+ if (result.outcome === 'already_running') {
421
+ if (args.json) {
422
+ const output = {
423
+ schemaVersion: 'pd.service-run-status.v1',
424
+ outcome: 'already_running',
425
+ dryRun: false,
426
+ runId: result.runId,
427
+ reason: result.reason,
428
+ nextAction: result.nextAction,
429
+ };
430
+ console.log(JSON.stringify(output));
431
+ }
432
+ else {
433
+ console.log(`pd service run-once (managed): already running (lock held).`);
434
+ console.log(` holder: ${result.holderBodyHash}`);
435
+ console.log(` next: ${result.nextAction}`);
436
+ }
437
+ // Overlap convergence worked as designed (AC-08) — not an error.
438
+ process.exitCode = 0;
439
+ return;
440
+ }
441
+ if (args.json) {
442
+ const output = {
443
+ schemaVersion: 'pd.service-run-status.v1',
444
+ outcome: 'completed',
445
+ dryRun: false,
446
+ runId: result.runId,
447
+ installation: result.status.installation,
448
+ environmentIsolation: result.status.environmentIsolation,
449
+ manifest: result.manifest,
450
+ activeRelease: result.activeRelease,
451
+ discovery: {
452
+ discoveredTotal: result.discovery.discoveredTotal,
453
+ counts: result.discovery.counts,
454
+ hostRoots: result.status.discovery.hostRoots,
455
+ incomplete: result.status.discovery.incomplete,
456
+ },
457
+ workspaces: result.discovery.workspaces,
458
+ managed: result.status.managed,
459
+ executions: result.executions,
460
+ statusWrite: result.statusWrite,
461
+ nextAction: result.status.nextAction,
462
+ ...(result.statusWrite.ok ? { statusPath: result.statusWrite.path } : {}),
463
+ };
464
+ console.log(JSON.stringify(output, null, 2));
465
+ }
466
+ else {
467
+ printHumanManaged(result);
468
+ }
469
+ // Exit-code policy: 0 only when the status write succeeded AND every
470
+ // EXECUTED workspace ended completed/paused. Skips (legacy-owned,
471
+ // transition states) are by-design non-executions, not failures; a run
472
+ // with zero service_host_owned workspaces is a legal empty success.
473
+ const executed = result.executions.filter((e) => e.admission === 'executed');
474
+ const allHealthy = executed.every((e) => e.workspaceState === 'completed' || e.workspaceState === 'paused');
475
+ const statusFailed = !result.statusWrite.ok;
476
+ process.exitCode = !statusFailed && allHealthy ? 0 : 1;
477
+ return;
478
+ }
479
+ // ── Phase 1 dry-run (unchanged contract) ──
480
+ const result = runServiceRunOnce({
481
+ ...(args.pdHome !== undefined ? { trustedHomeDir: args.pdHome } : {}),
482
+ });
64
483
  if (result.outcome === 'refused') {
65
484
  if (args.json) {
66
485
  const output = {
@@ -1 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