@wildo-ai/saas-specifications 1.1.5 → 1.1.6

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 (677) hide show
  1. package/dist/esm/_catalogs/schema-org/_catalog-spec.shared.schemas.d.ts +10 -8
  2. package/dist/esm/_catalogs/schema-org/_catalog-spec.shared.schemas.d.ts.map +1 -1
  3. package/dist/esm/_catalogs/schema-org/_catalog-spec.shared.schemas.js +14 -13
  4. package/dist/esm/_catalogs/schema-org/_catalog-spec.shared.schemas.js.map +1 -1
  5. package/dist/esm/_catalogs/schema-org/aggregate-offer.catalog-spec.d.ts +3 -2
  6. package/dist/esm/_catalogs/schema-org/aggregate-offer.catalog-spec.d.ts.map +1 -1
  7. package/dist/esm/_catalogs/schema-org/aggregate-offer.catalog-spec.js +4 -3
  8. package/dist/esm/_catalogs/schema-org/aggregate-offer.catalog-spec.js.map +1 -1
  9. package/dist/esm/_catalogs/schema-org/index.d.ts +31 -15
  10. package/dist/esm/_catalogs/schema-org/index.d.ts.map +1 -1
  11. package/dist/esm/_catalogs/schema-org/index.js +34 -13
  12. package/dist/esm/_catalogs/schema-org/index.js.map +1 -1
  13. package/dist/esm/_catalogs/schema-org/product.catalog-spec.d.ts +2 -2
  14. package/dist/esm/_catalogs/schema-org/product.catalog-spec.js +4 -4
  15. package/dist/esm/_catalogs/schema-org/product.catalog-spec.js.map +1 -1
  16. package/dist/esm/_catalogs/schema-org/software-application.catalog-spec.d.ts +45 -0
  17. package/dist/esm/_catalogs/schema-org/software-application.catalog-spec.d.ts.map +1 -0
  18. package/dist/esm/_catalogs/schema-org/software-application.catalog-spec.js +58 -0
  19. package/dist/esm/_catalogs/schema-org/software-application.catalog-spec.js.map +1 -0
  20. package/dist/esm/_core/application-specification-family-identity.schemas.d.ts +3 -2
  21. package/dist/esm/_core/application-specification-family-identity.schemas.d.ts.map +1 -1
  22. package/dist/esm/_core/application-specification-family-identity.schemas.js +3 -2
  23. package/dist/esm/_core/application-specification-family-identity.schemas.js.map +1 -1
  24. package/dist/esm/_core/build-plan/build-plan-task-graph-generation.schemas.d.ts +18 -0
  25. package/dist/esm/_core/build-plan/build-plan-task-graph-generation.schemas.d.ts.map +1 -1
  26. package/dist/esm/_core/build-plan/build-plan-task-graph-validation.d.ts +39 -13
  27. package/dist/esm/_core/build-plan/build-plan-task-graph-validation.d.ts.map +1 -1
  28. package/dist/esm/_core/build-plan/build-plan-task-graph-validation.js +43 -13
  29. package/dist/esm/_core/build-plan/build-plan-task-graph-validation.js.map +1 -1
  30. package/dist/esm/_core/build-plan/build-plan-task-graph.schemas.d.ts +90 -2
  31. package/dist/esm/_core/build-plan/build-plan-task-graph.schemas.d.ts.map +1 -1
  32. package/dist/esm/_core/build-plan/build-plan-task-graph.schemas.js +70 -6
  33. package/dist/esm/_core/build-plan/build-plan-task-graph.schemas.js.map +1 -1
  34. package/dist/esm/_core/build-plan/build-plan.family-aspects.d.ts.map +1 -1
  35. package/dist/esm/_core/build-plan/build-plan.family-aspects.js +26 -4
  36. package/dist/esm/_core/build-plan/build-plan.family-aspects.js.map +1 -1
  37. package/dist/esm/_core/business-semantics.specifications.schemas.d.ts +14 -0
  38. package/dist/esm/_core/business-semantics.specifications.schemas.d.ts.map +1 -1
  39. package/dist/esm/_core/business-semantics.specifications.schemas.js.map +1 -1
  40. package/dist/esm/_core/capability-composition/capability-composition-validation.d.ts.map +1 -1
  41. package/dist/esm/_core/capability-composition/capability-composition-validation.js +1 -0
  42. package/dist/esm/_core/capability-composition/capability-composition-validation.js.map +1 -1
  43. package/dist/esm/_core/capability-composition/capability-composition.schemas.d.ts +21 -2
  44. package/dist/esm/_core/capability-composition/capability-composition.schemas.d.ts.map +1 -1
  45. package/dist/esm/_core/capability-composition/capability-composition.schemas.js +20 -1
  46. package/dist/esm/_core/capability-composition/capability-composition.schemas.js.map +1 -1
  47. package/dist/esm/_core/compliance-documents/compliance-document-candidate.schemas.d.ts +11 -32
  48. package/dist/esm/_core/compliance-documents/compliance-document-candidate.schemas.d.ts.map +1 -1
  49. package/dist/esm/_core/compliance-documents/compliance-document-candidate.schemas.js +70 -3
  50. package/dist/esm/_core/compliance-documents/compliance-document-candidate.schemas.js.map +1 -1
  51. package/dist/esm/_core/compliance-documents/computed-document-facts.schemas.d.ts +142 -17
  52. package/dist/esm/_core/compliance-documents/computed-document-facts.schemas.d.ts.map +1 -1
  53. package/dist/esm/_core/compliance-documents/computed-document-facts.schemas.js +285 -30
  54. package/dist/esm/_core/compliance-documents/computed-document-facts.schemas.js.map +1 -1
  55. package/dist/esm/_core/compliance-documents/processor-register.schemas.d.ts +183 -18
  56. package/dist/esm/_core/compliance-documents/processor-register.schemas.d.ts.map +1 -1
  57. package/dist/esm/_core/compliance-documents/processor-register.schemas.js +165 -18
  58. package/dist/esm/_core/compliance-documents/processor-register.schemas.js.map +1 -1
  59. package/dist/esm/_core/compliance-documents/recipient-disclosures.schemas.d.ts +139 -0
  60. package/dist/esm/_core/compliance-documents/recipient-disclosures.schemas.d.ts.map +1 -0
  61. package/dist/esm/_core/compliance-documents/recipient-disclosures.schemas.js +172 -0
  62. package/dist/esm/_core/compliance-documents/recipient-disclosures.schemas.js.map +1 -0
  63. package/dist/esm/_core/compliance-documents/recipient-population.schemas.d.ts +306 -0
  64. package/dist/esm/_core/compliance-documents/recipient-population.schemas.d.ts.map +1 -0
  65. package/dist/esm/_core/compliance-documents/recipient-population.schemas.js +502 -0
  66. package/dist/esm/_core/compliance-documents/recipient-population.schemas.js.map +1 -0
  67. package/dist/esm/_core/compliance-documents/retention-enforcement-facts.schemas.d.ts +107 -0
  68. package/dist/esm/_core/compliance-documents/retention-enforcement-facts.schemas.d.ts.map +1 -0
  69. package/dist/esm/_core/compliance-documents/retention-enforcement-facts.schemas.js +118 -0
  70. package/dist/esm/_core/compliance-documents/retention-enforcement-facts.schemas.js.map +1 -0
  71. package/dist/esm/_core/compliance-documents/subject-data-recipients.schemas.d.ts +56 -0
  72. package/dist/esm/_core/compliance-documents/subject-data-recipients.schemas.d.ts.map +1 -0
  73. package/dist/esm/_core/compliance-documents/subject-data-recipients.schemas.js +100 -0
  74. package/dist/esm/_core/compliance-documents/subject-data-recipients.schemas.js.map +1 -0
  75. package/dist/esm/_core/composite-view-specification.schemas.js +8 -1
  76. package/dist/esm/_core/composite-view-specification.schemas.js.map +1 -1
  77. package/dist/esm/_core/domain-plan/domain-plan.family-aspects.d.ts +3 -2
  78. package/dist/esm/_core/domain-plan/domain-plan.family-aspects.d.ts.map +1 -1
  79. package/dist/esm/_core/domain-plan/domain-plan.family-aspects.js +3 -2
  80. package/dist/esm/_core/domain-plan/domain-plan.family-aspects.js.map +1 -1
  81. package/dist/esm/_core/experience-plan/experience-plan.schemas.d.ts +16 -3
  82. package/dist/esm/_core/experience-plan/experience-plan.schemas.d.ts.map +1 -1
  83. package/dist/esm/_core/experience-plan/experience-plan.schemas.js +70 -5
  84. package/dist/esm/_core/experience-plan/experience-plan.schemas.js.map +1 -1
  85. package/dist/esm/_core/family-aspects.schemas.d.ts +10 -0
  86. package/dist/esm/_core/family-aspects.schemas.d.ts.map +1 -1
  87. package/dist/esm/_core/family-aspects.schemas.js.map +1 -1
  88. package/dist/esm/_core/feature-drafts/capability-map-output-set-generation.schemas.d.ts +2 -2
  89. package/dist/esm/_core/feature-drafts/capability-map-output-set.schemas.d.ts +1 -0
  90. package/dist/esm/_core/feature-drafts/capability-map-output-set.schemas.d.ts.map +1 -1
  91. package/dist/esm/_core/feature-drafts/feature-specification-drafts.schemas.d.ts +16 -0
  92. package/dist/esm/_core/feature-drafts/feature-specification-drafts.schemas.d.ts.map +1 -1
  93. package/dist/esm/_core/feature-drafts/feature-specification-drafts.schemas.js +8 -0
  94. package/dist/esm/_core/feature-drafts/feature-specification-drafts.schemas.js.map +1 -1
  95. package/dist/esm/_core/index.d.ts +3 -0
  96. package/dist/esm/_core/index.d.ts.map +1 -1
  97. package/dist/esm/_core/index.js +3 -0
  98. package/dist/esm/_core/index.js.map +1 -1
  99. package/dist/esm/_core/integration-plan/integration-plan-generation.schemas.d.ts +5 -0
  100. package/dist/esm/_core/integration-plan/integration-plan-generation.schemas.d.ts.map +1 -1
  101. package/dist/esm/_core/integration-plan/integration-plan-generation.schemas.js +3 -1
  102. package/dist/esm/_core/integration-plan/integration-plan-generation.schemas.js.map +1 -1
  103. package/dist/esm/_core/integration-plan/integration-plan.family-aspects.d.ts.map +1 -1
  104. package/dist/esm/_core/integration-plan/integration-plan.family-aspects.js +12 -2
  105. package/dist/esm/_core/integration-plan/integration-plan.family-aspects.js.map +1 -1
  106. package/dist/esm/_core/integration-plan/integration-plan.schemas.d.ts +30 -2
  107. package/dist/esm/_core/integration-plan/integration-plan.schemas.d.ts.map +1 -1
  108. package/dist/esm/_core/integration-plan/integration-plan.schemas.js +32 -2
  109. package/dist/esm/_core/integration-plan/integration-plan.schemas.js.map +1 -1
  110. package/dist/esm/_core/market/feature-benefit.schemas.js +2 -2
  111. package/dist/esm/_core/market/feature-benefit.schemas.js.map +1 -1
  112. package/dist/esm/_core/market/market-alternative.schemas.js +2 -2
  113. package/dist/esm/_core/market/market-alternative.schemas.js.map +1 -1
  114. package/dist/esm/_core/market/market-buying-journey.schemas.js +2 -2
  115. package/dist/esm/_core/market/market-buying-journey.schemas.js.map +1 -1
  116. package/dist/esm/_core/market/market-category.schemas.js +2 -2
  117. package/dist/esm/_core/market/market-category.schemas.js.map +1 -1
  118. package/dist/esm/_core/market/market-channel.schemas.js +2 -2
  119. package/dist/esm/_core/market/market-channel.schemas.js.map +1 -1
  120. package/dist/esm/_core/market/market-gain.schemas.js +2 -2
  121. package/dist/esm/_core/market/market-gain.schemas.js.map +1 -1
  122. package/dist/esm/_core/market/market-icp.schemas.d.ts.map +1 -1
  123. package/dist/esm/_core/market/market-icp.schemas.js +2 -2
  124. package/dist/esm/_core/market/market-icp.schemas.js.map +1 -1
  125. package/dist/esm/_core/market/market-job.schemas.js +2 -2
  126. package/dist/esm/_core/market/market-job.schemas.js.map +1 -1
  127. package/dist/esm/_core/market/market-message-template.schemas.js +2 -2
  128. package/dist/esm/_core/market/market-message-template.schemas.js.map +1 -1
  129. package/dist/esm/_core/market/market-objection.schemas.js +2 -2
  130. package/dist/esm/_core/market/market-objection.schemas.js.map +1 -1
  131. package/dist/esm/_core/market/market-pain.schemas.js +2 -2
  132. package/dist/esm/_core/market/market-pain.schemas.js.map +1 -1
  133. package/dist/esm/_core/market/market-persona.schemas.d.ts.map +1 -1
  134. package/dist/esm/_core/market/market-persona.schemas.js +2 -2
  135. package/dist/esm/_core/market/market-persona.schemas.js.map +1 -1
  136. package/dist/esm/_core/market/market-positioning.schemas.js +2 -2
  137. package/dist/esm/_core/market/market-positioning.schemas.js.map +1 -1
  138. package/dist/esm/_core/market/market-proof.schemas.js +2 -2
  139. package/dist/esm/_core/market/market-proof.schemas.js.map +1 -1
  140. package/dist/esm/_core/market/market-references.schemas.d.ts +6 -0
  141. package/dist/esm/_core/market/market-references.schemas.d.ts.map +1 -1
  142. package/dist/esm/_core/market/market-references.schemas.js +6 -0
  143. package/dist/esm/_core/market/market-references.schemas.js.map +1 -1
  144. package/dist/esm/_core/market/market-snapshot-generation.schemas.d.ts +4 -4
  145. package/dist/esm/_core/market/market-tone-of-voice.schemas.js +2 -2
  146. package/dist/esm/_core/market/market-tone-of-voice.schemas.js.map +1 -1
  147. package/dist/esm/_core/market/market-trigger.schemas.js +2 -2
  148. package/dist/esm/_core/market/market-trigger.schemas.js.map +1 -1
  149. package/dist/esm/_core/market/market.family-aspects.js +1 -1
  150. package/dist/esm/_core/market/market.family-aspects.js.map +1 -1
  151. package/dist/esm/_core/placement-plan/placement-plan.schemas.d.ts.map +1 -1
  152. package/dist/esm/_core/placement-plan/placement-plan.schemas.js +6 -1
  153. package/dist/esm/_core/placement-plan/placement-plan.schemas.js.map +1 -1
  154. package/dist/esm/_core/requirements/functional-requirement.schemas.d.ts +1 -0
  155. package/dist/esm/_core/requirements/functional-requirement.schemas.d.ts.map +1 -1
  156. package/dist/esm/_core/requirements/functional-requirement.schemas.js +8 -0
  157. package/dist/esm/_core/requirements/functional-requirement.schemas.js.map +1 -1
  158. package/dist/esm/_core/requirements/requirements-snapshot.schemas.d.ts +1 -0
  159. package/dist/esm/_core/requirements/requirements-snapshot.schemas.d.ts.map +1 -1
  160. package/dist/esm/_core/resource-specification.schemas.d.ts +86 -28
  161. package/dist/esm/_core/resource-specification.schemas.d.ts.map +1 -1
  162. package/dist/esm/_core/resource-specification.schemas.js +110 -24
  163. package/dist/esm/_core/resource-specification.schemas.js.map +1 -1
  164. package/dist/esm/_core/utils/retention-clock-field-specs.d.ts +13 -0
  165. package/dist/esm/_core/utils/retention-clock-field-specs.d.ts.map +1 -0
  166. package/dist/esm/_core/utils/retention-clock-field-specs.js +26 -0
  167. package/dist/esm/_core/utils/retention-clock-field-specs.js.map +1 -0
  168. package/dist/esm/_core/website-plan/website-plan.schemas.d.ts +31 -6
  169. package/dist/esm/_core/website-plan/website-plan.schemas.d.ts.map +1 -1
  170. package/dist/esm/_core/website-plan/website-plan.schemas.js +35 -6
  171. package/dist/esm/_core/website-plan/website-plan.schemas.js.map +1 -1
  172. package/dist/esm/application-creation/application-creator-inputs.application-creation.schemas.d.ts +142 -3
  173. package/dist/esm/application-creation/application-creator-inputs.application-creation.schemas.d.ts.map +1 -1
  174. package/dist/esm/application-creation/application-creator-inputs.application-creation.schemas.js +148 -14
  175. package/dist/esm/application-creation/application-creator-inputs.application-creation.schemas.js.map +1 -1
  176. package/dist/esm/application-creation/application-document-fact-specification.application-creation.schemas.d.ts +70 -10
  177. package/dist/esm/application-creation/application-document-fact-specification.application-creation.schemas.d.ts.map +1 -1
  178. package/dist/esm/application-creation/application-document-fact-specification.application-creation.schemas.js +98 -11
  179. package/dist/esm/application-creation/application-document-fact-specification.application-creation.schemas.js.map +1 -1
  180. package/dist/esm/application-creation/application-line.application-creation.schemas.d.ts +215 -0
  181. package/dist/esm/application-creation/application-line.application-creation.schemas.d.ts.map +1 -0
  182. package/dist/esm/application-creation/application-line.application-creation.schemas.js +253 -0
  183. package/dist/esm/application-creation/application-line.application-creation.schemas.js.map +1 -0
  184. package/dist/esm/application-creation/application-specification-family-decisions.application-creation.schemas.d.ts +39 -0
  185. package/dist/esm/application-creation/application-specification-family-decisions.application-creation.schemas.d.ts.map +1 -0
  186. package/dist/esm/application-creation/application-specification-family-decisions.application-creation.schemas.js +37 -0
  187. package/dist/esm/application-creation/application-specification-family-decisions.application-creation.schemas.js.map +1 -0
  188. package/dist/esm/application-creation/journey.application-creation.schemas.d.ts +5 -49
  189. package/dist/esm/application-creation/journey.application-creation.schemas.d.ts.map +1 -1
  190. package/dist/esm/application-creation/journey.application-creation.schemas.js +25 -60
  191. package/dist/esm/application-creation/journey.application-creation.schemas.js.map +1 -1
  192. package/dist/esm/application-creation/playbook-instance.application-creation.schemas.d.ts +28 -0
  193. package/dist/esm/application-creation/playbook-instance.application-creation.schemas.d.ts.map +1 -0
  194. package/dist/esm/application-creation/playbook-instance.application-creation.schemas.js +32 -0
  195. package/dist/esm/application-creation/playbook-instance.application-creation.schemas.js.map +1 -0
  196. package/dist/esm/application-creation/playbooks.application-creation.schemas.d.ts +26 -6
  197. package/dist/esm/application-creation/playbooks.application-creation.schemas.d.ts.map +1 -1
  198. package/dist/esm/application-creation/playbooks.application-creation.schemas.js +28 -1
  199. package/dist/esm/application-creation/playbooks.application-creation.schemas.js.map +1 -1
  200. package/dist/esm/application-creation.exports.d.ts +7 -0
  201. package/dist/esm/application-creation.exports.d.ts.map +1 -1
  202. package/dist/esm/application-creation.exports.js +7 -0
  203. package/dist/esm/application-creation.exports.js.map +1 -1
  204. package/dist/esm/assurance/__tests__/authority-evaluation-instant.fixture.d.ts +1 -1
  205. package/dist/esm/assurance/__tests__/authority-evaluation-instant.fixture.js +1 -1
  206. package/dist/esm/assurance/__tests__/authority-evaluation-instant.fixture.js.map +1 -1
  207. package/dist/esm/assurance/assurance-authority-basis.definitions.d.ts +24 -1
  208. package/dist/esm/assurance/assurance-authority-basis.definitions.d.ts.map +1 -1
  209. package/dist/esm/assurance/assurance-authority-basis.definitions.js +75 -5
  210. package/dist/esm/assurance/assurance-authority-basis.definitions.js.map +1 -1
  211. package/dist/esm/assurance/assurance-authority-basis.schemas.d.ts +6 -0
  212. package/dist/esm/assurance/assurance-authority-basis.schemas.d.ts.map +1 -1
  213. package/dist/esm/assurance/assurance-document-blueprint-selection.d.ts +11 -0
  214. package/dist/esm/assurance/assurance-document-blueprint-selection.d.ts.map +1 -1
  215. package/dist/esm/assurance/assurance-document-blueprint-selection.js +22 -3
  216. package/dist/esm/assurance/assurance-document-blueprint-selection.js.map +1 -1
  217. package/dist/esm/assurance/assurance-document-system.definitions.d.ts.map +1 -1
  218. package/dist/esm/assurance/assurance-document-system.definitions.js +39 -6
  219. package/dist/esm/assurance/assurance-document-system.definitions.js.map +1 -1
  220. package/dist/esm/assurance/assurance-document-system.schemas.d.ts +11 -0
  221. package/dist/esm/assurance/assurance-document-system.schemas.d.ts.map +1 -1
  222. package/dist/esm/assurance/assurance-document-system.schemas.js +19 -0
  223. package/dist/esm/assurance/assurance-document-system.schemas.js.map +1 -1
  224. package/dist/esm/assurance/assurance-evidence-requirement-bodies.definitions.d.ts.map +1 -1
  225. package/dist/esm/assurance/assurance-evidence-requirement-bodies.definitions.js +295 -31
  226. package/dist/esm/assurance/assurance-evidence-requirement-bodies.definitions.js.map +1 -1
  227. package/dist/esm/assurance/assurance-foundation.schemas.d.ts +7 -0
  228. package/dist/esm/assurance/assurance-foundation.schemas.d.ts.map +1 -1
  229. package/dist/esm/assurance/assurance-foundation.schemas.js +7 -0
  230. package/dist/esm/assurance/assurance-foundation.schemas.js.map +1 -1
  231. package/dist/esm/assurance/assurance-objective-catalog.definitions.d.ts.map +1 -1
  232. package/dist/esm/assurance/assurance-objective-catalog.definitions.js +17 -0
  233. package/dist/esm/assurance/assurance-objective-catalog.definitions.js.map +1 -1
  234. package/dist/esm/assurance/assurance-program-generation.schemas.d.ts +5 -1
  235. package/dist/esm/assurance/assurance-program-generation.schemas.d.ts.map +1 -1
  236. package/dist/esm/assurance/assurance-program-generation.schemas.js +6 -3
  237. package/dist/esm/assurance/assurance-program-generation.schemas.js.map +1 -1
  238. package/dist/esm/assurance/assurance-program.family-aspects.js +1 -1
  239. package/dist/esm/assurance/assurance-program.family-aspects.js.map +1 -1
  240. package/dist/esm/assurance/assurance-program.schemas.d.ts +232 -3
  241. package/dist/esm/assurance/assurance-program.schemas.d.ts.map +1 -1
  242. package/dist/esm/assurance/assurance-program.schemas.js +107 -14
  243. package/dist/esm/assurance/assurance-program.schemas.js.map +1 -1
  244. package/dist/esm/assurance/assurance-source-registry.definitions.d.ts.map +1 -1
  245. package/dist/esm/assurance/assurance-source-registry.definitions.js +77 -1
  246. package/dist/esm/assurance/assurance-source-registry.definitions.js.map +1 -1
  247. package/dist/esm/assurance/assurance-verification-requirement-bodies.definitions.d.ts.map +1 -1
  248. package/dist/esm/assurance/assurance-verification-requirement-bodies.definitions.js +23 -1
  249. package/dist/esm/assurance/assurance-verification-requirement-bodies.definitions.js.map +1 -1
  250. package/dist/esm/assurance/governed-document-release.d.ts +7 -0
  251. package/dist/esm/assurance/governed-document-release.d.ts.map +1 -1
  252. package/dist/esm/assurance/governed-document-release.js +11 -2
  253. package/dist/esm/assurance/governed-document-release.js.map +1 -1
  254. package/dist/esm/companion-exports.d.ts +6 -5
  255. package/dist/esm/companion-exports.d.ts.map +1 -1
  256. package/dist/esm/companion-exports.js.map +1 -1
  257. package/dist/esm/engine/applications/resources/application-api-keys.resource.specification.d.ts +1 -0
  258. package/dist/esm/engine/applications/resources/application-api-keys.resource.specification.d.ts.map +1 -1
  259. package/dist/esm/engine/applications/resources/application-api-keys.resource.specification.js +35 -33
  260. package/dist/esm/engine/applications/resources/application-api-keys.resource.specification.js.map +1 -1
  261. package/dist/esm/engine/applications/resources/application-metadata.resource.specification.d.ts.map +1 -1
  262. package/dist/esm/engine/applications/resources/application-metadata.resource.specification.js +6 -2
  263. package/dist/esm/engine/applications/resources/application-metadata.resource.specification.js.map +1 -1
  264. package/dist/esm/engine/applications/resources/application-oauth-clients.resource.specification.d.ts.map +1 -1
  265. package/dist/esm/engine/applications/resources/application-oauth-clients.resource.specification.js +13 -12
  266. package/dist/esm/engine/applications/resources/application-oauth-clients.resource.specification.js.map +1 -1
  267. package/dist/esm/engine/applications/resources/application-versions.resource.specification.d.ts.map +1 -1
  268. package/dist/esm/engine/applications/resources/application-versions.resource.specification.js +26 -2
  269. package/dist/esm/engine/applications/resources/application-versions.resource.specification.js.map +1 -1
  270. package/dist/esm/engine/applications/resources/applications.resource.specification.d.ts.map +1 -1
  271. package/dist/esm/engine/applications/resources/applications.resource.specification.js +4 -4
  272. package/dist/esm/engine/applications/resources/applications.resource.specification.js.map +1 -1
  273. package/dist/esm/engine/auth/resources/application-access-grants.resource.specification.d.ts.map +1 -1
  274. package/dist/esm/engine/auth/resources/application-access-grants.resource.specification.js +11 -9
  275. package/dist/esm/engine/auth/resources/application-access-grants.resource.specification.js.map +1 -1
  276. package/dist/esm/engine/auth/resources/oauth-consent-grants.resource.specification.js +2 -2
  277. package/dist/esm/engine/auth/resources/oauth-consent-grants.resource.specification.js.map +1 -1
  278. package/dist/esm/engine/auth/resources/organization-api-keys.resource.specification.d.ts +1 -0
  279. package/dist/esm/engine/auth/resources/organization-api-keys.resource.specification.d.ts.map +1 -1
  280. package/dist/esm/engine/auth/resources/organization-api-keys.resource.specification.js +45 -32
  281. package/dist/esm/engine/auth/resources/organization-api-keys.resource.specification.js.map +1 -1
  282. package/dist/esm/engine/auth/resources/organization-oauth-clients.resource.specification.d.ts +1 -23
  283. package/dist/esm/engine/auth/resources/organization-oauth-clients.resource.specification.d.ts.map +1 -1
  284. package/dist/esm/engine/auth/resources/organization-oauth-clients.resource.specification.js +185 -31
  285. package/dist/esm/engine/auth/resources/organization-oauth-clients.resource.specification.js.map +1 -1
  286. package/dist/esm/engine/auth/resources/organization-provider-credentials.resource.specification.d.ts +2 -1
  287. package/dist/esm/engine/auth/resources/organization-provider-credentials.resource.specification.d.ts.map +1 -1
  288. package/dist/esm/engine/auth/resources/organization-provider-credentials.resource.specification.js +29 -7
  289. package/dist/esm/engine/auth/resources/organization-provider-credentials.resource.specification.js.map +1 -1
  290. package/dist/esm/engine/auth/resources/platform-access-grants.resource.specification.d.ts.map +1 -1
  291. package/dist/esm/engine/auth/resources/platform-access-grants.resource.specification.js +7 -1
  292. package/dist/esm/engine/auth/resources/platform-access-grants.resource.specification.js.map +1 -1
  293. package/dist/esm/engine/auth/resources/scim-provisioning-config.resource.specification.d.ts.map +1 -1
  294. package/dist/esm/engine/auth/resources/scim-provisioning-config.resource.specification.js +9 -6
  295. package/dist/esm/engine/auth/resources/scim-provisioning-config.resource.specification.js.map +1 -1
  296. package/dist/esm/engine/auth/resources/scim-tokens.resource.specification.d.ts +1 -0
  297. package/dist/esm/engine/auth/resources/scim-tokens.resource.specification.d.ts.map +1 -1
  298. package/dist/esm/engine/auth/resources/scim-tokens.resource.specification.js +11 -7
  299. package/dist/esm/engine/auth/resources/scim-tokens.resource.specification.js.map +1 -1
  300. package/dist/esm/engine/auth/resources/siem-delivery-dlq.resource.specification.d.ts.map +1 -1
  301. package/dist/esm/engine/auth/resources/siem-delivery-dlq.resource.specification.js +18 -16
  302. package/dist/esm/engine/auth/resources/siem-delivery-dlq.resource.specification.js.map +1 -1
  303. package/dist/esm/engine/auth/resources/siem-export-config.resource.specification.d.ts.map +1 -1
  304. package/dist/esm/engine/auth/resources/siem-export-config.resource.specification.js +9 -11
  305. package/dist/esm/engine/auth/resources/siem-export-config.resource.specification.js.map +1 -1
  306. package/dist/esm/engine/auth/resources/sso-config.resource.specification.d.ts.map +1 -1
  307. package/dist/esm/engine/auth/resources/sso-config.resource.specification.js +238 -219
  308. package/dist/esm/engine/auth/resources/sso-config.resource.specification.js.map +1 -1
  309. package/dist/esm/engine/auth/resources/sso-connections.resource.specification.d.ts +0 -24
  310. package/dist/esm/engine/auth/resources/sso-connections.resource.specification.d.ts.map +1 -1
  311. package/dist/esm/engine/auth/resources/sso-connections.resource.specification.js +76 -16
  312. package/dist/esm/engine/auth/resources/sso-connections.resource.specification.js.map +1 -1
  313. package/dist/esm/engine/auth/resources/user-provider-credentials.resource.specification.d.ts +2 -1
  314. package/dist/esm/engine/auth/resources/user-provider-credentials.resource.specification.d.ts.map +1 -1
  315. package/dist/esm/engine/auth/resources/user-provider-credentials.resource.specification.js +28 -6
  316. package/dist/esm/engine/auth/resources/user-provider-credentials.resource.specification.js.map +1 -1
  317. package/dist/esm/engine/billing/resources/billing-accounts.resource.specification.d.ts.map +1 -1
  318. package/dist/esm/engine/billing/resources/billing-accounts.resource.specification.js +29 -11
  319. package/dist/esm/engine/billing/resources/billing-accounts.resource.specification.js.map +1 -1
  320. package/dist/esm/engine/billing/resources/billing-provider-event-settlements.resource.specification.js +1 -1
  321. package/dist/esm/engine/billing/resources/billing-provider-event-settlements.resource.specification.js.map +1 -1
  322. package/dist/esm/engine/billing/resources/credit-pools.resource.specification.d.ts +2 -0
  323. package/dist/esm/engine/billing/resources/credit-pools.resource.specification.d.ts.map +1 -1
  324. package/dist/esm/engine/billing/resources/credit-pools.resource.specification.js +13 -12
  325. package/dist/esm/engine/billing/resources/credit-pools.resource.specification.js.map +1 -1
  326. package/dist/esm/engine/billing/resources/invoice-refs.resource.specification.js +5 -5
  327. package/dist/esm/engine/billing/resources/invoice-refs.resource.specification.js.map +1 -1
  328. package/dist/esm/engine/billing/resources/prices.resource.specification.d.ts.map +1 -1
  329. package/dist/esm/engine/billing/resources/prices.resource.specification.js +12 -9
  330. package/dist/esm/engine/billing/resources/prices.resource.specification.js.map +1 -1
  331. package/dist/esm/engine/billing/resources/products.resource.specification.d.ts +7 -4
  332. package/dist/esm/engine/billing/resources/products.resource.specification.d.ts.map +1 -1
  333. package/dist/esm/engine/billing/resources/products.resource.specification.js +36 -16
  334. package/dist/esm/engine/billing/resources/products.resource.specification.js.map +1 -1
  335. package/dist/esm/engine/billing/resources/promotions.resource.specification.d.ts.map +1 -1
  336. package/dist/esm/engine/billing/resources/promotions.resource.specification.js +13 -10
  337. package/dist/esm/engine/billing/resources/promotions.resource.specification.js.map +1 -1
  338. package/dist/esm/engine/billing/resources/referrals.resource.specification.d.ts +13 -8
  339. package/dist/esm/engine/billing/resources/referrals.resource.specification.d.ts.map +1 -1
  340. package/dist/esm/engine/billing/resources/referrals.resource.specification.js +54 -20
  341. package/dist/esm/engine/billing/resources/referrals.resource.specification.js.map +1 -1
  342. package/dist/esm/engine/billing/resources/subscriptions.resource.specification.d.ts +30 -4
  343. package/dist/esm/engine/billing/resources/subscriptions.resource.specification.d.ts.map +1 -1
  344. package/dist/esm/engine/billing/resources/subscriptions.resource.specification.js +85 -25
  345. package/dist/esm/engine/billing/resources/subscriptions.resource.specification.js.map +1 -1
  346. package/dist/esm/engine/billing/resources/usage-records.resource.specification.js +2 -2
  347. package/dist/esm/engine/billing/resources/usage-records.resource.specification.js.map +1 -1
  348. package/dist/esm/engine/compliance/resources/application-audit-logs.resource.specification.d.ts +15 -2
  349. package/dist/esm/engine/compliance/resources/application-audit-logs.resource.specification.d.ts.map +1 -1
  350. package/dist/esm/engine/compliance/resources/application-audit-logs.resource.specification.js +45 -10
  351. package/dist/esm/engine/compliance/resources/application-audit-logs.resource.specification.js.map +1 -1
  352. package/dist/esm/engine/compliance/resources/audit-logs.resource.specification.d.ts +15 -2
  353. package/dist/esm/engine/compliance/resources/audit-logs.resource.specification.d.ts.map +1 -1
  354. package/dist/esm/engine/compliance/resources/audit-logs.resource.specification.js +52 -12
  355. package/dist/esm/engine/compliance/resources/audit-logs.resource.specification.js.map +1 -1
  356. package/dist/esm/engine/compliance/resources/index.d.ts +1 -0
  357. package/dist/esm/engine/compliance/resources/index.d.ts.map +1 -1
  358. package/dist/esm/engine/compliance/resources/index.js +1 -0
  359. package/dist/esm/engine/compliance/resources/index.js.map +1 -1
  360. package/dist/esm/engine/compliance/resources/legal-holds.resource.specification.d.ts +39 -0
  361. package/dist/esm/engine/compliance/resources/legal-holds.resource.specification.d.ts.map +1 -0
  362. package/dist/esm/engine/compliance/resources/legal-holds.resource.specification.js +325 -0
  363. package/dist/esm/engine/compliance/resources/legal-holds.resource.specification.js.map +1 -0
  364. package/dist/esm/engine/compliance/resources/retention-enforcement-records.resource.specification.d.ts +23 -0
  365. package/dist/esm/engine/compliance/resources/retention-enforcement-records.resource.specification.d.ts.map +1 -0
  366. package/dist/esm/engine/compliance/resources/retention-enforcement-records.resource.specification.js +197 -0
  367. package/dist/esm/engine/compliance/resources/retention-enforcement-records.resource.specification.js.map +1 -0
  368. package/dist/esm/engine/engine-resource-specifications.registry.d.ts.map +1 -1
  369. package/dist/esm/engine/engine-resource-specifications.registry.js +59 -0
  370. package/dist/esm/engine/engine-resource-specifications.registry.js.map +1 -1
  371. package/dist/esm/engine/errors/error-messages.specification.d.ts.map +1 -1
  372. package/dist/esm/engine/errors/error-messages.specification.js +69 -0
  373. package/dist/esm/engine/errors/error-messages.specification.js.map +1 -1
  374. package/dist/esm/engine/features/resources/application-features.resource.specification.d.ts +5 -5
  375. package/dist/esm/engine/features/resources/application-features.resource.specification.d.ts.map +1 -1
  376. package/dist/esm/engine/features/resources/application-features.resource.specification.js +9 -10
  377. package/dist/esm/engine/features/resources/application-features.resource.specification.js.map +1 -1
  378. package/dist/esm/engine/features/resources/organization-features.resource.specification.d.ts +5 -5
  379. package/dist/esm/engine/features/resources/organization-features.resource.specification.js +11 -11
  380. package/dist/esm/engine/features/resources/organization-features.resource.specification.js.map +1 -1
  381. package/dist/esm/engine/features/resources/user-features.resource.specification.d.ts +5 -5
  382. package/dist/esm/engine/features/resources/user-features.resource.specification.js +3 -3
  383. package/dist/esm/engine/features/resources/user-features.resource.specification.js.map +1 -1
  384. package/dist/esm/engine/files/resources/files.resource.specification.d.ts.map +1 -1
  385. package/dist/esm/engine/files/resources/files.resource.specification.js +7 -8
  386. package/dist/esm/engine/files/resources/files.resource.specification.js.map +1 -1
  387. package/dist/esm/engine/flows-actors/resources/a2a-push-delivery-log.resource.specification.d.ts.map +1 -1
  388. package/dist/esm/engine/flows-actors/resources/a2a-push-delivery-log.resource.specification.js +16 -4
  389. package/dist/esm/engine/flows-actors/resources/a2a-push-delivery-log.resource.specification.js.map +1 -1
  390. package/dist/esm/engine/flows-actors/resources/a2a-token-budget-state.resource.specification.js +1 -1
  391. package/dist/esm/engine/flows-actors/resources/a2a-token-budget-state.resource.specification.js.map +1 -1
  392. package/dist/esm/engine/flows-actors/resources/agent-work-decisions.resource.specification.d.ts +11 -0
  393. package/dist/esm/engine/flows-actors/resources/agent-work-decisions.resource.specification.d.ts.map +1 -0
  394. package/dist/esm/engine/flows-actors/resources/agent-work-decisions.resource.specification.js +382 -0
  395. package/dist/esm/engine/flows-actors/resources/agent-work-decisions.resource.specification.js.map +1 -0
  396. package/dist/esm/engine/flows-actors/resources/flow-actor-executions.resource.specification.d.ts +139 -1
  397. package/dist/esm/engine/flows-actors/resources/flow-actor-executions.resource.specification.d.ts.map +1 -1
  398. package/dist/esm/engine/flows-actors/resources/flow-actor-executions.resource.specification.js +150 -4
  399. package/dist/esm/engine/flows-actors/resources/flow-actor-executions.resource.specification.js.map +1 -1
  400. package/dist/esm/engine/flows-actors/resources/flow-actor-tasks.resource.specification.d.ts.map +1 -1
  401. package/dist/esm/engine/flows-actors/resources/flow-actor-tasks.resource.specification.js +9 -1
  402. package/dist/esm/engine/flows-actors/resources/flow-actor-tasks.resource.specification.js.map +1 -1
  403. package/dist/esm/engine/flows-actors/resources/model-call-attributions.resource.specification.d.ts +3 -0
  404. package/dist/esm/engine/flows-actors/resources/model-call-attributions.resource.specification.d.ts.map +1 -0
  405. package/dist/esm/engine/flows-actors/resources/model-call-attributions.resource.specification.js +162 -0
  406. package/dist/esm/engine/flows-actors/resources/model-call-attributions.resource.specification.js.map +1 -0
  407. package/dist/esm/engine/flows-actors/resources/model-cost-period-aggregates.resource.specification.d.ts +3 -0
  408. package/dist/esm/engine/flows-actors/resources/model-cost-period-aggregates.resource.specification.d.ts.map +1 -0
  409. package/dist/esm/engine/flows-actors/resources/model-cost-period-aggregates.resource.specification.js +158 -0
  410. package/dist/esm/engine/flows-actors/resources/model-cost-period-aggregates.resource.specification.js.map +1 -0
  411. package/dist/esm/engine/flows-actors/resources/provider-call-records.resource.specification.d.ts +2 -1
  412. package/dist/esm/engine/flows-actors/resources/provider-call-records.resource.specification.d.ts.map +1 -1
  413. package/dist/esm/engine/flows-actors/resources/provider-call-records.resource.specification.js +16 -9
  414. package/dist/esm/engine/flows-actors/resources/provider-call-records.resource.specification.js.map +1 -1
  415. package/dist/esm/engine/frontend-components/ai-elements/decision/ai-approval-queue.frontend-component.specification.js +1 -1
  416. package/dist/esm/engine/frontend-components/ai-elements/decision/ai-approval-queue.frontend-component.specification.js.map +1 -1
  417. package/dist/esm/engine/frontend-components/ai-elements/decision/ai-approval-request.frontend-component.specification.js +1 -1
  418. package/dist/esm/engine/frontend-components/ai-elements/decision/ai-approval-request.frontend-component.specification.js.map +1 -1
  419. package/dist/esm/engine/frontend-components/app/app-layout-agent-work-override-rate-settings.frontend-component.specification.d.ts +5 -0
  420. package/dist/esm/engine/frontend-components/app/app-layout-agent-work-override-rate-settings.frontend-component.specification.d.ts.map +1 -0
  421. package/dist/esm/engine/frontend-components/app/app-layout-agent-work-override-rate-settings.frontend-component.specification.js +79 -0
  422. package/dist/esm/engine/frontend-components/app/app-layout-agent-work-override-rate-settings.frontend-component.specification.js.map +1 -0
  423. package/dist/esm/engine/frontend-components/app/app-layout-appearance-settings.frontend-component.specification.js +1 -1
  424. package/dist/esm/engine/frontend-components/app/app-layout-appearance-settings.frontend-component.specification.js.map +1 -1
  425. package/dist/esm/engine/frontend-components/app/app-layout-billing-settings.frontend-component.specification.d.ts.map +1 -1
  426. package/dist/esm/engine/frontend-components/app/app-layout-billing-settings.frontend-component.specification.js +3 -1
  427. package/dist/esm/engine/frontend-components/app/app-layout-billing-settings.frontend-component.specification.js.map +1 -1
  428. package/dist/esm/engine/frontend-components/app/app-layout-connected-accounts-settings.frontend-component.specification.d.ts.map +1 -1
  429. package/dist/esm/engine/frontend-components/app/app-layout-connected-accounts-settings.frontend-component.specification.js +5 -4
  430. package/dist/esm/engine/frontend-components/app/app-layout-connected-accounts-settings.frontend-component.specification.js.map +1 -1
  431. package/dist/esm/engine/frontend-components/app/app-layout-invitations-settings.frontend-component.specification.js +1 -1
  432. package/dist/esm/engine/frontend-components/app/app-layout-invitations-settings.frontend-component.specification.js.map +1 -1
  433. package/dist/esm/engine/frontend-components/auth/admin-config/app-page-security-settings.frontend-component.specification.js +1 -1
  434. package/dist/esm/engine/frontend-components/auth/admin-config/app-page-security-settings.frontend-component.specification.js.map +1 -1
  435. package/dist/esm/engine/frontend-components/billing/billing-pricing-table.frontend-component.specification.js +2 -2
  436. package/dist/esm/engine/frontend-components/billing/billing-pricing-table.frontend-component.specification.js.map +1 -1
  437. package/dist/esm/engine/frontend-components/data-display/formatters/display-field-number.frontend-component.specification.js +1 -1
  438. package/dist/esm/engine/frontend-components/data-display/formatters/display-field-number.frontend-component.specification.js.map +1 -1
  439. package/dist/esm/engine/frontend-components/data-display/formatters/display-field-string.frontend-component.specification.js +2 -2
  440. package/dist/esm/engine/frontend-components/data-display/formatters/display-field-string.frontend-component.specification.js.map +1 -1
  441. package/dist/esm/engine/frontend-components/flows-actors/low-level-ai-approval.frontend-component.specification.js +1 -1
  442. package/dist/esm/engine/frontend-components/flows-actors/low-level-ai-approval.frontend-component.specification.js.map +1 -1
  443. package/dist/esm/engine/frontend-components/flows-actors/low-level-ai-decision.frontend-component.specification.js +1 -1
  444. package/dist/esm/engine/frontend-components/flows-actors/low-level-ai-decision.frontend-component.specification.js.map +1 -1
  445. package/dist/esm/engine/frontend-components/form/fields/form-field-address.frontend-component.specification.d.ts.map +1 -1
  446. package/dist/esm/engine/frontend-components/form/fields/form-field-address.frontend-component.specification.js +1 -1
  447. package/dist/esm/engine/frontend-components/form/fields/form-field-address.frontend-component.specification.js.map +1 -1
  448. package/dist/esm/engine/frontend-components/form/fields/form-field-string.frontend-component.specification.js +2 -2
  449. package/dist/esm/engine/frontend-components/form/fields/form-field-string.frontend-component.specification.js.map +1 -1
  450. package/dist/esm/engine/frontend-components/index.d.ts +1 -0
  451. package/dist/esm/engine/frontend-components/index.d.ts.map +1 -1
  452. package/dist/esm/engine/frontend-components/index.js +3 -0
  453. package/dist/esm/engine/frontend-components/index.js.map +1 -1
  454. package/dist/esm/engine/frontend-components/resources/resource-layout-empty-state.frontend-component.specification.js +1 -1
  455. package/dist/esm/engine/frontend-components/resources/resource-layout-empty-state.frontend-component.specification.js.map +1 -1
  456. package/dist/esm/engine/frontend-components/resources/resources-fields-resource-reference-display.frontend-component.specification.js +1 -1
  457. package/dist/esm/engine/frontend-components/resources/resources-fields-resource-reference-display.frontend-component.specification.js.map +1 -1
  458. package/dist/esm/engine/frontend-components/resources/resources-fields-resource-reference-edit.frontend-component.specification.js +1 -1
  459. package/dist/esm/engine/frontend-components/resources/resources-fields-resource-reference-edit.frontend-component.specification.js.map +1 -1
  460. package/dist/esm/engine/frontend-components/sections/stepper.frontend-component.specification.d.ts.map +1 -1
  461. package/dist/esm/engine/frontend-components/sections/stepper.frontend-component.specification.js +9 -4
  462. package/dist/esm/engine/frontend-components/sections/stepper.frontend-component.specification.js.map +1 -1
  463. package/dist/esm/engine/guidance/resources/guidance-state.resource.specification.js +4 -4
  464. package/dist/esm/engine/guidance/resources/guidance-state.resource.specification.js.map +1 -1
  465. package/dist/esm/engine/guidance/resources/lifecycle-state.resource.specification.d.ts.map +1 -1
  466. package/dist/esm/engine/guidance/resources/lifecycle-state.resource.specification.js +34 -0
  467. package/dist/esm/engine/guidance/resources/lifecycle-state.resource.specification.js.map +1 -1
  468. package/dist/esm/engine/guidance/resources/progression-state.resource.specification.d.ts.map +1 -1
  469. package/dist/esm/engine/guidance/resources/progression-state.resource.specification.js +26 -0
  470. package/dist/esm/engine/guidance/resources/progression-state.resource.specification.js.map +1 -1
  471. package/dist/esm/engine/infrastructure/resources/data-seed-runs.resource.specification.js +2 -2
  472. package/dist/esm/engine/infrastructure/resources/data-seed-runs.resource.specification.js.map +1 -1
  473. package/dist/esm/engine/infrastructure/resources/external-data-erasure-suppressions.resource.specification.d.ts +9 -0
  474. package/dist/esm/engine/infrastructure/resources/external-data-erasure-suppressions.resource.specification.d.ts.map +1 -0
  475. package/dist/esm/engine/infrastructure/resources/external-data-erasure-suppressions.resource.specification.js +122 -0
  476. package/dist/esm/engine/infrastructure/resources/external-data-erasure-suppressions.resource.specification.js.map +1 -0
  477. package/dist/esm/engine/infrastructure/resources/external-data-outbound-changes.resource.specification.d.ts +9 -0
  478. package/dist/esm/engine/infrastructure/resources/external-data-outbound-changes.resource.specification.d.ts.map +1 -0
  479. package/dist/esm/engine/infrastructure/resources/external-data-outbound-changes.resource.specification.js +152 -0
  480. package/dist/esm/engine/infrastructure/resources/external-data-outbound-changes.resource.specification.js.map +1 -0
  481. package/dist/esm/engine/infrastructure/resources/external-data-pending-references.resource.specification.d.ts +10 -0
  482. package/dist/esm/engine/infrastructure/resources/external-data-pending-references.resource.specification.d.ts.map +1 -0
  483. package/dist/esm/engine/infrastructure/resources/external-data-pending-references.resource.specification.js +94 -0
  484. package/dist/esm/engine/infrastructure/resources/external-data-pending-references.resource.specification.js.map +1 -0
  485. package/dist/esm/engine/infrastructure/resources/external-data-pipeline-membership-keys.resource.specification.d.ts +10 -0
  486. package/dist/esm/engine/infrastructure/resources/external-data-pipeline-membership-keys.resource.specification.d.ts.map +1 -0
  487. package/dist/esm/engine/infrastructure/resources/external-data-pipeline-membership-keys.resource.specification.js +64 -0
  488. package/dist/esm/engine/infrastructure/resources/external-data-pipeline-membership-keys.resource.specification.js.map +1 -0
  489. package/dist/esm/engine/infrastructure/resources/external-data-pipeline-membership.resource.specification.d.ts +4 -1
  490. package/dist/esm/engine/infrastructure/resources/external-data-pipeline-membership.resource.specification.d.ts.map +1 -1
  491. package/dist/esm/engine/infrastructure/resources/external-data-pipeline-membership.resource.specification.js +20 -16
  492. package/dist/esm/engine/infrastructure/resources/external-data-pipeline-membership.resource.specification.js.map +1 -1
  493. package/dist/esm/engine/infrastructure/resources/external-data-pipeline-run-records.resource.specification.d.ts +9 -0
  494. package/dist/esm/engine/infrastructure/resources/external-data-pipeline-run-records.resource.specification.d.ts.map +1 -0
  495. package/dist/esm/engine/infrastructure/resources/external-data-pipeline-run-records.resource.specification.js +200 -0
  496. package/dist/esm/engine/infrastructure/resources/external-data-pipeline-run-records.resource.specification.js.map +1 -0
  497. package/dist/esm/engine/infrastructure/resources/external-data-pipeline-states.resource.specification.d.ts.map +1 -1
  498. package/dist/esm/engine/infrastructure/resources/external-data-pipeline-states.resource.specification.js +19 -6
  499. package/dist/esm/engine/infrastructure/resources/external-data-pipeline-states.resource.specification.js.map +1 -1
  500. package/dist/esm/engine/infrastructure/resources/external-data-remote-versions.resource.specification.d.ts +9 -0
  501. package/dist/esm/engine/infrastructure/resources/external-data-remote-versions.resource.specification.d.ts.map +1 -0
  502. package/dist/esm/engine/infrastructure/resources/external-data-remote-versions.resource.specification.js +97 -0
  503. package/dist/esm/engine/infrastructure/resources/external-data-remote-versions.resource.specification.js.map +1 -0
  504. package/dist/esm/engine/infrastructure/resources/job-executions.resource.specification.d.ts +8 -0
  505. package/dist/esm/engine/infrastructure/resources/job-executions.resource.specification.d.ts.map +1 -1
  506. package/dist/esm/engine/infrastructure/resources/job-executions.resource.specification.js +2 -2
  507. package/dist/esm/engine/infrastructure/resources/job-executions.resource.specification.js.map +1 -1
  508. package/dist/esm/engine/infrastructure/resources/job-payload-storage.resource.specification.d.ts +8 -8
  509. package/dist/esm/engine/infrastructure/resources/job-payload-storage.resource.specification.js +1 -1
  510. package/dist/esm/engine/infrastructure/resources/job-payload-storage.resource.specification.js.map +1 -1
  511. package/dist/esm/engine/infrastructure/resources/system-of-record-partition-assignments.resource.specification.js +4 -4
  512. package/dist/esm/engine/infrastructure/resources/system-of-record-partition-assignments.resource.specification.js.map +1 -1
  513. package/dist/esm/engine/infrastructure/resources/system-of-record-write-admissions.resource.specification.d.ts +9 -0
  514. package/dist/esm/engine/infrastructure/resources/system-of-record-write-admissions.resource.specification.d.ts.map +1 -0
  515. package/dist/esm/engine/infrastructure/resources/system-of-record-write-admissions.resource.specification.js +153 -0
  516. package/dist/esm/engine/infrastructure/resources/system-of-record-write-admissions.resource.specification.js.map +1 -0
  517. package/dist/esm/engine/notifications/resources/conversation-threads.resource.specification.d.ts +81 -0
  518. package/dist/esm/engine/notifications/resources/conversation-threads.resource.specification.d.ts.map +1 -0
  519. package/dist/esm/engine/notifications/resources/conversation-threads.resource.specification.js +437 -0
  520. package/dist/esm/engine/notifications/resources/conversation-threads.resource.specification.js.map +1 -0
  521. package/dist/esm/engine/notifications/resources/inbound-deliveries.resource.specification.d.ts +112 -0
  522. package/dist/esm/engine/notifications/resources/inbound-deliveries.resource.specification.d.ts.map +1 -0
  523. package/dist/esm/engine/notifications/resources/inbound-deliveries.resource.specification.js +287 -0
  524. package/dist/esm/engine/notifications/resources/inbound-deliveries.resource.specification.js.map +1 -0
  525. package/dist/esm/engine/notifications/resources/inbound-email.resource.specification.d.ts +131 -0
  526. package/dist/esm/engine/notifications/resources/inbound-email.resource.specification.d.ts.map +1 -0
  527. package/dist/esm/engine/notifications/resources/inbound-email.resource.specification.js +594 -0
  528. package/dist/esm/engine/notifications/resources/inbound-email.resource.specification.js.map +1 -0
  529. package/dist/esm/engine/notifications/resources/index.d.ts +1 -0
  530. package/dist/esm/engine/notifications/resources/index.d.ts.map +1 -1
  531. package/dist/esm/engine/notifications/resources/index.js +1 -0
  532. package/dist/esm/engine/notifications/resources/index.js.map +1 -1
  533. package/dist/esm/engine/notifications/resources/m2m-webhook-delivery-log.resource.specification.d.ts +6 -3
  534. package/dist/esm/engine/notifications/resources/m2m-webhook-delivery-log.resource.specification.d.ts.map +1 -1
  535. package/dist/esm/engine/notifications/resources/m2m-webhook-delivery-log.resource.specification.js +20 -5
  536. package/dist/esm/engine/notifications/resources/m2m-webhook-delivery-log.resource.specification.js.map +1 -1
  537. package/dist/esm/engine/notifications/resources/notification-badges.resource.specification.d.ts.map +1 -1
  538. package/dist/esm/engine/notifications/resources/notification-badges.resource.specification.js +12 -2
  539. package/dist/esm/engine/notifications/resources/notification-badges.resource.specification.js.map +1 -1
  540. package/dist/esm/engine/notifications/resources/webhook-config.resource.specification.d.ts +6 -6
  541. package/dist/esm/engine/notifications/resources/webhook-config.resource.specification.d.ts.map +1 -1
  542. package/dist/esm/engine/notifications/resources/webhook-config.resource.specification.js +8 -11
  543. package/dist/esm/engine/notifications/resources/webhook-config.resource.specification.js.map +1 -1
  544. package/dist/esm/engine/notifications/system-emails/human-decision.system-emails.specification.d.ts +4 -0
  545. package/dist/esm/engine/notifications/system-emails/human-decision.system-emails.specification.d.ts.map +1 -0
  546. package/dist/esm/engine/notifications/system-emails/human-decision.system-emails.specification.js +62 -0
  547. package/dist/esm/engine/notifications/system-emails/human-decision.system-emails.specification.js.map +1 -0
  548. package/dist/esm/engine/notifications/system-emails/index.d.ts +2 -1
  549. package/dist/esm/engine/notifications/system-emails/index.d.ts.map +1 -1
  550. package/dist/esm/engine/notifications/system-emails/index.js +4 -2
  551. package/dist/esm/engine/notifications/system-emails/index.js.map +1 -1
  552. package/dist/esm/engine/organizations/resources/index.d.ts +2 -0
  553. package/dist/esm/engine/organizations/resources/index.d.ts.map +1 -1
  554. package/dist/esm/engine/organizations/resources/index.js +2 -0
  555. package/dist/esm/engine/organizations/resources/index.js.map +1 -1
  556. package/dist/esm/engine/organizations/resources/organization-members.resource.specification.d.ts +3 -0
  557. package/dist/esm/engine/organizations/resources/organization-members.resource.specification.d.ts.map +1 -1
  558. package/dist/esm/engine/organizations/resources/organization-members.resource.specification.js +40 -12
  559. package/dist/esm/engine/organizations/resources/organization-members.resource.specification.js.map +1 -1
  560. package/dist/esm/engine/organizations/resources/organization-notifications.resource.specification.js +2 -2
  561. package/dist/esm/engine/organizations/resources/organization-notifications.resource.specification.js.map +1 -1
  562. package/dist/esm/engine/organizations/resources/organization-preferences.resource.specification.js +2 -2
  563. package/dist/esm/engine/organizations/resources/organization-preferences.resource.specification.js.map +1 -1
  564. package/dist/esm/engine/organizations/resources/organization-profiles.resource.specification.d.ts +0 -1
  565. package/dist/esm/engine/organizations/resources/organization-profiles.resource.specification.d.ts.map +1 -1
  566. package/dist/esm/engine/organizations/resources/organization-profiles.resource.specification.js +4 -6
  567. package/dist/esm/engine/organizations/resources/organization-profiles.resource.specification.js.map +1 -1
  568. package/dist/esm/engine/organizations/resources/organization-unit-members.resource.specification.d.ts.map +1 -1
  569. package/dist/esm/engine/organizations/resources/organization-unit-members.resource.specification.js +7 -3
  570. package/dist/esm/engine/organizations/resources/organization-unit-members.resource.specification.js.map +1 -1
  571. package/dist/esm/engine/organizations/resources/organization-units.resource.specification.d.ts.map +1 -1
  572. package/dist/esm/engine/organizations/resources/organization-units.resource.specification.js +15 -8
  573. package/dist/esm/engine/organizations/resources/organization-units.resource.specification.js.map +1 -1
  574. package/dist/esm/engine/organizations/resources/organizations.resource.specification.d.ts +3 -1
  575. package/dist/esm/engine/organizations/resources/organizations.resource.specification.d.ts.map +1 -1
  576. package/dist/esm/engine/organizations/resources/organizations.resource.specification.js +36 -21
  577. package/dist/esm/engine/organizations/resources/organizations.resource.specification.js.map +1 -1
  578. package/dist/esm/engine/organizations/resources/service-provider-activity-feed.resource.specification.d.ts +38 -0
  579. package/dist/esm/engine/organizations/resources/service-provider-activity-feed.resource.specification.d.ts.map +1 -0
  580. package/dist/esm/engine/organizations/resources/service-provider-activity-feed.resource.specification.js +152 -0
  581. package/dist/esm/engine/organizations/resources/service-provider-activity-feed.resource.specification.js.map +1 -0
  582. package/dist/esm/engine/organizations/resources/service-provider-relationships.resource.specification.d.ts +106 -0
  583. package/dist/esm/engine/organizations/resources/service-provider-relationships.resource.specification.d.ts.map +1 -0
  584. package/dist/esm/engine/organizations/resources/service-provider-relationships.resource.specification.js +417 -0
  585. package/dist/esm/engine/organizations/resources/service-provider-relationships.resource.specification.js.map +1 -0
  586. package/dist/esm/engine/providers/apple.provider.specification.js +1 -1
  587. package/dist/esm/engine/providers/apple.provider.specification.js.map +1 -1
  588. package/dist/esm/engine/providers/github.provider.specification.js +1 -1
  589. package/dist/esm/engine/providers/github.provider.specification.js.map +1 -1
  590. package/dist/esm/engine/providers/google-places.provider.specification.d.ts +6 -0
  591. package/dist/esm/engine/providers/google-places.provider.specification.d.ts.map +1 -0
  592. package/dist/esm/engine/providers/google-places.provider.specification.js +44 -0
  593. package/dist/esm/engine/providers/google-places.provider.specification.js.map +1 -0
  594. package/dist/esm/engine/providers/google.provider.specification.js +1 -1
  595. package/dist/esm/engine/providers/google.provider.specification.js.map +1 -1
  596. package/dist/esm/engine/providers/index.d.ts +2 -0
  597. package/dist/esm/engine/providers/index.d.ts.map +1 -1
  598. package/dist/esm/engine/providers/index.js +5 -1
  599. package/dist/esm/engine/providers/index.js.map +1 -1
  600. package/dist/esm/engine/providers/microsoft.provider.specification.d.ts.map +1 -1
  601. package/dist/esm/engine/providers/microsoft.provider.specification.js +10 -6
  602. package/dist/esm/engine/providers/microsoft.provider.specification.js.map +1 -1
  603. package/dist/esm/engine/providers/recaptcha.provider.specification.d.ts +6 -0
  604. package/dist/esm/engine/providers/recaptcha.provider.specification.d.ts.map +1 -0
  605. package/dist/esm/engine/providers/recaptcha.provider.specification.js +38 -0
  606. package/dist/esm/engine/providers/recaptcha.provider.specification.js.map +1 -0
  607. package/dist/esm/engine/providers/resend.provider.specification.d.ts.map +1 -1
  608. package/dist/esm/engine/providers/resend.provider.specification.js +3 -1
  609. package/dist/esm/engine/providers/resend.provider.specification.js.map +1 -1
  610. package/dist/esm/engine/providers/stripe.provider.specification.d.ts.map +1 -1
  611. package/dist/esm/engine/providers/stripe.provider.specification.js +3 -2
  612. package/dist/esm/engine/providers/stripe.provider.specification.js.map +1 -1
  613. package/dist/esm/engine/roles/app-billing-provider-events.role.specification.d.ts +2 -0
  614. package/dist/esm/engine/roles/app-billing-provider-events.role.specification.d.ts.map +1 -0
  615. package/dist/esm/engine/roles/app-billing-provider-events.role.specification.js +21 -0
  616. package/dist/esm/engine/roles/app-billing-provider-events.role.specification.js.map +1 -0
  617. package/dist/esm/engine/roles/app-email-inbound-intake.role.specification.d.ts +2 -0
  618. package/dist/esm/engine/roles/app-email-inbound-intake.role.specification.d.ts.map +1 -0
  619. package/dist/esm/engine/roles/app-email-inbound-intake.role.specification.js +21 -0
  620. package/dist/esm/engine/roles/app-email-inbound-intake.role.specification.js.map +1 -0
  621. package/dist/esm/engine/roles/index.d.ts +13 -5
  622. package/dist/esm/engine/roles/index.d.ts.map +1 -1
  623. package/dist/esm/engine/roles/index.js +19 -6
  624. package/dist/esm/engine/roles/index.js.map +1 -1
  625. package/dist/esm/engine/roles/org-billing-provider-events.role.specification.d.ts +2 -0
  626. package/dist/esm/engine/roles/org-billing-provider-events.role.specification.d.ts.map +1 -0
  627. package/dist/esm/engine/roles/org-billing-provider-events.role.specification.js +21 -0
  628. package/dist/esm/engine/roles/org-billing-provider-events.role.specification.js.map +1 -0
  629. package/dist/esm/engine/roles/org-delegated-capabilities.role.specification.d.ts +7 -0
  630. package/dist/esm/engine/roles/org-delegated-capabilities.role.specification.d.ts.map +1 -0
  631. package/dist/esm/engine/roles/org-delegated-capabilities.role.specification.js +72 -0
  632. package/dist/esm/engine/roles/org-delegated-capabilities.role.specification.js.map +1 -0
  633. package/dist/esm/engine/roles/org-service-provider.role.specification.d.ts +2 -0
  634. package/dist/esm/engine/roles/org-service-provider.role.specification.d.ts.map +1 -0
  635. package/dist/esm/engine/roles/org-service-provider.role.specification.js +22 -0
  636. package/dist/esm/engine/roles/org-service-provider.role.specification.js.map +1 -0
  637. package/dist/esm/engine/users/resources/anonymous-users.resource.specification.js +2 -2
  638. package/dist/esm/engine/users/resources/anonymous-users.resource.specification.js.map +1 -1
  639. package/dist/esm/engine/users/resources/inbound-contacts.resource.specification.js +3 -3
  640. package/dist/esm/engine/users/resources/inbound-contacts.resource.specification.js.map +1 -1
  641. package/dist/esm/engine/users/resources/self-service-user-notifications.shared.d.ts +1 -1
  642. package/dist/esm/engine/users/resources/self-service-user-notifications.shared.d.ts.map +1 -1
  643. package/dist/esm/engine/users/resources/self-service-user-notifications.shared.js +3 -6
  644. package/dist/esm/engine/users/resources/self-service-user-notifications.shared.js.map +1 -1
  645. package/dist/esm/engine/users/resources/user-credentials.resource.specification.js +2 -2
  646. package/dist/esm/engine/users/resources/user-credentials.resource.specification.js.map +1 -1
  647. package/dist/esm/engine/users/resources/user-identity-links.resource.specification.js +2 -2
  648. package/dist/esm/engine/users/resources/user-identity-links.resource.specification.js.map +1 -1
  649. package/dist/esm/engine/users/resources/user-preferences-api-reference.examples.d.ts +0 -4
  650. package/dist/esm/engine/users/resources/user-preferences-api-reference.examples.d.ts.map +1 -1
  651. package/dist/esm/engine/users/resources/user-preferences-api-reference.examples.js +0 -3
  652. package/dist/esm/engine/users/resources/user-preferences-api-reference.examples.js.map +1 -1
  653. package/dist/esm/engine/users/resources/user-preferences.resource.specification.d.ts +0 -3
  654. package/dist/esm/engine/users/resources/user-preferences.resource.specification.d.ts.map +1 -1
  655. package/dist/esm/engine/users/resources/user-preferences.resource.specification.js +7 -7
  656. package/dist/esm/engine/users/resources/user-preferences.resource.specification.js.map +1 -1
  657. package/dist/esm/engine/users/resources/user-profiles.resource.specification.js +5 -5
  658. package/dist/esm/engine/users/resources/user-profiles.resource.specification.js.map +1 -1
  659. package/dist/esm/engine/users/resources/user-self-preferences.resource.specification.d.ts +0 -3
  660. package/dist/esm/engine/users/resources/user-self-preferences.resource.specification.d.ts.map +1 -1
  661. package/dist/esm/engine/users/resources/user-self-preferences.resource.specification.js +11 -18
  662. package/dist/esm/engine/users/resources/user-self-preferences.resource.specification.js.map +1 -1
  663. package/dist/esm/engine/users/resources/user-self-profiles.resource.specification.js +6 -6
  664. package/dist/esm/engine/users/resources/user-self-profiles.resource.specification.js.map +1 -1
  665. package/dist/esm/engine/users/resources/user-self.resource.specification.d.ts.map +1 -1
  666. package/dist/esm/engine/users/resources/user-self.resource.specification.js +5 -1
  667. package/dist/esm/engine/users/resources/user-self.resource.specification.js.map +1 -1
  668. package/dist/esm/engine/users/resources/users.resource.specification.d.ts +8 -5
  669. package/dist/esm/engine/users/resources/users.resource.specification.d.ts.map +1 -1
  670. package/dist/esm/engine/users/resources/users.resource.specification.js +49 -16
  671. package/dist/esm/engine/users/resources/users.resource.specification.js.map +1 -1
  672. package/dist/esm/technical-documentation/engine-documentation-specification-catalog.companion.d.ts.map +1 -1
  673. package/dist/esm/technical-documentation/engine-documentation-specification-catalog.companion.js +29 -10
  674. package/dist/esm/technical-documentation/engine-documentation-specification-catalog.companion.js.map +1 -1
  675. package/dist/tsconfig.build.tsbuildinfo +1 -1
  676. package/package.json +8 -8
  677. package/dist/assurance/external-framework-mapping.json +0 -1228
@@ -34,7 +34,13 @@ import { AssuranceDocumentFactAuthorityKind, AssuranceIsoDateTimeSchema, createI
34
34
  * keys a `Map<string, …>`), and the runtime path never noticed because it builds plain strings and lets
35
35
  * `.parse()` brand them.
36
36
  */
37
- const AuthoredNamespacedRefSchema = z.string().trim().regex(/^[a-z0-9]+(?:[-.][a-z0-9]+)*:[a-z0-9]+(?:[-/.][a-z0-9]+)*$/u, "expected a namespaced ref");
37
+ const AUTHORED_NAMESPACED_REF_PATTERN = /^[a-z0-9]+(?:[-.][a-z0-9]+)*:[a-z0-9]+(?:[-/.][a-z0-9]+)*$/u;
38
+ const AuthoredNamespacedRefSchema = z.string().trim().regex(AUTHORED_NAMESPACED_REF_PATTERN, "expected a namespaced ref");
39
+ /**
40
+ * A declaration's OWN key (`declarationRef`): the same namespaced-ref contract as
41
+ * `AuthoredNamespacedRefSchema`, declared apart from the refs a declaration POINTS AT (`factRef`, …).
42
+ */
43
+ const DeclarationKeySchema = z.string().trim().regex(AUTHORED_NAMESPACED_REF_PATTERN, "expected a namespaced ref");
38
44
  /**
39
45
  * The governance scope as an AUTHOR writes it.
40
46
  *
@@ -125,6 +131,20 @@ const ApplicationDocumentFactDeclarationQualifiedReviewAuthoritySchema = Applica
125
131
  independenceDisclosure: z.string().trim().min(1),
126
132
  decidedAt: AssuranceIsoDateTimeSchema,
127
133
  });
134
+ /**
135
+ * RUNTIME evidence: the value was computed from records the application's own store holds — what the product
136
+ * DID, rather than what it declares (#1636). Only a {@link ComputedDocumentFact} whose computation reads
137
+ * records may carry it ({@link COMPUTED_DOCUMENT_FACT_AUTHORITY_KINDS}), and a computed fact is never stored
138
+ * (`DOCUMENT_FACT_IS_COMPUTED`), so no file can claim it: it exists only in the read view the runtime lays
139
+ * over the stored facts.
140
+ *
141
+ * `observedAt` is the instant the evidence describes up to — the end of the window the records were read
142
+ * for. A notice built from it states retention as of that instant, never as of the moment it is read.
143
+ */
144
+ const ApplicationDocumentFactDeclarationRuntimeEvidenceAuthoritySchema = ApplicationDocumentFactDeclarationAuthorityCommonSchema.extend({
145
+ factAuthorityKind: z.literal(AssuranceDocumentFactAuthorityKind.RUNTIME_EVIDENCE).systemEnum('AssuranceDocumentFactAuthorityKind'),
146
+ observedAt: AssuranceIsoDateTimeSchema,
147
+ });
128
148
  /**
129
149
  * Every authority kind — the READER's union.
130
150
  *
@@ -138,6 +158,7 @@ export const ApplicationDocumentFactDeclarationAuthoritySchema = z.discriminated
138
158
  ApplicationDocumentFactDeclarationApplicationSpecificationAuthoritySchema,
139
159
  ApplicationDocumentFactDeclarationCreatorDecisionAuthoritySchema,
140
160
  ApplicationDocumentFactDeclarationQualifiedReviewAuthoritySchema,
161
+ ApplicationDocumentFactDeclarationRuntimeEvidenceAuthoritySchema,
141
162
  ]);
142
163
  /**
143
164
  * The AUTHORED half — a human said it.
@@ -150,8 +171,13 @@ const ApplicationAuthoredDocumentFactDeclarationAuthoritySchema = z.discriminate
150
171
  ApplicationDocumentFactDeclarationCreatorDecisionAuthoritySchema,
151
172
  ApplicationDocumentFactDeclarationQualifiedReviewAuthoritySchema,
152
173
  ]);
174
+ /** The DERIVED family's authorities: the specification, and runtime evidence for a record-computed fact only. */
175
+ const ApplicationDerivedDocumentFactDeclarationAuthoritySchema = z.discriminatedUnion("factAuthorityKind", [
176
+ ApplicationDocumentFactDeclarationApplicationSpecificationAuthoritySchema,
177
+ ApplicationDocumentFactDeclarationRuntimeEvidenceAuthoritySchema,
178
+ ]);
153
179
  const ApplicationDocumentFactDeclarationCommonSchema = z.strictObject({
154
- declarationRef: AuthoredNamespacedRefSchema,
180
+ declarationRef: DeclarationKeySchema,
155
181
  declarationVersion: GovernedDocumentPositiveSafeIntegerSchema,
156
182
  factRef: AuthoredNamespacedRefSchema,
157
183
  factVersion: GovernedDocumentPositiveSafeIntegerSchema,
@@ -191,7 +217,21 @@ const refineDocumentFactDeclaration = (declaration, context) => {
191
217
  context.addIssue({ code: "custom", message: "a qualified fact reviewer cannot be the fact author", path: ["authority", "reviewerRef"] });
192
218
  }
193
219
  }
194
- const authorityInstant = declaration.authority.factAuthorityKind === AssuranceDocumentFactAuthorityKind.APPLICATION_SPECIFICATION ? undefined : declaration.authority.decidedAt;
220
+ if (declaration.authority.factAuthorityKind === AssuranceDocumentFactAuthorityKind.RUNTIME_EVIDENCE) {
221
+ // Runtime evidence names a fact computed from records, and nothing else. Every other fact — and so every
222
+ // fact a file can hold — stays refused here, which is what keeps runtime evidence non-declarable.
223
+ const computed = computedDocumentFactOf(declaration.factRef);
224
+ if (computed === undefined || COMPUTED_DOCUMENT_FACT_AUTHORITY_KINDS[computed] !== AssuranceDocumentFactAuthorityKind.RUNTIME_EVIDENCE) {
225
+ context.addIssue({
226
+ code: "custom",
227
+ message: "RUNTIME_EVIDENCE authority is carried only by a fact the runtime computes from the application's own records",
228
+ path: ["authority", "factAuthorityKind"],
229
+ });
230
+ }
231
+ }
232
+ const authorityInstant = declaration.authority.factAuthorityKind === AssuranceDocumentFactAuthorityKind.APPLICATION_SPECIFICATION ? undefined
233
+ : declaration.authority.factAuthorityKind === AssuranceDocumentFactAuthorityKind.RUNTIME_EVIDENCE ? declaration.authority.observedAt
234
+ : declaration.authority.decidedAt;
195
235
  if (authorityInstant && declaration.validUntil && Date.parse(declaration.validUntil) <= Date.parse(authorityInstant)) {
196
236
  context.addIssue({ code: "custom", message: "validUntil must follow the human authority decision", path: ["validUntil"] });
197
237
  }
@@ -209,7 +249,10 @@ const refineDocumentFactDeclaration = (declaration, context) => {
209
249
  /**
210
250
  * A DERIVED declaration — `document-facts`, the family a producer writes.
211
251
  *
212
- * Its authority union has exactly one member, and that is the point of the split (#192): the
252
+ * Its authority is `APPLICATION_SPECIFICATION`, plus `RUNTIME_EVIDENCE` for the one purpose the refinement
253
+ * admits it: a fact the runtime computes from records, laid over the file in the read view and never stored
254
+ * (#1636). A PRODUCER therefore still has exactly one authority it can land, and that is the point of the
255
+ * split (#192): the
213
256
  * `refinement.document-facts` producer regenerates this whole file, so a human decision left in it is
214
257
  * silently overwritten on the next run. Narrowing the TYPE is what makes "a generator may never write a
215
258
  * `CREATOR_DECISION`" structural instead of a rule somebody has to remember — the generation contract
@@ -219,12 +262,12 @@ const refineDocumentFactDeclaration = (declaration, context) => {
219
262
  export const ApplicationDerivedDocumentFactDeclarationSchema = z
220
263
  .discriminatedUnion("resolutionKind", [
221
264
  ApplicationDocumentFactDeclarationCommonSchema.extend({
222
- authority: ApplicationDocumentFactDeclarationApplicationSpecificationAuthoritySchema,
265
+ authority: ApplicationDerivedDocumentFactDeclarationAuthoritySchema,
223
266
  resolutionKind: z.literal(ApplicationAssuranceDocumentFactContributionResolutionKind.KNOWN).systemEnum('ApplicationAssuranceDocumentFactContributionResolutionKind'),
224
267
  value: z.json(),
225
268
  }),
226
269
  ApplicationDocumentFactDeclarationCommonSchema.extend({
227
- authority: ApplicationDocumentFactDeclarationApplicationSpecificationAuthoritySchema,
270
+ authority: ApplicationDerivedDocumentFactDeclarationAuthoritySchema,
228
271
  resolutionKind: z.literal(ApplicationAssuranceDocumentFactContributionResolutionKind.NOT_APPLICABLE).systemEnum('ApplicationAssuranceDocumentFactContributionResolutionKind'),
229
272
  reason: z.string().trim().min(1),
230
273
  }),
@@ -393,6 +436,14 @@ export function resolveBlueprintAssignedFactAuthorityKinds(factRef) {
393
436
  * `rights-and-complaint-route` once the verification procedure had `subjectRequestIdentityVerification`. When a member's inputs are absent, its
394
437
  * computation answers NOTHING: the fact stays absent and every clause resting on it is marked as owed,
395
438
  * which is the honest state of "nobody has declared this".
439
+ *
440
+ * ## The runtime member
441
+ *
442
+ * One member is computed from what the application DID rather than from what it declares:
443
+ * `retention-enforcement` reads the retention-enforcement records the sweep writes (#1636), and so carries
444
+ * `RUNTIME_EVIDENCE` authority rather than `APPLICATION_SPECIFICATION` — see
445
+ * {@link COMPUTED_DOCUMENT_FACT_AUTHORITY_KINDS}. Its whole answer is still a FUNCTION, of records and
446
+ * declarations together, which is what membership requires; nobody decides it.
396
447
  */
397
448
  export var ComputedDocumentFact;
398
449
  (function (ComputedDocumentFact) {
@@ -427,7 +478,40 @@ export var ComputedDocumentFact;
427
478
  * decides) and `roleAllocations` (who answers each population's requests) (#454).
428
479
  */
429
480
  ComputedDocumentFact["RIGHTS_AND_COMPLAINT_ROUTE"] = "rights-and-complaint-route";
481
+ /**
482
+ * From the retention-enforcement records the retention-class sweep writes, read against `dataRetention` and
483
+ * each resource's `retentionBinding`: per declared class, whether the period was ENFORCED, is only DECLARED,
484
+ * or is FAILING (#1636). The first `RUNTIME_EVIDENCE` fact — a notice says a period is enforced only when
485
+ * the product has shown it. Absent when the records could not be read, which is not "nothing enforced".
486
+ */
487
+ ComputedDocumentFact["RETENTION_ENFORCEMENT"] = "retention-enforcement";
488
+ /**
489
+ * From the resources bound to, or piped from, a declared system of record (#1745): per flow, the instance and its
490
+ * vendor, the local resource, the `.dataCategories()` of the fields that come from it, the purposes the binding links
491
+ * and whether the rows are kept until erased. The SOURCE a notice owes for data not collected from the person (GDPR
492
+ * Art. 14(2)(f)), with the purpose and basis for obtaining it (Art. 14(1)(c)). The PROXIMATE source only: whether
493
+ * the data originated from a publicly accessible source is not declared anywhere, so it is not stated. Distinct from
494
+ * `data-categories-and-sources`, a stored fact covering every collection source: a computed fact replaces any stored
495
+ * fact under its own reference, so sharing one would discard what that fact states about every other source.
496
+ */
497
+ ComputedDocumentFact["SYSTEM_OF_RECORD_SOURCES"] = "system-of-record-sources";
430
498
  })(ComputedDocumentFact || (ComputedDocumentFact = {}));
499
+ /**
500
+ * The authority each computed fact carries — ONE table, so the overlay stamps it and the schema admits it
501
+ * from the same source. `RUNTIME_EVIDENCE` only where the value is computed from records (invariant: a fact
502
+ * is never labelled with a tier its computation did not earn; `.claude/rules/compliance-is-derived-from-the-product.md`
503
+ * rule 7).
504
+ */
505
+ export const COMPUTED_DOCUMENT_FACT_AUTHORITY_KINDS = {
506
+ [ComputedDocumentFact.CONTROLLER_AND_CONTACT]: AssuranceDocumentFactAuthorityKind.APPLICATION_SPECIFICATION,
507
+ [ComputedDocumentFact.RECIPIENTS_AND_PROCESSORS]: AssuranceDocumentFactAuthorityKind.APPLICATION_SPECIFICATION,
508
+ [ComputedDocumentFact.LAWFUL_BASES]: AssuranceDocumentFactAuthorityKind.APPLICATION_SPECIFICATION,
509
+ [ComputedDocumentFact.RETENTION_RULES]: AssuranceDocumentFactAuthorityKind.APPLICATION_SPECIFICATION,
510
+ [ComputedDocumentFact.INTERNATIONAL_TRANSFERS]: AssuranceDocumentFactAuthorityKind.APPLICATION_SPECIFICATION,
511
+ [ComputedDocumentFact.RIGHTS_AND_COMPLAINT_ROUTE]: AssuranceDocumentFactAuthorityKind.APPLICATION_SPECIFICATION,
512
+ [ComputedDocumentFact.RETENTION_ENFORCEMENT]: AssuranceDocumentFactAuthorityKind.RUNTIME_EVIDENCE,
513
+ [ComputedDocumentFact.SYSTEM_OF_RECORD_SOURCES]: AssuranceDocumentFactAuthorityKind.APPLICATION_SPECIFICATION,
514
+ };
431
515
  const DOCUMENT_FACT_REF_PREFIX = "document-fact:";
432
516
  /** The computed fact a ref names, or `undefined` when the fact is declared rather than computed. */
433
517
  export function computedDocumentFactOf(factRef) {
@@ -507,10 +591,13 @@ export function validateApplicationDocumentFactSpecification(specification) {
507
591
  path: `declarations.${index}.authority.factAuthorityKind`,
508
592
  message: `"${declaration.factRef}" is declared under ${declaration.authority.factAuthorityKind} authority, but the document `
509
593
  + `blueprints assign that fact ${assigned}. `
510
- + (declaration.authority.factAuthorityKind === AssuranceDocumentFactAuthorityKind.APPLICATION_SPECIFICATION
511
- ? "A producer may not answer it: remove the declaration from the derived family and leave the fact absent until "
512
- + "it is decided in the authored family, where a document marks the clause as owed rather than stating it."
513
- : "It is answered from the accepted specification: remove the hand-authored declaration and let the derived family carry it."),
594
+ + (assignedKinds.has(AssuranceDocumentFactAuthorityKind.RUNTIME_EVIDENCE)
595
+ ? "It is computed from the application's own records whenever facts are read (#1636): remove the declaration, "
596
+ + "from either family. Nobody answers it; collecting the evidence does."
597
+ : declaration.authority.factAuthorityKind === AssuranceDocumentFactAuthorityKind.APPLICATION_SPECIFICATION
598
+ ? "A producer may not answer it: remove the declaration from the derived family and leave the fact absent until "
599
+ + "it is decided in the authored family, where a document marks the clause as owed rather than stating it."
600
+ : "It is answered from the accepted specification: remove the hand-authored declaration and let the derived family carry it."),
514
601
  });
515
602
  }
516
603
  /*
@@ -524,7 +611,7 @@ export function validateApplicationDocumentFactSpecification(specification) {
524
611
  kind: ApplicationDocumentFactSpecificationIssueKind.DOCUMENT_FACT_IS_COMPUTED,
525
612
  severity: ApplicationDocumentFactSpecificationIssueSeverity.ERROR,
526
613
  path: `declarations.${index}.factRef`,
527
- message: `"${declaration.factRef}" is computed from the application's own declarations whenever its facts are read. `
614
+ message: `"${declaration.factRef}" is computed from the application's own declarations and records whenever its facts are read. `
528
615
  + "Remove this declaration: change the declaration it restates instead (`operatorComplianceIdentity`, the processor register "
529
616
  + "or a provider's deployment choice), and every document reads the change.",
530
617
  });
@@ -1 +1 @@
1
- {"version":3,"file":"application-document-fact-specification.application-creation.schemas.js","sourceRoot":"","sources":["../../../../src/application-creation/application-document-fact-specification.application-creation.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qCAAqC,EAAE,yCAAyC,EAAE,MAAM,uBAAuB,CAAC;AACzH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,6GAA6G;AAC7G,+GAA+G;AAC/G,OAAO,0BAA0B,CAAC;AAElC,OAAO,EACL,kCAAkC,EAClC,0BAA0B,EAC1B,8CAA8C,EAC9C,+BAA+B,GAChC,MAAM,sBAAsB,CAAC;AAE9B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH,MAAM,2BAA2B,GAAG,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,CAAC,KAAK,CACzD,6DAA6D,EAC7D,2BAA2B,CAC5B,CAAC;AAEF;;;;;;;;;;;GAWG;AACH,MAAM,6BAA6B,GAAG,CAAC;KACpC,YAAY,CAAC;IACZ,WAAW,EAAE,CAAC,CAAC,IAAI,CAAC,qCAAqC,CAAC,CAAC,UAAU,CAAC,uCAAuC,CAAC;IAC9G,UAAU,EAAE,2BAA2B;IACvC,QAAQ,EAAE,2BAA2B;IACrC,YAAY,EAAE,yCAAyC;IACvD,eAAe,EAAE,CAAC,CAAC,KAAK,CAAC,2BAA2B,CAAC;IACrD,kBAAkB,EAAE,CAAC,CAAC,KAAK,CAAC,2BAA2B,CAAC;CACzD,CAAC;KACD,WAAW,CAAC,CAAC,KAAK,EAAE,OAAO,EAAE,EAAE;IAC9B,IAAI,KAAK,CAAC,WAAW,KAAK,qCAAqC,CAAC,qBAAqB,EAAE,CAAC;QACtF,IAAI,KAAK,CAAC,eAAe,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;YACrC,OAAO,CAAC,QAAQ,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC,iBAAiB,CAAC,EAAE,OAAO,EAAE,qEAAqE,EAAE,CAAC,CAAC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","sourcesContent":["import { GovernedDocumentGovernanceSubjectKind, GovernedDocumentPositiveSafeIntegerSchema } from \"@wildo-ai/saas-models\";\nimport { z } from \"zod\";\n// Side-effect import: this module calls `.systemEnum()` at load, so the decorators must be installed first —\n// never by the importer's luck (#966). A named import used only as a type would be elided and install nothing.\nimport '@wildo-ai/zod-decorators';\n\nimport {\n AssuranceDocumentFactAuthorityKind,\n AssuranceIsoDateTimeSchema,\n createInitialAssuranceDocumentAuthorityCatalog,\n listAssuranceDocumentBlueprints,\n} from \"../assurance.exports\";\n\n/**\n * A namespaced ref as an AUTHOR writes it — the same `namespace:slug` grammar as\n * `AuthoredNamespacedRefSchema`, and deliberately NOT branded.\n *\n * ## Why this file cannot use the branded one\n *\n * A brand is nominal typing: `string & $brand<\"AssuranceNamespacedRef\">`. A plain string literal is not\n * assignable to it, so a field typed that way **cannot be written as a literal at all** — not by a\n * human, and not by the landing renderer, which emits exactly what a human would write. The only way\n * past is a cast, and a cast asserts the very thing the brand exists to prove.\n *\n * That made this family unauthorable, and it went unnoticed for one reason: the family could not RENDER\n * either (its vocabularies were unnameable), so no file ever reached a typechecker. The moment rendering\n * was fixed, the first landed `document-facts` file produced **170 assignability errors** in the\n * application's own specifications package — every ref field, plus every ref inside the embedded\n * governance scope.\n *\n * ## The line this draws, and it is the one this lane keeps rediscovering\n *\n * A branded type is right for a value obtained by PARSING and wrong for one written by HAND. This\n * family is an authored input — D7/D9: the facts are a FILE the application commits, like every other\n * family — so its fields are shaped for authoring, and the regex still does the validating. The sibling\n * `compliance-document-candidate` family made the same call independently, with its own unbranded\n * `ComplianceDocumentNamespacedRefSchema`; the two families disagreed for no stated reason, and this one\n * was the one nobody could write.\n *\n * Nothing depended on the brand: every consumer reads these refs as strings (the availability collector\n * keys a `Map<string, …>`), and the runtime path never noticed because it builds plain strings and lets\n * `.parse()` brand them.\n */\nconst AuthoredNamespacedRefSchema = z.string().trim().regex(\n /^[a-z0-9]+(?:[-.][a-z0-9]+)*:[a-z0-9]+(?:[-/.][a-z0-9]+)*$/u,\n \"expected a namespaced ref\",\n);\n\n/**\n * The governance scope as an AUTHOR writes it.\n *\n * Structurally the same question `GovernedDocumentGovernanceScopeSchema` answers — whose document this\n * is, and over what — restated with authored refs for the reason above: that schema's `subjectRef`,\n * `scopeRef`, `participantRefs` and `precedenceRuleRefs` are all branded `GovernedDocumentRef`, and it\n * serves RUNTIME document code where a parsed, branded ref is exactly right.\n *\n * The shared-responsibility rule is kept, because it is semantic rather than ceremonial: a scope\n * attributed to several parties must name at least two participants and say which one prevails, or the\n * document silently claims an allocation nobody made.\n */\nconst AuthoredGovernanceScopeSchema = z\n .strictObject({\n subjectKind: z.enum(GovernedDocumentGovernanceSubjectKind).systemEnum('GovernedDocumentGovernanceSubjectKind'),\n subjectRef: AuthoredNamespacedRefSchema,\n scopeRef: AuthoredNamespacedRefSchema,\n scopeVersion: GovernedDocumentPositiveSafeIntegerSchema,\n participantRefs: z.array(AuthoredNamespacedRefSchema),\n precedenceRuleRefs: z.array(AuthoredNamespacedRefSchema),\n })\n .superRefine((scope, context) => {\n if (scope.subjectKind === GovernedDocumentGovernanceSubjectKind.SHARED_RESPONSIBILITY) {\n if (scope.participantRefs.length < 2) {\n context.addIssue({ code: \"custom\", path: [\"participantRefs\"], message: \"shared responsibility requires at least two attributed participants\" });\n }\n if (scope.precedenceRuleRefs.length === 0) {\n context.addIssue({ code: \"custom\", path: [\"precedenceRuleRefs\"], message: \"shared responsibility requires an explicit precedence rule\" });\n }\n return;\n }\n if (scope.participantRefs.length > 0 || scope.precedenceRuleRefs.length > 0) {\n context.addIssue({ code: \"custom\", path: [\"participantRefs\"], message: \"only a shared-responsibility scope attributes participants or precedence rules\" });\n }\n });\n\n/**\n * Whether a declared document fact HAS an answer, or was considered and does not apply.\n *\n * The two are different answers and a document that confuses them is wrong in different ways: \"we\n * perform no international transfers\" is a citable statement, while \"international transfers are not\n * applicable to us\" is the application declining to answer, and a clause resting on the second\n * asserts something nobody established. A fact ABSENT from the specification is neither — nobody has\n * considered it at all.\n *\n * It lived in `application-assurance-document-fact-projection.…schemas.ts` until 2026-08-28, when\n * that module — a host-computed projection carrying a projector identity, source-head digests and\n * per-contribution authority receipts — was deleted with the rest of the digest machinery\n * (`.claude/rules/one-source-of-truth.md`, Rule 0). This enum was the only thing in its 999 lines\n * that anything outside it used, and it belongs here: it is the resolution kind of a DECLARATION,\n * which is what this file is about.\n */\nexport enum ApplicationAssuranceDocumentFactContributionResolutionKind {\n /** The application declared this fact and it carries a value. */\n KNOWN = \"KNOWN\",\n /** The application considered this fact and it genuinely does not apply. Citable by nothing. */\n NOT_APPLICABLE = \"NOT_APPLICABLE\",\n}\n\nconst compareCanonicalText = (left: string, right: string): number => (left < right ? -1 : left > right ? 1 : 0);\nconst valuesAreUnique = (values: readonly string[]): boolean => new Set(values).size === values.length;\nconst valuesAreLexicallySorted = (values: readonly string[]): boolean =>\n values.every((value, index) => index === 0 || compareCanonicalText(values[index - 1]!, value) <= 0);\n\nconst ApplicationDocumentFactDeclarationAuthorityCommonSchema = z.strictObject({\n authorityRef: AuthoredNamespacedRefSchema,\n authorityVersion: GovernedDocumentPositiveSafeIntegerSchema,\n});\n\n/**\n * The DERIVED authority: the accepted semantic member itself is the authority — the committed\n * specification file, which git already identifies per commit — so there is no human to name.\n *\n * It carries no `decidedAt`, and that absence is the whole reason a generator may produce it: there is\n * no decision instant to invent and no accountable actor to fabricate.\n */\nconst ApplicationDocumentFactDeclarationApplicationSpecificationAuthoritySchema = ApplicationDocumentFactDeclarationAuthorityCommonSchema.extend({\n factAuthorityKind: z.literal(AssuranceDocumentFactAuthorityKind.APPLICATION_SPECIFICATION).systemEnum('AssuranceDocumentFactAuthorityKind'),\n});\n\n/** A creator's decision: a named human, at a real instant. */\nconst ApplicationDocumentFactDeclarationCreatorDecisionAuthoritySchema = ApplicationDocumentFactDeclarationAuthorityCommonSchema.extend({\n factAuthorityKind: z.literal(AssuranceDocumentFactAuthorityKind.CREATOR_DECISION).systemEnum('AssuranceDocumentFactAuthorityKind'),\n decidedByRef: AuthoredNamespacedRefSchema,\n decidedAt: AssuranceIsoDateTimeSchema,\n});\n\n/** A qualified review: a named author, a named reviewer, their qualifications, and what they disclose. */\nconst ApplicationDocumentFactDeclarationQualifiedReviewAuthoritySchema = ApplicationDocumentFactDeclarationAuthorityCommonSchema.extend({\n factAuthorityKind: z.literal(AssuranceDocumentFactAuthorityKind.QUALIFIED_REVIEW).systemEnum('AssuranceDocumentFactAuthorityKind'),\n authorRef: AuthoredNamespacedRefSchema,\n reviewerRef: AuthoredNamespacedRefSchema,\n reviewerQualificationRefs: z.array(AuthoredNamespacedRefSchema).min(1),\n independenceDisclosure: z.string().trim().min(1),\n decidedAt: AssuranceIsoDateTimeSchema,\n});\n\n/**\n * Every authority kind — the READER's union.\n *\n * A consumer that reads facts does not care which family a declaration came from: the document asserts\n * the FACT. So this stays whole, and the two WRITER unions below are its disjoint halves.\n *\n * Human decisions retain their actual decision instant and named accountable actors; accepting the\n * surrounding specification never rewrites that instant or silently upgrades the authority kind.\n */\nexport const ApplicationDocumentFactDeclarationAuthoritySchema = z.discriminatedUnion(\"factAuthorityKind\", [\n ApplicationDocumentFactDeclarationApplicationSpecificationAuthoritySchema,\n ApplicationDocumentFactDeclarationCreatorDecisionAuthoritySchema,\n ApplicationDocumentFactDeclarationQualifiedReviewAuthoritySchema,\n]);\nexport type ApplicationDocumentFactDeclarationAuthority = z.infer<typeof ApplicationDocumentFactDeclarationAuthoritySchema>;\n\n/**\n * The AUTHORED half — a human said it.\n *\n * Kept as a union rather than folded into one shape because the two differ in what they must disclose:\n * a creator decision names who decided, a qualified review additionally names who reviewed, against\n * what qualifications, and how independent they were.\n */\nconst ApplicationAuthoredDocumentFactDeclarationAuthoritySchema = z.discriminatedUnion(\"factAuthorityKind\", [\n ApplicationDocumentFactDeclarationCreatorDecisionAuthoritySchema,\n ApplicationDocumentFactDeclarationQualifiedReviewAuthoritySchema,\n]);\n\nconst ApplicationDocumentFactDeclarationCommonSchema = z.strictObject({\n declarationRef: AuthoredNamespacedRefSchema,\n declarationVersion: GovernedDocumentPositiveSafeIntegerSchema,\n factRef: AuthoredNamespacedRefSchema,\n factVersion: GovernedDocumentPositiveSafeIntegerSchema,\n governanceScope: AuthoredGovernanceScopeSchema,\n sensitivityRef: AuthoredNamespacedRefSchema,\n validUntil: AssuranceIsoDateTimeSchema.optional(),\n});\n\n/**\n * The structural minimum the cross-field rules need, so ONE implementation of them serves all three\n * declaration schemas below.\n *\n * Written structurally rather than as `z.infer<typeof …>` because the wide schema does not exist yet at\n * this point in the file, and a narrow declaration is assignable to this shape by construction.\n */\ntype DocumentFactDeclarationRefinementSubject = {\n readonly declarationRef: string;\n readonly factRef: string;\n readonly sensitivityRef: string;\n readonly validUntil?: string | undefined;\n /**\n * Declared OPTIONAL, and it is not a claim that a declaration may omit its authority — the schemas\n * below require it and nothing marks it `.optional()`.\n *\n * Zod 4.3.6 infers a UNION-valued object key as optional. Measured in this package rather than\n * assumed: a plain-object value infers `authority:` (required), while both `z.union` and\n * `z.discriminatedUnion` infer `authority?:`. So a parsed AUTHORED declaration — whose authority is a\n * two-member union — is not assignable to a subject type that requires the field, and writing it\n * required here would refuse the very values this function exists to check.\n *\n * Reads below are unaffected: this package compiles with `strict: false`, so an optional property is\n * not widened with `undefined`.\n */\n readonly authority?: ApplicationDocumentFactDeclarationAuthority;\n};\n\ntype DocumentFactDeclarationRefinementContext = {\n addIssue: (issue: { code: \"custom\"; message: string; path: PropertyKey[] }) => void;\n};\n\n/**\n * The namespace, ordering and instant rules a declaration must satisfy whoever wrote it.\n *\n * Shared deliberately: the DERIVED and AUTHORED families differ in WHO may assert a fact, never in what\n * a well-formed assertion looks like. Two copies of these rules would drift into two grammars for one\n * vocabulary — `invariant-call-site-enumeration.md` #4.\n */\nconst refineDocumentFactDeclaration = (\n declaration: DocumentFactDeclarationRefinementSubject,\n context: DocumentFactDeclarationRefinementContext,\n): void => {\n if (!declaration.declarationRef.startsWith(\"document-fact-declaration:\")) {\n context.addIssue({ code: \"custom\", message: \"declarationRef must use the document-fact-declaration: namespace\", path: [\"declarationRef\"] });\n }\n if (!declaration.factRef.startsWith(\"document-fact:\")) {\n context.addIssue({ code: \"custom\", message: \"factRef must use the document-fact: namespace\", path: [\"factRef\"] });\n }\n if (!declaration.authority.authorityRef.startsWith(\"document-fact-authority:\")) {\n context.addIssue({ code: \"custom\", message: \"authorityRef must use the document-fact-authority: namespace\", path: [\"authority\", \"authorityRef\"] });\n }\n if (!declaration.sensitivityRef.startsWith(\"sensitivity:\")) {\n context.addIssue({ code: \"custom\", message: \"sensitivityRef must use the sensitivity: namespace\", path: [\"sensitivityRef\"] });\n }\n if (declaration.authority.factAuthorityKind === AssuranceDocumentFactAuthorityKind.QUALIFIED_REVIEW) {\n if (!valuesAreUnique(declaration.authority.reviewerQualificationRefs) || !valuesAreLexicallySorted(declaration.authority.reviewerQualificationRefs)) {\n context.addIssue({\n code: \"custom\",\n message: \"reviewerQualificationRefs must be unique and lexically sorted\",\n path: [\"authority\", \"reviewerQualificationRefs\"],\n });\n }\n if (declaration.authority.authorRef === declaration.authority.reviewerRef) {\n context.addIssue({ code: \"custom\", message: \"a qualified fact reviewer cannot be the fact author\", path: [\"authority\", \"reviewerRef\"] });\n }\n }\n const authorityInstant =\n declaration.authority.factAuthorityKind === AssuranceDocumentFactAuthorityKind.APPLICATION_SPECIFICATION ? undefined : declaration.authority.decidedAt;\n if (authorityInstant && declaration.validUntil && Date.parse(declaration.validUntil) <= Date.parse(authorityInstant)) {\n context.addIssue({ code: \"custom\", message: \"validUntil must follow the human authority decision\", path: [\"validUntil\"] });\n }\n};\n\n/**\n * The two declaration shapes a FILE is parsed against. They differ in exactly one field — who may\n * assert the fact — and share every other rule through {@link refineDocumentFactDeclaration}.\n *\n * Written out rather than produced by a shared factory, and that is a measured decision: a generic\n * `<TAuthority extends z.ZodType<…>>` helper compiles, but Zod's `.extend()` cannot carry a generic\n * schema's output into the extended object's inferred type, so every declaration came back missing its\n * `authority` field. A factory that erases the one property the split exists to constrain is worse than\n * two explicit unions.\n */\n\n/**\n * A DERIVED declaration — `document-facts`, the family a producer writes.\n *\n * Its authority union has exactly one member, and that is the point of the split (#192): the\n * `refinement.document-facts` producer regenerates this whole file, so a human decision left in it is\n * silently overwritten on the next run. Narrowing the TYPE is what makes \"a generator may never write a\n * `CREATOR_DECISION`\" structural instead of a rule somebody has to remember — the generation contract\n * already said so in prose (`document-fact-specification-generation.schemas.ts`) and nothing enforced\n * it on the file the generator lands.\n */\nexport const ApplicationDerivedDocumentFactDeclarationSchema = z\n .discriminatedUnion(\"resolutionKind\", [\n ApplicationDocumentFactDeclarationCommonSchema.extend({\n authority: ApplicationDocumentFactDeclarationApplicationSpecificationAuthoritySchema,\n resolutionKind: z.literal(ApplicationAssuranceDocumentFactContributionResolutionKind.KNOWN).systemEnum('ApplicationAssuranceDocumentFactContributionResolutionKind'),\n value: z.json(),\n }),\n ApplicationDocumentFactDeclarationCommonSchema.extend({\n authority: ApplicationDocumentFactDeclarationApplicationSpecificationAuthoritySchema,\n resolutionKind: z.literal(ApplicationAssuranceDocumentFactContributionResolutionKind.NOT_APPLICABLE).systemEnum('ApplicationAssuranceDocumentFactContributionResolutionKind'),\n reason: z.string().trim().min(1),\n }),\n ])\n .superRefine((declaration, context) => refineDocumentFactDeclaration(declaration, context));\nexport type ApplicationDerivedDocumentFactDeclaration = z.infer<typeof ApplicationDerivedDocumentFactDeclarationSchema>;\n\n/**\n * An AUTHORED declaration — `document-facts-authored`, the family only a human writes.\n *\n * The mirror of the rule above: nothing here may claim `APPLICATION_SPECIFICATION` authority, because a\n * fact the accepted specification can answer belongs in the derived family where it stays in step with\n * the specification. Filing one here would freeze a derivable answer at the moment somebody typed it.\n */\nexport const ApplicationAuthoredDocumentFactDeclarationSchema = z\n .discriminatedUnion(\"resolutionKind\", [\n ApplicationDocumentFactDeclarationCommonSchema.extend({\n authority: ApplicationAuthoredDocumentFactDeclarationAuthoritySchema,\n resolutionKind: z.literal(ApplicationAssuranceDocumentFactContributionResolutionKind.KNOWN).systemEnum('ApplicationAssuranceDocumentFactContributionResolutionKind'),\n value: z.json(),\n }),\n ApplicationDocumentFactDeclarationCommonSchema.extend({\n authority: ApplicationAuthoredDocumentFactDeclarationAuthoritySchema,\n resolutionKind: z.literal(ApplicationAssuranceDocumentFactContributionResolutionKind.NOT_APPLICABLE).systemEnum('ApplicationAssuranceDocumentFactContributionResolutionKind'),\n reason: z.string().trim().min(1),\n }),\n ])\n .superRefine((declaration, context) => refineDocumentFactDeclaration(declaration, context));\nexport type ApplicationAuthoredDocumentFactDeclaration = z.infer<typeof ApplicationAuthoredDocumentFactDeclarationSchema>;\n\n/**\n * One raw application-owned fact decision, from EITHER family — the READER's shape.\n *\n * The declaration is read as authored. Nothing derives ids, digests, accepted-head identities or\n * receipt joins from it any more — that projection was deleted with the digest machinery (see the\n * note on `ApplicationAssuranceDocumentFactContributionResolutionKind` above).\n *\n * A TYPE and not a schema: nothing parses a file against it, because every file belongs to one family\n * or the other. It exists because a consumer that READS facts does not care who asserted them — the\n * document asserts the FACT — so it should not have to name both halves.\n */\nexport type ApplicationDocumentFactDeclaration = ApplicationDerivedDocumentFactDeclaration | ApplicationAuthoredDocumentFactDeclaration;\n\n/**\n * A set of fact declarations from EITHER family — what a reader takes.\n *\n * Named rather than written inline at each reader because there are several, and because the concept\n * is worth stating: \"the facts\", regardless of which of the two files carried them. A caller holding\n * both passes both.\n */\nexport type ApplicationDocumentFactDeclarationSet = { readonly declarations: readonly ApplicationDocumentFactDeclaration[] };\n\nconst applicationDocumentFactDeclarationScopeKey = (declaration: ApplicationDocumentFactDeclaration): string =>\n `${declaration.factRef}@${declaration.factVersion}:${JSON.stringify(declaration.governanceScope)}`;\n\nconst buildDocumentFactSpecificationSchema = <TDeclaration extends z.ZodType<ApplicationDocumentFactDeclaration>>(declarationSchema: TDeclaration) =>\n z\n .strictObject({\n schemaVersion: z.literal(1),\n specificationRef: AuthoredNamespacedRefSchema,\n specificationVersion: GovernedDocumentPositiveSafeIntegerSchema,\n declarations: z.array(declarationSchema).min(1),\n })\n .superRefine((specification, context) => {\n if (!specification.specificationRef.startsWith(\"document-fact-specification:\")) {\n context.addIssue({\n code: \"custom\",\n message: \"specificationRef must use the document-fact-specification: namespace\",\n path: [\"specificationRef\"],\n });\n }\n const declarationIdentities = specification.declarations.map((declaration) => `${declaration.declarationRef}@${declaration.declarationVersion}`);\n if (!valuesAreUnique(declarationIdentities) || !valuesAreLexicallySorted(declarationIdentities)) {\n context.addIssue({ code: \"custom\", message: \"declarations must be unique and lexically sorted by identity\", path: [\"declarations\"] });\n }\n const factScopeKeys = specification.declarations.map(applicationDocumentFactDeclarationScopeKey);\n if (!valuesAreUnique(factScopeKeys)) {\n context.addIssue({\n code: \"custom\",\n message: \"a specification may declare only one current value for each fact version and governance scope\",\n path: [\"declarations\"],\n });\n }\n });\n\n/**\n * @wildo_source:part:start saas.specifications.application-document-fact-specification.contract facet:layer:specification facet:family:assurance\n *\n * Accepted application declaration of governed-document facts THE ACCEPTED SPECIFICATION ANSWERS.\n * Import from `@wildo-ai/saas-specifications/application-creation`.\n *\n * This family carries raw decisions only. It never authors reviewer grants,\n * document approvals or releases, and nothing seals, digests or receipts a\n * declaration after it is written: the committed file is the accepted\n * declaration. A missing family or missing declaration therefore remains a\n * visible fact gap.\n *\n * One snapshot may contain facts for several document definitions, but it may\n * contain only one current declaration for a given fact version and governance\n * scope. Replacing a decision requires a new declaration/specification version\n * and normal specification-family acceptance; conflicting current values are\n * rejected at the authoring boundary instead of being hidden downstream.\n *\n * ## This file is REGENERATED, and that is why it accepts one authority kind\n *\n * `refinement.document-facts` rewrites it whole. Before #192 the same file also held the facts only a\n * human may establish, so the next producer run silently deleted them — and there was no compare-and-\n * swap to notice, by design: nothing is kept that cannot branch and merge on git. The facts a human owns\n * live in {@link ApplicationAuthoredDocumentFactSpecificationSchema}, in their own file, which no\n * producer writes.\n */\nexport const ApplicationDocumentFactSpecificationSchema = buildDocumentFactSpecificationSchema(ApplicationDerivedDocumentFactDeclarationSchema);\nexport type ApplicationDocumentFactSpecification = z.infer<typeof ApplicationDocumentFactSpecificationSchema>;\n/** @wildo_source:part:end saas.specifications.application-document-fact-specification.contract */\n\n/**\n * @wildo_source:part:start saas.specifications.application-authored-document-fact-specification.contract facet:layer:specification facet:family:assurance\n *\n * Accepted application declaration of governed-document facts ONLY A HUMAN MAY ESTABLISH — a creator's\n * decision, or a qualified review. Import from\n * `@wildo-ai/saas-specifications/application-creation`.\n *\n * Structurally identical to {@link ApplicationDocumentFactSpecificationSchema}: a declaration is a\n * declaration whoever wrote it, and a document reading facts does not care which file one came from.\n * The two are separate FAMILIES so that neither writer can destroy the other's half — the derived file\n * is regenerated by a producer, this one is only ever edited by a person or by a host acting on a\n * person's answers.\n *\n * Nothing in here may carry `APPLICATION_SPECIFICATION` authority. A fact the specification can answer\n * belongs in the derived family, where it is re-derived when the specification moves; pinning it here\n * would freeze yesterday's answer under a human's name.\n */\nexport const ApplicationAuthoredDocumentFactSpecificationSchema = buildDocumentFactSpecificationSchema(ApplicationAuthoredDocumentFactDeclarationSchema);\nexport type ApplicationAuthoredDocumentFactSpecification = z.infer<typeof ApplicationAuthoredDocumentFactSpecificationSchema>;\n/** @wildo_source:part:end saas.specifications.application-authored-document-fact-specification.contract */\n\nlet blueprintAssignedFactAuthorityKinds: ReadonlyMap<string, ReadonlySet<AssuranceDocumentFactAuthorityKind>> | undefined;\n\n/**\n * The authority the governed-document blueprints ASSIGN a fact, or `undefined` when no blueprint asks it.\n *\n * ## Why a declaration's authority must be compared with this\n *\n * A declaration's `factAuthorityKind` says where its content came from, and the whole four-tier split\n * rests on it being true: it is how a reader tells \"the product declares this\" from \"a qualified person\n * decided this\". Until #637 nothing compared the declared kind with the kind the blueprint assigned the\n * question, so the label was a property of WHICH PRODUCER RAN — `refinement.document-facts` stamps\n * `APPLICATION_SPECIFICATION` on everything it writes — and a question the catalog reserves for a\n * qualified privacy decision (`lawful-bases`) landed under specification authority with no gate able\n * to see it. The inverse direction (a human answering a DERIVED question) was already refused, at\n * `buildGovernanceFactDeclarations`; this is the half that was never built, and it lives at the family\n * so every writer meets it rather than one host.\n *\n * A SET, because two blueprints could in principle ask one fact under different tiers; the catalog\n * measured 2026-09-12 assigns every one of its 40 facts exactly one kind, and a declaration is admitted\n * when its kind is any assigned one. A fact no blueprint asks is unconstrained here: nothing reserves it.\n *\n * Built once, lazily — the catalog is a pure function and every validation reads the same answer.\n */\nexport function resolveBlueprintAssignedFactAuthorityKinds(factRef: string): ReadonlySet<AssuranceDocumentFactAuthorityKind> | undefined {\n if (blueprintAssignedFactAuthorityKinds === undefined) {\n const assigned = new Map<string, Set<AssuranceDocumentFactAuthorityKind>>();\n for (const { blueprint } of listAssuranceDocumentBlueprints(createInitialAssuranceDocumentAuthorityCatalog())) {\n for (const question of blueprint.questions) {\n const kinds = assigned.get(question.factRef) ?? new Set<AssuranceDocumentFactAuthorityKind>();\n kinds.add(question.factAuthorityKind);\n assigned.set(question.factRef, kinds);\n }\n }\n blueprintAssignedFactAuthorityKinds = assigned;\n }\n return blueprintAssignedFactAuthorityKinds.get(factRef);\n}\n\n/**\n * Governed-document facts the RUNTIME computes from the application's typed declarations, so neither a\n * producer nor a person may declare them (#964, decision 2026-09-13: derive first, then judge).\n *\n * ## Why a computed fact is not a better-grounded generated one\n *\n * Each of these facts is a question the blueprints answer from `APPLICATION_SPECIFICATION`, and each has\n * a typed declaration that already IS the answer. Before this vocabulary a producer read that declaration\n * in its brief and restated it as prose, so the label said \"the specification established this\" while\n * the content was a model's paraphrase that nothing compared against the declaration. A computed fact has\n * nothing to ground: the value is the declaration, projected, at the moment it is read.\n *\n * ## Why it is computed at READ and never stored\n *\n * A stored copy is a second authority for a value `wildo.saas.config.ts` or the processor register\n * already owns. It is right the day it is written and silently wrong the day the declaration changes,\n * which is the drift `.claude/rules/compliance-is-derived-from-the-product.md` measured running one\n * way. So `computeApplicationDocumentFacts` is called wherever facts are read and nothing persists its\n * output. A declaration of one of these facts in either fact family is refused by\n * {@link validateApplicationDocumentFactSpecification} for the same reason.\n *\n * ## What earns membership\n *\n * The fact's WHOLE answer must be a function of typed declarations. A fact with a declared half and a\n * decided half does not belong here until the decided half has its own typed field — which is how the\n * four privacy-notice facts joined in #454: `retention-rules` once the period had `dataRetention`,\n * `international-transfers` once the mechanism had a per-entry `transferDetermination`, and\n * `rights-and-complaint-route` once the verification procedure had `subjectRequestIdentityVerification`. When a member's inputs are absent, its\n * computation answers NOTHING: the fact stays absent and every clause resting on it is marked as owed,\n * which is the honest state of \"nobody has declared this\".\n */\nexport enum ComputedDocumentFact {\n /** From `operatorComplianceIdentity`: the legal entity, its privacy contact route, and its role per population of data. */\n CONTROLLER_AND_CONTACT = \"controller-and-contact\",\n /** From the processor register, joined to the runtime-scoped providers and the operator's deployment choice for each. */\n RECIPIENTS_AND_PROCESSORS = \"recipients-and-processors\",\n /**\n * From `operatorComplianceIdentity.lawfulBases`: each processing purpose, the Art. 6(1) basis the operator\n * relies on for it, and the balancing assessment where the basis is legitimate interests.\n *\n * The declaration IS the accountable decision. It is typed, committed and reviewed as a commit, and the\n * schema already refuses a legitimate-interests basis with no assessment. Asking a reviewer to type the\n * same answer into a form produced a second copy nothing compared with the first (#454).\n */\n LAWFUL_BASES = \"lawful-bases\",\n /**\n * From `dataRetention` (the period per data class) and each resource's declared `retentionPolicy.mode`\n * (what erasure does to its rows). The period was the \"decided half\" that kept this fact out of the\n * vocabulary; `ApplicationRetentionSchedule` is its typed field, so both halves are declarations (#454).\n */\n RETENTION_RULES = \"retention-rules\",\n /**\n * From the processor register's per-entry `transferDetermination`, checked against `operatingJurisdictions`.\n * The transfer MECHANISM was the decided half (#126); it is recorded per entry by the operator and never\n * inferred from a region, so the fact answers nothing while any entry is undetermined (#454).\n */\n INTERNATIONAL_TRANSFERS = \"international-transfers\",\n /**\n * From `operatingJurisdictions` and `lawfulBases` (which rights the law attaches, and the complaint route),\n * `privacyContact` (the channel), `subjectRequestIdentityVerification` (the one procedure the operator\n * decides) and `roleAllocations` (who answers each population's requests) (#454).\n */\n RIGHTS_AND_COMPLAINT_ROUTE = \"rights-and-complaint-route\",\n}\n\nconst DOCUMENT_FACT_REF_PREFIX = \"document-fact:\";\n\n/** The computed fact a ref names, or `undefined` when the fact is declared rather than computed. */\nexport function computedDocumentFactOf(factRef: string): ComputedDocumentFact | undefined {\n if (!factRef.startsWith(DOCUMENT_FACT_REF_PREFIX)) return undefined;\n const slug = factRef.slice(DOCUMENT_FACT_REF_PREFIX.length);\n return Object.values(ComputedDocumentFact).find((member) => member === slug);\n}\n\nexport enum ApplicationDocumentFactSpecificationIssueSeverity {\n ERROR = \"ERROR\",\n}\n\n/** What a document-fact content-validation issue is about. */\nexport enum ApplicationDocumentFactSpecificationIssueKind {\n /** The declaration's content is unusable — a KNOWN fact carrying no value. */\n INVALID_DOCUMENT_FACT_SPECIFICATION = \"invalid_document_fact_specification\",\n /**\n * The declaration claims an authority the document blueprints did not assign its fact (#637): a\n * producer answering a question reserved for a person, or a person freezing an answer the\n * specification owns. See `resolveBlueprintAssignedFactAuthorityKinds`.\n */\n DOCUMENT_FACT_AUTHORITY_NOT_ASSIGNED = \"document_fact_authority_not_assigned\",\n /**\n * The declaration states a {@link ComputedDocumentFact}, which the runtime computes from the\n * application's typed declarations whenever facts are read (#964). A stored copy is never the answer,\n * and it goes stale the moment the declaration it restates changes.\n */\n DOCUMENT_FACT_IS_COMPUTED = \"document_fact_is_computed\",\n}\n\nexport interface ApplicationDocumentFactSpecificationIssue {\n readonly kind: ApplicationDocumentFactSpecificationIssueKind;\n readonly severity: ApplicationDocumentFactSpecificationIssueSeverity;\n readonly path: string;\n readonly message: string;\n}\n\n/**\n * Content validation the schema alone cannot express.\n *\n * Keep the authorable family deliberately narrower than the portable resolver authority union: runtime\n * evidence belongs to an evidence producer, not to a TypeScript specification snapshot.\n *\n * ## The vacuity check, and why the schema cannot do it\n *\n * A KNOWN declaration's `value` is typed `z.json()`, because a fact may legitimately be prose, a number,\n * a date or a small structured record — the family cannot know which. That permissiveness leaves one\n * hole it must not leave: `\"\"`, `\" \"` and `null` all satisfy `z.json()` while carrying nothing. A\n * governed document clause resting on such a declaration cites a fact that EXISTS and SAYS NOTHING,\n * which is worse than citing an absent one, because the cross-family binding check\n * (`validateComplianceDocumentCandidateFactBinding`) sees a declared fact and passes it.\n *\n * That is the same vacuity class already closed on vision, roadmap, requirements and the build plan:\n * schema-valid, validator-clean, and carrying no information a reader could act on.\n *\n * This function returned `{ ok: true, issues: [] }` on every input until 2026-08-28 — the family's\n * semantic layer was empty while its schema did all the work, so the two gaps above were unreachable\n * by any check.\n *\n * ## Serves BOTH fact families\n *\n * It reads `resolutionKind`, `value` and `factRef`, all of which are common to the derived and authored\n * declarations — a vacuous value is vacuous whoever asserted it. So the parameter is the structural\n * minimum rather than one family's type, and neither family gets a second copy of this rule.\n */\nexport function validateApplicationDocumentFactSpecification(specification: ApplicationDocumentFactDeclarationSet): {\n ok: boolean;\n issues: ApplicationDocumentFactSpecificationIssue[];\n} {\n const issues: ApplicationDocumentFactSpecificationIssue[] = [];\n specification.declarations.forEach((declaration, index) => {\n /*\n * The declared authority must be one the blueprint ASSIGNED this fact (#637) — see\n * `resolveBlueprintAssignedFactAuthorityKinds`. Checked for EITHER family, because the claim is the\n * same whichever file carries it: a derived declaration answering a reserved question claims a\n * derivation nobody may make, and an authored one answering a derived question freezes, under a\n * person's name, an answer the specification owns. An ISSUE rather than an advisory: the label is\n * untrue, not merely unfinished — the honest state of a reserved fact nobody has decided is ABSENT,\n * which every clause resting on it already marks.\n */\n const assignedKinds = resolveBlueprintAssignedFactAuthorityKinds(declaration.factRef);\n if (assignedKinds !== undefined && !assignedKinds.has(declaration.authority.factAuthorityKind)) {\n const assigned = [...assignedKinds].join(\" or \");\n issues.push({\n kind: ApplicationDocumentFactSpecificationIssueKind.DOCUMENT_FACT_AUTHORITY_NOT_ASSIGNED,\n severity: ApplicationDocumentFactSpecificationIssueSeverity.ERROR,\n path: `declarations.${index}.authority.factAuthorityKind`,\n message:\n `\"${declaration.factRef}\" is declared under ${declaration.authority.factAuthorityKind} authority, but the document `\n + `blueprints assign that fact ${assigned}. `\n + (declaration.authority.factAuthorityKind === AssuranceDocumentFactAuthorityKind.APPLICATION_SPECIFICATION\n ? \"A producer may not answer it: remove the declaration from the derived family and leave the fact absent until \"\n + \"it is decided in the authored family, where a document marks the clause as owed rather than stating it.\"\n : \"It is answered from the accepted specification: remove the hand-authored declaration and let the derived family carry it.\"),\n });\n }\n /*\n * A computed fact is answered from the application's declarations when facts are read (#964), so a\n * declaration of it in EITHER family is a second authority for a value somebody else owns. An ISSUE,\n * not an advisory: the copy is never what a document reads, and it silently disagrees with the\n * declaration the day that declaration changes.\n */\n if (computedDocumentFactOf(declaration.factRef) !== undefined) {\n issues.push({\n kind: ApplicationDocumentFactSpecificationIssueKind.DOCUMENT_FACT_IS_COMPUTED,\n severity: ApplicationDocumentFactSpecificationIssueSeverity.ERROR,\n path: `declarations.${index}.factRef`,\n message:\n `\"${declaration.factRef}\" is computed from the application's own declarations whenever its facts are read. `\n + \"Remove this declaration: change the declaration it restates instead (`operatorComplianceIdentity`, the processor register \"\n + \"or a provider's deployment choice), and every document reads the change.\",\n });\n return;\n }\n if (declaration.resolutionKind !== ApplicationAssuranceDocumentFactContributionResolutionKind.KNOWN) return;\n const value = declaration.value;\n const isVacuous =\n value === null\n || (typeof value === \"string\" && value.trim().length === 0)\n || (Array.isArray(value) && value.length === 0)\n || (typeof value === \"object\" && !Array.isArray(value) && value !== null && Object.keys(value).length === 0);\n if (!isVacuous) return;\n issues.push({\n kind: ApplicationDocumentFactSpecificationIssueKind.INVALID_DOCUMENT_FACT_SPECIFICATION,\n severity: ApplicationDocumentFactSpecificationIssueSeverity.ERROR,\n path: `declarations.${index}.value`,\n message:\n `\"${declaration.factRef}\" is declared KNOWN but carries no value. `\n + \"State the fact, or declare it NOT_APPLICABLE with a reason — an empty value is a fact a document could cite and learn nothing from.\",\n });\n });\n return { ok: issues.length === 0, issues };\n}\n"]}
1
+ {"version":3,"file":"application-document-fact-specification.application-creation.schemas.js","sourceRoot":"","sources":["../../../../src/application-creation/application-document-fact-specification.application-creation.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qCAAqC,EAAE,yCAAyC,EAAE,MAAM,uBAAuB,CAAC;AACzH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,6GAA6G;AAC7G,+GAA+G;AAC/G,OAAO,0BAA0B,CAAC;AAElC,OAAO,EACL,kCAAkC,EAClC,0BAA0B,EAC1B,8CAA8C,EAC9C,+BAA+B,GAChC,MAAM,sBAAsB,CAAC;AAE9B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH,MAAM,+BAA+B,GAAG,6DAA6D,CAAC;AACtG,MAAM,2BAA2B,GAAG,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,CAAC,KAAK,CAAC,+BAA+B,EAAE,2BAA2B,CAAC,CAAC;AAE1H;;;GAGG;AACH,MAAM,oBAAoB,GAAG,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,CAAC,KAAK,CAAC,+BAA+B,EAAE,2BAA2B,CAAC,CAAC;AAEnH;;;;;;;;;;;GAWG;AACH,MAAM,6BAA6B,GAAG,CAAC;KACpC,YAAY,CAAC;IACZ,WAAW,EAAE,CAAC,CAAC,IAAI,CAAC,qCAAqC,CAAC,CAAC,UAAU,CAAC,uCAAuC,CAAC;IAC9G,UAAU,EAAE,2BAA2B;IACvC,QAAQ,EAAE,2BAA2B;IACrC,YAAY,EAAE,yCAAyC;IACvD,eAAe,EAAE,CAAC,CAAC,KAAK,CAAC,2BAA2B,CAAC;IACrD,kBAAkB,EAAE,CAAC,CAAC,KAAK,CAAC,2BAA2B,CAAC;CACzD,CAAC;KACD,WAAW,CAAC,CAAC,KAAK,EAAE,OAAO,EAAE,EAAE;IAC9B,IAAI,KAAK,C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AK,CAAC;QAChC,MAAM,SAAS,GACb,KAAK,KAAK,IAAI;eACX,CAAC,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,CAAC,IAAI,EAAE,CAAC,MAAM,KAAK,CAAC,CAAC;eACxD,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,KAAK,CAAC,MAAM,KAAK,CAAC,CAAC;eAC5C,CAAC,OAAO,KAAK,KAAK,QAAQ,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,KAAK,KAAK,IAAI,IAAI,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,MAAM,KAAK,CAAC,CAAC,CAAC;QAC/G,IAAI,CAAC,SAAS;YAAE,OAAO;QACvB,MAAM,CAAC,IAAI,CAAC;YACV,IAAI,EAAE,6CAA6C,CAAC,mCAAmC;YACvF,QAAQ,EAAE,iDAAiD,CAAC,KAAK;YACjE,IAAI,EAAE,gBAAgB,KAAK,QAAQ;YACnC,OAAO,EACL,IAAI,WAAW,CAAC,OAAO,4CAA4C;kBACjE,qIAAqI;SAC1I,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;IACH,OAAO,EAAE,EAAE,EAAE,MAAM,CAAC,MAAM,KAAK,CAAC,EAAE,MAAM,EAAE,CAAC;AAC7C,CAAC","sourcesContent":["import { GovernedDocumentGovernanceSubjectKind, GovernedDocumentPositiveSafeIntegerSchema } from \"@wildo-ai/saas-models\";\nimport { z } from \"zod\";\n// Side-effect import: this module calls `.systemEnum()` at load, so the decorators must be installed first —\n// never by the importer's luck (#966). A named import used only as a type would be elided and install nothing.\nimport '@wildo-ai/zod-decorators';\n\nimport {\n AssuranceDocumentFactAuthorityKind,\n AssuranceIsoDateTimeSchema,\n createInitialAssuranceDocumentAuthorityCatalog,\n listAssuranceDocumentBlueprints,\n} from \"../assurance.exports\";\n\n/**\n * A namespaced ref as an AUTHOR writes it — the same `namespace:slug` grammar as\n * `AuthoredNamespacedRefSchema`, and deliberately NOT branded.\n *\n * ## Why this file cannot use the branded one\n *\n * A brand is nominal typing: `string & $brand<\"AssuranceNamespacedRef\">`. A plain string literal is not\n * assignable to it, so a field typed that way **cannot be written as a literal at all** — not by a\n * human, and not by the landing renderer, which emits exactly what a human would write. The only way\n * past is a cast, and a cast asserts the very thing the brand exists to prove.\n *\n * That made this family unauthorable, and it went unnoticed for one reason: the family could not RENDER\n * either (its vocabularies were unnameable), so no file ever reached a typechecker. The moment rendering\n * was fixed, the first landed `document-facts` file produced **170 assignability errors** in the\n * application's own specifications package — every ref field, plus every ref inside the embedded\n * governance scope.\n *\n * ## The line this draws, and it is the one this lane keeps rediscovering\n *\n * A branded type is right for a value obtained by PARSING and wrong for one written by HAND. This\n * family is an authored input — D7/D9: the facts are a FILE the application commits, like every other\n * family — so its fields are shaped for authoring, and the regex still does the validating. The sibling\n * `compliance-document-candidate` family made the same call independently, with its own unbranded\n * `ComplianceDocumentNamespacedRefSchema`; the two families disagreed for no stated reason, and this one\n * was the one nobody could write.\n *\n * Nothing depended on the brand: every consumer reads these refs as strings (the availability collector\n * keys a `Map<string, …>`), and the runtime path never noticed because it builds plain strings and lets\n * `.parse()` brand them.\n */\nconst AUTHORED_NAMESPACED_REF_PATTERN = /^[a-z0-9]+(?:[-.][a-z0-9]+)*:[a-z0-9]+(?:[-/.][a-z0-9]+)*$/u;\nconst AuthoredNamespacedRefSchema = z.string().trim().regex(AUTHORED_NAMESPACED_REF_PATTERN, \"expected a namespaced ref\");\n\n/**\n * A declaration's OWN key (`declarationRef`): the same namespaced-ref contract as\n * `AuthoredNamespacedRefSchema`, declared apart from the refs a declaration POINTS AT (`factRef`, …).\n */\nconst DeclarationKeySchema = z.string().trim().regex(AUTHORED_NAMESPACED_REF_PATTERN, \"expected a namespaced ref\");\n\n/**\n * The governance scope as an AUTHOR writes it.\n *\n * Structurally the same question `GovernedDocumentGovernanceScopeSchema` answers — whose document this\n * is, and over what — restated with authored refs for the reason above: that schema's `subjectRef`,\n * `scopeRef`, `participantRefs` and `precedenceRuleRefs` are all branded `GovernedDocumentRef`, and it\n * serves RUNTIME document code where a parsed, branded ref is exactly right.\n *\n * The shared-responsibility rule is kept, because it is semantic rather than ceremonial: a scope\n * attributed to several parties must name at least two participants and say which one prevails, or the\n * document silently claims an allocation nobody made.\n */\nconst AuthoredGovernanceScopeSchema = z\n .strictObject({\n subjectKind: z.enum(GovernedDocumentGovernanceSubjectKind).systemEnum('GovernedDocumentGovernanceSubjectKind'),\n subjectRef: AuthoredNamespacedRefSchema,\n scopeRef: AuthoredNamespacedRefSchema,\n scopeVersion: GovernedDocumentPositiveSafeIntegerSchema,\n participantRefs: z.array(AuthoredNamespacedRefSchema),\n precedenceRuleRefs: z.array(AuthoredNamespacedRefSchema),\n })\n .superRefine((scope, context) => {\n if (scope.subjectKind === GovernedDocumentGovernanceSubjectKind.SHARED_RESPONSIBILITY) {\n if (scope.participantRefs.length < 2) {\n context.addIssue({ code: \"custom\", path: [\"participantRefs\"], message: \"shared responsibility requires at least two attributed participants\" });\n }\n if (scope.precedenceRuleRefs.length === 0) {\n context.addIssue({ code: \"custom\", path: [\"precedenceRuleRefs\"], message: \"shared responsibility requires an explicit precedence rule\" });\n }\n return;\n }\n if (scope.participantRefs.length > 0 || scope.precedenceRuleRefs.length > 0) {\n context.addIssue({ code: \"custom\", path: [\"participantRefs\"], message: \"only a shared-responsibility scope attributes participants or precedence rules\" });\n }\n });\n\n/**\n * Whether a declared document fact HAS an answer, or was considered and does not apply.\n *\n * The two are different answers and a document that confuses them is wrong in different ways: \"we\n * perform no international transfers\" is a citable statement, while \"international transfers are not\n * applicable to us\" is the application declining to answer, and a clause resting on the second\n * asserts something nobody established. A fact ABSENT from the specification is neither — nobody has\n * considered it at all.\n *\n * It lived in `application-assurance-document-fact-projection.…schemas.ts` until 2026-08-28, when\n * that module — a host-computed projection carrying a projector identity, source-head digests and\n * per-contribution authority receipts — was deleted with the rest of the digest machinery\n * (`.claude/rules/one-source-of-truth.md`, Rule 0). This enum was the only thing in its 999 lines\n * that anything outside it used, and it belongs here: it is the resolution kind of a DECLARATION,\n * which is what this file is about.\n */\nexport enum ApplicationAssuranceDocumentFactContributionResolutionKind {\n /** The application declared this fact and it carries a value. */\n KNOWN = \"KNOWN\",\n /** The application considered this fact and it genuinely does not apply. Citable by nothing. */\n NOT_APPLICABLE = \"NOT_APPLICABLE\",\n}\n\nconst compareCanonicalText = (left: string, right: string): number => (left < right ? -1 : left > right ? 1 : 0);\nconst valuesAreUnique = (values: readonly string[]): boolean => new Set(values).size === values.length;\nconst valuesAreLexicallySorted = (values: readonly string[]): boolean =>\n values.every((value, index) => index === 0 || compareCanonicalText(values[index - 1]!, value) <= 0);\n\nconst ApplicationDocumentFactDeclarationAuthorityCommonSchema = z.strictObject({\n authorityRef: AuthoredNamespacedRefSchema,\n authorityVersion: GovernedDocumentPositiveSafeIntegerSchema,\n});\n\n/**\n * The DERIVED authority: the accepted semantic member itself is the authority — the committed\n * specification file, which git already identifies per commit — so there is no human to name.\n *\n * It carries no `decidedAt`, and that absence is the whole reason a generator may produce it: there is\n * no decision instant to invent and no accountable actor to fabricate.\n */\nconst ApplicationDocumentFactDeclarationApplicationSpecificationAuthoritySchema = ApplicationDocumentFactDeclarationAuthorityCommonSchema.extend({\n factAuthorityKind: z.literal(AssuranceDocumentFactAuthorityKind.APPLICATION_SPECIFICATION).systemEnum('AssuranceDocumentFactAuthorityKind'),\n});\n\n/** A creator's decision: a named human, at a real instant. */\nconst ApplicationDocumentFactDeclarationCreatorDecisionAuthoritySchema = ApplicationDocumentFactDeclarationAuthorityCommonSchema.extend({\n factAuthorityKind: z.literal(AssuranceDocumentFactAuthorityKind.CREATOR_DECISION).systemEnum('AssuranceDocumentFactAuthorityKind'),\n decidedByRef: AuthoredNamespacedRefSchema,\n decidedAt: AssuranceIsoDateTimeSchema,\n});\n\n/** A qualified review: a named author, a named reviewer, their qualifications, and what they disclose. */\nconst ApplicationDocumentFactDeclarationQualifiedReviewAuthoritySchema = ApplicationDocumentFactDeclarationAuthorityCommonSchema.extend({\n factAuthorityKind: z.literal(AssuranceDocumentFactAuthorityKind.QUALIFIED_REVIEW).systemEnum('AssuranceDocumentFactAuthorityKind'),\n authorRef: AuthoredNamespacedRefSchema,\n reviewerRef: AuthoredNamespacedRefSchema,\n reviewerQualificationRefs: z.array(AuthoredNamespacedRefSchema).min(1),\n independenceDisclosure: z.string().trim().min(1),\n decidedAt: AssuranceIsoDateTimeSchema,\n});\n\n/**\n * RUNTIME evidence: the value was computed from records the application's own store holds — what the product\n * DID, rather than what it declares (#1636). Only a {@link ComputedDocumentFact} whose computation reads\n * records may carry it ({@link COMPUTED_DOCUMENT_FACT_AUTHORITY_KINDS}), and a computed fact is never stored\n * (`DOCUMENT_FACT_IS_COMPUTED`), so no file can claim it: it exists only in the read view the runtime lays\n * over the stored facts.\n *\n * `observedAt` is the instant the evidence describes up to — the end of the window the records were read\n * for. A notice built from it states retention as of that instant, never as of the moment it is read.\n */\nconst ApplicationDocumentFactDeclarationRuntimeEvidenceAuthoritySchema = ApplicationDocumentFactDeclarationAuthorityCommonSchema.extend({\n factAuthorityKind: z.literal(AssuranceDocumentFactAuthorityKind.RUNTIME_EVIDENCE).systemEnum('AssuranceDocumentFactAuthorityKind'),\n observedAt: AssuranceIsoDateTimeSchema,\n});\n\n/**\n * Every authority kind — the READER's union.\n *\n * A consumer that reads facts does not care which family a declaration came from: the document asserts\n * the FACT. So this stays whole, and the two WRITER unions below are its disjoint halves.\n *\n * Human decisions retain their actual decision instant and named accountable actors; accepting the\n * surrounding specification never rewrites that instant or silently upgrades the authority kind.\n */\nexport const ApplicationDocumentFactDeclarationAuthoritySchema = z.discriminatedUnion(\"factAuthorityKind\", [\n ApplicationDocumentFactDeclarationApplicationSpecificationAuthoritySchema,\n ApplicationDocumentFactDeclarationCreatorDecisionAuthoritySchema,\n ApplicationDocumentFactDeclarationQualifiedReviewAuthoritySchema,\n ApplicationDocumentFactDeclarationRuntimeEvidenceAuthoritySchema,\n]);\nexport type ApplicationDocumentFactDeclarationAuthority = z.infer<typeof ApplicationDocumentFactDeclarationAuthoritySchema>;\n\n/**\n * The AUTHORED half — a human said it.\n *\n * Kept as a union rather than folded into one shape because the two differ in what they must disclose:\n * a creator decision names who decided, a qualified review additionally names who reviewed, against\n * what qualifications, and how independent they were.\n */\nconst ApplicationAuthoredDocumentFactDeclarationAuthoritySchema = z.discriminatedUnion(\"factAuthorityKind\", [\n ApplicationDocumentFactDeclarationCreatorDecisionAuthoritySchema,\n ApplicationDocumentFactDeclarationQualifiedReviewAuthoritySchema,\n]);\n\n/** The DERIVED family's authorities: the specification, and runtime evidence for a record-computed fact only. */\nconst ApplicationDerivedDocumentFactDeclarationAuthoritySchema = z.discriminatedUnion(\"factAuthorityKind\", [\n ApplicationDocumentFactDeclarationApplicationSpecificationAuthoritySchema,\n ApplicationDocumentFactDeclarationRuntimeEvidenceAuthoritySchema,\n]);\n\nconst ApplicationDocumentFactDeclarationCommonSchema = z.strictObject({\n declarationRef: DeclarationKeySchema,\n declarationVersion: GovernedDocumentPositiveSafeIntegerSchema,\n factRef: AuthoredNamespacedRefSchema,\n factVersion: GovernedDocumentPositiveSafeIntegerSchema,\n governanceScope: AuthoredGovernanceScopeSchema,\n sensitivityRef: AuthoredNamespacedRefSchema,\n validUntil: AssuranceIsoDateTimeSchema.optional(),\n});\n\n/**\n * The structural minimum the cross-field rules need, so ONE implementation of them serves all three\n * declaration schemas below.\n *\n * Written structurally rather than as `z.infer<typeof …>` because the wide schema does not exist yet at\n * this point in the file, and a narrow declaration is assignable to this shape by construction.\n */\ntype DocumentFactDeclarationRefinementSubject = {\n readonly declarationRef: string;\n readonly factRef: string;\n readonly sensitivityRef: string;\n readonly validUntil?: string | undefined;\n /**\n * Declared OPTIONAL, and it is not a claim that a declaration may omit its authority — the schemas\n * below require it and nothing marks it `.optional()`.\n *\n * Zod 4.3.6 infers a UNION-valued object key as optional. Measured in this package rather than\n * assumed: a plain-object value infers `authority:` (required), while both `z.union` and\n * `z.discriminatedUnion` infer `authority?:`. So a parsed AUTHORED declaration — whose authority is a\n * two-member union — is not assignable to a subject type that requires the field, and writing it\n * required here would refuse the very values this function exists to check.\n *\n * Reads below are unaffected: this package compiles with `strict: false`, so an optional property is\n * not widened with `undefined`.\n */\n readonly authority?: ApplicationDocumentFactDeclarationAuthority;\n};\n\ntype DocumentFactDeclarationRefinementContext = {\n addIssue: (issue: { code: \"custom\"; message: string; path: PropertyKey[] }) => void;\n};\n\n/**\n * The namespace, ordering and instant rules a declaration must satisfy whoever wrote it.\n *\n * Shared deliberately: the DERIVED and AUTHORED families differ in WHO may assert a fact, never in what\n * a well-formed assertion looks like. Two copies of these rules would drift into two grammars for one\n * vocabulary — `invariant-call-site-enumeration.md` #4.\n */\nconst refineDocumentFactDeclaration = (\n declaration: DocumentFactDeclarationRefinementSubject,\n context: DocumentFactDeclarationRefinementContext,\n): void => {\n if (!declaration.declarationRef.startsWith(\"document-fact-declaration:\")) {\n context.addIssue({ code: \"custom\", message: \"declarationRef must use the document-fact-declaration: namespace\", path: [\"declarationRef\"] });\n }\n if (!declaration.factRef.startsWith(\"document-fact:\")) {\n context.addIssue({ code: \"custom\", message: \"factRef must use the document-fact: namespace\", path: [\"factRef\"] });\n }\n if (!declaration.authority.authorityRef.startsWith(\"document-fact-authority:\")) {\n context.addIssue({ code: \"custom\", message: \"authorityRef must use the document-fact-authority: namespace\", path: [\"authority\", \"authorityRef\"] });\n }\n if (!declaration.sensitivityRef.startsWith(\"sensitivity:\")) {\n context.addIssue({ code: \"custom\", message: \"sensitivityRef must use the sensitivity: namespace\", path: [\"sensitivityRef\"] });\n }\n if (declaration.authority.factAuthorityKind === AssuranceDocumentFactAuthorityKind.QUALIFIED_REVIEW) {\n if (!valuesAreUnique(declaration.authority.reviewerQualificationRefs) || !valuesAreLexicallySorted(declaration.authority.reviewerQualificationRefs)) {\n context.addIssue({\n code: \"custom\",\n message: \"reviewerQualificationRefs must be unique and lexically sorted\",\n path: [\"authority\", \"reviewerQualificationRefs\"],\n });\n }\n if (declaration.authority.authorRef === declaration.authority.reviewerRef) {\n context.addIssue({ code: \"custom\", message: \"a qualified fact reviewer cannot be the fact author\", path: [\"authority\", \"reviewerRef\"] });\n }\n }\n if (declaration.authority.factAuthorityKind === AssuranceDocumentFactAuthorityKind.RUNTIME_EVIDENCE) {\n // Runtime evidence names a fact computed from records, and nothing else. Every other fact — and so every\n // fact a file can hold — stays refused here, which is what keeps runtime evidence non-declarable.\n const computed = computedDocumentFactOf(declaration.factRef);\n if (computed === undefined || COMPUTED_DOCUMENT_FACT_AUTHORITY_KINDS[computed] !== AssuranceDocumentFactAuthorityKind.RUNTIME_EVIDENCE) {\n context.addIssue({\n code: \"custom\",\n message: \"RUNTIME_EVIDENCE authority is carried only by a fact the runtime computes from the application's own records\",\n path: [\"authority\", \"factAuthorityKind\"],\n });\n }\n }\n const authorityInstant =\n declaration.authority.factAuthorityKind === AssuranceDocumentFactAuthorityKind.APPLICATION_SPECIFICATION ? undefined\n : declaration.authority.factAuthorityKind === AssuranceDocumentFactAuthorityKind.RUNTIME_EVIDENCE ? declaration.authority.observedAt\n : declaration.authority.decidedAt;\n if (authorityInstant && declaration.validUntil && Date.parse(declaration.validUntil) <= Date.parse(authorityInstant)) {\n context.addIssue({ code: \"custom\", message: \"validUntil must follow the human authority decision\", path: [\"validUntil\"] });\n }\n};\n\n/**\n * The two declaration shapes a FILE is parsed against. They differ in exactly one field — who may\n * assert the fact — and share every other rule through {@link refineDocumentFactDeclaration}.\n *\n * Written out rather than produced by a shared factory, and that is a measured decision: a generic\n * `<TAuthority extends z.ZodType<…>>` helper compiles, but Zod's `.extend()` cannot carry a generic\n * schema's output into the extended object's inferred type, so every declaration came back missing its\n * `authority` field. A factory that erases the one property the split exists to constrain is worse than\n * two explicit unions.\n */\n\n/**\n * A DERIVED declaration — `document-facts`, the family a producer writes.\n *\n * Its authority is `APPLICATION_SPECIFICATION`, plus `RUNTIME_EVIDENCE` for the one purpose the refinement\n * admits it: a fact the runtime computes from records, laid over the file in the read view and never stored\n * (#1636). A PRODUCER therefore still has exactly one authority it can land, and that is the point of the\n * split (#192): the\n * `refinement.document-facts` producer regenerates this whole file, so a human decision left in it is\n * silently overwritten on the next run. Narrowing the TYPE is what makes \"a generator may never write a\n * `CREATOR_DECISION`\" structural instead of a rule somebody has to remember — the generation contract\n * already said so in prose (`document-fact-specification-generation.schemas.ts`) and nothing enforced\n * it on the file the generator lands.\n */\nexport const ApplicationDerivedDocumentFactDeclarationSchema = z\n .discriminatedUnion(\"resolutionKind\", [\n ApplicationDocumentFactDeclarationCommonSchema.extend({\n authority: ApplicationDerivedDocumentFactDeclarationAuthoritySchema,\n resolutionKind: z.literal(ApplicationAssuranceDocumentFactContributionResolutionKind.KNOWN).systemEnum('ApplicationAssuranceDocumentFactContributionResolutionKind'),\n value: z.json(),\n }),\n ApplicationDocumentFactDeclarationCommonSchema.extend({\n authority: ApplicationDerivedDocumentFactDeclarationAuthoritySchema,\n resolutionKind: z.literal(ApplicationAssuranceDocumentFactContributionResolutionKind.NOT_APPLICABLE).systemEnum('ApplicationAssuranceDocumentFactContributionResolutionKind'),\n reason: z.string().trim().min(1),\n }),\n ])\n .superRefine((declaration, context) => refineDocumentFactDeclaration(declaration, context));\nexport type ApplicationDerivedDocumentFactDeclaration = z.infer<typeof ApplicationDerivedDocumentFactDeclarationSchema>;\n\n/**\n * An AUTHORED declaration — `document-facts-authored`, the family only a human writes.\n *\n * The mirror of the rule above: nothing here may claim `APPLICATION_SPECIFICATION` authority, because a\n * fact the accepted specification can answer belongs in the derived family where it stays in step with\n * the specification. Filing one here would freeze a derivable answer at the moment somebody typed it.\n */\nexport const ApplicationAuthoredDocumentFactDeclarationSchema = z\n .discriminatedUnion(\"resolutionKind\", [\n ApplicationDocumentFactDeclarationCommonSchema.extend({\n authority: ApplicationAuthoredDocumentFactDeclarationAuthoritySchema,\n resolutionKind: z.literal(ApplicationAssuranceDocumentFactContributionResolutionKind.KNOWN).systemEnum('ApplicationAssuranceDocumentFactContributionResolutionKind'),\n value: z.json(),\n }),\n ApplicationDocumentFactDeclarationCommonSchema.extend({\n authority: ApplicationAuthoredDocumentFactDeclarationAuthoritySchema,\n resolutionKind: z.literal(ApplicationAssuranceDocumentFactContributionResolutionKind.NOT_APPLICABLE).systemEnum('ApplicationAssuranceDocumentFactContributionResolutionKind'),\n reason: z.string().trim().min(1),\n }),\n ])\n .superRefine((declaration, context) => refineDocumentFactDeclaration(declaration, context));\nexport type ApplicationAuthoredDocumentFactDeclaration = z.infer<typeof ApplicationAuthoredDocumentFactDeclarationSchema>;\n\n/**\n * One raw application-owned fact decision, from EITHER family — the READER's shape.\n *\n * The declaration is read as authored. Nothing derives ids, digests, accepted-head identities or\n * receipt joins from it any more — that projection was deleted with the digest machinery (see the\n * note on `ApplicationAssuranceDocumentFactContributionResolutionKind` above).\n *\n * A TYPE and not a schema: nothing parses a file against it, because every file belongs to one family\n * or the other. It exists because a consumer that READS facts does not care who asserted them — the\n * document asserts the FACT — so it should not have to name both halves.\n */\nexport type ApplicationDocumentFactDeclaration = ApplicationDerivedDocumentFactDeclaration | ApplicationAuthoredDocumentFactDeclaration;\n\n/**\n * A set of fact declarations from EITHER family — what a reader takes.\n *\n * Named rather than written inline at each reader because there are several, and because the concept\n * is worth stating: \"the facts\", regardless of which of the two files carried them. A caller holding\n * both passes both.\n */\nexport type ApplicationDocumentFactDeclarationSet = { readonly declarations: readonly ApplicationDocumentFactDeclaration[] };\n\nconst applicationDocumentFactDeclarationScopeKey = (declaration: ApplicationDocumentFactDeclaration): string =>\n `${declaration.factRef}@${declaration.factVersion}:${JSON.stringify(declaration.governanceScope)}`;\n\nconst buildDocumentFactSpecificationSchema = <TDeclaration extends z.ZodType<ApplicationDocumentFactDeclaration>>(declarationSchema: TDeclaration) =>\n z\n .strictObject({\n schemaVersion: z.literal(1),\n specificationRef: AuthoredNamespacedRefSchema,\n specificationVersion: GovernedDocumentPositiveSafeIntegerSchema,\n declarations: z.array(declarationSchema).min(1),\n })\n .superRefine((specification, context) => {\n if (!specification.specificationRef.startsWith(\"document-fact-specification:\")) {\n context.addIssue({\n code: \"custom\",\n message: \"specificationRef must use the document-fact-specification: namespace\",\n path: [\"specificationRef\"],\n });\n }\n const declarationIdentities = specification.declarations.map((declaration) => `${declaration.declarationRef}@${declaration.declarationVersion}`);\n if (!valuesAreUnique(declarationIdentities) || !valuesAreLexicallySorted(declarationIdentities)) {\n context.addIssue({ code: \"custom\", message: \"declarations must be unique and lexically sorted by identity\", path: [\"declarations\"] });\n }\n const factScopeKeys = specification.declarations.map(applicationDocumentFactDeclarationScopeKey);\n if (!valuesAreUnique(factScopeKeys)) {\n context.addIssue({\n code: \"custom\",\n message: \"a specification may declare only one current value for each fact version and governance scope\",\n path: [\"declarations\"],\n });\n }\n });\n\n/**\n * @wildo_source:part:start saas.specifications.application-document-fact-specification.contract facet:layer:specification facet:family:assurance\n *\n * Accepted application declaration of governed-document facts THE ACCEPTED SPECIFICATION ANSWERS.\n * Import from `@wildo-ai/saas-specifications/application-creation`.\n *\n * This family carries raw decisions only. It never authors reviewer grants,\n * document approvals or releases, and nothing seals, digests or receipts a\n * declaration after it is written: the committed file is the accepted\n * declaration. A missing family or missing declaration therefore remains a\n * visible fact gap.\n *\n * One snapshot may contain facts for several document definitions, but it may\n * contain only one current declaration for a given fact version and governance\n * scope. Replacing a decision requires a new declaration/specification version\n * and normal specification-family acceptance; conflicting current values are\n * rejected at the authoring boundary instead of being hidden downstream.\n *\n * ## This file is REGENERATED, and that is why it accepts one authority kind\n *\n * `refinement.document-facts` rewrites it whole. Before #192 the same file also held the facts only a\n * human may establish, so the next producer run silently deleted them — and there was no compare-and-\n * swap to notice, by design: nothing is kept that cannot branch and merge on git. The facts a human owns\n * live in {@link ApplicationAuthoredDocumentFactSpecificationSchema}, in their own file, which no\n * producer writes.\n */\nexport const ApplicationDocumentFactSpecificationSchema = buildDocumentFactSpecificationSchema(ApplicationDerivedDocumentFactDeclarationSchema);\nexport type ApplicationDocumentFactSpecification = z.infer<typeof ApplicationDocumentFactSpecificationSchema>;\n/** @wildo_source:part:end saas.specifications.application-document-fact-specification.contract */\n\n/**\n * @wildo_source:part:start saas.specifications.application-authored-document-fact-specification.contract facet:layer:specification facet:family:assurance\n *\n * Accepted application declaration of governed-document facts ONLY A HUMAN MAY ESTABLISH — a creator's\n * decision, or a qualified review. Import from\n * `@wildo-ai/saas-specifications/application-creation`.\n *\n * Structurally identical to {@link ApplicationDocumentFactSpecificationSchema}: a declaration is a\n * declaration whoever wrote it, and a document reading facts does not care which file one came from.\n * The two are separate FAMILIES so that neither writer can destroy the other's half — the derived file\n * is regenerated by a producer, this one is only ever edited by a person or by a host acting on a\n * person's answers.\n *\n * Nothing in here may carry `APPLICATION_SPECIFICATION` authority. A fact the specification can answer\n * belongs in the derived family, where it is re-derived when the specification moves; pinning it here\n * would freeze yesterday's answer under a human's name.\n */\nexport const ApplicationAuthoredDocumentFactSpecificationSchema = buildDocumentFactSpecificationSchema(ApplicationAuthoredDocumentFactDeclarationSchema);\nexport type ApplicationAuthoredDocumentFactSpecification = z.infer<typeof ApplicationAuthoredDocumentFactSpecificationSchema>;\n/** @wildo_source:part:end saas.specifications.application-authored-document-fact-specification.contract */\n\nlet blueprintAssignedFactAuthorityKinds: ReadonlyMap<string, ReadonlySet<AssuranceDocumentFactAuthorityKind>> | undefined;\n\n/**\n * The authority the governed-document blueprints ASSIGN a fact, or `undefined` when no blueprint asks it.\n *\n * ## Why a declaration's authority must be compared with this\n *\n * A declaration's `factAuthorityKind` says where its content came from, and the whole four-tier split\n * rests on it being true: it is how a reader tells \"the product declares this\" from \"a qualified person\n * decided this\". Until #637 nothing compared the declared kind with the kind the blueprint assigned the\n * question, so the label was a property of WHICH PRODUCER RAN — `refinement.document-facts` stamps\n * `APPLICATION_SPECIFICATION` on everything it writes — and a question the catalog reserves for a\n * qualified privacy decision (`lawful-bases`) landed under specification authority with no gate able\n * to see it. The inverse direction (a human answering a DERIVED question) was already refused, at\n * `buildGovernanceFactDeclarations`; this is the half that was never built, and it lives at the family\n * so every writer meets it rather than one host.\n *\n * A SET, because two blueprints could in principle ask one fact under different tiers; the catalog\n * measured 2026-09-12 assigns every one of its 40 facts exactly one kind, and a declaration is admitted\n * when its kind is any assigned one. A fact no blueprint asks is unconstrained here: nothing reserves it.\n *\n * Built once, lazily — the catalog is a pure function and every validation reads the same answer.\n */\nexport function resolveBlueprintAssignedFactAuthorityKinds(factRef: string): ReadonlySet<AssuranceDocumentFactAuthorityKind> | undefined {\n if (blueprintAssignedFactAuthorityKinds === undefined) {\n const assigned = new Map<string, Set<AssuranceDocumentFactAuthorityKind>>();\n for (const { blueprint } of listAssuranceDocumentBlueprints(createInitialAssuranceDocumentAuthorityCatalog())) {\n for (const question of blueprint.questions) {\n const kinds = assigned.get(question.factRef) ?? new Set<AssuranceDocumentFactAuthorityKind>();\n kinds.add(question.factAuthorityKind);\n assigned.set(question.factRef, kinds);\n }\n }\n blueprintAssignedFactAuthorityKinds = assigned;\n }\n return blueprintAssignedFactAuthorityKinds.get(factRef);\n}\n\n/**\n * Governed-document facts the RUNTIME computes from the application's typed declarations, so neither a\n * producer nor a person may declare them (#964, decision 2026-09-13: derive first, then judge).\n *\n * ## Why a computed fact is not a better-grounded generated one\n *\n * Each of these facts is a question the blueprints answer from `APPLICATION_SPECIFICATION`, and each has\n * a typed declaration that already IS the answer. Before this vocabulary a producer read that declaration\n * in its brief and restated it as prose, so the label said \"the specification established this\" while\n * the content was a model's paraphrase that nothing compared against the declaration. A computed fact has\n * nothing to ground: the value is the declaration, projected, at the moment it is read.\n *\n * ## Why it is computed at READ and never stored\n *\n * A stored copy is a second authority for a value `wildo.saas.config.ts` or the processor register\n * already owns. It is right the day it is written and silently wrong the day the declaration changes,\n * which is the drift `.claude/rules/compliance-is-derived-from-the-product.md` measured running one\n * way. So `computeApplicationDocumentFacts` is called wherever facts are read and nothing persists its\n * output. A declaration of one of these facts in either fact family is refused by\n * {@link validateApplicationDocumentFactSpecification} for the same reason.\n *\n * ## What earns membership\n *\n * The fact's WHOLE answer must be a function of typed declarations. A fact with a declared half and a\n * decided half does not belong here until the decided half has its own typed field — which is how the\n * four privacy-notice facts joined in #454: `retention-rules` once the period had `dataRetention`,\n * `international-transfers` once the mechanism had a per-entry `transferDetermination`, and\n * `rights-and-complaint-route` once the verification procedure had `subjectRequestIdentityVerification`. When a member's inputs are absent, its\n * computation answers NOTHING: the fact stays absent and every clause resting on it is marked as owed,\n * which is the honest state of \"nobody has declared this\".\n *\n * ## The runtime member\n *\n * One member is computed from what the application DID rather than from what it declares:\n * `retention-enforcement` reads the retention-enforcement records the sweep writes (#1636), and so carries\n * `RUNTIME_EVIDENCE` authority rather than `APPLICATION_SPECIFICATION` — see\n * {@link COMPUTED_DOCUMENT_FACT_AUTHORITY_KINDS}. Its whole answer is still a FUNCTION, of records and\n * declarations together, which is what membership requires; nobody decides it.\n */\nexport enum ComputedDocumentFact {\n /** From `operatorComplianceIdentity`: the legal entity, its privacy contact route, and its role per population of data. */\n CONTROLLER_AND_CONTACT = \"controller-and-contact\",\n /** From the processor register, joined to the runtime-scoped providers and the operator's deployment choice for each. */\n RECIPIENTS_AND_PROCESSORS = \"recipients-and-processors\",\n /**\n * From `operatorComplianceIdentity.lawfulBases`: each processing purpose, the Art. 6(1) basis the operator\n * relies on for it, and the balancing assessment where the basis is legitimate interests.\n *\n * The declaration IS the accountable decision. It is typed, committed and reviewed as a commit, and the\n * schema already refuses a legitimate-interests basis with no assessment. Asking a reviewer to type the\n * same answer into a form produced a second copy nothing compared with the first (#454).\n */\n LAWFUL_BASES = \"lawful-bases\",\n /**\n * From `dataRetention` (the period per data class) and each resource's declared `retentionPolicy.mode`\n * (what erasure does to its rows). The period was the \"decided half\" that kept this fact out of the\n * vocabulary; `ApplicationRetentionSchedule` is its typed field, so both halves are declarations (#454).\n */\n RETENTION_RULES = \"retention-rules\",\n /**\n * From the processor register's per-entry `transferDetermination`, checked against `operatingJurisdictions`.\n * The transfer MECHANISM was the decided half (#126); it is recorded per entry by the operator and never\n * inferred from a region, so the fact answers nothing while any entry is undetermined (#454).\n */\n INTERNATIONAL_TRANSFERS = \"international-transfers\",\n /**\n * From `operatingJurisdictions` and `lawfulBases` (which rights the law attaches, and the complaint route),\n * `privacyContact` (the channel), `subjectRequestIdentityVerification` (the one procedure the operator\n * decides) and `roleAllocations` (who answers each population's requests) (#454).\n */\n RIGHTS_AND_COMPLAINT_ROUTE = \"rights-and-complaint-route\",\n /**\n * From the retention-enforcement records the retention-class sweep writes, read against `dataRetention` and\n * each resource's `retentionBinding`: per declared class, whether the period was ENFORCED, is only DECLARED,\n * or is FAILING (#1636). The first `RUNTIME_EVIDENCE` fact — a notice says a period is enforced only when\n * the product has shown it. Absent when the records could not be read, which is not \"nothing enforced\".\n */\n RETENTION_ENFORCEMENT = \"retention-enforcement\",\n /**\n * From the resources bound to, or piped from, a declared system of record (#1745): per flow, the instance and its\n * vendor, the local resource, the `.dataCategories()` of the fields that come from it, the purposes the binding links\n * and whether the rows are kept until erased. The SOURCE a notice owes for data not collected from the person (GDPR\n * Art. 14(2)(f)), with the purpose and basis for obtaining it (Art. 14(1)(c)). The PROXIMATE source only: whether\n * the data originated from a publicly accessible source is not declared anywhere, so it is not stated. Distinct from\n * `data-categories-and-sources`, a stored fact covering every collection source: a computed fact replaces any stored\n * fact under its own reference, so sharing one would discard what that fact states about every other source.\n */\n SYSTEM_OF_RECORD_SOURCES = \"system-of-record-sources\",\n}\n\n/**\n * The authority each computed fact carries — ONE table, so the overlay stamps it and the schema admits it\n * from the same source. `RUNTIME_EVIDENCE` only where the value is computed from records (invariant: a fact\n * is never labelled with a tier its computation did not earn; `.claude/rules/compliance-is-derived-from-the-product.md`\n * rule 7).\n */\nexport const COMPUTED_DOCUMENT_FACT_AUTHORITY_KINDS: Readonly<Record<ComputedDocumentFact, AssuranceDocumentFactAuthorityKind>> = {\n [ComputedDocumentFact.CONTROLLER_AND_CONTACT]: AssuranceDocumentFactAuthorityKind.APPLICATION_SPECIFICATION,\n [ComputedDocumentFact.RECIPIENTS_AND_PROCESSORS]: AssuranceDocumentFactAuthorityKind.APPLICATION_SPECIFICATION,\n [ComputedDocumentFact.LAWFUL_BASES]: AssuranceDocumentFactAuthorityKind.APPLICATION_SPECIFICATION,\n [ComputedDocumentFact.RETENTION_RULES]: AssuranceDocumentFactAuthorityKind.APPLICATION_SPECIFICATION,\n [ComputedDocumentFact.INTERNATIONAL_TRANSFERS]: AssuranceDocumentFactAuthorityKind.APPLICATION_SPECIFICATION,\n [ComputedDocumentFact.RIGHTS_AND_COMPLAINT_ROUTE]: AssuranceDocumentFactAuthorityKind.APPLICATION_SPECIFICATION,\n [ComputedDocumentFact.RETENTION_ENFORCEMENT]: AssuranceDocumentFactAuthorityKind.RUNTIME_EVIDENCE,\n [ComputedDocumentFact.SYSTEM_OF_RECORD_SOURCES]: AssuranceDocumentFactAuthorityKind.APPLICATION_SPECIFICATION,\n};\n\nconst DOCUMENT_FACT_REF_PREFIX = \"document-fact:\";\n\n/** The computed fact a ref names, or `undefined` when the fact is declared rather than computed. */\nexport function computedDocumentFactOf(factRef: string): ComputedDocumentFact | undefined {\n if (!factRef.startsWith(DOCUMENT_FACT_REF_PREFIX)) return undefined;\n const slug = factRef.slice(DOCUMENT_FACT_REF_PREFIX.length);\n return Object.values(ComputedDocumentFact).find((member) => member === slug);\n}\n\nexport enum ApplicationDocumentFactSpecificationIssueSeverity {\n ERROR = \"ERROR\",\n}\n\n/** What a document-fact content-validation issue is about. */\nexport enum ApplicationDocumentFactSpecificationIssueKind {\n /** The declaration's content is unusable — a KNOWN fact carrying no value. */\n INVALID_DOCUMENT_FACT_SPECIFICATION = \"invalid_document_fact_specification\",\n /**\n * The declaration claims an authority the document blueprints did not assign its fact (#637): a\n * producer answering a question reserved for a person, or a person freezing an answer the\n * specification owns. See `resolveBlueprintAssignedFactAuthorityKinds`.\n */\n DOCUMENT_FACT_AUTHORITY_NOT_ASSIGNED = \"document_fact_authority_not_assigned\",\n /**\n * The declaration states a {@link ComputedDocumentFact}, which the runtime computes from the\n * application's typed declarations whenever facts are read (#964). A stored copy is never the answer,\n * and it goes stale the moment the declaration it restates changes.\n */\n DOCUMENT_FACT_IS_COMPUTED = \"document_fact_is_computed\",\n}\n\nexport interface ApplicationDocumentFactSpecificationIssue {\n readonly kind: ApplicationDocumentFactSpecificationIssueKind;\n readonly severity: ApplicationDocumentFactSpecificationIssueSeverity;\n readonly path: string;\n readonly message: string;\n}\n\n/**\n * Content validation the schema alone cannot express.\n *\n * Keep the authorable family deliberately narrower than the portable resolver authority union: runtime\n * evidence belongs to an evidence producer, not to a TypeScript specification snapshot.\n *\n * ## The vacuity check, and why the schema cannot do it\n *\n * A KNOWN declaration's `value` is typed `z.json()`, because a fact may legitimately be prose, a number,\n * a date or a small structured record — the family cannot know which. That permissiveness leaves one\n * hole it must not leave: `\"\"`, `\" \"` and `null` all satisfy `z.json()` while carrying nothing. A\n * governed document clause resting on such a declaration cites a fact that EXISTS and SAYS NOTHING,\n * which is worse than citing an absent one, because the cross-family binding check\n * (`validateComplianceDocumentCandidateFactBinding`) sees a declared fact and passes it.\n *\n * That is the same vacuity class already closed on vision, roadmap, requirements and the build plan:\n * schema-valid, validator-clean, and carrying no information a reader could act on.\n *\n * This function returned `{ ok: true, issues: [] }` on every input until 2026-08-28 — the family's\n * semantic layer was empty while its schema did all the work, so the two gaps above were unreachable\n * by any check.\n *\n * ## Serves BOTH fact families\n *\n * It reads `resolutionKind`, `value` and `factRef`, all of which are common to the derived and authored\n * declarations — a vacuous value is vacuous whoever asserted it. So the parameter is the structural\n * minimum rather than one family's type, and neither family gets a second copy of this rule.\n */\nexport function validateApplicationDocumentFactSpecification(specification: ApplicationDocumentFactDeclarationSet): {\n ok: boolean;\n issues: ApplicationDocumentFactSpecificationIssue[];\n} {\n const issues: ApplicationDocumentFactSpecificationIssue[] = [];\n specification.declarations.forEach((declaration, index) => {\n /*\n * The declared authority must be one the blueprint ASSIGNED this fact (#637) — see\n * `resolveBlueprintAssignedFactAuthorityKinds`. Checked for EITHER family, because the claim is the\n * same whichever file carries it: a derived declaration answering a reserved question claims a\n * derivation nobody may make, and an authored one answering a derived question freezes, under a\n * person's name, an answer the specification owns. An ISSUE rather than an advisory: the label is\n * untrue, not merely unfinished — the honest state of a reserved fact nobody has decided is ABSENT,\n * which every clause resting on it already marks.\n */\n const assignedKinds = resolveBlueprintAssignedFactAuthorityKinds(declaration.factRef);\n if (assignedKinds !== undefined && !assignedKinds.has(declaration.authority.factAuthorityKind)) {\n const assigned = [...assignedKinds].join(\" or \");\n issues.push({\n kind: ApplicationDocumentFactSpecificationIssueKind.DOCUMENT_FACT_AUTHORITY_NOT_ASSIGNED,\n severity: ApplicationDocumentFactSpecificationIssueSeverity.ERROR,\n path: `declarations.${index}.authority.factAuthorityKind`,\n message:\n `\"${declaration.factRef}\" is declared under ${declaration.authority.factAuthorityKind} authority, but the document `\n + `blueprints assign that fact ${assigned}. `\n + (assignedKinds.has(AssuranceDocumentFactAuthorityKind.RUNTIME_EVIDENCE)\n ? \"It is computed from the application's own records whenever facts are read (#1636): remove the declaration, \"\n + \"from either family. Nobody answers it; collecting the evidence does.\"\n : declaration.authority.factAuthorityKind === AssuranceDocumentFactAuthorityKind.APPLICATION_SPECIFICATION\n ? \"A producer may not answer it: remove the declaration from the derived family and leave the fact absent until \"\n + \"it is decided in the authored family, where a document marks the clause as owed rather than stating it.\"\n : \"It is answered from the accepted specification: remove the hand-authored declaration and let the derived family carry it.\"),\n });\n }\n /*\n * A computed fact is answered from the application's declarations when facts are read (#964), so a\n * declaration of it in EITHER family is a second authority for a value somebody else owns. An ISSUE,\n * not an advisory: the copy is never what a document reads, and it silently disagrees with the\n * declaration the day that declaration changes.\n */\n if (computedDocumentFactOf(declaration.factRef) !== undefined) {\n issues.push({\n kind: ApplicationDocumentFactSpecificationIssueKind.DOCUMENT_FACT_IS_COMPUTED,\n severity: ApplicationDocumentFactSpecificationIssueSeverity.ERROR,\n path: `declarations.${index}.factRef`,\n message:\n `\"${declaration.factRef}\" is computed from the application's own declarations and records whenever its facts are read. `\n + \"Remove this declaration: change the declaration it restates instead (`operatorComplianceIdentity`, the processor register \"\n + \"or a provider's deployment choice), and every document reads the change.\",\n });\n return;\n }\n if (declaration.resolutionKind !== ApplicationAssuranceDocumentFactContributionResolutionKind.KNOWN) return;\n const value = declaration.value;\n const isVacuous =\n value === null\n || (typeof value === \"string\" && value.trim().length === 0)\n || (Array.isArray(value) && value.length === 0)\n || (typeof value === \"object\" && !Array.isArray(value) && value !== null && Object.keys(value).length === 0);\n if (!isVacuous) return;\n issues.push({\n kind: ApplicationDocumentFactSpecificationIssueKind.INVALID_DOCUMENT_FACT_SPECIFICATION,\n severity: ApplicationDocumentFactSpecificationIssueSeverity.ERROR,\n path: `declarations.${index}.value`,\n message:\n `\"${declaration.factRef}\" is declared KNOWN but carries no value. `\n + \"State the fact, or declare it NOT_APPLICABLE with a reason — an empty value is a fact a document could cite and learn nothing from.\",\n });\n });\n return { ok: issues.length === 0, issues };\n}\n"]}