clinkx 1.0.0 → 1.1.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 (333) hide show
  1. package/CHANGELOG.md +95 -0
  2. package/README.md +184 -112
  3. package/clinkx-workflows/dist/chairman-knobs.d.ts +24 -0
  4. package/clinkx-workflows/dist/chairman-knobs.js +27 -0
  5. package/clinkx-workflows/dist/chairman-knobs.js.map +1 -0
  6. package/clinkx-workflows/dist/clink-client.d.ts +10 -0
  7. package/clinkx-workflows/dist/clink-client.js +39 -1
  8. package/clinkx-workflows/dist/clink-client.js.map +1 -1
  9. package/clinkx-workflows/dist/config.d.ts +29 -1
  10. package/clinkx-workflows/dist/config.js +35 -2
  11. package/clinkx-workflows/dist/config.js.map +1 -1
  12. package/clinkx-workflows/dist/context-preflight.d.ts +5 -0
  13. package/clinkx-workflows/dist/context-preflight.js.map +1 -1
  14. package/clinkx-workflows/dist/council-execution-policy.d.ts +68 -0
  15. package/clinkx-workflows/dist/council-execution-policy.js +110 -0
  16. package/clinkx-workflows/dist/council-execution-policy.js.map +1 -0
  17. package/clinkx-workflows/dist/council-expander.d.ts +9 -8
  18. package/clinkx-workflows/dist/council-expander.js +18 -9
  19. package/clinkx-workflows/dist/council-expander.js.map +1 -1
  20. package/clinkx-workflows/dist/dashboard/activity-contract.d.ts +5557 -4
  21. package/clinkx-workflows/dist/dashboard/activity-contract.js +55 -3
  22. package/clinkx-workflows/dist/dashboard/activity-contract.js.map +1 -1
  23. package/clinkx-workflows/dist/dashboard/activity-reader.d.ts +9 -5
  24. package/clinkx-workflows/dist/dashboard/activity-reader.js +15 -2
  25. package/clinkx-workflows/dist/dashboard/activity-reader.js.map +1 -1
  26. package/clinkx-workflows/dist/dashboard/api-routes.d.ts +4 -0
  27. package/clinkx-workflows/dist/dashboard/api-routes.js +133 -25
  28. package/clinkx-workflows/dist/dashboard/api-routes.js.map +1 -1
  29. package/clinkx-workflows/dist/dashboard/context-builder-invocation-contract.d.ts +3865 -0
  30. package/clinkx-workflows/dist/dashboard/context-builder-invocation-contract.js +69 -0
  31. package/clinkx-workflows/dist/dashboard/context-builder-invocation-contract.js.map +1 -0
  32. package/clinkx-workflows/dist/dashboard/context-run-reader.d.ts +36 -2
  33. package/clinkx-workflows/dist/dashboard/context-run-reader.js +142 -19
  34. package/clinkx-workflows/dist/dashboard/context-run-reader.js.map +1 -1
  35. package/clinkx-workflows/dist/dashboard/contracts.d.ts +20027 -480
  36. package/clinkx-workflows/dist/dashboard/contracts.js +133 -6
  37. package/clinkx-workflows/dist/dashboard/contracts.js.map +1 -1
  38. package/clinkx-workflows/dist/dashboard/index.d.ts +4 -0
  39. package/clinkx-workflows/dist/dashboard/index.js +4 -0
  40. package/clinkx-workflows/dist/dashboard/index.js.map +1 -1
  41. package/clinkx-workflows/dist/dashboard/invocation-contract.d.ts +786 -0
  42. package/clinkx-workflows/dist/dashboard/invocation-contract.js +201 -0
  43. package/clinkx-workflows/dist/dashboard/invocation-contract.js.map +1 -0
  44. package/clinkx-workflows/dist/dashboard/lazy-content.d.ts +14 -1
  45. package/clinkx-workflows/dist/dashboard/lazy-content.js +53 -2
  46. package/clinkx-workflows/dist/dashboard/lazy-content.js.map +1 -1
  47. package/clinkx-workflows/dist/dashboard/native-transcript/contract.d.ts +90 -0
  48. package/clinkx-workflows/dist/dashboard/native-transcript/contract.js +31 -0
  49. package/clinkx-workflows/dist/dashboard/native-transcript/contract.js.map +1 -0
  50. package/clinkx-workflows/dist/dashboard/native-transcript/projection.d.ts +12 -0
  51. package/clinkx-workflows/dist/dashboard/native-transcript/projection.js +286 -0
  52. package/clinkx-workflows/dist/dashboard/native-transcript/projection.js.map +1 -0
  53. package/clinkx-workflows/dist/dashboard/progress-report-contract.d.ts +147 -4
  54. package/clinkx-workflows/dist/dashboard/progress-report-contract.js +11 -11
  55. package/clinkx-workflows/dist/dashboard/progress-report-contract.js.map +1 -1
  56. package/clinkx-workflows/dist/dashboard/progress-report-reader.js +4 -56
  57. package/clinkx-workflows/dist/dashboard/progress-report-reader.js.map +1 -1
  58. package/clinkx-workflows/dist/dashboard/progress-report-status-store.d.ts +2 -1
  59. package/clinkx-workflows/dist/dashboard/progress-report-status-store.js +6 -5
  60. package/clinkx-workflows/dist/dashboard/progress-report-status-store.js.map +1 -1
  61. package/clinkx-workflows/dist/dashboard/prompt-builder-library-contract.d.ts +194 -0
  62. package/clinkx-workflows/dist/dashboard/prompt-builder-library-contract.js +89 -0
  63. package/clinkx-workflows/dist/dashboard/prompt-builder-library-contract.js.map +1 -0
  64. package/clinkx-workflows/dist/dashboard/prompt-builder-library-store.d.ts +26 -0
  65. package/clinkx-workflows/dist/dashboard/prompt-builder-library-store.js +102 -0
  66. package/clinkx-workflows/dist/dashboard/prompt-builder-library-store.js.map +1 -0
  67. package/clinkx-workflows/dist/dashboard/request-admission.js +4 -0
  68. package/clinkx-workflows/dist/dashboard/request-admission.js.map +1 -1
  69. package/clinkx-workflows/dist/dashboard/scanner.d.ts +3 -0
  70. package/clinkx-workflows/dist/dashboard/scanner.js +52 -8
  71. package/clinkx-workflows/dist/dashboard/scanner.js.map +1 -1
  72. package/clinkx-workflows/dist/dashboard/server-factory.d.ts +14 -1
  73. package/clinkx-workflows/dist/dashboard/server-factory.js +73 -21
  74. package/clinkx-workflows/dist/dashboard/server-factory.js.map +1 -1
  75. package/clinkx-workflows/dist/dashboard/session-log-contract.d.ts +223 -56
  76. package/clinkx-workflows/dist/dashboard/session-log-contract.js +26 -0
  77. package/clinkx-workflows/dist/dashboard/session-log-contract.js.map +1 -1
  78. package/clinkx-workflows/dist/dashboard/session-log-journal.js +10 -3
  79. package/clinkx-workflows/dist/dashboard/session-log-journal.js.map +1 -1
  80. package/clinkx-workflows/dist/dashboard/session-log-redaction.d.ts +9 -1
  81. package/clinkx-workflows/dist/dashboard/session-log-redaction.js +793 -59
  82. package/clinkx-workflows/dist/dashboard/session-log-redaction.js.map +1 -1
  83. package/clinkx-workflows/dist/dashboard-ui/assets/index-JPHQVtn9.js +106 -0
  84. package/clinkx-workflows/dist/dashboard-ui/assets/style-DOMHk-j6.css +1 -0
  85. package/clinkx-workflows/dist/dashboard-ui/index.html +2 -2
  86. package/clinkx-workflows/dist/delegate-finalizer-policy.d.ts +26 -0
  87. package/clinkx-workflows/dist/delegate-finalizer-policy.js +72 -0
  88. package/clinkx-workflows/dist/delegate-finalizer-policy.js.map +1 -0
  89. package/clinkx-workflows/dist/delegate-signature.d.ts +14 -0
  90. package/clinkx-workflows/dist/delegate-signature.js +14 -0
  91. package/clinkx-workflows/dist/delegate-signature.js.map +1 -0
  92. package/clinkx-workflows/dist/delegate-validate.d.ts +32 -2
  93. package/clinkx-workflows/dist/delegate-validate.js +51 -0
  94. package/clinkx-workflows/dist/delegate-validate.js.map +1 -1
  95. package/clinkx-workflows/dist/engine.d.ts +113 -3
  96. package/clinkx-workflows/dist/engine.js +476 -80
  97. package/clinkx-workflows/dist/engine.js.map +1 -1
  98. package/clinkx-workflows/dist/errors.d.ts +22 -2
  99. package/clinkx-workflows/dist/errors.js +30 -2
  100. package/clinkx-workflows/dist/errors.js.map +1 -1
  101. package/clinkx-workflows/dist/fidelity.d.ts +47 -1
  102. package/clinkx-workflows/dist/fidelity.js +54 -1
  103. package/clinkx-workflows/dist/fidelity.js.map +1 -1
  104. package/clinkx-workflows/dist/fingerprint.d.ts +24 -6
  105. package/clinkx-workflows/dist/fingerprint.js +32 -9
  106. package/clinkx-workflows/dist/fingerprint.js.map +1 -1
  107. package/clinkx-workflows/dist/index.js +53 -1
  108. package/clinkx-workflows/dist/index.js.map +1 -1
  109. package/clinkx-workflows/dist/logger.d.ts +1 -1
  110. package/clinkx-workflows/dist/logger.js +17 -3
  111. package/clinkx-workflows/dist/logger.js.map +1 -1
  112. package/clinkx-workflows/dist/monotonic-clock.d.ts +19 -0
  113. package/clinkx-workflows/dist/monotonic-clock.js +22 -0
  114. package/clinkx-workflows/dist/monotonic-clock.js.map +1 -0
  115. package/clinkx-workflows/dist/plan-review/contract.d.ts +52 -52
  116. package/clinkx-workflows/dist/plan-review/publication.d.ts +4 -4
  117. package/clinkx-workflows/dist/plan-review/run-state.d.ts +16 -16
  118. package/clinkx-workflows/dist/roster-contract.d.ts +889 -0
  119. package/clinkx-workflows/dist/roster-contract.js +180 -0
  120. package/clinkx-workflows/dist/roster-contract.js.map +1 -0
  121. package/clinkx-workflows/dist/rosters.d.ts +14 -0
  122. package/clinkx-workflows/dist/rosters.js +169 -0
  123. package/clinkx-workflows/dist/rosters.js.map +1 -0
  124. package/clinkx-workflows/dist/run-health.d.ts +7 -0
  125. package/clinkx-workflows/dist/run-health.js +25 -0
  126. package/clinkx-workflows/dist/run-health.js.map +1 -0
  127. package/clinkx-workflows/dist/schema.d.ts +64 -0
  128. package/clinkx-workflows/dist/schema.js +24 -0
  129. package/clinkx-workflows/dist/schema.js.map +1 -1
  130. package/clinkx-workflows/dist/server.js +2 -0
  131. package/clinkx-workflows/dist/server.js.map +1 -1
  132. package/clinkx-workflows/dist/shutdown.d.ts +15 -2
  133. package/clinkx-workflows/dist/shutdown.js +60 -16
  134. package/clinkx-workflows/dist/shutdown.js.map +1 -1
  135. package/clinkx-workflows/dist/state-schema.d.ts +23 -0
  136. package/clinkx-workflows/dist/state.d.ts +5 -0
  137. package/clinkx-workflows/dist/state.js +128 -21
  138. package/clinkx-workflows/dist/state.js.map +1 -1
  139. package/clinkx-workflows/dist/stdio-watchdog.d.ts +52 -0
  140. package/clinkx-workflows/dist/stdio-watchdog.js +212 -0
  141. package/clinkx-workflows/dist/stdio-watchdog.js.map +1 -0
  142. package/clinkx-workflows/dist/types.d.ts +6 -0
  143. package/clinkx-workflows/dist/validators/council.d.ts +50 -50
  144. package/clinkx-workflows/dist/validators/plan-review.d.ts +3 -3
  145. package/clinkx-workflows/dist/workflow-tools.d.ts +70 -0
  146. package/clinkx-workflows/dist/workflow-tools.js +760 -168
  147. package/clinkx-workflows/dist/workflow-tools.js.map +1 -1
  148. package/clinkx-workflows/templates/council/answer-chairman.txt +3 -0
  149. package/clinkx-workflows/templates/council/answer-cross-reviewer.txt +3 -0
  150. package/clinkx-workflows/templates/council/answer-specialist.txt +3 -0
  151. package/clinkx-workflows/templates/council/chairman.txt +3 -0
  152. package/clinkx-workflows/templates/council/code-review-chairman.txt +3 -0
  153. package/clinkx-workflows/templates/council/code-review-cross-reviewer.txt +3 -0
  154. package/clinkx-workflows/templates/council/code-review-reviewer.txt +3 -0
  155. package/clinkx-workflows/templates/council/debug-chairman.txt +3 -0
  156. package/clinkx-workflows/templates/council/debug-cross-reviewer.txt +3 -0
  157. package/clinkx-workflows/templates/council/debug-debugger.txt +3 -0
  158. package/clinkx-workflows/templates/council/discover-analyst.txt +3 -0
  159. package/clinkx-workflows/templates/council/discover-chairman.txt +3 -0
  160. package/clinkx-workflows/templates/council/discover-cross-reviewer.txt +3 -0
  161. package/clinkx-workflows/templates/council/member.txt +3 -0
  162. package/clinkx-workflows/templates/council/plan-review-chairman.txt +3 -0
  163. package/clinkx-workflows/templates/council/plan-review-cross-reviewer.txt +3 -0
  164. package/clinkx-workflows/templates/council/plan-review-reviewer.txt +3 -0
  165. package/clinkx-workflows/templates/council/reviewer.txt +3 -0
  166. package/clinkx-workflows/workflows/council-answer.yaml +3 -0
  167. package/clinkx-workflows/workflows/council-code-review.yaml +3 -0
  168. package/clinkx-workflows/workflows/council-debug.yaml +3 -0
  169. package/clinkx-workflows/workflows/council-default.yaml +7 -0
  170. package/clinkx-workflows/workflows/council-discover.yaml +3 -0
  171. package/clinkx-workflows/workflows/council-plan-review.yaml +3 -0
  172. package/conf/adapters/agy.json +9 -2
  173. package/conf/adapters/claude.json +7 -0
  174. package/conf/adapters/codex.json +7 -0
  175. package/conf/adapters/glm.json +19 -3
  176. package/conf/adapters/grok.json +9 -2
  177. package/conf/adapters/hapi/agy.json +9 -2
  178. package/conf/adapters/hapi/claude.json +7 -0
  179. package/conf/adapters/hapi/codex.json +7 -0
  180. package/conf/adapters/hapi/glm.json +20 -4
  181. package/conf/rosters/default-council.json +21 -0
  182. package/dist/activity-journal.d.ts +17 -3
  183. package/dist/activity-journal.js +404 -79
  184. package/dist/activity-journal.js.map +1 -1
  185. package/dist/codex/agent-tools.js +36 -0
  186. package/dist/codex/agent-tools.js.map +1 -1
  187. package/dist/codex/app-server-client.d.ts +3 -0
  188. package/dist/codex/app-server-client.js +11 -0
  189. package/dist/codex/app-server-client.js.map +1 -1
  190. package/dist/codex/app-server-registry.d.ts +18 -0
  191. package/dist/codex/app-server-registry.js +88 -2
  192. package/dist/codex/app-server-registry.js.map +1 -1
  193. package/dist/codex/client-types.d.ts +7 -1
  194. package/dist/codex/protocol.d.ts +4 -4
  195. package/dist/config.d.ts +220 -23
  196. package/dist/config.js +104 -1
  197. package/dist/config.js.map +1 -1
  198. package/dist/context-builder/bundle.d.ts +13 -0
  199. package/dist/context-builder/bundle.js +46 -0
  200. package/dist/context-builder/bundle.js.map +1 -1
  201. package/dist/context-builder/delegate-finalizer-effective.d.ts +33 -0
  202. package/dist/context-builder/delegate-finalizer-effective.js +82 -0
  203. package/dist/context-builder/delegate-finalizer-effective.js.map +1 -0
  204. package/dist/context-builder/delegate-packet.d.ts +18 -0
  205. package/dist/context-builder/delegate-packet.js +73 -9
  206. package/dist/context-builder/delegate-packet.js.map +1 -1
  207. package/dist/context-builder/delegate-reconstruction.d.ts +29 -0
  208. package/dist/context-builder/delegate-reconstruction.js +110 -41
  209. package/dist/context-builder/delegate-reconstruction.js.map +1 -1
  210. package/dist/context-builder/delegate-validation.d.ts +31 -0
  211. package/dist/context-builder/delegate-validation.js +87 -10
  212. package/dist/context-builder/delegate-validation.js.map +1 -1
  213. package/dist/context-builder/delegate.d.ts +9 -0
  214. package/dist/context-builder/delegate.js +210 -59
  215. package/dist/context-builder/delegate.js.map +1 -1
  216. package/dist/context-builder/diagnostics.d.ts +1 -1
  217. package/dist/context-builder/diagnostics.js.map +1 -1
  218. package/dist/context-builder/discovery-progress.d.ts +25 -0
  219. package/dist/context-builder/discovery-progress.js +64 -0
  220. package/dist/context-builder/discovery-progress.js.map +1 -0
  221. package/dist/context-builder/discovery-watchdog.d.ts +15 -0
  222. package/dist/context-builder/discovery-watchdog.js +39 -0
  223. package/dist/context-builder/discovery-watchdog.js.map +1 -0
  224. package/dist/context-builder/discovery.d.ts +7 -0
  225. package/dist/context-builder/discovery.js +119 -7
  226. package/dist/context-builder/discovery.js.map +1 -1
  227. package/dist/context-builder/external-gaps.d.ts +73 -0
  228. package/dist/context-builder/external-gaps.js +248 -0
  229. package/dist/context-builder/external-gaps.js.map +1 -0
  230. package/dist/context-builder/globs.d.ts +1 -0
  231. package/dist/context-builder/globs.js +15 -0
  232. package/dist/context-builder/globs.js.map +1 -1
  233. package/dist/context-builder/handler.d.ts +42 -1
  234. package/dist/context-builder/handler.js +690 -62
  235. package/dist/context-builder/handler.js.map +1 -1
  236. package/dist/context-builder/invocation-sidecar.d.ts +41 -0
  237. package/dist/context-builder/invocation-sidecar.js +189 -0
  238. package/dist/context-builder/invocation-sidecar.js.map +1 -0
  239. package/dist/context-builder/lifecycle-contract.d.ts +51 -51
  240. package/dist/context-builder/mutation-lock.d.ts +32 -0
  241. package/dist/context-builder/mutation-lock.js +321 -0
  242. package/dist/context-builder/mutation-lock.js.map +1 -0
  243. package/dist/context-builder/review-coverage.d.ts +32 -0
  244. package/dist/context-builder/review-coverage.js +130 -23
  245. package/dist/context-builder/review-coverage.js.map +1 -1
  246. package/dist/context-builder/schema.d.ts +76 -1
  247. package/dist/context-builder/schema.js +21 -1
  248. package/dist/context-builder/schema.js.map +1 -1
  249. package/dist/context-builder/secrets.d.ts +31 -0
  250. package/dist/context-builder/secrets.js +871 -84
  251. package/dist/context-builder/secrets.js.map +1 -1
  252. package/dist/context-builder/status.d.ts +1 -1
  253. package/dist/context-builder/status.js +1 -0
  254. package/dist/context-builder/status.js.map +1 -1
  255. package/dist/context-builder/storage.d.ts +29 -5
  256. package/dist/context-builder/storage.js +311 -236
  257. package/dist/context-builder/storage.js.map +1 -1
  258. package/dist/context-builder/versions.d.ts +19 -4
  259. package/dist/context-builder/versions.js +19 -4
  260. package/dist/context-builder/versions.js.map +1 -1
  261. package/dist/context-builder/workflow-runner.d.ts +6 -0
  262. package/dist/context-builder/workflow-runner.js +363 -173
  263. package/dist/context-builder/workflow-runner.js.map +1 -1
  264. package/dist/dashboard-adapter-catalog.js +7 -0
  265. package/dist/dashboard-adapter-catalog.js.map +1 -1
  266. package/dist/dashboard-cli.d.ts +2 -0
  267. package/dist/dashboard-cli.js +40 -2
  268. package/dist/dashboard-cli.js.map +1 -1
  269. package/dist/dashboard-companion/client.d.ts +1 -0
  270. package/dist/dashboard-companion/client.js +22 -3
  271. package/dist/dashboard-companion/client.js.map +1 -1
  272. package/dist/dashboard-companion/protocol.js +4 -1
  273. package/dist/dashboard-companion/protocol.js.map +1 -1
  274. package/dist/dashboard-gateway/index.d.ts +1 -0
  275. package/dist/dashboard-gateway/index.js +33 -2
  276. package/dist/dashboard-gateway/index.js.map +1 -1
  277. package/dist/handler.js +5 -1
  278. package/dist/handler.js.map +1 -1
  279. package/dist/index.d.ts +18 -1
  280. package/dist/index.js +145 -7
  281. package/dist/index.js.map +1 -1
  282. package/dist/logger.d.ts +1 -1
  283. package/dist/logger.js +18 -3
  284. package/dist/logger.js.map +1 -1
  285. package/dist/parsers/agy-stream-json.d.ts +14 -0
  286. package/dist/parsers/agy-stream-json.js +172 -0
  287. package/dist/parsers/agy-stream-json.js.map +1 -0
  288. package/dist/parsers/extract.js +5 -1
  289. package/dist/parsers/extract.js.map +1 -1
  290. package/dist/parsers/observed-invocation.d.ts +20 -0
  291. package/dist/parsers/observed-invocation.js +42 -0
  292. package/dist/parsers/observed-invocation.js.map +1 -0
  293. package/dist/pipeline.d.ts +13 -0
  294. package/dist/pipeline.js +60 -10
  295. package/dist/pipeline.js.map +1 -1
  296. package/dist/progress-report/lock.d.ts +74 -0
  297. package/dist/progress-report/lock.js +343 -0
  298. package/dist/progress-report/lock.js.map +1 -0
  299. package/dist/progress-report/schema.d.ts +808 -0
  300. package/dist/progress-report/schema.js +119 -0
  301. package/dist/progress-report/schema.js.map +1 -0
  302. package/dist/progress-report/store.d.ts +66 -0
  303. package/dist/progress-report/store.js +766 -0
  304. package/dist/progress-report/store.js.map +1 -0
  305. package/dist/progress-report/tools.d.ts +20 -0
  306. package/dist/progress-report/tools.js +141 -0
  307. package/dist/progress-report/tools.js.map +1 -0
  308. package/dist/prompt-mode.d.ts +1 -1
  309. package/dist/prompt-mode.js +7 -2
  310. package/dist/prompt-mode.js.map +1 -1
  311. package/dist/runner.d.ts +7 -0
  312. package/dist/runner.js +10 -3
  313. package/dist/runner.js.map +1 -1
  314. package/dist/safety.d.ts +50 -0
  315. package/dist/safety.js +182 -1
  316. package/dist/safety.js.map +1 -1
  317. package/dist/schema.d.ts +8 -0
  318. package/dist/schema.js +20 -0
  319. package/dist/schema.js.map +1 -1
  320. package/dist/server.d.ts +6 -1
  321. package/dist/server.js +94 -8
  322. package/dist/server.js.map +1 -1
  323. package/dist/session-log-stream.d.ts +1 -1
  324. package/dist/session-log-stream.js +280 -33
  325. package/dist/session-log-stream.js.map +1 -1
  326. package/dist/stdio-activity.d.ts +28 -0
  327. package/dist/stdio-activity.js +72 -0
  328. package/dist/stdio-activity.js.map +1 -0
  329. package/docs/configuration.md +426 -0
  330. package/docs/security.md +293 -0
  331. package/package.json +5 -5
  332. package/clinkx-workflows/dist/dashboard-ui/assets/index-DOkMXTfB.js +0 -25
  333. package/clinkx-workflows/dist/dashboard-ui/assets/style-ChJsn0KD.css +0 -1
@@ -172,7 +172,6 @@ export declare const ReviewReceiptV1Schema: z.ZodObject<{
172
172
  status: "failed" | "completed";
173
173
  schema_version: "review-receipt-v1";
174
174
  score: number;
175
- findings: string[];
176
175
  seat_id: string;
177
176
  reviewer: string;
178
177
  workspace_schema: "plan-workspace-v1";
@@ -186,11 +185,11 @@ export declare const ReviewReceiptV1Schema: z.ZodObject<{
186
185
  verdict: "approve" | "request_changes" | "abstain";
187
186
  blockers: string[];
188
187
  verification_gaps: string[];
188
+ findings: string[];
189
189
  }, {
190
190
  status: "failed" | "completed";
191
191
  schema_version: "review-receipt-v1";
192
192
  score: number;
193
- findings: string[];
194
193
  seat_id: string;
195
194
  reviewer: string;
196
195
  workspace_schema: "plan-workspace-v1";
@@ -204,6 +203,7 @@ export declare const ReviewReceiptV1Schema: z.ZodObject<{
204
203
  verdict: "approve" | "request_changes" | "abstain";
205
204
  blockers: string[];
206
205
  verification_gaps: string[];
206
+ findings: string[];
207
207
  }>;
208
208
  export type ReviewReceiptV1 = z.infer<typeof ReviewReceiptV1Schema>;
209
209
  export declare const PlanReviewErrorReasonSchema: z.ZodEnum<["timeout", "nonzero_exit", "invalid_output", "schema_mismatch", "no_artifact", "cancelled", "internal_error"]>;
@@ -263,7 +263,6 @@ export declare const CouncilPlanReviewResultSchema: z.ZodEffects<z.ZodObject<{
263
263
  status: "failed" | "completed";
264
264
  schema_version: "review-receipt-v1";
265
265
  score: number;
266
- findings: string[];
267
266
  seat_id: string;
268
267
  reviewer: string;
269
268
  workspace_schema: "plan-workspace-v1";
@@ -277,11 +276,11 @@ export declare const CouncilPlanReviewResultSchema: z.ZodEffects<z.ZodObject<{
277
276
  verdict: "approve" | "request_changes" | "abstain";
278
277
  blockers: string[];
279
278
  verification_gaps: string[];
279
+ findings: string[];
280
280
  }, {
281
281
  status: "failed" | "completed";
282
282
  schema_version: "review-receipt-v1";
283
283
  score: number;
284
- findings: string[];
285
284
  seat_id: string;
286
285
  reviewer: string;
287
286
  workspace_schema: "plan-workspace-v1";
@@ -295,6 +294,7 @@ export declare const CouncilPlanReviewResultSchema: z.ZodEffects<z.ZodObject<{
295
294
  verdict: "approve" | "request_changes" | "abstain";
296
295
  blockers: string[];
297
296
  verification_gaps: string[];
297
+ findings: string[];
298
298
  }>;
299
299
  seat_id: z.ZodString;
300
300
  internal_call_id: z.ZodString;
@@ -309,7 +309,6 @@ export declare const CouncilPlanReviewResultSchema: z.ZodEffects<z.ZodObject<{
309
309
  status: "failed" | "completed";
310
310
  schema_version: "review-receipt-v1";
311
311
  score: number;
312
- findings: string[];
313
312
  seat_id: string;
314
313
  reviewer: string;
315
314
  workspace_schema: "plan-workspace-v1";
@@ -323,6 +322,7 @@ export declare const CouncilPlanReviewResultSchema: z.ZodEffects<z.ZodObject<{
323
322
  verdict: "approve" | "request_changes" | "abstain";
324
323
  blockers: string[];
325
324
  verification_gaps: string[];
325
+ findings: string[];
326
326
  };
327
327
  internal_call_id: string;
328
328
  }, {
@@ -334,7 +334,6 @@ export declare const CouncilPlanReviewResultSchema: z.ZodEffects<z.ZodObject<{
334
334
  status: "failed" | "completed";
335
335
  schema_version: "review-receipt-v1";
336
336
  score: number;
337
- findings: string[];
338
337
  seat_id: string;
339
338
  reviewer: string;
340
339
  workspace_schema: "plan-workspace-v1";
@@ -348,6 +347,7 @@ export declare const CouncilPlanReviewResultSchema: z.ZodEffects<z.ZodObject<{
348
347
  verdict: "approve" | "request_changes" | "abstain";
349
348
  blockers: string[];
350
349
  verification_gaps: string[];
350
+ findings: string[];
351
351
  };
352
352
  internal_call_id: string;
353
353
  }>, z.ZodObject<{
@@ -369,23 +369,23 @@ export declare const CouncilPlanReviewResultSchema: z.ZodEffects<z.ZodObject<{
369
369
  }, "strict", z.ZodTypeAny, {
370
370
  cli_name: "codex" | "claude" | "glm" | "agy" | "grok";
371
371
  execution_status: "failed";
372
- seat_id: string;
373
- reviewer: string;
374
- internal_call_id: string;
375
372
  error: {
376
373
  reason: "cancelled" | "timeout" | "nonzero_exit" | "invalid_output" | "schema_mismatch" | "no_artifact" | "internal_error";
377
374
  detail?: string | undefined;
378
375
  };
379
- }, {
380
- cli_name: "codex" | "claude" | "glm" | "agy" | "grok";
381
- execution_status: "failed";
382
376
  seat_id: string;
383
377
  reviewer: string;
384
378
  internal_call_id: string;
379
+ }, {
380
+ cli_name: "codex" | "claude" | "glm" | "agy" | "grok";
381
+ execution_status: "failed";
385
382
  error: {
386
383
  reason: "cancelled" | "timeout" | "nonzero_exit" | "invalid_output" | "schema_mismatch" | "no_artifact" | "internal_error";
387
384
  detail?: string | undefined;
388
385
  };
386
+ seat_id: string;
387
+ reviewer: string;
388
+ internal_call_id: string;
389
389
  }>, z.ZodObject<{
390
390
  execution_status: z.ZodLiteral<"missing">;
391
391
  error: z.ZodObject<{
@@ -405,23 +405,23 @@ export declare const CouncilPlanReviewResultSchema: z.ZodEffects<z.ZodObject<{
405
405
  }, "strict", z.ZodTypeAny, {
406
406
  cli_name: "codex" | "claude" | "glm" | "agy" | "grok";
407
407
  execution_status: "missing";
408
- seat_id: string;
409
- reviewer: string;
410
- internal_call_id: string;
411
408
  error: {
412
409
  reason: "cancelled" | "timeout" | "nonzero_exit" | "invalid_output" | "schema_mismatch" | "no_artifact" | "internal_error";
413
410
  detail?: string | undefined;
414
411
  };
415
- }, {
416
- cli_name: "codex" | "claude" | "glm" | "agy" | "grok";
417
- execution_status: "missing";
418
412
  seat_id: string;
419
413
  reviewer: string;
420
414
  internal_call_id: string;
415
+ }, {
416
+ cli_name: "codex" | "claude" | "glm" | "agy" | "grok";
417
+ execution_status: "missing";
421
418
  error: {
422
419
  reason: "cancelled" | "timeout" | "nonzero_exit" | "invalid_output" | "schema_mismatch" | "no_artifact" | "internal_error";
423
420
  detail?: string | undefined;
424
421
  };
422
+ seat_id: string;
423
+ reviewer: string;
424
+ internal_call_id: string;
425
425
  }>]>, "many">;
426
426
  chairman: z.ZodDiscriminatedUnion<"execution_status", [z.ZodObject<{
427
427
  execution_status: z.ZodLiteral<"completed">;
@@ -431,13 +431,13 @@ export declare const CouncilPlanReviewResultSchema: z.ZodEffects<z.ZodObject<{
431
431
  }, "strict", z.ZodTypeAny, {
432
432
  cli_name: "codex" | "claude" | "glm" | "agy" | "grok";
433
433
  execution_status: "completed";
434
- synthesis: string;
435
434
  seat_id: string;
435
+ synthesis: string;
436
436
  }, {
437
437
  cli_name: "codex" | "claude" | "glm" | "agy" | "grok";
438
438
  execution_status: "completed";
439
- synthesis: string;
440
439
  seat_id: string;
440
+ synthesis: string;
441
441
  }>, z.ZodObject<{
442
442
  execution_status: z.ZodLiteral<"failed">;
443
443
  seat_id: z.ZodString;
@@ -475,7 +475,6 @@ export declare const CouncilPlanReviewResultSchema: z.ZodEffects<z.ZodObject<{
475
475
  status: "failed" | "completed";
476
476
  schema_version: "review-receipt-v1";
477
477
  score: number;
478
- findings: string[];
479
478
  seat_id: string;
480
479
  reviewer: string;
481
480
  workspace_schema: "plan-workspace-v1";
@@ -489,28 +488,29 @@ export declare const CouncilPlanReviewResultSchema: z.ZodEffects<z.ZodObject<{
489
488
  verdict: "approve" | "request_changes" | "abstain";
490
489
  blockers: string[];
491
490
  verification_gaps: string[];
491
+ findings: string[];
492
492
  };
493
493
  internal_call_id: string;
494
494
  } | {
495
495
  cli_name: "codex" | "claude" | "glm" | "agy" | "grok";
496
496
  execution_status: "failed";
497
- seat_id: string;
498
- reviewer: string;
499
- internal_call_id: string;
500
497
  error: {
501
498
  reason: "cancelled" | "timeout" | "nonzero_exit" | "invalid_output" | "schema_mismatch" | "no_artifact" | "internal_error";
502
499
  detail?: string | undefined;
503
500
  };
504
- } | {
505
- cli_name: "codex" | "claude" | "glm" | "agy" | "grok";
506
- execution_status: "missing";
507
501
  seat_id: string;
508
502
  reviewer: string;
509
503
  internal_call_id: string;
504
+ } | {
505
+ cli_name: "codex" | "claude" | "glm" | "agy" | "grok";
506
+ execution_status: "missing";
510
507
  error: {
511
508
  reason: "cancelled" | "timeout" | "nonzero_exit" | "invalid_output" | "schema_mismatch" | "no_artifact" | "internal_error";
512
509
  detail?: string | undefined;
513
510
  };
511
+ seat_id: string;
512
+ reviewer: string;
513
+ internal_call_id: string;
514
514
  })[];
515
515
  execution_contract_digest: string;
516
516
  bindings: {
@@ -526,8 +526,8 @@ export declare const CouncilPlanReviewResultSchema: z.ZodEffects<z.ZodObject<{
526
526
  chairman: {
527
527
  cli_name: "codex" | "claude" | "glm" | "agy" | "grok";
528
528
  execution_status: "completed";
529
- synthesis: string;
530
529
  seat_id: string;
530
+ synthesis: string;
531
531
  } | {
532
532
  cli_name: "codex" | "claude" | "glm" | "agy" | "grok";
533
533
  execution_status: "failed";
@@ -549,7 +549,6 @@ export declare const CouncilPlanReviewResultSchema: z.ZodEffects<z.ZodObject<{
549
549
  status: "failed" | "completed";
550
550
  schema_version: "review-receipt-v1";
551
551
  score: number;
552
- findings: string[];
553
552
  seat_id: string;
554
553
  reviewer: string;
555
554
  workspace_schema: "plan-workspace-v1";
@@ -563,28 +562,29 @@ export declare const CouncilPlanReviewResultSchema: z.ZodEffects<z.ZodObject<{
563
562
  verdict: "approve" | "request_changes" | "abstain";
564
563
  blockers: string[];
565
564
  verification_gaps: string[];
565
+ findings: string[];
566
566
  };
567
567
  internal_call_id: string;
568
568
  } | {
569
569
  cli_name: "codex" | "claude" | "glm" | "agy" | "grok";
570
570
  execution_status: "failed";
571
- seat_id: string;
572
- reviewer: string;
573
- internal_call_id: string;
574
571
  error: {
575
572
  reason: "cancelled" | "timeout" | "nonzero_exit" | "invalid_output" | "schema_mismatch" | "no_artifact" | "internal_error";
576
573
  detail?: string | undefined;
577
574
  };
578
- } | {
579
- cli_name: "codex" | "claude" | "glm" | "agy" | "grok";
580
- execution_status: "missing";
581
575
  seat_id: string;
582
576
  reviewer: string;
583
577
  internal_call_id: string;
578
+ } | {
579
+ cli_name: "codex" | "claude" | "glm" | "agy" | "grok";
580
+ execution_status: "missing";
584
581
  error: {
585
582
  reason: "cancelled" | "timeout" | "nonzero_exit" | "invalid_output" | "schema_mismatch" | "no_artifact" | "internal_error";
586
583
  detail?: string | undefined;
587
584
  };
585
+ seat_id: string;
586
+ reviewer: string;
587
+ internal_call_id: string;
588
588
  })[];
589
589
  execution_contract_digest: string;
590
590
  bindings: {
@@ -600,8 +600,8 @@ export declare const CouncilPlanReviewResultSchema: z.ZodEffects<z.ZodObject<{
600
600
  chairman: {
601
601
  cli_name: "codex" | "claude" | "glm" | "agy" | "grok";
602
602
  execution_status: "completed";
603
- synthesis: string;
604
603
  seat_id: string;
604
+ synthesis: string;
605
605
  } | {
606
606
  cli_name: "codex" | "claude" | "glm" | "agy" | "grok";
607
607
  execution_status: "failed";
@@ -623,7 +623,6 @@ export declare const CouncilPlanReviewResultSchema: z.ZodEffects<z.ZodObject<{
623
623
  status: "failed" | "completed";
624
624
  schema_version: "review-receipt-v1";
625
625
  score: number;
626
- findings: string[];
627
626
  seat_id: string;
628
627
  reviewer: string;
629
628
  workspace_schema: "plan-workspace-v1";
@@ -637,28 +636,29 @@ export declare const CouncilPlanReviewResultSchema: z.ZodEffects<z.ZodObject<{
637
636
  verdict: "approve" | "request_changes" | "abstain";
638
637
  blockers: string[];
639
638
  verification_gaps: string[];
639
+ findings: string[];
640
640
  };
641
641
  internal_call_id: string;
642
642
  } | {
643
643
  cli_name: "codex" | "claude" | "glm" | "agy" | "grok";
644
644
  execution_status: "failed";
645
- seat_id: string;
646
- reviewer: string;
647
- internal_call_id: string;
648
645
  error: {
649
646
  reason: "cancelled" | "timeout" | "nonzero_exit" | "invalid_output" | "schema_mismatch" | "no_artifact" | "internal_error";
650
647
  detail?: string | undefined;
651
648
  };
652
- } | {
653
- cli_name: "codex" | "claude" | "glm" | "agy" | "grok";
654
- execution_status: "missing";
655
649
  seat_id: string;
656
650
  reviewer: string;
657
651
  internal_call_id: string;
652
+ } | {
653
+ cli_name: "codex" | "claude" | "glm" | "agy" | "grok";
654
+ execution_status: "missing";
658
655
  error: {
659
656
  reason: "cancelled" | "timeout" | "nonzero_exit" | "invalid_output" | "schema_mismatch" | "no_artifact" | "internal_error";
660
657
  detail?: string | undefined;
661
658
  };
659
+ seat_id: string;
660
+ reviewer: string;
661
+ internal_call_id: string;
662
662
  })[];
663
663
  execution_contract_digest: string;
664
664
  bindings: {
@@ -674,8 +674,8 @@ export declare const CouncilPlanReviewResultSchema: z.ZodEffects<z.ZodObject<{
674
674
  chairman: {
675
675
  cli_name: "codex" | "claude" | "glm" | "agy" | "grok";
676
676
  execution_status: "completed";
677
- synthesis: string;
678
677
  seat_id: string;
678
+ synthesis: string;
679
679
  } | {
680
680
  cli_name: "codex" | "claude" | "glm" | "agy" | "grok";
681
681
  execution_status: "failed";
@@ -697,7 +697,6 @@ export declare const CouncilPlanReviewResultSchema: z.ZodEffects<z.ZodObject<{
697
697
  status: "failed" | "completed";
698
698
  schema_version: "review-receipt-v1";
699
699
  score: number;
700
- findings: string[];
701
700
  seat_id: string;
702
701
  reviewer: string;
703
702
  workspace_schema: "plan-workspace-v1";
@@ -711,28 +710,29 @@ export declare const CouncilPlanReviewResultSchema: z.ZodEffects<z.ZodObject<{
711
710
  verdict: "approve" | "request_changes" | "abstain";
712
711
  blockers: string[];
713
712
  verification_gaps: string[];
713
+ findings: string[];
714
714
  };
715
715
  internal_call_id: string;
716
716
  } | {
717
717
  cli_name: "codex" | "claude" | "glm" | "agy" | "grok";
718
718
  execution_status: "failed";
719
- seat_id: string;
720
- reviewer: string;
721
- internal_call_id: string;
722
719
  error: {
723
720
  reason: "cancelled" | "timeout" | "nonzero_exit" | "invalid_output" | "schema_mismatch" | "no_artifact" | "internal_error";
724
721
  detail?: string | undefined;
725
722
  };
726
- } | {
727
- cli_name: "codex" | "claude" | "glm" | "agy" | "grok";
728
- execution_status: "missing";
729
723
  seat_id: string;
730
724
  reviewer: string;
731
725
  internal_call_id: string;
726
+ } | {
727
+ cli_name: "codex" | "claude" | "glm" | "agy" | "grok";
728
+ execution_status: "missing";
732
729
  error: {
733
730
  reason: "cancelled" | "timeout" | "nonzero_exit" | "invalid_output" | "schema_mismatch" | "no_artifact" | "internal_error";
734
731
  detail?: string | undefined;
735
732
  };
733
+ seat_id: string;
734
+ reviewer: string;
735
+ internal_call_id: string;
736
736
  })[];
737
737
  execution_contract_digest: string;
738
738
  bindings: {
@@ -748,8 +748,8 @@ export declare const CouncilPlanReviewResultSchema: z.ZodEffects<z.ZodObject<{
748
748
  chairman: {
749
749
  cli_name: "codex" | "claude" | "glm" | "agy" | "grok";
750
750
  execution_status: "completed";
751
- synthesis: string;
752
751
  seat_id: string;
752
+ synthesis: string;
753
753
  } | {
754
754
  cli_name: "codex" | "claude" | "glm" | "agy" | "grok";
755
755
  execution_status: "failed";
@@ -42,23 +42,23 @@ export declare const CouncilPlanReviewErrorSchema: z.ZodObject<{
42
42
  detail?: string | undefined;
43
43
  }>;
44
44
  }, "strict", z.ZodTypeAny, {
45
- stage: "digest" | "snapshot" | "context_preflight" | "execution_contract" | "publication";
46
- run_id: string;
47
45
  schema_version: "council-plan-review-error-v1";
48
46
  execution_status: "succeeded" | "failed" | "cancelled";
49
47
  error: {
50
48
  reason: "cancelled" | "timeout" | "nonzero_exit" | "invalid_output" | "schema_mismatch" | "no_artifact" | "internal_error";
51
49
  detail?: string | undefined;
52
50
  };
53
- }, {
54
- stage: "digest" | "snapshot" | "context_preflight" | "execution_contract" | "publication";
55
51
  run_id: string;
52
+ stage: "digest" | "snapshot" | "context_preflight" | "execution_contract" | "publication";
53
+ }, {
56
54
  schema_version: "council-plan-review-error-v1";
57
55
  execution_status: "succeeded" | "failed" | "cancelled";
58
56
  error: {
59
57
  reason: "cancelled" | "timeout" | "nonzero_exit" | "invalid_output" | "schema_mismatch" | "no_artifact" | "internal_error";
60
58
  detail?: string | undefined;
61
59
  };
60
+ run_id: string;
61
+ stage: "digest" | "snapshot" | "context_preflight" | "execution_contract" | "publication";
62
62
  }>;
63
63
  export type CouncilPlanReviewError = z.infer<typeof CouncilPlanReviewErrorSchema>;
64
64
  type TerminalExecutionStatus = CouncilPlanReviewError["execution_status"];
@@ -40,14 +40,14 @@ export declare const PlanReviewCallBindingSchema: z.ZodObject<{
40
40
  cli_name: z.ZodEnum<["codex", "claude", "glm", "agy", "grok"]>;
41
41
  }, "strict", z.ZodTypeAny, {
42
42
  cli_name: "codex" | "claude" | "glm" | "agy" | "grok";
43
- seat_id: string;
44
- stage_id: "reviewers" | "cross_review" | "chairman";
43
+ stage_id: "chairman" | "reviewers" | "cross_review";
45
44
  call_id: string;
45
+ seat_id: string;
46
46
  }, {
47
47
  cli_name: "codex" | "claude" | "glm" | "agy" | "grok";
48
- seat_id: string;
49
- stage_id: "reviewers" | "cross_review" | "chairman";
48
+ stage_id: "chairman" | "reviewers" | "cross_review";
50
49
  call_id: string;
50
+ seat_id: string;
51
51
  }>;
52
52
  export declare const PlanReviewContextPolicySchema: z.ZodObject<{
53
53
  immutable_snapshot_only: z.ZodLiteral<true>;
@@ -129,14 +129,14 @@ export declare const PlanReviewRunStateSchema: z.ZodEffects<z.ZodObject<{
129
129
  cli_name: z.ZodEnum<["codex", "claude", "glm", "agy", "grok"]>;
130
130
  }, "strict", z.ZodTypeAny, {
131
131
  cli_name: "codex" | "claude" | "glm" | "agy" | "grok";
132
- seat_id: string;
133
- stage_id: "reviewers" | "cross_review" | "chairman";
132
+ stage_id: "chairman" | "reviewers" | "cross_review";
134
133
  call_id: string;
134
+ seat_id: string;
135
135
  }, {
136
136
  cli_name: "codex" | "claude" | "glm" | "agy" | "grok";
137
- seat_id: string;
138
- stage_id: "reviewers" | "cross_review" | "chairman";
137
+ stage_id: "chairman" | "reviewers" | "cross_review";
139
138
  call_id: string;
139
+ seat_id: string;
140
140
  }>, "many">;
141
141
  context_policy: z.ZodObject<{
142
142
  immutable_snapshot_only: z.ZodLiteral<true>;
@@ -218,9 +218,9 @@ export declare const PlanReviewRunStateSchema: z.ZodEffects<z.ZodObject<{
218
218
  }[];
219
219
  call_bindings: {
220
220
  cli_name: "codex" | "claude" | "glm" | "agy" | "grok";
221
- seat_id: string;
222
- stage_id: "reviewers" | "cross_review" | "chairman";
221
+ stage_id: "chairman" | "reviewers" | "cross_review";
223
222
  call_id: string;
223
+ seat_id: string;
224
224
  }[];
225
225
  context_policy: {
226
226
  immutable_snapshot_only: true;
@@ -260,9 +260,9 @@ export declare const PlanReviewRunStateSchema: z.ZodEffects<z.ZodObject<{
260
260
  }[];
261
261
  call_bindings: {
262
262
  cli_name: "codex" | "claude" | "glm" | "agy" | "grok";
263
- seat_id: string;
264
- stage_id: "reviewers" | "cross_review" | "chairman";
263
+ stage_id: "chairman" | "reviewers" | "cross_review";
265
264
  call_id: string;
265
+ seat_id: string;
266
266
  }[];
267
267
  context_policy: {
268
268
  immutable_snapshot_only: true;
@@ -302,9 +302,9 @@ export declare const PlanReviewRunStateSchema: z.ZodEffects<z.ZodObject<{
302
302
  }[];
303
303
  call_bindings: {
304
304
  cli_name: "codex" | "claude" | "glm" | "agy" | "grok";
305
- seat_id: string;
306
- stage_id: "reviewers" | "cross_review" | "chairman";
305
+ stage_id: "chairman" | "reviewers" | "cross_review";
307
306
  call_id: string;
307
+ seat_id: string;
308
308
  }[];
309
309
  context_policy: {
310
310
  immutable_snapshot_only: true;
@@ -344,9 +344,9 @@ export declare const PlanReviewRunStateSchema: z.ZodEffects<z.ZodObject<{
344
344
  }[];
345
345
  call_bindings: {
346
346
  cli_name: "codex" | "claude" | "glm" | "agy" | "grok";
347
- seat_id: string;
348
- stage_id: "reviewers" | "cross_review" | "chairman";
347
+ stage_id: "chairman" | "reviewers" | "cross_review";
349
348
  call_id: string;
349
+ seat_id: string;
350
350
  }[];
351
351
  context_policy: {
352
352
  immutable_snapshot_only: true;