@wildo-ai/saas-specifications 1.1.2 → 1.1.4
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.
- package/dist/esm/_catalogs/index.d.ts.map +1 -1
- package/dist/esm/_catalogs/schema-org/_catalog-spec.shared.schemas.d.ts.map +1 -1
- package/dist/esm/_catalogs/schema-org/aggregate-offer.catalog-spec.d.ts.map +1 -1
- package/dist/esm/_catalogs/schema-org/aggregate-rating.catalog-spec.d.ts.map +1 -1
- package/dist/esm/_catalogs/schema-org/article.catalog-spec.d.ts.map +1 -1
- package/dist/esm/_catalogs/schema-org/blog-posting.catalog-spec.d.ts.map +1 -1
- package/dist/esm/_catalogs/schema-org/breadcrumb-list.catalog-spec.d.ts.map +1 -1
- package/dist/esm/_catalogs/schema-org/faq-page.catalog-spec.d.ts.map +1 -1
- package/dist/esm/_catalogs/schema-org/index.d.ts.map +1 -1
- package/dist/esm/_catalogs/schema-org/offer.catalog-spec.d.ts.map +1 -1
- package/dist/esm/_catalogs/schema-org/organization.catalog-spec.d.ts.map +1 -1
- package/dist/esm/_catalogs/schema-org/product.catalog-spec.d.ts.map +1 -1
- package/dist/esm/_catalogs/schema-org/review.catalog-spec.d.ts.map +1 -1
- package/dist/esm/_catalogs/schema-org/website.catalog-spec.d.ts.map +1 -1
- package/dist/esm/_core/assertions/assertion-authored-metadata.schemas.d.ts.map +1 -1
- package/dist/esm/_core/assertions/assertion-behaviors.schemas.d.ts.map +1 -1
- package/dist/esm/_core/assertions/assertion-references.schemas.d.ts.map +1 -1
- package/dist/esm/_core/assertions/assertion-snapshot-validation.d.ts.map +1 -1
- package/dist/esm/_core/assertions/assertion-specification.schemas.d.ts.map +1 -1
- package/dist/esm/_core/brand/brand-asset.schemas.d.ts +4 -6
- package/dist/esm/_core/brand/brand-asset.schemas.d.ts.map +1 -1
- package/dist/esm/_core/brand/brand-asset.schemas.js +4 -12
- package/dist/esm/_core/brand/brand-asset.schemas.js.map +1 -1
- package/dist/esm/_core/brand/brand-authored-metadata.schemas.d.ts.map +1 -1
- package/dist/esm/_core/brand/brand-generation.schemas.d.ts +5 -3
- package/dist/esm/_core/brand/brand-generation.schemas.d.ts.map +1 -1
- package/dist/esm/_core/brand/brand-generation.schemas.js +5 -2
- package/dist/esm/_core/brand/brand-generation.schemas.js.map +1 -1
- package/dist/esm/_core/brand/brand-logo-direction.schemas.d.ts.map +1 -1
- package/dist/esm/_core/brand/brand-name.schemas.d.ts.map +1 -1
- package/dist/esm/_core/brand/brand-snapshot-validation.d.ts.map +1 -1
- package/dist/esm/_core/brand/brand-snapshot.schemas.d.ts +10 -3
- package/dist/esm/_core/brand/brand-snapshot.schemas.d.ts.map +1 -1
- package/dist/esm/_core/brand/brand-snapshot.schemas.js +10 -2
- package/dist/esm/_core/brand/brand-snapshot.schemas.js.map +1 -1
- package/dist/esm/_core/brand/brand-visual-tone.schemas.d.ts.map +1 -1
- package/dist/esm/_core/brand/brand.family-aspects.d.ts.map +1 -1
- package/dist/esm/_core/build-plan/build-plan-task-graph-generation.schemas.d.ts.map +1 -1
- package/dist/esm/_core/build-plan/build-plan-task-graph-generation.schemas.js +15 -5
- package/dist/esm/_core/build-plan/build-plan-task-graph-generation.schemas.js.map +1 -1
- package/dist/esm/_core/build-plan/build-plan-task-graph-validation.d.ts +40 -3
- package/dist/esm/_core/build-plan/build-plan-task-graph-validation.d.ts.map +1 -1
- package/dist/esm/_core/build-plan/build-plan-task-graph-validation.js +85 -6
- package/dist/esm/_core/build-plan/build-plan-task-graph-validation.js.map +1 -1
- package/dist/esm/_core/build-plan/build-plan-task-graph.schemas.d.ts.map +1 -1
- package/dist/esm/_core/build-plan/build-plan.family-aspects.d.ts.map +1 -1
- package/dist/esm/_core/business-model-lite/business-model-authored-metadata.schemas.d.ts.map +1 -1
- package/dist/esm/_core/business-model-lite/business-model-lite-snapshot-generation.schemas.d.ts.map +1 -1
- package/dist/esm/_core/business-model-lite/business-model-lite-snapshot-generation.schemas.js +10 -4
- package/dist/esm/_core/business-model-lite/business-model-lite-snapshot-generation.schemas.js.map +1 -1
- package/dist/esm/_core/business-model-lite/business-model-lite-snapshot-validation.d.ts +15 -0
- package/dist/esm/_core/business-model-lite/business-model-lite-snapshot-validation.d.ts.map +1 -1
- package/dist/esm/_core/business-model-lite/business-model-lite-snapshot-validation.js.map +1 -1
- package/dist/esm/_core/business-model-lite/business-model-lite-snapshot.schemas.d.ts.map +1 -1
- package/dist/esm/_core/business-model-lite/business-model-references.schemas.d.ts.map +1 -1
- package/dist/esm/_core/business-model-lite/business-model.family-aspects.d.ts.map +1 -1
- package/dist/esm/_core/business-model-lite/pricing-plan.schemas.d.ts.map +1 -1
- package/dist/esm/_core/business-semantics.specifications.schemas.d.ts.map +1 -1
- package/dist/esm/_core/chart-view-specification.schemas.d.ts.map +1 -1
- package/dist/esm/_core/compliance-documents/compliance-completeness-statement.schemas.d.ts.map +1 -1
- package/dist/esm/_core/compliance-documents/compliance-document-candidate-generation.schemas.d.ts +118 -0
- package/dist/esm/_core/compliance-documents/compliance-document-candidate-generation.schemas.d.ts.map +1 -1
- package/dist/esm/_core/compliance-documents/compliance-document-candidate-generation.schemas.js +65 -3
- package/dist/esm/_core/compliance-documents/compliance-document-candidate-generation.schemas.js.map +1 -1
- package/dist/esm/_core/compliance-documents/compliance-document-candidate.schemas.d.ts +508 -7
- package/dist/esm/_core/compliance-documents/compliance-document-candidate.schemas.d.ts.map +1 -1
- package/dist/esm/_core/compliance-documents/compliance-document-candidate.schemas.js +489 -19
- package/dist/esm/_core/compliance-documents/compliance-document-candidate.schemas.js.map +1 -1
- package/dist/esm/_core/compliance-documents/compliance-documents.family-aspects.d.ts.map +1 -1
- package/dist/esm/_core/compliance-documents/document-fact-specification-generation.schemas.d.ts.map +1 -1
- package/dist/esm/_core/compliance-documents/processor-register.family-aspects.d.ts.map +1 -1
- package/dist/esm/_core/compliance-documents/processor-register.schemas.d.ts +2 -0
- package/dist/esm/_core/compliance-documents/processor-register.schemas.d.ts.map +1 -1
- package/dist/esm/_core/compliance-documents/processor-register.schemas.js +2 -0
- package/dist/esm/_core/compliance-documents/processor-register.schemas.js.map +1 -1
- package/dist/esm/_core/compliance-documents/required-document-set.schemas.d.ts.map +1 -1
- package/dist/esm/_core/composite-view-specification.schemas.d.ts.map +1 -1
- package/dist/esm/_core/cross-registry-assertions.d.ts.map +1 -1
- package/dist/esm/_core/data-seed-specification.schemas.d.ts.map +1 -1
- package/dist/esm/_core/definition-specification-validators.d.ts.map +1 -1
- package/dist/esm/_core/definition-specification.schemas.d.ts.map +1 -1
- package/dist/esm/_core/domain-plan/domain-plan-output-set-generation.schemas.d.ts.map +1 -1
- package/dist/esm/_core/domain-plan/domain-plan-output-set-validation.d.ts.map +1 -1
- package/dist/esm/_core/domain-plan/domain-plan-output-set.schemas.d.ts.map +1 -1
- package/dist/esm/_core/domain-plan/domain-plan.family-aspects.d.ts.map +1 -1
- package/dist/esm/_core/error-message-specification.schemas.d.ts.map +1 -1
- package/dist/esm/_core/execution-view-specification.schemas.d.ts.map +1 -1
- package/dist/esm/_core/expert-personas/expert-persona-authored-metadata.schemas.d.ts.map +1 -1
- package/dist/esm/_core/expert-personas/expert-persona-charter.schemas.d.ts +6 -7
- package/dist/esm/_core/expert-personas/expert-persona-charter.schemas.d.ts.map +1 -1
- package/dist/esm/_core/expert-personas/expert-persona-charter.schemas.js +6 -13
- package/dist/esm/_core/expert-personas/expert-persona-charter.schemas.js.map +1 -1
- package/dist/esm/_core/expert-personas/expert-persona-validation.d.ts +0 -11
- package/dist/esm/_core/expert-personas/expert-persona-validation.d.ts.map +1 -1
- package/dist/esm/_core/expert-personas/expert-persona-validation.js +0 -19
- package/dist/esm/_core/expert-personas/expert-persona-validation.js.map +1 -1
- package/dist/esm/_core/expert-personas/expert-role-template.schemas.d.ts +1 -2
- package/dist/esm/_core/expert-personas/expert-role-template.schemas.d.ts.map +1 -1
- package/dist/esm/_core/expert-personas/expert-role-template.schemas.js +1 -2
- package/dist/esm/_core/expert-personas/expert-role-template.schemas.js.map +1 -1
- package/dist/esm/_core/family-aspects.registry.d.ts.map +1 -1
- package/dist/esm/_core/family-aspects.schemas.d.ts.map +1 -1
- package/dist/esm/_core/family-aspects.schemas.js.map +1 -1
- package/dist/esm/_core/feature-drafts/capability-map-output-set-generation.schemas.d.ts +9 -9
- package/dist/esm/_core/feature-drafts/capability-map-output-set-generation.schemas.d.ts.map +1 -1
- package/dist/esm/_core/feature-drafts/capability-map-output-set-validation.d.ts.map +1 -1
- package/dist/esm/_core/feature-drafts/capability-map-output-set.schemas.d.ts.map +1 -1
- package/dist/esm/_core/feature-drafts/feature-drafts.family-aspects.d.ts.map +1 -1
- package/dist/esm/_core/feature-drafts/feature-drafts.family-aspects.js.map +1 -1
- package/dist/esm/_core/feature-drafts/feature-specification-drafts-generation.schemas.d.ts.map +1 -1
- package/dist/esm/_core/feature-drafts/feature-specification-drafts-generation.schemas.js +17 -4
- package/dist/esm/_core/feature-drafts/feature-specification-drafts-generation.schemas.js.map +1 -1
- package/dist/esm/_core/feature-drafts/feature-specification-drafts-validation.d.ts.map +1 -1
- package/dist/esm/_core/feature-drafts/feature-specification-drafts.schemas.d.ts.map +1 -1
- package/dist/esm/_core/feature-specification.schemas.d.ts.map +1 -1
- package/dist/esm/_core/flows-actors-view-specification.schemas.d.ts.map +1 -1
- package/dist/esm/_core/frontend-component-specification.schemas.d.ts.map +1 -1
- package/dist/esm/_core/full-custom-view-specification.schemas.d.ts.map +1 -1
- package/dist/esm/_core/guidance-flow-specification.schemas.d.ts.map +1 -1
- package/dist/esm/_core/index.d.ts +1 -0
- package/dist/esm/_core/index.d.ts.map +1 -1
- package/dist/esm/_core/index.js +1 -0
- package/dist/esm/_core/index.js.map +1 -1
- package/dist/esm/_core/market/feature-benefit.schemas.d.ts.map +1 -1
- package/dist/esm/_core/market/inherit-from.d.ts.map +1 -1
- package/dist/esm/_core/market/is-benefit-available.d.ts.map +1 -1
- package/dist/esm/_core/market/market-alternative.schemas.d.ts.map +1 -1
- package/dist/esm/_core/market/market-authored-metadata.schemas.d.ts.map +1 -1
- package/dist/esm/_core/market/market-buying-journey.schemas.d.ts.map +1 -1
- package/dist/esm/_core/market/market-category.schemas.d.ts.map +1 -1
- package/dist/esm/_core/market/market-channel.schemas.d.ts.map +1 -1
- package/dist/esm/_core/market/market-context-block.schemas.d.ts.map +1 -1
- package/dist/esm/_core/market/market-gain.schemas.d.ts.map +1 -1
- package/dist/esm/_core/market/market-generation.schemas.d.ts.map +1 -1
- package/dist/esm/_core/market/market-icp.schemas.d.ts.map +1 -1
- package/dist/esm/_core/market/market-job.schemas.d.ts.map +1 -1
- package/dist/esm/_core/market/market-message-template.schemas.d.ts.map +1 -1
- package/dist/esm/_core/market/market-objection.schemas.d.ts.map +1 -1
- package/dist/esm/_core/market/market-pain.schemas.d.ts.map +1 -1
- package/dist/esm/_core/market/market-persona.schemas.d.ts.map +1 -1
- package/dist/esm/_core/market/market-positioning.schemas.d.ts.map +1 -1
- package/dist/esm/_core/market/market-proof.schemas.d.ts.map +1 -1
- package/dist/esm/_core/market/market-references.schemas.d.ts.map +1 -1
- package/dist/esm/_core/market/market-scoring.d.ts.map +1 -1
- package/dist/esm/_core/market/market-snapshot-generation.schemas.d.ts +18 -18
- package/dist/esm/_core/market/market-snapshot-generation.schemas.d.ts.map +1 -1
- package/dist/esm/_core/market/market-snapshot-generation.schemas.js +5 -40
- package/dist/esm/_core/market/market-snapshot-generation.schemas.js.map +1 -1
- package/dist/esm/_core/market/market-snapshot-validation.d.ts +15 -0
- package/dist/esm/_core/market/market-snapshot-validation.d.ts.map +1 -1
- package/dist/esm/_core/market/market-snapshot-validation.js.map +1 -1
- package/dist/esm/_core/market/market-snapshot.schemas.d.ts.map +1 -1
- package/dist/esm/_core/market/market-tone-of-voice.schemas.d.ts.map +1 -1
- package/dist/esm/_core/market/market-trigger.schemas.d.ts.map +1 -1
- package/dist/esm/_core/market/market.family-aspects.d.ts.map +1 -1
- package/dist/esm/_core/milestone-specification.schemas.d.ts.map +1 -1
- package/dist/esm/_core/onboarding-view-specification.schemas.d.ts.map +1 -1
- package/dist/esm/_core/placement-plan/placement-plan-generation.schemas.d.ts.map +1 -1
- package/dist/esm/_core/placement-plan/placement-plan-generation.schemas.js +11 -5
- package/dist/esm/_core/placement-plan/placement-plan-generation.schemas.js.map +1 -1
- package/dist/esm/_core/placement-plan/placement-plan-validation.d.ts +72 -9
- package/dist/esm/_core/placement-plan/placement-plan-validation.d.ts.map +1 -1
- package/dist/esm/_core/placement-plan/placement-plan-validation.js +68 -20
- package/dist/esm/_core/placement-plan/placement-plan-validation.js.map +1 -1
- package/dist/esm/_core/placement-plan/placement-plan.family-aspects.d.ts.map +1 -1
- package/dist/esm/_core/placement-plan/placement-plan.schemas.d.ts +12 -5
- package/dist/esm/_core/placement-plan/placement-plan.schemas.d.ts.map +1 -1
- package/dist/esm/_core/placement-plan/placement-plan.schemas.js +12 -5
- package/dist/esm/_core/placement-plan/placement-plan.schemas.js.map +1 -1
- package/dist/esm/_core/product-specification.schemas.d.ts.map +1 -1
- package/dist/esm/_core/provider-specification.schemas.d.ts +98 -0
- package/dist/esm/_core/provider-specification.schemas.d.ts.map +1 -0
- package/dist/esm/_core/provider-specification.schemas.js +124 -0
- package/dist/esm/_core/provider-specification.schemas.js.map +1 -0
- package/dist/esm/_core/required-features-specification.schemas.d.ts.map +1 -1
- package/dist/esm/_core/requirements/functional-requirement.schemas.d.ts.map +1 -1
- package/dist/esm/_core/requirements/non-functional-requirement.schemas.d.ts.map +1 -1
- package/dist/esm/_core/requirements/requirements-authored-metadata.schemas.d.ts.map +1 -1
- package/dist/esm/_core/requirements/requirements-references.schemas.d.ts.map +1 -1
- package/dist/esm/_core/requirements/requirements-snapshot-generation.schemas.d.ts.map +1 -1
- package/dist/esm/_core/requirements/requirements-snapshot-generation.schemas.js +13 -8
- package/dist/esm/_core/requirements/requirements-snapshot-generation.schemas.js.map +1 -1
- package/dist/esm/_core/requirements/requirements-snapshot-validation.d.ts +15 -0
- package/dist/esm/_core/requirements/requirements-snapshot-validation.d.ts.map +1 -1
- package/dist/esm/_core/requirements/requirements-snapshot-validation.js.map +1 -1
- package/dist/esm/_core/requirements/requirements-snapshot.schemas.d.ts.map +1 -1
- package/dist/esm/_core/requirements/requirements.family-aspects.d.ts.map +1 -1
- package/dist/esm/_core/resource-specification-registry-alignment.d.ts.map +1 -1
- package/dist/esm/_core/resource-specification.schemas.d.ts.map +1 -1
- package/dist/esm/_core/resource-type-member-name.types.d.ts.map +1 -1
- package/dist/esm/_core/roadmap/roadmap-authored-metadata.schemas.d.ts.map +1 -1
- package/dist/esm/_core/roadmap/roadmap-phase.schemas.d.ts.map +1 -1
- package/dist/esm/_core/roadmap/roadmap-references.schemas.d.ts.map +1 -1
- package/dist/esm/_core/roadmap/roadmap-snapshot-generation.schemas.d.ts.map +1 -1
- package/dist/esm/_core/roadmap/roadmap-snapshot-generation.schemas.js +7 -2
- package/dist/esm/_core/roadmap/roadmap-snapshot-generation.schemas.js.map +1 -1
- package/dist/esm/_core/roadmap/roadmap-snapshot-validation.d.ts +15 -0
- package/dist/esm/_core/roadmap/roadmap-snapshot-validation.d.ts.map +1 -1
- package/dist/esm/_core/roadmap/roadmap-snapshot-validation.js.map +1 -1
- package/dist/esm/_core/roadmap/roadmap-snapshot.schemas.d.ts.map +1 -1
- package/dist/esm/_core/roadmap/roadmap.family-aspects.d.ts.map +1 -1
- package/dist/esm/_core/role-specification.schemas.d.ts.map +1 -1
- package/dist/esm/_core/sidebar-section-specification.schemas.d.ts.map +1 -1
- package/dist/esm/_core/system-email-template-specification.schemas.d.ts.map +1 -1
- package/dist/esm/_core/translation-slot-specification.schemas.d.ts.map +1 -1
- package/dist/esm/_core/utils/extract-field-specs.d.ts.map +1 -1
- package/dist/esm/_core/utils/family-ref-stamping.d.ts +64 -0
- package/dist/esm/_core/utils/family-ref-stamping.d.ts.map +1 -0
- package/dist/esm/_core/utils/family-ref-stamping.js +73 -0
- package/dist/esm/_core/utils/family-ref-stamping.js.map +1 -0
- package/dist/esm/_core/utils/retention-marker-field-specs.d.ts.map +1 -1
- package/dist/esm/_core/utils/validate-field-shapes.d.ts.map +1 -1
- package/dist/esm/_core/vision/vision-authored-metadata.schemas.d.ts.map +1 -1
- package/dist/esm/_core/vision/vision-constraint.schemas.d.ts.map +1 -1
- package/dist/esm/_core/vision/vision-idea.schemas.d.ts.map +1 -1
- package/dist/esm/_core/vision/vision-mission.schemas.d.ts.map +1 -1
- package/dist/esm/_core/vision/vision-problem.schemas.d.ts.map +1 -1
- package/dist/esm/_core/vision/vision-references.schemas.d.ts.map +1 -1
- package/dist/esm/_core/vision/vision-snapshot-generation.schemas.d.ts.map +1 -1
- package/dist/esm/_core/vision/vision-snapshot-generation.schemas.js +23 -9
- package/dist/esm/_core/vision/vision-snapshot-generation.schemas.js.map +1 -1
- package/dist/esm/_core/vision/vision-snapshot-validation.d.ts.map +1 -1
- package/dist/esm/_core/vision/vision-snapshot.schemas.d.ts.map +1 -1
- package/dist/esm/_core/vision/vision-success-criterion.schemas.d.ts.map +1 -1
- package/dist/esm/_core/vision/vision.family-aspects.d.ts.map +1 -1
- package/dist/esm/application-creation/application-coding-tasks.application-creation.schemas.d.ts +0 -4
- package/dist/esm/application-creation/application-coding-tasks.application-creation.schemas.d.ts.map +1 -1
- package/dist/esm/application-creation/application-document-fact-specification.application-creation.schemas.d.ts +7 -7
- package/dist/esm/application-creation/application-document-fact-specification.application-creation.schemas.d.ts.map +1 -1
- package/dist/esm/application-creation/application-document-fact-specification.application-creation.schemas.js +6 -7
- package/dist/esm/application-creation/application-document-fact-specification.application-creation.schemas.js.map +1 -1
- package/dist/esm/application-creation/application-document-release-policy-specification.application-creation.schemas.d.ts +3 -3
- package/dist/esm/application-creation/application-document-release-policy-specification.application-creation.schemas.d.ts.map +1 -1
- package/dist/esm/application-creation/application-document-release-policy-specification.application-creation.schemas.js +3 -3
- package/dist/esm/application-creation/application-document-release-policy-specification.application-creation.schemas.js.map +1 -1
- package/dist/esm/application-creation/application-specification-family-identity.application-creation.schemas.d.ts +2 -2
- package/dist/esm/application-creation/application-specification-family-identity.application-creation.schemas.d.ts.map +1 -1
- package/dist/esm/application-creation/application-specification-family-identity.application-creation.schemas.js +2 -2
- package/dist/esm/application-creation/application-specification-family-identity.application-creation.schemas.js.map +1 -1
- package/dist/esm/application-creation/document-facts.family-aspects.d.ts.map +1 -1
- package/dist/esm/application-creation/document-release-policy.family-aspects.d.ts.map +1 -1
- package/dist/esm/application-creation/domain-plan-evaluation-identities.application-creation.definitions.d.ts.map +1 -1
- package/dist/esm/application-creation/journey.application-creation.schemas.d.ts +18 -6
- package/dist/esm/application-creation/journey.application-creation.schemas.d.ts.map +1 -1
- package/dist/esm/application-creation/journey.application-creation.schemas.js +18 -6
- package/dist/esm/application-creation/journey.application-creation.schemas.js.map +1 -1
- package/dist/esm/application-creation/playbooks.application-creation.schemas.d.ts +16 -23
- package/dist/esm/application-creation/playbooks.application-creation.schemas.d.ts.map +1 -1
- package/dist/esm/application-creation/playbooks.application-creation.schemas.js +65 -27
- package/dist/esm/application-creation/playbooks.application-creation.schemas.js.map +1 -1
- package/dist/esm/application-creation/specification-content-validation-state.application-creation.schemas.d.ts.map +1 -1
- package/dist/esm/application-creation/structured-artifact-landing.application-creation.schemas.d.ts.map +1 -1
- package/dist/esm/application-creation-playbook-runtime.exports.d.ts.map +1 -1
- package/dist/esm/application-creation.exports.d.ts.map +1 -1
- package/dist/esm/assurance/application-document-publication.schemas.d.ts +20 -6
- package/dist/esm/assurance/application-document-publication.schemas.d.ts.map +1 -1
- package/dist/esm/assurance/application-document-publication.schemas.js +26 -10
- package/dist/esm/assurance/application-document-publication.schemas.js.map +1 -1
- package/dist/esm/assurance/assurance-authority-basis.definitions.d.ts +83 -49
- package/dist/esm/assurance/assurance-authority-basis.definitions.d.ts.map +1 -1
- package/dist/esm/assurance/assurance-authority-basis.definitions.js +194 -60
- package/dist/esm/assurance/assurance-authority-basis.definitions.js.map +1 -1
- package/dist/esm/assurance/assurance-authority-basis.schemas.d.ts +25 -0
- package/dist/esm/assurance/assurance-authority-basis.schemas.d.ts.map +1 -1
- package/dist/esm/assurance/assurance-document-blueprint-selection.d.ts +30 -0
- package/dist/esm/assurance/assurance-document-blueprint-selection.d.ts.map +1 -1
- package/dist/esm/assurance/assurance-document-blueprint-selection.js +40 -0
- package/dist/esm/assurance/assurance-document-blueprint-selection.js.map +1 -1
- package/dist/esm/assurance/assurance-document-system.definitions.d.ts.map +1 -1
- package/dist/esm/assurance/assurance-document-system.schemas.d.ts.map +1 -1
- package/dist/esm/assurance/assurance-evidence-requirement-bodies.definitions.d.ts +49 -0
- package/dist/esm/assurance/assurance-evidence-requirement-bodies.definitions.d.ts.map +1 -0
- package/dist/esm/assurance/assurance-evidence-requirement-bodies.definitions.js +2832 -0
- package/dist/esm/assurance/assurance-evidence-requirement-bodies.definitions.js.map +1 -0
- package/dist/esm/assurance/assurance-external-framework-mapping.d.ts.map +1 -1
- package/dist/esm/assurance/assurance-foundation.schemas.d.ts +43 -0
- package/dist/esm/assurance/assurance-foundation.schemas.d.ts.map +1 -1
- package/dist/esm/assurance/assurance-foundation.schemas.js +56 -0
- package/dist/esm/assurance/assurance-foundation.schemas.js.map +1 -1
- package/dist/esm/assurance/assurance-objective-catalog.definitions.d.ts +44 -7
- package/dist/esm/assurance/assurance-objective-catalog.definitions.d.ts.map +1 -1
- package/dist/esm/assurance/assurance-objective-catalog.definitions.js +64 -7
- package/dist/esm/assurance/assurance-objective-catalog.definitions.js.map +1 -1
- package/dist/esm/assurance/assurance-program-generation.schemas.d.ts +8 -1
- package/dist/esm/assurance/assurance-program-generation.schemas.d.ts.map +1 -1
- package/dist/esm/assurance/assurance-program-generation.schemas.js +10 -2
- package/dist/esm/assurance/assurance-program-generation.schemas.js.map +1 -1
- package/dist/esm/assurance/assurance-program.family-aspects.d.ts.map +1 -1
- package/dist/esm/assurance/assurance-program.schemas.d.ts +463 -11
- package/dist/esm/assurance/assurance-program.schemas.d.ts.map +1 -1
- package/dist/esm/assurance/assurance-program.schemas.js +301 -5
- package/dist/esm/assurance/assurance-program.schemas.js.map +1 -1
- package/dist/esm/assurance/assurance-source-registry.definitions.d.ts.map +1 -1
- package/dist/esm/assurance/assurance-sources.schemas.d.ts.map +1 -1
- package/dist/esm/assurance/assurance-verification-requirement-bodies.definitions.d.ts +35 -0
- package/dist/esm/assurance/assurance-verification-requirement-bodies.definitions.d.ts.map +1 -0
- package/dist/esm/assurance/assurance-verification-requirement-bodies.definitions.js +1028 -0
- package/dist/esm/assurance/assurance-verification-requirement-bodies.definitions.js.map +1 -0
- package/dist/esm/assurance/document-publication.family-aspects.d.ts.map +1 -1
- package/dist/esm/assurance.exports.d.ts.map +1 -1
- package/dist/esm/companion-exports.d.ts +7 -6
- package/dist/esm/companion-exports.d.ts.map +1 -1
- package/dist/esm/companion-exports.js.map +1 -1
- package/dist/esm/engine/_bootstrap.d.ts.map +1 -1
- package/dist/esm/engine/_bootstrap.js +3 -1
- package/dist/esm/engine/_bootstrap.js.map +1 -1
- package/dist/esm/engine/applications/index.d.ts.map +1 -1
- package/dist/esm/engine/applications/resources/application-api-keys.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/applications/resources/application-api-keys.resource.specification.js +13 -1
- package/dist/esm/engine/applications/resources/application-api-keys.resource.specification.js.map +1 -1
- package/dist/esm/engine/applications/resources/application-metadata.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/applications/resources/application-metadata.resource.specification.js +1 -1
- package/dist/esm/engine/applications/resources/application-metadata.resource.specification.js.map +1 -1
- package/dist/esm/engine/applications/resources/application-oauth-clients.resource.specification.d.ts +2 -0
- package/dist/esm/engine/applications/resources/application-oauth-clients.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/applications/resources/application-oauth-clients.resource.specification.js +14 -2
- package/dist/esm/engine/applications/resources/application-oauth-clients.resource.specification.js.map +1 -1
- package/dist/esm/engine/applications/resources/application-versions.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/applications/resources/application-versions.resource.specification.js +9 -9
- package/dist/esm/engine/applications/resources/application-versions.resource.specification.js.map +1 -1
- package/dist/esm/engine/applications/resources/applications.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/applications/resources/applications.resource.specification.js +1 -1
- package/dist/esm/engine/applications/resources/applications.resource.specification.js.map +1 -1
- package/dist/esm/engine/applications/resources/index.d.ts.map +1 -1
- package/dist/esm/engine/auth/index.d.ts.map +1 -1
- package/dist/esm/engine/auth/resources/application-access-grants.resource.specification.d.ts +47 -0
- package/dist/esm/engine/auth/resources/application-access-grants.resource.specification.d.ts.map +1 -0
- package/dist/esm/engine/auth/resources/application-access-grants.resource.specification.js +355 -0
- package/dist/esm/engine/auth/resources/application-access-grants.resource.specification.js.map +1 -0
- package/dist/esm/engine/auth/resources/consumable-tokens.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/auth/resources/consumable-tokens.resource.specification.js +3 -3
- package/dist/esm/engine/auth/resources/consumable-tokens.resource.specification.js.map +1 -1
- package/dist/esm/engine/auth/resources/index.d.ts +1 -0
- package/dist/esm/engine/auth/resources/index.d.ts.map +1 -1
- package/dist/esm/engine/auth/resources/index.js +1 -0
- package/dist/esm/engine/auth/resources/index.js.map +1 -1
- package/dist/esm/engine/auth/resources/oauth-consent-grants.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/auth/resources/oauth-consent-grants.resource.specification.js +1 -1
- package/dist/esm/engine/auth/resources/oauth-consent-grants.resource.specification.js.map +1 -1
- package/dist/esm/engine/auth/resources/organization-api-keys.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/auth/resources/organization-api-keys.resource.specification.js +13 -1
- package/dist/esm/engine/auth/resources/organization-api-keys.resource.specification.js.map +1 -1
- package/dist/esm/engine/auth/resources/organization-oauth-clients.resource.specification.d.ts +2 -0
- package/dist/esm/engine/auth/resources/organization-oauth-clients.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/auth/resources/organization-oauth-clients.resource.specification.js +14 -2
- package/dist/esm/engine/auth/resources/organization-oauth-clients.resource.specification.js.map +1 -1
- package/dist/esm/engine/auth/resources/organization-provider-credentials.resource.specification.d.ts +32 -0
- package/dist/esm/engine/auth/resources/organization-provider-credentials.resource.specification.d.ts.map +1 -0
- package/dist/esm/engine/auth/resources/organization-provider-credentials.resource.specification.js +308 -0
- package/dist/esm/engine/auth/resources/organization-provider-credentials.resource.specification.js.map +1 -0
- package/dist/esm/engine/auth/resources/platform-access-grants.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/auth/resources/platform-access-grants.resource.specification.js +4 -4
- package/dist/esm/engine/auth/resources/platform-access-grants.resource.specification.js.map +1 -1
- package/dist/esm/engine/auth/resources/scim-provisioning-config.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/auth/resources/scim-provisioning-config.resource.specification.js +2 -2
- package/dist/esm/engine/auth/resources/scim-provisioning-config.resource.specification.js.map +1 -1
- package/dist/esm/engine/auth/resources/scim-tokens.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/auth/resources/scim-tokens.resource.specification.js +6 -6
- package/dist/esm/engine/auth/resources/scim-tokens.resource.specification.js.map +1 -1
- package/dist/esm/engine/auth/resources/siem-delivery-dlq.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/auth/resources/siem-delivery-dlq.resource.specification.js +9 -9
- package/dist/esm/engine/auth/resources/siem-delivery-dlq.resource.specification.js.map +1 -1
- package/dist/esm/engine/auth/resources/siem-export-config.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/auth/resources/siem-export-config.resource.specification.js +2 -2
- package/dist/esm/engine/auth/resources/siem-export-config.resource.specification.js.map +1 -1
- package/dist/esm/engine/auth/resources/sso-config.resource.specification.d.ts +9 -25
- package/dist/esm/engine/auth/resources/sso-config.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/auth/resources/sso-config.resource.specification.js +112 -10
- package/dist/esm/engine/auth/resources/sso-config.resource.specification.js.map +1 -1
- package/dist/esm/engine/auth/resources/sso-connections.resource.specification.d.ts +2 -6
- package/dist/esm/engine/auth/resources/sso-connections.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/auth/resources/user-provider-credentials.resource.specification.d.ts +32 -0
- package/dist/esm/engine/auth/resources/user-provider-credentials.resource.specification.d.ts.map +1 -0
- package/dist/esm/engine/auth/resources/user-provider-credentials.resource.specification.js +297 -0
- package/dist/esm/engine/auth/resources/user-provider-credentials.resource.specification.js.map +1 -0
- package/dist/esm/engine/billing/index.d.ts.map +1 -1
- package/dist/esm/engine/billing/resources/billing-accounts.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/billing/resources/billing-accounts.resource.specification.js +4 -3
- package/dist/esm/engine/billing/resources/billing-accounts.resource.specification.js.map +1 -1
- package/dist/esm/engine/billing/resources/billing-api-reference-examples.d.ts.map +1 -1
- package/dist/esm/engine/billing/resources/credit-pools.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/billing/resources/credit-pools.resource.specification.js +2 -2
- package/dist/esm/engine/billing/resources/credit-pools.resource.specification.js.map +1 -1
- package/dist/esm/engine/billing/resources/index.d.ts.map +1 -1
- package/dist/esm/engine/billing/resources/invoice-refs.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/billing/resources/invoice-refs.resource.specification.js +3 -3
- package/dist/esm/engine/billing/resources/invoice-refs.resource.specification.js.map +1 -1
- package/dist/esm/engine/billing/resources/prices.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/billing/resources/prices.resource.specification.js +7 -7
- package/dist/esm/engine/billing/resources/prices.resource.specification.js.map +1 -1
- package/dist/esm/engine/billing/resources/products.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/billing/resources/products.resource.specification.js +7 -7
- package/dist/esm/engine/billing/resources/products.resource.specification.js.map +1 -1
- package/dist/esm/engine/billing/resources/promotions.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/billing/resources/promotions.resource.specification.js +14 -12
- package/dist/esm/engine/billing/resources/promotions.resource.specification.js.map +1 -1
- package/dist/esm/engine/billing/resources/referrals.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/billing/resources/referrals.resource.specification.js +7 -7
- package/dist/esm/engine/billing/resources/referrals.resource.specification.js.map +1 -1
- package/dist/esm/engine/billing/resources/subscriptions.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/billing/resources/subscriptions.resource.specification.js +6 -3
- package/dist/esm/engine/billing/resources/subscriptions.resource.specification.js.map +1 -1
- package/dist/esm/engine/billing/resources/usage-records.resource.specification.d.ts +7 -3
- package/dist/esm/engine/billing/resources/usage-records.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/billing/resources/usage-records.resource.specification.js +28 -11
- package/dist/esm/engine/billing/resources/usage-records.resource.specification.js.map +1 -1
- package/dist/esm/engine/compliance/index.d.ts.map +1 -1
- package/dist/esm/engine/compliance/resources/application-audit-logs.resource.specification.d.ts +69 -0
- package/dist/esm/engine/compliance/resources/application-audit-logs.resource.specification.d.ts.map +1 -0
- package/dist/esm/engine/compliance/resources/application-audit-logs.resource.specification.js +316 -0
- package/dist/esm/engine/compliance/resources/application-audit-logs.resource.specification.js.map +1 -0
- package/dist/esm/engine/compliance/resources/audit-logs.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/compliance/resources/audit-logs.resource.specification.js +8 -8
- package/dist/esm/engine/compliance/resources/audit-logs.resource.specification.js.map +1 -1
- package/dist/esm/engine/compliance/resources/index.d.ts +1 -0
- package/dist/esm/engine/compliance/resources/index.d.ts.map +1 -1
- package/dist/esm/engine/compliance/resources/index.js +1 -0
- package/dist/esm/engine/compliance/resources/index.js.map +1 -1
- package/dist/esm/engine/engine-resource-specifications.registry.d.ts +2 -2
- package/dist/esm/engine/engine-resource-specifications.registry.d.ts.map +1 -1
- package/dist/esm/engine/engine-resource-specifications.registry.js +10 -2
- package/dist/esm/engine/engine-resource-specifications.registry.js.map +1 -1
- package/dist/esm/engine/engine-resource-sub-domain.d.ts +20 -0
- package/dist/esm/engine/engine-resource-sub-domain.d.ts.map +1 -1
- package/dist/esm/engine/engine-resource-sub-domain.js +66 -0
- package/dist/esm/engine/engine-resource-sub-domain.js.map +1 -1
- package/dist/esm/engine/errors/error-messages.specification.d.ts.map +1 -1
- package/dist/esm/engine/errors/error-messages.specification.js +33 -0
- package/dist/esm/engine/errors/error-messages.specification.js.map +1 -1
- package/dist/esm/engine/errors/index.d.ts.map +1 -1
- package/dist/esm/engine/features/_engine-feature-shared.d.ts.map +1 -1
- package/dist/esm/engine/features/advanced-analytics.feature.specification.d.ts.map +1 -1
- package/dist/esm/engine/features/audit-logs.feature.specification.d.ts.map +1 -1
- package/dist/esm/engine/features/audit-logs.feature.specification.js +4 -4
- package/dist/esm/engine/features/audit-logs.feature.specification.js.map +1 -1
- package/dist/esm/engine/features/core-limits.feature.specifications.d.ts.map +1 -1
- package/dist/esm/engine/features/core-limits.feature.specifications.js +7 -7
- package/dist/esm/engine/features/core-limits.feature.specifications.js.map +1 -1
- package/dist/esm/engine/features/custom-branding.feature.specification.d.ts.map +1 -1
- package/dist/esm/engine/features/directory-provisioning.feature.specification.d.ts.map +1 -1
- package/dist/esm/engine/features/index.d.ts.map +1 -1
- package/dist/esm/engine/features/m2m-webhook-delivery.feature.specification.d.ts.map +1 -1
- package/dist/esm/engine/features/resources/application-features.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/features/resources/application-features.resource.specification.js +3 -3
- package/dist/esm/engine/features/resources/application-features.resource.specification.js.map +1 -1
- package/dist/esm/engine/features/resources/index.d.ts.map +1 -1
- package/dist/esm/engine/features/resources/organization-features.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/features/resources/organization-features.resource.specification.js +3 -3
- package/dist/esm/engine/features/resources/organization-features.resource.specification.js.map +1 -1
- package/dist/esm/engine/features/resources/user-features.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/features/resources/user-features.resource.specification.js +3 -3
- package/dist/esm/engine/features/resources/user-features.resource.specification.js.map +1 -1
- package/dist/esm/engine/features/security-event-export.feature.specification.d.ts.map +1 -1
- package/dist/esm/engine/features/single-sign-on.feature.specification.d.ts.map +1 -1
- package/dist/esm/engine/files/index.d.ts.map +1 -1
- package/dist/esm/engine/files/resources/files.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/files/resources/files.resource.specification.js +11 -11
- package/dist/esm/engine/files/resources/files.resource.specification.js.map +1 -1
- package/dist/esm/engine/files/resources/index.d.ts.map +1 -1
- package/dist/esm/engine/flows-actors/resources/a2a-push-delivery-log.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/flows-actors/resources/a2a-push-delivery-log.resource.specification.js +11 -11
- package/dist/esm/engine/flows-actors/resources/a2a-push-delivery-log.resource.specification.js.map +1 -1
- package/dist/esm/engine/flows-actors/resources/a2a-token-budget-state.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/flows-actors/resources/a2a-token-budget-state.resource.specification.js +4 -4
- package/dist/esm/engine/flows-actors/resources/a2a-token-budget-state.resource.specification.js.map +1 -1
- package/dist/esm/engine/flows-actors/resources/flow-actor-executions.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/flows-actors/resources/flow-actor-executions.resource.specification.js +2 -2
- package/dist/esm/engine/flows-actors/resources/flow-actor-executions.resource.specification.js.map +1 -1
- package/dist/esm/engine/flows-actors/resources/flow-actor-tasks.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/actions/action-bar.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/actions/action-button.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/actions/button-group-separator.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/actions/button-group-text.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/actions/button-group.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/actions/button.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/ai-elements/artifacts/ai-artifact-list.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/ai-elements/artifacts/ai-artifact.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/ai-elements/artifacts/ai-code-block.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/ai-elements/artifacts/ai-image.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/ai-elements/artifacts/ai-web-preview.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/ai-elements/chat/ai-conversation.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/ai-elements/chat/ai-message.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/ai-elements/chat/ai-prompt-input.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/ai-elements/chat/ai-sources.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/ai-elements/chat/ai-suggestion.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/ai-elements/chat/ai-suggestions.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/ai-elements/decision/ai-approval-queue.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/ai-elements/decision/ai-approval-request.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/ai-elements/decision/ai-decision-request.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/ai-elements/decision/ai-human-input-request.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/ai-elements/execution/ai-confirmation.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/ai-elements/execution/ai-queue.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/ai-elements/execution/ai-task.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/ai-elements/execution/ai-tool.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/ai-elements/graph/ai-canvas.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/ai-elements/graph/ai-connection.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/ai-elements/graph/ai-controls.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/ai-elements/graph/ai-edge.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/ai-elements/graph/ai-node.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/ai-elements/graph/ai-panel.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/ai-elements/graph/ai-toolbar.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/ai-elements/meta/ai-agent-capabilities.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/ai-elements/meta/ai-agent-card.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/ai-elements/meta/ai-agent-list.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/ai-elements/meta/ai-agent-prompt-spec.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/ai-elements/meta/ai-context.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/ai-elements/meta/ai-model-selector.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/ai-elements/meta/ai-open-in-chat.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/ai-elements/shared/ai-loader.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/ai-elements/shared/ai-shimmer.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/ai-elements/trace/ai-chain-of-thought.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/ai-elements/trace/ai-checkpoint.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/ai-elements/trace/ai-inline-citation.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/ai-elements/trace/ai-plan.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/ai-elements/trace/ai-reasoning.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/app/app-layout-appearance-settings.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/app/app-layout-connected-accounts-settings.frontend-component.specification.d.ts +5 -0
- package/dist/esm/engine/frontend-components/app/app-layout-connected-accounts-settings.frontend-component.specification.d.ts.map +1 -0
- package/dist/esm/engine/frontend-components/app/app-layout-connected-accounts-settings.frontend-component.specification.js +81 -0
- package/dist/esm/engine/frontend-components/app/app-layout-connected-accounts-settings.frontend-component.specification.js.map +1 -0
- package/dist/esm/engine/frontend-components/app/app-layout-error-boundary.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/app/app-layout-home.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/app/app-layout-invitations-settings.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/app/app-layout-main-container.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/app/app-layout-router-error-boundary.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/app/app-layout-settings-hub.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/app/app-layouts-test-component.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/app/lifecycle-home-activation-progress.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/app/lifecycle-home-dashboard.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/app/lifecycle-home-welcome-back.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/app/public-layout-file-upload-grant.frontend-component.specification.d.ts +4 -0
- package/dist/esm/engine/frontend-components/app/public-layout-file-upload-grant.frontend-component.specification.d.ts.map +1 -0
- package/dist/esm/engine/frontend-components/app/public-layout-file-upload-grant.frontend-component.specification.js +22 -0
- package/dist/esm/engine/frontend-components/app/public-layout-file-upload-grant.frontend-component.specification.js.map +1 -0
- package/dist/esm/engine/frontend-components/app/public-layout-main-container.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/app/public-layout-static-content-container.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/app/public-layout-terms.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/auth/admin-config/app-page-security-settings.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/auth/public-layout-auth-callback.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/auth/public-layout-enrollment-required.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/auth/public-layout-magic-link-verify.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/auth/public-layout-mfa-challenge.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/auth/public-layout-oauth-consent.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/auth/public-layout-oauth-logged-out.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/auth/public-layout-oauth-logout-confirm.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/auth/public-layout-one-off-session.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/auth/public-layout-user-auth.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/auth/public-layout-user-confirm-email.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/auth/public-layout-user-invitation.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/auth/public-layout-user-password-lost.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/auth/public-layout-user-register.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/billing/billing-invoice-history.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/billing/billing-portal-link.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/billing/billing-pricing-table.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/billing/billing-subscription-status.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/billing/billing-usage-dashboard.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/data-display/avatar.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/data-display/badge.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/data-display/description-details.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/data-display/description-list.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/data-display/description-term.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/data-display/formatters/_display-field-spec.factory.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/data-display/formatters/display-field-bigdecimal.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/data-display/formatters/display-field-boolean.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/data-display/formatters/display-field-code.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/data-display/formatters/display-field-date.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/data-display/formatters/display-field-datetime.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/data-display/formatters/display-field-duration.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/data-display/formatters/display-field-enum.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/data-display/formatters/display-field-file-audio.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/data-display/formatters/display-field-file-document.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/data-display/formatters/display-field-file-gallery.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/data-display/formatters/display-field-file-image.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/data-display/formatters/display-field-file-video.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/data-display/formatters/display-field-file.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/data-display/formatters/display-field-foreign-key.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/data-display/formatters/display-field-money.extra-props.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/data-display/formatters/display-field-money.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/data-display/formatters/display-field-number.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/data-display/formatters/display-field-phone.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/data-display/formatters/display-field-range-bigdecimal.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/data-display/formatters/display-field-range-date.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/data-display/formatters/display-field-range-datetime.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/data-display/formatters/display-field-range-money.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/data-display/formatters/display-field-range-number.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/data-display/formatters/display-field-range-time.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/data-display/formatters/display-field-string.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/data-display/formatters/display-field-time.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/data-display/notification-indicator.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/feedback/celebration-overlay.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/feedback/danger-zone.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/feedback/empty-state.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/feedback/error-display.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/feedback/features/feature-limit-indicator.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/feedback/features/feature-lock-badge.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/feedback/features/feature-unavailable-dialog.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/feedback/features/feature-unavailable-prompt.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/feedback/loading-overlay.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/feedback/loading-spinner.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/feedback/operations-confirm-critical.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/feedback/progress.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/feedback/skeleton.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/feedback/toast.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/flows-actors/low-level-ai-actor.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/flows-actors/low-level-ai-agent-config.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/flows-actors/low-level-ai-approval.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/flows-actors/low-level-ai-approval.frontend-component.specification.js +1 -1
- package/dist/esm/engine/frontend-components/flows-actors/low-level-ai-approval.frontend-component.specification.js.map +1 -1
- package/dist/esm/engine/frontend-components/flows-actors/low-level-ai-artifact-browser.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/flows-actors/low-level-ai-decision.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/flows-actors/low-level-ai-execution-plan.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/flows-actors/low-level-ai-execution-stream.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/flows-actors/low-level-ai-flow-execution.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/flows-actors/low-level-ai-flow-node.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/flows-actors/low-level-ai-system-catalog.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/flows-actors/low-level-ai-task-detail.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/flows-actors/low-level-ai-task-memory.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/form/_framework-layout-form-field-spec.factory.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/form/_low-level-preset-wrapper-spec.factory.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/form/autosave-indicator.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/form/chromes/field-content.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/form/chromes/field-description.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/form/chromes/field-error.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/form/chromes/field-label.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/form/chromes/field-separator.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/form/chromes/field-title.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/form/chromes/field.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/form/chromes/form-control.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/form/chromes/form-description.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/form/chromes/form-field.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/form/chromes/form-item.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/form/chromes/form-label.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/form/chromes/form-message.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/form/chromes/form-root.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/form/combobox-multiple.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/form/combobox.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/form/controls/boolean/checkbox.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/form/controls/boolean/switch.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/form/controls/boolean/toggle-group-boolean.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/form/controls/boolean/toggle.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/form/controls/date-time/calendar-day-button.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/form/controls/date-time/calendar.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/form/controls/date-time/date-range-picker.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/form/controls/date-time/datepicker.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/form/controls/date-time/datetime-picker.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/form/controls/date-time/datetime-range-picker.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/form/controls/date-time/time-picker.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/form/controls/date-time/time-range-picker.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/form/controls/enum/radio-group.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/form/controls/enum/radio-item.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/form/controls/enum/select-multiple.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/form/controls/enum/select.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/form/controls/enum/toggle-group.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/form/controls/file/file-upload.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/form/controls/file/image-crop.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/form/controls/input-group-addon.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/form/controls/input-group-button.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/form/controls/input-group-input.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/form/controls/input-group-text.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/form/controls/input-group-textarea.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/form/controls/input-group.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/form/controls/input.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/form/controls/number/range-slider.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/form/controls/number/slider.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/form/controls/string/color-input.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/form/controls/string/input-otp.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/form/controls/string/markdown-editor.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/form/controls/string/password-input.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/form/controls/string/textarea.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/form/fields/form-field-bigdecimal.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/form/fields/form-field-boolean.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/form/fields/form-field-code.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/form/fields/form-field-date.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/form/fields/form-field-datetime.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/form/fields/form-field-duration.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/form/fields/form-field-enum.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/form/fields/form-field-file.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/form/fields/form-field-money.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/form/fields/form-field-number.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/form/fields/form-field-phone.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/form/fields/form-field-range-bigdecimal.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/form/fields/form-field-range-date.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/form/fields/form-field-range-datetime.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/form/fields/form-field-range-money.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/form/fields/form-field-range-number.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/form/fields/form-field-range-time.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/form/fields/form-field-string.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/form/fields/form-field-time.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/form/form-field-foreign-key.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/guidance/guidance-announcement.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/guidance/guidance-badge.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/guidance/guidance-banner.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/guidance/guidance-card.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/guidance/guidance-checklist-item.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/guidance/guidance-checklist.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/guidance/guidance-modal.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/guidance/guidance-onboarding-view.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/guidance/guidance-survey.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/guidance/guidance-tooltip.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/guidance/guidance-tour.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/high-level-views/chart-echarts.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/high-level-views/chart-widget.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/high-level-views/high-level-views-chart.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/high-level-views/high-level-views-composite.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/high-level-views/high-level-views-execution.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/high-level-views/high-level-views-flows-actors.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/high-level-views/high-level-views-full-custom.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/high-level-views/high-level-views-not-found.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/index.d.ts +0 -2
- package/dist/esm/engine/frontend-components/index.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/index.js +4 -6
- package/dist/esm/engine/frontend-components/index.js.map +1 -1
- package/dist/esm/engine/frontend-components/internal/_tier2-virtual-slot-spec.factory.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/layout/aspect-ratio.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/layout/carousel.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/layout/divider.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/layout/resizable-panel-group.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/layout/scroll-area.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/layout/separator.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/layout-internals/low-level-content-section-container.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/layout-internals/low-level-content-section-group.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/layout-internals/low-level-content-section-legend.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/layout-internals/low-level-content-section.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/layout-internals/low-level-overlay-container.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/navigation/app-level/activity-bar.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/navigation/app-level/command-menu.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/navigation/app-level/control-panel.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/navigation/app-level/menubar.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/navigation/app-level/navigation-back.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/navigation/app-level/notification-center.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/navigation/app-level/quick-action-button.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/navigation/app-level/quick-switcher.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/navigation/app-level/sidebar.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/navigation/app-level/status-bar.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/navigation/app-level/toolbar.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/navigation/app-level/user-dropdown.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/navigation/app-level/utility-panel.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/navigation/breadcrumb.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/navigation/command.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/navigation/menu-bar.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/navigation/navbar.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/navigation/sidebar.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/overlays/containers/alert-dialog.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/overlays/containers/alert.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/overlays/containers/dialog.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/overlays/containers/drawer.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/overlays/containers/sheet.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/overlays/floating/context-menu.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/overlays/floating/dropdown-menu.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/overlays/floating/hover-card.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/overlays/floating/popover.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/overlays/floating/tooltip.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/progression/progression-achievement-badge.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/progression/progression-milestone-tracker.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/resources/_framework-layout-resource-layout-spec.factory.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/resources/resource-layout-action.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/resources/resource-layout-breadcrumb.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/resources/resource-layout-container-dialogs.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/resources/resource-layout-container-nested.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/resources/resource-layout-create.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/resources/resource-layout-danger-zone.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/resources/resource-layout-empty-state.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/resources/resource-layout-filters.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/resources/resource-layout-header.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/resources/resource-layout-list-table.frontend-component.preset-specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/resources/resource-layout-list.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/resources/resource-layout-operation-bulk.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/resources/resource-layout-operations-items.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/resources/resource-layout-pagination.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/resources/resource-layout-read-expandable.frontend-component.preset-specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/resources/resource-layout-read-summary-table-row.frontend-component.preset-specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/resources/resource-layout-read-summary.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/resources/resource-layout-read.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/resources/resource-layout-search-table.frontend-component.preset-specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/resources/resource-layout-search.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/resources/resource-layout-update.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/resources/resources-fields-resource-reference-display.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/resources/resources-fields-resource-reference-edit-search.frontend-component.preset-specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/resources/resources-fields-resource-reference-edit.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/sections/accordion.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/sections/card.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/sections/collapsible.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/sections/pagination.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/sections/stacked-layout.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/sections/stepper.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/sections/table.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/sections/tabs.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/typography/code.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/typography/heading.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/typography/label.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/typography/link.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/typography/strong.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/typography/subheading.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/typography/text-link.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/typography/text.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/full-custom-views/index.d.ts.map +1 -1
- package/dist/esm/engine/guidance/index.d.ts.map +1 -1
- package/dist/esm/engine/guidance/resources/guidance-state.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/guidance/resources/guidance-state.resource.specification.js +12 -12
- package/dist/esm/engine/guidance/resources/guidance-state.resource.specification.js.map +1 -1
- package/dist/esm/engine/guidance/resources/index.d.ts.map +1 -1
- package/dist/esm/engine/guidance/resources/lifecycle-state.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/guidance/resources/lifecycle-state.resource.specification.js +9 -9
- package/dist/esm/engine/guidance/resources/lifecycle-state.resource.specification.js.map +1 -1
- package/dist/esm/engine/guidance/resources/progression-state.resource.specification.d.ts +8 -0
- package/dist/esm/engine/guidance/resources/progression-state.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/guidance/resources/progression-state.resource.specification.js +6 -6
- package/dist/esm/engine/guidance/resources/progression-state.resource.specification.js.map +1 -1
- package/dist/esm/engine/index.d.ts +1 -0
- package/dist/esm/engine/index.d.ts.map +1 -1
- package/dist/esm/engine/index.js +1 -0
- package/dist/esm/engine/index.js.map +1 -1
- package/dist/esm/engine/infrastructure/index.d.ts.map +1 -1
- package/dist/esm/engine/infrastructure/resources/data-seed-runs.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/infrastructure/resources/data-seed-runs.resource.specification.js +17 -17
- package/dist/esm/engine/infrastructure/resources/data-seed-runs.resource.specification.js.map +1 -1
- package/dist/esm/engine/infrastructure/resources/external-data-pipeline-states.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/infrastructure/resources/external-data-pipeline-states.resource.specification.js +7 -7
- package/dist/esm/engine/infrastructure/resources/external-data-pipeline-states.resource.specification.js.map +1 -1
- package/dist/esm/engine/infrastructure/resources/index.d.ts.map +1 -1
- package/dist/esm/engine/infrastructure/resources/job-executions.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/infrastructure/resources/job-executions.resource.specification.js +8 -8
- package/dist/esm/engine/infrastructure/resources/job-executions.resource.specification.js.map +1 -1
- package/dist/esm/engine/infrastructure/resources/job-payload-storage.resource.specification.d.ts +7 -2
- package/dist/esm/engine/infrastructure/resources/job-payload-storage.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/infrastructure/resources/job-payload-storage.resource.specification.js +10 -5
- package/dist/esm/engine/infrastructure/resources/job-payload-storage.resource.specification.js.map +1 -1
- package/dist/esm/engine/notifications/index.d.ts.map +1 -1
- package/dist/esm/engine/notifications/resources/index.d.ts.map +1 -1
- package/dist/esm/engine/notifications/resources/m2m-webhook-delivery-log.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/notifications/resources/m2m-webhook-delivery-log.resource.specification.js +20 -15
- package/dist/esm/engine/notifications/resources/m2m-webhook-delivery-log.resource.specification.js.map +1 -1
- package/dist/esm/engine/notifications/resources/notification-badges.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/notifications/resources/notification-badges.resource.specification.js +11 -10
- package/dist/esm/engine/notifications/resources/notification-badges.resource.specification.js.map +1 -1
- package/dist/esm/engine/notifications/resources/webhook-config.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/notifications/resources/webhook-config.resource.specification.js +29 -6
- package/dist/esm/engine/notifications/resources/webhook-config.resource.specification.js.map +1 -1
- package/dist/esm/engine/notifications/system-emails/authentication.system-emails.specification.d.ts.map +1 -1
- package/dist/esm/engine/notifications/system-emails/index.d.ts.map +1 -1
- package/dist/esm/engine/notifications/system-emails/organization.system-emails.specification.d.ts.map +1 -1
- package/dist/esm/engine/notifications/system-emails/security.system-emails.specification.d.ts.map +1 -1
- package/dist/esm/engine/notifications/system-emails/subscription.system-emails.specification.d.ts.map +1 -1
- package/dist/esm/engine/organizations/index.d.ts.map +1 -1
- package/dist/esm/engine/organizations/resources/index.d.ts.map +1 -1
- package/dist/esm/engine/organizations/resources/organization-members.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/organizations/resources/organization-members.resource.specification.js +9 -9
- package/dist/esm/engine/organizations/resources/organization-members.resource.specification.js.map +1 -1
- package/dist/esm/engine/organizations/resources/organization-notifications.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/organizations/resources/organization-notifications.resource.specification.js +3 -3
- package/dist/esm/engine/organizations/resources/organization-notifications.resource.specification.js.map +1 -1
- package/dist/esm/engine/organizations/resources/organization-preferences.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/organizations/resources/organization-preferences.resource.specification.js +4 -4
- package/dist/esm/engine/organizations/resources/organization-preferences.resource.specification.js.map +1 -1
- package/dist/esm/engine/organizations/resources/organization-profiles.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/organizations/resources/organization-profiles.resource.specification.js +2 -2
- package/dist/esm/engine/organizations/resources/organization-profiles.resource.specification.js.map +1 -1
- package/dist/esm/engine/organizations/resources/organization-unit-members.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/organizations/resources/organization-unit-members.resource.specification.js +1 -1
- package/dist/esm/engine/organizations/resources/organization-unit-members.resource.specification.js.map +1 -1
- package/dist/esm/engine/organizations/resources/organization-units.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/organizations/resources/organizations.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/organizations/resources/organizations.resource.specification.js +7 -7
- package/dist/esm/engine/organizations/resources/organizations.resource.specification.js.map +1 -1
- package/dist/esm/engine/providers/_engine-provider-shared.d.ts +9 -0
- package/dist/esm/engine/providers/_engine-provider-shared.d.ts.map +1 -0
- package/dist/esm/engine/providers/_engine-provider-shared.js +19 -0
- package/dist/esm/engine/providers/_engine-provider-shared.js.map +1 -0
- package/dist/esm/engine/providers/anthropic.provider.specification.d.ts +7 -0
- package/dist/esm/engine/providers/anthropic.provider.specification.d.ts.map +1 -0
- package/dist/esm/engine/providers/anthropic.provider.specification.js +42 -0
- package/dist/esm/engine/providers/anthropic.provider.specification.js.map +1 -0
- package/dist/esm/engine/providers/apple.provider.specification.d.ts +7 -0
- package/dist/esm/engine/providers/apple.provider.specification.d.ts.map +1 -0
- package/dist/esm/engine/providers/apple.provider.specification.js +44 -0
- package/dist/esm/engine/providers/apple.provider.specification.js.map +1 -0
- package/dist/esm/engine/providers/email-preview.provider.specification.d.ts +7 -0
- package/dist/esm/engine/providers/email-preview.provider.specification.d.ts.map +1 -0
- package/dist/esm/engine/providers/email-preview.provider.specification.js +39 -0
- package/dist/esm/engine/providers/email-preview.provider.specification.js.map +1 -0
- package/dist/esm/engine/providers/github.provider.specification.d.ts +7 -0
- package/dist/esm/engine/providers/github.provider.specification.d.ts.map +1 -0
- package/dist/esm/engine/providers/github.provider.specification.js +39 -0
- package/dist/esm/engine/providers/github.provider.specification.js.map +1 -0
- package/dist/esm/engine/providers/google.provider.specification.d.ts +7 -0
- package/dist/esm/engine/providers/google.provider.specification.d.ts.map +1 -0
- package/dist/esm/engine/providers/google.provider.specification.js +43 -0
- package/dist/esm/engine/providers/google.provider.specification.js.map +1 -0
- package/dist/esm/engine/providers/grok.provider.specification.d.ts +7 -0
- package/dist/esm/engine/providers/grok.provider.specification.d.ts.map +1 -0
- package/dist/esm/engine/providers/grok.provider.specification.js +39 -0
- package/dist/esm/engine/providers/grok.provider.specification.js.map +1 -0
- package/dist/esm/engine/providers/index.d.ts +23 -0
- package/dist/esm/engine/providers/index.d.ts.map +1 -0
- package/dist/esm/engine/providers/index.js +37 -0
- package/dist/esm/engine/providers/index.js.map +1 -0
- package/dist/esm/engine/providers/microsoft.provider.specification.d.ts +7 -0
- package/dist/esm/engine/providers/microsoft.provider.specification.d.ts.map +1 -0
- package/dist/esm/engine/providers/microsoft.provider.specification.js +39 -0
- package/dist/esm/engine/providers/microsoft.provider.specification.js.map +1 -0
- package/dist/esm/engine/providers/mistral.provider.specification.d.ts +7 -0
- package/dist/esm/engine/providers/mistral.provider.specification.d.ts.map +1 -0
- package/dist/esm/engine/providers/mistral.provider.specification.js +42 -0
- package/dist/esm/engine/providers/mistral.provider.specification.js.map +1 -0
- package/dist/esm/engine/providers/openai.provider.specification.d.ts +7 -0
- package/dist/esm/engine/providers/openai.provider.specification.d.ts.map +1 -0
- package/dist/esm/engine/providers/openai.provider.specification.js +52 -0
- package/dist/esm/engine/providers/openai.provider.specification.js.map +1 -0
- package/dist/esm/engine/providers/opencode.provider.specification.d.ts +7 -0
- package/dist/esm/engine/providers/opencode.provider.specification.d.ts.map +1 -0
- package/dist/esm/engine/providers/opencode.provider.specification.js +58 -0
- package/dist/esm/engine/providers/opencode.provider.specification.js.map +1 -0
- package/dist/esm/engine/providers/perplexity.provider.specification.d.ts +7 -0
- package/dist/esm/engine/providers/perplexity.provider.specification.d.ts.map +1 -0
- package/dist/esm/engine/providers/perplexity.provider.specification.js +39 -0
- package/dist/esm/engine/providers/perplexity.provider.specification.js.map +1 -0
- package/dist/esm/engine/providers/resend.provider.specification.d.ts +7 -0
- package/dist/esm/engine/providers/resend.provider.specification.d.ts.map +1 -0
- package/dist/esm/engine/providers/resend.provider.specification.js +42 -0
- package/dist/esm/engine/providers/resend.provider.specification.js.map +1 -0
- package/dist/esm/engine/providers/stripe.provider.specification.d.ts +7 -0
- package/dist/esm/engine/providers/stripe.provider.specification.d.ts.map +1 -0
- package/dist/esm/engine/providers/stripe.provider.specification.js +44 -0
- package/dist/esm/engine/providers/stripe.provider.specification.js.map +1 -0
- package/dist/esm/engine/providers/twilio.provider.specification.d.ts +7 -0
- package/dist/esm/engine/providers/twilio.provider.specification.d.ts.map +1 -0
- package/dist/esm/engine/providers/twilio.provider.specification.js +42 -0
- package/dist/esm/engine/providers/twilio.provider.specification.js.map +1 -0
- package/dist/esm/engine/roles/_engine-role-shared.d.ts.map +1 -1
- package/dist/esm/engine/roles/app-admin-billing-manager.role.specification.d.ts.map +1 -1
- package/dist/esm/engine/roles/app-admin-marketing-editor.role.specification.d.ts.map +1 -1
- package/dist/esm/engine/roles/app-admin-super-admin.role.specification.d.ts.map +1 -1
- package/dist/esm/engine/roles/app-admin-viewer.role.specification.d.ts.map +1 -1
- package/dist/esm/engine/roles/app-anonymous.role.specification.d.ts.map +1 -1
- package/dist/esm/engine/roles/app-public.role.specification.d.ts.map +1 -1
- package/dist/esm/engine/roles/app-user.role.specification.d.ts.map +1 -1
- package/dist/esm/engine/roles/index.d.ts.map +1 -1
- package/dist/esm/engine/roles/org-admin.role.specification.d.ts.map +1 -1
- package/dist/esm/engine/roles/org-guest.role.specification.d.ts.map +1 -1
- package/dist/esm/engine/roles/org-manager.role.specification.d.ts.map +1 -1
- package/dist/esm/engine/roles/org-member.role.specification.d.ts.map +1 -1
- package/dist/esm/engine/roles/org-owner.role.specification.d.ts.map +1 -1
- package/dist/esm/engine/users/index.d.ts.map +1 -1
- package/dist/esm/engine/users/resources/anonymous-users.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/users/resources/anonymous-users.resource.specification.js +7 -7
- package/dist/esm/engine/users/resources/anonymous-users.resource.specification.js.map +1 -1
- package/dist/esm/engine/users/resources/inbound-contacts.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/users/resources/inbound-contacts.resource.specification.js +9 -9
- package/dist/esm/engine/users/resources/inbound-contacts.resource.specification.js.map +1 -1
- package/dist/esm/engine/users/resources/index.d.ts.map +1 -1
- package/dist/esm/engine/users/resources/self-service-user-notifications.shared.d.ts.map +1 -1
- package/dist/esm/engine/users/resources/user-credentials.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/users/resources/user-credentials.resource.specification.js +2 -2
- package/dist/esm/engine/users/resources/user-credentials.resource.specification.js.map +1 -1
- package/dist/esm/engine/users/resources/user-identity-links.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/users/resources/user-identity-links.resource.specification.js +8 -8
- package/dist/esm/engine/users/resources/user-identity-links.resource.specification.js.map +1 -1
- package/dist/esm/engine/users/resources/user-preferences-api-reference.examples.d.ts.map +1 -1
- package/dist/esm/engine/users/resources/user-preferences.resource.specification.d.ts +4 -4
- package/dist/esm/engine/users/resources/user-preferences.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/users/resources/user-preferences.resource.specification.js +4 -4
- package/dist/esm/engine/users/resources/user-preferences.resource.specification.js.map +1 -1
- package/dist/esm/engine/users/resources/user-profiles.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/users/resources/user-profiles.resource.specification.js +2 -2
- package/dist/esm/engine/users/resources/user-profiles.resource.specification.js.map +1 -1
- package/dist/esm/engine/users/resources/user-self-preferences.resource.specification.d.ts +4 -4
- package/dist/esm/engine/users/resources/user-self-preferences.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/users/resources/user-self-preferences.resource.specification.js +13 -11
- package/dist/esm/engine/users/resources/user-self-preferences.resource.specification.js.map +1 -1
- package/dist/esm/engine/users/resources/user-self-profiles.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/users/resources/user-self-profiles.resource.specification.js +1 -1
- package/dist/esm/engine/users/resources/user-self-profiles.resource.specification.js.map +1 -1
- package/dist/esm/engine/users/resources/user-self.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/users/resources/user-self.resource.specification.js +9 -9
- package/dist/esm/engine/users/resources/user-self.resource.specification.js.map +1 -1
- package/dist/esm/engine/users/resources/users-api-reference.examples.d.ts.map +1 -1
- package/dist/esm/engine/users/resources/users.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/users/resources/users.resource.specification.js +93 -0
- package/dist/esm/engine/users/resources/users.resource.specification.js.map +1 -1
- package/dist/esm/index.d.ts.map +1 -1
- package/dist/esm/technical-documentation/engine-documentation-specification-catalog.companion.d.ts.map +1 -1
- package/dist/esm/technical-documentation/engine-documentation-specification-catalog.companion.js +95 -45
- package/dist/esm/technical-documentation/engine-documentation-specification-catalog.companion.js.map +1 -1
- package/dist/esm/technical-documentation/technical-documentation-api-reference-targets.schemas.d.ts.map +1 -1
- package/dist/esm/technical-documentation/technical-documentation-assets.schemas.d.ts.map +1 -1
- package/dist/esm/technical-documentation/technical-documentation-capture.schemas.d.ts.map +1 -1
- package/dist/esm/technical-documentation/technical-documentation-common.schemas.d.ts.map +1 -1
- package/dist/esm/technical-documentation/technical-documentation-environment-identity.schemas.d.ts.map +1 -1
- package/dist/esm/technical-documentation/technical-documentation-evidence.schemas.d.ts.map +1 -1
- package/dist/esm/technical-documentation/technical-documentation-lifecycle.schemas.d.ts.map +1 -1
- package/dist/esm/technical-documentation/technical-documentation-publication.schemas.d.ts.map +1 -1
- package/dist/esm/technical-documentation/technical-documentation-units.schemas.d.ts +37 -1
- package/dist/esm/technical-documentation/technical-documentation-units.schemas.d.ts.map +1 -1
- package/dist/esm/technical-documentation/technical-documentation-units.schemas.js +36 -0
- package/dist/esm/technical-documentation/technical-documentation-units.schemas.js.map +1 -1
- package/dist/esm/technical-documentation.exports.d.ts.map +1 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +8 -8
- package/dist/assurance/external-framework-mapping.json +0 -980
- package/dist/esm/engine/frontend-components/billing/billing-plan-change-preview.frontend-component.specification.d.ts +0 -4
- package/dist/esm/engine/frontend-components/billing/billing-plan-change-preview.frontend-component.specification.d.ts.map +0 -1
- package/dist/esm/engine/frontend-components/billing/billing-plan-change-preview.frontend-component.specification.js +0 -21
- package/dist/esm/engine/frontend-components/billing/billing-plan-change-preview.frontend-component.specification.js.map +0 -1
- package/dist/esm/engine/frontend-components/billing/billing-promotion-code-input.frontend-component.specification.d.ts +0 -4
- package/dist/esm/engine/frontend-components/billing/billing-promotion-code-input.frontend-component.specification.d.ts.map +0 -1
- package/dist/esm/engine/frontend-components/billing/billing-promotion-code-input.frontend-component.specification.js +0 -21
- package/dist/esm/engine/frontend-components/billing/billing-promotion-code-input.frontend-component.specification.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"assurance-program.schemas.js","sourceRoot":"","sources":["../../../../src/assurance/assurance-program.schemas.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AACH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EACL,cAAc,EACd,mCAAmC,EACnC,4BAA4B,EAC5B,wCAAwC,EACxC,qCAAqC,EACrC,+BAA+B,EAC/B,sCAAsC,EACtC,0BAA0B,EAC1B,kBAAkB,GACnB,MAAM,uBAAuB,CAAC;AAE/B,OAAO,EACL,iCAAiC,EACjC,uBAAuB,EACvB,4BAA4B,EAC5B,+CAA+C,EAC/C,kDAAkD,EAClD,sCAAsC,EACtC,sBAAsB,EACtB,0BAA0B,EAC1B,4BAA4B,EAC5B,+BAA+B,EAC/B,iCAAiC,EACjC,gCAAgC,EAChC,+CAA+C,GAGhD,MAAM,gCAAgC,CAAC;AACxC,OAAO,EACL,uCAAuC,EACvC,4CAA4C,EAC5C,8CAA8C,GAC/C,MAAM,qCAAqC,CAAC;AAC7C,OAAO,EACL,6BAA6B,EAC7B,4BAA4B,EAC5B,6BAA6B,EAC7B,8BAA8B,EAC9B,kBAAkB,EAClB,kCAAkC,GAInC,MAAM,6BAA6B,CAAC;AAErC,MAAM,eAAe,GAAG,CAAC,MAAyB,EAAW,EAAE,CAAC,IAAI,GAAG,CAAC,MAAM,CAAC,CAAC,IAAI,KAAK,MAAM,CAAC,MAAM,CAAC;AACvG,MAAM,oBAAoB,GAAG,CAAC,IAAY,EAAE,KAAa,EAAU,EAAE,CAAC,CAAC,IAAI,GAAG,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,GAAG,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;AACjH,MAAM,wBAAwB,GAAG,CAAC,MAAyB,EAAW,EAAE,CACtE,MAAM,CAAC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,EAAE,MAAM,CAAC,MAAM,KAAK,CAAC,EAAE,MAAM,EAAE,CAAC;AAC7C,CAAC,CAAC;AACF,4EAA4E","sourcesContent":["/**\n * entrypoint-closure-waiver: MEASURED SAFE 2026-08-13 — same measurement as `assurance.exports`,\n * of which this module is one publication. It is root-reachable only through that barrel (see the\n * waiver there for the probe and its result), and it crosses into three sibling `assurance/**`\n * modules that the root does not publish. The root-only consumer compile that exercises the\n * root-exported `application-creation` schemas built on these types is clean, with the emitted\n * declaration naming `@wildo-ai/saas-specifications/assurance`.\n *\n * Re-run that probe if this module's public surface starts appearing in a root-exported contract\n * by some path other than `application-creation`; the waiver records a measurement, not a proof\n * about every future shape.\n */\nimport { z } from \"zod\";\nimport {\n ALL_ZOD_ISSUES,\n GovernedDocumentApplicabilityStatus,\n GovernedDocumentAudienceKind,\n GovernedDocumentDefinitionIdentitySchema,\n GovernedDocumentGovernanceScopeSchema,\n GovernedDocumentInteractionKind,\n GovernedDocumentPublicationChannelKind,\n GovernedDocumentReviewKind,\n summarizeZodIssues,\n} from \"@wildo-ai/saas-models\";\n\nimport {\n AssuranceCapabilityIdentitySchema,\n AssuranceGapDisposition,\n AssuranceGovernanceActorKind,\n AssuranceImplementationStatementLifecycleStatus,\n AssuranceImplementationStatementCommonFieldsSchema,\n AssuranceImplementationStatementSchema,\n AssuranceIsoDateSchema,\n AssuranceIsoDateTimeSchema,\n AssuranceNamespacedRefSchema,\n AssuranceObjectiveCatalogSchema,\n AssuranceObjectiveLifecycleStatus,\n AssuranceObjectiveIdentitySchema,\n addAssuranceImplementationStatementCommonIssues,\n type AssuranceImplementationStatement,\n type AssuranceObjectiveCatalog,\n} from \"./assurance-foundation.schemas\";\nimport {\n AssuranceDocumentAuthorityCatalogSchema,\n assuranceDocumentQualifiedReviewRequirements,\n collectAssuranceDocumentAuthorityCatalogIssues,\n} from \"./assurance-document-system.schemas\";\nimport {\n AssuranceSourceRegistrySchema,\n AssuranceSourceAuthorityKind,\n AssuranceSourceIdentitySchema,\n AssuranceSourceLifecycleStatus,\n AssuranceSourceUse,\n deriveAssuranceRightsAuthorization,\n type AssuranceSourceIdentity,\n type AssuranceSourceRecord,\n type AssuranceSourceRegistry,\n} from \"./assurance-sources.schemas\";\n\nconst valuesAreUnique = (values: readonly string[]): boolean => new Set(values).size === values.length;\nconst compareCanonicalText = (left: string, right: string): number => (left < right ? -1 : left > right ? 1 : 0);\nconst valuesAreLexicallySorted = (values: readonly string[]): boolean =>\n values.every((value, index) => index === 0 || compareCanonicalText(values[index - 1]!, value) <= 0);\n\nconst timestampIsAfter = (candidate: string, boundary: string): boolean => Date.parse(candidate) > Date.parse(boundary);\nconst utcIsoDateFromInstant = (timestamp: string): string => new Date(Date.parse(timestamp)).toISOString().slice(0, 10);\nconst hostImplementationArtifactOrderKey = (artifact: { artifactKindRef: string; artifactRef: string }): string =>\n `${artifact.artifactKindRef}\\0${artifact.artifactRef}`;\n\nconst addUniqueSortedIssue = (values: readonly string[], context: z.RefinementCtx, path: PropertyKey[], label: string): void => {\n if (!valuesAreUnique(values) || !valuesAreLexicallySorted(values)) {\n context.addIssue({ code: \"custom\", message: `${label} must be unique and lexically sorted`, path });\n }\n};\n\n/**\n * @wildo_source:part:start saas.specifications.assurance-program.contract facet:layer:specification facet:family:assurance\n *\n * Application-policy decision state. Missing knowledge remains explicit and cannot be interpreted as non-applicability.\n */\nexport enum AssuranceProgramApplicabilityStatus {\n APPLICABLE = \"APPLICABLE\",\n NOT_APPLICABLE = \"NOT_APPLICABLE\",\n UNDETERMINED = \"UNDETERMINED\",\n}\n\n/** Declarative scope selector kinds. Live organization and user identities remain runtime facts. */\nexport enum AssuranceProgramScopeSelectorKind {\n APPLICATION = \"APPLICATION\",\n ORGANIZATION_POLICY = \"ORGANIZATION_POLICY\",\n}\n\n/** Honest capability-resolution vocabulary. None of these values is a compliance verdict. */\nexport enum AssuranceProgramCapabilityResolution {\n IMPLEMENTABLE = \"IMPLEMENTABLE\",\n PARTIAL = \"PARTIAL\",\n HUMAN_OR_EXTERNAL = \"HUMAN_OR_EXTERNAL\",\n UNSUPPORTED = \"UNSUPPORTED\",\n}\n\n/** Increasing proof stages without a flattened aggregate `COMPLIANT` state. */\nexport enum AssuranceProgramProofStage {\n SELECTED = \"SELECTED\",\n CONFIGURED = \"CONFIGURED\",\n OPERATING = \"OPERATING\",\n EVIDENCED = \"EVIDENCED\",\n ASSESSED = \"ASSESSED\",\n}\n\nexport enum AssuranceProgramCapabilityKind {\n ENGINE = \"ENGINE\",\n PROVIDER = \"PROVIDER\",\n APPLICATION = \"APPLICATION\",\n HUMAN_OR_EXTERNAL = \"HUMAN_OR_EXTERNAL\",\n}\n\nexport enum AssuranceProgramFindingKind {\n GAP = \"GAP\",\n EXCEPTION = \"EXCEPTION\",\n}\n\n/** Applicability of one Wildo obligation outcome, distinct from source-level applicability and runtime activation. */\nexport enum AssuranceProgramObligationApplicabilityStatus {\n APPLICABLE = \"APPLICABLE\",\n NOT_APPLICABLE = \"NOT_APPLICABLE\",\n UNDETERMINED = \"UNDETERMINED\",\n}\n\n/** Conditional enforcement effect once a later, separately governed lifecycle assessment activates the obligation. */\nexport enum AssuranceProgramObligationBlockingEffect {\n HARD = \"HARD\",\n ADVISORY = \"ADVISORY\",\n}\n\n/** Human review disposition for an exact obligation coverage claim retained inside the accepted program. */\nexport enum AssuranceProgramObligationCoverageReviewDisposition {\n APPROVED = \"APPROVED\",\n REJECTED = \"REJECTED\",\n}\n\n/** Whether shared responsibility has no actor precedence or names one actor whose decision prevails on conflict. */\nexport enum AssuranceProgramSharedResponsibilityPrecedenceMode {\n SHARED_WITHOUT_PRECEDENCE = \"SHARED_WITHOUT_PRECEDENCE\",\n NAMED_ACTOR_PRECEDENCE = \"NAMED_ACTOR_PRECEDENCE\",\n}\n\nexport enum AssuranceProgramDocumentApprovalRequirement {\n APPROVAL_REQUIRED = \"APPROVAL_REQUIRED\",\n NO_APPROVAL_REQUIRED = \"NO_APPROVAL_REQUIRED\",\n}\n\n/** One source artifact contributing to an accepted implementation revision, by its stable ref. */\nexport const AssuranceProgramSourceRevisionArtifactSchema = z.strictObject({\n artifactRef: AssuranceNamespacedRefSchema,\n});\nexport type AssuranceProgramSourceRevisionArtifact = z.infer<typeof AssuranceProgramSourceRevisionArtifactSchema>;\n\n/**\n * Content-addressed application-owned implementation fact supplied by the host at authority-composition time.\n *\n * Unlike `AssuranceProgramSourceRevisionArtifact`, this artifact does not claim to be framework implementation source. It binds the current configured application's\n * compiled state (for example, its subject-export resource graph) into the private authority snapshot used to validate application-specific implementation claims.\n */\nexport const AssuranceProgramHostImplementationArtifactSchema = z.strictObject({\n artifactRef: AssuranceNamespacedRefSchema,\n artifactKindRef: AssuranceNamespacedRefSchema,\n /**\n * Exact portable canonical fact bytes, retained so a later reader can re-derive the claim.\n *\n * The material is the evidence; it carried a self-hash until 2026-08-27, which verified these\n * bytes against a digest stored beside them and therefore proved nothing a reader could not see.\n */\n canonicalMaterial: z.string().min(1),\n});\nexport type AssuranceProgramHostImplementationArtifact = z.infer<typeof AssuranceProgramHostImplementationArtifactSchema>;\n\n/** Implementation-source bundle: a named revision and the ordered artifact inventory it covers. */\nexport const AssuranceProgramSourceRevisionSchema = z\n .strictObject({\n sourceRevisionRef: AssuranceNamespacedRefSchema,\n artifacts: z.array(AssuranceProgramSourceRevisionArtifactSchema).min(1),\n })\n .superRefine((revision, context) => {\n addUniqueSortedIssue(\n revision.artifacts.map((artifact) => artifact.artifactRef),\n context,\n [\"artifacts\"],\n \"source revision artifact refs\",\n );\n });\nexport type AssuranceProgramSourceRevision = z.infer<typeof AssuranceProgramSourceRevisionSchema>;\n\n/**\n * Stable durable subject for one artifact occurrence in a retained v1 source revision.\n *\n * V1 permits the same `artifactRef` in several distinct source revisions. Durable divergence receipts key issues\n * by `(kind, subjectRef)`, so the artifact ref alone would collapse those valid occurrences. A canonical JSON tuple\n * preserves both identity axes without introducing delimiter ambiguity. Consumers must treat this value as opaque.\n */\nconst sourceRevisionArtifactSubjectRef = (sourceRevisionRef: string, artifactRef: string): string => JSON.stringify([sourceRevisionRef, artifactRef]);\n\nconst AssuranceProgramSourceRevisionIdentitySchema = z.strictObject({\n sourceRevisionRef: AssuranceNamespacedRefSchema,\n});\n\n/**\n * Stable identity of one framework-owned authority basis — `basisRef` at `basisVersion`.\n *\n * `basisVersion` is the declared COMPATIBILITY GENERATION: equal versions promise the same\n * interpretation contract. An application pins this identity, so it re-accepts its controls when\n * the framework's contract generation moves — not on every engine byte.\n *\n * There is deliberately no content digest. Until 2026-08-27 there was, and it cost a re-acceptance\n * ritual four times in four days on one application: the pinned hash moved whenever any of the\n * digested engine sources moved, including for purely additive changes that altered no control.\n * Which BYTES an acceptance was made against is answered by the engine's committed git revision\n * plus the commit that recorded the acceptance — both of which merge across branches, which a hash\n * does not (`.claude/rules/one-source-of-truth.md`).\n */\nexport const AssuranceProgramAuthorityBasisIdentitySchema = z.strictObject({\n basisRef: AssuranceNamespacedRefSchema,\n basisVersion: z.number().int().positive(),\n});\nexport type AssuranceProgramAuthorityBasisIdentity = z.infer<typeof AssuranceProgramAuthorityBasisIdentitySchema>;\n\n/** Application-authored basis identity plus the exact engine artifact refs whose meaning it attests. */\nexport const AssuranceProgramAuthorityBasisReferenceSchema = AssuranceProgramAuthorityBasisIdentitySchema.extend({\n attestedArtifactRefs: z.array(AssuranceNamespacedRefSchema).min(1),\n}).superRefine((reference, context) => {\n addUniqueSortedIssue(reference.attestedArtifactRefs, context, [\"attestedArtifactRefs\"], \"attestedArtifactRefs\");\n});\nexport type AssuranceProgramAuthorityBasisReference = z.infer<typeof AssuranceProgramAuthorityBasisReferenceSchema>;\n\n/** Application semantic role bound to one actual application role definition and its exact source revision. */\nexport const AssuranceProgramRoleAuthoritySchema = z.strictObject({\n roleRef: AssuranceNamespacedRefSchema,\n applicationRoleRef: z.string().trim().min(1),\n definitionRevision: AssuranceProgramSourceRevisionIdentitySchema,\n});\nexport type AssuranceProgramRoleAuthority = z.infer<typeof AssuranceProgramRoleAuthoritySchema>;\n\n/** Current role authority bound to one exact framework authority basis rather than its internal inventory. */\nexport const AssuranceProgramRoleAuthorityV2Schema = z.strictObject({\n roleRef: AssuranceNamespacedRefSchema,\n applicationRoleRef: z.string().trim().min(1),\n definitionAuthority: AssuranceProgramAuthorityBasisIdentitySchema,\n});\nexport type AssuranceProgramRoleAuthorityV2 = z.infer<typeof AssuranceProgramRoleAuthorityV2Schema>;\n\n/** Versioned implementation authority for a selectable engine, provider, application or human/external capability. */\nexport const AssuranceProgramCapabilityAuthoritySchema = z\n .strictObject({\n identity: AssuranceCapabilityIdentitySchema,\n capabilityKind: z.enum(AssuranceProgramCapabilityKind),\n implementationRefs: z.array(AssuranceNamespacedRefSchema).min(1),\n implementationRevision: AssuranceProgramSourceRevisionIdentitySchema,\n })\n .superRefine((authority, context) => {\n addUniqueSortedIssue(authority.implementationRefs, context, [\"implementationRefs\"], \"implementationRefs\");\n });\nexport type AssuranceProgramCapabilityAuthority = z.infer<typeof AssuranceProgramCapabilityAuthoritySchema>;\n\n/** Current capability authority bound to one exact framework authority basis rather than its internal inventory. */\nexport const AssuranceProgramCapabilityAuthorityV2Schema = z\n .strictObject({\n identity: AssuranceCapabilityIdentitySchema,\n capabilityKind: z.enum(AssuranceProgramCapabilityKind),\n implementationRefs: z.array(AssuranceNamespacedRefSchema).min(1),\n implementationAuthority: AssuranceProgramAuthorityBasisIdentitySchema,\n })\n .superRefine((authority, context) => {\n addUniqueSortedIssue(authority.implementationRefs, context, [\"implementationRefs\"], \"implementationRefs\");\n });\nexport type AssuranceProgramCapabilityAuthorityV2 = z.infer<typeof AssuranceProgramCapabilityAuthorityV2Schema>;\n\nexport const AssuranceProgramFindingIdentitySchema = z.strictObject({\n findingRef: AssuranceNamespacedRefSchema,\n findingVersion: z.number().int().positive(),\n});\nexport type AssuranceProgramFindingIdentity = z.infer<typeof AssuranceProgramFindingIdentitySchema>;\n\nexport const AssuranceProgramExpectationIdentitySchema = z.strictObject({\n expectationRef: AssuranceNamespacedRefSchema,\n expectationVersion: z.number().int().positive(),\n});\nexport type AssuranceProgramExpectationIdentity = z.infer<typeof AssuranceProgramExpectationIdentitySchema>;\n\nexport const AssuranceProgramCapabilityProfileAuthoritySchema = z\n .strictObject({\n profileRef: AssuranceNamespacedRefSchema,\n parameters: z.array(\n z\n .strictObject({\n parameterRef: AssuranceNamespacedRefSchema,\n allowedOptionRefs: z.array(AssuranceNamespacedRefSchema).min(1),\n })\n .superRefine((parameter, context) => addUniqueSortedIssue(parameter.allowedOptionRefs, context, [\"allowedOptionRefs\"], \"allowedOptionRefs\")),\n ),\n })\n .superRefine((profile, context) => {\n addUniqueSortedIssue(\n profile.parameters.map((parameter) => parameter.parameterRef),\n context,\n [\"parameters\"],\n \"profile parameter refs\",\n );\n });\n\nexport const AssuranceProgramCapabilitySelectionAuthoritySchema = AssuranceProgramCapabilityAuthoritySchema.extend({\n profiles: z.array(AssuranceProgramCapabilityProfileAuthoritySchema),\n requiredHostArtifactKindRefs: z.array(AssuranceNamespacedRefSchema),\n}).superRefine((authority, context) => {\n addUniqueSortedIssue(\n authority.profiles.map((profile) => profile.profileRef),\n context,\n [\"profiles\"],\n \"capability profile refs\",\n );\n addUniqueSortedIssue(authority.requiredHostArtifactKindRefs, context, [\"requiredHostArtifactKindRefs\"], \"required host artifact kind refs\");\n});\n\nexport const AssuranceProgramSourceRequirementAuthoritySchema = z.strictObject({\n source: AssuranceSourceIdentitySchema,\n requirementRef: AssuranceNamespacedRefSchema,\n requirementVersion: z.number().int().positive(),\n objective: AssuranceObjectiveIdentitySchema,\n canonicalLocator: z.url(),\n reviewedByRef: AssuranceNamespacedRefSchema,\n reviewedAt: AssuranceIsoDateTimeSchema,\n});\n\nexport const AssuranceProgramImplementationExpectationAuthoritySchema = z\n .strictObject({\n identity: AssuranceProgramExpectationIdentitySchema,\n objective: AssuranceObjectiveIdentitySchema,\n requiredCapabilityRefs: z.array(AssuranceNamespacedRefSchema).min(1),\n })\n .superRefine((authority, context) => addUniqueSortedIssue(authority.requiredCapabilityRefs, context, [\"requiredCapabilityRefs\"], \"requiredCapabilityRefs\"));\n\nexport const AssuranceProgramEvidenceExpectationAuthoritySchema = z\n .strictObject({\n identity: AssuranceProgramExpectationIdentitySchema,\n objective: AssuranceObjectiveIdentitySchema,\n requiredStatementEvidenceRefs: z.array(AssuranceNamespacedRefSchema).min(1),\n })\n .superRefine((authority, context) =>\n addUniqueSortedIssue(authority.requiredStatementEvidenceRefs, context, [\"requiredStatementEvidenceRefs\"], \"requiredStatementEvidenceRefs\"),\n );\n\nexport const AssuranceProgramVerificationExpectationAuthoritySchema = z\n .strictObject({\n identity: AssuranceProgramExpectationIdentitySchema,\n objective: AssuranceObjectiveIdentitySchema,\n requiredStatementVerificationRefs: z.array(AssuranceNamespacedRefSchema).min(1),\n })\n .superRefine((authority, context) =>\n addUniqueSortedIssue(authority.requiredStatementVerificationRefs, context, [\"requiredStatementVerificationRefs\"], \"requiredStatementVerificationRefs\"),\n );\n\nexport const AssuranceProgramValidationAuthoritySnapshotSchema = z\n .strictObject({\n schemaVersion: z.literal(1),\n snapshotRef: AssuranceNamespacedRefSchema,\n snapshotVersion: z.number().int().positive(),\n evaluatedAt: AssuranceIsoDateTimeSchema,\n requestedSourceUses: z.array(z.enum(AssuranceSourceUse)).min(1),\n sourceRegistry: AssuranceSourceRegistrySchema,\n /** Optional only so retained pre-document-system snapshots stay parseable. */\n documentAuthorityCatalog: AssuranceDocumentAuthorityCatalogSchema.optional(),\n objectiveCatalog: AssuranceObjectiveCatalogSchema,\n applicationRoleRefs: z.array(z.string().trim().min(1)).min(1),\n capabilityAuthorities: z.array(AssuranceProgramCapabilitySelectionAuthoritySchema),\n implementationArtifacts: z.array(AssuranceProgramSourceRevisionArtifactSchema).min(1),\n hostImplementationArtifacts: z.array(AssuranceProgramHostImplementationArtifactSchema),\n sourceRequirementAuthorities: z.array(AssuranceProgramSourceRequirementAuthoritySchema),\n implementationExpectationAuthorities: z.array(AssuranceProgramImplementationExpectationAuthoritySchema),\n evidenceExpectationAuthorities: z.array(AssuranceProgramEvidenceExpectationAuthoritySchema),\n verificationExpectationAuthorities: z.array(AssuranceProgramVerificationExpectationAuthoritySchema),\n })\n .superRefine((snapshot, context) => {\n addUniqueSortedIssue(snapshot.requestedSourceUses, context, [\"requestedSourceUses\"], \"requestedSourceUses\");\n addUniqueSortedIssue(snapshot.applicationRoleRefs, context, [\"applicationRoleRefs\"], \"applicationRoleRefs\");\n addUniqueSortedIssue(\n snapshot.capabilityAuthorities.map((authority) => `${authority.identity.capabilityRef}@${authority.identity.capabilityVersion}`),\n context,\n [\"capabilityAuthorities\"],\n \"capability authority identities\",\n );\n addUniqueSortedIssue(\n snapshot.implementationArtifacts.map((artifact) => artifact.artifactRef),\n context,\n [\"implementationArtifacts\"],\n \"implementation artifact refs\",\n );\n const hostArtifactRefs = snapshot.hostImplementationArtifacts.map((artifact) => artifact.artifactRef);\n const hostArtifactKindRefs = snapshot.hostImplementationArtifacts.map((artifact) => artifact.artifactKindRef);\n if (!valuesAreUnique(hostArtifactRefs)) {\n context.addIssue({ code: \"custom\", message: \"host implementation artifact refs must be unique\", path: [\"hostImplementationArtifacts\"] });\n }\n if (!valuesAreUnique(hostArtifactKindRefs)) {\n context.addIssue({ code: \"custom\", message: \"host implementation artifact kind refs must be unique\", path: [\"hostImplementationArtifacts\"] });\n }\n if (!valuesAreLexicallySorted(snapshot.hostImplementationArtifacts.map(hostImplementationArtifactOrderKey))) {\n context.addIssue({\n code: \"custom\",\n message: \"host implementation artifacts must be sorted by artifact kind ref then artifact ref\",\n path: [\"hostImplementationArtifacts\"],\n });\n }\n addUniqueSortedIssue(\n snapshot.sourceRequirementAuthorities.map(\n (authority) => `${authority.source.sourceRef}@${authority.source.sourceVersion}:${authority.requirementRef}@${authority.requirementVersion}`,\n ),\n context,\n [\"sourceRequirementAuthorities\"],\n \"source requirement authority identities\",\n );\n for (const [key, values] of [\n [\"implementationExpectationAuthorities\", snapshot.implementationExpectationAuthorities],\n [\"evidenceExpectationAuthorities\", snapshot.evidenceExpectationAuthorities],\n [\"verificationExpectationAuthorities\", snapshot.verificationExpectationAuthorities],\n ] as const)\n addUniqueSortedIssue(\n values.map((authority) => `${authority.identity.expectationRef}@${authority.identity.expectationVersion}`),\n context,\n [key],\n `${key} identities`,\n );\n\n const rejectFutureAuthorityFact = (value: string, path: PropertyKey[], label: string): void => {\n if (timestampIsAfter(value, snapshot.evaluatedAt)) {\n context.addIssue({ code: \"custom\", message: `${label} cannot be later than evaluatedAt`, path });\n }\n };\n rejectFutureAuthorityFact(snapshot.sourceRegistry.verifiedAt, [\"sourceRegistry\", \"verifiedAt\"], \"source registry verification\");\n snapshot.sourceRegistry.sources.forEach((source, sourceIndex) => {\n rejectFutureAuthorityFact(source.rights.reviewedAt, [\"sourceRegistry\", \"sources\", sourceIndex, \"rights\", \"reviewedAt\"], \"source-rights review\");\n if (source.retrievedArtifact) {\n rejectFutureAuthorityFact(\n source.retrievedArtifact.retrievedAt,\n [\"sourceRegistry\", \"sources\", sourceIndex, \"retrievedArtifact\", \"retrievedAt\"],\n \"source-artifact retrieval\",\n );\n }\n });\n snapshot.sourceRequirementAuthorities.forEach((authority, authorityIndex) =>\n rejectFutureAuthorityFact(authority.reviewedAt, [\"sourceRequirementAuthorities\", authorityIndex, \"reviewedAt\"], \"source-requirement review\"),\n );\n if (snapshot.documentAuthorityCatalog) {\n rejectFutureAuthorityFact(\n snapshot.documentAuthorityCatalog.verifiedAt,\n [\"documentAuthorityCatalog\", \"verifiedAt\"],\n \"document authority catalog verification\",\n );\n snapshot.documentAuthorityCatalog.sourceMonitoringPolicies.forEach((policy, policyIndex) =>\n rejectFutureAuthorityFact(\n policy.lastCheckedAt,\n [\"documentAuthorityCatalog\", \"sourceMonitoringPolicies\", policyIndex, \"lastCheckedAt\"],\n \"document source monitoring check\",\n ),\n );\n }\n });\nexport type AssuranceProgramValidationAuthoritySnapshot = z.infer<typeof AssuranceProgramValidationAuthoritySnapshotSchema>;\n\n/** Exact application reference to a separately governed source-registry record. Normative bytes are never embedded here. */\nexport const AssuranceProgramSourceReferenceSchema = z.strictObject({\n identity: AssuranceSourceIdentitySchema,\n edition: z.string().trim().min(1),\n authorityKind: z.enum(AssuranceSourceAuthorityKind),\n authorityName: z.string().trim().min(1),\n lifecycleStatus: z.enum(AssuranceSourceLifecycleStatus),\n rightsRef: AssuranceNamespacedRefSchema,\n rightsVersion: z.number().int().positive(),\n});\nexport type AssuranceProgramSourceReference = z.infer<typeof AssuranceProgramSourceReferenceSchema>;\n\n/** Reusable application-level scope policy. Runtime resolution supplies actual tenant and assignee identities. */\nexport const AssuranceProgramScopeSelectorSchema = z\n .strictObject({\n scopeSelectorRef: AssuranceNamespacedRefSchema,\n scopeSelectorVersion: z.number().int().positive(),\n kind: z.enum(AssuranceProgramScopeSelectorKind),\n systemBoundaryRefs: z.array(AssuranceNamespacedRefSchema).min(1),\n organizationScopeRuleRefs: z.array(AssuranceNamespacedRefSchema),\n jurisdictionRefs: z.array(AssuranceNamespacedRefSchema),\n dataCategoryRefs: z.array(AssuranceNamespacedRefSchema),\n })\n .superRefine((scope, context) => {\n addUniqueSortedIssue(scope.systemBoundaryRefs, context, [\"systemBoundaryRefs\"], \"systemBoundaryRefs\");\n addUniqueSortedIssue(scope.organizationScopeRuleRefs, context, [\"organizationScopeRuleRefs\"], \"organizationScopeRuleRefs\");\n addUniqueSortedIssue(scope.jurisdictionRefs, context, [\"jurisdictionRefs\"], \"jurisdictionRefs\");\n addUniqueSortedIssue(scope.dataCategoryRefs, context, [\"dataCategoryRefs\"], \"dataCategoryRefs\");\n if (scope.kind === AssuranceProgramScopeSelectorKind.ORGANIZATION_POLICY && scope.organizationScopeRuleRefs.length === 0) {\n context.addIssue({\n code: \"custom\",\n message: \"organization-policy scope requires at least one organization scope rule\",\n path: [\"organizationScopeRuleRefs\"],\n });\n }\n });\nexport type AssuranceProgramScopeSelector = z.infer<typeof AssuranceProgramScopeSelectorSchema>;\n\nexport const AssuranceProgramApplicabilityDecisionSchema = z\n .strictObject({\n decisionRef: AssuranceNamespacedRefSchema,\n decisionVersion: z.number().int().positive(),\n source: AssuranceSourceIdentitySchema,\n scopeSelectorRef: AssuranceNamespacedRefSchema,\n status: z.enum(AssuranceProgramApplicabilityStatus),\n basis: z.string().trim().min(1),\n authorityDecisionRef: AssuranceNamespacedRefSchema,\n effectiveFrom: AssuranceIsoDateSchema,\n effectiveUntil: AssuranceIsoDateSchema.optional(),\n invalidationConditionRefs: z.array(AssuranceNamespacedRefSchema).min(1),\n })\n .superRefine((decision, context) => {\n addUniqueSortedIssue(decision.invalidationConditionRefs, context, [\"invalidationConditionRefs\"], \"invalidationConditionRefs\");\n if (decision.effectiveUntil && decision.effectiveUntil < decision.effectiveFrom) {\n context.addIssue({ code: \"custom\", message: \"effectiveUntil cannot precede effectiveFrom\", path: [\"effectiveUntil\"] });\n }\n });\nexport type AssuranceProgramApplicabilityDecision = z.infer<typeof AssuranceProgramApplicabilityDecisionSchema>;\n\n/** Exact identity of one retained source/scope applicability decision consumed by a v3 obligation. */\nexport const AssuranceProgramSourceApplicabilityDecisionIdentitySchema = z.strictObject({\n decisionRef: AssuranceNamespacedRefSchema,\n decisionVersion: z.number().int().positive(),\n});\nexport type AssuranceProgramSourceApplicabilityDecisionIdentity = z.infer<typeof AssuranceProgramSourceApplicabilityDecisionIdentitySchema>;\n\nexport const AssuranceProgramSourceRequirementReferenceSchema = z.strictObject({\n source: AssuranceSourceIdentitySchema,\n requirementRef: AssuranceNamespacedRefSchema,\n requirementVersion: z.number().int().positive(),\n});\n\nconst versionedSourceKey = (source: AssuranceSourceIdentity): string => `${source.sourceRef}@${source.sourceVersion}`;\nconst versionedObjectiveKey = (objective: { objectiveRef: string; objectiveVersion: number }): string =>\n `${objective.objectiveRef}@${objective.objectiveVersion}`;\nconst versionedCapabilityKey = (capability: { capabilityRef: string; capabilityVersion: number }): string =>\n `${capability.capabilityRef}@${capability.capabilityVersion}`;\nconst versionedDocumentKey = (document: { documentRef: string; documentVersion: number }): string => `${document.documentRef}@${document.documentVersion}`;\nconst sourceRevisionKey = (revision: { sourceRevisionRef: string }): string => revision.sourceRevisionRef;\nconst authorityBasisIdentityKey = (basis: { basisRef: string; basisVersion: number }): string => `${basis.basisRef}@${basis.basisVersion}`;\nconst applicabilitySubjectKey = (source: AssuranceSourceIdentity, scopeSelectorRef: string): string => `${versionedSourceKey(source)}::${scopeSelectorRef}`;\nconst versionedExpectationKey = (identity: { expectationRef: string; expectationVersion: number }): string =>\n `${identity.expectationRef}@${identity.expectationVersion}`;\nconst versionedSourceRequirementKey = (reference: { source: AssuranceSourceIdentity; requirementRef: string; requirementVersion: number }): string =>\n `${versionedSourceKey(reference.source)}:${reference.requirementRef}@${reference.requirementVersion}`;\n\n/** Source-neutral Wildo objective binding. Relationships to restricted targets remain in external mapping packs. */\nexport const AssuranceProgramControlObjectiveBindingSchema = z\n .strictObject({\n bindingRef: AssuranceNamespacedRefSchema,\n bindingVersion: z.number().int().positive(),\n objective: AssuranceObjectiveIdentitySchema,\n scopeSelectorRefs: z.array(AssuranceNamespacedRefSchema).min(1),\n sourceRequirementRefs: z.array(AssuranceProgramSourceRequirementReferenceSchema),\n implementationExpectationRefs: z.array(AssuranceProgramExpectationIdentitySchema).min(1),\n evidenceExpectationRefs: z.array(AssuranceProgramExpectationIdentitySchema).min(1),\n verificationExpectationRefs: z.array(AssuranceProgramExpectationIdentitySchema).min(1),\n requiredProofStage: z.enum(AssuranceProgramProofStage),\n })\n .superRefine((binding, context) => {\n addUniqueSortedIssue(binding.scopeSelectorRefs, context, [\"scopeSelectorRefs\"], \"scopeSelectorRefs\");\n addUniqueSortedIssue(\n binding.sourceRequirementRefs.map(\n (reference) => `${reference.source.sourceRef}@${reference.source.sourceVersion}:${reference.requirementRef}@${reference.requirementVersion}`,\n ),\n context,\n [\"sourceRequirementRefs\"],\n \"sourceRequirementRefs\",\n );\n const expectationKey = (identity: AssuranceProgramExpectationIdentity): string => `${identity.expectationRef}@${identity.expectationVersion}`;\n addUniqueSortedIssue(\n binding.implementationExpectationRefs.map(expectationKey),\n context,\n [\"implementationExpectationRefs\"],\n \"implementationExpectationRefs\",\n );\n addUniqueSortedIssue(binding.evidenceExpectationRefs.map(expectationKey), context, [\"evidenceExpectationRefs\"], \"evidenceExpectationRefs\");\n addUniqueSortedIssue(binding.verificationExpectationRefs.map(expectationKey), context, [\"verificationExpectationRefs\"], \"verificationExpectationRefs\");\n });\nexport type AssuranceProgramControlObjectiveBinding = z.infer<typeof AssuranceProgramControlObjectiveBindingSchema>;\n\nexport const AssuranceProgramObligationIdentitySchema = z.strictObject({\n obligationRef: AssuranceNamespacedRefSchema,\n obligationVersion: z.number().int().positive(),\n});\nexport type AssuranceProgramObligationIdentity = z.infer<typeof AssuranceProgramObligationIdentitySchema>;\n\nexport const AssuranceProgramObligationCoverageDecisionIdentitySchema = z.strictObject({\n coverageDecisionRef: AssuranceNamespacedRefSchema,\n coverageDecisionVersion: z.number().int().positive(),\n});\nexport type AssuranceProgramObligationCoverageDecisionIdentity = z.infer<typeof AssuranceProgramObligationCoverageDecisionIdentitySchema>;\n\nexport const AssuranceProgramSharedResponsibilityRuleIdentitySchema = z.strictObject({\n sharedResponsibilityRuleRef: AssuranceNamespacedRefSchema,\n sharedResponsibilityRuleVersion: z.number().int().positive(),\n});\nexport type AssuranceProgramSharedResponsibilityRuleIdentity = z.infer<typeof AssuranceProgramSharedResponsibilityRuleIdentitySchema>;\n\nconst AssuranceProgramSharedResponsibilityPrecedenceSchema = z.discriminatedUnion(\"mode\", [\n z.strictObject({ mode: z.literal(AssuranceProgramSharedResponsibilityPrecedenceMode.SHARED_WITHOUT_PRECEDENCE) }),\n z.strictObject({\n mode: z.literal(AssuranceProgramSharedResponsibilityPrecedenceMode.NAMED_ACTOR_PRECEDENCE),\n precedenceActorKind: z.enum(AssuranceGovernanceActorKind),\n }),\n]);\n\n/**\n * Program-owned reusable party-attribution rule. It is accepted atomically with the obligations that cite it;\n * runtime people, organizations and review occurrences remain deliberately absent.\n */\nexport const AssuranceProgramSharedResponsibilityRuleSchema = z\n .strictObject({\n sharedResponsibilityRuleRef: AssuranceNamespacedRefSchema,\n sharedResponsibilityRuleVersion: z.number().int().positive(),\n scopeSelectorRefs: z.array(AssuranceNamespacedRefSchema).min(1),\n governanceActorKinds: z.array(z.enum(AssuranceGovernanceActorKind)).min(2),\n accountableRoleRefs: z.array(AssuranceNamespacedRefSchema).min(1),\n operatingRoleRefs: z.array(AssuranceNamespacedRefSchema).min(1),\n evidenceProviderRoleRefs: z.array(AssuranceNamespacedRefSchema).min(1),\n approvingRoleRefs: z.array(AssuranceNamespacedRefSchema).min(1),\n conflictResolutionRoleRefs: z.array(AssuranceNamespacedRefSchema).min(1),\n precedence: AssuranceProgramSharedResponsibilityPrecedenceSchema,\n rationale: z.string().trim().min(1),\n reviewedByRoleRef: AssuranceNamespacedRefSchema,\n reviewedAt: AssuranceIsoDateTimeSchema,\n })\n .superRefine((rule, context) => {\n addUniqueSortedIssue(rule.scopeSelectorRefs, context, [\"scopeSelectorRefs\"], \"scopeSelectorRefs\");\n addUniqueSortedIssue(rule.governanceActorKinds, context, [\"governanceActorKinds\"], \"governanceActorKinds\");\n for (const field of [\"accountableRoleRefs\", \"operatingRoleRefs\", \"evidenceProviderRoleRefs\", \"approvingRoleRefs\", \"conflictResolutionRoleRefs\"] as const)\n addUniqueSortedIssue(rule[field], context, [field], field);\n if (\n rule.precedence.mode === AssuranceProgramSharedResponsibilityPrecedenceMode.NAMED_ACTOR_PRECEDENCE &&\n !rule.governanceActorKinds.includes(rule.precedence.precedenceActorKind)\n )\n context.addIssue({\n code: \"custom\",\n message: \"precedenceActorKind must occur in governanceActorKinds\",\n path: [\"precedence\", \"precedenceActorKind\"],\n });\n });\nexport type AssuranceProgramSharedResponsibilityRule = z.infer<typeof AssuranceProgramSharedResponsibilityRuleSchema>;\n\n/** Exact human-reviewed coverage claim over one obligation and its complete cited source-requirement inventory. */\nexport const AssuranceProgramObligationCoverageDecisionSchema = z\n .strictObject({\n coverageDecisionRef: AssuranceNamespacedRefSchema,\n coverageDecisionVersion: z.number().int().positive(),\n obligation: AssuranceProgramObligationIdentitySchema,\n sourceRequirementRefs: z.array(AssuranceProgramSourceRequirementReferenceSchema).min(1),\n reviewDisposition: z.enum(AssuranceProgramObligationCoverageReviewDisposition),\n reviewedByRoleRef: AssuranceNamespacedRefSchema,\n reviewedAt: AssuranceIsoDateTimeSchema,\n rationale: z.string().trim().min(1),\n limitationRefs: z.array(AssuranceNamespacedRefSchema),\n })\n .superRefine((decision, context) => {\n addUniqueSortedIssue(decision.sourceRequirementRefs.map(versionedSourceRequirementKey), context, [\"sourceRequirementRefs\"], \"sourceRequirementRefs\");\n addUniqueSortedIssue(decision.limitationRefs, context, [\"limitationRefs\"], \"limitationRefs\");\n });\nexport type AssuranceProgramObligationCoverageDecision = z.infer<typeof AssuranceProgramObligationCoverageDecisionSchema>;\n\nconst AssuranceProgramObligationApplicabilityDecisionCommonSchema = z.strictObject({\n decisionRef: AssuranceNamespacedRefSchema,\n decisionVersion: z.number().int().positive(),\n rationale: z.string().trim().min(1),\n reviewedByRoleRef: AssuranceNamespacedRefSchema,\n decidedAt: AssuranceIsoDateTimeSchema,\n evidenceRefs: z.array(AssuranceNamespacedRefSchema),\n invalidationConditionRefs: z.array(AssuranceNamespacedRefSchema).min(1),\n});\n\n/** Outcome-level applicability. It cannot encode lifecycle activation, operating status or a compliance conclusion. */\nexport const AssuranceProgramObligationApplicabilityDecisionSchema = z\n .discriminatedUnion(\"status\", [\n AssuranceProgramObligationApplicabilityDecisionCommonSchema.extend({ status: z.literal(AssuranceProgramObligationApplicabilityStatus.APPLICABLE) }),\n AssuranceProgramObligationApplicabilityDecisionCommonSchema.extend({\n status: z.literal(AssuranceProgramObligationApplicabilityStatus.NOT_APPLICABLE),\n evidenceRefs: z.array(AssuranceNamespacedRefSchema).min(1),\n }),\n AssuranceProgramObligationApplicabilityDecisionCommonSchema.extend({ status: z.literal(AssuranceProgramObligationApplicabilityStatus.UNDETERMINED) }),\n ])\n .superRefine((decision, context) => {\n addUniqueSortedIssue(decision.evidenceRefs, context, [\"evidenceRefs\"], \"evidenceRefs\");\n addUniqueSortedIssue(decision.invalidationConditionRefs, context, [\"invalidationConditionRefs\"], \"invalidationConditionRefs\");\n });\nexport type AssuranceProgramObligationApplicabilityDecision = z.infer<typeof AssuranceProgramObligationApplicabilityDecisionSchema>;\n\n/** One source-neutral application obligation. External framework ids and protected source bytes remain outside this contract. */\nexport const AssuranceProgramObligationEntrySchema = z\n .strictObject({\n obligationRef: AssuranceNamespacedRefSchema,\n obligationVersion: z.number().int().positive(),\n objective: AssuranceObjectiveIdentitySchema,\n scopeSelectorRefs: z.array(AssuranceNamespacedRefSchema).min(1),\n governanceActorKinds: z.array(z.enum(AssuranceGovernanceActorKind)).min(1),\n sharedResponsibilityRule: AssuranceProgramSharedResponsibilityRuleIdentitySchema.optional(),\n sourceRequirementRefs: z.array(AssuranceProgramSourceRequirementReferenceSchema).min(1),\n sourceApplicabilityDecisionRefs: z.array(AssuranceProgramSourceApplicabilityDecisionIdentitySchema).min(1),\n coverageDecision: AssuranceProgramObligationCoverageDecisionIdentitySchema,\n applicability: AssuranceProgramObligationApplicabilityDecisionSchema,\n responsibilityAssignmentRefs: z.array(AssuranceNamespacedRefSchema).min(1),\n implementationExpectationRefs: z.array(AssuranceProgramExpectationIdentitySchema).min(1),\n evidenceExpectationRefs: z.array(AssuranceProgramExpectationIdentitySchema).min(1),\n verificationExpectationRefs: z.array(AssuranceProgramExpectationIdentitySchema).min(1),\n requiredProofStage: z.enum(AssuranceProgramProofStage),\n blockingEffect: z.enum(AssuranceProgramObligationBlockingEffect),\n gapRefs: z.array(AssuranceProgramFindingIdentitySchema),\n dependencyObligationRefs: z.array(AssuranceProgramObligationIdentitySchema),\n reviewOwnerRoleRefs: z.array(AssuranceNamespacedRefSchema).min(1),\n reviewOn: AssuranceIsoDateSchema,\n reviewTriggerRefs: z.array(AssuranceNamespacedRefSchema).min(1),\n })\n .superRefine((entry, context) => {\n addUniqueSortedIssue(entry.scopeSelectorRefs, context, [\"scopeSelectorRefs\"], \"scopeSelectorRefs\");\n addUniqueSortedIssue(entry.governanceActorKinds, context, [\"governanceActorKinds\"], \"governanceActorKinds\");\n addUniqueSortedIssue(entry.sourceRequirementRefs.map(versionedSourceRequirementKey), context, [\"sourceRequirementRefs\"], \"sourceRequirementRefs\");\n addUniqueSortedIssue(\n entry.sourceApplicabilityDecisionRefs.map((identity) => `${identity.decisionRef}@${identity.decisionVersion}`),\n context,\n [\"sourceApplicabilityDecisionRefs\"],\n \"sourceApplicabilityDecisionRefs\",\n );\n addUniqueSortedIssue(entry.responsibilityAssignmentRefs, context, [\"responsibilityAssignmentRefs\"], \"responsibilityAssignmentRefs\");\n for (const field of [\"implementationExpectationRefs\", \"evidenceExpectationRefs\", \"verificationExpectationRefs\"] as const)\n addUniqueSortedIssue(entry[field].map(versionedExpectationKey), context, [field], field);\n addUniqueSortedIssue(\n entry.gapRefs.map((identity) => `${identity.findingRef}@${identity.findingVersion}`),\n context,\n [\"gapRefs\"],\n \"gapRefs\",\n );\n addUniqueSortedIssue(\n entry.dependencyObligationRefs.map((identity) => `${identity.obligationRef}@${identity.obligationVersion}`),\n context,\n [\"dependencyObligationRefs\"],\n \"dependencyObligationRefs\",\n );\n addUniqueSortedIssue(entry.reviewOwnerRoleRefs, context, [\"reviewOwnerRoleRefs\"], \"reviewOwnerRoleRefs\");\n addUniqueSortedIssue(entry.reviewTriggerRefs, context, [\"reviewTriggerRefs\"], \"reviewTriggerRefs\");\n if (entry.governanceActorKinds.length === 1 && entry.sharedResponsibilityRule)\n context.addIssue({ code: \"custom\", message: \"a single governance actor cannot cite a shared-responsibility rule\", path: [\"sharedResponsibilityRule\"] });\n if (entry.governanceActorKinds.length > 1 && !entry.sharedResponsibilityRule)\n context.addIssue({\n code: \"custom\",\n message: \"multiple governance actors require an exact shared-responsibility rule\",\n path: [\"sharedResponsibilityRule\"],\n });\n if (\n entry.dependencyObligationRefs.some(\n (identity) => identity.obligationRef === entry.obligationRef && identity.obligationVersion === entry.obligationVersion,\n )\n )\n context.addIssue({ code: \"custom\", message: \"an obligation cannot depend on itself\", path: [\"dependencyObligationRefs\"] });\n });\nexport type AssuranceProgramObligationEntry = z.infer<typeof AssuranceProgramObligationEntrySchema>;\n\n/**\n * Complete application obligation inventory. It is not the governed-document release register.\n *\n * It carried a digest until the Phase-A demolition (`.claude/rules/one-source-of-truth.md` Rule 0) and the JSDoc went on calling it \"content-addressed\" afterwards. The\n * strict shape below is the whole truth: a ref, a version and the entries. Completeness is proven by `obligationCoverageDecisions` and the uniqueness refinement, not\n * by a hash. A test still named `registerWithoutDigest` is a leftover from when the field existed.\n */\nexport const AssuranceProgramObligationRegisterSchema = z\n .strictObject({\n schemaVersion: z.literal(1),\n registerRef: AssuranceNamespacedRefSchema,\n registerVersion: z.number().int().positive(),\n entries: z.array(AssuranceProgramObligationEntrySchema).min(1),\n })\n .superRefine((register, context) =>\n addUniqueSortedIssue(\n register.entries.map((entry) => `${entry.obligationRef}@${entry.obligationVersion}`),\n context,\n [\"entries\"],\n \"obligation identities\",\n ),\n );\nexport type AssuranceProgramObligationRegister = z.infer<typeof AssuranceProgramObligationRegisterSchema>;\n\nconst versionedObligationKey = (identity: { obligationRef: string; obligationVersion: number }): string =>\n `${identity.obligationRef}@${identity.obligationVersion}`;\nconst versionedApplicabilityDecisionKey = (identity: { decisionRef: string; decisionVersion: number }): string =>\n `${identity.decisionRef}@${identity.decisionVersion}`;\nconst versionedCoverageDecisionKey = (identity: { coverageDecisionRef: string; coverageDecisionVersion: number }): string =>\n `${identity.coverageDecisionRef}@${identity.coverageDecisionVersion}`;\nconst versionedSharedResponsibilityRuleKey = (identity: { sharedResponsibilityRuleRef: string; sharedResponsibilityRuleVersion: number }): string =>\n `${identity.sharedResponsibilityRuleRef}@${identity.sharedResponsibilityRuleVersion}`;\n\n/** A non-secret selected option. Values are references to accepted profiles/options rather than arbitrary credential-bearing blobs. */\nexport const AssuranceProgramSelectedOptionSchema = z.strictObject({\n parameterRef: AssuranceNamespacedRefSchema,\n selectedOptionRef: AssuranceNamespacedRefSchema,\n});\n\nexport const AssuranceProgramCapabilitySelectionSchema = z\n .strictObject({\n capabilityKind: z.enum(AssuranceProgramCapabilityKind),\n capabilityRef: AssuranceNamespacedRefSchema,\n capabilityVersion: z.number().int().positive(),\n profileRef: AssuranceNamespacedRefSchema.optional(),\n selectedOptions: z.array(AssuranceProgramSelectedOptionSchema),\n })\n .superRefine((selection, context) => {\n addUniqueSortedIssue(\n selection.selectedOptions.map((option) => option.parameterRef),\n context,\n [\"selectedOptions\"],\n \"selected option parameter refs\",\n );\n });\n\nexport const AssuranceProgramImplementationDecisionSchema = z\n .strictObject({\n decisionRef: AssuranceNamespacedRefSchema,\n decisionVersion: z.number().int().positive(),\n objective: AssuranceObjectiveIdentitySchema,\n scopeSelectorRefs: z.array(AssuranceNamespacedRefSchema).min(1),\n resolution: z.enum(AssuranceProgramCapabilityResolution),\n capabilitySelections: z.array(AssuranceProgramCapabilitySelectionSchema),\n selectionAuthorityRef: AssuranceNamespacedRefSchema,\n knownLimitations: z.array(z.string().trim().min(1)),\n gapDisposition: z.enum(AssuranceGapDisposition),\n gapRefs: z.array(AssuranceProgramFindingIdentitySchema),\n })\n .superRefine((decision, context) => {\n addUniqueSortedIssue(decision.scopeSelectorRefs, context, [\"scopeSelectorRefs\"], \"scopeSelectorRefs\");\n addUniqueSortedIssue(\n decision.capabilitySelections.map((selection) => selection.capabilityRef),\n context,\n [\"capabilitySelections\"],\n \"capability selection refs\",\n );\n addUniqueSortedIssue(decision.knownLimitations, context, [\"knownLimitations\"], \"knownLimitations\");\n addUniqueSortedIssue(\n decision.gapRefs.map((identity) => `${identity.findingRef}@${identity.findingVersion}`),\n context,\n [\"gapRefs\"],\n \"gapRefs\",\n );\n if (\n (decision.resolution === AssuranceProgramCapabilityResolution.IMPLEMENTABLE || decision.resolution === AssuranceProgramCapabilityResolution.PARTIAL) &&\n decision.capabilitySelections.length === 0\n )\n context.addIssue({\n code: \"custom\",\n message: \"IMPLEMENTABLE and PARTIAL resolutions require at least one selected capability\",\n path: [\"capabilitySelections\"],\n });\n if (decision.resolution === AssuranceProgramCapabilityResolution.UNSUPPORTED && decision.capabilitySelections.length > 0)\n context.addIssue({ code: \"custom\", message: \"UNSUPPORTED resolution cannot select an implementation capability\", path: [\"capabilitySelections\"] });\n if (\n decision.resolution === AssuranceProgramCapabilityResolution.HUMAN_OR_EXTERNAL &&\n !decision.capabilitySelections.some((selection) => selection.capabilityKind === AssuranceProgramCapabilityKind.HUMAN_OR_EXTERNAL)\n )\n context.addIssue({\n code: \"custom\",\n message: \"HUMAN_OR_EXTERNAL resolution requires a human/external capability selection\",\n path: [\"capabilitySelections\"],\n });\n if (decision.gapDisposition === AssuranceGapDisposition.RESOLVED && decision.gapRefs.length > 0)\n context.addIssue({ code: \"custom\", message: \"RESOLVED disposition cannot retain open gap refs\", path: [\"gapRefs\"] });\n const openGapDisposition =\n decision.gapDisposition === AssuranceGapDisposition.OPEN ||\n decision.gapDisposition === AssuranceGapDisposition.RISK_ACCEPTED ||\n decision.gapDisposition === AssuranceGapDisposition.REMEDIATION_PLANNED;\n if (openGapDisposition && decision.gapRefs.length === 0)\n context.addIssue({ code: \"custom\", message: \"an open gap disposition requires explicit gap refs\", path: [\"gapRefs\"] });\n if (\n (decision.gapDisposition === AssuranceGapDisposition.NOT_EVALUATED || decision.gapDisposition === AssuranceGapDisposition.NOT_APPLICABLE) &&\n decision.gapRefs.length > 0\n )\n context.addIssue({ code: \"custom\", message: \"NOT_EVALUATED and NOT_APPLICABLE dispositions cannot cite gap records\", path: [\"gapRefs\"] });\n if (decision.gapDisposition === AssuranceGapDisposition.NOT_APPLICABLE)\n context.addIssue({\n code: \"custom\",\n message: \"implementation decisions cannot use NOT_APPLICABLE; applicability is decided separately per source and scope\",\n path: [\"gapDisposition\"],\n });\n if (\n (decision.resolution === AssuranceProgramCapabilityResolution.PARTIAL || decision.resolution === AssuranceProgramCapabilityResolution.UNSUPPORTED) &&\n decision.knownLimitations.length === 0\n )\n context.addIssue({ code: \"custom\", message: \"PARTIAL and UNSUPPORTED resolutions require known limitations\", path: [\"knownLimitations\"] });\n if (\n (decision.resolution === AssuranceProgramCapabilityResolution.PARTIAL || decision.resolution === AssuranceProgramCapabilityResolution.UNSUPPORTED) &&\n !openGapDisposition\n )\n context.addIssue({ code: \"custom\", message: \"PARTIAL and UNSUPPORTED resolutions require an open gap disposition\", path: [\"gapDisposition\"] });\n });\nexport type AssuranceProgramImplementationDecision = z.infer<typeof AssuranceProgramImplementationDecisionSchema>;\n\n/** Role policy, not a live assignment. Each responsibility remains semantically distinct. */\nexport const AssuranceProgramResponsibilityAssignmentSchema = z\n .strictObject({\n assignmentRef: AssuranceNamespacedRefSchema,\n scopeSelectorRef: AssuranceNamespacedRefSchema,\n responsibleRoleRefs: z.array(AssuranceNamespacedRefSchema).min(1),\n operatingRoleRefs: z.array(AssuranceNamespacedRefSchema).min(1),\n evidenceProviderRoleRefs: z.array(AssuranceNamespacedRefSchema).min(1),\n approvingRoleRefs: z.array(AssuranceNamespacedRefSchema).min(1),\n escalationRoleRefs: z.array(AssuranceNamespacedRefSchema),\n })\n .superRefine((assignment, context) => {\n for (const key of [\"responsibleRoleRefs\", \"operatingRoleRefs\", \"evidenceProviderRoleRefs\", \"approvingRoleRefs\", \"escalationRoleRefs\"] as const) {\n addUniqueSortedIssue(assignment[key], context, [key], key);\n }\n });\nexport type AssuranceProgramResponsibilityAssignment = z.infer<typeof AssuranceProgramResponsibilityAssignmentSchema>;\n\nexport const AssuranceProgramGapOrExceptionSchema = z\n .strictObject({\n findingRef: AssuranceNamespacedRefSchema,\n findingVersion: z.number().int().positive(),\n kind: z.enum(AssuranceProgramFindingKind),\n objective: AssuranceObjectiveIdentitySchema.optional(),\n source: AssuranceSourceIdentitySchema.optional(),\n scopeSelectorRef: AssuranceNamespacedRefSchema,\n scopeSelectorVersion: z.number().int().positive(),\n reason: z.string().trim().min(1),\n ownerRoleRef: AssuranceNamespacedRefSchema,\n compensatingControlRefs: z.array(AssuranceNamespacedRefSchema),\n disposition: z.enum(AssuranceGapDisposition),\n authorityDecisionRef: AssuranceNamespacedRefSchema.optional(),\n reviewOn: AssuranceIsoDateSchema,\n expiresOn: AssuranceIsoDateSchema.optional(),\n reopenOnSourceChange: z.literal(true),\n reopenOnScopeChange: z.literal(true),\n })\n .superRefine((finding, context) => {\n addUniqueSortedIssue(finding.compensatingControlRefs, context, [\"compensatingControlRefs\"], \"compensatingControlRefs\");\n if (finding.kind === AssuranceProgramFindingKind.EXCEPTION && (!finding.authorityDecisionRef || !finding.expiresOn)) {\n context.addIssue({ code: \"custom\", message: \"an exception requires explicit authority and expiry\", path: [\"authorityDecisionRef\"] });\n }\n if (finding.disposition === AssuranceGapDisposition.RISK_ACCEPTED && !finding.authorityDecisionRef) {\n context.addIssue({ code: \"custom\", message: \"risk acceptance requires an authority decision\", path: [\"authorityDecisionRef\"] });\n }\n if (finding.expiresOn && finding.reviewOn > finding.expiresOn) {\n context.addIssue({ code: \"custom\", message: \"reviewOn cannot follow expiresOn\", path: [\"reviewOn\"] });\n }\n });\nexport type AssuranceProgramGapOrException = z.infer<typeof AssuranceProgramGapOrExceptionSchema>;\n\nconst AssuranceProgramDocumentationRequirementCommonSchema = z.strictObject({\n requirementRef: AssuranceNamespacedRefSchema,\n requirementVersion: z.number().int().positive(),\n documentKindRef: AssuranceNamespacedRefSchema,\n documentRef: AssuranceNamespacedRefSchema,\n documentVersion: z.number().int().positive(),\n requiredAcceptedFactRefs: z.array(AssuranceNamespacedRefSchema).min(1),\n requiredVariableRefs: z.array(AssuranceNamespacedRefSchema),\n classificationPolicyRef: AssuranceNamespacedRefSchema,\n storagePolicyRef: AssuranceNamespacedRefSchema,\n approvingRoleRefs: z.array(AssuranceNamespacedRefSchema),\n sourceRefs: z.array(AssuranceSourceIdentitySchema),\n contentIdentityRefs: z.array(AssuranceNamespacedRefSchema).min(1),\n});\n\n/** Retained pre-document-authority shape. Parse/replay only; current application authoring uses v2. */\nexport const AssuranceProgramDocumentationRequirementV1Schema = AssuranceProgramDocumentationRequirementCommonSchema.extend({\n approvalRequirement: z.enum(AssuranceProgramDocumentApprovalRequirement),\n}).superRefine((requirement, context) => {\n addUniqueSortedIssue(requirement.requiredAcceptedFactRefs, context, [\"requiredAcceptedFactRefs\"], \"requiredAcceptedFactRefs\");\n addUniqueSortedIssue(requirement.requiredVariableRefs, context, [\"requiredVariableRefs\"], \"requiredVariableRefs\");\n addUniqueSortedIssue(requirement.approvingRoleRefs, context, [\"approvingRoleRefs\"], \"approvingRoleRefs\");\n addUniqueSortedIssue(\n requirement.sourceRefs.map((source) => `${source.sourceRef}@${source.sourceVersion}`),\n context,\n [\"sourceRefs\"],\n \"sourceRefs\",\n );\n addUniqueSortedIssue(requirement.contentIdentityRefs, context, [\"contentIdentityRefs\"], \"contentIdentityRefs\");\n if (requirement.approvalRequirement === AssuranceProgramDocumentApprovalRequirement.APPROVAL_REQUIRED && requirement.approvingRoleRefs.length === 0) {\n context.addIssue({ code: \"custom\", message: \"approval-required documentation needs at least one approving role\", path: [\"approvingRoleRefs\"] });\n }\n if (requirement.approvalRequirement === AssuranceProgramDocumentApprovalRequirement.NO_APPROVAL_REQUIRED && requirement.approvingRoleRefs.length > 0) {\n context.addIssue({ code: \"custom\", message: \"documentation without approval cannot declare approving roles\", path: [\"approvingRoleRefs\"] });\n }\n});\n\n/** Current document requirement bound to an engine-owned definition and an explicit application applicability decision. */\nexport const AssuranceProgramDocumentationRequirementV2Schema = AssuranceProgramDocumentationRequirementCommonSchema.extend({\n schemaVersion: z.literal(2),\n definition: GovernedDocumentDefinitionIdentitySchema,\n governanceScope: GovernedDocumentGovernanceScopeSchema,\n applicabilityStatus: z.enum(GovernedDocumentApplicabilityStatus),\n applicabilityRationale: z.string().trim().min(1),\n applicabilityDecidedByRef: AssuranceNamespacedRefSchema,\n applicabilityDecidedAt: AssuranceIsoDateTimeSchema,\n applicabilityDependencyRefs: z.array(AssuranceNamespacedRefSchema).min(1),\n audienceKinds: z.array(z.enum(GovernedDocumentAudienceKind)).min(1),\n requiredReviewKinds: z.array(z.enum(GovernedDocumentReviewKind)).min(1),\n allowedInteractionKinds: z.array(z.enum(GovernedDocumentInteractionKind)),\n publicationChannelKinds: z.array(z.enum(GovernedDocumentPublicationChannelKind)).min(1),\n}).superRefine((requirement, context) => {\n for (const [key, values] of [\n [\"requiredAcceptedFactRefs\", requirement.requiredAcceptedFactRefs],\n [\"requiredVariableRefs\", requirement.requiredVariableRefs],\n [\"approvingRoleRefs\", requirement.approvingRoleRefs],\n [\"contentIdentityRefs\", requirement.contentIdentityRefs],\n [\"applicabilityDependencyRefs\", requirement.applicabilityDependencyRefs],\n [\"audienceKinds\", requirement.audienceKinds],\n [\"requiredReviewKinds\", requirement.requiredReviewKinds],\n [\"allowedInteractionKinds\", requirement.allowedInteractionKinds],\n [\"publicationChannelKinds\", requirement.publicationChannelKinds],\n ] as const)\n addUniqueSortedIssue(values, context, [key], key);\n addUniqueSortedIssue(\n requirement.sourceRefs.map((source) => `${source.sourceRef}@${source.sourceVersion}`),\n context,\n [\"sourceRefs\"],\n \"sourceRefs\",\n );\n if (requirement.applicabilityStatus === GovernedDocumentApplicabilityStatus.APPLICABLE && requirement.approvingRoleRefs.length === 0) {\n context.addIssue({ code: \"custom\", message: \"an applicable governed document requires at least one approving role\", path: [\"approvingRoleRefs\"] });\n }\n});\nexport type AssuranceProgramDocumentationRequirementV2 = z.infer<typeof AssuranceProgramDocumentationRequirementV2Schema>;\n\nexport const AssuranceProgramDocumentationRequirementSchema = z.union([\n AssuranceProgramDocumentationRequirementV1Schema,\n AssuranceProgramDocumentationRequirementV2Schema,\n]);\nexport type AssuranceProgramDocumentationRequirement = z.infer<typeof AssuranceProgramDocumentationRequirementSchema>;\n\n/**\n * Whether an issue is a statement about the authored specification or about the host it was accepted against.\n *\n * An accepted assurance program is a point-in-time governance decision over exact implementation bytes. The host\n * that resolves those bytes keeps moving underneath it. Collapsing both situations into one \"invalid\" verdict is\n * what forces an operator to choose between a dead runtime and deleting the acceptance record — so the two are\n * separated here, in the contract, rather than guessed at by each consumer.\n *\n * - `SPECIFICATION_DEFECT` — the authored bytes are wrong: an unknown objective, a self-inconsistent digest, an\n * expired exception, a capability the host does not offer at all. Nothing the host can do makes these correct.\n * Consumers must fail closed.\n * - `HOST_ATTESTATION_INVALID` — the authored bytes are not implicated; the host's own authority snapshot fails\n * its integrity checks. A corrupt attestation cannot authorize anything, so consumers must also fail closed —\n * but the fault, and therefore the remediation, is the host's compiled basis, not the specification. This class\n * exists so an operator is not sent to debug a specification that is fine.\n * - `HOST_DIVERGENCE` — the authored bytes are well-formed and internally consistent, the host attestation is\n * sound, and the host's view of the implementation has simply moved since acceptance. This is an assurance\n * *finding* — the program needs re-accepting against the new implementation — and consumers that record it\n * durably may continue operating.\n *\n * Two of the three classes fail closed. The classes are not a severity scale: they name *which artifact is at\n * fault*, and only `HOST_DIVERGENCE` is re-acceptable. Do not collapse the two fail-closed classes back together\n * on the grounds that they behave alike — the behaviour is shared, the diagnosis is not.\n *\n * Tolerating `HOST_DIVERGENCE` is only meaningful where a host authority exists to diverge from. A consumer\n * validating a specification with no external authority never observes it.\n */\nexport enum AssuranceProgramSpecificationIssueClass {\n SPECIFICATION_DEFECT = \"SPECIFICATION_DEFECT\",\n HOST_ATTESTATION_INVALID = \"HOST_ATTESTATION_INVALID\",\n HOST_DIVERGENCE = \"HOST_DIVERGENCE\",\n}\n\nexport enum AssuranceProgramSpecificationIssueKind {\n AUTHORITY_SNAPSHOT_DIGEST_MISMATCH = \"AUTHORITY_SNAPSHOT_DIGEST_MISMATCH\",\n AUTHORITY_SNAPSHOT_INVALID = \"AUTHORITY_SNAPSHOT_INVALID\",\n AMBIGUOUS_APPLICABILITY = \"AMBIGUOUS_APPLICABILITY\",\n /**\n * The host offers this exact capability with the same kind and implementation refs, but its implementation\n * revision has moved since the program was accepted. The control is still present and still the same control —\n * only the bytes implementing it changed. Distinct from `UNKNOWN_CAPABILITY`, which means the host does not\n * offer the claimed capability at all.\n */\n HOST_CAPABILITY_IMPLEMENTATION_DRIFT = \"HOST_CAPABILITY_IMPLEMENTATION_DRIFT\",\n /** The host supplies a valid authority basis, but it is not the exact basis identity accepted by the v2/v3 program. */\n HOST_AUTHORITY_BASIS_DRIFT = \"HOST_AUTHORITY_BASIS_DRIFT\",\n /**\n * An artifact pinned by an accepted source revision no longer matches the host-resolved implementation bytes.\n * Distinct from `UNKNOWN_SOURCE_REVISION`, which means the specification references a revision it never declared\n * — an internal inconsistency in the authored bytes rather than a statement about the host.\n */\n HOST_IMPLEMENTATION_ARTIFACT_DRIFT = \"HOST_IMPLEMENTATION_ARTIFACT_DRIFT\",\n AMBIGUOUS_CONTROL_BINDING = \"AMBIGUOUS_CONTROL_BINDING\",\n AMBIGUOUS_OBLIGATION_BINDING = \"AMBIGUOUS_OBLIGATION_BINDING\",\n AMBIGUOUS_SHARED_RESPONSIBILITY_RULE = \"AMBIGUOUS_SHARED_RESPONSIBILITY_RULE\",\n AMBIGUOUS_IMPLEMENTATION_DECISION = \"AMBIGUOUS_IMPLEMENTATION_DECISION\",\n INCOMPLETE_APPLICABILITY = \"INCOMPLETE_APPLICABILITY\",\n INCOMPLETE_IMPLEMENTATION_DECISION = \"INCOMPLETE_IMPLEMENTATION_DECISION\",\n INCOMPLETE_RESPONSIBILITY_ASSIGNMENT = \"INCOMPLETE_RESPONSIBILITY_ASSIGNMENT\",\n DOCUMENT_AUTHORITY_CATALOG_DIGEST_MISMATCH = \"DOCUMENT_AUTHORITY_CATALOG_DIGEST_MISMATCH\",\n DOCUMENT_AUTHORITY_CATALOG_INVALID = \"DOCUMENT_AUTHORITY_CATALOG_INVALID\",\n OBJECTIVE_CATALOG_DIGEST_MISMATCH = \"OBJECTIVE_CATALOG_DIGEST_MISMATCH\",\n OBLIGATION_DEPENDENCY_CYCLE = \"OBLIGATION_DEPENDENCY_CYCLE\",\n OBLIGATION_GOVERNANCE_DIGEST_MISMATCH = \"OBLIGATION_GOVERNANCE_DIGEST_MISMATCH\",\n OBLIGATION_REGISTER_DIGEST_MISMATCH = \"OBLIGATION_REGISTER_DIGEST_MISMATCH\",\n RELATIONSHIP_MISMATCH = \"RELATIONSHIP_MISMATCH\",\n SOURCE_AUTHORITY_MISMATCH = \"SOURCE_AUTHORITY_MISMATCH\",\n SOURCE_IDENTITY_DIGEST_MISMATCH = \"SOURCE_IDENTITY_DIGEST_MISMATCH\",\n SOURCE_LIFECYCLE_CONFLICT = \"SOURCE_LIFECYCLE_CONFLICT\",\n SOURCE_REGISTRY_DIGEST_MISMATCH = \"SOURCE_REGISTRY_DIGEST_MISMATCH\",\n SOURCE_RIGHTS_UNAUTHORIZED = \"SOURCE_RIGHTS_UNAUTHORIZED\",\n SOURCE_REVISION_DIGEST_MISMATCH = \"SOURCE_REVISION_DIGEST_MISMATCH\",\n TEMPORAL_POLICY_CONFLICT = \"TEMPORAL_POLICY_CONFLICT\",\n UNKNOWN_APPLICABILITY_SOURCE = \"UNKNOWN_APPLICABILITY_SOURCE\",\n UNKNOWN_BINDING_SOURCE = \"UNKNOWN_BINDING_SOURCE\",\n /**\n * The host does not offer the claimed capability at all, offers it under a different capability kind, or resolves\n * it to different implementation refs. No host state makes the authored claim true. For a capability that is\n * present and unchanged except for its implementation revision, see `HOST_CAPABILITY_IMPLEMENTATION_DRIFT`.\n */\n UNKNOWN_CAPABILITY = \"UNKNOWN_CAPABILITY\",\n UNKNOWN_DOCUMENT = \"UNKNOWN_DOCUMENT\",\n UNKNOWN_DOCUMENT_SOURCE = \"UNKNOWN_DOCUMENT_SOURCE\",\n UNKNOWN_FINDING = \"UNKNOWN_FINDING\",\n /** An authored v1 inventory or v2/v3 attested-ref set names an artifact which the host authority does not inventory. */\n UNKNOWN_IMPLEMENTATION_ARTIFACT = \"UNKNOWN_IMPLEMENTATION_ARTIFACT\",\n UNKNOWN_OBJECTIVE = \"UNKNOWN_OBJECTIVE\",\n UNKNOWN_OBLIGATION_GOVERNANCE_RECORD = \"UNKNOWN_OBLIGATION_GOVERNANCE_RECORD\",\n UNKNOWN_ROLE = \"UNKNOWN_ROLE\",\n UNKNOWN_SCOPE_SELECTOR = \"UNKNOWN_SCOPE_SELECTOR\",\n UNKNOWN_SOURCE_AUTHORITY = \"UNKNOWN_SOURCE_AUTHORITY\",\n UNKNOWN_SOURCE_REQUIREMENT = \"UNKNOWN_SOURCE_REQUIREMENT\",\n /**\n * The specification references a source revision it never declared — an internal inconsistency in the authored\n * bytes. For a declared revision whose artifact bytes no longer match the host, see\n * `HOST_IMPLEMENTATION_ARTIFACT_DRIFT`.\n */\n UNKNOWN_SOURCE_REVISION = \"UNKNOWN_SOURCE_REVISION\",\n UNKNOWN_VALIDATION_AUTHORITY = \"UNKNOWN_VALIDATION_AUTHORITY\",\n}\n\nexport interface AssuranceProgramSpecificationIssue {\n readonly kind: AssuranceProgramSpecificationIssueKind;\n readonly path: string;\n readonly message: string;\n /**\n * Stable semantic subject of a recordable host-divergence issue.\n *\n * Required on every `HOST_DIVERGENCE` producer and deliberately independent of diagnostic prose and array-path\n * rendering. Durable replay compares `(kind, subjectRef)`; `message` remains operator-facing explanation only.\n * Non-recordable issues may omit it because they are always refused rather than persisted as accepted tolerance.\n */\n readonly subjectRef?: string;\n}\n\n/**\n * The one runtime source classifying every issue kind.\n *\n * Exhaustive by construction: the `Record` key type is the enum itself, so adding a kind without deciding whether\n * it describes the specification or the host is a compile error rather than a silent default. Do not replace this\n * with a predicate over name prefixes — the classification is a semantic decision per kind, not a naming pattern.\n *\n * Every kind maps to exactly one class. That is only well-defined because kinds that previously carried both\n * meanings were split: `UNKNOWN_CAPABILITY` / `HOST_CAPABILITY_IMPLEMENTATION_DRIFT` and\n * `UNKNOWN_SOURCE_REVISION` / `HOST_IMPLEMENTATION_ARTIFACT_DRIFT`. Merging either pair back would make this\n * mapping lossy and silently re-enable tolerance of genuine specification defects.\n */\nexport const ASSURANCE_PROGRAM_SPECIFICATION_ISSUE_CLASS_BY_KIND: Readonly<\n Record<AssuranceProgramSpecificationIssueKind, AssuranceProgramSpecificationIssueClass>\n> = {\n [AssuranceProgramSpecificationIssueKind.HOST_CAPABILITY_IMPLEMENTATION_DRIFT]: AssuranceProgramSpecificationIssueClass.HOST_DIVERGENCE,\n [AssuranceProgramSpecificationIssueKind.HOST_AUTHORITY_BASIS_DRIFT]: AssuranceProgramSpecificationIssueClass.HOST_DIVERGENCE,\n [AssuranceProgramSpecificationIssueKind.HOST_IMPLEMENTATION_ARTIFACT_DRIFT]: AssuranceProgramSpecificationIssueClass.HOST_DIVERGENCE,\n [AssuranceProgramSpecificationIssueKind.AUTHORITY_SNAPSHOT_DIGEST_MISMATCH]: AssuranceProgramSpecificationIssueClass.HOST_ATTESTATION_INVALID,\n [AssuranceProgramSpecificationIssueKind.AUTHORITY_SNAPSHOT_INVALID]: AssuranceProgramSpecificationIssueClass.HOST_ATTESTATION_INVALID,\n [AssuranceProgramSpecificationIssueKind.AMBIGUOUS_APPLICABILITY]: AssuranceProgramSpecificationIssueClass.SPECIFICATION_DEFECT,\n [AssuranceProgramSpecificationIssueKind.AMBIGUOUS_CONTROL_BINDING]: AssuranceProgramSpecificationIssueClass.SPECIFICATION_DEFECT,\n [AssuranceProgramSpecificationIssueKind.AMBIGUOUS_OBLIGATION_BINDING]: AssuranceProgramSpecificationIssueClass.SPECIFICATION_DEFECT,\n [AssuranceProgramSpecificationIssueKind.AMBIGUOUS_SHARED_RESPONSIBILITY_RULE]: AssuranceProgramSpecificationIssueClass.SPECIFICATION_DEFECT,\n [AssuranceProgramSpecificationIssueKind.AMBIGUOUS_IMPLEMENTATION_DECISION]: AssuranceProgramSpecificationIssueClass.SPECIFICATION_DEFECT,\n [AssuranceProgramSpecificationIssueKind.INCOMPLETE_APPLICABILITY]: AssuranceProgramSpecificationIssueClass.SPECIFICATION_DEFECT,\n [AssuranceProgramSpecificationIssueKind.INCOMPLETE_IMPLEMENTATION_DECISION]: AssuranceProgramSpecificationIssueClass.SPECIFICATION_DEFECT,\n [AssuranceProgramSpecificationIssueKind.INCOMPLETE_RESPONSIBILITY_ASSIGNMENT]: AssuranceProgramSpecificationIssueClass.SPECIFICATION_DEFECT,\n [AssuranceProgramSpecificationIssueKind.DOCUMENT_AUTHORITY_CATALOG_DIGEST_MISMATCH]: AssuranceProgramSpecificationIssueClass.HOST_ATTESTATION_INVALID,\n [AssuranceProgramSpecificationIssueKind.DOCUMENT_AUTHORITY_CATALOG_INVALID]: AssuranceProgramSpecificationIssueClass.HOST_ATTESTATION_INVALID,\n [AssuranceProgramSpecificationIssueKind.OBJECTIVE_CATALOG_DIGEST_MISMATCH]: AssuranceProgramSpecificationIssueClass.HOST_ATTESTATION_INVALID,\n [AssuranceProgramSpecificationIssueKind.OBLIGATION_DEPENDENCY_CYCLE]: AssuranceProgramSpecificationIssueClass.SPECIFICATION_DEFECT,\n [AssuranceProgramSpecificationIssueKind.OBLIGATION_GOVERNANCE_DIGEST_MISMATCH]: AssuranceProgramSpecificationIssueClass.SPECIFICATION_DEFECT,\n [AssuranceProgramSpecificationIssueKind.OBLIGATION_REGISTER_DIGEST_MISMATCH]: AssuranceProgramSpecificationIssueClass.SPECIFICATION_DEFECT,\n [AssuranceProgramSpecificationIssueKind.RELATIONSHIP_MISMATCH]: AssuranceProgramSpecificationIssueClass.SPECIFICATION_DEFECT,\n /*\n * Deliberately a specification defect, not host attestation: the host record is internally sound and the program\n * simply disagrees with it. That is equally consistent with a mis-transcribed reference and with host metadata\n * moving on, and tolerance is the dangerous direction — so this stays fail-closed and spec-pointing until a\n * concrete case proves it is drift.\n */\n [AssuranceProgramSpecificationIssueKind.SOURCE_AUTHORITY_MISMATCH]: AssuranceProgramSpecificationIssueClass.SPECIFICATION_DEFECT,\n /* The host registry record's own identity digest does not match its own canonical bytes — nothing to do with the program. */\n [AssuranceProgramSpecificationIssueKind.SOURCE_IDENTITY_DIGEST_MISMATCH]: AssuranceProgramSpecificationIssueClass.HOST_ATTESTATION_INVALID,\n [AssuranceProgramSpecificationIssueKind.SOURCE_LIFECYCLE_CONFLICT]: AssuranceProgramSpecificationIssueClass.SPECIFICATION_DEFECT,\n [AssuranceProgramSpecificationIssueKind.SOURCE_REGISTRY_DIGEST_MISMATCH]: AssuranceProgramSpecificationIssueClass.HOST_ATTESTATION_INVALID,\n [AssuranceProgramSpecificationIssueKind.SOURCE_RIGHTS_UNAUTHORIZED]: AssuranceProgramSpecificationIssueClass.SPECIFICATION_DEFECT,\n [AssuranceProgramSpecificationIssueKind.SOURCE_REVISION_DIGEST_MISMATCH]: AssuranceProgramSpecificationIssueClass.SPECIFICATION_DEFECT,\n [AssuranceProgramSpecificationIssueKind.TEMPORAL_POLICY_CONFLICT]: AssuranceProgramSpecificationIssueClass.SPECIFICATION_DEFECT,\n [AssuranceProgramSpecificationIssueKind.UNKNOWN_APPLICABILITY_SOURCE]: AssuranceProgramSpecificationIssueClass.SPECIFICATION_DEFECT,\n [AssuranceProgramSpecificationIssueKind.UNKNOWN_BINDING_SOURCE]: AssuranceProgramSpecificationIssueClass.SPECIFICATION_DEFECT,\n [AssuranceProgramSpecificationIssueKind.UNKNOWN_CAPABILITY]: AssuranceProgramSpecificationIssueClass.SPECIFICATION_DEFECT,\n [AssuranceProgramSpecificationIssueKind.UNKNOWN_DOCUMENT]: AssuranceProgramSpecificationIssueClass.SPECIFICATION_DEFECT,\n [AssuranceProgramSpecificationIssueKind.UNKNOWN_DOCUMENT_SOURCE]: AssuranceProgramSpecificationIssueClass.SPECIFICATION_DEFECT,\n [AssuranceProgramSpecificationIssueKind.UNKNOWN_FINDING]: AssuranceProgramSpecificationIssueClass.SPECIFICATION_DEFECT,\n [AssuranceProgramSpecificationIssueKind.UNKNOWN_IMPLEMENTATION_ARTIFACT]: AssuranceProgramSpecificationIssueClass.SPECIFICATION_DEFECT,\n [AssuranceProgramSpecificationIssueKind.UNKNOWN_OBJECTIVE]: AssuranceProgramSpecificationIssueClass.SPECIFICATION_DEFECT,\n [AssuranceProgramSpecificationIssueKind.UNKNOWN_OBLIGATION_GOVERNANCE_RECORD]: AssuranceProgramSpecificationIssueClass.SPECIFICATION_DEFECT,\n [AssuranceProgramSpecificationIssueKind.UNKNOWN_ROLE]: AssuranceProgramSpecificationIssueClass.SPECIFICATION_DEFECT,\n [AssuranceProgramSpecificationIssueKind.UNKNOWN_SCOPE_SELECTOR]: AssuranceProgramSpecificationIssueClass.SPECIFICATION_DEFECT,\n [AssuranceProgramSpecificationIssueKind.UNKNOWN_SOURCE_AUTHORITY]: AssuranceProgramSpecificationIssueClass.SPECIFICATION_DEFECT,\n [AssuranceProgramSpecificationIssueKind.UNKNOWN_SOURCE_REQUIREMENT]: AssuranceProgramSpecificationIssueClass.SPECIFICATION_DEFECT,\n [AssuranceProgramSpecificationIssueKind.UNKNOWN_SOURCE_REVISION]: AssuranceProgramSpecificationIssueClass.SPECIFICATION_DEFECT,\n [AssuranceProgramSpecificationIssueKind.UNKNOWN_VALIDATION_AUTHORITY]: AssuranceProgramSpecificationIssueClass.SPECIFICATION_DEFECT,\n};\n\n/** Classifies one issue as a statement about the specification or about the host. */\nexport function classifyAssuranceProgramSpecificationIssue(issue: Pick<AssuranceProgramSpecificationIssue, \"kind\">): AssuranceProgramSpecificationIssueClass {\n return ASSURANCE_PROGRAM_SPECIFICATION_ISSUE_CLASS_BY_KIND[issue.kind];\n}\n\n/**\n * True when every supplied issue is host divergence — the caller may record a finding and continue.\n *\n * Fails closed on an empty set: \"no issues\" is not host divergence, and a caller that reaches this helper with\n * nothing to classify has already lost the distinction it needs. Callers must gate on validity first.\n */\nexport function assuranceProgramIssuesAreOnlyHostDivergence(issues: readonly Pick<AssuranceProgramSpecificationIssue, \"kind\" | \"subjectRef\">[]): boolean {\n return (\n issues.length > 0 &&\n issues.every(\n (issue) =>\n classifyAssuranceProgramSpecificationIssue(issue) === AssuranceProgramSpecificationIssueClass.HOST_DIVERGENCE &&\n typeof issue.subjectRef === \"string\" &&\n issue.subjectRef.length > 0,\n )\n );\n}\n\n/**\n * External authorities required to validate claims that cannot be proven from application-authored bytes alone.\n * A host may supply a larger registry without changing the core model; source names never become branches.\n */\nexport interface AssuranceProgramValidationAuthorities {\n readonly snapshot: AssuranceProgramValidationAuthoritySnapshot;\n}\n\n/** Basis-pinned implementation statement used by current assurance-program versions. */\nexport const AssuranceProgramImplementationStatementV2Schema = z\n .strictObject({\n schemaVersion: z.literal(2),\n ...AssuranceImplementationStatementCommonFieldsSchema.shape,\n basisRef: AssuranceNamespacedRefSchema,\n basisVersion: z.number().int().positive(),\n })\n .superRefine(addAssuranceImplementationStatementCommonIssues);\nexport type AssuranceProgramImplementationStatementV2 = z.infer<typeof AssuranceProgramImplementationStatementV2Schema>;\n\nconst AssuranceProgramCommonFieldsBeforeObjectiveBindingsSchema = z.strictObject({\n programRef: AssuranceNamespacedRefSchema,\n programVersion: z.number().int().positive(),\n sourceReferences: z.array(AssuranceProgramSourceReferenceSchema).min(1),\n scopeSelectors: z.array(AssuranceProgramScopeSelectorSchema).min(1),\n applicabilityDecisions: z.array(AssuranceProgramApplicabilityDecisionSchema).min(1),\n});\n\nconst AssuranceProgramCommonFieldsAfterObjectiveBindingsSchema = z.strictObject({\n implementationDecisions: z.array(AssuranceProgramImplementationDecisionSchema),\n responsibilityAssignments: z.array(AssuranceProgramResponsibilityAssignmentSchema).min(1),\n gapsAndExceptions: z.array(AssuranceProgramGapOrExceptionSchema),\n documentationRequirements: z.array(AssuranceProgramDocumentationRequirementSchema),\n knownProgramLimitations: z.array(z.string().trim().min(1)),\n});\n\n/** Byte-identical common shape retained by v1/v2 programs. */\nconst AssuranceProgramHistoricalCommonFieldsSchema = z.strictObject({\n ...AssuranceProgramCommonFieldsBeforeObjectiveBindingsSchema.shape,\n controlObjectiveBindings: z.array(AssuranceProgramControlObjectiveBindingSchema).min(1),\n ...AssuranceProgramCommonFieldsAfterObjectiveBindingsSchema.shape,\n});\n\n/** Current program shape: obligation entries replace, rather than duplicate, historical control-objective bindings. */\nconst AssuranceProgramV3CommonFieldsSchema = z.strictObject({\n ...AssuranceProgramCommonFieldsBeforeObjectiveBindingsSchema.shape,\n obligationRegister: AssuranceProgramObligationRegisterSchema,\n obligationCoverageDecisions: z.array(AssuranceProgramObligationCoverageDecisionSchema).min(1),\n sharedResponsibilityRules: z.array(AssuranceProgramSharedResponsibilityRuleSchema),\n ...AssuranceProgramCommonFieldsAfterObjectiveBindingsSchema.shape,\n});\n\n/**\n * Historical source-revision-pinned program. Retained payloads remain parseable and replayable.\n *\n * This said \"new authoring is forbidden by the repository pin checker\" until 2026-09-01. **Nothing forbids it.** That checker was\n * `pnpm check:assurance-revision-pin`, removed on 2026-08-27 with the rest of the digest mechanism, and no successor exists — the\n * only assurance check in `package.json` is `check:assurance-control-boundary`, which is about marker source-neutrality.\n *\n * So v1 is discouraged by this comment and by nothing else. A safety claim standing on a removed mechanism is worse than no claim,\n * because a reader stops looking for the guard. Building one is #221; until it lands, \"forbidden\" means \"please do not\".\n */\nexport const AssuranceProgramSpecificationV1Schema = z\n .strictObject({\n schemaVersion: z.literal(1),\n ...AssuranceProgramHistoricalCommonFieldsSchema.shape,\n sourceRevisions: z.array(AssuranceProgramSourceRevisionSchema).min(1),\n roleAuthorities: z.array(AssuranceProgramRoleAuthoritySchema).min(1),\n capabilityAuthorities: z.array(AssuranceProgramCapabilityAuthoritySchema),\n implementationStatements: z.array(AssuranceImplementationStatementSchema),\n })\n .superRefine(addAssuranceProgramSpecificationIssues);\nexport type AssuranceProgramSpecificationV1 = z.infer<typeof AssuranceProgramSpecificationV1Schema>;\n\n/**\n * Retained basis-pinned application program: exactly one basis identity plus readable refs to the attested engine artifacts.\n *\n * Validation authorities currently carry one sealed basis snapshot. Accepting several authored bases would make\n * every extra basis compare against the wrong inventory and could misclassify an unverified authority as tolerable\n * host drift. Multi-basis composition therefore requires a later schema version with basis-indexed snapshots.\n *\n * This claimed a \"repository checker\" recognized v2 authoring \"only through the serialized pre-v3 transition\" until\n * 2026-09-01. There is no such checker — see the note on {@link AssuranceProgramSpecificationV1Schema}. The intent\n * stands and is worth keeping: after an application accepts v3, v2 should remain replayable rather than become a\n * second current authoring shape. It is an intent, not an enforced one (#221).\n *\n * Exactly one v2 programme exists today, `examples/wonder-todos`, and it is the only assurance programme in the\n * repository. (`examples/wonder-crm/specifications/src/compliance/index.ts` is a PROCESSOR REGISTER, not a\n * programme — its `schemaVersion: 1` belongs to `ApplicationProcessorRegisterSchema`, and a grep for the first\n * `schemaVersion` in a file named `compliance/` reads it as a v1 programme.)\n */\nexport const AssuranceProgramSpecificationV2Schema = z\n .strictObject({\n schemaVersion: z.literal(2),\n ...AssuranceProgramHistoricalCommonFieldsSchema.shape,\n authorityBases: z.array(AssuranceProgramAuthorityBasisReferenceSchema).length(1),\n roleAuthorities: z.array(AssuranceProgramRoleAuthorityV2Schema).min(1),\n capabilityAuthorities: z.array(AssuranceProgramCapabilityAuthorityV2Schema),\n implementationStatements: z.array(AssuranceProgramImplementationStatementV2Schema),\n })\n .superRefine(addAssuranceProgramSpecificationIssues);\nexport type AssuranceProgramSpecificationV2 = z.infer<typeof AssuranceProgramSpecificationV2Schema>;\n\n/**\n * Current application program. It preserves the v2 single-basis authority model while replacing the overlapping\n * control-objective-binding array with one complete obligation register and its program-owned review\n * records. Activation and operating/evidence truth remain deliberately unrepresentable.\n */\nexport const AssuranceProgramSpecificationV3Schema = z\n .strictObject({\n schemaVersion: z.literal(3),\n ...AssuranceProgramV3CommonFieldsSchema.shape,\n authorityBases: z.array(AssuranceProgramAuthorityBasisReferenceSchema).length(1),\n roleAuthorities: z.array(AssuranceProgramRoleAuthorityV2Schema).min(1),\n capabilityAuthorities: z.array(AssuranceProgramCapabilityAuthorityV2Schema),\n implementationStatements: z.array(AssuranceProgramImplementationStatementV2Schema),\n })\n .superRefine(addAssuranceProgramSpecificationIssues);\nexport type AssuranceProgramSpecificationV3 = z.infer<typeof AssuranceProgramSpecificationV3Schema>;\n\n/**\n * Accepted application compliance policy. Organization-specific occurrences,\n * assignees, reviewer identities, evidence bytes and assessment claims are\n * intentionally unrepresentable and belong to authorized runtime records.\n */\nexport const AssuranceProgramSpecificationSchema = z.discriminatedUnion(\"schemaVersion\", [\n AssuranceProgramSpecificationV1Schema,\n AssuranceProgramSpecificationV2Schema,\n AssuranceProgramSpecificationV3Schema,\n]);\nexport type AssuranceProgramSpecification = z.infer<typeof AssuranceProgramSpecificationSchema>;\n\nexport type AssuranceProgramObjectiveBindingView = Readonly<{\n bindingRef: AssuranceProgramControlObjectiveBinding[\"bindingRef\"];\n objective: AssuranceProgramControlObjectiveBinding[\"objective\"];\n scopeSelectorRefs: AssuranceProgramControlObjectiveBinding[\"scopeSelectorRefs\"];\n sourceRequirementRefs: AssuranceProgramControlObjectiveBinding[\"sourceRequirementRefs\"];\n implementationExpectationRefs: AssuranceProgramControlObjectiveBinding[\"implementationExpectationRefs\"];\n evidenceExpectationRefs: AssuranceProgramControlObjectiveBinding[\"evidenceExpectationRefs\"];\n verificationExpectationRefs: AssuranceProgramControlObjectiveBinding[\"verificationExpectationRefs\"];\n requiredProofStage: AssuranceProgramProofStage;\n}>;\n\n/** One normalized read view keeps historical control bindings and current obligation entries on the same validator path. */\nexport const resolveAssuranceProgramObjectiveBindings = (program: AssuranceProgramSpecification): readonly AssuranceProgramObjectiveBindingView[] =>\n program.schemaVersion === 3\n ? program.obligationRegister.entries.map((entry) => ({\n bindingRef: entry.obligationRef,\n objective: entry.objective,\n scopeSelectorRefs: entry.scopeSelectorRefs,\n sourceRequirementRefs: entry.sourceRequirementRefs,\n implementationExpectationRefs: entry.implementationExpectationRefs,\n evidenceExpectationRefs: entry.evidenceExpectationRefs,\n verificationExpectationRefs: entry.verificationExpectationRefs,\n requiredProofStage: entry.requiredProofStage,\n }))\n : program.controlObjectiveBindings;\n\nconst assuranceProgramObjectiveBindingCollectionPath = (program: AssuranceProgramSpecification): string =>\n program.schemaVersion === 3 ? \"obligationRegister.entries\" : \"controlObjectiveBindings\";\n\nconst stringSetsIntersectOrEitherIsWildcard = (left: readonly string[], right: readonly string[]): boolean =>\n left.length === 0 || right.length === 0 || left.some((value) => right.includes(value));\n\n/**\n * Conservative source-level overlap proof for obligation uniqueness.\n *\n * Empty jurisdiction/data/organization-rule dimensions are wildcards. A false result proves disjointness from the\n * authored selectors; a true result only means they may overlap and therefore cannot independently govern the same\n * objective without creating two accepted answers for one subject.\n */\nconst assuranceProgramScopeSelectorsMayOverlap = (left: AssuranceProgramScopeSelector, right: AssuranceProgramScopeSelector): boolean =>\n left.systemBoundaryRefs.some((value) => right.systemBoundaryRefs.includes(value)) &&\n stringSetsIntersectOrEitherIsWildcard(left.jurisdictionRefs, right.jurisdictionRefs) &&\n stringSetsIntersectOrEitherIsWildcard(left.dataCategoryRefs, right.dataCategoryRefs) &&\n stringSetsIntersectOrEitherIsWildcard(left.organizationScopeRuleRefs, right.organizationScopeRuleRefs);\n\nfunction addAssuranceProgramSpecificationIssues(program: AssuranceProgramSpecification, context: z.RefinementCtx): void {\n const objectiveBindings = resolveAssuranceProgramObjectiveBindings(program);\n const objectiveBindingCollectionPath = assuranceProgramObjectiveBindingCollectionPath(program);\n const orderedRefs: Array<[readonly string[], PropertyKey[], string]> = [\n [\n program.schemaVersion === 1\n ? program.sourceRevisions.map((revision) => revision.sourceRevisionRef)\n : program.authorityBases.map((basis) => `${basis.basisRef}@${basis.basisVersion}`),\n [program.schemaVersion === 1 ? \"sourceRevisions\" : \"authorityBases\"],\n program.schemaVersion === 1 ? \"sourceRevisions\" : \"authorityBases\",\n ],\n [program.roleAuthorities.map((authority) => authority.roleRef), [\"roleAuthorities\"], \"roleAuthorities\"],\n [program.capabilityAuthorities.map((authority) => versionedCapabilityKey(authority.identity)), [\"capabilityAuthorities\"], \"capabilityAuthorities\"],\n [program.sourceReferences.map((source) => versionedSourceKey(source.identity)), [\"sourceReferences\"], \"sourceReferences\"],\n [program.scopeSelectors.map((scope) => scope.scopeSelectorRef), [\"scopeSelectors\"], \"scopeSelectors\"],\n [program.applicabilityDecisions.map((decision) => decision.decisionRef), [\"applicabilityDecisions\"], \"applicabilityDecisions\"],\n [objectiveBindings.map((binding) => binding.bindingRef), objectiveBindingCollectionPath.split(\".\"), objectiveBindingCollectionPath],\n [program.implementationDecisions.map((decision) => decision.decisionRef), [\"implementationDecisions\"], \"implementationDecisions\"],\n [program.responsibilityAssignments.map((assignment) => assignment.assignmentRef), [\"responsibilityAssignments\"], \"responsibilityAssignments\"],\n [program.gapsAndExceptions.map((finding) => finding.findingRef), [\"gapsAndExceptions\"], \"gapsAndExceptions\"],\n [program.documentationRequirements.map((requirement) => requirement.requirementRef), [\"documentationRequirements\"], \"documentationRequirements\"],\n [program.implementationStatements.map((statement) => statement.statementRef), [\"implementationStatements\"], \"implementationStatements\"],\n [program.knownProgramLimitations, [\"knownProgramLimitations\"], \"knownProgramLimitations\"],\n ];\n if (program.schemaVersion === 3) {\n orderedRefs.push(\n [\n program.obligationCoverageDecisions.map((decision) => `${decision.coverageDecisionRef}@${decision.coverageDecisionVersion}`),\n [\"obligationCoverageDecisions\"],\n \"obligationCoverageDecisions\",\n ],\n [\n program.sharedResponsibilityRules.map((rule) => `${rule.sharedResponsibilityRuleRef}@${rule.sharedResponsibilityRuleVersion}`),\n [\"sharedResponsibilityRules\"],\n \"sharedResponsibilityRules\",\n ],\n );\n }\n orderedRefs.forEach(([values, path, label]) => addUniqueSortedIssue(values, context, path, label));\n const documentIdentities = program.documentationRequirements.map(versionedDocumentKey);\n if (!valuesAreUnique(documentIdentities))\n context.addIssue({ code: \"custom\", message: \"document identities must be unique\", path: [\"documentationRequirements\"] });\n const responsibilityScopes = program.responsibilityAssignments.map((assignment) => assignment.scopeSelectorRef);\n if (!valuesAreUnique(responsibilityScopes))\n context.addIssue({ code: \"custom\", message: \"each scope can have only one responsibility assignment\", path: [\"responsibilityAssignments\"] });\n collectAssuranceProgramSpecificationIssues(program).forEach((issue) => {\n context.addIssue({ code: \"custom\", message: `[${issue.kind}] ${issue.message}`, path: issue.path.split(\".\") });\n });\n}\n\nfunction collectAssuranceProgramSpecificationIssues(program: AssuranceProgramSpecification): AssuranceProgramSpecificationIssue[] {\n const objectiveBindings = resolveAssuranceProgramObjectiveBindings(program);\n const objectiveBindingCollectionPath = assuranceProgramObjectiveBindingCollectionPath(program);\n const sourceKeys = new Set(program.sourceReferences.map((source) => versionedSourceKey(source.identity)));\n const scopeByRef = new Map(program.scopeSelectors.map((scope) => [scope.scopeSelectorRef, scope]));\n const objectiveKeys = new Set(objectiveBindings.map((binding) => versionedObjectiveKey(binding.objective)));\n const findingByKey = new Map(program.gapsAndExceptions.map((finding) => [`${finding.findingRef}@${finding.findingVersion}`, finding]));\n const capabilityAuthorityByKey = new Map<string, AssuranceProgramCapabilityAuthority | AssuranceProgramCapabilityAuthorityV2>(\n program.capabilityAuthorities.map((authority) => [versionedCapabilityKey(authority.identity), authority] as const),\n );\n const documentKeys = new Set(program.documentationRequirements.map(versionedDocumentKey));\n const roleRefs = new Set<string>(program.roleAuthorities.map((authority) => authority.roleRef));\n const sourceRevisionKeys = new Set(program.schemaVersion === 1 ? program.sourceRevisions.map(sourceRevisionKey) : []);\n const authorityBasisKeys = new Set(program.schemaVersion === 1 ? [] : program.authorityBases.map(authorityBasisIdentityKey));\n const applicabilityBySubject = new Map<string, AssuranceProgramApplicabilityDecision[]>();\n const controlBindingCountBySubject = new Map<string, number>();\n const implementationDecisionCountBySubject = new Map<string, number>();\n const issues: AssuranceProgramSpecificationIssue[] = [];\n const push = (kind: AssuranceProgramSpecificationIssueKind, path: string, message: string): void => {\n issues.push({ kind, path, message });\n };\n\n const requireRole = (roleRef: string, path: string): void => {\n if (!roleRefs.has(roleRef)) push(AssuranceProgramSpecificationIssueKind.UNKNOWN_ROLE, path, `role ${roleRef} has no declared application authority`);\n };\n const requireRevision = (revision: { sourceRevisionRef: string }, path: string): void => {\n if (!sourceRevisionKeys.has(sourceRevisionKey(revision)))\n push(AssuranceProgramSpecificationIssueKind.UNKNOWN_SOURCE_REVISION, path, \"reference does not resolve to an exact declared source revision\");\n };\n const requireBasis = (basis: { basisRef: string; basisVersion: number }, path: string): void => {\n if (!authorityBasisKeys.has(authorityBasisIdentityKey(basis)))\n push(AssuranceProgramSpecificationIssueKind.RELATIONSHIP_MISMATCH, path, \"reference does not resolve to an exact declared authority basis\");\n };\n\n if (program.schemaVersion === 1) {\n program.roleAuthorities.forEach((authority, index) => requireRevision(authority.definitionRevision, `roleAuthorities.${index}.definitionRevision`));\n program.capabilityAuthorities.forEach((authority, index) =>\n requireRevision(authority.implementationRevision, `capabilityAuthorities.${index}.implementationRevision`),\n );\n } else {\n program.roleAuthorities.forEach((authority, index) => requireBasis(authority.definitionAuthority, `roleAuthorities.${index}.definitionAuthority`));\n program.capabilityAuthorities.forEach((authority, index) =>\n requireBasis(authority.implementationAuthority, `capabilityAuthorities.${index}.implementationAuthority`),\n );\n }\n\n program.applicabilityDecisions.forEach((decision, index) => {\n if (!sourceKeys.has(versionedSourceKey(decision.source)))\n push(\n AssuranceProgramSpecificationIssueKind.UNKNOWN_APPLICABILITY_SOURCE,\n `applicabilityDecisions.${index}.source`,\n \"applicability decision references an undeclared source version\",\n );\n if (!scopeByRef.has(decision.scopeSelectorRef))\n push(\n AssuranceProgramSpecificationIssueKind.UNKNOWN_SCOPE_SELECTOR,\n `applicabilityDecisions.${index}.scopeSelectorRef`,\n \"applicability decision references an undeclared scope selector\",\n );\n const key = applicabilitySubjectKey(decision.source, decision.scopeSelectorRef);\n const decisions = applicabilityBySubject.get(key) ?? [];\n decisions.push(decision);\n applicabilityBySubject.set(key, decisions);\n });\n\n applicabilityBySubject.forEach((decisions) => {\n const byEffectiveFrom = [...decisions].sort((left, right) => compareCanonicalText(left.effectiveFrom, right.effectiveFrom));\n byEffectiveFrom.forEach((decision, index) => {\n const previous = byEffectiveFrom[index - 1];\n if (previous && (!previous.effectiveUntil || decision.effectiveFrom <= previous.effectiveUntil))\n push(\n AssuranceProgramSpecificationIssueKind.AMBIGUOUS_APPLICABILITY,\n \"applicabilityDecisions\",\n `applicability periods overlap for ${versionedSourceKey(decision.source)} and ${decision.scopeSelectorRef}`,\n );\n });\n });\n\n const requiredApplicabilitySubjects = new Set<string>();\n objectiveBindings.forEach((binding, index) => {\n binding.scopeSelectorRefs.forEach((scopeRef) => {\n if (!scopeByRef.has(scopeRef))\n push(\n AssuranceProgramSpecificationIssueKind.UNKNOWN_SCOPE_SELECTOR,\n `${objectiveBindingCollectionPath}.${index}.scopeSelectorRefs`,\n `control binding references undeclared scope selector ${scopeRef}`,\n );\n const subject = `${versionedObjectiveKey(binding.objective)}::${scopeRef}`;\n controlBindingCountBySubject.set(subject, (controlBindingCountBySubject.get(subject) ?? 0) + 1);\n });\n binding.sourceRequirementRefs.forEach((reference) => {\n if (!sourceKeys.has(versionedSourceKey(reference.source)))\n push(\n AssuranceProgramSpecificationIssueKind.UNKNOWN_BINDING_SOURCE,\n `${objectiveBindingCollectionPath}.${index}.sourceRequirementRefs`,\n \"control binding references an undeclared source version\",\n );\n binding.scopeSelectorRefs.forEach((scopeRef) => requiredApplicabilitySubjects.add(applicabilitySubjectKey(reference.source, scopeRef)));\n });\n });\n controlBindingCountBySubject.forEach((count, subject) => {\n if (count > 1)\n push(\n AssuranceProgramSpecificationIssueKind.AMBIGUOUS_CONTROL_BINDING,\n objectiveBindingCollectionPath,\n `objective/scope subject ${subject} has ${count} control bindings; exactly one is required`,\n );\n });\n if (program.schemaVersion === 3) {\n const entries = program.obligationRegister.entries;\n const applicabilityDecisionByKey = new Map(\n program.applicabilityDecisions.map((decision) => [versionedApplicabilityDecisionKey(decision), decision] as const),\n );\n const coverageDecisionByKey = new Map(program.obligationCoverageDecisions.map((decision) => [versionedCoverageDecisionKey(decision), decision] as const));\n const sharedResponsibilityRuleByKey = new Map(program.sharedResponsibilityRules.map((rule) => [versionedSharedResponsibilityRuleKey(rule), rule] as const));\n const responsibilityAssignmentByRef = new Map(program.responsibilityAssignments.map((assignment) => [assignment.assignmentRef, assignment] as const));\n const entryByKey = new Map(entries.map((entry) => [versionedObligationKey(entry), entry] as const));\n const usedCoverageDecisionKeys = new Set<string>();\n const usedSharedResponsibilityRuleKeys = new Set<string>();\n\n entries.forEach((entry, entryIndex) => {\n const entryPath = `obligationRegister.entries.${entryIndex}`;\n const entryKey = versionedObligationKey(entry);\n requireRole(entry.applicability.reviewedByRoleRef, `${entryPath}.applicability.reviewedByRoleRef`);\n entry.reviewOwnerRoleRefs.forEach((roleRef) => requireRole(roleRef, `${entryPath}.reviewOwnerRoleRefs`));\n if (!entry.reviewOwnerRoleRefs.includes(entry.applicability.reviewedByRoleRef))\n push(\n AssuranceProgramSpecificationIssueKind.RELATIONSHIP_MISMATCH,\n `${entryPath}.applicability.reviewedByRoleRef`,\n `obligation ${entryKey} applicability reviewer is not permitted by its review policy`,\n );\n\n const expectedApplicabilitySubjects = new Set(\n entry.sourceRequirementRefs.flatMap((reference) =>\n entry.scopeSelectorRefs.map((scopeSelectorRef) => applicabilitySubjectKey(reference.source, scopeSelectorRef)),\n ),\n );\n const citedApplicabilitySubjects = new Set<string>();\n entry.sourceApplicabilityDecisionRefs.forEach((identity) => {\n const decision = applicabilityDecisionByKey.get(versionedApplicabilityDecisionKey(identity));\n if (!decision) {\n push(\n AssuranceProgramSpecificationIssueKind.UNKNOWN_OBLIGATION_GOVERNANCE_RECORD,\n `${entryPath}.sourceApplicabilityDecisionRefs`,\n `obligation ${entryKey} references undeclared source applicability decision ${versionedApplicabilityDecisionKey(identity)}`,\n );\n return;\n }\n const subject = applicabilitySubjectKey(decision.source, decision.scopeSelectorRef);\n citedApplicabilitySubjects.add(subject);\n if (!expectedApplicabilitySubjects.has(subject))\n push(\n AssuranceProgramSpecificationIssueKind.RELATIONSHIP_MISMATCH,\n `${entryPath}.sourceApplicabilityDecisionRefs`,\n `source applicability decision ${versionedApplicabilityDecisionKey(identity)} does not govern a cited source and obligation scope`,\n );\n });\n if (\n entry.sourceApplicabilityDecisionRefs.length !== expectedApplicabilitySubjects.size ||\n citedApplicabilitySubjects.size !== expectedApplicabilitySubjects.size ||\n [...expectedApplicabilitySubjects].some((subject) => !citedApplicabilitySubjects.has(subject))\n )\n push(\n AssuranceProgramSpecificationIssueKind.INCOMPLETE_APPLICABILITY,\n `${entryPath}.sourceApplicabilityDecisionRefs`,\n `obligation ${entryKey} must cite exactly one retained applicability decision for every cited source and scope subject`,\n );\n\n const assignmentScopeRefs = new Set<string>();\n entry.responsibilityAssignmentRefs.forEach((assignmentRef) => {\n const assignment = responsibilityAssignmentByRef.get(assignmentRef);\n if (!assignment) {\n push(\n AssuranceProgramSpecificationIssueKind.INCOMPLETE_RESPONSIBILITY_ASSIGNMENT,\n `${entryPath}.responsibilityAssignmentRefs`,\n `obligation ${entryKey} references undeclared responsibility assignment ${assignmentRef}`,\n );\n return;\n }\n assignmentScopeRefs.add(assignment.scopeSelectorRef);\n });\n if (assignmentScopeRefs.size !== entry.scopeSelectorRefs.length || entry.scopeSelectorRefs.some((scopeRef) => !assignmentScopeRefs.has(scopeRef)))\n push(\n AssuranceProgramSpecificationIssueKind.INCOMPLETE_RESPONSIBILITY_ASSIGNMENT,\n `${entryPath}.responsibilityAssignmentRefs`,\n `obligation ${entryKey} responsibility assignments must cover exactly its scope selectors`,\n );\n\n entry.gapRefs.forEach((identity) => {\n const findingKey = `${identity.findingRef}@${identity.findingVersion}`;\n const finding = findingByKey.get(findingKey);\n if (!finding)\n push(\n AssuranceProgramSpecificationIssueKind.UNKNOWN_FINDING,\n `${entryPath}.gapRefs`,\n `obligation ${entryKey} references undeclared finding ${findingKey}`,\n );\n else if (\n !finding.objective ||\n versionedObjectiveKey(finding.objective) !== versionedObjectiveKey(entry.objective) ||\n !entry.scopeSelectorRefs.includes(finding.scopeSelectorRef)\n )\n push(\n AssuranceProgramSpecificationIssueKind.RELATIONSHIP_MISMATCH,\n `${entryPath}.gapRefs`,\n `finding ${findingKey} does not match obligation ${entryKey} objective and scope`,\n );\n });\n\n const coverageDecisionKey = versionedCoverageDecisionKey(entry.coverageDecision);\n const coverageDecision = coverageDecisionByKey.get(coverageDecisionKey);\n if (!coverageDecision || coverageDecision.coverageDecisionVersion !== entry.coverageDecision.coverageDecisionVersion)\n push(\n AssuranceProgramSpecificationIssueKind.UNKNOWN_OBLIGATION_GOVERNANCE_RECORD,\n `${entryPath}.coverageDecision`,\n `obligation ${entryKey} coverage decision does not resolve by exact identity and digest`,\n );\n else {\n usedCoverageDecisionKeys.add(coverageDecisionKey);\n if (\n versionedObligationKey(coverageDecision.obligation) !== entryKey ||\n coverageDecision.reviewDisposition !== AssuranceProgramObligationCoverageReviewDisposition.APPROVED ||\n JSON.stringify(coverageDecision.sourceRequirementRefs) !== JSON.stringify(entry.sourceRequirementRefs)\n )\n push(\n AssuranceProgramSpecificationIssueKind.RELATIONSHIP_MISMATCH,\n `${entryPath}.coverageDecision`,\n `obligation ${entryKey} requires one approved coverage decision over its exact source-requirement inventory`,\n );\n if (!entry.reviewOwnerRoleRefs.includes(coverageDecision.reviewedByRoleRef))\n push(\n AssuranceProgramSpecificationIssueKind.RELATIONSHIP_MISMATCH,\n `${entryPath}.coverageDecision`,\n `obligation ${entryKey} coverage reviewer is not permitted by its review policy`,\n );\n }\n\n if (entry.sharedResponsibilityRule) {\n const ruleKey = versionedSharedResponsibilityRuleKey(entry.sharedResponsibilityRule);\n const rule = sharedResponsibilityRuleByKey.get(ruleKey);\n if (!rule || rule.sharedResponsibilityRuleVersion !== entry.sharedResponsibilityRule.sharedResponsibilityRuleVersion)\n push(\n AssuranceProgramSpecificationIssueKind.UNKNOWN_OBLIGATION_GOVERNANCE_RECORD,\n `${entryPath}.sharedResponsibilityRule`,\n `obligation ${entryKey} shared-responsibility rule does not resolve by exact identity and digest`,\n );\n else {\n usedSharedResponsibilityRuleKeys.add(ruleKey);\n if (\n JSON.stringify(rule.scopeSelectorRefs) !== JSON.stringify(entry.scopeSelectorRefs) ||\n JSON.stringify(rule.governanceActorKinds) !== JSON.stringify(entry.governanceActorKinds)\n )\n push(\n AssuranceProgramSpecificationIssueKind.RELATIONSHIP_MISMATCH,\n `${entryPath}.sharedResponsibilityRule`,\n `shared-responsibility rule ${ruleKey} must govern the obligation's exact scope and actor set`,\n );\n if (!entry.reviewOwnerRoleRefs.includes(rule.reviewedByRoleRef))\n push(\n AssuranceProgramSpecificationIssueKind.RELATIONSHIP_MISMATCH,\n `${entryPath}.sharedResponsibilityRule`,\n `shared-responsibility rule ${ruleKey} reviewer is not permitted by obligation ${entryKey}'s review policy`,\n );\n }\n }\n\n entry.dependencyObligationRefs.forEach((dependency) => {\n if (!entryByKey.has(versionedObligationKey(dependency)))\n push(\n AssuranceProgramSpecificationIssueKind.UNKNOWN_OBLIGATION_GOVERNANCE_RECORD,\n `${entryPath}.dependencyObligationRefs`,\n `obligation ${entryKey} references undeclared dependency ${versionedObligationKey(dependency)}`,\n );\n });\n });\n\n program.obligationCoverageDecisions.forEach((decision, decisionIndex) => {\n const decisionKey = versionedCoverageDecisionKey(decision);\n requireRole(decision.reviewedByRoleRef, `obligationCoverageDecisions.${decisionIndex}.reviewedByRoleRef`);\n if (!usedCoverageDecisionKeys.has(decisionKey))\n push(\n AssuranceProgramSpecificationIssueKind.UNKNOWN_OBLIGATION_GOVERNANCE_RECORD,\n `obligationCoverageDecisions.${decisionIndex}`,\n `coverage decision ${decisionKey} is not retained by an exact obligation entry`,\n );\n });\n program.sharedResponsibilityRules.forEach((rule, ruleIndex) => {\n const ruleKey = versionedSharedResponsibilityRuleKey(rule);\n for (const roleRef of [\n ...rule.accountableRoleRefs,\n ...rule.operatingRoleRefs,\n ...rule.evidenceProviderRoleRefs,\n ...rule.approvingRoleRefs,\n ...rule.conflictResolutionRoleRefs,\n rule.reviewedByRoleRef,\n ])\n requireRole(roleRef, `sharedResponsibilityRules.${ruleIndex}`);\n rule.scopeSelectorRefs.forEach((scopeRef) => {\n if (!scopeByRef.has(scopeRef))\n push(\n AssuranceProgramSpecificationIssueKind.UNKNOWN_SCOPE_SELECTOR,\n `sharedResponsibilityRules.${ruleIndex}.scopeSelectorRefs`,\n `shared-responsibility rule ${ruleKey} references undeclared scope ${scopeRef}`,\n );\n });\n if (!usedSharedResponsibilityRuleKeys.has(ruleKey))\n push(\n AssuranceProgramSpecificationIssueKind.UNKNOWN_OBLIGATION_GOVERNANCE_RECORD,\n `sharedResponsibilityRules.${ruleIndex}`,\n `shared-responsibility rule ${ruleKey} is not retained by any obligation entry`,\n );\n });\n\n for (let leftIndex = 0; leftIndex < program.sharedResponsibilityRules.length; leftIndex += 1) {\n const left = program.sharedResponsibilityRules[leftIndex]!;\n for (let rightIndex = leftIndex + 1; rightIndex < program.sharedResponsibilityRules.length; rightIndex += 1) {\n const right = program.sharedResponsibilityRules[rightIndex]!;\n if (JSON.stringify(left.governanceActorKinds) !== JSON.stringify(right.governanceActorKinds)) continue;\n const scopesMayOverlap = left.scopeSelectorRefs.some((leftRef) => {\n const leftScope = scopeByRef.get(leftRef);\n return (\n leftScope !== undefined &&\n right.scopeSelectorRefs.some((rightRef) => {\n const rightScope = scopeByRef.get(rightRef);\n return rightScope !== undefined && assuranceProgramScopeSelectorsMayOverlap(leftScope, rightScope);\n })\n );\n });\n if (scopesMayOverlap)\n push(\n AssuranceProgramSpecificationIssueKind.AMBIGUOUS_SHARED_RESPONSIBILITY_RULE,\n \"sharedResponsibilityRules\",\n `shared-responsibility rules ${versionedSharedResponsibilityRuleKey(left)} and ${versionedSharedResponsibilityRuleKey(right)} govern the same actor set over potentially overlapping scopes`,\n );\n }\n }\n\n for (let leftIndex = 0; leftIndex < entries.length; leftIndex += 1) {\n const left = entries[leftIndex]!;\n for (let rightIndex = leftIndex + 1; rightIndex < entries.length; rightIndex += 1) {\n const right = entries[rightIndex]!;\n if (versionedObjectiveKey(left.objective) !== versionedObjectiveKey(right.objective)) continue;\n const scopesMayOverlap = left.scopeSelectorRefs.some((leftRef) => {\n const leftScope = scopeByRef.get(leftRef);\n return (\n leftScope !== undefined &&\n right.scopeSelectorRefs.some((rightRef) => {\n const rightScope = scopeByRef.get(rightRef);\n return rightScope !== undefined && assuranceProgramScopeSelectorsMayOverlap(leftScope, rightScope);\n })\n );\n });\n if (scopesMayOverlap)\n push(\n AssuranceProgramSpecificationIssueKind.AMBIGUOUS_OBLIGATION_BINDING,\n \"obligationRegister.entries\",\n `obligations ${versionedObligationKey(left)} and ${versionedObligationKey(right)} govern the same objective over potentially overlapping scopes`,\n );\n }\n }\n\n const visiting = new Set<string>();\n const visited = new Set<string>();\n const visitDependency = (entryKey: string): void => {\n if (visited.has(entryKey)) return;\n if (visiting.has(entryKey)) {\n push(\n AssuranceProgramSpecificationIssueKind.OBLIGATION_DEPENDENCY_CYCLE,\n \"obligationRegister.entries\",\n `obligation dependency graph contains a cycle through ${entryKey}`,\n );\n return;\n }\n const entry = entryByKey.get(entryKey);\n if (!entry) return;\n visiting.add(entryKey);\n entry.dependencyObligationRefs.forEach((dependency) => visitDependency(versionedObligationKey(dependency)));\n visiting.delete(entryKey);\n visited.add(entryKey);\n };\n entryByKey.forEach((_entry, entryKey) => visitDependency(entryKey));\n }\n requiredApplicabilitySubjects.forEach((subject) => {\n if (!applicabilityBySubject.has(subject))\n push(\n AssuranceProgramSpecificationIssueKind.INCOMPLETE_APPLICABILITY,\n \"applicabilityDecisions\",\n `used source/scope subject ${subject} requires an explicit APPLICABLE, NOT_APPLICABLE or UNDETERMINED decision`,\n );\n });\n program.sourceReferences.forEach((source) => {\n const hasDecision = [...applicabilityBySubject.keys()].some((subject) => subject.startsWith(`${versionedSourceKey(source.identity)}::`));\n if (!hasDecision)\n push(\n AssuranceProgramSpecificationIssueKind.INCOMPLETE_APPLICABILITY,\n \"applicabilityDecisions\",\n `declared source ${versionedSourceKey(source.identity)} has no explicit applicability decision`,\n );\n });\n\n program.implementationDecisions.forEach((decision, index) => {\n const objectiveKey = versionedObjectiveKey(decision.objective);\n if (!objectiveKeys.has(objectiveKey))\n push(\n AssuranceProgramSpecificationIssueKind.UNKNOWN_OBJECTIVE,\n `implementationDecisions.${index}.objective`,\n \"implementation decision references an unbound Wildo objective version\",\n );\n decision.scopeSelectorRefs.forEach((scopeRef) => {\n if (!scopeByRef.has(scopeRef))\n push(\n AssuranceProgramSpecificationIssueKind.UNKNOWN_SCOPE_SELECTOR,\n `implementationDecisions.${index}.scopeSelectorRefs`,\n `implementation decision references undeclared scope selector ${scopeRef}`,\n );\n const hasScopedBinding = objectiveBindings.some(\n (binding) => versionedObjectiveKey(binding.objective) === objectiveKey && binding.scopeSelectorRefs.includes(scopeRef),\n );\n if (!hasScopedBinding)\n push(\n AssuranceProgramSpecificationIssueKind.RELATIONSHIP_MISMATCH,\n `implementationDecisions.${index}.scopeSelectorRefs`,\n `objective ${objectiveKey} is not bound to scope ${scopeRef}`,\n );\n const subject = `${objectiveKey}::${scopeRef}`;\n implementationDecisionCountBySubject.set(subject, (implementationDecisionCountBySubject.get(subject) ?? 0) + 1);\n });\n decision.capabilitySelections.forEach((selection) => {\n const authority = capabilityAuthorityByKey.get(versionedCapabilityKey(selection));\n if (!authority)\n push(\n AssuranceProgramSpecificationIssueKind.UNKNOWN_CAPABILITY,\n `implementationDecisions.${index}.capabilitySelections`,\n `selected capability ${versionedCapabilityKey(selection)} has no declared authority`,\n );\n else if (authority.capabilityKind !== selection.capabilityKind)\n push(\n AssuranceProgramSpecificationIssueKind.RELATIONSHIP_MISMATCH,\n `implementationDecisions.${index}.capabilitySelections`,\n `selected capability ${versionedCapabilityKey(selection)} kind does not match its authority`,\n );\n });\n decision.gapRefs.forEach((findingIdentity) => {\n const findingKey = `${findingIdentity.findingRef}@${findingIdentity.findingVersion}`;\n const finding = findingByKey.get(findingKey);\n if (!finding)\n push(\n AssuranceProgramSpecificationIssueKind.UNKNOWN_FINDING,\n `implementationDecisions.${index}.gapRefs`,\n `implementation decision references undeclared finding ${findingKey}`,\n );\n else if (\n !finding.objective ||\n versionedObjectiveKey(finding.objective) !== objectiveKey ||\n !decision.scopeSelectorRefs.includes(finding.scopeSelectorRef) ||\n finding.disposition !== decision.gapDisposition\n )\n push(\n AssuranceProgramSpecificationIssueKind.RELATIONSHIP_MISMATCH,\n `implementationDecisions.${index}.gapRefs`,\n `finding ${findingKey} does not match the decision objective, scope and disposition`,\n );\n });\n if (decision.gapRefs.length > 0)\n decision.scopeSelectorRefs.forEach((scopeRef) => {\n const scope = scopeByRef.get(scopeRef);\n const matchingFinding = decision.gapRefs.some((identity) => {\n const finding = findingByKey.get(`${identity.findingRef}@${identity.findingVersion}`);\n if (!finding || !scope) return false;\n return (\n finding.scopeSelectorRef === scopeRef &&\n finding.scopeSelectorVersion === scope.scopeSelectorVersion &&\n finding.objective !== undefined &&\n versionedObjectiveKey(finding.objective) === objectiveKey &&\n finding.disposition === decision.gapDisposition\n );\n });\n if (!matchingFinding)\n push(\n AssuranceProgramSpecificationIssueKind.RELATIONSHIP_MISMATCH,\n `implementationDecisions.${index}.gapRefs`,\n `objective/scope subject ${objectiveKey}::${scopeRef} requires its own exact versioned finding`,\n );\n });\n });\n controlBindingCountBySubject.forEach((_count, subject) => {\n const decisionCount = implementationDecisionCountBySubject.get(subject) ?? 0;\n if (decisionCount === 0)\n push(\n AssuranceProgramSpecificationIssueKind.INCOMPLETE_IMPLEMENTATION_DECISION,\n \"implementationDecisions\",\n `objective/scope subject ${subject} has no explicit implementation decision`,\n );\n else if (decisionCount > 1)\n push(\n AssuranceProgramSpecificationIssueKind.AMBIGUOUS_IMPLEMENTATION_DECISION,\n \"implementationDecisions\",\n `objective/scope subject ${subject} has ${decisionCount} implementation decisions; exactly one is required`,\n );\n });\n\n program.responsibilityAssignments.forEach((assignment, index) => {\n if (!scopeByRef.has(assignment.scopeSelectorRef))\n push(\n AssuranceProgramSpecificationIssueKind.UNKNOWN_SCOPE_SELECTOR,\n `responsibilityAssignments.${index}.scopeSelectorRef`,\n \"responsibility assignment references an undeclared scope selector\",\n );\n for (const roleRef of [\n ...assignment.responsibleRoleRefs,\n ...assignment.operatingRoleRefs,\n ...assignment.evidenceProviderRoleRefs,\n ...assignment.approvingRoleRefs,\n ...assignment.escalationRoleRefs,\n ])\n requireRole(roleRef, `responsibilityAssignments.${index}`);\n });\n const assignedScopeRefs = new Set(program.responsibilityAssignments.map((assignment) => assignment.scopeSelectorRef));\n scopeByRef.forEach((_scope, scopeRef) => {\n if (!assignedScopeRefs.has(scopeRef))\n push(\n AssuranceProgramSpecificationIssueKind.INCOMPLETE_RESPONSIBILITY_ASSIGNMENT,\n \"responsibilityAssignments\",\n `scope ${scopeRef} has no responsibility assignment`,\n );\n });\n\n program.gapsAndExceptions.forEach((finding, index) => {\n const scope = scopeByRef.get(finding.scopeSelectorRef);\n if (!scope || scope.scopeSelectorVersion !== finding.scopeSelectorVersion)\n push(\n AssuranceProgramSpecificationIssueKind.UNKNOWN_SCOPE_SELECTOR,\n `gapsAndExceptions.${index}.scopeSelectorVersion`,\n \"finding references an undeclared scope selector version\",\n );\n if (finding.source && !sourceKeys.has(versionedSourceKey(finding.source)))\n push(\n AssuranceProgramSpecificationIssueKind.UNKNOWN_BINDING_SOURCE,\n `gapsAndExceptions.${index}.source`,\n \"finding references an undeclared source version\",\n );\n if (finding.objective && !objectiveKeys.has(versionedObjectiveKey(finding.objective)))\n push(\n AssuranceProgramSpecificationIssueKind.UNKNOWN_OBJECTIVE,\n `gapsAndExceptions.${index}.objective`,\n \"finding references an unbound Wildo objective version\",\n );\n if (program.schemaVersion === 3 && finding.objective) {\n const matchingObligations = program.obligationRegister.entries.filter(\n (entry) =>\n versionedObjectiveKey(entry.objective) === versionedObjectiveKey(finding.objective!) &&\n entry.scopeSelectorRefs.includes(finding.scopeSelectorRef) &&\n entry.gapRefs.some((identity) => identity.findingRef === finding.findingRef && identity.findingVersion === finding.findingVersion),\n );\n if (matchingObligations.length !== 1)\n push(\n AssuranceProgramSpecificationIssueKind.RELATIONSHIP_MISMATCH,\n `gapsAndExceptions.${index}.objective`,\n `objective-bearing finding ${finding.findingRef}@${finding.findingVersion} must resolve exactly one obligation over scope ${finding.scopeSelectorRef}; found ${matchingObligations.length}`,\n );\n }\n if (finding.objective && finding.source) {\n const objectiveKey = versionedObjectiveKey(finding.objective);\n const sourceKey = versionedSourceKey(finding.source);\n const sourceMatchesBinding = objectiveBindings.some(\n (binding) =>\n versionedObjectiveKey(binding.objective) === objectiveKey &&\n binding.scopeSelectorRefs.includes(finding.scopeSelectorRef) &&\n binding.sourceRequirementRefs.some((reference) => versionedSourceKey(reference.source) === sourceKey),\n );\n if (!sourceMatchesBinding)\n push(\n AssuranceProgramSpecificationIssueKind.RELATIONSHIP_MISMATCH,\n `gapsAndExceptions.${index}.source`,\n `finding source ${sourceKey} is not bound to ${objectiveKey} in scope ${finding.scopeSelectorRef}`,\n );\n }\n requireRole(finding.ownerRoleRef, `gapsAndExceptions.${index}.ownerRoleRef`);\n });\n\n program.documentationRequirements.forEach((requirement, index) => {\n requirement.sourceRefs.forEach((source) => {\n if (!sourceKeys.has(versionedSourceKey(source)))\n push(\n AssuranceProgramSpecificationIssueKind.UNKNOWN_DOCUMENT_SOURCE,\n `documentationRequirements.${index}.sourceRefs`,\n \"documentation requirement references an undeclared source version\",\n );\n });\n requirement.approvingRoleRefs.forEach((roleRef) => requireRole(roleRef, `documentationRequirements.${index}.approvingRoleRefs`));\n });\n\n program.implementationStatements.forEach((statement, index) => {\n const objectiveKey = versionedObjectiveKey(statement.objective);\n if (!objectiveKeys.has(objectiveKey))\n push(\n AssuranceProgramSpecificationIssueKind.UNKNOWN_OBJECTIVE,\n `implementationStatements.${index}.objective`,\n \"implementation statement references an unbound Wildo objective version\",\n );\n const scope = scopeByRef.get(statement.governanceScope.scopeRef);\n if (!scope || scope.scopeSelectorVersion !== statement.governanceScope.scopeVersion)\n push(\n AssuranceProgramSpecificationIssueKind.UNKNOWN_SCOPE_SELECTOR,\n `implementationStatements.${index}.governanceScope`,\n \"implementation statement references an undeclared scope selector version\",\n );\n const matchingDecisions = program.implementationDecisions.filter(\n (decision) => versionedObjectiveKey(decision.objective) === objectiveKey && decision.scopeSelectorRefs.includes(statement.governanceScope.scopeRef),\n );\n statement.capabilityBindingRefs.forEach((capability) => {\n const key = versionedCapabilityKey(capability);\n const selectedForStatement = matchingDecisions.some((decision) =>\n decision.capabilitySelections.some((selection) => versionedCapabilityKey(selection) === key),\n );\n if (!selectedForStatement)\n push(\n AssuranceProgramSpecificationIssueKind.RELATIONSHIP_MISMATCH,\n `implementationStatements.${index}.capabilityBindingRefs`,\n `capability ${key} is not selected for this exact objective and scope`,\n );\n });\n statement.documentDependencies.forEach((dependency) => {\n if (!documentKeys.has(versionedDocumentKey(dependency)))\n push(\n AssuranceProgramSpecificationIssueKind.UNKNOWN_DOCUMENT,\n `implementationStatements.${index}.documentDependencies`,\n `implementation statement references undeclared document ${versionedDocumentKey(dependency)}`,\n );\n });\n if (program.schemaVersion === 1) requireRevision(statement, `implementationStatements.${index}.sourceRevisionRef`);\n else requireBasis(statement, `implementationStatements.${index}.basisRef`);\n });\n return issues;\n}\n\nconst sourceReferenceMatchesRecord = (reference: AssuranceProgramSourceReference, record: AssuranceSourceRecord): boolean =>\n reference.edition === record.edition &&\n reference.authorityKind === record.authorityKind &&\n reference.authorityName === record.authorityName &&\n reference.lifecycleStatus === record.lifecycleStatus &&\n reference.rightsRef === record.rights.rightsRef &&\n reference.rightsVersion === record.rights.rightsVersion;\n\n/**\n * Deterministic semantic validation consumed by the application-specification family authority.\n *\n * `authorities` is OPTIONAL. Without it, only the program's own structural and coherence issues are\n * collected — the content-validation half, which is a pure function of the authored bytes. The\n * authority-snapshot cross-checks run only when a host supplies a resolved snapshot (the\n * framework-knowledge generation pipeline does; the application-creation landing gate does not, and\n * refusing to validate at all in that case made the compliance-program family unlandable).\n */\nexport const validateAssuranceProgramSpecification = (\n program: AssuranceProgramSpecification,\n authorities?: AssuranceProgramValidationAuthorities,\n): { ok: boolean; issues: AssuranceProgramSpecificationIssue[] } => {\n const issues = collectAssuranceProgramSpecificationIssues(program);\n if (!authorities) {\n return { ok: issues.length === 0, issues };\n }\n const objectiveBindings = resolveAssuranceProgramObjectiveBindings(program);\n const objectiveBindingCollectionPath = assuranceProgramObjectiveBindingCollectionPath(program);\n const parsedSnapshot = AssuranceProgramValidationAuthoritySnapshotSchema.safeParse(authorities.snapshot);\n if (!parsedSnapshot.success) {\n issues.push({\n kind: AssuranceProgramSpecificationIssueKind.AUTHORITY_SNAPSHOT_INVALID,\n path: \"validationAuthorities.snapshot\",\n // Unbounded on purpose: this message is the author-facing account of WHY the\n // authority snapshot is invalid, so eliding issues would hide fixable faults.\n // Rendering delegates to the canonical formatter in `@wildo-ai/saas-models`.\n message: summarizeZodIssues(parsedSnapshot.error.issues, { limit: ALL_ZOD_ISSUES }),\n });\n return { ok: false, issues };\n }\n const snapshot = parsedSnapshot.data;\n if (snapshot.documentAuthorityCatalog) {\n collectAssuranceDocumentAuthorityCatalogIssues({\n catalog: snapshot.documentAuthorityCatalog,\n sourceRegistry: snapshot.sourceRegistry,\n evaluatedAt: snapshot.evaluatedAt,\n }).forEach((message) =>\n issues.push({\n kind: AssuranceProgramSpecificationIssueKind.DOCUMENT_AUTHORITY_CATALOG_INVALID,\n path: \"validationAuthorities.snapshot.documentAuthorityCatalog\",\n message,\n }),\n );\n }\n /*\n * HOST AUTHORITY BASIS DRIFT — the one cross-boundary check in this block, and the only one that\n * ever meant anything: does the basis the PROGRAM accepted match the basis the HOST is offering?\n * It is keyed on `basisRef@basisVersion`, the declared compatibility generation, so it fires when\n * the framework's interpretation contract moves and stays quiet for byte movement that does not.\n * (Five sibling checks here hashed the snapshot against its own material and were deleted\n * 2026-08-27 — see `.claude/rules/one-source-of-truth.md`.)\n */\n if (program.schemaVersion !== 1) {\n const snapshotBasis = { basisRef: snapshot.snapshotRef, basisVersion: snapshot.snapshotVersion };\n program.authorityBases.forEach((basis, basisIndex) => {\n if (authorityBasisIdentityKey(basis) === authorityBasisIdentityKey(snapshotBasis)) return;\n issues.push({\n kind: AssuranceProgramSpecificationIssueKind.HOST_AUTHORITY_BASIS_DRIFT,\n path: `authorityBases.${basisIndex}`,\n subjectRef: `${basis.basisRef}@${basis.basisVersion}`,\n message: `authority basis ${basis.basisRef}@${basis.basisVersion} is not the host basis ${snapshotBasis.basisRef}@${snapshotBasis.basisVersion}`,\n });\n });\n }\n\n // Policy dates use UTC. Deriving from the authored timestamp text would let two offset spellings\n // of the same instant select different applicability, review and expiry decisions.\n const evaluatedOn = utcIsoDateFromInstant(snapshot.evaluatedAt);\n const sourceRecords = new Map(snapshot.sourceRegistry.sources.map((source) => [versionedSourceKey(source.identity), source]));\n const objectiveRecords = new Map(snapshot.objectiveCatalog.objectives.map((objective) => [versionedObjectiveKey(objective.identity), objective]));\n const applicationRoleRefs = new Set<string>(snapshot.applicationRoleRefs);\n const hostCapabilities = new Map(snapshot.capabilityAuthorities.map((authority) => [versionedCapabilityKey(authority.identity), authority]));\n const hostArtifacts = new Set(snapshot.implementationArtifacts.map((artifact) => artifact.artifactRef));\n const hostImplementationArtifactsByKind = new Map(snapshot.hostImplementationArtifacts.map((artifact) => [artifact.artifactKindRef, artifact]));\n const sourceRequirementAuthorities = new Map(snapshot.sourceRequirementAuthorities.map((authority) => [versionedSourceRequirementKey(authority), authority]));\n const implementationExpectationAuthorities = new Map(\n snapshot.implementationExpectationAuthorities.map((authority) => [versionedExpectationKey(authority.identity), authority]),\n );\n const evidenceExpectationAuthorities = new Map(\n snapshot.evidenceExpectationAuthorities.map((authority) => [versionedExpectationKey(authority.identity), authority]),\n );\n const verificationExpectationAuthorities = new Map(\n snapshot.verificationExpectationAuthorities.map((authority) => [versionedExpectationKey(authority.identity), authority]),\n );\n\n program.documentationRequirements.forEach((requirement, requirementIndex) => {\n if (!(\"schemaVersion\" in requirement) || requirement.schemaVersion !== 2) return;\n const catalog = snapshot.documentAuthorityCatalog;\n if (!catalog) {\n issues.push({\n kind: AssuranceProgramSpecificationIssueKind.DOCUMENT_AUTHORITY_CATALOG_INVALID,\n path: `documentationRequirements.${requirementIndex}.definition`,\n message: \"a v2 documentation requirement requires a validation snapshot carrying the engine-owned document authority catalog\",\n });\n return;\n }\n const definition = catalog.definitions.find(\n (candidate) =>\n candidate.identity.definitionRef === requirement.definition.definitionRef &&\n candidate.identity.definitionVersion === requirement.definition.definitionVersion,\n );\n if (!definition) {\n issues.push({\n kind: AssuranceProgramSpecificationIssueKind.UNKNOWN_DOCUMENT,\n path: `documentationRequirements.${requirementIndex}.definition`,\n message: `document definition ${requirement.definition.definitionRef}@${requirement.definition.definitionVersion} is absent from the engine authority catalog`,\n });\n return;\n }\n const relationshipProblems: string[] = [];\n if (requirement.documentKindRef !== definition.stableKindRef) relationshipProblems.push(\"document kind\");\n if (!definition.governanceSubjectKinds.includes(requirement.governanceScope.subjectKind)) relationshipProblems.push(\"governance subject\");\n if (requirement.audienceKinds.some((audience) => !definition.audienceKinds.includes(audience))) relationshipProblems.push(\"audience\");\n if (requirement.allowedInteractionKinds.some((kind) => !definition.allowedInteractionKinds.includes(kind)))\n relationshipProblems.push(\"interaction meaning\");\n if (requirement.publicationChannelKinds.some((channel) => !definition.publicationChannelKinds.includes(channel)))\n relationshipProblems.push(\"publication channel\");\n if (definition.requiredFactRefs.some((factRef) => !requirement.requiredAcceptedFactRefs.includes(factRef))) relationshipProblems.push(\"required facts\");\n\n const requiredReviewKinds = new Set(\n catalog.qualifiedReviewPolicies\n .filter((policy) => definition.qualifiedReviewPolicyRefs.includes(policy.policyRef))\n .flatMap((policy) => assuranceDocumentQualifiedReviewRequirements(policy).map((reviewRequirement) => reviewRequirement.reviewKind)),\n );\n if ([...requiredReviewKinds].some((reviewKind) => !requirement.requiredReviewKinds.includes(reviewKind))) relationshipProblems.push(\"qualified reviews\");\n\n const requiredSourceKeys = new Set(\n catalog.sourceMonitoringPolicies\n .filter((policy) => definition.sourcePolicyRefs.includes(policy.policyRef))\n .map((policy) => versionedSourceKey(policy.source)),\n );\n const authoredSourceKeys = new Set(requirement.sourceRefs.map(versionedSourceKey));\n if ([...requiredSourceKeys].some((sourceKey) => !authoredSourceKeys.has(sourceKey))) relationshipProblems.push(\"authoritative sources\");\n const declaredScope = program.scopeSelectors.find((scope) => String(scope.scopeSelectorRef) === String(requirement.governanceScope.scopeRef));\n if (!declaredScope || declaredScope.scopeSelectorVersion !== requirement.governanceScope.scopeVersion) relationshipProblems.push(\"governance scope\");\n if (timestampIsAfter(requirement.applicabilityDecidedAt, snapshot.evaluatedAt)) relationshipProblems.push(\"applicability decision time\");\n\n if (relationshipProblems.length > 0) {\n issues.push({\n kind: AssuranceProgramSpecificationIssueKind.RELATIONSHIP_MISMATCH,\n path: `documentationRequirements.${requirementIndex}`,\n message: `documentation requirement does not satisfy its exact engine-owned definition: ${relationshipProblems.join(\", \")}`,\n });\n }\n });\n\n if (program.schemaVersion === 3) {\n program.obligationCoverageDecisions.forEach((decision, decisionIndex) => {\n if (timestampIsAfter(decision.reviewedAt, snapshot.evaluatedAt))\n issues.push({\n kind: AssuranceProgramSpecificationIssueKind.TEMPORAL_POLICY_CONFLICT,\n path: `obligationCoverageDecisions.${decisionIndex}.reviewedAt`,\n message: \"coverage review cannot be later than the authority evaluation time\",\n });\n decision.sourceRequirementRefs.forEach((reference, referenceIndex) => {\n const requirementAuthority = sourceRequirementAuthorities.get(versionedSourceRequirementKey(reference));\n const sourceAuthority = sourceRecords.get(versionedSourceKey(reference.source));\n const authorityFacts = [\n requirementAuthority && { label: \"source-requirement review\", observedAt: requirementAuthority.reviewedAt },\n sourceAuthority && { label: \"source-rights review\", observedAt: sourceAuthority.rights.reviewedAt },\n sourceAuthority?.retrievedArtifact && { label: \"source-artifact retrieval\", observedAt: sourceAuthority.retrievedArtifact.retrievedAt },\n ].filter((fact): fact is { label: string; observedAt: string } => fact !== undefined);\n authorityFacts.forEach((fact) => {\n if (timestampIsAfter(fact.observedAt, decision.reviewedAt))\n issues.push({\n kind: AssuranceProgramSpecificationIssueKind.TEMPORAL_POLICY_CONFLICT,\n path: `obligationCoverageDecisions.${decisionIndex}.sourceRequirementRefs.${referenceIndex}`,\n message: `coverage review cannot predate the cited ${fact.label} at ${fact.observedAt}`,\n });\n });\n });\n });\n program.sharedResponsibilityRules.forEach((rule, ruleIndex) => {\n if (timestampIsAfter(rule.reviewedAt, snapshot.evaluatedAt))\n issues.push({\n kind: AssuranceProgramSpecificationIssueKind.TEMPORAL_POLICY_CONFLICT,\n path: `sharedResponsibilityRules.${ruleIndex}.reviewedAt`,\n message: \"shared-responsibility review cannot be later than the authority evaluation time\",\n });\n });\n program.obligationRegister.entries.forEach((entry, entryIndex) => {\n if (timestampIsAfter(entry.applicability.decidedAt, snapshot.evaluatedAt))\n issues.push({\n kind: AssuranceProgramSpecificationIssueKind.TEMPORAL_POLICY_CONFLICT,\n path: `obligationRegister.entries.${entryIndex}.applicability.decidedAt`,\n message: \"obligation applicability decision cannot be later than the authority evaluation time\",\n });\n const coverageDecision = program.obligationCoverageDecisions.find(\n (decision) => versionedCoverageDecisionKey(decision) === versionedCoverageDecisionKey(entry.coverageDecision),\n );\n if (coverageDecision && timestampIsAfter(coverageDecision.reviewedAt, entry.applicability.decidedAt))\n issues.push({\n kind: AssuranceProgramSpecificationIssueKind.TEMPORAL_POLICY_CONFLICT,\n path: `obligationRegister.entries.${entryIndex}.applicability.decidedAt`,\n message: `obligation applicability decision cannot predate its approved coverage review at ${coverageDecision.reviewedAt}`,\n });\n if (entry.reviewOn < evaluatedOn)\n issues.push({\n kind: AssuranceProgramSpecificationIssueKind.TEMPORAL_POLICY_CONFLICT,\n path: `obligationRegister.entries.${entryIndex}.reviewOn`,\n message: `obligation review was due before authority evaluation date ${evaluatedOn}`,\n });\n });\n }\n\n objectiveBindings.forEach((binding, index) => {\n const objectiveKey = versionedObjectiveKey(binding.objective);\n const objective = objectiveRecords.get(objectiveKey);\n if (!objective)\n issues.push({\n kind: AssuranceProgramSpecificationIssueKind.UNKNOWN_OBJECTIVE,\n path: `${objectiveBindingCollectionPath}.${index}.objective`,\n message: `objective ${objectiveKey} is absent from the supplied Wildo objective catalog`,\n });\n else if (objective.lifecycleStatus !== AssuranceObjectiveLifecycleStatus.ACTIVE)\n issues.push({\n kind: AssuranceProgramSpecificationIssueKind.UNKNOWN_OBJECTIVE,\n path: `${objectiveBindingCollectionPath}.${index}.objective`,\n message: `objective ${objectiveKey} is ${objective.lifecycleStatus.toLowerCase()} and cannot authorize current application policy`,\n });\n binding.sourceRequirementRefs.forEach((reference) => {\n const authority = sourceRequirementAuthorities.get(versionedSourceRequirementKey(reference));\n if (!authority || versionedObjectiveKey(authority.objective) !== objectiveKey)\n issues.push({\n kind: AssuranceProgramSpecificationIssueKind.UNKNOWN_SOURCE_REQUIREMENT,\n path: `${objectiveBindingCollectionPath}.${index}.sourceRequirementRefs`,\n message: `source requirement ${versionedSourceRequirementKey(reference)} is not reviewed for objective ${objectiveKey}`,\n });\n });\n for (const [field, refs, authorityMap] of [\n [\"implementationExpectationRefs\", binding.implementationExpectationRefs, implementationExpectationAuthorities],\n [\"evidenceExpectationRefs\", binding.evidenceExpectationRefs, evidenceExpectationAuthorities],\n [\"verificationExpectationRefs\", binding.verificationExpectationRefs, verificationExpectationAuthorities],\n ] as const)\n refs.forEach((identity) => {\n const key = versionedExpectationKey(identity);\n const authority = authorityMap.get(key);\n if (!authority || versionedObjectiveKey(authority.objective) !== objectiveKey)\n issues.push({\n kind: AssuranceProgramSpecificationIssueKind.UNKNOWN_VALIDATION_AUTHORITY,\n path: `${objectiveBindingCollectionPath}.${index}.${field}`,\n message: `${key} is not an exact reviewed authority for objective ${objectiveKey}`,\n });\n });\n });\n\n program.roleAuthorities.forEach((authority, index) => {\n if (!applicationRoleRefs.has(authority.applicationRoleRef))\n issues.push({\n kind: AssuranceProgramSpecificationIssueKind.UNKNOWN_ROLE,\n path: `roleAuthorities.${index}.applicationRoleRef`,\n message: `application role ${authority.applicationRoleRef} is absent from the host application-role catalog`,\n });\n });\n\n program.capabilityAuthorities.forEach((authority, index) => {\n const key = versionedCapabilityKey(authority.identity);\n const host = hostCapabilities.get(key);\n /*\n * Two different verdicts hide behind \"does not match the host catalog\", and collapsing them costs an operator\n * the ability to tell \"this host cannot implement the control I accepted\" from \"the control is intact, its\n * bytes moved\". The first can never be resolved by re-accepting; the second is resolved by exactly that.\n * Identity, kind and implementation refs are checked first because a capability that fails any of them is not\n * the accepted control at all — its revision is then irrelevant.\n */\n if (!host || host.capabilityKind !== authority.capabilityKind || JSON.stringify(host.implementationRefs) !== JSON.stringify(authority.implementationRefs)) {\n issues.push({\n kind: AssuranceProgramSpecificationIssueKind.UNKNOWN_CAPABILITY,\n path: `capabilityAuthorities.${index}`,\n message: `capability authority ${key} is absent from the enabled host capability catalog or resolves to a different capability kind or implementation`,\n });\n return;\n }\n const implementationIdentityMatches =\n program.schemaVersion === 1\n ? sourceRevisionKey(host.implementationRevision) === sourceRevisionKey(authority.implementationRevision)\n : authorityBasisIdentityKey(authority.implementationAuthority) ===\n authorityBasisIdentityKey({ basisRef: snapshot.snapshotRef, basisVersion: snapshot.snapshotVersion });\n if (!implementationIdentityMatches)\n issues.push({\n kind: AssuranceProgramSpecificationIssueKind.HOST_CAPABILITY_IMPLEMENTATION_DRIFT,\n path: `capabilityAuthorities.${index}`,\n subjectRef: key,\n message: `capability authority ${key} is offered by the host under a different implementation authority than the one it was accepted against`,\n });\n });\n\n program.implementationDecisions.forEach((decision, decisionIndex) => {\n decision.capabilitySelections.forEach((selection, selectionIndex) => {\n const host = hostCapabilities.get(versionedCapabilityKey(selection));\n if (!host) return;\n host.requiredHostArtifactKindRefs.forEach((artifactKindRef) => {\n if (!hostImplementationArtifactsByKind.has(artifactKindRef))\n issues.push({\n kind: AssuranceProgramSpecificationIssueKind.UNKNOWN_CAPABILITY,\n path: `implementationDecisions.${decisionIndex}.capabilitySelections.${selectionIndex}`,\n message: `capability selection requires host implementation artifact kind ${artifactKindRef}`,\n });\n });\n const profile = selection.profileRef ? host.profiles.find((candidate) => candidate.profileRef === selection.profileRef) : undefined;\n if ((selection.profileRef && !profile) || (!selection.profileRef && host.profiles.length > 0))\n issues.push({\n kind: AssuranceProgramSpecificationIssueKind.UNKNOWN_CAPABILITY,\n path: `implementationDecisions.${decisionIndex}.capabilitySelections.${selectionIndex}.profileRef`,\n message: `capability selection must resolve one exact host-authorized profile`,\n });\n if (profile) {\n const selectedByParameter = new Map(selection.selectedOptions.map((option) => [option.parameterRef, option.selectedOptionRef]));\n profile.parameters.forEach((parameter) => {\n const selected = selectedByParameter.get(parameter.parameterRef);\n if (!selected || !parameter.allowedOptionRefs.includes(selected))\n issues.push({\n kind: AssuranceProgramSpecificationIssueKind.UNKNOWN_CAPABILITY,\n path: `implementationDecisions.${decisionIndex}.capabilitySelections.${selectionIndex}.selectedOptions`,\n message: `profile ${profile.profileRef} requires one allowed option for ${parameter.parameterRef}`,\n });\n });\n selection.selectedOptions.forEach((option) => {\n if (!profile.parameters.some((parameter) => parameter.parameterRef === option.parameterRef))\n issues.push({\n kind: AssuranceProgramSpecificationIssueKind.UNKNOWN_CAPABILITY,\n path: `implementationDecisions.${decisionIndex}.capabilitySelections.${selectionIndex}.selectedOptions`,\n message: `parameter ${option.parameterRef} is absent from profile ${profile.profileRef}`,\n });\n });\n } else if (selection.selectedOptions.length > 0)\n issues.push({\n kind: AssuranceProgramSpecificationIssueKind.UNKNOWN_CAPABILITY,\n path: `implementationDecisions.${decisionIndex}.capabilitySelections.${selectionIndex}.selectedOptions`,\n message: \"selected options require an exact host-authorized profile\",\n });\n });\n });\n\n program.sourceReferences.forEach((reference, index) => {\n const key = versionedSourceKey(reference.identity);\n const record = sourceRecords.get(key);\n if (!record) {\n issues.push({\n kind: AssuranceProgramSpecificationIssueKind.UNKNOWN_SOURCE_AUTHORITY,\n path: `sourceReferences.${index}`,\n message: `source ${key} is absent from the supplied authoritative registry`,\n });\n return;\n }\n if (!sourceReferenceMatchesRecord(reference, record))\n issues.push({\n kind: AssuranceProgramSpecificationIssueKind.SOURCE_AUTHORITY_MISMATCH,\n path: `sourceReferences.${index}`,\n message: `source ${key} does not exactly match its registry metadata, lifecycle and rights identity`,\n });\n const rightsAuthorization = deriveAssuranceRightsAuthorization(record.rights, snapshot.requestedSourceUses, snapshot.evaluatedAt);\n if (!rightsAuthorization.authorized)\n issues.push({\n kind: AssuranceProgramSpecificationIssueKind.SOURCE_RIGHTS_UNAUTHORIZED,\n path: `sourceReferences.${index}.rightsRef`,\n message: `source ${key} is not authorized for ${rightsAuthorization.requestedUses.join(\", \")}: ${rightsAuthorization.reasons.join(\", \")}`,\n });\n const currentApplicability = program.applicabilityDecisions.filter(\n (decision) =>\n versionedSourceKey(decision.source) === key &&\n decision.effectiveFrom <= evaluatedOn &&\n (!decision.effectiveUntil || evaluatedOn <= decision.effectiveUntil),\n );\n if (\n record.lifecycleStatus !== AssuranceSourceLifecycleStatus.ACTIVE &&\n currentApplicability.some((decision) => decision.status !== AssuranceProgramApplicabilityStatus.NOT_APPLICABLE)\n )\n issues.push({\n kind: AssuranceProgramSpecificationIssueKind.SOURCE_LIFECYCLE_CONFLICT,\n path: \"applicabilityDecisions\",\n message: `${record.lifecycleStatus.toLowerCase()} source ${key} cannot authorize a current applicable or undetermined period`,\n });\n if (\n currentApplicability.some((decision) => decision.status !== AssuranceProgramApplicabilityStatus.NOT_APPLICABLE) &&\n (record.publishedOn > evaluatedOn || (record.effectiveOn !== undefined && record.effectiveOn > evaluatedOn))\n )\n issues.push({\n kind: AssuranceProgramSpecificationIssueKind.SOURCE_LIFECYCLE_CONFLICT,\n path: \"applicabilityDecisions\",\n message: `source ${key} cannot authorize current applicability before its publication and effective dates`,\n });\n });\n\n if (program.schemaVersion === 3) {\n const applicabilityDecisionByKey = new Map(\n program.applicabilityDecisions.map((decision) => [versionedApplicabilityDecisionKey(decision), decision] as const),\n );\n program.obligationRegister.entries.forEach((entry, entryIndex) => {\n const citedCurrentDecisions: AssuranceProgramApplicabilityDecision[] = [];\n entry.sourceApplicabilityDecisionRefs.forEach((identity, identityIndex) => {\n const decision = applicabilityDecisionByKey.get(versionedApplicabilityDecisionKey(identity));\n if (decision && (decision.effectiveFrom > evaluatedOn || (decision.effectiveUntil !== undefined && evaluatedOn > decision.effectiveUntil)))\n issues.push({\n kind: AssuranceProgramSpecificationIssueKind.INCOMPLETE_APPLICABILITY,\n path: `obligationRegister.entries.${entryIndex}.sourceApplicabilityDecisionRefs.${identityIndex}`,\n message: `cited source applicability decision ${versionedApplicabilityDecisionKey(identity)} is not current on ${evaluatedOn}`,\n });\n else if (decision) citedCurrentDecisions.push(decision);\n });\n if (\n entry.applicability.status === AssuranceProgramObligationApplicabilityStatus.APPLICABLE &&\n !citedCurrentDecisions.some((decision) => decision.status === AssuranceProgramApplicabilityStatus.APPLICABLE)\n )\n issues.push({\n kind: AssuranceProgramSpecificationIssueKind.RELATIONSHIP_MISMATCH,\n path: `obligationRegister.entries.${entryIndex}.applicability.status`,\n message: \"an applicable obligation requires at least one cited source applicability decision that is currently APPLICABLE\",\n });\n });\n }\n\n const requiredApplicabilitySubjects = new Set<string>();\n objectiveBindings.forEach((binding) =>\n binding.sourceRequirementRefs.forEach((reference) =>\n binding.scopeSelectorRefs.forEach((scopeRef) => requiredApplicabilitySubjects.add(applicabilitySubjectKey(reference.source, scopeRef))),\n ),\n );\n program.sourceReferences.forEach((source) => {\n const matchingScopes = program.applicabilityDecisions\n .filter((decision) => versionedSourceKey(decision.source) === versionedSourceKey(source.identity))\n .map((decision) => decision.scopeSelectorRef);\n matchingScopes.forEach((scopeRef) => requiredApplicabilitySubjects.add(applicabilitySubjectKey(source.identity, scopeRef)));\n });\n requiredApplicabilitySubjects.forEach((subject) => {\n const decisions = program.applicabilityDecisions\n .filter((decision) => applicabilitySubjectKey(decision.source, decision.scopeSelectorRef) === subject)\n .sort((left, right) => compareCanonicalText(left.effectiveFrom, right.effectiveFrom));\n const current = decisions.filter(\n (decision) => decision.effectiveFrom <= evaluatedOn && (!decision.effectiveUntil || evaluatedOn <= decision.effectiveUntil),\n );\n if (current.length !== 1)\n issues.push({\n kind: AssuranceProgramSpecificationIssueKind.INCOMPLETE_APPLICABILITY,\n path: \"applicabilityDecisions\",\n message: `source/scope subject ${subject} requires exactly one decision current on ${evaluatedOn}; found ${current.length}`,\n });\n decisions.forEach((decision, index) => {\n const next = decisions[index + 1];\n if (!next) return;\n if (!decision.effectiveUntil)\n issues.push({\n kind: AssuranceProgramSpecificationIssueKind.TEMPORAL_POLICY_CONFLICT,\n path: \"applicabilityDecisions\",\n message: `open applicability period for ${subject} cannot have a successor`,\n });\n else {\n const nextCalendarDay = new Date(`${decision.effectiveUntil}T00:00:00.000Z`);\n nextCalendarDay.setUTCDate(nextCalendarDay.getUTCDate() + 1);\n if (next.effectiveFrom !== nextCalendarDay.toISOString().slice(0, 10))\n issues.push({\n kind: AssuranceProgramSpecificationIssueKind.TEMPORAL_POLICY_CONFLICT,\n path: \"applicabilityDecisions\",\n message: `declared applicability history for ${subject} contains a temporal gap`,\n });\n }\n });\n });\n\n program.gapsAndExceptions.forEach((finding, index) => {\n if (\n (finding.kind === AssuranceProgramFindingKind.EXCEPTION || finding.disposition === AssuranceGapDisposition.RISK_ACCEPTED) &&\n finding.expiresOn &&\n finding.expiresOn < evaluatedOn\n )\n issues.push({\n kind: AssuranceProgramSpecificationIssueKind.TEMPORAL_POLICY_CONFLICT,\n path: `gapsAndExceptions.${index}.expiresOn`,\n message: `exception or risk acceptance expired before authority evaluation date ${evaluatedOn}`,\n });\n if (finding.disposition !== AssuranceGapDisposition.RESOLVED && finding.reviewOn < evaluatedOn)\n issues.push({\n kind: AssuranceProgramSpecificationIssueKind.TEMPORAL_POLICY_CONFLICT,\n path: `gapsAndExceptions.${index}.reviewOn`,\n message: `open finding review was due before authority evaluation date ${evaluatedOn}`,\n });\n });\n\n if (program.schemaVersion === 1) {\n program.sourceRevisions.forEach((revision, index) => {\n revision.artifacts.forEach((artifact) => {\n if (!hostArtifacts.has(artifact.artifactRef))\n issues.push({\n kind: AssuranceProgramSpecificationIssueKind.UNKNOWN_IMPLEMENTATION_ARTIFACT,\n path: `sourceRevisions.${index}.artifacts`,\n subjectRef: sourceRevisionArtifactSubjectRef(revision.sourceRevisionRef, artifact.artifactRef),\n message: `artifact ${artifact.artifactRef} is absent from the host authority inventory`,\n });\n });\n });\n } else {\n program.authorityBases.forEach((basis, basisIndex) => {\n basis.attestedArtifactRefs.forEach((artifactRef) => {\n if (!hostArtifacts.has(artifactRef))\n issues.push({\n kind: AssuranceProgramSpecificationIssueKind.UNKNOWN_IMPLEMENTATION_ARTIFACT,\n path: `authorityBases.${basisIndex}.attestedArtifactRefs`,\n message: `artifact ${artifactRef} is not attested by the host authority-basis inventory`,\n });\n });\n });\n }\n\n program.implementationStatements.forEach((statement, statementIndex) => {\n if (statement.acceptedAt && timestampIsAfter(statement.acceptedAt, snapshot.evaluatedAt))\n issues.push({\n kind: AssuranceProgramSpecificationIssueKind.RELATIONSHIP_MISMATCH,\n path: `implementationStatements.${statementIndex}.acceptedAt`,\n message: \"implementation-statement acceptance cannot be later than the authority evaluation time\",\n });\n if (statement.invalidatedAt && timestampIsAfter(statement.invalidatedAt, snapshot.evaluatedAt))\n issues.push({\n kind: AssuranceProgramSpecificationIssueKind.RELATIONSHIP_MISMATCH,\n path: `implementationStatements.${statementIndex}.invalidatedAt`,\n message: \"implementation-statement invalidation cannot be later than the authority evaluation time\",\n });\n if (statement.lifecycleStatus !== AssuranceImplementationStatementLifecycleStatus.ACCEPTED) return;\n const objectiveKey = versionedObjectiveKey(statement.objective);\n const binding = objectiveBindings.find(\n (candidate) => versionedObjectiveKey(candidate.objective) === objectiveKey && candidate.scopeSelectorRefs.includes(statement.governanceScope.scopeRef),\n );\n if (!binding) return;\n if (statement.acceptedAt) {\n const causallyCheckedSources = new Set<string>();\n binding.sourceRequirementRefs.forEach((reference) => {\n const authority = sourceRequirementAuthorities.get(versionedSourceRequirementKey(reference));\n if (authority && timestampIsAfter(authority.reviewedAt, statement.acceptedAt))\n issues.push({\n kind: AssuranceProgramSpecificationIssueKind.TEMPORAL_POLICY_CONFLICT,\n path: `implementationStatements.${statementIndex}.acceptedAt`,\n message: `accepted statement predates the bound source-requirement review ${versionedSourceRequirementKey(reference)}`,\n });\n const sourceKey = versionedSourceKey(reference.source);\n if (causallyCheckedSources.has(sourceKey)) return;\n causallyCheckedSources.add(sourceKey);\n const source = sourceRecords.get(sourceKey);\n if (source && timestampIsAfter(source.rights.reviewedAt, statement.acceptedAt))\n issues.push({\n kind: AssuranceProgramSpecificationIssueKind.TEMPORAL_POLICY_CONFLICT,\n path: `implementationStatements.${statementIndex}.acceptedAt`,\n message: `accepted statement predates the source-rights review for ${sourceKey}`,\n });\n if (source?.retrievedArtifact && timestampIsAfter(source.retrievedArtifact.retrievedAt, statement.acceptedAt))\n issues.push({\n kind: AssuranceProgramSpecificationIssueKind.TEMPORAL_POLICY_CONFLICT,\n path: `implementationStatements.${statementIndex}.acceptedAt`,\n message: `accepted statement predates the retrieved source artifact for ${sourceKey}`,\n });\n });\n }\n const statementCapabilities = new Set(statement.capabilityBindingRefs.map((identity) => identity.capabilityRef));\n const statementEvidence = new Set(statement.expectedEvidence.map((requirement) => requirement.requirementRef));\n const statementVerification = new Set(statement.verificationExpectations.map((expectation) => expectation.expectationRef));\n binding.implementationExpectationRefs.forEach((identity) => {\n const authority = implementationExpectationAuthorities.get(versionedExpectationKey(identity));\n if (authority?.requiredCapabilityRefs.some((capabilityRef) => !statementCapabilities.has(capabilityRef)))\n issues.push({\n kind: AssuranceProgramSpecificationIssueKind.RELATIONSHIP_MISMATCH,\n path: `implementationStatements.${statementIndex}.capabilityBindingRefs`,\n message: `${versionedExpectationKey(identity)} is not satisfied by the accepted statement capabilities`,\n });\n });\n binding.evidenceExpectationRefs.forEach((identity) => {\n const authority = evidenceExpectationAuthorities.get(versionedExpectationKey(identity));\n if (authority?.requiredStatementEvidenceRefs.some((requirementRef) => !statementEvidence.has(requirementRef)))\n issues.push({\n kind: AssuranceProgramSpecificationIssueKind.RELATIONSHIP_MISMATCH,\n path: `implementationStatements.${statementIndex}.expectedEvidence`,\n message: `${versionedExpectationKey(identity)} is not satisfied by the accepted statement evidence requirements`,\n });\n });\n binding.verificationExpectationRefs.forEach((identity) => {\n const authority = verificationExpectationAuthorities.get(versionedExpectationKey(identity));\n if (authority?.requiredStatementVerificationRefs.some((expectationRef) => !statementVerification.has(expectationRef)))\n issues.push({\n kind: AssuranceProgramSpecificationIssueKind.RELATIONSHIP_MISMATCH,\n path: `implementationStatements.${statementIndex}.verificationExpectations`,\n message: `${versionedExpectationKey(identity)} is not satisfied by the accepted statement verification expectations`,\n });\n });\n });\n return { ok: issues.length === 0, issues };\n};\n/** @wildo_source:part:end saas.specifications.assurance-program.contract */\n"]}
|
|
1
|
+
{"version":3,"file":"assurance-program.schemas.js","sourceRoot":"","sources":["../../../src/assurance/assurance-program.schemas.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AACH,OAAO,EAAE,sBAAsB,EAAE,MAAM,uBAAuB,CAAC;AAE/D,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EACL,cAAc,EACd,mCAAmC,EACnC,4BAA4B,EAC5B,wCAAwC,EACxC,qCAAqC,EACrC,+BAA+B,EAC/B,sCAAsC,EACtC,0BAA0B,EAC1B,kBAAkB,GACnB,MAAM,uBAAuB,CAAC;AAE/B,OAAO,EACL,iCAAiC,EACjC,uBAAuB,EACvB,4BAA4B,EAC5B,+CAA+C,EAC/C,kDAAkD,EAClD,sCAAsC,EACtC,sBAAsB,EACtB,0BAA0B,EAC1B,4BAA4B,EAC5B,+BAA+B,EAC/B,iCAAiC,EACjC,2BAA2B,EAC3B,gCAAgC,EAChC,+CAA+C,GAGhD,MAAM,gCAAgC,CAAC;AACxC,OAAO,EACL,uCAAuC,EACvC,4CAA4C,EAC5C,8CAA8C,GAC/C,MAAM,qCAAqC,CAAC;AAC7C,OAAO,EACL,6BAA6B,EAC7B,4BAA4B,EAC5B,6BAA6B,EAC7B,8BAA8B,EAC9B,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AAc,CAAC,CAAC;gBACnH,MAAM,CAAC,IAAI,CAAC;oBACV,IAAI,EAAE,sCAAsC,CAAC,qBAAqB;oBAClE,IAAI,EAAE,4BAA4B,cAAc,2BAA2B;oBAC3E,OAAO,EAAE,GAAG,uBAAuB,CAAC,QAAQ,CAAC,uEAAuE;iBACrH,CAAC,CAAC;QACP,CAAC,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;IACH,OAAO,EAAE,EAAE,EAAE,MAAM,CAAC,MAAM,KAAK,CAAC,EAAE,MAAM,EAAE,CAAC;AAC7C,CAAC,CAAC;AACF,4EAA4E","sourcesContent":["/**\n * entrypoint-closure-waiver: MEASURED SAFE 2026-08-13 — same measurement as `assurance.exports`,\n * of which this module is one publication. It is root-reachable only through that barrel (see the\n * waiver there for the probe and its result), and it crosses into three sibling `assurance/**`\n * modules that the root does not publish. The root-only consumer compile that exercises the\n * root-exported `application-creation` schemas built on these types is clean, with the emitted\n * declaration naming `@wildo-ai/saas-specifications/assurance`.\n *\n * Re-run that probe if this module's public surface starts appearing in a root-exported contract\n * by some path other than `application-creation`; the waiver records a measurement, not a proof\n * about every future shape.\n */\nimport { CoreAuditableEventType } from \"@wildo-ai/saas-models\";\n\nimport { z } from \"zod\";\nimport {\n ALL_ZOD_ISSUES,\n GovernedDocumentApplicabilityStatus,\n GovernedDocumentAudienceKind,\n GovernedDocumentDefinitionIdentitySchema,\n GovernedDocumentGovernanceScopeSchema,\n GovernedDocumentInteractionKind,\n GovernedDocumentPublicationChannelKind,\n GovernedDocumentReviewKind,\n summarizeZodIssues,\n} from \"@wildo-ai/saas-models\";\n\nimport {\n AssuranceCapabilityIdentitySchema,\n AssuranceGapDisposition,\n AssuranceGovernanceActorKind,\n AssuranceImplementationStatementLifecycleStatus,\n AssuranceImplementationStatementCommonFieldsSchema,\n AssuranceImplementationStatementSchema,\n AssuranceIsoDateSchema,\n AssuranceIsoDateTimeSchema,\n AssuranceNamespacedRefSchema,\n AssuranceObjectiveCatalogSchema,\n AssuranceObjectiveLifecycleStatus,\n AssuranceVerificationMethod,\n AssuranceObjectiveIdentitySchema,\n addAssuranceImplementationStatementCommonIssues,\n type AssuranceImplementationStatement,\n type AssuranceObjectiveCatalog,\n} from \"./assurance-foundation.schemas\";\nimport {\n AssuranceDocumentAuthorityCatalogSchema,\n assuranceDocumentQualifiedReviewRequirements,\n collectAssuranceDocumentAuthorityCatalogIssues,\n} from \"./assurance-document-system.schemas\";\nimport {\n AssuranceSourceRegistrySchema,\n AssuranceSourceAuthorityKind,\n AssuranceSourceIdentitySchema,\n AssuranceSourceLifecycleStatus,\n AssuranceSourceUse,\n deriveAssuranceRightsAuthorization,\n type AssuranceSourceIdentity,\n type AssuranceSourceRecord,\n type AssuranceSourceRegistry,\n} from \"./assurance-sources.schemas\";\n\nconst valuesAreUnique = (values: readonly string[]): boolean => new Set(values).size === values.length;\nconst compareCanonicalText = (left: string, right: string): number => (left < right ? -1 : left > right ? 1 : 0);\nconst valuesAreLexicallySorted = (values: readonly string[]): boolean =>\n values.every((value, index) => index === 0 || compareCanonicalText(values[index - 1]!, value) <= 0);\n\nconst timestampIsAfter = (candidate: string, boundary: string): boolean => Date.parse(candidate) > Date.parse(boundary);\nconst utcIsoDateFromInstant = (timestamp: string): string => new Date(Date.parse(timestamp)).toISOString().slice(0, 10);\nconst hostImplementationArtifactOrderKey = (artifact: { artifactKindRef: string; artifactRef: string }): string =>\n `${artifact.artifactKindRef}\\0${artifact.artifactRef}`;\n\nconst addUniqueSortedIssue = (values: readonly string[], context: z.RefinementCtx, path: PropertyKey[], label: string): void => {\n if (!valuesAreUnique(values) || !valuesAreLexicallySorted(values)) {\n context.addIssue({ code: \"custom\", message: `${label} must be unique and lexically sorted`, path });\n }\n};\n\n/**\n * @wildo_source:part:start saas.specifications.assurance-program.contract facet:layer:specification facet:family:assurance\n *\n * Application-policy decision state. Missing knowledge remains explicit and cannot be interpreted as non-applicability.\n */\nexport enum AssuranceProgramApplicabilityStatus {\n APPLICABLE = \"APPLICABLE\",\n NOT_APPLICABLE = \"NOT_APPLICABLE\",\n UNDETERMINED = \"UNDETERMINED\",\n}\n\n/** Declarative scope selector kinds. Live organization and user identities remain runtime facts. */\nexport enum AssuranceProgramScopeSelectorKind {\n APPLICATION = \"APPLICATION\",\n ORGANIZATION_POLICY = \"ORGANIZATION_POLICY\",\n}\n\n/** Honest capability-resolution vocabulary. None of these values is a compliance verdict. */\nexport enum AssuranceProgramCapabilityResolution {\n IMPLEMENTABLE = \"IMPLEMENTABLE\",\n PARTIAL = \"PARTIAL\",\n HUMAN_OR_EXTERNAL = \"HUMAN_OR_EXTERNAL\",\n UNSUPPORTED = \"UNSUPPORTED\",\n}\n\n/** Increasing proof stages without a flattened aggregate `COMPLIANT` state. */\nexport enum AssuranceProgramProofStage {\n SELECTED = \"SELECTED\",\n CONFIGURED = \"CONFIGURED\",\n OPERATING = \"OPERATING\",\n EVIDENCED = \"EVIDENCED\",\n ASSESSED = \"ASSESSED\",\n}\n\n/**\n * WHERE the evidence for one demand lives — and therefore what kind of query a collector must write.\n *\n * Routing a collector is the member set's ONLY job, so it discriminates on the one axis a collector\n * cares about: **can one query, written once, serve every application?** A vocabulary that cannot\n * answer that has to be supplemented out of band, which puts the discrimination somewhere less\n * visible than the vocabulary itself.\n *\n * Settled on #384 from FIVE paper bodies (`__evidence-plane-slice__/`), after two of them found\n * evidence that no member covered. The rejected alternative is recorded because it is the one that\n * looks right: widening `EMITTED` to \"any durable execution/event record\" absorbs both cases with no\n * new member — and also absorbs every product row in every application, so the member comes to mean\n * \"somewhere durable\" and stops discriminating. What ships is that widening BOUNDED BY OWNER, plus\n * the member the bound makes necessary.\n */\nexport enum AssuranceEvidenceHome {\n /** The committed specification IS the evidence. Uniform across applications; one query. */\n DECLARED = \"DECLARED\",\n /**\n * An ENGINE-owned durable record class — the audit trail, or a batch execution record. Uniform\n * across applications because the engine authors the store, so one query serves all.\n *\n * Widened from \"an audit-row class\" by `retention-window-declaration`, whose control emits no\n * auditable event by design (a database TTL deletes silently) and whose evidence is the sweep's\n * execution record.\n */\n EMITTED = \"EMITTED\",\n /**\n * An APPLICATION-authored durable record — a product resource row.\n *\n * Distinct from `EMITTED` because the schema, the status vocabulary and the operation refs are that\n * application's own, so a collector can only query it against that application's specification.\n * Found by `subject-erasure-execution-record`, whose entire intake/withdrawal/execution evidence is\n * an application resource row and for which no audit member exists at all.\n */\n APPLICATION_RECORDED = \"APPLICATION_RECORDED\",\n /** A human act, supplied as a host artifact. Nothing in the running system produces it. */\n PERFORMED = \"PERFORMED\",\n /**\n * Authored, and nothing produces it — a VALUE, never an absence.\n *\n * It carries no severity against an application: a demand nothing can evidence is a framework gap,\n * and raising it against every application forever is noise rather than a finding.\n */\n UNPRODUCED = \"UNPRODUCED\",\n}\n\n/**\n * WHERE the control runs, and therefore what evidence about it can ever exist.\n *\n * Kept separate from the home because a multi-clause intent routinely spans both axes independently,\n * and flattening them lets a reviewer accept a declaration as proof of a runtime property — the\n * error `selected-processor-declaration` was written to prevent, where one clause is a committed\n * selection and its sibling is a claim about behaviour under no selection.\n */\nexport enum AssuranceEvidenceExecutionPlane {\n /** Can evidence that a control is DECLARED or CONFIGURED. Never that it operated. */\n META_APPLICATION = \"META_APPLICATION\",\n /** Can evidence that a control OPERATES when driven. Attests the build it ran against. */\n VERIFICATION = \"VERIFICATION\",\n /** Can evidence that a control operated over a period — the only plane that can. */\n PRODUCTION = \"PRODUCTION\",\n}\n\nexport enum AssuranceProgramCapabilityKind {\n ENGINE = \"ENGINE\",\n PROVIDER = \"PROVIDER\",\n APPLICATION = \"APPLICATION\",\n HUMAN_OR_EXTERNAL = \"HUMAN_OR_EXTERNAL\",\n}\n\nexport enum AssuranceProgramFindingKind {\n GAP = \"GAP\",\n EXCEPTION = \"EXCEPTION\",\n}\n\n/** Applicability of one Wildo obligation outcome, distinct from source-level applicability and runtime activation. */\nexport enum AssuranceProgramObligationApplicabilityStatus {\n APPLICABLE = \"APPLICABLE\",\n NOT_APPLICABLE = \"NOT_APPLICABLE\",\n UNDETERMINED = \"UNDETERMINED\",\n}\n\n/** Conditional enforcement effect once a later, separately governed lifecycle assessment activates the obligation. */\nexport enum AssuranceProgramObligationBlockingEffect {\n HARD = \"HARD\",\n ADVISORY = \"ADVISORY\",\n}\n\n/** Human review disposition for an exact obligation coverage claim retained inside the accepted program. */\nexport enum AssuranceProgramObligationCoverageReviewDisposition {\n APPROVED = \"APPROVED\",\n REJECTED = \"REJECTED\",\n}\n\n/** Whether shared responsibility has no actor precedence or names one actor whose decision prevails on conflict. */\nexport enum AssuranceProgramSharedResponsibilityPrecedenceMode {\n SHARED_WITHOUT_PRECEDENCE = \"SHARED_WITHOUT_PRECEDENCE\",\n NAMED_ACTOR_PRECEDENCE = \"NAMED_ACTOR_PRECEDENCE\",\n}\n\nexport enum AssuranceProgramDocumentApprovalRequirement {\n APPROVAL_REQUIRED = \"APPROVAL_REQUIRED\",\n NO_APPROVAL_REQUIRED = \"NO_APPROVAL_REQUIRED\",\n}\n\n/** One source artifact contributing to an accepted implementation revision, by its stable ref. */\nexport const AssuranceProgramSourceRevisionArtifactSchema = z.strictObject({\n artifactRef: AssuranceNamespacedRefSchema,\n});\nexport type AssuranceProgramSourceRevisionArtifact = z.infer<typeof AssuranceProgramSourceRevisionArtifactSchema>;\n\n/**\n * Content-addressed application-owned implementation fact supplied by the host at authority-composition time.\n *\n * Unlike `AssuranceProgramSourceRevisionArtifact`, this artifact does not claim to be framework implementation source. It binds the current configured application's\n * compiled state (for example, its subject-export resource graph) into the private authority snapshot used to validate application-specific implementation claims.\n */\nexport const AssuranceProgramHostImplementationArtifactSchema = z.strictObject({\n artifactRef: AssuranceNamespacedRefSchema,\n artifactKindRef: AssuranceNamespacedRefSchema,\n /**\n * Exact portable canonical fact bytes, retained so a later reader can re-derive the claim.\n *\n * The material is the evidence; it carried a self-hash until 2026-08-27, which verified these\n * bytes against a digest stored beside them and therefore proved nothing a reader could not see.\n */\n canonicalMaterial: z.string().min(1),\n});\nexport type AssuranceProgramHostImplementationArtifact = z.infer<typeof AssuranceProgramHostImplementationArtifactSchema>;\n\n/** Implementation-source bundle: a named revision and the ordered artifact inventory it covers. */\nexport const AssuranceProgramSourceRevisionSchema = z\n .strictObject({\n sourceRevisionRef: AssuranceNamespacedRefSchema,\n artifacts: z.array(AssuranceProgramSourceRevisionArtifactSchema).min(1),\n })\n .superRefine((revision, context) => {\n addUniqueSortedIssue(\n revision.artifacts.map((artifact) => artifact.artifactRef),\n context,\n [\"artifacts\"],\n \"source revision artifact refs\",\n );\n });\nexport type AssuranceProgramSourceRevision = z.infer<typeof AssuranceProgramSourceRevisionSchema>;\n\n/**\n * Stable durable subject for one artifact occurrence in a retained v1 source revision.\n *\n * V1 permits the same `artifactRef` in several distinct source revisions. Durable divergence receipts key issues\n * by `(kind, subjectRef)`, so the artifact ref alone would collapse those valid occurrences. A canonical JSON tuple\n * preserves both identity axes without introducing delimiter ambiguity. Consumers must treat this value as opaque.\n */\nconst sourceRevisionArtifactSubjectRef = (sourceRevisionRef: string, artifactRef: string): string => JSON.stringify([sourceRevisionRef, artifactRef]);\n\nconst AssuranceProgramSourceRevisionIdentitySchema = z.strictObject({\n sourceRevisionRef: AssuranceNamespacedRefSchema,\n});\n\n/**\n * Stable identity of one framework-owned authority basis — `basisRef` at `basisVersion`.\n *\n * `basisVersion` is the declared COMPATIBILITY GENERATION: equal versions promise the same\n * interpretation contract. An application pins this identity, so it re-accepts its controls when\n * the framework's contract generation moves — not on every engine byte.\n *\n * There is deliberately no content digest. Until 2026-08-27 there was, and it cost a re-acceptance\n * ritual four times in four days on one application: the pinned hash moved whenever any of the\n * digested engine sources moved, including for purely additive changes that altered no control.\n * Which BYTES an acceptance was made against is answered by the engine's committed git revision\n * plus the commit that recorded the acceptance — both of which merge across branches, which a hash\n * does not (`.claude/rules/one-source-of-truth.md`).\n */\nexport const AssuranceProgramAuthorityBasisIdentitySchema = z.strictObject({\n basisRef: AssuranceNamespacedRefSchema,\n basisVersion: z.number().int().positive(),\n});\nexport type AssuranceProgramAuthorityBasisIdentity = z.infer<typeof AssuranceProgramAuthorityBasisIdentitySchema>;\n\n/** Application-authored basis identity plus the exact engine artifact refs whose meaning it attests. */\nexport const AssuranceProgramAuthorityBasisReferenceSchema = AssuranceProgramAuthorityBasisIdentitySchema.extend({\n attestedArtifactRefs: z.array(AssuranceNamespacedRefSchema).min(1),\n}).superRefine((reference, context) => {\n addUniqueSortedIssue(reference.attestedArtifactRefs, context, [\"attestedArtifactRefs\"], \"attestedArtifactRefs\");\n});\nexport type AssuranceProgramAuthorityBasisReference = z.infer<typeof AssuranceProgramAuthorityBasisReferenceSchema>;\n\n/** Application semantic role bound to one actual application role definition and its exact source revision. */\nexport const AssuranceProgramRoleAuthoritySchema = z.strictObject({\n roleRef: AssuranceNamespacedRefSchema,\n applicationRoleRef: z.string().trim().min(1),\n definitionRevision: AssuranceProgramSourceRevisionIdentitySchema,\n});\nexport type AssuranceProgramRoleAuthority = z.infer<typeof AssuranceProgramRoleAuthoritySchema>;\n\n/** Current role authority bound to one exact framework authority basis rather than its internal inventory. */\nexport const AssuranceProgramRoleAuthorityV2Schema = z.strictObject({\n roleRef: AssuranceNamespacedRefSchema,\n applicationRoleRef: z.string().trim().min(1),\n definitionAuthority: AssuranceProgramAuthorityBasisIdentitySchema,\n});\nexport type AssuranceProgramRoleAuthorityV2 = z.infer<typeof AssuranceProgramRoleAuthorityV2Schema>;\n\n/** Versioned implementation authority for a selectable engine, provider, application or human/external capability. */\nexport const AssuranceProgramCapabilityAuthoritySchema = z\n .strictObject({\n identity: AssuranceCapabilityIdentitySchema,\n capabilityKind: z.enum(AssuranceProgramCapabilityKind),\n implementationRefs: z.array(AssuranceNamespacedRefSchema).min(1),\n implementationRevision: AssuranceProgramSourceRevisionIdentitySchema,\n })\n .superRefine((authority, context) => {\n addUniqueSortedIssue(authority.implementationRefs, context, [\"implementationRefs\"], \"implementationRefs\");\n });\nexport type AssuranceProgramCapabilityAuthority = z.infer<typeof AssuranceProgramCapabilityAuthoritySchema>;\n\n/** Current capability authority bound to one exact framework authority basis rather than its internal inventory. */\nexport const AssuranceProgramCapabilityAuthorityV2Schema = z\n .strictObject({\n identity: AssuranceCapabilityIdentitySchema,\n capabilityKind: z.enum(AssuranceProgramCapabilityKind),\n implementationRefs: z.array(AssuranceNamespacedRefSchema).min(1),\n implementationAuthority: AssuranceProgramAuthorityBasisIdentitySchema,\n })\n .superRefine((authority, context) => {\n addUniqueSortedIssue(authority.implementationRefs, context, [\"implementationRefs\"], \"implementationRefs\");\n });\nexport type AssuranceProgramCapabilityAuthorityV2 = z.infer<typeof AssuranceProgramCapabilityAuthorityV2Schema>;\n\nexport const AssuranceProgramFindingIdentitySchema = z.strictObject({\n findingRef: AssuranceNamespacedRefSchema,\n findingVersion: z.number().int().positive(),\n});\nexport type AssuranceProgramFindingIdentity = z.infer<typeof AssuranceProgramFindingIdentitySchema>;\n\nexport const AssuranceProgramExpectationIdentitySchema = z.strictObject({\n expectationRef: AssuranceNamespacedRefSchema,\n expectationVersion: z.number().int().positive(),\n});\nexport type AssuranceProgramExpectationIdentity = z.infer<typeof AssuranceProgramExpectationIdentitySchema>;\n\nexport const AssuranceProgramCapabilityProfileAuthoritySchema = z\n .strictObject({\n profileRef: AssuranceNamespacedRefSchema,\n parameters: z.array(\n z\n .strictObject({\n parameterRef: AssuranceNamespacedRefSchema,\n allowedOptionRefs: z.array(AssuranceNamespacedRefSchema).min(1),\n })\n .superRefine((parameter, context) => addUniqueSortedIssue(parameter.allowedOptionRefs, context, [\"allowedOptionRefs\"], \"allowedOptionRefs\")),\n ),\n })\n .superRefine((profile, context) => {\n addUniqueSortedIssue(\n profile.parameters.map((parameter) => parameter.parameterRef),\n context,\n [\"parameters\"],\n \"profile parameter refs\",\n );\n });\n\nexport const AssuranceProgramCapabilitySelectionAuthoritySchema = AssuranceProgramCapabilityAuthoritySchema.extend({\n profiles: z.array(AssuranceProgramCapabilityProfileAuthoritySchema),\n requiredHostArtifactKindRefs: z.array(AssuranceNamespacedRefSchema),\n}).superRefine((authority, context) => {\n addUniqueSortedIssue(\n authority.profiles.map((profile) => profile.profileRef),\n context,\n [\"profiles\"],\n \"capability profile refs\",\n );\n addUniqueSortedIssue(authority.requiredHostArtifactKindRefs, context, [\"requiredHostArtifactKindRefs\"], \"required host artifact kind refs\");\n});\n\nexport const AssuranceProgramSourceRequirementAuthoritySchema = z.strictObject({\n source: AssuranceSourceIdentitySchema,\n requirementRef: AssuranceNamespacedRefSchema,\n requirementVersion: z.number().int().positive(),\n objective: AssuranceObjectiveIdentitySchema,\n canonicalLocator: z.url(),\n reviewedByRef: AssuranceNamespacedRefSchema,\n reviewedAt: AssuranceIsoDateTimeSchema,\n});\n\nexport const AssuranceProgramImplementationExpectationAuthoritySchema = z\n .strictObject({\n identity: AssuranceProgramExpectationIdentitySchema,\n objective: AssuranceObjectiveIdentitySchema,\n requiredCapabilityRefs: z.array(AssuranceNamespacedRefSchema).min(1),\n })\n .superRefine((authority, context) => addUniqueSortedIssue(authority.requiredCapabilityRefs, context, [\"requiredCapabilityRefs\"], \"requiredCapabilityRefs\"));\n\n/**\n * What one evidence demand actually ASKS FOR — the content behind an otherwise opaque\n * `evidence-requirement:*` slug.\n *\n * Derived from the five paper bodies in `__evidence-plane-slice__/` rather than designed ahead of\n * them (#302's whole premise: a schema error costs 1/49th here of what it costs after authoring at\n * scale). The shape is what all five converged on, and the per-clause split is not decoration —\n * three of the five carry clauses that do NOT share a home or a plane, and a single home per demand\n * would have flattened exactly the distinction those bodies exist to record.\n */\nexport const AssuranceEvidenceRequirementClauseSchema = z.strictObject({\n /** Stable within the body — `C1`, `C2` — so a finding can name the clause it failed. */\n clauseRef: z.string().trim().regex(/^C[0-9]+$/u),\n /** The obligation in the objective's own terms, one clause of its intent. */\n obligation: z.string().trim().min(1),\n home: z.enum(AssuranceEvidenceHome),\n plane: z.enum(AssuranceEvidenceExecutionPlane),\n /**\n * For an `EMITTED` clause whose store is the audit trail: the event members that satisfy it, DERIVED\n * from `CoreAuditableEventType` rather than transcribed.\n *\n * Structured rather than named in prose, and the reason is the harness's own most error-prone step:\n * *\"before naming any audit member, check it has an EMITTER\"*. A member that is declared but never\n * emitted raises a MAJOR against a working control the first time its activity occurs — which the\n * first drafted body did, with `USER_MFA_ENABLED`. As a typed array the members are checkable by a\n * test instead of by an author's memory, and a collector reads the query off the demand rather than\n * parsing English out of `minimumEvidence`.\n *\n * Optional because only an audit-trail-backed clause has them: an application resource row, a batch\n * execution record and a host artifact are all `EMITTED` or otherwise without audit members.\n */\n requiredAuditEventMembers: z.array(z.enum(CoreAuditableEventType)).min(1).optional(),\n /**\n * Why this home, stated as the reasoning that is NOT the proxy.\n *\n * Required, because both available proxies are wrong often enough to matter: the attesting\n * capability misread `PRIVILEGED_REVIEW` as an audit row when it is a human act, and the ref's head\n * noun misread `retention-window-declaration` as `DECLARED` when its clauses demand enforcement.\n */\n homeRationale: z.string().trim().min(1),\n});\n\n/** @see AssuranceEvidenceRequirementClauseSchema */\nexport const AssuranceEvidenceRequirementBodySchema = z.strictObject({\n schemaVersion: z.literal(1),\n /**\n * Whether the demand applies to THIS application at all, and how a judge decides.\n *\n * First field on purpose. `subject-erasure-execution-record` is majority application-owned, and an\n * application that never built an erasure lane has not failed a control — it declared none. A body\n * without this field invites a nonconformity against every application that does not implement it.\n */\n applicability: z.string().trim().min(1),\n clauses: z.array(AssuranceEvidenceRequirementClauseSchema).min(1),\n /** The artifacts that, at minimum, satisfy the demand — named vocabulary members, never prose lists. */\n minimumEvidence: z.string().trim().min(1),\n /** Mechanical enough that two judges gather the same thing. */\n verificationSteps: z.array(z.string().trim().min(1)).min(1),\n /**\n * What an absence or failure MEANS, so severity follows evidenced risk rather than wording\n * intensity — and so a control that operated with a missing evidence export stays an OBSERVATION\n * rather than becoming a nonconformity.\n */\n severityGuidance: z.string().trim().min(1),\n /** What the evidence does NOT prove, and what would make it stale. */\n limits: z.string().trim().min(1),\n});\n\nexport type AssuranceEvidenceRequirementBody = z.infer<typeof AssuranceEvidenceRequirementBodySchema>;\n\nexport const AssuranceProgramEvidenceExpectationAuthoritySchema = z\n .strictObject({\n identity: AssuranceProgramExpectationIdentitySchema,\n objective: AssuranceObjectiveIdentitySchema,\n requiredStatementEvidenceRefs: z.array(AssuranceNamespacedRefSchema).min(1),\n /**\n * REQUIRED since 2026-09-10, when the catalog completed at 51 of 51 (#296 / #302).\n *\n * It was optional only so the basis stayed parseable while the tranche was authored, and the\n * comment here said so — *\"NOT as a permanent posture: a demand with no body is a slug a\n * collector cannot act on\"*. That is the whole reason to close it now rather than to leave a\n * harmless-looking optional in place: an optional field is an invitation to add a fifty-second\n * binding with no body, and nothing would have said anything.\n *\n * The change costs nothing at runtime — every binding already composes a body, so the composer's\n * conditional spread had become unconditional in effect — and it buys a COMPILE-TIME guarantee\n * that a new evidence demand arrives with the thing that makes it actionable.\n *\n * Note the verification authority beside this one is still optional, deliberately: that tranche\n * is a separate population and is not complete. Do not close both because they look alike.\n */\n body: AssuranceEvidenceRequirementBodySchema,\n })\n .superRefine((authority, context) =>\n addUniqueSortedIssue(authority.requiredStatementEvidenceRefs, context, [\"requiredStatementEvidenceRefs\"], \"requiredStatementEvidenceRefs\"),\n );\n\n/**\n * What a VERIFICATION demand actually asks someone to do.\n *\n * The verification plane was degenerate until 2026-09-08: `requiredStatementVerificationRefs` held the\n * expectation's own ref in 50 of 50 bindings, so the demand said \"to verify X, see X\" and stated\n * nothing a verifier could act on (#452). The evidence axis beside it was never degenerate, which is\n * what made the defect specific to this tier rather than a modelling slip.\n *\n * Deliberately NOT a copy of {@link AssuranceEvidenceRequirementBodySchema}. They answer different\n * questions and conflating them is how a verification demand becomes a second evidence list:\n *\n * - EVIDENCE asks *what artifact proves this ran* — a row, an export, a declaration.\n * - VERIFICATION asks *what a person or a test DOES to establish the control holds*, and what that\n * act cannot establish.\n *\n * `acceptableMethods` is the field that makes it a demand rather than prose: it is drawn from\n * {@link AssuranceVerificationMethod}, so a body states which kinds of act satisfy it and an\n * application's own `AssuranceVerificationExpectation.method` can be checked against it.\n */\nexport const AssuranceVerificationRequirementBodySchema = z.strictObject({\n schemaVersion: z.literal(1),\n /**\n * Whether the demand applies to THIS application, and how a judge decides — first field for the\n * same reason as on the evidence body: an application that declared no lane has not failed a\n * control, and a body without this invites a nonconformity against everyone who did not build it.\n */\n applicability: z.string().trim().min(1),\n /** Which kinds of act satisfy the demand. Named vocabulary members, never prose. */\n acceptableMethods: z.array(z.enum(AssuranceVerificationMethod)).min(1),\n /** Mechanical enough that two verifiers perform the same act and can disagree about the result. */\n procedure: z.array(z.string().trim().min(1)).min(1),\n /** What a PASS looks like, stated so it can be false. */\n passCriteria: z.string().trim().min(1),\n /**\n * What this act does NOT establish. The counterpart of an application's `limitationRefs`, and the\n * field that stops a verification being read as operating effectiveness.\n */\n knownLimitations: z.string().trim().min(1),\n /** What a failure MEANS, so severity follows evidenced risk rather than wording intensity. */\n severityGuidance: z.string().trim().min(1),\n});\n\nexport type AssuranceVerificationRequirementBody = z.infer<typeof AssuranceVerificationRequirementBodySchema>;\n\nexport const AssuranceProgramVerificationExpectationAuthoritySchema = z\n .strictObject({\n identity: AssuranceProgramExpectationIdentitySchema,\n objective: AssuranceObjectiveIdentitySchema,\n requiredStatementVerificationRefs: z.array(AssuranceNamespacedRefSchema).min(1),\n /**\n * OPTIONAL while the bodies are authored, exactly as on the evidence authority beside it.\n *\n * Optional so the basis stays parseable during the tranche, NOT as a permanent posture: a demand\n * with no body is a slug a verifier cannot act on. It becomes required when the catalog is\n * complete.\n */\n body: AssuranceVerificationRequirementBodySchema.optional(),\n })\n .superRefine((authority, context) =>\n addUniqueSortedIssue(authority.requiredStatementVerificationRefs, context, [\"requiredStatementVerificationRefs\"], \"requiredStatementVerificationRefs\"),\n );\n\nexport const AssuranceProgramValidationAuthoritySnapshotSchema = z\n .strictObject({\n schemaVersion: z.literal(1),\n snapshotRef: AssuranceNamespacedRefSchema,\n snapshotVersion: z.number().int().positive(),\n evaluatedAt: AssuranceIsoDateTimeSchema,\n requestedSourceUses: z.array(z.enum(AssuranceSourceUse)).min(1),\n sourceRegistry: AssuranceSourceRegistrySchema,\n /** Optional only so retained pre-document-system snapshots stay parseable. */\n documentAuthorityCatalog: AssuranceDocumentAuthorityCatalogSchema.optional(),\n objectiveCatalog: AssuranceObjectiveCatalogSchema,\n applicationRoleRefs: z.array(z.string().trim().min(1)).min(1),\n capabilityAuthorities: z.array(AssuranceProgramCapabilitySelectionAuthoritySchema),\n implementationArtifacts: z.array(AssuranceProgramSourceRevisionArtifactSchema).min(1),\n hostImplementationArtifacts: z.array(AssuranceProgramHostImplementationArtifactSchema),\n sourceRequirementAuthorities: z.array(AssuranceProgramSourceRequirementAuthoritySchema),\n implementationExpectationAuthorities: z.array(AssuranceProgramImplementationExpectationAuthoritySchema),\n evidenceExpectationAuthorities: z.array(AssuranceProgramEvidenceExpectationAuthoritySchema),\n verificationExpectationAuthorities: z.array(AssuranceProgramVerificationExpectationAuthoritySchema),\n })\n .superRefine((snapshot, context) => {\n addUniqueSortedIssue(snapshot.requestedSourceUses, context, [\"requestedSourceUses\"], \"requestedSourceUses\");\n addUniqueSortedIssue(snapshot.applicationRoleRefs, context, [\"applicationRoleRefs\"], \"applicationRoleRefs\");\n addUniqueSortedIssue(\n snapshot.capabilityAuthorities.map((authority) => `${authority.identity.capabilityRef}@${authority.identity.capabilityVersion}`),\n context,\n [\"capabilityAuthorities\"],\n \"capability authority identities\",\n );\n addUniqueSortedIssue(\n snapshot.implementationArtifacts.map((artifact) => artifact.artifactRef),\n context,\n [\"implementationArtifacts\"],\n \"implementation artifact refs\",\n );\n const hostArtifactRefs = snapshot.hostImplementationArtifacts.map((artifact) => artifact.artifactRef);\n const hostArtifactKindRefs = snapshot.hostImplementationArtifacts.map((artifact) => artifact.artifactKindRef);\n if (!valuesAreUnique(hostArtifactRefs)) {\n context.addIssue({ code: \"custom\", message: \"host implementation artifact refs must be unique\", path: [\"hostImplementationArtifacts\"] });\n }\n if (!valuesAreUnique(hostArtifactKindRefs)) {\n context.addIssue({ code: \"custom\", message: \"host implementation artifact kind refs must be unique\", path: [\"hostImplementationArtifacts\"] });\n }\n if (!valuesAreLexicallySorted(snapshot.hostImplementationArtifacts.map(hostImplementationArtifactOrderKey))) {\n context.addIssue({\n code: \"custom\",\n message: \"host implementation artifacts must be sorted by artifact kind ref then artifact ref\",\n path: [\"hostImplementationArtifacts\"],\n });\n }\n addUniqueSortedIssue(\n snapshot.sourceRequirementAuthorities.map(\n (authority) => `${authority.source.sourceRef}@${authority.source.sourceVersion}:${authority.requirementRef}@${authority.requirementVersion}`,\n ),\n context,\n [\"sourceRequirementAuthorities\"],\n \"source requirement authority identities\",\n );\n for (const [key, values] of [\n [\"implementationExpectationAuthorities\", snapshot.implementationExpectationAuthorities],\n [\"evidenceExpectationAuthorities\", snapshot.evidenceExpectationAuthorities],\n [\"verificationExpectationAuthorities\", snapshot.verificationExpectationAuthorities],\n ] as const)\n addUniqueSortedIssue(\n values.map((authority) => `${authority.identity.expectationRef}@${authority.identity.expectationVersion}`),\n context,\n [key],\n `${key} identities`,\n );\n\n const rejectFutureAuthorityFact = (value: string, path: PropertyKey[], label: string): void => {\n if (timestampIsAfter(value, snapshot.evaluatedAt)) {\n context.addIssue({ code: \"custom\", message: `${label} cannot be later than evaluatedAt`, path });\n }\n };\n rejectFutureAuthorityFact(snapshot.sourceRegistry.verifiedAt, [\"sourceRegistry\", \"verifiedAt\"], \"source registry verification\");\n snapshot.sourceRegistry.sources.forEach((source, sourceIndex) => {\n rejectFutureAuthorityFact(source.rights.reviewedAt, [\"sourceRegistry\", \"sources\", sourceIndex, \"rights\", \"reviewedAt\"], \"source-rights review\");\n if (source.retrievedArtifact) {\n rejectFutureAuthorityFact(\n source.retrievedArtifact.retrievedAt,\n [\"sourceRegistry\", \"sources\", sourceIndex, \"retrievedArtifact\", \"retrievedAt\"],\n \"source-artifact retrieval\",\n );\n }\n });\n snapshot.sourceRequirementAuthorities.forEach((authority, authorityIndex) =>\n rejectFutureAuthorityFact(authority.reviewedAt, [\"sourceRequirementAuthorities\", authorityIndex, \"reviewedAt\"], \"source-requirement review\"),\n );\n if (snapshot.documentAuthorityCatalog) {\n rejectFutureAuthorityFact(\n snapshot.documentAuthorityCatalog.verifiedAt,\n [\"documentAuthorityCatalog\", \"verifiedAt\"],\n \"document authority catalog verification\",\n );\n snapshot.documentAuthorityCatalog.sourceMonitoringPolicies.forEach((policy, policyIndex) =>\n rejectFutureAuthorityFact(\n policy.lastCheckedAt,\n [\"documentAuthorityCatalog\", \"sourceMonitoringPolicies\", policyIndex, \"lastCheckedAt\"],\n \"document source monitoring check\",\n ),\n );\n }\n });\nexport type AssuranceProgramValidationAuthoritySnapshot = z.infer<typeof AssuranceProgramValidationAuthoritySnapshotSchema>;\n\n/** Exact application reference to a separately governed source-registry record. Normative bytes are never embedded here. */\nexport const AssuranceProgramSourceReferenceSchema = z.strictObject({\n identity: AssuranceSourceIdentitySchema,\n edition: z.string().trim().min(1),\n authorityKind: z.enum(AssuranceSourceAuthorityKind),\n authorityName: z.string().trim().min(1),\n lifecycleStatus: z.enum(AssuranceSourceLifecycleStatus),\n rightsRef: AssuranceNamespacedRefSchema,\n rightsVersion: z.number().int().positive(),\n});\nexport type AssuranceProgramSourceReference = z.infer<typeof AssuranceProgramSourceReferenceSchema>;\n\n/** Reusable application-level scope policy. Runtime resolution supplies actual tenant and assignee identities. */\nexport const AssuranceProgramScopeSelectorSchema = z\n .strictObject({\n scopeSelectorRef: AssuranceNamespacedRefSchema,\n scopeSelectorVersion: z.number().int().positive(),\n kind: z.enum(AssuranceProgramScopeSelectorKind),\n systemBoundaryRefs: z.array(AssuranceNamespacedRefSchema).min(1),\n organizationScopeRuleRefs: z.array(AssuranceNamespacedRefSchema),\n jurisdictionRefs: z.array(AssuranceNamespacedRefSchema),\n dataCategoryRefs: z.array(AssuranceNamespacedRefSchema),\n })\n .superRefine((scope, context) => {\n addUniqueSortedIssue(scope.systemBoundaryRefs, context, [\"systemBoundaryRefs\"], \"systemBoundaryRefs\");\n addUniqueSortedIssue(scope.organizationScopeRuleRefs, context, [\"organizationScopeRuleRefs\"], \"organizationScopeRuleRefs\");\n addUniqueSortedIssue(scope.jurisdictionRefs, context, [\"jurisdictionRefs\"], \"jurisdictionRefs\");\n addUniqueSortedIssue(scope.dataCategoryRefs, context, [\"dataCategoryRefs\"], \"dataCategoryRefs\");\n if (scope.kind === AssuranceProgramScopeSelectorKind.ORGANIZATION_POLICY && scope.organizationScopeRuleRefs.length === 0) {\n context.addIssue({\n code: \"custom\",\n message: \"organization-policy scope requires at least one organization scope rule\",\n path: [\"organizationScopeRuleRefs\"],\n });\n }\n });\nexport type AssuranceProgramScopeSelector = z.infer<typeof AssuranceProgramScopeSelectorSchema>;\n\nexport const AssuranceProgramApplicabilityDecisionSchema = z\n .strictObject({\n decisionRef: AssuranceNamespacedRefSchema,\n decisionVersion: z.number().int().positive(),\n source: AssuranceSourceIdentitySchema,\n scopeSelectorRef: AssuranceNamespacedRefSchema,\n status: z.enum(AssuranceProgramApplicabilityStatus),\n basis: z.string().trim().min(1),\n authorityDecisionRef: AssuranceNamespacedRefSchema,\n effectiveFrom: AssuranceIsoDateSchema,\n effectiveUntil: AssuranceIsoDateSchema.optional(),\n invalidationConditionRefs: z.array(AssuranceNamespacedRefSchema).min(1),\n })\n .superRefine((decision, context) => {\n addUniqueSortedIssue(decision.invalidationConditionRefs, context, [\"invalidationConditionRefs\"], \"invalidationConditionRefs\");\n if (decision.effectiveUntil && decision.effectiveUntil < decision.effectiveFrom) {\n context.addIssue({ code: \"custom\", message: \"effectiveUntil cannot precede effectiveFrom\", path: [\"effectiveUntil\"] });\n }\n });\nexport type AssuranceProgramApplicabilityDecision = z.infer<typeof AssuranceProgramApplicabilityDecisionSchema>;\n\n/** Exact identity of one retained source/scope applicability decision consumed by a v3 obligation. */\nexport const AssuranceProgramSourceApplicabilityDecisionIdentitySchema = z.strictObject({\n decisionRef: AssuranceNamespacedRefSchema,\n decisionVersion: z.number().int().positive(),\n});\nexport type AssuranceProgramSourceApplicabilityDecisionIdentity = z.infer<typeof AssuranceProgramSourceApplicabilityDecisionIdentitySchema>;\n\nexport const AssuranceProgramSourceRequirementReferenceSchema = z.strictObject({\n source: AssuranceSourceIdentitySchema,\n requirementRef: AssuranceNamespacedRefSchema,\n requirementVersion: z.number().int().positive(),\n});\n\nconst versionedSourceKey = (source: AssuranceSourceIdentity): string => `${source.sourceRef}@${source.sourceVersion}`;\nconst versionedObjectiveKey = (objective: { objectiveRef: string; objectiveVersion: number }): string =>\n `${objective.objectiveRef}@${objective.objectiveVersion}`;\nconst versionedCapabilityKey = (capability: { capabilityRef: string; capabilityVersion: number }): string =>\n `${capability.capabilityRef}@${capability.capabilityVersion}`;\nconst versionedDocumentKey = (document: { documentRef: string; documentVersion: number }): string => `${document.documentRef}@${document.documentVersion}`;\nconst sourceRevisionKey = (revision: { sourceRevisionRef: string }): string => revision.sourceRevisionRef;\nconst authorityBasisIdentityKey = (basis: { basisRef: string; basisVersion: number }): string => `${basis.basisRef}@${basis.basisVersion}`;\nconst applicabilitySubjectKey = (source: AssuranceSourceIdentity, scopeSelectorRef: string): string => `${versionedSourceKey(source)}::${scopeSelectorRef}`;\nconst versionedExpectationKey = (identity: { expectationRef: string; expectationVersion: number }): string =>\n `${identity.expectationRef}@${identity.expectationVersion}`;\nconst versionedSourceRequirementKey = (reference: { source: AssuranceSourceIdentity; requirementRef: string; requirementVersion: number }): string =>\n `${versionedSourceKey(reference.source)}:${reference.requirementRef}@${reference.requirementVersion}`;\n\n/** Source-neutral Wildo objective binding. Relationships to restricted targets remain in external mapping packs. */\nexport const AssuranceProgramControlObjectiveBindingSchema = z\n .strictObject({\n bindingRef: AssuranceNamespacedRefSchema,\n bindingVersion: z.number().int().positive(),\n objective: AssuranceObjectiveIdentitySchema,\n scopeSelectorRefs: z.array(AssuranceNamespacedRefSchema).min(1),\n sourceRequirementRefs: z.array(AssuranceProgramSourceRequirementReferenceSchema),\n implementationExpectationRefs: z.array(AssuranceProgramExpectationIdentitySchema).min(1),\n evidenceExpectationRefs: z.array(AssuranceProgramExpectationIdentitySchema).min(1),\n verificationExpectationRefs: z.array(AssuranceProgramExpectationIdentitySchema).min(1),\n requiredProofStage: z.enum(AssuranceProgramProofStage),\n })\n .superRefine((binding, context) => {\n addUniqueSortedIssue(binding.scopeSelectorRefs, context, [\"scopeSelectorRefs\"], \"scopeSelectorRefs\");\n addUniqueSortedIssue(\n binding.sourceRequirementRefs.map(\n (reference) => `${reference.source.sourceRef}@${reference.source.sourceVersion}:${reference.requirementRef}@${reference.requirementVersion}`,\n ),\n context,\n [\"sourceRequirementRefs\"],\n \"sourceRequirementRefs\",\n );\n const expectationKey = (identity: AssuranceProgramExpectationIdentity): string => `${identity.expectationRef}@${identity.expectationVersion}`;\n addUniqueSortedIssue(\n binding.implementationExpectationRefs.map(expectationKey),\n context,\n [\"implementationExpectationRefs\"],\n \"implementationExpectationRefs\",\n );\n addUniqueSortedIssue(binding.evidenceExpectationRefs.map(expectationKey), context, [\"evidenceExpectationRefs\"], \"evidenceExpectationRefs\");\n addUniqueSortedIssue(binding.verificationExpectationRefs.map(expectationKey), context, [\"verificationExpectationRefs\"], \"verificationExpectationRefs\");\n });\nexport type AssuranceProgramControlObjectiveBinding = z.infer<typeof AssuranceProgramControlObjectiveBindingSchema>;\n\nexport const AssuranceProgramObligationIdentitySchema = z.strictObject({\n obligationRef: AssuranceNamespacedRefSchema,\n obligationVersion: z.number().int().positive(),\n});\nexport type AssuranceProgramObligationIdentity = z.infer<typeof AssuranceProgramObligationIdentitySchema>;\n\nexport const AssuranceProgramObligationCoverageDecisionIdentitySchema = z.strictObject({\n coverageDecisionRef: AssuranceNamespacedRefSchema,\n coverageDecisionVersion: z.number().int().positive(),\n});\nexport type AssuranceProgramObligationCoverageDecisionIdentity = z.infer<typeof AssuranceProgramObligationCoverageDecisionIdentitySchema>;\n\nexport const AssuranceProgramSharedResponsibilityRuleIdentitySchema = z.strictObject({\n sharedResponsibilityRuleRef: AssuranceNamespacedRefSchema,\n sharedResponsibilityRuleVersion: z.number().int().positive(),\n});\nexport type AssuranceProgramSharedResponsibilityRuleIdentity = z.infer<typeof AssuranceProgramSharedResponsibilityRuleIdentitySchema>;\n\nconst AssuranceProgramSharedResponsibilityPrecedenceSchema = z.discriminatedUnion(\"mode\", [\n z.strictObject({ mode: z.literal(AssuranceProgramSharedResponsibilityPrecedenceMode.SHARED_WITHOUT_PRECEDENCE) }),\n z.strictObject({\n mode: z.literal(AssuranceProgramSharedResponsibilityPrecedenceMode.NAMED_ACTOR_PRECEDENCE),\n precedenceActorKind: z.enum(AssuranceGovernanceActorKind),\n }),\n]);\n\n/**\n * Program-owned reusable party-attribution rule. It is accepted atomically with the obligations that cite it;\n * runtime people, organizations and review occurrences remain deliberately absent.\n */\nexport const AssuranceProgramSharedResponsibilityRuleSchema = z\n .strictObject({\n sharedResponsibilityRuleRef: AssuranceNamespacedRefSchema,\n sharedResponsibilityRuleVersion: z.number().int().positive(),\n scopeSelectorRefs: z.array(AssuranceNamespacedRefSchema).min(1),\n governanceActorKinds: z.array(z.enum(AssuranceGovernanceActorKind)).min(2),\n accountableRoleRefs: z.array(AssuranceNamespacedRefSchema).min(1),\n operatingRoleRefs: z.array(AssuranceNamespacedRefSchema).min(1),\n evidenceProviderRoleRefs: z.array(AssuranceNamespacedRefSchema).min(1),\n approvingRoleRefs: z.array(AssuranceNamespacedRefSchema).min(1),\n conflictResolutionRoleRefs: z.array(AssuranceNamespacedRefSchema).min(1),\n precedence: AssuranceProgramSharedResponsibilityPrecedenceSchema,\n rationale: z.string().trim().min(1),\n reviewedByRoleRef: AssuranceNamespacedRefSchema,\n reviewedAt: AssuranceIsoDateTimeSchema,\n })\n .superRefine((rule, context) => {\n addUniqueSortedIssue(rule.scopeSelectorRefs, context, [\"scopeSelectorRefs\"], \"scopeSelectorRefs\");\n addUniqueSortedIssue(rule.governanceActorKinds, context, [\"governanceActorKinds\"], \"governanceActorKinds\");\n for (const field of [\"accountableRoleRefs\", \"operatingRoleRefs\", \"evidenceProviderRoleRefs\", \"approvingRoleRefs\", \"conflictResolutionRoleRefs\"] as const)\n addUniqueSortedIssue(rule[field], context, [field], field);\n if (\n rule.precedence.mode === AssuranceProgramSharedResponsibilityPrecedenceMode.NAMED_ACTOR_PRECEDENCE &&\n !rule.governanceActorKinds.includes(rule.precedence.precedenceActorKind)\n )\n context.addIssue({\n code: \"custom\",\n message: \"precedenceActorKind must occur in governanceActorKinds\",\n path: [\"precedence\", \"precedenceActorKind\"],\n });\n });\nexport type AssuranceProgramSharedResponsibilityRule = z.infer<typeof AssuranceProgramSharedResponsibilityRuleSchema>;\n\n/** Exact human-reviewed coverage claim over one obligation and its complete cited source-requirement inventory. */\nexport const AssuranceProgramObligationCoverageDecisionSchema = z\n .strictObject({\n coverageDecisionRef: AssuranceNamespacedRefSchema,\n coverageDecisionVersion: z.number().int().positive(),\n obligation: AssuranceProgramObligationIdentitySchema,\n sourceRequirementRefs: z.array(AssuranceProgramSourceRequirementReferenceSchema).min(1),\n reviewDisposition: z.enum(AssuranceProgramObligationCoverageReviewDisposition),\n reviewedByRoleRef: AssuranceNamespacedRefSchema,\n reviewedAt: AssuranceIsoDateTimeSchema,\n rationale: z.string().trim().min(1),\n limitationRefs: z.array(AssuranceNamespacedRefSchema),\n })\n .superRefine((decision, context) => {\n addUniqueSortedIssue(decision.sourceRequirementRefs.map(versionedSourceRequirementKey), context, [\"sourceRequirementRefs\"], \"sourceRequirementRefs\");\n addUniqueSortedIssue(decision.limitationRefs, context, [\"limitationRefs\"], \"limitationRefs\");\n });\nexport type AssuranceProgramObligationCoverageDecision = z.infer<typeof AssuranceProgramObligationCoverageDecisionSchema>;\n\nconst AssuranceProgramObligationApplicabilityDecisionCommonSchema = z.strictObject({\n decisionRef: AssuranceNamespacedRefSchema,\n decisionVersion: z.number().int().positive(),\n rationale: z.string().trim().min(1),\n reviewedByRoleRef: AssuranceNamespacedRefSchema,\n decidedAt: AssuranceIsoDateTimeSchema,\n evidenceRefs: z.array(AssuranceNamespacedRefSchema),\n invalidationConditionRefs: z.array(AssuranceNamespacedRefSchema).min(1),\n});\n\n/** Outcome-level applicability. It cannot encode lifecycle activation, operating status or a compliance conclusion. */\nexport const AssuranceProgramObligationApplicabilityDecisionSchema = z\n .discriminatedUnion(\"status\", [\n AssuranceProgramObligationApplicabilityDecisionCommonSchema.extend({ status: z.literal(AssuranceProgramObligationApplicabilityStatus.APPLICABLE) }),\n AssuranceProgramObligationApplicabilityDecisionCommonSchema.extend({\n status: z.literal(AssuranceProgramObligationApplicabilityStatus.NOT_APPLICABLE),\n evidenceRefs: z.array(AssuranceNamespacedRefSchema).min(1),\n }),\n AssuranceProgramObligationApplicabilityDecisionCommonSchema.extend({ status: z.literal(AssuranceProgramObligationApplicabilityStatus.UNDETERMINED) }),\n ])\n .superRefine((decision, context) => {\n addUniqueSortedIssue(decision.evidenceRefs, context, [\"evidenceRefs\"], \"evidenceRefs\");\n addUniqueSortedIssue(decision.invalidationConditionRefs, context, [\"invalidationConditionRefs\"], \"invalidationConditionRefs\");\n });\nexport type AssuranceProgramObligationApplicabilityDecision = z.infer<typeof AssuranceProgramObligationApplicabilityDecisionSchema>;\n\n/** One source-neutral application obligation. External framework ids and protected source bytes remain outside this contract. */\nexport const AssuranceProgramObligationEntrySchema = z\n .strictObject({\n obligationRef: AssuranceNamespacedRefSchema,\n obligationVersion: z.number().int().positive(),\n objective: AssuranceObjectiveIdentitySchema,\n scopeSelectorRefs: z.array(AssuranceNamespacedRefSchema).min(1),\n governanceActorKinds: z.array(z.enum(AssuranceGovernanceActorKind)).min(1),\n sharedResponsibilityRule: AssuranceProgramSharedResponsibilityRuleIdentitySchema.optional(),\n sourceRequirementRefs: z.array(AssuranceProgramSourceRequirementReferenceSchema).min(1),\n sourceApplicabilityDecisionRefs: z.array(AssuranceProgramSourceApplicabilityDecisionIdentitySchema).min(1),\n coverageDecision: AssuranceProgramObligationCoverageDecisionIdentitySchema,\n applicability: AssuranceProgramObligationApplicabilityDecisionSchema,\n responsibilityAssignmentRefs: z.array(AssuranceNamespacedRefSchema).min(1),\n implementationExpectationRefs: z.array(AssuranceProgramExpectationIdentitySchema).min(1),\n evidenceExpectationRefs: z.array(AssuranceProgramExpectationIdentitySchema).min(1),\n verificationExpectationRefs: z.array(AssuranceProgramExpectationIdentitySchema).min(1),\n requiredProofStage: z.enum(AssuranceProgramProofStage),\n blockingEffect: z.enum(AssuranceProgramObligationBlockingEffect),\n gapRefs: z.array(AssuranceProgramFindingIdentitySchema),\n dependencyObligationRefs: z.array(AssuranceProgramObligationIdentitySchema),\n reviewOwnerRoleRefs: z.array(AssuranceNamespacedRefSchema).min(1),\n reviewOn: AssuranceIsoDateSchema,\n reviewTriggerRefs: z.array(AssuranceNamespacedRefSchema).min(1),\n })\n .superRefine((entry, context) => {\n addUniqueSortedIssue(entry.scopeSelectorRefs, context, [\"scopeSelectorRefs\"], \"scopeSelectorRefs\");\n addUniqueSortedIssue(entry.governanceActorKinds, context, [\"governanceActorKinds\"], \"governanceActorKinds\");\n addUniqueSortedIssue(entry.sourceRequirementRefs.map(versionedSourceRequirementKey), context, [\"sourceRequirementRefs\"], \"sourceRequirementRefs\");\n addUniqueSortedIssue(\n entry.sourceApplicabilityDecisionRefs.map((identity) => `${identity.decisionRef}@${identity.decisionVersion}`),\n context,\n [\"sourceApplicabilityDecisionRefs\"],\n \"sourceApplicabilityDecisionRefs\",\n );\n addUniqueSortedIssue(entry.responsibilityAssignmentRefs, context, [\"responsibilityAssignmentRefs\"], \"responsibilityAssignmentRefs\");\n for (const field of [\"implementationExpectationRefs\", \"evidenceExpectationRefs\", \"verificationExpectationRefs\"] as const)\n addUniqueSortedIssue(entry[field].map(versionedExpectationKey), context, [field], field);\n addUniqueSortedIssue(\n entry.gapRefs.map((identity) => `${identity.findingRef}@${identity.findingVersion}`),\n context,\n [\"gapRefs\"],\n \"gapRefs\",\n );\n addUniqueSortedIssue(\n entry.dependencyObligationRefs.map((identity) => `${identity.obligationRef}@${identity.obligationVersion}`),\n context,\n [\"dependencyObligationRefs\"],\n \"dependencyObligationRefs\",\n );\n addUniqueSortedIssue(entry.reviewOwnerRoleRefs, context, [\"reviewOwnerRoleRefs\"], \"reviewOwnerRoleRefs\");\n addUniqueSortedIssue(entry.reviewTriggerRefs, context, [\"reviewTriggerRefs\"], \"reviewTriggerRefs\");\n if (entry.governanceActorKinds.length === 1 && entry.sharedResponsibilityRule)\n context.addIssue({ code: \"custom\", message: \"a single governance actor cannot cite a shared-responsibility rule\", path: [\"sharedResponsibilityRule\"] });\n if (entry.governanceActorKinds.length > 1 && !entry.sharedResponsibilityRule)\n context.addIssue({\n code: \"custom\",\n message: \"multiple governance actors require an exact shared-responsibility rule\",\n path: [\"sharedResponsibilityRule\"],\n });\n if (\n entry.dependencyObligationRefs.some(\n (identity) => identity.obligationRef === entry.obligationRef && identity.obligationVersion === entry.obligationVersion,\n )\n )\n context.addIssue({ code: \"custom\", message: \"an obligation cannot depend on itself\", path: [\"dependencyObligationRefs\"] });\n });\nexport type AssuranceProgramObligationEntry = z.infer<typeof AssuranceProgramObligationEntrySchema>;\n\n/**\n * Complete application obligation inventory. It is not the governed-document release register.\n *\n * It carried a digest until the Phase-A demolition (`.claude/rules/one-source-of-truth.md` Rule 0) and the JSDoc went on calling it \"content-addressed\" afterwards. The\n * strict shape below is the whole truth: a ref, a version and the entries. Completeness is proven by `obligationCoverageDecisions` and the uniqueness refinement, not\n * by a hash. A test still named `registerWithoutDigest` is a leftover from when the field existed.\n */\nexport const AssuranceProgramObligationRegisterSchema = z\n .strictObject({\n schemaVersion: z.literal(1),\n registerRef: AssuranceNamespacedRefSchema,\n registerVersion: z.number().int().positive(),\n entries: z.array(AssuranceProgramObligationEntrySchema).min(1),\n })\n .superRefine((register, context) =>\n addUniqueSortedIssue(\n register.entries.map((entry) => `${entry.obligationRef}@${entry.obligationVersion}`),\n context,\n [\"entries\"],\n \"obligation identities\",\n ),\n );\nexport type AssuranceProgramObligationRegister = z.infer<typeof AssuranceProgramObligationRegisterSchema>;\n\nconst versionedObligationKey = (identity: { obligationRef: string; obligationVersion: number }): string =>\n `${identity.obligationRef}@${identity.obligationVersion}`;\nconst versionedApplicabilityDecisionKey = (identity: { decisionRef: string; decisionVersion: number }): string =>\n `${identity.decisionRef}@${identity.decisionVersion}`;\nconst versionedCoverageDecisionKey = (identity: { coverageDecisionRef: string; coverageDecisionVersion: number }): string =>\n `${identity.coverageDecisionRef}@${identity.coverageDecisionVersion}`;\nconst versionedSharedResponsibilityRuleKey = (identity: { sharedResponsibilityRuleRef: string; sharedResponsibilityRuleVersion: number }): string =>\n `${identity.sharedResponsibilityRuleRef}@${identity.sharedResponsibilityRuleVersion}`;\n\n/** A non-secret selected option. Values are references to accepted profiles/options rather than arbitrary credential-bearing blobs. */\nexport const AssuranceProgramSelectedOptionSchema = z.strictObject({\n parameterRef: AssuranceNamespacedRefSchema,\n selectedOptionRef: AssuranceNamespacedRefSchema,\n});\n\nexport const AssuranceProgramCapabilitySelectionSchema = z\n .strictObject({\n capabilityKind: z.enum(AssuranceProgramCapabilityKind),\n capabilityRef: AssuranceNamespacedRefSchema,\n capabilityVersion: z.number().int().positive(),\n profileRef: AssuranceNamespacedRefSchema.optional(),\n selectedOptions: z.array(AssuranceProgramSelectedOptionSchema),\n })\n .superRefine((selection, context) => {\n addUniqueSortedIssue(\n selection.selectedOptions.map((option) => option.parameterRef),\n context,\n [\"selectedOptions\"],\n \"selected option parameter refs\",\n );\n });\n\nexport const AssuranceProgramImplementationDecisionSchema = z\n .strictObject({\n decisionRef: AssuranceNamespacedRefSchema,\n decisionVersion: z.number().int().positive(),\n objective: AssuranceObjectiveIdentitySchema,\n scopeSelectorRefs: z.array(AssuranceNamespacedRefSchema).min(1),\n resolution: z.enum(AssuranceProgramCapabilityResolution),\n capabilitySelections: z.array(AssuranceProgramCapabilitySelectionSchema),\n selectionAuthorityRef: AssuranceNamespacedRefSchema,\n knownLimitations: z.array(z.string().trim().min(1)),\n gapDisposition: z.enum(AssuranceGapDisposition),\n gapRefs: z.array(AssuranceProgramFindingIdentitySchema),\n })\n .superRefine((decision, context) => {\n addUniqueSortedIssue(decision.scopeSelectorRefs, context, [\"scopeSelectorRefs\"], \"scopeSelectorRefs\");\n addUniqueSortedIssue(\n decision.capabilitySelections.map((selection) => selection.capabilityRef),\n context,\n [\"capabilitySelections\"],\n \"capability selection refs\",\n );\n addUniqueSortedIssue(decision.knownLimitations, context, [\"knownLimitations\"], \"knownLimitations\");\n addUniqueSortedIssue(\n decision.gapRefs.map((identity) => `${identity.findingRef}@${identity.findingVersion}`),\n context,\n [\"gapRefs\"],\n \"gapRefs\",\n );\n if (\n (decision.resolution === AssuranceProgramCapabilityResolution.IMPLEMENTABLE || decision.resolution === AssuranceProgramCapabilityResolution.PARTIAL) &&\n decision.capabilitySelections.length === 0\n )\n context.addIssue({\n code: \"custom\",\n message: \"IMPLEMENTABLE and PARTIAL resolutions require at least one selected capability\",\n path: [\"capabilitySelections\"],\n });\n if (decision.resolution === AssuranceProgramCapabilityResolution.UNSUPPORTED && decision.capabilitySelections.length > 0)\n context.addIssue({ code: \"custom\", message: \"UNSUPPORTED resolution cannot select an implementation capability\", path: [\"capabilitySelections\"] });\n if (\n decision.resolution === AssuranceProgramCapabilityResolution.HUMAN_OR_EXTERNAL &&\n !decision.capabilitySelections.some((selection) => selection.capabilityKind === AssuranceProgramCapabilityKind.HUMAN_OR_EXTERNAL)\n )\n context.addIssue({\n code: \"custom\",\n message: \"HUMAN_OR_EXTERNAL resolution requires a human/external capability selection\",\n path: [\"capabilitySelections\"],\n });\n if (decision.gapDisposition === AssuranceGapDisposition.RESOLVED && decision.gapRefs.length > 0)\n context.addIssue({ code: \"custom\", message: \"RESOLVED disposition cannot retain open gap refs\", path: [\"gapRefs\"] });\n const openGapDisposition =\n decision.gapDisposition === AssuranceGapDisposition.OPEN ||\n decision.gapDisposition === AssuranceGapDisposition.RISK_ACCEPTED ||\n decision.gapDisposition === AssuranceGapDisposition.REMEDIATION_PLANNED;\n if (openGapDisposition && decision.gapRefs.length === 0)\n context.addIssue({ code: \"custom\", message: \"an open gap disposition requires explicit gap refs\", path: [\"gapRefs\"] });\n if (\n (decision.gapDisposition === AssuranceGapDisposition.NOT_EVALUATED || decision.gapDisposition === AssuranceGapDisposition.NOT_APPLICABLE) &&\n decision.gapRefs.length > 0\n )\n context.addIssue({ code: \"custom\", message: \"NOT_EVALUATED and NOT_APPLICABLE dispositions cannot cite gap records\", path: [\"gapRefs\"] });\n if (decision.gapDisposition === AssuranceGapDisposition.NOT_APPLICABLE)\n context.addIssue({\n code: \"custom\",\n message: \"implementation decisions cannot use NOT_APPLICABLE; applicability is decided separately per source and scope\",\n path: [\"gapDisposition\"],\n });\n if (\n (decision.resolution === AssuranceProgramCapabilityResolution.PARTIAL || decision.resolution === AssuranceProgramCapabilityResolution.UNSUPPORTED) &&\n decision.knownLimitations.length === 0\n )\n context.addIssue({ code: \"custom\", message: \"PARTIAL and UNSUPPORTED resolutions require known limitations\", path: [\"knownLimitations\"] });\n if (\n (decision.resolution === AssuranceProgramCapabilityResolution.PARTIAL || decision.resolution === AssuranceProgramCapabilityResolution.UNSUPPORTED) &&\n !openGapDisposition\n )\n context.addIssue({ code: \"custom\", message: \"PARTIAL and UNSUPPORTED resolutions require an open gap disposition\", path: [\"gapDisposition\"] });\n });\nexport type AssuranceProgramImplementationDecision = z.infer<typeof AssuranceProgramImplementationDecisionSchema>;\n\n/** Role policy, not a live assignment. Each responsibility remains semantically distinct. */\nexport const AssuranceProgramResponsibilityAssignmentSchema = z\n .strictObject({\n assignmentRef: AssuranceNamespacedRefSchema,\n scopeSelectorRef: AssuranceNamespacedRefSchema,\n responsibleRoleRefs: z.array(AssuranceNamespacedRefSchema).min(1),\n operatingRoleRefs: z.array(AssuranceNamespacedRefSchema).min(1),\n evidenceProviderRoleRefs: z.array(AssuranceNamespacedRefSchema).min(1),\n approvingRoleRefs: z.array(AssuranceNamespacedRefSchema).min(1),\n escalationRoleRefs: z.array(AssuranceNamespacedRefSchema),\n })\n .superRefine((assignment, context) => {\n for (const key of [\"responsibleRoleRefs\", \"operatingRoleRefs\", \"evidenceProviderRoleRefs\", \"approvingRoleRefs\", \"escalationRoleRefs\"] as const) {\n addUniqueSortedIssue(assignment[key], context, [key], key);\n }\n });\nexport type AssuranceProgramResponsibilityAssignment = z.infer<typeof AssuranceProgramResponsibilityAssignmentSchema>;\n\nexport const AssuranceProgramGapOrExceptionSchema = z\n .strictObject({\n findingRef: AssuranceNamespacedRefSchema,\n findingVersion: z.number().int().positive(),\n kind: z.enum(AssuranceProgramFindingKind),\n objective: AssuranceObjectiveIdentitySchema.optional(),\n source: AssuranceSourceIdentitySchema.optional(),\n scopeSelectorRef: AssuranceNamespacedRefSchema,\n scopeSelectorVersion: z.number().int().positive(),\n reason: z.string().trim().min(1),\n ownerRoleRef: AssuranceNamespacedRefSchema,\n compensatingControlRefs: z.array(AssuranceNamespacedRefSchema),\n disposition: z.enum(AssuranceGapDisposition),\n authorityDecisionRef: AssuranceNamespacedRefSchema.optional(),\n reviewOn: AssuranceIsoDateSchema,\n expiresOn: AssuranceIsoDateSchema.optional(),\n reopenOnSourceChange: z.literal(true),\n reopenOnScopeChange: z.literal(true),\n })\n .superRefine((finding, context) => {\n addUniqueSortedIssue(finding.compensatingControlRefs, context, [\"compensatingControlRefs\"], \"compensatingControlRefs\");\n if (finding.kind === AssuranceProgramFindingKind.EXCEPTION && (!finding.authorityDecisionRef || !finding.expiresOn)) {\n context.addIssue({ code: \"custom\", message: \"an exception requires explicit authority and expiry\", path: [\"authorityDecisionRef\"] });\n }\n if (finding.disposition === AssuranceGapDisposition.RISK_ACCEPTED && !finding.authorityDecisionRef) {\n context.addIssue({ code: \"custom\", message: \"risk acceptance requires an authority decision\", path: [\"authorityDecisionRef\"] });\n }\n if (finding.expiresOn && finding.reviewOn > finding.expiresOn) {\n context.addIssue({ code: \"custom\", message: \"reviewOn cannot follow expiresOn\", path: [\"reviewOn\"] });\n }\n });\nexport type AssuranceProgramGapOrException = z.infer<typeof AssuranceProgramGapOrExceptionSchema>;\n\nconst AssuranceProgramDocumentationRequirementCommonSchema = z.strictObject({\n requirementRef: AssuranceNamespacedRefSchema,\n requirementVersion: z.number().int().positive(),\n documentKindRef: AssuranceNamespacedRefSchema,\n documentRef: AssuranceNamespacedRefSchema,\n documentVersion: z.number().int().positive(),\n requiredAcceptedFactRefs: z.array(AssuranceNamespacedRefSchema).min(1),\n requiredVariableRefs: z.array(AssuranceNamespacedRefSchema),\n classificationPolicyRef: AssuranceNamespacedRefSchema,\n storagePolicyRef: AssuranceNamespacedRefSchema,\n approvingRoleRefs: z.array(AssuranceNamespacedRefSchema),\n sourceRefs: z.array(AssuranceSourceIdentitySchema),\n contentIdentityRefs: z.array(AssuranceNamespacedRefSchema).min(1),\n});\n\n/** Retained pre-document-authority shape. Parse/replay only; current application authoring uses v2. */\nexport const AssuranceProgramDocumentationRequirementV1Schema = AssuranceProgramDocumentationRequirementCommonSchema.extend({\n approvalRequirement: z.enum(AssuranceProgramDocumentApprovalRequirement),\n}).superRefine((requirement, context) => {\n addUniqueSortedIssue(requirement.requiredAcceptedFactRefs, context, [\"requiredAcceptedFactRefs\"], \"requiredAcceptedFactRefs\");\n addUniqueSortedIssue(requirement.requiredVariableRefs, context, [\"requiredVariableRefs\"], \"requiredVariableRefs\");\n addUniqueSortedIssue(requirement.approvingRoleRefs, context, [\"approvingRoleRefs\"], \"approvingRoleRefs\");\n addUniqueSortedIssue(\n requirement.sourceRefs.map((source) => `${source.sourceRef}@${source.sourceVersion}`),\n context,\n [\"sourceRefs\"],\n \"sourceRefs\",\n );\n addUniqueSortedIssue(requirement.contentIdentityRefs, context, [\"contentIdentityRefs\"], \"contentIdentityRefs\");\n if (requirement.approvalRequirement === AssuranceProgramDocumentApprovalRequirement.APPROVAL_REQUIRED && requirement.approvingRoleRefs.length === 0) {\n context.addIssue({ code: \"custom\", message: \"approval-required documentation needs at least one approving role\", path: [\"approvingRoleRefs\"] });\n }\n if (requirement.approvalRequirement === AssuranceProgramDocumentApprovalRequirement.NO_APPROVAL_REQUIRED && requirement.approvingRoleRefs.length > 0) {\n context.addIssue({ code: \"custom\", message: \"documentation without approval cannot declare approving roles\", path: [\"approvingRoleRefs\"] });\n }\n});\n\n/** Current document requirement bound to an engine-owned definition and an explicit application applicability decision. */\nexport const AssuranceProgramDocumentationRequirementV2Schema = AssuranceProgramDocumentationRequirementCommonSchema.extend({\n schemaVersion: z.literal(2),\n definition: GovernedDocumentDefinitionIdentitySchema,\n governanceScope: GovernedDocumentGovernanceScopeSchema,\n applicabilityStatus: z.enum(GovernedDocumentApplicabilityStatus),\n applicabilityRationale: z.string().trim().min(1),\n applicabilityDecidedByRef: AssuranceNamespacedRefSchema,\n applicabilityDecidedAt: AssuranceIsoDateTimeSchema,\n applicabilityDependencyRefs: z.array(AssuranceNamespacedRefSchema).min(1),\n audienceKinds: z.array(z.enum(GovernedDocumentAudienceKind)).min(1),\n requiredReviewKinds: z.array(z.enum(GovernedDocumentReviewKind)).min(1),\n allowedInteractionKinds: z.array(z.enum(GovernedDocumentInteractionKind)),\n publicationChannelKinds: z.array(z.enum(GovernedDocumentPublicationChannelKind)).min(1),\n}).superRefine((requirement, context) => {\n for (const [key, values] of [\n [\"requiredAcceptedFactRefs\", requirement.requiredAcceptedFactRefs],\n [\"requiredVariableRefs\", requirement.requiredVariableRefs],\n [\"approvingRoleRefs\", requirement.approvingRoleRefs],\n [\"contentIdentityRefs\", requirement.contentIdentityRefs],\n [\"applicabilityDependencyRefs\", requirement.applicabilityDependencyRefs],\n [\"audienceKinds\", requirement.audienceKinds],\n [\"requiredReviewKinds\", requirement.requiredReviewKinds],\n [\"allowedInteractionKinds\", requirement.allowedInteractionKinds],\n [\"publicationChannelKinds\", requirement.publicationChannelKinds],\n ] as const)\n addUniqueSortedIssue(values, context, [key], key);\n addUniqueSortedIssue(\n requirement.sourceRefs.map((source) => `${source.sourceRef}@${source.sourceVersion}`),\n context,\n [\"sourceRefs\"],\n \"sourceRefs\",\n );\n if (requirement.applicabilityStatus === GovernedDocumentApplicabilityStatus.APPLICABLE && requirement.approvingRoleRefs.length === 0) {\n context.addIssue({ code: \"custom\", message: \"an applicable governed document requires at least one approving role\", path: [\"approvingRoleRefs\"] });\n }\n});\nexport type AssuranceProgramDocumentationRequirementV2 = z.infer<typeof AssuranceProgramDocumentationRequirementV2Schema>;\n\nexport const AssuranceProgramDocumentationRequirementSchema = z.union([\n AssuranceProgramDocumentationRequirementV1Schema,\n AssuranceProgramDocumentationRequirementV2Schema,\n]);\nexport type AssuranceProgramDocumentationRequirement = z.infer<typeof AssuranceProgramDocumentationRequirementSchema>;\n\n/**\n * Whether an issue is a statement about the authored specification or about the host it was accepted against.\n *\n * An accepted assurance program is a point-in-time governance decision over exact implementation bytes. The host\n * that resolves those bytes keeps moving underneath it. Collapsing both situations into one \"invalid\" verdict is\n * what forces an operator to choose between a dead runtime and deleting the acceptance record — so the two are\n * separated here, in the contract, rather than guessed at by each consumer.\n *\n * - `SPECIFICATION_DEFECT` — the authored bytes are wrong: an unknown objective, a self-inconsistent digest, an\n * expired exception, a capability the host does not offer at all. Nothing the host can do makes these correct.\n * Consumers must fail closed.\n * - `HOST_ATTESTATION_INVALID` — the authored bytes are not implicated; the host's own authority snapshot fails\n * its integrity checks. A corrupt attestation cannot authorize anything, so consumers must also fail closed —\n * but the fault, and therefore the remediation, is the host's compiled basis, not the specification. This class\n * exists so an operator is not sent to debug a specification that is fine.\n * - `HOST_DIVERGENCE` — the authored bytes are well-formed and internally consistent, the host attestation is\n * sound, and the host's view of the implementation has simply moved since acceptance. This is an assurance\n * *finding* — the program needs re-accepting against the new implementation — and consumers that record it\n * durably may continue operating.\n *\n * Two of the three classes fail closed. The classes are not a severity scale: they name *which artifact is at\n * fault*, and only `HOST_DIVERGENCE` is re-acceptable. Do not collapse the two fail-closed classes back together\n * on the grounds that they behave alike — the behaviour is shared, the diagnosis is not.\n *\n * Tolerating `HOST_DIVERGENCE` is only meaningful where a host authority exists to diverge from. A consumer\n * validating a specification with no external authority never observes it.\n */\nexport enum AssuranceProgramSpecificationIssueClass {\n SPECIFICATION_DEFECT = \"SPECIFICATION_DEFECT\",\n HOST_ATTESTATION_INVALID = \"HOST_ATTESTATION_INVALID\",\n HOST_DIVERGENCE = \"HOST_DIVERGENCE\",\n}\n\nexport enum AssuranceProgramSpecificationIssueKind {\n AUTHORITY_SNAPSHOT_DIGEST_MISMATCH = \"AUTHORITY_SNAPSHOT_DIGEST_MISMATCH\",\n AUTHORITY_SNAPSHOT_INVALID = \"AUTHORITY_SNAPSHOT_INVALID\",\n AMBIGUOUS_APPLICABILITY = \"AMBIGUOUS_APPLICABILITY\",\n /**\n * The host offers this exact capability with the same kind and implementation refs, but its implementation\n * revision has moved since the program was accepted. The control is still present and still the same control —\n * only the bytes implementing it changed. Distinct from `UNKNOWN_CAPABILITY`, which means the host does not\n * offer the claimed capability at all.\n */\n HOST_CAPABILITY_IMPLEMENTATION_DRIFT = \"HOST_CAPABILITY_IMPLEMENTATION_DRIFT\",\n /** The host supplies a valid authority basis, but it is not the exact basis identity accepted by the v2/v3 program. */\n HOST_AUTHORITY_BASIS_DRIFT = \"HOST_AUTHORITY_BASIS_DRIFT\",\n /**\n * An artifact pinned by an accepted source revision no longer matches the host-resolved implementation bytes.\n * Distinct from `UNKNOWN_SOURCE_REVISION`, which means the specification references a revision it never declared\n * — an internal inconsistency in the authored bytes rather than a statement about the host.\n */\n HOST_IMPLEMENTATION_ARTIFACT_DRIFT = \"HOST_IMPLEMENTATION_ARTIFACT_DRIFT\",\n AMBIGUOUS_CONTROL_BINDING = \"AMBIGUOUS_CONTROL_BINDING\",\n AMBIGUOUS_OBLIGATION_BINDING = \"AMBIGUOUS_OBLIGATION_BINDING\",\n AMBIGUOUS_SHARED_RESPONSIBILITY_RULE = \"AMBIGUOUS_SHARED_RESPONSIBILITY_RULE\",\n AMBIGUOUS_IMPLEMENTATION_DECISION = \"AMBIGUOUS_IMPLEMENTATION_DECISION\",\n INCOMPLETE_APPLICABILITY = \"INCOMPLETE_APPLICABILITY\",\n INCOMPLETE_IMPLEMENTATION_DECISION = \"INCOMPLETE_IMPLEMENTATION_DECISION\",\n INCOMPLETE_RESPONSIBILITY_ASSIGNMENT = \"INCOMPLETE_RESPONSIBILITY_ASSIGNMENT\",\n DOCUMENT_AUTHORITY_CATALOG_DIGEST_MISMATCH = \"DOCUMENT_AUTHORITY_CATALOG_DIGEST_MISMATCH\",\n DOCUMENT_AUTHORITY_CATALOG_INVALID = \"DOCUMENT_AUTHORITY_CATALOG_INVALID\",\n OBJECTIVE_CATALOG_DIGEST_MISMATCH = \"OBJECTIVE_CATALOG_DIGEST_MISMATCH\",\n OBLIGATION_DEPENDENCY_CYCLE = \"OBLIGATION_DEPENDENCY_CYCLE\",\n OBLIGATION_GOVERNANCE_DIGEST_MISMATCH = \"OBLIGATION_GOVERNANCE_DIGEST_MISMATCH\",\n OBLIGATION_REGISTER_DIGEST_MISMATCH = \"OBLIGATION_REGISTER_DIGEST_MISMATCH\",\n RELATIONSHIP_MISMATCH = \"RELATIONSHIP_MISMATCH\",\n SOURCE_AUTHORITY_MISMATCH = \"SOURCE_AUTHORITY_MISMATCH\",\n SOURCE_IDENTITY_DIGEST_MISMATCH = \"SOURCE_IDENTITY_DIGEST_MISMATCH\",\n SOURCE_LIFECYCLE_CONFLICT = \"SOURCE_LIFECYCLE_CONFLICT\",\n SOURCE_REGISTRY_DIGEST_MISMATCH = \"SOURCE_REGISTRY_DIGEST_MISMATCH\",\n SOURCE_RIGHTS_UNAUTHORIZED = \"SOURCE_RIGHTS_UNAUTHORIZED\",\n SOURCE_REVISION_DIGEST_MISMATCH = \"SOURCE_REVISION_DIGEST_MISMATCH\",\n TEMPORAL_POLICY_CONFLICT = \"TEMPORAL_POLICY_CONFLICT\",\n UNKNOWN_APPLICABILITY_SOURCE = \"UNKNOWN_APPLICABILITY_SOURCE\",\n UNKNOWN_BINDING_SOURCE = \"UNKNOWN_BINDING_SOURCE\",\n /**\n * The host does not offer the claimed capability at all, offers it under a different capability kind, or resolves\n * it to different implementation refs. No host state makes the authored claim true. For a capability that is\n * present and unchanged except for its implementation revision, see `HOST_CAPABILITY_IMPLEMENTATION_DRIFT`.\n */\n UNKNOWN_CAPABILITY = \"UNKNOWN_CAPABILITY\",\n /**\n * An expectation this program claims REQUIRES a capability the application's own configuration does\n * not make available, because the engine capability that carries it is not enabled.\n *\n * Distinct from `RELATIONSHIP_MISMATCH`, which reads as \"the accepted statement forgot to bind\n * something\", and from `UNKNOWN_CAPABILITY`, which is about a capability the program CLAIMS. Here\n * nothing was forgotten and nothing is claimed wrongly: the control simply cannot be attested with\n * this configuration, and no amount of re-authoring the statement changes that. Reported separately\n * because the two remedies are opposites — bind the capability, versus enable the engine capability\n * or stop claiming the objective.\n *\n * The issue carries the resulting applicability so the reader does not have to derive it: an\n * objective whose expectation required ONLY unavailable capabilities is `NOT_APPLICABLE`, while one\n * that also required an available capability is `UNDETERMINED` — the control operates and only the\n * capability attesting it is absent. See `deriveExpectationCapabilityApplicability`.\n */\n REQUIRED_CAPABILITY_UNAVAILABLE = \"REQUIRED_CAPABILITY_UNAVAILABLE\",\n UNKNOWN_DOCUMENT = \"UNKNOWN_DOCUMENT\",\n UNKNOWN_DOCUMENT_SOURCE = \"UNKNOWN_DOCUMENT_SOURCE\",\n UNKNOWN_FINDING = \"UNKNOWN_FINDING\",\n /** An authored v1 inventory or v2/v3 attested-ref set names an artifact which the host authority does not inventory. */\n UNKNOWN_IMPLEMENTATION_ARTIFACT = \"UNKNOWN_IMPLEMENTATION_ARTIFACT\",\n UNKNOWN_OBJECTIVE = \"UNKNOWN_OBJECTIVE\",\n UNKNOWN_OBLIGATION_GOVERNANCE_RECORD = \"UNKNOWN_OBLIGATION_GOVERNANCE_RECORD\",\n UNKNOWN_ROLE = \"UNKNOWN_ROLE\",\n UNKNOWN_SCOPE_SELECTOR = \"UNKNOWN_SCOPE_SELECTOR\",\n UNKNOWN_SOURCE_AUTHORITY = \"UNKNOWN_SOURCE_AUTHORITY\",\n UNKNOWN_SOURCE_REQUIREMENT = \"UNKNOWN_SOURCE_REQUIREMENT\",\n /**\n * The specification references a source revision it never declared — an internal inconsistency in the authored\n * bytes. For a declared revision whose artifact bytes no longer match the host, see\n * `HOST_IMPLEMENTATION_ARTIFACT_DRIFT`.\n */\n UNKNOWN_SOURCE_REVISION = \"UNKNOWN_SOURCE_REVISION\",\n UNKNOWN_VALIDATION_AUTHORITY = \"UNKNOWN_VALIDATION_AUTHORITY\",\n}\n\nexport interface AssuranceProgramSpecificationIssue {\n readonly kind: AssuranceProgramSpecificationIssueKind;\n readonly path: string;\n readonly message: string;\n /**\n * Stable semantic subject of a recordable host-divergence issue.\n *\n * Required on every `HOST_DIVERGENCE` producer and deliberately independent of diagnostic prose and array-path\n * rendering. Durable replay compares `(kind, subjectRef)`; `message` remains operator-facing explanation only.\n * Non-recordable issues may omit it because they are always refused rather than persisted as accepted tolerance.\n */\n readonly subjectRef?: string;\n}\n\n/**\n * The one runtime source classifying every issue kind.\n *\n * Exhaustive by construction: the `Record` key type is the enum itself, so adding a kind without deciding whether\n * it describes the specification or the host is a compile error rather than a silent default. Do not replace this\n * with a predicate over name prefixes — the classification is a semantic decision per kind, not a naming pattern.\n *\n * Every kind maps to exactly one class. That is only well-defined because kinds that previously carried both\n * meanings were split: `UNKNOWN_CAPABILITY` / `HOST_CAPABILITY_IMPLEMENTATION_DRIFT` and\n * `UNKNOWN_SOURCE_REVISION` / `HOST_IMPLEMENTATION_ARTIFACT_DRIFT`. Merging either pair back would make this\n * mapping lossy and silently re-enable tolerance of genuine specification defects.\n */\nexport const ASSURANCE_PROGRAM_SPECIFICATION_ISSUE_CLASS_BY_KIND: Readonly<\n Record<AssuranceProgramSpecificationIssueKind, AssuranceProgramSpecificationIssueClass>\n> = {\n [AssuranceProgramSpecificationIssueKind.HOST_CAPABILITY_IMPLEMENTATION_DRIFT]: AssuranceProgramSpecificationIssueClass.HOST_DIVERGENCE,\n [AssuranceProgramSpecificationIssueKind.HOST_AUTHORITY_BASIS_DRIFT]: AssuranceProgramSpecificationIssueClass.HOST_DIVERGENCE,\n [AssuranceProgramSpecificationIssueKind.HOST_IMPLEMENTATION_ARTIFACT_DRIFT]: AssuranceProgramSpecificationIssueClass.HOST_DIVERGENCE,\n [AssuranceProgramSpecificationIssueKind.AUTHORITY_SNAPSHOT_DIGEST_MISMATCH]: AssuranceProgramSpecificationIssueClass.HOST_ATTESTATION_INVALID,\n [AssuranceProgramSpecificationIssueKind.AUTHORITY_SNAPSHOT_INVALID]: AssuranceProgramSpecificationIssueClass.HOST_ATTESTATION_INVALID,\n [AssuranceProgramSpecificationIssueKind.AMBIGUOUS_APPLICABILITY]: AssuranceProgramSpecificationIssueClass.SPECIFICATION_DEFECT,\n [AssuranceProgramSpecificationIssueKind.AMBIGUOUS_CONTROL_BINDING]: AssuranceProgramSpecificationIssueClass.SPECIFICATION_DEFECT,\n [AssuranceProgramSpecificationIssueKind.AMBIGUOUS_OBLIGATION_BINDING]: AssuranceProgramSpecificationIssueClass.SPECIFICATION_DEFECT,\n [AssuranceProgramSpecificationIssueKind.AMBIGUOUS_SHARED_RESPONSIBILITY_RULE]: AssuranceProgramSpecificationIssueClass.SPECIFICATION_DEFECT,\n [AssuranceProgramSpecificationIssueKind.AMBIGUOUS_IMPLEMENTATION_DECISION]: AssuranceProgramSpecificationIssueClass.SPECIFICATION_DEFECT,\n [AssuranceProgramSpecificationIssueKind.INCOMPLETE_APPLICABILITY]: AssuranceProgramSpecificationIssueClass.SPECIFICATION_DEFECT,\n [AssuranceProgramSpecificationIssueKind.INCOMPLETE_IMPLEMENTATION_DECISION]: AssuranceProgramSpecificationIssueClass.SPECIFICATION_DEFECT,\n [AssuranceProgramSpecificationIssueKind.INCOMPLETE_RESPONSIBILITY_ASSIGNMENT]: AssuranceProgramSpecificationIssueClass.SPECIFICATION_DEFECT,\n [AssuranceProgramSpecificationIssueKind.DOCUMENT_AUTHORITY_CATALOG_DIGEST_MISMATCH]: AssuranceProgramSpecificationIssueClass.HOST_ATTESTATION_INVALID,\n [AssuranceProgramSpecificationIssueKind.DOCUMENT_AUTHORITY_CATALOG_INVALID]: AssuranceProgramSpecificationIssueClass.HOST_ATTESTATION_INVALID,\n [AssuranceProgramSpecificationIssueKind.OBJECTIVE_CATALOG_DIGEST_MISMATCH]: AssuranceProgramSpecificationIssueClass.HOST_ATTESTATION_INVALID,\n [AssuranceProgramSpecificationIssueKind.OBLIGATION_DEPENDENCY_CYCLE]: AssuranceProgramSpecificationIssueClass.SPECIFICATION_DEFECT,\n [AssuranceProgramSpecificationIssueKind.OBLIGATION_GOVERNANCE_DIGEST_MISMATCH]: AssuranceProgramSpecificationIssueClass.SPECIFICATION_DEFECT,\n [AssuranceProgramSpecificationIssueKind.OBLIGATION_REGISTER_DIGEST_MISMATCH]: AssuranceProgramSpecificationIssueClass.SPECIFICATION_DEFECT,\n [AssuranceProgramSpecificationIssueKind.RELATIONSHIP_MISMATCH]: AssuranceProgramSpecificationIssueClass.SPECIFICATION_DEFECT,\n /*\n * SPECIFICATION_DEFECT, and deliberately NOT host divergence: nothing has drifted and there is no\n * newer host state to re-accept. The program claims an objective this application's configuration\n * forecloses, which is a statement about the authored program rather than about the host moving.\n */\n [AssuranceProgramSpecificationIssueKind.REQUIRED_CAPABILITY_UNAVAILABLE]: AssuranceProgramSpecificationIssueClass.SPECIFICATION_DEFECT,\n /*\n * Deliberately a specification defect, not host attestation: the host record is internally sound and the program\n * simply disagrees with it. That is equally consistent with a mis-transcribed reference and with host metadata\n * moving on, and tolerance is the dangerous direction — so this stays fail-closed and spec-pointing until a\n * concrete case proves it is drift.\n */\n [AssuranceProgramSpecificationIssueKind.SOURCE_AUTHORITY_MISMATCH]: AssuranceProgramSpecificationIssueClass.SPECIFICATION_DEFECT,\n /* The host registry record's own identity digest does not match its own canonical bytes — nothing to do with the program. */\n [AssuranceProgramSpecificationIssueKind.SOURCE_IDENTITY_DIGEST_MISMATCH]: AssuranceProgramSpecificationIssueClass.HOST_ATTESTATION_INVALID,\n [AssuranceProgramSpecificationIssueKind.SOURCE_LIFECYCLE_CONFLICT]: AssuranceProgramSpecificationIssueClass.SPECIFICATION_DEFECT,\n [AssuranceProgramSpecificationIssueKind.SOURCE_REGISTRY_DIGEST_MISMATCH]: AssuranceProgramSpecificationIssueClass.HOST_ATTESTATION_INVALID,\n [AssuranceProgramSpecificationIssueKind.SOURCE_RIGHTS_UNAUTHORIZED]: AssuranceProgramSpecificationIssueClass.SPECIFICATION_DEFECT,\n [AssuranceProgramSpecificationIssueKind.SOURCE_REVISION_DIGEST_MISMATCH]: AssuranceProgramSpecificationIssueClass.SPECIFICATION_DEFECT,\n [AssuranceProgramSpecificationIssueKind.TEMPORAL_POLICY_CONFLICT]: AssuranceProgramSpecificationIssueClass.SPECIFICATION_DEFECT,\n [AssuranceProgramSpecificationIssueKind.UNKNOWN_APPLICABILITY_SOURCE]: AssuranceProgramSpecificationIssueClass.SPECIFICATION_DEFECT,\n [AssuranceProgramSpecificationIssueKind.UNKNOWN_BINDING_SOURCE]: AssuranceProgramSpecificationIssueClass.SPECIFICATION_DEFECT,\n [AssuranceProgramSpecificationIssueKind.UNKNOWN_CAPABILITY]: AssuranceProgramSpecificationIssueClass.SPECIFICATION_DEFECT,\n [AssuranceProgramSpecificationIssueKind.UNKNOWN_DOCUMENT]: AssuranceProgramSpecificationIssueClass.SPECIFICATION_DEFECT,\n [AssuranceProgramSpecificationIssueKind.UNKNOWN_DOCUMENT_SOURCE]: AssuranceProgramSpecificationIssueClass.SPECIFICATION_DEFECT,\n [AssuranceProgramSpecificationIssueKind.UNKNOWN_FINDING]: AssuranceProgramSpecificationIssueClass.SPECIFICATION_DEFECT,\n [AssuranceProgramSpecificationIssueKind.UNKNOWN_IMPLEMENTATION_ARTIFACT]: AssuranceProgramSpecificationIssueClass.SPECIFICATION_DEFECT,\n [AssuranceProgramSpecificationIssueKind.UNKNOWN_OBJECTIVE]: AssuranceProgramSpecificationIssueClass.SPECIFICATION_DEFECT,\n [AssuranceProgramSpecificationIssueKind.UNKNOWN_OBLIGATION_GOVERNANCE_RECORD]: AssuranceProgramSpecificationIssueClass.SPECIFICATION_DEFECT,\n [AssuranceProgramSpecificationIssueKind.UNKNOWN_ROLE]: AssuranceProgramSpecificationIssueClass.SPECIFICATION_DEFECT,\n [AssuranceProgramSpecificationIssueKind.UNKNOWN_SCOPE_SELECTOR]: AssuranceProgramSpecificationIssueClass.SPECIFICATION_DEFECT,\n [AssuranceProgramSpecificationIssueKind.UNKNOWN_SOURCE_AUTHORITY]: AssuranceProgramSpecificationIssueClass.SPECIFICATION_DEFECT,\n [AssuranceProgramSpecificationIssueKind.UNKNOWN_SOURCE_REQUIREMENT]: AssuranceProgramSpecificationIssueClass.SPECIFICATION_DEFECT,\n [AssuranceProgramSpecificationIssueKind.UNKNOWN_SOURCE_REVISION]: AssuranceProgramSpecificationIssueClass.SPECIFICATION_DEFECT,\n [AssuranceProgramSpecificationIssueKind.UNKNOWN_VALIDATION_AUTHORITY]: AssuranceProgramSpecificationIssueClass.SPECIFICATION_DEFECT,\n};\n\n/**\n * What an application's enabled capability set does to ONE expectation's demand.\n *\n * A capability an application has not enabled is filtered out of its authority snapshot, so an\n * expectation requiring it can never be satisfied there. The question this answers is what that\n * SHOULD mean, and the answer differs by whether the missing capability IS the control or merely\n * attests one:\n *\n * | required capabilities available | status | reading |\n * |---|---|---|\n * | all | `APPLICABLE` | nothing stands in the way |\n * | none | `NOT_APPLICABLE` | the absent capability IS the control; there is nothing to claim |\n * | some | `UNDETERMINED` | the control operates, and the capability that would ATTEST it is absent |\n *\n * The middle and last rows are the distinction that matters, and collapsing them is the trap. Treating\n * a partly-available expectation as `NOT_APPLICABLE` would let an application escape a control it\n * genuinely implements — a consent record is still written, an administrative floor still refuses —\n * merely by leaving the capability that reports those acts switched off. Treating it as `APPLICABLE`\n * would claim evidence nobody can produce. `UNDETERMINED` is the only one of the three that is true.\n *\n * Deliberately a pure function of two sets, so the same rule serves validation, program generation and\n * anything that wants to warn an application builder BEFORE a run: one rule, one place to read it.\n */\nexport function deriveExpectationCapabilityApplicability(input: {\n readonly requiredCapabilityRefs: readonly string[];\n readonly availableCapabilityRefs: ReadonlySet<string>;\n}): {\n readonly status: AssuranceProgramApplicabilityStatus;\n readonly unavailableCapabilityRefs: readonly string[];\n} {\n const unavailableCapabilityRefs = input.requiredCapabilityRefs.filter((capabilityRef) => !input.availableCapabilityRefs.has(capabilityRef));\n if (unavailableCapabilityRefs.length === 0) return { status: AssuranceProgramApplicabilityStatus.APPLICABLE, unavailableCapabilityRefs };\n /*\n * An expectation authority always declares at least one required capability (its schema sets\n * `.min(1)`), so \"every required capability is unavailable\" cannot be reached vacuously by an empty\n * demand — which would otherwise report NOT_APPLICABLE for an expectation that demanded nothing.\n */\n const status =\n unavailableCapabilityRefs.length === input.requiredCapabilityRefs.length\n ? AssuranceProgramApplicabilityStatus.NOT_APPLICABLE\n : AssuranceProgramApplicabilityStatus.UNDETERMINED;\n return { status, unavailableCapabilityRefs };\n}\n\n/** Classifies one issue as a statement about the specification or about the host. */\nexport function classifyAssuranceProgramSpecificationIssue(issue: Pick<AssuranceProgramSpecificationIssue, \"kind\">): AssuranceProgramSpecificationIssueClass {\n return ASSURANCE_PROGRAM_SPECIFICATION_ISSUE_CLASS_BY_KIND[issue.kind];\n}\n\n/**\n * True when every supplied issue is host divergence — the caller may record a finding and continue.\n *\n * Fails closed on an empty set: \"no issues\" is not host divergence, and a caller that reaches this helper with\n * nothing to classify has already lost the distinction it needs. Callers must gate on validity first.\n */\nexport function assuranceProgramIssuesAreOnlyHostDivergence(issues: readonly Pick<AssuranceProgramSpecificationIssue, \"kind\" | \"subjectRef\">[]): boolean {\n return (\n issues.length > 0 &&\n issues.every(\n (issue) =>\n classifyAssuranceProgramSpecificationIssue(issue) === AssuranceProgramSpecificationIssueClass.HOST_DIVERGENCE &&\n typeof issue.subjectRef === \"string\" &&\n issue.subjectRef.length > 0,\n )\n );\n}\n\n/**\n * External authorities required to validate claims that cannot be proven from application-authored bytes alone.\n * A host may supply a larger registry without changing the core model; source names never become branches.\n */\nexport interface AssuranceProgramValidationAuthorities {\n readonly snapshot: AssuranceProgramValidationAuthoritySnapshot;\n}\n\n/** Basis-pinned implementation statement used by current assurance-program versions. */\nexport const AssuranceProgramImplementationStatementV2Schema = z\n .strictObject({\n schemaVersion: z.literal(2),\n ...AssuranceImplementationStatementCommonFieldsSchema.shape,\n basisRef: AssuranceNamespacedRefSchema,\n basisVersion: z.number().int().positive(),\n })\n .superRefine(addAssuranceImplementationStatementCommonIssues);\nexport type AssuranceProgramImplementationStatementV2 = z.infer<typeof AssuranceProgramImplementationStatementV2Schema>;\n\nconst AssuranceProgramCommonFieldsBeforeObjectiveBindingsSchema = z.strictObject({\n programRef: AssuranceNamespacedRefSchema,\n programVersion: z.number().int().positive(),\n sourceReferences: z.array(AssuranceProgramSourceReferenceSchema).min(1),\n scopeSelectors: z.array(AssuranceProgramScopeSelectorSchema).min(1),\n applicabilityDecisions: z.array(AssuranceProgramApplicabilityDecisionSchema).min(1),\n});\n\nconst AssuranceProgramCommonFieldsAfterObjectiveBindingsSchema = z.strictObject({\n implementationDecisions: z.array(AssuranceProgramImplementationDecisionSchema),\n responsibilityAssignments: z.array(AssuranceProgramResponsibilityAssignmentSchema).min(1),\n gapsAndExceptions: z.array(AssuranceProgramGapOrExceptionSchema),\n documentationRequirements: z.array(AssuranceProgramDocumentationRequirementSchema),\n knownProgramLimitations: z.array(z.string().trim().min(1)),\n});\n\n/** Byte-identical common shape retained by v1/v2 programs. */\nconst AssuranceProgramHistoricalCommonFieldsSchema = z.strictObject({\n ...AssuranceProgramCommonFieldsBeforeObjectiveBindingsSchema.shape,\n controlObjectiveBindings: z.array(AssuranceProgramControlObjectiveBindingSchema).min(1),\n ...AssuranceProgramCommonFieldsAfterObjectiveBindingsSchema.shape,\n});\n\n/** Current program shape: obligation entries replace, rather than duplicate, historical control-objective bindings. */\nconst AssuranceProgramV3CommonFieldsSchema = z.strictObject({\n ...AssuranceProgramCommonFieldsBeforeObjectiveBindingsSchema.shape,\n obligationRegister: AssuranceProgramObligationRegisterSchema,\n obligationCoverageDecisions: z.array(AssuranceProgramObligationCoverageDecisionSchema).min(1),\n sharedResponsibilityRules: z.array(AssuranceProgramSharedResponsibilityRuleSchema),\n ...AssuranceProgramCommonFieldsAfterObjectiveBindingsSchema.shape,\n});\n\n/**\n * Historical source-revision-pinned program. Retained payloads remain parseable and replayable.\n *\n * This said \"new authoring is forbidden by the repository pin checker\" until 2026-09-01. **Nothing forbids it.** That checker was\n * `pnpm check:assurance-revision-pin`, removed on 2026-08-27 with the rest of the digest mechanism, and no successor exists — the\n * only assurance check in `package.json` is `check:assurance-control-boundary`, which is about marker source-neutrality.\n *\n * So v1 is discouraged by this comment and by nothing else. A safety claim standing on a removed mechanism is worse than no claim,\n * because a reader stops looking for the guard. Building one is #221; until it lands, \"forbidden\" means \"please do not\".\n */\nexport const AssuranceProgramSpecificationV1Schema = z\n .strictObject({\n schemaVersion: z.literal(1),\n ...AssuranceProgramHistoricalCommonFieldsSchema.shape,\n sourceRevisions: z.array(AssuranceProgramSourceRevisionSchema).min(1),\n roleAuthorities: z.array(AssuranceProgramRoleAuthoritySchema).min(1),\n capabilityAuthorities: z.array(AssuranceProgramCapabilityAuthoritySchema),\n implementationStatements: z.array(AssuranceImplementationStatementSchema),\n })\n .superRefine(addAssuranceProgramSpecificationIssues);\nexport type AssuranceProgramSpecificationV1 = z.infer<typeof AssuranceProgramSpecificationV1Schema>;\n\n/**\n * Retained basis-pinned application program: exactly one basis identity plus readable refs to the attested engine artifacts.\n *\n * Validation authorities currently carry one sealed basis snapshot. Accepting several authored bases would make\n * every extra basis compare against the wrong inventory and could misclassify an unverified authority as tolerable\n * host drift. Multi-basis composition therefore requires a later schema version with basis-indexed snapshots.\n *\n * This claimed a \"repository checker\" recognized v2 authoring \"only through the serialized pre-v3 transition\" until\n * 2026-09-01. There is no such checker — see the note on {@link AssuranceProgramSpecificationV1Schema}. The intent\n * stands and is worth keeping: after an application accepts v3, v2 should remain replayable rather than become a\n * second current authoring shape. It is an intent, not an enforced one (#221).\n *\n * Exactly one v2 programme exists today, `examples/wonder-todos`, and it is the only assurance programme in the\n * repository. Wonder CRM has none: what it carries is a PROCESSOR REGISTER, whose `schemaVersion: 1` belongs to\n * `ApplicationProcessorRegisterSchema` and must not be counted as a v1 programme.\n *\n * prose-referent-waiver: the absent path is quoted precisely BECAUSE it is absent — retiring it by name is what\n * stops the next reader reintroducing it.\n * (Until 2026-09-09 this named that register as `examples/wonder-crm/specifications/src/compliance/index.ts`,\n * a path Wonder CRM has never had — its register is authored under `specifications/src/processor-register/`.\n * The warning is kept because the confusion is real; the file-name half of it was not.)\n */\nexport const AssuranceProgramSpecificationV2Schema = z\n .strictObject({\n schemaVersion: z.literal(2),\n ...AssuranceProgramHistoricalCommonFieldsSchema.shape,\n authorityBases: z.array(AssuranceProgramAuthorityBasisReferenceSchema).length(1),\n roleAuthorities: z.array(AssuranceProgramRoleAuthorityV2Schema).min(1),\n capabilityAuthorities: z.array(AssuranceProgramCapabilityAuthorityV2Schema),\n implementationStatements: z.array(AssuranceProgramImplementationStatementV2Schema),\n })\n .superRefine(addAssuranceProgramSpecificationIssues);\nexport type AssuranceProgramSpecificationV2 = z.infer<typeof AssuranceProgramSpecificationV2Schema>;\n\n/**\n * Current application program. It preserves the v2 single-basis authority model while replacing the overlapping\n * control-objective-binding array with one complete obligation register and its program-owned review\n * records. Activation and operating/evidence truth remain deliberately unrepresentable.\n */\nexport const AssuranceProgramSpecificationV3Schema = z\n .strictObject({\n schemaVersion: z.literal(3),\n ...AssuranceProgramV3CommonFieldsSchema.shape,\n authorityBases: z.array(AssuranceProgramAuthorityBasisReferenceSchema).length(1),\n roleAuthorities: z.array(AssuranceProgramRoleAuthorityV2Schema).min(1),\n capabilityAuthorities: z.array(AssuranceProgramCapabilityAuthorityV2Schema),\n implementationStatements: z.array(AssuranceProgramImplementationStatementV2Schema),\n })\n .superRefine(addAssuranceProgramSpecificationIssues);\nexport type AssuranceProgramSpecificationV3 = z.infer<typeof AssuranceProgramSpecificationV3Schema>;\n\n/**\n * Accepted application compliance policy. Organization-specific occurrences,\n * assignees, reviewer identities, evidence bytes and assessment claims are\n * intentionally unrepresentable and belong to authorized runtime records.\n */\nexport const AssuranceProgramSpecificationSchema = z.discriminatedUnion(\"schemaVersion\", [\n AssuranceProgramSpecificationV1Schema,\n AssuranceProgramSpecificationV2Schema,\n AssuranceProgramSpecificationV3Schema,\n]);\nexport type AssuranceProgramSpecification = z.infer<typeof AssuranceProgramSpecificationSchema>;\n\nexport type AssuranceProgramObjectiveBindingView = Readonly<{\n bindingRef: AssuranceProgramControlObjectiveBinding[\"bindingRef\"];\n objective: AssuranceProgramControlObjectiveBinding[\"objective\"];\n scopeSelectorRefs: AssuranceProgramControlObjectiveBinding[\"scopeSelectorRefs\"];\n sourceRequirementRefs: AssuranceProgramControlObjectiveBinding[\"sourceRequirementRefs\"];\n implementationExpectationRefs: AssuranceProgramControlObjectiveBinding[\"implementationExpectationRefs\"];\n evidenceExpectationRefs: AssuranceProgramControlObjectiveBinding[\"evidenceExpectationRefs\"];\n verificationExpectationRefs: AssuranceProgramControlObjectiveBinding[\"verificationExpectationRefs\"];\n requiredProofStage: AssuranceProgramProofStage;\n}>;\n\n/** One normalized read view keeps historical control bindings and current obligation entries on the same validator path. */\nexport const resolveAssuranceProgramObjectiveBindings = (program: AssuranceProgramSpecification): readonly AssuranceProgramObjectiveBindingView[] =>\n program.schemaVersion === 3\n ? program.obligationRegister.entries.map((entry) => ({\n bindingRef: entry.obligationRef,\n objective: entry.objective,\n scopeSelectorRefs: entry.scopeSelectorRefs,\n sourceRequirementRefs: entry.sourceRequirementRefs,\n implementationExpectationRefs: entry.implementationExpectationRefs,\n evidenceExpectationRefs: entry.evidenceExpectationRefs,\n verificationExpectationRefs: entry.verificationExpectationRefs,\n requiredProofStage: entry.requiredProofStage,\n }))\n : program.controlObjectiveBindings;\n\nconst assuranceProgramObjectiveBindingCollectionPath = (program: AssuranceProgramSpecification): string =>\n program.schemaVersion === 3 ? \"obligationRegister.entries\" : \"controlObjectiveBindings\";\n\nconst stringSetsIntersectOrEitherIsWildcard = (left: readonly string[], right: readonly string[]): boolean =>\n left.length === 0 || right.length === 0 || left.some((value) => right.includes(value));\n\n/**\n * Conservative source-level overlap proof for obligation uniqueness.\n *\n * Empty jurisdiction/data/organization-rule dimensions are wildcards. A false result proves disjointness from the\n * authored selectors; a true result only means they may overlap and therefore cannot independently govern the same\n * objective without creating two accepted answers for one subject.\n */\nconst assuranceProgramScopeSelectorsMayOverlap = (left: AssuranceProgramScopeSelector, right: AssuranceProgramScopeSelector): boolean =>\n left.systemBoundaryRefs.some((value) => right.systemBoundaryRefs.includes(value)) &&\n stringSetsIntersectOrEitherIsWildcard(left.jurisdictionRefs, right.jurisdictionRefs) &&\n stringSetsIntersectOrEitherIsWildcard(left.dataCategoryRefs, right.dataCategoryRefs) &&\n stringSetsIntersectOrEitherIsWildcard(left.organizationScopeRuleRefs, right.organizationScopeRuleRefs);\n\nfunction addAssuranceProgramSpecificationIssues(program: AssuranceProgramSpecification, context: z.RefinementCtx): void {\n const objectiveBindings = resolveAssuranceProgramObjectiveBindings(program);\n const objectiveBindingCollectionPath = assuranceProgramObjectiveBindingCollectionPath(program);\n const orderedRefs: Array<[readonly string[], PropertyKey[], string]> = [\n [\n program.schemaVersion === 1\n ? program.sourceRevisions.map((revision) => revision.sourceRevisionRef)\n : program.authorityBases.map((basis) => `${basis.basisRef}@${basis.basisVersion}`),\n [program.schemaVersion === 1 ? \"sourceRevisions\" : \"authorityBases\"],\n program.schemaVersion === 1 ? \"sourceRevisions\" : \"authorityBases\",\n ],\n [program.roleAuthorities.map((authority) => authority.roleRef), [\"roleAuthorities\"], \"roleAuthorities\"],\n [program.capabilityAuthorities.map((authority) => versionedCapabilityKey(authority.identity)), [\"capabilityAuthorities\"], \"capabilityAuthorities\"],\n [program.sourceReferences.map((source) => versionedSourceKey(source.identity)), [\"sourceReferences\"], \"sourceReferences\"],\n [program.scopeSelectors.map((scope) => scope.scopeSelectorRef), [\"scopeSelectors\"], \"scopeSelectors\"],\n [program.applicabilityDecisions.map((decision) => decision.decisionRef), [\"applicabilityDecisions\"], \"applicabilityDecisions\"],\n [objectiveBindings.map((binding) => binding.bindingRef), objectiveBindingCollectionPath.split(\".\"), objectiveBindingCollectionPath],\n [program.implementationDecisions.map((decision) => decision.decisionRef), [\"implementationDecisions\"], \"implementationDecisions\"],\n [program.responsibilityAssignments.map((assignment) => assignment.assignmentRef), [\"responsibilityAssignments\"], \"responsibilityAssignments\"],\n [program.gapsAndExceptions.map((finding) => finding.findingRef), [\"gapsAndExceptions\"], \"gapsAndExceptions\"],\n [program.documentationRequirements.map((requirement) => requirement.requirementRef), [\"documentationRequirements\"], \"documentationRequirements\"],\n [program.implementationStatements.map((statement) => statement.statementRef), [\"implementationStatements\"], \"implementationStatements\"],\n [program.knownProgramLimitations, [\"knownProgramLimitations\"], \"knownProgramLimitations\"],\n ];\n if (program.schemaVersion === 3) {\n orderedRefs.push(\n [\n program.obligationCoverageDecisions.map((decision) => `${decision.coverageDecisionRef}@${decision.coverageDecisionVersion}`),\n [\"obligationCoverageDecisions\"],\n \"obligationCoverageDecisions\",\n ],\n [\n program.sharedResponsibilityRules.map((rule) => `${rule.sharedResponsibilityRuleRef}@${rule.sharedResponsibilityRuleVersion}`),\n [\"sharedResponsibilityRules\"],\n \"sharedResponsibilityRules\",\n ],\n );\n }\n orderedRefs.forEach(([values, path, label]) => addUniqueSortedIssue(values, context, path, label));\n const documentIdentities = program.documentationRequirements.map(versionedDocumentKey);\n if (!valuesAreUnique(documentIdentities))\n context.addIssue({ code: \"custom\", message: \"document identities must be unique\", path: [\"documentationRequirements\"] });\n const responsibilityScopes = program.responsibilityAssignments.map((assignment) => assignment.scopeSelectorRef);\n if (!valuesAreUnique(responsibilityScopes))\n context.addIssue({ code: \"custom\", message: \"each scope can have only one responsibility assignment\", path: [\"responsibilityAssignments\"] });\n collectAssuranceProgramSpecificationIssues(program).forEach((issue) => {\n context.addIssue({ code: \"custom\", message: `[${issue.kind}] ${issue.message}`, path: issue.path.split(\".\") });\n });\n}\n\nfunction collectAssuranceProgramSpecificationIssues(program: AssuranceProgramSpecification): AssuranceProgramSpecificationIssue[] {\n const objectiveBindings = resolveAssuranceProgramObjectiveBindings(program);\n const objectiveBindingCollectionPath = assuranceProgramObjectiveBindingCollectionPath(program);\n const sourceKeys = new Set(program.sourceReferences.map((source) => versionedSourceKey(source.identity)));\n const scopeByRef = new Map(program.scopeSelectors.map((scope) => [scope.scopeSelectorRef, scope]));\n const objectiveKeys = new Set(objectiveBindings.map((binding) => versionedObjectiveKey(binding.objective)));\n const findingByKey = new Map(program.gapsAndExceptions.map((finding) => [`${finding.findingRef}@${finding.findingVersion}`, finding]));\n const capabilityAuthorityByKey = new Map<string, AssuranceProgramCapabilityAuthority | AssuranceProgramCapabilityAuthorityV2>(\n program.capabilityAuthorities.map((authority) => [versionedCapabilityKey(authority.identity), authority] as const),\n );\n const documentKeys = new Set(program.documentationRequirements.map(versionedDocumentKey));\n const roleRefs = new Set<string>(program.roleAuthorities.map((authority) => authority.roleRef));\n const sourceRevisionKeys = new Set(program.schemaVersion === 1 ? program.sourceRevisions.map(sourceRevisionKey) : []);\n const authorityBasisKeys = new Set(program.schemaVersion === 1 ? [] : program.authorityBases.map(authorityBasisIdentityKey));\n const applicabilityBySubject = new Map<string, AssuranceProgramApplicabilityDecision[]>();\n const controlBindingCountBySubject = new Map<string, number>();\n const implementationDecisionCountBySubject = new Map<string, number>();\n const issues: AssuranceProgramSpecificationIssue[] = [];\n const push = (kind: AssuranceProgramSpecificationIssueKind, path: string, message: string): void => {\n issues.push({ kind, path, message });\n };\n\n const requireRole = (roleRef: string, path: string): void => {\n if (!roleRefs.has(roleRef)) push(AssuranceProgramSpecificationIssueKind.UNKNOWN_ROLE, path, `role ${roleRef} has no declared application authority`);\n };\n const requireRevision = (revision: { sourceRevisionRef: string }, path: string): void => {\n if (!sourceRevisionKeys.has(sourceRevisionKey(revision)))\n push(AssuranceProgramSpecificationIssueKind.UNKNOWN_SOURCE_REVISION, path, \"reference does not resolve to an exact declared source revision\");\n };\n const requireBasis = (basis: { basisRef: string; basisVersion: number }, path: string): void => {\n if (!authorityBasisKeys.has(authorityBasisIdentityKey(basis)))\n push(AssuranceProgramSpecificationIssueKind.RELATIONSHIP_MISMATCH, path, \"reference does not resolve to an exact declared authority basis\");\n };\n\n if (program.schemaVersion === 1) {\n program.roleAuthorities.forEach((authority, index) => requireRevision(authority.definitionRevision, `roleAuthorities.${index}.definitionRevision`));\n program.capabilityAuthorities.forEach((authority, index) =>\n requireRevision(authority.implementationRevision, `capabilityAuthorities.${index}.implementationRevision`),\n );\n } else {\n program.roleAuthorities.forEach((authority, index) => requireBasis(authority.definitionAuthority, `roleAuthorities.${index}.definitionAuthority`));\n program.capabilityAuthorities.forEach((authority, index) =>\n requireBasis(authority.implementationAuthority, `capabilityAuthorities.${index}.implementationAuthority`),\n );\n }\n\n program.applicabilityDecisions.forEach((decision, index) => {\n if (!sourceKeys.has(versionedSourceKey(decision.source)))\n push(\n AssuranceProgramSpecificationIssueKind.UNKNOWN_APPLICABILITY_SOURCE,\n `applicabilityDecisions.${index}.source`,\n \"applicability decision references an undeclared source version\",\n );\n if (!scopeByRef.has(decision.scopeSelectorRef))\n push(\n AssuranceProgramSpecificationIssueKind.UNKNOWN_SCOPE_SELECTOR,\n `applicabilityDecisions.${index}.scopeSelectorRef`,\n \"applicability decision references an undeclared scope selector\",\n );\n const key = applicabilitySubjectKey(decision.source, decision.scopeSelectorRef);\n const decisions = applicabilityBySubject.get(key) ?? [];\n decisions.push(decision);\n applicabilityBySubject.set(key, decisions);\n });\n\n applicabilityBySubject.forEach((decisions) => {\n const byEffectiveFrom = [...decisions].sort((left, right) => compareCanonicalText(left.effectiveFrom, right.effectiveFrom));\n byEffectiveFrom.forEach((decision, index) => {\n const previous = byEffectiveFrom[index - 1];\n if (previous && (!previous.effectiveUntil || decision.effectiveFrom <= previous.effectiveUntil))\n push(\n AssuranceProgramSpecificationIssueKind.AMBIGUOUS_APPLICABILITY,\n \"applicabilityDecisions\",\n `applicability periods overlap for ${versionedSourceKey(decision.source)} and ${decision.scopeSelectorRef}`,\n );\n });\n });\n\n const requiredApplicabilitySubjects = new Set<string>();\n objectiveBindings.forEach((binding, index) => {\n binding.scopeSelectorRefs.forEach((scopeRef) => {\n if (!scopeByRef.has(scopeRef))\n push(\n AssuranceProgramSpecificationIssueKind.UNKNOWN_SCOPE_SELECTOR,\n `${objectiveBindingCollectionPath}.${index}.scopeSelectorRefs`,\n `control binding references undeclared scope selector ${scopeRef}`,\n );\n const subject = `${versionedObjectiveKey(binding.objective)}::${scopeRef}`;\n controlBindingCountBySubject.set(subject, (controlBindingCountBySubject.get(subject) ?? 0) + 1);\n });\n binding.sourceRequirementRefs.forEach((reference) => {\n if (!sourceKeys.has(versionedSourceKey(reference.source)))\n push(\n AssuranceProgramSpecificationIssueKind.UNKNOWN_BINDING_SOURCE,\n `${objectiveBindingCollectionPath}.${index}.sourceRequirementRefs`,\n \"control binding references an undeclared source version\",\n );\n binding.scopeSelectorRefs.forEach((scopeRef) => requiredApplicabilitySubjects.add(applicabilitySubjectKey(reference.source, scopeRef)));\n });\n });\n controlBindingCountBySubject.forEach((count, subject) => {\n if (count > 1)\n push(\n AssuranceProgramSpecificationIssueKind.AMBIGUOUS_CONTROL_BINDING,\n objectiveBindingCollectionPath,\n `objective/scope subject ${subject} has ${count} control bindings; exactly one is required`,\n );\n });\n if (program.schemaVersion === 3) {\n const entries = program.obligationRegister.entries;\n const applicabilityDecisionByKey = new Map(\n program.applicabilityDecisions.map((decision) => [versionedApplicabilityDecisionKey(decision), decision] as const),\n );\n const coverageDecisionByKey = new Map(program.obligationCoverageDecisions.map((decision) => [versionedCoverageDecisionKey(decision), decision] as const));\n const sharedResponsibilityRuleByKey = new Map(program.sharedResponsibilityRules.map((rule) => [versionedSharedResponsibilityRuleKey(rule), rule] as const));\n const responsibilityAssignmentByRef = new Map(program.responsibilityAssignments.map((assignment) => [assignment.assignmentRef, assignment] as const));\n const entryByKey = new Map(entries.map((entry) => [versionedObligationKey(entry), entry] as const));\n const usedCoverageDecisionKeys = new Set<string>();\n const usedSharedResponsibilityRuleKeys = new Set<string>();\n\n entries.forEach((entry, entryIndex) => {\n const entryPath = `obligationRegister.entries.${entryIndex}`;\n const entryKey = versionedObligationKey(entry);\n requireRole(entry.applicability.reviewedByRoleRef, `${entryPath}.applicability.reviewedByRoleRef`);\n entry.reviewOwnerRoleRefs.forEach((roleRef) => requireRole(roleRef, `${entryPath}.reviewOwnerRoleRefs`));\n if (!entry.reviewOwnerRoleRefs.includes(entry.applicability.reviewedByRoleRef))\n push(\n AssuranceProgramSpecificationIssueKind.RELATIONSHIP_MISMATCH,\n `${entryPath}.applicability.reviewedByRoleRef`,\n `obligation ${entryKey} applicability reviewer is not permitted by its review policy`,\n );\n\n const expectedApplicabilitySubjects = new Set(\n entry.sourceRequirementRefs.flatMap((reference) =>\n entry.scopeSelectorRefs.map((scopeSelectorRef) => applicabilitySubjectKey(reference.source, scopeSelectorRef)),\n ),\n );\n const citedApplicabilitySubjects = new Set<string>();\n entry.sourceApplicabilityDecisionRefs.forEach((identity) => {\n const decision = applicabilityDecisionByKey.get(versionedApplicabilityDecisionKey(identity));\n if (!decision) {\n push(\n AssuranceProgramSpecificationIssueKind.UNKNOWN_OBLIGATION_GOVERNANCE_RECORD,\n `${entryPath}.sourceApplicabilityDecisionRefs`,\n `obligation ${entryKey} references undeclared source applicability decision ${versionedApplicabilityDecisionKey(identity)}`,\n );\n return;\n }\n const subject = applicabilitySubjectKey(decision.source, decision.scopeSelectorRef);\n citedApplicabilitySubjects.add(subject);\n if (!expectedApplicabilitySubjects.has(subject))\n push(\n AssuranceProgramSpecificationIssueKind.RELATIONSHIP_MISMATCH,\n `${entryPath}.sourceApplicabilityDecisionRefs`,\n `source applicability decision ${versionedApplicabilityDecisionKey(identity)} does not govern a cited source and obligation scope`,\n );\n });\n if (\n entry.sourceApplicabilityDecisionRefs.length !== expectedApplicabilitySubjects.size ||\n citedApplicabilitySubjects.size !== expectedApplicabilitySubjects.size ||\n [...expectedApplicabilitySubjects].some((subject) => !citedApplicabilitySubjects.has(subject))\n )\n push(\n AssuranceProgramSpecificationIssueKind.INCOMPLETE_APPLICABILITY,\n `${entryPath}.sourceApplicabilityDecisionRefs`,\n `obligation ${entryKey} must cite exactly one retained applicability decision for every cited source and scope subject`,\n );\n\n const assignmentScopeRefs = new Set<string>();\n entry.responsibilityAssignmentRefs.forEach((assignmentRef) => {\n const assignment = responsibilityAssignmentByRef.get(assignmentRef);\n if (!assignment) {\n push(\n AssuranceProgramSpecificationIssueKind.INCOMPLETE_RESPONSIBILITY_ASSIGNMENT,\n `${entryPath}.responsibilityAssignmentRefs`,\n `obligation ${entryKey} references undeclared responsibility assignment ${assignmentRef}`,\n );\n return;\n }\n assignmentScopeRefs.add(assignment.scopeSelectorRef);\n });\n if (assignmentScopeRefs.size !== entry.scopeSelectorRefs.length || entry.scopeSelectorRefs.some((scopeRef) => !assignmentScopeRefs.has(scopeRef)))\n push(\n AssuranceProgramSpecificationIssueKind.INCOMPLETE_RESPONSIBILITY_ASSIGNMENT,\n `${entryPath}.responsibilityAssignmentRefs`,\n `obligation ${entryKey} responsibility assignments must cover exactly its scope selectors`,\n );\n\n entry.gapRefs.forEach((identity) => {\n const findingKey = `${identity.findingRef}@${identity.findingVersion}`;\n const finding = findingByKey.get(findingKey);\n if (!finding)\n push(\n AssuranceProgramSpecificationIssueKind.UNKNOWN_FINDING,\n `${entryPath}.gapRefs`,\n `obligation ${entryKey} references undeclared finding ${findingKey}`,\n );\n else if (\n !finding.objective ||\n versionedObjectiveKey(finding.objective) !== versionedObjectiveKey(entry.objective) ||\n !entry.scopeSelectorRefs.includes(finding.scopeSelectorRef)\n )\n push(\n AssuranceProgramSpecificationIssueKind.RELATIONSHIP_MISMATCH,\n `${entryPath}.gapRefs`,\n `finding ${findingKey} does not match obligation ${entryKey} objective and scope`,\n );\n });\n\n const coverageDecisionKey = versionedCoverageDecisionKey(entry.coverageDecision);\n const coverageDecision = coverageDecisionByKey.get(coverageDecisionKey);\n if (!coverageDecision || coverageDecision.coverageDecisionVersion !== entry.coverageDecision.coverageDecisionVersion)\n push(\n AssuranceProgramSpecificationIssueKind.UNKNOWN_OBLIGATION_GOVERNANCE_RECORD,\n `${entryPath}.coverageDecision`,\n `obligation ${entryKey} coverage decision does not resolve by exact identity and digest`,\n );\n else {\n usedCoverageDecisionKeys.add(coverageDecisionKey);\n if (\n versionedObligationKey(coverageDecision.obligation) !== entryKey ||\n coverageDecision.reviewDisposition !== AssuranceProgramObligationCoverageReviewDisposition.APPROVED ||\n JSON.stringify(coverageDecision.sourceRequirementRefs) !== JSON.stringify(entry.sourceRequirementRefs)\n )\n push(\n AssuranceProgramSpecificationIssueKind.RELATIONSHIP_MISMATCH,\n `${entryPath}.coverageDecision`,\n `obligation ${entryKey} requires one approved coverage decision over its exact source-requirement inventory`,\n );\n if (!entry.reviewOwnerRoleRefs.includes(coverageDecision.reviewedByRoleRef))\n push(\n AssuranceProgramSpecificationIssueKind.RELATIONSHIP_MISMATCH,\n `${entryPath}.coverageDecision`,\n `obligation ${entryKey} coverage reviewer is not permitted by its review policy`,\n );\n }\n\n if (entry.sharedResponsibilityRule) {\n const ruleKey = versionedSharedResponsibilityRuleKey(entry.sharedResponsibilityRule);\n const rule = sharedResponsibilityRuleByKey.get(ruleKey);\n if (!rule || rule.sharedResponsibilityRuleVersion !== entry.sharedResponsibilityRule.sharedResponsibilityRuleVersion)\n push(\n AssuranceProgramSpecificationIssueKind.UNKNOWN_OBLIGATION_GOVERNANCE_RECORD,\n `${entryPath}.sharedResponsibilityRule`,\n `obligation ${entryKey} shared-responsibility rule does not resolve by exact identity and digest`,\n );\n else {\n usedSharedResponsibilityRuleKeys.add(ruleKey);\n if (\n JSON.stringify(rule.scopeSelectorRefs) !== JSON.stringify(entry.scopeSelectorRefs) ||\n JSON.stringify(rule.governanceActorKinds) !== JSON.stringify(entry.governanceActorKinds)\n )\n push(\n AssuranceProgramSpecificationIssueKind.RELATIONSHIP_MISMATCH,\n `${entryPath}.sharedResponsibilityRule`,\n `shared-responsibility rule ${ruleKey} must govern the obligation's exact scope and actor set`,\n );\n if (!entry.reviewOwnerRoleRefs.includes(rule.reviewedByRoleRef))\n push(\n AssuranceProgramSpecificationIssueKind.RELATIONSHIP_MISMATCH,\n `${entryPath}.sharedResponsibilityRule`,\n `shared-responsibility rule ${ruleKey} reviewer is not permitted by obligation ${entryKey}'s review policy`,\n );\n }\n }\n\n entry.dependencyObligationRefs.forEach((dependency) => {\n if (!entryByKey.has(versionedObligationKey(dependency)))\n push(\n AssuranceProgramSpecificationIssueKind.UNKNOWN_OBLIGATION_GOVERNANCE_RECORD,\n `${entryPath}.dependencyObligationRefs`,\n `obligation ${entryKey} references undeclared dependency ${versionedObligationKey(dependency)}`,\n );\n });\n });\n\n program.obligationCoverageDecisions.forEach((decision, decisionIndex) => {\n const decisionKey = versionedCoverageDecisionKey(decision);\n requireRole(decision.reviewedByRoleRef, `obligationCoverageDecisions.${decisionIndex}.reviewedByRoleRef`);\n if (!usedCoverageDecisionKeys.has(decisionKey))\n push(\n AssuranceProgramSpecificationIssueKind.UNKNOWN_OBLIGATION_GOVERNANCE_RECORD,\n `obligationCoverageDecisions.${decisionIndex}`,\n `coverage decision ${decisionKey} is not retained by an exact obligation entry`,\n );\n });\n program.sharedResponsibilityRules.forEach((rule, ruleIndex) => {\n const ruleKey = versionedSharedResponsibilityRuleKey(rule);\n for (const roleRef of [\n ...rule.accountableRoleRefs,\n ...rule.operatingRoleRefs,\n ...rule.evidenceProviderRoleRefs,\n ...rule.approvingRoleRefs,\n ...rule.conflictResolutionRoleRefs,\n rule.reviewedByRoleRef,\n ])\n requireRole(roleRef, `sharedResponsibilityRules.${ruleIndex}`);\n rule.scopeSelectorRefs.forEach((scopeRef) => {\n if (!scopeByRef.has(scopeRef))\n push(\n AssuranceProgramSpecificationIssueKind.UNKNOWN_SCOPE_SELECTOR,\n `sharedResponsibilityRules.${ruleIndex}.scopeSelectorRefs`,\n `shared-responsibility rule ${ruleKey} references undeclared scope ${scopeRef}`,\n );\n });\n if (!usedSharedResponsibilityRuleKeys.has(ruleKey))\n push(\n AssuranceProgramSpecificationIssueKind.UNKNOWN_OBLIGATION_GOVERNANCE_RECORD,\n `sharedResponsibilityRules.${ruleIndex}`,\n `shared-responsibility rule ${ruleKey} is not retained by any obligation entry`,\n );\n });\n\n for (let leftIndex = 0; leftIndex < program.sharedResponsibilityRules.length; leftIndex += 1) {\n const left = program.sharedResponsibilityRules[leftIndex]!;\n for (let rightIndex = leftIndex + 1; rightIndex < program.sharedResponsibilityRules.length; rightIndex += 1) {\n const right = program.sharedResponsibilityRules[rightIndex]!;\n if (JSON.stringify(left.governanceActorKinds) !== JSON.stringify(right.governanceActorKinds)) continue;\n const scopesMayOverlap = left.scopeSelectorRefs.some((leftRef) => {\n const leftScope = scopeByRef.get(leftRef);\n return (\n leftScope !== undefined &&\n right.scopeSelectorRefs.some((rightRef) => {\n const rightScope = scopeByRef.get(rightRef);\n return rightScope !== undefined && assuranceProgramScopeSelectorsMayOverlap(leftScope, rightScope);\n })\n );\n });\n if (scopesMayOverlap)\n push(\n AssuranceProgramSpecificationIssueKind.AMBIGUOUS_SHARED_RESPONSIBILITY_RULE,\n \"sharedResponsibilityRules\",\n `shared-responsibility rules ${versionedSharedResponsibilityRuleKey(left)} and ${versionedSharedResponsibilityRuleKey(right)} govern the same actor set over potentially overlapping scopes`,\n );\n }\n }\n\n for (let leftIndex = 0; leftIndex < entries.length; leftIndex += 1) {\n const left = entries[leftIndex]!;\n for (let rightIndex = leftIndex + 1; rightIndex < entries.length; rightIndex += 1) {\n const right = entries[rightIndex]!;\n if (versionedObjectiveKey(left.objective) !== versionedObjectiveKey(right.objective)) continue;\n const scopesMayOverlap = left.scopeSelectorRefs.some((leftRef) => {\n const leftScope = scopeByRef.get(leftRef);\n return (\n leftScope !== undefined &&\n right.scopeSelectorRefs.some((rightRef) => {\n const rightScope = scopeByRef.get(rightRef);\n return rightScope !== undefined && assuranceProgramScopeSelectorsMayOverlap(leftScope, rightScope);\n })\n );\n });\n if (scopesMayOverlap)\n push(\n AssuranceProgramSpecificationIssueKind.AMBIGUOUS_OBLIGATION_BINDING,\n \"obligationRegister.entries\",\n `obligations ${versionedObligationKey(left)} and ${versionedObligationKey(right)} govern the same objective over potentially overlapping scopes`,\n );\n }\n }\n\n const visiting = new Set<string>();\n const visited = new Set<string>();\n const visitDependency = (entryKey: string): void => {\n if (visited.has(entryKey)) return;\n if (visiting.has(entryKey)) {\n push(\n AssuranceProgramSpecificationIssueKind.OBLIGATION_DEPENDENCY_CYCLE,\n \"obligationRegister.entries\",\n `obligation dependency graph contains a cycle through ${entryKey}`,\n );\n return;\n }\n const entry = entryByKey.get(entryKey);\n if (!entry) return;\n visiting.add(entryKey);\n entry.dependencyObligationRefs.forEach((dependency) => visitDependency(versionedObligationKey(dependency)));\n visiting.delete(entryKey);\n visited.add(entryKey);\n };\n entryByKey.forEach((_entry, entryKey) => visitDependency(entryKey));\n }\n requiredApplicabilitySubjects.forEach((subject) => {\n if (!applicabilityBySubject.has(subject))\n push(\n AssuranceProgramSpecificationIssueKind.INCOMPLETE_APPLICABILITY,\n \"applicabilityDecisions\",\n `used source/scope subject ${subject} requires an explicit APPLICABLE, NOT_APPLICABLE or UNDETERMINED decision`,\n );\n });\n program.sourceReferences.forEach((source) => {\n const hasDecision = [...applicabilityBySubject.keys()].some((subject) => subject.startsWith(`${versionedSourceKey(source.identity)}::`));\n if (!hasDecision)\n push(\n AssuranceProgramSpecificationIssueKind.INCOMPLETE_APPLICABILITY,\n \"applicabilityDecisions\",\n `declared source ${versionedSourceKey(source.identity)} has no explicit applicability decision`,\n );\n });\n\n program.implementationDecisions.forEach((decision, index) => {\n const objectiveKey = versionedObjectiveKey(decision.objective);\n if (!objectiveKeys.has(objectiveKey))\n push(\n AssuranceProgramSpecificationIssueKind.UNKNOWN_OBJECTIVE,\n `implementationDecisions.${index}.objective`,\n \"implementation decision references an unbound Wildo objective version\",\n );\n decision.scopeSelectorRefs.forEach((scopeRef) => {\n if (!scopeByRef.has(scopeRef))\n push(\n AssuranceProgramSpecificationIssueKind.UNKNOWN_SCOPE_SELECTOR,\n `implementationDecisions.${index}.scopeSelectorRefs`,\n `implementation decision references undeclared scope selector ${scopeRef}`,\n );\n const hasScopedBinding = objectiveBindings.some(\n (binding) => versionedObjectiveKey(binding.objective) === objectiveKey && binding.scopeSelectorRefs.includes(scopeRef),\n );\n if (!hasScopedBinding)\n push(\n AssuranceProgramSpecificationIssueKind.RELATIONSHIP_MISMATCH,\n `implementationDecisions.${index}.scopeSelectorRefs`,\n `objective ${objectiveKey} is not bound to scope ${scopeRef}`,\n );\n const subject = `${objectiveKey}::${scopeRef}`;\n implementationDecisionCountBySubject.set(subject, (implementationDecisionCountBySubject.get(subject) ?? 0) + 1);\n });\n decision.capabilitySelections.forEach((selection) => {\n const authority = capabilityAuthorityByKey.get(versionedCapabilityKey(selection));\n if (!authority)\n push(\n AssuranceProgramSpecificationIssueKind.UNKNOWN_CAPABILITY,\n `implementationDecisions.${index}.capabilitySelections`,\n `selected capability ${versionedCapabilityKey(selection)} has no declared authority`,\n );\n else if (authority.capabilityKind !== selection.capabilityKind)\n push(\n AssuranceProgramSpecificationIssueKind.RELATIONSHIP_MISMATCH,\n `implementationDecisions.${index}.capabilitySelections`,\n `selected capability ${versionedCapabilityKey(selection)} kind does not match its authority`,\n );\n });\n decision.gapRefs.forEach((findingIdentity) => {\n const findingKey = `${findingIdentity.findingRef}@${findingIdentity.findingVersion}`;\n const finding = findingByKey.get(findingKey);\n if (!finding)\n push(\n AssuranceProgramSpecificationIssueKind.UNKNOWN_FINDING,\n `implementationDecisions.${index}.gapRefs`,\n `implementation decision references undeclared finding ${findingKey}`,\n );\n else if (\n !finding.objective ||\n versionedObjectiveKey(finding.objective) !== objectiveKey ||\n !decision.scopeSelectorRefs.includes(finding.scopeSelectorRef) ||\n finding.disposition !== decision.gapDisposition\n )\n push(\n AssuranceProgramSpecificationIssueKind.RELATIONSHIP_MISMATCH,\n `implementationDecisions.${index}.gapRefs`,\n `finding ${findingKey} does not match the decision objective, scope and disposition`,\n );\n });\n if (decision.gapRefs.length > 0)\n decision.scopeSelectorRefs.forEach((scopeRef) => {\n const scope = scopeByRef.get(scopeRef);\n const matchingFinding = decision.gapRefs.some((identity) => {\n const finding = findingByKey.get(`${identity.findingRef}@${identity.findingVersion}`);\n if (!finding || !scope) return false;\n return (\n finding.scopeSelectorRef === scopeRef &&\n finding.scopeSelectorVersion === scope.scopeSelectorVersion &&\n finding.objective !== undefined &&\n versionedObjectiveKey(finding.objective) === objectiveKey &&\n finding.disposition === decision.gapDisposition\n );\n });\n if (!matchingFinding)\n push(\n AssuranceProgramSpecificationIssueKind.RELATIONSHIP_MISMATCH,\n `implementationDecisions.${index}.gapRefs`,\n `objective/scope subject ${objectiveKey}::${scopeRef} requires its own exact versioned finding`,\n );\n });\n });\n controlBindingCountBySubject.forEach((_count, subject) => {\n const decisionCount = implementationDecisionCountBySubject.get(subject) ?? 0;\n if (decisionCount === 0)\n push(\n AssuranceProgramSpecificationIssueKind.INCOMPLETE_IMPLEMENTATION_DECISION,\n \"implementationDecisions\",\n `objective/scope subject ${subject} has no explicit implementation decision`,\n );\n else if (decisionCount > 1)\n push(\n AssuranceProgramSpecificationIssueKind.AMBIGUOUS_IMPLEMENTATION_DECISION,\n \"implementationDecisions\",\n `objective/scope subject ${subject} has ${decisionCount} implementation decisions; exactly one is required`,\n );\n });\n\n program.responsibilityAssignments.forEach((assignment, index) => {\n if (!scopeByRef.has(assignment.scopeSelectorRef))\n push(\n AssuranceProgramSpecificationIssueKind.UNKNOWN_SCOPE_SELECTOR,\n `responsibilityAssignments.${index}.scopeSelectorRef`,\n \"responsibility assignment references an undeclared scope selector\",\n );\n for (const roleRef of [\n ...assignment.responsibleRoleRefs,\n ...assignment.operatingRoleRefs,\n ...assignment.evidenceProviderRoleRefs,\n ...assignment.approvingRoleRefs,\n ...assignment.escalationRoleRefs,\n ])\n requireRole(roleRef, `responsibilityAssignments.${index}`);\n });\n const assignedScopeRefs = new Set(program.responsibilityAssignments.map((assignment) => assignment.scopeSelectorRef));\n scopeByRef.forEach((_scope, scopeRef) => {\n if (!assignedScopeRefs.has(scopeRef))\n push(\n AssuranceProgramSpecificationIssueKind.INCOMPLETE_RESPONSIBILITY_ASSIGNMENT,\n \"responsibilityAssignments\",\n `scope ${scopeRef} has no responsibility assignment`,\n );\n });\n\n program.gapsAndExceptions.forEach((finding, index) => {\n const scope = scopeByRef.get(finding.scopeSelectorRef);\n if (!scope || scope.scopeSelectorVersion !== finding.scopeSelectorVersion)\n push(\n AssuranceProgramSpecificationIssueKind.UNKNOWN_SCOPE_SELECTOR,\n `gapsAndExceptions.${index}.scopeSelectorVersion`,\n \"finding references an undeclared scope selector version\",\n );\n if (finding.source && !sourceKeys.has(versionedSourceKey(finding.source)))\n push(\n AssuranceProgramSpecificationIssueKind.UNKNOWN_BINDING_SOURCE,\n `gapsAndExceptions.${index}.source`,\n \"finding references an undeclared source version\",\n );\n if (finding.objective && !objectiveKeys.has(versionedObjectiveKey(finding.objective)))\n push(\n AssuranceProgramSpecificationIssueKind.UNKNOWN_OBJECTIVE,\n `gapsAndExceptions.${index}.objective`,\n \"finding references an unbound Wildo objective version\",\n );\n if (program.schemaVersion === 3 && finding.objective) {\n const matchingObligations = program.obligationRegister.entries.filter(\n (entry) =>\n versionedObjectiveKey(entry.objective) === versionedObjectiveKey(finding.objective!) &&\n entry.scopeSelectorRefs.includes(finding.scopeSelectorRef) &&\n entry.gapRefs.some((identity) => identity.findingRef === finding.findingRef && identity.findingVersion === finding.findingVersion),\n );\n if (matchingObligations.length !== 1)\n push(\n AssuranceProgramSpecificationIssueKind.RELATIONSHIP_MISMATCH,\n `gapsAndExceptions.${index}.objective`,\n `objective-bearing finding ${finding.findingRef}@${finding.findingVersion} must resolve exactly one obligation over scope ${finding.scopeSelectorRef}; found ${matchingObligations.length}`,\n );\n }\n if (finding.objective && finding.source) {\n const objectiveKey = versionedObjectiveKey(finding.objective);\n const sourceKey = versionedSourceKey(finding.source);\n const sourceMatchesBinding = objectiveBindings.some(\n (binding) =>\n versionedObjectiveKey(binding.objective) === objectiveKey &&\n binding.scopeSelectorRefs.includes(finding.scopeSelectorRef) &&\n binding.sourceRequirementRefs.some((reference) => versionedSourceKey(reference.source) === sourceKey),\n );\n if (!sourceMatchesBinding)\n push(\n AssuranceProgramSpecificationIssueKind.RELATIONSHIP_MISMATCH,\n `gapsAndExceptions.${index}.source`,\n `finding source ${sourceKey} is not bound to ${objectiveKey} in scope ${finding.scopeSelectorRef}`,\n );\n }\n requireRole(finding.ownerRoleRef, `gapsAndExceptions.${index}.ownerRoleRef`);\n });\n\n program.documentationRequirements.forEach((requirement, index) => {\n requirement.sourceRefs.forEach((source) => {\n if (!sourceKeys.has(versionedSourceKey(source)))\n push(\n AssuranceProgramSpecificationIssueKind.UNKNOWN_DOCUMENT_SOURCE,\n `documentationRequirements.${index}.sourceRefs`,\n \"documentation requirement references an undeclared source version\",\n );\n });\n requirement.approvingRoleRefs.forEach((roleRef) => requireRole(roleRef, `documentationRequirements.${index}.approvingRoleRefs`));\n });\n\n program.implementationStatements.forEach((statement, index) => {\n const objectiveKey = versionedObjectiveKey(statement.objective);\n if (!objectiveKeys.has(objectiveKey))\n push(\n AssuranceProgramSpecificationIssueKind.UNKNOWN_OBJECTIVE,\n `implementationStatements.${index}.objective`,\n \"implementation statement references an unbound Wildo objective version\",\n );\n const scope = scopeByRef.get(statement.governanceScope.scopeRef);\n if (!scope || scope.scopeSelectorVersion !== statement.governanceScope.scopeVersion)\n push(\n AssuranceProgramSpecificationIssueKind.UNKNOWN_SCOPE_SELECTOR,\n `implementationStatements.${index}.governanceScope`,\n \"implementation statement references an undeclared scope selector version\",\n );\n const matchingDecisions = program.implementationDecisions.filter(\n (decision) => versionedObjectiveKey(decision.objective) === objectiveKey && decision.scopeSelectorRefs.includes(statement.governanceScope.scopeRef),\n );\n statement.capabilityBindingRefs.forEach((capability) => {\n const key = versionedCapabilityKey(capability);\n const selectedForStatement = matchingDecisions.some((decision) =>\n decision.capabilitySelections.some((selection) => versionedCapabilityKey(selection) === key),\n );\n if (!selectedForStatement)\n push(\n AssuranceProgramSpecificationIssueKind.RELATIONSHIP_MISMATCH,\n `implementationStatements.${index}.capabilityBindingRefs`,\n `capability ${key} is not selected for this exact objective and scope`,\n );\n });\n statement.documentDependencies.forEach((dependency) => {\n if (!documentKeys.has(versionedDocumentKey(dependency)))\n push(\n AssuranceProgramSpecificationIssueKind.UNKNOWN_DOCUMENT,\n `implementationStatements.${index}.documentDependencies`,\n `implementation statement references undeclared document ${versionedDocumentKey(dependency)}`,\n );\n });\n if (program.schemaVersion === 1) requireRevision(statement, `implementationStatements.${index}.sourceRevisionRef`);\n else requireBasis(statement, `implementationStatements.${index}.basisRef`);\n });\n return issues;\n}\n\nconst sourceReferenceMatchesRecord = (reference: AssuranceProgramSourceReference, record: AssuranceSourceRecord): boolean =>\n reference.edition === record.edition &&\n reference.authorityKind === record.authorityKind &&\n reference.authorityName === record.authorityName &&\n reference.lifecycleStatus === record.lifecycleStatus &&\n reference.rightsRef === record.rights.rightsRef &&\n reference.rightsVersion === record.rights.rightsVersion;\n\n/**\n * Deterministic semantic validation consumed by the application-specification family authority.\n *\n * `authorities` is OPTIONAL. Without it, only the program's own structural and coherence issues are\n * collected — the content-validation half, which is a pure function of the authored bytes. The\n * authority-snapshot cross-checks run only when a host supplies a resolved snapshot (the\n * framework-knowledge generation pipeline does; the application-creation landing gate does not, and\n * refusing to validate at all in that case made the compliance-program family unlandable).\n */\nexport const validateAssuranceProgramSpecification = (\n program: AssuranceProgramSpecification,\n authorities?: AssuranceProgramValidationAuthorities,\n): { ok: boolean; issues: AssuranceProgramSpecificationIssue[] } => {\n const issues = collectAssuranceProgramSpecificationIssues(program);\n if (!authorities) {\n return { ok: issues.length === 0, issues };\n }\n const objectiveBindings = resolveAssuranceProgramObjectiveBindings(program);\n const objectiveBindingCollectionPath = assuranceProgramObjectiveBindingCollectionPath(program);\n const parsedSnapshot = AssuranceProgramValidationAuthoritySnapshotSchema.safeParse(authorities.snapshot);\n if (!parsedSnapshot.success) {\n issues.push({\n kind: AssuranceProgramSpecificationIssueKind.AUTHORITY_SNAPSHOT_INVALID,\n path: \"validationAuthorities.snapshot\",\n // Unbounded on purpose: this message is the author-facing account of WHY the\n // authority snapshot is invalid, so eliding issues would hide fixable faults.\n // Rendering delegates to the canonical formatter in `@wildo-ai/saas-models`.\n message: summarizeZodIssues(parsedSnapshot.error.issues, { limit: ALL_ZOD_ISSUES }),\n });\n return { ok: false, issues };\n }\n const snapshot = parsedSnapshot.data;\n if (snapshot.documentAuthorityCatalog) {\n collectAssuranceDocumentAuthorityCatalogIssues({\n catalog: snapshot.documentAuthorityCatalog,\n sourceRegistry: snapshot.sourceRegistry,\n evaluatedAt: snapshot.evaluatedAt,\n }).forEach((message) =>\n issues.push({\n kind: AssuranceProgramSpecificationIssueKind.DOCUMENT_AUTHORITY_CATALOG_INVALID,\n path: \"validationAuthorities.snapshot.documentAuthorityCatalog\",\n message,\n }),\n );\n }\n /*\n * HOST AUTHORITY BASIS DRIFT — the one cross-boundary check in this block, and the only one that\n * ever meant anything: does the basis the PROGRAM accepted match the basis the HOST is offering?\n * It is keyed on `basisRef@basisVersion`, the declared compatibility generation, so it fires when\n * the framework's interpretation contract moves and stays quiet for byte movement that does not.\n * (Five sibling checks here hashed the snapshot against its own material and were deleted\n * 2026-08-27 — see `.claude/rules/one-source-of-truth.md`.)\n */\n if (program.schemaVersion !== 1) {\n const snapshotBasis = { basisRef: snapshot.snapshotRef, basisVersion: snapshot.snapshotVersion };\n program.authorityBases.forEach((basis, basisIndex) => {\n if (authorityBasisIdentityKey(basis) === authorityBasisIdentityKey(snapshotBasis)) return;\n issues.push({\n kind: AssuranceProgramSpecificationIssueKind.HOST_AUTHORITY_BASIS_DRIFT,\n path: `authorityBases.${basisIndex}`,\n subjectRef: `${basis.basisRef}@${basis.basisVersion}`,\n message: `authority basis ${basis.basisRef}@${basis.basisVersion} is not the host basis ${snapshotBasis.basisRef}@${snapshotBasis.basisVersion}`,\n });\n });\n }\n\n // Policy dates use UTC. Deriving from the authored timestamp text would let two offset spellings\n // of the same instant select different applicability, review and expiry decisions.\n const evaluatedOn = utcIsoDateFromInstant(snapshot.evaluatedAt);\n const sourceRecords = new Map(snapshot.sourceRegistry.sources.map((source) => [versionedSourceKey(source.identity), source]));\n const objectiveRecords = new Map(snapshot.objectiveCatalog.objectives.map((objective) => [versionedObjectiveKey(objective.identity), objective]));\n const applicationRoleRefs = new Set<string>(snapshot.applicationRoleRefs);\n const hostCapabilities = new Map(snapshot.capabilityAuthorities.map((authority) => [versionedCapabilityKey(authority.identity), authority]));\n /*\n * Ref-only, unlike `hostCapabilities` above, and the difference is load-bearing. An expectation\n * authority names the capabilities it REQUIRES without a version, so asking the versioned map would\n * report every requirement as unavailable the moment a capability's version moved — a configuration\n * diagnosis for what is really a version question, which `HOST_CAPABILITY_IMPLEMENTATION_DRIFT`\n * already answers properly.\n */\n const hostCapabilityRefs = new Set(snapshot.capabilityAuthorities.map((authority) => authority.identity.capabilityRef));\n const hostArtifacts = new Set(snapshot.implementationArtifacts.map((artifact) => artifact.artifactRef));\n const hostImplementationArtifactsByKind = new Map(snapshot.hostImplementationArtifacts.map((artifact) => [artifact.artifactKindRef, artifact]));\n const sourceRequirementAuthorities = new Map(snapshot.sourceRequirementAuthorities.map((authority) => [versionedSourceRequirementKey(authority), authority]));\n const implementationExpectationAuthorities = new Map(\n snapshot.implementationExpectationAuthorities.map((authority) => [versionedExpectationKey(authority.identity), authority]),\n );\n const evidenceExpectationAuthorities = new Map(\n snapshot.evidenceExpectationAuthorities.map((authority) => [versionedExpectationKey(authority.identity), authority]),\n );\n const verificationExpectationAuthorities = new Map(\n snapshot.verificationExpectationAuthorities.map((authority) => [versionedExpectationKey(authority.identity), authority]),\n );\n\n program.documentationRequirements.forEach((requirement, requirementIndex) => {\n if (!(\"schemaVersion\" in requirement) || requirement.schemaVersion !== 2) return;\n const catalog = snapshot.documentAuthorityCatalog;\n if (!catalog) {\n issues.push({\n kind: AssuranceProgramSpecificationIssueKind.DOCUMENT_AUTHORITY_CATALOG_INVALID,\n path: `documentationRequirements.${requirementIndex}.definition`,\n message: \"a v2 documentation requirement requires a validation snapshot carrying the engine-owned document authority catalog\",\n });\n return;\n }\n const definition = catalog.definitions.find(\n (candidate) =>\n candidate.identity.definitionRef === requirement.definition.definitionRef &&\n candidate.identity.definitionVersion === requirement.definition.definitionVersion,\n );\n if (!definition) {\n issues.push({\n kind: AssuranceProgramSpecificationIssueKind.UNKNOWN_DOCUMENT,\n path: `documentationRequirements.${requirementIndex}.definition`,\n message: `document definition ${requirement.definition.definitionRef}@${requirement.definition.definitionVersion} is absent from the engine authority catalog`,\n });\n return;\n }\n const relationshipProblems: string[] = [];\n if (requirement.documentKindRef !== definition.stableKindRef) relationshipProblems.push(\"document kind\");\n if (!definition.governanceSubjectKinds.includes(requirement.governanceScope.subjectKind)) relationshipProblems.push(\"governance subject\");\n if (requirement.audienceKinds.some((audience) => !definition.audienceKinds.includes(audience))) relationshipProblems.push(\"audience\");\n if (requirement.allowedInteractionKinds.some((kind) => !definition.allowedInteractionKinds.includes(kind)))\n relationshipProblems.push(\"interaction meaning\");\n if (requirement.publicationChannelKinds.some((channel) => !definition.publicationChannelKinds.includes(channel)))\n relationshipProblems.push(\"publication channel\");\n if (definition.requiredFactRefs.some((factRef) => !requirement.requiredAcceptedFactRefs.includes(factRef))) relationshipProblems.push(\"required facts\");\n\n const requiredReviewKinds = new Set(\n catalog.qualifiedReviewPolicies\n .filter((policy) => definition.qualifiedReviewPolicyRefs.includes(policy.policyRef))\n .flatMap((policy) => assuranceDocumentQualifiedReviewRequirements(policy).map((reviewRequirement) => reviewRequirement.reviewKind)),\n );\n if ([...requiredReviewKinds].some((reviewKind) => !requirement.requiredReviewKinds.includes(reviewKind))) relationshipProblems.push(\"qualified reviews\");\n\n const requiredSourceKeys = new Set(\n catalog.sourceMonitoringPolicies\n .filter((policy) => definition.sourcePolicyRefs.includes(policy.policyRef))\n .map((policy) => versionedSourceKey(policy.source)),\n );\n const authoredSourceKeys = new Set(requirement.sourceRefs.map(versionedSourceKey));\n if ([...requiredSourceKeys].some((sourceKey) => !authoredSourceKeys.has(sourceKey))) relationshipProblems.push(\"authoritative sources\");\n const declaredScope = program.scopeSelectors.find((scope) => String(scope.scopeSelectorRef) === String(requirement.governanceScope.scopeRef));\n if (!declaredScope || declaredScope.scopeSelectorVersion !== requirement.governanceScope.scopeVersion) relationshipProblems.push(\"governance scope\");\n if (timestampIsAfter(requirement.applicabilityDecidedAt, snapshot.evaluatedAt)) relationshipProblems.push(\"applicability decision time\");\n\n if (relationshipProblems.length > 0) {\n issues.push({\n kind: AssuranceProgramSpecificationIssueKind.RELATIONSHIP_MISMATCH,\n path: `documentationRequirements.${requirementIndex}`,\n message: `documentation requirement does not satisfy its exact engine-owned definition: ${relationshipProblems.join(\", \")}`,\n });\n }\n });\n\n if (program.schemaVersion === 3) {\n program.obligationCoverageDecisions.forEach((decision, decisionIndex) => {\n if (timestampIsAfter(decision.reviewedAt, snapshot.evaluatedAt))\n issues.push({\n kind: AssuranceProgramSpecificationIssueKind.TEMPORAL_POLICY_CONFLICT,\n path: `obligationCoverageDecisions.${decisionIndex}.reviewedAt`,\n message: \"coverage review cannot be later than the authority evaluation time\",\n });\n decision.sourceRequirementRefs.forEach((reference, referenceIndex) => {\n const requirementAuthority = sourceRequirementAuthorities.get(versionedSourceRequirementKey(reference));\n const sourceAuthority = sourceRecords.get(versionedSourceKey(reference.source));\n const authorityFacts = [\n requirementAuthority && { label: \"source-requirement review\", observedAt: requirementAuthority.reviewedAt },\n sourceAuthority && { label: \"source-rights review\", observedAt: sourceAuthority.rights.reviewedAt },\n sourceAuthority?.retrievedArtifact && { label: \"source-artifact retrieval\", observedAt: sourceAuthority.retrievedArtifact.retrievedAt },\n ].filter((fact): fact is { label: string; observedAt: string } => fact !== undefined);\n authorityFacts.forEach((fact) => {\n if (timestampIsAfter(fact.observedAt, decision.reviewedAt))\n issues.push({\n kind: AssuranceProgramSpecificationIssueKind.TEMPORAL_POLICY_CONFLICT,\n path: `obligationCoverageDecisions.${decisionIndex}.sourceRequirementRefs.${referenceIndex}`,\n message: `coverage review cannot predate the cited ${fact.label} at ${fact.observedAt}`,\n });\n });\n });\n });\n program.sharedResponsibilityRules.forEach((rule, ruleIndex) => {\n if (timestampIsAfter(rule.reviewedAt, snapshot.evaluatedAt))\n issues.push({\n kind: AssuranceProgramSpecificationIssueKind.TEMPORAL_POLICY_CONFLICT,\n path: `sharedResponsibilityRules.${ruleIndex}.reviewedAt`,\n message: \"shared-responsibility review cannot be later than the authority evaluation time\",\n });\n });\n program.obligationRegister.entries.forEach((entry, entryIndex) => {\n if (timestampIsAfter(entry.applicability.decidedAt, snapshot.evaluatedAt))\n issues.push({\n kind: AssuranceProgramSpecificationIssueKind.TEMPORAL_POLICY_CONFLICT,\n path: `obligationRegister.entries.${entryIndex}.applicability.decidedAt`,\n message: \"obligation applicability decision cannot be later than the authority evaluation time\",\n });\n const coverageDecision = program.obligationCoverageDecisions.find(\n (decision) => versionedCoverageDecisionKey(decision) === versionedCoverageDecisionKey(entry.coverageDecision),\n );\n if (coverageDecision && timestampIsAfter(coverageDecision.reviewedAt, entry.applicability.decidedAt))\n issues.push({\n kind: AssuranceProgramSpecificationIssueKind.TEMPORAL_POLICY_CONFLICT,\n path: `obligationRegister.entries.${entryIndex}.applicability.decidedAt`,\n message: `obligation applicability decision cannot predate its approved coverage review at ${coverageDecision.reviewedAt}`,\n });\n if (entry.reviewOn < evaluatedOn)\n issues.push({\n kind: AssuranceProgramSpecificationIssueKind.TEMPORAL_POLICY_CONFLICT,\n path: `obligationRegister.entries.${entryIndex}.reviewOn`,\n message: `obligation review was due before authority evaluation date ${evaluatedOn}`,\n });\n });\n }\n\n objectiveBindings.forEach((binding, index) => {\n const objectiveKey = versionedObjectiveKey(binding.objective);\n const objective = objectiveRecords.get(objectiveKey);\n if (!objective)\n issues.push({\n kind: AssuranceProgramSpecificationIssueKind.UNKNOWN_OBJECTIVE,\n path: `${objectiveBindingCollectionPath}.${index}.objective`,\n message: `objective ${objectiveKey} is absent from the supplied Wildo objective catalog`,\n });\n else if (objective.lifecycleStatus !== AssuranceObjectiveLifecycleStatus.ACTIVE)\n issues.push({\n kind: AssuranceProgramSpecificationIssueKind.UNKNOWN_OBJECTIVE,\n path: `${objectiveBindingCollectionPath}.${index}.objective`,\n message: `objective ${objectiveKey} is ${objective.lifecycleStatus.toLowerCase()} and cannot authorize current application policy`,\n });\n binding.sourceRequirementRefs.forEach((reference) => {\n const authority = sourceRequirementAuthorities.get(versionedSourceRequirementKey(reference));\n if (!authority || versionedObjectiveKey(authority.objective) !== objectiveKey)\n issues.push({\n kind: AssuranceProgramSpecificationIssueKind.UNKNOWN_SOURCE_REQUIREMENT,\n path: `${objectiveBindingCollectionPath}.${index}.sourceRequirementRefs`,\n message: `source requirement ${versionedSourceRequirementKey(reference)} is not reviewed for objective ${objectiveKey}`,\n });\n });\n for (const [field, refs, authorityMap] of [\n [\"implementationExpectationRefs\", binding.implementationExpectationRefs, implementationExpectationAuthorities],\n [\"evidenceExpectationRefs\", binding.evidenceExpectationRefs, evidenceExpectationAuthorities],\n [\"verificationExpectationRefs\", binding.verificationExpectationRefs, verificationExpectationAuthorities],\n ] as const)\n refs.forEach((identity) => {\n const key = versionedExpectationKey(identity);\n const authority = authorityMap.get(key);\n if (!authority || versionedObjectiveKey(authority.objective) !== objectiveKey)\n issues.push({\n kind: AssuranceProgramSpecificationIssueKind.UNKNOWN_VALIDATION_AUTHORITY,\n path: `${objectiveBindingCollectionPath}.${index}.${field}`,\n message: `${key} is not an exact reviewed authority for objective ${objectiveKey}`,\n });\n });\n });\n\n program.roleAuthorities.forEach((authority, index) => {\n if (!applicationRoleRefs.has(authority.applicationRoleRef))\n issues.push({\n kind: AssuranceProgramSpecificationIssueKind.UNKNOWN_ROLE,\n path: `roleAuthorities.${index}.applicationRoleRef`,\n message: `application role ${authority.applicationRoleRef} is absent from the host application-role catalog`,\n });\n });\n\n program.capabilityAuthorities.forEach((authority, index) => {\n const key = versionedCapabilityKey(authority.identity);\n const host = hostCapabilities.get(key);\n /*\n * Two different verdicts hide behind \"does not match the host catalog\", and collapsing them costs an operator\n * the ability to tell \"this host cannot implement the control I accepted\" from \"the control is intact, its\n * bytes moved\". The first can never be resolved by re-accepting; the second is resolved by exactly that.\n * Identity, kind and implementation refs are checked first because a capability that fails any of them is not\n * the accepted control at all — its revision is then irrelevant.\n */\n if (!host || host.capabilityKind !== authority.capabilityKind || JSON.stringify(host.implementationRefs) !== JSON.stringify(authority.implementationRefs)) {\n issues.push({\n kind: AssuranceProgramSpecificationIssueKind.UNKNOWN_CAPABILITY,\n path: `capabilityAuthorities.${index}`,\n message: `capability authority ${key} is absent from the enabled host capability catalog or resolves to a different capability kind or implementation`,\n });\n return;\n }\n const implementationIdentityMatches =\n program.schemaVersion === 1\n ? sourceRevisionKey(host.implementationRevision) === sourceRevisionKey(authority.implementationRevision)\n : authorityBasisIdentityKey(authority.implementationAuthority) ===\n authorityBasisIdentityKey({ basisRef: snapshot.snapshotRef, basisVersion: snapshot.snapshotVersion });\n if (!implementationIdentityMatches)\n issues.push({\n kind: AssuranceProgramSpecificationIssueKind.HOST_CAPABILITY_IMPLEMENTATION_DRIFT,\n path: `capabilityAuthorities.${index}`,\n subjectRef: key,\n message: `capability authority ${key} is offered by the host under a different implementation authority than the one it was accepted against`,\n });\n });\n\n program.implementationDecisions.forEach((decision, decisionIndex) => {\n decision.capabilitySelections.forEach((selection, selectionIndex) => {\n const host = hostCapabilities.get(versionedCapabilityKey(selection));\n if (!host) return;\n host.requiredHostArtifactKindRefs.forEach((artifactKindRef) => {\n if (!hostImplementationArtifactsByKind.has(artifactKindRef))\n issues.push({\n kind: AssuranceProgramSpecificationIssueKind.UNKNOWN_CAPABILITY,\n path: `implementationDecisions.${decisionIndex}.capabilitySelections.${selectionIndex}`,\n message: `capability selection requires host implementation artifact kind ${artifactKindRef}`,\n });\n });\n const profile = selection.profileRef ? host.profiles.find((candidate) => candidate.profileRef === selection.profileRef) : undefined;\n if ((selection.profileRef && !profile) || (!selection.profileRef && host.profiles.length > 0))\n issues.push({\n kind: AssuranceProgramSpecificationIssueKind.UNKNOWN_CAPABILITY,\n path: `implementationDecisions.${decisionIndex}.capabilitySelections.${selectionIndex}.profileRef`,\n message: `capability selection must resolve one exact host-authorized profile`,\n });\n if (profile) {\n const selectedByParameter = new Map(selection.selectedOptions.map((option) => [option.parameterRef, option.selectedOptionRef]));\n profile.parameters.forEach((parameter) => {\n const selected = selectedByParameter.get(parameter.parameterRef);\n if (!selected || !parameter.allowedOptionRefs.includes(selected))\n issues.push({\n kind: AssuranceProgramSpecificationIssueKind.UNKNOWN_CAPABILITY,\n path: `implementationDecisions.${decisionIndex}.capabilitySelections.${selectionIndex}.selectedOptions`,\n message: `profile ${profile.profileRef} requires one allowed option for ${parameter.parameterRef}`,\n });\n });\n selection.selectedOptions.forEach((option) => {\n if (!profile.parameters.some((parameter) => parameter.parameterRef === option.parameterRef))\n issues.push({\n kind: AssuranceProgramSpecificationIssueKind.UNKNOWN_CAPABILITY,\n path: `implementationDecisions.${decisionIndex}.capabilitySelections.${selectionIndex}.selectedOptions`,\n message: `parameter ${option.parameterRef} is absent from profile ${profile.profileRef}`,\n });\n });\n } else if (selection.selectedOptions.length > 0)\n issues.push({\n kind: AssuranceProgramSpecificationIssueKind.UNKNOWN_CAPABILITY,\n path: `implementationDecisions.${decisionIndex}.capabilitySelections.${selectionIndex}.selectedOptions`,\n message: \"selected options require an exact host-authorized profile\",\n });\n });\n });\n\n program.sourceReferences.forEach((reference, index) => {\n const key = versionedSourceKey(reference.identity);\n const record = sourceRecords.get(key);\n if (!record) {\n issues.push({\n kind: AssuranceProgramSpecificationIssueKind.UNKNOWN_SOURCE_AUTHORITY,\n path: `sourceReferences.${index}`,\n message: `source ${key} is absent from the supplied authoritative registry`,\n });\n return;\n }\n if (!sourceReferenceMatchesRecord(reference, record))\n issues.push({\n kind: AssuranceProgramSpecificationIssueKind.SOURCE_AUTHORITY_MISMATCH,\n path: `sourceReferences.${index}`,\n message: `source ${key} does not exactly match its registry metadata, lifecycle and rights identity`,\n });\n const rightsAuthorization = deriveAssuranceRightsAuthorization(record.rights, snapshot.requestedSourceUses, snapshot.evaluatedAt);\n if (!rightsAuthorization.authorized)\n issues.push({\n kind: AssuranceProgramSpecificationIssueKind.SOURCE_RIGHTS_UNAUTHORIZED,\n path: `sourceReferences.${index}.rightsRef`,\n message: `source ${key} is not authorized for ${rightsAuthorization.requestedUses.join(\", \")}: ${rightsAuthorization.reasons.join(\", \")}`,\n });\n const currentApplicability = program.applicabilityDecisions.filter(\n (decision) =>\n versionedSourceKey(decision.source) === key &&\n decision.effectiveFrom <= evaluatedOn &&\n (!decision.effectiveUntil || evaluatedOn <= decision.effectiveUntil),\n );\n if (\n record.lifecycleStatus !== AssuranceSourceLifecycleStatus.ACTIVE &&\n currentApplicability.some((decision) => decision.status !== AssuranceProgramApplicabilityStatus.NOT_APPLICABLE)\n )\n issues.push({\n kind: AssuranceProgramSpecificationIssueKind.SOURCE_LIFECYCLE_CONFLICT,\n path: \"applicabilityDecisions\",\n message: `${record.lifecycleStatus.toLowerCase()} source ${key} cannot authorize a current applicable or undetermined period`,\n });\n if (\n currentApplicability.some((decision) => decision.status !== AssuranceProgramApplicabilityStatus.NOT_APPLICABLE) &&\n (record.publishedOn > evaluatedOn || (record.effectiveOn !== undefined && record.effectiveOn > evaluatedOn))\n )\n issues.push({\n kind: AssuranceProgramSpecificationIssueKind.SOURCE_LIFECYCLE_CONFLICT,\n path: \"applicabilityDecisions\",\n message: `source ${key} cannot authorize current applicability before its publication and effective dates`,\n });\n });\n\n if (program.schemaVersion === 3) {\n const applicabilityDecisionByKey = new Map(\n program.applicabilityDecisions.map((decision) => [versionedApplicabilityDecisionKey(decision), decision] as const),\n );\n program.obligationRegister.entries.forEach((entry, entryIndex) => {\n const citedCurrentDecisions: AssuranceProgramApplicabilityDecision[] = [];\n entry.sourceApplicabilityDecisionRefs.forEach((identity, identityIndex) => {\n const decision = applicabilityDecisionByKey.get(versionedApplicabilityDecisionKey(identity));\n if (decision && (decision.effectiveFrom > evaluatedOn || (decision.effectiveUntil !== undefined && evaluatedOn > decision.effectiveUntil)))\n issues.push({\n kind: AssuranceProgramSpecificationIssueKind.INCOMPLETE_APPLICABILITY,\n path: `obligationRegister.entries.${entryIndex}.sourceApplicabilityDecisionRefs.${identityIndex}`,\n message: `cited source applicability decision ${versionedApplicabilityDecisionKey(identity)} is not current on ${evaluatedOn}`,\n });\n else if (decision) citedCurrentDecisions.push(decision);\n });\n if (\n entry.applicability.status === AssuranceProgramObligationApplicabilityStatus.APPLICABLE &&\n !citedCurrentDecisions.some((decision) => decision.status === AssuranceProgramApplicabilityStatus.APPLICABLE)\n )\n issues.push({\n kind: AssuranceProgramSpecificationIssueKind.RELATIONSHIP_MISMATCH,\n path: `obligationRegister.entries.${entryIndex}.applicability.status`,\n message: \"an applicable obligation requires at least one cited source applicability decision that is currently APPLICABLE\",\n });\n });\n }\n\n const requiredApplicabilitySubjects = new Set<string>();\n objectiveBindings.forEach((binding) =>\n binding.sourceRequirementRefs.forEach((reference) =>\n binding.scopeSelectorRefs.forEach((scopeRef) => requiredApplicabilitySubjects.add(applicabilitySubjectKey(reference.source, scopeRef))),\n ),\n );\n program.sourceReferences.forEach((source) => {\n const matchingScopes = program.applicabilityDecisions\n .filter((decision) => versionedSourceKey(decision.source) === versionedSourceKey(source.identity))\n .map((decision) => decision.scopeSelectorRef);\n matchingScopes.forEach((scopeRef) => requiredApplicabilitySubjects.add(applicabilitySubjectKey(source.identity, scopeRef)));\n });\n requiredApplicabilitySubjects.forEach((subject) => {\n const decisions = program.applicabilityDecisions\n .filter((decision) => applicabilitySubjectKey(decision.source, decision.scopeSelectorRef) === subject)\n .sort((left, right) => compareCanonicalText(left.effectiveFrom, right.effectiveFrom));\n const current = decisions.filter(\n (decision) => decision.effectiveFrom <= evaluatedOn && (!decision.effectiveUntil || evaluatedOn <= decision.effectiveUntil),\n );\n if (current.length !== 1)\n issues.push({\n kind: AssuranceProgramSpecificationIssueKind.INCOMPLETE_APPLICABILITY,\n path: \"applicabilityDecisions\",\n message: `source/scope subject ${subject} requires exactly one decision current on ${evaluatedOn}; found ${current.length}`,\n });\n decisions.forEach((decision, index) => {\n const next = decisions[index + 1];\n if (!next) return;\n if (!decision.effectiveUntil)\n issues.push({\n kind: AssuranceProgramSpecificationIssueKind.TEMPORAL_POLICY_CONFLICT,\n path: \"applicabilityDecisions\",\n message: `open applicability period for ${subject} cannot have a successor`,\n });\n else {\n const nextCalendarDay = new Date(`${decision.effectiveUntil}T00:00:00.000Z`);\n nextCalendarDay.setUTCDate(nextCalendarDay.getUTCDate() + 1);\n if (next.effectiveFrom !== nextCalendarDay.toISOString().slice(0, 10))\n issues.push({\n kind: AssuranceProgramSpecificationIssueKind.TEMPORAL_POLICY_CONFLICT,\n path: \"applicabilityDecisions\",\n message: `declared applicability history for ${subject} contains a temporal gap`,\n });\n }\n });\n });\n\n program.gapsAndExceptions.forEach((finding, index) => {\n if (\n (finding.kind === AssuranceProgramFindingKind.EXCEPTION || finding.disposition === AssuranceGapDisposition.RISK_ACCEPTED) &&\n finding.expiresOn &&\n finding.expiresOn < evaluatedOn\n )\n issues.push({\n kind: AssuranceProgramSpecificationIssueKind.TEMPORAL_POLICY_CONFLICT,\n path: `gapsAndExceptions.${index}.expiresOn`,\n message: `exception or risk acceptance expired before authority evaluation date ${evaluatedOn}`,\n });\n if (finding.disposition !== AssuranceGapDisposition.RESOLVED && finding.reviewOn < evaluatedOn)\n issues.push({\n kind: AssuranceProgramSpecificationIssueKind.TEMPORAL_POLICY_CONFLICT,\n path: `gapsAndExceptions.${index}.reviewOn`,\n message: `open finding review was due before authority evaluation date ${evaluatedOn}`,\n });\n });\n\n if (program.schemaVersion === 1) {\n program.sourceRevisions.forEach((revision, index) => {\n revision.artifacts.forEach((artifact) => {\n if (!hostArtifacts.has(artifact.artifactRef))\n issues.push({\n kind: AssuranceProgramSpecificationIssueKind.UNKNOWN_IMPLEMENTATION_ARTIFACT,\n path: `sourceRevisions.${index}.artifacts`,\n subjectRef: sourceRevisionArtifactSubjectRef(revision.sourceRevisionRef, artifact.artifactRef),\n message: `artifact ${artifact.artifactRef} is absent from the host authority inventory`,\n });\n });\n });\n } else {\n program.authorityBases.forEach((basis, basisIndex) => {\n basis.attestedArtifactRefs.forEach((artifactRef) => {\n if (!hostArtifacts.has(artifactRef))\n issues.push({\n kind: AssuranceProgramSpecificationIssueKind.UNKNOWN_IMPLEMENTATION_ARTIFACT,\n path: `authorityBases.${basisIndex}.attestedArtifactRefs`,\n message: `artifact ${artifactRef} is not attested by the host authority-basis inventory`,\n });\n });\n });\n }\n\n program.implementationStatements.forEach((statement, statementIndex) => {\n if (statement.acceptedAt && timestampIsAfter(statement.acceptedAt, snapshot.evaluatedAt))\n issues.push({\n kind: AssuranceProgramSpecificationIssueKind.RELATIONSHIP_MISMATCH,\n path: `implementationStatements.${statementIndex}.acceptedAt`,\n message: \"implementation-statement acceptance cannot be later than the authority evaluation time\",\n });\n if (statement.invalidatedAt && timestampIsAfter(statement.invalidatedAt, snapshot.evaluatedAt))\n issues.push({\n kind: AssuranceProgramSpecificationIssueKind.RELATIONSHIP_MISMATCH,\n path: `implementationStatements.${statementIndex}.invalidatedAt`,\n message: \"implementation-statement invalidation cannot be later than the authority evaluation time\",\n });\n if (statement.lifecycleStatus !== AssuranceImplementationStatementLifecycleStatus.ACCEPTED) return;\n const objectiveKey = versionedObjectiveKey(statement.objective);\n const binding = objectiveBindings.find(\n (candidate) => versionedObjectiveKey(candidate.objective) === objectiveKey && candidate.scopeSelectorRefs.includes(statement.governanceScope.scopeRef),\n );\n if (!binding) return;\n if (statement.acceptedAt) {\n const causallyCheckedSources = new Set<string>();\n binding.sourceRequirementRefs.forEach((reference) => {\n const authority = sourceRequirementAuthorities.get(versionedSourceRequirementKey(reference));\n if (authority && timestampIsAfter(authority.reviewedAt, statement.acceptedAt))\n issues.push({\n kind: AssuranceProgramSpecificationIssueKind.TEMPORAL_POLICY_CONFLICT,\n path: `implementationStatements.${statementIndex}.acceptedAt`,\n message: `accepted statement predates the bound source-requirement review ${versionedSourceRequirementKey(reference)}`,\n });\n const sourceKey = versionedSourceKey(reference.source);\n if (causallyCheckedSources.has(sourceKey)) return;\n causallyCheckedSources.add(sourceKey);\n const source = sourceRecords.get(sourceKey);\n if (source && timestampIsAfter(source.rights.reviewedAt, statement.acceptedAt))\n issues.push({\n kind: AssuranceProgramSpecificationIssueKind.TEMPORAL_POLICY_CONFLICT,\n path: `implementationStatements.${statementIndex}.acceptedAt`,\n message: `accepted statement predates the source-rights review for ${sourceKey}`,\n });\n if (source?.retrievedArtifact && timestampIsAfter(source.retrievedArtifact.retrievedAt, statement.acceptedAt))\n issues.push({\n kind: AssuranceProgramSpecificationIssueKind.TEMPORAL_POLICY_CONFLICT,\n path: `implementationStatements.${statementIndex}.acceptedAt`,\n message: `accepted statement predates the retrieved source artifact for ${sourceKey}`,\n });\n });\n }\n const statementCapabilities = new Set(statement.capabilityBindingRefs.map((identity) => identity.capabilityRef));\n const statementEvidence = new Set(statement.expectedEvidence.map((requirement) => requirement.requirementRef));\n const statementVerification = new Set(statement.verificationExpectations.map((expectation) => expectation.expectationRef));\n binding.implementationExpectationRefs.forEach((identity) => {\n const authority = implementationExpectationAuthorities.get(versionedExpectationKey(identity));\n if (!authority) return;\n /*\n * Ask WHY before reporting that the statement does not satisfy the expectation. A capability the\n * application's configuration withholds cannot be bound by any statement, so the generic mismatch\n * below would tell an author to fix something they cannot fix — and that misdirection is not\n * theoretical: it has already cost rounds of evidence collection against an objective whose\n * attesting capability was never available, answerable from configuration before any was gathered.\n */\n const applicability = deriveExpectationCapabilityApplicability({\n requiredCapabilityRefs: authority.requiredCapabilityRefs,\n availableCapabilityRefs: hostCapabilityRefs,\n });\n if (applicability.status !== AssuranceProgramApplicabilityStatus.APPLICABLE) {\n issues.push({\n kind: AssuranceProgramSpecificationIssueKind.REQUIRED_CAPABILITY_UNAVAILABLE,\n path: `implementationStatements.${statementIndex}.capabilityBindingRefs`,\n subjectRef: versionedExpectationKey(identity),\n message:\n `${versionedExpectationKey(identity)} requires ${applicability.unavailableCapabilityRefs.join(\", \")}, which this ` +\n `application's configuration does not make available, so the objective is ${applicability.status}. ` +\n (applicability.status === AssuranceProgramApplicabilityStatus.NOT_APPLICABLE\n ? \"Every capability it required is absent, so there is no control here to claim: enable the engine capability that carries them, or stop claiming this objective.\"\n : \"The control itself still operates; only the capability that would attest it is absent, so whether the objective holds cannot be determined from this configuration.\"),\n });\n return;\n }\n if (authority.requiredCapabilityRefs.some((capabilityRef) => !statementCapabilities.has(capabilityRef)))\n issues.push({\n kind: AssuranceProgramSpecificationIssueKind.RELATIONSHIP_MISMATCH,\n path: `implementationStatements.${statementIndex}.capabilityBindingRefs`,\n message: `${versionedExpectationKey(identity)} is not satisfied by the accepted statement capabilities`,\n });\n });\n binding.evidenceExpectationRefs.forEach((identity) => {\n const authority = evidenceExpectationAuthorities.get(versionedExpectationKey(identity));\n if (authority?.requiredStatementEvidenceRefs.some((requirementRef) => !statementEvidence.has(requirementRef)))\n issues.push({\n kind: AssuranceProgramSpecificationIssueKind.RELATIONSHIP_MISMATCH,\n path: `implementationStatements.${statementIndex}.expectedEvidence`,\n message: `${versionedExpectationKey(identity)} is not satisfied by the accepted statement evidence requirements`,\n });\n });\n binding.verificationExpectationRefs.forEach((identity) => {\n const authority = verificationExpectationAuthorities.get(versionedExpectationKey(identity));\n if (authority?.requiredStatementVerificationRefs.some((expectationRef) => !statementVerification.has(expectationRef)))\n issues.push({\n kind: AssuranceProgramSpecificationIssueKind.RELATIONSHIP_MISMATCH,\n path: `implementationStatements.${statementIndex}.verificationExpectations`,\n message: `${versionedExpectationKey(identity)} is not satisfied by the accepted statement verification expectations`,\n });\n });\n });\n return { ok: issues.length === 0, issues };\n};\n/** @wildo_source:part:end saas.specifications.assurance-program.contract */\n"]}
|