@automovie/evidence 0.3.4 → 0.4.0
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/README.md +7 -102
- package/lib/IAutoMovieDevelopmentProps.d.ts +24 -21
- package/lib/IAutoMovieEvidenceConfigProps.d.ts +19 -18
- package/lib/IAutoMovieNarrativeProps.d.ts +10 -8
- package/lib/IAutoMovieNoNarrativeProps.d.ts +4 -6
- package/lib/createDevelopmentContractClaims.d.ts +15 -23
- package/lib/createDevelopmentContractClaims.js +22 -25
- package/lib/createDevelopmentContractClaims.js.map +1 -1
- package/lib/createEngineeringClaims.d.ts +16 -21
- package/lib/createEngineeringClaims.js +15 -20
- package/lib/createEngineeringClaims.js.map +1 -1
- package/lib/createEvidenceConfig.d.ts +7 -14
- package/lib/createEvidenceConfig.js +12 -16
- package/lib/createEvidenceConfig.js.map +1 -1
- package/lib/createResearchClaims.d.ts +4 -12
- package/lib/createResearchClaims.js +4 -12
- package/lib/createResearchClaims.js.map +1 -1
- package/lib/internal/IContractLocation.d.ts +6 -7
- package/lib/internal/PRODUCTION_CONTRACTS.d.ts +14 -7
- package/lib/internal/PRODUCTION_CONTRACTS.js +14 -7
- package/lib/internal/PRODUCTION_CONTRACTS.js.map +1 -1
- package/lib/internal/SKILLS_ROOT.d.ts +13 -7
- package/lib/internal/SKILLS_ROOT.js +13 -7
- package/lib/internal/SKILLS_ROOT.js.map +1 -1
- package/lib/internal/STORY_CONTRACTS.d.ts +12 -9
- package/lib/internal/STORY_CONTRACTS.js +12 -9
- package/lib/internal/STORY_CONTRACTS.js.map +1 -1
- package/lib/internal/assertFilmCatalogLayout.d.ts +8 -14
- package/lib/internal/assertFilmCatalogLayout.js +128 -33
- package/lib/internal/assertFilmCatalogLayout.js.map +1 -1
- package/lib/internal/assertProductionContractLayout.d.ts +2 -10
- package/lib/internal/assertProductionContractLayout.js +2 -10
- package/lib/internal/assertProductionContractLayout.js.map +1 -1
- package/lib/internal/createReferenceRoot.d.ts +0 -8
- package/lib/internal/createReferenceRoot.js +0 -8
- package/lib/internal/createReferenceRoot.js.map +1 -1
- package/lib/internal/hasMatchingFile.d.ts +2 -10
- package/lib/internal/hasMatchingFile.js +2 -10
- package/lib/internal/hasMatchingFile.js.map +1 -1
- package/lib/internal/resolveSkillsDirectory.d.ts +2 -9
- package/lib/internal/resolveSkillsDirectory.js +2 -9
- package/lib/internal/resolveSkillsDirectory.js.map +1 -1
- package/lib/narrative/AuthoredLayer.d.ts +2 -6
- package/lib/narrative/EvidenceMetadataRewriteOwnership.d.ts +0 -5
- package/lib/narrative/IEvidenceMetadataRenderedSample.d.ts +1 -8
- package/lib/narrative/IEvidenceMetadataRewriteFile.d.ts +1 -8
- package/lib/narrative/IEvidenceMetadataRewriteProps.d.ts +1 -8
- package/lib/narrative/IEvidenceMetadataRewriteReport.d.ts +1 -8
- package/lib/narrative/IPackageChecklistClaimProps.d.ts +2 -7
- package/lib/narrative/IPackageContractProps.d.ts +4 -11
- package/lib/narrative/IPackagePopulationContractProps.d.ts +1 -8
- package/lib/narrative/IProductionConfigProps.d.ts +7 -11
- package/lib/narrative/IProductionConstruction.d.ts +3 -10
- package/lib/narrative/NarrativeLayer.d.ts +3 -8
- package/lib/narrative/NarrativeScope.d.ts +2 -7
- package/lib/narrative/ProductionStage.d.ts +2 -6
- package/lib/narrative/createBriefFiles.d.ts +5 -12
- package/lib/narrative/createBriefFiles.js +5 -12
- package/lib/narrative/createBriefFiles.js.map +1 -1
- package/lib/narrative/createNarrativeUnitFiles.d.ts +0 -8
- package/lib/narrative/createNarrativeUnitFiles.js +0 -8
- package/lib/narrative/createNarrativeUnitFiles.js.map +1 -1
- package/lib/narrative/createPackageChecklistClaim.d.ts +3 -11
- package/lib/narrative/createPackageChecklistClaim.js +3 -11
- package/lib/narrative/createPackageChecklistClaim.js.map +1 -1
- package/lib/narrative/createPackageContract.d.ts +0 -8
- package/lib/narrative/createPackageContract.js +0 -8
- package/lib/narrative/createPackageContract.js.map +1 -1
- package/lib/narrative/createPackagePopulationContract.d.ts +3 -11
- package/lib/narrative/createPackagePopulationContract.js +3 -11
- package/lib/narrative/createPackagePopulationContract.js.map +1 -1
- package/lib/narrative/createProductionClaims.d.ts +0 -8
- package/lib/narrative/createProductionClaims.js +0 -8
- package/lib/narrative/createProductionClaims.js.map +1 -1
- package/lib/narrative/createProductionConfig.d.ts +1 -11
- package/lib/narrative/createProductionConfig.js +1 -11
- package/lib/narrative/createProductionConfig.js.map +1 -1
- package/lib/narrative/createSettingsFiles.d.ts +0 -8
- package/lib/narrative/createSettingsFiles.js +0 -8
- package/lib/narrative/createSettingsFiles.js.map +1 -1
- package/lib/narrative/internal/AUTHORED_LAYERS.d.ts +14 -7
- package/lib/narrative/internal/AUTHORED_LAYERS.js +14 -7
- package/lib/narrative/internal/AUTHORED_LAYERS.js.map +1 -1
- package/lib/narrative/internal/claims/createDiscoveryClaim.d.ts +17 -22
- package/lib/narrative/internal/claims/createDiscoveryClaim.js +17 -22
- package/lib/narrative/internal/claims/createDiscoveryClaim.js.map +1 -1
- package/lib/narrative/internal/claims/createInstructionCoverageClaim.d.ts +7 -15
- package/lib/narrative/internal/claims/createInstructionCoverageClaim.js +7 -15
- package/lib/narrative/internal/claims/createInstructionCoverageClaim.js.map +1 -1
- package/lib/narrative/internal/claims/createLayerClaims.d.ts +0 -8
- package/lib/narrative/internal/claims/createLayerClaims.js +0 -8
- package/lib/narrative/internal/claims/createLayerClaims.js.map +1 -1
- package/lib/narrative/internal/claims/createOutlineClaims.d.ts +6 -14
- package/lib/narrative/internal/claims/createOutlineClaims.js +6 -14
- package/lib/narrative/internal/claims/createOutlineClaims.js.map +1 -1
- package/lib/narrative/internal/claims/createPopulationObligationClaims.d.ts +3 -12
- package/lib/narrative/internal/claims/createPopulationObligationClaims.js +3 -12
- package/lib/narrative/internal/claims/createPopulationObligationClaims.js.map +1 -1
- package/lib/narrative/internal/claims/createReviewClaims.d.ts +11 -19
- package/lib/narrative/internal/claims/createReviewClaims.js +54 -39
- package/lib/narrative/internal/claims/createReviewClaims.js.map +1 -1
- package/lib/narrative/internal/claims/createSettingCoverageClaim.d.ts +0 -8
- package/lib/narrative/internal/claims/createSettingCoverageClaim.js +0 -8
- package/lib/narrative/internal/claims/createSettingCoverageClaim.js.map +1 -1
- package/lib/narrative/internal/collectProductionClaims.d.ts +1 -11
- package/lib/narrative/internal/collectProductionClaims.js +1 -11
- package/lib/narrative/internal/collectProductionClaims.js.map +1 -1
- package/lib/narrative/internal/constructionStage.d.ts +2 -9
- package/lib/narrative/internal/constructionStage.js +2 -9
- package/lib/narrative/internal/constructionStage.js.map +1 -1
- package/lib/narrative/internal/createGraphConfig.d.ts +4 -12
- package/lib/narrative/internal/createGraphConfig.js +4 -12
- package/lib/narrative/internal/createGraphConfig.js.map +1 -1
- package/lib/narrative/internal/isCanonLayer.d.ts +2 -9
- package/lib/narrative/internal/isCanonLayer.js +2 -9
- package/lib/narrative/internal/isCanonLayer.js.map +1 -1
- package/lib/narrative/internal/metadataRewrite/ACKNOWLEDGEMENT.d.ts +10 -7
- package/lib/narrative/internal/metadataRewrite/ACKNOWLEDGEMENT.js +10 -7
- package/lib/narrative/internal/metadataRewrite/ACKNOWLEDGEMENT.js.map +1 -1
- package/lib/narrative/internal/metadataRewrite/EvidenceDeclarationKind.d.ts +1 -8
- package/lib/narrative/internal/metadataRewrite/HEADING_ACKNOWLEDGEMENT.d.ts +10 -7
- package/lib/narrative/internal/metadataRewrite/HEADING_ACKNOWLEDGEMENT.js +10 -7
- package/lib/narrative/internal/metadataRewrite/HEADING_ACKNOWLEDGEMENT.js.map +1 -1
- package/lib/narrative/internal/metadataRewrite/HEADING_REVIEW.d.ts +10 -7
- package/lib/narrative/internal/metadataRewrite/HEADING_REVIEW.js +10 -7
- package/lib/narrative/internal/metadataRewrite/HEADING_REVIEW.js.map +1 -1
- package/lib/narrative/internal/metadataRewrite/IEvidenceHeading.d.ts +1 -8
- package/lib/narrative/internal/metadataRewrite/IEvidenceSection.d.ts +1 -8
- package/lib/narrative/internal/metadataRewrite/IMetadataFragment.d.ts +1 -8
- package/lib/narrative/internal/metadataRewrite/IProjectionSegment.d.ts +1 -8
- package/lib/narrative/internal/metadataRewrite/IProtectedProjection.d.ts +1 -8
- package/lib/narrative/internal/metadataRewrite/REVIEW.d.ts +11 -7
- package/lib/narrative/internal/metadataRewrite/REVIEW.js +11 -7
- package/lib/narrative/internal/metadataRewrite/REVIEW.js.map +1 -1
- package/lib/narrative/internal/metadataRewrite/SUSPICIOUS.d.ts +13 -8
- package/lib/narrative/internal/metadataRewrite/SUSPICIOUS.js +13 -8
- package/lib/narrative/internal/metadataRewrite/SUSPICIOUS.js.map +1 -1
- package/lib/narrative/internal/metadataRewrite/UTF8.d.ts +10 -7
- package/lib/narrative/internal/metadataRewrite/UTF8.js +10 -7
- package/lib/narrative/internal/metadataRewrite/UTF8.js.map +1 -1
- package/lib/narrative/internal/metadataRewrite/between.d.ts +1 -11
- package/lib/narrative/internal/metadataRewrite/between.js +1 -11
- package/lib/narrative/internal/metadataRewrite/between.js.map +1 -1
- package/lib/narrative/internal/metadataRewrite/continuation.d.ts +1 -11
- package/lib/narrative/internal/metadataRewrite/continuation.js +1 -11
- package/lib/narrative/internal/metadataRewrite/continuation.js.map +1 -1
- package/lib/narrative/internal/metadataRewrite/declarationKind.d.ts +1 -11
- package/lib/narrative/internal/metadataRewrite/declarationKind.js +1 -11
- package/lib/narrative/internal/metadataRewrite/declarationKind.js.map +1 -1
- package/lib/narrative/internal/metadataRewrite/decode.d.ts +1 -11
- package/lib/narrative/internal/metadataRewrite/decode.js +1 -11
- package/lib/narrative/internal/metadataRewrite/decode.js.map +1 -1
- package/lib/narrative/internal/metadataRewrite/directory.d.ts +1 -11
- package/lib/narrative/internal/metadataRewrite/directory.js +1 -11
- package/lib/narrative/internal/metadataRewrite/directory.js.map +1 -1
- package/lib/narrative/internal/metadataRewrite/errorMessage.d.ts +1 -11
- package/lib/narrative/internal/metadataRewrite/errorMessage.js +1 -11
- package/lib/narrative/internal/metadataRewrite/errorMessage.js.map +1 -1
- package/lib/narrative/internal/metadataRewrite/evidenceHeading.d.ts +1 -11
- package/lib/narrative/internal/metadataRewrite/evidenceHeading.js +1 -11
- package/lib/narrative/internal/metadataRewrite/evidenceHeading.js.map +1 -1
- package/lib/narrative/internal/metadataRewrite/evidenceSections.d.ts +1 -11
- package/lib/narrative/internal/metadataRewrite/evidenceSections.js +1 -11
- package/lib/narrative/internal/metadataRewrite/evidenceSections.js.map +1 -1
- package/lib/narrative/internal/metadataRewrite/findClose.d.ts +1 -11
- package/lib/narrative/internal/metadataRewrite/findClose.js +1 -11
- package/lib/narrative/internal/metadataRewrite/findClose.js.map +1 -1
- package/lib/narrative/internal/metadataRewrite/firstDifference.d.ts +1 -11
- package/lib/narrative/internal/metadataRewrite/firstDifference.js +1 -11
- package/lib/narrative/internal/metadataRewrite/firstDifference.js.map +1 -1
- package/lib/narrative/internal/metadataRewrite/flatFingerprintStart.d.ts +2 -9
- package/lib/narrative/internal/metadataRewrite/flatFingerprintStart.js +2 -9
- package/lib/narrative/internal/metadataRewrite/flatFingerprintStart.js.map +1 -1
- package/lib/narrative/internal/metadataRewrite/invalidUtf8Offset.d.ts +1 -11
- package/lib/narrative/internal/metadataRewrite/invalidUtf8Offset.js +1 -11
- package/lib/narrative/internal/metadataRewrite/invalidUtf8Offset.js.map +1 -1
- package/lib/narrative/internal/metadataRewrite/isDeclaration.d.ts +1 -11
- package/lib/narrative/internal/metadataRewrite/isDeclaration.js +1 -11
- package/lib/narrative/internal/metadataRewrite/isDeclaration.js.map +1 -1
- package/lib/narrative/internal/metadataRewrite/isNodeError.d.ts +1 -11
- package/lib/narrative/internal/metadataRewrite/isNodeError.js +1 -11
- package/lib/narrative/internal/metadataRewrite/isNodeError.js.map +1 -1
- package/lib/narrative/internal/metadataRewrite/lineEnding.d.ts +1 -11
- package/lib/narrative/internal/metadataRewrite/lineEnding.js +1 -11
- package/lib/narrative/internal/metadataRewrite/lineEnding.js.map +1 -1
- package/lib/narrative/internal/metadataRewrite/locate.d.ts +1 -11
- package/lib/narrative/internal/metadataRewrite/locate.js +1 -11
- package/lib/narrative/internal/metadataRewrite/locate.js.map +1 -1
- package/lib/narrative/internal/metadataRewrite/markdownFiles.d.ts +1 -11
- package/lib/narrative/internal/metadataRewrite/markdownFiles.js +1 -11
- package/lib/narrative/internal/metadataRewrite/markdownFiles.js.map +1 -1
- package/lib/narrative/internal/metadataRewrite/metadataOwnership.d.ts +1 -11
- package/lib/narrative/internal/metadataRewrite/metadataOwnership.js +1 -11
- package/lib/narrative/internal/metadataRewrite/metadataOwnership.js.map +1 -1
- package/lib/narrative/internal/metadataRewrite/normalizeFile.d.ts +1 -11
- package/lib/narrative/internal/metadataRewrite/normalizeFile.js +1 -11
- package/lib/narrative/internal/metadataRewrite/normalizeFile.js.map +1 -1
- package/lib/narrative/internal/metadataRewrite/occurrenceOffsets.d.ts +1 -11
- package/lib/narrative/internal/metadataRewrite/occurrenceOffsets.js +1 -11
- package/lib/narrative/internal/metadataRewrite/occurrenceOffsets.js.map +1 -1
- package/lib/narrative/internal/metadataRewrite/occurrences.d.ts +1 -11
- package/lib/narrative/internal/metadataRewrite/occurrences.js +1 -11
- package/lib/narrative/internal/metadataRewrite/occurrences.js.map +1 -1
- package/lib/narrative/internal/metadataRewrite/originalOffset.d.ts +1 -11
- package/lib/narrative/internal/metadataRewrite/originalOffset.js +1 -11
- package/lib/narrative/internal/metadataRewrite/originalOffset.js.map +1 -1
- package/lib/narrative/internal/metadataRewrite/project.d.ts +1 -11
- package/lib/narrative/internal/metadataRewrite/project.js +1 -11
- package/lib/narrative/internal/metadataRewrite/project.js.map +1 -1
- package/lib/narrative/internal/metadataRewrite/protectedFileKind.d.ts +1 -11
- package/lib/narrative/internal/metadataRewrite/protectedFileKind.js +1 -11
- package/lib/narrative/internal/metadataRewrite/protectedFileKind.js.map +1 -1
- package/lib/narrative/internal/metadataRewrite/replacementSafety.d.ts +1 -11
- package/lib/narrative/internal/metadataRewrite/replacementSafety.js +1 -11
- package/lib/narrative/internal/metadataRewrite/replacementSafety.js.map +1 -1
- package/lib/narrative/internal/metadataRewrite/sameMetadata.d.ts +1 -11
- package/lib/narrative/internal/metadataRewrite/sameMetadata.js +1 -11
- package/lib/narrative/internal/metadataRewrite/sameMetadata.js.map +1 -1
- package/lib/narrative/internal/metadataRewrite/selectFiles.d.ts +1 -11
- package/lib/narrative/internal/metadataRewrite/selectFiles.js +1 -11
- package/lib/narrative/internal/metadataRewrite/selectFiles.js.map +1 -1
- package/lib/narrative/internal/metadataRewrite/singleLineDeclaration.d.ts +1 -11
- package/lib/narrative/internal/metadataRewrite/singleLineDeclaration.js +1 -11
- package/lib/narrative/internal/metadataRewrite/singleLineDeclaration.js.map +1 -1
- package/lib/narrative/internal/metadataRewrite/textLocation.d.ts +1 -11
- package/lib/narrative/internal/metadataRewrite/textLocation.js +1 -11
- package/lib/narrative/internal/metadataRewrite/textLocation.js.map +1 -1
- package/lib/narrative/internal/metadataRewrite/validateRenderedSample.d.ts +1 -11
- package/lib/narrative/internal/metadataRewrite/validateRenderedSample.js +1 -11
- package/lib/narrative/internal/metadataRewrite/validateRenderedSample.js.map +1 -1
- package/lib/narrative/internal/metadataRewrite/withoutEnding.d.ts +1 -11
- package/lib/narrative/internal/metadataRewrite/withoutEnding.js +1 -11
- package/lib/narrative/internal/metadataRewrite/withoutEnding.js.map +1 -1
- package/lib/narrative/internal/productionLayers.d.ts +1 -11
- package/lib/narrative/internal/productionLayers.js +1 -11
- package/lib/narrative/internal/productionLayers.js.map +1 -1
- package/lib/narrative/internal/readSettingsFiles.d.ts +4 -12
- package/lib/narrative/internal/readSettingsFiles.js +8 -13
- package/lib/narrative/internal/readSettingsFiles.js.map +1 -1
- package/lib/narrative/internal/references/createCoverageReference.d.ts +2 -10
- package/lib/narrative/internal/references/createCoverageReference.js +2 -10
- package/lib/narrative/internal/references/createCoverageReference.js.map +1 -1
- package/lib/narrative/internal/references/createDiscoveryReferences.d.ts +5 -13
- package/lib/narrative/internal/references/createDiscoveryReferences.js +5 -13
- package/lib/narrative/internal/references/createDiscoveryReferences.js.map +1 -1
- package/lib/narrative/internal/references/createLanguageDiscoveryReferences.d.ts +1 -11
- package/lib/narrative/internal/references/createLanguageDiscoveryReferences.js +1 -11
- package/lib/narrative/internal/references/createLanguageDiscoveryReferences.js.map +1 -1
- package/lib/narrative/internal/references/createLanguagePrincipleReferences.d.ts +2 -9
- package/lib/narrative/internal/references/createLanguagePrincipleReferences.js +2 -9
- package/lib/narrative/internal/references/createLanguagePrincipleReferences.js.map +1 -1
- package/lib/narrative/internal/references/createLineageReference.d.ts +6 -14
- package/lib/narrative/internal/references/createLineageReference.js +6 -14
- package/lib/narrative/internal/references/createLineageReference.js.map +1 -1
- package/lib/narrative/internal/references/createLocalContractReference.d.ts +0 -8
- package/lib/narrative/internal/references/createLocalContractReference.js +0 -8
- package/lib/narrative/internal/references/createLocalContractReference.js.map +1 -1
- package/lib/narrative/internal/references/createPrincipleReferences.d.ts +0 -8
- package/lib/narrative/internal/references/createPrincipleReferences.js +0 -8
- package/lib/narrative/internal/references/createPrincipleReferences.js.map +1 -1
- package/lib/narrative/internal/references/createSettingReferences.d.ts +3 -10
- package/lib/narrative/internal/references/createSettingReferences.js +3 -10
- package/lib/narrative/internal/references/createSettingReferences.js.map +1 -1
- package/lib/narrative/internal/references/createSharedReference.d.ts +7 -15
- package/lib/narrative/internal/references/createSharedReference.js +7 -15
- package/lib/narrative/internal/references/createSharedReference.js.map +1 -1
- package/lib/narrative/internal/references/createUpstreamReference.d.ts +0 -8
- package/lib/narrative/internal/references/createUpstreamReference.js +0 -8
- package/lib/narrative/internal/references/createUpstreamReference.js.map +1 -1
- package/lib/narrative/internal/references/layerFiles.d.ts +4 -12
- package/lib/narrative/internal/references/layerFiles.js +4 -12
- package/lib/narrative/internal/references/layerFiles.js.map +1 -1
- package/lib/narrative/internal/settingsEntryAnchor.d.ts +2 -9
- package/lib/narrative/internal/settingsEntryAnchor.js +2 -9
- package/lib/narrative/internal/settingsEntryAnchor.js.map +1 -1
- package/lib/narrative/internal/topology/createTopologyFiles.d.ts +1 -11
- package/lib/narrative/internal/topology/createTopologyFiles.js +1 -11
- package/lib/narrative/internal/topology/createTopologyFiles.js.map +1 -1
- package/lib/narrative/internal/utilities/BODY_ROOT.d.ts +14 -7
- package/lib/narrative/internal/utilities/BODY_ROOT.js +14 -7
- package/lib/narrative/internal/utilities/BODY_ROOT.js.map +1 -1
- package/lib/narrative/internal/utilities/PACKAGE_DOCS_ROOT.d.ts +15 -7
- package/lib/narrative/internal/utilities/PACKAGE_DOCS_ROOT.js +15 -7
- package/lib/narrative/internal/utilities/PACKAGE_DOCS_ROOT.js.map +1 -1
- package/lib/narrative/internal/utilities/assertProductionEvidenceSources.d.ts +2 -9
- package/lib/narrative/internal/utilities/assertProductionEvidenceSources.js +2 -9
- package/lib/narrative/internal/utilities/assertProductionEvidenceSources.js.map +1 -1
- package/lib/narrative/internal/utilities/createContractDirectory.d.ts +4 -10
- package/lib/narrative/internal/utilities/createContractDirectory.js +4 -10
- package/lib/narrative/internal/utilities/createContractDirectory.js.map +1 -1
- package/lib/narrative/internal/utilities/createContractRoot.d.ts +6 -12
- package/lib/narrative/internal/utilities/createContractRoot.js +6 -12
- package/lib/narrative/internal/utilities/createContractRoot.js.map +1 -1
- package/lib/narrative/internal/utilities/createEvidenceFiles.d.ts +1 -11
- package/lib/narrative/internal/utilities/createEvidenceFiles.js +1 -11
- package/lib/narrative/internal/utilities/createEvidenceFiles.js.map +1 -1
- package/lib/narrative/internal/utilities/createUnitFiles.d.ts +0 -8
- package/lib/narrative/internal/utilities/createUnitFiles.js +0 -8
- package/lib/narrative/internal/utilities/createUnitFiles.js.map +1 -1
- package/lib/narrative/internal/utilities/hasStoryContract.d.ts +0 -8
- package/lib/narrative/internal/utilities/hasStoryContract.js +0 -8
- package/lib/narrative/internal/utilities/hasStoryContract.js.map +1 -1
- package/lib/narrative/internal/utilities/referenceLocation.d.ts +2 -9
- package/lib/narrative/internal/utilities/referenceLocation.js +2 -9
- package/lib/narrative/internal/utilities/referenceLocation.js.map +1 -1
- package/lib/narrative/internal/validateSettingsOutline.d.ts +6 -12
- package/lib/narrative/internal/validateSettingsOutline.js +27 -20
- package/lib/narrative/internal/validateSettingsOutline.js.map +1 -1
- package/lib/narrative/isFirstPartPilot.d.ts +1 -11
- package/lib/narrative/isFirstPartPilot.js +1 -11
- package/lib/narrative/isFirstPartPilot.js.map +1 -1
- package/lib/narrative/verifyEvidenceMetadataRewrite.d.ts +2 -10
- package/lib/narrative/verifyEvidenceMetadataRewrite.js +2 -10
- package/lib/narrative/verifyEvidenceMetadataRewrite.js.map +1 -1
- package/package.json +6 -5
- package/src/IAutoMovieDevelopmentProps.ts +25 -21
- package/src/IAutoMovieEvidenceConfigProps.ts +19 -18
- package/src/IAutoMovieNarrativeProps.ts +10 -8
- package/src/IAutoMovieNoNarrativeProps.ts +4 -6
- package/src/createDevelopmentContractClaims.ts +23 -25
- package/src/createEngineeringClaims.ts +17 -22
- package/src/createEvidenceConfig.ts +16 -16
- package/src/createResearchClaims.ts +4 -12
- package/src/internal/IContractLocation.ts +6 -7
- package/src/internal/PRODUCTION_CONTRACTS.ts +14 -7
- package/src/internal/SKILLS_ROOT.ts +13 -7
- package/src/internal/STORY_CONTRACTS.ts +12 -9
- package/src/internal/assertFilmCatalogLayout.ts +160 -42
- package/src/internal/assertProductionContractLayout.ts +2 -10
- package/src/internal/createReferenceRoot.ts +0 -8
- package/src/internal/hasMatchingFile.ts +2 -10
- package/src/internal/index.ts +1 -1
- package/src/internal/resolveSkillsDirectory.ts +2 -9
- package/src/narrative/AuthoredLayer.ts +2 -6
- package/src/narrative/EvidenceMetadataRewriteOwnership.ts +0 -5
- package/src/narrative/IEvidenceMetadataRenderedSample.ts +1 -8
- package/src/narrative/IEvidenceMetadataRewriteFile.ts +1 -8
- package/src/narrative/IEvidenceMetadataRewriteProps.ts +1 -8
- package/src/narrative/IEvidenceMetadataRewriteReport.ts +1 -8
- package/src/narrative/IPackageChecklistClaimProps.ts +2 -7
- package/src/narrative/IPackageContractProps.ts +4 -11
- package/src/narrative/IPackagePopulationContractProps.ts +1 -8
- package/src/narrative/IProductionConfigProps.ts +7 -11
- package/src/narrative/IProductionConstruction.ts +3 -10
- package/src/narrative/NarrativeLayer.ts +3 -8
- package/src/narrative/NarrativeScope.ts +2 -7
- package/src/narrative/ProductionStage.ts +2 -6
- package/src/narrative/createBriefFiles.ts +5 -12
- package/src/narrative/createNarrativeUnitFiles.ts +0 -8
- package/src/narrative/createPackageChecklistClaim.ts +3 -11
- package/src/narrative/createPackageContract.ts +0 -8
- package/src/narrative/createPackagePopulationContract.ts +3 -11
- package/src/narrative/createProductionClaims.ts +0 -8
- package/src/narrative/createProductionConfig.ts +1 -11
- package/src/narrative/createSettingsFiles.ts +0 -8
- package/src/narrative/internal/AUTHORED_LAYERS.ts +14 -7
- package/src/narrative/internal/claims/createDiscoveryClaim.ts +17 -22
- package/src/narrative/internal/claims/createInstructionCoverageClaim.ts +7 -15
- package/src/narrative/internal/claims/createLayerClaims.ts +0 -8
- package/src/narrative/internal/claims/createOutlineClaims.ts +6 -14
- package/src/narrative/internal/claims/createPopulationObligationClaims.ts +3 -12
- package/src/narrative/internal/claims/createReviewClaims.ts +54 -39
- package/src/narrative/internal/claims/createSettingCoverageClaim.ts +0 -8
- package/src/narrative/internal/collectProductionClaims.ts +1 -11
- package/src/narrative/internal/constructionStage.ts +2 -9
- package/src/narrative/internal/createGraphConfig.ts +4 -12
- package/src/narrative/internal/isCanonLayer.ts +2 -9
- package/src/narrative/internal/metadataRewrite/ACKNOWLEDGEMENT.ts +10 -7
- package/src/narrative/internal/metadataRewrite/EvidenceDeclarationKind.ts +1 -8
- package/src/narrative/internal/metadataRewrite/HEADING_ACKNOWLEDGEMENT.ts +10 -7
- package/src/narrative/internal/metadataRewrite/HEADING_REVIEW.ts +10 -7
- package/src/narrative/internal/metadataRewrite/IEvidenceHeading.ts +1 -8
- package/src/narrative/internal/metadataRewrite/IEvidenceSection.ts +1 -8
- package/src/narrative/internal/metadataRewrite/IMetadataFragment.ts +1 -8
- package/src/narrative/internal/metadataRewrite/IProjectionSegment.ts +1 -8
- package/src/narrative/internal/metadataRewrite/IProtectedProjection.ts +1 -8
- package/src/narrative/internal/metadataRewrite/REVIEW.ts +11 -7
- package/src/narrative/internal/metadataRewrite/SUSPICIOUS.ts +13 -8
- package/src/narrative/internal/metadataRewrite/UTF8.ts +10 -7
- package/src/narrative/internal/metadataRewrite/between.ts +1 -11
- package/src/narrative/internal/metadataRewrite/continuation.ts +1 -11
- package/src/narrative/internal/metadataRewrite/declarationKind.ts +1 -11
- package/src/narrative/internal/metadataRewrite/decode.ts +1 -11
- package/src/narrative/internal/metadataRewrite/directory.ts +1 -11
- package/src/narrative/internal/metadataRewrite/errorMessage.ts +1 -11
- package/src/narrative/internal/metadataRewrite/evidenceHeading.ts +1 -11
- package/src/narrative/internal/metadataRewrite/evidenceSections.ts +1 -11
- package/src/narrative/internal/metadataRewrite/findClose.ts +1 -11
- package/src/narrative/internal/metadataRewrite/firstDifference.ts +1 -11
- package/src/narrative/internal/metadataRewrite/flatFingerprintStart.ts +2 -9
- package/src/narrative/internal/metadataRewrite/invalidUtf8Offset.ts +1 -11
- package/src/narrative/internal/metadataRewrite/isDeclaration.ts +1 -11
- package/src/narrative/internal/metadataRewrite/isNodeError.ts +1 -11
- package/src/narrative/internal/metadataRewrite/lineEnding.ts +1 -11
- package/src/narrative/internal/metadataRewrite/locate.ts +1 -11
- package/src/narrative/internal/metadataRewrite/markdownFiles.ts +1 -11
- package/src/narrative/internal/metadataRewrite/metadataOwnership.ts +1 -11
- package/src/narrative/internal/metadataRewrite/normalizeFile.ts +1 -11
- package/src/narrative/internal/metadataRewrite/occurrenceOffsets.ts +1 -11
- package/src/narrative/internal/metadataRewrite/occurrences.ts +1 -11
- package/src/narrative/internal/metadataRewrite/originalOffset.ts +1 -11
- package/src/narrative/internal/metadataRewrite/project.ts +1 -11
- package/src/narrative/internal/metadataRewrite/protectedFileKind.ts +1 -11
- package/src/narrative/internal/metadataRewrite/replacementSafety.ts +1 -11
- package/src/narrative/internal/metadataRewrite/sameMetadata.ts +1 -11
- package/src/narrative/internal/metadataRewrite/selectFiles.ts +1 -11
- package/src/narrative/internal/metadataRewrite/singleLineDeclaration.ts +1 -11
- package/src/narrative/internal/metadataRewrite/textLocation.ts +1 -11
- package/src/narrative/internal/metadataRewrite/validateRenderedSample.ts +1 -11
- package/src/narrative/internal/metadataRewrite/withoutEnding.ts +1 -11
- package/src/narrative/internal/productionLayers.ts +1 -11
- package/src/narrative/internal/readSettingsFiles.ts +8 -13
- package/src/narrative/internal/references/createCoverageReference.ts +2 -10
- package/src/narrative/internal/references/createDiscoveryReferences.ts +5 -13
- package/src/narrative/internal/references/createLanguageDiscoveryReferences.ts +1 -11
- package/src/narrative/internal/references/createLanguagePrincipleReferences.ts +2 -9
- package/src/narrative/internal/references/createLineageReference.ts +6 -14
- package/src/narrative/internal/references/createLocalContractReference.ts +0 -8
- package/src/narrative/internal/references/createPrincipleReferences.ts +0 -8
- package/src/narrative/internal/references/createSettingReferences.ts +3 -10
- package/src/narrative/internal/references/createSharedReference.ts +7 -15
- package/src/narrative/internal/references/createUpstreamReference.ts +0 -8
- package/src/narrative/internal/references/layerFiles.ts +4 -12
- package/src/narrative/internal/settingsEntryAnchor.ts +2 -9
- package/src/narrative/internal/topology/createTopologyFiles.ts +1 -11
- package/src/narrative/internal/utilities/BODY_ROOT.ts +14 -7
- package/src/narrative/internal/utilities/PACKAGE_DOCS_ROOT.ts +15 -7
- package/src/narrative/internal/utilities/assertProductionEvidenceSources.ts +2 -9
- package/src/narrative/internal/utilities/createContractDirectory.ts +4 -10
- package/src/narrative/internal/utilities/createContractRoot.ts +6 -12
- package/src/narrative/internal/utilities/createEvidenceFiles.ts +1 -11
- package/src/narrative/internal/utilities/createUnitFiles.ts +0 -8
- package/src/narrative/internal/utilities/hasStoryContract.ts +0 -8
- package/src/narrative/internal/utilities/referenceLocation.ts +2 -9
- package/src/narrative/internal/validateSettingsOutline.ts +27 -20
- package/src/narrative/isFirstPartPilot.ts +1 -11
- package/src/narrative/verifyEvidenceMetadataRewrite.ts +2 -10
|
@@ -12,20 +12,12 @@ import { createEvidenceFiles } from "./internal/utilities/createEvidenceFiles";
|
|
|
12
12
|
* Creates one work-local contract claim.
|
|
13
13
|
*
|
|
14
14
|
* Every selected host answers every H2 item of the document and may not exclude
|
|
15
|
-
* one. Independent review is represented by the separate review family.
|
|
16
|
-
*
|
|
17
|
-
*
|
|
15
|
+
* one. Independent review is represented by the separate review family. Set
|
|
16
|
+
* `checklist: false` for a role the population distributes among its hosts
|
|
17
|
+
* rather than one every host repeats.
|
|
18
18
|
*
|
|
19
19
|
* `symbol` is required rather than defaulted, because it is the same choice:
|
|
20
20
|
* `"h2"` binds the condition to every unit, `"file"` binds it once per file.
|
|
21
|
-
*
|
|
22
|
-
* @evidence contracts/development/implementation.md#principled-implementation Exact work-subtree paths and explicit file/H2 granularity are validated before building native Markdown references; principles remain per-H2 checklists, while population obligations are delegated to their dedicated factory. Every reference roots at the production's own `docs/contracts`, because only work documents are admitted and a production owns its work contracts even when a workspace keeps the shared ones elsewhere.
|
|
23
|
-
* @evidence contracts/development/implementation.md#clear-and-simple-structure One factory owns local contract validation and detached construction evidence mapping; independent review remains a separate claim family.
|
|
24
|
-
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts The reserved discovery carrier and obligation subtree are excluded because built-in discovery and once-per-population factories own those duties; these checks apply to every work document.
|
|
25
|
-
* @evidence contracts/development/common.md#meaningful-documentation The comment explains per-host versus distributed duties, required symbol choice and independent review separation; errors identify unsupported document or host forms.
|
|
26
|
-
* @evidence contracts/development/implementation.md#efficient-algorithms For d document paths and f file globs, validation scans path characters and builds document references plus detached selectors in linear total input/output size; set construction detects duplicate documents without pairwise comparison.
|
|
27
|
-
* @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work This factory owns one claim build from current props and performs no coordinated request reuse; returned references and arrays belong to that build.
|
|
28
|
-
* @evidenceExclude contracts/development/implementation.md#bound-retention-and-release-resources Temporary normalized documents and sets are released on return or throw; returned claim arrays reference caller file/symbol values where assigned and contain no open handle or task.
|
|
29
21
|
*/
|
|
30
22
|
export function createPackageChecklistClaim(
|
|
31
23
|
props: IPackageChecklistClaimProps,
|
|
@@ -12,14 +12,6 @@ import { createUnitFiles } from "./internal/utilities/createUnitFiles";
|
|
|
12
12
|
* A work rule usually binds several layers in the same terms, and writing that
|
|
13
13
|
* out is the same claim four times with only the layer's name, stage, and file
|
|
14
14
|
* glob changing. State the layers instead, and the wiring follows from them.
|
|
15
|
-
*
|
|
16
|
-
* @evidence contracts/development/implementation.md#principled-implementation Each declared layer stage becomes one checklist claim with that layer's exact narrative selector, after an empty layer map is rejected.
|
|
17
|
-
* @evidence contracts/development/implementation.md#clear-and-simple-structure The wrapper keeps adopted rule identity and layer ownership together, delegating exact document/host checks to createPackageChecklistClaim.
|
|
18
|
-
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Every authored layer is admitted on the same terms; no special claim name or fixture changes validation.
|
|
19
|
-
* @evidence contracts/development/common.md#meaningful-documentation The prose states that one adopted contract expands to its owning layers; props document granularity, activation and pilot scope.
|
|
20
|
-
* @evidence contracts/development/implementation.md#efficient-algorithms For l owning layers, d document-path characters and f selector output, expansion costs O(l*(d+f)) through delegated validation; l is at most the supported authored layer set for typed callers.
|
|
21
|
-
* @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work Each layer needs a distinct claim and diagnostic name; equivalent shared document paths are inputs, not cached effectful results, and no cross-request coordinator is created.
|
|
22
|
-
* @evidenceExclude contracts/development/implementation.md#bound-retention-and-release-resources The result owns l claim objects and their delegated arrays; local layer entries are discarded on completion or failure, with no handles or running tasks.
|
|
23
15
|
*/
|
|
24
16
|
export function createPackageContract(
|
|
25
17
|
props: IPackageContractProps,
|
|
@@ -15,17 +15,9 @@ import { createUnitFiles } from "./internal/utilities/createUnitFiles";
|
|
|
15
15
|
* Creates one population obligation claim per selected layer.
|
|
16
16
|
*
|
|
17
17
|
* The layer's own documents answer each duty once, at file level, through
|
|
18
|
-
* detached construction evidence. Each duty has exactly one answering
|
|
19
|
-
*
|
|
20
|
-
*
|
|
21
|
-
*
|
|
22
|
-
* @evidence contracts/development/implementation.md#principled-implementation An exact work/obligations path yields one unique-evidence file-level duty reference per owning layer; pilot-only inapplicability is checked before constructing claims. The reference roots at the production's own `docs/contracts`, because the work obligation is production-owned even when a workspace keeps the shared contracts elsewhere.
|
|
23
|
-
* @evidence contracts/development/implementation.md#clear-and-simple-structure The factory keeps once-per-population ownership separate from per-H2 checklist expansion and delegates manuscript selectors to createUnitFiles.
|
|
24
|
-
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Pilot-only deferral follows the explicit scope contract; complete-work obligations cannot be suppressed through the inapplicable flag.
|
|
25
|
-
* @evidence contracts/development/common.md#meaningful-documentation The comment identifies detached evidence, file-level answering and exactly one answering document per duty; props state ownership and deferral.
|
|
26
|
-
* @evidence contracts/development/implementation.md#efficient-algorithms The document path is scanned once, then l layer entries each produce selector strings and one reference. Time and allocation scale with path bytes plus layer/selector output; typed workloads have only the authored layer set.
|
|
27
|
-
* @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work Claims remain distinct per layer with their own selectors and stages; this stateless factory coordinates no reusable requests or mutable shared result.
|
|
28
|
-
* @evidenceExclude contracts/development/implementation.md#bound-retention-and-release-resources Local path and entry arrays expire on return or throw; the returned claims own their reference and selector arrays and acquire no file handles or tasks.
|
|
18
|
+
* detached construction evidence. Each duty has exactly one answering document.
|
|
19
|
+
* A duty is never repeated per H2, because a population question restated on
|
|
20
|
+
* every unit is no longer one comparison.
|
|
29
21
|
*/
|
|
30
22
|
export function createPackagePopulationContract(
|
|
31
23
|
props: IPackagePopulationContractProps,
|
|
@@ -8,14 +8,6 @@ import { collectProductionClaims } from "./internal/collectProductionClaims";
|
|
|
8
8
|
*
|
|
9
9
|
* Returns the same full population used by createProductionConfig. Source stage
|
|
10
10
|
* declarations do not certify independent review or creative approval.
|
|
11
|
-
*
|
|
12
|
-
* @evidence contracts/development/implementation.md#principled-implementation Delegating to collectProductionClaims preserves the same ordered generated, custom, support and review claim population used by the config factory, without interpreting stage declarations as approval.
|
|
13
|
-
* @evidence contracts/development/implementation.md#clear-and-simple-structure This entry exposes native claim construction without a configuration wrapper; the collector owns the same composition used by createProductionConfig.
|
|
14
|
-
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts The function neither filters known failures nor invents claims for a caller; all production source validation remains in the common collector.
|
|
15
|
-
* @evidence contracts/development/common.md#meaningful-documentation The comment distinguishes structural claim creation from independent review and identifies equivalence with createProductionConfig population.
|
|
16
|
-
* @evidence contracts/development/implementation.md#efficient-algorithms The dominant cost is the collector's contract discovery and claim expansion over selected layers, documents and custom/support claims; the returned array grows with emitted claims and references.
|
|
17
|
-
* @evidence contracts/development/implementation.md#reuse-equivalent-work Every call rebuilds from current contract files and props; filesystem discovery can change, and no stable dependency snapshot permits cross-call reuse here.
|
|
18
|
-
* @evidence contracts/development/implementation.md#bound-retention-and-release-resources The returned native claim objects are caller-owned; synchronous discovery retains no registry, open handle or background task.
|
|
19
11
|
*/
|
|
20
12
|
export function createProductionClaims(
|
|
21
13
|
props: IProductionConfigProps,
|
|
@@ -3,17 +3,7 @@ import type { IEvidenceConfig } from "@wrtnlabs/evidence";
|
|
|
3
3
|
import type { IProductionConfigProps } from "./IProductionConfigProps";
|
|
4
4
|
import { createGraphConfig } from "./internal/createGraphConfig";
|
|
5
5
|
|
|
6
|
-
/**
|
|
7
|
-
* Creates a native Evidence configuration from the production's claim families.
|
|
8
|
-
*
|
|
9
|
-
* @evidence contracts/development/implementation.md#principled-implementation Delegates complete native graph assembly to createGraphConfig without adding a second evaluator or approval policy.
|
|
10
|
-
* @evidence contracts/development/implementation.md#clear-and-simple-structure This public factory and the claim-only factory share the same collector and native claim representation.
|
|
11
|
-
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts The resulting graph retains its selected checklist, coverage, lineage and current-review duties for native Evidence to evaluate.
|
|
12
|
-
* @evidence contracts/development/common.md#meaningful-documentation The input documents stage and route choices; this function returns configuration data rather than an acceptance result.
|
|
13
|
-
* @evidence contracts/development/implementation.md#efficient-algorithms The collector's contract discovery and emitted claims dominate runtime and storage; this wrapper adds one constant-size native configuration object.
|
|
14
|
-
* @evidence contracts/development/implementation.md#reuse-equivalent-work One collector invocation constructs the graph, with no duplicate evaluation or cross-call capture.
|
|
15
|
-
* @evidence contracts/development/implementation.md#bound-retention-and-release-resources Only the returned native graph survives; no identity registry, handle or background task is retained.
|
|
16
|
-
*/
|
|
6
|
+
/** Creates a native Evidence configuration from the production's claim families. */
|
|
17
7
|
export function createProductionConfig(
|
|
18
8
|
props: IProductionConfigProps,
|
|
19
9
|
): IEvidenceConfig {
|
|
@@ -4,14 +4,6 @@ import { SETTINGS_DOMAINS } from "./internal/SETTINGS_DOMAINS";
|
|
|
4
4
|
* Selects the settings canon in every supported layout, excluding the outline:
|
|
5
5
|
* the scaffold's `settings/<domain>/<subject>.md` domain folders, numbered
|
|
6
6
|
* `settings/NNN-subject/` folders and legacy flat `settings/*.md`.
|
|
7
|
-
*
|
|
8
|
-
* @evidence contracts/development/implementation.md#principled-implementation One glob per scaffold domain admits the documented domain layout that readSettingsFiles reads, beside the legacy flat glob and the numbered subject-folder glob; the outline subtree matches none of them.
|
|
9
|
-
* @evidence contracts/development/implementation.md#clear-and-simple-structure The selector only describes canon population from the shared SETTINGS_DOMAINS list; readSettingsFiles and outline validation own concrete ordering and layout checks.
|
|
10
|
-
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts All three layout forms are supported production formats, not fixture exceptions; the function does not admit arbitrary recursive settings nesting or unknown domain folders.
|
|
11
|
-
* @evidence contracts/development/common.md#meaningful-documentation The comment states domain, numbered and legacy layout coverage and explicitly excludes the outline.
|
|
12
|
-
* @evidence contracts/development/implementation.md#efficient-algorithms The function builds one string per fixed domain plus two, with constant time and space.
|
|
13
|
-
* @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work Each caller receives a separate array; the trivial allocation coordinates no reusable work or mutable shared selection.
|
|
14
|
-
* @evidenceExclude contracts/development/implementation.md#bound-retention-and-release-resources The returned array has a fixed number of entries and no external resource; the function retains no per-call state.
|
|
15
7
|
*/
|
|
16
8
|
export function createSettingsFiles(): string[] {
|
|
17
9
|
return [
|
|
@@ -3,13 +3,20 @@ import type { AuthoredLayer } from "../AuthoredLayer";
|
|
|
3
3
|
/**
|
|
4
4
|
* Every authored layer, canon first and then in pipeline order.
|
|
5
5
|
*
|
|
6
|
-
* Principled implementation: The array enumerates both canon layers, settings
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
*
|
|
12
|
-
*
|
|
6
|
+
* Principled implementation: The array enumerates both canon layers, settings
|
|
7
|
+
* and brief, then treatments, scripts and screenplay in upstream-to-downstream
|
|
8
|
+
* authoring order. Clear and simple design: Stage validation iterates the same
|
|
9
|
+
* five-layer vocabulary without reconstructing it; each route selects its own
|
|
10
|
+
* subset. Prohibited implementation shortcuts: The literal layers express
|
|
11
|
+
* supported domain responsibility and do not depend on caller or fixture
|
|
12
|
+
* identities. Meaningful documentation: The prose states the canon-first
|
|
13
|
+
* ordering needed by consumers. Efficient algorithms: Initialization stores a
|
|
14
|
+
* fixed five-element array; iteration is bounded by that vocabulary. Reuse
|
|
15
|
+
* equivalent work: The readonly-typed module collection is reused by consumers;
|
|
16
|
+
* it represents immutable domain vocabulary rather than input-dependent
|
|
17
|
+
* computed work. Bound retention and release resources: The module owns one
|
|
18
|
+
* fixed-size collection for its lifetime with no input-driven growth, handle or
|
|
19
|
+
* task.
|
|
13
20
|
*/
|
|
14
21
|
export const AUTHORED_LAYERS: readonly AuthoredLayer[] = [
|
|
15
22
|
"settings",
|
|
@@ -11,37 +11,32 @@ import { createContractRoot } from "../utilities/createContractRoot";
|
|
|
11
11
|
* Creates the open-world discovery claim for one layer.
|
|
12
12
|
*
|
|
13
13
|
* Discovery asks what this work needs that no shared contract states, so the
|
|
14
|
-
* answer is a work-specific contract rather than a passage of the production.
|
|
15
|
-
* hosts are the documents under the production's `docs/contracts/work`: a
|
|
16
|
-
* that found something is answered by the file that states the adopted
|
|
17
|
-
* and a duty that found nothing is excluded on
|
|
18
|
-
* naming the risks examined and the shared owners
|
|
14
|
+
* answer is a work-specific contract rather than a passage of the production.
|
|
15
|
+
* Its hosts are the documents under the production's `docs/contracts/work`: a
|
|
16
|
+
* duty that found something is answered by the file that states the adopted
|
|
17
|
+
* rule, and a duty that found nothing is excluded on
|
|
18
|
+
* `work/discovery/results.md`, naming the risks examined and the shared owners
|
|
19
|
+
* that already cover them.
|
|
19
20
|
*
|
|
20
21
|
* Putting these on authored units instead would ask a settings owner or a
|
|
21
22
|
* narrative unit to testify about the contract rather than about the work,
|
|
22
|
-
* which is how an adopted rule ends up recorded in screenplay and never
|
|
23
|
+
* which is how an adopted rule ends up recorded in screenplay and never
|
|
24
|
+
* enforced.
|
|
23
25
|
*
|
|
24
|
-
* `evidenceExcludeCarriers` gathers negatives on one discovery carrier rather
|
|
25
|
-
* leaving them wherever a contract file happens to sit. An exclusion is
|
|
26
|
-
* acknowledgement that discharges a duty with nothing built, so reading
|
|
27
|
-
* one a work declared has to be possible in a single file; scattered
|
|
28
|
-
* the contracts it means reading the contracts to find out what was
|
|
26
|
+
* `evidenceExcludeCarriers` gathers negatives on one discovery carrier rather
|
|
27
|
+
* than leaving them wherever a contract file happens to sit. An exclusion is
|
|
28
|
+
* the one acknowledgement that discharges a duty with nothing built, so reading
|
|
29
|
+
* every one a work declared has to be possible in a single file; scattered
|
|
30
|
+
* through the contracts it means reading the contracts to find out what was
|
|
31
|
+
* skipped.
|
|
29
32
|
*
|
|
30
33
|
* Every layer's claim shares those hosts, and a citation resolves only to a
|
|
31
34
|
* contract some active claim selects. A finished layer turned back to
|
|
32
35
|
* `disabled` would therefore leave its recorded findings unresolvable for the
|
|
33
36
|
* layers still running. The claim stays active while its layer or any later
|
|
34
|
-
* layer of the route is in `evidence`: the route closes its layers in order,
|
|
35
|
-
*
|
|
36
|
-
*
|
|
37
|
-
*
|
|
38
|
-
* @evidence contracts/development/implementation.md#principled-implementation Open-world duties target shared/language discovery H2s while their hosts are the production's own work-contract files, rooted by createContractRoot at its own `docs/contracts` even when a workspace keeps the shared targets elsewhere, with negative findings centralized on one discovery carrier; the claim is active while its layer or a later layer of the route is in evidence, so a closed earlier layer's findings keep resolving.
|
|
39
|
-
* @evidence contracts/development/implementation.md#clear-and-simple-structure The claim factory owns this contract-to-contract relation rather than asking manuscript units to testify about whether their contract was discovered.
|
|
40
|
-
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts The one negative-results carrier is the declared discovery workflow, and canon layers omit narrative-layer questions through the shared reference factory rather than a consumer exception.
|
|
41
|
-
* @evidence contracts/development/common.md#meaningful-documentation The prose identifies adopted-rule hosts, truthful negative findings, the single negative carrier, why manuscript hosts cannot answer this relation and why a closed earlier layer's claim stays active.
|
|
42
|
-
* @evidence contracts/development/implementation.md#efficient-algorithms The factory scans at most four route stages and constructs one claim and a fixed-size discovery-reference list; its one optional language-file existence probe and path operations dominate fixed population work, independent of manuscript length.
|
|
43
|
-
* @evidence contracts/development/implementation.md#reuse-equivalent-work Shared and language discovery reference builders own their selection rules; the optional language contract is probed on each config construction so installation changes are not hidden behind a cache.
|
|
44
|
-
* @evidence contracts/development/implementation.md#bound-retention-and-release-resources The returned claim and references are caller-owned, with a fixed family count; the synchronous existence probe exposes no retained handle or background task.
|
|
37
|
+
* layer of the route is in `evidence`: the route closes its layers in order, so
|
|
38
|
+
* an earlier layer's findings are written and stay checked, while a layer not
|
|
39
|
+
* yet reached owes none.
|
|
45
40
|
*/
|
|
46
41
|
export function createDiscoveryClaim(
|
|
47
42
|
props: IProductionConfigProps,
|
|
@@ -10,21 +10,13 @@ import { PACKAGE_DOCS_ROOT } from "../utilities/PACKAGE_DOCS_ROOT";
|
|
|
10
10
|
import { createUnitFiles } from "../utilities/createUnitFiles";
|
|
11
11
|
|
|
12
12
|
/**
|
|
13
|
-
* Tracks instruction adoption in long work's settings, and realization in
|
|
14
|
-
* Each layer covers the targets
|
|
15
|
-
* hosts and stage. Settings accounts
|
|
16
|
-
*
|
|
17
|
-
* short, the brief defines subjects and
|
|
18
|
-
* instruction.
|
|
19
|
-
*
|
|
20
|
-
*
|
|
21
|
-
* @evidence contracts/development/implementation.md#principled-implementation When docs/instructions exists, selected body H2 hosts independently cover every instruction H2; treatments may exclude out-of-population requirements while settings or short screenplay may not.
|
|
22
|
-
* @evidence contracts/development/implementation.md#clear-and-simple-structure The optional instruction input stays a reference population rather than becoming another authored host tree.
|
|
23
|
-
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts The treatments exclusion difference follows narrative-population scope; an absent instruction directory returns undefined rather than manufacturing an input requirement.
|
|
24
|
-
* @evidence contracts/development/common.md#meaningful-documentation The prose states adoption versus realization, independent stage ownership, target-only instructions and the absent-directory result.
|
|
25
|
-
* @evidence contracts/development/implementation.md#efficient-algorithms One synchronous directory existence probe and a fixed-size claim construction precede selector generation; no instruction or manuscript files are read by this factory.
|
|
26
|
-
* @evidence contracts/development/implementation.md#reuse-equivalent-work The shared unit-selector and stage-normalization helpers are reused; the directory is observed on every build so a cached absence cannot suppress newly supplied instructions.
|
|
27
|
-
* @evidence contracts/development/implementation.md#bound-retention-and-release-resources The optional returned claim owns a constant-count selector/reference structure; existence probing creates no retained handle, and no task or global cache is started.
|
|
13
|
+
* Tracks instruction adoption in long work's settings, and realization in
|
|
14
|
+
* treatments or a short's screenplay. Each layer covers the targets
|
|
15
|
+
* independently through its own construction hosts and stage. Settings accounts
|
|
16
|
+
* for every adopted requirement; treatments can exclude requirements outside
|
|
17
|
+
* its selected narrative population. On a short, the brief defines subjects and
|
|
18
|
+
* the screenplay accounts for every instruction. Instructions remain targets
|
|
19
|
+
* only. No instructions folder means no claim.
|
|
28
20
|
*/
|
|
29
21
|
export function createInstructionCoverageClaim(
|
|
30
22
|
props: IProductionConfigProps,
|
|
@@ -34,14 +34,6 @@ import { createSettingCoverageClaim } from "./createSettingCoverageClaim";
|
|
|
34
34
|
*
|
|
35
35
|
* Script scenes establish choices and draft exchanges. Final expression is
|
|
36
36
|
* assessed in the screenplay construction checklist.
|
|
37
|
-
*
|
|
38
|
-
* @evidence contracts/development/implementation.md#principled-implementation Construction H2 claims and file inheritance use native reference flags for per-unit checklists, treatment coverage and exact script-scene lineage, where each screenplay scene file cites the one script scene H2 it realizes; final expression belongs to the screenplay.
|
|
39
|
-
* @evidence contracts/development/implementation.md#clear-and-simple-structure One layer factory centralizes stage/root/parent choices, while population obligations, discovery and review remain separate factories with their distinct respondents.
|
|
40
|
-
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Short screenplay cites its actual brief without invented treatment or script parents; canon has no inherited file claim, and each layer selects its own principles.
|
|
41
|
-
* @evidence contracts/development/common.md#meaningful-documentation The prose distinguishes unit/population duties, layer-specific parents, the scene-file lineage and expression coverage; nearby comments explain topology capture.
|
|
42
|
-
* @evidence contracts/development/implementation.md#efficient-algorithms A fixed number of claims and reference families are constructed per layer; helper existence probes dominate most layers, while treatments and short screenplay also enumerate canon files for coverage, whose scans and sorting scale with the installed canon.
|
|
43
|
-
* @evidence contracts/development/implementation.md#reuse-equivalent-work Unit/topology selectors, parent-reference builders and scalar stages are reused within the construction; each build refreshes filesystem-dependent contract/canon observations instead of retaining stale config results.
|
|
44
|
-
* @evidence contracts/development/implementation.md#bound-retention-and-release-resources The returned native claims own their layer-family objects and any canon-derived references; synchronous discovery leaves no filesystem handle or background task open.
|
|
45
37
|
*/
|
|
46
38
|
export function createLayerClaims(
|
|
47
39
|
props: IProductionConfigProps,
|
|
@@ -14,28 +14,20 @@ import { validateSettingsOutline } from "../validateSettingsOutline";
|
|
|
14
14
|
*
|
|
15
15
|
* The two installed outline contracts opt a package into this topology. A
|
|
16
16
|
* legacy installation keeps its optional, stage-free part coverage until an
|
|
17
|
-
* explicit contract migration. The part principles and the arrangement
|
|
18
|
-
* follow `construction.index` (the settings stage when omitted) and
|
|
19
|
-
* file-to-entry claim follows the settings stage. Activating either stage
|
|
17
|
+
* explicit contract migration. The part principles and the arrangement
|
|
18
|
+
* obligations follow `construction.index` (the settings stage when omitted) and
|
|
19
|
+
* the file-to-entry claim follows the settings stage. Activating either stage
|
|
20
20
|
* validates the layout.
|
|
21
21
|
*
|
|
22
22
|
* Three claims answer three different questions, so none reads another's
|
|
23
23
|
* population. Each outline part H2 answers every part principle for itself, the
|
|
24
24
|
* outline file answers each arrangement obligation once, and every settings
|
|
25
25
|
* file cites exactly one outline entry, so a missing, duplicated or invented
|
|
26
|
-
* file fails the build. The general canon claims never read `index.md`,
|
|
27
|
-
*
|
|
26
|
+
* file fails the build. The general canon claims never read `index.md`, and the
|
|
27
|
+
* outline never answers a canon principle.
|
|
28
28
|
*
|
|
29
|
-
* @param completeSubmission
|
|
29
|
+
* @param completeSubmission Explicitly requests layout validation even while
|
|
30
30
|
* both stages are `disabled`.
|
|
31
|
-
*
|
|
32
|
-
* @evidence contracts/development/implementation.md#principled-implementation Paired outline contracts installed in the shared skills tree select independent part principles, population arrangement and canon-entry bijection claims; activating either outline or settings, or requesting complete submission, validates the actual outline layout.
|
|
33
|
-
* @evidence contracts/development/implementation.md#clear-and-simple-structure Three respondent populations remain separate, so the outline cannot answer canon principles and a settings file cannot substitute for an outline part.
|
|
34
|
-
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts The explicit older-installation branch preserves optional stage-free H2 coverage when neither new outline contract exists; a mismatched pair throws instead of silently falling back.
|
|
35
|
-
* @evidence contracts/development/common.md#meaningful-documentation The prose gives migration behavior, stage fallback, respondent/cardinality semantics and completeSubmission forcing layout validation even when disabled.
|
|
36
|
-
* @evidence contracts/development/implementation.md#efficient-algorithms Two shared-tree contract existence probes and optional outline/canon validation dominate; validation enumerates and sorts settings paths and reads the outline plus each selected canon file, so work/storage scale with directory entries and file bytes rather than the three returned claims.
|
|
37
|
-
* @evidence contracts/development/implementation.md#reuse-equivalent-work The settings/outline stage booleans and selector builders are reused within one call; live layout validation is deliberately refreshed per configuration build, with no cross-build filesystem cache.
|
|
38
|
-
* @evidence contracts/development/implementation.md#bound-retention-and-release-resources Synchronous reads return in-memory text whose lifetime ends in the validator; the factory retains only up to three caller-owned claims and opens no lasting descriptors or tasks.
|
|
39
31
|
*/
|
|
40
32
|
export function createOutlineClaims(
|
|
41
33
|
props: IProductionConfigProps,
|
|
@@ -18,20 +18,11 @@ import { hasStoryContract } from "../utilities/hasStoryContract";
|
|
|
18
18
|
*
|
|
19
19
|
* An obligation asks one question about the whole layer, so the layer's own
|
|
20
20
|
* authored documents answer it once, at file level, through their detached
|
|
21
|
-
* construction evidence. Each item has exactly one answering document.
|
|
22
|
-
*
|
|
23
|
-
*
|
|
24
|
-
* restatement per unit.
|
|
21
|
+
* construction evidence. Each item has exactly one answering document. An
|
|
22
|
+
* obligation is never a per-H2 checklist, because repeating a population
|
|
23
|
+
* question on every unit turns one comparison into a restatement per unit.
|
|
25
24
|
*
|
|
26
25
|
* Screenplay expression is answered here alongside the other screenplay duties.
|
|
27
|
-
*
|
|
28
|
-
* @evidence contracts/development/implementation.md#principled-implementation Each enabled layer selects one file respondent per bundled or language population item. Bundled items come from the skills tree and language items from the production contracts.
|
|
29
|
-
* @evidence contracts/development/implementation.md#clear-and-simple-structure One factory selects shared and local obligations by layer, including screenplay expression. Each item has one respondent.
|
|
30
|
-
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Common, narrative and final screenplay obligations stay selected when missing so the compiler reports the broken tree. Other layer files and the realized supplement remain optional.
|
|
31
|
-
* @evidence contracts/development/common.md#meaningful-documentation The prose explains whole-layer respondents, unique evidence and screenplay coverage; the helper comment identifies optional-file compatibility.
|
|
32
|
-
* @evidence contracts/development/implementation.md#efficient-algorithms At most four candidates per directory and scope are filtered and mapped, with a bounded number of synchronous existence probes and selector constructions; this factory never scans the manuscript population.
|
|
33
|
-
* @evidence contracts/development/implementation.md#reuse-equivalent-work Shared/language selection reuses layerFiles and reference builders; optional installed files are observed per config build, so changes in the contract tree invalidate naturally without a retained cache.
|
|
34
|
-
* @evidence contracts/development/implementation.md#bound-retention-and-release-resources Intermediate and returned arrays have a fixed family bound; returned claim/reference objects belong to the config owner and existence probes retain no exposed handles.
|
|
35
26
|
*/
|
|
36
27
|
export function createPopulationObligationClaims(
|
|
37
28
|
props: IProductionConfigProps,
|
|
@@ -22,29 +22,21 @@ import { hasStoryContract } from "../utilities/hasStoryContract";
|
|
|
22
22
|
* A reviewer writes one review file per authored file and one review H2 per
|
|
23
23
|
* authored H2, directly under `docs/review/draft/<layer>` in a tree that
|
|
24
24
|
* mirrors the authored layer. A selected review file or `verdict/index.md`
|
|
25
|
-
* starts this current population; missing counterparts never come from a
|
|
26
|
-
*
|
|
27
|
-
*
|
|
28
|
-
*
|
|
29
|
-
*
|
|
30
|
-
*
|
|
31
|
-
*
|
|
25
|
+
* starts this current population; missing counterparts never come from a legacy
|
|
26
|
+
* round. Without current files, the highest numbered legacy round remains
|
|
27
|
+
* supported. Each review H2 cites its authored H2 and keeps a current review of
|
|
28
|
+
* it, so an authored change expires exactly the reviews it touched and the
|
|
29
|
+
* graph shows which unit to read again. Each review H2 also answers the review
|
|
30
|
+
* principles for itself. One verdict file per layer answers the review
|
|
31
|
+
* obligations once, because they compare the whole population.
|
|
32
32
|
*
|
|
33
|
-
* No claim binds the review files to the authored files one to one, because
|
|
34
|
-
*
|
|
33
|
+
* No claim binds the review files to the authored files one to one, because the
|
|
34
|
+
* H2 bijection already leaves no authored H2 without a review.
|
|
35
35
|
*
|
|
36
36
|
* Review claims are active only while the layer's construction stage is
|
|
37
|
-
* `evidence`. A package whose installed contract predates the review family,
|
|
38
|
-
*
|
|
37
|
+
* `evidence`. A package whose installed contract predates the review family, or
|
|
38
|
+
* whose reviewer has not yet written current files or a legacy round under
|
|
39
39
|
* `docs/review/draft/<layer>`, has no review claims for that layer.
|
|
40
|
-
*
|
|
41
|
-
* @evidence contracts/development/implementation.md#principled-implementation Actual in-scope direct review files or a verdict select the canonical population exclusively; otherwise the highest numeric legacy round supplies exact current-review lineage and a separate file-level verdict obligation, both following the construction stage.
|
|
42
|
-
* @evidence contracts/development/implementation.md#clear-and-simple-structure One root selector keeps current-versus-legacy admission separate from the unchanged unit bijection, freshness and whole-population verdict claims.
|
|
43
|
-
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Older contract families, probed in the shared skills tree that also roots their references, and not-yet-created review roots yield no claims; native inactive populations do not establish that independent review occurred.
|
|
44
|
-
* @evidence contracts/development/common.md#meaningful-documentation The prose states canonical admission, exclusive legacy fallback, current-review invalidation, H2 bijection, verdict ownership and optional roots/contracts.
|
|
45
|
-
* @evidence contracts/development/implementation.md#efficient-algorithms One review root scans entries only as deep as its actual selectors; directory entries and native glob matching dominate, with a linear root scan for legacy selection when no canonical file exists.
|
|
46
|
-
* @evidence contracts/development/implementation.md#reuse-equivalent-work The resolved files, selected root and lineage serve both claims; filesystem observation repeats per config build so new current files replace legacy selection.
|
|
47
|
-
* @evidence contracts/development/implementation.md#bound-retention-and-release-resources Directory arrays are transient and bounded by visited entries; returned claims belong to the config, and synchronous scans retain no history, handle or task.
|
|
48
40
|
*/
|
|
49
41
|
export function createReviewClaims(
|
|
50
42
|
props: IProductionConfigProps,
|
|
@@ -124,20 +116,33 @@ export function createReviewClaims(
|
|
|
124
116
|
* Selects current or legacy review hosts, or no review root.
|
|
125
117
|
*
|
|
126
118
|
* An empty relative root selects current files; a round name selects legacy.
|
|
127
|
-
* Current host selectors exclude every observed numeric round subtree.
|
|
128
|
-
*
|
|
129
|
-
*
|
|
130
|
-
*
|
|
131
|
-
*
|
|
132
|
-
*
|
|
119
|
+
* Current host selectors exclude every observed numeric round subtree. Files
|
|
120
|
+
* outside the actual authored scope cannot start a current review. Traversal
|
|
121
|
+
* stops at selector depth and never enters legacy round subtrees. Filesystem
|
|
122
|
+
* errors and malformed round entries propagate instead of hiding unavailable
|
|
123
|
+
* review input behind another population. A non-directory numeric round is
|
|
124
|
+
* rejected when legacy selection is needed.
|
|
133
125
|
*
|
|
134
|
-
* Principled implementation: Native EvidenceFileGlob membership admits selected
|
|
135
|
-
*
|
|
136
|
-
*
|
|
137
|
-
*
|
|
138
|
-
*
|
|
139
|
-
*
|
|
140
|
-
*
|
|
126
|
+
* Principled implementation: Native EvidenceFileGlob membership admits selected
|
|
127
|
+
* direct files or the canonical verdict before numeric legacy fallback; maximum
|
|
128
|
+
* selector segment count bounds traversal, and exact observed numeric-round
|
|
129
|
+
* exclusions prevent legacy hosts entering canonical extraction. Clear and
|
|
130
|
+
* simple design: The private selector returns the relative root and its host
|
|
131
|
+
* selectors together, leaving extraction and all review semantics with the
|
|
132
|
+
* existing native claims. Prohibited implementation shortcuts: Partial current
|
|
133
|
+
* populations win without legacy backfill; out-of-scope files cannot trigger
|
|
134
|
+
* admission, filesystem failures propagate and non-directory numeric rounds
|
|
135
|
+
* throw. Meaningful documentation: The comment defines all three results,
|
|
136
|
+
* scope-sensitive admission, traversal bounds and failure behavior. Efficient
|
|
137
|
+
* algorithms: Native glob matching checks visited files up to maximum selector
|
|
138
|
+
* depth; a short-circuit current match ends traversal, otherwise one additional
|
|
139
|
+
* root-entry scan selects the highest numeric round. Storage is directory
|
|
140
|
+
* arrays along the bounded traversal stack. Reuse equivalent work: One glob and
|
|
141
|
+
* maximum depth serve the current scan; the initial root listing is reused for
|
|
142
|
+
* legacy selection, and each config build observes the filesystem anew. Bound
|
|
143
|
+
* retention and release resources: Synchronous directory listings and the glob
|
|
144
|
+
* are call-local, with no retained cache, descriptor or task; the selected root
|
|
145
|
+
* and host selector strings belong to the caller.
|
|
141
146
|
*/
|
|
142
147
|
function selectReviewRoot(
|
|
143
148
|
directory: string,
|
|
@@ -182,13 +187,23 @@ function selectReviewRoot(
|
|
|
182
187
|
/**
|
|
183
188
|
* Tests actual file membership within the selector's remaining path depth.
|
|
184
189
|
*
|
|
185
|
-
* Principled implementation: Relative paths are matched by the native glob;
|
|
186
|
-
*
|
|
187
|
-
*
|
|
188
|
-
*
|
|
189
|
-
*
|
|
190
|
-
*
|
|
191
|
-
*
|
|
190
|
+
* Principled implementation: Relative paths are matched by the native glob;
|
|
191
|
+
* symlink status follows its actual target, recursion consumes one selector
|
|
192
|
+
* segment and skips top-level round directories, preventing legacy files from
|
|
193
|
+
* masquerading as canonical files. Clear and simple design: This bounded
|
|
194
|
+
* traversal owns only canonical membership and returns as soon as a
|
|
195
|
+
* participating file exists. Prohibited implementation shortcuts: No body or
|
|
196
|
+
* consumer name is special-cased; the numeric round grammar denotes the
|
|
197
|
+
* supported legacy format, and read failures propagate unchanged. Meaningful
|
|
198
|
+
* documentation: The comment states selector depth and membership; parameter
|
|
199
|
+
* names expose root-relative prefix and remaining depth. Efficient algorithms:
|
|
200
|
+
* The depth-first short-circuit scan visits at most entries reachable within
|
|
201
|
+
* selector depth, with one native glob match per file and directory arrays
|
|
202
|
+
* retained only along that bounded stack. Reuse equivalent work: The caller
|
|
203
|
+
* supplies the same glob and initial directory entries; recursive calls reuse
|
|
204
|
+
* it and read each reached child directory once. Bound retention and release
|
|
205
|
+
* resources: Child entry arrays and relative path strings expire on return, and
|
|
206
|
+
* synchronous reads leave no open handle or background task.
|
|
192
207
|
*/
|
|
193
208
|
function hasCurrentReview(
|
|
194
209
|
directory: string,
|
|
@@ -13,14 +13,6 @@ import { BODY_ROOT } from "../utilities/BODY_ROOT";
|
|
|
13
13
|
* Edges stay on the concrete consumers: a narrative H2 cites the canon H2 it
|
|
14
14
|
* depends on, and a canon H2 no selected narrative H2 uses is answered by an
|
|
15
15
|
* exclusion on the narrative H2 whose scope makes it absent.
|
|
16
|
-
*
|
|
17
|
-
* @evidence contracts/development/implementation.md#principled-implementation Actual treatment or short-screenplay H2 consumers cover H2s of every enumerated canon body file, settings or brief as `canon` names, while the scalar construction stage controls the consumer stage; an empty canon returns undefined.
|
|
18
|
-
* @evidence contracts/development/implementation.md#clear-and-simple-structure Canon coverage lives on the concrete event or short-scene consumers, separate from structural prerequisite readiness and inherited script/screenplay relations.
|
|
19
|
-
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Empty reference populations are omitted because there is no canon dependency to cite; pass readiness remains a separate required check rather than being excused by this omission.
|
|
20
|
-
* @evidence contracts/development/common.md#meaningful-documentation The prose states which canon each consumer cites, dependency hosts and truthful scope exclusions, and the nearby comment distinguishes empty coverage from readiness.
|
|
21
|
-
* @evidence contracts/development/implementation.md#efficient-algorithms Canon enumeration and sorting dominate: one reference is allocated per canon file after directory scans, while the consumer selector and claim have fixed size; factory work does not read canon file contents.
|
|
22
|
-
* @evidence contracts/development/implementation.md#reuse-equivalent-work The canon reference builder centralizes every supported layout; this call reobserves installed canon paths each config build rather than caching a potentially obsolete file population.
|
|
23
|
-
* @evidence contracts/development/implementation.md#bound-retention-and-release-resources The returned claim retains one reference per canon file under config ownership; enumeration arrays are transient and synchronous directory operations retain no open descriptor or running task.
|
|
24
16
|
*/
|
|
25
17
|
export function createSettingCoverageClaim(
|
|
26
18
|
props: IProductionConfigProps,
|
|
@@ -13,17 +13,7 @@ import { BODY_ROOT } from "./utilities/BODY_ROOT";
|
|
|
13
13
|
import { assertProductionEvidenceSources } from "./utilities/assertProductionEvidenceSources";
|
|
14
14
|
import { createEvidenceFiles } from "./utilities/createEvidenceFiles";
|
|
15
15
|
|
|
16
|
-
/**
|
|
17
|
-
* Composes the complete native narrative and engineering claim array.
|
|
18
|
-
*
|
|
19
|
-
* @evidence contracts/development/implementation.md#principled-implementation Validated routes expand the existing checklist, coverage, discovery, instruction, outline and review families; body file/H2 hosts receive detached construction selectors before engineering support is appended.
|
|
20
|
-
* @evidence contracts/development/implementation.md#clear-and-simple-structure One collector serves the public claim and config factories; family helpers own their respondents and native relationship settings.
|
|
21
|
-
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Only generated claims with empty reference arrays are omitted because they have no target population; native diagnostics are never filtered here.
|
|
22
|
-
* @evidence contracts/development/common.md#meaningful-documentation The comment states family composition and detached evidence ownership; callers evaluate the returned native graph.
|
|
23
|
-
* @evidence contracts/development/implementation.md#efficient-algorithms At most four layer expansions discover current contracts; claim filtering and detached selector mapping are linear in emitted claims and selector text, plus discovery cost.
|
|
24
|
-
* @evidence contracts/development/implementation.md#reuse-equivalent-work Each family is built once per graph; live contract and review discovery is refreshed for every configuration build.
|
|
25
|
-
* @evidence contracts/development/implementation.md#bound-retention-and-release-resources The returned graph owns its arrays and caller-provided claims; all discovery is synchronous with no retained registry, handle or task.
|
|
26
|
-
*/
|
|
16
|
+
/** Composes the complete native narrative and engineering claim array. */
|
|
27
17
|
export function collectProductionClaims(
|
|
28
18
|
props: IProductionConfigProps,
|
|
29
19
|
): IEvidenceClaim[] {
|
|
@@ -3,15 +3,8 @@ import type { IProductionConfigProps } from "../IProductionConfigProps";
|
|
|
3
3
|
import type { ProductionStage } from "../ProductionStage";
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
|
-
* Reads one layer's construction stage, treating an omitted brief stage as
|
|
7
|
-
*
|
|
8
|
-
* @evidence contracts/development/implementation.md#principled-implementation The brief stage is optional so configurations written before the short route gained its canon keep their meaning; every other layer's stage is required and read as given.
|
|
9
|
-
* @evidence contracts/development/implementation.md#clear-and-simple-structure Every claim factory and the source check read stages through this one accessor instead of indexing the construction object.
|
|
10
|
-
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Only the omitted optional key defaults; an explicit invalid value passes through for the source check to reject.
|
|
11
|
-
* @evidence contracts/development/common.md#meaningful-documentation The comment states the optional brief default and why it exists.
|
|
12
|
-
* @evidence contracts/development/implementation.md#efficient-algorithms One property read and one nullish check take constant time.
|
|
13
|
-
* @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work This pure accessor coordinates no reusable requests or effectful work.
|
|
14
|
-
* @evidenceExclude contracts/development/implementation.md#bound-retention-and-release-resources The function owns no retained state, descriptor or task.
|
|
6
|
+
* Reads one layer's construction stage, treating an omitted brief stage as
|
|
7
|
+
* disabled.
|
|
15
8
|
*/
|
|
16
9
|
export function constructionStage(
|
|
17
10
|
props: IProductionConfigProps,
|
|
@@ -7,21 +7,13 @@ import { collectProductionClaims } from "./collectProductionClaims";
|
|
|
7
7
|
* Builds the full evidence config.
|
|
8
8
|
*
|
|
9
9
|
* Every layer contributes the same shared claims, recorded work requirements
|
|
10
|
-
* add independent settings and treatments coverage claims when present, the
|
|
11
|
-
* its installed topology, and the production's own claims
|
|
12
|
-
* whose reference population came back empty selects
|
|
13
|
-
* rather than left to report an empty target.
|
|
10
|
+
* add independent settings and treatments coverage claims when present, the
|
|
11
|
+
* settings outline adds its installed topology, and the production's own claims
|
|
12
|
+
* follow them. A claim whose reference population came back empty selects
|
|
13
|
+
* nothing, so it is dropped rather than left to report an empty target.
|
|
14
14
|
*
|
|
15
15
|
* Reports retain every diagnostic so one inspection round can collect all
|
|
16
16
|
* failures before related causes are repaired together.
|
|
17
|
-
*
|
|
18
|
-
* @evidence contracts/development/implementation.md#principled-implementation The graph config directly contains the collector's complete validated claim array and leaves native diagnostic evaluation to Evidence.
|
|
19
|
-
* @evidence contracts/development/implementation.md#clear-and-simple-structure This small assembly step wraps the shared collector's claims in the native config shape.
|
|
20
|
-
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts No severity reduction or diagnostic filter is added here; empty target populations are handled by the shared collector rather than a caller-specific escape.
|
|
21
|
-
* @evidence contracts/development/common.md#meaningful-documentation The prose describes claim families, empty-reference handling and retaining every diagnostic for one inspection round.
|
|
22
|
-
* @evidence contracts/development/implementation.md#efficient-algorithms The collector's filesystem discovery and claim expansion dominate; this wrapper adds one constant-size config object around the resulting graph.
|
|
23
|
-
* @evidence contracts/development/implementation.md#reuse-equivalent-work The collector result is used directly without a second graph rebuild; cross-call reuse is unavailable because contract discovery and props can change.
|
|
24
|
-
* @evidence contracts/development/implementation.md#bound-retention-and-release-resources The returned config owns the emitted graph and no handles/tasks; discovery allocations are local and no registry retains the configuration.
|
|
25
17
|
*/
|
|
26
18
|
export function createGraphConfig(
|
|
27
19
|
props: IProductionConfigProps,
|
|
@@ -1,15 +1,8 @@
|
|
|
1
1
|
import type { AuthoredLayer } from "../AuthoredLayer";
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
|
-
* Reports whether a layer is canon, long-route settings or short-route brief,
|
|
5
|
-
*
|
|
6
|
-
* @evidence contracts/development/implementation.md#principled-implementation Settings and brief are the two source layers: neither inherits a unit, answers narrative duties or carries an upstream relation, so one predicate marks both.
|
|
7
|
-
* @evidence contracts/development/implementation.md#clear-and-simple-structure Claim and reference factories share this guard instead of repeating the canon literals.
|
|
8
|
-
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts The predicate names the declared canon layers of the long and short routes; no consumer identity changes it.
|
|
9
|
-
* @evidence contracts/development/common.md#meaningful-documentation The comment names both canon layers and what makes them canon; the return type narrows callers to those literals.
|
|
10
|
-
* @evidence contracts/development/implementation.md#efficient-algorithms Two literal comparisons take constant time and allocate nothing.
|
|
11
|
-
* @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work This pure predicate coordinates no reusable requests or effectful work.
|
|
12
|
-
* @evidenceExclude contracts/development/implementation.md#bound-retention-and-release-resources The function owns no retained state, descriptor or task.
|
|
4
|
+
* Reports whether a layer is canon, long-route settings or short-route brief,
|
|
5
|
+
* which inherits no parent layer.
|
|
13
6
|
*/
|
|
14
7
|
export function isCanonLayer(
|
|
15
8
|
layer: AuthoredLayer,
|
|
@@ -1,13 +1,16 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Recognizes a flat evidence acknowledgement with its required reason.
|
|
3
3
|
*
|
|
4
|
-
* Principled implementation: Anchored grammar requires an acknowledgement
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
*
|
|
4
|
+
* Principled implementation: Anchored grammar requires an acknowledgement
|
|
5
|
+
* keyword, nonspace target and nonempty reason. Clear and simple design: The
|
|
6
|
+
* shared expression keeps classification and projection grammar aligned.
|
|
7
|
+
* Prohibited implementation shortcuts: The two keywords are supported evidence
|
|
8
|
+
* syntax. Meaningful documentation: The comment states flat-declaration and
|
|
9
|
+
* required-reason semantics. Efficient algorithms: One module initialization
|
|
10
|
+
* compiles the expression; matching examines line characters. Reuse equivalent
|
|
11
|
+
* work: The non-global expression is reused without previous-line cursor state.
|
|
12
|
+
* Bound retention and release resources: The module retains one RegExp and no
|
|
13
|
+
* input history.
|
|
11
14
|
*/
|
|
12
15
|
export const ACKNOWLEDGEMENT: RegExp =
|
|
13
16
|
/^@(evidence|evidenceExclude) (\S+) (\S(?:.*\S)?)$/u;
|