@openplanr/protocol 0.2.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 (334) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +82 -0
  3. package/lib/dashboard/closed-json-contract.mjs +141 -0
  4. package/lib/dashboard/generated/operate-experience-surface-schema-data.mjs +67 -0
  5. package/lib/dashboard/generated/operate-review-schema-data.mjs +35 -0
  6. package/lib/dashboard/generated/operate-schema-token-codec.mjs +127 -0
  7. package/lib/dashboard/operate-experience-audit-display-contract.d.mts +196 -0
  8. package/lib/dashboard/operate-experience-audit-display-contract.mjs +700 -0
  9. package/lib/dashboard/operate-experience-display-contract.d.mts +572 -0
  10. package/lib/dashboard/operate-experience-display-contract.mjs +1007 -0
  11. package/lib/dashboard/operate-experience-surface-contract.d.mts +157 -0
  12. package/lib/dashboard/operate-experience-surface-contract.mjs +91 -0
  13. package/lib/dashboard/operate-review-contract.d.mts +34 -0
  14. package/lib/dashboard/operate-review-contract.mjs +175 -0
  15. package/lib/dashboard/operate-review-display-workspace-contract.d.mts +54 -0
  16. package/lib/dashboard/operate-review-display-workspace-contract.mjs +258 -0
  17. package/lib/dashboard/operate-review-payload-safety.d.mts +7 -0
  18. package/lib/dashboard/operate-review-payload-safety.mjs +42 -0
  19. package/lib/dashboard/operate-review-workspace-projection-v2.d.mts +218 -0
  20. package/lib/protocol/index.d.ts +2638 -0
  21. package/package.json +115 -0
  22. package/registries/commands.json +1952 -0
  23. package/registries/diagram-grammars.json +2407 -0
  24. package/registries/diagram-semantic-patterns.json +111 -0
  25. package/registries/output-paths.json +40 -0
  26. package/registries/outputs.json +864 -0
  27. package/registries/roles.json +661 -0
  28. package/registries/rules.json +261 -0
  29. package/registries/skill-host-profiles.json +247 -0
  30. package/registries/skill-modules.json +1112 -0
  31. package/registries/skill-routing.json +389 -0
  32. package/registries/skills.json +1545 -0
  33. package/registries/task-kinds.json +220 -0
  34. package/registry/adapters.json +110 -0
  35. package/registry/artifact-theme.json +60 -0
  36. package/registry/evaluation-graders.json +303 -0
  37. package/registry/evaluation-host-profiles.json +131 -0
  38. package/registry/frozen-commands.json +15 -0
  39. package/registry/landing-operations.json +20 -0
  40. package/registry/landing-workflows.json +70 -0
  41. package/registry/live-evidence-providers.json +1 -0
  42. package/registry/operate-v2-contracts.json +5965 -0
  43. package/registry/professional-skills.json +115 -0
  44. package/registry/roles.json +14 -0
  45. package/registry/ship-review-specialists.json +42 -0
  46. package/schemas/v1.0.0/design-approved.schema.json +35 -0
  47. package/schemas/v1.0.0/design-feedback.schema.json +169 -0
  48. package/schemas/v1.0.0/design-manifest.schema.json +90 -0
  49. package/schemas/v1.0.0/design-session.schema.json +73 -0
  50. package/schemas/v1.0.0/graph.schema.json +100 -0
  51. package/schemas/v1.0.0/pipeline-shipped.schema.json +154 -0
  52. package/schemas/v1.0.0/run-manifest.schema.json +81 -0
  53. package/schemas/v1.0.0/spec.schema.json +120 -0
  54. package/schemas/v1.0.0/stack.schema.json +184 -0
  55. package/schemas/v1.0.0/story.schema.json +95 -0
  56. package/schemas/v1.0.0/task.schema.json +171 -0
  57. package/schemas/v1.0.0/taste-profile.schema.json +96 -0
  58. package/schemas/v1.1.0/adapter-registry.schema.json +72 -0
  59. package/schemas/v1.1.0/artifact-envelope.schema.json +142 -0
  60. package/schemas/v1.1.0/artifact-paste.schema.json +49 -0
  61. package/schemas/v1.1.0/artifact-review.schema.json +97 -0
  62. package/schemas/v1.1.0/artifact-room-descriptor.schema.json +39 -0
  63. package/schemas/v1.1.0/artifact-room-event.schema.json +184 -0
  64. package/schemas/v1.1.0/artifact-room-signed-event.schema.json +58 -0
  65. package/schemas/v1.1.0/artifact-theme.schema.json +139 -0
  66. package/schemas/v1.1.0/browser-qa-gate.schema.json +21 -0
  67. package/schemas/v1.1.0/browser-qa-result.schema.json +24 -0
  68. package/schemas/v1.1.0/browser-qa-session.schema.json +12 -0
  69. package/schemas/v1.1.0/ecosystem-manifest.schema.json +46 -0
  70. package/schemas/v1.1.0/investigation-diagnosis.schema.json +12 -0
  71. package/schemas/v1.1.0/investigation-event.schema.json +15 -0
  72. package/schemas/v1.1.0/investigation-experiment.schema.json +17 -0
  73. package/schemas/v1.1.0/investigation-fix.schema.json +11 -0
  74. package/schemas/v1.1.0/investigation-hypothesis.schema.json +6 -0
  75. package/schemas/v1.1.0/investigation-observation.schema.json +10 -0
  76. package/schemas/v1.1.0/investigation-receipt.schema.json +7 -0
  77. package/schemas/v1.1.0/investigation-record.schema.json +7 -0
  78. package/schemas/v1.1.0/investigation-request.schema.json +34 -0
  79. package/schemas/v1.1.0/planning-review-event.schema.json +64 -0
  80. package/schemas/v1.1.0/planning-review-receipt.schema.json +19 -0
  81. package/schemas/v1.1.0/planning-review-record.schema.json +176 -0
  82. package/schemas/v1.1.0/planning-review-state.schema.json +19 -0
  83. package/schemas/v1.1.0/professional-skills.schema.json +105 -0
  84. package/schemas/v1.1.0/professional-specification.schema.json +111 -0
  85. package/schemas/v1.1.0/provenance-event.schema.json +82 -0
  86. package/schemas/v1.1.0/role-registry.schema.json +28 -0
  87. package/schemas/v1.1.0/runtime-lock.schema.json +39 -0
  88. package/schemas/v1.1.0/ship-closure.schema.json +353 -0
  89. package/schemas/v1.1.0/ship-review-specialist-registry.schema.json +29 -0
  90. package/schemas/v1.1.0/ship-risk-classification.schema.json +48 -0
  91. package/schemas/v1.1.0/specialist-review-result.schema.json +19 -0
  92. package/schemas/v1.10.0/design-review-bundle.schema.json +584 -0
  93. package/schemas/v1.10.0/design-review-context.schema.json +191 -0
  94. package/schemas/v1.10.0/design-review-handoff.schema.json +407 -0
  95. package/schemas/v1.10.0/design-review-metadata-payload.schema.json +106 -0
  96. package/schemas/v1.11.0/design-review-metadata-payload.schema.json +107 -0
  97. package/schemas/v1.12.0/enterprise-access-context.schema.json +217 -0
  98. package/schemas/v1.12.0/enterprise-agent-handoff.schema.json +508 -0
  99. package/schemas/v1.12.0/enterprise-artifact-revision.schema.json +87 -0
  100. package/schemas/v1.12.0/enterprise-change-proposal.schema.json +359 -0
  101. package/schemas/v1.12.0/enterprise-evidence-reference.schema.json +147 -0
  102. package/schemas/v1.12.0/enterprise-review-thread.schema.json +278 -0
  103. package/schemas/v1.12.0/enterprise-sync-state.schema.json +169 -0
  104. package/schemas/v1.2.0/adapter-registry.schema.json +83 -0
  105. package/schemas/v1.2.0/dashboard-bootstrap.schema.json +219 -0
  106. package/schemas/v1.2.0/ecosystem-release-operation.schema.json +90 -0
  107. package/schemas/v1.2.0/ecosystem-saga.schema.json +54 -0
  108. package/schemas/v1.2.0/evidence-diagnostic.schema.json +77 -0
  109. package/schemas/v1.2.0/guided-answer-envelope.schema.json +73 -0
  110. package/schemas/v1.2.0/guided-confirmation.schema.json +128 -0
  111. package/schemas/v1.2.0/guided-question.schema.json +242 -0
  112. package/schemas/v1.2.0/guided-questionnaire.schema.json +278 -0
  113. package/schemas/v1.2.0/guided-session.schema.json +141 -0
  114. package/schemas/v1.2.0/landing-confirmation.schema.json +17 -0
  115. package/schemas/v1.2.0/landing-event.schema.json +12 -0
  116. package/schemas/v1.2.0/landing-operation-registry.schema.json +16 -0
  117. package/schemas/v1.2.0/landing-phase-receipt.schema.json +19 -0
  118. package/schemas/v1.2.0/landing-plan.schema.json +36 -0
  119. package/schemas/v1.2.0/landing-receipt.schema.json +12 -0
  120. package/schemas/v1.2.0/landing-workflow-catalog.schema.json +143 -0
  121. package/schemas/v1.2.0/operate-action-display-workspace.schema.json +119 -0
  122. package/schemas/v1.2.0/operate-cycle-display-workspace.schema.json +109 -0
  123. package/schemas/v1.2.0/operate-executive-board-display-surface.schema.json +72 -0
  124. package/schemas/v1.2.0/operate-experience-audit-display-surface.schema.json +328 -0
  125. package/schemas/v1.2.0/operate-experience-display-surface.schema.json +46 -0
  126. package/schemas/v1.2.0/operate-experience-surface.schema.json +590 -0
  127. package/schemas/v1.2.0/operate-recovery-display-surface.schema.json +85 -0
  128. package/schemas/v1.2.0/structured-action.schema.json +91 -0
  129. package/schemas/v1.3.0/adapter-registry.schema.json +84 -0
  130. package/schemas/v1.3.0/ecosystem-manifest.schema.json +120 -0
  131. package/schemas/v1.3.0/release-compatibility-claim.schema.json +46 -0
  132. package/schemas/v1.3.0/release-ledger-receipt.schema.json +45 -0
  133. package/schemas/v1.3.0/release-ledger.schema.json +60 -0
  134. package/schemas/v1.4.0/adapter-registry.schema.json +62 -0
  135. package/schemas/v1.4.0/evaluation-aggregate-report.schema.json +166 -0
  136. package/schemas/v1.4.0/evaluation-budget.schema.json +49 -0
  137. package/schemas/v1.4.0/evaluation-corpus.schema.json +93 -0
  138. package/schemas/v1.4.0/evaluation-fixture.schema.json +64 -0
  139. package/schemas/v1.4.0/evaluation-gate-policy.schema.json +33 -0
  140. package/schemas/v1.4.0/evaluation-grader-registration.schema.json +141 -0
  141. package/schemas/v1.4.0/evaluation-grader-registry.schema.json +20 -0
  142. package/schemas/v1.4.0/evaluation-host-profile-registry.schema.json +20 -0
  143. package/schemas/v1.4.0/evaluation-host-profile.schema.json +73 -0
  144. package/schemas/v1.4.0/evaluation-observation.schema.json +76 -0
  145. package/schemas/v1.4.0/evaluation-run-result.schema.json +84 -0
  146. package/schemas/v1.4.0/evaluation-scenario.schema.json +231 -0
  147. package/schemas/v1.4.0/evaluation-waiver.schema.json +65 -0
  148. package/schemas/v1.4.0/skill-certification-receipt.schema.json +103 -0
  149. package/schemas/v1.5.0/command-catalog.schema.json +296 -0
  150. package/schemas/v1.5.0/common.schema.json +261 -0
  151. package/schemas/v1.5.0/generated-asset-manifest.schema.json +313 -0
  152. package/schemas/v1.5.0/implementation-result.schema.json +152 -0
  153. package/schemas/v1.5.0/migration-preservation-manifest.schema.json +749 -0
  154. package/schemas/v1.5.0/output-catalog.schema.json +210 -0
  155. package/schemas/v1.5.0/output-path-catalog.schema.json +81 -0
  156. package/schemas/v1.5.0/role-registry.schema.json +261 -0
  157. package/schemas/v1.5.0/rule-catalog.schema.json +130 -0
  158. package/schemas/v1.5.0/skill-catalog.schema.json +303 -0
  159. package/schemas/v1.5.0/task-kind-registry.schema.json +167 -0
  160. package/schemas/v1.5.0/task-manifest.schema.json +373 -0
  161. package/schemas/v1.5.0/task-output-manifest.schema.json +462 -0
  162. package/schemas/v1.6.0/common.schema.json +462 -0
  163. package/schemas/v1.6.0/diagram-consumer-reference.schema.json +167 -0
  164. package/schemas/v1.6.0/diagram-document.schema.json +699 -0
  165. package/schemas/v1.6.0/diagram-fidelity-report.schema.json +137 -0
  166. package/schemas/v1.6.0/diagram-manifest.schema.json +162 -0
  167. package/schemas/v1.6.0/diagram-quality-report.schema.json +148 -0
  168. package/schemas/v1.6.0/diagram-review-binding.schema.json +132 -0
  169. package/schemas/v1.6.0/diagram-semantic-pattern-registry.schema.json +90 -0
  170. package/schemas/v1.6.0/diagram-type-registry.schema.json +373 -0
  171. package/schemas/v1.6.0/generated-asset-manifest.schema.json +103 -0
  172. package/schemas/v1.6.0/skill-catalog.schema.json +84 -0
  173. package/schemas/v1.6.0/skill-completion-receipt.schema.json +72 -0
  174. package/schemas/v1.6.0/skill-consent-record.schema.json +74 -0
  175. package/schemas/v1.6.0/skill-host-profile-registry.schema.json +526 -0
  176. package/schemas/v1.6.0/skill-learning-record.schema.json +116 -0
  177. package/schemas/v1.6.0/skill-module-registry.schema.json +108 -0
  178. package/schemas/v1.6.0/skill-routing-registry.schema.json +93 -0
  179. package/schemas/v1.6.0/skill-session.schema.json +73 -0
  180. package/schemas/v1.6.0/skill-source.schema.json +169 -0
  181. package/schemas/v1.7.0/common.schema.json +464 -0
  182. package/schemas/v1.7.0/generated-asset-manifest.schema.json +103 -0
  183. package/schemas/v1.7.0/planning-id-sequence.schema.json +50 -0
  184. package/schemas/v1.7.0/request-authority.schema.json +71 -0
  185. package/schemas/v1.7.0/skill-catalog.schema.json +84 -0
  186. package/schemas/v1.7.0/skill-completion-receipt.schema.json +72 -0
  187. package/schemas/v1.7.0/skill-consent-record.schema.json +74 -0
  188. package/schemas/v1.7.0/skill-host-profile-registry.schema.json +526 -0
  189. package/schemas/v1.7.0/skill-learning-record.schema.json +116 -0
  190. package/schemas/v1.7.0/skill-module-registry.schema.json +108 -0
  191. package/schemas/v1.7.0/skill-routing-registry.schema.json +93 -0
  192. package/schemas/v1.7.0/skill-session.schema.json +73 -0
  193. package/schemas/v1.7.0/skill-source.schema.json +169 -0
  194. package/schemas/v1.7.0/spec.schema.json +117 -0
  195. package/schemas/v1.7.0/story.schema.json +107 -0
  196. package/schemas/v1.7.0/task.schema.json +217 -0
  197. package/schemas/v1.8.0/common.schema.json +96 -0
  198. package/schemas/v1.8.0/skill-package.schema.json +63 -0
  199. package/schemas/v1.8.0/utility-command-catalog.schema.json +82 -0
  200. package/schemas/v1.9.0/design-document.schema.json +306 -0
  201. package/schemas/v1.9.0/design-review-bundle.schema.json +346 -0
  202. package/schemas/v1.9.0/design-review-workspace.schema.json +108 -0
  203. package/schemas/v1.9.0/design-workspace-create.schema.json +170 -0
  204. package/schemas/v1.9.0/design-workspace-event.schema.json +97 -0
  205. package/schemas/v1.9.0/design-workspace-revision.schema.json +56 -0
  206. package/schemas/v2.0.0/agent-runtime-manifest.schema.json +59 -0
  207. package/schemas/v2.0.0/business-operating-snapshot-projection.schema.json +14 -0
  208. package/schemas/v2.0.0/operate-allowed-action.schema.json +181 -0
  209. package/schemas/v2.0.0/operate-api-envelope.schema.json +225 -0
  210. package/schemas/v2.0.0/operate-capability-provider-registration.schema.json +30 -0
  211. package/schemas/v2.0.0/operate-domain-registration.schema.json +284 -0
  212. package/schemas/v2.0.0/operate-evidence-provider-registration.schema.json +55 -0
  213. package/schemas/v2.0.0/operate-evidence-resolver-registration.schema.json +46 -0
  214. package/schemas/v2.0.0/operate-executor-registration.schema.json +27 -0
  215. package/schemas/v2.0.0/operate-experience-live-patch.schema.json +47 -0
  216. package/schemas/v2.0.0/operate-experience-preview.schema.json +51 -0
  217. package/schemas/v2.0.0/operate-experience-view.schema.json +281 -0
  218. package/schemas/v2.0.0/operate-live-evidence-provider-registration.schema.json +48 -0
  219. package/schemas/v2.0.0/operate-live-evidence-provider-registry.schema.json +17 -0
  220. package/schemas/v2.0.0/operate-metric-provider-registration.schema.json +12 -0
  221. package/schemas/v2.0.0/operate-policy-provider-registration.schema.json +33 -0
  222. package/schemas/v2.0.0/operate-review-bound-submission.schema.json +29 -0
  223. package/schemas/v2.0.0/operate-review-display-workspace.schema.json +390 -0
  224. package/schemas/v2.0.0/operate-snapshot-provider-registration.schema.json +16 -0
  225. package/schemas/v2.0.0/operate-tool-call.schema.json +172 -0
  226. package/schemas/v2.0.0/operate-verification-provider-registration.schema.json +12 -0
  227. package/schemas/v2.0.0/operating-action-policy.schema.json +31 -0
  228. package/schemas/v2.0.0/operating-action-verification-plan.schema.json +13 -0
  229. package/schemas/v2.0.0/operating-action.schema.json +86 -0
  230. package/schemas/v2.0.0/operating-advisor-result.schema.json +394 -0
  231. package/schemas/v2.0.0/operating-approval-record.schema.json +23 -0
  232. package/schemas/v2.0.0/operating-approval-requirement.schema.json +31 -0
  233. package/schemas/v2.0.0/operating-artifact.schema.json +52 -0
  234. package/schemas/v2.0.0/operating-assignment.schema.json +437 -0
  235. package/schemas/v2.0.0/operating-assumption.schema.json +16 -0
  236. package/schemas/v2.0.0/operating-capability-availability.schema.json +15 -0
  237. package/schemas/v2.0.0/operating-capability-grant.schema.json +14 -0
  238. package/schemas/v2.0.0/operating-challenger-review.schema.json +204 -0
  239. package/schemas/v2.0.0/operating-checkpoint.schema.json +43 -0
  240. package/schemas/v2.0.0/operating-claim.schema.json +17 -0
  241. package/schemas/v2.0.0/operating-connector-checkpoint.schema.json +28 -0
  242. package/schemas/v2.0.0/operating-context-capture.schema.json +74 -0
  243. package/schemas/v2.0.0/operating-cycle-input-binding.schema.json +30 -0
  244. package/schemas/v2.0.0/operating-cycle.schema.json +42 -0
  245. package/schemas/v2.0.0/operating-decision-ledger.schema.json +237 -0
  246. package/schemas/v2.0.0/operating-decision.schema.json +137 -0
  247. package/schemas/v2.0.0/operating-delivery-evidence.schema.json +46 -0
  248. package/schemas/v2.0.0/operating-delivery-route.schema.json +43 -0
  249. package/schemas/v2.0.0/operating-delta.schema.json +13 -0
  250. package/schemas/v2.0.0/operating-domain-projection.schema.json +15 -0
  251. package/schemas/v2.0.0/operating-event-trigger.schema.json +11 -0
  252. package/schemas/v2.0.0/operating-event.schema.json +505 -0
  253. package/schemas/v2.0.0/operating-evidence-candidate.schema.json +88 -0
  254. package/schemas/v2.0.0/operating-evidence-edge.schema.json +39 -0
  255. package/schemas/v2.0.0/operating-evidence-graph.schema.json +25 -0
  256. package/schemas/v2.0.0/operating-evidence-observation.schema.json +48 -0
  257. package/schemas/v2.0.0/operating-evidence-ref.schema.json +51 -0
  258. package/schemas/v2.0.0/operating-evidence-resolution.schema.json +54 -0
  259. package/schemas/v2.0.0/operating-execution-result.schema.json +23 -0
  260. package/schemas/v2.0.0/operating-executive-board.schema.json +78 -0
  261. package/schemas/v2.0.0/operating-finding.schema.json +116 -0
  262. package/schemas/v2.0.0/operating-governed-operation.schema.json +54 -0
  263. package/schemas/v2.0.0/operating-intelligence-input-bundle.schema.json +128 -0
  264. package/schemas/v2.0.0/operating-intelligence-plan.schema.json +302 -0
  265. package/schemas/v2.0.0/operating-learning-receipt.schema.json +31 -0
  266. package/schemas/v2.0.0/operating-learning.schema.json +13 -0
  267. package/schemas/v2.0.0/operating-live-evidence-consent-record.schema.json +42 -0
  268. package/schemas/v2.0.0/operating-live-evidence-ingestion.schema.json +31 -0
  269. package/schemas/v2.0.0/operating-measurement-plan.schema.json +18 -0
  270. package/schemas/v2.0.0/operating-measurement-schedule-receipt.schema.json +7 -0
  271. package/schemas/v2.0.0/operating-measurement-schedule.schema.json +16 -0
  272. package/schemas/v2.0.0/operating-metric-observation.schema.json +15 -0
  273. package/schemas/v2.0.0/operating-metric.schema.json +18 -0
  274. package/schemas/v2.0.0/operating-model-state.schema.json +36 -0
  275. package/schemas/v2.0.0/operating-objective.schema.json +21 -0
  276. package/schemas/v2.0.0/operating-origin.schema.json +31 -0
  277. package/schemas/v2.0.0/operating-outcome-evaluation.schema.json +46 -0
  278. package/schemas/v2.0.0/operating-outcome.schema.json +13 -0
  279. package/schemas/v2.0.0/operating-planning-proposal.schema.json +45 -0
  280. package/schemas/v2.0.0/operating-policy-evaluation.schema.json +28 -0
  281. package/schemas/v2.0.0/operating-review-read.schema.json +217 -0
  282. package/schemas/v2.0.0/operating-review-receipt.schema.json +64 -0
  283. package/schemas/v2.0.0/operating-review.schema.json +47 -0
  284. package/schemas/v2.0.0/operating-risk.schema.json +96 -0
  285. package/schemas/v2.0.0/operating-rollback-plan.schema.json +10 -0
  286. package/schemas/v2.0.0/operating-rollback-result.schema.json +20 -0
  287. package/schemas/v2.0.0/operating-runtime-state.schema.json +289 -0
  288. package/schemas/v2.0.0/operating-scenario.schema.json +13 -0
  289. package/schemas/v2.0.0/operating-snapshot.schema.json +38 -0
  290. package/schemas/v2.0.0/operating-submission.schema.json +34 -0
  291. package/schemas/v2.0.0/operating-trace-matrix.schema.json +176 -0
  292. package/schemas/v2.0.0/operating-work-change-set.schema.json +89 -0
  293. package/schemas/v2.0.0/operating-work-ledger.schema.json +40 -0
  294. package/schemas/v2.0.0/software-operating-snapshot-projection.schema.json +14 -0
  295. package/src/browser-contracts.d.mts +5 -0
  296. package/src/browser-contracts.mjs +40 -0
  297. package/src/canonical-json.d.mts +5 -0
  298. package/src/canonical-json.mjs +142 -0
  299. package/src/compat/live-evidence-v2.mjs +1019 -0
  300. package/src/compat/operate-experience-live-patch.mjs +66 -0
  301. package/src/compat/operating-planning-contracts.mjs +114 -0
  302. package/src/contracts.d.mts +42 -0
  303. package/src/contracts.mjs +990 -0
  304. package/src/design-contracts.d.mts +62 -0
  305. package/src/design-contracts.mjs +186 -0
  306. package/src/design-publication-contracts.d.mts +4 -0
  307. package/src/design-publication-contracts.mjs +85 -0
  308. package/src/diagram-contracts.d.mts +19 -0
  309. package/src/diagram-contracts.mjs +28 -0
  310. package/src/enterprise-contracts.d.mts +107 -0
  311. package/src/enterprise-contracts.mjs +463 -0
  312. package/src/errors.d.mts +11 -0
  313. package/src/errors.mjs +109 -0
  314. package/src/generated/canonical-registries.mjs +5554 -0
  315. package/src/generated/contract-catalog-v2.mjs +7076 -0
  316. package/src/generated/diagram-registries.mjs +2529 -0
  317. package/src/index.d.mts +10 -0
  318. package/src/index.mjs +40 -0
  319. package/src/json-schema.d.mts +7 -0
  320. package/src/json-schema.mjs +283 -0
  321. package/src/planning-contracts.d.mts +10 -0
  322. package/src/planning-contracts.mjs +53 -0
  323. package/src/registries.d.mts +40 -0
  324. package/src/registries.mjs +261 -0
  325. package/src/review-experience-contracts.d.mts +11 -0
  326. package/src/review-experience-contracts.mjs +103 -0
  327. package/src/semver.d.mts +2 -0
  328. package/src/semver.mjs +7 -0
  329. package/src/skill-source-contracts.d.mts +25 -0
  330. package/src/skill-source-contracts.mjs +105 -0
  331. package/src/task-contracts.d.mts +7 -0
  332. package/src/task-contracts.mjs +130 -0
  333. package/src/workspace-contracts.d.mts +26 -0
  334. package/src/workspace-contracts.mjs +83 -0
@@ -0,0 +1,284 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://openplanr.dev/schemas/v2.0.0/operate-domain-registration.schema.json",
4
+ "x-openplanr-contract": { "id": "operate-domain-registration", "version": "2.0.0" },
5
+ "title": "OpenPlanr Operate 2.0 domain registration",
6
+ "type": "object",
7
+ "additionalProperties": false,
8
+ "required": ["kind", "schemaVersion", "protocolVersion", "domainId", "domainVersion", "provenance", "roles", "requirements"],
9
+ "properties": {
10
+ "kind": { "const": "operate-domain-registration" },
11
+ "schemaVersion": { "const": "1.0.0" },
12
+ "protocolVersion": { "const": "2.0.0" },
13
+ "domainId": { "$ref": "#/$defs/identifier" },
14
+ "domainVersion": { "$ref": "#/$defs/version" },
15
+ "domainContract": { "$ref": "#/$defs/domainContract" },
16
+ "provenance": { "$ref": "#/$defs/provenance" },
17
+ "roles": { "type": "array", "minItems": 1, "maxItems": 16, "uniqueItems": true, "items": { "$ref": "#/$defs/role" } },
18
+ "vocabulary": { "type": "array", "minItems": 1, "uniqueItems": true, "items": { "$ref": "#/$defs/vocabularyTerm" } },
19
+ "projectionContracts": { "type": "array", "minItems": 1, "uniqueItems": true, "items": { "$ref": "#/$defs/projectionContract" } },
20
+ "actionKinds": { "type": "array", "minItems": 1, "uniqueItems": true, "items": { "$ref": "#/$defs/actionKind" } },
21
+ "requestedCapabilities": { "type": "array", "uniqueItems": true, "items": { "$ref": "#/$defs/requestedCapability" } },
22
+ "policyRequirements": { "type": "array", "uniqueItems": true, "items": { "$ref": "#/$defs/policyRequirement" } },
23
+ "requirements": { "type": "array", "uniqueItems": true, "items": { "$ref": "#/$defs/identifier" } }
24
+ },
25
+ "allOf": [
26
+ {
27
+ "if": { "properties": { "domainId": { "enum": ["business", "software"] } } },
28
+ "then": { "required": ["domainContract"] }
29
+ },
30
+ {
31
+ "if": { "properties": { "domainId": { "const": "business" } } },
32
+ "then": {
33
+ "properties": {
34
+ "domainContract": { "$ref": "#/$defs/businessDomainContract" },
35
+ "projectionContracts": { "$ref": "#/$defs/businessProjectionContracts" },
36
+ "roles": { "$ref": "#/$defs/rolesWithChallenger" }
37
+ }
38
+ }
39
+ },
40
+ {
41
+ "if": { "properties": { "domainId": { "const": "software" } } },
42
+ "then": {
43
+ "properties": {
44
+ "domainContract": { "$ref": "#/$defs/softwareDomainContract" },
45
+ "projectionContracts": { "$ref": "#/$defs/softwareProjectionContracts" },
46
+ "roles": { "$ref": "#/$defs/rolesWithChallenger" }
47
+ }
48
+ }
49
+ }
50
+ ],
51
+ "$defs": {
52
+ "identifier": { "type": "string", "pattern": "^[a-z][a-z0-9]*(?:-[a-z0-9]+)*$" },
53
+ "label": { "type": "string", "minLength": 1, "maxLength": 64, "pattern": "^\\S(?:.*\\S)?$" },
54
+ "version": { "type": "string", "pattern": "^(?:0|[1-9][0-9]*)\\.(?:0|[1-9][0-9]*)\\.(?:0|[1-9][0-9]*)$" },
55
+ "digest": { "type": "string", "pattern": "^sha256:[a-f0-9]{64}$" },
56
+ "domainContract": {
57
+ "type": "object", "additionalProperties": false,
58
+ "required": ["apiDomainId", "id", "version"],
59
+ "properties": {
60
+ "apiDomainId": { "$ref": "#/$defs/identifier" },
61
+ "id": { "$ref": "#/$defs/identifier" },
62
+ "version": { "$ref": "#/$defs/version" }
63
+ }
64
+ },
65
+ "businessDomainContract": {
66
+ "type": "object", "additionalProperties": false,
67
+ "required": ["apiDomainId", "id", "version"],
68
+ "properties": {
69
+ "apiDomainId": { "const": "business" },
70
+ "id": { "const": "business-domain" },
71
+ "version": { "const": "1.0.0" }
72
+ }
73
+ },
74
+ "softwareDomainContract": {
75
+ "type": "object", "additionalProperties": false,
76
+ "required": ["apiDomainId", "id", "version"],
77
+ "properties": {
78
+ "apiDomainId": { "const": "software" },
79
+ "id": { "const": "software-domain" },
80
+ "version": { "const": "1.0.0" }
81
+ }
82
+ },
83
+ "provenance": {
84
+ "type": "object", "additionalProperties": false,
85
+ "required": ["packageName", "packageVersion", "integrity"],
86
+ "properties": {
87
+ "packageName": { "$ref": "#/$defs/identifier" },
88
+ "packageVersion": { "$ref": "#/$defs/version" },
89
+ "integrity": { "$ref": "#/$defs/digest" }
90
+ }
91
+ },
92
+ "output": {
93
+ "type": "object", "additionalProperties": false,
94
+ "required": ["schemaId", "schemaVersion", "mediaType", "maxBytes"],
95
+ "properties": {
96
+ "schemaId": { "enum": ["operating-advisor-result", "operating-challenger-review", "operating-decision-ledger"] },
97
+ "schemaVersion": { "const": "2.0.0" },
98
+ "mediaType": { "const": "application/json" },
99
+ "maxBytes": { "type": "integer", "minimum": 1, "maximum": 262144 }
100
+ }
101
+ },
102
+ "dependencyPolicy": {
103
+ "type": "object", "additionalProperties": false,
104
+ "required": ["id", "version"],
105
+ "properties": { "id": { "enum": ["none", "all-required", "threshold"] }, "version": { "const": "1.0.0" } }
106
+ },
107
+ "mandateCapability": {
108
+ "type": "string",
109
+ "enum": ["repository.read", "planr.read", "git.read", "artifact.read", "artifact.submit"]
110
+ },
111
+ "mandateForbiddenEffect": {
112
+ "type": "string",
113
+ "enum": ["repository.write", "production.deploy", "payment.change", "customer-contact", "publish", "spend", "ship", "governed-execution"]
114
+ },
115
+ "mandate": {
116
+ "type": "object", "additionalProperties": false,
117
+ "required": ["scope", "allowedEvidence", "allowedCapabilities", "forbiddenEffects", "capabilityCeiling", "skillId"],
118
+ "properties": {
119
+ "scope": { "$ref": "#/$defs/text" },
120
+ "allowedEvidence": {
121
+ "type": "array", "minItems": 1, "uniqueItems": true,
122
+ "items": { "$ref": "#/$defs/text" }
123
+ },
124
+ "allowedCapabilities": {
125
+ "type": "array", "minItems": 2, "maxItems": 5, "uniqueItems": true,
126
+ "items": { "$ref": "#/$defs/mandateCapability" }
127
+ },
128
+ "forbiddenEffects": {
129
+ "type": "array", "minItems": 8, "maxItems": 8, "uniqueItems": true,
130
+ "items": { "$ref": "#/$defs/mandateForbiddenEffect" }
131
+ },
132
+ "capabilityCeiling": { "const": "read-only" },
133
+ "skillId": { "$ref": "#/$defs/identifier" }
134
+ },
135
+ "allOf": [
136
+ { "properties": { "allowedCapabilities": { "contains": { "const": "artifact.read" } } } },
137
+ { "properties": { "allowedCapabilities": { "contains": { "const": "artifact.submit" } } } }
138
+ ]
139
+ },
140
+ "role": {
141
+ "type": "object", "additionalProperties": false,
142
+ "required": ["roleId", "roleKind", "label", "roleVersion", "output", "mandate", "analysisRubric", "analysisProfile", "evidenceRequirements", "resultRequirements", "selfAudit", "dependencyPolicy", "requirements"],
143
+ "properties": {
144
+ "roleId": { "$ref": "#/$defs/identifier" },
145
+ "roleKind": { "enum": ["advisor", "challenger", "chair"] },
146
+ "label": { "$ref": "#/$defs/label" },
147
+ "roleVersion": { "const": "2.0.0" },
148
+ "output": { "$ref": "#/$defs/output" },
149
+ "mandate": { "$ref": "#/$defs/mandate" },
150
+ "analysisRubric": { "$ref": "#/$defs/analysisRubric" },
151
+ "analysisProfile": { "$ref": "operating-assignment.schema.json#/$defs/analysisProfile" },
152
+ "evidenceRequirements": { "type": "array", "maxItems": 64, "items": { "$ref": "operating-assignment.schema.json#/$defs/evidenceRequirement" } },
153
+ "resultRequirements": { "type": "array", "minItems": 1, "maxItems": 64, "items": { "$ref": "operating-assignment.schema.json#/$defs/resultRequirement" } },
154
+ "selfAudit": { "$ref": "#/$defs/selfAudit" },
155
+ "dependencyPolicy": { "$ref": "#/$defs/dependencyPolicy" },
156
+ "requirements": { "type": "array", "uniqueItems": true, "items": { "$ref": "#/$defs/identifier" } }
157
+ },
158
+ "allOf": [
159
+ {
160
+ "if": { "properties": { "roleKind": { "const": "advisor" } } },
161
+ "then": { "properties": { "output": { "properties": { "schemaId": { "const": "operating-advisor-result" } } }, "evidenceRequirements": { "minItems": 1 } } }
162
+ },
163
+ {
164
+ "if": { "properties": { "roleKind": { "const": "challenger" } } },
165
+ "then": { "properties": { "output": { "properties": { "schemaId": { "const": "operating-challenger-review" } } } } }
166
+ },
167
+ {
168
+ "if": { "properties": { "roleKind": { "const": "chair" } } },
169
+ "then": { "properties": { "output": { "properties": { "schemaId": { "const": "operating-decision-ledger" } } } } }
170
+ }
171
+ ]
172
+ },
173
+ "analysisRubric": {
174
+ "type": "object", "additionalProperties": false,
175
+ "required": ["requiredQuestions", "requiredEvidence", "failureModes", "artifactQualityBar", "outOfScope"],
176
+ "properties": {
177
+ "requiredQuestions": { "$ref": "#/$defs/rubricClauses" },
178
+ "requiredEvidence": { "$ref": "#/$defs/rubricClauses" },
179
+ "failureModes": { "$ref": "#/$defs/rubricClauses" },
180
+ "artifactQualityBar": { "$ref": "#/$defs/rubricClauses" },
181
+ "outOfScope": { "$ref": "#/$defs/rubricClauses" }
182
+ }
183
+ },
184
+ "selfAudit": {
185
+ "type": "object", "additionalProperties": false,
186
+ "required": ["evidenceCoverage", "questionCoverage", "claimQuality", "profileCompleteness", "gapsAndUncertainty", "forbiddenEffects", "promptInjection", "machinePreflight"],
187
+ "properties": {
188
+ "evidenceCoverage": { "$ref": "#/$defs/rubricClauses" },
189
+ "questionCoverage": { "$ref": "#/$defs/rubricClauses" },
190
+ "claimQuality": { "$ref": "#/$defs/rubricClauses" },
191
+ "profileCompleteness": { "$ref": "#/$defs/rubricClauses" },
192
+ "gapsAndUncertainty": { "$ref": "#/$defs/rubricClauses" },
193
+ "forbiddenEffects": { "$ref": "#/$defs/rubricClauses" },
194
+ "promptInjection": { "$ref": "#/$defs/rubricClauses" },
195
+ "machinePreflight": { "$ref": "#/$defs/rubricClauses" }
196
+ }
197
+ },
198
+ "rubricClauses": {
199
+ "type": "array", "minItems": 1, "uniqueItems": true,
200
+ "items": { "type": "string", "minLength": 1, "maxLength": 1024, "pattern": "^\\S(?:.*\\S)?$" }
201
+ },
202
+ "actionKind": {
203
+ "type": "object", "additionalProperties": false,
204
+ "required": ["id", "version"],
205
+ "properties": {
206
+ "id": { "$ref": "#/$defs/identifier" },
207
+ "version": { "$ref": "#/$defs/version" }
208
+ }
209
+ },
210
+ "projectionContract": {
211
+ "type": "object", "additionalProperties": false,
212
+ "required": ["schemaId", "schemaVersion"],
213
+ "properties": {
214
+ "schemaId": { "$ref": "#/$defs/identifier" },
215
+ "schemaVersion": { "$ref": "#/$defs/version" }
216
+ }
217
+ },
218
+ "businessProjectionContracts": {
219
+ "type": "array", "minItems": 1, "maxItems": 1,
220
+ "items": {
221
+ "type": "object", "additionalProperties": false,
222
+ "required": ["schemaId", "schemaVersion"],
223
+ "properties": {
224
+ "schemaId": { "const": "business-operating-snapshot-projection" },
225
+ "schemaVersion": { "const": "1.0.0" }
226
+ }
227
+ }
228
+ },
229
+ "softwareProjectionContracts": {
230
+ "type": "array", "minItems": 1, "maxItems": 1,
231
+ "items": {
232
+ "type": "object", "additionalProperties": false,
233
+ "required": ["schemaId", "schemaVersion"],
234
+ "properties": {
235
+ "schemaId": { "const": "software-operating-snapshot-projection" },
236
+ "schemaVersion": { "const": "1.0.0" }
237
+ }
238
+ }
239
+ },
240
+ "requestedCapability": {
241
+ "type": "object", "additionalProperties": false,
242
+ "required": ["id", "version", "reason"],
243
+ "properties": {
244
+ "id": { "$ref": "#/$defs/identifier" },
245
+ "version": { "$ref": "#/$defs/version" },
246
+ "reason": { "$ref": "#/$defs/text" }
247
+ }
248
+ },
249
+ "policyRequirement": {
250
+ "type": "object", "additionalProperties": false,
251
+ "required": ["actionKind", "capability", "policy"],
252
+ "properties": {
253
+ "actionKind": { "$ref": "#/$defs/actionKind" },
254
+ "capability": { "type": "object", "additionalProperties": false, "required": ["id", "version"], "properties": { "id": { "$ref": "#/$defs/identifier" }, "version": { "$ref": "#/$defs/version" } } },
255
+ "policy": { "type": "object", "additionalProperties": false, "required": ["id", "version"], "properties": { "id": { "$ref": "#/$defs/identifier" }, "version": { "$ref": "#/$defs/version" } } }
256
+ }
257
+ },
258
+ "rolesWithChallenger": {
259
+ "type": "array",
260
+ "contains": {
261
+ "type": "object",
262
+ "required": ["roleKind", "roleVersion"],
263
+ "properties": {
264
+ "roleKind": { "const": "challenger" },
265
+ "roleVersion": { "const": "2.0.0" }
266
+ }
267
+ },
268
+ "minContains": 1,
269
+ "maxContains": 1
270
+ },
271
+ "text": {
272
+ "type": "string", "minLength": 1, "maxLength": 4096,
273
+ "pattern": "^.*\\S.*$"
274
+ },
275
+ "vocabularyTerm": {
276
+ "type": "object", "additionalProperties": false,
277
+ "required": ["term", "definition"],
278
+ "properties": {
279
+ "term": { "$ref": "#/$defs/identifier" },
280
+ "definition": { "$ref": "#/$defs/text" }
281
+ }
282
+ }
283
+ }
284
+ }
@@ -0,0 +1,55 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://openplanr.dev/schemas/v2.0.0/operate-evidence-provider-registration.schema.json",
4
+ "x-openplanr-contract": { "id": "operate-evidence-provider-registration", "version": "2.0.0" },
5
+ "title": "OpenPlanr Operate 2.0 evidence provider registration",
6
+ "description": "A declaration for one explicit local evidence provider. Registration is data, not a code-loading or authority grant.",
7
+ "type": "object",
8
+ "additionalProperties": false,
9
+ "required": ["kind", "schemaVersion", "protocolVersion", "providerId", "providerVersion", "supportedEvidenceKinds", "inputContract", "outputContract", "effectClass", "requiredCapabilities", "classificationCeiling", "retentionClass", "provenance", "conformanceDigest", "implementation", "fallback"],
10
+ "properties": {
11
+ "kind": { "const": "operate-evidence-provider-registration" },
12
+ "schemaVersion": { "const": "1.0.0" },
13
+ "protocolVersion": { "const": "2.0.0" },
14
+ "providerId": { "$ref": "#/$defs/identifier" },
15
+ "providerVersion": { "$ref": "#/$defs/version" },
16
+ "supportedEvidenceKinds": { "type": "array", "minItems": 1, "uniqueItems": true, "items": { "$ref": "#/$defs/evidenceKind" } },
17
+ "inputContract": { "$ref": "#/$defs/candidateContract" },
18
+ "outputContract": { "$ref": "#/$defs/resolutionContract" },
19
+ "effectClass": { "const": "local-read-only" },
20
+ "requiredCapabilities": { "type": "array", "minItems": 1, "uniqueItems": true, "items": { "$ref": "#/$defs/capability" } },
21
+ "classificationCeiling": { "enum": ["public", "internal", "confidential", "restricted"] },
22
+ "retentionClass": { "enum": ["ephemeral", "project", "restricted-machine-local"] },
23
+ "provenance": { "$ref": "#/$defs/provenance" },
24
+ "conformanceDigest": { "$ref": "#/$defs/digest" },
25
+ "implementation": { "$ref": "#/$defs/builtInImplementation" },
26
+ "fallback": { "$ref": "#/$defs/unavailableFallback" }
27
+ },
28
+ "$defs": {
29
+ "identifier": { "type": "string", "pattern": "^[a-z][a-z0-9]*(?:-[a-z0-9]+)*$" },
30
+ "version": { "type": "string", "pattern": "^(?:0|[1-9][0-9]*)\\.(?:0|[1-9][0-9]*)\\.(?:0|[1-9][0-9]*)$" },
31
+ "digest": { "type": "string", "pattern": "^sha256:[a-f0-9]{64}$" },
32
+ "evidenceKind": { "enum": ["git", "filesystem", "planr", "operate-artifact"] },
33
+ "capability": { "enum": ["evidence.git.read", "evidence.filesystem.read", "evidence.planr.read", "evidence.operate-artifact.read"] },
34
+ "candidateContract": {
35
+ "type": "object", "additionalProperties": false, "required": ["schemaId", "schemaVersion"],
36
+ "properties": { "schemaId": { "const": "operating-evidence-candidate" }, "schemaVersion": { "const": "2.0.0" } }
37
+ },
38
+ "resolutionContract": {
39
+ "type": "object", "additionalProperties": false, "required": ["schemaId", "schemaVersion"],
40
+ "properties": { "schemaId": { "const": "operating-evidence-resolution" }, "schemaVersion": { "const": "2.0.0" } }
41
+ },
42
+ "provenance": {
43
+ "type": "object", "additionalProperties": false, "required": ["packageName", "packageVersion", "integrity"],
44
+ "properties": { "packageName": { "$ref": "#/$defs/identifier" }, "packageVersion": { "$ref": "#/$defs/version" }, "integrity": { "$ref": "#/$defs/digest" } }
45
+ },
46
+ "builtInImplementation": {
47
+ "type": "object", "additionalProperties": false, "required": ["kind", "id"],
48
+ "properties": { "kind": { "const": "built-in" }, "id": { "$ref": "#/$defs/identifier" } }
49
+ },
50
+ "unavailableFallback": {
51
+ "type": "object", "additionalProperties": false, "required": ["kind", "errorCode"],
52
+ "properties": { "kind": { "const": "unavailable" }, "errorCode": { "const": "EVIDENCE_PROVIDER_UNAVAILABLE" } }
53
+ }
54
+ }
55
+ }
@@ -0,0 +1,46 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://openplanr.dev/schemas/v2.0.0/operate-evidence-resolver-registration.schema.json",
4
+ "x-openplanr-contract": { "id": "operate-evidence-resolver-registration", "version": "2.0.0" },
5
+ "title": "OpenPlanr Operate 2.0 evidence resolver registration",
6
+ "description": "A declaration for one explicit local resolver. It cannot identify a module, URL, function, plugin, or external implementation.",
7
+ "type": "object",
8
+ "additionalProperties": false,
9
+ "required": ["kind", "schemaVersion", "protocolVersion", "resolverId", "resolverVersion", "supportedEvidenceKinds", "supportedSourceContracts", "inputContract", "outputContract", "evidenceRefContract", "effectClass", "requiredCapabilities", "classificationCeiling", "retentionClass", "errorCodes", "provenance", "conformanceDigest", "implementation", "fallback"],
10
+ "properties": {
11
+ "kind": { "const": "operate-evidence-resolver-registration" },
12
+ "schemaVersion": { "const": "1.0.0" },
13
+ "protocolVersion": { "const": "2.0.0" },
14
+ "resolverId": { "$ref": "#/$defs/identifier" },
15
+ "resolverVersion": { "$ref": "#/$defs/version" },
16
+ "supportedEvidenceKinds": { "type": "array", "minItems": 1, "uniqueItems": true, "items": { "$ref": "#/$defs/evidenceKind" } },
17
+ "supportedSourceContracts": { "type": "array", "minItems": 1, "maxItems": 16, "uniqueItems": true, "items": { "$ref": "#/$defs/sourceContract" } },
18
+ "inputContract": { "$ref": "#/$defs/candidateContract" },
19
+ "outputContract": { "$ref": "#/$defs/resolutionContract" },
20
+ "evidenceRefContract": { "$ref": "#/$defs/evidenceRefContract" },
21
+ "effectClass": { "const": "local-read-only" },
22
+ "requiredCapabilities": { "type": "array", "minItems": 1, "uniqueItems": true, "items": { "$ref": "#/$defs/capability" } },
23
+ "classificationCeiling": { "enum": ["public", "internal", "confidential", "restricted"] },
24
+ "retentionClass": { "enum": ["ephemeral", "project", "restricted-machine-local"] },
25
+ "errorCodes": { "type": "array", "minItems": 1, "uniqueItems": true, "items": { "$ref": "#/$defs/resolverErrorCode" } },
26
+ "provenance": { "$ref": "#/$defs/provenance" },
27
+ "conformanceDigest": { "$ref": "#/$defs/digest" },
28
+ "implementation": { "$ref": "#/$defs/builtInImplementation" },
29
+ "fallback": { "$ref": "#/$defs/unavailableFallback" }
30
+ },
31
+ "$defs": {
32
+ "identifier": { "type": "string", "pattern": "^[a-z][a-z0-9]*(?:-[a-z0-9]+)*$" },
33
+ "version": { "type": "string", "pattern": "^(?:0|[1-9][0-9]*)\\.(?:0|[1-9][0-9]*)\\.(?:0|[1-9][0-9]*)$" },
34
+ "digest": { "type": "string", "pattern": "^sha256:[a-f0-9]{64}$" },
35
+ "evidenceKind": { "enum": ["git", "filesystem", "planr", "operate-artifact"] },
36
+ "sourceContract": { "type": "object", "additionalProperties": false, "required": ["id", "version"], "properties": { "id": { "$ref": "#/$defs/identifier" }, "version": { "$ref": "#/$defs/version" } } },
37
+ "capability": { "enum": ["evidence.git.read", "evidence.filesystem.read", "evidence.planr.read", "evidence.operate-artifact.read"] },
38
+ "candidateContract": { "type": "object", "additionalProperties": false, "required": ["schemaId", "schemaVersion"], "properties": { "schemaId": { "const": "operating-evidence-candidate" }, "schemaVersion": { "const": "2.0.0" } } },
39
+ "resolutionContract": { "type": "object", "additionalProperties": false, "required": ["schemaId", "schemaVersion"], "properties": { "schemaId": { "const": "operating-evidence-resolution" }, "schemaVersion": { "const": "2.0.0" } } },
40
+ "evidenceRefContract": { "type": "object", "additionalProperties": false, "required": ["schemaId", "schemaVersion"], "properties": { "schemaId": { "const": "operating-evidence-ref" }, "schemaVersion": { "const": "2.0.0" } } },
41
+ "resolverErrorCode": { "enum": ["SOURCE_NOT_FOUND", "REVISION_NOT_FOUND", "OBJECT_TYPE_MISMATCH", "PATH_NOT_FOUND", "LINE_RANGE_INVALID", "ANCESTRY_MISMATCH", "ARTIFACT_NOT_FOUND", "ARTIFACT_HASH_MISMATCH", "SOURCE_UNTRACKED", "SOURCE_STALE", "CAPABILITY_DENIED", "CONSENT_REQUIRED", "SENSITIVITY_BLOCKED", "SECRET_DETECTED", "UNSUPPORTED_EVIDENCE_KIND", "EVIDENCE_RESOLVER_UNAVAILABLE", "EVIDENCE_SOURCE_SCOPE_MISMATCH", "EVIDENCE_LOCATOR_INVALID"] },
42
+ "provenance": { "type": "object", "additionalProperties": false, "required": ["packageName", "packageVersion", "integrity"], "properties": { "packageName": { "$ref": "#/$defs/identifier" }, "packageVersion": { "$ref": "#/$defs/version" }, "integrity": { "$ref": "#/$defs/digest" } } },
43
+ "builtInImplementation": { "type": "object", "additionalProperties": false, "required": ["kind", "id"], "properties": { "kind": { "const": "built-in" }, "id": { "$ref": "#/$defs/identifier" } } },
44
+ "unavailableFallback": { "type": "object", "additionalProperties": false, "required": ["kind", "errorCode"], "properties": { "kind": { "const": "unavailable" }, "errorCode": { "const": "EVIDENCE_RESOLVER_UNAVAILABLE" } } }
45
+ }
46
+ }
@@ -0,0 +1,27 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "https://openplanr.dev/schemas/v2.0.0/operate-executor-registration.schema.json",
3
+ "x-openplanr-contract": { "id": "operate-executor-registration", "version": "2.0.0" }, "title": "OpenPlanr Operate 2.0 executor registration",
4
+ "type": "object", "additionalProperties": false,
5
+ "required": ["kind", "schemaVersion", "protocolVersion", "executorId", "executorVersion", "operationKinds", "capabilities", "supportedActionKinds", "supportedDomains", "supportedTargetKinds", "effectCeiling", "inputContract", "outputContract", "rollbackContract", "errorContract", "errorCodes", "timeoutPolicy", "retryPolicy", "idempotency", "reconciliation", "health", "versionCompatibility", "provenance", "conformanceDigest", "implementation", "fallback"],
6
+ "properties": {
7
+ "kind": { "const": "operate-executor-registration" }, "schemaVersion": { "const": "1.0.0" }, "protocolVersion": { "const": "2.0.0" }, "executorId": { "$ref": "#/$defs/id" }, "executorVersion": { "$ref": "#/$defs/version" },
8
+ "operationKinds": { "type": "array", "minItems": 1, "uniqueItems": true, "items": { "enum": ["execute", "rollback"] } }, "capabilities": { "type": "array", "minItems": 1, "uniqueItems": true, "items": { "$ref": "#/$defs/versionedId" } }, "supportedActionKinds": { "type": "array", "minItems": 1, "uniqueItems": true, "items": { "$ref": "#/$defs/versionedId" } }, "supportedDomains": { "type": "array", "minItems": 1, "uniqueItems": true, "items": { "$ref": "#/$defs/id" } }, "supportedTargetKinds": { "type": "array", "minItems": 1, "uniqueItems": true, "items": { "$ref": "#/$defs/id" } }, "effectCeiling": { "$ref": "#/$defs/effect" },
9
+ "inputContract": { "allOf": [{ "$ref": "#/$defs/contract" }, { "properties": { "schemaId": { "const": "operating-governed-operation" } } }] }, "outputContract": { "allOf": [{ "$ref": "#/$defs/contract" }, { "properties": { "schemaId": { "const": "operating-execution-result" } } }] }, "rollbackContract": { "allOf": [{ "$ref": "#/$defs/contract" }, { "properties": { "schemaId": { "const": "operating-rollback-result" } } }] }, "errorContract": { "allOf": [{ "$ref": "#/$defs/contract" }, { "properties": { "schemaId": { "const": "operate-api-envelope" } } }] },
10
+ "errorCodes": { "$ref": "#/$defs/errorCodes" }, "timeoutPolicy": { "$ref": "#/$defs/timeoutPolicy" }, "retryPolicy": { "$ref": "#/$defs/retryPolicy" }, "idempotency": { "$ref": "#/$defs/idempotency" }, "reconciliation": { "$ref": "#/$defs/reconciliation" }, "health": { "$ref": "#/$defs/health" }, "versionCompatibility": { "$ref": "#/$defs/versionCompatibility" },
11
+ "provenance": { "$ref": "#/$defs/provenance" }, "conformanceDigest": { "$ref": "#/$defs/hash" }, "implementation": { "$ref": "#/$defs/implementation" }, "fallback": { "$ref": "#/$defs/fallback" }
12
+ }, "$defs": {
13
+ "id": { "type": "string", "pattern": "^[a-z][a-z0-9]*(?:-[a-z0-9]+)*$" }, "version": { "type": "string", "pattern": "^(?:0|[1-9][0-9]*)\\.(?:0|[1-9][0-9]*)\\.(?:0|[1-9][0-9]*)$" }, "hash": { "type": "string", "pattern": "^sha256:[a-f0-9]{64}$" }, "effect": { "enum": ["read-only", "machine-local-write", "project-write", "provider-call", "external-effect"] }, "versionedId": { "type": "object", "additionalProperties": false, "required": ["id", "version"], "properties": { "id": { "$ref": "#/$defs/id" }, "version": { "$ref": "#/$defs/version" } } }, "contract": { "type": "object", "additionalProperties": false, "required": ["schemaId", "schemaVersion"], "properties": { "schemaId": { "$ref": "#/$defs/id" }, "schemaVersion": { "const": "2.0.0" } } },
14
+ "errorCodes": { "type": "array", "minItems": 1, "uniqueItems": true, "items": { "type": "string", "pattern": "^[A-Z][A-Z0-9_]*$" } }, "timeoutPolicy": { "type": "object", "additionalProperties": false, "required": ["timeoutMs", "onTimeout"], "properties": { "timeoutMs": { "type": "integer", "minimum": 1, "maximum": 300000 }, "onTimeout": { "const": "fail-closed" } } }, "retryPolicy": { "type": "object", "additionalProperties": false, "required": ["maxAttempts", "backoff", "retryableErrorCodes"], "properties": { "maxAttempts": { "type": "integer", "minimum": 1, "maximum": 3 }, "backoff": { "enum": ["none", "fixed"] }, "retryableErrorCodes": { "$ref": "#/$defs/errorCodes" } } },
15
+ "idempotency": { "type": "object", "additionalProperties": false, "required": ["keySource", "replay", "intrinsicallyIdempotent"], "properties": { "keySource": { "const": "runtime-derived-request-fingerprint" }, "replay": { "const": "return-recorded-result" }, "intrinsicallyIdempotent": { "type": "boolean" } } },
16
+ "reconciliation": {
17
+ "type": "object", "additionalProperties": false, "required": ["supported", "mode"],
18
+ "properties": { "supported": { "type": "boolean" }, "mode": { "enum": ["none", "deterministic"] } },
19
+ "oneOf": [
20
+ { "properties": { "supported": { "const": false }, "mode": { "const": "none" } } },
21
+ { "properties": { "supported": { "const": true }, "mode": { "const": "deterministic" } } }
22
+ ]
23
+ },
24
+ "health": { "type": "object", "additionalProperties": false, "required": ["status", "checkedAt", "expiresAt", "healthHash"], "properties": { "status": { "enum": ["available", "degraded", "unavailable"] }, "checkedAt": { "type": "string", "format": "date-time" }, "expiresAt": { "type": "string", "format": "date-time" }, "healthHash": { "$ref": "#/$defs/hash" } } }, "versionCompatibility": { "type": "object", "additionalProperties": false, "required": ["protocolVersion", "minimumRuntimeVersion", "maximumRuntimeVersion"], "properties": { "protocolVersion": { "const": "2.0.0" }, "minimumRuntimeVersion": { "$ref": "#/$defs/version" }, "maximumRuntimeVersion": { "type": ["string", "null"], "pattern": "^(?:0|[1-9][0-9]*)\\.(?:0|[1-9][0-9]*)\\.(?:0|[1-9][0-9]*)$" } } },
25
+ "provenance": { "type": "object", "additionalProperties": false, "required": ["packageName", "packageVersion", "integrity"], "properties": { "packageName": { "$ref": "#/$defs/id" }, "packageVersion": { "$ref": "#/$defs/version" }, "integrity": { "$ref": "#/$defs/hash" } } }, "implementation": { "type": "object", "additionalProperties": false, "required": ["source", "id"], "properties": { "source": { "enum": ["built-in", "public-optional", "external"] }, "id": { "$ref": "#/$defs/id" } } }, "fallback": { "type": "object", "additionalProperties": false, "required": ["kind", "errorCode"], "properties": { "kind": { "const": "unavailable" }, "errorCode": { "const": "EXECUTOR_UNAVAILABLE" } } }
26
+ }
27
+ }
@@ -0,0 +1,47 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://openplanr.dev/schemas/v2.0.0/operate-experience-live-patch.schema.json",
4
+ "x-openplanr-contract": { "id": "operate-experience-live-patch", "version": "1.0.0" },
5
+ "title": "OpenPlanr Operate ordered experience patch",
6
+ "type": "object",
7
+ "additionalProperties": false,
8
+ "required": ["kind", "schemaVersion", "protocolVersion", "patchId", "scopeId", "domainId", "domainVersion", "actorId", "fromEventHead", "toEventHead", "fromViewHash", "toViewHash", "operations", "createdAt", "patchHash"],
9
+ "properties": {
10
+ "kind": { "const": "operate-experience-live-patch" }, "schemaVersion": { "const": "1.0.0" }, "protocolVersion": { "const": "2.0.0" },
11
+ "patchId": { "type": "string", "pattern": "^xpatch_[A-Za-z0-9][A-Za-z0-9._-]{7,127}$" },
12
+ "scopeId": { "$ref": "#/$defs/id" }, "domainId": { "$ref": "#/$defs/id" }, "domainVersion": { "$ref": "#/$defs/version" }, "actorId": { "$ref": "#/$defs/id" },
13
+ "fromEventHead": { "$ref": "#/$defs/eventHead" }, "toEventHead": { "$ref": "#/$defs/eventHead" },
14
+ "fromViewHash": { "$ref": "#/$defs/hash" }, "toViewHash": { "$ref": "#/$defs/hash" },
15
+ "operations": { "type": "array", "items": { "$ref": "#/$defs/operation" } },
16
+ "createdAt": { "type": "string", "format": "date-time" }, "patchHash": { "$ref": "#/$defs/hash" }
17
+ },
18
+ "$defs": {
19
+ "id": { "type": "string", "minLength": 1, "maxLength": 128 }, "version": { "type": "string", "minLength": 1, "maxLength": 64 }, "hash": { "type": "string", "pattern": "^sha256:[a-f0-9]{64}$" },
20
+ "eventHead": { "oneOf": [
21
+ { "type": "object", "additionalProperties": false, "required": ["sequence", "hash"], "properties": { "sequence": { "const": 0 }, "hash": { "type": "null" } } },
22
+ { "type": "object", "additionalProperties": false, "required": ["sequence", "hash"], "properties": { "sequence": { "type": "integer", "minimum": 1 }, "hash": { "$ref": "#/$defs/hash" } } }
23
+ ] },
24
+ "operation": {
25
+ "type": "object", "additionalProperties": false, "required": ["op", "path", "valueHash", "value"],
26
+ "properties": { "op": { "const": "replace" }, "path": { "enum": ["/status", "/attention", "/domainMetrics", "/cycles", "/inbox", "/actions", "/evidence", "/claims", "/rationale", "/outcomes", "/learnings", "/history", "/replay", "/allowedActions", "/omissions", "/export"] }, "valueHash": { "$ref": "#/$defs/hash" }, "value": {} },
27
+ "allOf": [
28
+ { "if": { "properties": { "path": { "const": "/status" } }, "required": ["path"] }, "then": { "properties": { "value": { "enum": ["ready", "read-only", "stale", "partial", "blocked", "offline", "incompatible", "corrupt"] } } } },
29
+ { "if": { "properties": { "path": { "const": "/attention" } }, "required": ["path"] }, "then": { "properties": { "value": { "type": "array", "items": { "$ref": "operate-experience-view.schema.json#/$defs/attention" } } } } },
30
+ { "if": { "properties": { "path": { "const": "/domainMetrics" } }, "required": ["path"] }, "then": { "properties": { "value": { "type": "array", "items": { "$ref": "operate-experience-view.schema.json#/$defs/domainMetric" } } } } },
31
+ { "if": { "properties": { "path": { "const": "/cycles" } }, "required": ["path"] }, "then": { "properties": { "value": { "type": "array", "items": { "$ref": "operate-experience-view.schema.json#/$defs/cycle" } } } } },
32
+ { "if": { "properties": { "path": { "const": "/inbox" } }, "required": ["path"] }, "then": { "properties": { "value": { "type": "array", "items": { "$ref": "operate-experience-view.schema.json#/$defs/inbox" } } } } },
33
+ { "if": { "properties": { "path": { "const": "/actions" } }, "required": ["path"] }, "then": { "properties": { "value": { "type": "array", "items": { "$ref": "operate-experience-view.schema.json#/$defs/action" } } } } },
34
+ { "if": { "properties": { "path": { "const": "/evidence" } }, "required": ["path"] }, "then": { "properties": { "value": { "type": "array", "items": { "$ref": "operate-experience-view.schema.json#/$defs/evidence" } } } } },
35
+ { "if": { "properties": { "path": { "const": "/claims" } }, "required": ["path"] }, "then": { "properties": { "value": { "type": "array", "items": { "$ref": "operate-experience-view.schema.json#/$defs/claim" } } } } },
36
+ { "if": { "properties": { "path": { "const": "/rationale" } }, "required": ["path"] }, "then": { "properties": { "value": { "type": "array", "items": { "$ref": "operate-experience-view.schema.json#/$defs/rationale" } } } } },
37
+ { "if": { "properties": { "path": { "const": "/outcomes" } }, "required": ["path"] }, "then": { "properties": { "value": { "type": "array", "items": { "$ref": "operate-experience-view.schema.json#/$defs/outcome" } } } } },
38
+ { "if": { "properties": { "path": { "const": "/learnings" } }, "required": ["path"] }, "then": { "properties": { "value": { "type": "array", "items": { "$ref": "operate-experience-view.schema.json#/$defs/learning" } } } } },
39
+ { "if": { "properties": { "path": { "const": "/history" } }, "required": ["path"] }, "then": { "properties": { "value": { "type": "array", "items": { "$ref": "operate-experience-view.schema.json#/$defs/history" } } } } },
40
+ { "if": { "properties": { "path": { "const": "/replay" } }, "required": ["path"] }, "then": { "properties": { "value": { "$ref": "operate-experience-view.schema.json#/$defs/replay" } } } },
41
+ { "if": { "properties": { "path": { "const": "/allowedActions" } }, "required": ["path"] }, "then": { "properties": { "value": { "type": "array", "items": { "$ref": "operate-experience-view.schema.json#/$defs/boundAllowedAction" } } } } },
42
+ { "if": { "properties": { "path": { "const": "/omissions" } }, "required": ["path"] }, "then": { "properties": { "value": { "type": "array", "items": { "$ref": "operate-experience-view.schema.json#/$defs/omission" } } } } },
43
+ { "if": { "properties": { "path": { "const": "/export" } }, "required": ["path"] }, "then": { "properties": { "value": { "type": "object", "additionalProperties": false, "required": ["formats", "accessSafe", "redactionCount"], "properties": { "formats": { "type": "array", "uniqueItems": true, "items": { "enum": ["json", "html"] } }, "accessSafe": { "const": true }, "redactionCount": { "type": "integer", "minimum": 0 } } } } } }
44
+ ]
45
+ }
46
+ }
47
+ }
@@ -0,0 +1,51 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://openplanr.dev/schemas/v2.0.0/operate-experience-preview.schema.json",
4
+ "x-openplanr-contract": { "id": "operate-experience-preview", "version": "1.0.0" },
5
+ "title": "OpenPlanr Operate governed experience preview",
6
+ "type": "object",
7
+ "additionalProperties": false,
8
+ "required": ["kind", "schemaVersion", "protocolVersion", "previewId", "scopeId", "domainId", "domainVersion", "actorId", "subject", "eventHead", "sourceViewHash", "actionDigest", "allowedAction", "authority", "consequence", "reasonCodes", "transition", "issuedAt", "expiresAt", "previewHash"],
9
+ "properties": {
10
+ "kind": { "const": "operate-experience-preview" },
11
+ "schemaVersion": { "const": "1.0.0" },
12
+ "protocolVersion": { "const": "2.0.0" },
13
+ "previewId": { "type": "string", "pattern": "^xprv_[A-Za-z0-9][A-Za-z0-9._-]{7,127}$" },
14
+ "scopeId": { "$ref": "#/$defs/id" }, "domainId": { "$ref": "#/$defs/id" }, "domainVersion": { "$ref": "#/$defs/version" },
15
+ "actorId": { "$ref": "#/$defs/id" },
16
+ "subject": { "$ref": "#/$defs/subject" },
17
+ "eventHead": { "$ref": "#/$defs/eventHead" },
18
+ "sourceViewHash": { "$ref": "#/$defs/hash" },
19
+ "actionDigest": { "$ref": "#/$defs/hash" },
20
+ "allowedAction": { "$ref": "operate-allowed-action.schema.json" },
21
+ "authority": { "enum": ["allowed", "refused", "read-only"] },
22
+ "consequence": { "$ref": "#/$defs/text" },
23
+ "reasonCodes": { "type": "array", "uniqueItems": true, "items": { "type": "string", "pattern": "^[A-Z][A-Z0-9_]*$" } },
24
+ "transition": { "$ref": "#/$defs/transition" },
25
+ "issuedAt": { "type": "string", "format": "date-time" },
26
+ "expiresAt": { "type": "string", "format": "date-time" },
27
+ "previewHash": { "$ref": "#/$defs/hash" }
28
+ },
29
+ "$defs": {
30
+ "id": { "type": "string", "minLength": 1, "maxLength": 128 },
31
+ "version": { "type": "string", "minLength": 1, "maxLength": 64 },
32
+ "hash": { "type": "string", "pattern": "^sha256:[a-f0-9]{64}$" },
33
+ "text": { "type": "string", "minLength": 1, "maxLength": 8192, "pattern": "^[\\s\\S]*\\S[\\s\\S]*$" },
34
+ "subject": {
35
+ "type": "object", "additionalProperties": false, "required": ["kind", "id", "revision", "hash"],
36
+ "properties": { "kind": { "enum": ["cycle", "assignment", "artifact", "decision", "review", "action"] }, "id": { "$ref": "#/$defs/id" }, "revision": { "type": ["integer", "null"], "minimum": 1 }, "hash": { "$ref": "#/$defs/hash" } },
37
+ "allOf": [
38
+ { "if": { "properties": { "kind": { "enum": ["decision", "action"] } }, "required": ["kind"] }, "then": { "properties": { "revision": { "type": "integer", "minimum": 1 } } } },
39
+ { "if": { "properties": { "kind": { "enum": ["cycle", "assignment", "artifact", "review"] } }, "required": ["kind"] }, "then": { "properties": { "revision": { "type": "null" } } } }
40
+ ]
41
+ },
42
+ "eventHead": { "oneOf": [
43
+ { "type": "object", "additionalProperties": false, "required": ["sequence", "hash"], "properties": { "sequence": { "const": 0 }, "hash": { "type": "null" } } },
44
+ { "type": "object", "additionalProperties": false, "required": ["sequence", "hash"], "properties": { "sequence": { "type": "integer", "minimum": 1 }, "hash": { "$ref": "#/$defs/hash" } } }
45
+ ] },
46
+ "transitionTarget": { "type": "object", "additionalProperties": false, "required": ["kind", "id", "revision", "hash", "disposition"], "properties": { "kind": { "$ref": "#/$defs/id" }, "id": { "$ref": "#/$defs/id" }, "revision": { "type": ["integer", "string", "null"], "minimum": 1, "minLength": 1, "maxLength": 128 }, "hash": { "type": ["string", "null"], "pattern": "^sha256:[a-f0-9]{64}$" }, "disposition": { "type": ["string", "null"], "minLength": 1, "maxLength": 128 } } },
47
+ "party": { "type": "object", "additionalProperties": false, "required": ["partyId", "actorKind", "actorId", "requiredCapability", "state", "redacted"], "properties": { "partyId": { "$ref": "#/$defs/id" }, "actorKind": { "enum": ["human", "engine"] }, "actorId": { "type": ["string", "null"], "minLength": 1, "maxLength": 128 }, "requiredCapability": { "type": "object", "additionalProperties": false, "required": ["id", "version"], "properties": { "id": { "$ref": "#/$defs/id" }, "version": { "$ref": "#/$defs/version" } } }, "state": { "enum": ["required", "recorded", "redacted"] }, "redacted": { "type": "boolean" } } },
48
+ "threshold": { "type": "object", "additionalProperties": false, "required": ["required", "recorded", "remaining", "parties"], "properties": { "required": { "type": "integer", "minimum": 1 }, "recorded": { "type": "integer", "minimum": 0 }, "remaining": { "type": "integer", "minimum": 0 }, "parties": { "type": "array", "items": { "$ref": "#/$defs/party" } } } },
49
+ "transition": { "type": "object", "additionalProperties": false, "required": ["kind", "targets", "reversible", "nextState", "threshold"], "properties": { "kind": { "enum": ["review", "approval", "verification", "execution", "rollback"] }, "targets": { "type": "array", "minItems": 1, "items": { "$ref": "#/$defs/transitionTarget" } }, "reversible": { "type": "boolean" }, "nextState": { "$ref": "#/$defs/id" }, "threshold": { "oneOf": [{ "type": "null" }, { "$ref": "#/$defs/threshold" }] } } }
50
+ }
51
+ }