@wildo-ai/saas-specifications 1.1.1 → 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/brand/brand.family-aspects.d.ts +3 -0
- package/dist/esm/_core/brand/brand.family-aspects.d.ts.map +1 -0
- package/dist/esm/_core/brand/brand.family-aspects.js +51 -0
- package/dist/esm/_core/brand/brand.family-aspects.js.map +1 -0
- package/dist/esm/_core/build-plan/build-plan-task-graph-generation.schemas.d.ts.map +1 -1
- package/dist/esm/_core/build-plan/build-plan-task-graph-generation.schemas.js +15 -5
- package/dist/esm/_core/build-plan/build-plan-task-graph-generation.schemas.js.map +1 -1
- package/dist/esm/_core/build-plan/build-plan-task-graph-validation.d.ts +40 -3
- package/dist/esm/_core/build-plan/build-plan-task-graph-validation.d.ts.map +1 -1
- package/dist/esm/_core/build-plan/build-plan-task-graph-validation.js +85 -6
- package/dist/esm/_core/build-plan/build-plan-task-graph-validation.js.map +1 -1
- package/dist/esm/_core/build-plan/build-plan.family-aspects.d.ts +3 -0
- package/dist/esm/_core/build-plan/build-plan.family-aspects.d.ts.map +1 -0
- package/dist/esm/_core/build-plan/build-plan.family-aspects.js +28 -0
- package/dist/esm/_core/build-plan/build-plan.family-aspects.js.map +1 -0
- package/dist/esm/_core/business-model-lite/business-model-lite-snapshot-generation.schemas.d.ts.map +1 -1
- package/dist/esm/_core/business-model-lite/business-model-lite-snapshot-generation.schemas.js +10 -4
- package/dist/esm/_core/business-model-lite/business-model-lite-snapshot-generation.schemas.js.map +1 -1
- package/dist/esm/_core/business-model-lite/business-model-lite-snapshot-validation.d.ts +15 -0
- package/dist/esm/_core/business-model-lite/business-model-lite-snapshot-validation.d.ts.map +1 -1
- package/dist/esm/_core/business-model-lite/business-model-lite-snapshot-validation.js.map +1 -1
- package/dist/esm/_core/business-model-lite/business-model.family-aspects.d.ts +3 -0
- package/dist/esm/_core/business-model-lite/business-model.family-aspects.d.ts.map +1 -0
- package/dist/esm/_core/business-model-lite/business-model.family-aspects.js +21 -0
- package/dist/esm/_core/business-model-lite/business-model.family-aspects.js.map +1 -0
- package/dist/esm/_core/chart-view-specification.schemas.d.ts +11 -0
- package/dist/esm/_core/chart-view-specification.schemas.d.ts.map +1 -1
- package/dist/esm/_core/chart-view-specification.schemas.js.map +1 -1
- package/dist/esm/_core/compliance-documents/compliance-document-candidate-generation.schemas.d.ts +85 -0
- package/dist/esm/_core/compliance-documents/compliance-document-candidate-generation.schemas.d.ts.map +1 -1
- package/dist/esm/_core/compliance-documents/compliance-document-candidate-generation.schemas.js +41 -0
- package/dist/esm/_core/compliance-documents/compliance-document-candidate-generation.schemas.js.map +1 -1
- package/dist/esm/_core/compliance-documents/compliance-document-candidate.schemas.d.ts +178 -2
- package/dist/esm/_core/compliance-documents/compliance-document-candidate.schemas.d.ts.map +1 -1
- package/dist/esm/_core/compliance-documents/compliance-document-candidate.schemas.js +115 -9
- package/dist/esm/_core/compliance-documents/compliance-document-candidate.schemas.js.map +1 -1
- package/dist/esm/_core/compliance-documents/compliance-documents.family-aspects.d.ts +12 -0
- package/dist/esm/_core/compliance-documents/compliance-documents.family-aspects.d.ts.map +1 -0
- package/dist/esm/_core/compliance-documents/compliance-documents.family-aspects.js +47 -0
- package/dist/esm/_core/compliance-documents/compliance-documents.family-aspects.js.map +1 -0
- package/dist/esm/_core/compliance-documents/document-fact-specification-generation.schemas.d.ts.map +1 -1
- package/dist/esm/_core/compliance-documents/document-fact-specification-generation.schemas.js +8 -3
- package/dist/esm/_core/compliance-documents/document-fact-specification-generation.schemas.js.map +1 -1
- package/dist/esm/_core/compliance-documents/processor-register.family-aspects.d.ts +21 -0
- package/dist/esm/_core/compliance-documents/processor-register.family-aspects.d.ts.map +1 -0
- package/dist/esm/_core/compliance-documents/processor-register.family-aspects.js +40 -0
- package/dist/esm/_core/compliance-documents/processor-register.family-aspects.js.map +1 -0
- package/dist/esm/_core/composite-view-specification.schemas.d.ts +11 -0
- package/dist/esm/_core/composite-view-specification.schemas.d.ts.map +1 -1
- package/dist/esm/_core/composite-view-specification.schemas.js.map +1 -1
- package/dist/esm/_core/domain-plan/domain-plan.family-aspects.d.ts +3 -0
- package/dist/esm/_core/domain-plan/domain-plan.family-aspects.d.ts.map +1 -0
- package/dist/esm/_core/domain-plan/domain-plan.family-aspects.js +32 -0
- package/dist/esm/_core/domain-plan/domain-plan.family-aspects.js.map +1 -0
- package/dist/esm/_core/execution-view-specification.schemas.d.ts +11 -0
- package/dist/esm/_core/execution-view-specification.schemas.d.ts.map +1 -1
- package/dist/esm/_core/execution-view-specification.schemas.js.map +1 -1
- package/dist/esm/_core/expert-personas/expert-persona-charter.schemas.d.ts +6 -7
- package/dist/esm/_core/expert-personas/expert-persona-charter.schemas.d.ts.map +1 -1
- package/dist/esm/_core/expert-personas/expert-persona-charter.schemas.js +6 -13
- package/dist/esm/_core/expert-personas/expert-persona-charter.schemas.js.map +1 -1
- package/dist/esm/_core/expert-personas/expert-persona-validation.d.ts +0 -11
- package/dist/esm/_core/expert-personas/expert-persona-validation.d.ts.map +1 -1
- package/dist/esm/_core/expert-personas/expert-persona-validation.js +0 -19
- package/dist/esm/_core/expert-personas/expert-persona-validation.js.map +1 -1
- package/dist/esm/_core/expert-personas/expert-role-template.schemas.d.ts +1 -2
- package/dist/esm/_core/expert-personas/expert-role-template.schemas.d.ts.map +1 -1
- package/dist/esm/_core/expert-personas/expert-role-template.schemas.js +1 -2
- package/dist/esm/_core/expert-personas/expert-role-template.schemas.js.map +1 -1
- package/dist/esm/_core/family-aspects.registry.d.ts +18 -0
- package/dist/esm/_core/family-aspects.registry.d.ts.map +1 -0
- package/dist/esm/_core/family-aspects.registry.js +60 -0
- package/dist/esm/_core/family-aspects.registry.js.map +1 -0
- package/dist/esm/_core/family-aspects.schemas.d.ts +122 -0
- package/dist/esm/_core/family-aspects.schemas.d.ts.map +1 -0
- package/dist/esm/_core/family-aspects.schemas.js +15 -0
- package/dist/esm/_core/family-aspects.schemas.js.map +1 -0
- package/dist/esm/_core/feature-drafts/capability-map-output-set-generation.schemas.d.ts +11 -11
- package/dist/esm/_core/feature-drafts/feature-drafts.family-aspects.d.ts +3 -0
- package/dist/esm/_core/feature-drafts/feature-drafts.family-aspects.d.ts.map +1 -0
- package/dist/esm/_core/feature-drafts/feature-drafts.family-aspects.js +25 -0
- package/dist/esm/_core/feature-drafts/feature-drafts.family-aspects.js.map +1 -0
- package/dist/esm/_core/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/flows-actors-view-specification.schemas.d.ts +11 -0
- package/dist/esm/_core/flows-actors-view-specification.schemas.d.ts.map +1 -1
- package/dist/esm/_core/flows-actors-view-specification.schemas.js.map +1 -1
- package/dist/esm/_core/frontend-component-specification.schemas.d.ts.map +1 -1
- package/dist/esm/_core/frontend-component-specification.schemas.js +19 -1
- package/dist/esm/_core/frontend-component-specification.schemas.js.map +1 -1
- package/dist/esm/_core/full-custom-view-specification.schemas.d.ts +11 -0
- package/dist/esm/_core/full-custom-view-specification.schemas.d.ts.map +1 -1
- package/dist/esm/_core/full-custom-view-specification.schemas.js.map +1 -1
- package/dist/esm/_core/guidance-flow-specification.schemas.d.ts +11 -0
- package/dist/esm/_core/guidance-flow-specification.schemas.d.ts.map +1 -1
- package/dist/esm/_core/guidance-flow-specification.schemas.js +14 -0
- package/dist/esm/_core/guidance-flow-specification.schemas.js.map +1 -1
- package/dist/esm/_core/index.d.ts +3 -0
- package/dist/esm/_core/index.d.ts.map +1 -1
- package/dist/esm/_core/index.js +3 -0
- package/dist/esm/_core/index.js.map +1 -1
- package/dist/esm/_core/market/market-snapshot-generation.schemas.d.ts +22 -22
- package/dist/esm/_core/market/market-snapshot-generation.schemas.d.ts.map +1 -1
- package/dist/esm/_core/market/market-snapshot-generation.schemas.js +5 -40
- package/dist/esm/_core/market/market-snapshot-generation.schemas.js.map +1 -1
- package/dist/esm/_core/market/market-snapshot-validation.d.ts +15 -0
- package/dist/esm/_core/market/market-snapshot-validation.d.ts.map +1 -1
- package/dist/esm/_core/market/market-snapshot-validation.js.map +1 -1
- package/dist/esm/_core/market/market.family-aspects.d.ts +9 -0
- package/dist/esm/_core/market/market.family-aspects.d.ts.map +1 -0
- package/dist/esm/_core/market/market.family-aspects.js +227 -0
- package/dist/esm/_core/market/market.family-aspects.js.map +1 -0
- package/dist/esm/_core/onboarding-view-specification.schemas.d.ts +11 -0
- package/dist/esm/_core/onboarding-view-specification.schemas.d.ts.map +1 -1
- package/dist/esm/_core/onboarding-view-specification.schemas.js +14 -0
- package/dist/esm/_core/onboarding-view-specification.schemas.js.map +1 -1
- package/dist/esm/_core/placement-plan/placement-plan-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.family-aspects.d.ts +3 -0
- package/dist/esm/_core/placement-plan/placement-plan.family-aspects.d.ts.map +1 -0
- package/dist/esm/_core/placement-plan/placement-plan.family-aspects.js +31 -0
- package/dist/esm/_core/placement-plan/placement-plan.family-aspects.js.map +1 -0
- package/dist/esm/_core/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/requirements/requirements.family-aspects.d.ts +9 -0
- package/dist/esm/_core/requirements/requirements.family-aspects.d.ts.map +1 -0
- package/dist/esm/_core/requirements/requirements.family-aspects.js +40 -0
- package/dist/esm/_core/requirements/requirements.family-aspects.js.map +1 -0
- package/dist/esm/_core/resource-specification.schemas.d.ts +22 -0
- package/dist/esm/_core/resource-specification.schemas.d.ts.map +1 -1
- package/dist/esm/_core/resource-specification.schemas.js.map +1 -1
- package/dist/esm/_core/roadmap/roadmap-snapshot-generation.schemas.d.ts.map +1 -1
- package/dist/esm/_core/roadmap/roadmap-snapshot-generation.schemas.js +7 -2
- package/dist/esm/_core/roadmap/roadmap-snapshot-generation.schemas.js.map +1 -1
- package/dist/esm/_core/roadmap/roadmap-snapshot-validation.d.ts +15 -0
- package/dist/esm/_core/roadmap/roadmap-snapshot-validation.d.ts.map +1 -1
- package/dist/esm/_core/roadmap/roadmap-snapshot-validation.js.map +1 -1
- package/dist/esm/_core/roadmap/roadmap.family-aspects.d.ts +3 -0
- package/dist/esm/_core/roadmap/roadmap.family-aspects.d.ts.map +1 -0
- package/dist/esm/_core/roadmap/roadmap.family-aspects.js +26 -0
- package/dist/esm/_core/roadmap/roadmap.family-aspects.js.map +1 -0
- package/dist/esm/_core/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/_core/vision/vision.family-aspects.d.ts +11 -0
- package/dist/esm/_core/vision/vision.family-aspects.d.ts.map +1 -0
- package/dist/esm/_core/vision/vision.family-aspects.js +63 -0
- package/dist/esm/_core/vision/vision.family-aspects.js.map +1 -0
- package/dist/esm/application-creation/application-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 +193 -38
- 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 +157 -57
- 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 +38 -4
- package/dist/esm/application-creation/application-specification-family-identity.application-creation.schemas.d.ts.map +1 -1
- package/dist/esm/application-creation/application-specification-family-identity.application-creation.schemas.js +37 -3
- package/dist/esm/application-creation/application-specification-family-identity.application-creation.schemas.js.map +1 -1
- package/dist/esm/application-creation/document-facts.family-aspects.d.ts +12 -0
- package/dist/esm/application-creation/document-facts.family-aspects.d.ts.map +1 -0
- package/dist/esm/application-creation/document-facts.family-aspects.js +37 -0
- package/dist/esm/application-creation/document-facts.family-aspects.js.map +1 -0
- package/dist/esm/application-creation/document-release-policy.family-aspects.d.ts +3 -0
- package/dist/esm/application-creation/document-release-policy.family-aspects.d.ts.map +1 -0
- package/dist/esm/application-creation/document-release-policy.family-aspects.js +23 -0
- package/dist/esm/application-creation/document-release-policy.family-aspects.js.map +1 -0
- package/dist/esm/application-creation/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 +101 -85
- package/dist/esm/application-creation/playbooks.application-creation.schemas.d.ts.map +1 -1
- package/dist/esm/application-creation/playbooks.application-creation.schemas.js +171 -86
- package/dist/esm/application-creation/playbooks.application-creation.schemas.js.map +1 -1
- package/dist/esm/application-creation/structured-artifact-landing.application-creation.schemas.d.ts +2 -0
- package/dist/esm/application-creation/structured-artifact-landing.application-creation.schemas.d.ts.map +1 -1
- package/dist/esm/application-creation/structured-artifact-landing.application-creation.schemas.js +2 -0
- package/dist/esm/application-creation/structured-artifact-landing.application-creation.schemas.js.map +1 -1
- package/dist/esm/application-creation.exports.d.ts +11 -0
- package/dist/esm/application-creation.exports.d.ts.map +1 -1
- package/dist/esm/application-creation.exports.js +11 -0
- package/dist/esm/application-creation.exports.js.map +1 -1
- package/dist/esm/assurance/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 +999 -2
- package/dist/esm/assurance/assurance-authority-basis.definitions.d.ts.map +1 -1
- package/dist/esm/assurance/assurance-authority-basis.definitions.js +2127 -61
- package/dist/esm/assurance/assurance-authority-basis.definitions.js.map +1 -1
- package/dist/esm/assurance/assurance-authority-basis.schemas.d.ts +26 -0
- package/dist/esm/assurance/assurance-authority-basis.schemas.d.ts.map +1 -1
- package/dist/esm/assurance/assurance-document-system.definitions.d.ts.map +1 -1
- package/dist/esm/assurance/assurance-document-system.definitions.js +18 -3
- package/dist/esm/assurance/assurance-document-system.definitions.js.map +1 -1
- package/dist/esm/assurance/assurance-document-system.schemas.d.ts +32 -2
- package/dist/esm/assurance/assurance-document-system.schemas.d.ts.map +1 -1
- package/dist/esm/assurance/assurance-document-system.schemas.js +32 -2
- package/dist/esm/assurance/assurance-document-system.schemas.js.map +1 -1
- package/dist/esm/assurance/assurance-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-external-framework-mapping.d.ts +90 -0
- package/dist/esm/assurance/assurance-external-framework-mapping.d.ts.map +1 -0
- package/dist/esm/assurance/assurance-external-framework-mapping.js +134 -0
- package/dist/esm/assurance/assurance-external-framework-mapping.js.map +1 -0
- package/dist/esm/assurance/assurance-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 +78 -1
- package/dist/esm/assurance/assurance-objective-catalog.definitions.d.ts.map +1 -1
- package/dist/esm/assurance/assurance-objective-catalog.definitions.js +562 -5
- package/dist/esm/assurance/assurance-objective-catalog.definitions.js.map +1 -1
- package/dist/esm/assurance/assurance-program-generation.schemas.d.ts +148 -0
- package/dist/esm/assurance/assurance-program-generation.schemas.d.ts.map +1 -0
- package/dist/esm/assurance/assurance-program-generation.schemas.js +385 -0
- package/dist/esm/assurance/assurance-program-generation.schemas.js.map +1 -0
- package/dist/esm/assurance/assurance-program.family-aspects.d.ts +13 -0
- package/dist/esm/assurance/assurance-program.family-aspects.d.ts.map +1 -0
- package/dist/esm/assurance/assurance-program.family-aspects.js +16 -0
- package/dist/esm/assurance/assurance-program.family-aspects.js.map +1 -0
- package/dist/esm/assurance/assurance-program.schemas.d.ts +474 -14
- package/dist/esm/assurance/assurance-program.schemas.d.ts.map +1 -1
- package/dist/esm/assurance/assurance-program.schemas.js +319 -8
- package/dist/esm/assurance/assurance-program.schemas.js.map +1 -1
- package/dist/esm/assurance/assurance-source-registry.definitions.d.ts +1 -0
- package/dist/esm/assurance/assurance-source-registry.definitions.d.ts.map +1 -1
- package/dist/esm/assurance/assurance-source-registry.definitions.js +12 -0
- package/dist/esm/assurance/assurance-source-registry.definitions.js.map +1 -1
- package/dist/esm/assurance/assurance-sources.schemas.d.ts +76 -0
- package/dist/esm/assurance/assurance-sources.schemas.d.ts.map +1 -1
- package/dist/esm/assurance/assurance-sources.schemas.js +59 -0
- package/dist/esm/assurance/assurance-sources.schemas.js.map +1 -1
- package/dist/esm/assurance/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/assurance/document-publication.family-aspects.d.ts +29 -0
- package/dist/esm/assurance/document-publication.family-aspects.d.ts.map +1 -0
- package/dist/esm/assurance/document-publication.family-aspects.js +48 -0
- package/dist/esm/assurance/document-publication.family-aspects.js.map +1 -0
- package/dist/esm/assurance.exports.d.ts +2 -0
- package/dist/esm/assurance.exports.d.ts.map +1 -1
- package/dist/esm/assurance.exports.js +2 -0
- package/dist/esm/assurance.exports.js.map +1 -1
- package/dist/esm/companion-exports.d.ts +26 -8
- 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 +15 -1
- package/dist/esm/engine/applications/resources/application-api-keys.resource.specification.js.map +1 -1
- package/dist/esm/engine/applications/resources/application-metadata.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/applications/resources/application-metadata.resource.specification.js +4 -2
- 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 +17 -3
- package/dist/esm/engine/applications/resources/application-oauth-clients.resource.specification.js.map +1 -1
- package/dist/esm/engine/applications/resources/application-versions.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/applications/resources/application-versions.resource.specification.js +12 -10
- package/dist/esm/engine/applications/resources/application-versions.resource.specification.js.map +1 -1
- package/dist/esm/engine/applications/resources/applications.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/applications/resources/applications.resource.specification.js +4 -2
- package/dist/esm/engine/applications/resources/applications.resource.specification.js.map +1 -1
- package/dist/esm/engine/auth/resources/consumable-tokens.resource.specification.d.ts +36 -0
- package/dist/esm/engine/auth/resources/consumable-tokens.resource.specification.d.ts.map +1 -0
- package/dist/esm/engine/auth/resources/consumable-tokens.resource.specification.js +193 -0
- package/dist/esm/engine/auth/resources/consumable-tokens.resource.specification.js.map +1 -0
- package/dist/esm/engine/auth/resources/oauth-consent-grants.resource.specification.d.ts +1 -1
- package/dist/esm/engine/auth/resources/oauth-consent-grants.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/auth/resources/oauth-consent-grants.resource.specification.js +3 -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 +15 -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 +17 -3
- package/dist/esm/engine/auth/resources/organization-oauth-clients.resource.specification.js.map +1 -1
- package/dist/esm/engine/auth/resources/organization-provider-credentials.resource.specification.d.ts +32 -0
- package/dist/esm/engine/auth/resources/organization-provider-credentials.resource.specification.d.ts.map +1 -0
- package/dist/esm/engine/auth/resources/organization-provider-credentials.resource.specification.js +308 -0
- package/dist/esm/engine/auth/resources/organization-provider-credentials.resource.specification.js.map +1 -0
- package/dist/esm/engine/auth/resources/platform-access-grants.resource.specification.d.ts +1 -1
- package/dist/esm/engine/auth/resources/platform-access-grants.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/auth/resources/platform-access-grants.resource.specification.js +6 -4
- package/dist/esm/engine/auth/resources/platform-access-grants.resource.specification.js.map +1 -1
- package/dist/esm/engine/auth/resources/scim-provisioning-config.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/auth/resources/scim-provisioning-config.resource.specification.js +4 -2
- package/dist/esm/engine/auth/resources/scim-provisioning-config.resource.specification.js.map +1 -1
- package/dist/esm/engine/auth/resources/scim-tokens.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/auth/resources/scim-tokens.resource.specification.js +8 -6
- package/dist/esm/engine/auth/resources/scim-tokens.resource.specification.js.map +1 -1
- package/dist/esm/engine/auth/resources/siem-delivery-dlq.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/auth/resources/siem-delivery-dlq.resource.specification.js +11 -9
- package/dist/esm/engine/auth/resources/siem-delivery-dlq.resource.specification.js.map +1 -1
- package/dist/esm/engine/auth/resources/siem-export-config.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/auth/resources/siem-export-config.resource.specification.js +8 -6
- 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 +106 -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/sso-connections.resource.specification.js +2 -0
- package/dist/esm/engine/auth/resources/sso-connections.resource.specification.js.map +1 -1
- package/dist/esm/engine/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 +2 -2
- package/dist/esm/engine/billing/resources/billing-accounts.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/billing/resources/billing-accounts.resource.specification.js +6 -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.d.ts +8 -8
- package/dist/esm/engine/billing/resources/credit-pools.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/billing/resources/credit-pools.resource.specification.js +4 -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.d.ts +2 -2
- package/dist/esm/engine/billing/resources/invoice-refs.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/billing/resources/invoice-refs.resource.specification.js +5 -3
- package/dist/esm/engine/billing/resources/invoice-refs.resource.specification.js.map +1 -1
- package/dist/esm/engine/billing/resources/prices.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/billing/resources/prices.resource.specification.js +10 -8
- package/dist/esm/engine/billing/resources/prices.resource.specification.js.map +1 -1
- package/dist/esm/engine/billing/resources/products.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/billing/resources/products.resource.specification.js +10 -8
- 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 +16 -12
- package/dist/esm/engine/billing/resources/promotions.resource.specification.js.map +1 -1
- package/dist/esm/engine/billing/resources/referrals.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/billing/resources/referrals.resource.specification.js +10 -8
- package/dist/esm/engine/billing/resources/referrals.resource.specification.js.map +1 -1
- package/dist/esm/engine/billing/resources/subscriptions.resource.specification.d.ts +6 -6
- package/dist/esm/engine/billing/resources/subscriptions.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/billing/resources/subscriptions.resource.specification.js +8 -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 +13 -9
- 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 +30 -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.d.ts.map +1 -1
- package/dist/esm/engine/compliance/resources/audit-logs.resource.specification.js +10 -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 +11 -2
- package/dist/esm/engine/engine-resource-specifications.registry.js.map +1 -1
- package/dist/esm/engine/engine-resource-sub-domain.d.ts +83 -0
- package/dist/esm/engine/engine-resource-sub-domain.d.ts.map +1 -0
- package/dist/esm/engine/engine-resource-sub-domain.js +153 -0
- package/dist/esm/engine/engine-resource-sub-domain.js.map +1 -0
- package/dist/esm/engine/errors/error-messages.specification.d.ts.map +1 -1
- package/dist/esm/engine/errors/error-messages.specification.js +44 -1
- 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.d.ts.map +1 -1
- package/dist/esm/engine/features/resources/application-features.resource.specification.js +5 -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.d.ts.map +1 -1
- package/dist/esm/engine/features/resources/organization-features.resource.specification.js +5 -3
- package/dist/esm/engine/features/resources/organization-features.resource.specification.js.map +1 -1
- package/dist/esm/engine/features/resources/user-features.resource.specification.d.ts +1 -1
- package/dist/esm/engine/features/resources/user-features.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/features/resources/user-features.resource.specification.js +5 -3
- package/dist/esm/engine/features/resources/user-features.resource.specification.js.map +1 -1
- package/dist/esm/engine/files/resources/files.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/files/resources/files.resource.specification.js +12 -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.d.ts +3 -3
- package/dist/esm/engine/flows-actors/resources/a2a-push-delivery-log.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/flows-actors/resources/a2a-push-delivery-log.resource.specification.js +22 -10
- package/dist/esm/engine/flows-actors/resources/a2a-push-delivery-log.resource.specification.js.map +1 -1
- package/dist/esm/engine/flows-actors/resources/a2a-token-budget-state.resource.specification.d.ts +3 -3
- package/dist/esm/engine/flows-actors/resources/a2a-token-budget-state.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/flows-actors/resources/a2a-token-budget-state.resource.specification.js +6 -4
- package/dist/esm/engine/flows-actors/resources/a2a-token-budget-state.resource.specification.js.map +1 -1
- package/dist/esm/engine/flows-actors/resources/flow-actor-executions.resource.specification.d.ts +3 -3
- package/dist/esm/engine/flows-actors/resources/flow-actor-executions.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/flows-actors/resources/flow-actor-executions.resource.specification.js +4 -2
- package/dist/esm/engine/flows-actors/resources/flow-actor-executions.resource.specification.js.map +1 -1
- package/dist/esm/engine/flows-actors/resources/flow-actor-tasks.resource.specification.d.ts +3 -3
- package/dist/esm/engine/flows-actors/resources/flow-actor-tasks.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/flows-actors/resources/flow-actor-tasks.resource.specification.js +3 -1
- package/dist/esm/engine/flows-actors/resources/flow-actor-tasks.resource.specification.js.map +1 -1
- package/dist/esm/engine/frontend-components/app/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/app/public-layout-main-container.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/app/public-layout-main-container.frontend-component.specification.js +8 -3
- package/dist/esm/engine/frontend-components/app/public-layout-main-container.frontend-component.specification.js.map +1 -1
- package/dist/esm/engine/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.d.ts +1 -1
- package/dist/esm/engine/guidance/resources/guidance-state.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/guidance/resources/guidance-state.resource.specification.js +15 -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.d.ts +1 -1
- package/dist/esm/engine/guidance/resources/lifecycle-state.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/guidance/resources/lifecycle-state.resource.specification.js +12 -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 +9 -1
- package/dist/esm/engine/guidance/resources/progression-state.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/guidance/resources/progression-state.resource.specification.js +9 -6
- package/dist/esm/engine/guidance/resources/progression-state.resource.specification.js.map +1 -1
- package/dist/esm/engine/index.d.ts +2 -0
- package/dist/esm/engine/index.d.ts.map +1 -1
- package/dist/esm/engine/index.js +2 -0
- package/dist/esm/engine/index.js.map +1 -1
- package/dist/esm/engine/infrastructure/resources/data-seed-runs.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/infrastructure/resources/data-seed-runs.resource.specification.js +19 -17
- package/dist/esm/engine/infrastructure/resources/data-seed-runs.resource.specification.js.map +1 -1
- package/dist/esm/engine/infrastructure/resources/external-data-pipeline-states.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/infrastructure/resources/external-data-pipeline-states.resource.specification.js +9 -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.d.ts.map +1 -1
- package/dist/esm/engine/infrastructure/resources/job-executions.resource.specification.js +10 -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 +12 -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 +22 -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 +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 +14 -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 +31 -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.d.ts +1 -1
- package/dist/esm/engine/organizations/resources/organization-members.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/organizations/resources/organization-members.resource.specification.js +11 -9
- package/dist/esm/engine/organizations/resources/organization-members.resource.specification.js.map +1 -1
- package/dist/esm/engine/organizations/resources/organization-notifications.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/organizations/resources/organization-notifications.resource.specification.js +5 -3
- package/dist/esm/engine/organizations/resources/organization-notifications.resource.specification.js.map +1 -1
- package/dist/esm/engine/organizations/resources/organization-preferences.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/organizations/resources/organization-preferences.resource.specification.js +6 -4
- package/dist/esm/engine/organizations/resources/organization-preferences.resource.specification.js.map +1 -1
- package/dist/esm/engine/organizations/resources/organization-profiles.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/organizations/resources/organization-profiles.resource.specification.js +4 -2
- package/dist/esm/engine/organizations/resources/organization-profiles.resource.specification.js.map +1 -1
- package/dist/esm/engine/organizations/resources/organization-unit-members.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/organizations/resources/organization-unit-members.resource.specification.js +3 -1
- package/dist/esm/engine/organizations/resources/organization-unit-members.resource.specification.js.map +1 -1
- package/dist/esm/engine/organizations/resources/organization-units.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/organizations/resources/organization-units.resource.specification.js +2 -0
- package/dist/esm/engine/organizations/resources/organization-units.resource.specification.js.map +1 -1
- package/dist/esm/engine/organizations/resources/organizations.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/organizations/resources/organizations.resource.specification.js +9 -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.d.ts.map +1 -1
- package/dist/esm/engine/users/resources/anonymous-users.resource.specification.js +9 -7
- package/dist/esm/engine/users/resources/anonymous-users.resource.specification.js.map +1 -1
- package/dist/esm/engine/users/resources/inbound-contacts.resource.specification.d.ts +1 -1
- package/dist/esm/engine/users/resources/inbound-contacts.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/users/resources/inbound-contacts.resource.specification.js +11 -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.d.ts +1 -1
- package/dist/esm/engine/users/resources/user-credentials.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/users/resources/user-credentials.resource.specification.js +4 -2
- package/dist/esm/engine/users/resources/user-credentials.resource.specification.js.map +1 -1
- package/dist/esm/engine/users/resources/user-identity-links.resource.specification.d.ts +1 -1
- package/dist/esm/engine/users/resources/user-identity-links.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/users/resources/user-identity-links.resource.specification.js +10 -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 +5 -5
- package/dist/esm/engine/users/resources/user-preferences.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/users/resources/user-preferences.resource.specification.js +6 -4
- package/dist/esm/engine/users/resources/user-preferences.resource.specification.js.map +1 -1
- package/dist/esm/engine/users/resources/user-profiles.resource.specification.d.ts +1 -1
- package/dist/esm/engine/users/resources/user-profiles.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/users/resources/user-profiles.resource.specification.js +4 -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 +5 -5
- 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 +15 -11
- package/dist/esm/engine/users/resources/user-self-preferences.resource.specification.js.map +1 -1
- package/dist/esm/engine/users/resources/user-self-profiles.resource.specification.d.ts +1 -1
- package/dist/esm/engine/users/resources/user-self-profiles.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/users/resources/user-self-profiles.resource.specification.js +3 -1
- package/dist/esm/engine/users/resources/user-self-profiles.resource.specification.js.map +1 -1
- package/dist/esm/engine/users/resources/user-self.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/users/resources/user-self.resource.specification.js +11 -9
- 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 +95 -0
- package/dist/esm/engine/users/resources/users.resource.specification.js.map +1 -1
- package/dist/esm/technical-documentation/engine-documentation-specification-catalog.companion.d.ts +5 -0
- package/dist/esm/technical-documentation/engine-documentation-specification-catalog.companion.d.ts.map +1 -1
- package/dist/esm/technical-documentation/engine-documentation-specification-catalog.companion.js +451 -25
- 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 +37 -1
- package/dist/esm/technical-documentation/technical-documentation-units.schemas.js.map +1 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -0
- package/package.json +8 -8
- package/dist/esm/.builder.pid +0 -9
- package/dist/esm/_core/business-coverage/coverage-findings-validation.d.ts +0 -0
- package/dist/esm/_core/business-coverage/coverage-findings-validation.d.ts.map +0 -0
- package/dist/esm/_core/business-coverage/coverage-findings-validation.js.map +0 -0
- package/dist/esm/_core/business-coverage/coverage-findings.schemas.d.ts +0 -0
- package/dist/esm/_core/business-coverage/coverage-findings.schemas.d.ts.map +0 -0
- package/dist/esm/_core/business-coverage/coverage-findings.schemas.js.map +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"roadmap-snapshot-generation.schemas.d.ts","sourceRoot":"","sources":["../../../../../src/_core/roadmap/roadmap-snapshot-generation.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,OAAO,EAAE,mBAAmB,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;
|
|
1
|
+
{"version":3,"file":"roadmap-snapshot-generation.schemas.d.ts","sourceRoot":"","sources":["../../../../../src/_core/roadmap/roadmap-snapshot-generation.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,OAAO,EAAE,mBAAmB,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAGhF,OAAO,EAGL,KAAK,eAAe,EACrB,MAAM,4BAA4B,CAAC;AAIpC,eAAO,MAAM,4BAA4B;;;;;;;;;;;kBAWvC,CAAC;AAEH,oEAAoE;AACpE,eAAO,MAAM,+BAA+B;;;;;;;;;;;;;kBAS1C,CAAC;AACH,MAAM,MAAM,yBAAyB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,+BAA+B,CAAC,CAAC;AAExF,mFAAmF;AACnF,wBAAgB,8BAA8B,CAAC,KAAK,EAAE,OAAO,GAAG,eAAe,CAiB9E"}
|
|
@@ -2,6 +2,7 @@ import { z } from 'zod';
|
|
|
2
2
|
import { NonEmptyStringSchema } from '../market/market-references.schemas.js';
|
|
3
3
|
import { RoadmapPhaseHorizon, RoadmapPhaseKind } from './roadmap-phase.schemas.js';
|
|
4
4
|
import { ROADMAP_PHASE_REF_PREFIX } from './roadmap-references.schemas.js';
|
|
5
|
+
import { applyFamilyRefPrefix } from '../utils/family-ref-stamping.js';
|
|
5
6
|
import { RoadmapSnapshotSchema, RoadmapSnapshotVersion, } from './roadmap-snapshot.schemas.js';
|
|
6
7
|
const SemanticSlugSchema = z.string().regex(/^[a-z0-9]+(?:-[a-z0-9]+)*$/);
|
|
7
8
|
export const RoadmapPhaseGenerationSchema = z.strictObject({
|
|
@@ -20,7 +21,11 @@ export const RoadmapPhaseGenerationSchema = z.strictObject({
|
|
|
20
21
|
export const RoadmapSnapshotGenerationSchema = z.strictObject({
|
|
21
22
|
phases: z.array(RoadmapPhaseGenerationSchema).min(1),
|
|
22
23
|
}).superRefine((generated, context) => {
|
|
23
|
-
|
|
24
|
+
// Keyed on the STAMPED form, not on the authored slug, because `applyFamilyRefPrefix` is deliberately
|
|
25
|
+
// not injective: `mvp` and `roadmap-phase-mvp` are two distinct slugs that both become
|
|
26
|
+
// `roadmap-phase-mvp`. Checking the slug would let that pair through and produce two phases sharing
|
|
27
|
+
// one ref, which makes every `deliversRequirementRefs` edge pointing at it ambiguous.
|
|
28
|
+
reportDuplicates(generated.phases.map(phase => applyFamilyRefPrefix(phase.slug, ROADMAP_PHASE_REF_PREFIX)), 'slug', context);
|
|
24
29
|
reportDuplicates(generated.phases.map(phase => phase.sequence), 'sequence', context);
|
|
25
30
|
});
|
|
26
31
|
/** Normalize strict provider output into canonical persisted application truth. */
|
|
@@ -29,7 +34,7 @@ export function parseRoadmapSnapshotGeneration(input) {
|
|
|
29
34
|
return RoadmapSnapshotSchema.parse({
|
|
30
35
|
version: RoadmapSnapshotVersion.V1,
|
|
31
36
|
phases: generated.phases.map(phase => ({
|
|
32
|
-
ref:
|
|
37
|
+
ref: applyFamilyRefPrefix(phase.slug, ROADMAP_PHASE_REF_PREFIX),
|
|
33
38
|
sequence: phase.sequence,
|
|
34
39
|
title: phase.title,
|
|
35
40
|
...(phase.theme === null ? {} : { theme: phase.theme }),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"roadmap-snapshot-generation.schemas.js","sourceRoot":"","sources":["../../../../../src/_core/roadmap/roadmap-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,mBAAmB,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAChF,OAAO,EAAE,wBAAwB,EAAE,MAAM,8BAA8B,CAAC;AACxE,OAAO,EACL,qBAAqB,EACrB,sBAAsB,GAEvB,MAAM,4BAA4B,CAAC;AAEpC,MAAM,kBAAkB,GAAG,CAAC,CAAC,MAAM,EAAE,CAAC,KAAK,CAAC,4BAA4B,CAAC,CAAC;AAE1E,MAAM,CAAC,MAAM,4BAA4B,GAAG,CAAC,CAAC,YAAY,CAAC;IACzD,IAAI,EAAE,kBAAkB;IACxB,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE;IAC1B,KAAK,EAAE,oBAAoB;IAC3B,KAAK,EAAE,oBAAoB,CAAC,QAAQ,EAAE;IACtC,SAAS,EAAE,oBAAoB,CAAC,QAAQ,EAAE;IAC1C,YAAY,EAAE,oBAAoB,CAAC,QAAQ,EAAE;IAC7C,OAAO,EAAE,CAAC,CAAC,IAAI,CAAC,mBAAmB,CAAC,CAAC,QAAQ,EAAE;IAC/C,IAAI,EAAE,CAAC,CAAC,IAAI,CAAC,gBAAgB,CAAC,CAAC,QAAQ,EAAE;IACzC,uBAAuB,EAAE,CAAC,CAAC,KAAK,CAAC,oBAAoB,CAAC;IACtD,4BAA4B,EAAE,CAAC,CAAC,KAAK,CAAC,oBAAoB,CAAC;CAC5D,CAAC,CAAC;AAEH,oEAAoE;AACpE,MAAM,CAAC,MAAM,+BAA+B,GAAG,CAAC,CAAC,YAAY,CAAC;IAC5D,MAAM,EAAE,CAAC,CAAC,KAAK,CAAC,4BAA4B,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC;CACrD,CAAC,CAAC,WAAW,CAAC,CAAC,SAAS,EAAE,OAAO,EAAE,EAAE;IACpC,gBAAgB,CAAC,SAAS,CAAC,MAAM,CAAC,GAAG,CAAC,KAAK,CAAC,EAAE,CAAC,KAAK,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"roadmap-snapshot-generation.schemas.js","sourceRoot":"","sources":["../../../../../src/_core/roadmap/roadmap-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,mBAAmB,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAChF,OAAO,EAAE,wBAAwB,EAAE,MAAM,8BAA8B,CAAC;AACxE,OAAO,EAAE,oBAAoB,EAAE,MAAM,8BAA8B,CAAC;AACpE,OAAO,EACL,q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,IAAI,EAAE,KAAK,CAAC,IAAI,EAAE,CAAC;YACpD,GAAG,CAAC,KAAK,CAAC,uBAAuB,CAAC,MAAM,KAAK,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,uBAAuB,EAAE,KAAK,CAAC,uBAAuB,EAAE,CAAC;YACjH,GAAG,CAAC,KAAK,CAAC,4BAA4B,CAAC,MAAM,KAAK,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,4BAA4B,EAAE,KAAK,CAAC,4BAA4B,EAAE,CAAC;SACjI,CAAC,CAAC;KACJ,CAAC,CAAC;AACL,CAAC;AAED,SAAS,gBAAgB,CAAC,MAAoC,EAAE,KAA0B,EAAE,OAAwB;IAClH,MAAM,IAAI,GAAG,IAAI,GAAG,EAAmB,CAAC;IACxC,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,QAAQ,EAAE,KAAK,EAAE,KAAK,CAAC,EAAE,OAAO,EAAE,2BAA2B,KAAK,KAAK,MAAM,CAAC,KAAK,CAAC,GAAG,EAAE,CAAC,CAAC;IACvI,CAAC,CAAC,CAAC;AACL,CAAC","sourcesContent":["import { z } from 'zod';\n\nimport { NonEmptyStringSchema } from '../market/market-references.schemas';\nimport { RoadmapPhaseHorizon, RoadmapPhaseKind } from './roadmap-phase.schemas';\nimport { ROADMAP_PHASE_REF_PREFIX } from './roadmap-references.schemas';\nimport { applyFamilyRefPrefix } from '../utils/family-ref-stamping';\nimport {\n RoadmapSnapshotSchema,\n RoadmapSnapshotVersion,\n type RoadmapSnapshot,\n} from './roadmap-snapshot.schemas';\n\nconst SemanticSlugSchema = z.string().regex(/^[a-z0-9]+(?:-[a-z0-9]+)*$/);\n\nexport const RoadmapPhaseGenerationSchema = z.strictObject({\n slug: SemanticSlugSchema,\n sequence: z.number().int(),\n title: NonEmptyStringSchema,\n theme: NonEmptyStringSchema.nullable(),\n objective: NonEmptyStringSchema.nullable(),\n targetWindow: NonEmptyStringSchema.nullable(),\n horizon: z.enum(RoadmapPhaseHorizon).nullable(),\n kind: z.enum(RoadmapPhaseKind).nullable(),\n deliversRequirementRefs: z.array(NonEmptyStringSchema),\n deliversSuccessCriterionRefs: z.array(NonEmptyStringSchema),\n});\n\n/** Strict, non-vacuous provider response for the roadmap family. */\nexport const RoadmapSnapshotGenerationSchema = z.strictObject({\n phases: z.array(RoadmapPhaseGenerationSchema).min(1),\n}).superRefine((generated, context) => {\n // Keyed on the STAMPED form, not on the authored slug, because `applyFamilyRefPrefix` is deliberately\n // not injective: `mvp` and `roadmap-phase-mvp` are two distinct slugs that both become\n // `roadmap-phase-mvp`. Checking the slug would let that pair through and produce two phases sharing\n // one ref, which makes every `deliversRequirementRefs` edge pointing at it ambiguous.\n reportDuplicates(generated.phases.map(phase => applyFamilyRefPrefix(phase.slug, ROADMAP_PHASE_REF_PREFIX)), 'slug', context);\n reportDuplicates(generated.phases.map(phase => phase.sequence), 'sequence', context);\n});\nexport type RoadmapSnapshotGeneration = z.infer<typeof RoadmapSnapshotGenerationSchema>;\n\n/** Normalize strict provider output into canonical persisted application truth. */\nexport function parseRoadmapSnapshotGeneration(input: unknown): RoadmapSnapshot {\n const generated = RoadmapSnapshotGenerationSchema.parse(input);\n return RoadmapSnapshotSchema.parse({\n version: RoadmapSnapshotVersion.V1,\n phases: generated.phases.map(phase => ({\n ref: applyFamilyRefPrefix(phase.slug, ROADMAP_PHASE_REF_PREFIX),\n sequence: phase.sequence,\n title: phase.title,\n ...(phase.theme === null ? {} : { theme: phase.theme }),\n ...(phase.objective === null ? {} : { objective: phase.objective }),\n ...(phase.targetWindow === null ? {} : { targetWindow: phase.targetWindow }),\n ...(phase.horizon === null ? {} : { horizon: phase.horizon }),\n ...(phase.kind === null ? {} : { kind: phase.kind }),\n ...(phase.deliversRequirementRefs.length === 0 ? {} : { deliversRequirementRefs: phase.deliversRequirementRefs }),\n ...(phase.deliversSuccessCriterionRefs.length === 0 ? {} : { deliversSuccessCriterionRefs: phase.deliversSuccessCriterionRefs }),\n })),\n });\n}\n\nfunction reportDuplicates(values: readonly (string | number)[], field: 'slug' | 'sequence', context: z.RefinementCtx): void {\n const seen = new Set<string | number>();\n values.forEach((value, index) => {\n if (!seen.has(value)) {\n seen.add(value);\n return;\n }\n context.addIssue({ code: 'custom', path: ['phases', index, field], message: `duplicate roadmap phase ${field} \"${String(value)}\"` });\n });\n}\n"]}
|
|
@@ -96,6 +96,21 @@ export interface RoadmapSnapshotValidationResult {
|
|
|
96
96
|
ok: boolean;
|
|
97
97
|
issues: RoadmapSnapshotIssue[];
|
|
98
98
|
}
|
|
99
|
+
/**
|
|
100
|
+
* Options for this family validator.
|
|
101
|
+
*
|
|
102
|
+
* ## The cross-family sets are OPT-IN, and omitting one SKIPS its check
|
|
103
|
+
*
|
|
104
|
+
* A family validator sees one family. It cannot resolve a reference into another family's
|
|
105
|
+
* vocabulary unless you hand it that family's refs — so each `available*Refs` option is the caller
|
|
106
|
+
* saying "I have this context, use it". Omit one and the matching check does not run: no issue is
|
|
107
|
+
* reported, and the absence looks exactly like a snapshot with no such reference.
|
|
108
|
+
*
|
|
109
|
+
* That is deliberate — the families are decoupled on purpose — but it means a validator called with
|
|
110
|
+
* the snapshot alone is checking this family's INTERNAL consistency only. If you want dangling
|
|
111
|
+
* cross-family references caught, supply the sets; if you validate one family in isolation, expect
|
|
112
|
+
* them to be found later by whatever holds every family at once.
|
|
113
|
+
*/
|
|
99
114
|
export interface ValidateRoadmapSnapshotOptions {
|
|
100
115
|
/** Override "now" for `STALE_AUTHORED` checks (test affordance). Defaults to `new Date()`. */
|
|
101
116
|
now?: Date;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"roadmap-snapshot-validation.d.ts","sourceRoot":"","sources":["../../../../../src/_core/roadmap/roadmap-snapshot-validation.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAElE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiCG;AACH,oBAAY,wBAAwB;IAClC;;;;;OAKG;IACH,kBAAkB,uBAAuB;IACzC;;;OAGG;IACH,aAAa,kBAAkB;IAC/B;;;;OAIG;IACH,kBAAkB,uBAAuB;IACzC;;;;;;;;OAQG;IACH,mBAAmB,wBAAwB;IAC3C,6DAA6D;IAC7D,SAAS,cAAc;IACvB,yFAAyF;IACzF,cAAc,mBAAmB;IACjC;;;;;OAKG;IACH,uBAAuB,4BAA4B;IACnD;;;;OAIG;IACH,6BAA6B,kCAAkC;CAChE;AAED,oBAAY,4BAA4B;IACtC,KAAK,UAAU;IACf,IAAI,SAAS;CACd;AAED,MAAM,WAAW,oBAAoB;IACnC,IAAI,EAAE,wBAAwB,CAAC;IAC/B,gEAAgE;IAChE,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,4BAA4B,CAAC;CACxC;AAED,MAAM,WAAW,+BAA+B;IAC9C,gDAAgD;IAChD,EAAE,EAAE,OAAO,CAAC;IACZ,MAAM,EAAE,oBAAoB,EAAE,CAAC;CAChC;AAED,MAAM,WAAW,8BAA8B;IAC7C,8FAA8F;IAC9F,GAAG,CAAC,EAAE,IAAI,CAAC;IACX;;;;;;OAMG;IACH,wBAAwB,CAAC,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;IAC/C;;;;OAIG;IACH,6BAA6B,CAAC,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;CACrD;AAeD,wBAAgB,uBAAuB,CACrC,QAAQ,EAAE,eAAe,EACzB,OAAO,CAAC,EAAE,8BAA8B,GACvC,+BAA+B,CAejC;AAoKD,yDAAyD"}
|
|
1
|
+
{"version":3,"file":"roadmap-snapshot-validation.d.ts","sourceRoot":"","sources":["../../../../../src/_core/roadmap/roadmap-snapshot-validation.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAElE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiCG;AACH,oBAAY,wBAAwB;IAClC;;;;;OAKG;IACH,kBAAkB,uBAAuB;IACzC;;;OAGG;IACH,aAAa,kBAAkB;IAC/B;;;;OAIG;IACH,kBAAkB,uBAAuB;IACzC;;;;;;;;OAQG;IACH,mBAAmB,wBAAwB;IAC3C,6DAA6D;IAC7D,SAAS,cAAc;IACvB,yFAAyF;IACzF,cAAc,mBAAmB;IACjC;;;;;OAKG;IACH,uBAAuB,4BAA4B;IACnD;;;;OAIG;IACH,6BAA6B,kCAAkC;CAChE;AAED,oBAAY,4BAA4B;IACtC,KAAK,UAAU;IACf,IAAI,SAAS;CACd;AAED,MAAM,WAAW,oBAAoB;IACnC,IAAI,EAAE,wBAAwB,CAAC;IAC/B,gEAAgE;IAChE,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,4BAA4B,CAAC;CACxC;AAED,MAAM,WAAW,+BAA+B;IAC9C,gDAAgD;IAChD,EAAE,EAAE,OAAO,CAAC;IACZ,MAAM,EAAE,oBAAoB,EAAE,CAAC;CAChC;AAED;;;;;;;;;;;;;;GAcG;AACH,MAAM,WAAW,8BAA8B;IAC7C,8FAA8F;IAC9F,GAAG,CAAC,EAAE,IAAI,CAAC;IACX;;;;;;OAMG;IACH,wBAAwB,CAAC,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;IAC/C;;;;OAIG;IACH,6BAA6B,CAAC,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;CACrD;AAeD,wBAAgB,uBAAuB,CACrC,QAAQ,EAAE,eAAe,EACzB,OAAO,CAAC,EAAE,8BAA8B,GACvC,+BAA+B,CAejC;AAoKD,yDAAyD"}
|
|
@@ -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,CAAC,MAAM,CAAC,EAAE,CAAC;IACzB,CAAC,aAAa,CAAC,OAAO,CAAC,EAAE,EAAE;IAC3B,CAAC,aAAa,CAAC,SAAS,CAAC,EAAE,EAAE;IAC7B,CAAC,aAAa,CAAC,MAAM,CAAC,EAAE,GAAG;IAC3B,CAAC,aAAa,CAAC,SAAS,CAAC,EAAE,MAAM,CAAC,iBAAiB;CACpD,CAAC;AAEF,MAAM,UAAU,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AC,CAAC,KAAK,EAAE,KAAK,EAAE,EAAE;QACvC,IAAI,OAAO,EAAE,wBAAwB,KAAK,SAAS,EAAE,CAAC;YACpD,KAAK,CAAC,uBAAuB,EAAE,OAAO,CAAC,CAAC,MAAM,EAAE,QAAQ,EAAE,EAAE;gBAC1D,IAAI,OAAO,CAAC,wBAAyB,CAAC,GAAG,CAAC,MAAM,CAAC;oBAAE,OAAO;gBAC1D,MAAM,CAAC,IAAI,CAAC;oBACV,IAAI,EAAE,wBAAwB,CAAC,uBAAuB;oBACtD,IAAI,EAAE,UAAU,KAAK,6BAA6B,QAAQ,GAAG;oBAC7D,OAAO,EAAE,oBAAoB,MAAM,eAAe,KAAK,CAAC,GAAG,yDAAyD;oBACpH,QAAQ,EAAE,4BAA4B,CAAC,KAAK;iBAC7C,CAAC,CAAC;YACL,CAAC,CAAC,CAAC;QACL,CAAC;QACD,IAAI,OAAO,EAAE,6BAA6B,KAAK,SAAS,EAAE,CAAC;YACzD,KAAK,CAAC,4BAA4B,EAAE,OAAO,CAAC,CAAC,KAAK,EAAE,QAAQ,EAAE,EAAE;gBAC9D,IAAI,OAAO,CAAC,6BAA8B,CAAC,GAAG,CAAC,KAAK,CAAC;oBAAE,OAAO;gBAC9D,MAAM,CAAC,IAAI,CAAC;oBACV,IAAI,EAAE,wBAAwB,CAAC,6BAA6B;oBAC5D,IAAI,EAAE,UAAU,KAAK,kCAAkC,QAAQ,GAAG;oBAClE,OAAO,EAAE,0BAA0B,KAAK,eAAe,KAAK,CAAC,GAAG,+DAA+D;oBAC/H,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.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AAC,MAAM,EAAE,QAAQ,EAAE,EAAE;gBAC1D,IAAI,OAAO,CAAC,wBAAyB,CAAC,GAAG,CAAC,MAAM,CAAC;oBAAE,OAAO;gBAC1D,MAAM,CAAC,IAAI,CAAC;oBACV,IAAI,EAAE,wBAAwB,CAAC,uBAAuB;oBACtD,IAAI,EAAE,UAAU,KAAK,6BAA6B,QAAQ,GAAG;oBAC7D,OAAO,EAAE,oBAAoB,MAAM,eAAe,KAAK,CAAC,GAAG,yDAAyD;oBACpH,QAAQ,EAAE,4BAA4B,CAAC,KAAK;iBAC7C,CAAC,CAAC;YACL,CAAC,CAAC,CAAC;QACL,CAAC;QACD,IAAI,OAAO,EAAE,6BAA6B,KAAK,SAAS,EAAE,CAAC;YACzD,KAAK,CAAC,4BAA4B,EAAE,OAAO,CAAC,CAAC,KAAK,EAAE,QAAQ,EAAE,EAAE;gBAC9D,IAAI,OAAO,CAAC,6BAA8B,CAAC,GAAG,CAAC,KAAK,CAAC;oBAAE,OAAO;gBAC9D,MAAM,CAAC,IAAI,CAAC;oBACV,IAAI,EAAE,wBAAwB,CAAC,6BAA6B;oBAC5D,IAAI,EAAE,UAAU,KAAK,kCAAkC,QAAQ,GAAG;oBAClE,OAAO,EAAE,0BAA0B,KAAK,eAAe,KAAK,CAAC,GAAG,+DAA+D;oBAC/H,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\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 @@
|
|
|
1
|
+
{"version":3,"file":"roadmap.family-aspects.d.ts","sourceRoot":"","sources":["../../../../../src/_core/roadmap/roadmap.family-aspects.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,2BAA2B,CAAC;AAI1E,eAAO,MAAM,sBAAsB,EAAE,wBAqBpC,CAAC"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { ApplicationSpecificationFamilySemanticSchemaRef } from '../../application-creation/application-specification-family-identity.application-creation.schemas.js';
|
|
2
|
+
import { FamilyAspectKind } from '../family-aspects.schemas.js';
|
|
3
|
+
import { RoadmapPhaseConfigSchema } from './roadmap-phase.schemas.js';
|
|
4
|
+
export const ROADMAP_FAMILY_ASPECTS = {
|
|
5
|
+
schemaRef: ApplicationSpecificationFamilySemanticSchemaRef.ROADMAP_SNAPSHOT,
|
|
6
|
+
aspects: [
|
|
7
|
+
{
|
|
8
|
+
key: 'roadmap.phase',
|
|
9
|
+
snapshotPath: 'phases',
|
|
10
|
+
kind: FamilyAspectKind.COLLECTION,
|
|
11
|
+
itemSchema: RoadmapPhaseConfigSchema,
|
|
12
|
+
businessKey: 'ref',
|
|
13
|
+
headlineField: 'title',
|
|
14
|
+
edges: [
|
|
15
|
+
/*
|
|
16
|
+
* One field, two admissible kinds: a phase delivers functional AND non-functional
|
|
17
|
+
* requirements through the same list, told apart by their `functional-requirement-*` /
|
|
18
|
+
* `nfr-*` prefixes. Membership resolution — see the contract's `targetAspects` JSDoc.
|
|
19
|
+
*/
|
|
20
|
+
{ field: 'deliversRequirementRefs', targetAspects: ['requirements.functional', 'requirements.non-functional'] },
|
|
21
|
+
{ field: 'deliversSuccessCriterionRefs', targetAspects: ['vision.success-criterion'] },
|
|
22
|
+
],
|
|
23
|
+
},
|
|
24
|
+
],
|
|
25
|
+
};
|
|
26
|
+
//# sourceMappingURL=roadmap.family-aspects.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"roadmap.family-aspects.js","sourceRoot":"","sources":["../../../../../src/_core/roadmap/roadmap.family-aspects.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,+CAA+C,EAAE,MAAM,mGAAmG,CAAC;AAEpK,OAAO,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAC7D,OAAO,EAAE,wBAAwB,EAAE,MAAM,yBAAyB,CAAC;AAEnE,MAAM,CAAC,MAAM,sBAAsB,GAA6B;IAC9D,SAAS,EAAE,+CAA+C,CAAC,gBAAgB;IAC3E,OAAO,EAAE;QACP;YACE,GAAG,EAAE,eAAe;YACpB,YAAY,EAAE,QAAQ;YACtB,IAAI,EAAE,gBAAgB,CAAC,UAAU;YACjC,UAAU,EAAE,wBAAwB;YACpC,WAAW,EAAE,KAAK;YAClB,aAAa,EAAE,OAAO;YACtB,KAAK,EAAE;gBACL;;;;mBAIG;gBACH,EAAE,KAAK,EAAE,yBAAyB,EAAE,aAAa,EAAE,CAAC,yBAAyB,EAAE,6BAA6B,CAAC,EAAE;gBAC/G,EAAE,KAAK,EAAE,8BAA8B,EAAE,aAAa,EAAE,CAAC,0BAA0B,CAAC,EAAE;aACvF;SACF;KACF;CACF,CAAC","sourcesContent":["import { ApplicationSpecificationFamilySemanticSchemaRef } from '../../application-creation/application-specification-family-identity.application-creation.schemas';\nimport type { FamilyAspectsDeclaration } from '../family-aspects.schemas';\nimport { FamilyAspectKind } from '../family-aspects.schemas';\nimport { RoadmapPhaseConfigSchema } from './roadmap-phase.schemas';\n\nexport const ROADMAP_FAMILY_ASPECTS: FamilyAspectsDeclaration = {\n schemaRef: ApplicationSpecificationFamilySemanticSchemaRef.ROADMAP_SNAPSHOT,\n aspects: [\n {\n key: 'roadmap.phase',\n snapshotPath: 'phases',\n kind: FamilyAspectKind.COLLECTION,\n itemSchema: RoadmapPhaseConfigSchema,\n businessKey: 'ref',\n headlineField: 'title',\n edges: [\n /*\n * One field, two admissible kinds: a phase delivers functional AND non-functional\n * requirements through the same list, told apart by their `functional-requirement-*` /\n * `nfr-*` prefixes. Membership resolution — see the contract's `targetAspects` JSDoc.\n */\n { field: 'deliversRequirementRefs', targetAspects: ['requirements.functional', 'requirements.non-functional'] },\n { field: 'deliversSuccessCriterionRefs', targetAspects: ['vision.success-criterion'] },\n ],\n },\n ],\n};\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,CAAC,CAAC,YAAY,CAAC;IAC1D,SAAS,EAAE,oBAAoB;IAC/B,QA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AAO,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,oBAAoB,CAAC;CACrC,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,6BAA6B,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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"]}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { FamilyAspectsDeclaration } from '../family-aspects.schemas';
|
|
2
|
+
/**
|
|
3
|
+
* The vision family's second-level aspects — see `family-aspects.schemas.ts` for the contract.
|
|
4
|
+
*
|
|
5
|
+
* The three singletons (idea, problem, mission) are aspects too: they participate in the product
|
|
6
|
+
* graph as TARGETS (a roadmap phase delivers success criteria; nothing yet references the mission,
|
|
7
|
+
* but the popup surface is the same machinery either way), and declaring them keeps "second level"
|
|
8
|
+
* meaning the SNAPSHOT'S OWN STRUCTURE rather than "whatever happens to be an array".
|
|
9
|
+
*/
|
|
10
|
+
export declare const VISION_FAMILY_ASPECTS: FamilyAspectsDeclaration;
|
|
11
|
+
//# sourceMappingURL=vision.family-aspects.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"vision.family-aspects.d.ts","sourceRoot":"","sources":["../../../../../src/_core/vision/vision.family-aspects.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,2BAA2B,CAAC;AAQ1E;;;;;;;GAOG;AACH,eAAO,MAAM,qBAAqB,EAAE,wBA8CnC,CAAC"}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { ApplicationSpecificationFamilySemanticSchemaRef } from '../../application-creation/application-specification-family-identity.application-creation.schemas.js';
|
|
2
|
+
import { FamilyAspectKind } from '../family-aspects.schemas.js';
|
|
3
|
+
import { VisionIdeaConfigSchema } from './vision-idea.schemas.js';
|
|
4
|
+
import { VisionSuccessCriterionConfigSchema } from './vision-success-criterion.schemas.js';
|
|
5
|
+
import { VisionConstraintConfigSchema } from './vision-constraint.schemas.js';
|
|
6
|
+
import { VisionProblemConfigSchema } from './vision-problem.schemas.js';
|
|
7
|
+
import { VisionMissionConfigSchema } from './vision-mission.schemas.js';
|
|
8
|
+
/**
|
|
9
|
+
* The vision family's second-level aspects — see `family-aspects.schemas.ts` for the contract.
|
|
10
|
+
*
|
|
11
|
+
* The three singletons (idea, problem, mission) are aspects too: they participate in the product
|
|
12
|
+
* graph as TARGETS (a roadmap phase delivers success criteria; nothing yet references the mission,
|
|
13
|
+
* but the popup surface is the same machinery either way), and declaring them keeps "second level"
|
|
14
|
+
* meaning the SNAPSHOT'S OWN STRUCTURE rather than "whatever happens to be an array".
|
|
15
|
+
*/
|
|
16
|
+
export const VISION_FAMILY_ASPECTS = {
|
|
17
|
+
schemaRef: ApplicationSpecificationFamilySemanticSchemaRef.VISION_SNAPSHOT,
|
|
18
|
+
aspects: [
|
|
19
|
+
{
|
|
20
|
+
key: 'vision.idea',
|
|
21
|
+
snapshotPath: 'idea',
|
|
22
|
+
kind: FamilyAspectKind.SINGLETON,
|
|
23
|
+
itemSchema: VisionIdeaConfigSchema,
|
|
24
|
+
headlineField: 'oneLiner',
|
|
25
|
+
edges: [],
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
key: 'vision.problem',
|
|
29
|
+
snapshotPath: 'problem',
|
|
30
|
+
kind: FamilyAspectKind.SINGLETON,
|
|
31
|
+
itemSchema: VisionProblemConfigSchema,
|
|
32
|
+
headlineField: 'statement',
|
|
33
|
+
edges: [],
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
key: 'vision.mission',
|
|
37
|
+
snapshotPath: 'mission',
|
|
38
|
+
kind: FamilyAspectKind.SINGLETON,
|
|
39
|
+
itemSchema: VisionMissionConfigSchema,
|
|
40
|
+
headlineField: 'mission',
|
|
41
|
+
edges: [],
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
key: 'vision.success-criterion',
|
|
45
|
+
snapshotPath: 'successCriteria',
|
|
46
|
+
kind: FamilyAspectKind.COLLECTION,
|
|
47
|
+
itemSchema: VisionSuccessCriterionConfigSchema,
|
|
48
|
+
businessKey: 'ref',
|
|
49
|
+
headlineField: 'statement',
|
|
50
|
+
edges: [],
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
key: 'vision.constraint',
|
|
54
|
+
snapshotPath: 'constraints',
|
|
55
|
+
kind: FamilyAspectKind.COLLECTION,
|
|
56
|
+
itemSchema: VisionConstraintConfigSchema,
|
|
57
|
+
businessKey: 'ref',
|
|
58
|
+
headlineField: 'statement',
|
|
59
|
+
edges: [],
|
|
60
|
+
},
|
|
61
|
+
],
|
|
62
|
+
};
|
|
63
|
+
//# sourceMappingURL=vision.family-aspects.js.map
|