@mnstry/atelier 0.2.0-alpha.12 → 0.2.0-alpha.13

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 (516) hide show
  1. package/CHANGELOG.md +661 -0
  2. package/README.md +142 -6
  3. package/contracts/atelier-adoption-policy.v2.schema.json +55 -0
  4. package/contracts/atelier-architecture.v1.schema.json +258 -0
  5. package/contracts/atelier-boundary-delegations.v1.schema.json +161 -0
  6. package/contracts/atelier-boundary-owner-keys.v1.schema.json +98 -0
  7. package/contracts/atelier-build.v1.schema.json +1076 -0
  8. package/contracts/atelier-capability.v1.schema.json +1252 -0
  9. package/contracts/atelier-coordination.v1.schema.json +1050 -0
  10. package/contracts/atelier-evidence-navigation.v1.schema.json +603 -0
  11. package/contracts/atelier-harness.v1.schema.json +234 -0
  12. package/contracts/atelier-ingestion.v1.schema.json +806 -0
  13. package/contracts/atelier-inquiry.v1.schema.json +1772 -0
  14. package/contracts/atelier-instruction-adoption.v1.schema.json +490 -0
  15. package/contracts/atelier-interaction.v1.schema.json +553 -0
  16. package/contracts/atelier-judgment.v1.schema.json +690 -0
  17. package/contracts/atelier-knowledge.v1.schema.json +1512 -0
  18. package/contracts/atelier-learning.v1.schema.json +1095 -0
  19. package/contracts/atelier-migration.v3.schema.json +64 -0
  20. package/contracts/atelier-personal-workspace-manifest.v1.schema.json +87 -0
  21. package/contracts/atelier-personal-workspace-overlay.v1.schema.json +299 -0
  22. package/contracts/atelier-template-adoption.v1.schema.json +223 -0
  23. package/contracts/atelier-template-profile.v1.schema.json +1168 -0
  24. package/contracts/atelier-trackable.v1.schema.json +781 -0
  25. package/contracts/atelier-upgrade-plan.v3.schema.json +532 -0
  26. package/docs/architecture.md +89 -0
  27. package/docs/assurance-controls.md +2 -2
  28. package/docs/blocks/capability-stewardship.md +17 -0
  29. package/docs/blocks/claims.md +16 -3
  30. package/docs/blocks/inquiry-harnesses.md +19 -0
  31. package/docs/blocks/learning-harnesses.md +17 -0
  32. package/docs/capability-stewardship.md +269 -0
  33. package/docs/coordination.md +51 -0
  34. package/docs/decision-practices.md +111 -0
  35. package/docs/decisions.md +29 -0
  36. package/docs/evidence-navigation.md +237 -0
  37. package/docs/exact-upgrades.md +3 -2
  38. package/docs/ingestion.md +181 -0
  39. package/docs/inquiry-harnesses.md +211 -0
  40. package/docs/install.md +80 -3
  41. package/docs/intake-and-guides.md +5 -0
  42. package/docs/integration-contract-decisions.md +24 -2
  43. package/docs/interaction-and-reflection.md +72 -0
  44. package/docs/knowledge-graph.md +20 -0
  45. package/docs/knowledge-health/api.md +30 -0
  46. package/docs/knowledge-health/assessment/api.md +96 -0
  47. package/docs/knowledge-health/assessment/capabilities.md +40 -0
  48. package/docs/knowledge-health/assessment/evaluation.md +27 -0
  49. package/docs/knowledge-health/assessment/facilitator.md +30 -0
  50. package/docs/knowledge-health/assessment/quickstart.md +61 -0
  51. package/docs/knowledge-health/assessment/troubleshooting.md +23 -0
  52. package/docs/knowledge-health/devday/facilitator.md +16 -0
  53. package/docs/knowledge-health/devday/participant-response.md +22 -0
  54. package/docs/knowledge-health/devday/public-default.md +107 -0
  55. package/docs/knowledge-health/devday/quickstart.md +18 -0
  56. package/docs/knowledge-health/devday/support.md +22 -0
  57. package/docs/knowledge-health/exercise.md +17 -0
  58. package/docs/knowledge-health/facilitator.md +20 -0
  59. package/docs/knowledge-health/quickstart.md +94 -0
  60. package/docs/knowledge-health/readme.md +15 -0
  61. package/docs/knowledge-health/support.md +34 -0
  62. package/docs/knowledge-setup.md +248 -0
  63. package/docs/knowledge-workspace.md +264 -0
  64. package/docs/learning-harnesses.md +238 -0
  65. package/docs/learning.md +215 -0
  66. package/docs/local-services.md +181 -16
  67. package/docs/obsidian-contract.md +223 -15
  68. package/docs/obsidian-plugin.md +38 -4
  69. package/docs/obsidian.md +613 -51
  70. package/docs/optional-ingestion.md +83 -0
  71. package/docs/personal-workspace.md +257 -0
  72. package/docs/practical-judgment.md +92 -0
  73. package/docs/progressive-ingestion-acceptance.md +89 -0
  74. package/docs/progressive-ingestion.md +235 -0
  75. package/docs/project-command-inventory.md +1 -0
  76. package/docs/release-engineering.md +49 -0
  77. package/docs/repo-boundary-guard.md +94 -0
  78. package/docs/research-starter-quickstart.md +66 -0
  79. package/docs/research-starter.md +114 -0
  80. package/docs/semantic-ingestion.md +198 -0
  81. package/docs/semantic-operation.md +317 -0
  82. package/docs/skill-steward.md +6 -0
  83. package/docs/template-profile.md +164 -0
  84. package/docs/template-upgrades.md +114 -0
  85. package/docs/trackables.md +111 -0
  86. package/docs/upgrade.md +47 -2
  87. package/fixtures/atelier-architecture/binding/invalid/document.json +19 -0
  88. package/fixtures/atelier-architecture/binding/valid/document.json +19 -0
  89. package/fixtures/atelier-architecture/catalog/invalid/document.json +290 -0
  90. package/fixtures/atelier-architecture/catalog/valid/document.json +343 -0
  91. package/fixtures/atelier-build-contract/attempt/invalid/document.json +20 -0
  92. package/fixtures/atelier-build-contract/attempt/valid/document.json +19 -0
  93. package/fixtures/atelier-build-contract/candidate/invalid/document.json +24 -0
  94. package/fixtures/atelier-build-contract/candidate/valid/document.json +23 -0
  95. package/fixtures/atelier-build-contract/decision/invalid/document.json +31 -0
  96. package/fixtures/atelier-build-contract/decision/valid/document.json +30 -0
  97. package/fixtures/atelier-build-contract/delivery/invalid/document.json +18 -0
  98. package/fixtures/atelier-build-contract/delivery/valid/document.json +17 -0
  99. package/fixtures/atelier-build-contract/gate/invalid/document.json +22 -0
  100. package/fixtures/atelier-build-contract/gate/valid/document.json +21 -0
  101. package/fixtures/atelier-build-contract/ledger/invalid/document.json +270 -0
  102. package/fixtures/atelier-build-contract/ledger/valid/document.json +269 -0
  103. package/fixtures/atelier-build-contract/objective/invalid/document.json +73 -0
  104. package/fixtures/atelier-build-contract/objective/valid/document.json +72 -0
  105. package/fixtures/atelier-build-contract/progress/invalid/document.json +18 -0
  106. package/fixtures/atelier-build-contract/progress/valid/document.json +17 -0
  107. package/fixtures/atelier-capability-contract/adoption/invalid/document.json +71 -0
  108. package/fixtures/atelier-capability-contract/adoption/valid/document.json +70 -0
  109. package/fixtures/atelier-capability-contract/event/invalid/document.json +18 -0
  110. package/fixtures/atelier-capability-contract/event/valid/document.json +17 -0
  111. package/fixtures/atelier-capability-contract/journal/invalid/document.json +382 -0
  112. package/fixtures/atelier-capability-contract/journal/valid/document.json +381 -0
  113. package/fixtures/atelier-capability-contract/notice/invalid/document.json +8 -0
  114. package/fixtures/atelier-capability-contract/notice/valid/document.json +7 -0
  115. package/fixtures/atelier-capability-contract/package/invalid/document.json +59 -0
  116. package/fixtures/atelier-capability-contract/package/valid/document.json +58 -0
  117. package/fixtures/atelier-capability-contract/plan/invalid/document.json +107 -0
  118. package/fixtures/atelier-capability-contract/plan/valid/document.json +106 -0
  119. package/fixtures/atelier-capability-contract/release/invalid/document.json +85 -0
  120. package/fixtures/atelier-capability-contract/release/valid/document.json +84 -0
  121. package/fixtures/atelier-capability-contract/state/invalid/document.json +316 -0
  122. package/fixtures/atelier-capability-contract/state/valid/document.json +315 -0
  123. package/fixtures/atelier-coordination/dependency/invalid/document.json +37 -0
  124. package/fixtures/atelier-coordination/dependency/valid/document.json +36 -0
  125. package/fixtures/atelier-coordination/directive/invalid/document.json +25 -0
  126. package/fixtures/atelier-coordination/directive/valid/document.json +24 -0
  127. package/fixtures/atelier-coordination/disposition/invalid/document.json +34 -0
  128. package/fixtures/atelier-coordination/disposition/valid/document.json +33 -0
  129. package/fixtures/atelier-coordination/outcome/invalid/document.json +39 -0
  130. package/fixtures/atelier-coordination/outcome/valid/document.json +38 -0
  131. package/fixtures/atelier-coordination/recovery/invalid/document.json +34 -0
  132. package/fixtures/atelier-coordination/recovery/valid/document.json +33 -0
  133. package/fixtures/atelier-harness-contract/handoff/invalid/document.json +25 -0
  134. package/fixtures/atelier-harness-contract/handoff/valid/document.json +24 -0
  135. package/fixtures/atelier-ingestion/invalid/authority.json +19 -0
  136. package/fixtures/atelier-ingestion/semantic-baseline.json +26 -0
  137. package/fixtures/atelier-ingestion/semantic-operation.json +75 -0
  138. package/fixtures/atelier-ingestion/valid/plan-input.json +18 -0
  139. package/fixtures/atelier-inquiry-contract/assessment/invalid/document.json +41 -0
  140. package/fixtures/atelier-inquiry-contract/assessment/valid/document.json +40 -0
  141. package/fixtures/atelier-inquiry-contract/bundle/invalid/document.json +51 -0
  142. package/fixtures/atelier-inquiry-contract/bundle/valid/document.json +50 -0
  143. package/fixtures/atelier-inquiry-contract/campaign/invalid/document.json +17 -0
  144. package/fixtures/atelier-inquiry-contract/campaign/valid/document.json +16 -0
  145. package/fixtures/atelier-inquiry-contract/decision/invalid/document.json +22 -0
  146. package/fixtures/atelier-inquiry-contract/decision/valid/document.json +21 -0
  147. package/fixtures/atelier-inquiry-contract/feedback/invalid/document.json +19 -0
  148. package/fixtures/atelier-inquiry-contract/feedback/valid/document.json +18 -0
  149. package/fixtures/atelier-inquiry-contract/handoff/invalid/document.json +92 -0
  150. package/fixtures/atelier-inquiry-contract/handoff/valid/document.json +91 -0
  151. package/fixtures/atelier-inquiry-contract/hypothesis/invalid/document.json +20 -0
  152. package/fixtures/atelier-inquiry-contract/hypothesis/valid/document.json +19 -0
  153. package/fixtures/atelier-inquiry-contract/ledger/invalid/document.json +680 -0
  154. package/fixtures/atelier-inquiry-contract/ledger/valid/document.json +679 -0
  155. package/fixtures/atelier-inquiry-contract/legacy-assessment/invalid/document.json +19 -0
  156. package/fixtures/atelier-inquiry-contract/legacy-assessment/valid/document.json +18 -0
  157. package/fixtures/atelier-inquiry-contract/request/invalid/document.json +50 -0
  158. package/fixtures/atelier-inquiry-contract/request/valid/document.json +49 -0
  159. package/fixtures/atelier-inquiry-contract/source/invalid/document.json +18 -0
  160. package/fixtures/atelier-inquiry-contract/source/valid/document.json +17 -0
  161. package/fixtures/atelier-inquiry-contract/withdrawal/invalid/document.json +16 -0
  162. package/fixtures/atelier-inquiry-contract/withdrawal/valid/document.json +15 -0
  163. package/fixtures/atelier-instruction-adoption/context-receipt/invalid/document.json +18 -0
  164. package/fixtures/atelier-instruction-adoption/context-receipt/valid/document.json +17 -0
  165. package/fixtures/atelier-instruction-adoption/plan/invalid/document.json +63 -0
  166. package/fixtures/atelier-instruction-adoption/plan/valid/document.json +62 -0
  167. package/fixtures/atelier-instruction-adoption/receipt/invalid/document.json +22 -0
  168. package/fixtures/atelier-instruction-adoption/receipt/valid/document.json +21 -0
  169. package/fixtures/atelier-instruction-adoption/state/invalid/document.json +30 -0
  170. package/fixtures/atelier-instruction-adoption/state/valid/document.json +29 -0
  171. package/fixtures/atelier-interaction/act/invalid/document.json +25 -0
  172. package/fixtures/atelier-interaction/act/valid/document.json +24 -0
  173. package/fixtures/atelier-interaction/assessment/invalid/document.json +32 -0
  174. package/fixtures/atelier-interaction/assessment/valid/document.json +31 -0
  175. package/fixtures/atelier-interaction/observation/invalid/document.json +22 -0
  176. package/fixtures/atelier-interaction/observation/valid/document.json +21 -0
  177. package/fixtures/atelier-interaction/policy/invalid/document.json +20 -0
  178. package/fixtures/atelier-interaction/policy/valid/document.json +19 -0
  179. package/fixtures/atelier-judgment/case/invalid/document.json +76 -0
  180. package/fixtures/atelier-judgment/case/valid/document.json +75 -0
  181. package/fixtures/atelier-judgment/decision/invalid/document.json +38 -0
  182. package/fixtures/atelier-judgment/decision/valid/document.json +37 -0
  183. package/fixtures/atelier-judgment/native-decision.md +3 -0
  184. package/fixtures/atelier-judgment/practice-reconsideration/definition.json +92 -0
  185. package/fixtures/atelier-judgment/practice-reconsideration/scenario.json +435 -0
  186. package/fixtures/atelier-knowledge-contract/activation/invalid/document.json +26 -0
  187. package/fixtures/atelier-knowledge-contract/activation/valid/document.json +25 -0
  188. package/fixtures/atelier-knowledge-contract/contribution/invalid/document.json +34 -0
  189. package/fixtures/atelier-knowledge-contract/contribution/valid/document.json +33 -0
  190. package/fixtures/atelier-knowledge-contract/domain/invalid/document.json +41 -0
  191. package/fixtures/atelier-knowledge-contract/domain/valid/document.json +40 -0
  192. package/fixtures/atelier-knowledge-contract/domain-revision/invalid/document.json +46 -0
  193. package/fixtures/atelier-knowledge-contract/domain-revision/valid/document.json +45 -0
  194. package/fixtures/atelier-knowledge-contract/evaluation/invalid/document.json +21 -0
  195. package/fixtures/atelier-knowledge-contract/evaluation/valid/document.json +20 -0
  196. package/fixtures/atelier-knowledge-contract/ledger/invalid/document.json +318 -0
  197. package/fixtures/atelier-knowledge-contract/ledger/valid/document.json +317 -0
  198. package/fixtures/atelier-knowledge-contract/relation/invalid/document.json +25 -0
  199. package/fixtures/atelier-knowledge-contract/relation/valid/document.json +24 -0
  200. package/fixtures/atelier-knowledge-contract/review/invalid/document.json +18 -0
  201. package/fixtures/atelier-knowledge-contract/review/valid/document.json +17 -0
  202. package/fixtures/atelier-knowledge-contract/withdrawal/invalid/document.json +16 -0
  203. package/fixtures/atelier-knowledge-contract/withdrawal/valid/document.json +15 -0
  204. package/fixtures/atelier-learning/invalid/authority.json +14 -0
  205. package/fixtures/atelier-learning/valid/capture.json +13 -0
  206. package/fixtures/atelier-personal-workspace-contract/manifest/invalid/authority-key.json +17 -0
  207. package/fixtures/atelier-personal-workspace-contract/manifest/invalid/nonempty-ext.json +25 -0
  208. package/fixtures/atelier-personal-workspace-contract/manifest/invalid/wrong-schema.json +22 -0
  209. package/fixtures/atelier-personal-workspace-contract/manifest/valid/manifest.json +22 -0
  210. package/fixtures/atelier-personal-workspace-contract/overlay/invalid/authority-key.json +25 -0
  211. package/fixtures/atelier-personal-workspace-contract/overlay/invalid/unknown-top-level-field.json +27 -0
  212. package/fixtures/atelier-personal-workspace-contract/overlay/invalid/wrong-schema.json +24 -0
  213. package/fixtures/atelier-trackable/definition/invalid/document.json +15 -0
  214. package/fixtures/atelier-trackable/definition/valid/document.json +14 -0
  215. package/fixtures/atelier-trackable/request/invalid/document.json +23 -0
  216. package/fixtures/atelier-trackable/request/valid/document.json +22 -0
  217. package/fixtures/boundary-delegations/invalid/authority-key.v1.json +30 -0
  218. package/fixtures/boundary-delegations/invalid/push-operation.v1.json +28 -0
  219. package/fixtures/boundary-delegations/invalid/unsigned.v1.json +25 -0
  220. package/fixtures/boundary-delegations/valid/empty.v1.json +4 -0
  221. package/fixtures/boundary-delegations/valid/signed-operator.v1.json +30 -0
  222. package/fixtures/boundary-owner-keys/invalid/wrong-algorithm.v1.json +15 -0
  223. package/fixtures/boundary-owner-keys/invalid/wrong-curve.v1.json +15 -0
  224. package/fixtures/boundary-owner-keys/valid/one-owner.v1.json +17 -0
  225. package/fixtures/capability-packages/adoption.example.json +70 -0
  226. package/fixtures/capability-packages/evidence-review/capability-package.json +58 -0
  227. package/fixtures/capability-packages/evidence-review/capability-release.json +84 -0
  228. package/fixtures/capability-packages/evidence-review/evaluation.md +15 -0
  229. package/fixtures/capability-packages/evidence-review/skills/evidence-review/SKILL.md +22 -0
  230. package/fixtures/capability-packages/evidence-review/skills/evidence-review/references/ledger.md +7 -0
  231. package/fixtures/capability-packages/research/capability-package.json +88 -0
  232. package/fixtures/capability-packages/research/capability-release.json +134 -0
  233. package/fixtures/capability-packages/research/evaluation.md +15 -0
  234. package/fixtures/capability-packages/research/skills/research-integrate/SKILL.md +29 -0
  235. package/fixtures/capability-packages/research/skills/research-integrate/references/integration.md +10 -0
  236. package/fixtures/capability-packages/research/skills/research-plan/SKILL.md +27 -0
  237. package/fixtures/capability-packages/research/skills/research-plan/references/inquiries.md +26 -0
  238. package/fixtures/capability-packages/research/skills/research-synthesize/SKILL.md +23 -0
  239. package/fixtures/capability-packages/research/skills/research-synthesize/references/synthesis.md +12 -0
  240. package/fixtures/evidence-navigation/invalid/duplicate-operation.json +16 -0
  241. package/fixtures/evidence-navigation/invalid/instruction-kind.json +36 -0
  242. package/fixtures/evidence-navigation/invalid/invalid-digest.json +36 -0
  243. package/fixtures/evidence-navigation/invalid/invalid-time.json +36 -0
  244. package/fixtures/evidence-navigation/invalid/missing-attribution.json +35 -0
  245. package/fixtures/evidence-navigation/invalid/reserved-extension.json +19 -0
  246. package/fixtures/evidence-navigation/invalid/unattributed-acceptance.json +36 -0
  247. package/fixtures/evidence-navigation/invalid/uncoerced-version.json +16 -0
  248. package/fixtures/evidence-navigation/invalid/unknown-currency.json +17 -0
  249. package/fixtures/evidence-navigation/invalid/unknown-selector-field.json +37 -0
  250. package/fixtures/evidence-navigation/invalid/unsupported-operation.json +15 -0
  251. package/fixtures/evidence-navigation/valid/claim.json +36 -0
  252. package/fixtures/evidence-navigation/valid/host.json +16 -0
  253. package/fixtures/evidence-navigation/valid/profile.json +16 -0
  254. package/fixtures/evidence-navigation/valid/snapshot.json +17 -0
  255. package/fixtures/harness-packages/build-harness/capability-package.json +61 -0
  256. package/fixtures/harness-packages/build-harness/capability-release.json +82 -0
  257. package/fixtures/harness-packages/build-harness/evaluation.md +3 -0
  258. package/fixtures/harness-packages/build-harness/skills/atelier-build-harness/SKILL.md +59 -0
  259. package/fixtures/harness-packages/knowledge-harness/capability-package.json +61 -0
  260. package/fixtures/harness-packages/knowledge-harness/capability-release.json +82 -0
  261. package/fixtures/harness-packages/knowledge-harness/evaluation.md +3 -0
  262. package/fixtures/harness-packages/knowledge-harness/skills/atelier-knowledge-harness/SKILL.md +60 -0
  263. package/fixtures/harnesses/learning-cycle.json +780 -0
  264. package/fixtures/inquiry/workshop.json +675 -0
  265. package/fixtures/inquiry-packages/discovery-harness/capability-package.json +61 -0
  266. package/fixtures/inquiry-packages/discovery-harness/capability-release.json +82 -0
  267. package/fixtures/inquiry-packages/discovery-harness/evaluation.md +3 -0
  268. package/fixtures/inquiry-packages/discovery-harness/skills/atelier-discovery-harness/SKILL.md +48 -0
  269. package/fixtures/inquiry-packages/research-harness/capability-package.json +61 -0
  270. package/fixtures/inquiry-packages/research-harness/capability-release.json +82 -0
  271. package/fixtures/inquiry-packages/research-harness/evaluation.md +3 -0
  272. package/fixtures/inquiry-packages/research-harness/skills/atelier-research-harness/SKILL.md +43 -0
  273. package/fixtures/knowledge-health/calibration-suite.json +26 -0
  274. package/fixtures/knowledge-health/calibration-trial.json +37 -0
  275. package/fixtures/knowledge-health/corrected/checklist.md +18 -0
  276. package/fixtures/knowledge-health/devday/participant-record.json +19 -0
  277. package/fixtures/knowledge-health/expected-summary.json +27 -0
  278. package/fixtures/knowledge-health/workshop/README.md +20 -0
  279. package/fixtures/knowledge-health/workshop/atelier.project.json +7 -0
  280. package/fixtures/knowledge-health/workshop/knowledge-plan.json +65 -0
  281. package/fixtures/knowledge-health/workshop/records/checklist.md +18 -0
  282. package/fixtures/knowledge-health/workshop/records/workshop.md +18 -0
  283. package/fixtures/knowledge-health/workshop/repo-access.v1.json +5 -0
  284. package/fixtures/knowledge-health/workspace/atelier.project.json +18 -0
  285. package/fixtures/knowledge-health/workspace/knowledge-plan.json +74 -0
  286. package/fixtures/knowledge-health/workspace/records/checklist.md +18 -0
  287. package/fixtures/knowledge-health/workspace/records/pilot.md +16 -0
  288. package/fixtures/knowledge-health/workspace/repo-access.v1.json +9 -0
  289. package/fixtures/personal-workspace/overlay.json +24 -0
  290. package/fixtures/templates/local-library.v1.json +75 -0
  291. package/fixtures/templates/upgrade-contracts/adoption-policy.v2/invalid.json +16 -0
  292. package/fixtures/templates/upgrade-contracts/adoption-policy.v2/valid.json +13 -0
  293. package/fixtures/templates/upgrade-contracts/migration.v3/invalid.json +24 -0
  294. package/fixtures/templates/upgrade-contracts/migration.v3/valid.json +21 -0
  295. package/fixtures/templates/upgrade-contracts/template-adoption.v1/invalid.json +60 -0
  296. package/fixtures/templates/upgrade-contracts/template-adoption.v1/valid.json +57 -0
  297. package/fixtures/templates/upgrade-contracts/upgrade-plan.v3/invalid.json +85 -0
  298. package/fixtures/templates/upgrade-contracts/upgrade-plan.v3/valid.json +82 -0
  299. package/package.json +59 -5
  300. package/skills/claude/atelier-build-harness/SKILL.md +59 -0
  301. package/skills/claude/atelier-coordination/SKILL.md +32 -0
  302. package/skills/claude/atelier-discovery-harness/SKILL.md +48 -0
  303. package/skills/claude/atelier-guided-upgrade/SKILL.md +29 -0
  304. package/skills/claude/atelier-interaction/SKILL.md +34 -0
  305. package/skills/claude/atelier-knowledge-harness/SKILL.md +60 -0
  306. package/skills/claude/atelier-knowledge-setup/SKILL.md +72 -0
  307. package/skills/claude/atelier-practical-judgment/SKILL.md +64 -0
  308. package/skills/claude/atelier-research-harness/SKILL.md +43 -0
  309. package/skills/claude/atelier-skill-steward/SKILL.md +53 -0
  310. package/skills/claude/atelier-trackables/SKILL.md +40 -0
  311. package/skills/codex/atelier-build-harness/SKILL.md +59 -0
  312. package/skills/codex/atelier-coordination/SKILL.md +32 -0
  313. package/skills/codex/atelier-discovery-harness/SKILL.md +48 -0
  314. package/skills/codex/atelier-guided-upgrade/SKILL.md +29 -0
  315. package/skills/codex/atelier-interaction/SKILL.md +34 -0
  316. package/skills/codex/atelier-knowledge-harness/SKILL.md +60 -0
  317. package/skills/codex/atelier-knowledge-setup/SKILL.md +72 -0
  318. package/skills/codex/atelier-practical-judgment/SKILL.md +64 -0
  319. package/skills/codex/atelier-research-harness/SKILL.md +43 -0
  320. package/skills/codex/atelier-skill-steward/SKILL.md +53 -0
  321. package/skills/codex/atelier-trackables/SKILL.md +40 -0
  322. package/src/architecture/catalog.mjs +355 -0
  323. package/src/architecture/index.mjs +93 -0
  324. package/src/boundary/content-rules.mjs +4 -2
  325. package/src/boundary/delegation-command.mjs +158 -0
  326. package/src/boundary/delegation.mjs +396 -0
  327. package/src/boundary/policy.mjs +52 -10
  328. package/src/build/git.mjs +18 -0
  329. package/src/build/index.mjs +3 -0
  330. package/src/build/ledger.mjs +88 -0
  331. package/src/capabilities/adoption.mjs +381 -0
  332. package/src/capabilities/evidence.mjs +140 -0
  333. package/src/capabilities/files.mjs +124 -0
  334. package/src/capabilities/index.mjs +4 -0
  335. package/src/capabilities/instructions.mjs +250 -0
  336. package/src/capabilities/package.mjs +136 -0
  337. package/src/cli/command-failure.mjs +36 -0
  338. package/src/cli/execute-command.mjs +16 -2
  339. package/src/cli/run.mjs +65 -9
  340. package/src/coauthor/store.mjs +43 -2
  341. package/src/collaboration/proposals.mjs +189 -0
  342. package/src/commands/architecture.mjs +27 -0
  343. package/src/commands/boundary.mjs +3 -0
  344. package/src/commands/capability.mjs +73 -0
  345. package/src/commands/enroll.mjs +3 -0
  346. package/src/commands/harness.mjs +79 -0
  347. package/src/commands/ingest.mjs +39 -0
  348. package/src/commands/init.mjs +4 -1
  349. package/src/commands/inquiry.mjs +66 -0
  350. package/src/commands/knowledge-semantic.mjs +128 -0
  351. package/src/commands/knowledge.mjs +119 -0
  352. package/src/commands/learn.mjs +61 -0
  353. package/src/commands/obsidian.mjs +754 -63
  354. package/src/commands/practice.mjs +24 -0
  355. package/src/commands/setup.mjs +22 -2
  356. package/src/commands/trackable.mjs +19 -0
  357. package/src/contracts/corpus.mjs +30 -0
  358. package/src/coordination/index.mjs +110 -0
  359. package/src/evidence-navigation/contracts.mjs +60 -0
  360. package/src/evidence-navigation/evaluate.mjs +69 -0
  361. package/src/evidence-navigation/generation.mjs +22 -0
  362. package/src/evidence-navigation/index.mjs +2 -0
  363. package/src/evidence-navigation/local.mjs +167 -0
  364. package/src/evidence-navigation/schema.generated.mjs +604 -0
  365. package/src/evidence-navigation/types.mjs +12 -0
  366. package/src/export/atelier-export-contract.mjs +35 -8
  367. package/src/graph/enroll.mjs +248 -0
  368. package/src/graph/graph.mjs +17 -1
  369. package/src/graph/knowledge-graph.mjs +58 -8
  370. package/src/harnesses/contracts.mjs +41 -0
  371. package/src/harnesses/exchange.mjs +154 -0
  372. package/src/harnesses/feedback.mjs +16 -0
  373. package/src/harnesses/history.mjs +37 -0
  374. package/src/harnesses/index.mjs +4 -0
  375. package/src/harnesses/store.mjs +29 -0
  376. package/src/ingestion/contracts.mjs +41 -0
  377. package/src/ingestion/evaluation.mjs +119 -0
  378. package/src/ingestion/optional/composition/index.mjs +171 -0
  379. package/src/ingestion/optional/evaluation/index.mjs +219 -0
  380. package/src/ingestion/optional/graphify/composition-binding.mjs +60 -0
  381. package/src/ingestion/optional/graphify/composition_receiving.py +185 -0
  382. package/src/ingestion/optional/graphify/graphify_supplier.py +933 -0
  383. package/src/ingestion/optional/graphify/json_bridge.py +163 -0
  384. package/src/ingestion/optional/graphify/query_receiving.py +209 -0
  385. package/src/ingestion/optional/index.mjs +9 -0
  386. package/src/ingestion/optional/jev/bridge.mjs +166 -0
  387. package/src/ingestion/optional/jev/composition-binding.mjs +116 -0
  388. package/src/ingestion/optional/jev/judgments.mjs +174 -0
  389. package/src/ingestion/optional/jev/native-translation.mjs +32 -0
  390. package/src/ingestion/optional/lightrag/atelier_lightrag_supplier/__init__.py +7 -0
  391. package/src/ingestion/optional/lightrag/atelier_lightrag_supplier/adapter.py +966 -0
  392. package/src/ingestion/optional/lightrag/atelier_lightrag_supplier/artifacts.py +101 -0
  393. package/src/ingestion/optional/lightrag/atelier_lightrag_supplier/projection.py +146 -0
  394. package/src/ingestion/optional/lightrag/composition-binding.mjs +67 -0
  395. package/src/ingestion/optional/vanilla/composition-binding.mjs +102 -0
  396. package/src/ingestion/optional/vanilla/index.mjs +218 -0
  397. package/src/ingestion/optional/vanilla/native-normalization.mjs +187 -0
  398. package/src/ingestion/processors.mjs +218 -0
  399. package/src/ingestion/semantic.mjs +203 -0
  400. package/src/ingestion/store.mjs +372 -0
  401. package/src/inquiry/beliefs.mjs +32 -0
  402. package/src/inquiry/contracts.mjs +23 -0
  403. package/src/inquiry/index.mjs +5 -0
  404. package/src/inquiry/ledger.mjs +135 -0
  405. package/src/inquiry/lenses.mjs +15 -0
  406. package/src/inquiry/projection.mjs +77 -0
  407. package/src/inquiry/store.mjs +35 -0
  408. package/src/intake/read-scope.mjs +12 -0
  409. package/src/intake/store.mjs +69 -6
  410. package/src/interaction/index.mjs +91 -0
  411. package/src/judgment/index.mjs +82 -0
  412. package/src/judgment/practice-evaluation.mjs +70 -0
  413. package/src/judgment/practice.mjs +144 -0
  414. package/src/knowledge/context.mjs +217 -0
  415. package/src/knowledge/index.mjs +5 -0
  416. package/src/knowledge/ingestion.mjs +79 -0
  417. package/src/knowledge/intake.mjs +33 -0
  418. package/src/knowledge/ledger.mjs +110 -0
  419. package/src/knowledge/participatory/guidance.mjs +36 -0
  420. package/src/knowledge/participatory/guided-contribution.mjs +44 -0
  421. package/src/knowledge/participatory/index.mjs +2 -0
  422. package/src/knowledge/participatory/installed-workshop.mjs +108 -0
  423. package/src/knowledge/plan.mjs +67 -0
  424. package/src/knowledge/projection.mjs +43 -0
  425. package/src/knowledge/semantic-operation.mjs +567 -0
  426. package/src/knowledge/sessions.mjs +467 -0
  427. package/src/knowledge/workspace.mjs +295 -0
  428. package/src/knowledge-health/assessment.mjs +165 -0
  429. package/src/knowledge-health/capabilities.mjs +350 -0
  430. package/src/knowledge-health/context.mjs +62 -0
  431. package/src/knowledge-health/example.mjs +47 -0
  432. package/src/knowledge-health/index.mjs +10 -0
  433. package/src/knowledge-health/owner-join.mjs +88 -0
  434. package/src/knowledge-health/proof/common.mjs +24 -0
  435. package/src/knowledge-health/proof/installed-check.mjs +100 -0
  436. package/src/knowledge-health/proof/native-readback.mjs +37 -0
  437. package/src/knowledge-health/proof/rehearse.mjs +68 -0
  438. package/src/knowledge-health/proof/validate-participant.mjs +17 -0
  439. package/src/knowledge-health/proof/verify-native-capture.mjs +14 -0
  440. package/src/knowledge-health/proof/workshop-check.mjs +36 -0
  441. package/src/knowledge-health/rule-identity.mjs +44 -0
  442. package/src/knowledge-health/workshop-composition.mjs +19 -0
  443. package/src/knowledge-health/workshop-profile.mjs +176 -0
  444. package/src/knowledge-health/workshop.mjs +99 -0
  445. package/src/learning/adapters.mjs +68 -0
  446. package/src/learning/assistance.mjs +127 -0
  447. package/src/learning/contracts.mjs +65 -0
  448. package/src/learning/store.mjs +272 -0
  449. package/src/personal-workspace/index.mjs +391 -0
  450. package/src/personal-workspace/selection.mjs +385 -0
  451. package/src/project/config.mjs +8 -0
  452. package/src/project/durable-state.mjs +3 -1
  453. package/src/project/file-class.mjs +1 -1
  454. package/src/projection/obsidian/edits/apply.mjs +55 -16
  455. package/src/projection/obsidian/personal-workspace.mjs +436 -0
  456. package/src/projection/obsidian/proposals/adapter.mjs +47 -8
  457. package/src/projection/obsidian/proposals/observation.mjs +10 -2
  458. package/src/projection/obsidian/publication/publisher.mjs +142 -13
  459. package/src/projection/obsidian/publication/vault-list.mjs +4 -3
  460. package/src/projection/obsidian/recovery/index.mjs +4 -1
  461. package/src/projection/obsidian/recovery/store.mjs +160 -7
  462. package/src/projection/obsidian/selection-ui/contribution.mjs +6 -5
  463. package/src/readiness/readiness.mjs +10 -3
  464. package/src/reflection/index.mjs +56 -0
  465. package/src/runtime/obsidian/app-production-seams.mjs +48 -16
  466. package/src/runtime/obsidian/app-registration.mjs +175 -28
  467. package/src/runtime/obsidian/app-restart.mjs +154 -0
  468. package/src/runtime/obsidian/engine.mjs +163 -20
  469. package/src/runtime/obsidian/extension-points.mjs +1 -1
  470. package/src/runtime/obsidian/index.mjs +10 -7
  471. package/src/runtime/obsidian/launch-plan.mjs +7 -4
  472. package/src/runtime/obsidian/lifecycle.mjs +92 -12
  473. package/src/runtime/obsidian/login-item.mjs +332 -0
  474. package/src/runtime/obsidian/machine-settings.mjs +119 -12
  475. package/src/runtime/obsidian/opening.mjs +171 -37
  476. package/src/runtime/obsidian/pipeline.mjs +71 -3
  477. package/src/runtime/obsidian/plugin-channel.mjs +11 -3
  478. package/src/runtime/obsidian/plugin-choice.mjs +16 -4
  479. package/src/runtime/obsidian/plugin-drift.mjs +59 -11
  480. package/src/runtime/obsidian/plugin-presence.mjs +14 -1
  481. package/src/runtime/obsidian/process-identity.mjs +20 -10
  482. package/src/runtime/obsidian/project-views.mjs +282 -0
  483. package/src/runtime/obsidian/questions.mjs +48 -0
  484. package/src/runtime/obsidian/release-watch.mjs +56 -0
  485. package/src/runtime/obsidian/service-main.mjs +99 -16
  486. package/src/runtime/obsidian/service-manager-production.mjs +61 -0
  487. package/src/runtime/obsidian/service-managers.mjs +275 -0
  488. package/src/runtime/obsidian/service-record.mjs +87 -23
  489. package/src/runtime/obsidian/service.mjs +36 -3
  490. package/src/runtime/obsidian/startup-adapters.mjs +59 -21
  491. package/src/runtime/obsidian/unheld-evidence.mjs +84 -0
  492. package/src/runtime/obsidian/vault-location.mjs +300 -0
  493. package/src/runtime/obsidian/view-counts.mjs +34 -0
  494. package/src/server/local-sidecar.mjs +169 -2
  495. package/src/server/server.mjs +28 -2
  496. package/src/template-bindings/project.mjs +92 -0
  497. package/src/templates/profile.mjs +225 -0
  498. package/src/trackables/domain.mjs +175 -0
  499. package/src/trackables/store.mjs +114 -0
  500. package/src/ui/knowledge-page.mjs +1388 -0
  501. package/src/upgrade/explanation.mjs +1 -1
  502. package/src/upgrade/template-participant.mjs +171 -0
  503. package/src/upgrade/transaction.mjs +72 -25
  504. package/src/upgrade/upgrade.mjs +1 -0
  505. package/templates/external-project-workspace/pack-lifecycle.json +6 -1
  506. package/templates/knowledge-workspace/.gitattributes +2 -0
  507. package/templates/knowledge-workspace/AGENTS.md +27 -0
  508. package/templates/knowledge-workspace/README.md +44 -0
  509. package/templates/knowledge-workspace/atelier.project.json +22 -0
  510. package/templates/knowledge-workspace/gitignore +6 -0
  511. package/templates/knowledge-workspace/knowledge-plan.json +111 -0
  512. package/templates/knowledge-workspace/knowledge-plan.schema.json +281 -0
  513. package/templates/knowledge-workspace/records/forecast.md +22 -0
  514. package/templates/knowledge-workspace/records/inspection.md +25 -0
  515. package/templates/knowledge-workspace/records/telescope.md +24 -0
  516. package/templates/knowledge-workspace/repo-access.v1.json +9 -0
@@ -0,0 +1,1772 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://mnstry.ai/schemas/atelier/atelier-inquiry.v1.schema.json",
4
+ "title": "Atelier inquiry records",
5
+ "description": "Local caller-reported inquiry history. Format validity grants no execution, disclosure or publication authority.",
6
+ "$defs": {
7
+ "campaign": {
8
+ "type": "object",
9
+ "additionalProperties": false,
10
+ "required": [
11
+ "schema",
12
+ "kind",
13
+ "id",
14
+ "campaign",
15
+ "at",
16
+ "by",
17
+ "data"
18
+ ],
19
+ "properties": {
20
+ "schema": {
21
+ "const": "atelier-inquiry-record@v1"
22
+ },
23
+ "kind": {
24
+ "const": "campaign"
25
+ },
26
+ "id": {
27
+ "type": "string",
28
+ "pattern": "^[a-z][a-z0-9-]{0,63}$"
29
+ },
30
+ "campaign": {
31
+ "type": "string",
32
+ "pattern": "^[a-z][a-z0-9-]{0,63}$"
33
+ },
34
+ "at": {
35
+ "type": "string",
36
+ "format": "date-time"
37
+ },
38
+ "by": {
39
+ "type": "string",
40
+ "minLength": 1,
41
+ "maxLength": 4096
42
+ },
43
+ "data": {
44
+ "type": "object",
45
+ "additionalProperties": false,
46
+ "required": [
47
+ "title",
48
+ "purpose",
49
+ "scope",
50
+ "owner",
51
+ "audience",
52
+ "stoppingRule"
53
+ ],
54
+ "properties": {
55
+ "title": {
56
+ "type": "string",
57
+ "minLength": 1,
58
+ "maxLength": 4096
59
+ },
60
+ "purpose": {
61
+ "type": "string",
62
+ "minLength": 1,
63
+ "maxLength": 4096
64
+ },
65
+ "scope": {
66
+ "type": "string",
67
+ "minLength": 1,
68
+ "maxLength": 4096
69
+ },
70
+ "owner": {
71
+ "type": "string",
72
+ "minLength": 1,
73
+ "maxLength": 4096
74
+ },
75
+ "audience": {
76
+ "enum": [
77
+ "public",
78
+ "team",
79
+ "operator",
80
+ "staff",
81
+ "private",
82
+ "sensitive"
83
+ ]
84
+ },
85
+ "stoppingRule": {
86
+ "type": "string",
87
+ "minLength": 1,
88
+ "maxLength": 4096
89
+ },
90
+ "ext": {
91
+ "type": "object",
92
+ "maxProperties": 0,
93
+ "description": "Reserved; no extensions admitted in this version."
94
+ }
95
+ }
96
+ },
97
+ "contractVersion": {
98
+ "type": "string",
99
+ "pattern": "^1\\.[0-9]+\\.[0-9]+$"
100
+ },
101
+ "ext": {
102
+ "type": "object",
103
+ "maxProperties": 0,
104
+ "description": "Reserved; no extensions admitted in this version."
105
+ }
106
+ }
107
+ },
108
+ "hypothesis": {
109
+ "type": "object",
110
+ "additionalProperties": false,
111
+ "required": [
112
+ "schema",
113
+ "kind",
114
+ "id",
115
+ "campaign",
116
+ "at",
117
+ "by",
118
+ "data"
119
+ ],
120
+ "properties": {
121
+ "schema": {
122
+ "const": "atelier-inquiry-record@v1"
123
+ },
124
+ "kind": {
125
+ "const": "hypothesis"
126
+ },
127
+ "id": {
128
+ "type": "string",
129
+ "pattern": "^[a-z][a-z0-9-]{0,63}$"
130
+ },
131
+ "campaign": {
132
+ "type": "string",
133
+ "pattern": "^[a-z][a-z0-9-]{0,63}$"
134
+ },
135
+ "at": {
136
+ "type": "string",
137
+ "format": "date-time"
138
+ },
139
+ "by": {
140
+ "type": "string",
141
+ "minLength": 1,
142
+ "maxLength": 4096
143
+ },
144
+ "data": {
145
+ "type": "object",
146
+ "additionalProperties": false,
147
+ "required": [
148
+ "question",
149
+ "scope",
150
+ "context",
151
+ "alternatives",
152
+ "testPlan"
153
+ ],
154
+ "properties": {
155
+ "question": {
156
+ "type": "string",
157
+ "minLength": 1,
158
+ "maxLength": 4096
159
+ },
160
+ "scope": {
161
+ "type": "string",
162
+ "pattern": "^[a-z][a-z0-9-]{0,63}$"
163
+ },
164
+ "context": {
165
+ "type": "string",
166
+ "minLength": 1,
167
+ "maxLength": 4096
168
+ },
169
+ "alternatives": {
170
+ "type": "array",
171
+ "items": {
172
+ "type": "string",
173
+ "minLength": 1,
174
+ "maxLength": 4096
175
+ },
176
+ "minItems": 1,
177
+ "maxItems": 64
178
+ },
179
+ "testPlan": {
180
+ "type": "string",
181
+ "minLength": 1,
182
+ "maxLength": 4096
183
+ },
184
+ "supersedes": {
185
+ "type": "object",
186
+ "additionalProperties": false,
187
+ "required": [
188
+ "id",
189
+ "digest"
190
+ ],
191
+ "properties": {
192
+ "id": {
193
+ "type": "string",
194
+ "pattern": "^[a-z][a-z0-9-]{0,63}$"
195
+ },
196
+ "digest": {
197
+ "type": "string",
198
+ "pattern": "^sha256:[a-f0-9]{64}$"
199
+ },
200
+ "ext": {
201
+ "type": "object",
202
+ "maxProperties": 0,
203
+ "description": "Reserved; no extensions admitted in this version."
204
+ }
205
+ }
206
+ },
207
+ "ext": {
208
+ "type": "object",
209
+ "maxProperties": 0,
210
+ "description": "Reserved; no extensions admitted in this version."
211
+ }
212
+ }
213
+ },
214
+ "contractVersion": {
215
+ "type": "string",
216
+ "pattern": "^1\\.[0-9]+\\.[0-9]+$"
217
+ },
218
+ "ext": {
219
+ "type": "object",
220
+ "maxProperties": 0,
221
+ "description": "Reserved; no extensions admitted in this version."
222
+ }
223
+ }
224
+ },
225
+ "request": {
226
+ "type": "object",
227
+ "additionalProperties": false,
228
+ "required": [
229
+ "schema",
230
+ "kind",
231
+ "id",
232
+ "campaign",
233
+ "at",
234
+ "by",
235
+ "data"
236
+ ],
237
+ "properties": {
238
+ "schema": {
239
+ "const": "atelier-inquiry-record@v1"
240
+ },
241
+ "kind": {
242
+ "const": "request"
243
+ },
244
+ "id": {
245
+ "type": "string",
246
+ "pattern": "^[a-z][a-z0-9-]{0,63}$"
247
+ },
248
+ "campaign": {
249
+ "type": "string",
250
+ "pattern": "^[a-z][a-z0-9-]{0,63}$"
251
+ },
252
+ "at": {
253
+ "type": "string",
254
+ "format": "date-time"
255
+ },
256
+ "by": {
257
+ "type": "string",
258
+ "minLength": 1,
259
+ "maxLength": 4096
260
+ },
261
+ "data": {
262
+ "type": "object",
263
+ "additionalProperties": false,
264
+ "required": [
265
+ "hypothesis",
266
+ "question",
267
+ "context",
268
+ "lenses",
269
+ "sourceStandards",
270
+ "maxReports",
271
+ "budget",
272
+ "allowedEffects"
273
+ ],
274
+ "properties": {
275
+ "hypothesis": {
276
+ "type": "object",
277
+ "additionalProperties": false,
278
+ "required": [
279
+ "id",
280
+ "digest"
281
+ ],
282
+ "properties": {
283
+ "id": {
284
+ "type": "string",
285
+ "pattern": "^[a-z][a-z0-9-]{0,63}$"
286
+ },
287
+ "digest": {
288
+ "type": "string",
289
+ "pattern": "^sha256:[a-f0-9]{64}$"
290
+ },
291
+ "ext": {
292
+ "type": "object",
293
+ "maxProperties": 0,
294
+ "description": "Reserved; no extensions admitted in this version."
295
+ }
296
+ }
297
+ },
298
+ "question": {
299
+ "type": "string",
300
+ "minLength": 1,
301
+ "maxLength": 4096
302
+ },
303
+ "context": {
304
+ "type": "string",
305
+ "minLength": 1,
306
+ "maxLength": 4096
307
+ },
308
+ "lenses": {
309
+ "type": "array",
310
+ "items": {
311
+ "type": "object",
312
+ "additionalProperties": false,
313
+ "required": [
314
+ "id",
315
+ "question",
316
+ "method",
317
+ "exclusions"
318
+ ],
319
+ "properties": {
320
+ "id": {
321
+ "type": "string",
322
+ "pattern": "^[a-z][a-z0-9-]{0,63}$"
323
+ },
324
+ "question": {
325
+ "type": "string",
326
+ "minLength": 1,
327
+ "maxLength": 4096
328
+ },
329
+ "method": {
330
+ "type": "string",
331
+ "minLength": 1,
332
+ "maxLength": 4096
333
+ },
334
+ "exclusions": {
335
+ "type": "string",
336
+ "minLength": 1,
337
+ "maxLength": 4096
338
+ },
339
+ "ext": {
340
+ "type": "object",
341
+ "maxProperties": 0,
342
+ "description": "Reserved; no extensions admitted in this version."
343
+ }
344
+ }
345
+ },
346
+ "minItems": 1,
347
+ "maxItems": 64
348
+ },
349
+ "sourceStandards": {
350
+ "type": "array",
351
+ "items": {
352
+ "type": "string",
353
+ "minLength": 1,
354
+ "maxLength": 4096
355
+ },
356
+ "minItems": 1,
357
+ "maxItems": 64
358
+ },
359
+ "maxReports": {
360
+ "type": "integer",
361
+ "minimum": 1,
362
+ "maximum": 64
363
+ },
364
+ "budget": {
365
+ "type": "string",
366
+ "minLength": 1,
367
+ "maxLength": 4096
368
+ },
369
+ "allowedEffects": {
370
+ "type": "array",
371
+ "items": {
372
+ "enum": [
373
+ "read-workspace",
374
+ "write-workspace",
375
+ "network"
376
+ ]
377
+ },
378
+ "minItems": 0,
379
+ "maxItems": 64
380
+ },
381
+ "binding": {
382
+ "type": "object",
383
+ "additionalProperties": false,
384
+ "required": [
385
+ "package",
386
+ "releaseDigest",
387
+ "generation",
388
+ "binding",
389
+ "bindingDigest",
390
+ "host",
391
+ "session"
392
+ ],
393
+ "properties": {
394
+ "package": {
395
+ "type": "string",
396
+ "minLength": 1,
397
+ "maxLength": 4096
398
+ },
399
+ "releaseDigest": {
400
+ "type": "string",
401
+ "pattern": "^sha256:[a-f0-9]{64}$"
402
+ },
403
+ "generation": {
404
+ "type": "string",
405
+ "pattern": "^sha256:[a-f0-9]{64}$"
406
+ },
407
+ "binding": {
408
+ "type": "string",
409
+ "minLength": 1,
410
+ "maxLength": 4096
411
+ },
412
+ "bindingDigest": {
413
+ "type": "string",
414
+ "pattern": "^sha256:[a-f0-9]{64}$"
415
+ },
416
+ "host": {
417
+ "enum": [
418
+ "codex-repo-v1",
419
+ "claude-repo-v1"
420
+ ]
421
+ },
422
+ "session": {
423
+ "type": "string",
424
+ "pattern": "^[a-z][a-z0-9-]{0,63}$"
425
+ },
426
+ "ext": {
427
+ "type": "object",
428
+ "maxProperties": 0,
429
+ "description": "Reserved; no extensions admitted in this version."
430
+ }
431
+ }
432
+ },
433
+ "ext": {
434
+ "type": "object",
435
+ "maxProperties": 0,
436
+ "description": "Reserved; no extensions admitted in this version."
437
+ }
438
+ }
439
+ },
440
+ "contractVersion": {
441
+ "type": "string",
442
+ "pattern": "^1\\.[0-9]+\\.[0-9]+$"
443
+ },
444
+ "ext": {
445
+ "type": "object",
446
+ "maxProperties": 0,
447
+ "description": "Reserved; no extensions admitted in this version."
448
+ }
449
+ }
450
+ },
451
+ "source": {
452
+ "type": "object",
453
+ "additionalProperties": false,
454
+ "required": [
455
+ "schema",
456
+ "kind",
457
+ "id",
458
+ "campaign",
459
+ "at",
460
+ "by",
461
+ "data"
462
+ ],
463
+ "properties": {
464
+ "schema": {
465
+ "const": "atelier-inquiry-record@v1"
466
+ },
467
+ "kind": {
468
+ "const": "source"
469
+ },
470
+ "id": {
471
+ "type": "string",
472
+ "pattern": "^[a-z][a-z0-9-]{0,63}$"
473
+ },
474
+ "campaign": {
475
+ "type": "string",
476
+ "pattern": "^[a-z][a-z0-9-]{0,63}$"
477
+ },
478
+ "at": {
479
+ "type": "string",
480
+ "format": "date-time"
481
+ },
482
+ "by": {
483
+ "type": "string",
484
+ "minLength": 1,
485
+ "maxLength": 4096
486
+ },
487
+ "data": {
488
+ "type": "object",
489
+ "additionalProperties": false,
490
+ "required": [
491
+ "locator",
492
+ "content",
493
+ "digest",
494
+ "family",
495
+ "scope",
496
+ "method",
497
+ "audience"
498
+ ],
499
+ "properties": {
500
+ "locator": {
501
+ "type": "string",
502
+ "minLength": 1,
503
+ "maxLength": 4096
504
+ },
505
+ "content": {
506
+ "type": "string",
507
+ "minLength": 1,
508
+ "maxLength": 262144
509
+ },
510
+ "digest": {
511
+ "type": "string",
512
+ "pattern": "^sha256:[a-f0-9]{64}$"
513
+ },
514
+ "family": {
515
+ "type": "string",
516
+ "pattern": "^[a-z][a-z0-9-]{0,63}$"
517
+ },
518
+ "scope": {
519
+ "type": "string",
520
+ "pattern": "^[a-z][a-z0-9-]{0,63}$"
521
+ },
522
+ "method": {
523
+ "type": "string",
524
+ "minLength": 1,
525
+ "maxLength": 4096
526
+ },
527
+ "audience": {
528
+ "enum": [
529
+ "public",
530
+ "team",
531
+ "operator",
532
+ "staff",
533
+ "private",
534
+ "sensitive"
535
+ ]
536
+ },
537
+ "ext": {
538
+ "type": "object",
539
+ "maxProperties": 0,
540
+ "description": "Reserved; no extensions admitted in this version."
541
+ }
542
+ }
543
+ },
544
+ "contractVersion": {
545
+ "type": "string",
546
+ "pattern": "^1\\.[0-9]+\\.[0-9]+$"
547
+ },
548
+ "ext": {
549
+ "type": "object",
550
+ "maxProperties": 0,
551
+ "description": "Reserved; no extensions admitted in this version."
552
+ }
553
+ }
554
+ },
555
+ "bundle": {
556
+ "type": "object",
557
+ "additionalProperties": false,
558
+ "required": [
559
+ "schema",
560
+ "kind",
561
+ "id",
562
+ "campaign",
563
+ "at",
564
+ "by",
565
+ "data"
566
+ ],
567
+ "properties": {
568
+ "schema": {
569
+ "const": "atelier-inquiry-record@v1"
570
+ },
571
+ "kind": {
572
+ "const": "bundle"
573
+ },
574
+ "id": {
575
+ "type": "string",
576
+ "pattern": "^[a-z][a-z0-9-]{0,63}$"
577
+ },
578
+ "campaign": {
579
+ "type": "string",
580
+ "pattern": "^[a-z][a-z0-9-]{0,63}$"
581
+ },
582
+ "at": {
583
+ "type": "string",
584
+ "format": "date-time"
585
+ },
586
+ "by": {
587
+ "type": "string",
588
+ "minLength": 1,
589
+ "maxLength": 4096
590
+ },
591
+ "data": {
592
+ "type": "object",
593
+ "additionalProperties": false,
594
+ "required": [
595
+ "request",
596
+ "attempt",
597
+ "provider",
598
+ "prompt",
599
+ "reports",
600
+ "assertions",
601
+ "synthesis",
602
+ "conflicts",
603
+ "gaps",
604
+ "newQuestions"
605
+ ],
606
+ "properties": {
607
+ "request": {
608
+ "type": "object",
609
+ "additionalProperties": false,
610
+ "required": [
611
+ "id",
612
+ "digest"
613
+ ],
614
+ "properties": {
615
+ "id": {
616
+ "type": "string",
617
+ "pattern": "^[a-z][a-z0-9-]{0,63}$"
618
+ },
619
+ "digest": {
620
+ "type": "string",
621
+ "pattern": "^sha256:[a-f0-9]{64}$"
622
+ },
623
+ "ext": {
624
+ "type": "object",
625
+ "maxProperties": 0,
626
+ "description": "Reserved; no extensions admitted in this version."
627
+ }
628
+ }
629
+ },
630
+ "attempt": {
631
+ "type": "string",
632
+ "pattern": "^[a-z][a-z0-9-]{0,63}$"
633
+ },
634
+ "provider": {
635
+ "type": "object",
636
+ "additionalProperties": false,
637
+ "required": [
638
+ "tool",
639
+ "model",
640
+ "runId"
641
+ ],
642
+ "properties": {
643
+ "tool": {
644
+ "type": "string",
645
+ "minLength": 1,
646
+ "maxLength": 4096
647
+ },
648
+ "model": {
649
+ "type": "string",
650
+ "minLength": 1,
651
+ "maxLength": 4096
652
+ },
653
+ "runId": {
654
+ "type": "string",
655
+ "minLength": 1,
656
+ "maxLength": 4096
657
+ },
658
+ "ext": {
659
+ "type": "object",
660
+ "maxProperties": 0,
661
+ "description": "Reserved; no extensions admitted in this version."
662
+ }
663
+ }
664
+ },
665
+ "prompt": {
666
+ "type": "string",
667
+ "minLength": 1,
668
+ "maxLength": 1048576
669
+ },
670
+ "reports": {
671
+ "type": "array",
672
+ "items": {
673
+ "type": "object",
674
+ "additionalProperties": false,
675
+ "required": [
676
+ "id",
677
+ "digest"
678
+ ],
679
+ "properties": {
680
+ "id": {
681
+ "type": "string",
682
+ "pattern": "^[a-z][a-z0-9-]{0,63}$"
683
+ },
684
+ "digest": {
685
+ "type": "string",
686
+ "pattern": "^sha256:[a-f0-9]{64}$"
687
+ },
688
+ "ext": {
689
+ "type": "object",
690
+ "maxProperties": 0,
691
+ "description": "Reserved; no extensions admitted in this version."
692
+ }
693
+ }
694
+ },
695
+ "minItems": 1,
696
+ "maxItems": 64
697
+ },
698
+ "assertions": {
699
+ "type": "array",
700
+ "items": {
701
+ "type": "object",
702
+ "additionalProperties": false,
703
+ "required": [
704
+ "id",
705
+ "statement",
706
+ "source",
707
+ "quote",
708
+ "verification",
709
+ "stance"
710
+ ],
711
+ "properties": {
712
+ "id": {
713
+ "type": "string",
714
+ "pattern": "^[a-z][a-z0-9-]{0,63}$"
715
+ },
716
+ "statement": {
717
+ "type": "string",
718
+ "minLength": 1,
719
+ "maxLength": 4096
720
+ },
721
+ "source": {
722
+ "type": "object",
723
+ "additionalProperties": false,
724
+ "required": [
725
+ "id",
726
+ "digest"
727
+ ],
728
+ "properties": {
729
+ "id": {
730
+ "type": "string",
731
+ "pattern": "^[a-z][a-z0-9-]{0,63}$"
732
+ },
733
+ "digest": {
734
+ "type": "string",
735
+ "pattern": "^sha256:[a-f0-9]{64}$"
736
+ },
737
+ "ext": {
738
+ "type": "object",
739
+ "maxProperties": 0,
740
+ "description": "Reserved; no extensions admitted in this version."
741
+ }
742
+ }
743
+ },
744
+ "quote": {
745
+ "type": "string",
746
+ "minLength": 1,
747
+ "maxLength": 4096
748
+ },
749
+ "verification": {
750
+ "enum": [
751
+ "verified",
752
+ "unverified",
753
+ "unsupported"
754
+ ]
755
+ },
756
+ "stance": {
757
+ "enum": [
758
+ "supports",
759
+ "contradicts",
760
+ "neutral"
761
+ ]
762
+ },
763
+ "ext": {
764
+ "type": "object",
765
+ "maxProperties": 0,
766
+ "description": "Reserved; no extensions admitted in this version."
767
+ }
768
+ }
769
+ },
770
+ "minItems": 0,
771
+ "maxItems": 64
772
+ },
773
+ "synthesis": {
774
+ "type": "string",
775
+ "minLength": 1,
776
+ "maxLength": 4096
777
+ },
778
+ "conflicts": {
779
+ "type": "array",
780
+ "items": {
781
+ "type": "string",
782
+ "minLength": 1,
783
+ "maxLength": 4096
784
+ },
785
+ "minItems": 0,
786
+ "maxItems": 64
787
+ },
788
+ "gaps": {
789
+ "type": "array",
790
+ "items": {
791
+ "type": "string",
792
+ "minLength": 1,
793
+ "maxLength": 4096
794
+ },
795
+ "minItems": 0,
796
+ "maxItems": 64
797
+ },
798
+ "newQuestions": {
799
+ "type": "array",
800
+ "items": {
801
+ "type": "string",
802
+ "minLength": 1,
803
+ "maxLength": 4096
804
+ },
805
+ "minItems": 0,
806
+ "maxItems": 64
807
+ },
808
+ "clarifications": {
809
+ "type": "array",
810
+ "maxItems": 64,
811
+ "items": {
812
+ "type": "object",
813
+ "additionalProperties": false,
814
+ "required": [
815
+ "question",
816
+ "answer"
817
+ ],
818
+ "properties": {
819
+ "question": {
820
+ "type": "string",
821
+ "minLength": 1,
822
+ "maxLength": 4096
823
+ },
824
+ "answer": {
825
+ "type": "string",
826
+ "minLength": 1,
827
+ "maxLength": 4096
828
+ },
829
+ "ext": {
830
+ "type": "object",
831
+ "maxProperties": 0,
832
+ "description": "Reserved; no extensions admitted in this version."
833
+ }
834
+ }
835
+ }
836
+ },
837
+ "ext": {
838
+ "type": "object",
839
+ "maxProperties": 0,
840
+ "description": "Reserved; no extensions admitted in this version."
841
+ }
842
+ }
843
+ },
844
+ "contractVersion": {
845
+ "type": "string",
846
+ "pattern": "^1\\.[0-9]+\\.[0-9]+$"
847
+ },
848
+ "ext": {
849
+ "type": "object",
850
+ "maxProperties": 0,
851
+ "description": "Reserved; no extensions admitted in this version."
852
+ }
853
+ }
854
+ },
855
+ "assessment": {
856
+ "type": "object",
857
+ "additionalProperties": false,
858
+ "required": [
859
+ "schema",
860
+ "kind",
861
+ "id",
862
+ "campaign",
863
+ "at",
864
+ "by",
865
+ "data"
866
+ ],
867
+ "properties": {
868
+ "schema": {
869
+ "const": "atelier-inquiry-record@v1"
870
+ },
871
+ "kind": {
872
+ "const": "assessment"
873
+ },
874
+ "id": {
875
+ "type": "string",
876
+ "pattern": "^[a-z][a-z0-9-]{0,63}$"
877
+ },
878
+ "campaign": {
879
+ "type": "string",
880
+ "pattern": "^[a-z][a-z0-9-]{0,63}$"
881
+ },
882
+ "at": {
883
+ "type": "string",
884
+ "format": "date-time"
885
+ },
886
+ "by": {
887
+ "type": "string",
888
+ "minLength": 1,
889
+ "maxLength": 4096
890
+ },
891
+ "data": {
892
+ "type": "object",
893
+ "additionalProperties": false,
894
+ "required": [
895
+ "hypothesis",
896
+ "evidence",
897
+ "model",
898
+ "rationale"
899
+ ],
900
+ "properties": {
901
+ "hypothesis": {
902
+ "type": "object",
903
+ "additionalProperties": false,
904
+ "required": [
905
+ "id",
906
+ "digest"
907
+ ],
908
+ "properties": {
909
+ "id": {
910
+ "type": "string",
911
+ "pattern": "^[a-z][a-z0-9-]{0,63}$"
912
+ },
913
+ "digest": {
914
+ "type": "string",
915
+ "pattern": "^sha256:[a-f0-9]{64}$"
916
+ },
917
+ "ext": {
918
+ "type": "object",
919
+ "maxProperties": 0,
920
+ "description": "Reserved; no extensions admitted in this version."
921
+ }
922
+ }
923
+ },
924
+ "evidence": {
925
+ "type": "array",
926
+ "items": {
927
+ "type": "object",
928
+ "additionalProperties": false,
929
+ "required": [
930
+ "bundle",
931
+ "assertion"
932
+ ],
933
+ "properties": {
934
+ "bundle": {
935
+ "type": "object",
936
+ "additionalProperties": false,
937
+ "required": [
938
+ "id",
939
+ "digest"
940
+ ],
941
+ "properties": {
942
+ "id": {
943
+ "type": "string",
944
+ "pattern": "^[a-z][a-z0-9-]{0,63}$"
945
+ },
946
+ "digest": {
947
+ "type": "string",
948
+ "pattern": "^sha256:[a-f0-9]{64}$"
949
+ },
950
+ "ext": {
951
+ "type": "object",
952
+ "maxProperties": 0,
953
+ "description": "Reserved; no extensions admitted in this version."
954
+ }
955
+ }
956
+ },
957
+ "assertion": {
958
+ "type": "string",
959
+ "pattern": "^[a-z][a-z0-9-]{0,63}$"
960
+ },
961
+ "ext": {
962
+ "type": "object",
963
+ "maxProperties": 0,
964
+ "description": "Reserved; no extensions admitted in this version."
965
+ }
966
+ }
967
+ },
968
+ "minItems": 0,
969
+ "maxItems": 64
970
+ },
971
+ "model": {
972
+ "oneOf": [
973
+ {
974
+ "type": "object",
975
+ "additionalProperties": false,
976
+ "required": [
977
+ "kind",
978
+ "judgment"
979
+ ],
980
+ "properties": {
981
+ "kind": {
982
+ "const": "qualitative"
983
+ },
984
+ "judgment": {
985
+ "type": "string",
986
+ "minLength": 1,
987
+ "maxLength": 4096
988
+ },
989
+ "ext": {
990
+ "type": "object",
991
+ "maxProperties": 0,
992
+ "description": "Reserved; no extensions admitted in this version."
993
+ }
994
+ }
995
+ },
996
+ {
997
+ "type": "object",
998
+ "additionalProperties": false,
999
+ "required": [
1000
+ "kind",
1001
+ "priorFamilies",
1002
+ "assumptions",
1003
+ "prior",
1004
+ "sensitivityPriors",
1005
+ "likelihoods"
1006
+ ],
1007
+ "properties": {
1008
+ "kind": {
1009
+ "const": "elicited-odds"
1010
+ },
1011
+ "priorFamilies": {
1012
+ "type": "array",
1013
+ "items": {
1014
+ "type": "string",
1015
+ "pattern": "^[a-z][a-z0-9-]{0,63}$"
1016
+ },
1017
+ "minItems": 0,
1018
+ "maxItems": 64
1019
+ },
1020
+ "assumptions": {
1021
+ "type": "string",
1022
+ "minLength": 1,
1023
+ "maxLength": 4096
1024
+ },
1025
+ "prior": {
1026
+ "type": "number",
1027
+ "exclusiveMinimum": 0,
1028
+ "exclusiveMaximum": 1
1029
+ },
1030
+ "sensitivityPriors": {
1031
+ "type": "array",
1032
+ "items": {
1033
+ "type": "number",
1034
+ "exclusiveMinimum": 0,
1035
+ "exclusiveMaximum": 1
1036
+ },
1037
+ "minItems": 0,
1038
+ "maxItems": 64
1039
+ },
1040
+ "likelihoods": {
1041
+ "type": "array",
1042
+ "items": {
1043
+ "type": "object",
1044
+ "additionalProperties": false,
1045
+ "required": [
1046
+ "key",
1047
+ "ratio"
1048
+ ],
1049
+ "properties": {
1050
+ "key": {
1051
+ "type": "string",
1052
+ "minLength": 1,
1053
+ "maxLength": 4096
1054
+ },
1055
+ "ratio": {
1056
+ "type": "number",
1057
+ "exclusiveMinimum": 0,
1058
+ "maximum": 1000000
1059
+ },
1060
+ "ext": {
1061
+ "type": "object",
1062
+ "maxProperties": 0,
1063
+ "description": "Reserved; no extensions admitted in this version."
1064
+ }
1065
+ }
1066
+ },
1067
+ "minItems": 1,
1068
+ "maxItems": 64
1069
+ },
1070
+ "ext": {
1071
+ "type": "object",
1072
+ "maxProperties": 0,
1073
+ "description": "Reserved; no extensions admitted in this version."
1074
+ }
1075
+ }
1076
+ },
1077
+ {
1078
+ "type": "object",
1079
+ "additionalProperties": false,
1080
+ "required": [
1081
+ "kind",
1082
+ "priorFamilies",
1083
+ "assumptions",
1084
+ "alpha",
1085
+ "beta",
1086
+ "observations"
1087
+ ],
1088
+ "properties": {
1089
+ "kind": {
1090
+ "const": "beta-binomial"
1091
+ },
1092
+ "priorFamilies": {
1093
+ "type": "array",
1094
+ "items": {
1095
+ "type": "string",
1096
+ "pattern": "^[a-z][a-z0-9-]{0,63}$"
1097
+ },
1098
+ "minItems": 0,
1099
+ "maxItems": 64
1100
+ },
1101
+ "assumptions": {
1102
+ "type": "string",
1103
+ "minLength": 1,
1104
+ "maxLength": 4096
1105
+ },
1106
+ "alpha": {
1107
+ "type": "number",
1108
+ "exclusiveMinimum": 0,
1109
+ "maximum": 1000000
1110
+ },
1111
+ "beta": {
1112
+ "type": "number",
1113
+ "exclusiveMinimum": 0,
1114
+ "maximum": 1000000
1115
+ },
1116
+ "observations": {
1117
+ "type": "array",
1118
+ "items": {
1119
+ "type": "object",
1120
+ "additionalProperties": false,
1121
+ "required": [
1122
+ "key",
1123
+ "successes",
1124
+ "failures"
1125
+ ],
1126
+ "properties": {
1127
+ "key": {
1128
+ "type": "string",
1129
+ "minLength": 1,
1130
+ "maxLength": 4096
1131
+ },
1132
+ "successes": {
1133
+ "type": "integer",
1134
+ "minimum": 0,
1135
+ "maximum": 1000000
1136
+ },
1137
+ "failures": {
1138
+ "type": "integer",
1139
+ "minimum": 0,
1140
+ "maximum": 1000000
1141
+ },
1142
+ "ext": {
1143
+ "type": "object",
1144
+ "maxProperties": 0,
1145
+ "description": "Reserved; no extensions admitted in this version."
1146
+ }
1147
+ }
1148
+ },
1149
+ "minItems": 1,
1150
+ "maxItems": 64
1151
+ },
1152
+ "ext": {
1153
+ "type": "object",
1154
+ "maxProperties": 0,
1155
+ "description": "Reserved; no extensions admitted in this version."
1156
+ }
1157
+ }
1158
+ }
1159
+ ]
1160
+ },
1161
+ "rationale": {
1162
+ "type": "string",
1163
+ "minLength": 1,
1164
+ "maxLength": 4096
1165
+ },
1166
+ "ext": {
1167
+ "type": "object",
1168
+ "maxProperties": 0,
1169
+ "description": "Reserved; no extensions admitted in this version."
1170
+ }
1171
+ }
1172
+ },
1173
+ "contractVersion": {
1174
+ "type": "string",
1175
+ "pattern": "^1\\.[0-9]+\\.[0-9]+$"
1176
+ },
1177
+ "ext": {
1178
+ "type": "object",
1179
+ "maxProperties": 0,
1180
+ "description": "Reserved; no extensions admitted in this version."
1181
+ }
1182
+ }
1183
+ },
1184
+ "decision": {
1185
+ "type": "object",
1186
+ "additionalProperties": false,
1187
+ "required": [
1188
+ "schema",
1189
+ "kind",
1190
+ "id",
1191
+ "campaign",
1192
+ "at",
1193
+ "by",
1194
+ "data"
1195
+ ],
1196
+ "properties": {
1197
+ "schema": {
1198
+ "const": "atelier-inquiry-record@v1"
1199
+ },
1200
+ "kind": {
1201
+ "const": "decision"
1202
+ },
1203
+ "id": {
1204
+ "type": "string",
1205
+ "pattern": "^[a-z][a-z0-9-]{0,63}$"
1206
+ },
1207
+ "campaign": {
1208
+ "type": "string",
1209
+ "pattern": "^[a-z][a-z0-9-]{0,63}$"
1210
+ },
1211
+ "at": {
1212
+ "type": "string",
1213
+ "format": "date-time"
1214
+ },
1215
+ "by": {
1216
+ "type": "string",
1217
+ "minLength": 1,
1218
+ "maxLength": 4096
1219
+ },
1220
+ "data": {
1221
+ "type": "object",
1222
+ "additionalProperties": false,
1223
+ "required": [
1224
+ "assessment",
1225
+ "disposition",
1226
+ "conclusion",
1227
+ "reason",
1228
+ "reviewBasis",
1229
+ "nextQuestions"
1230
+ ],
1231
+ "properties": {
1232
+ "assessment": {
1233
+ "type": "object",
1234
+ "additionalProperties": false,
1235
+ "required": [
1236
+ "id",
1237
+ "digest"
1238
+ ],
1239
+ "properties": {
1240
+ "id": {
1241
+ "type": "string",
1242
+ "pattern": "^[a-z][a-z0-9-]{0,63}$"
1243
+ },
1244
+ "digest": {
1245
+ "type": "string",
1246
+ "pattern": "^sha256:[a-f0-9]{64}$"
1247
+ },
1248
+ "ext": {
1249
+ "type": "object",
1250
+ "maxProperties": 0,
1251
+ "description": "Reserved; no extensions admitted in this version."
1252
+ }
1253
+ }
1254
+ },
1255
+ "disposition": {
1256
+ "enum": [
1257
+ "accepted",
1258
+ "needs-research",
1259
+ "declined"
1260
+ ]
1261
+ },
1262
+ "conclusion": {
1263
+ "type": "string",
1264
+ "minLength": 1,
1265
+ "maxLength": 4096
1266
+ },
1267
+ "reason": {
1268
+ "type": "string",
1269
+ "minLength": 1,
1270
+ "maxLength": 4096
1271
+ },
1272
+ "reviewBasis": {
1273
+ "type": "string",
1274
+ "minLength": 1,
1275
+ "maxLength": 4096
1276
+ },
1277
+ "nextQuestions": {
1278
+ "type": "array",
1279
+ "items": {
1280
+ "type": "string",
1281
+ "minLength": 1,
1282
+ "maxLength": 4096
1283
+ },
1284
+ "minItems": 0,
1285
+ "maxItems": 64
1286
+ },
1287
+ "ext": {
1288
+ "type": "object",
1289
+ "maxProperties": 0,
1290
+ "description": "Reserved; no extensions admitted in this version."
1291
+ }
1292
+ }
1293
+ },
1294
+ "contractVersion": {
1295
+ "type": "string",
1296
+ "pattern": "^1\\.[0-9]+\\.[0-9]+$"
1297
+ },
1298
+ "ext": {
1299
+ "type": "object",
1300
+ "maxProperties": 0,
1301
+ "description": "Reserved; no extensions admitted in this version."
1302
+ }
1303
+ }
1304
+ },
1305
+ "withdrawal": {
1306
+ "type": "object",
1307
+ "additionalProperties": false,
1308
+ "required": [
1309
+ "schema",
1310
+ "kind",
1311
+ "id",
1312
+ "campaign",
1313
+ "at",
1314
+ "by",
1315
+ "data"
1316
+ ],
1317
+ "properties": {
1318
+ "schema": {
1319
+ "const": "atelier-inquiry-record@v1"
1320
+ },
1321
+ "kind": {
1322
+ "const": "withdrawal"
1323
+ },
1324
+ "id": {
1325
+ "type": "string",
1326
+ "pattern": "^[a-z][a-z0-9-]{0,63}$"
1327
+ },
1328
+ "campaign": {
1329
+ "type": "string",
1330
+ "pattern": "^[a-z][a-z0-9-]{0,63}$"
1331
+ },
1332
+ "at": {
1333
+ "type": "string",
1334
+ "format": "date-time"
1335
+ },
1336
+ "by": {
1337
+ "type": "string",
1338
+ "minLength": 1,
1339
+ "maxLength": 4096
1340
+ },
1341
+ "data": {
1342
+ "type": "object",
1343
+ "additionalProperties": false,
1344
+ "required": [
1345
+ "target",
1346
+ "reason"
1347
+ ],
1348
+ "properties": {
1349
+ "target": {
1350
+ "type": "object",
1351
+ "additionalProperties": false,
1352
+ "required": [
1353
+ "id",
1354
+ "digest"
1355
+ ],
1356
+ "properties": {
1357
+ "id": {
1358
+ "type": "string",
1359
+ "pattern": "^[a-z][a-z0-9-]{0,63}$"
1360
+ },
1361
+ "digest": {
1362
+ "type": "string",
1363
+ "pattern": "^sha256:[a-f0-9]{64}$"
1364
+ },
1365
+ "ext": {
1366
+ "type": "object",
1367
+ "maxProperties": 0,
1368
+ "description": "Reserved; no extensions admitted in this version."
1369
+ }
1370
+ }
1371
+ },
1372
+ "reason": {
1373
+ "type": "string",
1374
+ "minLength": 1,
1375
+ "maxLength": 4096
1376
+ },
1377
+ "ext": {
1378
+ "type": "object",
1379
+ "maxProperties": 0,
1380
+ "description": "Reserved; no extensions admitted in this version."
1381
+ }
1382
+ }
1383
+ },
1384
+ "contractVersion": {
1385
+ "type": "string",
1386
+ "pattern": "^1\\.[0-9]+\\.[0-9]+$"
1387
+ },
1388
+ "ext": {
1389
+ "type": "object",
1390
+ "maxProperties": 0,
1391
+ "description": "Reserved; no extensions admitted in this version."
1392
+ }
1393
+ }
1394
+ },
1395
+ "feedback": {
1396
+ "type": "object",
1397
+ "additionalProperties": false,
1398
+ "required": [
1399
+ "schema",
1400
+ "kind",
1401
+ "id",
1402
+ "campaign",
1403
+ "at",
1404
+ "by",
1405
+ "data"
1406
+ ],
1407
+ "properties": {
1408
+ "schema": {
1409
+ "const": "atelier-inquiry-record@v1"
1410
+ },
1411
+ "kind": {
1412
+ "const": "feedback"
1413
+ },
1414
+ "id": {
1415
+ "type": "string",
1416
+ "pattern": "^[a-z][a-z0-9-]{0,63}$"
1417
+ },
1418
+ "campaign": {
1419
+ "type": "string",
1420
+ "pattern": "^[a-z][a-z0-9-]{0,63}$"
1421
+ },
1422
+ "at": {
1423
+ "type": "string",
1424
+ "format": "date-time"
1425
+ },
1426
+ "by": {
1427
+ "type": "string",
1428
+ "minLength": 1,
1429
+ "maxLength": 4096
1430
+ },
1431
+ "data": {
1432
+ "type": "object",
1433
+ "additionalProperties": false,
1434
+ "required": [
1435
+ "request",
1436
+ "outcome",
1437
+ "cause",
1438
+ "evidenceDigest",
1439
+ "rationale"
1440
+ ],
1441
+ "properties": {
1442
+ "request": {
1443
+ "type": "object",
1444
+ "additionalProperties": false,
1445
+ "required": [
1446
+ "id",
1447
+ "digest"
1448
+ ],
1449
+ "properties": {
1450
+ "id": {
1451
+ "type": "string",
1452
+ "pattern": "^[a-z][a-z0-9-]{0,63}$"
1453
+ },
1454
+ "digest": {
1455
+ "type": "string",
1456
+ "pattern": "^sha256:[a-f0-9]{64}$"
1457
+ },
1458
+ "ext": {
1459
+ "type": "object",
1460
+ "maxProperties": 0,
1461
+ "description": "Reserved; no extensions admitted in this version."
1462
+ }
1463
+ }
1464
+ },
1465
+ "outcome": {
1466
+ "enum": [
1467
+ "passed",
1468
+ "failed",
1469
+ "unknown"
1470
+ ]
1471
+ },
1472
+ "cause": {
1473
+ "enum": [
1474
+ "skill",
1475
+ "host",
1476
+ "tool",
1477
+ "configuration",
1478
+ "context",
1479
+ "provider",
1480
+ "unknown"
1481
+ ]
1482
+ },
1483
+ "evidenceDigest": {
1484
+ "type": "string",
1485
+ "pattern": "^sha256:[a-f0-9]{64}$"
1486
+ },
1487
+ "rationale": {
1488
+ "type": "string",
1489
+ "minLength": 1,
1490
+ "maxLength": 4096
1491
+ },
1492
+ "ext": {
1493
+ "type": "object",
1494
+ "maxProperties": 0,
1495
+ "description": "Reserved; no extensions admitted in this version."
1496
+ }
1497
+ }
1498
+ },
1499
+ "contractVersion": {
1500
+ "type": "string",
1501
+ "pattern": "^1\\.[0-9]+\\.[0-9]+$"
1502
+ },
1503
+ "ext": {
1504
+ "type": "object",
1505
+ "maxProperties": 0,
1506
+ "description": "Reserved; no extensions admitted in this version."
1507
+ }
1508
+ }
1509
+ },
1510
+ "legacy-assessment": {
1511
+ "type": "object",
1512
+ "additionalProperties": false,
1513
+ "required": [
1514
+ "schema",
1515
+ "kind",
1516
+ "id",
1517
+ "campaign",
1518
+ "at",
1519
+ "by",
1520
+ "data"
1521
+ ],
1522
+ "properties": {
1523
+ "schema": {
1524
+ "const": "atelier-inquiry-record@v1"
1525
+ },
1526
+ "kind": {
1527
+ "const": "legacy-assessment"
1528
+ },
1529
+ "id": {
1530
+ "type": "string",
1531
+ "pattern": "^[a-z][a-z0-9-]{0,63}$"
1532
+ },
1533
+ "campaign": {
1534
+ "type": "string",
1535
+ "pattern": "^[a-z][a-z0-9-]{0,63}$"
1536
+ },
1537
+ "at": {
1538
+ "type": "string",
1539
+ "format": "date-time"
1540
+ },
1541
+ "by": {
1542
+ "type": "string",
1543
+ "minLength": 1,
1544
+ "maxLength": 4096
1545
+ },
1546
+ "data": {
1547
+ "type": "object",
1548
+ "additionalProperties": false,
1549
+ "required": [
1550
+ "hypothesis",
1551
+ "value",
1552
+ "sourceDigest",
1553
+ "method",
1554
+ "limitations"
1555
+ ],
1556
+ "properties": {
1557
+ "hypothesis": {
1558
+ "type": "object",
1559
+ "additionalProperties": false,
1560
+ "required": [
1561
+ "id",
1562
+ "digest"
1563
+ ],
1564
+ "properties": {
1565
+ "id": {
1566
+ "type": "string",
1567
+ "pattern": "^[a-z][a-z0-9-]{0,63}$"
1568
+ },
1569
+ "digest": {
1570
+ "type": "string",
1571
+ "pattern": "^sha256:[a-f0-9]{64}$"
1572
+ },
1573
+ "ext": {
1574
+ "type": "object",
1575
+ "maxProperties": 0,
1576
+ "description": "Reserved; no extensions admitted in this version."
1577
+ }
1578
+ }
1579
+ },
1580
+ "value": {
1581
+ "type": "number",
1582
+ "minimum": 0,
1583
+ "maximum": 1
1584
+ },
1585
+ "sourceDigest": {
1586
+ "type": "string",
1587
+ "pattern": "^sha256:[a-f0-9]{64}$"
1588
+ },
1589
+ "method": {
1590
+ "type": "string",
1591
+ "minLength": 1,
1592
+ "maxLength": 4096
1593
+ },
1594
+ "limitations": {
1595
+ "type": "string",
1596
+ "minLength": 1,
1597
+ "maxLength": 4096
1598
+ },
1599
+ "ext": {
1600
+ "type": "object",
1601
+ "maxProperties": 0,
1602
+ "description": "Reserved; no extensions admitted in this version."
1603
+ }
1604
+ }
1605
+ },
1606
+ "contractVersion": {
1607
+ "type": "string",
1608
+ "pattern": "^1\\.[0-9]+\\.[0-9]+$"
1609
+ },
1610
+ "ext": {
1611
+ "type": "object",
1612
+ "maxProperties": 0,
1613
+ "description": "Reserved; no extensions admitted in this version."
1614
+ }
1615
+ }
1616
+ },
1617
+ "record": {
1618
+ "oneOf": [
1619
+ {
1620
+ "$ref": "#/$defs/campaign"
1621
+ },
1622
+ {
1623
+ "$ref": "#/$defs/hypothesis"
1624
+ },
1625
+ {
1626
+ "$ref": "#/$defs/request"
1627
+ },
1628
+ {
1629
+ "$ref": "#/$defs/source"
1630
+ },
1631
+ {
1632
+ "$ref": "#/$defs/bundle"
1633
+ },
1634
+ {
1635
+ "$ref": "#/$defs/assessment"
1636
+ },
1637
+ {
1638
+ "$ref": "#/$defs/decision"
1639
+ },
1640
+ {
1641
+ "$ref": "#/$defs/withdrawal"
1642
+ },
1643
+ {
1644
+ "$ref": "#/$defs/feedback"
1645
+ },
1646
+ {
1647
+ "$ref": "#/$defs/legacy-assessment"
1648
+ }
1649
+ ]
1650
+ },
1651
+ "ledger": {
1652
+ "type": "object",
1653
+ "additionalProperties": false,
1654
+ "required": [
1655
+ "schema",
1656
+ "records",
1657
+ "head"
1658
+ ],
1659
+ "properties": {
1660
+ "schema": {
1661
+ "const": "atelier-inquiry-ledger@v1"
1662
+ },
1663
+ "records": {
1664
+ "type": "array",
1665
+ "minItems": 1,
1666
+ "maxItems": 256,
1667
+ "items": {
1668
+ "$ref": "#/$defs/record"
1669
+ }
1670
+ },
1671
+ "head": {
1672
+ "type": "string",
1673
+ "pattern": "^sha256:[a-f0-9]{64}$"
1674
+ },
1675
+ "contractVersion": {
1676
+ "type": "string",
1677
+ "pattern": "^1\\.[0-9]+\\.[0-9]+$"
1678
+ },
1679
+ "ext": {
1680
+ "type": "object",
1681
+ "maxProperties": 0,
1682
+ "description": "Reserved; no extensions admitted in this version."
1683
+ }
1684
+ }
1685
+ },
1686
+ "handoff": {
1687
+ "type": "object",
1688
+ "additionalProperties": false,
1689
+ "properties": {
1690
+ "schema": {
1691
+ "const": "atelier-research-handoff@v1"
1692
+ },
1693
+ "request": {
1694
+ "$ref": "#/$defs/request"
1695
+ },
1696
+ "requestDigest": {
1697
+ "type": "string",
1698
+ "pattern": "^sha256:[a-f0-9]{64}$"
1699
+ },
1700
+ "campaign": {
1701
+ "$ref": "#/$defs/campaign"
1702
+ },
1703
+ "hypothesis": {
1704
+ "$ref": "#/$defs/hypothesis"
1705
+ },
1706
+ "execution": {
1707
+ "const": "manual-or-separately-authorized-adapter"
1708
+ },
1709
+ "authority": {
1710
+ "const": "none"
1711
+ },
1712
+ "prompt": {
1713
+ "type": "string",
1714
+ "minLength": 1,
1715
+ "maxLength": 1048576
1716
+ },
1717
+ "contractVersion": {
1718
+ "type": "string",
1719
+ "pattern": "^1\\.[0-9]+\\.[0-9]+$"
1720
+ },
1721
+ "ext": {
1722
+ "type": "object",
1723
+ "maxProperties": 0,
1724
+ "description": "Reserved; no extensions admitted in this version."
1725
+ }
1726
+ },
1727
+ "required": [
1728
+ "schema",
1729
+ "request",
1730
+ "requestDigest",
1731
+ "campaign",
1732
+ "hypothesis",
1733
+ "execution",
1734
+ "authority",
1735
+ "prompt"
1736
+ ]
1737
+ }
1738
+ },
1739
+ "$comment": "contract revision 1.0.0 (initial inquiry contract)",
1740
+ "oneOf": [
1741
+ {
1742
+ "$ref": "#/$defs/campaign"
1743
+ },
1744
+ {
1745
+ "$ref": "#/$defs/hypothesis"
1746
+ },
1747
+ {
1748
+ "$ref": "#/$defs/request"
1749
+ },
1750
+ {
1751
+ "$ref": "#/$defs/source"
1752
+ },
1753
+ {
1754
+ "$ref": "#/$defs/bundle"
1755
+ },
1756
+ {
1757
+ "$ref": "#/$defs/assessment"
1758
+ },
1759
+ {
1760
+ "$ref": "#/$defs/decision"
1761
+ },
1762
+ {
1763
+ "$ref": "#/$defs/withdrawal"
1764
+ },
1765
+ {
1766
+ "$ref": "#/$defs/feedback"
1767
+ },
1768
+ {
1769
+ "$ref": "#/$defs/legacy-assessment"
1770
+ }
1771
+ ]
1772
+ }