@wildo-ai/saas-specifications 1.1.2 → 1.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/esm/_core/brand/brand-asset.schemas.d.ts +4 -6
- package/dist/esm/_core/brand/brand-asset.schemas.d.ts.map +1 -1
- package/dist/esm/_core/brand/brand-asset.schemas.js +4 -12
- package/dist/esm/_core/brand/brand-asset.schemas.js.map +1 -1
- package/dist/esm/_core/brand/brand-generation.schemas.d.ts +5 -3
- package/dist/esm/_core/brand/brand-generation.schemas.d.ts.map +1 -1
- package/dist/esm/_core/brand/brand-generation.schemas.js +5 -2
- package/dist/esm/_core/brand/brand-generation.schemas.js.map +1 -1
- package/dist/esm/_core/brand/brand-snapshot.schemas.d.ts +10 -3
- package/dist/esm/_core/brand/brand-snapshot.schemas.d.ts.map +1 -1
- package/dist/esm/_core/brand/brand-snapshot.schemas.js +10 -2
- package/dist/esm/_core/brand/brand-snapshot.schemas.js.map +1 -1
- package/dist/esm/_core/build-plan/build-plan-task-graph-generation.schemas.d.ts.map +1 -1
- package/dist/esm/_core/build-plan/build-plan-task-graph-generation.schemas.js +15 -5
- package/dist/esm/_core/build-plan/build-plan-task-graph-generation.schemas.js.map +1 -1
- package/dist/esm/_core/build-plan/build-plan-task-graph-validation.d.ts +40 -3
- package/dist/esm/_core/build-plan/build-plan-task-graph-validation.d.ts.map +1 -1
- package/dist/esm/_core/build-plan/build-plan-task-graph-validation.js +85 -6
- package/dist/esm/_core/build-plan/build-plan-task-graph-validation.js.map +1 -1
- package/dist/esm/_core/business-model-lite/business-model-lite-snapshot-generation.schemas.d.ts.map +1 -1
- package/dist/esm/_core/business-model-lite/business-model-lite-snapshot-generation.schemas.js +10 -4
- package/dist/esm/_core/business-model-lite/business-model-lite-snapshot-generation.schemas.js.map +1 -1
- package/dist/esm/_core/business-model-lite/business-model-lite-snapshot-validation.d.ts +15 -0
- package/dist/esm/_core/business-model-lite/business-model-lite-snapshot-validation.d.ts.map +1 -1
- package/dist/esm/_core/business-model-lite/business-model-lite-snapshot-validation.js.map +1 -1
- package/dist/esm/_core/compliance-documents/compliance-document-candidate.schemas.d.ts +10 -0
- 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 +17 -0
- package/dist/esm/_core/compliance-documents/compliance-document-candidate.schemas.js.map +1 -1
- package/dist/esm/_core/expert-personas/expert-persona-charter.schemas.d.ts +6 -7
- package/dist/esm/_core/expert-personas/expert-persona-charter.schemas.d.ts.map +1 -1
- package/dist/esm/_core/expert-personas/expert-persona-charter.schemas.js +6 -13
- package/dist/esm/_core/expert-personas/expert-persona-charter.schemas.js.map +1 -1
- package/dist/esm/_core/expert-personas/expert-persona-validation.d.ts +0 -11
- package/dist/esm/_core/expert-personas/expert-persona-validation.d.ts.map +1 -1
- package/dist/esm/_core/expert-personas/expert-persona-validation.js +0 -19
- package/dist/esm/_core/expert-personas/expert-persona-validation.js.map +1 -1
- package/dist/esm/_core/expert-personas/expert-role-template.schemas.d.ts +1 -2
- package/dist/esm/_core/expert-personas/expert-role-template.schemas.d.ts.map +1 -1
- package/dist/esm/_core/expert-personas/expert-role-template.schemas.js +1 -2
- package/dist/esm/_core/expert-personas/expert-role-template.schemas.js.map +1 -1
- package/dist/esm/_core/feature-drafts/feature-specification-drafts-generation.schemas.d.ts.map +1 -1
- package/dist/esm/_core/feature-drafts/feature-specification-drafts-generation.schemas.js +17 -4
- package/dist/esm/_core/feature-drafts/feature-specification-drafts-generation.schemas.js.map +1 -1
- package/dist/esm/_core/index.d.ts +1 -0
- package/dist/esm/_core/index.d.ts.map +1 -1
- package/dist/esm/_core/index.js +1 -0
- package/dist/esm/_core/index.js.map +1 -1
- package/dist/esm/_core/market/market-snapshot-generation.schemas.d.ts.map +1 -1
- package/dist/esm/_core/market/market-snapshot-generation.schemas.js +5 -40
- package/dist/esm/_core/market/market-snapshot-generation.schemas.js.map +1 -1
- package/dist/esm/_core/market/market-snapshot-validation.d.ts +15 -0
- package/dist/esm/_core/market/market-snapshot-validation.d.ts.map +1 -1
- package/dist/esm/_core/market/market-snapshot-validation.js.map +1 -1
- package/dist/esm/_core/placement-plan/placement-plan-generation.schemas.d.ts.map +1 -1
- package/dist/esm/_core/placement-plan/placement-plan-generation.schemas.js +11 -5
- package/dist/esm/_core/placement-plan/placement-plan-generation.schemas.js.map +1 -1
- package/dist/esm/_core/placement-plan/placement-plan-validation.d.ts +66 -9
- package/dist/esm/_core/placement-plan/placement-plan-validation.d.ts.map +1 -1
- package/dist/esm/_core/placement-plan/placement-plan-validation.js +62 -20
- package/dist/esm/_core/placement-plan/placement-plan-validation.js.map +1 -1
- package/dist/esm/_core/placement-plan/placement-plan.schemas.d.ts +4 -1
- package/dist/esm/_core/placement-plan/placement-plan.schemas.d.ts.map +1 -1
- package/dist/esm/_core/placement-plan/placement-plan.schemas.js +4 -1
- package/dist/esm/_core/placement-plan/placement-plan.schemas.js.map +1 -1
- package/dist/esm/_core/provider-specification.schemas.d.ts +82 -0
- package/dist/esm/_core/provider-specification.schemas.d.ts.map +1 -0
- package/dist/esm/_core/provider-specification.schemas.js +144 -0
- package/dist/esm/_core/provider-specification.schemas.js.map +1 -0
- package/dist/esm/_core/requirements/requirements-snapshot-generation.schemas.d.ts.map +1 -1
- package/dist/esm/_core/requirements/requirements-snapshot-generation.schemas.js +13 -8
- package/dist/esm/_core/requirements/requirements-snapshot-generation.schemas.js.map +1 -1
- package/dist/esm/_core/requirements/requirements-snapshot-validation.d.ts +15 -0
- package/dist/esm/_core/requirements/requirements-snapshot-validation.d.ts.map +1 -1
- package/dist/esm/_core/requirements/requirements-snapshot-validation.js.map +1 -1
- package/dist/esm/_core/roadmap/roadmap-snapshot-generation.schemas.d.ts.map +1 -1
- package/dist/esm/_core/roadmap/roadmap-snapshot-generation.schemas.js +7 -2
- package/dist/esm/_core/roadmap/roadmap-snapshot-generation.schemas.js.map +1 -1
- package/dist/esm/_core/roadmap/roadmap-snapshot-validation.d.ts +15 -0
- package/dist/esm/_core/roadmap/roadmap-snapshot-validation.d.ts.map +1 -1
- package/dist/esm/_core/roadmap/roadmap-snapshot-validation.js.map +1 -1
- package/dist/esm/_core/utils/family-ref-stamping.d.ts +64 -0
- package/dist/esm/_core/utils/family-ref-stamping.d.ts.map +1 -0
- package/dist/esm/_core/utils/family-ref-stamping.js +73 -0
- package/dist/esm/_core/utils/family-ref-stamping.js.map +1 -0
- package/dist/esm/_core/vision/vision-snapshot-generation.schemas.d.ts.map +1 -1
- package/dist/esm/_core/vision/vision-snapshot-generation.schemas.js +23 -9
- package/dist/esm/_core/vision/vision-snapshot-generation.schemas.js.map +1 -1
- package/dist/esm/application-creation/application-coding-tasks.application-creation.schemas.d.ts +0 -4
- package/dist/esm/application-creation/application-coding-tasks.application-creation.schemas.d.ts.map +1 -1
- package/dist/esm/application-creation/application-document-fact-specification.application-creation.schemas.d.ts +7 -7
- package/dist/esm/application-creation/application-document-fact-specification.application-creation.schemas.d.ts.map +1 -1
- package/dist/esm/application-creation/application-document-fact-specification.application-creation.schemas.js +6 -7
- package/dist/esm/application-creation/application-document-fact-specification.application-creation.schemas.js.map +1 -1
- package/dist/esm/application-creation/application-document-release-policy-specification.application-creation.schemas.d.ts +3 -3
- package/dist/esm/application-creation/application-document-release-policy-specification.application-creation.schemas.js +3 -3
- package/dist/esm/application-creation/application-document-release-policy-specification.application-creation.schemas.js.map +1 -1
- package/dist/esm/application-creation/application-specification-family-identity.application-creation.schemas.d.ts +2 -2
- package/dist/esm/application-creation/application-specification-family-identity.application-creation.schemas.js +2 -2
- package/dist/esm/application-creation/application-specification-family-identity.application-creation.schemas.js.map +1 -1
- package/dist/esm/application-creation/journey.application-creation.schemas.d.ts +18 -6
- package/dist/esm/application-creation/journey.application-creation.schemas.d.ts.map +1 -1
- package/dist/esm/application-creation/journey.application-creation.schemas.js +18 -6
- package/dist/esm/application-creation/journey.application-creation.schemas.js.map +1 -1
- package/dist/esm/application-creation/playbooks.application-creation.schemas.d.ts +8 -23
- package/dist/esm/application-creation/playbooks.application-creation.schemas.d.ts.map +1 -1
- package/dist/esm/application-creation/playbooks.application-creation.schemas.js +57 -27
- package/dist/esm/application-creation/playbooks.application-creation.schemas.js.map +1 -1
- package/dist/esm/assurance/application-document-publication.schemas.d.ts +20 -6
- package/dist/esm/assurance/application-document-publication.schemas.d.ts.map +1 -1
- package/dist/esm/assurance/application-document-publication.schemas.js +26 -10
- package/dist/esm/assurance/application-document-publication.schemas.js.map +1 -1
- package/dist/esm/assurance/assurance-authority-basis.definitions.d.ts +72 -49
- package/dist/esm/assurance/assurance-authority-basis.definitions.d.ts.map +1 -1
- package/dist/esm/assurance/assurance-authority-basis.definitions.js +161 -60
- package/dist/esm/assurance/assurance-authority-basis.definitions.js.map +1 -1
- package/dist/esm/assurance/assurance-authority-basis.schemas.d.ts +25 -0
- package/dist/esm/assurance/assurance-authority-basis.schemas.d.ts.map +1 -1
- package/dist/esm/assurance/assurance-evidence-requirement-bodies.definitions.d.ts +36 -0
- package/dist/esm/assurance/assurance-evidence-requirement-bodies.definitions.d.ts.map +1 -0
- package/dist/esm/assurance/assurance-evidence-requirement-bodies.definitions.js +859 -0
- package/dist/esm/assurance/assurance-evidence-requirement-bodies.definitions.js.map +1 -0
- package/dist/esm/assurance/assurance-foundation.schemas.d.ts +43 -0
- package/dist/esm/assurance/assurance-foundation.schemas.d.ts.map +1 -1
- package/dist/esm/assurance/assurance-foundation.schemas.js +56 -0
- package/dist/esm/assurance/assurance-foundation.schemas.js.map +1 -1
- package/dist/esm/assurance/assurance-objective-catalog.definitions.d.ts +14 -7
- package/dist/esm/assurance/assurance-objective-catalog.definitions.d.ts.map +1 -1
- package/dist/esm/assurance/assurance-objective-catalog.definitions.js +24 -7
- package/dist/esm/assurance/assurance-objective-catalog.definitions.js.map +1 -1
- package/dist/esm/assurance/assurance-program-generation.schemas.d.ts +8 -1
- package/dist/esm/assurance/assurance-program-generation.schemas.d.ts.map +1 -1
- package/dist/esm/assurance/assurance-program-generation.schemas.js +10 -2
- package/dist/esm/assurance/assurance-program-generation.schemas.js.map +1 -1
- package/dist/esm/assurance/assurance-program.schemas.d.ts +447 -11
- package/dist/esm/assurance/assurance-program.schemas.d.ts.map +1 -1
- package/dist/esm/assurance/assurance-program.schemas.js +293 -5
- package/dist/esm/assurance/assurance-program.schemas.js.map +1 -1
- package/dist/esm/assurance/assurance-verification-requirement-bodies.definitions.d.ts +35 -0
- package/dist/esm/assurance/assurance-verification-requirement-bodies.definitions.d.ts.map +1 -0
- package/dist/esm/assurance/assurance-verification-requirement-bodies.definitions.js +999 -0
- package/dist/esm/assurance/assurance-verification-requirement-bodies.definitions.js.map +1 -0
- package/dist/esm/companion-exports.d.ts +7 -6
- package/dist/esm/companion-exports.d.ts.map +1 -1
- package/dist/esm/companion-exports.js.map +1 -1
- package/dist/esm/engine/_bootstrap.js +3 -1
- package/dist/esm/engine/_bootstrap.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 +13 -1
- package/dist/esm/engine/applications/resources/application-api-keys.resource.specification.js.map +1 -1
- package/dist/esm/engine/applications/resources/application-metadata.resource.specification.js +1 -1
- package/dist/esm/engine/applications/resources/application-metadata.resource.specification.js.map +1 -1
- package/dist/esm/engine/applications/resources/application-oauth-clients.resource.specification.d.ts +2 -0
- package/dist/esm/engine/applications/resources/application-oauth-clients.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/applications/resources/application-oauth-clients.resource.specification.js +14 -2
- package/dist/esm/engine/applications/resources/application-oauth-clients.resource.specification.js.map +1 -1
- package/dist/esm/engine/applications/resources/application-versions.resource.specification.js +9 -9
- package/dist/esm/engine/applications/resources/application-versions.resource.specification.js.map +1 -1
- package/dist/esm/engine/applications/resources/applications.resource.specification.js +1 -1
- package/dist/esm/engine/applications/resources/applications.resource.specification.js.map +1 -1
- package/dist/esm/engine/auth/resources/consumable-tokens.resource.specification.js +3 -3
- package/dist/esm/engine/auth/resources/consumable-tokens.resource.specification.js.map +1 -1
- package/dist/esm/engine/auth/resources/oauth-consent-grants.resource.specification.js +1 -1
- package/dist/esm/engine/auth/resources/oauth-consent-grants.resource.specification.js.map +1 -1
- package/dist/esm/engine/auth/resources/organization-api-keys.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/auth/resources/organization-api-keys.resource.specification.js +13 -1
- package/dist/esm/engine/auth/resources/organization-api-keys.resource.specification.js.map +1 -1
- package/dist/esm/engine/auth/resources/organization-oauth-clients.resource.specification.d.ts +2 -0
- package/dist/esm/engine/auth/resources/organization-oauth-clients.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/auth/resources/organization-oauth-clients.resource.specification.js +14 -2
- package/dist/esm/engine/auth/resources/organization-oauth-clients.resource.specification.js.map +1 -1
- package/dist/esm/engine/auth/resources/organization-provider-credentials.resource.specification.d.ts +32 -0
- package/dist/esm/engine/auth/resources/organization-provider-credentials.resource.specification.d.ts.map +1 -0
- package/dist/esm/engine/auth/resources/organization-provider-credentials.resource.specification.js +308 -0
- package/dist/esm/engine/auth/resources/organization-provider-credentials.resource.specification.js.map +1 -0
- package/dist/esm/engine/auth/resources/platform-access-grants.resource.specification.js +4 -4
- package/dist/esm/engine/auth/resources/platform-access-grants.resource.specification.js.map +1 -1
- package/dist/esm/engine/auth/resources/scim-provisioning-config.resource.specification.js +2 -2
- package/dist/esm/engine/auth/resources/scim-provisioning-config.resource.specification.js.map +1 -1
- package/dist/esm/engine/auth/resources/scim-tokens.resource.specification.js +6 -6
- package/dist/esm/engine/auth/resources/scim-tokens.resource.specification.js.map +1 -1
- package/dist/esm/engine/auth/resources/siem-delivery-dlq.resource.specification.js +9 -9
- package/dist/esm/engine/auth/resources/siem-delivery-dlq.resource.specification.js.map +1 -1
- package/dist/esm/engine/auth/resources/siem-export-config.resource.specification.js +2 -2
- package/dist/esm/engine/auth/resources/siem-export-config.resource.specification.js.map +1 -1
- package/dist/esm/engine/auth/resources/sso-config.resource.specification.d.ts +9 -25
- package/dist/esm/engine/auth/resources/sso-config.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/auth/resources/sso-config.resource.specification.js +104 -10
- package/dist/esm/engine/auth/resources/sso-config.resource.specification.js.map +1 -1
- package/dist/esm/engine/auth/resources/sso-connections.resource.specification.d.ts +0 -6
- package/dist/esm/engine/auth/resources/sso-connections.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/auth/resources/user-provider-credentials.resource.specification.d.ts +32 -0
- package/dist/esm/engine/auth/resources/user-provider-credentials.resource.specification.d.ts.map +1 -0
- package/dist/esm/engine/auth/resources/user-provider-credentials.resource.specification.js +297 -0
- package/dist/esm/engine/auth/resources/user-provider-credentials.resource.specification.js.map +1 -0
- package/dist/esm/engine/billing/resources/billing-accounts.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/billing/resources/billing-accounts.resource.specification.js +4 -3
- package/dist/esm/engine/billing/resources/billing-accounts.resource.specification.js.map +1 -1
- package/dist/esm/engine/billing/resources/credit-pools.resource.specification.js +2 -2
- package/dist/esm/engine/billing/resources/credit-pools.resource.specification.js.map +1 -1
- package/dist/esm/engine/billing/resources/invoice-refs.resource.specification.js +3 -3
- package/dist/esm/engine/billing/resources/invoice-refs.resource.specification.js.map +1 -1
- package/dist/esm/engine/billing/resources/prices.resource.specification.js +7 -7
- package/dist/esm/engine/billing/resources/prices.resource.specification.js.map +1 -1
- package/dist/esm/engine/billing/resources/products.resource.specification.js +7 -7
- package/dist/esm/engine/billing/resources/products.resource.specification.js.map +1 -1
- package/dist/esm/engine/billing/resources/promotions.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/billing/resources/promotions.resource.specification.js +14 -12
- package/dist/esm/engine/billing/resources/promotions.resource.specification.js.map +1 -1
- package/dist/esm/engine/billing/resources/referrals.resource.specification.js +7 -7
- package/dist/esm/engine/billing/resources/referrals.resource.specification.js.map +1 -1
- package/dist/esm/engine/billing/resources/subscriptions.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/billing/resources/subscriptions.resource.specification.js +6 -3
- package/dist/esm/engine/billing/resources/subscriptions.resource.specification.js.map +1 -1
- package/dist/esm/engine/billing/resources/usage-records.resource.specification.d.ts +7 -3
- package/dist/esm/engine/billing/resources/usage-records.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/billing/resources/usage-records.resource.specification.js +28 -11
- package/dist/esm/engine/billing/resources/usage-records.resource.specification.js.map +1 -1
- package/dist/esm/engine/compliance/resources/audit-logs.resource.specification.js +8 -8
- package/dist/esm/engine/compliance/resources/audit-logs.resource.specification.js.map +1 -1
- package/dist/esm/engine/engine-resource-specifications.registry.d.ts +2 -2
- package/dist/esm/engine/engine-resource-specifications.registry.d.ts.map +1 -1
- package/dist/esm/engine/engine-resource-specifications.registry.js +6 -2
- package/dist/esm/engine/engine-resource-specifications.registry.js.map +1 -1
- package/dist/esm/engine/engine-resource-sub-domain.d.ts +20 -0
- package/dist/esm/engine/engine-resource-sub-domain.d.ts.map +1 -1
- package/dist/esm/engine/engine-resource-sub-domain.js +66 -0
- package/dist/esm/engine/engine-resource-sub-domain.js.map +1 -1
- package/dist/esm/engine/errors/error-messages.specification.d.ts.map +1 -1
- package/dist/esm/engine/errors/error-messages.specification.js +14 -0
- package/dist/esm/engine/errors/error-messages.specification.js.map +1 -1
- package/dist/esm/engine/features/audit-logs.feature.specification.js +4 -4
- package/dist/esm/engine/features/audit-logs.feature.specification.js.map +1 -1
- package/dist/esm/engine/features/core-limits.feature.specifications.js +7 -7
- package/dist/esm/engine/features/core-limits.feature.specifications.js.map +1 -1
- package/dist/esm/engine/features/resources/application-features.resource.specification.js +3 -3
- package/dist/esm/engine/features/resources/application-features.resource.specification.js.map +1 -1
- package/dist/esm/engine/features/resources/organization-features.resource.specification.js +3 -3
- package/dist/esm/engine/features/resources/organization-features.resource.specification.js.map +1 -1
- package/dist/esm/engine/features/resources/user-features.resource.specification.js +3 -3
- package/dist/esm/engine/features/resources/user-features.resource.specification.js.map +1 -1
- package/dist/esm/engine/files/resources/files.resource.specification.js +10 -10
- 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.js +11 -11
- package/dist/esm/engine/flows-actors/resources/a2a-push-delivery-log.resource.specification.js.map +1 -1
- package/dist/esm/engine/flows-actors/resources/a2a-token-budget-state.resource.specification.js +4 -4
- package/dist/esm/engine/flows-actors/resources/a2a-token-budget-state.resource.specification.js.map +1 -1
- package/dist/esm/engine/flows-actors/resources/flow-actor-executions.resource.specification.js +2 -2
- package/dist/esm/engine/flows-actors/resources/flow-actor-executions.resource.specification.js.map +1 -1
- package/dist/esm/engine/frontend-components/app/app-layout-connected-accounts-settings.frontend-component.specification.d.ts +5 -0
- package/dist/esm/engine/frontend-components/app/app-layout-connected-accounts-settings.frontend-component.specification.d.ts.map +1 -0
- package/dist/esm/engine/frontend-components/app/app-layout-connected-accounts-settings.frontend-component.specification.js +81 -0
- package/dist/esm/engine/frontend-components/app/app-layout-connected-accounts-settings.frontend-component.specification.js.map +1 -0
- package/dist/esm/engine/frontend-components/app/public-layout-file-upload-grant.frontend-component.specification.d.ts +4 -0
- package/dist/esm/engine/frontend-components/app/public-layout-file-upload-grant.frontend-component.specification.d.ts.map +1 -0
- package/dist/esm/engine/frontend-components/app/public-layout-file-upload-grant.frontend-component.specification.js +22 -0
- package/dist/esm/engine/frontend-components/app/public-layout-file-upload-grant.frontend-component.specification.js.map +1 -0
- package/dist/esm/engine/frontend-components/billing/billing-plan-change-preview.frontend-component.specification.d.ts +0 -4
- package/dist/esm/engine/frontend-components/billing/billing-plan-change-preview.frontend-component.specification.d.ts.map +0 -1
- package/dist/esm/engine/frontend-components/billing/billing-plan-change-preview.frontend-component.specification.js +0 -21
- package/dist/esm/engine/frontend-components/billing/billing-plan-change-preview.frontend-component.specification.js.map +0 -1
- package/dist/esm/engine/frontend-components/billing/billing-promotion-code-input.frontend-component.specification.d.ts +0 -4
- package/dist/esm/engine/frontend-components/billing/billing-promotion-code-input.frontend-component.specification.d.ts.map +0 -1
- package/dist/esm/engine/frontend-components/billing/billing-promotion-code-input.frontend-component.specification.js +0 -21
- package/dist/esm/engine/frontend-components/billing/billing-promotion-code-input.frontend-component.specification.js.map +0 -1
- package/dist/esm/engine/frontend-components/index.d.ts +0 -2
- package/dist/esm/engine/frontend-components/index.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/index.js +4 -6
- package/dist/esm/engine/frontend-components/index.js.map +1 -1
- package/dist/esm/engine/guidance/resources/guidance-state.resource.specification.js +12 -12
- package/dist/esm/engine/guidance/resources/guidance-state.resource.specification.js.map +1 -1
- package/dist/esm/engine/guidance/resources/lifecycle-state.resource.specification.js +9 -9
- package/dist/esm/engine/guidance/resources/lifecycle-state.resource.specification.js.map +1 -1
- package/dist/esm/engine/guidance/resources/progression-state.resource.specification.d.ts +8 -0
- package/dist/esm/engine/guidance/resources/progression-state.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/guidance/resources/progression-state.resource.specification.js +6 -6
- package/dist/esm/engine/guidance/resources/progression-state.resource.specification.js.map +1 -1
- package/dist/esm/engine/index.d.ts +1 -0
- package/dist/esm/engine/index.d.ts.map +1 -1
- package/dist/esm/engine/index.js +1 -0
- package/dist/esm/engine/index.js.map +1 -1
- package/dist/esm/engine/infrastructure/resources/data-seed-runs.resource.specification.js +17 -17
- package/dist/esm/engine/infrastructure/resources/data-seed-runs.resource.specification.js.map +1 -1
- package/dist/esm/engine/infrastructure/resources/external-data-pipeline-states.resource.specification.js +7 -7
- package/dist/esm/engine/infrastructure/resources/external-data-pipeline-states.resource.specification.js.map +1 -1
- package/dist/esm/engine/infrastructure/resources/job-executions.resource.specification.js +8 -8
- package/dist/esm/engine/infrastructure/resources/job-executions.resource.specification.js.map +1 -1
- package/dist/esm/engine/infrastructure/resources/job-payload-storage.resource.specification.d.ts +7 -2
- package/dist/esm/engine/infrastructure/resources/job-payload-storage.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/infrastructure/resources/job-payload-storage.resource.specification.js +10 -5
- package/dist/esm/engine/infrastructure/resources/job-payload-storage.resource.specification.js.map +1 -1
- package/dist/esm/engine/notifications/resources/m2m-webhook-delivery-log.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/notifications/resources/m2m-webhook-delivery-log.resource.specification.js +20 -15
- package/dist/esm/engine/notifications/resources/m2m-webhook-delivery-log.resource.specification.js.map +1 -1
- package/dist/esm/engine/notifications/resources/notification-badges.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/notifications/resources/notification-badges.resource.specification.js +11 -10
- package/dist/esm/engine/notifications/resources/notification-badges.resource.specification.js.map +1 -1
- package/dist/esm/engine/notifications/resources/webhook-config.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/notifications/resources/webhook-config.resource.specification.js +29 -6
- package/dist/esm/engine/notifications/resources/webhook-config.resource.specification.js.map +1 -1
- package/dist/esm/engine/organizations/resources/organization-members.resource.specification.js +9 -9
- package/dist/esm/engine/organizations/resources/organization-members.resource.specification.js.map +1 -1
- package/dist/esm/engine/organizations/resources/organization-notifications.resource.specification.js +3 -3
- package/dist/esm/engine/organizations/resources/organization-notifications.resource.specification.js.map +1 -1
- package/dist/esm/engine/organizations/resources/organization-preferences.resource.specification.js +4 -4
- package/dist/esm/engine/organizations/resources/organization-preferences.resource.specification.js.map +1 -1
- package/dist/esm/engine/organizations/resources/organization-profiles.resource.specification.js +2 -2
- package/dist/esm/engine/organizations/resources/organization-profiles.resource.specification.js.map +1 -1
- package/dist/esm/engine/organizations/resources/organization-unit-members.resource.specification.js +1 -1
- package/dist/esm/engine/organizations/resources/organization-unit-members.resource.specification.js.map +1 -1
- package/dist/esm/engine/organizations/resources/organizations.resource.specification.js +7 -7
- package/dist/esm/engine/organizations/resources/organizations.resource.specification.js.map +1 -1
- package/dist/esm/engine/providers/_engine-provider-shared.d.ts +9 -0
- package/dist/esm/engine/providers/_engine-provider-shared.d.ts.map +1 -0
- package/dist/esm/engine/providers/_engine-provider-shared.js +19 -0
- package/dist/esm/engine/providers/_engine-provider-shared.js.map +1 -0
- package/dist/esm/engine/providers/anthropic.provider.specification.d.ts +7 -0
- package/dist/esm/engine/providers/anthropic.provider.specification.d.ts.map +1 -0
- package/dist/esm/engine/providers/anthropic.provider.specification.js +33 -0
- package/dist/esm/engine/providers/anthropic.provider.specification.js.map +1 -0
- package/dist/esm/engine/providers/apple.provider.specification.d.ts +7 -0
- package/dist/esm/engine/providers/apple.provider.specification.d.ts.map +1 -0
- package/dist/esm/engine/providers/apple.provider.specification.js +35 -0
- package/dist/esm/engine/providers/apple.provider.specification.js.map +1 -0
- package/dist/esm/engine/providers/email-preview.provider.specification.d.ts +7 -0
- package/dist/esm/engine/providers/email-preview.provider.specification.d.ts.map +1 -0
- package/dist/esm/engine/providers/email-preview.provider.specification.js +31 -0
- package/dist/esm/engine/providers/email-preview.provider.specification.js.map +1 -0
- package/dist/esm/engine/providers/github.provider.specification.d.ts +7 -0
- package/dist/esm/engine/providers/github.provider.specification.d.ts.map +1 -0
- package/dist/esm/engine/providers/github.provider.specification.js +30 -0
- package/dist/esm/engine/providers/github.provider.specification.js.map +1 -0
- package/dist/esm/engine/providers/google.provider.specification.d.ts +7 -0
- package/dist/esm/engine/providers/google.provider.specification.d.ts.map +1 -0
- package/dist/esm/engine/providers/google.provider.specification.js +34 -0
- package/dist/esm/engine/providers/google.provider.specification.js.map +1 -0
- package/dist/esm/engine/providers/grok.provider.specification.d.ts +7 -0
- package/dist/esm/engine/providers/grok.provider.specification.d.ts.map +1 -0
- package/dist/esm/engine/providers/grok.provider.specification.js +30 -0
- package/dist/esm/engine/providers/grok.provider.specification.js.map +1 -0
- package/dist/esm/engine/providers/index.d.ts +23 -0
- package/dist/esm/engine/providers/index.d.ts.map +1 -0
- package/dist/esm/engine/providers/index.js +37 -0
- package/dist/esm/engine/providers/index.js.map +1 -0
- package/dist/esm/engine/providers/microsoft.provider.specification.d.ts +7 -0
- package/dist/esm/engine/providers/microsoft.provider.specification.d.ts.map +1 -0
- package/dist/esm/engine/providers/microsoft.provider.specification.js +30 -0
- package/dist/esm/engine/providers/microsoft.provider.specification.js.map +1 -0
- package/dist/esm/engine/providers/mistral.provider.specification.d.ts +7 -0
- package/dist/esm/engine/providers/mistral.provider.specification.d.ts.map +1 -0
- package/dist/esm/engine/providers/mistral.provider.specification.js +33 -0
- package/dist/esm/engine/providers/mistral.provider.specification.js.map +1 -0
- package/dist/esm/engine/providers/openai.provider.specification.d.ts +7 -0
- package/dist/esm/engine/providers/openai.provider.specification.d.ts.map +1 -0
- package/dist/esm/engine/providers/openai.provider.specification.js +43 -0
- package/dist/esm/engine/providers/openai.provider.specification.js.map +1 -0
- package/dist/esm/engine/providers/opencode.provider.specification.d.ts +7 -0
- package/dist/esm/engine/providers/opencode.provider.specification.d.ts.map +1 -0
- package/dist/esm/engine/providers/opencode.provider.specification.js +50 -0
- package/dist/esm/engine/providers/opencode.provider.specification.js.map +1 -0
- package/dist/esm/engine/providers/perplexity.provider.specification.d.ts +7 -0
- package/dist/esm/engine/providers/perplexity.provider.specification.d.ts.map +1 -0
- package/dist/esm/engine/providers/perplexity.provider.specification.js +30 -0
- package/dist/esm/engine/providers/perplexity.provider.specification.js.map +1 -0
- package/dist/esm/engine/providers/resend.provider.specification.d.ts +7 -0
- package/dist/esm/engine/providers/resend.provider.specification.d.ts.map +1 -0
- package/dist/esm/engine/providers/resend.provider.specification.js +33 -0
- package/dist/esm/engine/providers/resend.provider.specification.js.map +1 -0
- package/dist/esm/engine/providers/stripe.provider.specification.d.ts +7 -0
- package/dist/esm/engine/providers/stripe.provider.specification.d.ts.map +1 -0
- package/dist/esm/engine/providers/stripe.provider.specification.js +35 -0
- package/dist/esm/engine/providers/stripe.provider.specification.js.map +1 -0
- package/dist/esm/engine/providers/twilio.provider.specification.d.ts +7 -0
- package/dist/esm/engine/providers/twilio.provider.specification.d.ts.map +1 -0
- package/dist/esm/engine/providers/twilio.provider.specification.js +33 -0
- package/dist/esm/engine/providers/twilio.provider.specification.js.map +1 -0
- package/dist/esm/engine/users/resources/anonymous-users.resource.specification.js +7 -7
- package/dist/esm/engine/users/resources/anonymous-users.resource.specification.js.map +1 -1
- package/dist/esm/engine/users/resources/inbound-contacts.resource.specification.js +9 -9
- package/dist/esm/engine/users/resources/inbound-contacts.resource.specification.js.map +1 -1
- package/dist/esm/engine/users/resources/user-credentials.resource.specification.js +2 -2
- package/dist/esm/engine/users/resources/user-credentials.resource.specification.js.map +1 -1
- package/dist/esm/engine/users/resources/user-identity-links.resource.specification.js +8 -8
- package/dist/esm/engine/users/resources/user-identity-links.resource.specification.js.map +1 -1
- package/dist/esm/engine/users/resources/user-preferences.resource.specification.d.ts +4 -4
- package/dist/esm/engine/users/resources/user-preferences.resource.specification.js +4 -4
- package/dist/esm/engine/users/resources/user-preferences.resource.specification.js.map +1 -1
- package/dist/esm/engine/users/resources/user-profiles.resource.specification.js +2 -2
- package/dist/esm/engine/users/resources/user-profiles.resource.specification.js.map +1 -1
- package/dist/esm/engine/users/resources/user-self-preferences.resource.specification.d.ts +4 -4
- package/dist/esm/engine/users/resources/user-self-preferences.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/users/resources/user-self-preferences.resource.specification.js +13 -11
- package/dist/esm/engine/users/resources/user-self-preferences.resource.specification.js.map +1 -1
- package/dist/esm/engine/users/resources/user-self-profiles.resource.specification.js +1 -1
- package/dist/esm/engine/users/resources/user-self-profiles.resource.specification.js.map +1 -1
- package/dist/esm/engine/users/resources/user-self.resource.specification.js +8 -8
- 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 +93 -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.map +1 -1
- package/dist/esm/technical-documentation/engine-documentation-specification-catalog.companion.js +95 -45
- package/dist/esm/technical-documentation/engine-documentation-specification-catalog.companion.js.map +1 -1
- package/dist/esm/technical-documentation/technical-documentation-units.schemas.d.ts +37 -1
- package/dist/esm/technical-documentation/technical-documentation-units.schemas.d.ts.map +1 -1
- package/dist/esm/technical-documentation/technical-documentation-units.schemas.js +36 -0
- package/dist/esm/technical-documentation/technical-documentation-units.schemas.js.map +1 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +8 -8
- package/dist/assurance/external-framework-mapping.json +0 -980
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"roadmap-snapshot-validation.js","sourceRoot":"","sources":["../../../../../src/_core/roadmap/roadmap-snapshot-validation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,4CAA4C,CAAC;AAG3E,OAAO,EAAE,yBAAyB,EAAE,MAAM,8BAA8B,CAAC;AAGzE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiCG;AACH,MAAM,CAAN,IAAY,wBA8CX;AA9CD,WAAY,wBAAwB;IAClC;;;;;OAKG;IACH,qEAAyC,CAAA;IACzC;;;OAGG;IACH,2DAA+B,CAAA;IAC/B;;;;OAIG;IACH,qEAAyC,CAAA;IACzC;;;;;;;;OAQG;IACH,uEAA2C,CAAA;IAC3C,6DAA6D;IAC7D,mDAAuB,CAAA;IACvB,yFAAyF;IACzF,6DAAiC,CAAA;IACjC;;;;;OAKG;IACH,+EAAmD,CAAA;IACnD;;;;OAIG;IACH,2FAA+D,CAAA;AACjE,CAAC,EA9CW,wBAAwB,KAAxB,wBAAwB,QA8CnC;AAED,MAAM,CAAN,IAAY,4BAGX;AAHD,WAAY,4BAA4B;IACtC,+CAAe,CAAA;IACf,6CAAa,CAAA;AACf,CAAC,EAHW,4BAA4B,KAA5B,4BAA4B,QAGvC;AAmCD;;;;GAIG;AACH,MAAM,sBAAsB,GAAkC;IAC5D,CAAC,aAAa,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,QAAQ,EAAE,4BAA4B,CAAC,KAAK;iBAC7C,CAAC,CAAC;YACL,CAAC,CAAC,CAAC;QACL,CAAC;IACH,CAAC,CAAC,CAAC;AACL,CAAC;AACD,yDAAyD","sourcesContent":["import { ReviewCadence } from '../market/market-authored-metadata.schemas';\nimport type { RoadmapAuthoredMetadata } from './roadmap-authored-metadata.schemas';\nimport type { RoadmapPhaseConfig } from './roadmap-phase.schemas';\nimport { ROADMAP_PHASE_REF_PATTERN } from './roadmap-references.schemas';\nimport type { RoadmapSnapshot } from './roadmap-snapshot.schemas';\n\n/**\n * @wildo_source:part:start roadmap.snapshot.validation facet:layer:specification facet:family:roadmap\n *\n * Authoring-consistency validator for an assembled `RoadmapSnapshot`.\n *\n * The function is a **pure**, **typed** graph walker over the snapshot —\n * no Zod introspection, no registry access, no I/O (the `_core` validator\n * convention shared with `validateMarketSnapshot` / `validateVisionSnapshot`\n * / `validateRequirementsSnapshot` / `validateAssertionSpecificationSnapshot`).\n * Zod already enforces structural validity (ref formats at parse time);\n * this walker adds the cross-entity + completeness checks Zod cannot\n * express, the defence-in-depth ref-format check for type-asserted\n * fixtures that bypass parsing, and the fail-soft cross-family\n * requirement / success-criterion ref resolution.\n *\n * Rule table — 8 kinds (scaffold depth, Phase J1 — deeper roadmap quality\n * / timeline / dependency analysis is Phase J2):\n *\n * | Kind | Severity | Trigger |\n * |-------------------------------|----------|--------------------------------------------------------------------------------|\n * | `INVALID_REF_FORMAT` | ERROR | A phase ref fails the shared pattern (single source of truth with the Zod schema). Defence in depth for type-asserted fixtures. |\n * | `DUPLICATE_REF` | ERROR | Two phases share a ref — the collection silently loses one entity to last-wins indexing. |\n * | `DUPLICATE_SEQUENCE` | WARN | Two phases share a `sequence` — the roadmap order between them is ambiguous. WARN (the phases are still valid; the ordering is just under-specified). |\n * | `DUPLICATE_CROSS_REF` | WARN | The same deliver-ref is listed more than once on ONE phase's deliver-list — the repeat is noise the catalog silently dedupes (or double-counts in coverage). Intra-snapshot, so it runs UNCONDITIONALLY (no external set needed) — each deliver-list is its own namespace. |\n * | `NO_PHASES` | WARN | `phases` empty — the roadmap plans no delivery. |\n * | `STALE_AUTHORED` | WARN | Any phase's `authored.lastAuthoredAt + reviewCadence < now`. No check when `reviewCadence` is undefined or `AS_NEEDED`. |\n * | `UNKNOWN_REQUIREMENT_REF` | ERROR | A `deliversRequirementRefs` entry does not resolve in `options.availableRequirementRefs`. SKIPPED (fail-soft) when no set is passed — the families are decoupled and the catalog resolves refs. |\n * | `UNKNOWN_SUCCESS_CRITERION_REF` | ERROR | A `deliversSuccessCriterionRefs` entry does not resolve in `options.availableSuccessCriterionRefs`. SKIPPED (fail-soft) when no set is passed. |\n *\n * Severity is a TS enum (project rule — enums over literal unions). The\n * validator never mutates the snapshot. Issue ordering is detector-order\n * then walk-order — NOT a stable contract; callers group/sort by `kind` +\n * `severity` themselves.\n */\nexport enum RoadmapSnapshotIssueKind {\n /**\n * A phase ref violates its kebab-case prefix contract. The Zod schema\n * rejects this at parse time; the detector remains as defence in depth\n * for callers that bypass parsing (tests building snapshots with\n * type-asserted fixtures). ERROR.\n */\n INVALID_REF_FORMAT = 'invalid_ref_format',\n /**\n * Two phases share a ref. The collection is addressed by ref\n * downstream, so a duplicate silently drops one phase. ERROR.\n */\n DUPLICATE_REF = 'duplicate_ref',\n /**\n * Two phases share a `sequence`. The ordering between them is ambiguous\n * (consumers sort by `sequence`), but no data is lost — WARN, not ERROR.\n * Give each phase a distinct sequence.\n */\n DUPLICATE_SEQUENCE = 'duplicate_sequence',\n /**\n * The same requirement / success-criterion ref appears more than once on\n * ONE phase's deliver-list. The repeat carries no meaning — the catalog\n * dedupes it (or double-counts it in coverage). WARN, not ERROR: the\n * phase is still valid, the authoring is just untidy. Runs\n * unconditionally (intra-snapshot, needs no external set); each\n * deliver-list is its own namespace, so the same string appearing once\n * in each of the two lists is NOT a duplicate.\n */\n DUPLICATE_CROSS_REF = 'duplicate_cross_ref',\n /** `phases` empty — the roadmap plans no delivery (WARN). */\n NO_PHASES = 'no_phases',\n /** `lastAuthoredAt + reviewCadence < now` (WARN — market/vision/requirements parity). */\n STALE_AUTHORED = 'stale_authored',\n /**\n * A `deliversRequirementRefs` entry does not resolve against the\n * supplied requirement-ref set — a dangling cross-family reference.\n * ERROR when a set is supplied; the whole check is SKIPPED (fail-soft)\n * when it is not.\n */\n UNKNOWN_REQUIREMENT_REF = 'unknown_requirement_ref',\n /**\n * A `deliversSuccessCriterionRefs` entry does not resolve against the\n * supplied success-criterion-ref set. ERROR when a set is supplied;\n * SKIPPED (fail-soft) when it is not.\n */\n UNKNOWN_SUCCESS_CRITERION_REF = 'unknown_success_criterion_ref',\n}\n\nexport enum RoadmapSnapshotIssueSeverity {\n ERROR = 'error',\n WARN = 'warn',\n}\n\nexport interface RoadmapSnapshotIssue {\n kind: RoadmapSnapshotIssueKind;\n /** Dotted path inside the snapshot (e.g. `'phases[2].ref'`). */\n path: string;\n message: string;\n severity: RoadmapSnapshotIssueSeverity;\n}\n\nexport interface RoadmapSnapshotValidationResult {\n /** `true` iff no issue has severity `ERROR`. */\n ok: boolean;\n issues: RoadmapSnapshotIssue[];\n}\n\nexport interface ValidateRoadmapSnapshotOptions {\n /** Override \"now\" for `STALE_AUTHORED` checks (test affordance). Defaults to `new Date()`. */\n now?: Date;\n /**\n * Resolvable functional-requirement refs. When supplied, every\n * `deliversRequirementRefs` entry not in the set is reported as\n * `UNKNOWN_REQUIREMENT_REF`. When omitted, the check is skipped entirely\n * (fail-soft — the roadmap family is decoupled from the requirements\n * family; the catalog owns resolution).\n */\n availableRequirementRefs?: ReadonlySet<string>;\n /**\n * Resolvable vision success-criterion refs. Same skip-when-omitted\n * semantics as `availableRequirementRefs`, reported as\n * `UNKNOWN_SUCCESS_CRITERION_REF`.\n */\n availableSuccessCriterionRefs?: ReadonlySet<string>;\n}\n\n/**\n * Days-per-cadence mapping, mirrored from the market / vision /\n * requirements / assertions validators (module-local there too — a shared\n * promotion is part of the deferred authored-metadata generalization).\n */\nconst REVIEW_CADENCE_TO_DAYS: Record<ReviewCadence, number> = {\n [ReviewCadence.WEEKLY]: 7,\n [ReviewCadence.MONTHLY]: 31,\n [ReviewCadence.QUARTERLY]: 92,\n [ReviewCadence.YEARLY]: 366,\n [ReviewCadence.AS_NEEDED]: Number.POSITIVE_INFINITY,\n};\n\nexport function validateRoadmapSnapshot(\n snapshot: RoadmapSnapshot,\n options?: ValidateRoadmapSnapshotOptions,\n): RoadmapSnapshotValidationResult {\n const issues: RoadmapSnapshotIssue[] = [];\n\n detectInvalidRefFormats(snapshot, issues);\n detectDuplicateRefs(snapshot, issues);\n detectDuplicateSequences(snapshot, issues);\n detectDuplicateCrossRefs(snapshot, issues);\n detectIncompleteness(snapshot, issues);\n detectStaleAuthored(snapshot, options?.now ?? new Date(), issues);\n detectUnknownCrossRefs(snapshot, options, issues);\n\n const ok = issues.every(\n issue => issue.severity !== RoadmapSnapshotIssueSeverity.ERROR,\n );\n return { ok, issues };\n}\n\n// ────────────────────────────────────────────────────────────────────\n// Detectors — one per rule, kept small and independently testable.\n// ────────────────────────────────────────────────────────────────────\n\nfunction detectInvalidRefFormats(\n snapshot: RoadmapSnapshot,\n issues: RoadmapSnapshotIssue[],\n): void {\n snapshot.phases.forEach((entry, index) => {\n if (ROADMAP_PHASE_REF_PATTERN.test(entry.ref)) return;\n issues.push({\n kind: RoadmapSnapshotIssueKind.INVALID_REF_FORMAT,\n path: `phases[${index}].ref`,\n message: `Roadmap-phase ref \"${entry.ref}\" is not kebab-case with the \"roadmap-phase-\" prefix.`,\n severity: RoadmapSnapshotIssueSeverity.ERROR,\n });\n });\n}\n\nfunction detectDuplicateRefs(\n snapshot: RoadmapSnapshot,\n issues: RoadmapSnapshotIssue[],\n): void {\n const seen = new Set<string>();\n snapshot.phases.forEach((entry, index) => {\n if (!seen.has(entry.ref)) {\n seen.add(entry.ref);\n return;\n }\n issues.push({\n kind: RoadmapSnapshotIssueKind.DUPLICATE_REF,\n path: `phases[${index}].ref`,\n message: `Duplicate ref \"${entry.ref}\" in phases — refs must be unique; the collection is addressed by ref downstream.`,\n severity: RoadmapSnapshotIssueSeverity.ERROR,\n });\n });\n}\n\nfunction detectDuplicateSequences(\n snapshot: RoadmapSnapshot,\n issues: RoadmapSnapshotIssue[],\n): void {\n const seen = new Set<number>();\n snapshot.phases.forEach((entry, index) => {\n if (!seen.has(entry.sequence)) {\n seen.add(entry.sequence);\n return;\n }\n issues.push({\n kind: RoadmapSnapshotIssueKind.DUPLICATE_SEQUENCE,\n path: `phases[${index}].sequence`,\n message: `Duplicate sequence ${entry.sequence} on phase \"${entry.ref}\" — two phases share an ordering key, so the roadmap order between them is ambiguous. Give each phase a distinct sequence.`,\n severity: RoadmapSnapshotIssueSeverity.WARN,\n });\n });\n}\n\nfunction detectDuplicateCrossRefs(\n snapshot: RoadmapSnapshot,\n issues: RoadmapSnapshotIssue[],\n): void {\n const checkList = (\n refs: readonly string[] | undefined,\n entry: RoadmapPhaseConfig,\n path: string,\n ): void => {\n if (refs === undefined) return;\n const seen = new Set<string>();\n refs.forEach((ref, refIndex) => {\n if (!seen.has(ref)) {\n seen.add(ref);\n return;\n }\n issues.push({\n kind: RoadmapSnapshotIssueKind.DUPLICATE_CROSS_REF,\n path: `${path}[${refIndex}]`,\n message: `Deliver-ref \"${ref}\" is listed more than once on phase \"${entry.ref}\" (${path}). Remove the duplicate.`,\n severity: RoadmapSnapshotIssueSeverity.WARN,\n });\n });\n };\n\n snapshot.phases.forEach((entry, index) => {\n checkList(entry.deliversRequirementRefs, entry, `phases[${index}].deliversRequirementRefs`);\n checkList(\n entry.deliversSuccessCriterionRefs,\n entry,\n `phases[${index}].deliversSuccessCriterionRefs`,\n );\n });\n}\n\nfunction detectIncompleteness(\n snapshot: RoadmapSnapshot,\n issues: RoadmapSnapshotIssue[],\n): void {\n if (snapshot.phases.length === 0) {\n issues.push({\n kind: RoadmapSnapshotIssueKind.NO_PHASES,\n path: 'phases',\n message: 'Roadmap plans no phases — it describes no delivery of the product.',\n severity: RoadmapSnapshotIssueSeverity.WARN,\n });\n }\n}\n\nfunction detectStaleAuthored(\n snapshot: RoadmapSnapshot,\n now: Date,\n issues: RoadmapSnapshotIssue[],\n): void {\n const checkOne = (authored: RoadmapAuthoredMetadata | undefined, path: string): void => {\n if (authored?.reviewCadence === undefined) return;\n const days = REVIEW_CADENCE_TO_DAYS[authored.reviewCadence];\n if (!Number.isFinite(days)) return;\n const lastAuthored = new Date(authored.lastAuthoredAt).getTime();\n if (Number.isNaN(lastAuthored)) return;\n const ageDays = (now.getTime() - lastAuthored) / (24 * 60 * 60 * 1000);\n if (ageDays <= days) return;\n issues.push({\n kind: RoadmapSnapshotIssueKind.STALE_AUTHORED,\n path,\n message: `Roadmap phase at \"${path}\" is ${Math.floor(ageDays)} days old (cadence ${authored.reviewCadence} ⇒ ${days}d). Re-author or remove the cadence.`,\n severity: RoadmapSnapshotIssueSeverity.WARN,\n });\n };\n\n snapshot.phases.forEach((entry, index) =>\n checkOne(entry.authored, `phases[${index}].authored`),\n );\n}\n\nfunction detectUnknownCrossRefs(\n snapshot: RoadmapSnapshot,\n options: ValidateRoadmapSnapshotOptions | undefined,\n issues: RoadmapSnapshotIssue[],\n): void {\n snapshot.phases.forEach((entry, index) => {\n if (options?.availableRequirementRefs !== undefined) {\n entry.deliversRequirementRefs?.forEach((reqRef, refIndex) => {\n if (options.availableRequirementRefs!.has(reqRef)) return;\n issues.push({\n kind: RoadmapSnapshotIssueKind.UNKNOWN_REQUIREMENT_REF,\n path: `phases[${index}].deliversRequirementRefs[${refIndex}]`,\n message: `Requirement ref \"${reqRef}\" on phase \"${entry.ref}\" does not resolve in the supplied requirement-ref set.`,\n severity: RoadmapSnapshotIssueSeverity.ERROR,\n });\n });\n }\n if (options?.availableSuccessCriterionRefs !== undefined) {\n entry.deliversSuccessCriterionRefs?.forEach((scRef, refIndex) => {\n if (options.availableSuccessCriterionRefs!.has(scRef)) return;\n issues.push({\n kind: RoadmapSnapshotIssueKind.UNKNOWN_SUCCESS_CRITERION_REF,\n path: `phases[${index}].deliversSuccessCriterionRefs[${refIndex}]`,\n message: `Success-criterion ref \"${scRef}\" on phase \"${entry.ref}\" does not resolve in the supplied success-criterion-ref set.`,\n severity: RoadmapSnapshotIssueSeverity.ERROR,\n });\n });\n }\n });\n}\n/** @wildo_source:part:end roadmap.snapshot.validation */\n"]}
|
|
1
|
+
{"version":3,"file":"roadmap-snapshot-validation.js","sourceRoot":"","sources":["../../../../../src/_core/roadmap/roadmap-snapshot-validation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,4CAA4C,CAAC;AAG3E,OAAO,EAAE,yBAAyB,EAAE,MAAM,8BAA8B,CAAC;AAGzE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiCG;AACH,MAAM,CAAN,IAAY,wBA8CX;AA9CD,WAAY,wBAAwB;IAClC;;;;;OAKG;IACH,qEAAyC,CAAA;IACzC;;;OAGG;IACH,2DAA+B,CAAA;IAC/B;;;;OAIG;IACH,qEAAyC,CAAA;IACzC;;;;;;;;OAQG;IACH,uEAA2C,CAAA;IAC3C,6DAA6D;IAC7D,mDAAuB,CAAA;IACvB,yFAAyF;IACzF,6DAAiC,CAAA;IACjC;;;;;OAKG;IACH,+EAAmD,CAAA;IACnD;;;;OAIG;IACH,2FAA+D,CAAA;AACjE,CAAC,EA9CW,wBAAwB,KAAxB,wBAAwB,QA8CnC;AAED,MAAM,CAAN,IAAY,4BAGX;AAHD,WAAY,4BAA4B;IACtC,+CAAe,CAAA;IACf,6CAAa,CAAA;AACf,CAAC,EAHW,4BAA4B,KAA5B,4BAA4B,QAGvC;AAkDD;;;;GAIG;AACH,MAAM,sBAAsB,GAAkC;IAC5D,CAAC,aAAa,CAAC,MAAM,CAAC,EAAE,CAAC;IACzB,CAAC,aAAa,CAAC,OAAO,CAAC,EAAE,EAAE;IAC3B,CAAC,aAAa,CAAC,SAAS,CAAC,EAAE,EAAE;IAC7B,CAAC,a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ent":["import { ReviewCadence } from '../market/market-authored-metadata.schemas';\nimport type { RoadmapAuthoredMetadata } from './roadmap-authored-metadata.schemas';\nimport type { RoadmapPhaseConfig } from './roadmap-phase.schemas';\nimport { ROADMAP_PHASE_REF_PATTERN } from './roadmap-references.schemas';\nimport type { RoadmapSnapshot } from './roadmap-snapshot.schemas';\n\n/**\n * @wildo_source:part:start roadmap.snapshot.validation facet:layer:specification facet:family:roadmap\n *\n * Authoring-consistency validator for an assembled `RoadmapSnapshot`.\n *\n * The function is a **pure**, **typed** graph walker over the snapshot —\n * no Zod introspection, no registry access, no I/O (the `_core` validator\n * convention shared with `validateMarketSnapshot` / `validateVisionSnapshot`\n * / `validateRequirementsSnapshot` / `validateAssertionSpecificationSnapshot`).\n * Zod already enforces structural validity (ref formats at parse time);\n * this walker adds the cross-entity + completeness checks Zod cannot\n * express, the defence-in-depth ref-format check for type-asserted\n * fixtures that bypass parsing, and the fail-soft cross-family\n * requirement / success-criterion ref resolution.\n *\n * Rule table — 8 kinds (scaffold depth, Phase J1 — deeper roadmap quality\n * / timeline / dependency analysis is Phase J2):\n *\n * | Kind | Severity | Trigger |\n * |-------------------------------|----------|--------------------------------------------------------------------------------|\n * | `INVALID_REF_FORMAT` | ERROR | A phase ref fails the shared pattern (single source of truth with the Zod schema). Defence in depth for type-asserted fixtures. |\n * | `DUPLICATE_REF` | ERROR | Two phases share a ref — the collection silently loses one entity to last-wins indexing. |\n * | `DUPLICATE_SEQUENCE` | WARN | Two phases share a `sequence` — the roadmap order between them is ambiguous. WARN (the phases are still valid; the ordering is just under-specified). |\n * | `DUPLICATE_CROSS_REF` | WARN | The same deliver-ref is listed more than once on ONE phase's deliver-list — the repeat is noise the catalog silently dedupes (or double-counts in coverage). Intra-snapshot, so it runs UNCONDITIONALLY (no external set needed) — each deliver-list is its own namespace. |\n * | `NO_PHASES` | WARN | `phases` empty — the roadmap plans no delivery. |\n * | `STALE_AUTHORED` | WARN | Any phase's `authored.lastAuthoredAt + reviewCadence < now`. No check when `reviewCadence` is undefined or `AS_NEEDED`. |\n * | `UNKNOWN_REQUIREMENT_REF` | ERROR | A `deliversRequirementRefs` entry does not resolve in `options.availableRequirementRefs`. SKIPPED (fail-soft) when no set is passed — the families are decoupled and the catalog resolves refs. |\n * | `UNKNOWN_SUCCESS_CRITERION_REF` | ERROR | A `deliversSuccessCriterionRefs` entry does not resolve in `options.availableSuccessCriterionRefs`. SKIPPED (fail-soft) when no set is passed. |\n *\n * Severity is a TS enum (project rule — enums over literal unions). The\n * validator never mutates the snapshot. Issue ordering is detector-order\n * then walk-order — NOT a stable contract; callers group/sort by `kind` +\n * `severity` themselves.\n */\nexport enum RoadmapSnapshotIssueKind {\n /**\n * A phase ref violates its kebab-case prefix contract. The Zod schema\n * rejects this at parse time; the detector remains as defence in depth\n * for callers that bypass parsing (tests building snapshots with\n * type-asserted fixtures). ERROR.\n */\n INVALID_REF_FORMAT = 'invalid_ref_format',\n /**\n * Two phases share a ref. The collection is addressed by ref\n * downstream, so a duplicate silently drops one phase. ERROR.\n */\n DUPLICATE_REF = 'duplicate_ref',\n /**\n * Two phases share a `sequence`. The ordering between them is ambiguous\n * (consumers sort by `sequence`), but no data is lost — WARN, not ERROR.\n * Give each phase a distinct sequence.\n */\n DUPLICATE_SEQUENCE = 'duplicate_sequence',\n /**\n * The same requirement / success-criterion ref appears more than once on\n * ONE phase's deliver-list. The repeat carries no meaning — the catalog\n * dedupes it (or double-counts it in coverage). WARN, not ERROR: the\n * phase is still valid, the authoring is just untidy. Runs\n * unconditionally (intra-snapshot, needs no external set); each\n * deliver-list is its own namespace, so the same string appearing once\n * in each of the two lists is NOT a duplicate.\n */\n DUPLICATE_CROSS_REF = 'duplicate_cross_ref',\n /** `phases` empty — the roadmap plans no delivery (WARN). */\n NO_PHASES = 'no_phases',\n /** `lastAuthoredAt + reviewCadence < now` (WARN — market/vision/requirements parity). */\n STALE_AUTHORED = 'stale_authored',\n /**\n * A `deliversRequirementRefs` entry does not resolve against the\n * supplied requirement-ref set — a dangling cross-family reference.\n * ERROR when a set is supplied; the whole check is SKIPPED (fail-soft)\n * when it is not.\n */\n UNKNOWN_REQUIREMENT_REF = 'unknown_requirement_ref',\n /**\n * A `deliversSuccessCriterionRefs` entry does not resolve against the\n * supplied success-criterion-ref set. ERROR when a set is supplied;\n * SKIPPED (fail-soft) when it is not.\n */\n UNKNOWN_SUCCESS_CRITERION_REF = 'unknown_success_criterion_ref',\n}\n\nexport enum RoadmapSnapshotIssueSeverity {\n ERROR = 'error',\n WARN = 'warn',\n}\n\nexport interface RoadmapSnapshotIssue {\n kind: RoadmapSnapshotIssueKind;\n /** Dotted path inside the snapshot (e.g. `'phases[2].ref'`). */\n path: string;\n message: string;\n severity: RoadmapSnapshotIssueSeverity;\n}\n\nexport interface RoadmapSnapshotValidationResult {\n /** `true` iff no issue has severity `ERROR`. */\n ok: boolean;\n issues: RoadmapSnapshotIssue[];\n}\n\n/**\n * Options for this family validator.\n *\n * ## The cross-family sets are OPT-IN, and omitting one SKIPS its check\n *\n * A family validator sees one family. It cannot resolve a reference into another family's\n * vocabulary unless you hand it that family's refs — so each `available*Refs` option is the caller\n * saying \"I have this context, use it\". Omit one and the matching check does not run: no issue is\n * reported, and the absence looks exactly like a snapshot with no such reference.\n *\n * That is deliberate — the families are decoupled on purpose — but it means a validator called with\n * the snapshot alone is checking this family's INTERNAL consistency only. If you want dangling\n * cross-family references caught, supply the sets; if you validate one family in isolation, expect\n * them to be found later by whatever holds every family at once.\n */\nexport interface ValidateRoadmapSnapshotOptions {\n /** Override \"now\" for `STALE_AUTHORED` checks (test affordance). Defaults to `new Date()`. */\n now?: Date;\n /**\n * Resolvable functional-requirement refs. When supplied, every\n * `deliversRequirementRefs` entry not in the set is reported as\n * `UNKNOWN_REQUIREMENT_REF`. When omitted, the check is skipped entirely\n * (fail-soft — the roadmap family is decoupled from the requirements\n * family; the catalog owns resolution).\n */\n availableRequirementRefs?: ReadonlySet<string>;\n /**\n * Resolvable vision success-criterion refs. Same skip-when-omitted\n * semantics as `availableRequirementRefs`, reported as\n * `UNKNOWN_SUCCESS_CRITERION_REF`.\n */\n availableSuccessCriterionRefs?: ReadonlySet<string>;\n}\n\n/**\n * Days-per-cadence mapping, mirrored from the market / vision /\n * requirements / assertions validators (module-local there too — a shared\n * promotion is part of the deferred authored-metadata generalization).\n */\nconst REVIEW_CADENCE_TO_DAYS: Record<ReviewCadence, number> = {\n [ReviewCadence.WEEKLY]: 7,\n [ReviewCadence.MONTHLY]: 31,\n [ReviewCadence.QUARTERLY]: 92,\n [ReviewCadence.YEARLY]: 366,\n [ReviewCadence.AS_NEEDED]: Number.POSITIVE_INFINITY,\n};\n\nexport function validateRoadmapSnapshot(\n snapshot: RoadmapSnapshot,\n options?: ValidateRoadmapSnapshotOptions,\n): RoadmapSnapshotValidationResult {\n const issues: RoadmapSnapshotIssue[] = [];\n\n detectInvalidRefFormats(snapshot, issues);\n detectDuplicateRefs(snapshot, issues);\n detectDuplicateSequences(snapshot, issues);\n detectDuplicateCrossRefs(snapshot, issues);\n detectIncompleteness(snapshot, issues);\n detectStaleAuthored(snapshot, options?.now ?? new Date(), issues);\n detectUnknownCrossRefs(snapshot, options, issues);\n\n const ok = issues.every(\n issue => issue.severity !== RoadmapSnapshotIssueSeverity.ERROR,\n );\n return { ok, issues };\n}\n\n// ────────────────────────────────────────────────────────────────────\n// Detectors — one per rule, kept small and independently testable.\n// ────────────────────────────────────────────────────────────────────\n\nfunction detectInvalidRefFormats(\n snapshot: RoadmapSnapshot,\n issues: RoadmapSnapshotIssue[],\n): void {\n snapshot.phases.forEach((entry, index) => {\n if (ROADMAP_PHASE_REF_PATTERN.test(entry.ref)) return;\n issues.push({\n kind: RoadmapSnapshotIssueKind.INVALID_REF_FORMAT,\n path: `phases[${index}].ref`,\n message: `Roadmap-phase ref \"${entry.ref}\" is not kebab-case with the \"roadmap-phase-\" prefix.`,\n severity: RoadmapSnapshotIssueSeverity.ERROR,\n });\n });\n}\n\nfunction detectDuplicateRefs(\n snapshot: RoadmapSnapshot,\n issues: RoadmapSnapshotIssue[],\n): void {\n const seen = new Set<string>();\n snapshot.phases.forEach((entry, index) => {\n if (!seen.has(entry.ref)) {\n seen.add(entry.ref);\n return;\n }\n issues.push({\n kind: RoadmapSnapshotIssueKind.DUPLICATE_REF,\n path: `phases[${index}].ref`,\n message: `Duplicate ref \"${entry.ref}\" in phases — refs must be unique; the collection is addressed by ref downstream.`,\n severity: RoadmapSnapshotIssueSeverity.ERROR,\n });\n });\n}\n\nfunction detectDuplicateSequences(\n snapshot: RoadmapSnapshot,\n issues: RoadmapSnapshotIssue[],\n): void {\n const seen = new Set<number>();\n snapshot.phases.forEach((entry, index) => {\n if (!seen.has(entry.sequence)) {\n seen.add(entry.sequence);\n return;\n }\n issues.push({\n kind: RoadmapSnapshotIssueKind.DUPLICATE_SEQUENCE,\n path: `phases[${index}].sequence`,\n message: `Duplicate sequence ${entry.sequence} on phase \"${entry.ref}\" — two phases share an ordering key, so the roadmap order between them is ambiguous. Give each phase a distinct sequence.`,\n severity: RoadmapSnapshotIssueSeverity.WARN,\n });\n });\n}\n\nfunction detectDuplicateCrossRefs(\n snapshot: RoadmapSnapshot,\n issues: RoadmapSnapshotIssue[],\n): void {\n const checkList = (\n refs: readonly string[] | undefined,\n entry: RoadmapPhaseConfig,\n path: string,\n ): void => {\n if (refs === undefined) return;\n const seen = new Set<string>();\n refs.forEach((ref, refIndex) => {\n if (!seen.has(ref)) {\n seen.add(ref);\n return;\n }\n issues.push({\n kind: RoadmapSnapshotIssueKind.DUPLICATE_CROSS_REF,\n path: `${path}[${refIndex}]`,\n message: `Deliver-ref \"${ref}\" is listed more than once on phase \"${entry.ref}\" (${path}). Remove the duplicate.`,\n severity: RoadmapSnapshotIssueSeverity.WARN,\n });\n });\n };\n\n snapshot.phases.forEach((entry, index) => {\n checkList(entry.deliversRequirementRefs, entry, `phases[${index}].deliversRequirementRefs`);\n checkList(\n entry.deliversSuccessCriterionRefs,\n entry,\n `phases[${index}].deliversSuccessCriterionRefs`,\n );\n });\n}\n\nfunction detectIncompleteness(\n snapshot: RoadmapSnapshot,\n issues: RoadmapSnapshotIssue[],\n): void {\n if (snapshot.phases.length === 0) {\n issues.push({\n kind: RoadmapSnapshotIssueKind.NO_PHASES,\n path: 'phases',\n message: 'Roadmap plans no phases — it describes no delivery of the product.',\n severity: RoadmapSnapshotIssueSeverity.WARN,\n });\n }\n}\n\nfunction detectStaleAuthored(\n snapshot: RoadmapSnapshot,\n now: Date,\n issues: RoadmapSnapshotIssue[],\n): void {\n const checkOne = (authored: RoadmapAuthoredMetadata | undefined, path: string): void => {\n if (authored?.reviewCadence === undefined) return;\n const days = REVIEW_CADENCE_TO_DAYS[authored.reviewCadence];\n if (!Number.isFinite(days)) return;\n const lastAuthored = new Date(authored.lastAuthoredAt).getTime();\n if (Number.isNaN(lastAuthored)) return;\n const ageDays = (now.getTime() - lastAuthored) / (24 * 60 * 60 * 1000);\n if (ageDays <= days) return;\n issues.push({\n kind: RoadmapSnapshotIssueKind.STALE_AUTHORED,\n path,\n message: `Roadmap phase at \"${path}\" is ${Math.floor(ageDays)} days old (cadence ${authored.reviewCadence} ⇒ ${days}d). Re-author or remove the cadence.`,\n severity: RoadmapSnapshotIssueSeverity.WARN,\n });\n };\n\n snapshot.phases.forEach((entry, index) =>\n checkOne(entry.authored, `phases[${index}].authored`),\n );\n}\n\nfunction detectUnknownCrossRefs(\n snapshot: RoadmapSnapshot,\n options: ValidateRoadmapSnapshotOptions | undefined,\n issues: RoadmapSnapshotIssue[],\n): void {\n snapshot.phases.forEach((entry, index) => {\n if (options?.availableRequirementRefs !== undefined) {\n entry.deliversRequirementRefs?.forEach((reqRef, refIndex) => {\n if (options.availableRequirementRefs!.has(reqRef)) return;\n issues.push({\n kind: RoadmapSnapshotIssueKind.UNKNOWN_REQUIREMENT_REF,\n path: `phases[${index}].deliversRequirementRefs[${refIndex}]`,\n message: `Requirement ref \"${reqRef}\" on phase \"${entry.ref}\" does not resolve in the supplied requirement-ref set.`,\n severity: RoadmapSnapshotIssueSeverity.ERROR,\n });\n });\n }\n if (options?.availableSuccessCriterionRefs !== undefined) {\n entry.deliversSuccessCriterionRefs?.forEach((scRef, refIndex) => {\n if (options.availableSuccessCriterionRefs!.has(scRef)) return;\n issues.push({\n kind: RoadmapSnapshotIssueKind.UNKNOWN_SUCCESS_CRITERION_REF,\n path: `phases[${index}].deliversSuccessCriterionRefs[${refIndex}]`,\n message: `Success-criterion ref \"${scRef}\" on phase \"${entry.ref}\" does not resolve in the supplied success-criterion-ref set.`,\n severity: RoadmapSnapshotIssueSeverity.ERROR,\n });\n });\n }\n });\n}\n/** @wildo_source:part:end roadmap.snapshot.validation */\n"]}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Stamping a family ref prefix onto a model-supplied slug, ONCE.
|
|
3
|
+
*
|
|
4
|
+
* Every product-definition family asks a provider for a bare semantic `slug` and stamps the canonical
|
|
5
|
+
* family prefix in the trusted runtime, so that a model can never author a ref that does not match the
|
|
6
|
+
* family pattern. That split is right. What it does not survive on its own is the model answering the
|
|
7
|
+
* PREFIXED form anyway.
|
|
8
|
+
*
|
|
9
|
+
* ## Why idempotence, rather than an instruction to the model
|
|
10
|
+
*
|
|
11
|
+
* Measured across four live market generations, one attempt emitted 42 of 47 slugs already carrying
|
|
12
|
+
* their family prefix and another emitted 0 of 43. The contract asked for a bare slug both times. So the
|
|
13
|
+
* behaviour is not a prompt defect that a firmer sentence fixes — it is variance, and the normalizer is
|
|
14
|
+
* the only place that can be made total over it.
|
|
15
|
+
*
|
|
16
|
+
* Blind concatenation turned the first of those runs into `icp-icp-small-remote-product-teams-nam`, which
|
|
17
|
+
* then rides into the accepted artifact and into everything generated from it. The same shape landed in
|
|
18
|
+
* two dogfood applications: `constraint-constraint-gdpr-standard-handling` in both Wonder CRM and Wonder
|
|
19
|
+
* Todos, and — because a revision round hands a previously-stamped snapshot back to the model as context —
|
|
20
|
+
* `roadmap-phase-roadmap-phase-roadmap-phase-mvp-core-follow-through` in Wonder CRM, tripled. Nothing
|
|
21
|
+
* refused any of it: `^roadmap-phase-[a-z0-9]+(-[a-z0-9]+)*$` is satisfied by a doubled ref, because the
|
|
22
|
+
* prefix is itself kebab-case.
|
|
23
|
+
*
|
|
24
|
+
* Idempotence matters for more than tidiness. An entity and the references to it are stamped by separate
|
|
25
|
+
* code paths — sometimes in separate families, a roadmap phase naming a vision success criterion — so a
|
|
26
|
+
* model that prefixes one and not the other produces two different strings for the same thing and orphans
|
|
27
|
+
* the edge. Wonder CRM is the worked example: its vision declared
|
|
28
|
+
* `success-criterion-success-criterion-working-pipeline-in-one-day` while its roadmap pointed at
|
|
29
|
+
* `success-criterion-working-pipeline-in-one-day`, and every one of those edges resolved to nothing.
|
|
30
|
+
* Normalising both sides to the same canonical form removes that whole class.
|
|
31
|
+
*
|
|
32
|
+
* ## STRIP-IF-PRESENT, not REFUSE
|
|
33
|
+
*
|
|
34
|
+
* The rejected alternative is to refuse a slug that already carries its prefix, on the grounds that the
|
|
35
|
+
* contract said "bare". It was refused on the same measurement: a 42-of-47 run would fail wholesale, and
|
|
36
|
+
* the family would be unacceptable every time the model answered a question it had understood. Accepting
|
|
37
|
+
* both spellings and canonicalising them is the treatment that lets a correct answer through.
|
|
38
|
+
*
|
|
39
|
+
* ## The one hazard this accepts, and where it is caught
|
|
40
|
+
*
|
|
41
|
+
* Two authored slugs that differ only by the prefix — `foo` and `constraint-foo` — collapse to one ref.
|
|
42
|
+
* That is a genuinely new collision class created by this normalization, and it is why every caller must
|
|
43
|
+
* check distinctness on the STAMPED form rather than on the authored slug: slug uniqueness and ref
|
|
44
|
+
* uniqueness are different questions once the mapping stops being injective. `assertDistinctFamilyRefs`
|
|
45
|
+
* below is for callers that stamp first (market); a family whose contract already reports duplicate slugs
|
|
46
|
+
* in a `superRefine` should key that report on the normalized value instead, which fails closed at the
|
|
47
|
+
* contract boundary and hands the provider a Zod issue with a path.
|
|
48
|
+
*/
|
|
49
|
+
export declare function applyFamilyRefPrefix(slug: string, prefix: string): string;
|
|
50
|
+
/**
|
|
51
|
+
* Refuse a collection whose entries do not have distinct refs, AFTER stamping.
|
|
52
|
+
*
|
|
53
|
+
* Slug uniqueness is checked on the authored form; this checks the stamped form, which idempotent
|
|
54
|
+
* prefixing makes a genuinely different question: `foo` and `icp-foo` are two distinct slugs that both
|
|
55
|
+
* stamp to `icp-foo`. Two entities sharing a ref would make every reference to it ambiguous, so this
|
|
56
|
+
* fails closed at normalization rather than producing a graph whose edges cannot be resolved.
|
|
57
|
+
*
|
|
58
|
+
* `family` is the collection name as a reader of the artifact would recognise it (`icps`, `constraints`,
|
|
59
|
+
* `tasks`), because that is what the message has to send an author back to.
|
|
60
|
+
*/
|
|
61
|
+
export declare function assertDistinctFamilyRefs(collection: readonly {
|
|
62
|
+
ref: string;
|
|
63
|
+
}[], family: string): void;
|
|
64
|
+
//# sourceMappingURL=family-ref-stamping.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"family-ref-stamping.d.ts","sourceRoot":"","sources":["../../../../../src/_core/utils/family-ref-stamping.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+CG;AACH,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,MAAM,CAEzE;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,wBAAwB,CAAC,UAAU,EAAE,SAAS;IAAE,GAAG,EAAE,MAAM,CAAA;CAAE,EAAE,EAAE,MAAM,EAAE,MAAM,GAAG,IAAI,CAWrG"}
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Stamping a family ref prefix onto a model-supplied slug, ONCE.
|
|
3
|
+
*
|
|
4
|
+
* Every product-definition family asks a provider for a bare semantic `slug` and stamps the canonical
|
|
5
|
+
* family prefix in the trusted runtime, so that a model can never author a ref that does not match the
|
|
6
|
+
* family pattern. That split is right. What it does not survive on its own is the model answering the
|
|
7
|
+
* PREFIXED form anyway.
|
|
8
|
+
*
|
|
9
|
+
* ## Why idempotence, rather than an instruction to the model
|
|
10
|
+
*
|
|
11
|
+
* Measured across four live market generations, one attempt emitted 42 of 47 slugs already carrying
|
|
12
|
+
* their family prefix and another emitted 0 of 43. The contract asked for a bare slug both times. So the
|
|
13
|
+
* behaviour is not a prompt defect that a firmer sentence fixes — it is variance, and the normalizer is
|
|
14
|
+
* the only place that can be made total over it.
|
|
15
|
+
*
|
|
16
|
+
* Blind concatenation turned the first of those runs into `icp-icp-small-remote-product-teams-nam`, which
|
|
17
|
+
* then rides into the accepted artifact and into everything generated from it. The same shape landed in
|
|
18
|
+
* two dogfood applications: `constraint-constraint-gdpr-standard-handling` in both Wonder CRM and Wonder
|
|
19
|
+
* Todos, and — because a revision round hands a previously-stamped snapshot back to the model as context —
|
|
20
|
+
* `roadmap-phase-roadmap-phase-roadmap-phase-mvp-core-follow-through` in Wonder CRM, tripled. Nothing
|
|
21
|
+
* refused any of it: `^roadmap-phase-[a-z0-9]+(-[a-z0-9]+)*$` is satisfied by a doubled ref, because the
|
|
22
|
+
* prefix is itself kebab-case.
|
|
23
|
+
*
|
|
24
|
+
* Idempotence matters for more than tidiness. An entity and the references to it are stamped by separate
|
|
25
|
+
* code paths — sometimes in separate families, a roadmap phase naming a vision success criterion — so a
|
|
26
|
+
* model that prefixes one and not the other produces two different strings for the same thing and orphans
|
|
27
|
+
* the edge. Wonder CRM is the worked example: its vision declared
|
|
28
|
+
* `success-criterion-success-criterion-working-pipeline-in-one-day` while its roadmap pointed at
|
|
29
|
+
* `success-criterion-working-pipeline-in-one-day`, and every one of those edges resolved to nothing.
|
|
30
|
+
* Normalising both sides to the same canonical form removes that whole class.
|
|
31
|
+
*
|
|
32
|
+
* ## STRIP-IF-PRESENT, not REFUSE
|
|
33
|
+
*
|
|
34
|
+
* The rejected alternative is to refuse a slug that already carries its prefix, on the grounds that the
|
|
35
|
+
* contract said "bare". It was refused on the same measurement: a 42-of-47 run would fail wholesale, and
|
|
36
|
+
* the family would be unacceptable every time the model answered a question it had understood. Accepting
|
|
37
|
+
* both spellings and canonicalising them is the treatment that lets a correct answer through.
|
|
38
|
+
*
|
|
39
|
+
* ## The one hazard this accepts, and where it is caught
|
|
40
|
+
*
|
|
41
|
+
* Two authored slugs that differ only by the prefix — `foo` and `constraint-foo` — collapse to one ref.
|
|
42
|
+
* That is a genuinely new collision class created by this normalization, and it is why every caller must
|
|
43
|
+
* check distinctness on the STAMPED form rather than on the authored slug: slug uniqueness and ref
|
|
44
|
+
* uniqueness are different questions once the mapping stops being injective. `assertDistinctFamilyRefs`
|
|
45
|
+
* below is for callers that stamp first (market); a family whose contract already reports duplicate slugs
|
|
46
|
+
* in a `superRefine` should key that report on the normalized value instead, which fails closed at the
|
|
47
|
+
* contract boundary and hands the provider a Zod issue with a path.
|
|
48
|
+
*/
|
|
49
|
+
export function applyFamilyRefPrefix(slug, prefix) {
|
|
50
|
+
return slug.startsWith(prefix) ? slug : `${prefix}${slug}`;
|
|
51
|
+
}
|
|
52
|
+
/**
|
|
53
|
+
* Refuse a collection whose entries do not have distinct refs, AFTER stamping.
|
|
54
|
+
*
|
|
55
|
+
* Slug uniqueness is checked on the authored form; this checks the stamped form, which idempotent
|
|
56
|
+
* prefixing makes a genuinely different question: `foo` and `icp-foo` are two distinct slugs that both
|
|
57
|
+
* stamp to `icp-foo`. Two entities sharing a ref would make every reference to it ambiguous, so this
|
|
58
|
+
* fails closed at normalization rather than producing a graph whose edges cannot be resolved.
|
|
59
|
+
*
|
|
60
|
+
* `family` is the collection name as a reader of the artifact would recognise it (`icps`, `constraints`,
|
|
61
|
+
* `tasks`), because that is what the message has to send an author back to.
|
|
62
|
+
*/
|
|
63
|
+
export function assertDistinctFamilyRefs(collection, family) {
|
|
64
|
+
const seen = new Set();
|
|
65
|
+
for (const entry of collection) {
|
|
66
|
+
if (seen.has(entry.ref)) {
|
|
67
|
+
throw new Error(`Snapshot ${family} contains two entries that normalize to the same ref "${entry.ref}"; `
|
|
68
|
+
+ 'author slugs that stay distinct once their family prefix is applied.');
|
|
69
|
+
}
|
|
70
|
+
seen.add(entry.ref);
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
//# sourceMappingURL=family-ref-stamping.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"family-ref-stamping.js","sourceRoot":"","sources":["../../../../../src/_core/utils/family-ref-stamping.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+CG;AACH,MAAM,UAAU,oBAAoB,CAAC,IAAY,EAAE,MAAc;IAC/D,OAAO,IAAI,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,GAAG,MAAM,GAAG,IAAI,EAAE,CAAC;AAC7D,CAAC;AAED;;;;;;;;;;GAUG;AACH,MAAM,UAAU,wBAAwB,CAAC,UAAsC,EAAE,MAAc;IAC7F,MAAM,IAAI,GAAG,IAAI,GAAG,EAAU,CAAC;IAC/B,KAAK,MAAM,KAAK,IAAI,UAAU,EAAE,CAAC;QAC/B,IAAI,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,GAAG,CAAC,EAAE,CAAC;YACxB,MAAM,IAAI,KAAK,CACb,YAAY,MAAM,yDAAyD,KAAK,CAAC,GAAG,KAAK;kBACvF,sEAAsE,CACzE,CAAC;QACJ,CAAC;QACD,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;IACtB,CAAC;AACH,CAAC","sourcesContent":["/**\n * Stamping a family ref prefix onto a model-supplied slug, ONCE.\n *\n * Every product-definition family asks a provider for a bare semantic `slug` and stamps the canonical\n * family prefix in the trusted runtime, so that a model can never author a ref that does not match the\n * family pattern. That split is right. What it does not survive on its own is the model answering the\n * PREFIXED form anyway.\n *\n * ## Why idempotence, rather than an instruction to the model\n *\n * Measured across four live market generations, one attempt emitted 42 of 47 slugs already carrying\n * their family prefix and another emitted 0 of 43. The contract asked for a bare slug both times. So the\n * behaviour is not a prompt defect that a firmer sentence fixes — it is variance, and the normalizer is\n * the only place that can be made total over it.\n *\n * Blind concatenation turned the first of those runs into `icp-icp-small-remote-product-teams-nam`, which\n * then rides into the accepted artifact and into everything generated from it. The same shape landed in\n * two dogfood applications: `constraint-constraint-gdpr-standard-handling` in both Wonder CRM and Wonder\n * Todos, and — because a revision round hands a previously-stamped snapshot back to the model as context —\n * `roadmap-phase-roadmap-phase-roadmap-phase-mvp-core-follow-through` in Wonder CRM, tripled. Nothing\n * refused any of it: `^roadmap-phase-[a-z0-9]+(-[a-z0-9]+)*$` is satisfied by a doubled ref, because the\n * prefix is itself kebab-case.\n *\n * Idempotence matters for more than tidiness. An entity and the references to it are stamped by separate\n * code paths — sometimes in separate families, a roadmap phase naming a vision success criterion — so a\n * model that prefixes one and not the other produces two different strings for the same thing and orphans\n * the edge. Wonder CRM is the worked example: its vision declared\n * `success-criterion-success-criterion-working-pipeline-in-one-day` while its roadmap pointed at\n * `success-criterion-working-pipeline-in-one-day`, and every one of those edges resolved to nothing.\n * Normalising both sides to the same canonical form removes that whole class.\n *\n * ## STRIP-IF-PRESENT, not REFUSE\n *\n * The rejected alternative is to refuse a slug that already carries its prefix, on the grounds that the\n * contract said \"bare\". It was refused on the same measurement: a 42-of-47 run would fail wholesale, and\n * the family would be unacceptable every time the model answered a question it had understood. Accepting\n * both spellings and canonicalising them is the treatment that lets a correct answer through.\n *\n * ## The one hazard this accepts, and where it is caught\n *\n * Two authored slugs that differ only by the prefix — `foo` and `constraint-foo` — collapse to one ref.\n * That is a genuinely new collision class created by this normalization, and it is why every caller must\n * check distinctness on the STAMPED form rather than on the authored slug: slug uniqueness and ref\n * uniqueness are different questions once the mapping stops being injective. `assertDistinctFamilyRefs`\n * below is for callers that stamp first (market); a family whose contract already reports duplicate slugs\n * in a `superRefine` should key that report on the normalized value instead, which fails closed at the\n * contract boundary and hands the provider a Zod issue with a path.\n */\nexport function applyFamilyRefPrefix(slug: string, prefix: string): string {\n return slug.startsWith(prefix) ? slug : `${prefix}${slug}`;\n}\n\n/**\n * Refuse a collection whose entries do not have distinct refs, AFTER stamping.\n *\n * Slug uniqueness is checked on the authored form; this checks the stamped form, which idempotent\n * prefixing makes a genuinely different question: `foo` and `icp-foo` are two distinct slugs that both\n * stamp to `icp-foo`. Two entities sharing a ref would make every reference to it ambiguous, so this\n * fails closed at normalization rather than producing a graph whose edges cannot be resolved.\n *\n * `family` is the collection name as a reader of the artifact would recognise it (`icps`, `constraints`,\n * `tasks`), because that is what the message has to send an author back to.\n */\nexport function assertDistinctFamilyRefs(collection: readonly { ref: string }[], family: string): void {\n const seen = new Set<string>();\n for (const entry of collection) {\n if (seen.has(entry.ref)) {\n throw new Error(\n `Snapshot ${family} contains two entries that normalize to the same ref \"${entry.ref}\"; `\n + 'author slugs that stay distinct once their family prefix is applied.',\n );\n }\n seen.add(entry.ref);\n }\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vision-snapshot-generation.schemas.d.ts","sourceRoot":"","sources":["../../../../../src/_core/vision/vision-snapshot-generation.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"vision-snapshot-generation.schemas.d.ts","sourceRoot":"","sources":["../../../../../src/_core/vision/vision-snapshot-generation.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,OAAO,EAAE,oBAAoB,EAAE,MAAM,6BAA6B,CAAC;AAKnE,OAAO,EAGL,KAAK,cAAc,EACpB,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAAE,oBAAoB,EAAE,MAAM,oCAAoC,CAAC;AAI1E,eAAO,MAAM,0BAA0B;;;;kBAIrC,CAAC;AAEH,eAAO,MAAM,6BAA6B;;;;;;kBAMxC,CAAC;AAEH,eAAO,MAAM,6BAA6B;;;;kBAIxC,CAAC;AAEH,eAAO,MAAM,sCAAsC;;;;;;kBAMjD,CAAC;AAEH,eAAO,MAAM,gCAAgC;;;;;kBAK3C,CAAC;AAEH;;;;;;;GAOG;AACH,eAAO,MAAM,8BAA8B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBASzC,CAAC;AACH,MAAM,MAAM,wBAAwB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,8BAA8B,CAAC,CAAC;AAEtF,mFAAmF;AACnF,wBAAgB,6BAA6B,CAAC,KAAK,EAAE,OAAO,GAAG,cAAc,CA+B5E"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import { NonEmptyStringSchema } from '../market/market-references.schemas.js';
|
|
3
|
+
import { applyFamilyRefPrefix } from '../utils/family-ref-stamping.js';
|
|
3
4
|
import { VisionConstraintKind } from './vision-constraint.schemas.js';
|
|
4
5
|
import { VISION_CONSTRAINT_REF_PREFIX, VISION_SUCCESS_CRITERION_REF_PREFIX, } from './vision-references.schemas.js';
|
|
5
6
|
import { VisionSnapshotSchema, VisionSnapshotVersion, } from './vision-snapshot.schemas.js';
|
|
@@ -50,8 +51,8 @@ export const VisionSnapshotGenerationSchema = z.strictObject({
|
|
|
50
51
|
successCriteria: z.array(VisionSuccessCriterionGenerationSchema).min(1),
|
|
51
52
|
constraints: z.array(VisionConstraintGenerationSchema),
|
|
52
53
|
}).superRefine((generated, context) => {
|
|
53
|
-
|
|
54
|
-
|
|
54
|
+
reportDuplicateRefs(generated.successCriteria, VISION_SUCCESS_CRITERION_REF_PREFIX, 'successCriteria', context);
|
|
55
|
+
reportDuplicateRefs(generated.constraints, VISION_CONSTRAINT_REF_PREFIX, 'constraints', context);
|
|
55
56
|
});
|
|
56
57
|
/** Normalize strict provider output into canonical persisted application truth. */
|
|
57
58
|
export function parseVisionSnapshotGeneration(input) {
|
|
@@ -72,28 +73,41 @@ export function parseVisionSnapshotGeneration(input) {
|
|
|
72
73
|
...(generated.mission.longTermVision === null ? {} : { longTermVision: generated.mission.longTermVision }),
|
|
73
74
|
},
|
|
74
75
|
successCriteria: generated.successCriteria.map(entry => ({
|
|
75
|
-
ref:
|
|
76
|
+
ref: applyFamilyRefPrefix(entry.slug, VISION_SUCCESS_CRITERION_REF_PREFIX),
|
|
76
77
|
statement: entry.statement,
|
|
77
78
|
...(entry.metric === null ? {} : { metric: entry.metric }),
|
|
78
79
|
...(entry.target === null ? {} : { target: entry.target }),
|
|
79
80
|
...(entry.horizon === null ? {} : { horizon: entry.horizon }),
|
|
80
81
|
})),
|
|
81
82
|
constraints: generated.constraints.map(entry => ({
|
|
82
|
-
ref:
|
|
83
|
+
ref: applyFamilyRefPrefix(entry.slug, VISION_CONSTRAINT_REF_PREFIX),
|
|
83
84
|
kind: entry.kind,
|
|
84
85
|
statement: entry.statement,
|
|
85
86
|
...(entry.rationale === null ? {} : { rationale: entry.rationale }),
|
|
86
87
|
})),
|
|
87
88
|
});
|
|
88
89
|
}
|
|
89
|
-
|
|
90
|
+
/**
|
|
91
|
+
* Refuse two entries whose slugs normalize to the same ref.
|
|
92
|
+
*
|
|
93
|
+
* Keyed on the STAMPED form, not on the authored slug, because `applyFamilyRefPrefix` is deliberately
|
|
94
|
+
* not injective: `gdpr-handling` and `constraint-gdpr-handling` are two distinct slugs that both become
|
|
95
|
+
* `constraint-gdpr-handling`. Checking the slug would let that pair through and produce two constraints
|
|
96
|
+
* sharing one ref, which makes every reference to it ambiguous.
|
|
97
|
+
*
|
|
98
|
+
* Reported here rather than after stamping so the provider gets a Zod issue carrying the offending
|
|
99
|
+
* entry's path -- the generation retry loop hands those findings back to the model verbatim, and an
|
|
100
|
+
* issue that names `constraints[3].slug` is actionable in a way a thrown string is not.
|
|
101
|
+
*/
|
|
102
|
+
function reportDuplicateRefs(entries, prefix, path, context) {
|
|
90
103
|
const seen = new Set();
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
104
|
+
entries.forEach((entry, index) => {
|
|
105
|
+
const ref = applyFamilyRefPrefix(entry.slug, prefix);
|
|
106
|
+
if (!seen.has(ref)) {
|
|
107
|
+
seen.add(ref);
|
|
94
108
|
return;
|
|
95
109
|
}
|
|
96
|
-
context.addIssue({ code: 'custom', path: [path, index, 'slug'], message: `duplicate semantic slug "${
|
|
110
|
+
context.addIssue({ code: 'custom', path: [path, index, 'slug'], message: `duplicate semantic slug "${entry.slug}" (normalizes to "${ref}")` });
|
|
97
111
|
});
|
|
98
112
|
}
|
|
99
113
|
//# sourceMappingURL=vision-snapshot-generation.schemas.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vision-snapshot-generation.schemas.js","sourceRoot":"","sources":["../../../../../src/_core/vision/vision-snapshot-generation.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,oBAAoB,EAAE,MAAM,qCAAqC,CAAC;AAC3E,OAAO,EAAE,oBAAoB,EAAE,MAAM,6BAA6B,CAAC;AACnE,OAAO,EACL,4BAA4B,EAC5B,mCAAmC,GACpC,MAAM,6BAA6B,CAAC;AACrC,OAAO,EACL,oBAAoB,EACpB,qBAAqB,GAEtB,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAAE,oBAAoB,EAAE,MAAM,oCAAoC,CAAC;AAE1E,MAAM,kBAAkB,GAAG,CAAC,CAAC,MAAM,EAAE,CAAC,KAAK,CAAC,4BAA4B,CAAC,CAAC;AAE1E,MAAM,CAAC,MAAM,0BAA0B,GAAG,CAAC,CAAC,YAAY,CAAC;IACvD,QAAQ,EAAE,oBAAoB;IAC9B,WAAW,EAAE,oBAAoB;IACjC,KAAK,EAAE,CAAC,CAAC,KAAK,CAAC,oBAAoB,CAAC;CACrC,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,6BAA6B,GAAG,CA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M,IAAI,GAAG,IAAI,GAAG,EAAU,CAAC;IAC/B,MAAM,CAAC,OAAO,CAAC,CAAC,KAAK,EAAE,KAAK,EAAE,EAAE;QAC9B,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,EAAE,CAAC;YACrB,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;YAChB,OAAO;QACT,CAAC;QACD,OAAO,CAAC,QAAQ,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC,IAAI,EAAE,KAAK,EAAE,MAAM,CAAC,EAAE,OAAO,EAAE,4BAA4B,KAAK,GAAG,EAAE,CAAC,CAAC;IACnH,CAAC,CAAC,CAAC;AACL,CAAC","sourcesContent":["import { z } from 'zod';\n\nimport { NonEmptyStringSchema } from '../market/market-references.schemas';\nimport { VisionConstraintKind } from './vision-constraint.schemas';\nimport {\n VISION_CONSTRAINT_REF_PREFIX,\n VISION_SUCCESS_CRITERION_REF_PREFIX,\n} from './vision-references.schemas';\nimport {\n VisionSnapshotSchema,\n VisionSnapshotVersion,\n type VisionSnapshot,\n} from './vision-snapshot.schemas';\nimport { VisionSuccessHorizon } from './vision-success-criterion.schemas';\n\nconst SemanticSlugSchema = z.string().regex(/^[a-z0-9]+(?:-[a-z0-9]+)*$/);\n\nexport const VisionIdeaGenerationSchema = z.strictObject({\n oneLiner: NonEmptyStringSchema,\n description: NonEmptyStringSchema,\n notes: z.array(NonEmptyStringSchema),\n});\n\nexport const VisionProblemGenerationSchema = z.strictObject({\n statement: NonEmptyStringSchema,\n affected: NonEmptyStringSchema,\n currentAlternatives: z.array(NonEmptyStringSchema),\n consequences: z.array(NonEmptyStringSchema),\n whyNow: NonEmptyStringSchema.nullable(),\n});\n\nexport const VisionMissionGenerationSchema = z.strictObject({\n mission: NonEmptyStringSchema,\n longTermVision: NonEmptyStringSchema.nullable(),\n principles: z.array(NonEmptyStringSchema),\n});\n\nexport const VisionSuccessCriterionGenerationSchema = z.strictObject({\n slug: SemanticSlugSchema,\n statement: NonEmptyStringSchema,\n metric: NonEmptyStringSchema.nullable(),\n target: NonEmptyStringSchema.nullable(),\n horizon: z.enum(VisionSuccessHorizon).nullable(),\n});\n\nexport const VisionConstraintGenerationSchema = z.strictObject({\n slug: SemanticSlugSchema,\n kind: z.enum(VisionConstraintKind),\n statement: NonEmptyStringSchema,\n rationale: NonEmptyStringSchema.nullable(),\n});\n\n/**\n * Complete provider response for a clean-start vision producer.\n *\n * The persisted VisionSnapshot remains permissive for incremental authoring;\n * this provider contract is deliberately stronger. The model cannot author\n * family refs, versions or provenance and must provide a problem, mission and\n * at least one observable success criterion.\n */\nexport const VisionSnapshotGenerationSchema = z.strictObject({\n idea: VisionIdeaGenerationSchema,\n problem: VisionProblemGenerationSchema,\n mission: VisionMissionGenerationSchema,\n successCriteria: z.array(VisionSuccessCriterionGenerationSchema).min(1),\n constraints: z.array(VisionConstraintGenerationSchema),\n}).superRefine((generated, context) => {\n reportDuplicateSlugs(generated.successCriteria.map(entry => entry.slug), 'successCriteria', context);\n reportDuplicateSlugs(generated.constraints.map(entry => entry.slug), 'constraints', context);\n});\nexport type VisionSnapshotGeneration = z.infer<typeof VisionSnapshotGenerationSchema>;\n\n/** Normalize strict provider output into canonical persisted application truth. */\nexport function parseVisionSnapshotGeneration(input: unknown): VisionSnapshot {\n const generated = VisionSnapshotGenerationSchema.parse(input);\n return VisionSnapshotSchema.parse({\n version: VisionSnapshotVersion.V1,\n idea: generated.idea,\n problem: {\n statement: generated.problem.statement,\n affected: generated.problem.affected,\n currentAlternatives: generated.problem.currentAlternatives,\n consequences: generated.problem.consequences,\n ...(generated.problem.whyNow === null ? {} : { whyNow: generated.problem.whyNow }),\n },\n mission: {\n mission: generated.mission.mission,\n principles: generated.mission.principles,\n ...(generated.mission.longTermVision === null ? {} : { longTermVision: generated.mission.longTermVision }),\n },\n successCriteria: generated.successCriteria.map(entry => ({\n ref: `${VISION_SUCCESS_CRITERION_REF_PREFIX}${entry.slug}`,\n statement: entry.statement,\n ...(entry.metric === null ? {} : { metric: entry.metric }),\n ...(entry.target === null ? {} : { target: entry.target }),\n ...(entry.horizon === null ? {} : { horizon: entry.horizon }),\n })),\n constraints: generated.constraints.map(entry => ({\n ref: `${VISION_CONSTRAINT_REF_PREFIX}${entry.slug}`,\n kind: entry.kind,\n statement: entry.statement,\n ...(entry.rationale === null ? {} : { rationale: entry.rationale }),\n })),\n });\n}\n\nfunction reportDuplicateSlugs(values: readonly string[], path: string, context: z.RefinementCtx): void {\n const seen = new Set<string>();\n values.forEach((value, index) => {\n if (!seen.has(value)) {\n seen.add(value);\n return;\n }\n context.addIssue({ code: 'custom', path: [path, index, 'slug'], message: `duplicate semantic slug \"${value}\"` });\n });\n}\n"]}
|
|
1
|
+
{"version":3,"file":"vision-snapshot-generation.schemas.js","sourceRoot":"","sources":["../../../../../src/_core/vision/vision-snapshot-generation.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,oBAAoB,EAAE,MAAM,qCAAqC,CAAC;AAC3E,OAAO,EAAE,oBAAoB,EAAE,MAAM,8BAA8B,CAAC;AACpE,OAAO,EAAE,oBAAoB,EAAE,MAAM,6BAA6B,CAAC;AACnE,OAAO,EACL,4BAA4B,EAC5B,mCAAmC,GACpC,MAAM,6BAA6B,CAAC;AACrC,OAAO,EACL,oBAAoB,EACpB,qBAAqB,GAEtB,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAAE,oBAAoB,EAAE,MAAM,oCAAoC,CAAC;AAE1E,MAAM,kBAAkB,GAAG,CAAC,CAAC,MAAM,EAAE,CAAC,KAAK,CAAC,4BAA4B,CAAC,CAAC;AAE1E,MAAM,CAAC,MAAM,0BAA0B,GAAG,CAAC,CAAC,YAAY,CAAC;IACvD,QAAQ,EAAE,oBAAoB;IAC9B,WAAW,EAAE,oBAAoB;IACjC,KAAK,EAAE,CAAC,CAAC,KAAK,CAAC,oBAAo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wB;IACvH,MAAM,IAAI,GAAG,IAAI,GAAG,EAAU,CAAC;IAC/B,OAAO,CAAC,OAAO,CAAC,CAAC,KAAK,EAAE,KAAK,EAAE,EAAE;QAC/B,MAAM,GAAG,GAAG,oBAAoB,CAAC,KAAK,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC;QACrD,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC,EAAE,CAAC;YACnB,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;YACd,OAAO;QACT,CAAC;QACD,OAAO,CAAC,QAAQ,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC,IAAI,EAAE,KAAK,EAAE,MAAM,CAAC,EAAE,OAAO,EAAE,4BAA4B,KAAK,CAAC,IAAI,qBAAqB,GAAG,IAAI,EAAE,CAAC,CAAC;IACjJ,CAAC,CAAC,CAAC;AACL,CAAC","sourcesContent":["import { z } from 'zod';\n\nimport { NonEmptyStringSchema } from '../market/market-references.schemas';\nimport { applyFamilyRefPrefix } from '../utils/family-ref-stamping';\nimport { VisionConstraintKind } from './vision-constraint.schemas';\nimport {\n VISION_CONSTRAINT_REF_PREFIX,\n VISION_SUCCESS_CRITERION_REF_PREFIX,\n} from './vision-references.schemas';\nimport {\n VisionSnapshotSchema,\n VisionSnapshotVersion,\n type VisionSnapshot,\n} from './vision-snapshot.schemas';\nimport { VisionSuccessHorizon } from './vision-success-criterion.schemas';\n\nconst SemanticSlugSchema = z.string().regex(/^[a-z0-9]+(?:-[a-z0-9]+)*$/);\n\nexport const VisionIdeaGenerationSchema = z.strictObject({\n oneLiner: NonEmptyStringSchema,\n description: NonEmptyStringSchema,\n notes: z.array(NonEmptyStringSchema),\n});\n\nexport const VisionProblemGenerationSchema = z.strictObject({\n statement: NonEmptyStringSchema,\n affected: NonEmptyStringSchema,\n currentAlternatives: z.array(NonEmptyStringSchema),\n consequences: z.array(NonEmptyStringSchema),\n whyNow: NonEmptyStringSchema.nullable(),\n});\n\nexport const VisionMissionGenerationSchema = z.strictObject({\n mission: NonEmptyStringSchema,\n longTermVision: NonEmptyStringSchema.nullable(),\n principles: z.array(NonEmptyStringSchema),\n});\n\nexport const VisionSuccessCriterionGenerationSchema = z.strictObject({\n slug: SemanticSlugSchema,\n statement: NonEmptyStringSchema,\n metric: NonEmptyStringSchema.nullable(),\n target: NonEmptyStringSchema.nullable(),\n horizon: z.enum(VisionSuccessHorizon).nullable(),\n});\n\nexport const VisionConstraintGenerationSchema = z.strictObject({\n slug: SemanticSlugSchema,\n kind: z.enum(VisionConstraintKind),\n statement: NonEmptyStringSchema,\n rationale: NonEmptyStringSchema.nullable(),\n});\n\n/**\n * Complete provider response for a clean-start vision producer.\n *\n * The persisted VisionSnapshot remains permissive for incremental authoring;\n * this provider contract is deliberately stronger. The model cannot author\n * family refs, versions or provenance and must provide a problem, mission and\n * at least one observable success criterion.\n */\nexport const VisionSnapshotGenerationSchema = z.strictObject({\n idea: VisionIdeaGenerationSchema,\n problem: VisionProblemGenerationSchema,\n mission: VisionMissionGenerationSchema,\n successCriteria: z.array(VisionSuccessCriterionGenerationSchema).min(1),\n constraints: z.array(VisionConstraintGenerationSchema),\n}).superRefine((generated, context) => {\n reportDuplicateRefs(generated.successCriteria, VISION_SUCCESS_CRITERION_REF_PREFIX, 'successCriteria', context);\n reportDuplicateRefs(generated.constraints, VISION_CONSTRAINT_REF_PREFIX, 'constraints', context);\n});\nexport type VisionSnapshotGeneration = z.infer<typeof VisionSnapshotGenerationSchema>;\n\n/** Normalize strict provider output into canonical persisted application truth. */\nexport function parseVisionSnapshotGeneration(input: unknown): VisionSnapshot {\n const generated = VisionSnapshotGenerationSchema.parse(input);\n return VisionSnapshotSchema.parse({\n version: VisionSnapshotVersion.V1,\n idea: generated.idea,\n problem: {\n statement: generated.problem.statement,\n affected: generated.problem.affected,\n currentAlternatives: generated.problem.currentAlternatives,\n consequences: generated.problem.consequences,\n ...(generated.problem.whyNow === null ? {} : { whyNow: generated.problem.whyNow }),\n },\n mission: {\n mission: generated.mission.mission,\n principles: generated.mission.principles,\n ...(generated.mission.longTermVision === null ? {} : { longTermVision: generated.mission.longTermVision }),\n },\n successCriteria: generated.successCriteria.map(entry => ({\n ref: applyFamilyRefPrefix(entry.slug, VISION_SUCCESS_CRITERION_REF_PREFIX),\n statement: entry.statement,\n ...(entry.metric === null ? {} : { metric: entry.metric }),\n ...(entry.target === null ? {} : { target: entry.target }),\n ...(entry.horizon === null ? {} : { horizon: entry.horizon }),\n })),\n constraints: generated.constraints.map(entry => ({\n ref: applyFamilyRefPrefix(entry.slug, VISION_CONSTRAINT_REF_PREFIX),\n kind: entry.kind,\n statement: entry.statement,\n ...(entry.rationale === null ? {} : { rationale: entry.rationale }),\n })),\n });\n}\n\n/**\n * Refuse two entries whose slugs normalize to the same ref.\n *\n * Keyed on the STAMPED form, not on the authored slug, because `applyFamilyRefPrefix` is deliberately\n * not injective: `gdpr-handling` and `constraint-gdpr-handling` are two distinct slugs that both become\n * `constraint-gdpr-handling`. Checking the slug would let that pair through and produce two constraints\n * sharing one ref, which makes every reference to it ambiguous.\n *\n * Reported here rather than after stamping so the provider gets a Zod issue carrying the offending\n * entry's path -- the generation retry loop hands those findings back to the model verbatim, and an\n * issue that names `constraints[3].slug` is actionable in a way a thrown string is not.\n */\nfunction reportDuplicateRefs(entries: readonly { slug: string }[], prefix: string, path: string, context: z.RefinementCtx): void {\n const seen = new Set<string>();\n entries.forEach((entry, index) => {\n const ref = applyFamilyRefPrefix(entry.slug, prefix);\n if (!seen.has(ref)) {\n seen.add(ref);\n return;\n }\n context.addIssue({ code: 'custom', path: [path, index, 'slug'], message: `duplicate semantic slug \"${entry.slug}\" (normalizes to \"${ref}\")` });\n });\n}\n"]}
|
package/dist/esm/application-creation/application-coding-tasks.application-creation.schemas.d.ts
CHANGED
|
@@ -48,8 +48,6 @@ export declare const ApplicationCodingTaskContractSchema: z.ZodObject<{
|
|
|
48
48
|
assessmentSubjectRef: z.ZodString;
|
|
49
49
|
scope: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
50
50
|
iterationOrdinal: z.ZodNumber;
|
|
51
|
-
stableKernelRef: z.ZodOptional<z.ZodString>;
|
|
52
|
-
stableKernelDigest: z.ZodOptional<z.ZodString>;
|
|
53
51
|
consumerKind: z.ZodEnum<typeof import("@wildo-ai/saas-models/meta-workflows").MetaWorkflow_ContextSelectionConsumerKind>;
|
|
54
52
|
maximumOptionalSources: z.ZodNumber;
|
|
55
53
|
maximumTokenBudget: z.ZodNumber;
|
|
@@ -77,8 +75,6 @@ export declare const ApplicationCodingTaskContractSchema: z.ZodObject<{
|
|
|
77
75
|
assessmentSubjectRef: z.ZodString;
|
|
78
76
|
scope: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
79
77
|
iterationOrdinal: z.ZodNumber;
|
|
80
|
-
stableKernelRef: z.ZodOptional<z.ZodString>;
|
|
81
|
-
stableKernelDigest: z.ZodOptional<z.ZodString>;
|
|
82
78
|
consumerKind: z.ZodEnum<typeof import("@wildo-ai/saas-models/meta-workflows").MetaWorkflow_ContextSelectionConsumerKind>;
|
|
83
79
|
selectedSources: z.ZodArray<z.ZodObject<{
|
|
84
80
|
sourceRef: z.ZodString;
|
package/dist/esm/application-creation/application-coding-tasks.application-creation.schemas.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"application-coding-tasks.application-creation.schemas.d.ts","sourceRoot":"","sources":["../../../../src/application-creation/application-coding-tasks.application-creation.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAGL,oCAAoC,EAGrC,MAAM,sCAAsC,CAAC;AAc9C;;;;;;;GAOG;AACH,eAAO,MAAM,wCAAwC;;;;kBAInD,CAAC;AACH,MAAM,MAAM,kCAAkC,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wCAAwC,CAAC,CAAC;AAE1G,yGAAyG;AACzG,eAAO,MAAM,6CAA6C;;;;kBAIxD,CAAC;AACH,MAAM,MAAM,uCAAuC,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,6CAA6C,CAAC,CAAC;AAEpH;;;;;;;;;GASG;AACH,eAAO,MAAM,mCAAmC
|
|
1
|
+
{"version":3,"file":"application-coding-tasks.application-creation.schemas.d.ts","sourceRoot":"","sources":["../../../../src/application-creation/application-coding-tasks.application-creation.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAGL,oCAAoC,EAGrC,MAAM,sCAAsC,CAAC;AAc9C;;;;;;;GAOG;AACH,eAAO,MAAM,wCAAwC;;;;kBAInD,CAAC;AACH,MAAM,MAAM,kCAAkC,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wCAAwC,CAAC,CAAC;AAE1G,yGAAyG;AACzG,eAAO,MAAM,6CAA6C;;;;kBAIxD,CAAC;AACH,MAAM,MAAM,uCAAuC,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,6CAA6C,CAAC,CAAC;AAEpH;;;;;;;;;GASG;AACH,eAAO,MAAM,mCAAmC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAgC9C,CAAC;AACH,MAAM,MAAM,6BAA6B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mCAAmC,CAAC,CAAC"}
|
|
@@ -197,8 +197,9 @@ export type ApplicationAuthoredDocumentFactDeclaration = z.infer<typeof Applicat
|
|
|
197
197
|
/**
|
|
198
198
|
* One raw application-owned fact decision, from EITHER family — the READER's shape.
|
|
199
199
|
*
|
|
200
|
-
* The
|
|
201
|
-
*
|
|
200
|
+
* The declaration is read as authored. Nothing derives ids, digests, accepted-head identities or
|
|
201
|
+
* receipt joins from it any more — that projection was deleted with the digest machinery (see the
|
|
202
|
+
* note on `ApplicationAssuranceDocumentFactContributionResolutionKind` above).
|
|
202
203
|
*
|
|
203
204
|
* A TYPE and not a schema: nothing parses a file against it, because every file belongs to one family
|
|
204
205
|
* or the other. It exists because a consumer that READS facts does not care who asserted them — the
|
|
@@ -221,11 +222,10 @@ export type ApplicationDocumentFactDeclarationSet = {
|
|
|
221
222
|
* Accepted application declaration of governed-document facts THE ACCEPTED SPECIFICATION ANSWERS.
|
|
222
223
|
* Import from `@wildo-ai/saas-specifications/application-creation`.
|
|
223
224
|
*
|
|
224
|
-
* This family carries raw decisions only. It never authors
|
|
225
|
-
*
|
|
226
|
-
*
|
|
227
|
-
*
|
|
228
|
-
* resolver. A missing family or missing declaration therefore remains a
|
|
225
|
+
* This family carries raw decisions only. It never authors reviewer grants,
|
|
226
|
+
* document approvals or releases, and nothing seals, digests or receipts a
|
|
227
|
+
* declaration after it is written: the committed file is the accepted
|
|
228
|
+
* declaration. A missing family or missing declaration therefore remains a
|
|
229
229
|
* visible fact gap.
|
|
230
230
|
*
|
|
231
231
|
* One snapshot may contain facts for several document definitions, but it may
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"application-document-fact-specification.application-creation.schemas.d.ts","sourceRoot":"","sources":["../../../../src/application-creation/application-document-fact-specification.application-creation.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qCAAqC,EAA6C,MAAM,uBAAuB,CAAC;AACzH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,kCAAkC,EAA8B,MAAM,sBAAsB,CAAC;AAyEtG;;;;;;;;;;;;;;;GAeG;AACH,oBAAY,0DAA0D;IACpE,iEAAiE;IACjE,KAAK,UAAU;IACf,gGAAgG;IAChG,cAAc,mBAAmB;CAClC;AAwCD;;;;;;;;GAQG;AACH,eAAO,MAAM,iDAAiD;;;;;;;;;;;;;;;;;;;yCAI5D,CAAC;AACH,MAAM,MAAM,2CAA2C,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iDAAiD,CAAC,CAAC;AAkG5H;;;;;;;;;GASG;AAEH;;;;;;;;;GASG;AACH,eAAO,MAAM,+CAA+C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sCAaiC,CAAC;AAC9F,MAAM,MAAM,yCAAyC,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,+CAA+C,CAAC,CAAC;AAExH;;;;;;GAMG;AACH,eAAO,MAAM,gDAAgD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sCAagC,CAAC;AAC9F,MAAM,MAAM,0CAA0C,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gDAAgD,CAAC,CAAC;AAE1H
|
|
1
|
+
{"version":3,"file":"application-document-fact-specification.application-creation.schemas.d.ts","sourceRoot":"","sources":["../../../../src/application-creation/application-document-fact-specification.application-creation.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qCAAqC,EAA6C,MAAM,uBAAuB,CAAC;AACzH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,kCAAkC,EAA8B,MAAM,sBAAsB,CAAC;AAyEtG;;;;;;;;;;;;;;;GAeG;AACH,oBAAY,0DAA0D;IACpE,iEAAiE;IACjE,KAAK,UAAU;IACf,gGAAgG;IAChG,cAAc,mBAAmB;CAClC;AAwCD;;;;;;;;GAQG;AACH,eAAO,MAAM,iDAAiD;;;;;;;;;;;;;;;;;;;yCAI5D,CAAC;AACH,MAAM,MAAM,2CAA2C,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iDAAiD,CAAC,CAAC;AAkG5H;;;;;;;;;GASG;AAEH;;;;;;;;;GASG;AACH,eAAO,MAAM,+CAA+C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sCAaiC,CAAC;AAC9F,MAAM,MAAM,yCAAyC,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,+CAA+C,CAAC,CAAC;AAExH;;;;;;GAMG;AACH,e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EAAE,qCAAqC,GAAG;IAClH,EAAE,EAAE,OAAO,CAAC;IACZ,MAAM,EAAE,yCAAyC,EAAE,CAAC;CACrD,CAqBA"}
|
|
@@ -98,8 +98,8 @@ const ApplicationDocumentFactDeclarationAuthorityCommonSchema = z.strictObject({
|
|
|
98
98
|
authorityVersion: GovernedDocumentPositiveSafeIntegerSchema,
|
|
99
99
|
});
|
|
100
100
|
/**
|
|
101
|
-
* The DERIVED authority: the accepted semantic member itself is the authority
|
|
102
|
-
*
|
|
101
|
+
* The DERIVED authority: the accepted semantic member itself is the authority — the committed
|
|
102
|
+
* specification file, which git already identifies per commit — so there is no human to name.
|
|
103
103
|
*
|
|
104
104
|
* It carries no `decidedAt`, and that absence is the whole reason a generator may produce it: there is
|
|
105
105
|
* no decision instant to invent and no accountable actor to fabricate.
|
|
@@ -283,11 +283,10 @@ const buildDocumentFactSpecificationSchema = (declarationSchema) => z
|
|
|
283
283
|
* Accepted application declaration of governed-document facts THE ACCEPTED SPECIFICATION ANSWERS.
|
|
284
284
|
* Import from `@wildo-ai/saas-specifications/application-creation`.
|
|
285
285
|
*
|
|
286
|
-
* This family carries raw decisions only. It never authors
|
|
287
|
-
*
|
|
288
|
-
*
|
|
289
|
-
*
|
|
290
|
-
* resolver. A missing family or missing declaration therefore remains a
|
|
286
|
+
* This family carries raw decisions only. It never authors reviewer grants,
|
|
287
|
+
* document approvals or releases, and nothing seals, digests or receipts a
|
|
288
|
+
* declaration after it is written: the committed file is the accepted
|
|
289
|
+
* declaration. A missing family or missing declaration therefore remains a
|
|
291
290
|
* visible fact gap.
|
|
292
291
|
*
|
|
293
292
|
* One snapshot may contain facts for several document definitions, but it may
|