@kya-os/cli 2.0.0 → 2.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (945) hide show
  1. package/README.md +167 -231
  2. package/bin/__tests__/kya-os-shim.e2e.test.js +160 -0
  3. package/bin/__tests__/resolve-binary.test.js +54 -0
  4. package/bin/dco.js +17 -0
  5. package/bin/kya-os.js +135 -0
  6. package/bin/resolve-binary.js +98 -0
  7. package/bin/run-compile.mjs +29 -0
  8. package/dist/sidecar/sidecar/src/conformance/pins.js +54 -0
  9. package/dist/sidecar/sidecar/src/conformance/pins.js.map +1 -0
  10. package/dist/sidecar/sidecar/src/conformance/reference/adapter-helpers.js +117 -0
  11. package/dist/sidecar/sidecar/src/conformance/reference/adapter-helpers.js.map +1 -0
  12. package/dist/sidecar/sidecar/src/conformance/reference/crypto-kit.js +101 -0
  13. package/dist/sidecar/sidecar/src/conformance/reference/crypto-kit.js.map +1 -0
  14. package/dist/sidecar/sidecar/src/conformance/reference/reference-adapter.js +326 -0
  15. package/dist/sidecar/sidecar/src/conformance/reference/reference-adapter.js.map +1 -0
  16. package/dist/sidecar/sidecar/src/conformance/reference/runner.js +126 -0
  17. package/dist/sidecar/sidecar/src/conformance/reference/runner.js.map +1 -0
  18. package/dist/sidecar/sidecar/src/conformance/reference/types.js +40 -0
  19. package/dist/sidecar/sidecar/src/conformance/reference/types.js.map +1 -0
  20. package/dist/sidecar/sidecar/src/daemon.js +151 -0
  21. package/dist/sidecar/sidecar/src/daemon.js.map +1 -0
  22. package/dist/sidecar/sidecar/src/framing.js +36 -0
  23. package/dist/sidecar/sidecar/src/framing.js.map +1 -0
  24. package/dist/sidecar/sidecar/src/identity-manager.js +73 -0
  25. package/dist/sidecar/sidecar/src/identity-manager.js.map +1 -0
  26. package/dist/sidecar/sidecar/src/index.js +80 -0
  27. package/dist/sidecar/sidecar/src/index.js.map +1 -0
  28. package/dist/sidecar/sidecar/src/ops/convert-to-ssh.js +11 -0
  29. package/dist/sidecar/sidecar/src/ops/convert-to-ssh.js.map +1 -0
  30. package/dist/sidecar/sidecar/src/ops/echo.js +5 -0
  31. package/dist/sidecar/sidecar/src/ops/echo.js.map +1 -0
  32. package/dist/sidecar/sidecar/src/ops/ensure-identity.js +36 -0
  33. package/dist/sidecar/sidecar/src/ops/ensure-identity.js.map +1 -0
  34. package/dist/sidecar/sidecar/src/ops/resolve-identity.js +233 -0
  35. package/dist/sidecar/sidecar/src/ops/resolve-identity.js.map +1 -0
  36. package/dist/sidecar/sidecar/src/ops/rotate-identity.js +37 -0
  37. package/dist/sidecar/sidecar/src/ops/rotate-identity.js.map +1 -0
  38. package/dist/sidecar/sidecar/src/ops/run-conformance.js +78 -0
  39. package/dist/sidecar/sidecar/src/ops/run-conformance.js.map +1 -0
  40. package/dist/sidecar/sidecar/src/ops/sign-with-ed25519-seed.js +12 -0
  41. package/dist/sidecar/sidecar/src/ops/sign-with-ed25519-seed.js.map +1 -0
  42. package/dist/sidecar/sidecar/src/ops/sign.js +24 -0
  43. package/dist/sidecar/sidecar/src/ops/sign.js.map +1 -0
  44. package/dist/sidecar/sidecar/src/ops/verify-audit-bundle.js +139 -0
  45. package/dist/sidecar/sidecar/src/ops/verify-audit-bundle.js.map +1 -0
  46. package/dist/sidecar/sidecar/src/ssh-key.js +297 -0
  47. package/dist/sidecar/sidecar/src/ssh-key.js.map +1 -0
  48. package/node_modules/@kya-os/contracts/dist/agent-deployment-utils.d.ts +62 -0
  49. package/node_modules/@kya-os/contracts/dist/agent-deployment-utils.js +92 -0
  50. package/node_modules/@kya-os/contracts/dist/agent-deployment.d.ts +723 -0
  51. package/node_modules/@kya-os/contracts/dist/agent-deployment.js +270 -0
  52. package/node_modules/@kya-os/contracts/dist/agentshield-api/admin-schemas.d.ts +49 -0
  53. package/node_modules/@kya-os/contracts/dist/agentshield-api/admin-schemas.js +30 -0
  54. package/node_modules/@kya-os/contracts/dist/agentshield-api/admin-types.d.ts +37 -0
  55. package/node_modules/@kya-os/contracts/dist/agentshield-api/admin-types.js +10 -0
  56. package/node_modules/@kya-os/contracts/dist/agentshield-api/endpoints.d.ts +53 -0
  57. package/node_modules/@kya-os/contracts/dist/agentshield-api/endpoints.js +49 -0
  58. package/node_modules/@kya-os/contracts/dist/agentshield-api/index.d.ts +15 -0
  59. package/node_modules/@kya-os/contracts/dist/agentshield-api/index.js +46 -0
  60. package/node_modules/@kya-os/contracts/dist/agentshield-api/schemas.d.ts +6583 -0
  61. package/node_modules/@kya-os/contracts/dist/agentshield-api/schemas.js +340 -0
  62. package/node_modules/@kya-os/contracts/dist/agentshield-api/types.d.ts +344 -0
  63. package/node_modules/@kya-os/contracts/dist/agentshield-api/types.js +26 -0
  64. package/node_modules/@kya-os/contracts/dist/attribution/index.d.ts +80 -0
  65. package/node_modules/@kya-os/contracts/dist/attribution/index.js +74 -0
  66. package/node_modules/@kya-os/contracts/dist/audit/index.d.ts +147 -0
  67. package/node_modules/@kya-os/contracts/dist/audit/index.js +51 -0
  68. package/node_modules/@kya-os/contracts/dist/cli-read/analyze.d.ts +162 -0
  69. package/node_modules/@kya-os/contracts/dist/cli-read/analyze.js +38 -0
  70. package/node_modules/@kya-os/contracts/dist/cli-read/common.d.ts +70 -0
  71. package/node_modules/@kya-os/contracts/dist/cli-read/common.js +55 -0
  72. package/node_modules/@kya-os/contracts/dist/cli-read/index.d.ts +5 -0
  73. package/node_modules/@kya-os/contracts/dist/cli-read/index.js +21 -0
  74. package/node_modules/@kya-os/contracts/dist/cli-read/monitor.d.ts +241 -0
  75. package/node_modules/@kya-os/contracts/dist/cli-read/monitor.js +70 -0
  76. package/node_modules/@kya-os/contracts/dist/cli-read/projects.d.ts +195 -0
  77. package/node_modules/@kya-os/contracts/dist/cli-read/projects.js +48 -0
  78. package/node_modules/@kya-os/contracts/dist/cli-read/settings.d.ts +274 -0
  79. package/node_modules/@kya-os/contracts/dist/cli-read/settings.js +56 -0
  80. package/node_modules/@kya-os/contracts/dist/cli.d.ts +542 -0
  81. package/node_modules/@kya-os/contracts/dist/cli.js +266 -0
  82. package/node_modules/@kya-os/contracts/dist/compute-binding.d.ts +48 -0
  83. package/node_modules/@kya-os/contracts/dist/compute-binding.js +42 -0
  84. package/node_modules/@kya-os/contracts/dist/compute.d.ts +474 -0
  85. package/node_modules/@kya-os/contracts/dist/compute.js +213 -0
  86. package/node_modules/@kya-os/contracts/dist/config/base.d.ts +76 -0
  87. package/node_modules/@kya-os/contracts/dist/config/base.js +11 -0
  88. package/node_modules/@kya-os/contracts/dist/config/builder.d.ts +33 -0
  89. package/node_modules/@kya-os/contracts/dist/config/builder.js +71 -0
  90. package/node_modules/@kya-os/contracts/dist/config/checkpoint-env.d.ts +25 -0
  91. package/node_modules/@kya-os/contracts/dist/config/checkpoint-env.js +38 -0
  92. package/node_modules/@kya-os/contracts/dist/config/client-messages.d.ts +216 -0
  93. package/node_modules/@kya-os/contracts/dist/config/client-messages.js +50 -0
  94. package/node_modules/@kya-os/contracts/dist/config/delegation-denial.d.ts +14 -0
  95. package/node_modules/@kya-os/contracts/dist/config/delegation-denial.js +30 -0
  96. package/node_modules/@kya-os/contracts/dist/config/delegation.d.ts +194 -0
  97. package/node_modules/@kya-os/contracts/dist/config/delegation.js +10 -0
  98. package/node_modules/@kya-os/contracts/dist/config/identity.d.ts +1164 -0
  99. package/node_modules/@kya-os/contracts/dist/config/identity.js +155 -0
  100. package/node_modules/@kya-os/contracts/dist/config/index.d.ts +45 -0
  101. package/node_modules/@kya-os/contracts/dist/config/index.js +41 -0
  102. package/node_modules/@kya-os/contracts/dist/config/proofing.d.ts +120 -0
  103. package/node_modules/@kya-os/contracts/dist/config/proofing.js +10 -0
  104. package/node_modules/@kya-os/contracts/dist/config/tool-context.d.ts +94 -0
  105. package/node_modules/@kya-os/contracts/dist/config/tool-context.js +13 -0
  106. package/node_modules/@kya-os/contracts/dist/config/tool-protection.d.ts +164 -0
  107. package/node_modules/@kya-os/contracts/dist/config/tool-protection.js +10 -0
  108. package/node_modules/@kya-os/contracts/dist/config/tool-refusal.d.ts +54 -0
  109. package/node_modules/@kya-os/contracts/dist/config/tool-refusal.js +82 -0
  110. package/node_modules/@kya-os/contracts/dist/consent/authorization-progress.d.ts +163 -0
  111. package/node_modules/@kya-os/contracts/dist/consent/authorization-progress.js +42 -0
  112. package/node_modules/@kya-os/contracts/dist/consent/index.d.ts +14 -0
  113. package/node_modules/@kya-os/contracts/dist/consent/index.js +94 -0
  114. package/node_modules/@kya-os/contracts/dist/consent/schemas.d.ts +965 -0
  115. package/node_modules/@kya-os/contracts/dist/consent/schemas.js +335 -0
  116. package/node_modules/@kya-os/contracts/dist/consent/types.d.ts +155 -0
  117. package/node_modules/@kya-os/contracts/dist/consent/types.js +10 -0
  118. package/node_modules/@kya-os/contracts/dist/dashboard-config/default-config.d.ts +49 -0
  119. package/node_modules/@kya-os/contracts/dist/dashboard-config/default-config.js +235 -0
  120. package/node_modules/@kya-os/contracts/dist/dashboard-config/index.d.ts +10 -0
  121. package/node_modules/@kya-os/contracts/dist/dashboard-config/index.js +37 -0
  122. package/node_modules/@kya-os/contracts/dist/dashboard-config/schemas.d.ts +13351 -0
  123. package/node_modules/@kya-os/contracts/dist/dashboard-config/schemas.js +267 -0
  124. package/node_modules/@kya-os/contracts/dist/dashboard-config/types.d.ts +359 -0
  125. package/node_modules/@kya-os/contracts/dist/dashboard-config/types.js +10 -0
  126. package/node_modules/@kya-os/contracts/dist/delegation/constraints.d.ts +1021 -0
  127. package/node_modules/@kya-os/contracts/dist/delegation/constraints.js +218 -0
  128. package/node_modules/@kya-os/contracts/dist/delegation/index.d.ts +7 -0
  129. package/node_modules/@kya-os/contracts/dist/delegation/index.js +23 -0
  130. package/node_modules/@kya-os/contracts/dist/delegation/schemas.d.ts +9302 -0
  131. package/node_modules/@kya-os/contracts/dist/delegation/schemas.js +585 -0
  132. package/node_modules/@kya-os/contracts/dist/deploy/index.d.ts +27 -0
  133. package/node_modules/@kya-os/contracts/dist/deploy/index.js +62 -0
  134. package/node_modules/@kya-os/contracts/dist/deploy/schemas.d.ts +1001 -0
  135. package/node_modules/@kya-os/contracts/dist/deploy/schemas.js +284 -0
  136. package/node_modules/@kya-os/contracts/dist/deploy/types.d.ts +256 -0
  137. package/node_modules/@kya-os/contracts/dist/deploy/types.js +10 -0
  138. package/node_modules/@kya-os/contracts/dist/did/index.d.ts +8 -0
  139. package/node_modules/@kya-os/contracts/dist/did/index.js +24 -0
  140. package/node_modules/@kya-os/contracts/dist/did/resolve-contract.d.ts +219 -0
  141. package/node_modules/@kya-os/contracts/dist/did/resolve-contract.js +31 -0
  142. package/node_modules/@kya-os/contracts/dist/did/schemas.d.ts +112 -0
  143. package/node_modules/@kya-os/contracts/dist/did/schemas.js +172 -0
  144. package/node_modules/@kya-os/contracts/dist/did/types.d.ts +163 -0
  145. package/node_modules/@kya-os/contracts/dist/did/types.js +70 -0
  146. package/node_modules/@kya-os/contracts/dist/env/constants.d.ts +57 -0
  147. package/node_modules/@kya-os/contracts/dist/env/constants.js +59 -0
  148. package/node_modules/@kya-os/contracts/dist/env/index.d.ts +4 -0
  149. package/node_modules/@kya-os/contracts/dist/env/index.js +20 -0
  150. package/node_modules/@kya-os/contracts/dist/fleet/index.d.ts +17 -0
  151. package/node_modules/@kya-os/contracts/dist/fleet/index.js +69 -0
  152. package/node_modules/@kya-os/contracts/dist/gateway/agents.d.ts +21 -0
  153. package/node_modules/@kya-os/contracts/dist/gateway/agents.js +12 -0
  154. package/node_modules/@kya-os/contracts/dist/gateway/cron.d.ts +33 -0
  155. package/node_modules/@kya-os/contracts/dist/gateway/cron.js +16 -0
  156. package/node_modules/@kya-os/contracts/dist/gateway/index.d.ts +20 -0
  157. package/node_modules/@kya-os/contracts/dist/gateway/index.js +37 -0
  158. package/node_modules/@kya-os/contracts/dist/gateway/sessions.d.ts +30 -0
  159. package/node_modules/@kya-os/contracts/dist/gateway/sessions.js +15 -0
  160. package/node_modules/@kya-os/contracts/dist/gateway/skills.d.ts +445 -0
  161. package/node_modules/@kya-os/contracts/dist/gateway/skills.js +47 -0
  162. package/node_modules/@kya-os/contracts/dist/gateway/usage.d.ts +43 -0
  163. package/node_modules/@kya-os/contracts/dist/gateway/usage.js +18 -0
  164. package/node_modules/@kya-os/contracts/dist/handshake/github-credential-anchor.d.ts +299 -0
  165. package/node_modules/@kya-os/contracts/dist/handshake/github-credential-anchor.js +200 -0
  166. package/node_modules/@kya-os/contracts/dist/handshake/index.d.ts +16 -0
  167. package/node_modules/@kya-os/contracts/dist/handshake/index.js +32 -0
  168. package/node_modules/@kya-os/contracts/dist/handshake/schemas.d.ts +557 -0
  169. package/node_modules/@kya-os/contracts/dist/handshake/schemas.js +282 -0
  170. package/node_modules/@kya-os/contracts/dist/handshake/verify.d.ts +36 -0
  171. package/node_modules/@kya-os/contracts/dist/handshake/verify.js +58 -0
  172. package/node_modules/@kya-os/contracts/dist/handshake.d.ts +12 -0
  173. package/node_modules/@kya-os/contracts/dist/handshake.js +28 -0
  174. package/node_modules/@kya-os/contracts/dist/identity/index.d.ts +10 -0
  175. package/node_modules/@kya-os/contracts/dist/identity/index.js +30 -0
  176. package/node_modules/@kya-os/contracts/dist/identity/schemas.d.ts +250 -0
  177. package/node_modules/@kya-os/contracts/dist/identity/schemas.js +115 -0
  178. package/node_modules/@kya-os/contracts/dist/index.d.ts +28 -0
  179. package/node_modules/@kya-os/contracts/dist/index.js +66 -0
  180. package/node_modules/@kya-os/contracts/dist/molti/admin-ws.d.ts +1871 -0
  181. package/node_modules/@kya-os/contracts/dist/molti/admin-ws.js +177 -0
  182. package/node_modules/@kya-os/contracts/dist/molti/index.d.ts +30 -0
  183. package/node_modules/@kya-os/contracts/dist/molti/index.js +86 -0
  184. package/node_modules/@kya-os/contracts/dist/molti/schemas.d.ts +837 -0
  185. package/node_modules/@kya-os/contracts/dist/molti/schemas.js +267 -0
  186. package/node_modules/@kya-os/contracts/dist/molti/types.d.ts +216 -0
  187. package/node_modules/@kya-os/contracts/dist/molti/types.js +25 -0
  188. package/node_modules/@kya-os/contracts/dist/pairing/index.d.ts +44 -0
  189. package/node_modules/@kya-os/contracts/dist/pairing/index.js +11 -0
  190. package/node_modules/@kya-os/contracts/dist/policy/index.d.ts +8 -0
  191. package/node_modules/@kya-os/contracts/dist/policy/index.js +41 -0
  192. package/node_modules/@kya-os/contracts/dist/policy/schemas.d.ts +3839 -0
  193. package/node_modules/@kya-os/contracts/dist/policy/schemas.js +424 -0
  194. package/node_modules/@kya-os/contracts/dist/proof/detached-proof.d.ts +476 -0
  195. package/node_modules/@kya-os/contracts/dist/proof/detached-proof.js +116 -0
  196. package/node_modules/@kya-os/contracts/dist/proof/index.d.ts +15 -0
  197. package/node_modules/@kya-os/contracts/dist/proof/index.js +32 -0
  198. package/node_modules/@kya-os/contracts/dist/proof/proof-record.d.ts +837 -0
  199. package/node_modules/@kya-os/contracts/dist/proof/proof-record.js +133 -0
  200. package/node_modules/@kya-os/contracts/dist/proof/signing-spec.d.ts +146 -0
  201. package/node_modules/@kya-os/contracts/dist/proof/signing-spec.js +122 -0
  202. package/node_modules/@kya-os/contracts/dist/proof.d.ts +12 -0
  203. package/node_modules/@kya-os/contracts/dist/proof.js +28 -0
  204. package/node_modules/@kya-os/contracts/dist/registry.d.ts +342 -0
  205. package/node_modules/@kya-os/contracts/dist/registry.js +118 -0
  206. package/node_modules/@kya-os/contracts/dist/reputation/api.d.ts +2866 -0
  207. package/node_modules/@kya-os/contracts/dist/reputation/api.js +397 -0
  208. package/node_modules/@kya-os/contracts/dist/reputation/constants.d.ts +242 -0
  209. package/node_modules/@kya-os/contracts/dist/reputation/constants.js +259 -0
  210. package/node_modules/@kya-os/contracts/dist/reputation/credentials.d.ts +1493 -0
  211. package/node_modules/@kya-os/contracts/dist/reputation/credentials.js +302 -0
  212. package/node_modules/@kya-os/contracts/dist/reputation/index.d.ts +21 -0
  213. package/node_modules/@kya-os/contracts/dist/reputation/index.js +42 -0
  214. package/node_modules/@kya-os/contracts/dist/reputation/interactions.d.ts +146 -0
  215. package/node_modules/@kya-os/contracts/dist/reputation/interactions.js +82 -0
  216. package/node_modules/@kya-os/contracts/dist/reputation/schemas.d.ts +1600 -0
  217. package/node_modules/@kya-os/contracts/dist/reputation/schemas.js +499 -0
  218. package/node_modules/@kya-os/contracts/dist/review/canonicalize.d.ts +87 -0
  219. package/node_modules/@kya-os/contracts/dist/review/canonicalize.js +122 -0
  220. package/node_modules/@kya-os/contracts/dist/review/fix-attestation.d.ts +151 -0
  221. package/node_modules/@kya-os/contracts/dist/review/fix-attestation.js +105 -0
  222. package/node_modules/@kya-os/contracts/dist/review/index.d.ts +9 -0
  223. package/node_modules/@kya-os/contracts/dist/review/index.js +25 -0
  224. package/node_modules/@kya-os/contracts/dist/review/registry.d.ts +349 -0
  225. package/node_modules/@kya-os/contracts/dist/review/registry.js +293 -0
  226. package/node_modules/@kya-os/contracts/dist/review/schemas.d.ts +249 -0
  227. package/node_modules/@kya-os/contracts/dist/review/schemas.js +102 -0
  228. package/node_modules/@kya-os/contracts/dist/review/verify.d.ts +72 -0
  229. package/node_modules/@kya-os/contracts/dist/review/verify.js +111 -0
  230. package/node_modules/@kya-os/contracts/dist/runtime/errors.d.ts +347 -0
  231. package/node_modules/@kya-os/contracts/dist/runtime/errors.js +119 -0
  232. package/node_modules/@kya-os/contracts/dist/runtime/headers.d.ts +87 -0
  233. package/node_modules/@kya-os/contracts/dist/runtime/headers.js +85 -0
  234. package/node_modules/@kya-os/contracts/dist/runtime/index.d.ts +5 -0
  235. package/node_modules/@kya-os/contracts/dist/runtime/index.js +21 -0
  236. package/node_modules/@kya-os/contracts/dist/skills/index.d.ts +8 -0
  237. package/node_modules/@kya-os/contracts/dist/skills/index.js +24 -0
  238. package/node_modules/@kya-os/contracts/dist/skills/schemas.d.ts +92 -0
  239. package/node_modules/@kya-os/contracts/dist/skills/schemas.js +82 -0
  240. package/node_modules/@kya-os/contracts/dist/test.d.ts +251 -0
  241. package/node_modules/@kya-os/contracts/dist/test.js +119 -0
  242. package/node_modules/@kya-os/contracts/dist/tlkrc/index.d.ts +4 -0
  243. package/node_modules/@kya-os/contracts/dist/tlkrc/index.js +20 -0
  244. package/node_modules/@kya-os/contracts/dist/tlkrc/rotation.d.ts +245 -0
  245. package/node_modules/@kya-os/contracts/dist/tlkrc/rotation.js +126 -0
  246. package/node_modules/@kya-os/contracts/dist/tool-protection/index.d.ts +1369 -0
  247. package/node_modules/@kya-os/contracts/dist/tool-protection/index.js +499 -0
  248. package/node_modules/@kya-os/contracts/dist/utils/validation.d.ts +30 -0
  249. package/node_modules/@kya-os/contracts/dist/utils/validation.js +69 -0
  250. package/node_modules/@kya-os/contracts/dist/vault/index.d.ts +9 -0
  251. package/node_modules/@kya-os/contracts/dist/vault/index.js +16 -0
  252. package/node_modules/@kya-os/contracts/dist/vault/schemas.d.ts +71 -0
  253. package/node_modules/@kya-os/contracts/dist/vault/schemas.js +52 -0
  254. package/node_modules/@kya-os/contracts/dist/vault/types.d.ts +15 -0
  255. package/node_modules/@kya-os/contracts/dist/vault/types.js +9 -0
  256. package/node_modules/@kya-os/contracts/dist/vc/index.d.ts +7 -0
  257. package/node_modules/@kya-os/contracts/dist/vc/index.js +23 -0
  258. package/node_modules/@kya-os/contracts/dist/vc/schemas.d.ts +2483 -0
  259. package/node_modules/@kya-os/contracts/dist/vc/schemas.js +224 -0
  260. package/node_modules/@kya-os/contracts/dist/vc/statuslist.d.ts +493 -0
  261. package/node_modules/@kya-os/contracts/dist/vc/statuslist.js +132 -0
  262. package/node_modules/@kya-os/contracts/dist/verifier/index.d.ts +8 -0
  263. package/node_modules/@kya-os/contracts/dist/verifier/index.js +24 -0
  264. package/node_modules/@kya-os/contracts/dist/verifier/schemas.d.ts +216 -0
  265. package/node_modules/@kya-os/contracts/dist/verifier/schemas.js +94 -0
  266. package/node_modules/@kya-os/contracts/dist/verifier.d.ts +11 -0
  267. package/node_modules/@kya-os/contracts/dist/verifier.js +27 -0
  268. package/node_modules/@kya-os/contracts/dist/well-known/index.d.ts +1013 -0
  269. package/node_modules/@kya-os/contracts/dist/well-known/index.js +302 -0
  270. package/node_modules/@kya-os/contracts/dist/workbench/a2a.d.ts +267 -0
  271. package/node_modules/@kya-os/contracts/dist/workbench/a2a.js +124 -0
  272. package/node_modules/@kya-os/contracts/dist/workbench/artifact-bindings.d.ts +1448 -0
  273. package/node_modules/@kya-os/contracts/dist/workbench/artifact-bindings.js +233 -0
  274. package/node_modules/@kya-os/contracts/dist/workbench/cache.d.ts +461 -0
  275. package/node_modules/@kya-os/contracts/dist/workbench/cache.js +165 -0
  276. package/node_modules/@kya-os/contracts/dist/workbench/economics.d.ts +1097 -0
  277. package/node_modules/@kya-os/contracts/dist/workbench/economics.js +87 -0
  278. package/node_modules/@kya-os/contracts/dist/workbench/execution.d.ts +594 -0
  279. package/node_modules/@kya-os/contracts/dist/workbench/execution.js +76 -0
  280. package/node_modules/@kya-os/contracts/dist/workbench/governed.d.ts +4323 -0
  281. package/node_modules/@kya-os/contracts/dist/workbench/governed.js +37 -0
  282. package/node_modules/@kya-os/contracts/dist/workbench/graph-interfaces.d.ts +1330 -0
  283. package/node_modules/@kya-os/contracts/dist/workbench/graph-interfaces.js +302 -0
  284. package/node_modules/@kya-os/contracts/dist/workbench/index.d.ts +17 -0
  285. package/node_modules/@kya-os/contracts/dist/workbench/index.js +33 -0
  286. package/node_modules/@kya-os/contracts/dist/workbench/lead-planner.d.ts +7603 -0
  287. package/node_modules/@kya-os/contracts/dist/workbench/lead-planner.js +20 -0
  288. package/node_modules/@kya-os/contracts/dist/workbench/linear-installation.d.ts +797 -0
  289. package/node_modules/@kya-os/contracts/dist/workbench/linear-installation.js +80 -0
  290. package/node_modules/@kya-os/contracts/dist/workbench/mailbox.d.ts +3245 -0
  291. package/node_modules/@kya-os/contracts/dist/workbench/mailbox.js +475 -0
  292. package/node_modules/@kya-os/contracts/dist/workbench/managed-worker.d.ts +199 -0
  293. package/node_modules/@kya-os/contracts/dist/workbench/managed-worker.js +49 -0
  294. package/node_modules/@kya-os/contracts/dist/workbench/review.d.ts +1585 -0
  295. package/node_modules/@kya-os/contracts/dist/workbench/review.js +84 -0
  296. package/node_modules/@kya-os/contracts/dist/workbench/routing.d.ts +1200 -0
  297. package/node_modules/@kya-os/contracts/dist/workbench/routing.js +93 -0
  298. package/node_modules/@kya-os/contracts/dist/workbench/task-status-projection.d.ts +190 -0
  299. package/node_modules/@kya-os/contracts/dist/workbench/task-status-projection.js +49 -0
  300. package/node_modules/@kya-os/contracts/dist/workbench/tracking.d.ts +3364 -0
  301. package/node_modules/@kya-os/contracts/dist/workbench/tracking.js +221 -0
  302. package/node_modules/@kya-os/contracts/dist/workbench/usage.d.ts +62 -0
  303. package/node_modules/@kya-os/contracts/dist/workbench/usage.js +57 -0
  304. package/node_modules/@kya-os/contracts/package.json +185 -0
  305. package/node_modules/@kya-os/contracts/parity-vectors/delegation-conformance.json +265 -0
  306. package/node_modules/@kya-os/contracts/parity-vectors/did-key.json +134 -0
  307. package/node_modules/@kya-os/contracts/parity-vectors/index.ts +253 -0
  308. package/node_modules/@kya-os/contracts/parity-vectors/scope-matching.json +330 -0
  309. package/node_modules/@kya-os/contracts/parity-vectors/vc-jwt.json +210 -0
  310. package/node_modules/@kya-os/contracts/parity-vectors/workbench/artifact-bindings.v1.json +1005 -0
  311. package/node_modules/@kya-os/contracts/parity-vectors/workbench/graph-interfaces.v1.json +1967 -0
  312. package/node_modules/@kya-os/contracts/parity-vectors/workbench/linear-installation.v1.json +75 -0
  313. package/node_modules/@kya-os/contracts/parity-vectors/workbench/task-status-projection.v1.json +591 -0
  314. package/node_modules/@kya-os/contracts/parity-vectors/workbench/tracker-document-upgrade.v1.json +516 -0
  315. package/node_modules/zod/LICENSE +21 -0
  316. package/node_modules/zod/README.md +208 -0
  317. package/node_modules/zod/dist/cjs/index.js +22 -0
  318. package/node_modules/zod/dist/cjs/package.json +3 -0
  319. package/node_modules/zod/dist/cjs/v3/ZodError.js +137 -0
  320. package/node_modules/zod/dist/cjs/v3/benchmarks/datetime.js +54 -0
  321. package/node_modules/zod/dist/cjs/v3/benchmarks/discriminatedUnion.js +79 -0
  322. package/node_modules/zod/dist/cjs/v3/benchmarks/index.js +59 -0
  323. package/node_modules/zod/dist/cjs/v3/benchmarks/ipv4.js +54 -0
  324. package/node_modules/zod/dist/cjs/v3/benchmarks/object.js +70 -0
  325. package/node_modules/zod/dist/cjs/v3/benchmarks/primitives.js +159 -0
  326. package/node_modules/zod/dist/cjs/v3/benchmarks/realworld.js +56 -0
  327. package/node_modules/zod/dist/cjs/v3/benchmarks/string.js +55 -0
  328. package/node_modules/zod/dist/cjs/v3/benchmarks/union.js +79 -0
  329. package/node_modules/zod/dist/cjs/v3/errors.js +17 -0
  330. package/node_modules/zod/dist/cjs/v3/external.js +22 -0
  331. package/node_modules/zod/dist/cjs/v3/helpers/enumUtil.js +2 -0
  332. package/node_modules/zod/dist/cjs/v3/helpers/errorUtil.js +9 -0
  333. package/node_modules/zod/dist/cjs/v3/helpers/parseUtil.js +124 -0
  334. package/node_modules/zod/dist/cjs/v3/helpers/partialUtil.js +2 -0
  335. package/node_modules/zod/dist/cjs/v3/helpers/typeAliases.js +2 -0
  336. package/node_modules/zod/dist/cjs/v3/helpers/util.js +137 -0
  337. package/node_modules/zod/dist/cjs/v3/index.js +33 -0
  338. package/node_modules/zod/dist/cjs/v3/locales/en.js +109 -0
  339. package/node_modules/zod/dist/cjs/v3/standard-schema.js +2 -0
  340. package/node_modules/zod/dist/cjs/v3/tests/Mocker.js +57 -0
  341. package/node_modules/zod/dist/cjs/v3/types.js +3773 -0
  342. package/node_modules/zod/dist/cjs/v4/classic/checks.js +32 -0
  343. package/node_modules/zod/dist/cjs/v4/classic/coerce.js +47 -0
  344. package/node_modules/zod/dist/cjs/v4/classic/compat.js +63 -0
  345. package/node_modules/zod/dist/cjs/v4/classic/errors.js +67 -0
  346. package/node_modules/zod/dist/cjs/v4/classic/external.js +69 -0
  347. package/node_modules/zod/dist/cjs/v4/classic/index.js +33 -0
  348. package/node_modules/zod/dist/cjs/v4/classic/iso.js +60 -0
  349. package/node_modules/zod/dist/cjs/v4/classic/parse.js +32 -0
  350. package/node_modules/zod/dist/cjs/v4/classic/schemas.js +1100 -0
  351. package/node_modules/zod/dist/cjs/v4/core/api.js +1021 -0
  352. package/node_modules/zod/dist/cjs/v4/core/checks.js +580 -0
  353. package/node_modules/zod/dist/cjs/v4/core/config.js +10 -0
  354. package/node_modules/zod/dist/cjs/v4/core/core.js +63 -0
  355. package/node_modules/zod/dist/cjs/v4/core/doc.js +39 -0
  356. package/node_modules/zod/dist/cjs/v4/core/errors.js +222 -0
  357. package/node_modules/zod/dist/cjs/v4/core/function.js +102 -0
  358. package/node_modules/zod/dist/cjs/v4/core/index.js +44 -0
  359. package/node_modules/zod/dist/cjs/v4/core/json-schema.js +2 -0
  360. package/node_modules/zod/dist/cjs/v4/core/parse.js +87 -0
  361. package/node_modules/zod/dist/cjs/v4/core/regexes.js +103 -0
  362. package/node_modules/zod/dist/cjs/v4/core/registries.js +47 -0
  363. package/node_modules/zod/dist/cjs/v4/core/schemas.js +1719 -0
  364. package/node_modules/zod/dist/cjs/v4/core/standard-schema.js +2 -0
  365. package/node_modules/zod/dist/cjs/v4/core/to-json-schema.js +833 -0
  366. package/node_modules/zod/dist/cjs/v4/core/util.js +537 -0
  367. package/node_modules/zod/dist/cjs/v4/core/versions.js +8 -0
  368. package/node_modules/zod/dist/cjs/v4/core/zsf.js +172 -0
  369. package/node_modules/zod/dist/cjs/v4/index.js +22 -0
  370. package/node_modules/zod/dist/cjs/v4/locales/ar.js +142 -0
  371. package/node_modules/zod/dist/cjs/v4/locales/az.js +141 -0
  372. package/node_modules/zod/dist/cjs/v4/locales/be.js +190 -0
  373. package/node_modules/zod/dist/cjs/v4/locales/ca.js +144 -0
  374. package/node_modules/zod/dist/cjs/v4/locales/cs.js +161 -0
  375. package/node_modules/zod/dist/cjs/v4/locales/de.js +142 -0
  376. package/node_modules/zod/dist/cjs/v4/locales/en.js +145 -0
  377. package/node_modules/zod/dist/cjs/v4/locales/es.js +143 -0
  378. package/node_modules/zod/dist/cjs/v4/locales/fa.js +148 -0
  379. package/node_modules/zod/dist/cjs/v4/locales/fi.js +148 -0
  380. package/node_modules/zod/dist/cjs/v4/locales/fr-CA.js +143 -0
  381. package/node_modules/zod/dist/cjs/v4/locales/fr.js +142 -0
  382. package/node_modules/zod/dist/cjs/v4/locales/he.js +143 -0
  383. package/node_modules/zod/dist/cjs/v4/locales/hu.js +143 -0
  384. package/node_modules/zod/dist/cjs/v4/locales/id.js +142 -0
  385. package/node_modules/zod/dist/cjs/v4/locales/index.js +82 -0
  386. package/node_modules/zod/dist/cjs/v4/locales/it.js +143 -0
  387. package/node_modules/zod/dist/cjs/v4/locales/ja.js +141 -0
  388. package/node_modules/zod/dist/cjs/v4/locales/kh.js +143 -0
  389. package/node_modules/zod/dist/cjs/v4/locales/ko.js +147 -0
  390. package/node_modules/zod/dist/cjs/v4/locales/mk.js +144 -0
  391. package/node_modules/zod/dist/cjs/v4/locales/ms.js +142 -0
  392. package/node_modules/zod/dist/cjs/v4/locales/nl.js +143 -0
  393. package/node_modules/zod/dist/cjs/v4/locales/no.js +142 -0
  394. package/node_modules/zod/dist/cjs/v4/locales/ota.js +143 -0
  395. package/node_modules/zod/dist/cjs/v4/locales/pl.js +143 -0
  396. package/node_modules/zod/dist/cjs/v4/locales/ps.js +148 -0
  397. package/node_modules/zod/dist/cjs/v4/locales/pt.js +142 -0
  398. package/node_modules/zod/dist/cjs/v4/locales/ru.js +190 -0
  399. package/node_modules/zod/dist/cjs/v4/locales/sl.js +143 -0
  400. package/node_modules/zod/dist/cjs/v4/locales/sv.js +144 -0
  401. package/node_modules/zod/dist/cjs/v4/locales/ta.js +143 -0
  402. package/node_modules/zod/dist/cjs/v4/locales/th.js +143 -0
  403. package/node_modules/zod/dist/cjs/v4/locales/tr.js +143 -0
  404. package/node_modules/zod/dist/cjs/v4/locales/ua.js +143 -0
  405. package/node_modules/zod/dist/cjs/v4/locales/ur.js +143 -0
  406. package/node_modules/zod/dist/cjs/v4/locales/vi.js +142 -0
  407. package/node_modules/zod/dist/cjs/v4/locales/zh-CN.js +142 -0
  408. package/node_modules/zod/dist/cjs/v4/locales/zh-TW.js +143 -0
  409. package/node_modules/zod/dist/cjs/v4/mini/checks.js +34 -0
  410. package/node_modules/zod/dist/cjs/v4/mini/coerce.js +47 -0
  411. package/node_modules/zod/dist/cjs/v4/mini/external.js +61 -0
  412. package/node_modules/zod/dist/cjs/v4/mini/index.js +32 -0
  413. package/node_modules/zod/dist/cjs/v4/mini/iso.js +60 -0
  414. package/node_modules/zod/dist/cjs/v4/mini/parse.js +8 -0
  415. package/node_modules/zod/dist/cjs/v4/mini/schemas.js +831 -0
  416. package/node_modules/zod/dist/esm/index.js +3 -0
  417. package/node_modules/zod/dist/esm/package.json +3 -0
  418. package/node_modules/zod/dist/esm/v3/ZodError.js +132 -0
  419. package/node_modules/zod/dist/esm/v3/benchmarks/datetime.js +49 -0
  420. package/node_modules/zod/dist/esm/v3/benchmarks/discriminatedUnion.js +74 -0
  421. package/node_modules/zod/dist/esm/v3/benchmarks/index.js +54 -0
  422. package/node_modules/zod/dist/esm/v3/benchmarks/ipv4.js +49 -0
  423. package/node_modules/zod/dist/esm/v3/benchmarks/object.js +65 -0
  424. package/node_modules/zod/dist/esm/v3/benchmarks/primitives.js +154 -0
  425. package/node_modules/zod/dist/esm/v3/benchmarks/realworld.js +51 -0
  426. package/node_modules/zod/dist/esm/v3/benchmarks/string.js +50 -0
  427. package/node_modules/zod/dist/esm/v3/benchmarks/union.js +74 -0
  428. package/node_modules/zod/dist/esm/v3/errors.js +9 -0
  429. package/node_modules/zod/dist/esm/v3/external.js +6 -0
  430. package/node_modules/zod/dist/esm/v3/helpers/enumUtil.js +1 -0
  431. package/node_modules/zod/dist/esm/v3/helpers/errorUtil.js +6 -0
  432. package/node_modules/zod/dist/esm/v3/helpers/parseUtil.js +109 -0
  433. package/node_modules/zod/dist/esm/v3/helpers/partialUtil.js +1 -0
  434. package/node_modules/zod/dist/esm/v3/helpers/typeAliases.js +1 -0
  435. package/node_modules/zod/dist/esm/v3/helpers/util.js +133 -0
  436. package/node_modules/zod/dist/esm/v3/index.js +4 -0
  437. package/node_modules/zod/dist/esm/v3/locales/en.js +107 -0
  438. package/node_modules/zod/dist/esm/v3/standard-schema.js +1 -0
  439. package/node_modules/zod/dist/esm/v3/tests/Mocker.js +53 -0
  440. package/node_modules/zod/dist/esm/v3/types.js +3691 -0
  441. package/node_modules/zod/dist/esm/v4/classic/checks.js +1 -0
  442. package/node_modules/zod/dist/esm/v4/classic/coerce.js +17 -0
  443. package/node_modules/zod/dist/esm/v4/classic/compat.js +33 -0
  444. package/node_modules/zod/dist/esm/v4/classic/errors.js +41 -0
  445. package/node_modules/zod/dist/esm/v4/classic/external.js +18 -0
  446. package/node_modules/zod/dist/esm/v4/classic/index.js +4 -0
  447. package/node_modules/zod/dist/esm/v4/classic/iso.js +30 -0
  448. package/node_modules/zod/dist/esm/v4/classic/parse.js +6 -0
  449. package/node_modules/zod/dist/esm/v4/classic/schemas.js +998 -0
  450. package/node_modules/zod/dist/esm/v4/core/api.js +889 -0
  451. package/node_modules/zod/dist/esm/v4/core/checks.js +554 -0
  452. package/node_modules/zod/dist/esm/v4/core/config.js +6 -0
  453. package/node_modules/zod/dist/esm/v4/core/core.js +57 -0
  454. package/node_modules/zod/dist/esm/v4/core/doc.js +35 -0
  455. package/node_modules/zod/dist/esm/v4/core/errors.js +191 -0
  456. package/node_modules/zod/dist/esm/v4/core/function.js +75 -0
  457. package/node_modules/zod/dist/esm/v4/core/index.js +15 -0
  458. package/node_modules/zod/dist/esm/v4/core/json-schema.js +1 -0
  459. package/node_modules/zod/dist/esm/v4/core/parse.js +57 -0
  460. package/node_modules/zod/dist/esm/v4/core/regexes.js +95 -0
  461. package/node_modules/zod/dist/esm/v4/core/registries.js +42 -0
  462. package/node_modules/zod/dist/esm/v4/core/schemas.js +1688 -0
  463. package/node_modules/zod/dist/esm/v4/core/standard-schema.js +1 -0
  464. package/node_modules/zod/dist/esm/v4/core/to-json-schema.js +828 -0
  465. package/node_modules/zod/dist/esm/v4/core/util.js +491 -0
  466. package/node_modules/zod/dist/esm/v4/core/versions.js +5 -0
  467. package/node_modules/zod/dist/esm/v4/core/zsf.js +171 -0
  468. package/node_modules/zod/dist/esm/v4/index.js +3 -0
  469. package/node_modules/zod/dist/esm/v4/locales/ar.js +116 -0
  470. package/node_modules/zod/dist/esm/v4/locales/az.js +115 -0
  471. package/node_modules/zod/dist/esm/v4/locales/be.js +164 -0
  472. package/node_modules/zod/dist/esm/v4/locales/ca.js +118 -0
  473. package/node_modules/zod/dist/esm/v4/locales/cs.js +135 -0
  474. package/node_modules/zod/dist/esm/v4/locales/de.js +116 -0
  475. package/node_modules/zod/dist/esm/v4/locales/en.js +117 -0
  476. package/node_modules/zod/dist/esm/v4/locales/es.js +117 -0
  477. package/node_modules/zod/dist/esm/v4/locales/fa.js +122 -0
  478. package/node_modules/zod/dist/esm/v4/locales/fi.js +122 -0
  479. package/node_modules/zod/dist/esm/v4/locales/fr-CA.js +117 -0
  480. package/node_modules/zod/dist/esm/v4/locales/fr.js +116 -0
  481. package/node_modules/zod/dist/esm/v4/locales/he.js +117 -0
  482. package/node_modules/zod/dist/esm/v4/locales/hu.js +117 -0
  483. package/node_modules/zod/dist/esm/v4/locales/id.js +116 -0
  484. package/node_modules/zod/dist/esm/v4/locales/index.js +38 -0
  485. package/node_modules/zod/dist/esm/v4/locales/it.js +117 -0
  486. package/node_modules/zod/dist/esm/v4/locales/ja.js +115 -0
  487. package/node_modules/zod/dist/esm/v4/locales/kh.js +117 -0
  488. package/node_modules/zod/dist/esm/v4/locales/ko.js +121 -0
  489. package/node_modules/zod/dist/esm/v4/locales/mk.js +118 -0
  490. package/node_modules/zod/dist/esm/v4/locales/ms.js +116 -0
  491. package/node_modules/zod/dist/esm/v4/locales/nl.js +117 -0
  492. package/node_modules/zod/dist/esm/v4/locales/no.js +116 -0
  493. package/node_modules/zod/dist/esm/v4/locales/ota.js +117 -0
  494. package/node_modules/zod/dist/esm/v4/locales/pl.js +117 -0
  495. package/node_modules/zod/dist/esm/v4/locales/ps.js +122 -0
  496. package/node_modules/zod/dist/esm/v4/locales/pt.js +116 -0
  497. package/node_modules/zod/dist/esm/v4/locales/ru.js +164 -0
  498. package/node_modules/zod/dist/esm/v4/locales/sl.js +117 -0
  499. package/node_modules/zod/dist/esm/v4/locales/sv.js +118 -0
  500. package/node_modules/zod/dist/esm/v4/locales/ta.js +117 -0
  501. package/node_modules/zod/dist/esm/v4/locales/th.js +117 -0
  502. package/node_modules/zod/dist/esm/v4/locales/tr.js +115 -0
  503. package/node_modules/zod/dist/esm/v4/locales/ua.js +117 -0
  504. package/node_modules/zod/dist/esm/v4/locales/ur.js +117 -0
  505. package/node_modules/zod/dist/esm/v4/locales/vi.js +116 -0
  506. package/node_modules/zod/dist/esm/v4/locales/zh-CN.js +116 -0
  507. package/node_modules/zod/dist/esm/v4/locales/zh-TW.js +117 -0
  508. package/node_modules/zod/dist/esm/v4/mini/checks.js +1 -0
  509. package/node_modules/zod/dist/esm/v4/mini/coerce.js +17 -0
  510. package/node_modules/zod/dist/esm/v4/mini/external.js +13 -0
  511. package/node_modules/zod/dist/esm/v4/mini/index.js +3 -0
  512. package/node_modules/zod/dist/esm/v4/mini/iso.js +30 -0
  513. package/node_modules/zod/dist/esm/v4/mini/parse.js +1 -0
  514. package/node_modules/zod/dist/esm/v4/mini/schemas.js +725 -0
  515. package/node_modules/zod/dist/types/index.d.ts +3 -0
  516. package/node_modules/zod/dist/types/package.json +3 -0
  517. package/node_modules/zod/dist/types/v3/ZodError.d.ts +164 -0
  518. package/node_modules/zod/dist/types/v3/benchmarks/datetime.d.ts +5 -0
  519. package/node_modules/zod/dist/types/v3/benchmarks/discriminatedUnion.d.ts +5 -0
  520. package/node_modules/zod/dist/types/v3/benchmarks/index.d.ts +1 -0
  521. package/node_modules/zod/dist/types/v3/benchmarks/ipv4.d.ts +5 -0
  522. package/node_modules/zod/dist/types/v3/benchmarks/object.d.ts +5 -0
  523. package/node_modules/zod/dist/types/v3/benchmarks/primitives.d.ts +5 -0
  524. package/node_modules/zod/dist/types/v3/benchmarks/realworld.d.ts +5 -0
  525. package/node_modules/zod/dist/types/v3/benchmarks/string.d.ts +5 -0
  526. package/node_modules/zod/dist/types/v3/benchmarks/union.d.ts +5 -0
  527. package/node_modules/zod/dist/types/v3/errors.d.ts +5 -0
  528. package/node_modules/zod/dist/types/v3/external.d.ts +6 -0
  529. package/node_modules/zod/dist/types/v3/helpers/enumUtil.d.ts +8 -0
  530. package/node_modules/zod/dist/types/v3/helpers/errorUtil.d.ts +9 -0
  531. package/node_modules/zod/dist/types/v3/helpers/parseUtil.d.ts +78 -0
  532. package/node_modules/zod/dist/types/v3/helpers/partialUtil.d.ts +8 -0
  533. package/node_modules/zod/dist/types/v3/helpers/typeAliases.d.ts +2 -0
  534. package/node_modules/zod/dist/types/v3/helpers/util.d.ts +85 -0
  535. package/node_modules/zod/dist/types/v3/index.d.ts +4 -0
  536. package/node_modules/zod/dist/types/v3/locales/en.d.ts +3 -0
  537. package/node_modules/zod/dist/types/v3/standard-schema.d.ts +102 -0
  538. package/node_modules/zod/dist/types/v3/tests/Mocker.d.ts +17 -0
  539. package/node_modules/zod/dist/types/v3/types.d.ts +1031 -0
  540. package/node_modules/zod/dist/types/v4/classic/checks.d.ts +1 -0
  541. package/node_modules/zod/dist/types/v4/classic/coerce.d.ts +17 -0
  542. package/node_modules/zod/dist/types/v4/classic/compat.d.ts +48 -0
  543. package/node_modules/zod/dist/types/v4/classic/errors.d.ts +30 -0
  544. package/node_modules/zod/dist/types/v4/classic/external.d.ts +13 -0
  545. package/node_modules/zod/dist/types/v4/classic/index.d.ts +4 -0
  546. package/node_modules/zod/dist/types/v4/classic/iso.d.ts +22 -0
  547. package/node_modules/zod/dist/types/v4/classic/parse.d.ts +23 -0
  548. package/node_modules/zod/dist/types/v4/classic/schemas.d.ts +624 -0
  549. package/node_modules/zod/dist/types/v4/core/api.d.ts +281 -0
  550. package/node_modules/zod/dist/types/v4/core/checks.d.ts +277 -0
  551. package/node_modules/zod/dist/types/v4/core/config.d.ts +9 -0
  552. package/node_modules/zod/dist/types/v4/core/core.d.ts +47 -0
  553. package/node_modules/zod/dist/types/v4/core/doc.d.ts +14 -0
  554. package/node_modules/zod/dist/types/v4/core/errors.d.ts +204 -0
  555. package/node_modules/zod/dist/types/v4/core/function.d.ts +52 -0
  556. package/node_modules/zod/dist/types/v4/core/index.d.ts +15 -0
  557. package/node_modules/zod/dist/types/v4/core/json-schema.d.ts +87 -0
  558. package/node_modules/zod/dist/types/v4/core/parse.d.ts +25 -0
  559. package/node_modules/zod/dist/types/v4/core/regexes.d.ts +62 -0
  560. package/node_modules/zod/dist/types/v4/core/registries.d.ts +39 -0
  561. package/node_modules/zod/dist/types/v4/core/schemas.d.ts +1005 -0
  562. package/node_modules/zod/dist/types/v4/core/standard-schema.d.ts +55 -0
  563. package/node_modules/zod/dist/types/v4/core/to-json-schema.d.ts +84 -0
  564. package/node_modules/zod/dist/types/v4/core/util.d.ts +183 -0
  565. package/node_modules/zod/dist/types/v4/core/versions.d.ts +5 -0
  566. package/node_modules/zod/dist/types/v4/core/zsf.d.ts +91 -0
  567. package/node_modules/zod/dist/types/v4/index.d.ts +3 -0
  568. package/node_modules/zod/dist/types/v4/locales/ar.d.ts +4 -0
  569. package/node_modules/zod/dist/types/v4/locales/az.d.ts +4 -0
  570. package/node_modules/zod/dist/types/v4/locales/be.d.ts +4 -0
  571. package/node_modules/zod/dist/types/v4/locales/ca.d.ts +4 -0
  572. package/node_modules/zod/dist/types/v4/locales/cs.d.ts +4 -0
  573. package/node_modules/zod/dist/types/v4/locales/de.d.ts +4 -0
  574. package/node_modules/zod/dist/types/v4/locales/en.d.ts +5 -0
  575. package/node_modules/zod/dist/types/v4/locales/es.d.ts +4 -0
  576. package/node_modules/zod/dist/types/v4/locales/fa.d.ts +4 -0
  577. package/node_modules/zod/dist/types/v4/locales/fi.d.ts +4 -0
  578. package/node_modules/zod/dist/types/v4/locales/fr-CA.d.ts +4 -0
  579. package/node_modules/zod/dist/types/v4/locales/fr.d.ts +4 -0
  580. package/node_modules/zod/dist/types/v4/locales/he.d.ts +4 -0
  581. package/node_modules/zod/dist/types/v4/locales/hu.d.ts +4 -0
  582. package/node_modules/zod/dist/types/v4/locales/id.d.ts +4 -0
  583. package/node_modules/zod/dist/types/v4/locales/index.d.ts +38 -0
  584. package/node_modules/zod/dist/types/v4/locales/it.d.ts +4 -0
  585. package/node_modules/zod/dist/types/v4/locales/ja.d.ts +4 -0
  586. package/node_modules/zod/dist/types/v4/locales/kh.d.ts +4 -0
  587. package/node_modules/zod/dist/types/v4/locales/ko.d.ts +4 -0
  588. package/node_modules/zod/dist/types/v4/locales/mk.d.ts +4 -0
  589. package/node_modules/zod/dist/types/v4/locales/ms.d.ts +4 -0
  590. package/node_modules/zod/dist/types/v4/locales/nl.d.ts +4 -0
  591. package/node_modules/zod/dist/types/v4/locales/no.d.ts +4 -0
  592. package/node_modules/zod/dist/types/v4/locales/ota.d.ts +4 -0
  593. package/node_modules/zod/dist/types/v4/locales/pl.d.ts +4 -0
  594. package/node_modules/zod/dist/types/v4/locales/ps.d.ts +4 -0
  595. package/node_modules/zod/dist/types/v4/locales/pt.d.ts +4 -0
  596. package/node_modules/zod/dist/types/v4/locales/ru.d.ts +4 -0
  597. package/node_modules/zod/dist/types/v4/locales/sl.d.ts +4 -0
  598. package/node_modules/zod/dist/types/v4/locales/sv.d.ts +4 -0
  599. package/node_modules/zod/dist/types/v4/locales/ta.d.ts +4 -0
  600. package/node_modules/zod/dist/types/v4/locales/th.d.ts +4 -0
  601. package/node_modules/zod/dist/types/v4/locales/tr.d.ts +5 -0
  602. package/node_modules/zod/dist/types/v4/locales/ua.d.ts +4 -0
  603. package/node_modules/zod/dist/types/v4/locales/ur.d.ts +4 -0
  604. package/node_modules/zod/dist/types/v4/locales/vi.d.ts +4 -0
  605. package/node_modules/zod/dist/types/v4/locales/zh-CN.d.ts +4 -0
  606. package/node_modules/zod/dist/types/v4/locales/zh-TW.d.ts +4 -0
  607. package/node_modules/zod/dist/types/v4/mini/checks.d.ts +1 -0
  608. package/node_modules/zod/dist/types/v4/mini/coerce.d.ts +7 -0
  609. package/node_modules/zod/dist/types/v4/mini/external.d.ts +11 -0
  610. package/node_modules/zod/dist/types/v4/mini/index.d.ts +3 -0
  611. package/node_modules/zod/dist/types/v4/mini/iso.d.ts +22 -0
  612. package/node_modules/zod/dist/types/v4/mini/parse.d.ts +1 -0
  613. package/node_modules/zod/dist/types/v4/mini/schemas.d.ts +351 -0
  614. package/node_modules/zod/package.json +120 -0
  615. package/node_modules/zod/v3/index.d.ts +3 -0
  616. package/node_modules/zod/v3/index.js +1 -0
  617. package/node_modules/zod/v4/core/index.d.ts +1 -0
  618. package/node_modules/zod/v4/core/index.js +1 -0
  619. package/node_modules/zod/v4/index.d.ts +3 -0
  620. package/node_modules/zod/v4/index.js +1 -0
  621. package/node_modules/zod/v4/locales/en.d.ts +2 -0
  622. package/node_modules/zod/v4/locales/en.js +2 -0
  623. package/node_modules/zod/v4/locales/index.d.ts +1 -0
  624. package/node_modules/zod/v4/locales/index.js +1 -0
  625. package/node_modules/zod/v4-mini/index.d.ts +1 -0
  626. package/node_modules/zod/v4-mini/index.js +1 -0
  627. package/package.json +31 -33
  628. package/skills/fix/INSTRUCTIONS.md +40 -0
  629. package/skills/fix/skill.json +8 -0
  630. package/skills/review/INSTRUCTIONS.md +49 -0
  631. package/skills/review/skill.json +8 -0
  632. package/dist/commands/build.d.ts +0 -5
  633. package/dist/commands/build.d.ts.map +0 -1
  634. package/dist/commands/build.js +0 -173
  635. package/dist/commands/build.js.map +0 -1
  636. package/dist/commands/check.d.ts +0 -6
  637. package/dist/commands/check.d.ts.map +0 -1
  638. package/dist/commands/check.js +0 -145
  639. package/dist/commands/check.js.map +0 -1
  640. package/dist/commands/checkpoint-init.d.ts +0 -32
  641. package/dist/commands/checkpoint-init.d.ts.map +0 -1
  642. package/dist/commands/checkpoint-init.js +0 -521
  643. package/dist/commands/checkpoint-init.js.map +0 -1
  644. package/dist/commands/claim.d.ts +0 -22
  645. package/dist/commands/claim.d.ts.map +0 -1
  646. package/dist/commands/claim.js +0 -315
  647. package/dist/commands/claim.js.map +0 -1
  648. package/dist/commands/dco.d.ts +0 -55
  649. package/dist/commands/dco.d.ts.map +0 -1
  650. package/dist/commands/dco.js +0 -280
  651. package/dist/commands/dco.js.map +0 -1
  652. package/dist/commands/demo.d.ts +0 -10
  653. package/dist/commands/demo.d.ts.map +0 -1
  654. package/dist/commands/demo.js +0 -584
  655. package/dist/commands/demo.js.map +0 -1
  656. package/dist/commands/dev.d.ts +0 -5
  657. package/dist/commands/dev.d.ts.map +0 -1
  658. package/dist/commands/dev.js +0 -77
  659. package/dist/commands/dev.js.map +0 -1
  660. package/dist/commands/doctor.d.ts +0 -11
  661. package/dist/commands/doctor.d.ts.map +0 -1
  662. package/dist/commands/doctor.js +0 -524
  663. package/dist/commands/doctor.js.map +0 -1
  664. package/dist/commands/env.d.ts +0 -2
  665. package/dist/commands/env.d.ts.map +0 -1
  666. package/dist/commands/env.js +0 -320
  667. package/dist/commands/env.js.map +0 -1
  668. package/dist/commands/identity.d.ts +0 -14
  669. package/dist/commands/identity.d.ts.map +0 -1
  670. package/dist/commands/identity.js +0 -204
  671. package/dist/commands/identity.js.map +0 -1
  672. package/dist/commands/init.d.ts +0 -21
  673. package/dist/commands/init.d.ts.map +0 -1
  674. package/dist/commands/init.js +0 -358
  675. package/dist/commands/init.js.map +0 -1
  676. package/dist/commands/receipts.d.ts +0 -22
  677. package/dist/commands/receipts.d.ts.map +0 -1
  678. package/dist/commands/receipts.js +0 -189
  679. package/dist/commands/receipts.js.map +0 -1
  680. package/dist/commands/register.d.ts +0 -34
  681. package/dist/commands/register.d.ts.map +0 -1
  682. package/dist/commands/register.js +0 -463
  683. package/dist/commands/register.js.map +0 -1
  684. package/dist/commands/rotate.d.ts +0 -13
  685. package/dist/commands/rotate.d.ts.map +0 -1
  686. package/dist/commands/rotate.js +0 -167
  687. package/dist/commands/rotate.js.map +0 -1
  688. package/dist/commands/start.d.ts +0 -5
  689. package/dist/commands/start.d.ts.map +0 -1
  690. package/dist/commands/start.js +0 -129
  691. package/dist/commands/start.js.map +0 -1
  692. package/dist/commands/status.d.ts +0 -9
  693. package/dist/commands/status.d.ts.map +0 -1
  694. package/dist/commands/status.js +0 -199
  695. package/dist/commands/status.js.map +0 -1
  696. package/dist/commands/verify.d.ts +0 -22
  697. package/dist/commands/verify.d.ts.map +0 -1
  698. package/dist/commands/verify.js +0 -491
  699. package/dist/commands/verify.js.map +0 -1
  700. package/dist/components/agent-avatar.d.ts +0 -87
  701. package/dist/components/agent-avatar.d.ts.map +0 -1
  702. package/dist/components/agent-avatar.js +0 -257
  703. package/dist/components/agent-avatar.js.map +0 -1
  704. package/dist/components/agent-card.d.ts +0 -14
  705. package/dist/components/agent-card.d.ts.map +0 -1
  706. package/dist/components/agent-card.js +0 -167
  707. package/dist/components/agent-card.js.map +0 -1
  708. package/dist/components/agent-table.d.ts +0 -31
  709. package/dist/components/agent-table.d.ts.map +0 -1
  710. package/dist/components/agent-table.js +0 -341
  711. package/dist/components/agent-table.js.map +0 -1
  712. package/dist/components/box.d.ts +0 -14
  713. package/dist/components/box.d.ts.map +0 -1
  714. package/dist/components/box.js +0 -222
  715. package/dist/components/box.js.map +0 -1
  716. package/dist/components/claim-experience.d.ts +0 -21
  717. package/dist/components/claim-experience.d.ts.map +0 -1
  718. package/dist/components/claim-experience.js +0 -138
  719. package/dist/components/claim-experience.js.map +0 -1
  720. package/dist/components/index.d.ts +0 -17
  721. package/dist/components/index.d.ts.map +0 -1
  722. package/dist/components/index.js +0 -18
  723. package/dist/components/index.js.map +0 -1
  724. package/dist/components/messages.d.ts +0 -62
  725. package/dist/components/messages.d.ts.map +0 -1
  726. package/dist/components/messages.js +0 -146
  727. package/dist/components/messages.js.map +0 -1
  728. package/dist/components/types.d.ts +0 -51
  729. package/dist/components/types.d.ts.map +0 -1
  730. package/dist/components/types.js +0 -5
  731. package/dist/components/types.js.map +0 -1
  732. package/dist/components/welcome.d.ts +0 -46
  733. package/dist/components/welcome.d.ts.map +0 -1
  734. package/dist/components/welcome.js +0 -182
  735. package/dist/components/welcome.js.map +0 -1
  736. package/dist/dco.d.ts +0 -4
  737. package/dist/dco.d.ts.map +0 -1
  738. package/dist/dco.js +0 -21
  739. package/dist/dco.js.map +0 -1
  740. package/dist/effects/animation-engine.d.ts +0 -173
  741. package/dist/effects/animation-engine.d.ts.map +0 -1
  742. package/dist/effects/animation-engine.js +0 -254
  743. package/dist/effects/animation-engine.js.map +0 -1
  744. package/dist/effects/cli-integration.d.ts +0 -86
  745. package/dist/effects/cli-integration.d.ts.map +0 -1
  746. package/dist/effects/cli-integration.js +0 -310
  747. package/dist/effects/cli-integration.js.map +0 -1
  748. package/dist/effects/config.d.ts +0 -95
  749. package/dist/effects/config.d.ts.map +0 -1
  750. package/dist/effects/config.js +0 -216
  751. package/dist/effects/config.js.map +0 -1
  752. package/dist/effects/effect-runner.d.ts +0 -69
  753. package/dist/effects/effect-runner.d.ts.map +0 -1
  754. package/dist/effects/effect-runner.js +0 -255
  755. package/dist/effects/effect-runner.js.map +0 -1
  756. package/dist/effects/gradient.d.ts +0 -131
  757. package/dist/effects/gradient.d.ts.map +0 -1
  758. package/dist/effects/gradient.js +0 -236
  759. package/dist/effects/gradient.js.map +0 -1
  760. package/dist/effects/implementations/beams.d.ts +0 -80
  761. package/dist/effects/implementations/beams.d.ts.map +0 -1
  762. package/dist/effects/implementations/beams.js +0 -221
  763. package/dist/effects/implementations/beams.js.map +0 -1
  764. package/dist/effects/implementations/blackhole.d.ts +0 -98
  765. package/dist/effects/implementations/blackhole.d.ts.map +0 -1
  766. package/dist/effects/implementations/blackhole.js +0 -421
  767. package/dist/effects/implementations/blackhole.js.map +0 -1
  768. package/dist/effects/implementations/burn.d.ts +0 -74
  769. package/dist/effects/implementations/burn.d.ts.map +0 -1
  770. package/dist/effects/implementations/burn.js +0 -234
  771. package/dist/effects/implementations/burn.js.map +0 -1
  772. package/dist/effects/implementations/decrypt.d.ts +0 -115
  773. package/dist/effects/implementations/decrypt.d.ts.map +0 -1
  774. package/dist/effects/implementations/decrypt.js +0 -394
  775. package/dist/effects/implementations/decrypt.js.map +0 -1
  776. package/dist/effects/implementations/waves.d.ts +0 -78
  777. package/dist/effects/implementations/waves.d.ts.map +0 -1
  778. package/dist/effects/implementations/waves.js +0 -278
  779. package/dist/effects/implementations/waves.js.map +0 -1
  780. package/dist/effects/index.d.ts +0 -34
  781. package/dist/effects/index.d.ts.map +0 -1
  782. package/dist/effects/index.js +0 -114
  783. package/dist/effects/index.js.map +0 -1
  784. package/dist/effects/motion-engine.d.ts +0 -168
  785. package/dist/effects/motion-engine.d.ts.map +0 -1
  786. package/dist/effects/motion-engine.js +0 -353
  787. package/dist/effects/motion-engine.js.map +0 -1
  788. package/dist/effects/safe-executor.d.ts +0 -55
  789. package/dist/effects/safe-executor.d.ts.map +0 -1
  790. package/dist/effects/safe-executor.js +0 -210
  791. package/dist/effects/safe-executor.js.map +0 -1
  792. package/dist/effects/types.d.ts +0 -199
  793. package/dist/effects/types.d.ts.map +0 -1
  794. package/dist/effects/types.js +0 -80
  795. package/dist/effects/types.js.map +0 -1
  796. package/dist/effects/utils.d.ts +0 -104
  797. package/dist/effects/utils.d.ts.map +0 -1
  798. package/dist/effects/utils.js +0 -280
  799. package/dist/effects/utils.js.map +0 -1
  800. package/dist/index.d.ts +0 -4
  801. package/dist/index.js +0 -213
  802. package/dist/utils/api-response.d.ts +0 -96
  803. package/dist/utils/api-response.d.ts.map +0 -1
  804. package/dist/utils/api-response.js +0 -86
  805. package/dist/utils/api-response.js.map +0 -1
  806. package/dist/utils/checkpoint-api.d.ts +0 -86
  807. package/dist/utils/checkpoint-api.d.ts.map +0 -1
  808. package/dist/utils/checkpoint-api.js +0 -196
  809. package/dist/utils/checkpoint-api.js.map +0 -1
  810. package/dist/utils/checkpoint-env.d.ts +0 -23
  811. package/dist/utils/checkpoint-env.d.ts.map +0 -1
  812. package/dist/utils/checkpoint-env.js +0 -59
  813. package/dist/utils/checkpoint-env.js.map +0 -1
  814. package/dist/utils/checkpoint-scaffold.d.ts +0 -61
  815. package/dist/utils/checkpoint-scaffold.d.ts.map +0 -1
  816. package/dist/utils/checkpoint-scaffold.js +0 -268
  817. package/dist/utils/checkpoint-scaffold.js.map +0 -1
  818. package/dist/utils/cli-kit/browser.d.ts +0 -24
  819. package/dist/utils/cli-kit/browser.d.ts.map +0 -1
  820. package/dist/utils/cli-kit/browser.js +0 -58
  821. package/dist/utils/cli-kit/browser.js.map +0 -1
  822. package/dist/utils/cli-kit/claim-polling.d.ts +0 -18
  823. package/dist/utils/cli-kit/claim-polling.d.ts.map +0 -1
  824. package/dist/utils/cli-kit/claim-polling.js +0 -90
  825. package/dist/utils/cli-kit/claim-polling.js.map +0 -1
  826. package/dist/utils/cli-kit/diagnostics.d.ts +0 -9
  827. package/dist/utils/cli-kit/diagnostics.d.ts.map +0 -1
  828. package/dist/utils/cli-kit/diagnostics.js +0 -11
  829. package/dist/utils/cli-kit/diagnostics.js.map +0 -1
  830. package/dist/utils/cli-kit/fs-safe.d.ts +0 -14
  831. package/dist/utils/cli-kit/fs-safe.d.ts.map +0 -1
  832. package/dist/utils/cli-kit/fs-safe.js +0 -20
  833. package/dist/utils/cli-kit/fs-safe.js.map +0 -1
  834. package/dist/utils/cli-kit/index.d.ts +0 -15
  835. package/dist/utils/cli-kit/index.d.ts.map +0 -1
  836. package/dist/utils/cli-kit/index.js +0 -10
  837. package/dist/utils/cli-kit/index.js.map +0 -1
  838. package/dist/utils/cli-kit/json-file.d.ts +0 -21
  839. package/dist/utils/cli-kit/json-file.d.ts.map +0 -1
  840. package/dist/utils/cli-kit/json-file.js +0 -51
  841. package/dist/utils/cli-kit/json-file.js.map +0 -1
  842. package/dist/utils/cli-kit/marker-block.d.ts +0 -26
  843. package/dist/utils/cli-kit/marker-block.d.ts.map +0 -1
  844. package/dist/utils/cli-kit/marker-block.js +0 -61
  845. package/dist/utils/cli-kit/marker-block.js.map +0 -1
  846. package/dist/utils/cli-kit/paths.d.ts +0 -15
  847. package/dist/utils/cli-kit/paths.d.ts.map +0 -1
  848. package/dist/utils/cli-kit/paths.js +0 -21
  849. package/dist/utils/cli-kit/paths.js.map +0 -1
  850. package/dist/utils/cli-kit/secure-storage.d.ts +0 -14
  851. package/dist/utils/cli-kit/secure-storage.d.ts.map +0 -1
  852. package/dist/utils/cli-kit/secure-storage.js +0 -20
  853. package/dist/utils/cli-kit/secure-storage.js.map +0 -1
  854. package/dist/utils/cli-kit/step-report.d.ts +0 -16
  855. package/dist/utils/cli-kit/step-report.d.ts.map +0 -1
  856. package/dist/utils/cli-kit/step-report.js +0 -36
  857. package/dist/utils/cli-kit/step-report.js.map +0 -1
  858. package/dist/utils/dco/agent-metadata.d.ts +0 -24
  859. package/dist/utils/dco/agent-metadata.d.ts.map +0 -1
  860. package/dist/utils/dco/agent-metadata.js +0 -46
  861. package/dist/utils/dco/agent-metadata.js.map +0 -1
  862. package/dist/utils/dco/claude-config.d.ts +0 -55
  863. package/dist/utils/dco/claude-config.d.ts.map +0 -1
  864. package/dist/utils/dco/claude-config.js +0 -66
  865. package/dist/utils/dco/claude-config.js.map +0 -1
  866. package/dist/utils/dco/dispatch.d.ts +0 -59
  867. package/dist/utils/dco/dispatch.d.ts.map +0 -1
  868. package/dist/utils/dco/dispatch.js +0 -332
  869. package/dist/utils/dco/dispatch.js.map +0 -1
  870. package/dist/utils/dco/git-config.d.ts +0 -47
  871. package/dist/utils/dco/git-config.d.ts.map +0 -1
  872. package/dist/utils/dco/git-config.js +0 -161
  873. package/dist/utils/dco/git-config.js.map +0 -1
  874. package/dist/utils/dco/github.d.ts +0 -57
  875. package/dist/utils/dco/github.d.ts.map +0 -1
  876. package/dist/utils/dco/github.js +0 -165
  877. package/dist/utils/dco/github.js.map +0 -1
  878. package/dist/utils/dco/paths.d.ts +0 -9
  879. package/dist/utils/dco/paths.d.ts.map +0 -1
  880. package/dist/utils/dco/paths.js +0 -18
  881. package/dist/utils/dco/paths.js.map +0 -1
  882. package/dist/utils/dco/render.d.ts +0 -4
  883. package/dist/utils/dco/render.d.ts.map +0 -1
  884. package/dist/utils/dco/render.js +0 -35
  885. package/dist/utils/dco/render.js.map +0 -1
  886. package/dist/utils/dco/resolve-agent.d.ts +0 -54
  887. package/dist/utils/dco/resolve-agent.d.ts.map +0 -1
  888. package/dist/utils/dco/resolve-agent.js +0 -164
  889. package/dist/utils/dco/resolve-agent.js.map +0 -1
  890. package/dist/utils/dco/setup.d.ts +0 -50
  891. package/dist/utils/dco/setup.d.ts.map +0 -1
  892. package/dist/utils/dco/setup.js +0 -842
  893. package/dist/utils/dco/setup.js.map +0 -1
  894. package/dist/utils/dco/ssh-key.d.ts +0 -56
  895. package/dist/utils/dco/ssh-key.d.ts.map +0 -1
  896. package/dist/utils/dco/ssh-key.js +0 -197
  897. package/dist/utils/dco/ssh-key.js.map +0 -1
  898. package/dist/utils/dco/status.d.ts +0 -12
  899. package/dist/utils/dco/status.d.ts.map +0 -1
  900. package/dist/utils/dco/status.js +0 -238
  901. package/dist/utils/dco/status.js.map +0 -1
  902. package/dist/utils/dco/verify.d.ts +0 -114
  903. package/dist/utils/dco/verify.d.ts.map +0 -1
  904. package/dist/utils/dco/verify.js +0 -383
  905. package/dist/utils/dco/verify.js.map +0 -1
  906. package/dist/utils/env-manager.d.ts +0 -122
  907. package/dist/utils/env-manager.d.ts.map +0 -1
  908. package/dist/utils/env-manager.js +0 -514
  909. package/dist/utils/env-manager.js.map +0 -1
  910. package/dist/utils/gitignore.d.ts +0 -17
  911. package/dist/utils/gitignore.d.ts.map +0 -1
  912. package/dist/utils/gitignore.js +0 -40
  913. package/dist/utils/gitignore.js.map +0 -1
  914. package/dist/utils/identity-heal.d.ts +0 -16
  915. package/dist/utils/identity-heal.d.ts.map +0 -1
  916. package/dist/utils/identity-heal.js +0 -37
  917. package/dist/utils/identity-heal.js.map +0 -1
  918. package/dist/utils/identity-manager.d.ts +0 -41
  919. package/dist/utils/identity-manager.d.ts.map +0 -1
  920. package/dist/utils/identity-manager.js +0 -159
  921. package/dist/utils/identity-manager.js.map +0 -1
  922. package/dist/utils/kta-api.d.ts +0 -103
  923. package/dist/utils/kta-api.d.ts.map +0 -1
  924. package/dist/utils/kta-api.js +0 -149
  925. package/dist/utils/kta-api.js.map +0 -1
  926. package/dist/utils/platform-detector.d.ts +0 -54
  927. package/dist/utils/platform-detector.d.ts.map +0 -1
  928. package/dist/utils/platform-detector.js +0 -197
  929. package/dist/utils/platform-detector.js.map +0 -1
  930. package/dist/utils/poll.d.ts +0 -50
  931. package/dist/utils/poll.d.ts.map +0 -1
  932. package/dist/utils/poll.js +0 -73
  933. package/dist/utils/poll.js.map +0 -1
  934. package/dist/utils/prompts.d.ts +0 -24
  935. package/dist/utils/prompts.d.ts.map +0 -1
  936. package/dist/utils/prompts.js +0 -160
  937. package/dist/utils/prompts.js.map +0 -1
  938. package/dist/utils/screen-manager.d.ts +0 -10
  939. package/dist/utils/screen-manager.d.ts.map +0 -1
  940. package/dist/utils/screen-manager.js +0 -54
  941. package/dist/utils/screen-manager.js.map +0 -1
  942. package/dist/utils/time.d.ts +0 -19
  943. package/dist/utils/time.d.ts.map +0 -1
  944. package/dist/utils/time.js +0 -30
  945. package/dist/utils/time.js.map +0 -1
@@ -0,0 +1,4323 @@
1
+ import { z } from 'zod';
2
+ /** Saved candidate binding. Only an authenticated task.start readback matching
3
+ * the whole admission can establish verified_standing provenance. */
4
+ export declare const GovernedExecutionSchema: z.ZodEffects<z.ZodObject<{
5
+ schemaVersion: z.ZodLiteral<1>;
6
+ admissionRef: z.ZodString;
7
+ admission: z.ZodEffects<z.ZodObject<Omit<{
8
+ workerDid: z.ZodString;
9
+ repository: z.ZodString;
10
+ baseSha: z.ZodString;
11
+ attemptNumber: z.ZodNumber;
12
+ capabilities: z.ZodEffects<z.ZodArray<z.ZodEnum<["task.execute", "model.invoke", "github.branch.write", "github.pull_request.draft"]>, "many">, ("task.execute" | "model.invoke" | "github.branch.write" | "github.pull_request.draft")[], ("task.execute" | "model.invoke" | "github.branch.write" | "github.pull_request.draft")[]>;
13
+ limits: z.ZodObject<{
14
+ maxRuntimeSeconds: z.ZodNumber;
15
+ maxCostMicrousd: z.ZodNumber;
16
+ maxOperations: z.ZodNumber;
17
+ }, "strict", z.ZodTypeAny, {
18
+ maxRuntimeSeconds: number;
19
+ maxOperations: number;
20
+ maxCostMicrousd: number;
21
+ }, {
22
+ maxRuntimeSeconds: number;
23
+ maxOperations: number;
24
+ maxCostMicrousd: number;
25
+ }>;
26
+ modelPolicy: z.ZodOptional<z.ZodObject<{
27
+ provider: z.ZodLiteral<"anthropic">;
28
+ models: z.ZodEffects<z.ZodArray<z.ZodString, "many">, string[], string[]>;
29
+ maxOutputTokens: z.ZodNumber;
30
+ maxRequestBytes: z.ZodNumber;
31
+ reservedCostMicrousd: z.ZodNumber;
32
+ }, "strict", z.ZodTypeAny, {
33
+ provider: "anthropic";
34
+ models: string[];
35
+ maxOutputTokens: number;
36
+ maxRequestBytes: number;
37
+ reservedCostMicrousd: number;
38
+ }, {
39
+ provider: "anthropic";
40
+ models: string[];
41
+ maxOutputTokens: number;
42
+ maxRequestBytes: number;
43
+ reservedCostMicrousd: number;
44
+ }>>;
45
+ sourceOperationId: z.ZodString;
46
+ taskId: z.ZodString;
47
+ sourceRevision: z.ZodNumber;
48
+ ownerEpoch: z.ZodNumber;
49
+ specRevision: z.ZodNumber;
50
+ manifestDigest: z.ZodString;
51
+ executionOperationId: z.ZodString;
52
+ }, "workerDid"> & {
53
+ schema: z.ZodLiteral<"kya.task.admission.v1">;
54
+ admissionId: z.ZodString;
55
+ organizationId: z.ZodString;
56
+ projectId: z.ZodString;
57
+ installationId: z.ZodString;
58
+ leadDid: z.ZodString;
59
+ holderDid: z.ZodString;
60
+ branch: z.ZodString;
61
+ notBefore: z.ZodString;
62
+ expiresAt: z.ZodString;
63
+ policyProvenance: z.ZodLiteral<"administrator_registered">;
64
+ requiresOnlineActionGate: z.ZodLiteral<true>;
65
+ credentialExport: z.ZodLiteral<false>;
66
+ }, "strict", z.ZodTypeAny, {
67
+ projectId: string;
68
+ organizationId: string;
69
+ capabilities: ("task.execute" | "model.invoke" | "github.branch.write" | "github.pull_request.draft")[];
70
+ expiresAt: string;
71
+ taskId: string;
72
+ notBefore: string;
73
+ specRevision: number;
74
+ manifestDigest: string;
75
+ sourceRevision: number;
76
+ repository: string;
77
+ attemptNumber: number;
78
+ ownerEpoch: number;
79
+ admissionId: string;
80
+ schema: "kya.task.admission.v1";
81
+ installationId: string;
82
+ baseSha: string;
83
+ sourceOperationId: string;
84
+ executionOperationId: string;
85
+ branch: string;
86
+ limits: {
87
+ maxRuntimeSeconds: number;
88
+ maxOperations: number;
89
+ maxCostMicrousd: number;
90
+ };
91
+ leadDid: string;
92
+ holderDid: string;
93
+ policyProvenance: "administrator_registered";
94
+ requiresOnlineActionGate: true;
95
+ credentialExport: false;
96
+ modelPolicy?: {
97
+ provider: "anthropic";
98
+ models: string[];
99
+ maxOutputTokens: number;
100
+ maxRequestBytes: number;
101
+ reservedCostMicrousd: number;
102
+ } | undefined;
103
+ }, {
104
+ projectId: string;
105
+ organizationId: string;
106
+ capabilities: ("task.execute" | "model.invoke" | "github.branch.write" | "github.pull_request.draft")[];
107
+ expiresAt: string;
108
+ taskId: string;
109
+ notBefore: string;
110
+ specRevision: number;
111
+ manifestDigest: string;
112
+ sourceRevision: number;
113
+ repository: string;
114
+ attemptNumber: number;
115
+ ownerEpoch: number;
116
+ admissionId: string;
117
+ schema: "kya.task.admission.v1";
118
+ installationId: string;
119
+ baseSha: string;
120
+ sourceOperationId: string;
121
+ executionOperationId: string;
122
+ branch: string;
123
+ limits: {
124
+ maxRuntimeSeconds: number;
125
+ maxOperations: number;
126
+ maxCostMicrousd: number;
127
+ };
128
+ leadDid: string;
129
+ holderDid: string;
130
+ policyProvenance: "administrator_registered";
131
+ requiresOnlineActionGate: true;
132
+ credentialExport: false;
133
+ modelPolicy?: {
134
+ provider: "anthropic";
135
+ models: string[];
136
+ maxOutputTokens: number;
137
+ maxRequestBytes: number;
138
+ reservedCostMicrousd: number;
139
+ } | undefined;
140
+ }>, {
141
+ projectId: string;
142
+ organizationId: string;
143
+ capabilities: ("task.execute" | "model.invoke" | "github.branch.write" | "github.pull_request.draft")[];
144
+ expiresAt: string;
145
+ taskId: string;
146
+ notBefore: string;
147
+ specRevision: number;
148
+ manifestDigest: string;
149
+ sourceRevision: number;
150
+ repository: string;
151
+ attemptNumber: number;
152
+ ownerEpoch: number;
153
+ admissionId: string;
154
+ schema: "kya.task.admission.v1";
155
+ installationId: string;
156
+ baseSha: string;
157
+ sourceOperationId: string;
158
+ executionOperationId: string;
159
+ branch: string;
160
+ limits: {
161
+ maxRuntimeSeconds: number;
162
+ maxOperations: number;
163
+ maxCostMicrousd: number;
164
+ };
165
+ leadDid: string;
166
+ holderDid: string;
167
+ policyProvenance: "administrator_registered";
168
+ requiresOnlineActionGate: true;
169
+ credentialExport: false;
170
+ modelPolicy?: {
171
+ provider: "anthropic";
172
+ models: string[];
173
+ maxOutputTokens: number;
174
+ maxRequestBytes: number;
175
+ reservedCostMicrousd: number;
176
+ } | undefined;
177
+ }, {
178
+ projectId: string;
179
+ organizationId: string;
180
+ capabilities: ("task.execute" | "model.invoke" | "github.branch.write" | "github.pull_request.draft")[];
181
+ expiresAt: string;
182
+ taskId: string;
183
+ notBefore: string;
184
+ specRevision: number;
185
+ manifestDigest: string;
186
+ sourceRevision: number;
187
+ repository: string;
188
+ attemptNumber: number;
189
+ ownerEpoch: number;
190
+ admissionId: string;
191
+ schema: "kya.task.admission.v1";
192
+ installationId: string;
193
+ baseSha: string;
194
+ sourceOperationId: string;
195
+ executionOperationId: string;
196
+ branch: string;
197
+ limits: {
198
+ maxRuntimeSeconds: number;
199
+ maxOperations: number;
200
+ maxCostMicrousd: number;
201
+ };
202
+ leadDid: string;
203
+ holderDid: string;
204
+ policyProvenance: "administrator_registered";
205
+ requiresOnlineActionGate: true;
206
+ credentialExport: false;
207
+ modelPolicy?: {
208
+ provider: "anthropic";
209
+ models: string[];
210
+ maxOutputTokens: number;
211
+ maxRequestBytes: number;
212
+ reservedCostMicrousd: number;
213
+ } | undefined;
214
+ }>;
215
+ config: z.ZodObject<{
216
+ origin: z.ZodString;
217
+ organizationId: z.ZodString;
218
+ projectId: z.ZodString;
219
+ destinationDid: z.ZodString;
220
+ ownerEpoch: z.ZodNumber;
221
+ acceptedProviders: z.ZodOptional<z.ZodArray<z.ZodEnum<["linear", "github", "discord", "a2a", "didcomm"]>, "many">>;
222
+ }, "strict", z.ZodTypeAny, {
223
+ projectId: string;
224
+ organizationId: string;
225
+ origin: string;
226
+ ownerEpoch: number;
227
+ destinationDid: string;
228
+ acceptedProviders?: ("discord" | "linear" | "github" | "didcomm" | "a2a")[] | undefined;
229
+ }, {
230
+ projectId: string;
231
+ organizationId: string;
232
+ origin: string;
233
+ ownerEpoch: number;
234
+ destinationDid: string;
235
+ acceptedProviders?: ("discord" | "linear" | "github" | "didcomm" | "a2a")[] | undefined;
236
+ }>;
237
+ workerProfile: z.ZodString;
238
+ startOperationId: z.ZodString;
239
+ review: z.ZodEffects<z.ZodObject<{
240
+ schemaVersion: z.ZodLiteral<1>;
241
+ manifest: z.ZodEffects<z.ZodObject<{
242
+ schemaVersion: z.ZodLiteral<1>;
243
+ taskId: z.ZodString;
244
+ revision: z.ZodNumber;
245
+ objective: z.ZodString;
246
+ repository: z.ZodObject<{
247
+ repositoryId: z.ZodString;
248
+ path: z.ZodString;
249
+ baseCommit: z.ZodString;
250
+ }, "strict", z.ZodTypeAny, {
251
+ path: string;
252
+ repositoryId: string;
253
+ baseCommit: string;
254
+ }, {
255
+ path: string;
256
+ repositoryId: string;
257
+ baseCommit: string;
258
+ }>;
259
+ source: z.ZodOptional<z.ZodObject<{
260
+ sourceId: z.ZodString;
261
+ sourceRevision: z.ZodNumber;
262
+ inputDigest: z.ZodString;
263
+ operationId: z.ZodString;
264
+ }, "strict", z.ZodTypeAny, {
265
+ sourceId: string;
266
+ sourceRevision: number;
267
+ inputDigest: string;
268
+ operationId: string;
269
+ }, {
270
+ sourceId: string;
271
+ sourceRevision: number;
272
+ inputDigest: string;
273
+ operationId: string;
274
+ }>>;
275
+ dependencyBinding: z.ZodOptional<z.ZodString>;
276
+ acceptanceCriteria: z.ZodArray<z.ZodObject<{
277
+ id: z.ZodString;
278
+ text: z.ZodString;
279
+ }, "strict", z.ZodTypeAny, {
280
+ id: string;
281
+ text: string;
282
+ }, {
283
+ id: string;
284
+ text: string;
285
+ }>, "many">;
286
+ routing: z.ZodDiscriminatedUnion<"mode", [z.ZodObject<{
287
+ mode: z.ZodLiteral<"direct">;
288
+ leadId: z.ZodString;
289
+ }, "strict", z.ZodTypeAny, {
290
+ mode: "direct";
291
+ leadId: string;
292
+ }, {
293
+ mode: "direct";
294
+ leadId: string;
295
+ }>, z.ZodObject<{
296
+ mode: z.ZodLiteral<"pool">;
297
+ poolId: z.ZodString;
298
+ }, "strict", z.ZodTypeAny, {
299
+ mode: "pool";
300
+ poolId: string;
301
+ }, {
302
+ mode: "pool";
303
+ poolId: string;
304
+ }>]>;
305
+ harness: z.ZodString;
306
+ model: z.ZodOptional<z.ZodNullable<z.ZodString>>;
307
+ maxAttempts: z.ZodNumber;
308
+ }, "strict", z.ZodTypeAny, {
309
+ taskId: string;
310
+ harness: string;
311
+ schemaVersion: 1;
312
+ objective: string;
313
+ acceptanceCriteria: {
314
+ id: string;
315
+ text: string;
316
+ }[];
317
+ revision: number;
318
+ repository: {
319
+ path: string;
320
+ repositoryId: string;
321
+ baseCommit: string;
322
+ };
323
+ routing: {
324
+ mode: "direct";
325
+ leadId: string;
326
+ } | {
327
+ mode: "pool";
328
+ poolId: string;
329
+ };
330
+ maxAttempts: number;
331
+ model?: string | null | undefined;
332
+ source?: {
333
+ sourceId: string;
334
+ sourceRevision: number;
335
+ inputDigest: string;
336
+ operationId: string;
337
+ } | undefined;
338
+ dependencyBinding?: string | undefined;
339
+ }, {
340
+ taskId: string;
341
+ harness: string;
342
+ schemaVersion: 1;
343
+ objective: string;
344
+ acceptanceCriteria: {
345
+ id: string;
346
+ text: string;
347
+ }[];
348
+ revision: number;
349
+ repository: {
350
+ path: string;
351
+ repositoryId: string;
352
+ baseCommit: string;
353
+ };
354
+ routing: {
355
+ mode: "direct";
356
+ leadId: string;
357
+ } | {
358
+ mode: "pool";
359
+ poolId: string;
360
+ };
361
+ maxAttempts: number;
362
+ model?: string | null | undefined;
363
+ source?: {
364
+ sourceId: string;
365
+ sourceRevision: number;
366
+ inputDigest: string;
367
+ operationId: string;
368
+ } | undefined;
369
+ dependencyBinding?: string | undefined;
370
+ }>, {
371
+ taskId: string;
372
+ harness: string;
373
+ schemaVersion: 1;
374
+ objective: string;
375
+ acceptanceCriteria: {
376
+ id: string;
377
+ text: string;
378
+ }[];
379
+ revision: number;
380
+ repository: {
381
+ path: string;
382
+ repositoryId: string;
383
+ baseCommit: string;
384
+ };
385
+ routing: {
386
+ mode: "direct";
387
+ leadId: string;
388
+ } | {
389
+ mode: "pool";
390
+ poolId: string;
391
+ };
392
+ maxAttempts: number;
393
+ model?: string | null | undefined;
394
+ source?: {
395
+ sourceId: string;
396
+ sourceRevision: number;
397
+ inputDigest: string;
398
+ operationId: string;
399
+ } | undefined;
400
+ dependencyBinding?: string | undefined;
401
+ }, {
402
+ taskId: string;
403
+ harness: string;
404
+ schemaVersion: 1;
405
+ objective: string;
406
+ acceptanceCriteria: {
407
+ id: string;
408
+ text: string;
409
+ }[];
410
+ revision: number;
411
+ repository: {
412
+ path: string;
413
+ repositoryId: string;
414
+ baseCommit: string;
415
+ };
416
+ routing: {
417
+ mode: "direct";
418
+ leadId: string;
419
+ } | {
420
+ mode: "pool";
421
+ poolId: string;
422
+ };
423
+ maxAttempts: number;
424
+ model?: string | null | undefined;
425
+ source?: {
426
+ sourceId: string;
427
+ sourceRevision: number;
428
+ inputDigest: string;
429
+ operationId: string;
430
+ } | undefined;
431
+ dependencyBinding?: string | undefined;
432
+ }>;
433
+ manifestDigest: z.ZodString;
434
+ runnerId: z.ZodString;
435
+ expiresAtMs: z.ZodNumber;
436
+ invocation: z.ZodObject<{
437
+ command: z.ZodString;
438
+ executableDigest: z.ZodString;
439
+ args: z.ZodArray<z.ZodString, "many">;
440
+ workspace: z.ZodString;
441
+ stdinDigest: z.ZodString;
442
+ timeoutMs: z.ZodNumber;
443
+ providerDestinations: z.ZodArray<z.ZodString, "many">;
444
+ providerDestinationEnforcement: z.ZodLiteral<"expected_only">;
445
+ configuration: z.ZodUnknown;
446
+ transport: z.ZodEnum<["codex_exec", "codex_app_server"]>;
447
+ nativeBinding: z.ZodOptional<z.ZodUnknown>;
448
+ }, "strict", z.ZodTypeAny, {
449
+ command: string;
450
+ args: string[];
451
+ executableDigest: string;
452
+ workspace: string;
453
+ stdinDigest: string;
454
+ timeoutMs: number;
455
+ providerDestinations: string[];
456
+ providerDestinationEnforcement: "expected_only";
457
+ transport: "codex_exec" | "codex_app_server";
458
+ configuration?: unknown;
459
+ nativeBinding?: unknown;
460
+ }, {
461
+ command: string;
462
+ args: string[];
463
+ executableDigest: string;
464
+ workspace: string;
465
+ stdinDigest: string;
466
+ timeoutMs: number;
467
+ providerDestinations: string[];
468
+ providerDestinationEnforcement: "expected_only";
469
+ transport: "codex_exec" | "codex_app_server";
470
+ configuration?: unknown;
471
+ nativeBinding?: unknown;
472
+ }>;
473
+ permittedOperations: z.ZodArray<z.ZodString, "many">;
474
+ prohibitedExternalOperations: z.ZodArray<z.ZodString, "many">;
475
+ policy: z.ZodObject<{
476
+ persistHistory: z.ZodDefault<z.ZodBoolean>;
477
+ nativeResume: z.ZodOptional<z.ZodObject<{
478
+ attemptId: z.ZodString;
479
+ priorSegmentId: z.ZodString;
480
+ threadId: z.ZodString;
481
+ turnId: z.ZodString;
482
+ usageBaseline: z.ZodObject<{
483
+ inputTokens: z.ZodNumber;
484
+ outputTokens: z.ZodNumber;
485
+ cachedInputTokens: z.ZodNumber;
486
+ cacheWriteInputTokens: z.ZodNullable<z.ZodNumber>;
487
+ }, "strict", z.ZodTypeAny, {
488
+ inputTokens: number;
489
+ outputTokens: number;
490
+ cachedInputTokens: number;
491
+ cacheWriteInputTokens: number | null;
492
+ }, {
493
+ inputTokens: number;
494
+ outputTokens: number;
495
+ cachedInputTokens: number;
496
+ cacheWriteInputTokens: number | null;
497
+ }>;
498
+ workspaceSnapshotDigest: z.ZodString;
499
+ }, "strict", z.ZodTypeAny, {
500
+ attemptId: string;
501
+ priorSegmentId: string;
502
+ threadId: string;
503
+ turnId: string;
504
+ usageBaseline: {
505
+ inputTokens: number;
506
+ outputTokens: number;
507
+ cachedInputTokens: number;
508
+ cacheWriteInputTokens: number | null;
509
+ };
510
+ workspaceSnapshotDigest: string;
511
+ }, {
512
+ attemptId: string;
513
+ priorSegmentId: string;
514
+ threadId: string;
515
+ turnId: string;
516
+ usageBaseline: {
517
+ inputTokens: number;
518
+ outputTokens: number;
519
+ cachedInputTokens: number;
520
+ cacheWriteInputTokens: number | null;
521
+ };
522
+ workspaceSnapshotDigest: string;
523
+ }>>;
524
+ nativeFork: z.ZodOptional<z.ZodObject<{
525
+ parentTaskId: z.ZodString;
526
+ parentAttemptId: z.ZodString;
527
+ parentSegmentId: z.ZodString;
528
+ parentManifestDigest: z.ZodString;
529
+ parentThreadId: z.ZodString;
530
+ parentTurnId: z.ZodString;
531
+ workspaceSnapshotDigest: z.ZodString;
532
+ }, "strict", z.ZodTypeAny, {
533
+ parentTaskId: string;
534
+ workspaceSnapshotDigest: string;
535
+ parentAttemptId: string;
536
+ parentSegmentId: string;
537
+ parentManifestDigest: string;
538
+ parentThreadId: string;
539
+ parentTurnId: string;
540
+ }, {
541
+ parentTaskId: string;
542
+ workspaceSnapshotDigest: string;
543
+ parentAttemptId: string;
544
+ parentSegmentId: string;
545
+ parentManifestDigest: string;
546
+ parentThreadId: string;
547
+ parentTurnId: string;
548
+ }>>;
549
+ budget: z.ZodNullable<z.ZodObject<{
550
+ budgetId: z.ZodString;
551
+ reservationMicroUsd: z.ZodNumber;
552
+ pricing: z.ZodNullable<z.ZodObject<{
553
+ schemaVersion: z.ZodLiteral<1>;
554
+ currency: z.ZodLiteral<"USD">;
555
+ provider: z.ZodString;
556
+ model: z.ZodString;
557
+ version: z.ZodString;
558
+ sourceUrl: z.ZodEffects<z.ZodString, string, string>;
559
+ inputAccounting: z.ZodEnum<["excludes_cache", "includes_read_only", "includes_read_and_write"]>;
560
+ rates: z.ZodObject<{
561
+ input: z.ZodNullable<z.ZodNumber>;
562
+ output: z.ZodNullable<z.ZodNumber>;
563
+ cache_read: z.ZodNullable<z.ZodNumber>;
564
+ cache_write_short: z.ZodNullable<z.ZodNumber>;
565
+ cache_write_long: z.ZodNullable<z.ZodNumber>;
566
+ cache_write_unspecified: z.ZodNullable<z.ZodNumber>;
567
+ cache_storage: z.ZodNullable<z.ZodNumber>;
568
+ }, "strict", z.ZodTypeAny, {
569
+ input: number | null;
570
+ output: number | null;
571
+ cache_read: number | null;
572
+ cache_write_short: number | null;
573
+ cache_write_long: number | null;
574
+ cache_write_unspecified: number | null;
575
+ cache_storage: number | null;
576
+ }, {
577
+ input: number | null;
578
+ output: number | null;
579
+ cache_read: number | null;
580
+ cache_write_short: number | null;
581
+ cache_write_long: number | null;
582
+ cache_write_unspecified: number | null;
583
+ cache_storage: number | null;
584
+ }>;
585
+ }, "strict", z.ZodTypeAny, {
586
+ version: string;
587
+ provider: string;
588
+ model: string;
589
+ schemaVersion: 1;
590
+ currency: "USD";
591
+ sourceUrl: string;
592
+ inputAccounting: "excludes_cache" | "includes_read_only" | "includes_read_and_write";
593
+ rates: {
594
+ input: number | null;
595
+ output: number | null;
596
+ cache_read: number | null;
597
+ cache_write_short: number | null;
598
+ cache_write_long: number | null;
599
+ cache_write_unspecified: number | null;
600
+ cache_storage: number | null;
601
+ };
602
+ }, {
603
+ version: string;
604
+ provider: string;
605
+ model: string;
606
+ schemaVersion: 1;
607
+ currency: "USD";
608
+ sourceUrl: string;
609
+ inputAccounting: "excludes_cache" | "includes_read_only" | "includes_read_and_write";
610
+ rates: {
611
+ input: number | null;
612
+ output: number | null;
613
+ cache_read: number | null;
614
+ cache_write_short: number | null;
615
+ cache_write_long: number | null;
616
+ cache_write_unspecified: number | null;
617
+ cache_storage: number | null;
618
+ };
619
+ }>>;
620
+ }, "strict", z.ZodTypeAny, {
621
+ pricing: {
622
+ version: string;
623
+ provider: string;
624
+ model: string;
625
+ schemaVersion: 1;
626
+ currency: "USD";
627
+ sourceUrl: string;
628
+ inputAccounting: "excludes_cache" | "includes_read_only" | "includes_read_and_write";
629
+ rates: {
630
+ input: number | null;
631
+ output: number | null;
632
+ cache_read: number | null;
633
+ cache_write_short: number | null;
634
+ cache_write_long: number | null;
635
+ cache_write_unspecified: number | null;
636
+ cache_storage: number | null;
637
+ };
638
+ } | null;
639
+ budgetId: string;
640
+ reservationMicroUsd: number;
641
+ }, {
642
+ pricing: {
643
+ version: string;
644
+ provider: string;
645
+ model: string;
646
+ schemaVersion: 1;
647
+ currency: "USD";
648
+ sourceUrl: string;
649
+ inputAccounting: "excludes_cache" | "includes_read_only" | "includes_read_and_write";
650
+ rates: {
651
+ input: number | null;
652
+ output: number | null;
653
+ cache_read: number | null;
654
+ cache_write_short: number | null;
655
+ cache_write_long: number | null;
656
+ cache_write_unspecified: number | null;
657
+ cache_storage: number | null;
658
+ };
659
+ } | null;
660
+ budgetId: string;
661
+ reservationMicroUsd: number;
662
+ }>>;
663
+ requiresIsolatedSecrets: z.ZodDefault<z.ZodBoolean>;
664
+ requiresManagedContainment: z.ZodDefault<z.ZodBoolean>;
665
+ requiresProviderEgressEnforcement: z.ZodDefault<z.ZodBoolean>;
666
+ requiresBrokeredExternalActions: z.ZodDefault<z.ZodBoolean>;
667
+ }, "strict", z.ZodTypeAny, {
668
+ budget: {
669
+ pricing: {
670
+ version: string;
671
+ provider: string;
672
+ model: string;
673
+ schemaVersion: 1;
674
+ currency: "USD";
675
+ sourceUrl: string;
676
+ inputAccounting: "excludes_cache" | "includes_read_only" | "includes_read_and_write";
677
+ rates: {
678
+ input: number | null;
679
+ output: number | null;
680
+ cache_read: number | null;
681
+ cache_write_short: number | null;
682
+ cache_write_long: number | null;
683
+ cache_write_unspecified: number | null;
684
+ cache_storage: number | null;
685
+ };
686
+ } | null;
687
+ budgetId: string;
688
+ reservationMicroUsd: number;
689
+ } | null;
690
+ persistHistory: boolean;
691
+ requiresIsolatedSecrets: boolean;
692
+ requiresManagedContainment: boolean;
693
+ requiresProviderEgressEnforcement: boolean;
694
+ requiresBrokeredExternalActions: boolean;
695
+ nativeResume?: {
696
+ attemptId: string;
697
+ priorSegmentId: string;
698
+ threadId: string;
699
+ turnId: string;
700
+ usageBaseline: {
701
+ inputTokens: number;
702
+ outputTokens: number;
703
+ cachedInputTokens: number;
704
+ cacheWriteInputTokens: number | null;
705
+ };
706
+ workspaceSnapshotDigest: string;
707
+ } | undefined;
708
+ nativeFork?: {
709
+ parentTaskId: string;
710
+ workspaceSnapshotDigest: string;
711
+ parentAttemptId: string;
712
+ parentSegmentId: string;
713
+ parentManifestDigest: string;
714
+ parentThreadId: string;
715
+ parentTurnId: string;
716
+ } | undefined;
717
+ }, {
718
+ budget: {
719
+ pricing: {
720
+ version: string;
721
+ provider: string;
722
+ model: string;
723
+ schemaVersion: 1;
724
+ currency: "USD";
725
+ sourceUrl: string;
726
+ inputAccounting: "excludes_cache" | "includes_read_only" | "includes_read_and_write";
727
+ rates: {
728
+ input: number | null;
729
+ output: number | null;
730
+ cache_read: number | null;
731
+ cache_write_short: number | null;
732
+ cache_write_long: number | null;
733
+ cache_write_unspecified: number | null;
734
+ cache_storage: number | null;
735
+ };
736
+ } | null;
737
+ budgetId: string;
738
+ reservationMicroUsd: number;
739
+ } | null;
740
+ persistHistory?: boolean | undefined;
741
+ nativeResume?: {
742
+ attemptId: string;
743
+ priorSegmentId: string;
744
+ threadId: string;
745
+ turnId: string;
746
+ usageBaseline: {
747
+ inputTokens: number;
748
+ outputTokens: number;
749
+ cachedInputTokens: number;
750
+ cacheWriteInputTokens: number | null;
751
+ };
752
+ workspaceSnapshotDigest: string;
753
+ } | undefined;
754
+ nativeFork?: {
755
+ parentTaskId: string;
756
+ workspaceSnapshotDigest: string;
757
+ parentAttemptId: string;
758
+ parentSegmentId: string;
759
+ parentManifestDigest: string;
760
+ parentThreadId: string;
761
+ parentTurnId: string;
762
+ } | undefined;
763
+ requiresIsolatedSecrets?: boolean | undefined;
764
+ requiresManagedContainment?: boolean | undefined;
765
+ requiresProviderEgressEnforcement?: boolean | undefined;
766
+ requiresBrokeredExternalActions?: boolean | undefined;
767
+ }>;
768
+ capabilities: z.ZodObject<{
769
+ workspaceSandbox: z.ZodLiteral<"harness_workspace_write">;
770
+ childNetworkPolicy: z.ZodLiteral<"disabled_in_requested_harness_policy">;
771
+ isolatedSecrets: z.ZodLiteral<false>;
772
+ managedContainment: z.ZodLiteral<false>;
773
+ providerEgressEnforcement: z.ZodLiteral<false>;
774
+ brokeredExternalActions: z.ZodLiteral<false>;
775
+ limitation: z.ZodString;
776
+ }, "strict", z.ZodTypeAny, {
777
+ workspaceSandbox: "harness_workspace_write";
778
+ childNetworkPolicy: "disabled_in_requested_harness_policy";
779
+ isolatedSecrets: false;
780
+ managedContainment: false;
781
+ providerEgressEnforcement: false;
782
+ brokeredExternalActions: false;
783
+ limitation: string;
784
+ }, {
785
+ workspaceSandbox: "harness_workspace_write";
786
+ childNetworkPolicy: "disabled_in_requested_harness_policy";
787
+ isolatedSecrets: false;
788
+ managedContainment: false;
789
+ providerEgressEnforcement: false;
790
+ brokeredExternalActions: false;
791
+ limitation: string;
792
+ }>;
793
+ }, "strict", z.ZodTypeAny, {
794
+ capabilities: {
795
+ workspaceSandbox: "harness_workspace_write";
796
+ childNetworkPolicy: "disabled_in_requested_harness_policy";
797
+ isolatedSecrets: false;
798
+ managedContainment: false;
799
+ providerEgressEnforcement: false;
800
+ brokeredExternalActions: false;
801
+ limitation: string;
802
+ };
803
+ policy: {
804
+ budget: {
805
+ pricing: {
806
+ version: string;
807
+ provider: string;
808
+ model: string;
809
+ schemaVersion: 1;
810
+ currency: "USD";
811
+ sourceUrl: string;
812
+ inputAccounting: "excludes_cache" | "includes_read_only" | "includes_read_and_write";
813
+ rates: {
814
+ input: number | null;
815
+ output: number | null;
816
+ cache_read: number | null;
817
+ cache_write_short: number | null;
818
+ cache_write_long: number | null;
819
+ cache_write_unspecified: number | null;
820
+ cache_storage: number | null;
821
+ };
822
+ } | null;
823
+ budgetId: string;
824
+ reservationMicroUsd: number;
825
+ } | null;
826
+ persistHistory: boolean;
827
+ requiresIsolatedSecrets: boolean;
828
+ requiresManagedContainment: boolean;
829
+ requiresProviderEgressEnforcement: boolean;
830
+ requiresBrokeredExternalActions: boolean;
831
+ nativeResume?: {
832
+ attemptId: string;
833
+ priorSegmentId: string;
834
+ threadId: string;
835
+ turnId: string;
836
+ usageBaseline: {
837
+ inputTokens: number;
838
+ outputTokens: number;
839
+ cachedInputTokens: number;
840
+ cacheWriteInputTokens: number | null;
841
+ };
842
+ workspaceSnapshotDigest: string;
843
+ } | undefined;
844
+ nativeFork?: {
845
+ parentTaskId: string;
846
+ workspaceSnapshotDigest: string;
847
+ parentAttemptId: string;
848
+ parentSegmentId: string;
849
+ parentManifestDigest: string;
850
+ parentThreadId: string;
851
+ parentTurnId: string;
852
+ } | undefined;
853
+ };
854
+ schemaVersion: 1;
855
+ manifestDigest: string;
856
+ manifest: {
857
+ taskId: string;
858
+ harness: string;
859
+ schemaVersion: 1;
860
+ objective: string;
861
+ acceptanceCriteria: {
862
+ id: string;
863
+ text: string;
864
+ }[];
865
+ revision: number;
866
+ repository: {
867
+ path: string;
868
+ repositoryId: string;
869
+ baseCommit: string;
870
+ };
871
+ routing: {
872
+ mode: "direct";
873
+ leadId: string;
874
+ } | {
875
+ mode: "pool";
876
+ poolId: string;
877
+ };
878
+ maxAttempts: number;
879
+ model?: string | null | undefined;
880
+ source?: {
881
+ sourceId: string;
882
+ sourceRevision: number;
883
+ inputDigest: string;
884
+ operationId: string;
885
+ } | undefined;
886
+ dependencyBinding?: string | undefined;
887
+ };
888
+ runnerId: string;
889
+ expiresAtMs: number;
890
+ invocation: {
891
+ command: string;
892
+ args: string[];
893
+ executableDigest: string;
894
+ workspace: string;
895
+ stdinDigest: string;
896
+ timeoutMs: number;
897
+ providerDestinations: string[];
898
+ providerDestinationEnforcement: "expected_only";
899
+ transport: "codex_exec" | "codex_app_server";
900
+ configuration?: unknown;
901
+ nativeBinding?: unknown;
902
+ };
903
+ permittedOperations: string[];
904
+ prohibitedExternalOperations: string[];
905
+ }, {
906
+ capabilities: {
907
+ workspaceSandbox: "harness_workspace_write";
908
+ childNetworkPolicy: "disabled_in_requested_harness_policy";
909
+ isolatedSecrets: false;
910
+ managedContainment: false;
911
+ providerEgressEnforcement: false;
912
+ brokeredExternalActions: false;
913
+ limitation: string;
914
+ };
915
+ policy: {
916
+ budget: {
917
+ pricing: {
918
+ version: string;
919
+ provider: string;
920
+ model: string;
921
+ schemaVersion: 1;
922
+ currency: "USD";
923
+ sourceUrl: string;
924
+ inputAccounting: "excludes_cache" | "includes_read_only" | "includes_read_and_write";
925
+ rates: {
926
+ input: number | null;
927
+ output: number | null;
928
+ cache_read: number | null;
929
+ cache_write_short: number | null;
930
+ cache_write_long: number | null;
931
+ cache_write_unspecified: number | null;
932
+ cache_storage: number | null;
933
+ };
934
+ } | null;
935
+ budgetId: string;
936
+ reservationMicroUsd: number;
937
+ } | null;
938
+ persistHistory?: boolean | undefined;
939
+ nativeResume?: {
940
+ attemptId: string;
941
+ priorSegmentId: string;
942
+ threadId: string;
943
+ turnId: string;
944
+ usageBaseline: {
945
+ inputTokens: number;
946
+ outputTokens: number;
947
+ cachedInputTokens: number;
948
+ cacheWriteInputTokens: number | null;
949
+ };
950
+ workspaceSnapshotDigest: string;
951
+ } | undefined;
952
+ nativeFork?: {
953
+ parentTaskId: string;
954
+ workspaceSnapshotDigest: string;
955
+ parentAttemptId: string;
956
+ parentSegmentId: string;
957
+ parentManifestDigest: string;
958
+ parentThreadId: string;
959
+ parentTurnId: string;
960
+ } | undefined;
961
+ requiresIsolatedSecrets?: boolean | undefined;
962
+ requiresManagedContainment?: boolean | undefined;
963
+ requiresProviderEgressEnforcement?: boolean | undefined;
964
+ requiresBrokeredExternalActions?: boolean | undefined;
965
+ };
966
+ schemaVersion: 1;
967
+ manifestDigest: string;
968
+ manifest: {
969
+ taskId: string;
970
+ harness: string;
971
+ schemaVersion: 1;
972
+ objective: string;
973
+ acceptanceCriteria: {
974
+ id: string;
975
+ text: string;
976
+ }[];
977
+ revision: number;
978
+ repository: {
979
+ path: string;
980
+ repositoryId: string;
981
+ baseCommit: string;
982
+ };
983
+ routing: {
984
+ mode: "direct";
985
+ leadId: string;
986
+ } | {
987
+ mode: "pool";
988
+ poolId: string;
989
+ };
990
+ maxAttempts: number;
991
+ model?: string | null | undefined;
992
+ source?: {
993
+ sourceId: string;
994
+ sourceRevision: number;
995
+ inputDigest: string;
996
+ operationId: string;
997
+ } | undefined;
998
+ dependencyBinding?: string | undefined;
999
+ };
1000
+ runnerId: string;
1001
+ expiresAtMs: number;
1002
+ invocation: {
1003
+ command: string;
1004
+ args: string[];
1005
+ executableDigest: string;
1006
+ workspace: string;
1007
+ stdinDigest: string;
1008
+ timeoutMs: number;
1009
+ providerDestinations: string[];
1010
+ providerDestinationEnforcement: "expected_only";
1011
+ transport: "codex_exec" | "codex_app_server";
1012
+ configuration?: unknown;
1013
+ nativeBinding?: unknown;
1014
+ };
1015
+ permittedOperations: string[];
1016
+ prohibitedExternalOperations: string[];
1017
+ }>, {
1018
+ capabilities: {
1019
+ workspaceSandbox: "harness_workspace_write";
1020
+ childNetworkPolicy: "disabled_in_requested_harness_policy";
1021
+ isolatedSecrets: false;
1022
+ managedContainment: false;
1023
+ providerEgressEnforcement: false;
1024
+ brokeredExternalActions: false;
1025
+ limitation: string;
1026
+ };
1027
+ policy: {
1028
+ budget: {
1029
+ pricing: {
1030
+ version: string;
1031
+ provider: string;
1032
+ model: string;
1033
+ schemaVersion: 1;
1034
+ currency: "USD";
1035
+ sourceUrl: string;
1036
+ inputAccounting: "excludes_cache" | "includes_read_only" | "includes_read_and_write";
1037
+ rates: {
1038
+ input: number | null;
1039
+ output: number | null;
1040
+ cache_read: number | null;
1041
+ cache_write_short: number | null;
1042
+ cache_write_long: number | null;
1043
+ cache_write_unspecified: number | null;
1044
+ cache_storage: number | null;
1045
+ };
1046
+ } | null;
1047
+ budgetId: string;
1048
+ reservationMicroUsd: number;
1049
+ } | null;
1050
+ persistHistory: boolean;
1051
+ requiresIsolatedSecrets: boolean;
1052
+ requiresManagedContainment: boolean;
1053
+ requiresProviderEgressEnforcement: boolean;
1054
+ requiresBrokeredExternalActions: boolean;
1055
+ nativeResume?: {
1056
+ attemptId: string;
1057
+ priorSegmentId: string;
1058
+ threadId: string;
1059
+ turnId: string;
1060
+ usageBaseline: {
1061
+ inputTokens: number;
1062
+ outputTokens: number;
1063
+ cachedInputTokens: number;
1064
+ cacheWriteInputTokens: number | null;
1065
+ };
1066
+ workspaceSnapshotDigest: string;
1067
+ } | undefined;
1068
+ nativeFork?: {
1069
+ parentTaskId: string;
1070
+ workspaceSnapshotDigest: string;
1071
+ parentAttemptId: string;
1072
+ parentSegmentId: string;
1073
+ parentManifestDigest: string;
1074
+ parentThreadId: string;
1075
+ parentTurnId: string;
1076
+ } | undefined;
1077
+ };
1078
+ schemaVersion: 1;
1079
+ manifestDigest: string;
1080
+ manifest: {
1081
+ taskId: string;
1082
+ harness: string;
1083
+ schemaVersion: 1;
1084
+ objective: string;
1085
+ acceptanceCriteria: {
1086
+ id: string;
1087
+ text: string;
1088
+ }[];
1089
+ revision: number;
1090
+ repository: {
1091
+ path: string;
1092
+ repositoryId: string;
1093
+ baseCommit: string;
1094
+ };
1095
+ routing: {
1096
+ mode: "direct";
1097
+ leadId: string;
1098
+ } | {
1099
+ mode: "pool";
1100
+ poolId: string;
1101
+ };
1102
+ maxAttempts: number;
1103
+ model?: string | null | undefined;
1104
+ source?: {
1105
+ sourceId: string;
1106
+ sourceRevision: number;
1107
+ inputDigest: string;
1108
+ operationId: string;
1109
+ } | undefined;
1110
+ dependencyBinding?: string | undefined;
1111
+ };
1112
+ runnerId: string;
1113
+ expiresAtMs: number;
1114
+ invocation: {
1115
+ command: string;
1116
+ args: string[];
1117
+ executableDigest: string;
1118
+ workspace: string;
1119
+ stdinDigest: string;
1120
+ timeoutMs: number;
1121
+ providerDestinations: string[];
1122
+ providerDestinationEnforcement: "expected_only";
1123
+ transport: "codex_exec" | "codex_app_server";
1124
+ configuration?: unknown;
1125
+ nativeBinding?: unknown;
1126
+ };
1127
+ permittedOperations: string[];
1128
+ prohibitedExternalOperations: string[];
1129
+ }, {
1130
+ capabilities: {
1131
+ workspaceSandbox: "harness_workspace_write";
1132
+ childNetworkPolicy: "disabled_in_requested_harness_policy";
1133
+ isolatedSecrets: false;
1134
+ managedContainment: false;
1135
+ providerEgressEnforcement: false;
1136
+ brokeredExternalActions: false;
1137
+ limitation: string;
1138
+ };
1139
+ policy: {
1140
+ budget: {
1141
+ pricing: {
1142
+ version: string;
1143
+ provider: string;
1144
+ model: string;
1145
+ schemaVersion: 1;
1146
+ currency: "USD";
1147
+ sourceUrl: string;
1148
+ inputAccounting: "excludes_cache" | "includes_read_only" | "includes_read_and_write";
1149
+ rates: {
1150
+ input: number | null;
1151
+ output: number | null;
1152
+ cache_read: number | null;
1153
+ cache_write_short: number | null;
1154
+ cache_write_long: number | null;
1155
+ cache_write_unspecified: number | null;
1156
+ cache_storage: number | null;
1157
+ };
1158
+ } | null;
1159
+ budgetId: string;
1160
+ reservationMicroUsd: number;
1161
+ } | null;
1162
+ persistHistory?: boolean | undefined;
1163
+ nativeResume?: {
1164
+ attemptId: string;
1165
+ priorSegmentId: string;
1166
+ threadId: string;
1167
+ turnId: string;
1168
+ usageBaseline: {
1169
+ inputTokens: number;
1170
+ outputTokens: number;
1171
+ cachedInputTokens: number;
1172
+ cacheWriteInputTokens: number | null;
1173
+ };
1174
+ workspaceSnapshotDigest: string;
1175
+ } | undefined;
1176
+ nativeFork?: {
1177
+ parentTaskId: string;
1178
+ workspaceSnapshotDigest: string;
1179
+ parentAttemptId: string;
1180
+ parentSegmentId: string;
1181
+ parentManifestDigest: string;
1182
+ parentThreadId: string;
1183
+ parentTurnId: string;
1184
+ } | undefined;
1185
+ requiresIsolatedSecrets?: boolean | undefined;
1186
+ requiresManagedContainment?: boolean | undefined;
1187
+ requiresProviderEgressEnforcement?: boolean | undefined;
1188
+ requiresBrokeredExternalActions?: boolean | undefined;
1189
+ };
1190
+ schemaVersion: 1;
1191
+ manifestDigest: string;
1192
+ manifest: {
1193
+ taskId: string;
1194
+ harness: string;
1195
+ schemaVersion: 1;
1196
+ objective: string;
1197
+ acceptanceCriteria: {
1198
+ id: string;
1199
+ text: string;
1200
+ }[];
1201
+ revision: number;
1202
+ repository: {
1203
+ path: string;
1204
+ repositoryId: string;
1205
+ baseCommit: string;
1206
+ };
1207
+ routing: {
1208
+ mode: "direct";
1209
+ leadId: string;
1210
+ } | {
1211
+ mode: "pool";
1212
+ poolId: string;
1213
+ };
1214
+ maxAttempts: number;
1215
+ model?: string | null | undefined;
1216
+ source?: {
1217
+ sourceId: string;
1218
+ sourceRevision: number;
1219
+ inputDigest: string;
1220
+ operationId: string;
1221
+ } | undefined;
1222
+ dependencyBinding?: string | undefined;
1223
+ };
1224
+ runnerId: string;
1225
+ expiresAtMs: number;
1226
+ invocation: {
1227
+ command: string;
1228
+ args: string[];
1229
+ executableDigest: string;
1230
+ workspace: string;
1231
+ stdinDigest: string;
1232
+ timeoutMs: number;
1233
+ providerDestinations: string[];
1234
+ providerDestinationEnforcement: "expected_only";
1235
+ transport: "codex_exec" | "codex_app_server";
1236
+ configuration?: unknown;
1237
+ nativeBinding?: unknown;
1238
+ };
1239
+ permittedOperations: string[];
1240
+ prohibitedExternalOperations: string[];
1241
+ }>;
1242
+ }, "strict", z.ZodTypeAny, {
1243
+ schemaVersion: 1;
1244
+ review: {
1245
+ capabilities: {
1246
+ workspaceSandbox: "harness_workspace_write";
1247
+ childNetworkPolicy: "disabled_in_requested_harness_policy";
1248
+ isolatedSecrets: false;
1249
+ managedContainment: false;
1250
+ providerEgressEnforcement: false;
1251
+ brokeredExternalActions: false;
1252
+ limitation: string;
1253
+ };
1254
+ policy: {
1255
+ budget: {
1256
+ pricing: {
1257
+ version: string;
1258
+ provider: string;
1259
+ model: string;
1260
+ schemaVersion: 1;
1261
+ currency: "USD";
1262
+ sourceUrl: string;
1263
+ inputAccounting: "excludes_cache" | "includes_read_only" | "includes_read_and_write";
1264
+ rates: {
1265
+ input: number | null;
1266
+ output: number | null;
1267
+ cache_read: number | null;
1268
+ cache_write_short: number | null;
1269
+ cache_write_long: number | null;
1270
+ cache_write_unspecified: number | null;
1271
+ cache_storage: number | null;
1272
+ };
1273
+ } | null;
1274
+ budgetId: string;
1275
+ reservationMicroUsd: number;
1276
+ } | null;
1277
+ persistHistory: boolean;
1278
+ requiresIsolatedSecrets: boolean;
1279
+ requiresManagedContainment: boolean;
1280
+ requiresProviderEgressEnforcement: boolean;
1281
+ requiresBrokeredExternalActions: boolean;
1282
+ nativeResume?: {
1283
+ attemptId: string;
1284
+ priorSegmentId: string;
1285
+ threadId: string;
1286
+ turnId: string;
1287
+ usageBaseline: {
1288
+ inputTokens: number;
1289
+ outputTokens: number;
1290
+ cachedInputTokens: number;
1291
+ cacheWriteInputTokens: number | null;
1292
+ };
1293
+ workspaceSnapshotDigest: string;
1294
+ } | undefined;
1295
+ nativeFork?: {
1296
+ parentTaskId: string;
1297
+ workspaceSnapshotDigest: string;
1298
+ parentAttemptId: string;
1299
+ parentSegmentId: string;
1300
+ parentManifestDigest: string;
1301
+ parentThreadId: string;
1302
+ parentTurnId: string;
1303
+ } | undefined;
1304
+ };
1305
+ schemaVersion: 1;
1306
+ manifestDigest: string;
1307
+ manifest: {
1308
+ taskId: string;
1309
+ harness: string;
1310
+ schemaVersion: 1;
1311
+ objective: string;
1312
+ acceptanceCriteria: {
1313
+ id: string;
1314
+ text: string;
1315
+ }[];
1316
+ revision: number;
1317
+ repository: {
1318
+ path: string;
1319
+ repositoryId: string;
1320
+ baseCommit: string;
1321
+ };
1322
+ routing: {
1323
+ mode: "direct";
1324
+ leadId: string;
1325
+ } | {
1326
+ mode: "pool";
1327
+ poolId: string;
1328
+ };
1329
+ maxAttempts: number;
1330
+ model?: string | null | undefined;
1331
+ source?: {
1332
+ sourceId: string;
1333
+ sourceRevision: number;
1334
+ inputDigest: string;
1335
+ operationId: string;
1336
+ } | undefined;
1337
+ dependencyBinding?: string | undefined;
1338
+ };
1339
+ runnerId: string;
1340
+ expiresAtMs: number;
1341
+ invocation: {
1342
+ command: string;
1343
+ args: string[];
1344
+ executableDigest: string;
1345
+ workspace: string;
1346
+ stdinDigest: string;
1347
+ timeoutMs: number;
1348
+ providerDestinations: string[];
1349
+ providerDestinationEnforcement: "expected_only";
1350
+ transport: "codex_exec" | "codex_app_server";
1351
+ configuration?: unknown;
1352
+ nativeBinding?: unknown;
1353
+ };
1354
+ permittedOperations: string[];
1355
+ prohibitedExternalOperations: string[];
1356
+ };
1357
+ admissionRef: string;
1358
+ admission: {
1359
+ projectId: string;
1360
+ organizationId: string;
1361
+ capabilities: ("task.execute" | "model.invoke" | "github.branch.write" | "github.pull_request.draft")[];
1362
+ expiresAt: string;
1363
+ taskId: string;
1364
+ notBefore: string;
1365
+ specRevision: number;
1366
+ manifestDigest: string;
1367
+ sourceRevision: number;
1368
+ repository: string;
1369
+ attemptNumber: number;
1370
+ ownerEpoch: number;
1371
+ admissionId: string;
1372
+ schema: "kya.task.admission.v1";
1373
+ installationId: string;
1374
+ baseSha: string;
1375
+ sourceOperationId: string;
1376
+ executionOperationId: string;
1377
+ branch: string;
1378
+ limits: {
1379
+ maxRuntimeSeconds: number;
1380
+ maxOperations: number;
1381
+ maxCostMicrousd: number;
1382
+ };
1383
+ leadDid: string;
1384
+ holderDid: string;
1385
+ policyProvenance: "administrator_registered";
1386
+ requiresOnlineActionGate: true;
1387
+ credentialExport: false;
1388
+ modelPolicy?: {
1389
+ provider: "anthropic";
1390
+ models: string[];
1391
+ maxOutputTokens: number;
1392
+ maxRequestBytes: number;
1393
+ reservedCostMicrousd: number;
1394
+ } | undefined;
1395
+ };
1396
+ config: {
1397
+ projectId: string;
1398
+ organizationId: string;
1399
+ origin: string;
1400
+ ownerEpoch: number;
1401
+ destinationDid: string;
1402
+ acceptedProviders?: ("discord" | "linear" | "github" | "didcomm" | "a2a")[] | undefined;
1403
+ };
1404
+ workerProfile: string;
1405
+ startOperationId: string;
1406
+ }, {
1407
+ schemaVersion: 1;
1408
+ review: {
1409
+ capabilities: {
1410
+ workspaceSandbox: "harness_workspace_write";
1411
+ childNetworkPolicy: "disabled_in_requested_harness_policy";
1412
+ isolatedSecrets: false;
1413
+ managedContainment: false;
1414
+ providerEgressEnforcement: false;
1415
+ brokeredExternalActions: false;
1416
+ limitation: string;
1417
+ };
1418
+ policy: {
1419
+ budget: {
1420
+ pricing: {
1421
+ version: string;
1422
+ provider: string;
1423
+ model: string;
1424
+ schemaVersion: 1;
1425
+ currency: "USD";
1426
+ sourceUrl: string;
1427
+ inputAccounting: "excludes_cache" | "includes_read_only" | "includes_read_and_write";
1428
+ rates: {
1429
+ input: number | null;
1430
+ output: number | null;
1431
+ cache_read: number | null;
1432
+ cache_write_short: number | null;
1433
+ cache_write_long: number | null;
1434
+ cache_write_unspecified: number | null;
1435
+ cache_storage: number | null;
1436
+ };
1437
+ } | null;
1438
+ budgetId: string;
1439
+ reservationMicroUsd: number;
1440
+ } | null;
1441
+ persistHistory?: boolean | undefined;
1442
+ nativeResume?: {
1443
+ attemptId: string;
1444
+ priorSegmentId: string;
1445
+ threadId: string;
1446
+ turnId: string;
1447
+ usageBaseline: {
1448
+ inputTokens: number;
1449
+ outputTokens: number;
1450
+ cachedInputTokens: number;
1451
+ cacheWriteInputTokens: number | null;
1452
+ };
1453
+ workspaceSnapshotDigest: string;
1454
+ } | undefined;
1455
+ nativeFork?: {
1456
+ parentTaskId: string;
1457
+ workspaceSnapshotDigest: string;
1458
+ parentAttemptId: string;
1459
+ parentSegmentId: string;
1460
+ parentManifestDigest: string;
1461
+ parentThreadId: string;
1462
+ parentTurnId: string;
1463
+ } | undefined;
1464
+ requiresIsolatedSecrets?: boolean | undefined;
1465
+ requiresManagedContainment?: boolean | undefined;
1466
+ requiresProviderEgressEnforcement?: boolean | undefined;
1467
+ requiresBrokeredExternalActions?: boolean | undefined;
1468
+ };
1469
+ schemaVersion: 1;
1470
+ manifestDigest: string;
1471
+ manifest: {
1472
+ taskId: string;
1473
+ harness: string;
1474
+ schemaVersion: 1;
1475
+ objective: string;
1476
+ acceptanceCriteria: {
1477
+ id: string;
1478
+ text: string;
1479
+ }[];
1480
+ revision: number;
1481
+ repository: {
1482
+ path: string;
1483
+ repositoryId: string;
1484
+ baseCommit: string;
1485
+ };
1486
+ routing: {
1487
+ mode: "direct";
1488
+ leadId: string;
1489
+ } | {
1490
+ mode: "pool";
1491
+ poolId: string;
1492
+ };
1493
+ maxAttempts: number;
1494
+ model?: string | null | undefined;
1495
+ source?: {
1496
+ sourceId: string;
1497
+ sourceRevision: number;
1498
+ inputDigest: string;
1499
+ operationId: string;
1500
+ } | undefined;
1501
+ dependencyBinding?: string | undefined;
1502
+ };
1503
+ runnerId: string;
1504
+ expiresAtMs: number;
1505
+ invocation: {
1506
+ command: string;
1507
+ args: string[];
1508
+ executableDigest: string;
1509
+ workspace: string;
1510
+ stdinDigest: string;
1511
+ timeoutMs: number;
1512
+ providerDestinations: string[];
1513
+ providerDestinationEnforcement: "expected_only";
1514
+ transport: "codex_exec" | "codex_app_server";
1515
+ configuration?: unknown;
1516
+ nativeBinding?: unknown;
1517
+ };
1518
+ permittedOperations: string[];
1519
+ prohibitedExternalOperations: string[];
1520
+ };
1521
+ admissionRef: string;
1522
+ admission: {
1523
+ projectId: string;
1524
+ organizationId: string;
1525
+ capabilities: ("task.execute" | "model.invoke" | "github.branch.write" | "github.pull_request.draft")[];
1526
+ expiresAt: string;
1527
+ taskId: string;
1528
+ notBefore: string;
1529
+ specRevision: number;
1530
+ manifestDigest: string;
1531
+ sourceRevision: number;
1532
+ repository: string;
1533
+ attemptNumber: number;
1534
+ ownerEpoch: number;
1535
+ admissionId: string;
1536
+ schema: "kya.task.admission.v1";
1537
+ installationId: string;
1538
+ baseSha: string;
1539
+ sourceOperationId: string;
1540
+ executionOperationId: string;
1541
+ branch: string;
1542
+ limits: {
1543
+ maxRuntimeSeconds: number;
1544
+ maxOperations: number;
1545
+ maxCostMicrousd: number;
1546
+ };
1547
+ leadDid: string;
1548
+ holderDid: string;
1549
+ policyProvenance: "administrator_registered";
1550
+ requiresOnlineActionGate: true;
1551
+ credentialExport: false;
1552
+ modelPolicy?: {
1553
+ provider: "anthropic";
1554
+ models: string[];
1555
+ maxOutputTokens: number;
1556
+ maxRequestBytes: number;
1557
+ reservedCostMicrousd: number;
1558
+ } | undefined;
1559
+ };
1560
+ config: {
1561
+ projectId: string;
1562
+ organizationId: string;
1563
+ origin: string;
1564
+ ownerEpoch: number;
1565
+ destinationDid: string;
1566
+ acceptedProviders?: ("discord" | "linear" | "github" | "didcomm" | "a2a")[] | undefined;
1567
+ };
1568
+ workerProfile: string;
1569
+ startOperationId: string;
1570
+ }>, {
1571
+ schemaVersion: 1;
1572
+ review: {
1573
+ capabilities: {
1574
+ workspaceSandbox: "harness_workspace_write";
1575
+ childNetworkPolicy: "disabled_in_requested_harness_policy";
1576
+ isolatedSecrets: false;
1577
+ managedContainment: false;
1578
+ providerEgressEnforcement: false;
1579
+ brokeredExternalActions: false;
1580
+ limitation: string;
1581
+ };
1582
+ policy: {
1583
+ budget: {
1584
+ pricing: {
1585
+ version: string;
1586
+ provider: string;
1587
+ model: string;
1588
+ schemaVersion: 1;
1589
+ currency: "USD";
1590
+ sourceUrl: string;
1591
+ inputAccounting: "excludes_cache" | "includes_read_only" | "includes_read_and_write";
1592
+ rates: {
1593
+ input: number | null;
1594
+ output: number | null;
1595
+ cache_read: number | null;
1596
+ cache_write_short: number | null;
1597
+ cache_write_long: number | null;
1598
+ cache_write_unspecified: number | null;
1599
+ cache_storage: number | null;
1600
+ };
1601
+ } | null;
1602
+ budgetId: string;
1603
+ reservationMicroUsd: number;
1604
+ } | null;
1605
+ persistHistory: boolean;
1606
+ requiresIsolatedSecrets: boolean;
1607
+ requiresManagedContainment: boolean;
1608
+ requiresProviderEgressEnforcement: boolean;
1609
+ requiresBrokeredExternalActions: boolean;
1610
+ nativeResume?: {
1611
+ attemptId: string;
1612
+ priorSegmentId: string;
1613
+ threadId: string;
1614
+ turnId: string;
1615
+ usageBaseline: {
1616
+ inputTokens: number;
1617
+ outputTokens: number;
1618
+ cachedInputTokens: number;
1619
+ cacheWriteInputTokens: number | null;
1620
+ };
1621
+ workspaceSnapshotDigest: string;
1622
+ } | undefined;
1623
+ nativeFork?: {
1624
+ parentTaskId: string;
1625
+ workspaceSnapshotDigest: string;
1626
+ parentAttemptId: string;
1627
+ parentSegmentId: string;
1628
+ parentManifestDigest: string;
1629
+ parentThreadId: string;
1630
+ parentTurnId: string;
1631
+ } | undefined;
1632
+ };
1633
+ schemaVersion: 1;
1634
+ manifestDigest: string;
1635
+ manifest: {
1636
+ taskId: string;
1637
+ harness: string;
1638
+ schemaVersion: 1;
1639
+ objective: string;
1640
+ acceptanceCriteria: {
1641
+ id: string;
1642
+ text: string;
1643
+ }[];
1644
+ revision: number;
1645
+ repository: {
1646
+ path: string;
1647
+ repositoryId: string;
1648
+ baseCommit: string;
1649
+ };
1650
+ routing: {
1651
+ mode: "direct";
1652
+ leadId: string;
1653
+ } | {
1654
+ mode: "pool";
1655
+ poolId: string;
1656
+ };
1657
+ maxAttempts: number;
1658
+ model?: string | null | undefined;
1659
+ source?: {
1660
+ sourceId: string;
1661
+ sourceRevision: number;
1662
+ inputDigest: string;
1663
+ operationId: string;
1664
+ } | undefined;
1665
+ dependencyBinding?: string | undefined;
1666
+ };
1667
+ runnerId: string;
1668
+ expiresAtMs: number;
1669
+ invocation: {
1670
+ command: string;
1671
+ args: string[];
1672
+ executableDigest: string;
1673
+ workspace: string;
1674
+ stdinDigest: string;
1675
+ timeoutMs: number;
1676
+ providerDestinations: string[];
1677
+ providerDestinationEnforcement: "expected_only";
1678
+ transport: "codex_exec" | "codex_app_server";
1679
+ configuration?: unknown;
1680
+ nativeBinding?: unknown;
1681
+ };
1682
+ permittedOperations: string[];
1683
+ prohibitedExternalOperations: string[];
1684
+ };
1685
+ admissionRef: string;
1686
+ admission: {
1687
+ projectId: string;
1688
+ organizationId: string;
1689
+ capabilities: ("task.execute" | "model.invoke" | "github.branch.write" | "github.pull_request.draft")[];
1690
+ expiresAt: string;
1691
+ taskId: string;
1692
+ notBefore: string;
1693
+ specRevision: number;
1694
+ manifestDigest: string;
1695
+ sourceRevision: number;
1696
+ repository: string;
1697
+ attemptNumber: number;
1698
+ ownerEpoch: number;
1699
+ admissionId: string;
1700
+ schema: "kya.task.admission.v1";
1701
+ installationId: string;
1702
+ baseSha: string;
1703
+ sourceOperationId: string;
1704
+ executionOperationId: string;
1705
+ branch: string;
1706
+ limits: {
1707
+ maxRuntimeSeconds: number;
1708
+ maxOperations: number;
1709
+ maxCostMicrousd: number;
1710
+ };
1711
+ leadDid: string;
1712
+ holderDid: string;
1713
+ policyProvenance: "administrator_registered";
1714
+ requiresOnlineActionGate: true;
1715
+ credentialExport: false;
1716
+ modelPolicy?: {
1717
+ provider: "anthropic";
1718
+ models: string[];
1719
+ maxOutputTokens: number;
1720
+ maxRequestBytes: number;
1721
+ reservedCostMicrousd: number;
1722
+ } | undefined;
1723
+ };
1724
+ config: {
1725
+ projectId: string;
1726
+ organizationId: string;
1727
+ origin: string;
1728
+ ownerEpoch: number;
1729
+ destinationDid: string;
1730
+ acceptedProviders?: ("discord" | "linear" | "github" | "didcomm" | "a2a")[] | undefined;
1731
+ };
1732
+ workerProfile: string;
1733
+ startOperationId: string;
1734
+ }, {
1735
+ schemaVersion: 1;
1736
+ review: {
1737
+ capabilities: {
1738
+ workspaceSandbox: "harness_workspace_write";
1739
+ childNetworkPolicy: "disabled_in_requested_harness_policy";
1740
+ isolatedSecrets: false;
1741
+ managedContainment: false;
1742
+ providerEgressEnforcement: false;
1743
+ brokeredExternalActions: false;
1744
+ limitation: string;
1745
+ };
1746
+ policy: {
1747
+ budget: {
1748
+ pricing: {
1749
+ version: string;
1750
+ provider: string;
1751
+ model: string;
1752
+ schemaVersion: 1;
1753
+ currency: "USD";
1754
+ sourceUrl: string;
1755
+ inputAccounting: "excludes_cache" | "includes_read_only" | "includes_read_and_write";
1756
+ rates: {
1757
+ input: number | null;
1758
+ output: number | null;
1759
+ cache_read: number | null;
1760
+ cache_write_short: number | null;
1761
+ cache_write_long: number | null;
1762
+ cache_write_unspecified: number | null;
1763
+ cache_storage: number | null;
1764
+ };
1765
+ } | null;
1766
+ budgetId: string;
1767
+ reservationMicroUsd: number;
1768
+ } | null;
1769
+ persistHistory?: boolean | undefined;
1770
+ nativeResume?: {
1771
+ attemptId: string;
1772
+ priorSegmentId: string;
1773
+ threadId: string;
1774
+ turnId: string;
1775
+ usageBaseline: {
1776
+ inputTokens: number;
1777
+ outputTokens: number;
1778
+ cachedInputTokens: number;
1779
+ cacheWriteInputTokens: number | null;
1780
+ };
1781
+ workspaceSnapshotDigest: string;
1782
+ } | undefined;
1783
+ nativeFork?: {
1784
+ parentTaskId: string;
1785
+ workspaceSnapshotDigest: string;
1786
+ parentAttemptId: string;
1787
+ parentSegmentId: string;
1788
+ parentManifestDigest: string;
1789
+ parentThreadId: string;
1790
+ parentTurnId: string;
1791
+ } | undefined;
1792
+ requiresIsolatedSecrets?: boolean | undefined;
1793
+ requiresManagedContainment?: boolean | undefined;
1794
+ requiresProviderEgressEnforcement?: boolean | undefined;
1795
+ requiresBrokeredExternalActions?: boolean | undefined;
1796
+ };
1797
+ schemaVersion: 1;
1798
+ manifestDigest: string;
1799
+ manifest: {
1800
+ taskId: string;
1801
+ harness: string;
1802
+ schemaVersion: 1;
1803
+ objective: string;
1804
+ acceptanceCriteria: {
1805
+ id: string;
1806
+ text: string;
1807
+ }[];
1808
+ revision: number;
1809
+ repository: {
1810
+ path: string;
1811
+ repositoryId: string;
1812
+ baseCommit: string;
1813
+ };
1814
+ routing: {
1815
+ mode: "direct";
1816
+ leadId: string;
1817
+ } | {
1818
+ mode: "pool";
1819
+ poolId: string;
1820
+ };
1821
+ maxAttempts: number;
1822
+ model?: string | null | undefined;
1823
+ source?: {
1824
+ sourceId: string;
1825
+ sourceRevision: number;
1826
+ inputDigest: string;
1827
+ operationId: string;
1828
+ } | undefined;
1829
+ dependencyBinding?: string | undefined;
1830
+ };
1831
+ runnerId: string;
1832
+ expiresAtMs: number;
1833
+ invocation: {
1834
+ command: string;
1835
+ args: string[];
1836
+ executableDigest: string;
1837
+ workspace: string;
1838
+ stdinDigest: string;
1839
+ timeoutMs: number;
1840
+ providerDestinations: string[];
1841
+ providerDestinationEnforcement: "expected_only";
1842
+ transport: "codex_exec" | "codex_app_server";
1843
+ configuration?: unknown;
1844
+ nativeBinding?: unknown;
1845
+ };
1846
+ permittedOperations: string[];
1847
+ prohibitedExternalOperations: string[];
1848
+ };
1849
+ admissionRef: string;
1850
+ admission: {
1851
+ projectId: string;
1852
+ organizationId: string;
1853
+ capabilities: ("task.execute" | "model.invoke" | "github.branch.write" | "github.pull_request.draft")[];
1854
+ expiresAt: string;
1855
+ taskId: string;
1856
+ notBefore: string;
1857
+ specRevision: number;
1858
+ manifestDigest: string;
1859
+ sourceRevision: number;
1860
+ repository: string;
1861
+ attemptNumber: number;
1862
+ ownerEpoch: number;
1863
+ admissionId: string;
1864
+ schema: "kya.task.admission.v1";
1865
+ installationId: string;
1866
+ baseSha: string;
1867
+ sourceOperationId: string;
1868
+ executionOperationId: string;
1869
+ branch: string;
1870
+ limits: {
1871
+ maxRuntimeSeconds: number;
1872
+ maxOperations: number;
1873
+ maxCostMicrousd: number;
1874
+ };
1875
+ leadDid: string;
1876
+ holderDid: string;
1877
+ policyProvenance: "administrator_registered";
1878
+ requiresOnlineActionGate: true;
1879
+ credentialExport: false;
1880
+ modelPolicy?: {
1881
+ provider: "anthropic";
1882
+ models: string[];
1883
+ maxOutputTokens: number;
1884
+ maxRequestBytes: number;
1885
+ reservedCostMicrousd: number;
1886
+ } | undefined;
1887
+ };
1888
+ config: {
1889
+ projectId: string;
1890
+ organizationId: string;
1891
+ origin: string;
1892
+ ownerEpoch: number;
1893
+ destinationDid: string;
1894
+ acceptedProviders?: ("discord" | "linear" | "github" | "didcomm" | "a2a")[] | undefined;
1895
+ };
1896
+ workerProfile: string;
1897
+ startOperationId: string;
1898
+ }>;
1899
+ export type GovernedExecution = z.infer<typeof GovernedExecutionSchema>;
1900
+ /** Metadata projection, with gate status separate from local outcome. It does
1901
+ * not assert that the supervisor has sent task.finish or published a result. */
1902
+ export declare const StandingExecutionViewSchema: z.ZodObject<{
1903
+ admissionRef: z.ZodString;
1904
+ taskId: z.ZodString;
1905
+ operationId: z.ZodString;
1906
+ leadDid: z.ZodString;
1907
+ workerDid: z.ZodString;
1908
+ bindingDigest: z.ZodString;
1909
+ state: z.ZodEnum<["queued", "starting", "started", "unknown"]>;
1910
+ localOutcome: z.ZodNullable<z.ZodEnum<["succeeded", "failed", "cancelled", "unknown"]>>;
1911
+ supervisorState: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1912
+ supervisorNotice: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1913
+ provenance: z.ZodEnum<["standing_pending_online", "verified_standing"]>;
1914
+ expiresAtMs: z.ZodNumber;
1915
+ limits: z.ZodObject<{
1916
+ maxRuntimeSeconds: z.ZodNumber;
1917
+ maxCostMicrousd: z.ZodNumber;
1918
+ maxOperations: z.ZodNumber;
1919
+ }, "strict", z.ZodTypeAny, {
1920
+ maxRuntimeSeconds: number;
1921
+ maxOperations: number;
1922
+ maxCostMicrousd: number;
1923
+ }, {
1924
+ maxRuntimeSeconds: number;
1925
+ maxOperations: number;
1926
+ maxCostMicrousd: number;
1927
+ }>;
1928
+ capabilities: z.ZodObject<{
1929
+ workspaceSandbox: z.ZodLiteral<"harness_workspace_write">;
1930
+ childNetworkPolicy: z.ZodLiteral<"disabled_in_requested_harness_policy">;
1931
+ isolatedSecrets: z.ZodLiteral<false>;
1932
+ managedContainment: z.ZodLiteral<false>;
1933
+ providerEgressEnforcement: z.ZodLiteral<false>;
1934
+ brokeredExternalActions: z.ZodLiteral<false>;
1935
+ limitation: z.ZodString;
1936
+ }, "strict", z.ZodTypeAny, {
1937
+ workspaceSandbox: "harness_workspace_write";
1938
+ childNetworkPolicy: "disabled_in_requested_harness_policy";
1939
+ isolatedSecrets: false;
1940
+ managedContainment: false;
1941
+ providerEgressEnforcement: false;
1942
+ brokeredExternalActions: false;
1943
+ limitation: string;
1944
+ }, {
1945
+ workspaceSandbox: "harness_workspace_write";
1946
+ childNetworkPolicy: "disabled_in_requested_harness_policy";
1947
+ isolatedSecrets: false;
1948
+ managedContainment: false;
1949
+ providerEgressEnforcement: false;
1950
+ brokeredExternalActions: false;
1951
+ limitation: string;
1952
+ }>;
1953
+ }, "strict", z.ZodTypeAny, {
1954
+ capabilities: {
1955
+ workspaceSandbox: "harness_workspace_write";
1956
+ childNetworkPolicy: "disabled_in_requested_harness_policy";
1957
+ isolatedSecrets: false;
1958
+ managedContainment: false;
1959
+ providerEgressEnforcement: false;
1960
+ brokeredExternalActions: false;
1961
+ limitation: string;
1962
+ };
1963
+ taskId: string;
1964
+ state: "starting" | "unknown" | "started" | "queued";
1965
+ operationId: string;
1966
+ workerDid: string;
1967
+ limits: {
1968
+ maxRuntimeSeconds: number;
1969
+ maxOperations: number;
1970
+ maxCostMicrousd: number;
1971
+ };
1972
+ leadDid: string;
1973
+ expiresAtMs: number;
1974
+ admissionRef: string;
1975
+ bindingDigest: string;
1976
+ localOutcome: "unknown" | "failed" | "succeeded" | "cancelled" | null;
1977
+ provenance: "standing_pending_online" | "verified_standing";
1978
+ supervisorState?: string | null | undefined;
1979
+ supervisorNotice?: string | null | undefined;
1980
+ }, {
1981
+ capabilities: {
1982
+ workspaceSandbox: "harness_workspace_write";
1983
+ childNetworkPolicy: "disabled_in_requested_harness_policy";
1984
+ isolatedSecrets: false;
1985
+ managedContainment: false;
1986
+ providerEgressEnforcement: false;
1987
+ brokeredExternalActions: false;
1988
+ limitation: string;
1989
+ };
1990
+ taskId: string;
1991
+ state: "starting" | "unknown" | "started" | "queued";
1992
+ operationId: string;
1993
+ workerDid: string;
1994
+ limits: {
1995
+ maxRuntimeSeconds: number;
1996
+ maxOperations: number;
1997
+ maxCostMicrousd: number;
1998
+ };
1999
+ leadDid: string;
2000
+ expiresAtMs: number;
2001
+ admissionRef: string;
2002
+ bindingDigest: string;
2003
+ localOutcome: "unknown" | "failed" | "succeeded" | "cancelled" | null;
2004
+ provenance: "standing_pending_online" | "verified_standing";
2005
+ supervisorState?: string | null | undefined;
2006
+ supervisorNotice?: string | null | undefined;
2007
+ }>;
2008
+ export type StandingExecutionView = z.infer<typeof StandingExecutionViewSchema>;
2009
+ export declare const StandingSupervisorBindingSchema: z.ZodObject<{
2010
+ schemaVersion: z.ZodLiteral<1>;
2011
+ execution: z.ZodEffects<z.ZodObject<{
2012
+ schemaVersion: z.ZodLiteral<1>;
2013
+ admissionRef: z.ZodString;
2014
+ admission: z.ZodEffects<z.ZodObject<Omit<{
2015
+ workerDid: z.ZodString;
2016
+ repository: z.ZodString;
2017
+ baseSha: z.ZodString;
2018
+ attemptNumber: z.ZodNumber;
2019
+ capabilities: z.ZodEffects<z.ZodArray<z.ZodEnum<["task.execute", "model.invoke", "github.branch.write", "github.pull_request.draft"]>, "many">, ("task.execute" | "model.invoke" | "github.branch.write" | "github.pull_request.draft")[], ("task.execute" | "model.invoke" | "github.branch.write" | "github.pull_request.draft")[]>;
2020
+ limits: z.ZodObject<{
2021
+ maxRuntimeSeconds: z.ZodNumber;
2022
+ maxCostMicrousd: z.ZodNumber;
2023
+ maxOperations: z.ZodNumber;
2024
+ }, "strict", z.ZodTypeAny, {
2025
+ maxRuntimeSeconds: number;
2026
+ maxOperations: number;
2027
+ maxCostMicrousd: number;
2028
+ }, {
2029
+ maxRuntimeSeconds: number;
2030
+ maxOperations: number;
2031
+ maxCostMicrousd: number;
2032
+ }>;
2033
+ modelPolicy: z.ZodOptional<z.ZodObject<{
2034
+ provider: z.ZodLiteral<"anthropic">;
2035
+ models: z.ZodEffects<z.ZodArray<z.ZodString, "many">, string[], string[]>;
2036
+ maxOutputTokens: z.ZodNumber;
2037
+ maxRequestBytes: z.ZodNumber;
2038
+ reservedCostMicrousd: z.ZodNumber;
2039
+ }, "strict", z.ZodTypeAny, {
2040
+ provider: "anthropic";
2041
+ models: string[];
2042
+ maxOutputTokens: number;
2043
+ maxRequestBytes: number;
2044
+ reservedCostMicrousd: number;
2045
+ }, {
2046
+ provider: "anthropic";
2047
+ models: string[];
2048
+ maxOutputTokens: number;
2049
+ maxRequestBytes: number;
2050
+ reservedCostMicrousd: number;
2051
+ }>>;
2052
+ sourceOperationId: z.ZodString;
2053
+ taskId: z.ZodString;
2054
+ sourceRevision: z.ZodNumber;
2055
+ ownerEpoch: z.ZodNumber;
2056
+ specRevision: z.ZodNumber;
2057
+ manifestDigest: z.ZodString;
2058
+ executionOperationId: z.ZodString;
2059
+ }, "workerDid"> & {
2060
+ schema: z.ZodLiteral<"kya.task.admission.v1">;
2061
+ admissionId: z.ZodString;
2062
+ organizationId: z.ZodString;
2063
+ projectId: z.ZodString;
2064
+ installationId: z.ZodString;
2065
+ leadDid: z.ZodString;
2066
+ holderDid: z.ZodString;
2067
+ branch: z.ZodString;
2068
+ notBefore: z.ZodString;
2069
+ expiresAt: z.ZodString;
2070
+ policyProvenance: z.ZodLiteral<"administrator_registered">;
2071
+ requiresOnlineActionGate: z.ZodLiteral<true>;
2072
+ credentialExport: z.ZodLiteral<false>;
2073
+ }, "strict", z.ZodTypeAny, {
2074
+ projectId: string;
2075
+ organizationId: string;
2076
+ capabilities: ("task.execute" | "model.invoke" | "github.branch.write" | "github.pull_request.draft")[];
2077
+ expiresAt: string;
2078
+ taskId: string;
2079
+ notBefore: string;
2080
+ specRevision: number;
2081
+ manifestDigest: string;
2082
+ sourceRevision: number;
2083
+ repository: string;
2084
+ attemptNumber: number;
2085
+ ownerEpoch: number;
2086
+ admissionId: string;
2087
+ schema: "kya.task.admission.v1";
2088
+ installationId: string;
2089
+ baseSha: string;
2090
+ sourceOperationId: string;
2091
+ executionOperationId: string;
2092
+ branch: string;
2093
+ limits: {
2094
+ maxRuntimeSeconds: number;
2095
+ maxOperations: number;
2096
+ maxCostMicrousd: number;
2097
+ };
2098
+ leadDid: string;
2099
+ holderDid: string;
2100
+ policyProvenance: "administrator_registered";
2101
+ requiresOnlineActionGate: true;
2102
+ credentialExport: false;
2103
+ modelPolicy?: {
2104
+ provider: "anthropic";
2105
+ models: string[];
2106
+ maxOutputTokens: number;
2107
+ maxRequestBytes: number;
2108
+ reservedCostMicrousd: number;
2109
+ } | undefined;
2110
+ }, {
2111
+ projectId: string;
2112
+ organizationId: string;
2113
+ capabilities: ("task.execute" | "model.invoke" | "github.branch.write" | "github.pull_request.draft")[];
2114
+ expiresAt: string;
2115
+ taskId: string;
2116
+ notBefore: string;
2117
+ specRevision: number;
2118
+ manifestDigest: string;
2119
+ sourceRevision: number;
2120
+ repository: string;
2121
+ attemptNumber: number;
2122
+ ownerEpoch: number;
2123
+ admissionId: string;
2124
+ schema: "kya.task.admission.v1";
2125
+ installationId: string;
2126
+ baseSha: string;
2127
+ sourceOperationId: string;
2128
+ executionOperationId: string;
2129
+ branch: string;
2130
+ limits: {
2131
+ maxRuntimeSeconds: number;
2132
+ maxOperations: number;
2133
+ maxCostMicrousd: number;
2134
+ };
2135
+ leadDid: string;
2136
+ holderDid: string;
2137
+ policyProvenance: "administrator_registered";
2138
+ requiresOnlineActionGate: true;
2139
+ credentialExport: false;
2140
+ modelPolicy?: {
2141
+ provider: "anthropic";
2142
+ models: string[];
2143
+ maxOutputTokens: number;
2144
+ maxRequestBytes: number;
2145
+ reservedCostMicrousd: number;
2146
+ } | undefined;
2147
+ }>, {
2148
+ projectId: string;
2149
+ organizationId: string;
2150
+ capabilities: ("task.execute" | "model.invoke" | "github.branch.write" | "github.pull_request.draft")[];
2151
+ expiresAt: string;
2152
+ taskId: string;
2153
+ notBefore: string;
2154
+ specRevision: number;
2155
+ manifestDigest: string;
2156
+ sourceRevision: number;
2157
+ repository: string;
2158
+ attemptNumber: number;
2159
+ ownerEpoch: number;
2160
+ admissionId: string;
2161
+ schema: "kya.task.admission.v1";
2162
+ installationId: string;
2163
+ baseSha: string;
2164
+ sourceOperationId: string;
2165
+ executionOperationId: string;
2166
+ branch: string;
2167
+ limits: {
2168
+ maxRuntimeSeconds: number;
2169
+ maxOperations: number;
2170
+ maxCostMicrousd: number;
2171
+ };
2172
+ leadDid: string;
2173
+ holderDid: string;
2174
+ policyProvenance: "administrator_registered";
2175
+ requiresOnlineActionGate: true;
2176
+ credentialExport: false;
2177
+ modelPolicy?: {
2178
+ provider: "anthropic";
2179
+ models: string[];
2180
+ maxOutputTokens: number;
2181
+ maxRequestBytes: number;
2182
+ reservedCostMicrousd: number;
2183
+ } | undefined;
2184
+ }, {
2185
+ projectId: string;
2186
+ organizationId: string;
2187
+ capabilities: ("task.execute" | "model.invoke" | "github.branch.write" | "github.pull_request.draft")[];
2188
+ expiresAt: string;
2189
+ taskId: string;
2190
+ notBefore: string;
2191
+ specRevision: number;
2192
+ manifestDigest: string;
2193
+ sourceRevision: number;
2194
+ repository: string;
2195
+ attemptNumber: number;
2196
+ ownerEpoch: number;
2197
+ admissionId: string;
2198
+ schema: "kya.task.admission.v1";
2199
+ installationId: string;
2200
+ baseSha: string;
2201
+ sourceOperationId: string;
2202
+ executionOperationId: string;
2203
+ branch: string;
2204
+ limits: {
2205
+ maxRuntimeSeconds: number;
2206
+ maxOperations: number;
2207
+ maxCostMicrousd: number;
2208
+ };
2209
+ leadDid: string;
2210
+ holderDid: string;
2211
+ policyProvenance: "administrator_registered";
2212
+ requiresOnlineActionGate: true;
2213
+ credentialExport: false;
2214
+ modelPolicy?: {
2215
+ provider: "anthropic";
2216
+ models: string[];
2217
+ maxOutputTokens: number;
2218
+ maxRequestBytes: number;
2219
+ reservedCostMicrousd: number;
2220
+ } | undefined;
2221
+ }>;
2222
+ config: z.ZodObject<{
2223
+ origin: z.ZodString;
2224
+ organizationId: z.ZodString;
2225
+ projectId: z.ZodString;
2226
+ destinationDid: z.ZodString;
2227
+ ownerEpoch: z.ZodNumber;
2228
+ acceptedProviders: z.ZodOptional<z.ZodArray<z.ZodEnum<["linear", "github", "discord", "a2a", "didcomm"]>, "many">>;
2229
+ }, "strict", z.ZodTypeAny, {
2230
+ projectId: string;
2231
+ organizationId: string;
2232
+ origin: string;
2233
+ ownerEpoch: number;
2234
+ destinationDid: string;
2235
+ acceptedProviders?: ("discord" | "linear" | "github" | "didcomm" | "a2a")[] | undefined;
2236
+ }, {
2237
+ projectId: string;
2238
+ organizationId: string;
2239
+ origin: string;
2240
+ ownerEpoch: number;
2241
+ destinationDid: string;
2242
+ acceptedProviders?: ("discord" | "linear" | "github" | "didcomm" | "a2a")[] | undefined;
2243
+ }>;
2244
+ workerProfile: z.ZodString;
2245
+ startOperationId: z.ZodString;
2246
+ review: z.ZodEffects<z.ZodObject<{
2247
+ schemaVersion: z.ZodLiteral<1>;
2248
+ manifest: z.ZodEffects<z.ZodObject<{
2249
+ schemaVersion: z.ZodLiteral<1>;
2250
+ taskId: z.ZodString;
2251
+ revision: z.ZodNumber;
2252
+ objective: z.ZodString;
2253
+ repository: z.ZodObject<{
2254
+ repositoryId: z.ZodString;
2255
+ path: z.ZodString;
2256
+ baseCommit: z.ZodString;
2257
+ }, "strict", z.ZodTypeAny, {
2258
+ path: string;
2259
+ repositoryId: string;
2260
+ baseCommit: string;
2261
+ }, {
2262
+ path: string;
2263
+ repositoryId: string;
2264
+ baseCommit: string;
2265
+ }>;
2266
+ source: z.ZodOptional<z.ZodObject<{
2267
+ sourceId: z.ZodString;
2268
+ sourceRevision: z.ZodNumber;
2269
+ inputDigest: z.ZodString;
2270
+ operationId: z.ZodString;
2271
+ }, "strict", z.ZodTypeAny, {
2272
+ sourceId: string;
2273
+ sourceRevision: number;
2274
+ inputDigest: string;
2275
+ operationId: string;
2276
+ }, {
2277
+ sourceId: string;
2278
+ sourceRevision: number;
2279
+ inputDigest: string;
2280
+ operationId: string;
2281
+ }>>;
2282
+ dependencyBinding: z.ZodOptional<z.ZodString>;
2283
+ acceptanceCriteria: z.ZodArray<z.ZodObject<{
2284
+ id: z.ZodString;
2285
+ text: z.ZodString;
2286
+ }, "strict", z.ZodTypeAny, {
2287
+ id: string;
2288
+ text: string;
2289
+ }, {
2290
+ id: string;
2291
+ text: string;
2292
+ }>, "many">;
2293
+ routing: z.ZodDiscriminatedUnion<"mode", [z.ZodObject<{
2294
+ mode: z.ZodLiteral<"direct">;
2295
+ leadId: z.ZodString;
2296
+ }, "strict", z.ZodTypeAny, {
2297
+ mode: "direct";
2298
+ leadId: string;
2299
+ }, {
2300
+ mode: "direct";
2301
+ leadId: string;
2302
+ }>, z.ZodObject<{
2303
+ mode: z.ZodLiteral<"pool">;
2304
+ poolId: z.ZodString;
2305
+ }, "strict", z.ZodTypeAny, {
2306
+ mode: "pool";
2307
+ poolId: string;
2308
+ }, {
2309
+ mode: "pool";
2310
+ poolId: string;
2311
+ }>]>;
2312
+ harness: z.ZodString;
2313
+ model: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2314
+ maxAttempts: z.ZodNumber;
2315
+ }, "strict", z.ZodTypeAny, {
2316
+ taskId: string;
2317
+ harness: string;
2318
+ schemaVersion: 1;
2319
+ objective: string;
2320
+ acceptanceCriteria: {
2321
+ id: string;
2322
+ text: string;
2323
+ }[];
2324
+ revision: number;
2325
+ repository: {
2326
+ path: string;
2327
+ repositoryId: string;
2328
+ baseCommit: string;
2329
+ };
2330
+ routing: {
2331
+ mode: "direct";
2332
+ leadId: string;
2333
+ } | {
2334
+ mode: "pool";
2335
+ poolId: string;
2336
+ };
2337
+ maxAttempts: number;
2338
+ model?: string | null | undefined;
2339
+ source?: {
2340
+ sourceId: string;
2341
+ sourceRevision: number;
2342
+ inputDigest: string;
2343
+ operationId: string;
2344
+ } | undefined;
2345
+ dependencyBinding?: string | undefined;
2346
+ }, {
2347
+ taskId: string;
2348
+ harness: string;
2349
+ schemaVersion: 1;
2350
+ objective: string;
2351
+ acceptanceCriteria: {
2352
+ id: string;
2353
+ text: string;
2354
+ }[];
2355
+ revision: number;
2356
+ repository: {
2357
+ path: string;
2358
+ repositoryId: string;
2359
+ baseCommit: string;
2360
+ };
2361
+ routing: {
2362
+ mode: "direct";
2363
+ leadId: string;
2364
+ } | {
2365
+ mode: "pool";
2366
+ poolId: string;
2367
+ };
2368
+ maxAttempts: number;
2369
+ model?: string | null | undefined;
2370
+ source?: {
2371
+ sourceId: string;
2372
+ sourceRevision: number;
2373
+ inputDigest: string;
2374
+ operationId: string;
2375
+ } | undefined;
2376
+ dependencyBinding?: string | undefined;
2377
+ }>, {
2378
+ taskId: string;
2379
+ harness: string;
2380
+ schemaVersion: 1;
2381
+ objective: string;
2382
+ acceptanceCriteria: {
2383
+ id: string;
2384
+ text: string;
2385
+ }[];
2386
+ revision: number;
2387
+ repository: {
2388
+ path: string;
2389
+ repositoryId: string;
2390
+ baseCommit: string;
2391
+ };
2392
+ routing: {
2393
+ mode: "direct";
2394
+ leadId: string;
2395
+ } | {
2396
+ mode: "pool";
2397
+ poolId: string;
2398
+ };
2399
+ maxAttempts: number;
2400
+ model?: string | null | undefined;
2401
+ source?: {
2402
+ sourceId: string;
2403
+ sourceRevision: number;
2404
+ inputDigest: string;
2405
+ operationId: string;
2406
+ } | undefined;
2407
+ dependencyBinding?: string | undefined;
2408
+ }, {
2409
+ taskId: string;
2410
+ harness: string;
2411
+ schemaVersion: 1;
2412
+ objective: string;
2413
+ acceptanceCriteria: {
2414
+ id: string;
2415
+ text: string;
2416
+ }[];
2417
+ revision: number;
2418
+ repository: {
2419
+ path: string;
2420
+ repositoryId: string;
2421
+ baseCommit: string;
2422
+ };
2423
+ routing: {
2424
+ mode: "direct";
2425
+ leadId: string;
2426
+ } | {
2427
+ mode: "pool";
2428
+ poolId: string;
2429
+ };
2430
+ maxAttempts: number;
2431
+ model?: string | null | undefined;
2432
+ source?: {
2433
+ sourceId: string;
2434
+ sourceRevision: number;
2435
+ inputDigest: string;
2436
+ operationId: string;
2437
+ } | undefined;
2438
+ dependencyBinding?: string | undefined;
2439
+ }>;
2440
+ manifestDigest: z.ZodString;
2441
+ runnerId: z.ZodString;
2442
+ expiresAtMs: z.ZodNumber;
2443
+ invocation: z.ZodObject<{
2444
+ command: z.ZodString;
2445
+ executableDigest: z.ZodString;
2446
+ args: z.ZodArray<z.ZodString, "many">;
2447
+ workspace: z.ZodString;
2448
+ stdinDigest: z.ZodString;
2449
+ timeoutMs: z.ZodNumber;
2450
+ providerDestinations: z.ZodArray<z.ZodString, "many">;
2451
+ providerDestinationEnforcement: z.ZodLiteral<"expected_only">;
2452
+ configuration: z.ZodUnknown;
2453
+ transport: z.ZodEnum<["codex_exec", "codex_app_server"]>;
2454
+ nativeBinding: z.ZodOptional<z.ZodUnknown>;
2455
+ }, "strict", z.ZodTypeAny, {
2456
+ command: string;
2457
+ args: string[];
2458
+ executableDigest: string;
2459
+ workspace: string;
2460
+ stdinDigest: string;
2461
+ timeoutMs: number;
2462
+ providerDestinations: string[];
2463
+ providerDestinationEnforcement: "expected_only";
2464
+ transport: "codex_exec" | "codex_app_server";
2465
+ configuration?: unknown;
2466
+ nativeBinding?: unknown;
2467
+ }, {
2468
+ command: string;
2469
+ args: string[];
2470
+ executableDigest: string;
2471
+ workspace: string;
2472
+ stdinDigest: string;
2473
+ timeoutMs: number;
2474
+ providerDestinations: string[];
2475
+ providerDestinationEnforcement: "expected_only";
2476
+ transport: "codex_exec" | "codex_app_server";
2477
+ configuration?: unknown;
2478
+ nativeBinding?: unknown;
2479
+ }>;
2480
+ permittedOperations: z.ZodArray<z.ZodString, "many">;
2481
+ prohibitedExternalOperations: z.ZodArray<z.ZodString, "many">;
2482
+ policy: z.ZodObject<{
2483
+ persistHistory: z.ZodDefault<z.ZodBoolean>;
2484
+ nativeResume: z.ZodOptional<z.ZodObject<{
2485
+ attemptId: z.ZodString;
2486
+ priorSegmentId: z.ZodString;
2487
+ threadId: z.ZodString;
2488
+ turnId: z.ZodString;
2489
+ usageBaseline: z.ZodObject<{
2490
+ inputTokens: z.ZodNumber;
2491
+ outputTokens: z.ZodNumber;
2492
+ cachedInputTokens: z.ZodNumber;
2493
+ cacheWriteInputTokens: z.ZodNullable<z.ZodNumber>;
2494
+ }, "strict", z.ZodTypeAny, {
2495
+ inputTokens: number;
2496
+ outputTokens: number;
2497
+ cachedInputTokens: number;
2498
+ cacheWriteInputTokens: number | null;
2499
+ }, {
2500
+ inputTokens: number;
2501
+ outputTokens: number;
2502
+ cachedInputTokens: number;
2503
+ cacheWriteInputTokens: number | null;
2504
+ }>;
2505
+ workspaceSnapshotDigest: z.ZodString;
2506
+ }, "strict", z.ZodTypeAny, {
2507
+ attemptId: string;
2508
+ priorSegmentId: string;
2509
+ threadId: string;
2510
+ turnId: string;
2511
+ usageBaseline: {
2512
+ inputTokens: number;
2513
+ outputTokens: number;
2514
+ cachedInputTokens: number;
2515
+ cacheWriteInputTokens: number | null;
2516
+ };
2517
+ workspaceSnapshotDigest: string;
2518
+ }, {
2519
+ attemptId: string;
2520
+ priorSegmentId: string;
2521
+ threadId: string;
2522
+ turnId: string;
2523
+ usageBaseline: {
2524
+ inputTokens: number;
2525
+ outputTokens: number;
2526
+ cachedInputTokens: number;
2527
+ cacheWriteInputTokens: number | null;
2528
+ };
2529
+ workspaceSnapshotDigest: string;
2530
+ }>>;
2531
+ nativeFork: z.ZodOptional<z.ZodObject<{
2532
+ parentTaskId: z.ZodString;
2533
+ parentAttemptId: z.ZodString;
2534
+ parentSegmentId: z.ZodString;
2535
+ parentManifestDigest: z.ZodString;
2536
+ parentThreadId: z.ZodString;
2537
+ parentTurnId: z.ZodString;
2538
+ workspaceSnapshotDigest: z.ZodString;
2539
+ }, "strict", z.ZodTypeAny, {
2540
+ parentTaskId: string;
2541
+ workspaceSnapshotDigest: string;
2542
+ parentAttemptId: string;
2543
+ parentSegmentId: string;
2544
+ parentManifestDigest: string;
2545
+ parentThreadId: string;
2546
+ parentTurnId: string;
2547
+ }, {
2548
+ parentTaskId: string;
2549
+ workspaceSnapshotDigest: string;
2550
+ parentAttemptId: string;
2551
+ parentSegmentId: string;
2552
+ parentManifestDigest: string;
2553
+ parentThreadId: string;
2554
+ parentTurnId: string;
2555
+ }>>;
2556
+ budget: z.ZodNullable<z.ZodObject<{
2557
+ budgetId: z.ZodString;
2558
+ reservationMicroUsd: z.ZodNumber;
2559
+ pricing: z.ZodNullable<z.ZodObject<{
2560
+ schemaVersion: z.ZodLiteral<1>;
2561
+ currency: z.ZodLiteral<"USD">;
2562
+ provider: z.ZodString;
2563
+ model: z.ZodString;
2564
+ version: z.ZodString;
2565
+ sourceUrl: z.ZodEffects<z.ZodString, string, string>;
2566
+ inputAccounting: z.ZodEnum<["excludes_cache", "includes_read_only", "includes_read_and_write"]>;
2567
+ rates: z.ZodObject<{
2568
+ input: z.ZodNullable<z.ZodNumber>;
2569
+ output: z.ZodNullable<z.ZodNumber>;
2570
+ cache_read: z.ZodNullable<z.ZodNumber>;
2571
+ cache_write_short: z.ZodNullable<z.ZodNumber>;
2572
+ cache_write_long: z.ZodNullable<z.ZodNumber>;
2573
+ cache_write_unspecified: z.ZodNullable<z.ZodNumber>;
2574
+ cache_storage: z.ZodNullable<z.ZodNumber>;
2575
+ }, "strict", z.ZodTypeAny, {
2576
+ input: number | null;
2577
+ output: number | null;
2578
+ cache_read: number | null;
2579
+ cache_write_short: number | null;
2580
+ cache_write_long: number | null;
2581
+ cache_write_unspecified: number | null;
2582
+ cache_storage: number | null;
2583
+ }, {
2584
+ input: number | null;
2585
+ output: number | null;
2586
+ cache_read: number | null;
2587
+ cache_write_short: number | null;
2588
+ cache_write_long: number | null;
2589
+ cache_write_unspecified: number | null;
2590
+ cache_storage: number | null;
2591
+ }>;
2592
+ }, "strict", z.ZodTypeAny, {
2593
+ version: string;
2594
+ provider: string;
2595
+ model: string;
2596
+ schemaVersion: 1;
2597
+ currency: "USD";
2598
+ sourceUrl: string;
2599
+ inputAccounting: "excludes_cache" | "includes_read_only" | "includes_read_and_write";
2600
+ rates: {
2601
+ input: number | null;
2602
+ output: number | null;
2603
+ cache_read: number | null;
2604
+ cache_write_short: number | null;
2605
+ cache_write_long: number | null;
2606
+ cache_write_unspecified: number | null;
2607
+ cache_storage: number | null;
2608
+ };
2609
+ }, {
2610
+ version: string;
2611
+ provider: string;
2612
+ model: string;
2613
+ schemaVersion: 1;
2614
+ currency: "USD";
2615
+ sourceUrl: string;
2616
+ inputAccounting: "excludes_cache" | "includes_read_only" | "includes_read_and_write";
2617
+ rates: {
2618
+ input: number | null;
2619
+ output: number | null;
2620
+ cache_read: number | null;
2621
+ cache_write_short: number | null;
2622
+ cache_write_long: number | null;
2623
+ cache_write_unspecified: number | null;
2624
+ cache_storage: number | null;
2625
+ };
2626
+ }>>;
2627
+ }, "strict", z.ZodTypeAny, {
2628
+ pricing: {
2629
+ version: string;
2630
+ provider: string;
2631
+ model: string;
2632
+ schemaVersion: 1;
2633
+ currency: "USD";
2634
+ sourceUrl: string;
2635
+ inputAccounting: "excludes_cache" | "includes_read_only" | "includes_read_and_write";
2636
+ rates: {
2637
+ input: number | null;
2638
+ output: number | null;
2639
+ cache_read: number | null;
2640
+ cache_write_short: number | null;
2641
+ cache_write_long: number | null;
2642
+ cache_write_unspecified: number | null;
2643
+ cache_storage: number | null;
2644
+ };
2645
+ } | null;
2646
+ budgetId: string;
2647
+ reservationMicroUsd: number;
2648
+ }, {
2649
+ pricing: {
2650
+ version: string;
2651
+ provider: string;
2652
+ model: string;
2653
+ schemaVersion: 1;
2654
+ currency: "USD";
2655
+ sourceUrl: string;
2656
+ inputAccounting: "excludes_cache" | "includes_read_only" | "includes_read_and_write";
2657
+ rates: {
2658
+ input: number | null;
2659
+ output: number | null;
2660
+ cache_read: number | null;
2661
+ cache_write_short: number | null;
2662
+ cache_write_long: number | null;
2663
+ cache_write_unspecified: number | null;
2664
+ cache_storage: number | null;
2665
+ };
2666
+ } | null;
2667
+ budgetId: string;
2668
+ reservationMicroUsd: number;
2669
+ }>>;
2670
+ requiresIsolatedSecrets: z.ZodDefault<z.ZodBoolean>;
2671
+ requiresManagedContainment: z.ZodDefault<z.ZodBoolean>;
2672
+ requiresProviderEgressEnforcement: z.ZodDefault<z.ZodBoolean>;
2673
+ requiresBrokeredExternalActions: z.ZodDefault<z.ZodBoolean>;
2674
+ }, "strict", z.ZodTypeAny, {
2675
+ budget: {
2676
+ pricing: {
2677
+ version: string;
2678
+ provider: string;
2679
+ model: string;
2680
+ schemaVersion: 1;
2681
+ currency: "USD";
2682
+ sourceUrl: string;
2683
+ inputAccounting: "excludes_cache" | "includes_read_only" | "includes_read_and_write";
2684
+ rates: {
2685
+ input: number | null;
2686
+ output: number | null;
2687
+ cache_read: number | null;
2688
+ cache_write_short: number | null;
2689
+ cache_write_long: number | null;
2690
+ cache_write_unspecified: number | null;
2691
+ cache_storage: number | null;
2692
+ };
2693
+ } | null;
2694
+ budgetId: string;
2695
+ reservationMicroUsd: number;
2696
+ } | null;
2697
+ persistHistory: boolean;
2698
+ requiresIsolatedSecrets: boolean;
2699
+ requiresManagedContainment: boolean;
2700
+ requiresProviderEgressEnforcement: boolean;
2701
+ requiresBrokeredExternalActions: boolean;
2702
+ nativeResume?: {
2703
+ attemptId: string;
2704
+ priorSegmentId: string;
2705
+ threadId: string;
2706
+ turnId: string;
2707
+ usageBaseline: {
2708
+ inputTokens: number;
2709
+ outputTokens: number;
2710
+ cachedInputTokens: number;
2711
+ cacheWriteInputTokens: number | null;
2712
+ };
2713
+ workspaceSnapshotDigest: string;
2714
+ } | undefined;
2715
+ nativeFork?: {
2716
+ parentTaskId: string;
2717
+ workspaceSnapshotDigest: string;
2718
+ parentAttemptId: string;
2719
+ parentSegmentId: string;
2720
+ parentManifestDigest: string;
2721
+ parentThreadId: string;
2722
+ parentTurnId: string;
2723
+ } | undefined;
2724
+ }, {
2725
+ budget: {
2726
+ pricing: {
2727
+ version: string;
2728
+ provider: string;
2729
+ model: string;
2730
+ schemaVersion: 1;
2731
+ currency: "USD";
2732
+ sourceUrl: string;
2733
+ inputAccounting: "excludes_cache" | "includes_read_only" | "includes_read_and_write";
2734
+ rates: {
2735
+ input: number | null;
2736
+ output: number | null;
2737
+ cache_read: number | null;
2738
+ cache_write_short: number | null;
2739
+ cache_write_long: number | null;
2740
+ cache_write_unspecified: number | null;
2741
+ cache_storage: number | null;
2742
+ };
2743
+ } | null;
2744
+ budgetId: string;
2745
+ reservationMicroUsd: number;
2746
+ } | null;
2747
+ persistHistory?: boolean | undefined;
2748
+ nativeResume?: {
2749
+ attemptId: string;
2750
+ priorSegmentId: string;
2751
+ threadId: string;
2752
+ turnId: string;
2753
+ usageBaseline: {
2754
+ inputTokens: number;
2755
+ outputTokens: number;
2756
+ cachedInputTokens: number;
2757
+ cacheWriteInputTokens: number | null;
2758
+ };
2759
+ workspaceSnapshotDigest: string;
2760
+ } | undefined;
2761
+ nativeFork?: {
2762
+ parentTaskId: string;
2763
+ workspaceSnapshotDigest: string;
2764
+ parentAttemptId: string;
2765
+ parentSegmentId: string;
2766
+ parentManifestDigest: string;
2767
+ parentThreadId: string;
2768
+ parentTurnId: string;
2769
+ } | undefined;
2770
+ requiresIsolatedSecrets?: boolean | undefined;
2771
+ requiresManagedContainment?: boolean | undefined;
2772
+ requiresProviderEgressEnforcement?: boolean | undefined;
2773
+ requiresBrokeredExternalActions?: boolean | undefined;
2774
+ }>;
2775
+ capabilities: z.ZodObject<{
2776
+ workspaceSandbox: z.ZodLiteral<"harness_workspace_write">;
2777
+ childNetworkPolicy: z.ZodLiteral<"disabled_in_requested_harness_policy">;
2778
+ isolatedSecrets: z.ZodLiteral<false>;
2779
+ managedContainment: z.ZodLiteral<false>;
2780
+ providerEgressEnforcement: z.ZodLiteral<false>;
2781
+ brokeredExternalActions: z.ZodLiteral<false>;
2782
+ limitation: z.ZodString;
2783
+ }, "strict", z.ZodTypeAny, {
2784
+ workspaceSandbox: "harness_workspace_write";
2785
+ childNetworkPolicy: "disabled_in_requested_harness_policy";
2786
+ isolatedSecrets: false;
2787
+ managedContainment: false;
2788
+ providerEgressEnforcement: false;
2789
+ brokeredExternalActions: false;
2790
+ limitation: string;
2791
+ }, {
2792
+ workspaceSandbox: "harness_workspace_write";
2793
+ childNetworkPolicy: "disabled_in_requested_harness_policy";
2794
+ isolatedSecrets: false;
2795
+ managedContainment: false;
2796
+ providerEgressEnforcement: false;
2797
+ brokeredExternalActions: false;
2798
+ limitation: string;
2799
+ }>;
2800
+ }, "strict", z.ZodTypeAny, {
2801
+ capabilities: {
2802
+ workspaceSandbox: "harness_workspace_write";
2803
+ childNetworkPolicy: "disabled_in_requested_harness_policy";
2804
+ isolatedSecrets: false;
2805
+ managedContainment: false;
2806
+ providerEgressEnforcement: false;
2807
+ brokeredExternalActions: false;
2808
+ limitation: string;
2809
+ };
2810
+ policy: {
2811
+ budget: {
2812
+ pricing: {
2813
+ version: string;
2814
+ provider: string;
2815
+ model: string;
2816
+ schemaVersion: 1;
2817
+ currency: "USD";
2818
+ sourceUrl: string;
2819
+ inputAccounting: "excludes_cache" | "includes_read_only" | "includes_read_and_write";
2820
+ rates: {
2821
+ input: number | null;
2822
+ output: number | null;
2823
+ cache_read: number | null;
2824
+ cache_write_short: number | null;
2825
+ cache_write_long: number | null;
2826
+ cache_write_unspecified: number | null;
2827
+ cache_storage: number | null;
2828
+ };
2829
+ } | null;
2830
+ budgetId: string;
2831
+ reservationMicroUsd: number;
2832
+ } | null;
2833
+ persistHistory: boolean;
2834
+ requiresIsolatedSecrets: boolean;
2835
+ requiresManagedContainment: boolean;
2836
+ requiresProviderEgressEnforcement: boolean;
2837
+ requiresBrokeredExternalActions: boolean;
2838
+ nativeResume?: {
2839
+ attemptId: string;
2840
+ priorSegmentId: string;
2841
+ threadId: string;
2842
+ turnId: string;
2843
+ usageBaseline: {
2844
+ inputTokens: number;
2845
+ outputTokens: number;
2846
+ cachedInputTokens: number;
2847
+ cacheWriteInputTokens: number | null;
2848
+ };
2849
+ workspaceSnapshotDigest: string;
2850
+ } | undefined;
2851
+ nativeFork?: {
2852
+ parentTaskId: string;
2853
+ workspaceSnapshotDigest: string;
2854
+ parentAttemptId: string;
2855
+ parentSegmentId: string;
2856
+ parentManifestDigest: string;
2857
+ parentThreadId: string;
2858
+ parentTurnId: string;
2859
+ } | undefined;
2860
+ };
2861
+ schemaVersion: 1;
2862
+ manifestDigest: string;
2863
+ manifest: {
2864
+ taskId: string;
2865
+ harness: string;
2866
+ schemaVersion: 1;
2867
+ objective: string;
2868
+ acceptanceCriteria: {
2869
+ id: string;
2870
+ text: string;
2871
+ }[];
2872
+ revision: number;
2873
+ repository: {
2874
+ path: string;
2875
+ repositoryId: string;
2876
+ baseCommit: string;
2877
+ };
2878
+ routing: {
2879
+ mode: "direct";
2880
+ leadId: string;
2881
+ } | {
2882
+ mode: "pool";
2883
+ poolId: string;
2884
+ };
2885
+ maxAttempts: number;
2886
+ model?: string | null | undefined;
2887
+ source?: {
2888
+ sourceId: string;
2889
+ sourceRevision: number;
2890
+ inputDigest: string;
2891
+ operationId: string;
2892
+ } | undefined;
2893
+ dependencyBinding?: string | undefined;
2894
+ };
2895
+ runnerId: string;
2896
+ expiresAtMs: number;
2897
+ invocation: {
2898
+ command: string;
2899
+ args: string[];
2900
+ executableDigest: string;
2901
+ workspace: string;
2902
+ stdinDigest: string;
2903
+ timeoutMs: number;
2904
+ providerDestinations: string[];
2905
+ providerDestinationEnforcement: "expected_only";
2906
+ transport: "codex_exec" | "codex_app_server";
2907
+ configuration?: unknown;
2908
+ nativeBinding?: unknown;
2909
+ };
2910
+ permittedOperations: string[];
2911
+ prohibitedExternalOperations: string[];
2912
+ }, {
2913
+ capabilities: {
2914
+ workspaceSandbox: "harness_workspace_write";
2915
+ childNetworkPolicy: "disabled_in_requested_harness_policy";
2916
+ isolatedSecrets: false;
2917
+ managedContainment: false;
2918
+ providerEgressEnforcement: false;
2919
+ brokeredExternalActions: false;
2920
+ limitation: string;
2921
+ };
2922
+ policy: {
2923
+ budget: {
2924
+ pricing: {
2925
+ version: string;
2926
+ provider: string;
2927
+ model: string;
2928
+ schemaVersion: 1;
2929
+ currency: "USD";
2930
+ sourceUrl: string;
2931
+ inputAccounting: "excludes_cache" | "includes_read_only" | "includes_read_and_write";
2932
+ rates: {
2933
+ input: number | null;
2934
+ output: number | null;
2935
+ cache_read: number | null;
2936
+ cache_write_short: number | null;
2937
+ cache_write_long: number | null;
2938
+ cache_write_unspecified: number | null;
2939
+ cache_storage: number | null;
2940
+ };
2941
+ } | null;
2942
+ budgetId: string;
2943
+ reservationMicroUsd: number;
2944
+ } | null;
2945
+ persistHistory?: boolean | undefined;
2946
+ nativeResume?: {
2947
+ attemptId: string;
2948
+ priorSegmentId: string;
2949
+ threadId: string;
2950
+ turnId: string;
2951
+ usageBaseline: {
2952
+ inputTokens: number;
2953
+ outputTokens: number;
2954
+ cachedInputTokens: number;
2955
+ cacheWriteInputTokens: number | null;
2956
+ };
2957
+ workspaceSnapshotDigest: string;
2958
+ } | undefined;
2959
+ nativeFork?: {
2960
+ parentTaskId: string;
2961
+ workspaceSnapshotDigest: string;
2962
+ parentAttemptId: string;
2963
+ parentSegmentId: string;
2964
+ parentManifestDigest: string;
2965
+ parentThreadId: string;
2966
+ parentTurnId: string;
2967
+ } | undefined;
2968
+ requiresIsolatedSecrets?: boolean | undefined;
2969
+ requiresManagedContainment?: boolean | undefined;
2970
+ requiresProviderEgressEnforcement?: boolean | undefined;
2971
+ requiresBrokeredExternalActions?: boolean | undefined;
2972
+ };
2973
+ schemaVersion: 1;
2974
+ manifestDigest: string;
2975
+ manifest: {
2976
+ taskId: string;
2977
+ harness: string;
2978
+ schemaVersion: 1;
2979
+ objective: string;
2980
+ acceptanceCriteria: {
2981
+ id: string;
2982
+ text: string;
2983
+ }[];
2984
+ revision: number;
2985
+ repository: {
2986
+ path: string;
2987
+ repositoryId: string;
2988
+ baseCommit: string;
2989
+ };
2990
+ routing: {
2991
+ mode: "direct";
2992
+ leadId: string;
2993
+ } | {
2994
+ mode: "pool";
2995
+ poolId: string;
2996
+ };
2997
+ maxAttempts: number;
2998
+ model?: string | null | undefined;
2999
+ source?: {
3000
+ sourceId: string;
3001
+ sourceRevision: number;
3002
+ inputDigest: string;
3003
+ operationId: string;
3004
+ } | undefined;
3005
+ dependencyBinding?: string | undefined;
3006
+ };
3007
+ runnerId: string;
3008
+ expiresAtMs: number;
3009
+ invocation: {
3010
+ command: string;
3011
+ args: string[];
3012
+ executableDigest: string;
3013
+ workspace: string;
3014
+ stdinDigest: string;
3015
+ timeoutMs: number;
3016
+ providerDestinations: string[];
3017
+ providerDestinationEnforcement: "expected_only";
3018
+ transport: "codex_exec" | "codex_app_server";
3019
+ configuration?: unknown;
3020
+ nativeBinding?: unknown;
3021
+ };
3022
+ permittedOperations: string[];
3023
+ prohibitedExternalOperations: string[];
3024
+ }>, {
3025
+ capabilities: {
3026
+ workspaceSandbox: "harness_workspace_write";
3027
+ childNetworkPolicy: "disabled_in_requested_harness_policy";
3028
+ isolatedSecrets: false;
3029
+ managedContainment: false;
3030
+ providerEgressEnforcement: false;
3031
+ brokeredExternalActions: false;
3032
+ limitation: string;
3033
+ };
3034
+ policy: {
3035
+ budget: {
3036
+ pricing: {
3037
+ version: string;
3038
+ provider: string;
3039
+ model: string;
3040
+ schemaVersion: 1;
3041
+ currency: "USD";
3042
+ sourceUrl: string;
3043
+ inputAccounting: "excludes_cache" | "includes_read_only" | "includes_read_and_write";
3044
+ rates: {
3045
+ input: number | null;
3046
+ output: number | null;
3047
+ cache_read: number | null;
3048
+ cache_write_short: number | null;
3049
+ cache_write_long: number | null;
3050
+ cache_write_unspecified: number | null;
3051
+ cache_storage: number | null;
3052
+ };
3053
+ } | null;
3054
+ budgetId: string;
3055
+ reservationMicroUsd: number;
3056
+ } | null;
3057
+ persistHistory: boolean;
3058
+ requiresIsolatedSecrets: boolean;
3059
+ requiresManagedContainment: boolean;
3060
+ requiresProviderEgressEnforcement: boolean;
3061
+ requiresBrokeredExternalActions: boolean;
3062
+ nativeResume?: {
3063
+ attemptId: string;
3064
+ priorSegmentId: string;
3065
+ threadId: string;
3066
+ turnId: string;
3067
+ usageBaseline: {
3068
+ inputTokens: number;
3069
+ outputTokens: number;
3070
+ cachedInputTokens: number;
3071
+ cacheWriteInputTokens: number | null;
3072
+ };
3073
+ workspaceSnapshotDigest: string;
3074
+ } | undefined;
3075
+ nativeFork?: {
3076
+ parentTaskId: string;
3077
+ workspaceSnapshotDigest: string;
3078
+ parentAttemptId: string;
3079
+ parentSegmentId: string;
3080
+ parentManifestDigest: string;
3081
+ parentThreadId: string;
3082
+ parentTurnId: string;
3083
+ } | undefined;
3084
+ };
3085
+ schemaVersion: 1;
3086
+ manifestDigest: string;
3087
+ manifest: {
3088
+ taskId: string;
3089
+ harness: string;
3090
+ schemaVersion: 1;
3091
+ objective: string;
3092
+ acceptanceCriteria: {
3093
+ id: string;
3094
+ text: string;
3095
+ }[];
3096
+ revision: number;
3097
+ repository: {
3098
+ path: string;
3099
+ repositoryId: string;
3100
+ baseCommit: string;
3101
+ };
3102
+ routing: {
3103
+ mode: "direct";
3104
+ leadId: string;
3105
+ } | {
3106
+ mode: "pool";
3107
+ poolId: string;
3108
+ };
3109
+ maxAttempts: number;
3110
+ model?: string | null | undefined;
3111
+ source?: {
3112
+ sourceId: string;
3113
+ sourceRevision: number;
3114
+ inputDigest: string;
3115
+ operationId: string;
3116
+ } | undefined;
3117
+ dependencyBinding?: string | undefined;
3118
+ };
3119
+ runnerId: string;
3120
+ expiresAtMs: number;
3121
+ invocation: {
3122
+ command: string;
3123
+ args: string[];
3124
+ executableDigest: string;
3125
+ workspace: string;
3126
+ stdinDigest: string;
3127
+ timeoutMs: number;
3128
+ providerDestinations: string[];
3129
+ providerDestinationEnforcement: "expected_only";
3130
+ transport: "codex_exec" | "codex_app_server";
3131
+ configuration?: unknown;
3132
+ nativeBinding?: unknown;
3133
+ };
3134
+ permittedOperations: string[];
3135
+ prohibitedExternalOperations: string[];
3136
+ }, {
3137
+ capabilities: {
3138
+ workspaceSandbox: "harness_workspace_write";
3139
+ childNetworkPolicy: "disabled_in_requested_harness_policy";
3140
+ isolatedSecrets: false;
3141
+ managedContainment: false;
3142
+ providerEgressEnforcement: false;
3143
+ brokeredExternalActions: false;
3144
+ limitation: string;
3145
+ };
3146
+ policy: {
3147
+ budget: {
3148
+ pricing: {
3149
+ version: string;
3150
+ provider: string;
3151
+ model: string;
3152
+ schemaVersion: 1;
3153
+ currency: "USD";
3154
+ sourceUrl: string;
3155
+ inputAccounting: "excludes_cache" | "includes_read_only" | "includes_read_and_write";
3156
+ rates: {
3157
+ input: number | null;
3158
+ output: number | null;
3159
+ cache_read: number | null;
3160
+ cache_write_short: number | null;
3161
+ cache_write_long: number | null;
3162
+ cache_write_unspecified: number | null;
3163
+ cache_storage: number | null;
3164
+ };
3165
+ } | null;
3166
+ budgetId: string;
3167
+ reservationMicroUsd: number;
3168
+ } | null;
3169
+ persistHistory?: boolean | undefined;
3170
+ nativeResume?: {
3171
+ attemptId: string;
3172
+ priorSegmentId: string;
3173
+ threadId: string;
3174
+ turnId: string;
3175
+ usageBaseline: {
3176
+ inputTokens: number;
3177
+ outputTokens: number;
3178
+ cachedInputTokens: number;
3179
+ cacheWriteInputTokens: number | null;
3180
+ };
3181
+ workspaceSnapshotDigest: string;
3182
+ } | undefined;
3183
+ nativeFork?: {
3184
+ parentTaskId: string;
3185
+ workspaceSnapshotDigest: string;
3186
+ parentAttemptId: string;
3187
+ parentSegmentId: string;
3188
+ parentManifestDigest: string;
3189
+ parentThreadId: string;
3190
+ parentTurnId: string;
3191
+ } | undefined;
3192
+ requiresIsolatedSecrets?: boolean | undefined;
3193
+ requiresManagedContainment?: boolean | undefined;
3194
+ requiresProviderEgressEnforcement?: boolean | undefined;
3195
+ requiresBrokeredExternalActions?: boolean | undefined;
3196
+ };
3197
+ schemaVersion: 1;
3198
+ manifestDigest: string;
3199
+ manifest: {
3200
+ taskId: string;
3201
+ harness: string;
3202
+ schemaVersion: 1;
3203
+ objective: string;
3204
+ acceptanceCriteria: {
3205
+ id: string;
3206
+ text: string;
3207
+ }[];
3208
+ revision: number;
3209
+ repository: {
3210
+ path: string;
3211
+ repositoryId: string;
3212
+ baseCommit: string;
3213
+ };
3214
+ routing: {
3215
+ mode: "direct";
3216
+ leadId: string;
3217
+ } | {
3218
+ mode: "pool";
3219
+ poolId: string;
3220
+ };
3221
+ maxAttempts: number;
3222
+ model?: string | null | undefined;
3223
+ source?: {
3224
+ sourceId: string;
3225
+ sourceRevision: number;
3226
+ inputDigest: string;
3227
+ operationId: string;
3228
+ } | undefined;
3229
+ dependencyBinding?: string | undefined;
3230
+ };
3231
+ runnerId: string;
3232
+ expiresAtMs: number;
3233
+ invocation: {
3234
+ command: string;
3235
+ args: string[];
3236
+ executableDigest: string;
3237
+ workspace: string;
3238
+ stdinDigest: string;
3239
+ timeoutMs: number;
3240
+ providerDestinations: string[];
3241
+ providerDestinationEnforcement: "expected_only";
3242
+ transport: "codex_exec" | "codex_app_server";
3243
+ configuration?: unknown;
3244
+ nativeBinding?: unknown;
3245
+ };
3246
+ permittedOperations: string[];
3247
+ prohibitedExternalOperations: string[];
3248
+ }>;
3249
+ }, "strict", z.ZodTypeAny, {
3250
+ schemaVersion: 1;
3251
+ review: {
3252
+ capabilities: {
3253
+ workspaceSandbox: "harness_workspace_write";
3254
+ childNetworkPolicy: "disabled_in_requested_harness_policy";
3255
+ isolatedSecrets: false;
3256
+ managedContainment: false;
3257
+ providerEgressEnforcement: false;
3258
+ brokeredExternalActions: false;
3259
+ limitation: string;
3260
+ };
3261
+ policy: {
3262
+ budget: {
3263
+ pricing: {
3264
+ version: string;
3265
+ provider: string;
3266
+ model: string;
3267
+ schemaVersion: 1;
3268
+ currency: "USD";
3269
+ sourceUrl: string;
3270
+ inputAccounting: "excludes_cache" | "includes_read_only" | "includes_read_and_write";
3271
+ rates: {
3272
+ input: number | null;
3273
+ output: number | null;
3274
+ cache_read: number | null;
3275
+ cache_write_short: number | null;
3276
+ cache_write_long: number | null;
3277
+ cache_write_unspecified: number | null;
3278
+ cache_storage: number | null;
3279
+ };
3280
+ } | null;
3281
+ budgetId: string;
3282
+ reservationMicroUsd: number;
3283
+ } | null;
3284
+ persistHistory: boolean;
3285
+ requiresIsolatedSecrets: boolean;
3286
+ requiresManagedContainment: boolean;
3287
+ requiresProviderEgressEnforcement: boolean;
3288
+ requiresBrokeredExternalActions: boolean;
3289
+ nativeResume?: {
3290
+ attemptId: string;
3291
+ priorSegmentId: string;
3292
+ threadId: string;
3293
+ turnId: string;
3294
+ usageBaseline: {
3295
+ inputTokens: number;
3296
+ outputTokens: number;
3297
+ cachedInputTokens: number;
3298
+ cacheWriteInputTokens: number | null;
3299
+ };
3300
+ workspaceSnapshotDigest: string;
3301
+ } | undefined;
3302
+ nativeFork?: {
3303
+ parentTaskId: string;
3304
+ workspaceSnapshotDigest: string;
3305
+ parentAttemptId: string;
3306
+ parentSegmentId: string;
3307
+ parentManifestDigest: string;
3308
+ parentThreadId: string;
3309
+ parentTurnId: string;
3310
+ } | undefined;
3311
+ };
3312
+ schemaVersion: 1;
3313
+ manifestDigest: string;
3314
+ manifest: {
3315
+ taskId: string;
3316
+ harness: string;
3317
+ schemaVersion: 1;
3318
+ objective: string;
3319
+ acceptanceCriteria: {
3320
+ id: string;
3321
+ text: string;
3322
+ }[];
3323
+ revision: number;
3324
+ repository: {
3325
+ path: string;
3326
+ repositoryId: string;
3327
+ baseCommit: string;
3328
+ };
3329
+ routing: {
3330
+ mode: "direct";
3331
+ leadId: string;
3332
+ } | {
3333
+ mode: "pool";
3334
+ poolId: string;
3335
+ };
3336
+ maxAttempts: number;
3337
+ model?: string | null | undefined;
3338
+ source?: {
3339
+ sourceId: string;
3340
+ sourceRevision: number;
3341
+ inputDigest: string;
3342
+ operationId: string;
3343
+ } | undefined;
3344
+ dependencyBinding?: string | undefined;
3345
+ };
3346
+ runnerId: string;
3347
+ expiresAtMs: number;
3348
+ invocation: {
3349
+ command: string;
3350
+ args: string[];
3351
+ executableDigest: string;
3352
+ workspace: string;
3353
+ stdinDigest: string;
3354
+ timeoutMs: number;
3355
+ providerDestinations: string[];
3356
+ providerDestinationEnforcement: "expected_only";
3357
+ transport: "codex_exec" | "codex_app_server";
3358
+ configuration?: unknown;
3359
+ nativeBinding?: unknown;
3360
+ };
3361
+ permittedOperations: string[];
3362
+ prohibitedExternalOperations: string[];
3363
+ };
3364
+ admissionRef: string;
3365
+ admission: {
3366
+ projectId: string;
3367
+ organizationId: string;
3368
+ capabilities: ("task.execute" | "model.invoke" | "github.branch.write" | "github.pull_request.draft")[];
3369
+ expiresAt: string;
3370
+ taskId: string;
3371
+ notBefore: string;
3372
+ specRevision: number;
3373
+ manifestDigest: string;
3374
+ sourceRevision: number;
3375
+ repository: string;
3376
+ attemptNumber: number;
3377
+ ownerEpoch: number;
3378
+ admissionId: string;
3379
+ schema: "kya.task.admission.v1";
3380
+ installationId: string;
3381
+ baseSha: string;
3382
+ sourceOperationId: string;
3383
+ executionOperationId: string;
3384
+ branch: string;
3385
+ limits: {
3386
+ maxRuntimeSeconds: number;
3387
+ maxOperations: number;
3388
+ maxCostMicrousd: number;
3389
+ };
3390
+ leadDid: string;
3391
+ holderDid: string;
3392
+ policyProvenance: "administrator_registered";
3393
+ requiresOnlineActionGate: true;
3394
+ credentialExport: false;
3395
+ modelPolicy?: {
3396
+ provider: "anthropic";
3397
+ models: string[];
3398
+ maxOutputTokens: number;
3399
+ maxRequestBytes: number;
3400
+ reservedCostMicrousd: number;
3401
+ } | undefined;
3402
+ };
3403
+ config: {
3404
+ projectId: string;
3405
+ organizationId: string;
3406
+ origin: string;
3407
+ ownerEpoch: number;
3408
+ destinationDid: string;
3409
+ acceptedProviders?: ("discord" | "linear" | "github" | "didcomm" | "a2a")[] | undefined;
3410
+ };
3411
+ workerProfile: string;
3412
+ startOperationId: string;
3413
+ }, {
3414
+ schemaVersion: 1;
3415
+ review: {
3416
+ capabilities: {
3417
+ workspaceSandbox: "harness_workspace_write";
3418
+ childNetworkPolicy: "disabled_in_requested_harness_policy";
3419
+ isolatedSecrets: false;
3420
+ managedContainment: false;
3421
+ providerEgressEnforcement: false;
3422
+ brokeredExternalActions: false;
3423
+ limitation: string;
3424
+ };
3425
+ policy: {
3426
+ budget: {
3427
+ pricing: {
3428
+ version: string;
3429
+ provider: string;
3430
+ model: string;
3431
+ schemaVersion: 1;
3432
+ currency: "USD";
3433
+ sourceUrl: string;
3434
+ inputAccounting: "excludes_cache" | "includes_read_only" | "includes_read_and_write";
3435
+ rates: {
3436
+ input: number | null;
3437
+ output: number | null;
3438
+ cache_read: number | null;
3439
+ cache_write_short: number | null;
3440
+ cache_write_long: number | null;
3441
+ cache_write_unspecified: number | null;
3442
+ cache_storage: number | null;
3443
+ };
3444
+ } | null;
3445
+ budgetId: string;
3446
+ reservationMicroUsd: number;
3447
+ } | null;
3448
+ persistHistory?: boolean | undefined;
3449
+ nativeResume?: {
3450
+ attemptId: string;
3451
+ priorSegmentId: string;
3452
+ threadId: string;
3453
+ turnId: string;
3454
+ usageBaseline: {
3455
+ inputTokens: number;
3456
+ outputTokens: number;
3457
+ cachedInputTokens: number;
3458
+ cacheWriteInputTokens: number | null;
3459
+ };
3460
+ workspaceSnapshotDigest: string;
3461
+ } | undefined;
3462
+ nativeFork?: {
3463
+ parentTaskId: string;
3464
+ workspaceSnapshotDigest: string;
3465
+ parentAttemptId: string;
3466
+ parentSegmentId: string;
3467
+ parentManifestDigest: string;
3468
+ parentThreadId: string;
3469
+ parentTurnId: string;
3470
+ } | undefined;
3471
+ requiresIsolatedSecrets?: boolean | undefined;
3472
+ requiresManagedContainment?: boolean | undefined;
3473
+ requiresProviderEgressEnforcement?: boolean | undefined;
3474
+ requiresBrokeredExternalActions?: boolean | undefined;
3475
+ };
3476
+ schemaVersion: 1;
3477
+ manifestDigest: string;
3478
+ manifest: {
3479
+ taskId: string;
3480
+ harness: string;
3481
+ schemaVersion: 1;
3482
+ objective: string;
3483
+ acceptanceCriteria: {
3484
+ id: string;
3485
+ text: string;
3486
+ }[];
3487
+ revision: number;
3488
+ repository: {
3489
+ path: string;
3490
+ repositoryId: string;
3491
+ baseCommit: string;
3492
+ };
3493
+ routing: {
3494
+ mode: "direct";
3495
+ leadId: string;
3496
+ } | {
3497
+ mode: "pool";
3498
+ poolId: string;
3499
+ };
3500
+ maxAttempts: number;
3501
+ model?: string | null | undefined;
3502
+ source?: {
3503
+ sourceId: string;
3504
+ sourceRevision: number;
3505
+ inputDigest: string;
3506
+ operationId: string;
3507
+ } | undefined;
3508
+ dependencyBinding?: string | undefined;
3509
+ };
3510
+ runnerId: string;
3511
+ expiresAtMs: number;
3512
+ invocation: {
3513
+ command: string;
3514
+ args: string[];
3515
+ executableDigest: string;
3516
+ workspace: string;
3517
+ stdinDigest: string;
3518
+ timeoutMs: number;
3519
+ providerDestinations: string[];
3520
+ providerDestinationEnforcement: "expected_only";
3521
+ transport: "codex_exec" | "codex_app_server";
3522
+ configuration?: unknown;
3523
+ nativeBinding?: unknown;
3524
+ };
3525
+ permittedOperations: string[];
3526
+ prohibitedExternalOperations: string[];
3527
+ };
3528
+ admissionRef: string;
3529
+ admission: {
3530
+ projectId: string;
3531
+ organizationId: string;
3532
+ capabilities: ("task.execute" | "model.invoke" | "github.branch.write" | "github.pull_request.draft")[];
3533
+ expiresAt: string;
3534
+ taskId: string;
3535
+ notBefore: string;
3536
+ specRevision: number;
3537
+ manifestDigest: string;
3538
+ sourceRevision: number;
3539
+ repository: string;
3540
+ attemptNumber: number;
3541
+ ownerEpoch: number;
3542
+ admissionId: string;
3543
+ schema: "kya.task.admission.v1";
3544
+ installationId: string;
3545
+ baseSha: string;
3546
+ sourceOperationId: string;
3547
+ executionOperationId: string;
3548
+ branch: string;
3549
+ limits: {
3550
+ maxRuntimeSeconds: number;
3551
+ maxOperations: number;
3552
+ maxCostMicrousd: number;
3553
+ };
3554
+ leadDid: string;
3555
+ holderDid: string;
3556
+ policyProvenance: "administrator_registered";
3557
+ requiresOnlineActionGate: true;
3558
+ credentialExport: false;
3559
+ modelPolicy?: {
3560
+ provider: "anthropic";
3561
+ models: string[];
3562
+ maxOutputTokens: number;
3563
+ maxRequestBytes: number;
3564
+ reservedCostMicrousd: number;
3565
+ } | undefined;
3566
+ };
3567
+ config: {
3568
+ projectId: string;
3569
+ organizationId: string;
3570
+ origin: string;
3571
+ ownerEpoch: number;
3572
+ destinationDid: string;
3573
+ acceptedProviders?: ("discord" | "linear" | "github" | "didcomm" | "a2a")[] | undefined;
3574
+ };
3575
+ workerProfile: string;
3576
+ startOperationId: string;
3577
+ }>, {
3578
+ schemaVersion: 1;
3579
+ review: {
3580
+ capabilities: {
3581
+ workspaceSandbox: "harness_workspace_write";
3582
+ childNetworkPolicy: "disabled_in_requested_harness_policy";
3583
+ isolatedSecrets: false;
3584
+ managedContainment: false;
3585
+ providerEgressEnforcement: false;
3586
+ brokeredExternalActions: false;
3587
+ limitation: string;
3588
+ };
3589
+ policy: {
3590
+ budget: {
3591
+ pricing: {
3592
+ version: string;
3593
+ provider: string;
3594
+ model: string;
3595
+ schemaVersion: 1;
3596
+ currency: "USD";
3597
+ sourceUrl: string;
3598
+ inputAccounting: "excludes_cache" | "includes_read_only" | "includes_read_and_write";
3599
+ rates: {
3600
+ input: number | null;
3601
+ output: number | null;
3602
+ cache_read: number | null;
3603
+ cache_write_short: number | null;
3604
+ cache_write_long: number | null;
3605
+ cache_write_unspecified: number | null;
3606
+ cache_storage: number | null;
3607
+ };
3608
+ } | null;
3609
+ budgetId: string;
3610
+ reservationMicroUsd: number;
3611
+ } | null;
3612
+ persistHistory: boolean;
3613
+ requiresIsolatedSecrets: boolean;
3614
+ requiresManagedContainment: boolean;
3615
+ requiresProviderEgressEnforcement: boolean;
3616
+ requiresBrokeredExternalActions: boolean;
3617
+ nativeResume?: {
3618
+ attemptId: string;
3619
+ priorSegmentId: string;
3620
+ threadId: string;
3621
+ turnId: string;
3622
+ usageBaseline: {
3623
+ inputTokens: number;
3624
+ outputTokens: number;
3625
+ cachedInputTokens: number;
3626
+ cacheWriteInputTokens: number | null;
3627
+ };
3628
+ workspaceSnapshotDigest: string;
3629
+ } | undefined;
3630
+ nativeFork?: {
3631
+ parentTaskId: string;
3632
+ workspaceSnapshotDigest: string;
3633
+ parentAttemptId: string;
3634
+ parentSegmentId: string;
3635
+ parentManifestDigest: string;
3636
+ parentThreadId: string;
3637
+ parentTurnId: string;
3638
+ } | undefined;
3639
+ };
3640
+ schemaVersion: 1;
3641
+ manifestDigest: string;
3642
+ manifest: {
3643
+ taskId: string;
3644
+ harness: string;
3645
+ schemaVersion: 1;
3646
+ objective: string;
3647
+ acceptanceCriteria: {
3648
+ id: string;
3649
+ text: string;
3650
+ }[];
3651
+ revision: number;
3652
+ repository: {
3653
+ path: string;
3654
+ repositoryId: string;
3655
+ baseCommit: string;
3656
+ };
3657
+ routing: {
3658
+ mode: "direct";
3659
+ leadId: string;
3660
+ } | {
3661
+ mode: "pool";
3662
+ poolId: string;
3663
+ };
3664
+ maxAttempts: number;
3665
+ model?: string | null | undefined;
3666
+ source?: {
3667
+ sourceId: string;
3668
+ sourceRevision: number;
3669
+ inputDigest: string;
3670
+ operationId: string;
3671
+ } | undefined;
3672
+ dependencyBinding?: string | undefined;
3673
+ };
3674
+ runnerId: string;
3675
+ expiresAtMs: number;
3676
+ invocation: {
3677
+ command: string;
3678
+ args: string[];
3679
+ executableDigest: string;
3680
+ workspace: string;
3681
+ stdinDigest: string;
3682
+ timeoutMs: number;
3683
+ providerDestinations: string[];
3684
+ providerDestinationEnforcement: "expected_only";
3685
+ transport: "codex_exec" | "codex_app_server";
3686
+ configuration?: unknown;
3687
+ nativeBinding?: unknown;
3688
+ };
3689
+ permittedOperations: string[];
3690
+ prohibitedExternalOperations: string[];
3691
+ };
3692
+ admissionRef: string;
3693
+ admission: {
3694
+ projectId: string;
3695
+ organizationId: string;
3696
+ capabilities: ("task.execute" | "model.invoke" | "github.branch.write" | "github.pull_request.draft")[];
3697
+ expiresAt: string;
3698
+ taskId: string;
3699
+ notBefore: string;
3700
+ specRevision: number;
3701
+ manifestDigest: string;
3702
+ sourceRevision: number;
3703
+ repository: string;
3704
+ attemptNumber: number;
3705
+ ownerEpoch: number;
3706
+ admissionId: string;
3707
+ schema: "kya.task.admission.v1";
3708
+ installationId: string;
3709
+ baseSha: string;
3710
+ sourceOperationId: string;
3711
+ executionOperationId: string;
3712
+ branch: string;
3713
+ limits: {
3714
+ maxRuntimeSeconds: number;
3715
+ maxOperations: number;
3716
+ maxCostMicrousd: number;
3717
+ };
3718
+ leadDid: string;
3719
+ holderDid: string;
3720
+ policyProvenance: "administrator_registered";
3721
+ requiresOnlineActionGate: true;
3722
+ credentialExport: false;
3723
+ modelPolicy?: {
3724
+ provider: "anthropic";
3725
+ models: string[];
3726
+ maxOutputTokens: number;
3727
+ maxRequestBytes: number;
3728
+ reservedCostMicrousd: number;
3729
+ } | undefined;
3730
+ };
3731
+ config: {
3732
+ projectId: string;
3733
+ organizationId: string;
3734
+ origin: string;
3735
+ ownerEpoch: number;
3736
+ destinationDid: string;
3737
+ acceptedProviders?: ("discord" | "linear" | "github" | "didcomm" | "a2a")[] | undefined;
3738
+ };
3739
+ workerProfile: string;
3740
+ startOperationId: string;
3741
+ }, {
3742
+ schemaVersion: 1;
3743
+ review: {
3744
+ capabilities: {
3745
+ workspaceSandbox: "harness_workspace_write";
3746
+ childNetworkPolicy: "disabled_in_requested_harness_policy";
3747
+ isolatedSecrets: false;
3748
+ managedContainment: false;
3749
+ providerEgressEnforcement: false;
3750
+ brokeredExternalActions: false;
3751
+ limitation: string;
3752
+ };
3753
+ policy: {
3754
+ budget: {
3755
+ pricing: {
3756
+ version: string;
3757
+ provider: string;
3758
+ model: string;
3759
+ schemaVersion: 1;
3760
+ currency: "USD";
3761
+ sourceUrl: string;
3762
+ inputAccounting: "excludes_cache" | "includes_read_only" | "includes_read_and_write";
3763
+ rates: {
3764
+ input: number | null;
3765
+ output: number | null;
3766
+ cache_read: number | null;
3767
+ cache_write_short: number | null;
3768
+ cache_write_long: number | null;
3769
+ cache_write_unspecified: number | null;
3770
+ cache_storage: number | null;
3771
+ };
3772
+ } | null;
3773
+ budgetId: string;
3774
+ reservationMicroUsd: number;
3775
+ } | null;
3776
+ persistHistory?: boolean | undefined;
3777
+ nativeResume?: {
3778
+ attemptId: string;
3779
+ priorSegmentId: string;
3780
+ threadId: string;
3781
+ turnId: string;
3782
+ usageBaseline: {
3783
+ inputTokens: number;
3784
+ outputTokens: number;
3785
+ cachedInputTokens: number;
3786
+ cacheWriteInputTokens: number | null;
3787
+ };
3788
+ workspaceSnapshotDigest: string;
3789
+ } | undefined;
3790
+ nativeFork?: {
3791
+ parentTaskId: string;
3792
+ workspaceSnapshotDigest: string;
3793
+ parentAttemptId: string;
3794
+ parentSegmentId: string;
3795
+ parentManifestDigest: string;
3796
+ parentThreadId: string;
3797
+ parentTurnId: string;
3798
+ } | undefined;
3799
+ requiresIsolatedSecrets?: boolean | undefined;
3800
+ requiresManagedContainment?: boolean | undefined;
3801
+ requiresProviderEgressEnforcement?: boolean | undefined;
3802
+ requiresBrokeredExternalActions?: boolean | undefined;
3803
+ };
3804
+ schemaVersion: 1;
3805
+ manifestDigest: string;
3806
+ manifest: {
3807
+ taskId: string;
3808
+ harness: string;
3809
+ schemaVersion: 1;
3810
+ objective: string;
3811
+ acceptanceCriteria: {
3812
+ id: string;
3813
+ text: string;
3814
+ }[];
3815
+ revision: number;
3816
+ repository: {
3817
+ path: string;
3818
+ repositoryId: string;
3819
+ baseCommit: string;
3820
+ };
3821
+ routing: {
3822
+ mode: "direct";
3823
+ leadId: string;
3824
+ } | {
3825
+ mode: "pool";
3826
+ poolId: string;
3827
+ };
3828
+ maxAttempts: number;
3829
+ model?: string | null | undefined;
3830
+ source?: {
3831
+ sourceId: string;
3832
+ sourceRevision: number;
3833
+ inputDigest: string;
3834
+ operationId: string;
3835
+ } | undefined;
3836
+ dependencyBinding?: string | undefined;
3837
+ };
3838
+ runnerId: string;
3839
+ expiresAtMs: number;
3840
+ invocation: {
3841
+ command: string;
3842
+ args: string[];
3843
+ executableDigest: string;
3844
+ workspace: string;
3845
+ stdinDigest: string;
3846
+ timeoutMs: number;
3847
+ providerDestinations: string[];
3848
+ providerDestinationEnforcement: "expected_only";
3849
+ transport: "codex_exec" | "codex_app_server";
3850
+ configuration?: unknown;
3851
+ nativeBinding?: unknown;
3852
+ };
3853
+ permittedOperations: string[];
3854
+ prohibitedExternalOperations: string[];
3855
+ };
3856
+ admissionRef: string;
3857
+ admission: {
3858
+ projectId: string;
3859
+ organizationId: string;
3860
+ capabilities: ("task.execute" | "model.invoke" | "github.branch.write" | "github.pull_request.draft")[];
3861
+ expiresAt: string;
3862
+ taskId: string;
3863
+ notBefore: string;
3864
+ specRevision: number;
3865
+ manifestDigest: string;
3866
+ sourceRevision: number;
3867
+ repository: string;
3868
+ attemptNumber: number;
3869
+ ownerEpoch: number;
3870
+ admissionId: string;
3871
+ schema: "kya.task.admission.v1";
3872
+ installationId: string;
3873
+ baseSha: string;
3874
+ sourceOperationId: string;
3875
+ executionOperationId: string;
3876
+ branch: string;
3877
+ limits: {
3878
+ maxRuntimeSeconds: number;
3879
+ maxOperations: number;
3880
+ maxCostMicrousd: number;
3881
+ };
3882
+ leadDid: string;
3883
+ holderDid: string;
3884
+ policyProvenance: "administrator_registered";
3885
+ requiresOnlineActionGate: true;
3886
+ credentialExport: false;
3887
+ modelPolicy?: {
3888
+ provider: "anthropic";
3889
+ models: string[];
3890
+ maxOutputTokens: number;
3891
+ maxRequestBytes: number;
3892
+ reservedCostMicrousd: number;
3893
+ } | undefined;
3894
+ };
3895
+ config: {
3896
+ projectId: string;
3897
+ organizationId: string;
3898
+ origin: string;
3899
+ ownerEpoch: number;
3900
+ destinationDid: string;
3901
+ acceptedProviders?: ("discord" | "linear" | "github" | "didcomm" | "a2a")[] | undefined;
3902
+ };
3903
+ workerProfile: string;
3904
+ startOperationId: string;
3905
+ }>;
3906
+ leadConfig: z.ZodObject<{
3907
+ origin: z.ZodString;
3908
+ organizationId: z.ZodString;
3909
+ projectId: z.ZodString;
3910
+ destinationDid: z.ZodString;
3911
+ ownerEpoch: z.ZodNumber;
3912
+ acceptedProviders: z.ZodOptional<z.ZodArray<z.ZodEnum<["linear", "github", "discord", "a2a", "didcomm"]>, "many">>;
3913
+ }, "strict", z.ZodTypeAny, {
3914
+ projectId: string;
3915
+ organizationId: string;
3916
+ origin: string;
3917
+ ownerEpoch: number;
3918
+ destinationDid: string;
3919
+ acceptedProviders?: ("discord" | "linear" | "github" | "didcomm" | "a2a")[] | undefined;
3920
+ }, {
3921
+ projectId: string;
3922
+ organizationId: string;
3923
+ origin: string;
3924
+ ownerEpoch: number;
3925
+ destinationDid: string;
3926
+ acceptedProviders?: ("discord" | "linear" | "github" | "didcomm" | "a2a")[] | undefined;
3927
+ }>;
3928
+ leadProfile: z.ZodString;
3929
+ requireDraftPr: z.ZodBoolean;
3930
+ commitOperation: z.ZodNullable<z.ZodString>;
3931
+ artifactOperation: z.ZodNullable<z.ZodString>;
3932
+ }, "strict", z.ZodTypeAny, {
3933
+ schemaVersion: 1;
3934
+ execution: {
3935
+ schemaVersion: 1;
3936
+ review: {
3937
+ capabilities: {
3938
+ workspaceSandbox: "harness_workspace_write";
3939
+ childNetworkPolicy: "disabled_in_requested_harness_policy";
3940
+ isolatedSecrets: false;
3941
+ managedContainment: false;
3942
+ providerEgressEnforcement: false;
3943
+ brokeredExternalActions: false;
3944
+ limitation: string;
3945
+ };
3946
+ policy: {
3947
+ budget: {
3948
+ pricing: {
3949
+ version: string;
3950
+ provider: string;
3951
+ model: string;
3952
+ schemaVersion: 1;
3953
+ currency: "USD";
3954
+ sourceUrl: string;
3955
+ inputAccounting: "excludes_cache" | "includes_read_only" | "includes_read_and_write";
3956
+ rates: {
3957
+ input: number | null;
3958
+ output: number | null;
3959
+ cache_read: number | null;
3960
+ cache_write_short: number | null;
3961
+ cache_write_long: number | null;
3962
+ cache_write_unspecified: number | null;
3963
+ cache_storage: number | null;
3964
+ };
3965
+ } | null;
3966
+ budgetId: string;
3967
+ reservationMicroUsd: number;
3968
+ } | null;
3969
+ persistHistory: boolean;
3970
+ requiresIsolatedSecrets: boolean;
3971
+ requiresManagedContainment: boolean;
3972
+ requiresProviderEgressEnforcement: boolean;
3973
+ requiresBrokeredExternalActions: boolean;
3974
+ nativeResume?: {
3975
+ attemptId: string;
3976
+ priorSegmentId: string;
3977
+ threadId: string;
3978
+ turnId: string;
3979
+ usageBaseline: {
3980
+ inputTokens: number;
3981
+ outputTokens: number;
3982
+ cachedInputTokens: number;
3983
+ cacheWriteInputTokens: number | null;
3984
+ };
3985
+ workspaceSnapshotDigest: string;
3986
+ } | undefined;
3987
+ nativeFork?: {
3988
+ parentTaskId: string;
3989
+ workspaceSnapshotDigest: string;
3990
+ parentAttemptId: string;
3991
+ parentSegmentId: string;
3992
+ parentManifestDigest: string;
3993
+ parentThreadId: string;
3994
+ parentTurnId: string;
3995
+ } | undefined;
3996
+ };
3997
+ schemaVersion: 1;
3998
+ manifestDigest: string;
3999
+ manifest: {
4000
+ taskId: string;
4001
+ harness: string;
4002
+ schemaVersion: 1;
4003
+ objective: string;
4004
+ acceptanceCriteria: {
4005
+ id: string;
4006
+ text: string;
4007
+ }[];
4008
+ revision: number;
4009
+ repository: {
4010
+ path: string;
4011
+ repositoryId: string;
4012
+ baseCommit: string;
4013
+ };
4014
+ routing: {
4015
+ mode: "direct";
4016
+ leadId: string;
4017
+ } | {
4018
+ mode: "pool";
4019
+ poolId: string;
4020
+ };
4021
+ maxAttempts: number;
4022
+ model?: string | null | undefined;
4023
+ source?: {
4024
+ sourceId: string;
4025
+ sourceRevision: number;
4026
+ inputDigest: string;
4027
+ operationId: string;
4028
+ } | undefined;
4029
+ dependencyBinding?: string | undefined;
4030
+ };
4031
+ runnerId: string;
4032
+ expiresAtMs: number;
4033
+ invocation: {
4034
+ command: string;
4035
+ args: string[];
4036
+ executableDigest: string;
4037
+ workspace: string;
4038
+ stdinDigest: string;
4039
+ timeoutMs: number;
4040
+ providerDestinations: string[];
4041
+ providerDestinationEnforcement: "expected_only";
4042
+ transport: "codex_exec" | "codex_app_server";
4043
+ configuration?: unknown;
4044
+ nativeBinding?: unknown;
4045
+ };
4046
+ permittedOperations: string[];
4047
+ prohibitedExternalOperations: string[];
4048
+ };
4049
+ admissionRef: string;
4050
+ admission: {
4051
+ projectId: string;
4052
+ organizationId: string;
4053
+ capabilities: ("task.execute" | "model.invoke" | "github.branch.write" | "github.pull_request.draft")[];
4054
+ expiresAt: string;
4055
+ taskId: string;
4056
+ notBefore: string;
4057
+ specRevision: number;
4058
+ manifestDigest: string;
4059
+ sourceRevision: number;
4060
+ repository: string;
4061
+ attemptNumber: number;
4062
+ ownerEpoch: number;
4063
+ admissionId: string;
4064
+ schema: "kya.task.admission.v1";
4065
+ installationId: string;
4066
+ baseSha: string;
4067
+ sourceOperationId: string;
4068
+ executionOperationId: string;
4069
+ branch: string;
4070
+ limits: {
4071
+ maxRuntimeSeconds: number;
4072
+ maxOperations: number;
4073
+ maxCostMicrousd: number;
4074
+ };
4075
+ leadDid: string;
4076
+ holderDid: string;
4077
+ policyProvenance: "administrator_registered";
4078
+ requiresOnlineActionGate: true;
4079
+ credentialExport: false;
4080
+ modelPolicy?: {
4081
+ provider: "anthropic";
4082
+ models: string[];
4083
+ maxOutputTokens: number;
4084
+ maxRequestBytes: number;
4085
+ reservedCostMicrousd: number;
4086
+ } | undefined;
4087
+ };
4088
+ config: {
4089
+ projectId: string;
4090
+ organizationId: string;
4091
+ origin: string;
4092
+ ownerEpoch: number;
4093
+ destinationDid: string;
4094
+ acceptedProviders?: ("discord" | "linear" | "github" | "didcomm" | "a2a")[] | undefined;
4095
+ };
4096
+ workerProfile: string;
4097
+ startOperationId: string;
4098
+ };
4099
+ leadConfig: {
4100
+ projectId: string;
4101
+ organizationId: string;
4102
+ origin: string;
4103
+ ownerEpoch: number;
4104
+ destinationDid: string;
4105
+ acceptedProviders?: ("discord" | "linear" | "github" | "didcomm" | "a2a")[] | undefined;
4106
+ };
4107
+ leadProfile: string;
4108
+ requireDraftPr: boolean;
4109
+ commitOperation: string | null;
4110
+ artifactOperation: string | null;
4111
+ }, {
4112
+ schemaVersion: 1;
4113
+ execution: {
4114
+ schemaVersion: 1;
4115
+ review: {
4116
+ capabilities: {
4117
+ workspaceSandbox: "harness_workspace_write";
4118
+ childNetworkPolicy: "disabled_in_requested_harness_policy";
4119
+ isolatedSecrets: false;
4120
+ managedContainment: false;
4121
+ providerEgressEnforcement: false;
4122
+ brokeredExternalActions: false;
4123
+ limitation: string;
4124
+ };
4125
+ policy: {
4126
+ budget: {
4127
+ pricing: {
4128
+ version: string;
4129
+ provider: string;
4130
+ model: string;
4131
+ schemaVersion: 1;
4132
+ currency: "USD";
4133
+ sourceUrl: string;
4134
+ inputAccounting: "excludes_cache" | "includes_read_only" | "includes_read_and_write";
4135
+ rates: {
4136
+ input: number | null;
4137
+ output: number | null;
4138
+ cache_read: number | null;
4139
+ cache_write_short: number | null;
4140
+ cache_write_long: number | null;
4141
+ cache_write_unspecified: number | null;
4142
+ cache_storage: number | null;
4143
+ };
4144
+ } | null;
4145
+ budgetId: string;
4146
+ reservationMicroUsd: number;
4147
+ } | null;
4148
+ persistHistory?: boolean | undefined;
4149
+ nativeResume?: {
4150
+ attemptId: string;
4151
+ priorSegmentId: string;
4152
+ threadId: string;
4153
+ turnId: string;
4154
+ usageBaseline: {
4155
+ inputTokens: number;
4156
+ outputTokens: number;
4157
+ cachedInputTokens: number;
4158
+ cacheWriteInputTokens: number | null;
4159
+ };
4160
+ workspaceSnapshotDigest: string;
4161
+ } | undefined;
4162
+ nativeFork?: {
4163
+ parentTaskId: string;
4164
+ workspaceSnapshotDigest: string;
4165
+ parentAttemptId: string;
4166
+ parentSegmentId: string;
4167
+ parentManifestDigest: string;
4168
+ parentThreadId: string;
4169
+ parentTurnId: string;
4170
+ } | undefined;
4171
+ requiresIsolatedSecrets?: boolean | undefined;
4172
+ requiresManagedContainment?: boolean | undefined;
4173
+ requiresProviderEgressEnforcement?: boolean | undefined;
4174
+ requiresBrokeredExternalActions?: boolean | undefined;
4175
+ };
4176
+ schemaVersion: 1;
4177
+ manifestDigest: string;
4178
+ manifest: {
4179
+ taskId: string;
4180
+ harness: string;
4181
+ schemaVersion: 1;
4182
+ objective: string;
4183
+ acceptanceCriteria: {
4184
+ id: string;
4185
+ text: string;
4186
+ }[];
4187
+ revision: number;
4188
+ repository: {
4189
+ path: string;
4190
+ repositoryId: string;
4191
+ baseCommit: string;
4192
+ };
4193
+ routing: {
4194
+ mode: "direct";
4195
+ leadId: string;
4196
+ } | {
4197
+ mode: "pool";
4198
+ poolId: string;
4199
+ };
4200
+ maxAttempts: number;
4201
+ model?: string | null | undefined;
4202
+ source?: {
4203
+ sourceId: string;
4204
+ sourceRevision: number;
4205
+ inputDigest: string;
4206
+ operationId: string;
4207
+ } | undefined;
4208
+ dependencyBinding?: string | undefined;
4209
+ };
4210
+ runnerId: string;
4211
+ expiresAtMs: number;
4212
+ invocation: {
4213
+ command: string;
4214
+ args: string[];
4215
+ executableDigest: string;
4216
+ workspace: string;
4217
+ stdinDigest: string;
4218
+ timeoutMs: number;
4219
+ providerDestinations: string[];
4220
+ providerDestinationEnforcement: "expected_only";
4221
+ transport: "codex_exec" | "codex_app_server";
4222
+ configuration?: unknown;
4223
+ nativeBinding?: unknown;
4224
+ };
4225
+ permittedOperations: string[];
4226
+ prohibitedExternalOperations: string[];
4227
+ };
4228
+ admissionRef: string;
4229
+ admission: {
4230
+ projectId: string;
4231
+ organizationId: string;
4232
+ capabilities: ("task.execute" | "model.invoke" | "github.branch.write" | "github.pull_request.draft")[];
4233
+ expiresAt: string;
4234
+ taskId: string;
4235
+ notBefore: string;
4236
+ specRevision: number;
4237
+ manifestDigest: string;
4238
+ sourceRevision: number;
4239
+ repository: string;
4240
+ attemptNumber: number;
4241
+ ownerEpoch: number;
4242
+ admissionId: string;
4243
+ schema: "kya.task.admission.v1";
4244
+ installationId: string;
4245
+ baseSha: string;
4246
+ sourceOperationId: string;
4247
+ executionOperationId: string;
4248
+ branch: string;
4249
+ limits: {
4250
+ maxRuntimeSeconds: number;
4251
+ maxOperations: number;
4252
+ maxCostMicrousd: number;
4253
+ };
4254
+ leadDid: string;
4255
+ holderDid: string;
4256
+ policyProvenance: "administrator_registered";
4257
+ requiresOnlineActionGate: true;
4258
+ credentialExport: false;
4259
+ modelPolicy?: {
4260
+ provider: "anthropic";
4261
+ models: string[];
4262
+ maxOutputTokens: number;
4263
+ maxRequestBytes: number;
4264
+ reservedCostMicrousd: number;
4265
+ } | undefined;
4266
+ };
4267
+ config: {
4268
+ projectId: string;
4269
+ organizationId: string;
4270
+ origin: string;
4271
+ ownerEpoch: number;
4272
+ destinationDid: string;
4273
+ acceptedProviders?: ("discord" | "linear" | "github" | "didcomm" | "a2a")[] | undefined;
4274
+ };
4275
+ workerProfile: string;
4276
+ startOperationId: string;
4277
+ };
4278
+ leadConfig: {
4279
+ projectId: string;
4280
+ organizationId: string;
4281
+ origin: string;
4282
+ ownerEpoch: number;
4283
+ destinationDid: string;
4284
+ acceptedProviders?: ("discord" | "linear" | "github" | "didcomm" | "a2a")[] | undefined;
4285
+ };
4286
+ leadProfile: string;
4287
+ requireDraftPr: boolean;
4288
+ commitOperation: string | null;
4289
+ artifactOperation: string | null;
4290
+ }>;
4291
+ export declare const StandingSupervisorViewSchema: z.ZodObject<{
4292
+ admissionRef: z.ZodString;
4293
+ taskId: z.ZodString;
4294
+ executionOperationId: z.ZodString;
4295
+ state: z.ZodEnum<["awaiting_terminal", "awaiting_evidence", "awaiting_review", "needs_attention", "finish_unknown", "result_unknown", "recorded"]>;
4296
+ finishOutboxId: z.ZodString;
4297
+ resultOutboxId: z.ZodString;
4298
+ attempts: z.ZodNumber;
4299
+ nextAttemptMs: z.ZodNumber;
4300
+ notice: z.ZodNullable<z.ZodString>;
4301
+ }, "strict", z.ZodTypeAny, {
4302
+ taskId: string;
4303
+ state: "awaiting_terminal" | "awaiting_evidence" | "awaiting_review" | "needs_attention" | "finish_unknown" | "result_unknown" | "recorded";
4304
+ executionOperationId: string;
4305
+ admissionRef: string;
4306
+ finishOutboxId: string;
4307
+ resultOutboxId: string;
4308
+ attempts: number;
4309
+ nextAttemptMs: number;
4310
+ notice: string | null;
4311
+ }, {
4312
+ taskId: string;
4313
+ state: "awaiting_terminal" | "awaiting_evidence" | "awaiting_review" | "needs_attention" | "finish_unknown" | "result_unknown" | "recorded";
4314
+ executionOperationId: string;
4315
+ admissionRef: string;
4316
+ finishOutboxId: string;
4317
+ resultOutboxId: string;
4318
+ attempts: number;
4319
+ nextAttemptMs: number;
4320
+ notice: string | null;
4321
+ }>;
4322
+ export type StandingSupervisorBinding = z.infer<typeof StandingSupervisorBindingSchema>;
4323
+ export type StandingSupervisorView = z.infer<typeof StandingSupervisorViewSchema>;