@wildo-ai/saas-specifications 1.1.1 → 1.1.2
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/assurance/external-framework-mapping.json +980 -0
- package/dist/esm/_core/brand/brand.family-aspects.d.ts +3 -0
- package/dist/esm/_core/brand/brand.family-aspects.d.ts.map +1 -0
- package/dist/esm/_core/brand/brand.family-aspects.js +51 -0
- package/dist/esm/_core/brand/brand.family-aspects.js.map +1 -0
- package/dist/esm/_core/build-plan/build-plan.family-aspects.d.ts +3 -0
- package/dist/esm/_core/build-plan/build-plan.family-aspects.d.ts.map +1 -0
- package/dist/esm/_core/build-plan/build-plan.family-aspects.js +28 -0
- package/dist/esm/_core/build-plan/build-plan.family-aspects.js.map +1 -0
- package/dist/esm/_core/business-model-lite/business-model.family-aspects.d.ts +3 -0
- package/dist/esm/_core/business-model-lite/business-model.family-aspects.d.ts.map +1 -0
- package/dist/esm/_core/business-model-lite/business-model.family-aspects.js +21 -0
- package/dist/esm/_core/business-model-lite/business-model.family-aspects.js.map +1 -0
- package/dist/esm/_core/chart-view-specification.schemas.d.ts +11 -0
- package/dist/esm/_core/chart-view-specification.schemas.d.ts.map +1 -1
- package/dist/esm/_core/chart-view-specification.schemas.js.map +1 -1
- package/dist/esm/_core/compliance-documents/compliance-document-candidate-generation.schemas.d.ts +85 -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 +41 -0
- 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 +168 -2
- 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 +98 -9
- 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 +12 -0
- package/dist/esm/_core/compliance-documents/compliance-documents.family-aspects.d.ts.map +1 -0
- package/dist/esm/_core/compliance-documents/compliance-documents.family-aspects.js +47 -0
- package/dist/esm/_core/compliance-documents/compliance-documents.family-aspects.js.map +1 -0
- package/dist/esm/_core/compliance-documents/document-fact-specification-generation.schemas.d.ts.map +1 -1
- package/dist/esm/_core/compliance-documents/document-fact-specification-generation.schemas.js +8 -3
- package/dist/esm/_core/compliance-documents/document-fact-specification-generation.schemas.js.map +1 -1
- package/dist/esm/_core/compliance-documents/processor-register.family-aspects.d.ts +21 -0
- package/dist/esm/_core/compliance-documents/processor-register.family-aspects.d.ts.map +1 -0
- package/dist/esm/_core/compliance-documents/processor-register.family-aspects.js +40 -0
- package/dist/esm/_core/compliance-documents/processor-register.family-aspects.js.map +1 -0
- package/dist/esm/_core/composite-view-specification.schemas.d.ts +11 -0
- package/dist/esm/_core/composite-view-specification.schemas.d.ts.map +1 -1
- package/dist/esm/_core/composite-view-specification.schemas.js.map +1 -1
- package/dist/esm/_core/domain-plan/domain-plan.family-aspects.d.ts +3 -0
- package/dist/esm/_core/domain-plan/domain-plan.family-aspects.d.ts.map +1 -0
- package/dist/esm/_core/domain-plan/domain-plan.family-aspects.js +32 -0
- package/dist/esm/_core/domain-plan/domain-plan.family-aspects.js.map +1 -0
- package/dist/esm/_core/execution-view-specification.schemas.d.ts +11 -0
- package/dist/esm/_core/execution-view-specification.schemas.d.ts.map +1 -1
- package/dist/esm/_core/execution-view-specification.schemas.js.map +1 -1
- package/dist/esm/_core/family-aspects.registry.d.ts +18 -0
- package/dist/esm/_core/family-aspects.registry.d.ts.map +1 -0
- package/dist/esm/_core/family-aspects.registry.js +60 -0
- package/dist/esm/_core/family-aspects.registry.js.map +1 -0
- package/dist/esm/_core/family-aspects.schemas.d.ts +122 -0
- package/dist/esm/_core/family-aspects.schemas.d.ts.map +1 -0
- package/dist/esm/_core/family-aspects.schemas.js +15 -0
- package/dist/esm/_core/family-aspects.schemas.js.map +1 -0
- package/dist/esm/_core/feature-drafts/capability-map-output-set-generation.schemas.d.ts +11 -11
- package/dist/esm/_core/feature-drafts/feature-drafts.family-aspects.d.ts +3 -0
- package/dist/esm/_core/feature-drafts/feature-drafts.family-aspects.d.ts.map +1 -0
- package/dist/esm/_core/feature-drafts/feature-drafts.family-aspects.js +25 -0
- package/dist/esm/_core/feature-drafts/feature-drafts.family-aspects.js.map +1 -0
- package/dist/esm/_core/flows-actors-view-specification.schemas.d.ts +11 -0
- package/dist/esm/_core/flows-actors-view-specification.schemas.d.ts.map +1 -1
- package/dist/esm/_core/flows-actors-view-specification.schemas.js.map +1 -1
- package/dist/esm/_core/frontend-component-specification.schemas.d.ts.map +1 -1
- package/dist/esm/_core/frontend-component-specification.schemas.js +19 -1
- package/dist/esm/_core/frontend-component-specification.schemas.js.map +1 -1
- package/dist/esm/_core/full-custom-view-specification.schemas.d.ts +11 -0
- package/dist/esm/_core/full-custom-view-specification.schemas.d.ts.map +1 -1
- package/dist/esm/_core/full-custom-view-specification.schemas.js.map +1 -1
- package/dist/esm/_core/guidance-flow-specification.schemas.d.ts +11 -0
- package/dist/esm/_core/guidance-flow-specification.schemas.d.ts.map +1 -1
- package/dist/esm/_core/guidance-flow-specification.schemas.js +14 -0
- package/dist/esm/_core/guidance-flow-specification.schemas.js.map +1 -1
- package/dist/esm/_core/index.d.ts +2 -0
- package/dist/esm/_core/index.d.ts.map +1 -1
- package/dist/esm/_core/index.js +2 -0
- package/dist/esm/_core/index.js.map +1 -1
- package/dist/esm/_core/market/market-snapshot-generation.schemas.d.ts +22 -22
- package/dist/esm/_core/market/market.family-aspects.d.ts +9 -0
- package/dist/esm/_core/market/market.family-aspects.d.ts.map +1 -0
- package/dist/esm/_core/market/market.family-aspects.js +227 -0
- package/dist/esm/_core/market/market.family-aspects.js.map +1 -0
- package/dist/esm/_core/onboarding-view-specification.schemas.d.ts +11 -0
- package/dist/esm/_core/onboarding-view-specification.schemas.d.ts.map +1 -1
- package/dist/esm/_core/onboarding-view-specification.schemas.js +14 -0
- package/dist/esm/_core/onboarding-view-specification.schemas.js.map +1 -1
- package/dist/esm/_core/placement-plan/placement-plan.family-aspects.d.ts +3 -0
- package/dist/esm/_core/placement-plan/placement-plan.family-aspects.d.ts.map +1 -0
- package/dist/esm/_core/placement-plan/placement-plan.family-aspects.js +31 -0
- package/dist/esm/_core/placement-plan/placement-plan.family-aspects.js.map +1 -0
- package/dist/esm/_core/requirements/requirements.family-aspects.d.ts +9 -0
- package/dist/esm/_core/requirements/requirements.family-aspects.d.ts.map +1 -0
- package/dist/esm/_core/requirements/requirements.family-aspects.js +40 -0
- package/dist/esm/_core/requirements/requirements.family-aspects.js.map +1 -0
- package/dist/esm/_core/resource-specification.schemas.d.ts +22 -0
- package/dist/esm/_core/resource-specification.schemas.d.ts.map +1 -1
- package/dist/esm/_core/resource-specification.schemas.js.map +1 -1
- package/dist/esm/_core/roadmap/roadmap.family-aspects.d.ts +3 -0
- package/dist/esm/_core/roadmap/roadmap.family-aspects.d.ts.map +1 -0
- package/dist/esm/_core/roadmap/roadmap.family-aspects.js +26 -0
- package/dist/esm/_core/roadmap/roadmap.family-aspects.js.map +1 -0
- package/dist/esm/_core/vision/vision.family-aspects.d.ts +11 -0
- package/dist/esm/_core/vision/vision.family-aspects.d.ts.map +1 -0
- package/dist/esm/_core/vision/vision.family-aspects.js +63 -0
- package/dist/esm/_core/vision/vision.family-aspects.js.map +1 -0
- package/dist/esm/application-creation/application-document-fact-specification.application-creation.schemas.d.ts +188 -33
- 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 +158 -57
- package/dist/esm/application-creation/application-document-fact-specification.application-creation.schemas.js.map +1 -1
- package/dist/esm/application-creation/application-specification-family-identity.application-creation.schemas.d.ts +38 -4
- 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 +37 -3
- 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 +12 -0
- package/dist/esm/application-creation/document-facts.family-aspects.d.ts.map +1 -0
- package/dist/esm/application-creation/document-facts.family-aspects.js +37 -0
- package/dist/esm/application-creation/document-facts.family-aspects.js.map +1 -0
- package/dist/esm/application-creation/document-release-policy.family-aspects.d.ts +3 -0
- package/dist/esm/application-creation/document-release-policy.family-aspects.d.ts.map +1 -0
- package/dist/esm/application-creation/document-release-policy.family-aspects.js +23 -0
- package/dist/esm/application-creation/document-release-policy.family-aspects.js.map +1 -0
- package/dist/esm/application-creation/playbooks.application-creation.schemas.d.ts +93 -62
- package/dist/esm/application-creation/playbooks.application-creation.schemas.d.ts.map +1 -1
- package/dist/esm/application-creation/playbooks.application-creation.schemas.js +114 -59
- package/dist/esm/application-creation/playbooks.application-creation.schemas.js.map +1 -1
- package/dist/esm/application-creation/structured-artifact-landing.application-creation.schemas.d.ts +2 -0
- package/dist/esm/application-creation/structured-artifact-landing.application-creation.schemas.d.ts.map +1 -1
- package/dist/esm/application-creation/structured-artifact-landing.application-creation.schemas.js +2 -0
- package/dist/esm/application-creation/structured-artifact-landing.application-creation.schemas.js.map +1 -1
- package/dist/esm/application-creation.exports.d.ts +11 -0
- package/dist/esm/application-creation.exports.d.ts.map +1 -1
- package/dist/esm/application-creation.exports.js +11 -0
- package/dist/esm/application-creation.exports.js.map +1 -1
- package/dist/esm/assurance/assurance-authority-basis.definitions.d.ts +976 -2
- package/dist/esm/assurance/assurance-authority-basis.definitions.d.ts.map +1 -1
- package/dist/esm/assurance/assurance-authority-basis.definitions.js +2026 -61
- package/dist/esm/assurance/assurance-authority-basis.definitions.js.map +1 -1
- package/dist/esm/assurance/assurance-authority-basis.schemas.d.ts +1 -0
- package/dist/esm/assurance/assurance-authority-basis.schemas.d.ts.map +1 -1
- package/dist/esm/assurance/assurance-document-system.definitions.d.ts.map +1 -1
- package/dist/esm/assurance/assurance-document-system.definitions.js +18 -3
- package/dist/esm/assurance/assurance-document-system.definitions.js.map +1 -1
- package/dist/esm/assurance/assurance-document-system.schemas.d.ts +32 -2
- package/dist/esm/assurance/assurance-document-system.schemas.d.ts.map +1 -1
- package/dist/esm/assurance/assurance-document-system.schemas.js +32 -2
- package/dist/esm/assurance/assurance-document-system.schemas.js.map +1 -1
- package/dist/esm/assurance/assurance-external-framework-mapping.d.ts +90 -0
- package/dist/esm/assurance/assurance-external-framework-mapping.d.ts.map +1 -0
- package/dist/esm/assurance/assurance-external-framework-mapping.js +134 -0
- package/dist/esm/assurance/assurance-external-framework-mapping.js.map +1 -0
- package/dist/esm/assurance/assurance-objective-catalog.definitions.d.ts +71 -1
- package/dist/esm/assurance/assurance-objective-catalog.definitions.d.ts.map +1 -1
- package/dist/esm/assurance/assurance-objective-catalog.definitions.js +545 -5
- package/dist/esm/assurance/assurance-objective-catalog.definitions.js.map +1 -1
- package/dist/esm/assurance/assurance-program-generation.schemas.d.ts +141 -0
- package/dist/esm/assurance/assurance-program-generation.schemas.d.ts.map +1 -0
- package/dist/esm/assurance/assurance-program-generation.schemas.js +377 -0
- package/dist/esm/assurance/assurance-program-generation.schemas.js.map +1 -0
- package/dist/esm/assurance/assurance-program.family-aspects.d.ts +13 -0
- package/dist/esm/assurance/assurance-program.family-aspects.d.ts.map +1 -0
- package/dist/esm/assurance/assurance-program.family-aspects.js +16 -0
- package/dist/esm/assurance/assurance-program.family-aspects.js.map +1 -0
- package/dist/esm/assurance/assurance-program.schemas.d.ts +30 -6
- package/dist/esm/assurance/assurance-program.schemas.d.ts.map +1 -1
- package/dist/esm/assurance/assurance-program.schemas.js +29 -6
- package/dist/esm/assurance/assurance-program.schemas.js.map +1 -1
- package/dist/esm/assurance/assurance-source-registry.definitions.d.ts +1 -0
- package/dist/esm/assurance/assurance-source-registry.definitions.d.ts.map +1 -1
- package/dist/esm/assurance/assurance-source-registry.definitions.js +12 -0
- package/dist/esm/assurance/assurance-source-registry.definitions.js.map +1 -1
- package/dist/esm/assurance/assurance-sources.schemas.d.ts +76 -0
- package/dist/esm/assurance/assurance-sources.schemas.d.ts.map +1 -1
- package/dist/esm/assurance/assurance-sources.schemas.js +59 -0
- package/dist/esm/assurance/assurance-sources.schemas.js.map +1 -1
- package/dist/esm/assurance/document-publication.family-aspects.d.ts +29 -0
- package/dist/esm/assurance/document-publication.family-aspects.d.ts.map +1 -0
- package/dist/esm/assurance/document-publication.family-aspects.js +48 -0
- package/dist/esm/assurance/document-publication.family-aspects.js.map +1 -0
- package/dist/esm/assurance.exports.d.ts +2 -0
- package/dist/esm/assurance.exports.d.ts.map +1 -1
- package/dist/esm/assurance.exports.js +2 -0
- package/dist/esm/assurance.exports.js.map +1 -1
- package/dist/esm/companion-exports.d.ts +19 -2
- package/dist/esm/companion-exports.d.ts.map +1 -1
- package/dist/esm/companion-exports.js.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 +2 -0
- 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 +3 -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.map +1 -1
- package/dist/esm/engine/applications/resources/application-oauth-clients.resource.specification.js +3 -1
- 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 +3 -1
- 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 +3 -1
- package/dist/esm/engine/applications/resources/applications.resource.specification.js.map +1 -1
- package/dist/esm/engine/auth/resources/consumable-tokens.resource.specification.d.ts +36 -0
- package/dist/esm/engine/auth/resources/consumable-tokens.resource.specification.d.ts.map +1 -0
- package/dist/esm/engine/auth/resources/consumable-tokens.resource.specification.js +193 -0
- package/dist/esm/engine/auth/resources/consumable-tokens.resource.specification.js.map +1 -0
- package/dist/esm/engine/auth/resources/oauth-consent-grants.resource.specification.d.ts +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 +2 -0
- 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 +2 -0
- 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.map +1 -1
- package/dist/esm/engine/auth/resources/organization-oauth-clients.resource.specification.js +3 -1
- package/dist/esm/engine/auth/resources/organization-oauth-clients.resource.specification.js.map +1 -1
- package/dist/esm/engine/auth/resources/platform-access-grants.resource.specification.d.ts +1 -1
- 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 +2 -0
- 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 -0
- 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 +2 -0
- 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 +2 -0
- 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 +6 -4
- 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.map +1 -1
- package/dist/esm/engine/auth/resources/sso-config.resource.specification.js +2 -0
- 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.map +1 -1
- package/dist/esm/engine/auth/resources/sso-connections.resource.specification.js +2 -0
- package/dist/esm/engine/auth/resources/sso-connections.resource.specification.js.map +1 -1
- package/dist/esm/engine/billing/resources/billing-accounts.resource.specification.d.ts +2 -2
- 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 +2 -0
- package/dist/esm/engine/billing/resources/billing-accounts.resource.specification.js.map +1 -1
- package/dist/esm/engine/billing/resources/credit-pools.resource.specification.d.ts +8 -8
- 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 -0
- package/dist/esm/engine/billing/resources/credit-pools.resource.specification.js.map +1 -1
- package/dist/esm/engine/billing/resources/invoice-refs.resource.specification.d.ts +2 -2
- 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 +2 -0
- 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 +3 -1
- 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 +3 -1
- 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 +2 -0
- 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 +3 -1
- package/dist/esm/engine/billing/resources/referrals.resource.specification.js.map +1 -1
- package/dist/esm/engine/billing/resources/subscriptions.resource.specification.d.ts +6 -6
- package/dist/esm/engine/billing/resources/subscriptions.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/billing/resources/subscriptions.resource.specification.js +2 -0
- 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 +6 -6
- 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 +2 -0
- package/dist/esm/engine/billing/resources/usage-records.resource.specification.js.map +1 -1
- 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 +2 -0
- package/dist/esm/engine/compliance/resources/audit-logs.resource.specification.js.map +1 -1
- package/dist/esm/engine/engine-resource-specifications.registry.d.ts.map +1 -1
- package/dist/esm/engine/engine-resource-specifications.registry.js +5 -0
- package/dist/esm/engine/engine-resource-specifications.registry.js.map +1 -1
- package/dist/esm/engine/engine-resource-sub-domain.d.ts +63 -0
- package/dist/esm/engine/engine-resource-sub-domain.d.ts.map +1 -0
- package/dist/esm/engine/engine-resource-sub-domain.js +87 -0
- package/dist/esm/engine/engine-resource-sub-domain.js.map +1 -0
- package/dist/esm/engine/errors/error-messages.specification.d.ts.map +1 -1
- package/dist/esm/engine/errors/error-messages.specification.js +30 -1
- package/dist/esm/engine/errors/error-messages.specification.js.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 +2 -0
- package/dist/esm/engine/features/resources/application-features.resource.specification.js.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 +2 -0
- 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 +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 +2 -0
- package/dist/esm/engine/features/resources/user-features.resource.specification.js.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 +2 -0
- package/dist/esm/engine/files/resources/files.resource.specification.js.map +1 -1
- package/dist/esm/engine/flows-actors/resources/a2a-push-delivery-log.resource.specification.d.ts +3 -3
- 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 +12 -0
- 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 +3 -3
- 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 +2 -0
- 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 +3 -3
- 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 -0
- 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 +3 -3
- package/dist/esm/engine/flows-actors/resources/flow-actor-tasks.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/flows-actors/resources/flow-actor-tasks.resource.specification.js +3 -1
- package/dist/esm/engine/flows-actors/resources/flow-actor-tasks.resource.specification.js.map +1 -1
- 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-main-container.frontend-component.specification.js +8 -3
- package/dist/esm/engine/frontend-components/app/public-layout-main-container.frontend-component.specification.js.map +1 -1
- package/dist/esm/engine/guidance/resources/guidance-state.resource.specification.d.ts +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 +3 -0
- package/dist/esm/engine/guidance/resources/guidance-state.resource.specification.js.map +1 -1
- package/dist/esm/engine/guidance/resources/lifecycle-state.resource.specification.d.ts +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 +3 -0
- 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 +1 -1
- 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 +3 -0
- 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/resources/data-seed-runs.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/infrastructure/resources/data-seed-runs.resource.specification.js +2 -0
- 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 +2 -0
- package/dist/esm/engine/infrastructure/resources/external-data-pipeline-states.resource.specification.js.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 +2 -0
- 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.map +1 -1
- package/dist/esm/engine/infrastructure/resources/job-payload-storage.resource.specification.js +2 -0
- package/dist/esm/engine/infrastructure/resources/job-payload-storage.resource.specification.js.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 +2 -0
- 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 +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 +3 -0
- 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 +2 -0
- package/dist/esm/engine/notifications/resources/webhook-config.resource.specification.js.map +1 -1
- package/dist/esm/engine/organizations/resources/organization-members.resource.specification.d.ts +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 +2 -0
- 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 +2 -0
- 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 +2 -0
- 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 -0
- 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 +2 -0
- 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/organization-units.resource.specification.js +2 -0
- package/dist/esm/engine/organizations/resources/organization-units.resource.specification.js.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 +2 -0
- package/dist/esm/engine/organizations/resources/organizations.resource.specification.js.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 +2 -0
- 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 +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 +2 -0
- package/dist/esm/engine/users/resources/inbound-contacts.resource.specification.js.map +1 -1
- package/dist/esm/engine/users/resources/user-credentials.resource.specification.d.ts +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 -0
- 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 +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 +2 -0
- package/dist/esm/engine/users/resources/user-identity-links.resource.specification.js.map +1 -1
- package/dist/esm/engine/users/resources/user-preferences.resource.specification.d.ts +1 -1
- 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 +2 -0
- 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 +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 -0
- 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 +1 -1
- 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 +2 -0
- 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 +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 +2 -0
- 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 +3 -1
- package/dist/esm/engine/users/resources/user-self.resource.specification.js.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 +2 -0
- package/dist/esm/engine/users/resources/users.resource.specification.js.map +1 -1
- package/dist/esm/technical-documentation/engine-documentation-specification-catalog.companion.d.ts +5 -0
- 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 +385 -9
- package/dist/esm/technical-documentation/engine-documentation-specification-catalog.companion.js.map +1 -1
- package/dist/esm/technical-documentation/technical-documentation-units.schemas.js +1 -1
- package/dist/esm/technical-documentation/technical-documentation-units.schemas.js.map +1 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -0
- package/package.json +8 -8
- package/dist/esm/.builder.pid +0 -9
- package/dist/esm/_core/business-coverage/coverage-findings-validation.d.ts +0 -0
- package/dist/esm/_core/business-coverage/coverage-findings-validation.d.ts.map +0 -0
- package/dist/esm/_core/business-coverage/coverage-findings-validation.js.map +0 -0
- package/dist/esm/_core/business-coverage/coverage-findings.schemas.d.ts +0 -0
- package/dist/esm/_core/business-coverage/coverage-findings.schemas.d.ts.map +0 -0
- package/dist/esm/_core/business-coverage/coverage-findings.schemas.js.map +0 -0
|
@@ -0,0 +1,377 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import { ASSURANCE_CAPABILITY_AUTHORITIES, ASSURANCE_OBJECTIVE_EXPECTATION_BINDINGS, INITIAL_ASSURANCE_AUTHORITY_BASIS_REF, INITIAL_ASSURANCE_AUTHORITY_BASIS_VERSION, } from "./assurance-authority-basis.definitions.js";
|
|
3
|
+
import { AssuranceGapDisposition, AssuranceGovernanceActorKind } from "./assurance-foundation.schemas.js";
|
|
4
|
+
import { AssuranceProgramApplicabilityStatus, AssuranceProgramCapabilityResolution, AssuranceProgramObligationApplicabilityStatus, AssuranceProgramObligationBlockingEffect, AssuranceProgramObligationCoverageReviewDisposition, AssuranceProgramProofStage, AssuranceProgramScopeSelectorKind, AssuranceProgramSpecificationV3Schema, } from "./assurance-program.schemas.js";
|
|
5
|
+
import { INITIAL_ASSURANCE_SOURCE_REGISTRY } from "./assurance-source-registry.definitions.js";
|
|
6
|
+
/**
|
|
7
|
+
* The STRICT contract a provider answers for the `compliance-program` family.
|
|
8
|
+
*
|
|
9
|
+
* ## Why the family schema is not this contract
|
|
10
|
+
*
|
|
11
|
+
* `AssuranceProgramSpecificationV3Schema` is what a HAND-AUTHORED programme is parsed against. It carries sixteen top-level collections, and one obligation entry alone
|
|
12
|
+
* has twenty-one fields — most of them `.min(1)` arrays of namespaced refs that must agree with each other across five other collections. Handing that to a provider is
|
|
13
|
+
* handing it a dozen ways to fail on FORM rather than on substance. The binding that consumes this pair says what the absence costs: three families shipped a strict
|
|
14
|
+
* generation schema with no caller while the lane constrained the model with the permissive family schema, and `tasks: []` / `modules: []` became generatable and landed
|
|
15
|
+
* over real artifacts (live incidents 2026-08-24/25).
|
|
16
|
+
*
|
|
17
|
+
* ## What a generator may NOT decide, and why this contract is narrower than it looks
|
|
18
|
+
*
|
|
19
|
+
* Two things are looked up rather than asked for, and both refusals are the point:
|
|
20
|
+
*
|
|
21
|
+
* - **Which objectives may be bound at all.** {@link ASSURANCE_OBJECTIVE_EXPECTATION_BINDINGS} covers a SUBSET of the catalog's 49 objectives — 9, measured
|
|
22
|
+
* 2026-09-02, tracked as #207; count them rather than quoting that. Every obligation needs
|
|
23
|
+
* implementation, evidence and verification expectation refs at `.min(1)`, and only the basis may say what an objective demands. Asked for, a provider would invent
|
|
24
|
+
* an expectation ref for any UNBOUND objective and the result would VALIDATE — a programme claiming coverage the framework has never stated a demand for. Looked up,
|
|
25
|
+
* the ceiling is mechanical (#207).
|
|
26
|
+
* - **What a source is and what may be done with it.** Source edition, authority kind and name, lifecycle status and the RIGHTS reference are stamped from
|
|
27
|
+
* {@link INITIAL_ASSURANCE_SOURCE_REGISTRY}. A model must never author a rights record: rights decide what may be reproduced, and a fabricated one is a licensing
|
|
28
|
+
* claim nobody reviewed.
|
|
29
|
+
*
|
|
30
|
+
* ## What it DOES ask for is a human's answer, carried through
|
|
31
|
+
*
|
|
32
|
+
* `reviewedAt`, `reviewerRoleSlug`, `firstReviewOn` and every coverage disposition are human decisions. A coverage decision's own schema calls it an "Exact
|
|
33
|
+
* human-reviewed coverage claim" and its disposition enum has no unreviewed member, so a programme cannot exist without one. This contract does not let a model INVENT
|
|
34
|
+
* them — it carries answers the playbook elicited from the creator, which is a live path (the companion reads `elicitationAnswers` on dispatch). The method prose is
|
|
35
|
+
* what binds them to the elicited answer; nothing here can tell an echoed answer from an invented one, and that guard belongs later, judge-style
|
|
36
|
+
* (`.claude/rules/application-creation-directive.md`).
|
|
37
|
+
*
|
|
38
|
+
* `NOT_APPLICABLE` is deliberately absent from the obligation applicability options below: that branch of the family's discriminated union requires `evidenceRefs`
|
|
39
|
+
* at `.min(1)`, and evidence that an obligation does not apply is not derivable. `UNDETERMINED` with a rationale is the honest answer, and the compliance-posture
|
|
40
|
+
* method asks for exactly that — "record any missing detail as `UNDETERMINED` or an explicit gap".
|
|
41
|
+
*/
|
|
42
|
+
const SemanticSlugSchema = z.string().trim().regex(/^[a-z0-9]+(?:-[a-z0-9]+)*$/u, "expected a kebab-case slug");
|
|
43
|
+
const ProseSchema = z.string().trim().min(1);
|
|
44
|
+
/** The two applicability answers a derivation may honestly give. See the file header for why `NOT_APPLICABLE` is absent. */
|
|
45
|
+
const GenerableObligationApplicabilityStatusSchema = z.enum([
|
|
46
|
+
AssuranceProgramObligationApplicabilityStatus.APPLICABLE,
|
|
47
|
+
AssuranceProgramObligationApplicabilityStatus.UNDETERMINED,
|
|
48
|
+
]);
|
|
49
|
+
export const AssuranceProgramObligationGenerationSchema = z.strictObject({
|
|
50
|
+
/** Stamped into `obligation:<slug>`, `obligation-applicability:<slug>` and `obligation-coverage:<slug>`. */
|
|
51
|
+
slug: SemanticSlugSchema,
|
|
52
|
+
/** Must be an objective {@link ASSURANCE_OBJECTIVE_EXPECTATION_BINDINGS} covers; the normalizer refuses any other. */
|
|
53
|
+
objectiveRef: z.string().trim().min(1),
|
|
54
|
+
/** Which of the declared `sources` this obligation answers. */
|
|
55
|
+
sourceSlug: SemanticSlugSchema,
|
|
56
|
+
/** Stamped into `source-requirement:<slug>` — the specific requirement of that source. */
|
|
57
|
+
requirementSlug: SemanticSlugSchema,
|
|
58
|
+
governanceActorKinds: z.array(z.enum(AssuranceGovernanceActorKind)).min(1),
|
|
59
|
+
applicabilityStatus: GenerableObligationApplicabilityStatusSchema,
|
|
60
|
+
applicabilityRationale: ProseSchema,
|
|
61
|
+
/** A HUMAN decision, elicited — see the file header. */
|
|
62
|
+
coverageDisposition: z.enum(AssuranceProgramObligationCoverageReviewDisposition),
|
|
63
|
+
coverageRationale: ProseSchema,
|
|
64
|
+
requiredProofStage: z.enum(AssuranceProgramProofStage),
|
|
65
|
+
blockingEffect: z.enum(AssuranceProgramObligationBlockingEffect),
|
|
66
|
+
/** Stamped into `review-trigger:<slug>` — what invalidates this obligation's review. */
|
|
67
|
+
reviewTriggerSlugs: z.array(SemanticSlugSchema).min(1),
|
|
68
|
+
/**
|
|
69
|
+
* How far the selected capability actually carries this objective.
|
|
70
|
+
*
|
|
71
|
+
* Required because the family refuses an obligation with no implementation decision
|
|
72
|
+
* (`INCOMPLETE_IMPLEMENTATION_DECISION`) — a bound objective with no stated means is a claim with no
|
|
73
|
+
* mechanism. WHICH capability is not asked for: it is derived from the authority basis, which is the
|
|
74
|
+
* only thing entitled to say what satisfies an objective.
|
|
75
|
+
*/
|
|
76
|
+
implementationResolution: z.enum(AssuranceProgramCapabilityResolution),
|
|
77
|
+
/** Where the gap between the objective and the selected capability stands. `NOT_EVALUATED` is honest; a silent omission is not. */
|
|
78
|
+
gapDisposition: z.enum(AssuranceGapDisposition),
|
|
79
|
+
/** What the selected capability does NOT cover. Deduplicated and sorted by the runtime. */
|
|
80
|
+
implementationLimitations: z.array(ProseSchema),
|
|
81
|
+
});
|
|
82
|
+
export const AssuranceProgramSourceApplicabilityGenerationSchema = z.strictObject({
|
|
83
|
+
/** A `sourceRef` of {@link INITIAL_ASSURANCE_SOURCE_REGISTRY} WITHOUT its `source:` prefix. The normalizer refuses an unknown one. */
|
|
84
|
+
sourceSlug: SemanticSlugSchema,
|
|
85
|
+
status: z.enum(AssuranceProgramApplicabilityStatus),
|
|
86
|
+
/** Why this source does or does not reach the application. Never a restatement of the source's own title. */
|
|
87
|
+
basis: ProseSchema,
|
|
88
|
+
effectiveFrom: z.iso.date(),
|
|
89
|
+
/** Stamped into `invalidation:<slug>` — what would force this applicability decision to be retaken. */
|
|
90
|
+
invalidationSlugs: z.array(SemanticSlugSchema).min(1),
|
|
91
|
+
});
|
|
92
|
+
export const AssuranceProgramGenerationSchema = z
|
|
93
|
+
.strictObject({
|
|
94
|
+
/** Stamped into `compliance-program:<slug>`, `scope:<slug>`, `system-boundary:<slug>` and the obligation register's ref. */
|
|
95
|
+
applicationSlug: SemanticSlugSchema,
|
|
96
|
+
scopeKind: z.enum(AssuranceProgramScopeSelectorKind),
|
|
97
|
+
/** Stamped into `jurisdiction:<slug>`. Empty is a WILDCARD in the family's overlap proof, not an omission. */
|
|
98
|
+
jurisdictionSlugs: z.array(SemanticSlugSchema),
|
|
99
|
+
/** Stamped into `data-category:<slug>`. Empty is a wildcard, as above. */
|
|
100
|
+
dataCategorySlugs: z.array(SemanticSlugSchema),
|
|
101
|
+
/** The programme's roles. `applicationRoleRef` is the application's OWN role key, not a namespaced ref. */
|
|
102
|
+
roles: z.array(z.strictObject({ slug: SemanticSlugSchema, applicationRoleRef: z.string().trim().min(1) })).min(1),
|
|
103
|
+
responsibility: z.strictObject({
|
|
104
|
+
responsibleRoleSlugs: z.array(SemanticSlugSchema).min(1),
|
|
105
|
+
operatingRoleSlugs: z.array(SemanticSlugSchema).min(1),
|
|
106
|
+
evidenceProviderRoleSlugs: z.array(SemanticSlugSchema).min(1),
|
|
107
|
+
approvingRoleSlugs: z.array(SemanticSlugSchema).min(1),
|
|
108
|
+
}),
|
|
109
|
+
/** The role that reviewed the coverage decisions. A human answer, elicited. */
|
|
110
|
+
reviewerRoleSlug: SemanticSlugSchema,
|
|
111
|
+
/** When that review happened. A human answer, elicited — never `now`, which no normalizer has. */
|
|
112
|
+
reviewedAt: z.iso.datetime({ offset: true }),
|
|
113
|
+
/** When each obligation is next reviewed. A human answer, elicited: a commitment nobody may invent. */
|
|
114
|
+
firstReviewOn: z.iso.date(),
|
|
115
|
+
sources: z.array(AssuranceProgramSourceApplicabilityGenerationSchema).min(1),
|
|
116
|
+
obligations: z.array(AssuranceProgramObligationGenerationSchema).min(1),
|
|
117
|
+
/**
|
|
118
|
+
* What this programme does NOT claim.
|
|
119
|
+
*
|
|
120
|
+
* `.min(1)` where the family permits zero, deliberately. A programme binding two of forty-nine objectives that states no limitation reads as a complete assurance
|
|
121
|
+
* posture, and the claim guards downstream refuse exactly that reading. Saying what is out of scope is the cheapest thing that keeps it honest.
|
|
122
|
+
*/
|
|
123
|
+
limitations: z.array(ProseSchema).min(1),
|
|
124
|
+
})
|
|
125
|
+
.superRefine((generated, context) => {
|
|
126
|
+
const roleSlugs = new Set(generated.roles.map((role) => role.slug));
|
|
127
|
+
generated.roles.forEach((role, index) => {
|
|
128
|
+
if (generated.roles.filter((candidate) => candidate.slug === role.slug).length > 1) {
|
|
129
|
+
context.addIssue({ code: "custom", path: ["roles", index, "slug"], message: `duplicate role slug "${role.slug}"` });
|
|
130
|
+
}
|
|
131
|
+
});
|
|
132
|
+
const requireRole = (slug, path) => {
|
|
133
|
+
if (!roleSlugs.has(slug))
|
|
134
|
+
context.addIssue({ code: "custom", path, message: `"${slug}" is not one of the declared roles` });
|
|
135
|
+
};
|
|
136
|
+
requireRole(generated.reviewerRoleSlug, ["reviewerRoleSlug"]);
|
|
137
|
+
for (const [field, slugs] of Object.entries(generated.responsibility)) {
|
|
138
|
+
slugs.forEach((slug, index) => requireRole(slug, ["responsibility", field, index]));
|
|
139
|
+
}
|
|
140
|
+
const sourceSlugs = new Set(generated.sources.map((source) => source.sourceSlug));
|
|
141
|
+
generated.sources.forEach((source, index) => {
|
|
142
|
+
if (generated.sources.filter((candidate) => candidate.sourceSlug === source.sourceSlug).length > 1) {
|
|
143
|
+
context.addIssue({ code: "custom", path: ["sources", index, "sourceSlug"], message: `duplicate source "${source.sourceSlug}"` });
|
|
144
|
+
}
|
|
145
|
+
});
|
|
146
|
+
/*
|
|
147
|
+
* A review scheduled BEFORE the review that scheduled it is not a commitment, it is an already-missed one. Nothing downstream catches this: the family takes
|
|
148
|
+
* `reviewOn` as a plain date and never compares it to the coverage decision's `reviewedAt`.
|
|
149
|
+
*/
|
|
150
|
+
if (generated.firstReviewOn <= generated.reviewedAt.slice(0, 10)) {
|
|
151
|
+
context.addIssue({
|
|
152
|
+
code: "custom",
|
|
153
|
+
path: ["firstReviewOn"],
|
|
154
|
+
message: `the next review (${generated.firstReviewOn}) must fall after the review that scheduled it (${generated.reviewedAt.slice(0, 10)})`,
|
|
155
|
+
});
|
|
156
|
+
}
|
|
157
|
+
const seenObligationObjectives = new Set();
|
|
158
|
+
const seenObligationSlugs = new Set();
|
|
159
|
+
generated.obligations.forEach((obligation, index) => {
|
|
160
|
+
/*
|
|
161
|
+
* One objective, one obligation. The family refuses two obligations over the same objective/scope subject as `AMBIGUOUS_OBLIGATION_BINDING`, several layers
|
|
162
|
+
* later and by path index. Catching it here tells the model WHICH objective it bound twice, which is the difference between a useful retry and a guess.
|
|
163
|
+
*/
|
|
164
|
+
if (seenObligationObjectives.has(obligation.objectiveRef)) {
|
|
165
|
+
context.addIssue({
|
|
166
|
+
code: "custom",
|
|
167
|
+
path: ["obligations", index, "objectiveRef"],
|
|
168
|
+
message: `"${obligation.objectiveRef}" is bound twice; one objective carries one obligation in a single programme scope`,
|
|
169
|
+
});
|
|
170
|
+
}
|
|
171
|
+
seenObligationObjectives.add(obligation.objectiveRef);
|
|
172
|
+
if (seenObligationSlugs.has(obligation.slug)) {
|
|
173
|
+
context.addIssue({ code: "custom", path: ["obligations", index, "slug"], message: `duplicate obligation slug "${obligation.slug}"` });
|
|
174
|
+
}
|
|
175
|
+
seenObligationSlugs.add(obligation.slug);
|
|
176
|
+
if (!sourceSlugs.has(obligation.sourceSlug)) {
|
|
177
|
+
context.addIssue({
|
|
178
|
+
code: "custom",
|
|
179
|
+
path: ["obligations", index, "sourceSlug"],
|
|
180
|
+
message: `"${obligation.sourceSlug}" is not declared in \`sources\`; an obligation may only answer a source whose applicability this programme decided`,
|
|
181
|
+
});
|
|
182
|
+
}
|
|
183
|
+
});
|
|
184
|
+
});
|
|
185
|
+
/**
|
|
186
|
+
* The basis's authority for a capability an expectation requires.
|
|
187
|
+
*
|
|
188
|
+
* Throws rather than returning undefined: an expectation naming a capability the basis does not attest is a hole in the basis itself, and the family would refuse the
|
|
189
|
+
* programme with `UNKNOWN_CAPABILITY` several layers later, where the cause is far less legible.
|
|
190
|
+
*/
|
|
191
|
+
function capabilityAuthorityFor(capabilityRef) {
|
|
192
|
+
const authority = ASSURANCE_CAPABILITY_AUTHORITIES.find((candidate) => candidate.identity.capabilityRef === capabilityRef);
|
|
193
|
+
if (!authority)
|
|
194
|
+
throw new Error(`The assurance authority basis requires "${capabilityRef}" but attests no such capability.`);
|
|
195
|
+
return authority;
|
|
196
|
+
}
|
|
197
|
+
/** Objectives a generated programme may bind, as a readable list for a rejection message. */
|
|
198
|
+
const coveredObjectiveRefs = () => ASSURANCE_OBJECTIVE_EXPECTATION_BINDINGS.map((binding) => binding.objective.objectiveRef);
|
|
199
|
+
/**
|
|
200
|
+
* Normalize strict provider output into a canonical, persistable V3 assurance programme.
|
|
201
|
+
*
|
|
202
|
+
* Everything namespaced, versioned or ordered is stamped here. The family requires several collections lexically sorted by their identity, which is a canonicalization
|
|
203
|
+
* concern rather than a content one — asking a provider to sort is asking it to fail on form.
|
|
204
|
+
*
|
|
205
|
+
* Two lookups are REFUSALS rather than conveniences, and both throw so the lane returns the finding to the model exactly like a validator rejection: an objective the
|
|
206
|
+
* authority basis does not cover, and a source the registry does not know.
|
|
207
|
+
*/
|
|
208
|
+
export function parseAssuranceProgramGeneration(input) {
|
|
209
|
+
const generated = AssuranceProgramGenerationSchema.parse(input);
|
|
210
|
+
const scopeSelectorRef = `scope:${generated.applicationSlug}`;
|
|
211
|
+
const basisIdentity = { basisRef: INITIAL_ASSURANCE_AUTHORITY_BASIS_REF, basisVersion: INITIAL_ASSURANCE_AUTHORITY_BASIS_VERSION };
|
|
212
|
+
const sortByKey = (values, key) => [...values].sort((left, right) => (key(left) < key(right) ? -1 : key(left) > key(right) ? 1 : 0));
|
|
213
|
+
const sourceReferences = generated.sources.map((declared) => {
|
|
214
|
+
const registered = INITIAL_ASSURANCE_SOURCE_REGISTRY.sources.find((source) => source.identity.sourceRef === `source:${declared.sourceSlug}`);
|
|
215
|
+
if (!registered) {
|
|
216
|
+
throw new Error(`Unknown assurance source "source:${declared.sourceSlug}". A programme may only cite a source the registry carries, because the registry is what records its edition, authority and RIGHTS.`);
|
|
217
|
+
}
|
|
218
|
+
return {
|
|
219
|
+
identity: registered.identity,
|
|
220
|
+
edition: registered.edition,
|
|
221
|
+
authorityKind: registered.authorityKind,
|
|
222
|
+
authorityName: registered.authorityName,
|
|
223
|
+
lifecycleStatus: registered.lifecycleStatus,
|
|
224
|
+
rightsRef: registered.rights.rightsRef,
|
|
225
|
+
rightsVersion: registered.rights.rightsVersion,
|
|
226
|
+
};
|
|
227
|
+
});
|
|
228
|
+
const registeredSourceBySlug = new Map(generated.sources.map((declared, index) => [declared.sourceSlug, sourceReferences[index]]));
|
|
229
|
+
const applicabilityDecisions = generated.sources.map((declared) => ({
|
|
230
|
+
decisionRef: `applicability:${declared.sourceSlug}`,
|
|
231
|
+
decisionVersion: 1,
|
|
232
|
+
source: registeredSourceBySlug.get(declared.sourceSlug).identity,
|
|
233
|
+
scopeSelectorRef,
|
|
234
|
+
status: declared.status,
|
|
235
|
+
basis: declared.basis,
|
|
236
|
+
authorityDecisionRef: `authority-decision:${declared.sourceSlug}`,
|
|
237
|
+
effectiveFrom: declared.effectiveFrom,
|
|
238
|
+
invalidationConditionRefs: sortByKey(declared.invalidationSlugs.map((slug) => `invalidation:${slug}`), (value) => value),
|
|
239
|
+
}));
|
|
240
|
+
const obligations = generated.obligations.map((obligation) => {
|
|
241
|
+
const binding = ASSURANCE_OBJECTIVE_EXPECTATION_BINDINGS.find((candidate) => candidate.objective.objectiveRef === obligation.objectiveRef);
|
|
242
|
+
if (!binding) {
|
|
243
|
+
throw new Error(`The assurance authority basis states no expectation for "${obligation.objectiveRef}", so a programme cannot bind it. Covered today: ${coveredObjectiveRefs().join(", ")}. Extending that coverage is framework authoring, not generation (#207).`);
|
|
244
|
+
}
|
|
245
|
+
const sourceIdentity = registeredSourceBySlug.get(obligation.sourceSlug).identity;
|
|
246
|
+
const sourceRequirementRefs = [{ source: sourceIdentity, requirementRef: `source-requirement:${obligation.requirementSlug}`, requirementVersion: 1 }];
|
|
247
|
+
return {
|
|
248
|
+
entry: {
|
|
249
|
+
obligationRef: `obligation:${obligation.slug}`,
|
|
250
|
+
obligationVersion: 1,
|
|
251
|
+
objective: binding.objective,
|
|
252
|
+
scopeSelectorRefs: [scopeSelectorRef],
|
|
253
|
+
governanceActorKinds: [...obligation.governanceActorKinds].sort(),
|
|
254
|
+
sourceRequirementRefs,
|
|
255
|
+
sourceApplicabilityDecisionRefs: [{ decisionRef: `applicability:${obligation.sourceSlug}`, decisionVersion: 1 }],
|
|
256
|
+
coverageDecision: { coverageDecisionRef: `obligation-coverage:${obligation.slug}`, coverageDecisionVersion: 1 },
|
|
257
|
+
applicability: {
|
|
258
|
+
decisionRef: `obligation-applicability:${obligation.slug}`,
|
|
259
|
+
decisionVersion: 1,
|
|
260
|
+
status: obligation.applicabilityStatus,
|
|
261
|
+
rationale: obligation.applicabilityRationale,
|
|
262
|
+
reviewedByRoleRef: `role:${generated.reviewerRoleSlug}`,
|
|
263
|
+
decidedAt: generated.reviewedAt,
|
|
264
|
+
evidenceRefs: [],
|
|
265
|
+
invalidationConditionRefs: sortByKey(obligation.reviewTriggerSlugs.map((slug) => `invalidation:${slug}`), (value) => value),
|
|
266
|
+
},
|
|
267
|
+
responsibilityAssignmentRefs: [`assignment:${generated.applicationSlug}`],
|
|
268
|
+
implementationExpectationRefs: [{ expectationRef: binding.implementationExpectationRef, expectationVersion: 1 }],
|
|
269
|
+
evidenceExpectationRefs: [{ expectationRef: binding.evidenceExpectationRef, expectationVersion: 1 }],
|
|
270
|
+
verificationExpectationRefs: [{ expectationRef: binding.verificationExpectationRef, expectationVersion: 1 }],
|
|
271
|
+
requiredProofStage: obligation.requiredProofStage,
|
|
272
|
+
blockingEffect: obligation.blockingEffect,
|
|
273
|
+
gapRefs: [],
|
|
274
|
+
dependencyObligationRefs: [],
|
|
275
|
+
reviewOwnerRoleRefs: [`role:${generated.reviewerRoleSlug}`],
|
|
276
|
+
reviewOn: generated.firstReviewOn,
|
|
277
|
+
reviewTriggerRefs: sortByKey(obligation.reviewTriggerSlugs.map((slug) => `review-trigger:${slug}`), (value) => value),
|
|
278
|
+
},
|
|
279
|
+
decision: {
|
|
280
|
+
decisionRef: `implementation-decision:${obligation.slug}`,
|
|
281
|
+
decisionVersion: 1,
|
|
282
|
+
objective: binding.objective,
|
|
283
|
+
scopeSelectorRefs: [scopeSelectorRef],
|
|
284
|
+
resolution: obligation.implementationResolution,
|
|
285
|
+
/*
|
|
286
|
+
* Derived, never asked for: the authority basis is the only thing entitled to say WHICH capability satisfies an objective. A provider naming its own would be
|
|
287
|
+
* choosing the mechanism and then attesting to it.
|
|
288
|
+
*/
|
|
289
|
+
capabilitySelections: sortByKey(binding.requiredCapabilityRefs.map((capabilityRef) => ({
|
|
290
|
+
capabilityKind: capabilityAuthorityFor(capabilityRef).capabilityKind,
|
|
291
|
+
capabilityRef,
|
|
292
|
+
capabilityVersion: 1,
|
|
293
|
+
selectedOptions: [],
|
|
294
|
+
})), (selection) => selection.capabilityRef),
|
|
295
|
+
selectionAuthorityRef: `authority-decision:${generated.applicationSlug}-implementation`,
|
|
296
|
+
knownLimitations: sortByKey([...new Set(obligation.implementationLimitations)], (value) => value),
|
|
297
|
+
gapDisposition: obligation.gapDisposition,
|
|
298
|
+
gapRefs: [],
|
|
299
|
+
},
|
|
300
|
+
coverage: {
|
|
301
|
+
coverageDecisionRef: `obligation-coverage:${obligation.slug}`,
|
|
302
|
+
coverageDecisionVersion: 1,
|
|
303
|
+
obligation: { obligationRef: `obligation:${obligation.slug}`, obligationVersion: 1 },
|
|
304
|
+
sourceRequirementRefs,
|
|
305
|
+
reviewDisposition: obligation.coverageDisposition,
|
|
306
|
+
reviewedByRoleRef: `role:${generated.reviewerRoleSlug}`,
|
|
307
|
+
reviewedAt: generated.reviewedAt,
|
|
308
|
+
rationale: obligation.coverageRationale,
|
|
309
|
+
limitationRefs: [],
|
|
310
|
+
},
|
|
311
|
+
};
|
|
312
|
+
});
|
|
313
|
+
return AssuranceProgramSpecificationV3Schema.parse({
|
|
314
|
+
schemaVersion: 3,
|
|
315
|
+
programRef: `compliance-program:${generated.applicationSlug}`,
|
|
316
|
+
programVersion: 1,
|
|
317
|
+
sourceReferences: sortByKey(sourceReferences, (reference) => `${reference.identity.sourceRef}@${reference.identity.sourceVersion}`),
|
|
318
|
+
scopeSelectors: [
|
|
319
|
+
{
|
|
320
|
+
scopeSelectorRef,
|
|
321
|
+
scopeSelectorVersion: 1,
|
|
322
|
+
kind: generated.scopeKind,
|
|
323
|
+
systemBoundaryRefs: [`system-boundary:${generated.applicationSlug}`],
|
|
324
|
+
organizationScopeRuleRefs: [],
|
|
325
|
+
jurisdictionRefs: sortByKey(generated.jurisdictionSlugs.map((slug) => `jurisdiction:${slug}`), (value) => value),
|
|
326
|
+
dataCategoryRefs: sortByKey(generated.dataCategorySlugs.map((slug) => `data-category:${slug}`), (value) => value),
|
|
327
|
+
},
|
|
328
|
+
],
|
|
329
|
+
applicabilityDecisions: sortByKey(applicabilityDecisions, (decision) => `${decision.decisionRef}@${decision.decisionVersion}`),
|
|
330
|
+
obligationRegister: {
|
|
331
|
+
schemaVersion: 1,
|
|
332
|
+
registerRef: `obligation-register:${generated.applicationSlug}`,
|
|
333
|
+
registerVersion: 1,
|
|
334
|
+
entries: sortByKey(obligations.map((obligation) => obligation.entry), (entry) => `${entry.obligationRef}@${entry.obligationVersion}`),
|
|
335
|
+
},
|
|
336
|
+
obligationCoverageDecisions: sortByKey(obligations.map((obligation) => obligation.coverage), (coverage) => `${coverage.coverageDecisionRef}@${coverage.coverageDecisionVersion}`),
|
|
337
|
+
sharedResponsibilityRules: [],
|
|
338
|
+
implementationDecisions: sortByKey(obligations.map((obligation) => obligation.decision), (decision) => `${decision.decisionRef}@${decision.decisionVersion}`),
|
|
339
|
+
responsibilityAssignments: [
|
|
340
|
+
{
|
|
341
|
+
assignmentRef: `assignment:${generated.applicationSlug}`,
|
|
342
|
+
scopeSelectorRef,
|
|
343
|
+
responsibleRoleRefs: sortByKey(generated.responsibility.responsibleRoleSlugs.map((slug) => `role:${slug}`), (value) => value),
|
|
344
|
+
operatingRoleRefs: sortByKey(generated.responsibility.operatingRoleSlugs.map((slug) => `role:${slug}`), (value) => value),
|
|
345
|
+
evidenceProviderRoleRefs: sortByKey(generated.responsibility.evidenceProviderRoleSlugs.map((slug) => `role:${slug}`), (value) => value),
|
|
346
|
+
approvingRoleRefs: sortByKey(generated.responsibility.approvingRoleSlugs.map((slug) => `role:${slug}`), (value) => value),
|
|
347
|
+
escalationRoleRefs: [],
|
|
348
|
+
},
|
|
349
|
+
],
|
|
350
|
+
gapsAndExceptions: [],
|
|
351
|
+
documentationRequirements: [],
|
|
352
|
+
knownProgramLimitations: generated.limitations,
|
|
353
|
+
authorityBases: [
|
|
354
|
+
{
|
|
355
|
+
...basisIdentity,
|
|
356
|
+
/*
|
|
357
|
+
* The engine-side baseline this programme was derived against. It is a single ref because `createInitialAssuranceProgramAuthorityBasis` — which composes the
|
|
358
|
+
* basis around a real implementation revision and its artifacts — has NO production caller today, only tests. When it gains one, this must become that
|
|
359
|
+
* revision's artifact refs rather than this stand-in name.
|
|
360
|
+
*/
|
|
361
|
+
attestedArtifactRefs: ["source-artifact:wildo-assurance-authority-basis"],
|
|
362
|
+
},
|
|
363
|
+
],
|
|
364
|
+
roleAuthorities: sortByKey(generated.roles.map((role) => ({ roleRef: `role:${role.slug}`, applicationRoleRef: role.applicationRoleRef, definitionAuthority: basisIdentity })), (authority) => authority.roleRef),
|
|
365
|
+
capabilityAuthorities: sortByKey([...new Set(obligations.flatMap((obligation) => obligation.decision.capabilitySelections.map((selection) => selection.capabilityRef)))].map((capabilityRef) => {
|
|
366
|
+
const authority = capabilityAuthorityFor(capabilityRef);
|
|
367
|
+
return {
|
|
368
|
+
identity: authority.identity,
|
|
369
|
+
capabilityKind: authority.capabilityKind,
|
|
370
|
+
implementationRefs: [...authority.implementationRefs],
|
|
371
|
+
implementationAuthority: basisIdentity,
|
|
372
|
+
};
|
|
373
|
+
}), (authority) => `${authority.identity.capabilityRef}@${authority.identity.capabilityVersion}`),
|
|
374
|
+
implementationStatements: [],
|
|
375
|
+
});
|
|
376
|
+
}
|
|
377
|
+
//# sourceMappingURL=assurance-program-generation.schemas.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"assurance-program-generation.schemas.js","sourceRoot":"","sources":["../../../../src/assurance/assurance-program-generation.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EACL,gCAAgC,EAChC,wCAAwC,EACxC,qCAAqC,EACrC,yCAAy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,IAAI,SAAS,CAAC,QAAQ,CAAC,iBAAiB,EAAE,CAC7F;QACD,wBAAwB,EAAE,EAAE;KAC7B,CAAC,CAAC;AACL,CAAC","sourcesContent":["import { z } from \"zod\";\n\nimport {\n ASSURANCE_CAPABILITY_AUTHORITIES,\n ASSURANCE_OBJECTIVE_EXPECTATION_BINDINGS,\n INITIAL_ASSURANCE_AUTHORITY_BASIS_REF,\n INITIAL_ASSURANCE_AUTHORITY_BASIS_VERSION,\n} from \"./assurance-authority-basis.definitions\";\nimport { AssuranceGapDisposition, AssuranceGovernanceActorKind } from \"./assurance-foundation.schemas\";\nimport {\n AssuranceProgramApplicabilityStatus,\n AssuranceProgramCapabilityResolution,\n AssuranceProgramObligationApplicabilityStatus,\n AssuranceProgramObligationBlockingEffect,\n AssuranceProgramObligationCoverageReviewDisposition,\n AssuranceProgramProofStage,\n AssuranceProgramScopeSelectorKind,\n AssuranceProgramSpecificationV3Schema,\n type AssuranceProgramSpecification,\n} from \"./assurance-program.schemas\";\nimport { INITIAL_ASSURANCE_SOURCE_REGISTRY } from \"./assurance-source-registry.definitions\";\n\n/**\n * The STRICT contract a provider answers for the `compliance-program` family.\n *\n * ## Why the family schema is not this contract\n *\n * `AssuranceProgramSpecificationV3Schema` is what a HAND-AUTHORED programme is parsed against. It carries sixteen top-level collections, and one obligation entry alone\n * has twenty-one fields — most of them `.min(1)` arrays of namespaced refs that must agree with each other across five other collections. Handing that to a provider is\n * handing it a dozen ways to fail on FORM rather than on substance. The binding that consumes this pair says what the absence costs: three families shipped a strict\n * generation schema with no caller while the lane constrained the model with the permissive family schema, and `tasks: []` / `modules: []` became generatable and landed\n * over real artifacts (live incidents 2026-08-24/25).\n *\n * ## What a generator may NOT decide, and why this contract is narrower than it looks\n *\n * Two things are looked up rather than asked for, and both refusals are the point:\n *\n * - **Which objectives may be bound at all.** {@link ASSURANCE_OBJECTIVE_EXPECTATION_BINDINGS} covers a SUBSET of the catalog's 49 objectives — 9, measured\n * 2026-09-02, tracked as #207; count them rather than quoting that. Every obligation needs\n * implementation, evidence and verification expectation refs at `.min(1)`, and only the basis may say what an objective demands. Asked for, a provider would invent\n * an expectation ref for any UNBOUND objective and the result would VALIDATE — a programme claiming coverage the framework has never stated a demand for. Looked up,\n * the ceiling is mechanical (#207).\n * - **What a source is and what may be done with it.** Source edition, authority kind and name, lifecycle status and the RIGHTS reference are stamped from\n * {@link INITIAL_ASSURANCE_SOURCE_REGISTRY}. A model must never author a rights record: rights decide what may be reproduced, and a fabricated one is a licensing\n * claim nobody reviewed.\n *\n * ## What it DOES ask for is a human's answer, carried through\n *\n * `reviewedAt`, `reviewerRoleSlug`, `firstReviewOn` and every coverage disposition are human decisions. A coverage decision's own schema calls it an \"Exact\n * human-reviewed coverage claim\" and its disposition enum has no unreviewed member, so a programme cannot exist without one. This contract does not let a model INVENT\n * them — it carries answers the playbook elicited from the creator, which is a live path (the companion reads `elicitationAnswers` on dispatch). The method prose is\n * what binds them to the elicited answer; nothing here can tell an echoed answer from an invented one, and that guard belongs later, judge-style\n * (`.claude/rules/application-creation-directive.md`).\n *\n * `NOT_APPLICABLE` is deliberately absent from the obligation applicability options below: that branch of the family's discriminated union requires `evidenceRefs`\n * at `.min(1)`, and evidence that an obligation does not apply is not derivable. `UNDETERMINED` with a rationale is the honest answer, and the compliance-posture\n * method asks for exactly that — \"record any missing detail as `UNDETERMINED` or an explicit gap\".\n */\n\nconst SemanticSlugSchema = z.string().trim().regex(/^[a-z0-9]+(?:-[a-z0-9]+)*$/u, \"expected a kebab-case slug\");\nconst ProseSchema = z.string().trim().min(1);\n\n/** The two applicability answers a derivation may honestly give. See the file header for why `NOT_APPLICABLE` is absent. */\nconst GenerableObligationApplicabilityStatusSchema = z.enum([\n AssuranceProgramObligationApplicabilityStatus.APPLICABLE,\n AssuranceProgramObligationApplicabilityStatus.UNDETERMINED,\n]);\n\nexport const AssuranceProgramObligationGenerationSchema = z.strictObject({\n /** Stamped into `obligation:<slug>`, `obligation-applicability:<slug>` and `obligation-coverage:<slug>`. */\n slug: SemanticSlugSchema,\n /** Must be an objective {@link ASSURANCE_OBJECTIVE_EXPECTATION_BINDINGS} covers; the normalizer refuses any other. */\n objectiveRef: z.string().trim().min(1),\n /** Which of the declared `sources` this obligation answers. */\n sourceSlug: SemanticSlugSchema,\n /** Stamped into `source-requirement:<slug>` — the specific requirement of that source. */\n requirementSlug: SemanticSlugSchema,\n governanceActorKinds: z.array(z.enum(AssuranceGovernanceActorKind)).min(1),\n applicabilityStatus: GenerableObligationApplicabilityStatusSchema,\n applicabilityRationale: ProseSchema,\n /** A HUMAN decision, elicited — see the file header. */\n coverageDisposition: z.enum(AssuranceProgramObligationCoverageReviewDisposition),\n coverageRationale: ProseSchema,\n requiredProofStage: z.enum(AssuranceProgramProofStage),\n blockingEffect: z.enum(AssuranceProgramObligationBlockingEffect),\n /** Stamped into `review-trigger:<slug>` — what invalidates this obligation's review. */\n reviewTriggerSlugs: z.array(SemanticSlugSchema).min(1),\n /**\n * How far the selected capability actually carries this objective.\n *\n * Required because the family refuses an obligation with no implementation decision\n * (`INCOMPLETE_IMPLEMENTATION_DECISION`) — a bound objective with no stated means is a claim with no\n * mechanism. WHICH capability is not asked for: it is derived from the authority basis, which is the\n * only thing entitled to say what satisfies an objective.\n */\n implementationResolution: z.enum(AssuranceProgramCapabilityResolution),\n /** Where the gap between the objective and the selected capability stands. `NOT_EVALUATED` is honest; a silent omission is not. */\n gapDisposition: z.enum(AssuranceGapDisposition),\n /** What the selected capability does NOT cover. Deduplicated and sorted by the runtime. */\n implementationLimitations: z.array(ProseSchema),\n});\nexport type AssuranceProgramObligationGeneration = z.infer<typeof AssuranceProgramObligationGenerationSchema>;\n\nexport const AssuranceProgramSourceApplicabilityGenerationSchema = z.strictObject({\n /** A `sourceRef` of {@link INITIAL_ASSURANCE_SOURCE_REGISTRY} WITHOUT its `source:` prefix. The normalizer refuses an unknown one. */\n sourceSlug: SemanticSlugSchema,\n status: z.enum(AssuranceProgramApplicabilityStatus),\n /** Why this source does or does not reach the application. Never a restatement of the source's own title. */\n basis: ProseSchema,\n effectiveFrom: z.iso.date(),\n /** Stamped into `invalidation:<slug>` — what would force this applicability decision to be retaken. */\n invalidationSlugs: z.array(SemanticSlugSchema).min(1),\n});\n\nexport const AssuranceProgramGenerationSchema = z\n .strictObject({\n /** Stamped into `compliance-program:<slug>`, `scope:<slug>`, `system-boundary:<slug>` and the obligation register's ref. */\n applicationSlug: SemanticSlugSchema,\n scopeKind: z.enum(AssuranceProgramScopeSelectorKind),\n /** Stamped into `jurisdiction:<slug>`. Empty is a WILDCARD in the family's overlap proof, not an omission. */\n jurisdictionSlugs: z.array(SemanticSlugSchema),\n /** Stamped into `data-category:<slug>`. Empty is a wildcard, as above. */\n dataCategorySlugs: z.array(SemanticSlugSchema),\n /** The programme's roles. `applicationRoleRef` is the application's OWN role key, not a namespaced ref. */\n roles: z.array(z.strictObject({ slug: SemanticSlugSchema, applicationRoleRef: z.string().trim().min(1) })).min(1),\n responsibility: z.strictObject({\n responsibleRoleSlugs: z.array(SemanticSlugSchema).min(1),\n operatingRoleSlugs: z.array(SemanticSlugSchema).min(1),\n evidenceProviderRoleSlugs: z.array(SemanticSlugSchema).min(1),\n approvingRoleSlugs: z.array(SemanticSlugSchema).min(1),\n }),\n /** The role that reviewed the coverage decisions. A human answer, elicited. */\n reviewerRoleSlug: SemanticSlugSchema,\n /** When that review happened. A human answer, elicited — never `now`, which no normalizer has. */\n reviewedAt: z.iso.datetime({ offset: true }),\n /** When each obligation is next reviewed. A human answer, elicited: a commitment nobody may invent. */\n firstReviewOn: z.iso.date(),\n sources: z.array(AssuranceProgramSourceApplicabilityGenerationSchema).min(1),\n obligations: z.array(AssuranceProgramObligationGenerationSchema).min(1),\n /**\n * What this programme does NOT claim.\n *\n * `.min(1)` where the family permits zero, deliberately. A programme binding two of forty-nine objectives that states no limitation reads as a complete assurance\n * posture, and the claim guards downstream refuse exactly that reading. Saying what is out of scope is the cheapest thing that keeps it honest.\n */\n limitations: z.array(ProseSchema).min(1),\n })\n .superRefine((generated, context) => {\n const roleSlugs = new Set(generated.roles.map((role) => role.slug));\n generated.roles.forEach((role, index) => {\n if (generated.roles.filter((candidate) => candidate.slug === role.slug).length > 1) {\n context.addIssue({ code: \"custom\", path: [\"roles\", index, \"slug\"], message: `duplicate role slug \"${role.slug}\"` });\n }\n });\n const requireRole = (slug: string, path: PropertyKey[]): void => {\n if (!roleSlugs.has(slug)) context.addIssue({ code: \"custom\", path, message: `\"${slug}\" is not one of the declared roles` });\n };\n requireRole(generated.reviewerRoleSlug, [\"reviewerRoleSlug\"]);\n for (const [field, slugs] of Object.entries(generated.responsibility)) {\n slugs.forEach((slug, index) => requireRole(slug, [\"responsibility\", field, index]));\n }\n\n const sourceSlugs = new Set(generated.sources.map((source) => source.sourceSlug));\n generated.sources.forEach((source, index) => {\n if (generated.sources.filter((candidate) => candidate.sourceSlug === source.sourceSlug).length > 1) {\n context.addIssue({ code: \"custom\", path: [\"sources\", index, \"sourceSlug\"], message: `duplicate source \"${source.sourceSlug}\"` });\n }\n });\n\n /*\n * A review scheduled BEFORE the review that scheduled it is not a commitment, it is an already-missed one. Nothing downstream catches this: the family takes\n * `reviewOn` as a plain date and never compares it to the coverage decision's `reviewedAt`.\n */\n if (generated.firstReviewOn <= generated.reviewedAt.slice(0, 10)) {\n context.addIssue({\n code: \"custom\",\n path: [\"firstReviewOn\"],\n message: `the next review (${generated.firstReviewOn}) must fall after the review that scheduled it (${generated.reviewedAt.slice(0, 10)})`,\n });\n }\n\n const seenObligationObjectives = new Set<string>();\n const seenObligationSlugs = new Set<string>();\n generated.obligations.forEach((obligation, index) => {\n /*\n * One objective, one obligation. The family refuses two obligations over the same objective/scope subject as `AMBIGUOUS_OBLIGATION_BINDING`, several layers\n * later and by path index. Catching it here tells the model WHICH objective it bound twice, which is the difference between a useful retry and a guess.\n */\n if (seenObligationObjectives.has(obligation.objectiveRef)) {\n context.addIssue({\n code: \"custom\",\n path: [\"obligations\", index, \"objectiveRef\"],\n message: `\"${obligation.objectiveRef}\" is bound twice; one objective carries one obligation in a single programme scope`,\n });\n }\n seenObligationObjectives.add(obligation.objectiveRef);\n if (seenObligationSlugs.has(obligation.slug)) {\n context.addIssue({ code: \"custom\", path: [\"obligations\", index, \"slug\"], message: `duplicate obligation slug \"${obligation.slug}\"` });\n }\n seenObligationSlugs.add(obligation.slug);\n if (!sourceSlugs.has(obligation.sourceSlug)) {\n context.addIssue({\n code: \"custom\",\n path: [\"obligations\", index, \"sourceSlug\"],\n message: `\"${obligation.sourceSlug}\" is not declared in \\`sources\\`; an obligation may only answer a source whose applicability this programme decided`,\n });\n }\n });\n });\nexport type AssuranceProgramGeneration = z.infer<typeof AssuranceProgramGenerationSchema>;\n\n/**\n * The basis's authority for a capability an expectation requires.\n *\n * Throws rather than returning undefined: an expectation naming a capability the basis does not attest is a hole in the basis itself, and the family would refuse the\n * programme with `UNKNOWN_CAPABILITY` several layers later, where the cause is far less legible.\n */\nfunction capabilityAuthorityFor(capabilityRef: string): (typeof ASSURANCE_CAPABILITY_AUTHORITIES)[number] {\n const authority = ASSURANCE_CAPABILITY_AUTHORITIES.find((candidate) => candidate.identity.capabilityRef === capabilityRef);\n if (!authority) throw new Error(`The assurance authority basis requires \"${capabilityRef}\" but attests no such capability.`);\n return authority;\n}\n\n/** Objectives a generated programme may bind, as a readable list for a rejection message. */\nconst coveredObjectiveRefs = (): readonly string[] => ASSURANCE_OBJECTIVE_EXPECTATION_BINDINGS.map((binding) => binding.objective.objectiveRef);\n\n/**\n * Normalize strict provider output into a canonical, persistable V3 assurance programme.\n *\n * Everything namespaced, versioned or ordered is stamped here. The family requires several collections lexically sorted by their identity, which is a canonicalization\n * concern rather than a content one — asking a provider to sort is asking it to fail on form.\n *\n * Two lookups are REFUSALS rather than conveniences, and both throw so the lane returns the finding to the model exactly like a validator rejection: an objective the\n * authority basis does not cover, and a source the registry does not know.\n */\nexport function parseAssuranceProgramGeneration(input: unknown): AssuranceProgramSpecification {\n const generated = AssuranceProgramGenerationSchema.parse(input);\n const scopeSelectorRef = `scope:${generated.applicationSlug}`;\n const basisIdentity = { basisRef: INITIAL_ASSURANCE_AUTHORITY_BASIS_REF, basisVersion: INITIAL_ASSURANCE_AUTHORITY_BASIS_VERSION } as const;\n const sortByKey = <T>(values: readonly T[], key: (value: T) => string): T[] => [...values].sort((left, right) => (key(left) < key(right) ? -1 : key(left) > key(right) ? 1 : 0));\n\n const sourceReferences = generated.sources.map((declared) => {\n const registered = INITIAL_ASSURANCE_SOURCE_REGISTRY.sources.find((source) => source.identity.sourceRef === `source:${declared.sourceSlug}`);\n if (!registered) {\n throw new Error(\n `Unknown assurance source \"source:${declared.sourceSlug}\". A programme may only cite a source the registry carries, because the registry is what records its edition, authority and RIGHTS.`,\n );\n }\n return {\n identity: registered.identity,\n edition: registered.edition,\n authorityKind: registered.authorityKind,\n authorityName: registered.authorityName,\n lifecycleStatus: registered.lifecycleStatus,\n rightsRef: registered.rights.rightsRef,\n rightsVersion: registered.rights.rightsVersion,\n };\n });\n const registeredSourceBySlug = new Map(generated.sources.map((declared, index) => [declared.sourceSlug, sourceReferences[index]!]));\n\n const applicabilityDecisions = generated.sources.map((declared) => ({\n decisionRef: `applicability:${declared.sourceSlug}`,\n decisionVersion: 1,\n source: registeredSourceBySlug.get(declared.sourceSlug)!.identity,\n scopeSelectorRef,\n status: declared.status,\n basis: declared.basis,\n authorityDecisionRef: `authority-decision:${declared.sourceSlug}`,\n effectiveFrom: declared.effectiveFrom,\n invalidationConditionRefs: sortByKey(\n declared.invalidationSlugs.map((slug) => `invalidation:${slug}`),\n (value) => value,\n ),\n }));\n\n const obligations = generated.obligations.map((obligation) => {\n const binding = ASSURANCE_OBJECTIVE_EXPECTATION_BINDINGS.find((candidate) => candidate.objective.objectiveRef === obligation.objectiveRef);\n if (!binding) {\n throw new Error(\n `The assurance authority basis states no expectation for \"${obligation.objectiveRef}\", so a programme cannot bind it. Covered today: ${coveredObjectiveRefs().join(\", \")}. Extending that coverage is framework authoring, not generation (#207).`,\n );\n }\n const sourceIdentity = registeredSourceBySlug.get(obligation.sourceSlug)!.identity;\n const sourceRequirementRefs = [{ source: sourceIdentity, requirementRef: `source-requirement:${obligation.requirementSlug}`, requirementVersion: 1 }];\n return {\n entry: {\n obligationRef: `obligation:${obligation.slug}`,\n obligationVersion: 1,\n objective: binding.objective,\n scopeSelectorRefs: [scopeSelectorRef],\n governanceActorKinds: [...obligation.governanceActorKinds].sort(),\n sourceRequirementRefs,\n sourceApplicabilityDecisionRefs: [{ decisionRef: `applicability:${obligation.sourceSlug}`, decisionVersion: 1 }],\n coverageDecision: { coverageDecisionRef: `obligation-coverage:${obligation.slug}`, coverageDecisionVersion: 1 },\n applicability: {\n decisionRef: `obligation-applicability:${obligation.slug}`,\n decisionVersion: 1,\n status: obligation.applicabilityStatus,\n rationale: obligation.applicabilityRationale,\n reviewedByRoleRef: `role:${generated.reviewerRoleSlug}`,\n decidedAt: generated.reviewedAt,\n evidenceRefs: [],\n invalidationConditionRefs: sortByKey(\n obligation.reviewTriggerSlugs.map((slug) => `invalidation:${slug}`),\n (value) => value,\n ),\n },\n responsibilityAssignmentRefs: [`assignment:${generated.applicationSlug}`],\n implementationExpectationRefs: [{ expectationRef: binding.implementationExpectationRef, expectationVersion: 1 }],\n evidenceExpectationRefs: [{ expectationRef: binding.evidenceExpectationRef, expectationVersion: 1 }],\n verificationExpectationRefs: [{ expectationRef: binding.verificationExpectationRef, expectationVersion: 1 }],\n requiredProofStage: obligation.requiredProofStage,\n blockingEffect: obligation.blockingEffect,\n gapRefs: [],\n dependencyObligationRefs: [],\n reviewOwnerRoleRefs: [`role:${generated.reviewerRoleSlug}`],\n reviewOn: generated.firstReviewOn,\n reviewTriggerRefs: sortByKey(\n obligation.reviewTriggerSlugs.map((slug) => `review-trigger:${slug}`),\n (value) => value,\n ),\n },\n decision: {\n decisionRef: `implementation-decision:${obligation.slug}`,\n decisionVersion: 1,\n objective: binding.objective,\n scopeSelectorRefs: [scopeSelectorRef],\n resolution: obligation.implementationResolution,\n /*\n * Derived, never asked for: the authority basis is the only thing entitled to say WHICH capability satisfies an objective. A provider naming its own would be\n * choosing the mechanism and then attesting to it.\n */\n capabilitySelections: sortByKey(\n binding.requiredCapabilityRefs.map((capabilityRef) => ({\n capabilityKind: capabilityAuthorityFor(capabilityRef).capabilityKind,\n capabilityRef,\n capabilityVersion: 1,\n selectedOptions: [],\n })),\n (selection) => selection.capabilityRef,\n ),\n selectionAuthorityRef: `authority-decision:${generated.applicationSlug}-implementation`,\n knownLimitations: sortByKey([...new Set(obligation.implementationLimitations)], (value) => value),\n gapDisposition: obligation.gapDisposition,\n gapRefs: [],\n },\n coverage: {\n coverageDecisionRef: `obligation-coverage:${obligation.slug}`,\n coverageDecisionVersion: 1,\n obligation: { obligationRef: `obligation:${obligation.slug}`, obligationVersion: 1 },\n sourceRequirementRefs,\n reviewDisposition: obligation.coverageDisposition,\n reviewedByRoleRef: `role:${generated.reviewerRoleSlug}`,\n reviewedAt: generated.reviewedAt,\n rationale: obligation.coverageRationale,\n limitationRefs: [],\n },\n };\n });\n\n return AssuranceProgramSpecificationV3Schema.parse({\n schemaVersion: 3,\n programRef: `compliance-program:${generated.applicationSlug}`,\n programVersion: 1,\n sourceReferences: sortByKey(sourceReferences, (reference) => `${reference.identity.sourceRef}@${reference.identity.sourceVersion}`),\n scopeSelectors: [\n {\n scopeSelectorRef,\n scopeSelectorVersion: 1,\n kind: generated.scopeKind,\n systemBoundaryRefs: [`system-boundary:${generated.applicationSlug}`],\n organizationScopeRuleRefs: [],\n jurisdictionRefs: sortByKey(\n generated.jurisdictionSlugs.map((slug) => `jurisdiction:${slug}`),\n (value) => value,\n ),\n dataCategoryRefs: sortByKey(\n generated.dataCategorySlugs.map((slug) => `data-category:${slug}`),\n (value) => value,\n ),\n },\n ],\n applicabilityDecisions: sortByKey(applicabilityDecisions, (decision) => `${decision.decisionRef}@${decision.decisionVersion}`),\n obligationRegister: {\n schemaVersion: 1,\n registerRef: `obligation-register:${generated.applicationSlug}`,\n registerVersion: 1,\n entries: sortByKey(\n obligations.map((obligation) => obligation.entry),\n (entry) => `${entry.obligationRef}@${entry.obligationVersion}`,\n ),\n },\n obligationCoverageDecisions: sortByKey(\n obligations.map((obligation) => obligation.coverage),\n (coverage) => `${coverage.coverageDecisionRef}@${coverage.coverageDecisionVersion}`,\n ),\n sharedResponsibilityRules: [],\n implementationDecisions: sortByKey(\n obligations.map((obligation) => obligation.decision),\n (decision) => `${decision.decisionRef}@${decision.decisionVersion}`,\n ),\n responsibilityAssignments: [\n {\n assignmentRef: `assignment:${generated.applicationSlug}`,\n scopeSelectorRef,\n responsibleRoleRefs: sortByKey(generated.responsibility.responsibleRoleSlugs.map((slug) => `role:${slug}`), (value) => value),\n operatingRoleRefs: sortByKey(generated.responsibility.operatingRoleSlugs.map((slug) => `role:${slug}`), (value) => value),\n evidenceProviderRoleRefs: sortByKey(generated.responsibility.evidenceProviderRoleSlugs.map((slug) => `role:${slug}`), (value) => value),\n approvingRoleRefs: sortByKey(generated.responsibility.approvingRoleSlugs.map((slug) => `role:${slug}`), (value) => value),\n escalationRoleRefs: [],\n },\n ],\n gapsAndExceptions: [],\n documentationRequirements: [],\n knownProgramLimitations: generated.limitations,\n authorityBases: [\n {\n ...basisIdentity,\n /*\n * The engine-side baseline this programme was derived against. It is a single ref because `createInitialAssuranceProgramAuthorityBasis` — which composes the\n * basis around a real implementation revision and its artifacts — has NO production caller today, only tests. When it gains one, this must become that\n * revision's artifact refs rather than this stand-in name.\n */\n attestedArtifactRefs: [\"source-artifact:wildo-assurance-authority-basis\"],\n },\n ],\n roleAuthorities: sortByKey(\n generated.roles.map((role) => ({ roleRef: `role:${role.slug}`, applicationRoleRef: role.applicationRoleRef, definitionAuthority: basisIdentity })),\n (authority) => authority.roleRef,\n ),\n capabilityAuthorities: sortByKey(\n [...new Set(obligations.flatMap((obligation) => obligation.decision.capabilitySelections.map((selection) => selection.capabilityRef)))].map((capabilityRef) => {\n const authority = capabilityAuthorityFor(capabilityRef);\n return {\n identity: authority.identity,\n capabilityKind: authority.capabilityKind,\n implementationRefs: [...authority.implementationRefs],\n implementationAuthority: basisIdentity,\n };\n }),\n (authority) => `${authority.identity.capabilityRef}@${authority.identity.capabilityVersion}`,\n ),\n implementationStatements: [],\n });\n}\n"]}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { FamilyAspectsDeclaration } from '../_core/family-aspects.schemas';
|
|
2
|
+
/**
|
|
3
|
+
* The assurance programme family — declared with NO aspects, deliberately.
|
|
4
|
+
*
|
|
5
|
+
* The snapshot is a VERSIONED discriminated union (V1/V2/V3) whose collections differ per era:
|
|
6
|
+
* an aspect declaration would either pick one era's shape (refusing exactly the older programme a
|
|
7
|
+
* reviewer needs beside a migration — the argument the family's own template records) or invent a
|
|
8
|
+
* merged shape none of the eras validates. Its second-level structure becomes aspects in a
|
|
9
|
+
* dedicated pass that models the eras honestly; until then the registry covers the family and
|
|
10
|
+
* says so, instead of the family being silently absent.
|
|
11
|
+
*/
|
|
12
|
+
export declare const ASSURANCE_PROGRAM_FAMILY_ASPECTS: FamilyAspectsDeclaration;
|
|
13
|
+
//# sourceMappingURL=assurance-program.family-aspects.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"assurance-program.family-aspects.d.ts","sourceRoot":"","sources":["../../../../src/assurance/assurance-program.family-aspects.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,iCAAiC,CAAC;AAEhF;;;;;;;;;GASG;AACH,eAAO,MAAM,gCAAgC,EAAE,wBAG9C,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { ApplicationSpecificationFamilySemanticSchemaRef } from '../application-creation/application-specification-family-identity.application-creation.schemas.js';
|
|
2
|
+
/**
|
|
3
|
+
* The assurance programme family — declared with NO aspects, deliberately.
|
|
4
|
+
*
|
|
5
|
+
* The snapshot is a VERSIONED discriminated union (V1/V2/V3) whose collections differ per era:
|
|
6
|
+
* an aspect declaration would either pick one era's shape (refusing exactly the older programme a
|
|
7
|
+
* reviewer needs beside a migration — the argument the family's own template records) or invent a
|
|
8
|
+
* merged shape none of the eras validates. Its second-level structure becomes aspects in a
|
|
9
|
+
* dedicated pass that models the eras honestly; until then the registry covers the family and
|
|
10
|
+
* says so, instead of the family being silently absent.
|
|
11
|
+
*/
|
|
12
|
+
export const ASSURANCE_PROGRAM_FAMILY_ASPECTS = {
|
|
13
|
+
schemaRef: ApplicationSpecificationFamilySemanticSchemaRef.ASSURANCE_PROGRAM_SPECIFICATION,
|
|
14
|
+
aspects: [],
|
|
15
|
+
};
|
|
16
|
+
//# sourceMappingURL=assurance-program.family-aspects.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"assurance-program.family-aspects.js","sourceRoot":"","sources":["../../../../src/assurance/assurance-program.family-aspects.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,+CAA+C,EAAE,MAAM,gGAAgG,CAAC;AAGjK;;;;;;;;;GASG;AACH,MAAM,CAAC,MAAM,gCAAgC,GAA6B;IACxE,SAAS,EAAE,+CAA+C,CAAC,+BAA+B;IAC1F,OAAO,EAAE,EAAE;CACZ,CAAC","sourcesContent":["import { ApplicationSpecificationFamilySemanticSchemaRef } from '../application-creation/application-specification-family-identity.application-creation.schemas';\nimport type { FamilyAspectsDeclaration } from '../_core/family-aspects.schemas';\n\n/**\n * The assurance programme family — declared with NO aspects, deliberately.\n *\n * The snapshot is a VERSIONED discriminated union (V1/V2/V3) whose collections differ per era:\n * an aspect declaration would either pick one era's shape (refusing exactly the older programme a\n * reviewer needs beside a migration — the argument the family's own template records) or invent a\n * merged shape none of the eras validates. Its second-level structure becomes aspects in a\n * dedicated pass that models the eras honestly; until then the registry covers the family and\n * says so, instead of the family being silently absent.\n */\nexport const ASSURANCE_PROGRAM_FAMILY_ASPECTS: FamilyAspectsDeclaration = {\n schemaRef: ApplicationSpecificationFamilySemanticSchemaRef.ASSURANCE_PROGRAM_SPECIFICATION,\n aspects: [],\n};\n"]}
|
|
@@ -317,6 +317,7 @@ export declare const AssuranceProgramValidationAuthoritySnapshotSchema: z.ZodObj
|
|
|
317
317
|
sourceRef: z.core.$ZodBranded<z.ZodString, "AssuranceNamespacedRef", "out">;
|
|
318
318
|
sourceVersion: z.ZodNumber;
|
|
319
319
|
}, z.core.$strict>>;
|
|
320
|
+
jurisdictionalReach: z.ZodArray<z.ZodString>;
|
|
320
321
|
scopeLimitations: z.ZodArray<z.ZodString>;
|
|
321
322
|
}, z.core.$strict>>;
|
|
322
323
|
}, z.core.$strict>;
|
|
@@ -1193,7 +1194,13 @@ export declare const AssuranceProgramObligationEntrySchema: z.ZodObject<{
|
|
|
1193
1194
|
reviewTriggerRefs: z.ZodArray<z.core.$ZodBranded<z.ZodString, "AssuranceNamespacedRef", "out">>;
|
|
1194
1195
|
}, z.core.$strict>;
|
|
1195
1196
|
export type AssuranceProgramObligationEntry = z.infer<typeof AssuranceProgramObligationEntrySchema>;
|
|
1196
|
-
/**
|
|
1197
|
+
/**
|
|
1198
|
+
* Complete application obligation inventory. It is not the governed-document release register.
|
|
1199
|
+
*
|
|
1200
|
+
* 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
|
|
1201
|
+
* strict shape below is the whole truth: a ref, a version and the entries. Completeness is proven by `obligationCoverageDecisions` and the uniqueness refinement, not
|
|
1202
|
+
* by a hash. A test still named `registerWithoutDigest` is a leftover from when the field existed.
|
|
1203
|
+
*/
|
|
1197
1204
|
export declare const AssuranceProgramObligationRegisterSchema: z.ZodObject<{
|
|
1198
1205
|
schemaVersion: z.ZodLiteral<1>;
|
|
1199
1206
|
registerRef: z.core.$ZodBranded<z.ZodString, "AssuranceNamespacedRef", "out">;
|
|
@@ -1665,7 +1672,16 @@ export declare const AssuranceProgramImplementationStatementV2Schema: z.ZodObjec
|
|
|
1665
1672
|
schemaVersion: z.ZodLiteral<2>;
|
|
1666
1673
|
}, z.core.$strict>;
|
|
1667
1674
|
export type AssuranceProgramImplementationStatementV2 = z.infer<typeof AssuranceProgramImplementationStatementV2Schema>;
|
|
1668
|
-
/**
|
|
1675
|
+
/**
|
|
1676
|
+
* Historical source-revision-pinned program. Retained payloads remain parseable and replayable.
|
|
1677
|
+
*
|
|
1678
|
+
* This said "new authoring is forbidden by the repository pin checker" until 2026-09-01. **Nothing forbids it.** That checker was
|
|
1679
|
+
* `pnpm check:assurance-revision-pin`, removed on 2026-08-27 with the rest of the digest mechanism, and no successor exists — the
|
|
1680
|
+
* only assurance check in `package.json` is `check:assurance-control-boundary`, which is about marker source-neutrality.
|
|
1681
|
+
*
|
|
1682
|
+
* So v1 is discouraged by this comment and by nothing else. A safety claim standing on a removed mechanism is worse than no claim,
|
|
1683
|
+
* because a reader stops looking for the guard. Building one is #221; until it lands, "forbidden" means "please do not".
|
|
1684
|
+
*/
|
|
1669
1685
|
export declare const AssuranceProgramSpecificationV1Schema: z.ZodObject<{
|
|
1670
1686
|
sourceRevisions: z.ZodArray<z.ZodObject<{
|
|
1671
1687
|
sourceRevisionRef: z.core.$ZodBranded<z.ZodString, "AssuranceNamespacedRef", "out">;
|
|
@@ -1925,9 +1941,17 @@ export type AssuranceProgramSpecificationV1 = z.infer<typeof AssuranceProgramSpe
|
|
|
1925
1941
|
*
|
|
1926
1942
|
* Validation authorities currently carry one sealed basis snapshot. Accepting several authored bases would make
|
|
1927
1943
|
* every extra basis compare against the wrong inventory and could misclassify an unverified authority as tolerable
|
|
1928
|
-
* host drift. Multi-basis composition therefore requires a later schema version with basis-indexed snapshots.
|
|
1929
|
-
*
|
|
1930
|
-
*
|
|
1944
|
+
* host drift. Multi-basis composition therefore requires a later schema version with basis-indexed snapshots.
|
|
1945
|
+
*
|
|
1946
|
+
* This claimed a "repository checker" recognized v2 authoring "only through the serialized pre-v3 transition" until
|
|
1947
|
+
* 2026-09-01. There is no such checker — see the note on {@link AssuranceProgramSpecificationV1Schema}. The intent
|
|
1948
|
+
* stands and is worth keeping: after an application accepts v3, v2 should remain replayable rather than become a
|
|
1949
|
+
* second current authoring shape. It is an intent, not an enforced one (#221).
|
|
1950
|
+
*
|
|
1951
|
+
* Exactly one v2 programme exists today, `examples/wonder-todos`, and it is the only assurance programme in the
|
|
1952
|
+
* repository. (`examples/wonder-crm/specifications/src/compliance/index.ts` is a PROCESSOR REGISTER, not a
|
|
1953
|
+
* programme — its `schemaVersion: 1` belongs to `ApplicationProcessorRegisterSchema`, and a grep for the first
|
|
1954
|
+
* `schemaVersion` in a file named `compliance/` reads it as a v1 programme.)
|
|
1931
1955
|
*/
|
|
1932
1956
|
export declare const AssuranceProgramSpecificationV2Schema: z.ZodObject<{
|
|
1933
1957
|
authorityBases: z.ZodArray<z.ZodObject<{
|
|
@@ -2187,7 +2211,7 @@ export declare const AssuranceProgramSpecificationV2Schema: z.ZodObject<{
|
|
|
2187
2211
|
export type AssuranceProgramSpecificationV2 = z.infer<typeof AssuranceProgramSpecificationV2Schema>;
|
|
2188
2212
|
/**
|
|
2189
2213
|
* Current application program. It preserves the v2 single-basis authority model while replacing the overlapping
|
|
2190
|
-
* control-objective-binding array with one complete
|
|
2214
|
+
* control-objective-binding array with one complete obligation register and its program-owned review
|
|
2191
2215
|
* records. Activation and operating/evidence truth remain deliberately unrepresentable.
|
|
2192
2216
|
*/
|
|
2193
2217
|
export declare const AssuranceProgramSpecificationV3Schema: z.ZodObject<{
|