@wildo-ai/saas-specifications 1.1.3 → 1.1.5

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 (950) hide show
  1. package/dist/assurance/external-framework-mapping.json +1228 -0
  2. package/dist/esm/_core/application-maturity/application-maturity-validation.d.ts +34 -0
  3. package/dist/esm/_core/application-maturity/application-maturity-validation.d.ts.map +1 -0
  4. package/dist/esm/_core/application-maturity/application-maturity-validation.js +66 -0
  5. package/dist/esm/_core/application-maturity/application-maturity-validation.js.map +1 -0
  6. package/dist/esm/_core/application-maturity/application-maturity.family-aspects.d.ts +3 -0
  7. package/dist/esm/_core/application-maturity/application-maturity.family-aspects.d.ts.map +1 -0
  8. package/dist/esm/_core/application-maturity/application-maturity.family-aspects.js +48 -0
  9. package/dist/esm/_core/application-maturity/application-maturity.family-aspects.js.map +1 -0
  10. package/dist/esm/_core/application-maturity/application-maturity.schemas.d.ts +201 -0
  11. package/dist/esm/_core/application-maturity/application-maturity.schemas.d.ts.map +1 -0
  12. package/dist/esm/_core/application-maturity/application-maturity.schemas.js +306 -0
  13. package/dist/esm/_core/application-maturity/application-maturity.schemas.js.map +1 -0
  14. package/dist/esm/_core/application-specification-family-identity.schemas.d.ts +304 -0
  15. package/dist/esm/_core/application-specification-family-identity.schemas.d.ts.map +1 -0
  16. package/dist/esm/_core/application-specification-family-identity.schemas.js +314 -0
  17. package/dist/esm/_core/application-specification-family-identity.schemas.js.map +1 -0
  18. package/dist/esm/_core/assertions/assertion-authored-metadata.schemas.d.ts +2 -1
  19. package/dist/esm/_core/assertions/assertion-authored-metadata.schemas.d.ts.map +1 -1
  20. package/dist/esm/_core/assertions/assertion-authored-metadata.schemas.js +4 -1
  21. package/dist/esm/_core/assertions/assertion-authored-metadata.schemas.js.map +1 -1
  22. package/dist/esm/_core/assertions/assertion-behaviors.schemas.d.ts +4 -4
  23. package/dist/esm/_core/assertions/assertion-specification.schemas.d.ts +5 -4
  24. package/dist/esm/_core/assertions/assertion-specification.schemas.d.ts.map +1 -1
  25. package/dist/esm/_core/assertions/assertion-specification.schemas.js +4 -1
  26. package/dist/esm/_core/assertions/assertion-specification.schemas.js.map +1 -1
  27. package/dist/esm/_core/brand/brand-asset.schemas.d.ts +5 -4
  28. package/dist/esm/_core/brand/brand-asset.schemas.d.ts.map +1 -1
  29. package/dist/esm/_core/brand/brand-asset.schemas.js +7 -4
  30. package/dist/esm/_core/brand/brand-asset.schemas.js.map +1 -1
  31. package/dist/esm/_core/brand/brand-audience.schemas.d.ts +31 -0
  32. package/dist/esm/_core/brand/brand-audience.schemas.d.ts.map +1 -0
  33. package/dist/esm/_core/brand/brand-audience.schemas.js +29 -0
  34. package/dist/esm/_core/brand/brand-audience.schemas.js.map +1 -0
  35. package/dist/esm/_core/brand/brand-authored-metadata.schemas.d.ts +3 -2
  36. package/dist/esm/_core/brand/brand-authored-metadata.schemas.d.ts.map +1 -1
  37. package/dist/esm/_core/brand/brand-authored-metadata.schemas.js +5 -2
  38. package/dist/esm/_core/brand/brand-authored-metadata.schemas.js.map +1 -1
  39. package/dist/esm/_core/brand/brand-generation.schemas.d.ts +4 -4
  40. package/dist/esm/_core/brand/brand-logo-direction.schemas.d.ts +12 -9
  41. package/dist/esm/_core/brand/brand-logo-direction.schemas.d.ts.map +1 -1
  42. package/dist/esm/_core/brand/brand-logo-direction.schemas.js +12 -7
  43. package/dist/esm/_core/brand/brand-logo-direction.schemas.js.map +1 -1
  44. package/dist/esm/_core/brand/brand-name.schemas.d.ts +2 -2
  45. package/dist/esm/_core/brand/brand-snapshot-validation.d.ts.map +1 -1
  46. package/dist/esm/_core/brand/brand-snapshot-validation.js +1 -8
  47. package/dist/esm/_core/brand/brand-snapshot-validation.js.map +1 -1
  48. package/dist/esm/_core/brand/brand-snapshot.schemas.d.ts +23 -12
  49. package/dist/esm/_core/brand/brand-snapshot.schemas.d.ts.map +1 -1
  50. package/dist/esm/_core/brand/brand-snapshot.schemas.js +7 -0
  51. package/dist/esm/_core/brand/brand-snapshot.schemas.js.map +1 -1
  52. package/dist/esm/_core/brand/brand-visual-tone.schemas.d.ts +2 -2
  53. package/dist/esm/_core/brand/brand.family-aspects.d.ts.map +1 -1
  54. package/dist/esm/_core/brand/brand.family-aspects.js +12 -1
  55. package/dist/esm/_core/brand/brand.family-aspects.js.map +1 -1
  56. package/dist/esm/_core/build-plan/build-plan-task-graph-generation.schemas.d.ts +252 -2
  57. package/dist/esm/_core/build-plan/build-plan-task-graph-generation.schemas.d.ts.map +1 -1
  58. package/dist/esm/_core/build-plan/build-plan-task-graph-generation.schemas.js +19 -1
  59. package/dist/esm/_core/build-plan/build-plan-task-graph-generation.schemas.js.map +1 -1
  60. package/dist/esm/_core/build-plan/build-plan-task-graph-validation.d.ts +121 -1
  61. package/dist/esm/_core/build-plan/build-plan-task-graph-validation.d.ts.map +1 -1
  62. package/dist/esm/_core/build-plan/build-plan-task-graph-validation.js +215 -2
  63. package/dist/esm/_core/build-plan/build-plan-task-graph-validation.js.map +1 -1
  64. package/dist/esm/_core/build-plan/build-plan-task-graph.schemas.d.ts +703 -14
  65. package/dist/esm/_core/build-plan/build-plan-task-graph.schemas.d.ts.map +1 -1
  66. package/dist/esm/_core/build-plan/build-plan-task-graph.schemas.js +536 -7
  67. package/dist/esm/_core/build-plan/build-plan-task-graph.schemas.js.map +1 -1
  68. package/dist/esm/_core/build-plan/build-plan.family-aspects.d.ts.map +1 -1
  69. package/dist/esm/_core/build-plan/build-plan.family-aspects.js +82 -2
  70. package/dist/esm/_core/build-plan/build-plan.family-aspects.js.map +1 -1
  71. package/dist/esm/_core/business-model-lite/business-model-authored-metadata.schemas.d.ts +3 -2
  72. package/dist/esm/_core/business-model-lite/business-model-authored-metadata.schemas.d.ts.map +1 -1
  73. package/dist/esm/_core/business-model-lite/business-model-authored-metadata.schemas.js +5 -2
  74. package/dist/esm/_core/business-model-lite/business-model-authored-metadata.schemas.js.map +1 -1
  75. package/dist/esm/_core/business-model-lite/business-model-lite-snapshot.schemas.d.ts +3 -3
  76. package/dist/esm/_core/business-model-lite/business-model.family-aspects.js +1 -1
  77. package/dist/esm/_core/business-model-lite/business-model.family-aspects.js.map +1 -1
  78. package/dist/esm/_core/business-model-lite/pricing-plan.schemas.d.ts +4 -3
  79. package/dist/esm/_core/business-model-lite/pricing-plan.schemas.d.ts.map +1 -1
  80. package/dist/esm/_core/business-model-lite/pricing-plan.schemas.js +4 -1
  81. package/dist/esm/_core/business-model-lite/pricing-plan.schemas.js.map +1 -1
  82. package/dist/esm/_core/business-semantics.specifications.schemas.d.ts +36 -0
  83. package/dist/esm/_core/business-semantics.specifications.schemas.d.ts.map +1 -1
  84. package/dist/esm/_core/business-semantics.specifications.schemas.js +52 -1
  85. package/dist/esm/_core/business-semantics.specifications.schemas.js.map +1 -1
  86. package/dist/esm/_core/capability-composition/capability-composition-validation.d.ts +22 -0
  87. package/dist/esm/_core/capability-composition/capability-composition-validation.d.ts.map +1 -0
  88. package/dist/esm/_core/capability-composition/capability-composition-validation.js +89 -0
  89. package/dist/esm/_core/capability-composition/capability-composition-validation.js.map +1 -0
  90. package/dist/esm/_core/capability-composition/capability-composition.family-aspects.d.ts +3 -0
  91. package/dist/esm/_core/capability-composition/capability-composition.family-aspects.d.ts.map +1 -0
  92. package/dist/esm/_core/capability-composition/capability-composition.family-aspects.js +26 -0
  93. package/dist/esm/_core/capability-composition/capability-composition.family-aspects.js.map +1 -0
  94. package/dist/esm/_core/capability-composition/capability-composition.schemas.d.ts +141 -0
  95. package/dist/esm/_core/capability-composition/capability-composition.schemas.d.ts.map +1 -0
  96. package/dist/esm/_core/capability-composition/capability-composition.schemas.js +147 -0
  97. package/dist/esm/_core/capability-composition/capability-composition.schemas.js.map +1 -0
  98. package/dist/esm/_core/compliance-documents/compliance-document-candidate-generation.schemas.d.ts +160 -0
  99. package/dist/esm/_core/compliance-documents/compliance-document-candidate-generation.schemas.d.ts.map +1 -1
  100. package/dist/esm/_core/compliance-documents/compliance-document-candidate-generation.schemas.js +124 -4
  101. package/dist/esm/_core/compliance-documents/compliance-document-candidate-generation.schemas.js.map +1 -1
  102. package/dist/esm/_core/compliance-documents/compliance-document-candidate-set.schemas.d.ts +95 -0
  103. package/dist/esm/_core/compliance-documents/compliance-document-candidate-set.schemas.d.ts.map +1 -0
  104. package/dist/esm/_core/compliance-documents/compliance-document-candidate-set.schemas.js +85 -0
  105. package/dist/esm/_core/compliance-documents/compliance-document-candidate-set.schemas.js.map +1 -0
  106. package/dist/esm/_core/compliance-documents/compliance-document-candidate.schemas.d.ts +743 -14
  107. package/dist/esm/_core/compliance-documents/compliance-document-candidate.schemas.d.ts.map +1 -1
  108. package/dist/esm/_core/compliance-documents/compliance-document-candidate.schemas.js +699 -22
  109. package/dist/esm/_core/compliance-documents/compliance-document-candidate.schemas.js.map +1 -1
  110. package/dist/esm/_core/compliance-documents/compliance-documents.family-aspects.d.ts +98 -6
  111. package/dist/esm/_core/compliance-documents/compliance-documents.family-aspects.d.ts.map +1 -1
  112. package/dist/esm/_core/compliance-documents/compliance-documents.family-aspects.js +197 -8
  113. package/dist/esm/_core/compliance-documents/compliance-documents.family-aspects.js.map +1 -1
  114. package/dist/esm/_core/compliance-documents/computed-document-facts.schemas.d.ts +64 -0
  115. package/dist/esm/_core/compliance-documents/computed-document-facts.schemas.d.ts.map +1 -0
  116. package/dist/esm/_core/compliance-documents/computed-document-facts.schemas.js +283 -0
  117. package/dist/esm/_core/compliance-documents/computed-document-facts.schemas.js.map +1 -0
  118. package/dist/esm/_core/compliance-documents/document-fact-specification-generation.schemas.d.ts.map +1 -1
  119. package/dist/esm/_core/compliance-documents/document-fact-specification-generation.schemas.js +30 -1
  120. package/dist/esm/_core/compliance-documents/document-fact-specification-generation.schemas.js.map +1 -1
  121. package/dist/esm/_core/compliance-documents/processor-register.family-aspects.js +1 -1
  122. package/dist/esm/_core/compliance-documents/processor-register.family-aspects.js.map +1 -1
  123. package/dist/esm/_core/compliance-documents/processor-register.schemas.d.ts +220 -4
  124. package/dist/esm/_core/compliance-documents/processor-register.schemas.d.ts.map +1 -1
  125. package/dist/esm/_core/compliance-documents/processor-register.schemas.js +149 -2
  126. package/dist/esm/_core/compliance-documents/processor-register.schemas.js.map +1 -1
  127. package/dist/esm/_core/compliance-documents/required-document-set.schemas.d.ts +70 -3
  128. package/dist/esm/_core/compliance-documents/required-document-set.schemas.d.ts.map +1 -1
  129. package/dist/esm/_core/compliance-documents/required-document-set.schemas.js +75 -3
  130. package/dist/esm/_core/compliance-documents/required-document-set.schemas.js.map +1 -1
  131. package/dist/esm/_core/composite-view-specification.schemas.d.ts +14 -0
  132. package/dist/esm/_core/composite-view-specification.schemas.d.ts.map +1 -1
  133. package/dist/esm/_core/composite-view-specification.schemas.js +13 -0
  134. package/dist/esm/_core/composite-view-specification.schemas.js.map +1 -1
  135. package/dist/esm/_core/cross-registry-assertions.d.ts +6 -4
  136. package/dist/esm/_core/cross-registry-assertions.d.ts.map +1 -1
  137. package/dist/esm/_core/cross-registry-assertions.js +7 -5
  138. package/dist/esm/_core/cross-registry-assertions.js.map +1 -1
  139. package/dist/esm/_core/domain-plan/domain-plan-output-set.schemas.d.ts +5 -4
  140. package/dist/esm/_core/domain-plan/domain-plan-output-set.schemas.d.ts.map +1 -1
  141. package/dist/esm/_core/domain-plan/domain-plan-output-set.schemas.js +5 -2
  142. package/dist/esm/_core/domain-plan/domain-plan-output-set.schemas.js.map +1 -1
  143. package/dist/esm/_core/domain-plan/domain-plan.family-aspects.d.ts +30 -0
  144. package/dist/esm/_core/domain-plan/domain-plan.family-aspects.d.ts.map +1 -1
  145. package/dist/esm/_core/domain-plan/domain-plan.family-aspects.js +99 -6
  146. package/dist/esm/_core/domain-plan/domain-plan.family-aspects.js.map +1 -1
  147. package/dist/esm/_core/experience-plan/experience-plan-generation.schemas.d.ts +58 -0
  148. package/dist/esm/_core/experience-plan/experience-plan-generation.schemas.d.ts.map +1 -0
  149. package/dist/esm/_core/experience-plan/experience-plan-generation.schemas.js +71 -0
  150. package/dist/esm/_core/experience-plan/experience-plan-generation.schemas.js.map +1 -0
  151. package/dist/esm/_core/experience-plan/experience-plan-validation.d.ts +37 -0
  152. package/dist/esm/_core/experience-plan/experience-plan-validation.d.ts.map +1 -0
  153. package/dist/esm/_core/experience-plan/experience-plan-validation.js +83 -0
  154. package/dist/esm/_core/experience-plan/experience-plan-validation.js.map +1 -0
  155. package/dist/esm/_core/experience-plan/experience-plan.family-aspects.d.ts +3 -0
  156. package/dist/esm/_core/experience-plan/experience-plan.family-aspects.d.ts.map +1 -0
  157. package/dist/esm/_core/experience-plan/experience-plan.family-aspects.js +78 -0
  158. package/dist/esm/_core/experience-plan/experience-plan.family-aspects.js.map +1 -0
  159. package/dist/esm/_core/experience-plan/experience-plan.schemas.d.ts +285 -0
  160. package/dist/esm/_core/experience-plan/experience-plan.schemas.d.ts.map +1 -0
  161. package/dist/esm/_core/experience-plan/experience-plan.schemas.js +293 -0
  162. package/dist/esm/_core/experience-plan/experience-plan.schemas.js.map +1 -0
  163. package/dist/esm/_core/expert-personas/expert-persona-authored-metadata.schemas.d.ts +3 -2
  164. package/dist/esm/_core/expert-personas/expert-persona-authored-metadata.schemas.d.ts.map +1 -1
  165. package/dist/esm/_core/expert-personas/expert-persona-authored-metadata.schemas.js +5 -2
  166. package/dist/esm/_core/expert-personas/expert-persona-authored-metadata.schemas.js.map +1 -1
  167. package/dist/esm/_core/expert-personas/expert-persona-charter.schemas.d.ts +9 -2
  168. package/dist/esm/_core/expert-personas/expert-persona-charter.schemas.d.ts.map +1 -1
  169. package/dist/esm/_core/expert-personas/expert-persona-charter.schemas.js +7 -0
  170. package/dist/esm/_core/expert-personas/expert-persona-charter.schemas.js.map +1 -1
  171. package/dist/esm/_core/expert-personas/expert-personas.family-aspects.d.ts +18 -0
  172. package/dist/esm/_core/expert-personas/expert-personas.family-aspects.d.ts.map +1 -0
  173. package/dist/esm/_core/expert-personas/expert-personas.family-aspects.js +21 -0
  174. package/dist/esm/_core/expert-personas/expert-personas.family-aspects.js.map +1 -0
  175. package/dist/esm/_core/expert-personas/expert-role-template.schemas.d.ts +19 -0
  176. package/dist/esm/_core/expert-personas/expert-role-template.schemas.d.ts.map +1 -1
  177. package/dist/esm/_core/expert-personas/expert-role-template.schemas.js +23 -0
  178. package/dist/esm/_core/expert-personas/expert-role-template.schemas.js.map +1 -1
  179. package/dist/esm/_core/family-aspects.registry.d.ts.map +1 -1
  180. package/dist/esm/_core/family-aspects.registry.js +22 -1
  181. package/dist/esm/_core/family-aspects.registry.js.map +1 -1
  182. package/dist/esm/_core/family-aspects.schemas.d.ts +64 -1
  183. package/dist/esm/_core/family-aspects.schemas.d.ts.map +1 -1
  184. package/dist/esm/_core/family-aspects.schemas.js.map +1 -1
  185. package/dist/esm/_core/feature-drafts/capability-map-output-set-generation.schemas.d.ts +27 -27
  186. package/dist/esm/_core/feature-drafts/capability-map-output-set.schemas.d.ts +59 -59
  187. package/dist/esm/_core/feature-drafts/feature-drafts.family-aspects.js +1 -1
  188. package/dist/esm/_core/feature-drafts/feature-drafts.family-aspects.js.map +1 -1
  189. package/dist/esm/_core/feature-drafts/feature-specification-drafts.schemas.d.ts.map +1 -1
  190. package/dist/esm/_core/feature-drafts/feature-specification-drafts.schemas.js +6 -1
  191. package/dist/esm/_core/feature-drafts/feature-specification-drafts.schemas.js.map +1 -1
  192. package/dist/esm/_core/guidance-flow-specification.schemas.d.ts +11 -15
  193. package/dist/esm/_core/guidance-flow-specification.schemas.d.ts.map +1 -1
  194. package/dist/esm/_core/guidance-flow-specification.schemas.js +12 -11
  195. package/dist/esm/_core/guidance-flow-specification.schemas.js.map +1 -1
  196. package/dist/esm/_core/index.d.ts +16 -0
  197. package/dist/esm/_core/index.d.ts.map +1 -1
  198. package/dist/esm/_core/index.js +16 -0
  199. package/dist/esm/_core/index.js.map +1 -1
  200. package/dist/esm/_core/integration-plan/integration-plan-generation.schemas.d.ts +52 -0
  201. package/dist/esm/_core/integration-plan/integration-plan-generation.schemas.d.ts.map +1 -0
  202. package/dist/esm/_core/integration-plan/integration-plan-generation.schemas.js +50 -0
  203. package/dist/esm/_core/integration-plan/integration-plan-generation.schemas.js.map +1 -0
  204. package/dist/esm/_core/integration-plan/integration-plan-validation.d.ts +27 -0
  205. package/dist/esm/_core/integration-plan/integration-plan-validation.d.ts.map +1 -0
  206. package/dist/esm/_core/integration-plan/integration-plan-validation.js +63 -0
  207. package/dist/esm/_core/integration-plan/integration-plan-validation.js.map +1 -0
  208. package/dist/esm/_core/integration-plan/integration-plan.family-aspects.d.ts +3 -0
  209. package/dist/esm/_core/integration-plan/integration-plan.family-aspects.d.ts.map +1 -0
  210. package/dist/esm/_core/integration-plan/integration-plan.family-aspects.js +52 -0
  211. package/dist/esm/_core/integration-plan/integration-plan.family-aspects.js.map +1 -0
  212. package/dist/esm/_core/integration-plan/integration-plan.schemas.d.ts +168 -0
  213. package/dist/esm/_core/integration-plan/integration-plan.schemas.d.ts.map +1 -0
  214. package/dist/esm/_core/integration-plan/integration-plan.schemas.js +170 -0
  215. package/dist/esm/_core/integration-plan/integration-plan.schemas.js.map +1 -0
  216. package/dist/esm/_core/market/feature-benefit.schemas.d.ts +6 -5
  217. package/dist/esm/_core/market/feature-benefit.schemas.d.ts.map +1 -1
  218. package/dist/esm/_core/market/feature-benefit.schemas.js +5 -2
  219. package/dist/esm/_core/market/feature-benefit.schemas.js.map +1 -1
  220. package/dist/esm/_core/market/market-alternative.schemas.d.ts +4 -3
  221. package/dist/esm/_core/market/market-alternative.schemas.d.ts.map +1 -1
  222. package/dist/esm/_core/market/market-alternative.schemas.js +4 -1
  223. package/dist/esm/_core/market/market-alternative.schemas.js.map +1 -1
  224. package/dist/esm/_core/market/market-authored-metadata.schemas.d.ts +11 -9
  225. package/dist/esm/_core/market/market-authored-metadata.schemas.d.ts.map +1 -1
  226. package/dist/esm/_core/market/market-authored-metadata.schemas.js +13 -10
  227. package/dist/esm/_core/market/market-authored-metadata.schemas.js.map +1 -1
  228. package/dist/esm/_core/market/market-buying-journey.schemas.d.ts +5 -4
  229. package/dist/esm/_core/market/market-buying-journey.schemas.d.ts.map +1 -1
  230. package/dist/esm/_core/market/market-buying-journey.schemas.js +4 -1
  231. package/dist/esm/_core/market/market-buying-journey.schemas.js.map +1 -1
  232. package/dist/esm/_core/market/market-category.schemas.d.ts +2 -2
  233. package/dist/esm/_core/market/market-channel.schemas.d.ts +6 -5
  234. package/dist/esm/_core/market/market-channel.schemas.d.ts.map +1 -1
  235. package/dist/esm/_core/market/market-channel.schemas.js +6 -3
  236. package/dist/esm/_core/market/market-channel.schemas.js.map +1 -1
  237. package/dist/esm/_core/market/market-gain.schemas.d.ts +4 -3
  238. package/dist/esm/_core/market/market-gain.schemas.d.ts.map +1 -1
  239. package/dist/esm/_core/market/market-gain.schemas.js +4 -1
  240. package/dist/esm/_core/market/market-gain.schemas.js.map +1 -1
  241. package/dist/esm/_core/market/market-icp.schemas.d.ts +12 -11
  242. package/dist/esm/_core/market/market-icp.schemas.d.ts.map +1 -1
  243. package/dist/esm/_core/market/market-icp.schemas.js +12 -9
  244. package/dist/esm/_core/market/market-icp.schemas.js.map +1 -1
  245. package/dist/esm/_core/market/market-job.schemas.d.ts +4 -3
  246. package/dist/esm/_core/market/market-job.schemas.d.ts.map +1 -1
  247. package/dist/esm/_core/market/market-job.schemas.js +4 -1
  248. package/dist/esm/_core/market/market-job.schemas.js.map +1 -1
  249. package/dist/esm/_core/market/market-message-template.schemas.d.ts +5 -4
  250. package/dist/esm/_core/market/market-message-template.schemas.d.ts.map +1 -1
  251. package/dist/esm/_core/market/market-message-template.schemas.js +5 -2
  252. package/dist/esm/_core/market/market-message-template.schemas.js.map +1 -1
  253. package/dist/esm/_core/market/market-objection.schemas.d.ts +4 -3
  254. package/dist/esm/_core/market/market-objection.schemas.d.ts.map +1 -1
  255. package/dist/esm/_core/market/market-objection.schemas.js +4 -1
  256. package/dist/esm/_core/market/market-objection.schemas.js.map +1 -1
  257. package/dist/esm/_core/market/market-pain.schemas.d.ts +4 -3
  258. package/dist/esm/_core/market/market-pain.schemas.d.ts.map +1 -1
  259. package/dist/esm/_core/market/market-pain.schemas.js +4 -1
  260. package/dist/esm/_core/market/market-pain.schemas.js.map +1 -1
  261. package/dist/esm/_core/market/market-persona.schemas.d.ts +5 -4
  262. package/dist/esm/_core/market/market-persona.schemas.d.ts.map +1 -1
  263. package/dist/esm/_core/market/market-persona.schemas.js +5 -2
  264. package/dist/esm/_core/market/market-persona.schemas.js.map +1 -1
  265. package/dist/esm/_core/market/market-positioning.schemas.d.ts +2 -2
  266. package/dist/esm/_core/market/market-proof.schemas.d.ts +4 -3
  267. package/dist/esm/_core/market/market-proof.schemas.d.ts.map +1 -1
  268. package/dist/esm/_core/market/market-proof.schemas.js +4 -1
  269. package/dist/esm/_core/market/market-proof.schemas.js.map +1 -1
  270. package/dist/esm/_core/market/market-snapshot-generation.schemas.d.ts +54 -54
  271. package/dist/esm/_core/market/market-snapshot.schemas.d.ts +59 -59
  272. package/dist/esm/_core/market/market-tone-of-voice.schemas.d.ts +4 -3
  273. package/dist/esm/_core/market/market-tone-of-voice.schemas.d.ts.map +1 -1
  274. package/dist/esm/_core/market/market-tone-of-voice.schemas.js +4 -1
  275. package/dist/esm/_core/market/market-tone-of-voice.schemas.js.map +1 -1
  276. package/dist/esm/_core/market/market-trigger.schemas.d.ts +4 -3
  277. package/dist/esm/_core/market/market-trigger.schemas.d.ts.map +1 -1
  278. package/dist/esm/_core/market/market-trigger.schemas.js +4 -1
  279. package/dist/esm/_core/market/market-trigger.schemas.js.map +1 -1
  280. package/dist/esm/_core/market/market.family-aspects.d.ts.map +1 -1
  281. package/dist/esm/_core/market/market.family-aspects.js +25 -1
  282. package/dist/esm/_core/market/market.family-aspects.js.map +1 -1
  283. package/dist/esm/_core/onboarding-view-specification.schemas.d.ts +27 -22
  284. package/dist/esm/_core/onboarding-view-specification.schemas.d.ts.map +1 -1
  285. package/dist/esm/_core/onboarding-view-specification.schemas.js +7 -12
  286. package/dist/esm/_core/onboarding-view-specification.schemas.js.map +1 -1
  287. package/dist/esm/_core/placement-plan/placement-plan-generation.schemas.d.ts +21 -21
  288. package/dist/esm/_core/placement-plan/placement-plan-validation.d.ts +30 -16
  289. package/dist/esm/_core/placement-plan/placement-plan-validation.d.ts.map +1 -1
  290. package/dist/esm/_core/placement-plan/placement-plan-validation.js +34 -12
  291. package/dist/esm/_core/placement-plan/placement-plan-validation.js.map +1 -1
  292. package/dist/esm/_core/placement-plan/placement-plan.family-aspects.d.ts.map +1 -1
  293. package/dist/esm/_core/placement-plan/placement-plan.family-aspects.js +24 -1
  294. package/dist/esm/_core/placement-plan/placement-plan.family-aspects.js.map +1 -1
  295. package/dist/esm/_core/placement-plan/placement-plan.schemas.d.ts +78 -47
  296. package/dist/esm/_core/placement-plan/placement-plan.schemas.d.ts.map +1 -1
  297. package/dist/esm/_core/placement-plan/placement-plan.schemas.js +62 -24
  298. package/dist/esm/_core/placement-plan/placement-plan.schemas.js.map +1 -1
  299. package/dist/esm/_core/provider-specification.schemas.d.ts +19 -0
  300. package/dist/esm/_core/provider-specification.schemas.d.ts.map +1 -1
  301. package/dist/esm/_core/provider-specification.schemas.js +0 -20
  302. package/dist/esm/_core/provider-specification.schemas.js.map +1 -1
  303. package/dist/esm/_core/requirements/functional-requirement.schemas.d.ts +2 -2
  304. package/dist/esm/_core/requirements/non-functional-requirement.schemas.d.ts +2 -2
  305. package/dist/esm/_core/requirements/requirements-authored-metadata.schemas.d.ts +3 -2
  306. package/dist/esm/_core/requirements/requirements-authored-metadata.schemas.d.ts.map +1 -1
  307. package/dist/esm/_core/requirements/requirements-authored-metadata.schemas.js +5 -2
  308. package/dist/esm/_core/requirements/requirements-authored-metadata.schemas.js.map +1 -1
  309. package/dist/esm/_core/requirements/requirements-snapshot.schemas.d.ts +4 -4
  310. package/dist/esm/_core/requirements/requirements.family-aspects.d.ts.map +1 -1
  311. package/dist/esm/_core/requirements/requirements.family-aspects.js +3 -1
  312. package/dist/esm/_core/requirements/requirements.family-aspects.js.map +1 -1
  313. package/dist/esm/_core/resource-specification.schemas.d.ts +8 -0
  314. package/dist/esm/_core/resource-specification.schemas.d.ts.map +1 -1
  315. package/dist/esm/_core/resource-specification.schemas.js.map +1 -1
  316. package/dist/esm/_core/roadmap/roadmap-authored-metadata.schemas.d.ts +3 -2
  317. package/dist/esm/_core/roadmap/roadmap-authored-metadata.schemas.d.ts.map +1 -1
  318. package/dist/esm/_core/roadmap/roadmap-authored-metadata.schemas.js +5 -2
  319. package/dist/esm/_core/roadmap/roadmap-authored-metadata.schemas.js.map +1 -1
  320. package/dist/esm/_core/roadmap/roadmap-phase.schemas.d.ts +2 -2
  321. package/dist/esm/_core/roadmap/roadmap-snapshot-validation.d.ts +5 -0
  322. package/dist/esm/_core/roadmap/roadmap-snapshot-validation.d.ts.map +1 -1
  323. package/dist/esm/_core/roadmap/roadmap-snapshot-validation.js +1 -8
  324. package/dist/esm/_core/roadmap/roadmap-snapshot-validation.js.map +1 -1
  325. package/dist/esm/_core/roadmap/roadmap-snapshot.schemas.d.ts +2 -2
  326. package/dist/esm/_core/roadmap/roadmap.family-aspects.js +1 -1
  327. package/dist/esm/_core/roadmap/roadmap.family-aspects.js.map +1 -1
  328. package/dist/esm/_core/utils/extract-field-specs.d.ts.map +1 -1
  329. package/dist/esm/_core/utils/extract-field-specs.js +4 -2
  330. package/dist/esm/_core/utils/extract-field-specs.js.map +1 -1
  331. package/dist/esm/_core/vision/vision-authored-metadata.schemas.d.ts +3 -2
  332. package/dist/esm/_core/vision/vision-authored-metadata.schemas.d.ts.map +1 -1
  333. package/dist/esm/_core/vision/vision-authored-metadata.schemas.js +5 -2
  334. package/dist/esm/_core/vision/vision-authored-metadata.schemas.js.map +1 -1
  335. package/dist/esm/_core/vision/vision-constraint.schemas.d.ts +2 -2
  336. package/dist/esm/_core/vision/vision-idea.schemas.d.ts +2 -2
  337. package/dist/esm/_core/vision/vision-mission.schemas.d.ts +2 -2
  338. package/dist/esm/_core/vision/vision-problem.schemas.d.ts +2 -2
  339. package/dist/esm/_core/vision/vision-snapshot.schemas.d.ts +10 -10
  340. package/dist/esm/_core/vision/vision-success-criterion.schemas.d.ts +2 -2
  341. package/dist/esm/_core/vision/vision.family-aspects.js +1 -1
  342. package/dist/esm/_core/vision/vision.family-aspects.js.map +1 -1
  343. package/dist/esm/_core/website-plan/website-plan-generation.schemas.d.ts +45 -0
  344. package/dist/esm/_core/website-plan/website-plan-generation.schemas.d.ts.map +1 -0
  345. package/dist/esm/_core/website-plan/website-plan-generation.schemas.js +55 -0
  346. package/dist/esm/_core/website-plan/website-plan-generation.schemas.js.map +1 -0
  347. package/dist/esm/_core/website-plan/website-plan-validation.d.ts +37 -0
  348. package/dist/esm/_core/website-plan/website-plan-validation.d.ts.map +1 -0
  349. package/dist/esm/_core/website-plan/website-plan-validation.js +77 -0
  350. package/dist/esm/_core/website-plan/website-plan-validation.js.map +1 -0
  351. package/dist/esm/_core/website-plan/website-plan.family-aspects.d.ts +3 -0
  352. package/dist/esm/_core/website-plan/website-plan.family-aspects.d.ts.map +1 -0
  353. package/dist/esm/_core/website-plan/website-plan.family-aspects.js +35 -0
  354. package/dist/esm/_core/website-plan/website-plan.family-aspects.js.map +1 -0
  355. package/dist/esm/_core/website-plan/website-plan.schemas.d.ts +194 -0
  356. package/dist/esm/_core/website-plan/website-plan.schemas.d.ts.map +1 -0
  357. package/dist/esm/_core/website-plan/website-plan.schemas.js +193 -0
  358. package/dist/esm/_core/website-plan/website-plan.schemas.js.map +1 -0
  359. package/dist/esm/_core/zod-core-nameability.d.ts +47 -0
  360. package/dist/esm/_core/zod-core-nameability.d.ts.map +1 -0
  361. package/dist/esm/_core/zod-core-nameability.js +1 -0
  362. package/dist/esm/_core/zod-core-nameability.js.map +1 -0
  363. package/dist/esm/application-creation/application-creator-inputs.application-creation.schemas.d.ts +86 -0
  364. package/dist/esm/application-creation/application-creator-inputs.application-creation.schemas.d.ts.map +1 -0
  365. package/dist/esm/application-creation/application-creator-inputs.application-creation.schemas.js +96 -0
  366. package/dist/esm/application-creation/application-creator-inputs.application-creation.schemas.js.map +1 -0
  367. package/dist/esm/application-creation/application-document-fact-specification.application-creation.schemas.d.ts +139 -34
  368. package/dist/esm/application-creation/application-document-fact-specification.application-creation.schemas.d.ts.map +1 -1
  369. package/dist/esm/application-creation/application-document-fact-specification.application-creation.schemas.js +182 -11
  370. package/dist/esm/application-creation/application-document-fact-specification.application-creation.schemas.js.map +1 -1
  371. package/dist/esm/application-creation/application-document-release-policy-specification.application-creation.schemas.d.ts +71 -2
  372. package/dist/esm/application-creation/application-document-release-policy-specification.application-creation.schemas.d.ts.map +1 -1
  373. package/dist/esm/application-creation/application-document-release-policy-specification.application-creation.schemas.js +88 -1
  374. package/dist/esm/application-creation/application-document-release-policy-specification.application-creation.schemas.js.map +1 -1
  375. package/dist/esm/application-creation/creator-inputs.family-aspects.d.ts +14 -0
  376. package/dist/esm/application-creation/creator-inputs.family-aspects.d.ts.map +1 -0
  377. package/dist/esm/application-creation/creator-inputs.family-aspects.js +17 -0
  378. package/dist/esm/application-creation/creator-inputs.family-aspects.js.map +1 -0
  379. package/dist/esm/application-creation/document-facts.family-aspects.d.ts.map +1 -1
  380. package/dist/esm/application-creation/document-facts.family-aspects.js +25 -1
  381. package/dist/esm/application-creation/document-facts.family-aspects.js.map +1 -1
  382. package/dist/esm/application-creation/document-release-policy.family-aspects.js +1 -1
  383. package/dist/esm/application-creation/document-release-policy.family-aspects.js.map +1 -1
  384. package/dist/esm/application-creation/journey.application-creation.schemas.d.ts +14 -48
  385. package/dist/esm/application-creation/journey.application-creation.schemas.d.ts.map +1 -1
  386. package/dist/esm/application-creation/journey.application-creation.schemas.js +52 -52
  387. package/dist/esm/application-creation/journey.application-creation.schemas.js.map +1 -1
  388. package/dist/esm/application-creation/playbooks.application-creation.schemas.d.ts +209 -495
  389. package/dist/esm/application-creation/playbooks.application-creation.schemas.d.ts.map +1 -1
  390. package/dist/esm/application-creation/playbooks.application-creation.schemas.js +257 -534
  391. package/dist/esm/application-creation/playbooks.application-creation.schemas.js.map +1 -1
  392. package/dist/esm/application-creation/structured-artifact-landing.application-creation.schemas.d.ts +10 -0
  393. package/dist/esm/application-creation/structured-artifact-landing.application-creation.schemas.d.ts.map +1 -1
  394. package/dist/esm/application-creation/structured-artifact-landing.application-creation.schemas.js +10 -0
  395. package/dist/esm/application-creation/structured-artifact-landing.application-creation.schemas.js.map +1 -1
  396. package/dist/esm/application-creation.exports.d.ts +73 -8
  397. package/dist/esm/application-creation.exports.d.ts.map +1 -1
  398. package/dist/esm/application-creation.exports.js +103 -8
  399. package/dist/esm/application-creation.exports.js.map +1 -1
  400. package/dist/esm/assurance/__tests__/authority-evaluation-instant.fixture.d.ts +24 -0
  401. package/dist/esm/assurance/__tests__/authority-evaluation-instant.fixture.d.ts.map +1 -0
  402. package/dist/esm/assurance/__tests__/authority-evaluation-instant.fixture.js +24 -0
  403. package/dist/esm/assurance/__tests__/authority-evaluation-instant.fixture.js.map +1 -0
  404. package/dist/esm/assurance/application-document-publication.schemas.d.ts +49 -0
  405. package/dist/esm/assurance/application-document-publication.schemas.d.ts.map +1 -1
  406. package/dist/esm/assurance/application-document-publication.schemas.js +51 -0
  407. package/dist/esm/assurance/application-document-publication.schemas.js.map +1 -1
  408. package/dist/esm/assurance/application-document-release-set.schemas.d.ts +161 -0
  409. package/dist/esm/assurance/application-document-release-set.schemas.d.ts.map +1 -0
  410. package/dist/esm/assurance/application-document-release-set.schemas.js +138 -0
  411. package/dist/esm/assurance/application-document-release-set.schemas.js.map +1 -0
  412. package/dist/esm/assurance/application-risk-register.family-aspects.d.ts +28 -0
  413. package/dist/esm/assurance/application-risk-register.family-aspects.d.ts.map +1 -0
  414. package/dist/esm/assurance/application-risk-register.family-aspects.js +58 -0
  415. package/dist/esm/assurance/application-risk-register.family-aspects.js.map +1 -0
  416. package/dist/esm/assurance/application-risk-register.schemas.d.ts +172 -0
  417. package/dist/esm/assurance/application-risk-register.schemas.d.ts.map +1 -0
  418. package/dist/esm/assurance/application-risk-register.schemas.js +192 -0
  419. package/dist/esm/assurance/application-risk-register.schemas.js.map +1 -0
  420. package/dist/esm/assurance/application-risk-signals.derivations.d.ts +177 -0
  421. package/dist/esm/assurance/application-risk-signals.derivations.d.ts.map +1 -0
  422. package/dist/esm/assurance/application-risk-signals.derivations.js +229 -0
  423. package/dist/esm/assurance/application-risk-signals.derivations.js.map +1 -0
  424. package/dist/esm/assurance/assurance-authority-basis.definitions.d.ts +257 -13
  425. package/dist/esm/assurance/assurance-authority-basis.definitions.d.ts.map +1 -1
  426. package/dist/esm/assurance/assurance-authority-basis.definitions.js +836 -69
  427. package/dist/esm/assurance/assurance-authority-basis.definitions.js.map +1 -1
  428. package/dist/esm/assurance/assurance-authority-basis.schemas.d.ts +99 -33
  429. package/dist/esm/assurance/assurance-authority-basis.schemas.d.ts.map +1 -1
  430. package/dist/esm/assurance/assurance-authority-basis.schemas.js +38 -1
  431. package/dist/esm/assurance/assurance-authority-basis.schemas.js.map +1 -1
  432. package/dist/esm/assurance/assurance-document-blueprint-selection.d.ts +30 -0
  433. package/dist/esm/assurance/assurance-document-blueprint-selection.d.ts.map +1 -1
  434. package/dist/esm/assurance/assurance-document-blueprint-selection.js +40 -0
  435. package/dist/esm/assurance/assurance-document-blueprint-selection.js.map +1 -1
  436. package/dist/esm/assurance/assurance-document-system.definitions.d.ts.map +1 -1
  437. package/dist/esm/assurance/assurance-document-system.definitions.js +99 -8
  438. package/dist/esm/assurance/assurance-document-system.definitions.js.map +1 -1
  439. package/dist/esm/assurance/assurance-document-system.schemas.d.ts +133 -41
  440. package/dist/esm/assurance/assurance-document-system.schemas.d.ts.map +1 -1
  441. package/dist/esm/assurance/assurance-document-system.schemas.js +60 -11
  442. package/dist/esm/assurance/assurance-document-system.schemas.js.map +1 -1
  443. package/dist/esm/assurance/assurance-evidence-judgement.schemas.d.ts +470 -0
  444. package/dist/esm/assurance/assurance-evidence-judgement.schemas.d.ts.map +1 -0
  445. package/dist/esm/assurance/assurance-evidence-judgement.schemas.js +451 -0
  446. package/dist/esm/assurance/assurance-evidence-judgement.schemas.js.map +1 -0
  447. package/dist/esm/assurance/assurance-evidence-requirement-bodies.definitions.d.ts +0 -33
  448. package/dist/esm/assurance/assurance-evidence-requirement-bodies.definitions.d.ts.map +1 -1
  449. package/dist/esm/assurance/assurance-evidence-requirement-bodies.definitions.js +3339 -159
  450. package/dist/esm/assurance/assurance-evidence-requirement-bodies.definitions.js.map +1 -1
  451. package/dist/esm/assurance/assurance-foundation.schemas.d.ts +21 -0
  452. package/dist/esm/assurance/assurance-foundation.schemas.d.ts.map +1 -1
  453. package/dist/esm/assurance/assurance-foundation.schemas.js +21 -0
  454. package/dist/esm/assurance/assurance-foundation.schemas.js.map +1 -1
  455. package/dist/esm/assurance/assurance-objective-catalog.definitions.d.ts +32 -2
  456. package/dist/esm/assurance/assurance-objective-catalog.definitions.d.ts.map +1 -1
  457. package/dist/esm/assurance/assurance-objective-catalog.definitions.js +148 -5
  458. package/dist/esm/assurance/assurance-objective-catalog.definitions.js.map +1 -1
  459. package/dist/esm/assurance/assurance-program-generation.schemas.d.ts +257 -14
  460. package/dist/esm/assurance/assurance-program-generation.schemas.d.ts.map +1 -1
  461. package/dist/esm/assurance/assurance-program-generation.schemas.js +588 -45
  462. package/dist/esm/assurance/assurance-program-generation.schemas.js.map +1 -1
  463. package/dist/esm/assurance/assurance-program.family-aspects.d.ts +32 -8
  464. package/dist/esm/assurance/assurance-program.family-aspects.d.ts.map +1 -1
  465. package/dist/esm/assurance/assurance-program.family-aspects.js +288 -10
  466. package/dist/esm/assurance/assurance-program.family-aspects.js.map +1 -1
  467. package/dist/esm/assurance/assurance-program.schemas.d.ts +1182 -333
  468. package/dist/esm/assurance/assurance-program.schemas.d.ts.map +1 -1
  469. package/dist/esm/assurance/assurance-program.schemas.js +460 -68
  470. package/dist/esm/assurance/assurance-program.schemas.js.map +1 -1
  471. package/dist/esm/assurance/assurance-source-registry.definitions.d.ts.map +1 -1
  472. package/dist/esm/assurance/assurance-source-registry.definitions.js +70 -2
  473. package/dist/esm/assurance/assurance-source-registry.definitions.js.map +1 -1
  474. package/dist/esm/assurance/assurance-sources.schemas.d.ts +17 -0
  475. package/dist/esm/assurance/assurance-sources.schemas.d.ts.map +1 -1
  476. package/dist/esm/assurance/assurance-sources.schemas.js +17 -0
  477. package/dist/esm/assurance/assurance-sources.schemas.js.map +1 -1
  478. package/dist/esm/assurance/assurance-verification-requirement-bodies.definitions.d.ts.map +1 -1
  479. package/dist/esm/assurance/assurance-verification-requirement-bodies.definitions.js +205 -3
  480. package/dist/esm/assurance/assurance-verification-requirement-bodies.definitions.js.map +1 -1
  481. package/dist/esm/assurance/document-publication.family-aspects.js +1 -1
  482. package/dist/esm/assurance/document-publication.family-aspects.js.map +1 -1
  483. package/dist/esm/assurance/document-release-set.family-aspects.d.ts +11 -0
  484. package/dist/esm/assurance/document-release-set.family-aspects.d.ts.map +1 -0
  485. package/dist/esm/assurance/document-release-set.family-aspects.js +36 -0
  486. package/dist/esm/assurance/document-release-set.family-aspects.js.map +1 -0
  487. package/dist/esm/assurance/governed-document-release.d.ts +211 -0
  488. package/dist/esm/assurance/governed-document-release.d.ts.map +1 -0
  489. package/dist/esm/assurance/governed-document-release.js +314 -0
  490. package/dist/esm/assurance/governed-document-release.js.map +1 -0
  491. package/dist/esm/assurance.exports.d.ts +5 -0
  492. package/dist/esm/assurance.exports.d.ts.map +1 -1
  493. package/dist/esm/assurance.exports.js +5 -0
  494. package/dist/esm/assurance.exports.js.map +1 -1
  495. package/dist/esm/companion-exports.d.ts +135 -11
  496. package/dist/esm/companion-exports.d.ts.map +1 -1
  497. package/dist/esm/companion-exports.js.map +1 -1
  498. package/dist/esm/engine/_bootstrap.d.ts +1 -1
  499. package/dist/esm/engine/_bootstrap.js +1 -1
  500. package/dist/esm/engine/_bootstrap.js.map +1 -1
  501. package/dist/esm/engine/applications/resources/application-metadata.resource.specification.d.ts +1 -1
  502. package/dist/esm/engine/applications/resources/application-metadata.resource.specification.js +1 -1
  503. package/dist/esm/engine/applications/resources/application-metadata.resource.specification.js.map +1 -1
  504. package/dist/esm/engine/applications/resources/application-oauth-clients.resource.specification.d.ts +0 -23
  505. package/dist/esm/engine/applications/resources/application-oauth-clients.resource.specification.d.ts.map +1 -1
  506. package/dist/esm/engine/applications/resources/application-oauth-clients.resource.specification.js +110 -28
  507. package/dist/esm/engine/applications/resources/application-oauth-clients.resource.specification.js.map +1 -1
  508. package/dist/esm/engine/applications/resources/application-versions.resource.specification.d.ts +1 -1
  509. package/dist/esm/engine/applications/resources/application-versions.resource.specification.js +1 -1
  510. package/dist/esm/engine/applications/resources/application-versions.resource.specification.js.map +1 -1
  511. package/dist/esm/engine/applications/resources/applications.resource.specification.d.ts +1 -0
  512. package/dist/esm/engine/applications/resources/applications.resource.specification.d.ts.map +1 -1
  513. package/dist/esm/engine/auth/resources/application-access-grants.resource.specification.d.ts +57 -0
  514. package/dist/esm/engine/auth/resources/application-access-grants.resource.specification.d.ts.map +1 -0
  515. package/dist/esm/engine/auth/resources/application-access-grants.resource.specification.js +412 -0
  516. package/dist/esm/engine/auth/resources/application-access-grants.resource.specification.js.map +1 -0
  517. package/dist/esm/engine/auth/resources/index.d.ts +2 -0
  518. package/dist/esm/engine/auth/resources/index.d.ts.map +1 -1
  519. package/dist/esm/engine/auth/resources/index.js +2 -0
  520. package/dist/esm/engine/auth/resources/index.js.map +1 -1
  521. package/dist/esm/engine/auth/resources/organization-oauth-clients.resource.specification.d.ts +4 -4
  522. package/dist/esm/engine/auth/resources/organization-oauth-clients.resource.specification.d.ts.map +1 -1
  523. package/dist/esm/engine/auth/resources/organization-oauth-clients.resource.specification.js +57 -6
  524. package/dist/esm/engine/auth/resources/organization-oauth-clients.resource.specification.js.map +1 -1
  525. package/dist/esm/engine/auth/resources/organization-onboarding-operations.resource.specification.d.ts +9 -0
  526. package/dist/esm/engine/auth/resources/organization-onboarding-operations.resource.specification.d.ts.map +1 -0
  527. package/dist/esm/engine/auth/resources/organization-onboarding-operations.resource.specification.js +141 -0
  528. package/dist/esm/engine/auth/resources/organization-onboarding-operations.resource.specification.js.map +1 -0
  529. package/dist/esm/engine/auth/resources/organization-provider-credentials.resource.specification.d.ts +4 -1
  530. package/dist/esm/engine/auth/resources/organization-provider-credentials.resource.specification.d.ts.map +1 -1
  531. package/dist/esm/engine/auth/resources/organization-provider-credentials.resource.specification.js +10 -6
  532. package/dist/esm/engine/auth/resources/organization-provider-credentials.resource.specification.js.map +1 -1
  533. package/dist/esm/engine/auth/resources/scim-provisioning-config.resource.specification.d.ts.map +1 -1
  534. package/dist/esm/engine/auth/resources/scim-provisioning-config.resource.specification.js +5 -4
  535. package/dist/esm/engine/auth/resources/scim-provisioning-config.resource.specification.js.map +1 -1
  536. package/dist/esm/engine/auth/resources/siem-delivery-outbox.resource.specification.d.ts +4 -0
  537. package/dist/esm/engine/auth/resources/siem-delivery-outbox.resource.specification.d.ts.map +1 -0
  538. package/dist/esm/engine/auth/resources/siem-delivery-outbox.resource.specification.js +129 -0
  539. package/dist/esm/engine/auth/resources/siem-delivery-outbox.resource.specification.js.map +1 -0
  540. package/dist/esm/engine/auth/resources/siem-export-config.resource.specification.d.ts +19 -7
  541. package/dist/esm/engine/auth/resources/siem-export-config.resource.specification.d.ts.map +1 -1
  542. package/dist/esm/engine/auth/resources/siem-export-config.resource.specification.js +24 -13
  543. package/dist/esm/engine/auth/resources/siem-export-config.resource.specification.js.map +1 -1
  544. package/dist/esm/engine/auth/resources/sso-config.resource.specification.d.ts +0 -40
  545. package/dist/esm/engine/auth/resources/sso-config.resource.specification.d.ts.map +1 -1
  546. package/dist/esm/engine/auth/resources/sso-config.resource.specification.js +14 -27
  547. package/dist/esm/engine/auth/resources/sso-config.resource.specification.js.map +1 -1
  548. package/dist/esm/engine/auth/resources/sso-connections.resource.specification.d.ts +8 -2
  549. package/dist/esm/engine/auth/resources/sso-connections.resource.specification.d.ts.map +1 -1
  550. package/dist/esm/engine/auth/resources/sso-connections.resource.specification.js +16 -3
  551. package/dist/esm/engine/auth/resources/sso-connections.resource.specification.js.map +1 -1
  552. package/dist/esm/engine/auth/resources/user-provider-credentials.resource.specification.d.ts +5 -2
  553. package/dist/esm/engine/auth/resources/user-provider-credentials.resource.specification.d.ts.map +1 -1
  554. package/dist/esm/engine/auth/resources/user-provider-credentials.resource.specification.js +10 -16
  555. package/dist/esm/engine/auth/resources/user-provider-credentials.resource.specification.js.map +1 -1
  556. package/dist/esm/engine/billing/resources/billing-accounts.resource.specification.d.ts.map +1 -1
  557. package/dist/esm/engine/billing/resources/billing-accounts.resource.specification.js +15 -5
  558. package/dist/esm/engine/billing/resources/billing-accounts.resource.specification.js.map +1 -1
  559. package/dist/esm/engine/billing/resources/billing-effect-outbox.resource.specification.d.ts +9 -0
  560. package/dist/esm/engine/billing/resources/billing-effect-outbox.resource.specification.d.ts.map +1 -0
  561. package/dist/esm/engine/billing/resources/billing-effect-outbox.resource.specification.js +164 -0
  562. package/dist/esm/engine/billing/resources/billing-effect-outbox.resource.specification.js.map +1 -0
  563. package/dist/esm/engine/billing/resources/billing-provider-event-settlements.resource.specification.d.ts +14 -0
  564. package/dist/esm/engine/billing/resources/billing-provider-event-settlements.resource.specification.d.ts.map +1 -0
  565. package/dist/esm/engine/billing/resources/billing-provider-event-settlements.resource.specification.js +124 -0
  566. package/dist/esm/engine/billing/resources/billing-provider-event-settlements.resource.specification.js.map +1 -0
  567. package/dist/esm/engine/billing/resources/billing-subscription-mutation-completions.resource.specification.d.ts +9 -0
  568. package/dist/esm/engine/billing/resources/billing-subscription-mutation-completions.resource.specification.d.ts.map +1 -0
  569. package/dist/esm/engine/billing/resources/billing-subscription-mutation-completions.resource.specification.js +123 -0
  570. package/dist/esm/engine/billing/resources/billing-subscription-mutation-completions.resource.specification.js.map +1 -0
  571. package/dist/esm/engine/billing/resources/billing-subscription-mutation-intents.resource.specification.d.ts +11 -0
  572. package/dist/esm/engine/billing/resources/billing-subscription-mutation-intents.resource.specification.d.ts.map +1 -0
  573. package/dist/esm/engine/billing/resources/billing-subscription-mutation-intents.resource.specification.js +172 -0
  574. package/dist/esm/engine/billing/resources/billing-subscription-mutation-intents.resource.specification.js.map +1 -0
  575. package/dist/esm/engine/billing/resources/index.d.ts +4 -0
  576. package/dist/esm/engine/billing/resources/index.d.ts.map +1 -1
  577. package/dist/esm/engine/billing/resources/index.js +4 -0
  578. package/dist/esm/engine/billing/resources/index.js.map +1 -1
  579. package/dist/esm/engine/billing/resources/prices.resource.specification.d.ts +3 -3
  580. package/dist/esm/engine/billing/resources/products.resource.specification.d.ts +3 -3
  581. package/dist/esm/engine/billing/resources/products.resource.specification.js +1 -1
  582. package/dist/esm/engine/billing/resources/products.resource.specification.js.map +1 -1
  583. package/dist/esm/engine/billing/resources/subscriptions.resource.specification.d.ts.map +1 -1
  584. package/dist/esm/engine/billing/resources/subscriptions.resource.specification.js +92 -36
  585. package/dist/esm/engine/billing/resources/subscriptions.resource.specification.js.map +1 -1
  586. package/dist/esm/engine/compliance/resources/application-audit-logs.resource.specification.d.ts +77 -0
  587. package/dist/esm/engine/compliance/resources/application-audit-logs.resource.specification.d.ts.map +1 -0
  588. package/dist/esm/engine/compliance/resources/application-audit-logs.resource.specification.js +375 -0
  589. package/dist/esm/engine/compliance/resources/application-audit-logs.resource.specification.js.map +1 -0
  590. package/dist/esm/engine/compliance/resources/audit-logs.resource.specification.d.ts +1 -1
  591. package/dist/esm/engine/compliance/resources/index.d.ts +2 -0
  592. package/dist/esm/engine/compliance/resources/index.d.ts.map +1 -1
  593. package/dist/esm/engine/compliance/resources/index.js +2 -0
  594. package/dist/esm/engine/compliance/resources/index.js.map +1 -1
  595. package/dist/esm/engine/compliance/resources/user-governed-document-acceptances.resource.specification.d.ts +16 -0
  596. package/dist/esm/engine/compliance/resources/user-governed-document-acceptances.resource.specification.d.ts.map +1 -0
  597. package/dist/esm/engine/compliance/resources/user-governed-document-acceptances.resource.specification.js +183 -0
  598. package/dist/esm/engine/compliance/resources/user-governed-document-acceptances.resource.specification.js.map +1 -0
  599. package/dist/esm/engine/engine-resource-specifications.registry.d.ts.map +1 -1
  600. package/dist/esm/engine/engine-resource-specifications.registry.js +28 -0
  601. package/dist/esm/engine/engine-resource-specifications.registry.js.map +1 -1
  602. package/dist/esm/engine/errors/error-messages.specification.d.ts.map +1 -1
  603. package/dist/esm/engine/errors/error-messages.specification.js +123 -19
  604. package/dist/esm/engine/errors/error-messages.specification.js.map +1 -1
  605. package/dist/esm/engine/features/resources/application-features.resource.specification.d.ts.map +1 -1
  606. package/dist/esm/engine/features/resources/application-features.resource.specification.js +2 -1
  607. package/dist/esm/engine/features/resources/application-features.resource.specification.js.map +1 -1
  608. package/dist/esm/engine/features/resources/organization-features.resource.specification.d.ts.map +1 -1
  609. package/dist/esm/engine/features/resources/organization-features.resource.specification.js +1 -0
  610. package/dist/esm/engine/features/resources/organization-features.resource.specification.js.map +1 -1
  611. package/dist/esm/engine/features/resources/user-features.resource.specification.d.ts +1 -1
  612. package/dist/esm/engine/features/resources/user-features.resource.specification.d.ts.map +1 -1
  613. package/dist/esm/engine/features/resources/user-features.resource.specification.js +4 -1
  614. package/dist/esm/engine/features/resources/user-features.resource.specification.js.map +1 -1
  615. package/dist/esm/engine/files/resources/files.resource.specification.d.ts.map +1 -1
  616. package/dist/esm/engine/files/resources/files.resource.specification.js +15 -3
  617. package/dist/esm/engine/files/resources/files.resource.specification.js.map +1 -1
  618. package/dist/esm/engine/flows-actors/resources/flow-actor-executions.resource.specification.d.ts +3 -0
  619. package/dist/esm/engine/flows-actors/resources/flow-actor-executions.resource.specification.d.ts.map +1 -1
  620. package/dist/esm/engine/flows-actors/resources/flow-actor-executions.resource.specification.js +1 -1
  621. package/dist/esm/engine/flows-actors/resources/flow-actor-executions.resource.specification.js.map +1 -1
  622. package/dist/esm/engine/flows-actors/resources/flow-actor-tasks.resource.specification.d.ts +3 -3
  623. package/dist/esm/engine/flows-actors/resources/provider-call-records.resource.specification.d.ts +14 -0
  624. package/dist/esm/engine/flows-actors/resources/provider-call-records.resource.specification.d.ts.map +1 -0
  625. package/dist/esm/engine/flows-actors/resources/provider-call-records.resource.specification.js +184 -0
  626. package/dist/esm/engine/flows-actors/resources/provider-call-records.resource.specification.js.map +1 -0
  627. package/dist/esm/engine/frontend-components/actions/button-group-separator.frontend-component.specification.js +3 -3
  628. package/dist/esm/engine/frontend-components/actions/button-group-separator.frontend-component.specification.js.map +1 -1
  629. package/dist/esm/engine/frontend-components/actions/button-group.frontend-component.specification.d.ts.map +1 -1
  630. package/dist/esm/engine/frontend-components/actions/button-group.frontend-component.specification.js +3 -2
  631. package/dist/esm/engine/frontend-components/actions/button-group.frontend-component.specification.js.map +1 -1
  632. package/dist/esm/engine/frontend-components/actions/button.frontend-component.specification.d.ts.map +1 -1
  633. package/dist/esm/engine/frontend-components/actions/button.frontend-component.specification.js +18 -0
  634. package/dist/esm/engine/frontend-components/actions/button.frontend-component.specification.js.map +1 -1
  635. package/dist/esm/engine/frontend-components/ai-elements/artifacts/ai-diff-block.frontend-component.specification.d.ts +4 -0
  636. package/dist/esm/engine/frontend-components/ai-elements/artifacts/ai-diff-block.frontend-component.specification.d.ts.map +1 -0
  637. package/dist/esm/engine/frontend-components/ai-elements/artifacts/ai-diff-block.frontend-component.specification.js +21 -0
  638. package/dist/esm/engine/frontend-components/ai-elements/artifacts/ai-diff-block.frontend-component.specification.js.map +1 -0
  639. package/dist/esm/engine/frontend-components/ai-elements/trace/ai-chain-of-thought.frontend-component.specification.js +1 -1
  640. package/dist/esm/engine/frontend-components/ai-elements/trace/ai-chain-of-thought.frontend-component.specification.js.map +1 -1
  641. package/dist/esm/engine/frontend-components/app/app-layout-billing-settings.frontend-component.specification.d.ts +5 -0
  642. package/dist/esm/engine/frontend-components/app/app-layout-billing-settings.frontend-component.specification.d.ts.map +1 -0
  643. package/dist/esm/engine/frontend-components/app/app-layout-billing-settings.frontend-component.specification.js +82 -0
  644. package/dist/esm/engine/frontend-components/app/app-layout-billing-settings.frontend-component.specification.js.map +1 -0
  645. package/dist/esm/engine/frontend-components/app/app-layout-connected-accounts-settings.frontend-component.specification.d.ts.map +1 -1
  646. package/dist/esm/engine/frontend-components/app/app-layout-connected-accounts-settings.frontend-component.specification.js +6 -5
  647. package/dist/esm/engine/frontend-components/app/app-layout-connected-accounts-settings.frontend-component.specification.js.map +1 -1
  648. package/dist/esm/engine/frontend-components/app/app-layout-consent-gate.frontend-component.specification.d.ts +4 -0
  649. package/dist/esm/engine/frontend-components/app/app-layout-consent-gate.frontend-component.specification.d.ts.map +1 -0
  650. package/dist/esm/engine/frontend-components/app/app-layout-consent-gate.frontend-component.specification.js +22 -0
  651. package/dist/esm/engine/frontend-components/app/app-layout-consent-gate.frontend-component.specification.js.map +1 -0
  652. package/dist/esm/engine/frontend-components/app/app-layout-document-acceptance-gate.frontend-component.specification.d.ts +4 -0
  653. package/dist/esm/engine/frontend-components/app/app-layout-document-acceptance-gate.frontend-component.specification.d.ts.map +1 -0
  654. package/dist/esm/engine/frontend-components/app/app-layout-document-acceptance-gate.frontend-component.specification.js +22 -0
  655. package/dist/esm/engine/frontend-components/app/app-layout-document-acceptance-gate.frontend-component.specification.js.map +1 -0
  656. package/dist/esm/engine/frontend-components/app/app-layout-surface-error-boundary.frontend-component.specification.d.ts +5 -0
  657. package/dist/esm/engine/frontend-components/app/app-layout-surface-error-boundary.frontend-component.specification.d.ts.map +1 -0
  658. package/dist/esm/engine/frontend-components/app/app-layout-surface-error-boundary.frontend-component.specification.js +81 -0
  659. package/dist/esm/engine/frontend-components/app/app-layout-surface-error-boundary.frontend-component.specification.js.map +1 -0
  660. package/dist/esm/engine/frontend-components/app/public-layout-main-container.frontend-component.specification.d.ts.map +1 -1
  661. package/dist/esm/engine/frontend-components/app/public-layout-main-container.frontend-component.specification.js +4 -2
  662. package/dist/esm/engine/frontend-components/app/public-layout-main-container.frontend-component.specification.js.map +1 -1
  663. package/dist/esm/engine/frontend-components/app/public-layout-terms.frontend-component.specification.js +4 -4
  664. package/dist/esm/engine/frontend-components/app/public-layout-terms.frontend-component.specification.js.map +1 -1
  665. package/dist/esm/engine/frontend-components/auth/public-layout-auth-callback.frontend-component.specification.d.ts.map +1 -1
  666. package/dist/esm/engine/frontend-components/auth/public-layout-auth-callback.frontend-component.specification.js +3 -2
  667. package/dist/esm/engine/frontend-components/auth/public-layout-auth-callback.frontend-component.specification.js.map +1 -1
  668. package/dist/esm/engine/frontend-components/auth/public-layout-enrollment-required.frontend-component.specification.js +4 -4
  669. package/dist/esm/engine/frontend-components/auth/public-layout-enrollment-required.frontend-component.specification.js.map +1 -1
  670. package/dist/esm/engine/frontend-components/auth/public-layout-magic-link-verify.frontend-component.specification.js +1 -1
  671. package/dist/esm/engine/frontend-components/auth/public-layout-magic-link-verify.frontend-component.specification.js.map +1 -1
  672. package/dist/esm/engine/frontend-components/auth/public-layout-organization-onboarding.frontend-component.specification.d.ts +4 -0
  673. package/dist/esm/engine/frontend-components/auth/public-layout-organization-onboarding.frontend-component.specification.d.ts.map +1 -0
  674. package/dist/esm/engine/frontend-components/auth/public-layout-organization-onboarding.frontend-component.specification.js +22 -0
  675. package/dist/esm/engine/frontend-components/auth/public-layout-organization-onboarding.frontend-component.specification.js.map +1 -0
  676. package/dist/esm/engine/frontend-components/auth/public-layout-user-auth.frontend-component.specification.js +1 -1
  677. package/dist/esm/engine/frontend-components/auth/public-layout-user-auth.frontend-component.specification.js.map +1 -1
  678. package/dist/esm/engine/frontend-components/auth/public-layout-user-register.frontend-component.specification.d.ts.map +1 -1
  679. package/dist/esm/engine/frontend-components/auth/public-layout-user-register.frontend-component.specification.js +4 -4
  680. package/dist/esm/engine/frontend-components/auth/public-layout-user-register.frontend-component.specification.js.map +1 -1
  681. package/dist/esm/engine/frontend-components/billing/billing-invoice-history.frontend-component.specification.js +1 -1
  682. package/dist/esm/engine/frontend-components/billing/billing-invoice-history.frontend-component.specification.js.map +1 -1
  683. package/dist/esm/engine/frontend-components/billing/billing-plan-change-preview.frontend-component.specification.d.ts +4 -0
  684. package/dist/esm/engine/frontend-components/billing/billing-plan-change-preview.frontend-component.specification.d.ts.map +1 -0
  685. package/dist/esm/engine/frontend-components/billing/billing-plan-change-preview.frontend-component.specification.js +21 -0
  686. package/dist/esm/engine/frontend-components/billing/billing-plan-change-preview.frontend-component.specification.js.map +1 -0
  687. package/dist/esm/engine/frontend-components/billing/billing-portal-link.frontend-component.specification.js +1 -1
  688. package/dist/esm/engine/frontend-components/billing/billing-portal-link.frontend-component.specification.js.map +1 -1
  689. package/dist/esm/engine/frontend-components/billing/billing-pricing-table.frontend-component.specification.js +2 -2
  690. package/dist/esm/engine/frontend-components/billing/billing-pricing-table.frontend-component.specification.js.map +1 -1
  691. package/dist/esm/engine/frontend-components/billing/billing-subscription-status.frontend-component.specification.js +1 -1
  692. package/dist/esm/engine/frontend-components/billing/billing-subscription-status.frontend-component.specification.js.map +1 -1
  693. package/dist/esm/engine/frontend-components/billing/billing-usage-dashboard.frontend-component.specification.js +1 -1
  694. package/dist/esm/engine/frontend-components/billing/billing-usage-dashboard.frontend-component.specification.js.map +1 -1
  695. package/dist/esm/engine/frontend-components/data-display/description-list.frontend-component.specification.d.ts.map +1 -1
  696. package/dist/esm/engine/frontend-components/data-display/description-list.frontend-component.specification.js +20 -2
  697. package/dist/esm/engine/frontend-components/data-display/description-list.frontend-component.specification.js.map +1 -1
  698. package/dist/esm/engine/frontend-components/data-display/duration.frontend-component.specification.d.ts +5 -0
  699. package/dist/esm/engine/frontend-components/data-display/duration.frontend-component.specification.d.ts.map +1 -0
  700. package/dist/esm/engine/frontend-components/data-display/duration.frontend-component.specification.js +177 -0
  701. package/dist/esm/engine/frontend-components/data-display/duration.frontend-component.specification.js.map +1 -0
  702. package/dist/esm/engine/frontend-components/data-display/formatters/display-field-address.frontend-component.specification.d.ts +5 -0
  703. package/dist/esm/engine/frontend-components/data-display/formatters/display-field-address.frontend-component.specification.d.ts.map +1 -0
  704. package/dist/esm/engine/frontend-components/data-display/formatters/display-field-address.frontend-component.specification.js +22 -0
  705. package/dist/esm/engine/frontend-components/data-display/formatters/display-field-address.frontend-component.specification.js.map +1 -0
  706. package/dist/esm/engine/frontend-components/data-display/formatters/display-field-file-document.frontend-component.specification.d.ts.map +1 -1
  707. package/dist/esm/engine/frontend-components/data-display/formatters/display-field-file-document.frontend-component.specification.js +10 -2
  708. package/dist/esm/engine/frontend-components/data-display/formatters/display-field-file-document.frontend-component.specification.js.map +1 -1
  709. package/dist/esm/engine/frontend-components/data-display/identifier.frontend-component.specification.d.ts +5 -0
  710. package/dist/esm/engine/frontend-components/data-display/identifier.frontend-component.specification.d.ts.map +1 -0
  711. package/dist/esm/engine/frontend-components/data-display/identifier.frontend-component.specification.js +166 -0
  712. package/dist/esm/engine/frontend-components/data-display/identifier.frontend-component.specification.js.map +1 -0
  713. package/dist/esm/engine/frontend-components/data-display/kbd.frontend-component.specification.d.ts +5 -0
  714. package/dist/esm/engine/frontend-components/data-display/kbd.frontend-component.specification.d.ts.map +1 -0
  715. package/dist/esm/engine/frontend-components/data-display/kbd.frontend-component.specification.js +122 -0
  716. package/dist/esm/engine/frontend-components/data-display/kbd.frontend-component.specification.js.map +1 -0
  717. package/dist/esm/engine/frontend-components/data-display/timeline.frontend-component.specification.d.ts +5 -0
  718. package/dist/esm/engine/frontend-components/data-display/timeline.frontend-component.specification.d.ts.map +1 -0
  719. package/dist/esm/engine/frontend-components/data-display/timeline.frontend-component.specification.js +152 -0
  720. package/dist/esm/engine/frontend-components/data-display/timeline.frontend-component.specification.js.map +1 -0
  721. package/dist/esm/engine/frontend-components/feedback/celebration-overlay.frontend-component.specification.d.ts.map +1 -1
  722. package/dist/esm/engine/frontend-components/feedback/celebration-overlay.frontend-component.specification.js +13 -0
  723. package/dist/esm/engine/frontend-components/feedback/celebration-overlay.frontend-component.specification.js.map +1 -1
  724. package/dist/esm/engine/frontend-components/flows-actors/low-level-ai-approval.frontend-component.specification.js +1 -1
  725. package/dist/esm/engine/frontend-components/flows-actors/low-level-ai-approval.frontend-component.specification.js.map +1 -1
  726. package/dist/esm/engine/frontend-components/form/controls/string/inline-edit-text.frontend-component.specification.d.ts +5 -0
  727. package/dist/esm/engine/frontend-components/form/controls/string/inline-edit-text.frontend-component.specification.d.ts.map +1 -0
  728. package/dist/esm/engine/frontend-components/form/controls/string/inline-edit-text.frontend-component.specification.js +92 -0
  729. package/dist/esm/engine/frontend-components/form/controls/string/inline-edit-text.frontend-component.specification.js.map +1 -0
  730. package/dist/esm/engine/frontend-components/form/fields/form-field-address.frontend-component.specification.d.ts +5 -0
  731. package/dist/esm/engine/frontend-components/form/fields/form-field-address.frontend-component.specification.d.ts.map +1 -0
  732. package/dist/esm/engine/frontend-components/form/fields/form-field-address.frontend-component.specification.js +29 -0
  733. package/dist/esm/engine/frontend-components/form/fields/form-field-address.frontend-component.specification.js.map +1 -0
  734. package/dist/esm/engine/frontend-components/form/fields/form-field-enum.frontend-component.specification.js +1 -1
  735. package/dist/esm/engine/frontend-components/form/fields/form-field-enum.frontend-component.specification.js.map +1 -1
  736. package/dist/esm/engine/frontend-components/form/fields/form-field-file.frontend-component.specification.js +1 -1
  737. package/dist/esm/engine/frontend-components/form/fields/form-field-file.frontend-component.specification.js.map +1 -1
  738. package/dist/esm/engine/frontend-components/index.d.ts +12 -0
  739. package/dist/esm/engine/frontend-components/index.d.ts.map +1 -1
  740. package/dist/esm/engine/frontend-components/index.js +40 -0
  741. package/dist/esm/engine/frontend-components/index.js.map +1 -1
  742. package/dist/esm/engine/frontend-components/internal/_tier2-virtual-slot-spec.factory.d.ts +25 -1
  743. package/dist/esm/engine/frontend-components/internal/_tier2-virtual-slot-spec.factory.d.ts.map +1 -1
  744. package/dist/esm/engine/frontend-components/internal/_tier2-virtual-slot-spec.factory.js +16 -2
  745. package/dist/esm/engine/frontend-components/internal/_tier2-virtual-slot-spec.factory.js.map +1 -1
  746. package/dist/esm/engine/frontend-components/navigation/app-level/navigation-back.frontend-component.specification.js +1 -1
  747. package/dist/esm/engine/frontend-components/navigation/app-level/navigation-back.frontend-component.specification.js.map +1 -1
  748. package/dist/esm/engine/frontend-components/progression/progression-milestone-tracker.frontend-component.specification.d.ts +9 -0
  749. package/dist/esm/engine/frontend-components/progression/progression-milestone-tracker.frontend-component.specification.d.ts.map +1 -1
  750. package/dist/esm/engine/frontend-components/progression/progression-milestone-tracker.frontend-component.specification.js +91 -7
  751. package/dist/esm/engine/frontend-components/progression/progression-milestone-tracker.frontend-component.specification.js.map +1 -1
  752. package/dist/esm/engine/frontend-components/sections/accordion.frontend-component.specification.d.ts.map +1 -1
  753. package/dist/esm/engine/frontend-components/sections/accordion.frontend-component.specification.js +9 -3
  754. package/dist/esm/engine/frontend-components/sections/accordion.frontend-component.specification.js.map +1 -1
  755. package/dist/esm/engine/frontend-components/sections/card.frontend-component.specification.d.ts.map +1 -1
  756. package/dist/esm/engine/frontend-components/sections/card.frontend-component.specification.js +41 -1
  757. package/dist/esm/engine/frontend-components/sections/card.frontend-component.specification.js.map +1 -1
  758. package/dist/esm/engine/frontend-components/sections/collapsible.frontend-component.specification.js +2 -2
  759. package/dist/esm/engine/frontend-components/sections/collapsible.frontend-component.specification.js.map +1 -1
  760. package/dist/esm/engine/frontend-components/sections/tabs.frontend-component.specification.d.ts.map +1 -1
  761. package/dist/esm/engine/frontend-components/sections/tabs.frontend-component.specification.js +19 -1
  762. package/dist/esm/engine/frontend-components/sections/tabs.frontend-component.specification.js.map +1 -1
  763. package/dist/esm/engine/frontend-components/typography/link.frontend-component.specification.js +3 -3
  764. package/dist/esm/engine/frontend-components/typography/link.frontend-component.specification.js.map +1 -1
  765. package/dist/esm/engine/frontend-components/typography/text.frontend-component.specification.d.ts.map +1 -1
  766. package/dist/esm/engine/frontend-components/typography/text.frontend-component.specification.js +21 -1
  767. package/dist/esm/engine/frontend-components/typography/text.frontend-component.specification.js.map +1 -1
  768. package/dist/esm/engine/guidance/resources/progression-state.resource.specification.d.ts +2 -0
  769. package/dist/esm/engine/guidance/resources/progression-state.resource.specification.d.ts.map +1 -1
  770. package/dist/esm/engine/infrastructure/resources/external-data-pipeline-membership.resource.specification.d.ts +4 -0
  771. package/dist/esm/engine/infrastructure/resources/external-data-pipeline-membership.resource.specification.d.ts.map +1 -0
  772. package/dist/esm/engine/infrastructure/resources/external-data-pipeline-membership.resource.specification.js +48 -0
  773. package/dist/esm/engine/infrastructure/resources/external-data-pipeline-membership.resource.specification.js.map +1 -0
  774. package/dist/esm/engine/infrastructure/resources/external-data-pipeline-states.resource.specification.d.ts.map +1 -1
  775. package/dist/esm/engine/infrastructure/resources/external-data-pipeline-states.resource.specification.js +3 -2
  776. package/dist/esm/engine/infrastructure/resources/external-data-pipeline-states.resource.specification.js.map +1 -1
  777. package/dist/esm/engine/infrastructure/resources/job-executions.resource.specification.d.ts +77 -3
  778. package/dist/esm/engine/infrastructure/resources/job-executions.resource.specification.d.ts.map +1 -1
  779. package/dist/esm/engine/infrastructure/resources/job-executions.resource.specification.js +11 -3
  780. package/dist/esm/engine/infrastructure/resources/job-executions.resource.specification.js.map +1 -1
  781. package/dist/esm/engine/infrastructure/resources/job-payload-storage.resource.specification.d.ts +26 -1
  782. package/dist/esm/engine/infrastructure/resources/job-payload-storage.resource.specification.d.ts.map +1 -1
  783. package/dist/esm/engine/infrastructure/resources/job-payload-storage.resource.specification.js +17 -8
  784. package/dist/esm/engine/infrastructure/resources/job-payload-storage.resource.specification.js.map +1 -1
  785. package/dist/esm/engine/infrastructure/resources/system-of-record-partition-assignments.resource.specification.d.ts +49 -0
  786. package/dist/esm/engine/infrastructure/resources/system-of-record-partition-assignments.resource.specification.d.ts.map +1 -0
  787. package/dist/esm/engine/infrastructure/resources/system-of-record-partition-assignments.resource.specification.js +293 -0
  788. package/dist/esm/engine/infrastructure/resources/system-of-record-partition-assignments.resource.specification.js.map +1 -0
  789. package/dist/esm/engine/notifications/resources/m2m-webhook-delivery-log.resource.specification.js +5 -5
  790. package/dist/esm/engine/notifications/resources/m2m-webhook-delivery-log.resource.specification.js.map +1 -1
  791. package/dist/esm/engine/notifications/resources/notification-badges.resource.specification.d.ts +1 -1
  792. package/dist/esm/engine/notifications/resources/webhook-config.resource.specification.js +6 -6
  793. package/dist/esm/engine/notifications/resources/webhook-config.resource.specification.js.map +1 -1
  794. package/dist/esm/engine/notifications/system-emails/security.system-emails.specification.js +3 -3
  795. package/dist/esm/engine/notifications/system-emails/security.system-emails.specification.js.map +1 -1
  796. package/dist/esm/engine/organizations/resources/organization-members.resource.specification.d.ts +1 -1
  797. package/dist/esm/engine/organizations/resources/organization-profiles.resource.specification.js +2 -2
  798. package/dist/esm/engine/organizations/resources/organization-profiles.resource.specification.js.map +1 -1
  799. package/dist/esm/engine/organizations/resources/organization-units.resource.specification.d.ts +3 -1
  800. package/dist/esm/engine/organizations/resources/organization-units.resource.specification.d.ts.map +1 -1
  801. package/dist/esm/engine/organizations/resources/organization-units.resource.specification.js +27 -5
  802. package/dist/esm/engine/organizations/resources/organization-units.resource.specification.js.map +1 -1
  803. package/dist/esm/engine/organizations/resources/organizations.resource.specification.d.ts +1 -1
  804. package/dist/esm/engine/organizations/resources/organizations.resource.specification.d.ts.map +1 -1
  805. package/dist/esm/engine/organizations/resources/organizations.resource.specification.js +31 -12
  806. package/dist/esm/engine/organizations/resources/organizations.resource.specification.js.map +1 -1
  807. package/dist/esm/engine/providers/anthropic.provider.specification.d.ts.map +1 -1
  808. package/dist/esm/engine/providers/anthropic.provider.specification.js +10 -1
  809. package/dist/esm/engine/providers/anthropic.provider.specification.js.map +1 -1
  810. package/dist/esm/engine/providers/apple.provider.specification.d.ts.map +1 -1
  811. package/dist/esm/engine/providers/apple.provider.specification.js +12 -1
  812. package/dist/esm/engine/providers/apple.provider.specification.js.map +1 -1
  813. package/dist/esm/engine/providers/email-preview.provider.specification.d.ts.map +1 -1
  814. package/dist/esm/engine/providers/email-preview.provider.specification.js +9 -1
  815. package/dist/esm/engine/providers/email-preview.provider.specification.js.map +1 -1
  816. package/dist/esm/engine/providers/github.provider.specification.d.ts.map +1 -1
  817. package/dist/esm/engine/providers/github.provider.specification.js +12 -1
  818. package/dist/esm/engine/providers/github.provider.specification.js.map +1 -1
  819. package/dist/esm/engine/providers/google.provider.specification.d.ts.map +1 -1
  820. package/dist/esm/engine/providers/google.provider.specification.js +12 -1
  821. package/dist/esm/engine/providers/google.provider.specification.js.map +1 -1
  822. package/dist/esm/engine/providers/grok.provider.specification.d.ts.map +1 -1
  823. package/dist/esm/engine/providers/grok.provider.specification.js +10 -1
  824. package/dist/esm/engine/providers/grok.provider.specification.js.map +1 -1
  825. package/dist/esm/engine/providers/microsoft.provider.specification.d.ts.map +1 -1
  826. package/dist/esm/engine/providers/microsoft.provider.specification.js +22 -1
  827. package/dist/esm/engine/providers/microsoft.provider.specification.js.map +1 -1
  828. package/dist/esm/engine/providers/mistral.provider.specification.d.ts.map +1 -1
  829. package/dist/esm/engine/providers/mistral.provider.specification.js +10 -1
  830. package/dist/esm/engine/providers/mistral.provider.specification.js.map +1 -1
  831. package/dist/esm/engine/providers/openai.provider.specification.d.ts.map +1 -1
  832. package/dist/esm/engine/providers/openai.provider.specification.js +10 -1
  833. package/dist/esm/engine/providers/openai.provider.specification.js.map +1 -1
  834. package/dist/esm/engine/providers/opencode.provider.specification.d.ts.map +1 -1
  835. package/dist/esm/engine/providers/opencode.provider.specification.js +9 -1
  836. package/dist/esm/engine/providers/opencode.provider.specification.js.map +1 -1
  837. package/dist/esm/engine/providers/perplexity.provider.specification.d.ts.map +1 -1
  838. package/dist/esm/engine/providers/perplexity.provider.specification.js +10 -1
  839. package/dist/esm/engine/providers/perplexity.provider.specification.js.map +1 -1
  840. package/dist/esm/engine/providers/resend.provider.specification.d.ts.map +1 -1
  841. package/dist/esm/engine/providers/resend.provider.specification.js +10 -1
  842. package/dist/esm/engine/providers/resend.provider.specification.js.map +1 -1
  843. package/dist/esm/engine/providers/stripe.provider.specification.d.ts.map +1 -1
  844. package/dist/esm/engine/providers/stripe.provider.specification.js +10 -1
  845. package/dist/esm/engine/providers/stripe.provider.specification.js.map +1 -1
  846. package/dist/esm/engine/providers/twilio.provider.specification.d.ts.map +1 -1
  847. package/dist/esm/engine/providers/twilio.provider.specification.js +10 -1
  848. package/dist/esm/engine/providers/twilio.provider.specification.js.map +1 -1
  849. package/dist/esm/engine/roles/app-audit-evidence-reader.role.specification.d.ts +2 -0
  850. package/dist/esm/engine/roles/app-audit-evidence-reader.role.specification.d.ts.map +1 -0
  851. package/dist/esm/engine/roles/app-audit-evidence-reader.role.specification.js +21 -0
  852. package/dist/esm/engine/roles/app-audit-evidence-reader.role.specification.js.map +1 -0
  853. package/dist/esm/engine/roles/index.d.ts +4 -3
  854. package/dist/esm/engine/roles/index.d.ts.map +1 -1
  855. package/dist/esm/engine/roles/index.js +6 -4
  856. package/dist/esm/engine/roles/index.js.map +1 -1
  857. package/dist/esm/engine/users/resources/anonymous-users.resource.specification.d.ts +5 -3
  858. package/dist/esm/engine/users/resources/anonymous-users.resource.specification.d.ts.map +1 -1
  859. package/dist/esm/engine/users/resources/anonymous-users.resource.specification.js +2 -2
  860. package/dist/esm/engine/users/resources/anonymous-users.resource.specification.js.map +1 -1
  861. package/dist/esm/engine/users/resources/inbound-contacts.resource.specification.d.ts +2 -1
  862. package/dist/esm/engine/users/resources/inbound-contacts.resource.specification.d.ts.map +1 -1
  863. package/dist/esm/engine/users/resources/inbound-contacts.resource.specification.js +2 -2
  864. package/dist/esm/engine/users/resources/inbound-contacts.resource.specification.js.map +1 -1
  865. package/dist/esm/engine/users/resources/user-identity-links.resource.specification.d.ts +1 -0
  866. package/dist/esm/engine/users/resources/user-identity-links.resource.specification.d.ts.map +1 -1
  867. package/dist/esm/engine/users/resources/user-identity-links.resource.specification.js +8 -3
  868. package/dist/esm/engine/users/resources/user-identity-links.resource.specification.js.map +1 -1
  869. package/dist/esm/engine/users/resources/user-preferences-api-reference.examples.d.ts +2 -2
  870. package/dist/esm/engine/users/resources/user-preferences-api-reference.examples.js +2 -2
  871. package/dist/esm/engine/users/resources/user-preferences-api-reference.examples.js.map +1 -1
  872. package/dist/esm/engine/users/resources/user-preferences.resource.specification.d.ts +5 -5
  873. package/dist/esm/engine/users/resources/user-preferences.resource.specification.js +1 -1
  874. package/dist/esm/engine/users/resources/user-preferences.resource.specification.js.map +1 -1
  875. package/dist/esm/engine/users/resources/user-self-preferences.resource.specification.d.ts +4 -4
  876. package/dist/esm/engine/users/resources/user-self-preferences.resource.specification.js +3 -3
  877. package/dist/esm/engine/users/resources/user-self-preferences.resource.specification.js.map +1 -1
  878. package/dist/esm/engine/users/resources/user-self.resource.specification.d.ts +1 -0
  879. package/dist/esm/engine/users/resources/user-self.resource.specification.d.ts.map +1 -1
  880. package/dist/esm/engine/users/resources/user-self.resource.specification.js +1 -1
  881. package/dist/esm/engine/users/resources/user-self.resource.specification.js.map +1 -1
  882. package/dist/esm/engine/users/resources/users.resource.specification.d.ts +1 -0
  883. package/dist/esm/engine/users/resources/users.resource.specification.d.ts.map +1 -1
  884. package/dist/esm/engine/users/resources/users.resource.specification.js +2 -2
  885. package/dist/esm/engine/users/resources/users.resource.specification.js.map +1 -1
  886. package/dist/esm/index.d.ts +39 -0
  887. package/dist/esm/index.d.ts.map +1 -1
  888. package/dist/esm/index.js +39 -0
  889. package/dist/esm/index.js.map +1 -1
  890. package/dist/esm/technical-documentation/application-documentation-chapters.schemas.d.ts +134 -0
  891. package/dist/esm/technical-documentation/application-documentation-chapters.schemas.d.ts.map +1 -0
  892. package/dist/esm/technical-documentation/application-documentation-chapters.schemas.js +142 -0
  893. package/dist/esm/technical-documentation/application-documentation-chapters.schemas.js.map +1 -0
  894. package/dist/esm/technical-documentation/application-documentation-plan-generation.schemas.d.ts +35 -0
  895. package/dist/esm/technical-documentation/application-documentation-plan-generation.schemas.d.ts.map +1 -0
  896. package/dist/esm/technical-documentation/application-documentation-plan-generation.schemas.js +45 -0
  897. package/dist/esm/technical-documentation/application-documentation-plan-generation.schemas.js.map +1 -0
  898. package/dist/esm/technical-documentation/application-documentation-plan-validation.d.ts +33 -0
  899. package/dist/esm/technical-documentation/application-documentation-plan-validation.d.ts.map +1 -0
  900. package/dist/esm/technical-documentation/application-documentation-plan-validation.js +77 -0
  901. package/dist/esm/technical-documentation/application-documentation-plan-validation.js.map +1 -0
  902. package/dist/esm/technical-documentation/application-documentation-plan.family-aspects.d.ts +3 -0
  903. package/dist/esm/technical-documentation/application-documentation-plan.family-aspects.d.ts.map +1 -0
  904. package/dist/esm/technical-documentation/application-documentation-plan.family-aspects.js +40 -0
  905. package/dist/esm/technical-documentation/application-documentation-plan.family-aspects.js.map +1 -0
  906. package/dist/esm/technical-documentation/application-documentation-plan.schemas.d.ts +122 -0
  907. package/dist/esm/technical-documentation/application-documentation-plan.schemas.d.ts.map +1 -0
  908. package/dist/esm/technical-documentation/application-documentation-plan.schemas.js +138 -0
  909. package/dist/esm/technical-documentation/application-documentation-plan.schemas.js.map +1 -0
  910. package/dist/esm/technical-documentation/engine-documentation-specification-catalog.companion.d.ts.map +1 -1
  911. package/dist/esm/technical-documentation/engine-documentation-specification-catalog.companion.js +7 -15
  912. package/dist/esm/technical-documentation/engine-documentation-specification-catalog.companion.js.map +1 -1
  913. package/dist/esm/technical-documentation/technical-documentation-assets.schemas.js +1 -1
  914. package/dist/esm/technical-documentation/technical-documentation-assets.schemas.js.map +1 -1
  915. package/dist/esm/technical-documentation/technical-documentation-capture.schemas.js +1 -1
  916. package/dist/esm/technical-documentation/technical-documentation-capture.schemas.js.map +1 -1
  917. package/dist/esm/technical-documentation/technical-documentation-common.schemas.js +1 -1
  918. package/dist/esm/technical-documentation/technical-documentation-common.schemas.js.map +1 -1
  919. package/dist/esm/technical-documentation/technical-documentation-evidence.schemas.js +1 -1
  920. package/dist/esm/technical-documentation/technical-documentation-evidence.schemas.js.map +1 -1
  921. package/dist/esm/technical-documentation/technical-documentation-lifecycle.schemas.js +1 -1
  922. package/dist/esm/technical-documentation/technical-documentation-lifecycle.schemas.js.map +1 -1
  923. package/dist/esm/technical-documentation/technical-documentation-publication.schemas.js +1 -1
  924. package/dist/esm/technical-documentation/technical-documentation-publication.schemas.js.map +1 -1
  925. package/dist/esm/technical-documentation/technical-documentation-units.schemas.d.ts +14 -0
  926. package/dist/esm/technical-documentation/technical-documentation-units.schemas.d.ts.map +1 -1
  927. package/dist/esm/technical-documentation/technical-documentation-units.schemas.js +16 -3
  928. package/dist/esm/technical-documentation/technical-documentation-units.schemas.js.map +1 -1
  929. package/dist/esm/technical-documentation.exports.d.ts +4 -0
  930. package/dist/esm/technical-documentation.exports.d.ts.map +1 -1
  931. package/dist/esm/technical-documentation.exports.js +24 -0
  932. package/dist/esm/technical-documentation.exports.js.map +1 -1
  933. package/dist/tsconfig.build.tsbuildinfo +1 -1
  934. package/package.json +8 -13
  935. package/dist/esm/application-creation/application-coding-tasks.application-creation.schemas.d.ts +0 -103
  936. package/dist/esm/application-creation/application-coding-tasks.application-creation.schemas.d.ts.map +0 -1
  937. package/dist/esm/application-creation/application-coding-tasks.application-creation.schemas.js +0 -76
  938. package/dist/esm/application-creation/application-coding-tasks.application-creation.schemas.js.map +0 -1
  939. package/dist/esm/application-creation/application-specification-family-identity.application-creation.schemas.d.ts +0 -108
  940. package/dist/esm/application-creation/application-specification-family-identity.application-creation.schemas.d.ts.map +0 -1
  941. package/dist/esm/application-creation/application-specification-family-identity.application-creation.schemas.js +0 -119
  942. package/dist/esm/application-creation/application-specification-family-identity.application-creation.schemas.js.map +0 -1
  943. package/dist/esm/application-creation-playbook-runtime.exports.d.ts +0 -3
  944. package/dist/esm/application-creation-playbook-runtime.exports.d.ts.map +0 -1
  945. package/dist/esm/application-creation-playbook-runtime.exports.js +0 -3
  946. package/dist/esm/application-creation-playbook-runtime.exports.js.map +0 -1
  947. package/dist/esm/engine/frontend-components/billing/billing-promotion-code-input.frontend-component.specification.d.ts +0 -0
  948. package/dist/esm/engine/frontend-components/billing/billing-promotion-code-input.frontend-component.specification.d.ts.map +0 -0
  949. package/dist/esm/engine/frontend-components/billing/billing-promotion-code-input.frontend-component.specification.js +0 -0
  950. package/dist/esm/engine/frontend-components/billing/billing-promotion-code-input.frontend-component.specification.js.map +0 -0
@@ -1,5 +1,8 @@
1
1
  import { jurisdictionRefProblem } from "@wildo-ai/saas-models";
2
2
  import { z } from "zod";
3
+ // Side-effect import: this module calls `.systemEnum()` at load, so the decorators must be installed first —
4
+ // never by the importer's luck (#966). A named import used only as a type would be elided and install nothing.
5
+ import '@wildo-ai/zod-decorators';
3
6
  import { ApplicationAssuranceDocumentFactContributionResolutionKind, } from "../../application-creation/application-document-fact-specification.application-creation.schemas.js";
4
7
  /**
5
8
  * A proposed governed-document draft — a privacy notice or service terms — as CONTENT.
@@ -37,6 +40,89 @@ export const ComplianceDocumentNamespacedRefSchema = z.string().trim().regex(/^[
37
40
  const NamespacedRefSchema = ComplianceDocumentNamespacedRefSchema;
38
41
  const PositiveOrdinalSchema = z.number().int().positive().max(Number.MAX_SAFE_INTEGER);
39
42
  const valuesAreUnique = (values) => new Set(values).size === values.length;
43
+ /**
44
+ * The one namespace `sourcePolicyRefs` may use — see the field's own JSDoc for the measurement.
45
+ *
46
+ * Exported so the family schema and its generation contract share ONE definition, for the reason the
47
+ * ref regex above is shared: two copies of a namespace rule is two things that can disagree, and the
48
+ * disagreement is invisible until a provider answer passes generation and fails the family parse it is
49
+ * normalized into.
50
+ */
51
+ export const COMPLIANCE_DOCUMENT_SOURCE_POLICY_NAMESPACE = "policy:";
52
+ /**
53
+ * Which `sourcePolicyRefs` entries are not policy refs — the check both schemas apply.
54
+ *
55
+ * Returns the offenders rather than a boolean so each message can NAME the ref the author must fix. A
56
+ * generation rejection goes back to the drafting model verbatim as a retry finding, and "one of your
57
+ * source policy refs is wrong" costs an attempt without telling it which.
58
+ */
59
+ export const nonPolicySourceRefs = (sourcePolicyRefs) => sourcePolicyRefs.filter((ref) => !ref.startsWith(COMPLIANCE_DOCUMENT_SOURCE_POLICY_NAMESPACE));
60
+ /**
61
+ * The message a clause citing a fact authority as a source policy gets, at BOTH schemas.
62
+ *
63
+ * Names the FIX rather than the fault, like every other message in this family, because a generation
64
+ * rejection goes back to the drafting model verbatim as a retry finding and a message that only says
65
+ * "wrong" costs an attempt.
66
+ *
67
+ * It used to carry a second job. The drafting method — the playbook's `method.md`, which this package
68
+ * does not own — told every model to put `document-fact-authority:<slug>` here, so this message was
69
+ * the only surface correcting guidance the drafter had just been given, and the first attempt of every
70
+ * draft was rejected for following it. That prose was corrected on 2026-09-10 and now says the field
71
+ * takes `policy:` only and is empty for a fact-backed clause. Keep the message naming the fix anyway:
72
+ * the two documents are owned by different packages and can drift again, and a model that arrives here
73
+ * with a wrong ref still needs to be told what to write instead.
74
+ */
75
+ export const sourcePolicyNamespaceMessage = (clauseRef, offenders) => `clause "${clauseRef}" lists ${offenders.map((ref) => `"${ref}"`).join(", ")} in sourcePolicyRefs, which is not a `
76
+ + "policy ref. sourcePolicyRefs names the application POLICY AREA a statement is sourced from "
77
+ + "(\"policy:retention\", \"policy:security-controls\"). A document FACT — and the authority that "
78
+ + "established it — is reached through factRefs, which already names it; restating it here duplicates "
79
+ + "the citation beside it and resolves to nothing. Cite the policy area, or leave sourcePolicyRefs empty "
80
+ + "when the clause's source is the facts it rests on.";
81
+ /**
82
+ * The one namespace `evidenceRefs` may use: a JUDGED RUN in the application's own assurance repository.
83
+ *
84
+ * Not a finding, not a measurement, not a demand. A run is the unit that carries what a citation must
85
+ * state to be worth anything — the demand judged, the verdict, the window it covers, the framework
86
+ * revision it was judged at, and whether the judge was calibrated — and it is the only one of the four
87
+ * that is committed and addressable. Citing a measurement would cite a number with no verdict over it;
88
+ * citing a finding would cite a defect rather than the pass that answers a clause.
89
+ */
90
+ export const COMPLIANCE_DOCUMENT_EVIDENCE_NAMESPACE = "assurance-run:";
91
+ /**
92
+ * The claim policy under which a document may cite NO internal evidence.
93
+ *
94
+ * Named here rather than compared inline because it is the whole of the public/internal boundary for
95
+ * #297, and because the check is stated as "anything that is not this is internal": a policy the caller
96
+ * could not resolve admits nothing, and a seventh public document is covered the day it is catalogued.
97
+ */
98
+ export const COMPLIANCE_DOCUMENT_PUBLIC_CLAIM_POLICY_REF = "document-claim-policy:public-safe-baseline";
99
+ /**
100
+ * Which `evidenceRefs` entries are not assurance-run refs — the check both schemas apply.
101
+ *
102
+ * ## Why the FIELD is a plain string and this is the shape rule
103
+ *
104
+ * The sibling ref fields use `NamespacedRefSchema`, whose regex is lowercase-only with one colon. A real
105
+ * run ref satisfies neither half: `assurance-run:wonder-todos.2026-09-22:WILDO.ACCESS.LEAST_PRIVILEGE:operation-role-declaration`
106
+ * carries three colons, uppercase objective names and an underscore, because it is composed from the
107
+ * application, the date, the objective and the demand. Typing the field as a namespaced ref would have
108
+ * made every genuine citation unrepresentable — caught by the first test written against a real ref, and
109
+ * the reason this rule is a predicate rather than a regex on the field.
110
+ *
111
+ * Stated as a prefix check rather than a full grammar deliberately: the run ref's composition belongs to
112
+ * the assurance plane, which may extend it, and a second grammar here would be a copy that can disagree
113
+ * with the one place that mints them. What this owes is that the citation names a RUN — the rest is the
114
+ * resolution check, which asks the repository itself.
115
+ */
116
+ export const nonAssuranceRunEvidenceRefs = (evidenceRefs) => evidenceRefs.filter((ref) => !ref.startsWith(COMPLIANCE_DOCUMENT_EVIDENCE_NAMESPACE) || ref.length === COMPLIANCE_DOCUMENT_EVIDENCE_NAMESPACE.length);
117
+ /** The message a clause citing something other than a judged run as evidence gets, at BOTH schemas. */
118
+ export const evidenceNamespaceMessage = (clauseRef, offenders) => `clause "${clauseRef}" lists ${offenders.map((ref) => `"${ref}"`).join(", ")} in evidenceRefs, which is not a `
119
+ + "judged-run ref. evidenceRefs cites a run recorded in this application's assurance repository "
120
+ + "(\"assurance-run:<id>\"), because a run is what carries the demand, the verdict, the window and the "
121
+ + "framework revision a citation must state. A finding, a measurement or a demand ref is none of those. "
122
+ + "Cite the run, or leave evidenceRefs empty and MARK the statement instead.";
123
+ /** The message a clause naming no source at all gets, at BOTH schemas. */
124
+ export const clauseNamesNoSourceMessage = (clauseRef) => `clause "${clauseRef}" names no source: it cites no fact and no policy area. Prose with no source is `
125
+ + "invention. Cite the declared fact the statement rests on, or name the policy area it is sourced from.";
40
126
  /**
41
127
  * How completely a single statement is established — and, when it is not, WHO can close it.
42
128
  *
@@ -94,6 +180,46 @@ export const ComplianceStatementIncompletenessSchema = z.strictObject({
94
180
  * configuration surface to edit. A row whose remedy is unnamed is a row nobody picks up.
95
181
  */
96
182
  closedBy: z.string().trim().min(1),
183
+ /**
184
+ * The declared facts whose ARRIVAL would close this gap — the derivable half of `needs`.
185
+ *
186
+ * ## Why prose alone rots, measured
187
+ *
188
+ * `needs` and `closedBy` are prose, and prose asserting the ABSENCE of a configuration value is true
189
+ * at the instant it is written and false the instant somebody declares that value. Nothing observes
190
+ * the transition. Wonder CRM's `clause:purposes-and-lawful-bases-not-declared` said *"The lawful
191
+ * basis for each purpose has not yet been declared"* and named `operatorComplianceIdentity.lawfulBases`
192
+ * as what it needed; the application declared exactly that on 2026-09-02, and the notice went on
193
+ * telling a reader something untrue about the application's own configuration for a week. It was found
194
+ * by a human reading the file — the same way the dangling fact refs were found, and for the same
195
+ * reason: a marked clause is precisely the one nobody re-reads.
196
+ *
197
+ * So a clause that asserts an absence owes a DERIVATION rather than a sentence
198
+ * (`.claude/rules/derive-before-you-ask.md`). This field is that derivation's subject: name the fact
199
+ * whose absence you are asserting, and `validateComplianceDocumentCandidateFactBinding` reports the
200
+ * clause as STALE the moment the application declares it — total over
201
+ * {@link ComplianceDocumentFactAvailability}, so an availability member added tomorrow forces an
202
+ * answer here rather than being silently omitted.
203
+ *
204
+ * ## Optional, and the residual is stated rather than hidden
205
+ *
206
+ * `.optional()` because not every gap is expressible as a declared fact. Two of Wonder CRM's five
207
+ * marked clauses wait on something no fact family models — an effective-date decision, a security
208
+ * summary the framework cannot yet express — and requiring a ref there would refuse a legitimately
209
+ * marked clause with a remedy that does not exist.
210
+ *
211
+ * **The residual is therefore real and is named here so it is not mistaken for coverage: a clause
212
+ * that names no awaited fact can still rot, and nothing will say so.** Narrowing it means modelling
213
+ * more gaps as facts, not tightening this field. The GENERATION contract states it as
214
+ * required-and-nullable for the reason every sibling field there does — an omitted key and a
215
+ * considered "no fact models this" are different answers, and a model that may drop the key gives no
216
+ * way to tell them apart.
217
+ *
218
+ * Not the same field as the clause's `factRefs`. `factRefs` are the facts a clause RESTS ON; these
219
+ * are the facts it is WAITING FOR, and a clause routinely has both — Wonder CRM's lawful-bases clause
220
+ * rests on `document-fact:processing-purposes` while waiting on the bases.
221
+ */
222
+ awaitingFactRefs: z.array(ComplianceDocumentNamespacedRefSchema).min(1).optional(),
97
223
  });
98
224
  /** One clause of the draft: the prose a reader sees, and what it rests on. */
99
225
  export const ComplianceDocumentCandidateClauseSchema = z
@@ -134,15 +260,87 @@ export const ComplianceDocumentCandidateClauseSchema = z
134
260
  * contract must require it explicitly instead: a model permitted to omit the key would silently
135
261
  * claim `DERIVED`, which is the one direction that lets invention back in.
136
262
  */
137
- completeness: z.enum(ComplianceStatementCompleteness).default(ComplianceStatementCompleteness.DERIVED),
263
+ completeness: z.enum(ComplianceStatementCompleteness).systemEnum('ComplianceStatementCompleteness').default(ComplianceStatementCompleteness.DERIVED),
138
264
  /** Required when `completeness` is not `DERIVED`, forbidden when it is — see the superRefine below. */
139
265
  incompleteness: ComplianceStatementIncompletenessSchema.optional(),
140
266
  /** The document facts this clause asserts. A clause that asserts none cites none — an empty list is valid. */
141
267
  factRefs: z.array(NamespacedRefSchema),
142
- /** The application policies the clause derives from. At least one: prose with no source is invention. */
143
- sourcePolicyRefs: z.array(NamespacedRefSchema).min(1),
144
- /** The claim guards a reviewer checks this clause against. */
268
+ /**
269
+ * The application POLICY AREAS this clause is sourced from — `policy:retention`, `policy:security-controls`.
270
+ *
271
+ * ## Two corrections, and the second is what the field is for
272
+ *
273
+ * This carried `.min(1)` and no namespace constraint until 2026-09-09. Measured on Wonder CRM's
274
+ * landed privacy notice: **37 refs, 32 of them in the `document-fact-authority:` namespace, and 0 of
275
+ * those 32 resolved to any authority the application declares.** They were not a different
276
+ * vocabulary — every one was a NEAR-MISS of a real declared authority, three of them a literal
277
+ * prefix of one (`…governance-system-boundaries-and-lifecycle` for the declared
278
+ * `…governance-system-boundaries`). The drafter had invented each slug rather than reading it,
279
+ * exactly the rename drift that broke the fact citations one level down, and nothing could see it
280
+ * because this field resolves against nothing.
281
+ *
282
+ * **`.min(1)` is what produced them.** Per clause, the 32 were a 1:1 restatement of that clause's own
283
+ * `factRefs` in longer phrasing — the operator-identity clause cites `document-fact:controller-and-contact`
284
+ * and `document-fact:operator-legal-identity`, then names those same two subjects again here. A clause
285
+ * resting on declared facts already NAMES its source; the constraint demanded a second naming, and the
286
+ * only material available was the facts it had just cited. So the field's own guard manufactured the
287
+ * duplication it was meant to prevent.
288
+ *
289
+ * ## What it is now
290
+ *
291
+ * A fact authority is reached THROUGH `factRefs` — the facts file declares each fact's
292
+ * `authority.authorityRef`, so restating it here is hand-maintaining a derivable value at N sites
293
+ * (`.claude/rules/derive-before-you-ask.md`). This field therefore carries the `policy:` namespace
294
+ * only, and is EMPTY for a clause whose source is its facts.
295
+ *
296
+ * The guard that matters survives, stated over both fields rather than over this one: a clause must
297
+ * name a source — at least one `factRef` or at least one `sourcePolicyRef` — because prose with no
298
+ * source is invention. See the `superRefine` below.
299
+ *
300
+ * **What this does NOT close:** `policy:*` names a policy AREA, not a record, and no registry
301
+ * resolves it. That is honest — a topic label is what a reviewer needs when a clause rests on no
302
+ * fact — but it means this field is still unresolvable, and the check below constrains its SHAPE
303
+ * rather than its referent.
304
+ */
305
+ sourcePolicyRefs: z.array(NamespacedRefSchema),
306
+ /**
307
+ * The claim guards a reviewer checks this clause against: the drafter's own restrictions, plus — derived
308
+ * when a generated candidate is normalized — the catalog guard of every blueprint clause this clause
309
+ * `satisfiesClauseRefs` (#1452). A hand-authored candidate supplies both itself.
310
+ */
145
311
  claimGuardRefs: z.array(NamespacedRefSchema).min(1),
312
+ /**
313
+ * The judged runs in this application's OWN assurance repository that this clause rests on (#297).
314
+ *
315
+ * ## What it is for, and the one thing it is not
316
+ *
317
+ * A governance document is where an operator says what its controls DO, and until this existed no
318
+ * clause could say that at all: assurance findings and clean passes were produced, judged, committed
319
+ * — and citable by nothing. So an operating statement had exactly two forms, an unsupported claim or
320
+ * a mark, and the mark was correct.
321
+ *
322
+ * It is SELF-ATTESTED INTERNAL EVIDENCE and must never read as anything else. The application judged
323
+ * its own product with its own harness; that is worth stating to an assurance reader inside the
324
+ * operator's organisation, and it is not an audit, an attestation or an independent opinion. The
325
+ * brief that carries these runs to a drafter labels them so, and the claim guards refuse the
326
+ * sentence that would launder them.
327
+ *
328
+ * ## Why it is OPTIONAL and empty is the norm
329
+ *
330
+ * Almost every clause rests on facts, and a clause that cites a run it does not need has made its
331
+ * reader check a citation for nothing. Empty is not a gap here — it is the ordinary case — which is
332
+ * why this array is absent from the "names no source" rule: a fact or a policy area is what sources
333
+ * a statement, and a run is what SUPPORTS one that asserts operation.
334
+ *
335
+ * ## Where it is refused
336
+ *
337
+ * Two refusals, and both live outside this schema because both need something it cannot see. A ref
338
+ * that resolves to no committed run is refused by the binding validator, which can read the
339
+ * repository. ANY entry in a document under `document-claim-policy:public-safe-baseline` is refused
340
+ * there too — the claim POLICY decides, never the namespace, because what makes a public operating
341
+ * claim wrong is the reader it reaches rather than the evidence behind it (Paul, 2026-09-21).
342
+ */
343
+ evidenceRefs: z.array(z.string().trim().min(1)).optional(),
146
344
  })
147
345
  .superRefine((clause, context) => {
148
346
  if (!valuesAreUnique(clause.factRefs)) {
@@ -154,6 +352,37 @@ export const ComplianceDocumentCandidateClauseSchema = z
154
352
  if (!valuesAreUnique(clause.satisfiesClauseRefs ?? [])) {
155
353
  context.addIssue({ code: "custom", message: "satisfied clause references must be unique", path: ["satisfiesClauseRefs"] });
156
354
  }
355
+ if (!valuesAreUnique(clause.sourcePolicyRefs)) {
356
+ context.addIssue({ code: "custom", message: "source policy references must be unique", path: ["sourcePolicyRefs"] });
357
+ }
358
+ // Same reason as every sibling list: a duplicated citation reads to a coverage count as two pieces
359
+ // of evidence, and to a reviewer as two runs to open.
360
+ if (!valuesAreUnique(clause.evidenceRefs ?? [])) {
361
+ context.addIssue({ code: "custom", message: "evidence references must be unique", path: ["evidenceRefs"] });
362
+ }
363
+ const nonRun = nonAssuranceRunEvidenceRefs(clause.evidenceRefs ?? []);
364
+ if (nonRun.length > 0) {
365
+ context.addIssue({ code: "custom", message: evidenceNamespaceMessage(clause.clauseRef, nonRun), path: ["evidenceRefs"] });
366
+ }
367
+ /*
368
+ * The namespace rule and the names-a-source rule, both stated once and applied at this schema and at
369
+ * the generation contract through the shared helpers above. See `sourcePolicyRefs`' JSDoc for the 32
370
+ * measured offenders that produced them.
371
+ */
372
+ const nonPolicy = nonPolicySourceRefs(clause.sourcePolicyRefs);
373
+ if (nonPolicy.length > 0) {
374
+ context.addIssue({ code: "custom", message: sourcePolicyNamespaceMessage(clause.clauseRef, nonPolicy), path: ["sourcePolicyRefs"] });
375
+ }
376
+ /*
377
+ * The guard `sourcePolicyRefs.min(1)` used to carry, moved to where it is TRUE. A clause resting on
378
+ * declared facts already names its source; demanding a second naming is what produced 32 invented
379
+ * authority slugs. What must never happen is a clause naming NEITHER — that is prose with no source,
380
+ * and it is refused whatever the clause's completeness claims, because a marked clause resting on
381
+ * nothing at all still says something in a published document.
382
+ */
383
+ if (clause.factRefs.length === 0 && clause.sourcePolicyRefs.length === 0) {
384
+ context.addIssue({ code: "custom", message: clauseNamesNoSourceMessage(clause.clauseRef), path: ["sourcePolicyRefs"] });
385
+ }
157
386
  /*
158
387
  * The pairing is enforced in BOTH directions, and the second direction is the one that matters.
159
388
  *
@@ -390,11 +619,169 @@ export var ComplianceDocumentCandidateFactBindingIssueKind;
390
619
  (function (ComplianceDocumentCandidateFactBindingIssueKind) {
391
620
  /** A clause asserts a fact the application never declared. The defect this check exists for. */
392
621
  ComplianceDocumentCandidateFactBindingIssueKind["UNDECLARED_CLAUSE_FACT"] = "UNDECLARED_CLAUSE_FACT";
622
+ /**
623
+ * A clause MARKED incomplete cites a fact ref that resolves to nothing.
624
+ *
625
+ * Separate from {@link ComplianceDocumentCandidateFactBindingIssueKind.UNDECLARED_CLAUSE_FACT}
626
+ * because the two are different defects with different remedies, and merging them would say
627
+ * something false about the marked one. A `DERIVED` clause citing an undeclared fact has ASSERTED
628
+ * something nobody established — invention. A marked clause asserts nothing, so its broken citation
629
+ * is not invention; it is a reference that points at no fact, and the fix is to drop it (an empty
630
+ * `factRefs` is valid and is what a clause asserting nothing carries) or to cite one that exists.
631
+ *
632
+ * Added 2026-09-09. Until then a marked clause was exempt from the check ENTIRELY, so a dangling ref
633
+ * on one was invisible — measured on wonder-crm, where three refs resolving to nothing sat on two
634
+ * `NEEDS_DECISION` clauses while the check answered `ok: true` and the coherence report answered
635
+ * "Dangling references: None". Fact refs are model-named and unstable across runs, so re-landing the
636
+ * facts renames them out from under a document that still cites them; the marked clauses are exactly
637
+ * the ones whose citations nobody re-reads.
638
+ */
639
+ ComplianceDocumentCandidateFactBindingIssueKind["UNRESOLVED_MARKED_CLAUSE_FACT"] = "UNRESOLVED_MARKED_CLAUSE_FACT";
640
+ /**
641
+ * A clause MARKED incomplete is WAITING for a fact the application has since DECLARED. The clause rotted.
642
+ *
643
+ * Added 2026-09-09, against a live instance. Wonder CRM's `clause:purposes-and-lawful-bases-not-declared`
644
+ * asserted *"The lawful basis for each purpose has not yet been declared"* and named
645
+ * `operatorComplianceIdentity.lawfulBases` as what it needed; the application declared exactly that on
646
+ * 2026-09-02, and every check in this family answered clean — because every check asked whether a
647
+ * citation RESOLVES, and this clause's defect is the opposite: what it waits for arrived.
648
+ *
649
+ * The other three kinds are about a reference pointing at nothing. This one is about a reference
650
+ * pointing at something that did not exist when the sentence was written. Merging it with
651
+ * {@link ComplianceDocumentCandidateFactBindingIssueKind.UNRESOLVED_MARKED_CLAUSE_FACT} would invert the
652
+ * remedy: there the fix is to DROP the reference, here it is to REDRAFT the clause, because the document
653
+ * now states something untrue about the application's own configuration.
654
+ *
655
+ * A `DECLARED_NOT_APPLICABLE` fact triggers it too, and deliberately: the family schema requires a
656
+ * `reason` on such a declaration, so "does not apply" is a considered answer to the very question the
657
+ * clause says is open. A clause waiting for an answer that has been recorded is stale either way.
658
+ */
659
+ ComplianceDocumentCandidateFactBindingIssueKind["STALE_MARKED_CLAUSE"] = "STALE_MARKED_CLAUSE";
393
660
  /** A variant selection is justified by a fact the application never declared. */
661
+ /**
662
+ * A clause cites a judged run this application's assurance repository does not hold (#297).
663
+ *
664
+ * The evidence twin of {@link UNDECLARED_CLAUSE_FACT}, and refused for the same reason with a sharper
665
+ * edge: a citation that resolves to nothing is bad in a fact and worse in EVIDENCE, because the whole
666
+ * point of citing a run is that a reader can open it and see what was measured. An unresolvable
667
+ * `assurance-run:` ref is a claim of having been measured, with nothing behind it.
668
+ *
669
+ * Raised only when the repository COULD be read. An unreadable repository says nothing about whether a
670
+ * run exists, and refusing on it would turn a missing tool into a false finding about a document
671
+ * (`negative-results-require-a-positive-probe.md`).
672
+ */
673
+ ComplianceDocumentCandidateFactBindingIssueKind["UNRESOLVED_CLAUSE_EVIDENCE"] = "UNRESOLVED_CLAUSE_EVIDENCE";
674
+ /**
675
+ * A clause cites a run that EXISTS and whose judgement never settled the question (#297).
676
+ *
677
+ * The citation resolves, the run is real, and it supports nothing: `INSUFFICIENT_EVIDENCE` says the
678
+ * evidence needed to decide was not obtained, and `NONCONFORMITY` says the control fell short. A
679
+ * clause resting on either asserts that a measurement established something it did not — which is a
680
+ * worse sentence than the mark it replaced, because it arrives wearing a citation.
681
+ *
682
+ * Mechanically decidable, which is why it is refused here rather than left to the advisory judge: the
683
+ * caller that read the repository already knows each run's verdict, and "may this run support an
684
+ * operating claim" is a property of the run, not a judgement about the prose.
685
+ */
686
+ ComplianceDocumentCandidateFactBindingIssueKind["UNCONCLUDED_CLAUSE_EVIDENCE"] = "UNCONCLUDED_CLAUSE_EVIDENCE";
687
+ /**
688
+ * A clause in a PUBLIC document cites internal evidence at all (#297, decided by Paul 2026-09-21).
689
+ *
690
+ * Not about the run, and not about whether the evidence is good. Self-attested internal evidence may be
691
+ * cited by the four internal governance documents and by nothing else until Gate 3 arms the publication
692
+ * gate, because what makes a public operating claim wrong is the READER it reaches: a data subject
693
+ * reading a privacy notice cannot weigh "the operator judged its own product with its own harness",
694
+ * and a sentence that invites them to is the laundering this whole lane exists to prevent.
695
+ *
696
+ * Keyed on the document's CLAIM POLICY rather than on its ref, so a seventh public document is covered
697
+ * the day it is catalogued, and a governance document that is ever placed under the public baseline
698
+ * loses the citation with it.
699
+ */
700
+ ComplianceDocumentCandidateFactBindingIssueKind["PUBLIC_DOCUMENT_EVIDENCE_CITATION"] = "PUBLIC_DOCUMENT_EVIDENCE_CITATION";
394
701
  ComplianceDocumentCandidateFactBindingIssueKind["UNDECLARED_VARIANT_FACT"] = "UNDECLARED_VARIANT_FACT";
395
702
  /** A variant selection is justified by a fact the application declared NOT APPLICABLE. */
396
703
  ComplianceDocumentCandidateFactBindingIssueKind["NOT_APPLICABLE_VARIANT_FACT"] = "NOT_APPLICABLE_VARIANT_FACT";
397
704
  })(ComplianceDocumentCandidateFactBindingIssueKind || (ComplianceDocumentCandidateFactBindingIssueKind = {}));
705
+ /**
706
+ * Which issue kinds mean *the citation resolves to nothing*, as opposed to *it resolves to an answer a
707
+ * reviewer should look at*.
708
+ *
709
+ * Exported because a consumer that wants only the first group must not hand-list the members. The
710
+ * coherence report did exactly that — `kind === UNDECLARED_CLAUSE_FACT || kind === UNDECLARED_VARIANT_FACT`
711
+ * — which is a second enumeration of a vocabulary owned here, and the shape that silently omits the
712
+ * next member added (`.claude/rules/invariant-call-site-enumeration.md`). A `Record` keyed by the enum
713
+ * makes a new member a COMPILE ERROR at this one site instead of a silent omission at each consumer.
714
+ *
715
+ * A `NOT_APPLICABLE_*` citation is `false`: the fact exists and carries a recorded "does not apply", so
716
+ * nothing dangles — it is a drafting observation the generation loop already shows a reviewer, and
717
+ * promoting it to a dangling-reference finding would make that report mostly not about dangling
718
+ * references.
719
+ */
720
+ export const COMPLIANCE_DOCUMENT_FACT_BINDING_ISSUE_RESOLVES_TO_NOTHING = {
721
+ [ComplianceDocumentCandidateFactBindingIssueKind.UNDECLARED_CLAUSE_FACT]: true,
722
+ [ComplianceDocumentCandidateFactBindingIssueKind.UNRESOLVED_MARKED_CLAUSE_FACT]: true,
723
+ // The awaited fact EXISTS — that is the whole finding. Nothing dangles, so this is not a dangling
724
+ // reference and must not be promoted as one; it is a staleness finding and needs its own report.
725
+ [ComplianceDocumentCandidateFactBindingIssueKind.STALE_MARKED_CLAUSE]: false,
726
+ // The cited run is absent from the repository — a reference to nothing, exactly like an undeclared fact.
727
+ [ComplianceDocumentCandidateFactBindingIssueKind.UNRESOLVED_CLAUSE_EVIDENCE]: true,
728
+ // The run EXISTS and resolves; what is wrong is what it says. Reporting this as a dangling reference
729
+ // would send a reader looking for a run that is not missing.
730
+ [ComplianceDocumentCandidateFactBindingIssueKind.UNCONCLUDED_CLAUSE_EVIDENCE]: false,
731
+ // The run may exist and resolve perfectly; what is wrong is citing it HERE. Promoting this to a
732
+ // dangling-reference finding would report a policy violation as a broken link and send a reader
733
+ // looking for a run that is not missing.
734
+ [ComplianceDocumentCandidateFactBindingIssueKind.PUBLIC_DOCUMENT_EVIDENCE_CITATION]: false,
735
+ [ComplianceDocumentCandidateFactBindingIssueKind.UNDECLARED_VARIANT_FACT]: true,
736
+ [ComplianceDocumentCandidateFactBindingIssueKind.NOT_APPLICABLE_VARIANT_FACT]: false,
737
+ };
738
+ /**
739
+ * Whether an issue kind can only be decided when the application's DECLARED FACTS were loaded.
740
+ *
741
+ * A caller that could not load them must skip the fact rules — an unloaded map is not an empty one, and
742
+ * refusing every citation because nobody read the facts file would make a document unproducible for a
743
+ * reason that is about the HOST rather than the document. What that caller must NOT skip is the evidence
744
+ * rules: the claim policy is a property of the document's own catalog entry and needs no facts at all,
745
+ * and run resolution needs the assurance repository rather than the facts.
746
+ *
747
+ * Measured 2026-09-22: the landing's `collectUndeclaredDocumentFactFindings` returned EARLY on absent
748
+ * facts, before the validator ran, so a host with no facts loaded got no evidence enforcement either —
749
+ * one guard's precondition silently disabling another. This record is what lets the skip be precise.
750
+ *
751
+ * A `Record` keyed by the enum rather than a list, for the reason its sibling above is one: a derivation
752
+ * that is not TOTAL over its vocabulary silently omits the member added tomorrow. A new issue kind is a
753
+ * compile error here, at the vocabulary's owner, rather than a rule that quietly stops being applied.
754
+ */
755
+ export const COMPLIANCE_DOCUMENT_FACT_BINDING_ISSUE_NEEDS_DECLARED_FACTS = {
756
+ [ComplianceDocumentCandidateFactBindingIssueKind.UNDECLARED_CLAUSE_FACT]: true,
757
+ [ComplianceDocumentCandidateFactBindingIssueKind.UNRESOLVED_MARKED_CLAUSE_FACT]: true,
758
+ [ComplianceDocumentCandidateFactBindingIssueKind.STALE_MARKED_CLAUSE]: true,
759
+ [ComplianceDocumentCandidateFactBindingIssueKind.UNDECLARED_VARIANT_FACT]: true,
760
+ [ComplianceDocumentCandidateFactBindingIssueKind.NOT_APPLICABLE_VARIANT_FACT]: true,
761
+ // Decided from the assurance repository and the document's catalog entry. Neither reads a fact.
762
+ [ComplianceDocumentCandidateFactBindingIssueKind.UNRESOLVED_CLAUSE_EVIDENCE]: false,
763
+ [ComplianceDocumentCandidateFactBindingIssueKind.UNCONCLUDED_CLAUSE_EVIDENCE]: false,
764
+ [ComplianceDocumentCandidateFactBindingIssueKind.PUBLIC_DOCUMENT_EVIDENCE_CITATION]: false,
765
+ };
766
+ /**
767
+ * Whether a given availability means the awaited question HAS BEEN ANSWERED, and the clause waiting for
768
+ * it is therefore stale.
769
+ *
770
+ * A `Record` keyed by the enum rather than a comparison, for the reason the sibling record above exists:
771
+ * this is the derivation that replaces a sentence asserting an absence, and a derivation that is not
772
+ * TOTAL over its vocabulary silently omits the member added tomorrow
773
+ * (`.claude/rules/derive-before-you-ask.md`, rule 3). A third availability member is a compile error
774
+ * here, at the vocabulary's owner, instead of a case the staleness check quietly does not report.
775
+ *
776
+ * Absence from the map is the remaining case and is handled where the map is read: a fact nobody declared
777
+ * has not arrived, so the clause is still legitimately waiting.
778
+ */
779
+ export const COMPLIANCE_DOCUMENT_FACT_AVAILABILITY_ANSWERS_THE_QUESTION = {
780
+ [ComplianceDocumentFactAvailability.DECLARED_WITH_VALUE]: true,
781
+ // A declared "does not apply" carries a required `reason`, so it is an answer, not silence — see the
782
+ // kind's JSDoc.
783
+ [ComplianceDocumentFactAvailability.DECLARED_NOT_APPLICABLE]: true,
784
+ };
398
785
  /**
399
786
  * Refuse a draft that ASSERTS a fact the application never wrote down — and let it MARK one instead.
400
787
  *
@@ -402,15 +789,35 @@ export var ComplianceDocumentCandidateFactBindingIssueKind;
402
789
  *
403
790
  * | clause completeness | cited fact | verdict |
404
791
  * |---|---|---|
405
- * | `DERIVED` | undeclared | **ERROR** — invention |
406
- * | `DERIVED` | declared `NOT_APPLICABLE` | **ERROR** — a claim resting on a non-answer |
407
- * | `NEEDS_*` | undeclared | **OK** — this is precisely the fact it is waiting for |
408
- * | `NEEDS_*` | declared with a value | **OK** — incomplete for some other reason |
792
+ * | `DERIVED` | undeclared | **`UNDECLARED_CLAUSE_FACT`** — invention |
793
+ * | `DERIVED` | declared `NOT_APPLICABLE` | **OK** — a recorded absence supports a negative statement (corrected 2026-08-29) |
794
+ * | `NEEDS_*` | undeclared | **`UNRESOLVED_MARKED_CLAUSE_FACT`** — the citation resolves to nothing (corrected 2026-09-09) |
795
+ * | `NEEDS_*` | declared, either way | **OK** — incomplete for some other reason |
409
796
  *
410
797
  * The distinction the whole capability turns on is ASSERT versus MARK. A clause may say "this is not
411
798
  * yet established"; it may not say something untrue. Incompleteness is CONTENT — the reader sees it,
412
799
  * the register lists it, a human closes it later — and it never gates producing the document.
413
800
  *
801
+ * ## THREE questions, not one — and only the first depends on completeness
802
+ *
803
+ * A clause is exempt from what it may ASSERT when it marks itself incomplete. It is never exempt from
804
+ * whether its citations RESOLVE: a ref pointing at no declared fact is broken whatever the clause
805
+ * claims. Conflating the two hid three dangling refs on two `NEEDS_DECISION` clauses in a landed
806
+ * wonder-crm notice, behind `ok: true` — see the split at the clause loop for the measurement.
807
+ *
808
+ * The third runs the other way and was added 2026-09-09: does a marked clause's stated gap still EXIST?
809
+ * A clause asserting that something is not declared rots the moment somebody declares it, and every
810
+ * resolution rule above answers clean over a rotted clause, because its references resolve perfectly.
811
+ * `incompleteness.awaitingFactRefs` names the fact whose absence the clause asserts, and a fact that has
812
+ * since been declared raises {@link ComplianceDocumentCandidateFactBindingIssueKind.STALE_MARKED_CLAUSE}
813
+ * — total over {@link ComplianceDocumentFactAvailability} rather than comparing to one member, so a new
814
+ * availability cannot be silently skipped. Its bound is stated at the field: a clause that names no
815
+ * awaited fact can still rot, and narrowing that means modelling more gaps as facts.
816
+ *
817
+ * Marking therefore costs nothing a drafter should mind: `factRefs` is "the facts this clause asserts"
818
+ * and an empty list is valid, so a clause waiting for a fact names it in `incompleteness.needs` rather
819
+ * than citing a ref nobody declared.
820
+ *
414
821
  * ## Variant selections stay strict, and that is not an oversight
415
822
  *
416
823
  * A clause STATES something and may state that it does not know. A variant selection DECIDES something
@@ -460,8 +867,19 @@ export var ComplianceDocumentCandidateFactBindingIssueKind;
460
867
  * An earlier revision of this comment justified the branch as "the application declared no facts", which
461
868
  * names a state the schema forbids and would send the next reader looking for it.
462
869
  */
463
- export function validateComplianceDocumentCandidateFactBinding(candidate, declaredFacts) {
870
+ export function validateComplianceDocumentCandidateFactBinding(candidate, declaredFacts,
871
+ /**
872
+ * What a clause's `evidenceRefs` may bind to, and whether this document may carry any (#297).
873
+ *
874
+ * REQUIRED, with no default, and that is the design decision. An optional parameter would make every
875
+ * caller that forgot it silently exempt from both evidence rules — the shape
876
+ * `.claude/rules/invariant-call-site-enumeration.md` is written about — while a required one makes the
877
+ * compiler enumerate the call sites for whoever adds the next one.
878
+ */
879
+ evidenceBinding) {
464
880
  const issues = [];
881
+ const documentMayCiteInternalEvidence = evidenceBinding.claimPolicyRef !== undefined
882
+ && evidenceBinding.claimPolicyRef !== COMPLIANCE_DOCUMENT_PUBLIC_CLAIM_POLICY_REF;
465
883
  /*
466
884
  * One classifier for both citation sites. The two sites differ only in their path and their noun, and
467
885
  * a second copy of the availability branch is how the clause rule and the variant rule drift apart
@@ -483,7 +901,8 @@ export function validateComplianceDocumentCandidateFactBinding(candidate, declar
483
901
  candidate.sections.forEach((section, sectionIndex) => {
484
902
  section.clauses.forEach((clause, clauseIndex) => {
485
903
  /*
486
- * A clause that says it is NOT established is exempt, and this line is the whole reframe.
904
+ * A clause that says it is NOT established is exempt from the ASSERTION rule, and that is the
905
+ * 2026-08-28 reframe. It is NOT exempt from the RESOLUTION rule — see the split below.
487
906
  *
488
907
  * An earlier revision refused any clause citing an undeclared fact. That refusal was correct
489
908
  * about invention and wrong about incompleteness: it made a document unproducible until every
@@ -499,6 +918,37 @@ export function validateComplianceDocumentCandidateFactBinding(candidate, declar
499
918
  * `DERIVED` remains strict about the thing this check exists for: a fact the application never
500
919
  * declared is invention, and no marking makes it citable.
501
920
  *
921
+ * ## The exemption was one line too wide — corrected 2026-09-09
922
+ *
923
+ * The reframe was implemented as `if (clause.completeness !== DERIVED) return;` ABOVE this loop,
924
+ * so a marked clause left the function before any citation was looked at. That answered TWO
925
+ * questions as one, and only the first of them is completeness-dependent:
926
+ *
927
+ * | question | depends on completeness? |
928
+ * |---|---|
929
+ * | may this clause ASSERT the thing it says? | **yes** — a marked clause asserts nothing |
930
+ * | does each cited ref RESOLVE to a declared fact? | **no** — a ref pointing at nothing is broken whatever the clause claims |
931
+ *
932
+ * Measured on wonder-crm: three refs resolving to nothing sat on two `NEEDS_DECISION` clauses,
933
+ * this check answered `ok: true` with 0 issues, and the coherence report answered "Dangling
934
+ * references: None". They were found by a human reading the file. Fact refs are model-named and
935
+ * unstable — across three runs on unchanged inputs, 2 of ~20 survived — so re-landing the facts
936
+ * renames them out from under a document that still cites them, and a marked clause is precisely
937
+ * where nobody re-reads the citation.
938
+ *
939
+ * So the gate moved INSIDE the loop and now selects the issue KIND rather than skipping the
940
+ * clause. Nothing about what a marked clause may SAY has changed; what changed is that its
941
+ * citations are read. The remedy is cheap and is named in the message: `factRefs` are "the
942
+ * document facts this clause asserts", and an empty list is valid — a clause waiting for a fact
943
+ * says so in `incompleteness.needs`, it does not cite a ref that does not exist.
944
+ *
945
+ * Note what the split does NOT currently produce at this site: a second, completeness-dependent
946
+ * verdict. Since the 2026-08-29 correction below, a `NOT_APPLICABLE` fact is citable by every
947
+ * clause, so at the CLAUSE site the assertion rule expresses itself only in the kind and the
948
+ * repair instruction. That is honest rather than vestigial — the two questions are now named and
949
+ * kinded separately, so a future assertion rule (say, one about a declaration's AUTHORITY) has an
950
+ * obvious home and moves nothing else. The VARIANT site below keeps a live second verdict.
951
+ *
502
952
  * ## A NOT_APPLICABLE fact IS citable — corrected 2026-08-29, against live evidence
503
953
  *
504
954
  * This refused a DERIVED clause citing a NOT_APPLICABLE fact, on the reasoning that such a fact is
@@ -522,28 +972,113 @@ export function validateComplianceDocumentCandidateFactBinding(candidate, declar
522
972
  * fact. Nothing here reads a clause's prose, so a clause misusing a KNOWN fact was never caught
523
973
  * either; the guarantee is citation, not semantics, and it is unchanged.
524
974
  */
525
- if (clause.completeness !== ComplianceStatementCompleteness.DERIVED)
526
- return;
975
+ const marked = clause.completeness !== ComplianceStatementCompleteness.DERIVED;
527
976
  for (const factRef of clause.factRefs) {
528
977
  /*
529
- * `undefined` is the correction below, and it makes UNDECLARED_CLAUSE_FACT the ONLY kind a
530
- * clause can raise — there is deliberately no not-applicable counterpart in the vocabulary.
978
+ * `undefined` for the not-applicable arm makes a recorded "does not apply" citable by ANY
979
+ * clause — see the correction above. So there is deliberately no not-applicable counterpart in
980
+ * the clause half of the vocabulary; one existed until 2026-08-30 and nothing could emit it.
531
981
  *
532
- * One existed until 2026-08-30, described as "reported for a MARKED clause only". Measured,
533
- * it was unreachable from anywhere: a marked clause returns above, before any classification,
534
- * and a DERIVED clause passes `undefined` here. A vocabulary member nothing can emit is worse
535
- * than absent — a consumer branching on it writes code that can never run.
982
+ * The completeness gate that used to stand ABOVE this loop is now inside it, selecting the
983
+ * kind — that is the split, and the reason is that this call answers RESOLUTION, which no
984
+ * clause is exempt from.
536
985
  */
537
- const kind = classify(factRef, ComplianceDocumentCandidateFactBindingIssueKind.UNDECLARED_CLAUSE_FACT, undefined);
986
+ const kind = classify(factRef, marked
987
+ ? ComplianceDocumentCandidateFactBindingIssueKind.UNRESOLVED_MARKED_CLAUSE_FACT
988
+ : ComplianceDocumentCandidateFactBindingIssueKind.UNDECLARED_CLAUSE_FACT, undefined);
538
989
  if (kind === undefined)
539
990
  continue;
540
991
  issues.push({
541
992
  kind,
542
993
  path: `sections.${sectionIndex}.clauses.${clauseIndex}.factRefs`,
543
994
  // The message is what goes back to the model on a retry, so it names the FIX rather than the
544
- // fault: the drafter's options are to cite a declared fact or to drop the claim.
545
- message: `clause "${clause.clauseRef}" asserts "${factRef}", which the application's document-facts do not declare. `
546
- + "Cite a declared fact or remove the claim; a governed document may not state something nobody established.",
995
+ // fault — and the fix differs by completeness, which is why the two kinds carry two messages
996
+ // rather than one shared sentence about "an undeclared fact".
997
+ message: marked
998
+ ? `clause "${clause.clauseRef}" is marked ${clause.completeness} and cites "${factRef}", which the `
999
+ + "application's document-facts do not declare, so the citation resolves to nothing. A marked clause "
1000
+ + "states what it is missing in \"incompleteness\" — it does not cite a fact that does not exist. "
1001
+ + "Remove the reference (an empty factRefs is valid) or cite a declared fact."
1002
+ : `clause "${clause.clauseRef}" asserts "${factRef}", which the application's document-facts do not declare. `
1003
+ + "Cite a declared fact or remove the claim; a governed document may not state something nobody established.",
1004
+ });
1005
+ }
1006
+ /*
1007
+ * ── EVIDENCE: a cited run must exist, and a public document may cite none ───────────────────
1008
+ *
1009
+ * Both rules are stated per clause and pathed per clause, because both messages go back to a
1010
+ * drafting model as retry findings and a finding that cannot be located costs an attempt.
1011
+ */
1012
+ for (const evidenceRef of clause.evidenceRefs ?? []) {
1013
+ if (!documentMayCiteInternalEvidence) {
1014
+ issues.push({
1015
+ kind: ComplianceDocumentCandidateFactBindingIssueKind.PUBLIC_DOCUMENT_EVIDENCE_CITATION,
1016
+ path: `sections.${sectionIndex}.clauses.${clauseIndex}.evidenceRefs`,
1017
+ message: `clause "${clause.clauseRef}" cites "${evidenceRef}" in a document that may not carry internal evidence`
1018
+ + `${evidenceBinding.claimPolicyRef === undefined ? " (its claim policy could not be resolved, and an unresolved policy admits nothing)" : ` (${evidenceBinding.claimPolicyRef})`}. `
1019
+ + "Self-attested internal evidence may be cited by this application's INTERNAL governance documents only: a "
1020
+ + "reader of a public document cannot weigh an operator's judgement of its own product. State what is "
1021
+ + "CONFIGURED or DECLARED, or MARK the statement — and remove the citation either way.",
1022
+ });
1023
+ continue;
1024
+ }
1025
+ // An unreadable repository is not an absent run. Skipped rather than refused, so the document
1026
+ // is never failed for a tool nobody could run.
1027
+ if (evidenceBinding.committedRuns === undefined)
1028
+ continue;
1029
+ const cited = evidenceBinding.committedRuns.get(evidenceRef);
1030
+ if (cited === undefined) {
1031
+ issues.push({
1032
+ kind: ComplianceDocumentCandidateFactBindingIssueKind.UNRESOLVED_CLAUSE_EVIDENCE,
1033
+ path: `sections.${sectionIndex}.clauses.${clauseIndex}.evidenceRefs`,
1034
+ message: `clause "${clause.clauseRef}" cites "${evidenceRef}", which this application's assurance repository does `
1035
+ + "not hold, so the citation resolves to nothing and the statement claims a measurement that cannot be opened. "
1036
+ + "Cite a run listed in your brief's self-attested internal evidence section, or remove the citation and MARK "
1037
+ + "the statement instead.",
1038
+ });
1039
+ continue;
1040
+ }
1041
+ if (cited.maySupportOperatingClaim)
1042
+ continue;
1043
+ issues.push({
1044
+ kind: ComplianceDocumentCandidateFactBindingIssueKind.UNCONCLUDED_CLAUSE_EVIDENCE,
1045
+ path: `sections.${sectionIndex}.clauses.${clauseIndex}.evidenceRefs`,
1046
+ message: `clause "${clause.clauseRef}" cites "${evidenceRef}", a run whose judgement did NOT settle the question — `
1047
+ + "it records that the evidence needed to decide was not obtained, or that the control fell short. A citation "
1048
+ + "makes a statement look measured; this one would rest on an unanswered question. Cite a run the brief marks "
1049
+ + "as able to support an operating statement, or remove the citation and MARK the statement instead.",
1050
+ });
1051
+ }
1052
+ /*
1053
+ * ── THE OPPOSITE DIRECTION: what the clause is WAITING for has arrived ──────────────────────
1054
+ *
1055
+ * Everything above asks whether a citation resolves. This asks whether a marked clause's stated
1056
+ * gap is still a gap — the defect no check in this family could see, because a rotted clause's
1057
+ * every reference resolves perfectly.
1058
+ *
1059
+ * Reachable at both wired call sites with no signature change: the availability map the
1060
+ * resolution rules already consume is exactly the input this needs, which is why the rule lives
1061
+ * in this loop rather than in a new function nobody would call.
1062
+ *
1063
+ * Only marked clauses, because `incompleteness` is forbidden on a `DERIVED` one — a DERIVED clause
1064
+ * asserts no absence, so there is nothing to go stale.
1065
+ */
1066
+ for (const awaitedRef of clause.incompleteness?.awaitingFactRefs ?? []) {
1067
+ const availability = declaredFacts.get(awaitedRef);
1068
+ // Absent means nobody has answered yet, so the clause is still legitimately waiting. Every
1069
+ // DECLARED availability means the question has been answered — total over the vocabulary, via the
1070
+ // record rather than a comparison, so a third member cannot be silently skipped here.
1071
+ if (availability === undefined || !COMPLIANCE_DOCUMENT_FACT_AVAILABILITY_ANSWERS_THE_QUESTION[availability])
1072
+ continue;
1073
+ issues.push({
1074
+ kind: ComplianceDocumentCandidateFactBindingIssueKind.STALE_MARKED_CLAUSE,
1075
+ path: `sections.${sectionIndex}.clauses.${clauseIndex}.incompleteness.awaitingFactRefs`,
1076
+ message: `clause "${clause.clauseRef}" is marked ${clause.completeness} and states it is waiting for `
1077
+ + `"${awaitedRef}", which the application NOW declares`
1078
+ + (availability === ComplianceDocumentFactAvailability.DECLARED_NOT_APPLICABLE ? " as NOT APPLICABLE" : "")
1079
+ + ". The gap it describes has been closed, so the clause says something untrue about this "
1080
+ + "application's own configuration. Redraft the clause from the declared fact and drop the "
1081
+ + "incompleteness, or — if it is incomplete for a different reason — say what that reason is.",
547
1082
  });
548
1083
  }
549
1084
  });
@@ -604,4 +1139,146 @@ export function collectComplianceDocumentFactAvailability(...specifications) {
604
1139
  }
605
1140
  return availability;
606
1141
  }
1142
+ /**
1143
+ * Which way a document FAILS TO COVER a fact its blueprint requires.
1144
+ *
1145
+ * Distinct vocabulary from {@link ComplianceDocumentCandidateFactBindingIssueKind}, and the split is
1146
+ * the point rather than tidiness. That one answers *does a citation RESOLVE* — it reads the refs a
1147
+ * candidate WROTE and asks whether each points at something. This one answers the opposite direction:
1148
+ * *does the candidate write the refs it OWES* — it reads the blueprint's demand and asks whether the
1149
+ * document reaches it at all.
1150
+ *
1151
+ * No resolution check can see this defect, because a document that omits a required fact cites nothing
1152
+ * broken. Measured on the landed Wonder CRM privacy notice (#454): the blueprint requires eight facts,
1153
+ * the candidate cited four, every fact-binding check answered clean, and the omission was found by a
1154
+ * human reading the file against the blueprint.
1155
+ */
1156
+ export var ComplianceDocumentCandidateFactCoverageIssueKind;
1157
+ (function (ComplianceDocumentCandidateFactCoverageIssueKind) {
1158
+ /**
1159
+ * A fact the blueprint's REQUIRED clauses demand is cited by no clause in the candidate.
1160
+ *
1161
+ * The document is silently short of its own blueprint. Silently is the operative word: nothing the
1162
+ * document says is false, so every check that reads what it SAYS passes.
1163
+ */
1164
+ ComplianceDocumentCandidateFactCoverageIssueKind["UNCOVERED_REQUIRED_FACT"] = "UNCOVERED_REQUIRED_FACT";
1165
+ /**
1166
+ * A required fact is cited ONLY by clauses marked incomplete — never by a `DERIVED` one.
1167
+ *
1168
+ * Reported rather than refused, and reported SEPARATELY, because it is the state #454 actually
1169
+ * found: the four absent facts were *"partly covered by clauses marked as needing a decision or a
1170
+ * framework change, rather than by the required facts themselves"*. A count of covered facts calls
1171
+ * that covered; a reviewer deciding whether the notice may be published needs to know it is not.
1172
+ *
1173
+ * Never a blocker. Producing a document with its gaps MARKED is the standing preference, and a
1174
+ * marked clause is the mechanism that expresses one — refusing here would punish the honest shape
1175
+ * and push a drafter toward silence, which is the direction this whole family must never fail in.
1176
+ */
1177
+ ComplianceDocumentCandidateFactCoverageIssueKind["REQUIRED_FACT_ONLY_MARKED"] = "REQUIRED_FACT_ONLY_MARKED";
1178
+ })(ComplianceDocumentCandidateFactCoverageIssueKind || (ComplianceDocumentCandidateFactCoverageIssueKind = {}));
1179
+ /**
1180
+ * Which coverage kinds mean *the document does not reach the fact at all*, as opposed to *it reaches
1181
+ * it only through a marked clause*.
1182
+ *
1183
+ * Exported for the same reason as
1184
+ * {@link COMPLIANCE_DOCUMENT_FACT_BINDING_ISSUE_RESOLVES_TO_NOTHING}: a consumer wanting only the
1185
+ * blocking group must not hand-list the members, because a hand-list silently omits the next kind
1186
+ * added. A `Record` keyed by the enum makes that a compile error here instead.
1187
+ */
1188
+ export const COMPLIANCE_DOCUMENT_FACT_COVERAGE_ISSUE_IS_ABSENT = {
1189
+ [ComplianceDocumentCandidateFactCoverageIssueKind.UNCOVERED_REQUIRED_FACT]: true,
1190
+ [ComplianceDocumentCandidateFactCoverageIssueKind.REQUIRED_FACT_ONLY_MARKED]: false,
1191
+ };
1192
+ /**
1193
+ * Does this candidate cite the facts its blueprint REQUIRES?
1194
+ *
1195
+ * ## Why this exists, and why no existing check could have caught it
1196
+ *
1197
+ * Every other check in this family reads what a candidate WROTE. This one reads what it OWES. A
1198
+ * document that omits a required fact writes nothing wrong — it simply does not mention the thing —
1199
+ * so a resolution check, a schema, and a coherence report all pass over it in silence.
1200
+ *
1201
+ * #454, measured: the privacy-notice blueprint requires **eight** facts and the landed Wonder CRM
1202
+ * candidate cited **four**. The `_core` candidate schema did not bind facts to a blueprint at all, so
1203
+ * there was nothing to notice the other four with. The same gap is why six cited fact suffixes that
1204
+ * existed nowhere survived in a landed notice: the relation between a blueprint's demand and a
1205
+ * candidate's citations had no home.
1206
+ *
1207
+ * ## The denominator is the blueprint's REQUIRED clauses, and choosing it is the whole design
1208
+ *
1209
+ * A blueprint clause is `REQUIRED` or `CONDITIONAL`, and a conditional clause is included only when
1210
+ * its condition groups hold — which depends on the application's own facts. So the set every
1211
+ * candidate owes is the union of `requiredFactRefs` over the **REQUIRED** clauses, and nothing wider.
1212
+ *
1213
+ * Counting against the definition's document-level `requiredFactRefs` instead would report a
1214
+ * conditional clause's facts as missing from every application the condition does not apply to: an
1215
+ * arithmetically correct ratio over a population nobody owes
1216
+ * (`.claude/rules/derive-before-you-ask.md`, shape 2 — *"a ratio whose denominator you chose yourself
1217
+ * is not a measurement"*). The caller derives the set; see the derivation's own named home rather than
1218
+ * re-deriving it per call site.
1219
+ *
1220
+ * ## Absent is not empty
1221
+ *
1222
+ * A caller that could not resolve the blueprint must NOT call this with an empty array — it expresses
1223
+ * that case by not calling. An empty required set here means *the blueprint demands nothing*, and
1224
+ * every candidate trivially covers it. Conflating "I could not read the blueprint" with "it requires
1225
+ * nothing" turns a wiring failure into a clean verdict, which is the failure mode
1226
+ * `.claude/rules/negative-results-require-a-positive-probe.md` exists for and which this file's
1227
+ * resolution sibling states in the same words.
1228
+ *
1229
+ * ## What it deliberately does NOT do
1230
+ *
1231
+ * It never refuses. `REQUIRED_FACT_ONLY_MARKED` in particular is a signal for a reviewer, not a gate:
1232
+ * producing a document whose gaps are MARKED is the standing preference, and blocking on a marked
1233
+ * clause would push a drafter toward omitting the concern entirely — silence instead of a visible
1234
+ * gap, which is the under-reporting direction a compliance statement must never fail in.
1235
+ */
1236
+ export function validateComplianceDocumentCandidateFactCoverage(candidate, blueprintRequiredFactRefs) {
1237
+ const issues = [];
1238
+ /*
1239
+ * Two sets rather than one, because "cited" and "asserted" are different facts about a document and
1240
+ * collapsing them is exactly what made #454 read as covered. A marked clause citing a fact says the
1241
+ * document MENTIONS it; only a `DERIVED` clause says the document STATES it.
1242
+ */
1243
+ const citedByAnyClause = new Set();
1244
+ const assertedByDerivedClause = new Set();
1245
+ for (const section of candidate.sections) {
1246
+ for (const clause of section.clauses) {
1247
+ const derived = clause.completeness === ComplianceStatementCompleteness.DERIVED;
1248
+ for (const factRef of clause.factRefs) {
1249
+ citedByAnyClause.add(factRef);
1250
+ if (derived)
1251
+ assertedByDerivedClause.add(factRef);
1252
+ }
1253
+ }
1254
+ }
1255
+ for (const factRef of blueprintRequiredFactRefs) {
1256
+ if (assertedByDerivedClause.has(factRef))
1257
+ continue;
1258
+ const onlyMarked = citedByAnyClause.has(factRef);
1259
+ issues.push({
1260
+ kind: onlyMarked
1261
+ ? ComplianceDocumentCandidateFactCoverageIssueKind.REQUIRED_FACT_ONLY_MARKED
1262
+ : ComplianceDocumentCandidateFactCoverageIssueKind.UNCOVERED_REQUIRED_FACT,
1263
+ // The blueprint is what was not satisfied, so the path names the DOCUMENT rather than a clause
1264
+ // index — there is no clause to point at, which is the finding.
1265
+ path: "sections",
1266
+ // As elsewhere in this family the message names the FIX, because it goes back to a model on a
1267
+ // retry. The two fixes are genuinely different: write the clause, versus close the gap.
1268
+ message: onlyMarked
1269
+ ? `the blueprint requires "${factRef}" and every clause citing it is MARKED incomplete, so the document `
1270
+ + "mentions the fact without stating it. That is a legitimate interim state and it is reported, not "
1271
+ + "refused — a reviewer must be able to see that this required fact is not yet established."
1272
+ : `the blueprint requires "${factRef}" and no clause in this document cites it. The document is short of `
1273
+ + "its own blueprint and says nothing about it. Add a clause asserting the fact, or — if it is not yet "
1274
+ + "established — a clause MARKED incomplete that names what is missing in \"incompleteness\".",
1275
+ });
1276
+ }
1277
+ // `ok` counts only ABSENCE. A fact reached through a marked clause is visible and honest, so a
1278
+ // caller gating on `ok` gates on the document being SILENT about something it owes.
1279
+ return {
1280
+ ok: !issues.some((issue) => COMPLIANCE_DOCUMENT_FACT_COVERAGE_ISSUE_IS_ABSENT[issue.kind]),
1281
+ issues,
1282
+ };
1283
+ }
607
1284
  //# sourceMappingURL=compliance-document-candidate.schemas.js.map