oh-my-super-agent 0.1.0

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 (461) hide show
  1. package/.agents/agents/advisor.md +15 -0
  2. package/.agents/agents/conductor.md +32 -0
  3. package/.agents/agents/dreamer.md +13 -0
  4. package/.agents/agents/executor.md +17 -0
  5. package/.agents/agents/grader.md +15 -0
  6. package/.agents/config/endurance-policy.json +8 -0
  7. package/.agents/config/oms-config.json +119 -0
  8. package/.agents/config/release-policy.json +12 -0
  9. package/.agents/config/secret-scan-policy.json +7 -0
  10. package/.agents/config/verification-plan.json +33 -0
  11. package/.agents/registry.json +11 -0
  12. package/.agents/rules/constitution.md +7 -0
  13. package/.agents/skills/conductor/SKILL.md +23 -0
  14. package/.agents/skills/dream/SKILL.md +14 -0
  15. package/.agents/skills/executor/SKILL.md +13 -0
  16. package/.agents/skills/oms/SKILL.md +52 -0
  17. package/.agents/skills/quota-aware/SKILL.md +12 -0
  18. package/.agents/skills/schedule/SKILL.md +13 -0
  19. package/.agents/skills/team-protocol/SKILL.md +20 -0
  20. package/LICENSE +21 -0
  21. package/README.md +146 -0
  22. package/dist/src/audit/run-ledger.d.ts +183 -0
  23. package/dist/src/audit/run-ledger.js +1655 -0
  24. package/dist/src/audit/run-ledger.js.map +1 -0
  25. package/dist/src/cli.d.ts +61 -0
  26. package/dist/src/cli.js +2096 -0
  27. package/dist/src/cli.js.map +1 -0
  28. package/dist/src/commands/github-queue-probe.d.ts +26 -0
  29. package/dist/src/commands/github-queue-probe.js +51 -0
  30. package/dist/src/commands/github-queue-probe.js.map +1 -0
  31. package/dist/src/commands/trace-fixture.d.ts +20 -0
  32. package/dist/src/commands/trace-fixture.js +72 -0
  33. package/dist/src/commands/trace-fixture.js.map +1 -0
  34. package/dist/src/conductor/activity.d.ts +46 -0
  35. package/dist/src/conductor/activity.js +224 -0
  36. package/dist/src/conductor/activity.js.map +1 -0
  37. package/dist/src/conductor/bridge.d.ts +53 -0
  38. package/dist/src/conductor/bridge.js +652 -0
  39. package/dist/src/conductor/bridge.js.map +1 -0
  40. package/dist/src/conductor/notifications.d.ts +59 -0
  41. package/dist/src/conductor/notifications.js +381 -0
  42. package/dist/src/conductor/notifications.js.map +1 -0
  43. package/dist/src/conductor/recovery.d.ts +29 -0
  44. package/dist/src/conductor/recovery.js +198 -0
  45. package/dist/src/conductor/recovery.js.map +1 -0
  46. package/dist/src/conductor/start.d.ts +73 -0
  47. package/dist/src/conductor/start.js +519 -0
  48. package/dist/src/conductor/start.js.map +1 -0
  49. package/dist/src/conductor/waiter.d.ts +88 -0
  50. package/dist/src/conductor/waiter.js +427 -0
  51. package/dist/src/conductor/waiter.js.map +1 -0
  52. package/dist/src/config.d.ts +9 -0
  53. package/dist/src/config.js +40 -0
  54. package/dist/src/config.js.map +1 -0
  55. package/dist/src/dispatch/advice-source.d.ts +61 -0
  56. package/dist/src/dispatch/advice-source.js +198 -0
  57. package/dist/src/dispatch/advice-source.js.map +1 -0
  58. package/dist/src/dispatch/advice-store.d.ts +41 -0
  59. package/dist/src/dispatch/advice-store.js +201 -0
  60. package/dist/src/dispatch/advice-store.js.map +1 -0
  61. package/dist/src/dispatch/advice.d.ts +34 -0
  62. package/dist/src/dispatch/advice.js +371 -0
  63. package/dist/src/dispatch/advice.js.map +1 -0
  64. package/dist/src/dispatch/authority.d.ts +124 -0
  65. package/dist/src/dispatch/authority.js +1202 -0
  66. package/dist/src/dispatch/authority.js.map +1 -0
  67. package/dist/src/dispatch/intent.d.ts +66 -0
  68. package/dist/src/dispatch/intent.js +71 -0
  69. package/dist/src/dispatch/intent.js.map +1 -0
  70. package/dist/src/dispatch/runtime-authority.d.ts +42 -0
  71. package/dist/src/dispatch/runtime-authority.js +52 -0
  72. package/dist/src/dispatch/runtime-authority.js.map +1 -0
  73. package/dist/src/doctor.d.ts +20 -0
  74. package/dist/src/doctor.js +85 -0
  75. package/dist/src/doctor.js.map +1 -0
  76. package/dist/src/domain/records.d.ts +44 -0
  77. package/dist/src/domain/records.js +138 -0
  78. package/dist/src/domain/records.js.map +1 -0
  79. package/dist/src/domain/role-policy.d.ts +67 -0
  80. package/dist/src/domain/role-policy.js +547 -0
  81. package/dist/src/domain/role-policy.js.map +1 -0
  82. package/dist/src/events/bus.d.ts +32 -0
  83. package/dist/src/events/bus.js +115 -0
  84. package/dist/src/events/bus.js.map +1 -0
  85. package/dist/src/events/kinds.d.ts +126 -0
  86. package/dist/src/events/kinds.js +14 -0
  87. package/dist/src/events/kinds.js.map +1 -0
  88. package/dist/src/evidence/immutable-file.d.ts +12 -0
  89. package/dist/src/evidence/immutable-file.js +141 -0
  90. package/dist/src/evidence/immutable-file.js.map +1 -0
  91. package/dist/src/evidence/store.d.ts +125 -0
  92. package/dist/src/evidence/store.js +1189 -0
  93. package/dist/src/evidence/store.js.map +1 -0
  94. package/dist/src/evidence/verdict.d.ts +17 -0
  95. package/dist/src/evidence/verdict.js +23 -0
  96. package/dist/src/evidence/verdict.js.map +1 -0
  97. package/dist/src/generation/agent.d.ts +5 -0
  98. package/dist/src/generation/agent.js +34 -0
  99. package/dist/src/generation/agent.js.map +1 -0
  100. package/dist/src/generation/frontmatter.d.ts +7 -0
  101. package/dist/src/generation/frontmatter.js +33 -0
  102. package/dist/src/generation/frontmatter.js.map +1 -0
  103. package/dist/src/github/adapter.d.ts +44 -0
  104. package/dist/src/github/adapter.js +592 -0
  105. package/dist/src/github/adapter.js.map +1 -0
  106. package/dist/src/github/dispatch-eligibility.d.ts +9 -0
  107. package/dist/src/github/dispatch-eligibility.js +94 -0
  108. package/dist/src/github/dispatch-eligibility.js.map +1 -0
  109. package/dist/src/github/projector.d.ts +23 -0
  110. package/dist/src/github/projector.js +181 -0
  111. package/dist/src/github/projector.js.map +1 -0
  112. package/dist/src/github/review.d.ts +39 -0
  113. package/dist/src/github/review.js +1450 -0
  114. package/dist/src/github/review.js.map +1 -0
  115. package/dist/src/github/sync.d.ts +21 -0
  116. package/dist/src/github/sync.js +518 -0
  117. package/dist/src/github/sync.js.map +1 -0
  118. package/dist/src/github/types.d.ts +134 -0
  119. package/dist/src/github/types.js +11 -0
  120. package/dist/src/github/types.js.map +1 -0
  121. package/dist/src/goals/artifact-store.d.ts +31 -0
  122. package/dist/src/goals/artifact-store.js +241 -0
  123. package/dist/src/goals/artifact-store.js.map +1 -0
  124. package/dist/src/goals/authority.d.ts +112 -0
  125. package/dist/src/goals/authority.js +621 -0
  126. package/dist/src/goals/authority.js.map +1 -0
  127. package/dist/src/goals/native-snapshot.d.ts +12 -0
  128. package/dist/src/goals/native-snapshot.js +53 -0
  129. package/dist/src/goals/native-snapshot.js.map +1 -0
  130. package/dist/src/goals/runtime-authority.d.ts +7 -0
  131. package/dist/src/goals/runtime-authority.js +20 -0
  132. package/dist/src/goals/runtime-authority.js.map +1 -0
  133. package/dist/src/health/release-assessment.d.ts +11 -0
  134. package/dist/src/health/release-assessment.js +83 -0
  135. package/dist/src/health/release-assessment.js.map +1 -0
  136. package/dist/src/health/release-policy.d.ts +16 -0
  137. package/dist/src/health/release-policy.js +40 -0
  138. package/dist/src/health/release-policy.js.map +1 -0
  139. package/dist/src/hooks/native.d.ts +30 -0
  140. package/dist/src/hooks/native.js +495 -0
  141. package/dist/src/hooks/native.js.map +1 -0
  142. package/dist/src/hooks/provider-runtime.d.ts +55 -0
  143. package/dist/src/hooks/provider-runtime.js +479 -0
  144. package/dist/src/hooks/provider-runtime.js.map +1 -0
  145. package/dist/src/hooks/provider.d.ts +102 -0
  146. package/dist/src/hooks/provider.js +358 -0
  147. package/dist/src/hooks/provider.js.map +1 -0
  148. package/dist/src/live/contact-journal.d.ts +73 -0
  149. package/dist/src/live/contact-journal.js +439 -0
  150. package/dist/src/live/contact-journal.js.map +1 -0
  151. package/dist/src/live-probes/gh-adapter.d.ts +28 -0
  152. package/dist/src/live-probes/gh-adapter.js +188 -0
  153. package/dist/src/live-probes/gh-adapter.js.map +1 -0
  154. package/dist/src/live-probes/github-queue.d.ts +1 -0
  155. package/dist/src/live-probes/github-queue.js +2 -0
  156. package/dist/src/live-probes/github-queue.js.map +1 -0
  157. package/dist/src/notifications/slack-request.d.ts +13 -0
  158. package/dist/src/notifications/slack-request.js +40 -0
  159. package/dist/src/notifications/slack-request.js.map +1 -0
  160. package/dist/src/outbox/processor.d.ts +27 -0
  161. package/dist/src/outbox/processor.js +63 -0
  162. package/dist/src/outbox/processor.js.map +1 -0
  163. package/dist/src/outbox/store.d.ts +158 -0
  164. package/dist/src/outbox/store.js +834 -0
  165. package/dist/src/outbox/store.js.map +1 -0
  166. package/dist/src/package-root.d.ts +1 -0
  167. package/dist/src/package-root.js +26 -0
  168. package/dist/src/package-root.js.map +1 -0
  169. package/dist/src/project.d.ts +12 -0
  170. package/dist/src/project.js +60 -0
  171. package/dist/src/project.js.map +1 -0
  172. package/dist/src/projection/generated-file.d.ts +15 -0
  173. package/dist/src/projection/generated-file.js +72 -0
  174. package/dist/src/projection/generated-file.js.map +1 -0
  175. package/dist/src/projection/project-workspace.d.ts +11 -0
  176. package/dist/src/projection/project-workspace.js +94 -0
  177. package/dist/src/projection/project-workspace.js.map +1 -0
  178. package/dist/src/projection/registry.d.ts +15 -0
  179. package/dist/src/projection/registry.js +59 -0
  180. package/dist/src/projection/registry.js.map +1 -0
  181. package/dist/src/projection/safe-path.d.ts +4 -0
  182. package/dist/src/projection/safe-path.js +106 -0
  183. package/dist/src/projection/safe-path.js.map +1 -0
  184. package/dist/src/providers/claude-interactive.d.ts +38 -0
  185. package/dist/src/providers/claude-interactive.js +287 -0
  186. package/dist/src/providers/claude-interactive.js.map +1 -0
  187. package/dist/src/providers/claude-structured-bridge.d.ts +32 -0
  188. package/dist/src/providers/claude-structured-bridge.js +215 -0
  189. package/dist/src/providers/claude-structured-bridge.js.map +1 -0
  190. package/dist/src/providers/claude-structured-completion.d.ts +23 -0
  191. package/dist/src/providers/claude-structured-completion.js +229 -0
  192. package/dist/src/providers/claude-structured-completion.js.map +1 -0
  193. package/dist/src/providers/claude-structured-pane.d.ts +23 -0
  194. package/dist/src/providers/claude-structured-pane.js +156 -0
  195. package/dist/src/providers/claude-structured-pane.js.map +1 -0
  196. package/dist/src/providers/claude-structured-store.d.ts +48 -0
  197. package/dist/src/providers/claude-structured-store.js +212 -0
  198. package/dist/src/providers/claude-structured-store.js.map +1 -0
  199. package/dist/src/providers/claude-structured.d.ts +56 -0
  200. package/dist/src/providers/claude-structured.js +250 -0
  201. package/dist/src/providers/claude-structured.js.map +1 -0
  202. package/dist/src/providers/codex-exec.d.ts +29 -0
  203. package/dist/src/providers/codex-exec.js +127 -0
  204. package/dist/src/providers/codex-exec.js.map +1 -0
  205. package/dist/src/providers/grading.d.ts +2 -0
  206. package/dist/src/providers/grading.js +20 -0
  207. package/dist/src/providers/grading.js.map +1 -0
  208. package/dist/src/providers/native-dispatch.d.ts +24 -0
  209. package/dist/src/providers/native-dispatch.js +34 -0
  210. package/dist/src/providers/native-dispatch.js.map +1 -0
  211. package/dist/src/providers/preflight.d.ts +65 -0
  212. package/dist/src/providers/preflight.js +256 -0
  213. package/dist/src/providers/preflight.js.map +1 -0
  214. package/dist/src/providers/process.d.ts +18 -0
  215. package/dist/src/providers/process.js +21 -0
  216. package/dist/src/providers/process.js.map +1 -0
  217. package/dist/src/queue/model.d.ts +37 -0
  218. package/dist/src/queue/model.js +51 -0
  219. package/dist/src/queue/model.js.map +1 -0
  220. package/dist/src/queue/service.d.ts +1 -0
  221. package/dist/src/queue/service.js +2 -0
  222. package/dist/src/queue/service.js.map +1 -0
  223. package/dist/src/reflections/store.d.ts +21 -0
  224. package/dist/src/reflections/store.js +60 -0
  225. package/dist/src/reflections/store.js.map +1 -0
  226. package/dist/src/reports/daily-trust.d.ts +11 -0
  227. package/dist/src/reports/daily-trust.js +98 -0
  228. package/dist/src/reports/daily-trust.js.map +1 -0
  229. package/dist/src/runs/controller.d.ts +187 -0
  230. package/dist/src/runs/controller.js +1182 -0
  231. package/dist/src/runs/controller.js.map +1 -0
  232. package/dist/src/runtime/composition.d.ts +9 -0
  233. package/dist/src/runtime/composition.js +35 -0
  234. package/dist/src/runtime/composition.js.map +1 -0
  235. package/dist/src/runtime/endurance-authorities.d.ts +44 -0
  236. package/dist/src/runtime/endurance-authorities.js +101 -0
  237. package/dist/src/runtime/endurance-authorities.js.map +1 -0
  238. package/dist/src/runtime/endurance-policy.d.ts +12 -0
  239. package/dist/src/runtime/endurance-policy.js +13 -0
  240. package/dist/src/runtime/endurance-policy.js.map +1 -0
  241. package/dist/src/runtime/lock.d.ts +63 -0
  242. package/dist/src/runtime/lock.js +577 -0
  243. package/dist/src/runtime/lock.js.map +1 -0
  244. package/dist/src/runtime/process-identity.d.ts +10 -0
  245. package/dist/src/runtime/process-identity.js +43 -0
  246. package/dist/src/runtime/process-identity.js.map +1 -0
  247. package/dist/src/runtime/quota.d.ts +130 -0
  248. package/dist/src/runtime/quota.js +590 -0
  249. package/dist/src/runtime/quota.js.map +1 -0
  250. package/dist/src/runtime/record-store.d.ts +45 -0
  251. package/dist/src/runtime/record-store.js +272 -0
  252. package/dist/src/runtime/record-store.js.map +1 -0
  253. package/dist/src/runtime/schema.d.ts +28 -0
  254. package/dist/src/runtime/schema.js +194 -0
  255. package/dist/src/runtime/schema.js.map +1 -0
  256. package/dist/src/runtime/stable-id.d.ts +3 -0
  257. package/dist/src/runtime/stable-id.js +27 -0
  258. package/dist/src/runtime/stable-id.js.map +1 -0
  259. package/dist/src/runtime/system-clock.d.ts +8 -0
  260. package/dist/src/runtime/system-clock.js +35 -0
  261. package/dist/src/runtime/system-clock.js.map +1 -0
  262. package/dist/src/schedule/service-plan.d.ts +58 -0
  263. package/dist/src/schedule/service-plan.js +327 -0
  264. package/dist/src/schedule/service-plan.js.map +1 -0
  265. package/dist/src/schedule/user-installation.d.ts +62 -0
  266. package/dist/src/schedule/user-installation.js +701 -0
  267. package/dist/src/schedule/user-installation.js.map +1 -0
  268. package/dist/src/schedule/user-plan.d.ts +47 -0
  269. package/dist/src/schedule/user-plan.js +286 -0
  270. package/dist/src/schedule/user-plan.js.map +1 -0
  271. package/dist/src/scheduler/minute.d.ts +31 -0
  272. package/dist/src/scheduler/minute.js +441 -0
  273. package/dist/src/scheduler/minute.js.map +1 -0
  274. package/dist/src/schemas/registry.d.ts +10 -0
  275. package/dist/src/schemas/registry.js +36 -0
  276. package/dist/src/schemas/registry.js.map +1 -0
  277. package/dist/src/security/secret-scan.d.ts +50 -0
  278. package/dist/src/security/secret-scan.js +384 -0
  279. package/dist/src/security/secret-scan.js.map +1 -0
  280. package/dist/src/sessions/registry.d.ts +89 -0
  281. package/dist/src/sessions/registry.js +443 -0
  282. package/dist/src/sessions/registry.js.map +1 -0
  283. package/dist/src/state.d.ts +27 -0
  284. package/dist/src/state.js +235 -0
  285. package/dist/src/state.js.map +1 -0
  286. package/dist/src/status/hud.d.ts +37 -0
  287. package/dist/src/status/hud.js +88 -0
  288. package/dist/src/status/hud.js.map +1 -0
  289. package/dist/src/team/plan.d.ts +31 -0
  290. package/dist/src/team/plan.js +184 -0
  291. package/dist/src/team/plan.js.map +1 -0
  292. package/dist/src/team/projection.d.ts +24 -0
  293. package/dist/src/team/projection.js +79 -0
  294. package/dist/src/team/projection.js.map +1 -0
  295. package/dist/src/tickets/admission.d.ts +34 -0
  296. package/dist/src/tickets/admission.js +169 -0
  297. package/dist/src/tickets/admission.js.map +1 -0
  298. package/dist/src/tickets/materializer.d.ts +1 -0
  299. package/dist/src/tickets/materializer.js +2 -0
  300. package/dist/src/tickets/materializer.js.map +1 -0
  301. package/dist/src/tickets/runtime-authority.d.ts +32 -0
  302. package/dist/src/tickets/runtime-authority.js +46 -0
  303. package/dist/src/tickets/runtime-authority.js.map +1 -0
  304. package/dist/src/tickets/store.d.ts +221 -0
  305. package/dist/src/tickets/store.js +2025 -0
  306. package/dist/src/tickets/store.js.map +1 -0
  307. package/dist/src/tracer/one-ticket.d.ts +58 -0
  308. package/dist/src/tracer/one-ticket.js +578 -0
  309. package/dist/src/tracer/one-ticket.js.map +1 -0
  310. package/dist/src/trust/assessment.d.ts +24 -0
  311. package/dist/src/trust/assessment.js +124 -0
  312. package/dist/src/trust/assessment.js.map +1 -0
  313. package/dist/src/trust/runs.d.ts +13 -0
  314. package/dist/src/trust/runs.js +46 -0
  315. package/dist/src/trust/runs.js.map +1 -0
  316. package/dist/src/types.d.ts +6 -0
  317. package/dist/src/types.js +2 -0
  318. package/dist/src/types.js.map +1 -0
  319. package/dist/src/utils/fs.d.ts +13 -0
  320. package/dist/src/utils/fs.js +188 -0
  321. package/dist/src/utils/fs.js.map +1 -0
  322. package/dist/src/verification/authority.d.ts +28 -0
  323. package/dist/src/verification/authority.js +153 -0
  324. package/dist/src/verification/authority.js.map +1 -0
  325. package/dist/src/verification/grade-source.d.ts +17 -0
  326. package/dist/src/verification/grade-source.js +30 -0
  327. package/dist/src/verification/grade-source.js.map +1 -0
  328. package/dist/src/verification/plan.d.ts +20 -0
  329. package/dist/src/verification/plan.js +128 -0
  330. package/dist/src/verification/plan.js.map +1 -0
  331. package/dist/src/verification/protected-runner.d.ts +50 -0
  332. package/dist/src/verification/protected-runner.js +171 -0
  333. package/dist/src/verification/protected-runner.js.map +1 -0
  334. package/dist/src/verification/result-gate-store.d.ts +72 -0
  335. package/dist/src/verification/result-gate-store.js +193 -0
  336. package/dist/src/verification/result-gate-store.js.map +1 -0
  337. package/dist/src/verification/result-gate.d.ts +41 -0
  338. package/dist/src/verification/result-gate.js +731 -0
  339. package/dist/src/verification/result-gate.js.map +1 -0
  340. package/dist/src/verification/runner.d.ts +38 -0
  341. package/dist/src/verification/runner.js +143 -0
  342. package/dist/src/verification/runner.js.map +1 -0
  343. package/dist/src/verification/sandbox.d.ts +16 -0
  344. package/dist/src/verification/sandbox.js +199 -0
  345. package/dist/src/verification/sandbox.js.map +1 -0
  346. package/dist/src/verify.d.ts +8 -0
  347. package/dist/src/verify.js +35 -0
  348. package/dist/src/verify.js.map +1 -0
  349. package/dist/src/watchdog/reconcile.d.ts +42 -0
  350. package/dist/src/watchdog/reconcile.js +440 -0
  351. package/dist/src/watchdog/reconcile.js.map +1 -0
  352. package/dist/src/workers/bridge.d.ts +35 -0
  353. package/dist/src/workers/bridge.js +426 -0
  354. package/dist/src/workers/bridge.js.map +1 -0
  355. package/dist/src/workers/delivery.d.ts +31 -0
  356. package/dist/src/workers/delivery.js +876 -0
  357. package/dist/src/workers/delivery.js.map +1 -0
  358. package/dist/src/workers/panes.d.ts +32 -0
  359. package/dist/src/workers/panes.js +212 -0
  360. package/dist/src/workers/panes.js.map +1 -0
  361. package/dist/src/workers/registry.d.ts +80 -0
  362. package/dist/src/workers/registry.js +351 -0
  363. package/dist/src/workers/registry.js.map +1 -0
  364. package/dist/src/workers/runtime.d.ts +44 -0
  365. package/dist/src/workers/runtime.js +21 -0
  366. package/dist/src/workers/runtime.js.map +1 -0
  367. package/dist/src/worktrees/manager.d.ts +35 -0
  368. package/dist/src/worktrees/manager.js +315 -0
  369. package/dist/src/worktrees/manager.js.map +1 -0
  370. package/docs/ARCHITECTURE.md +323 -0
  371. package/docs/PLAN.md +216 -0
  372. package/docs/REFERENCES.md +42 -0
  373. package/docs/ROADMAP.md +327 -0
  374. package/docs/SECURITY.md +242 -0
  375. package/docs/adr/0001-tracer-first-file-backed-certification.md +41 -0
  376. package/docs/adr/0002-conductor-first-typed-dispatch.md +102 -0
  377. package/docs/adr/0003-mandatory-pre-dispatch-advice.md +59 -0
  378. package/docs/compatibility/claude-code-2.1.207.md +25 -0
  379. package/loop/contract.md +102 -0
  380. package/package.json +54 -0
  381. package/schemas/advisor-evidence.schema.json +54 -0
  382. package/schemas/advisor-output.schema.json +31 -0
  383. package/schemas/conductor-activity-payload.schema.json +38 -0
  384. package/schemas/conductor-decision.schema.json +29 -0
  385. package/schemas/conductor-dispatch-intent.schema.json +71 -0
  386. package/schemas/conductor-dispatch-preparation.schema.json +46 -0
  387. package/schemas/conductor-dispatch-proposal.schema.json +82 -0
  388. package/schemas/conductor-goal-proposal.schema.json +30 -0
  389. package/schemas/conductor-manage-worker.schema.json +17 -0
  390. package/schemas/conductor-notification-payload.schema.json +39 -0
  391. package/schemas/conductor-process-result.schema.json +14 -0
  392. package/schemas/conductor-route.schema.json +51 -0
  393. package/schemas/conductor-start-team.schema.json +16 -0
  394. package/schemas/conductor-waiter-payload.schema.json +68 -0
  395. package/schemas/deterministic-check.schema.json +107 -0
  396. package/schemas/dispatch-acknowledgement.schema.json +15 -0
  397. package/schemas/dispatch-advice-payload.schema.json +64 -0
  398. package/schemas/dispatch-payload.schema.json +131 -0
  399. package/schemas/dispatch-result.schema.json +28 -0
  400. package/schemas/endurance-policy.schema.json +16 -0
  401. package/schemas/events/dispatch-delivery-requested.schema.json +17 -0
  402. package/schemas/events/github-observed.schema.json +28 -0
  403. package/schemas/events/native-hook-observed.schema.json +35 -0
  404. package/schemas/events/provider-observed.schema.json +64 -0
  405. package/schemas/events/run-heartbeat-due.schema.json +10 -0
  406. package/schemas/events/slack-notification-requested.schema.json +14 -0
  407. package/schemas/events/structured-role-completed.schema.json +54 -0
  408. package/schemas/events/ticket-resume-due.schema.json +28 -0
  409. package/schemas/events/watchdog-lease-expired.schema.json +14 -0
  410. package/schemas/events/watchdog-outbox-stalled.schema.json +12 -0
  411. package/schemas/events/watchdog-session-stalled.schema.json +11 -0
  412. package/schemas/evidence-record.schema.json +37 -0
  413. package/schemas/executor-result.schema.json +17 -0
  414. package/schemas/github-observation.schema.json +33 -0
  415. package/schemas/github-watermark.schema.json +66 -0
  416. package/schemas/goal-artifact.schema.json +19 -0
  417. package/schemas/goal-create-input.schema.json +14 -0
  418. package/schemas/goal-executor-result.schema.json +18 -0
  419. package/schemas/goal-payload.schema.json +95 -0
  420. package/schemas/grader-output.schema.json +33 -0
  421. package/schemas/lease-expiry.schema.json +19 -0
  422. package/schemas/live-disclosure.schema.json +16 -0
  423. package/schemas/live-outcome.schema.json +52 -0
  424. package/schemas/native-goal-snapshot.schema.json +27 -0
  425. package/schemas/provider-observed.schema.json +64 -0
  426. package/schemas/quota-observation.schema.json +72 -0
  427. package/schemas/reflection-evidence.schema.json +61 -0
  428. package/schemas/reflection.schema.json +13 -0
  429. package/schemas/regression-request.schema.json +54 -0
  430. package/schemas/release-assessment.schema.json +34 -0
  431. package/schemas/release-policy.schema.json +30 -0
  432. package/schemas/result-gate-payload.schema.json +244 -0
  433. package/schemas/review-delivery-payload.schema.json +42 -0
  434. package/schemas/role-policy.schema.json +111 -0
  435. package/schemas/run-abort-input.schema.json +11 -0
  436. package/schemas/run-completion-proof.schema.json +62 -0
  437. package/schemas/run-ledger-entry.schema.json +78 -0
  438. package/schemas/run-manifest.schema.json +74 -0
  439. package/schemas/run-start-intent.schema.json +74 -0
  440. package/schemas/runtime-record.schema.json +111 -0
  441. package/schemas/service-plan.schema.json +35 -0
  442. package/schemas/session-payload.schema.json +80 -0
  443. package/schemas/structured-role-read-request.schema.json +14 -0
  444. package/schemas/structured-role-request.schema.json +44 -0
  445. package/schemas/structured-role-result.schema.json +38 -0
  446. package/schemas/structured-role-submit-result.schema.json +15 -0
  447. package/schemas/team-checkpoint.schema.json +42 -0
  448. package/schemas/team-plan.schema.json +30 -0
  449. package/schemas/ticket-content.schema.json +38 -0
  450. package/schemas/ticket-queue-payload.schema.json +191 -0
  451. package/schemas/trust-report.schema.json +68 -0
  452. package/schemas/trust-run.schema.json +47 -0
  453. package/schemas/ultragoal-checkpoint.schema.json +49 -0
  454. package/schemas/user-schedule-installation-v1.schema.json +32 -0
  455. package/schemas/user-schedule-installation.schema.json +38 -0
  456. package/schemas/user-schedule-plan.schema.json +39 -0
  457. package/schemas/verification-plan-evidence.schema.json +37 -0
  458. package/schemas/worker-acknowledge-dispatch.schema.json +12 -0
  459. package/schemas/worker-payload.schema.json +47 -0
  460. package/schemas/worker-read-dispatch.schema.json +11 -0
  461. package/schemas/worker-record-dispatch-result.schema.json +14 -0
@@ -0,0 +1,28 @@
1
+ {
2
+ "type": "object",
3
+ "additionalProperties": false,
4
+ "required": ["ticket_id", "ticket_version", "ticket_attempt", "ticket_actor", "ticket_lease_token", "role_id", "quota_observation", "session_version", "due_at", "emitted_at", "latency_ms", "policy_digest"],
5
+ "properties": {
6
+ "ticket_id": { "type": "string", "pattern": "^[a-z0-9](?:[a-z0-9-]{0,62}[a-z0-9])?$" },
7
+ "ticket_version": { "type": "integer", "minimum": 0 },
8
+ "ticket_attempt": { "type": "integer", "minimum": 1 },
9
+ "ticket_actor": { "type": "string", "pattern": "^[a-z0-9](?:[a-z0-9-]{0,62}[a-z0-9])?$" },
10
+ "ticket_lease_token": { "type": ["string", "null"], "pattern": "^lease-[a-f0-9]{48}$" },
11
+ "role_id": { "type": ["string", "null"], "minLength": 3, "maxLength": 63 },
12
+ "quota_observation": {
13
+ "type": ["object", "null"],
14
+ "additionalProperties": false,
15
+ "required": ["observation_id", "sha256", "file_name"],
16
+ "properties": {
17
+ "observation_id": { "type": "string", "pattern": "^quota-[a-f0-9]{48}$" },
18
+ "sha256": { "type": "string", "pattern": "^[a-f0-9]{64}$" },
19
+ "file_name": { "type": "string", "pattern": "^quota-[a-f0-9]{48}\\.json$" }
20
+ }
21
+ },
22
+ "session_version": { "type": ["integer", "null"], "minimum": 0 },
23
+ "due_at": { "type": "string", "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}\\.[0-9]{3}Z$" },
24
+ "emitted_at": { "type": "string", "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}\\.[0-9]{3}Z$" },
25
+ "latency_ms": { "type": "integer", "minimum": 0 },
26
+ "policy_digest": { "type": "string", "pattern": "^[a-f0-9]{64}$" }
27
+ }
28
+ }
@@ -0,0 +1,14 @@
1
+ {
2
+ "type": "object",
3
+ "additionalProperties": false,
4
+ "required": ["ticket_id", "ticket_version", "ticket_attempt", "ticket_actor", "lease_token", "lease_expires_at", "observed_at"],
5
+ "properties": {
6
+ "ticket_id": { "type": "string", "pattern": "^[a-z0-9](?:[a-z0-9-]{0,62}[a-z0-9])?$" },
7
+ "ticket_version": { "type": "integer", "minimum": 0 },
8
+ "ticket_attempt": { "type": "integer", "minimum": 1, "maximum": 3 },
9
+ "ticket_actor": { "type": "string", "pattern": "^[a-z0-9](?:[a-z0-9-]{0,62}[a-z0-9])?$" },
10
+ "lease_token": { "type": "string", "pattern": "^[a-z0-9](?:[a-z0-9-]{0,62}[a-z0-9])?$" },
11
+ "lease_expires_at": { "type": "string", "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}\\.[0-9]{3}Z$" },
12
+ "observed_at": { "type": "string", "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}\\.[0-9]{3}Z$" }
13
+ }
14
+ }
@@ -0,0 +1,12 @@
1
+ {
2
+ "type": "object",
3
+ "additionalProperties": false,
4
+ "required": ["event_id", "consumer_id", "occurred_at", "observed_at", "age_ms"],
5
+ "properties": {
6
+ "event_id": { "type": "string", "pattern": "^[a-z0-9](?:[a-z0-9-]{0,62}[a-z0-9])?$" },
7
+ "consumer_id": { "type": "string", "pattern": "^[a-z0-9](?:[a-z0-9-]{0,62}[a-z0-9])?$" },
8
+ "occurred_at": { "type": "string", "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}\\.[0-9]{3}Z$" },
9
+ "observed_at": { "type": "string", "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}\\.[0-9]{3}Z$" },
10
+ "age_ms": { "type": "integer", "minimum": 900000 }
11
+ }
12
+ }
@@ -0,0 +1,11 @@
1
+ {
2
+ "type": "object",
3
+ "additionalProperties": false,
4
+ "required": ["session_id", "session_version", "heartbeat_deadline_at", "observed_at"],
5
+ "properties": {
6
+ "session_id": { "type": "string", "pattern": "^[a-z0-9](?:[a-z0-9-]{0,62}[a-z0-9])?$" },
7
+ "session_version": { "type": "integer", "minimum": 0 },
8
+ "heartbeat_deadline_at": { "type": "string", "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}\\.[0-9]{3}Z$" },
9
+ "observed_at": { "type": "string", "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}\\.[0-9]{3}Z$" }
10
+ }
11
+ }
@@ -0,0 +1,37 @@
1
+ {
2
+ "type": "object",
3
+ "additionalProperties": false,
4
+ "required": [
5
+ "schema_version",
6
+ "evidence_id",
7
+ "evidence_kind",
8
+ "ticket_id",
9
+ "producer_role",
10
+ "created_at",
11
+ "payload"
12
+ ],
13
+ "properties": {
14
+ "schema_version": { "const": 1 },
15
+ "evidence_id": {
16
+ "type": "string",
17
+ "pattern": "^[a-z0-9](?:[a-z0-9-]{0,62}[a-z0-9])?$"
18
+ },
19
+ "evidence_kind": {
20
+ "type": "string",
21
+ "pattern": "^[a-z0-9](?:[a-z0-9-]{0,62}[a-z0-9])?$"
22
+ },
23
+ "ticket_id": {
24
+ "type": ["string", "null"],
25
+ "pattern": "^[a-z0-9](?:[a-z0-9-]{0,62}[a-z0-9])?$"
26
+ },
27
+ "producer_role": {
28
+ "type": "string",
29
+ "pattern": "^[a-z0-9](?:[a-z0-9.-]{0,126}[a-z0-9])?$"
30
+ },
31
+ "created_at": {
32
+ "type": "string",
33
+ "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}(?:\\.[0-9]{1,3})?Z$"
34
+ },
35
+ "payload": { "type": "object" }
36
+ }
37
+ }
@@ -0,0 +1,17 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://oms.local/schemas/executor-result.schema.json",
4
+ "title": "OMS ticket executor result",
5
+ "type": "object",
6
+ "additionalProperties": false,
7
+ "required": ["status", "ticket_id", "attempt", "lease_token", "summary"],
8
+ "properties": {
9
+ "dispatch_id": { "type": "string", "pattern": "^[a-z0-9](?:[a-z0-9-]{0,62}[a-z0-9])?$" },
10
+ "status": { "enum": ["done", "blocked", "failed"] },
11
+ "ticket_id": { "type": "string", "pattern": "^[a-z0-9](?:[a-z0-9-]{0,62}[a-z0-9])?$" },
12
+ "attempt": { "type": "integer", "minimum": 1 },
13
+ "lease_token": { "type": "string", "pattern": "^[a-z0-9](?:[a-z0-9-]{0,62}[a-z0-9])?$" },
14
+ "worktree_commit": { "type": "string", "pattern": "^[a-f0-9]{40}(?:[a-f0-9]{24})?$" },
15
+ "summary": { "type": "string", "minLength": 1, "maxLength": 8192 }
16
+ }
17
+ }
@@ -0,0 +1,33 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "github-observation.v1",
4
+ "title": "OMS GitHub observation",
5
+ "type": "object",
6
+ "additionalProperties": false,
7
+ "required": [
8
+ "schema_version",
9
+ "observation_key",
10
+ "kind",
11
+ "repository",
12
+ "source_id_sha256",
13
+ "source_version",
14
+ "change",
15
+ "presence_generation",
16
+ "observed_at",
17
+ "payload_sha256",
18
+ "snapshot"
19
+ ],
20
+ "properties": {
21
+ "schema_version": { "const": 1 },
22
+ "observation_key": { "type": "string", "pattern": "^github-obs-[a-f0-9]{48}$" },
23
+ "kind": { "type": "string", "enum": ["issue", "comment", "label", "branch", "pull_request", "review", "check"] },
24
+ "repository": { "type": "string", "pattern": "^[a-z0-9][a-z0-9-]{0,38}/[a-z0-9._-]{1,100}$" },
25
+ "source_id_sha256": { "type": "string", "pattern": "^[a-f0-9]{64}$" },
26
+ "source_version": { "type": "string", "minLength": 1, "maxLength": 512 },
27
+ "change": { "type": "string", "enum": ["present", "removed"] },
28
+ "presence_generation": { "type": "integer", "minimum": 0 },
29
+ "observed_at": { "type": "string", "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}\\.[0-9]{3}Z$" },
30
+ "payload_sha256": { "type": "string", "pattern": "^[a-f0-9]{64}$" },
31
+ "snapshot": { "type": "object" }
32
+ }
33
+ }
@@ -0,0 +1,66 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "github-watermark.v1",
4
+ "title": "OMS GitHub sync watermark",
5
+ "type": "object",
6
+ "additionalProperties": false,
7
+ "required": ["schema_version", "repository", "generation", "completed_at", "observation_count", "batch_sha256", "streams", "inventory"],
8
+ "properties": {
9
+ "schema_version": { "const": 1 },
10
+ "repository": { "type": "string", "pattern": "^[a-z0-9][a-z0-9-]{0,38}/[a-z0-9._-]{1,100}$" },
11
+ "generation": { "type": "integer", "minimum": 0 },
12
+ "completed_at": { "type": "string", "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}\\.[0-9]{3}Z$" },
13
+ "observation_count": { "type": "integer", "minimum": 0 },
14
+ "batch_sha256": { "type": "string", "pattern": "^[a-f0-9]{64}$" },
15
+ "inventory": {
16
+ "type": "array",
17
+ "maxItems": 50000,
18
+ "items": {
19
+ "type": "object",
20
+ "additionalProperties": false,
21
+ "required": ["observation_key", "kind", "source_id_sha256", "payload_sha256", "presence_generation"],
22
+ "properties": {
23
+ "observation_key": { "type": "string", "pattern": "^github-obs-[a-f0-9]{48}$" },
24
+ "kind": { "type": "string", "enum": ["issue", "comment", "label", "branch", "pull_request", "review", "check"] },
25
+ "source_id_sha256": { "type": "string", "pattern": "^[a-f0-9]{64}$" },
26
+ "payload_sha256": { "type": "string", "pattern": "^[a-f0-9]{64}$" },
27
+ "presence_generation": { "type": "integer", "minimum": 0 }
28
+ }
29
+ }
30
+ },
31
+ "streams": {
32
+ "type": "object",
33
+ "additionalProperties": false,
34
+ "required": ["issues", "branches", "pull_requests"],
35
+ "properties": {
36
+ "issues": {
37
+ "type": "object",
38
+ "additionalProperties": false,
39
+ "required": ["page_count", "terminal_cursor_sha256"],
40
+ "properties": {
41
+ "page_count": { "type": "integer", "minimum": 1 },
42
+ "terminal_cursor_sha256": { "type": ["string", "null"], "pattern": "^[a-f0-9]{64}$" }
43
+ }
44
+ },
45
+ "branches": {
46
+ "type": "object",
47
+ "additionalProperties": false,
48
+ "required": ["page_count", "terminal_cursor_sha256"],
49
+ "properties": {
50
+ "page_count": { "type": "integer", "minimum": 1 },
51
+ "terminal_cursor_sha256": { "type": ["string", "null"], "pattern": "^[a-f0-9]{64}$" }
52
+ }
53
+ },
54
+ "pull_requests": {
55
+ "type": "object",
56
+ "additionalProperties": false,
57
+ "required": ["page_count", "terminal_cursor_sha256"],
58
+ "properties": {
59
+ "page_count": { "type": "integer", "minimum": 1 },
60
+ "terminal_cursor_sha256": { "type": ["string", "null"], "pattern": "^[a-f0-9]{64}$" }
61
+ }
62
+ }
63
+ }
64
+ }
65
+ }
66
+ }
@@ -0,0 +1,19 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://oms.local/schemas/goal-artifact.schema.json",
4
+ "title": "OMS goal evidence artifact envelope",
5
+ "type": "object",
6
+ "additionalProperties": false,
7
+ "required": ["schema_version", "artifact_id", "artifact_kind", "goal_id", "producer", "created_at", "payload"],
8
+ "properties": {
9
+ "schema_version": { "const": 1 },
10
+ "artifact_id": { "type": "string", "pattern": "^[a-z0-9](?:[a-z0-9-]{0,62}[a-z0-9])?$" },
11
+ "artifact_kind": {
12
+ "enum": ["native-goal-snapshot", "regression-request", "team-checkpoint", "ultragoal-checkpoint"]
13
+ },
14
+ "goal_id": { "type": "string", "pattern": "^[a-z0-9](?:[a-z0-9-]{0,62}[a-z0-9])?$" },
15
+ "producer": { "enum": ["codex-get-goal", "oms-goal-authority", "oms-team-projection", "oms-ultragoal-leader"] },
16
+ "created_at": { "type": "string", "minLength": 20, "maxLength": 24 },
17
+ "payload": { "type": "object" }
18
+ }
19
+ }
@@ -0,0 +1,14 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://oms.local/schemas/goal-create-input.schema.json",
4
+ "title": "OMS goal creation input",
5
+ "type": "object",
6
+ "additionalProperties": false,
7
+ "required": ["objective", "stopping_condition", "leader_id", "created_at"],
8
+ "properties": {
9
+ "objective": { "type": "string", "minLength": 1, "maxLength": 32768 },
10
+ "stopping_condition": { "type": "string", "minLength": 1, "maxLength": 32768 },
11
+ "leader_id": { "type": "string", "pattern": "^[a-z0-9](?:[a-z0-9-]{0,62}[a-z0-9])?$" },
12
+ "created_at": { "type": "string", "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}\\.[0-9]{3}Z$" }
13
+ }
14
+ }
@@ -0,0 +1,18 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://oms.local/schemas/goal-executor-result.schema.json",
4
+ "title": "OMS goal executor result",
5
+ "type": "object",
6
+ "additionalProperties": false,
7
+ "required": ["status", "goal_id", "attempt", "lease_token", "stopping_condition", "summary"],
8
+ "properties": {
9
+ "dispatch_id": { "type": "string", "pattern": "^[a-z0-9](?:[a-z0-9-]{0,62}[a-z0-9])?$" },
10
+ "status": { "enum": ["complete", "blocked", "paused"] },
11
+ "goal_id": { "type": "string", "pattern": "^[a-z0-9](?:[a-z0-9-]{0,62}[a-z0-9])?$" },
12
+ "attempt": { "type": "integer", "minimum": 1 },
13
+ "lease_token": { "type": "string", "pattern": "^[a-z0-9](?:[a-z0-9-]{0,62}[a-z0-9])?$" },
14
+ "worktree_commit": { "type": "string", "pattern": "^[a-f0-9]{40}(?:[a-f0-9]{24})?$" },
15
+ "stopping_condition": { "type": "string", "minLength": 1, "maxLength": 8192 },
16
+ "summary": { "type": "string", "minLength": 1, "maxLength": 8192 }
17
+ }
18
+ }
@@ -0,0 +1,95 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://oms.local/schemas/goal-payload.schema.json",
4
+ "title": "OMS canonical goal payload",
5
+ "type": "object",
6
+ "additionalProperties": false,
7
+ "required": [
8
+ "goal_id",
9
+ "objective",
10
+ "repository_scope",
11
+ "queue_scope",
12
+ "stopping_condition",
13
+ "runtime_horizon",
14
+ "budget_profile",
15
+ "policy_profile",
16
+ "creation_nonce",
17
+ "created_at",
18
+ "updated_at",
19
+ "native_snapshot",
20
+ "team_checkpoint",
21
+ "ultragoal_checkpoint",
22
+ "regression_request",
23
+ "park_reason"
24
+ ],
25
+ "properties": {
26
+ "goal_id": { "type": "string", "pattern": "^[a-z0-9](?:[a-z0-9-]{0,62}[a-z0-9])?$" },
27
+ "objective": { "type": "string", "minLength": 1, "maxLength": 32768 },
28
+ "repository_scope": { "type": "string", "pattern": "^/", "maxLength": 4096 },
29
+ "queue_scope": { "type": "string", "minLength": 1, "maxLength": 4096 },
30
+ "stopping_condition": { "type": "string", "minLength": 1, "maxLength": 32768 },
31
+ "runtime_horizon": { "enum": ["until-empty", "12h", "24h"] },
32
+ "budget_profile": { "const": "subscription-only" },
33
+ "policy_profile": { "const": "default" },
34
+ "creation_nonce": {
35
+ "type": "string",
36
+ "pattern": "^[a-z0-9](?:[a-z0-9-]{0,62}[a-z0-9])?$"
37
+ },
38
+ "created_at": { "type": "string", "minLength": 20, "maxLength": 24 },
39
+ "updated_at": { "type": "string", "minLength": 20, "maxLength": 24 },
40
+ "native_snapshot": {
41
+ "type": ["object", "null"],
42
+ "additionalProperties": false,
43
+ "required": ["kind", "artifact_id", "sha256", "file_name"],
44
+ "properties": {
45
+ "kind": { "const": "native-goal-snapshot" },
46
+ "artifact_id": { "type": "string", "pattern": "^[a-z0-9](?:[a-z0-9-]{0,62}[a-z0-9])?$" },
47
+ "sha256": { "type": "string", "pattern": "^[a-f0-9]{64}$" },
48
+ "file_name": { "type": "string", "maxLength": 96 }
49
+ }
50
+ },
51
+ "team_checkpoint": {
52
+ "type": ["object", "null"],
53
+ "additionalProperties": false,
54
+ "required": ["kind", "artifact_id", "sha256", "file_name"],
55
+ "properties": {
56
+ "kind": { "const": "team-checkpoint" },
57
+ "artifact_id": { "type": "string", "pattern": "^[a-z0-9](?:[a-z0-9-]{0,62}[a-z0-9])?$" },
58
+ "sha256": { "type": "string", "pattern": "^[a-f0-9]{64}$" },
59
+ "file_name": { "type": "string", "maxLength": 96 }
60
+ }
61
+ },
62
+ "ultragoal_checkpoint": {
63
+ "type": ["object", "null"],
64
+ "additionalProperties": false,
65
+ "required": ["kind", "artifact_id", "sha256", "file_name"],
66
+ "properties": {
67
+ "kind": { "const": "ultragoal-checkpoint" },
68
+ "artifact_id": { "type": "string", "pattern": "^[a-z0-9](?:[a-z0-9-]{0,62}[a-z0-9])?$" },
69
+ "sha256": { "type": "string", "pattern": "^[a-f0-9]{64}$" },
70
+ "file_name": { "type": "string", "maxLength": 96 }
71
+ }
72
+ },
73
+ "regression_request": {
74
+ "type": ["object", "null"],
75
+ "additionalProperties": false,
76
+ "required": ["kind", "artifact_id", "sha256", "file_name"],
77
+ "properties": {
78
+ "kind": { "const": "regression-request" },
79
+ "artifact_id": { "type": "string", "pattern": "^[a-z0-9](?:[a-z0-9-]{0,62}[a-z0-9])?$" },
80
+ "sha256": { "type": "string", "pattern": "^[a-f0-9]{64}$" },
81
+ "file_name": { "type": "string", "maxLength": 96 }
82
+ }
83
+ },
84
+ "park_reason": {
85
+ "type": ["string", "null"],
86
+ "enum": [
87
+ "native-goal-mismatch",
88
+ "stale-native-snapshot",
89
+ "predicate-failed",
90
+ "ultragoal-mismatch",
91
+ null
92
+ ]
93
+ }
94
+ }
95
+ }
@@ -0,0 +1,33 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://oms.local/schemas/grader-output.schema.json",
4
+ "title": "OMS grader output",
5
+ "type": "object",
6
+ "additionalProperties": false,
7
+ "required": ["verdict", "summary", "deterministic_evidence"],
8
+ "properties": {
9
+ "verdict": { "enum": ["pass", "fail"] },
10
+ "summary": { "type": "string", "minLength": 1, "maxLength": 8192 },
11
+ "deterministic_evidence": {
12
+ "type": "object",
13
+ "additionalProperties": false,
14
+ "required": ["evidence_id", "sha256", "file_name"],
15
+ "properties": {
16
+ "evidence_id": { "type": "string", "pattern": "^[a-z0-9](?:[a-z0-9-]{0,62}[a-z0-9])?$" },
17
+ "sha256": { "type": "string", "pattern": "^[a-f0-9]{64}$" },
18
+ "file_name": { "type": "string", "minLength": 6, "maxLength": 69 }
19
+ }
20
+ },
21
+ "failures": {
22
+ "type": "array",
23
+ "maxItems": 64,
24
+ "items": { "type": "string", "minLength": 1, "maxLength": 4096 }
25
+ },
26
+ "provider_request_id": {
27
+ "type": "string",
28
+ "pattern": "^[a-z0-9](?:[a-z0-9-]{0,62}[a-z0-9])?$"
29
+ },
30
+ "grader_engine": { "enum": ["codex", "claude"] },
31
+ "fresh_session_id": { "type": "string", "minLength": 1, "maxLength": 128 }
32
+ }
33
+ }
@@ -0,0 +1,19 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://oms.local/schemas/lease-expiry.schema.json",
4
+ "title": "OMS expired worker lease evidence",
5
+ "type": "object",
6
+ "additionalProperties": false,
7
+ "required": ["ticket_id", "attempt", "lease_token", "worktree_start_commit", "expired_at", "reason"],
8
+ "properties": {
9
+ "ticket_id": { "type": "string", "pattern": "^[a-z0-9](?:[a-z0-9-]{0,62}[a-z0-9])?$" },
10
+ "attempt": { "type": "integer", "minimum": 1 },
11
+ "lease_token": { "type": "string", "pattern": "^[a-z0-9](?:[a-z0-9-]{0,62}[a-z0-9])?$" },
12
+ "worktree_start_commit": { "type": "string", "pattern": "^[a-f0-9]{40}(?:[a-f0-9]{24})?$" },
13
+ "expired_at": {
14
+ "type": "string",
15
+ "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}(?:\\.[0-9]{1,3})?Z$"
16
+ },
17
+ "reason": { "type": "string", "minLength": 1, "maxLength": 2048 }
18
+ }
19
+ }
@@ -0,0 +1,16 @@
1
+ {
2
+ "type": "object",
3
+ "additionalProperties": false,
4
+ "required": ["schema_version", "certification", "run_id", "contact_surface", "expected_spend", "operation", "repository", "ready_label", "issue_limit"],
5
+ "properties": {
6
+ "schema_version": { "const": 1 },
7
+ "certification": { "type": "string", "enum": ["live", "non-certifying"] },
8
+ "run_id": { "type": "string", "pattern": "^[a-z0-9](?:[a-z0-9-]{0,62}[a-z0-9])?$" },
9
+ "contact_surface": { "const": "github-api-via-gh" },
10
+ "expected_spend": { "const": "none" },
11
+ "operation": { "const": "read-ready-issues" },
12
+ "repository": { "type": "string", "minLength": 3, "maxLength": 201 },
13
+ "ready_label": { "type": "string", "minLength": 1, "maxLength": 100 },
14
+ "issue_limit": { "type": "integer", "minimum": 1, "maximum": 100 }
15
+ }
16
+ }
@@ -0,0 +1,52 @@
1
+ {
2
+ "type": "object",
3
+ "additionalProperties": false,
4
+ "required": [
5
+ "schema_version",
6
+ "certification",
7
+ "run_id",
8
+ "disclosure_evidence",
9
+ "status",
10
+ "failed_phase",
11
+ "error",
12
+ "issue_count",
13
+ "synced_count",
14
+ "synced_tickets"
15
+ ],
16
+ "properties": {
17
+ "schema_version": { "const": 1 },
18
+ "certification": { "type": "string", "enum": ["live", "non-certifying"] },
19
+ "run_id": { "type": "string", "pattern": "^[a-z0-9](?:[a-z0-9-]{0,62}[a-z0-9])?$" },
20
+ "disclosure_evidence": {
21
+ "type": "object",
22
+ "additionalProperties": false,
23
+ "required": ["evidence_id", "sha256", "file_name"],
24
+ "properties": {
25
+ "evidence_id": { "type": "string", "pattern": "^[a-z0-9](?:[a-z0-9-]{0,62}[a-z0-9])?$" },
26
+ "sha256": { "type": "string", "pattern": "^[a-f0-9]{64}$" },
27
+ "file_name": { "type": "string", "minLength": 6, "maxLength": 69 }
28
+ }
29
+ },
30
+ "status": { "type": "string", "enum": ["success", "failure"] },
31
+ "failed_phase": { "type": ["string", "null"], "enum": ["contact", "sync", "evidence", null] },
32
+ "error": { "type": ["string", "null"], "maxLength": 4096 },
33
+ "issue_count": { "type": "integer", "minimum": 0 },
34
+ "synced_count": { "type": "integer", "minimum": 0 },
35
+ "synced_tickets": {
36
+ "type": "array",
37
+ "maxItems": 100,
38
+ "items": {
39
+ "type": "object",
40
+ "additionalProperties": false,
41
+ "required": ["ticket_id", "content_sha256", "content_file", "record_version", "sync_status"],
42
+ "properties": {
43
+ "ticket_id": { "type": "string", "pattern": "^[a-z0-9](?:[a-z0-9-]{0,62}[a-z0-9])?$" },
44
+ "content_sha256": { "type": "string", "pattern": "^[a-f0-9]{64}$" },
45
+ "content_file": { "type": "string", "minLength": 71, "maxLength": 133 },
46
+ "record_version": { "type": "integer", "minimum": 0 },
47
+ "sync_status": { "type": "string", "enum": ["created", "refreshed", "unchanged"] }
48
+ }
49
+ }
50
+ }
51
+ }
52
+ }
@@ -0,0 +1,27 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://oms.local/schemas/native-goal-snapshot.schema.json",
4
+ "title": "Immutable native get_goal snapshot",
5
+ "type": "object",
6
+ "additionalProperties": false,
7
+ "required": [
8
+ "schema_version",
9
+ "native_goal_id",
10
+ "objective",
11
+ "stopping_condition",
12
+ "status",
13
+ "terminal",
14
+ "snapshot_version",
15
+ "captured_at"
16
+ ],
17
+ "properties": {
18
+ "schema_version": { "const": 1 },
19
+ "native_goal_id": { "type": "string", "pattern": "^[a-z0-9](?:[a-z0-9-]{0,62}[a-z0-9])?$" },
20
+ "objective": { "type": "string", "minLength": 1, "maxLength": 32768 },
21
+ "stopping_condition": { "type": "string", "minLength": 1, "maxLength": 32768 },
22
+ "status": { "enum": ["active", "complete", "blocked", "cancelled"] },
23
+ "terminal": { "type": "boolean" },
24
+ "snapshot_version": { "type": "integer", "minimum": 1 },
25
+ "captured_at": { "type": "string", "minLength": 20, "maxLength": 24 }
26
+ }
27
+ }
@@ -0,0 +1,64 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://oms.local/schemas/provider-observed.schema.json",
4
+ "title": "OMS bounded provider observation",
5
+ "type": "object",
6
+ "additionalProperties": false,
7
+ "required": [
8
+ "schema_version",
9
+ "observation_id",
10
+ "delivery_id",
11
+ "occurrence_id",
12
+ "provider",
13
+ "provider_version",
14
+ "hook_event",
15
+ "observation_kind",
16
+ "observation_state",
17
+ "dispatch_id",
18
+ "dispatch_version",
19
+ "session_id",
20
+ "session_version",
21
+ "worker_record_id",
22
+ "worker_version",
23
+ "ticket_id",
24
+ "ticket_version",
25
+ "ticket_attempt",
26
+ "observed_at",
27
+ "native_session_sha256",
28
+ "source_sha256",
29
+ "terminal_authority"
30
+ ],
31
+ "properties": {
32
+ "schema_version": { "const": 1 },
33
+ "observation_id": { "type": "string", "pattern": "^[a-z0-9](?:[a-z0-9-]{0,62}[a-z0-9])?$" },
34
+ "delivery_id": { "type": "string", "pattern": "^[a-z0-9](?:[a-z0-9-]{0,62}[a-z0-9])?$" },
35
+ "occurrence_id": { "type": "string", "pattern": "^[a-z0-9](?:[a-z0-9-]{0,62}[a-z0-9])?$" },
36
+ "provider": { "type": "string", "enum": ["claude", "codex"] },
37
+ "provider_version": { "type": "string", "enum": ["2.1.207", "0.145.0-alpha.2"] },
38
+ "hook_event": {
39
+ "type": "string",
40
+ "enum": ["SessionStart", "UserPromptSubmit", "Stop", "StopFailure", "Notification", "SessionEnd"]
41
+ },
42
+ "observation_kind": {
43
+ "type": "string",
44
+ "enum": ["session", "activity", "health", "completion-observed", "quota"]
45
+ },
46
+ "observation_state": {
47
+ "type": "string",
48
+ "enum": ["started", "stopped", "idle", "working", "healthy", "parked", "stalled", "observed", "limited", "available"]
49
+ },
50
+ "dispatch_id": { "type": "string", "pattern": "^[a-z0-9](?:[a-z0-9-]{0,62}[a-z0-9])?$" },
51
+ "dispatch_version": { "type": "integer", "minimum": 0 },
52
+ "session_id": { "type": "string", "pattern": "^[a-z0-9](?:[a-z0-9-]{0,62}[a-z0-9])?$" },
53
+ "session_version": { "type": "integer", "minimum": 0 },
54
+ "worker_record_id": { "type": "string", "pattern": "^[a-z0-9](?:[a-z0-9-]{0,62}[a-z0-9])?$" },
55
+ "worker_version": { "type": "integer", "minimum": 0 },
56
+ "ticket_id": { "type": "string", "pattern": "^[a-z0-9](?:[a-z0-9-]{0,62}[a-z0-9])?$" },
57
+ "ticket_version": { "type": "integer", "minimum": 0 },
58
+ "ticket_attempt": { "type": "integer", "minimum": 1 },
59
+ "observed_at": { "type": "string", "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}\\.[0-9]{3}Z$" },
60
+ "native_session_sha256": { "type": "string", "pattern": "^[a-f0-9]{64}$" },
61
+ "source_sha256": { "type": "string", "pattern": "^[a-f0-9]{64}$" },
62
+ "terminal_authority": { "const": false }
63
+ }
64
+ }