@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
|
@@ -1,17 +1,7 @@
|
|
|
1
1
|
import type { NarrativeLayer } from "../../NarrativeLayer";
|
|
2
2
|
import type { NarrativeScope } from "../../NarrativeScope";
|
|
3
3
|
|
|
4
|
-
/**
|
|
5
|
-
* Captures indexes and misplaced files without widening an exact pilot slice.
|
|
6
|
-
*
|
|
7
|
-
* @evidence contracts/development/implementation.md#principled-implementation Topology captures all descendants of a layer so indexes and malformed paths remain visible, narrowing scripts/screenplay only to the exact declared pilot part; treatments stay flat at validation time.
|
|
8
|
-
* @evidence contracts/development/implementation.md#clear-and-simple-structure One selector helper separates broad topology capture from the partition and film-folder authored-unit selector used by ordinary evidence.
|
|
9
|
-
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts The first-part pilot is a declared production scope, so the selector retains that exact slice instead of widening to other parts.
|
|
10
|
-
* @evidence contracts/development/common.md#meaningful-documentation The comment explains why indexes and misplaced files are included while an exact pilot slice stays narrow.
|
|
11
|
-
* @evidence contracts/development/implementation.md#efficient-algorithms One conditional constructs one glob string; work and returned storage scale only with layer and optional part text lengths.
|
|
12
|
-
* @evidence contracts/development/implementation.md#reuse-equivalent-work The selector is derived from the current scope each call, while downstream native inventory capture supplies reuse across topology inspections.
|
|
13
|
-
* @evidence contracts/development/implementation.md#bound-retention-and-release-resources The one-element returned array and string belong to the caller; no filesystem traversal, handle or retained cache is created.
|
|
14
|
-
*/
|
|
4
|
+
/** Captures indexes and misplaced files without widening an exact pilot slice. */
|
|
15
5
|
export function createTopologyFiles(
|
|
16
6
|
layer: NarrativeLayer,
|
|
17
7
|
scope: NarrativeScope,
|
|
@@ -6,12 +6,19 @@ import { PACKAGE_DOCS_ROOT } from "./PACKAGE_DOCS_ROOT";
|
|
|
6
6
|
* Every authored claim hosts this tree, and every inherited reference selects
|
|
7
7
|
* it, because each layer's authored text lives only in the body.
|
|
8
8
|
*
|
|
9
|
-
* Principled implementation: The value joins PACKAGE_DOCS_ROOT with `body`, the
|
|
10
|
-
*
|
|
11
|
-
*
|
|
12
|
-
*
|
|
13
|
-
*
|
|
14
|
-
*
|
|
15
|
-
*
|
|
9
|
+
* Principled implementation: The value joins PACKAGE_DOCS_ROOT with `body`, the
|
|
10
|
+
* one location the document layout gives authored layers. Clear and simple
|
|
11
|
+
* design: One constant supplies the body spelling to every claim factory and
|
|
12
|
+
* reference builder, derived from the docs folder so the two cannot drift.
|
|
13
|
+
* Prohibited implementation shortcuts: The body directory is a declared
|
|
14
|
+
* production layout value; it is not selected from fixture names, measured
|
|
15
|
+
* output or host-specific paths. Meaningful documentation: The prose states
|
|
16
|
+
* that the body is the single authored tree hosts and references share.
|
|
17
|
+
* Efficient algorithms: The string initializer is constant-sized and performs
|
|
18
|
+
* no filesystem or population traversal. Reuse equivalent work: Consumers reuse
|
|
19
|
+
* the same immutable string, so no equivalent derivation or invalidation
|
|
20
|
+
* mechanism is needed unless the source layout contract changes. Bound
|
|
21
|
+
* retention and release resources: One fixed string is retained for module
|
|
22
|
+
* lifetime; it has no dynamic population, file handle or task to release.
|
|
16
23
|
*/
|
|
17
24
|
export const BODY_ROOT: string = `${PACKAGE_DOCS_ROOT}/body`;
|
|
@@ -5,12 +5,20 @@
|
|
|
5
5
|
* review relations use this constant directly, because their documents sit
|
|
6
6
|
* beside the body rather than in it.
|
|
7
7
|
*
|
|
8
|
-
* Principled implementation: The literal docs string is the package-relative
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
*
|
|
12
|
-
*
|
|
13
|
-
*
|
|
14
|
-
*
|
|
8
|
+
* Principled implementation: The literal docs string is the package-relative
|
|
9
|
+
* document directory shared by the body root and the instruction and review
|
|
10
|
+
* locations, rather than a resolved filesystem identity. Clear and simple
|
|
11
|
+
* design: One constant supplies the common directory spelling while BODY_ROOT
|
|
12
|
+
* names the authored body inside it. Prohibited implementation shortcuts: The
|
|
13
|
+
* docs directory is a declared production layout value; it is not selected from
|
|
14
|
+
* fixture names, measured output or host-specific paths. Meaningful
|
|
15
|
+
* documentation: The prose identifies which consumers use the constant directly
|
|
16
|
+
* and which select the body through BODY_ROOT. Efficient algorithms: The string
|
|
17
|
+
* initializer is constant-sized and performs no filesystem or population
|
|
18
|
+
* traversal. Reuse equivalent work: Consumers reuse the same immutable string,
|
|
19
|
+
* so no equivalent derivation or invalidation mechanism is needed unless the
|
|
20
|
+
* source layout contract changes. Bound retention and release resources: One
|
|
21
|
+
* fixed string is retained for module lifetime; it has no dynamic population,
|
|
22
|
+
* file handle or task to release.
|
|
15
23
|
*/
|
|
16
24
|
export const PACKAGE_DOCS_ROOT: string = "docs";
|
|
@@ -7,15 +7,8 @@ import { constructionStage } from "../constructionStage";
|
|
|
7
7
|
import { productionLayers } from "../productionLayers";
|
|
8
8
|
|
|
9
9
|
/**
|
|
10
|
-
* Checks supported narrative routes and stage option shapes before graph
|
|
11
|
-
*
|
|
12
|
-
* @evidence contracts/development/implementation.md#principled-implementation Routes admit only their authored layers, long work alone admits an outline, each supported stage is disabled or evidence, resolveSkillsDirectory refuses a relative shared skills tree, and assertProductionContractLayout refuses production-owned contracts left in the retired skills location, both before any contract is probed.
|
|
13
|
-
* @evidence contracts/development/implementation.md#clear-and-simple-structure A single shape check precedes graph expansion; native Evidence owns claim and reference evaluation.
|
|
14
|
-
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts The same route and stage vocabulary applies to every production; it does not inspect graph results or confer approval.
|
|
15
|
-
* @evidence contracts/development/common.md#meaningful-documentation Errors identify unsupported routes, layers, outline choices, stage values, a relative skills tree and each legacy contract directory with its new home.
|
|
16
|
-
* @evidence contracts/development/implementation.md#efficient-algorithms The closed five-layer vocabulary bounds validation to constant time and storage, plus two directory existence probes.
|
|
17
|
-
* @evidence contracts/development/implementation.md#reuse-equivalent-work The fixed vocabularies are reused within one call; there is no expensive computation or cross-call cache.
|
|
18
|
-
* @evidence contracts/development/implementation.md#bound-retention-and-release-resources Only local scalar values and the route array are allocated; the synchronous probes acquire no retained file handle or task.
|
|
10
|
+
* Checks supported narrative routes and stage option shapes before graph
|
|
11
|
+
* creation.
|
|
19
12
|
*/
|
|
20
13
|
export function assertProductionEvidenceSources(
|
|
21
14
|
props: IProductionConfigProps,
|
|
@@ -15,17 +15,11 @@ import { resolveSkillsDirectory } from "../../../internal/resolveSkillsDirectory
|
|
|
15
15
|
* production itself adopts, so they always resolve under its own
|
|
16
16
|
* `docs/contracts`, whichever tree holds the shared ones.
|
|
17
17
|
*
|
|
18
|
-
* @param contracts The production location and optional shared tree; read, not
|
|
18
|
+
* @param contracts The production location and optional shared tree; read, not
|
|
19
|
+
* retained.
|
|
19
20
|
* @param scope The contract family whose owner is wanted.
|
|
20
|
-
* @returns The absolute tree holding that family's folder; the family folder is
|
|
21
|
-
*
|
|
22
|
-
* @evidence contracts/development/implementation.md#principled-implementation The scaffold's ownership rule, bundled shared contracts in the skills tree's `contracts/story` and adopted work/language contracts in the production's `docs/contracts`, maps each family to one tree, joined from the layout constants by `path.join`.
|
|
23
|
-
* @evidence contracts/development/implementation.md#clear-and-simple-structure One function owns the family-to-owner decision for every existence probe and, through createContractRoot, every contract reference root, so no caller rebuilds either tree from the location.
|
|
24
|
-
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts No family falls back to another tree when a file is missing, and the retired `.agents/skills/contracts/story/{work,language}` location is never consulted; a missing contract stays missing where its owner keeps it.
|
|
25
|
-
* @evidence contracts/development/implementation.md#efficient-algorithms One branch and one path join, linear in the path length.
|
|
26
|
-
* @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work A pure path computation coordinates no work across requests.
|
|
27
|
-
* @evidenceExclude contracts/development/implementation.md#bound-retention-and-release-resources Only the returned string outlives the call.
|
|
28
|
-
* @evidence contracts/development/common.md#meaningful-documentation States which tree owns each family in workspace and standalone layouts, and that the result stops above the family folder.
|
|
21
|
+
* @returns The absolute tree holding that family's folder; the family folder is
|
|
22
|
+
* not appended.
|
|
29
23
|
*/
|
|
30
24
|
export function createContractDirectory(
|
|
31
25
|
contracts: IContractLocation,
|
|
@@ -7,23 +7,17 @@ import { createContractDirectory } from "./createContractDirectory";
|
|
|
7
7
|
*
|
|
8
8
|
* Bundled references such as `principles/screenplay.md` start at the skills
|
|
9
9
|
* tree's `contracts/story`. Production-owned `language/...` and `work/...`
|
|
10
|
-
* references start at `docs/contracts`. Each citation works the same way in
|
|
11
|
-
*
|
|
10
|
+
* references start at `docs/contracts`. Each citation works the same way in a
|
|
11
|
+
* workspace and in a standalone production.
|
|
12
12
|
*
|
|
13
13
|
* The same local Markdown bytes are both pre-draft instructions and later
|
|
14
14
|
* evidence targets. Config constructs the graph but owns no document mirror.
|
|
15
15
|
*
|
|
16
|
-
* @param contracts The production location and optional shared tree; read, not
|
|
16
|
+
* @param contracts The production location and optional shared tree; read, not
|
|
17
|
+
* retained.
|
|
17
18
|
* @param scope The contract family the reference addresses.
|
|
18
|
-
* @returns The `/`-separated root relative to the production's configuration
|
|
19
|
-
*
|
|
20
|
-
* @evidence contracts/development/implementation.md#principled-implementation createContractDirectory selects the bundled or production-owned tree and createReferenceRoot expresses it relative to the production location where native Evidence resolves the reference.
|
|
21
|
-
* @evidence contracts/development/implementation.md#clear-and-simple-structure Ownership and relative-root spelling each live with their own owner; this function only composes them for the shared, language and work reference factories.
|
|
22
|
-
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts The installed shared and production trees are the layout contracts; no fallback remote root, retired location, fixture path or copied contract bytes are introduced.
|
|
23
|
-
* @evidence contracts/development/implementation.md#efficient-algorithms A fixed number of path operations, linear in the location and skills path lengths, without reading directories or file bytes.
|
|
24
|
-
* @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work A pure path computation coordinates no work across requests.
|
|
25
|
-
* @evidenceExclude contracts/development/implementation.md#bound-retention-and-release-resources Only the returned string outlives the call.
|
|
26
|
-
* @evidence contracts/development/common.md#meaningful-documentation Gives bundled and local citation examples with their owning roots and explains which Markdown supplies the checklist.
|
|
19
|
+
* @returns The `/`-separated root relative to the production's configuration
|
|
20
|
+
* directory.
|
|
27
21
|
*/
|
|
28
22
|
export function createContractRoot(
|
|
29
23
|
contracts: IContractLocation,
|
|
@@ -1,14 +1,4 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Mirrors selected manuscript files under detached construction evidence.
|
|
3
|
-
*
|
|
4
|
-
* @evidence contracts/development/implementation.md#principled-implementation Each body-relative selector is placed under detached construction files or units according to its host symbol, preserving a leading exclusion marker around the qualified selector.
|
|
5
|
-
* @evidence contracts/development/implementation.md#clear-and-simple-structure One selector transform serves the native graph collector and package claim builders, so detached file/H2 evidence use the same carrier layout.
|
|
6
|
-
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Files and units are explicit native host distinctions; negative selectors keep their original exclusion semantics instead of widening coverage.
|
|
7
|
-
* @evidence contracts/development/common.md#meaningful-documentation The comment states the detached construction mirror, and the typed symbol input selects the documented file-versus-unit carrier.
|
|
8
|
-
* @evidence contracts/development/implementation.md#efficient-algorithms For n selectors with total text length p, one mapping pass costs O(n + p) text work and allocates n qualified strings; manuscript contents are not read.
|
|
9
|
-
* @evidence contracts/development/implementation.md#reuse-equivalent-work Carrier selection is computed once for the map and the transformation is shared by all claim builders; fresh arrays prevent callers from mutating another claim selection.
|
|
10
|
-
* @evidence contracts/development/implementation.md#bound-retention-and-release-resources The mapped array is returned to its config owner and scales with selector text; no filesystem handle, task or process-wide selector cache is retained.
|
|
11
|
-
*/
|
|
1
|
+
/** Mirrors selected manuscript files under detached construction evidence. */
|
|
12
2
|
export function createEvidenceFiles(
|
|
13
3
|
symbol: "file" | "h2",
|
|
14
4
|
files: string[],
|
|
@@ -11,14 +11,6 @@ import { createSettingsFiles } from "../../createSettingsFiles";
|
|
|
11
11
|
* scaffold's domain folders, and a short's brief the domain folders. The
|
|
12
12
|
* settings outline remains outside canon selectors. Narrative layers retain
|
|
13
13
|
* their release partition or film folders and delegate to their own selector.
|
|
14
|
-
*
|
|
15
|
-
* @evidence contracts/development/implementation.md#principled-implementation Settings and brief use their dedicated canon selectors excluding outline navigation, while narrative layers delegate to the scope-validating partition and film-folder selector; all outputs remain relative to the body root.
|
|
16
|
-
* @evidence contracts/development/implementation.md#clear-and-simple-structure This dispatcher owns the authored-layer distinction and delegates narrative pilot/complete-work rules rather than repeating their validation.
|
|
17
|
-
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Legacy flat settings and exact first-part pilots are supported layouts/scopes; invalid narrative scope is rejected by the shared selector rather than widened to a matching fixture.
|
|
18
|
-
* @evidence contracts/development/common.md#meaningful-documentation The prose names supported settings layouts, outline exclusion and partitioned or film-folder narrative selection relative to the body root.
|
|
19
|
-
* @evidence contracts/development/implementation.md#efficient-algorithms Each branch returns at most two selectors; narrative branches also validate scope text, so cost/storage are bounded by the selected scope/path text and independent of manuscript size.
|
|
20
|
-
* @evidence contracts/development/implementation.md#reuse-equivalent-work The same settings/narrative selector helpers serve hosts and references; fresh returned selector arrays keep config mutations local and no filesystem membership is cached.
|
|
21
|
-
* @evidence contracts/development/implementation.md#bound-retention-and-release-resources The caller owns the one- or two-string result; this dispatcher opens no handle, starts no task and retains no population state.
|
|
22
14
|
*/
|
|
23
15
|
export function createUnitFiles(
|
|
24
16
|
layer: AuthoredLayer,
|
|
@@ -10,14 +10,6 @@ import { createContractDirectory } from "./createContractDirectory";
|
|
|
10
10
|
* @param contracts The production and its configured skills tree.
|
|
11
11
|
* @param file A checklist path relative to `contracts/story`.
|
|
12
12
|
* @returns Whether the current installation supplies the checklist.
|
|
13
|
-
*
|
|
14
|
-
* @evidence contracts/development/implementation.md#principled-implementation Probes the file relative to the same bundled contract directory used by Markdown references.
|
|
15
|
-
* @evidence contracts/development/implementation.md#clear-and-simple-structure Joins the address to the directory and performs one existence check.
|
|
16
|
-
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Reads the configured tree directly so a similarly named local checklist cannot activate a bundled duty.
|
|
17
|
-
* @evidence contracts/development/implementation.md#efficient-algorithms Performs one filesystem probe with path-length work.
|
|
18
|
-
* @evidence contracts/development/implementation.md#reuse-equivalent-work All optional bundled families share this probe and the existing owner-directory resolver.
|
|
19
|
-
* @evidenceExclude contracts/development/implementation.md#bound-retention-and-release-resources A synchronous existence check keeps no handle or cached installation state.
|
|
20
|
-
* @evidence contracts/development/common.md#meaningful-documentation Documents the path base, optionality and result.
|
|
21
13
|
*/
|
|
22
14
|
export function hasStoryContract(
|
|
23
15
|
contracts: IContractLocation,
|
|
@@ -3,7 +3,8 @@ import { BODY_ROOT } from "./BODY_ROOT";
|
|
|
3
3
|
/**
|
|
4
4
|
* Gives reference targets an explicit address in the graph's global space.
|
|
5
5
|
*
|
|
6
|
-
* Every inherited reference selects the body, where each layer's authored text
|
|
6
|
+
* Every inherited reference selects the body, where each layer's authored text
|
|
7
|
+
* lives.
|
|
7
8
|
*
|
|
8
9
|
* File references use package-relative addresses. A claim that selects file
|
|
9
10
|
* hosts and a claim that selects section hosts read the same documents, and the
|
|
@@ -12,14 +13,6 @@ import { BODY_ROOT } from "./BODY_ROOT";
|
|
|
12
13
|
* would reach that reference as an aggregate target and be refused for lacking
|
|
13
14
|
* a section host. A distinct address space keeps each annotation with the
|
|
14
15
|
* reference it answers.
|
|
15
|
-
*
|
|
16
|
-
* @evidence contracts/development/implementation.md#principled-implementation References always target the body, and file references use package-global addresses distinct from H2-root addresses to avoid aggregate-target collisions.
|
|
17
|
-
* @evidence contracts/development/implementation.md#clear-and-simple-structure Address qualification is centralized for coverage, lineage and settings references, keeping native binder address-space rules out of their semantic flag builders.
|
|
18
|
-
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts The file/H2 address distinction follows native aggregate binding semantics; no citation is rewritten to match an expected answer.
|
|
19
|
-
* @evidence contracts/development/common.md#meaningful-documentation The prose explains body targeting and why file references need a separate global address space.
|
|
20
|
-
* @evidence contracts/development/implementation.md#efficient-algorithms File mode maps n selectors and their total text length p into qualified paths in O(n + p) work/storage; H2 mode constructs only its root and reuses the supplied files array.
|
|
21
|
-
* @evidence contracts/development/implementation.md#reuse-equivalent-work Coverage and lineage share this address rule, and H2 mode reuses the input selector array; there is no cache that could incorrectly equate mutable files arrays.
|
|
22
|
-
* @evidence contracts/development/implementation.md#bound-retention-and-release-resources The caller owns the returned root/files record; file mode owns n new strings while H2 mode retains the caller array reference, with no filesystem handle or running task.
|
|
23
16
|
*/
|
|
24
17
|
export function referenceLocation(
|
|
25
18
|
files: string[],
|
|
@@ -5,19 +5,13 @@ import { readSettingsFiles } from "./readSettingsFiles";
|
|
|
5
5
|
import { settingsEntryAnchor } from "./settingsEntryAnchor";
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
|
-
* Checks that the outline describes the classified canon, in domain or numbered
|
|
8
|
+
* Checks that the outline describes the classified canon, in domain or numbered
|
|
9
|
+
* folders, in its actual order.
|
|
9
10
|
*
|
|
10
|
-
* Entry anchors encode the relative file path and entry labels equal the H1.
|
|
11
|
-
* the authored layout, not evidence rows: the graph owns citation
|
|
12
|
-
* and the semantic reviewer owns whether grouping and explanations
|
|
13
|
-
*
|
|
14
|
-
* @evidence contracts/development/implementation.md#principled-implementation The outline's structural headings are matched sequentially against numbered canon paths and each file's single H1; path-encoded anchors and exact titles enforce one ordered entry per canon file without judging semantic grouping.
|
|
15
|
-
* @evidence contracts/development/implementation.md#clear-and-simple-structure The validator owns settings index topology, leaving citation cardinality to the graph and grouping quality to independent review.
|
|
16
|
-
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Empty outline parts, missing/extra/reordered entries and title/anchor differences fail directly; comments and fenced examples are inert structural material for every input.
|
|
17
|
-
* @evidence contracts/development/common.md#meaningful-documentation The prose states path-derived anchors, H1 label equality, actual order and boundaries between topology, graph evidence and semantic review.
|
|
18
|
-
* @evidence contracts/development/implementation.md#efficient-algorithms Canon enumeration sorts entries, then the outline and each referenced file are read/parsed once; cost grows with entry sorting and total Markdown characters. Arrays retain parsed headings and paths, and the active document bytes are bounded by each read rather than an external fixed cap.
|
|
19
|
-
* @evidence contracts/development/implementation.md#reuse-equivalent-work The ordered canon list is reused for all outline entries, while each matched file is read once; no cross-call cache is safe because canon bytes and topology are mutable.
|
|
20
|
-
* @evidence contracts/development/implementation.md#bound-retention-and-release-resources All strings, heading arrays and path collections are local and released on completion/failure; synchronous readFileSync calls own no retained descriptor or asynchronous task.
|
|
11
|
+
* Entry anchors encode the relative file path and entry labels equal the H1.
|
|
12
|
+
* This checks the authored layout, not evidence rows: the graph owns citation
|
|
13
|
+
* cardinality and the semantic reviewer owns whether grouping and explanations
|
|
14
|
+
* work.
|
|
21
15
|
*/
|
|
22
16
|
export function validateSettingsOutline(location: string): void {
|
|
23
17
|
const root: string = path.join(location, "docs/body/settings");
|
|
@@ -93,18 +87,31 @@ export function validateSettingsOutline(location: string): void {
|
|
|
93
87
|
}
|
|
94
88
|
|
|
95
89
|
/**
|
|
96
|
-
* Reads structural ATX headings while keeping comments and fenced examples
|
|
90
|
+
* Reads structural ATX headings while keeping comments and fenced examples
|
|
91
|
+
* inert.
|
|
97
92
|
*
|
|
98
93
|
* A leading byte order mark is dropped first, as the binder does when it trims
|
|
99
94
|
* a file, so both readers accept the same authored bytes.
|
|
100
95
|
*
|
|
101
|
-
* Principled implementation: A line-state parser masks HTML comments and
|
|
102
|
-
*
|
|
103
|
-
*
|
|
104
|
-
*
|
|
105
|
-
*
|
|
106
|
-
*
|
|
107
|
-
*
|
|
96
|
+
* Principled implementation: A line-state parser masks HTML comments and
|
|
97
|
+
* compatible fences before recognizing ATX headings; stripping an initial BOM
|
|
98
|
+
* keeps its first-heading interpretation aligned with authored binder trimming.
|
|
99
|
+
* Clear and simple design: The local parser exists for outline structure only,
|
|
100
|
+
* returning heading captures without rewriting the source or replacing graph
|
|
101
|
+
* evidence extraction. Prohibited implementation shortcuts: BOM and
|
|
102
|
+
* fenced/comment examples follow supported Markdown input rules for every
|
|
103
|
+
* document; no title or expected outline entry is injected. Meaningful
|
|
104
|
+
* documentation: The prose explains example/comment inertness and the leading
|
|
105
|
+
* BOM premise; returned regexp groups retain heading depth and raw title for
|
|
106
|
+
* the validator. Efficient algorithms: Line splitting and forward state scans
|
|
107
|
+
* visit Markdown text; accumulated visible fragments and regexp captures
|
|
108
|
+
* consume space proportional to input/headings. Repeated string concatenation
|
|
109
|
+
* relies on runtime string handling and claims no measured linear speedup.
|
|
110
|
+
* Reuse equivalent work: One pass handles comments and fences together for a
|
|
111
|
+
* document; the pure parser coordinates no cross-request work or filesystem
|
|
112
|
+
* effects. Bound retention and release resources: Line, visible-text and
|
|
113
|
+
* capture arrays are local or caller-owned at return; no persistent state,
|
|
114
|
+
* descriptor or task is retained.
|
|
108
115
|
*/
|
|
109
116
|
function headings(markdown: string): RegExpExecArray[] {
|
|
110
117
|
let comment: boolean = false;
|
|
@@ -1,16 +1,6 @@
|
|
|
1
1
|
import type { NarrativeScope } from "./NarrativeScope";
|
|
2
2
|
|
|
3
|
-
/**
|
|
4
|
-
* Returns whether the selected narrative population is one pilot slice.
|
|
5
|
-
*
|
|
6
|
-
* @evidence contracts/development/implementation.md#principled-implementation The discriminant comparison recognizes the pilot arm of NarrativeScope without consulting filenames or enabling stages.
|
|
7
|
-
* @evidence contracts/development/implementation.md#clear-and-simple-structure This predicate only answers scope selection; file-name validation remains with the narrative selector.
|
|
8
|
-
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Both admitted scope modes use their literal contract spelling, without a special consumer or fallback mode.
|
|
9
|
-
* @evidence contracts/development/common.md#meaningful-documentation The comment identifies the result as pilot population selection; it makes no approval or layout validity claim.
|
|
10
|
-
* @evidence contracts/development/implementation.md#efficient-algorithms One literal comparison takes constant time and allocates no collection.
|
|
11
|
-
* @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work This pure predicate coordinates no reusable requests, phases or effectful work.
|
|
12
|
-
* @evidenceExclude contracts/development/implementation.md#bound-retention-and-release-resources The predicate retains no object, handle or task beyond its call.
|
|
13
|
-
*/
|
|
3
|
+
/** Returns whether the selected narrative population is one pilot slice. */
|
|
14
4
|
export function isFirstPartPilot(scope: NarrativeScope): boolean {
|
|
15
5
|
return scope.mode === "first-part-pilot";
|
|
16
6
|
}
|
|
@@ -25,19 +25,11 @@ import { validateRenderedSample } from "./internal/metadataRewrite/validateRende
|
|
|
25
25
|
/**
|
|
26
26
|
* Proves that a metadata-only rewrite changed only structural evidence rows.
|
|
27
27
|
*
|
|
28
|
-
* The canonical projection removes only the metadata region explicitly owned
|
|
29
|
-
*
|
|
28
|
+
* The canonical projection removes only the metadata region explicitly owned by
|
|
29
|
+
* the operation. Complete comment ownership stops at the delimiters, while
|
|
30
30
|
* acknowledgement, review, and fingerprint ownership leaves the surrounding
|
|
31
31
|
* evidence structure protected. Every other byte remains protected, including
|
|
32
32
|
* Markdown body, sources, punctuation, BOM choice, and non-owned line endings.
|
|
33
|
-
*
|
|
34
|
-
* @evidence contracts/development/implementation.md#principled-implementation Validate physical file safety and strict UTF-8, compare ownership-specific byte projections, check corruption signals and bind bulk samples to changed metadata.
|
|
35
|
-
* @evidence contracts/development/implementation.md#clear-and-simple-structure One synchronous coordinator aggregates diagnostics while grammar, byte mapping and sample checks have separate helpers.
|
|
36
|
-
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts BOM, authored text and unowned endings stay protected; added, removed or symlinked selected paths fail rather than becoming metadata edits.
|
|
37
|
-
* @evidence contracts/development/common.md#meaningful-documentation The comment defines ownership boundaries and byte preservation; failure throws aggregated diagnostics and success returns hashes and sample data.
|
|
38
|
-
* @evidence contracts/development/implementation.md#efficient-algorithms Across F files and B bytes, reads, validation, projection, hashing and token scans dominate; malformed-block lookahead may rescan, sorting is O(F log F), and retained projections scale with total bytes.
|
|
39
|
-
* @evidence contracts/development/implementation.md#reuse-equivalent-work Each projection serves equality, source diagnostics, metadata comparison, hashing and sample checks within this invocation; filesystem results are not cached across operations.
|
|
40
|
-
* @evidence contracts/development/implementation.md#bound-retention-and-release-resources The call owns synchronous reads, diagnostics, reports and its projection Map until return or throw; no handles stay open and memory has no fixed cap beyond selected inputs.
|
|
41
33
|
*/
|
|
42
34
|
export function verifyEvidenceMetadataRewrite(
|
|
43
35
|
props: IEvidenceMetadataRewriteProps,
|