@automovie/evidence 0.3.3 → 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 -92
- package/lib/IAutoMovieDevelopmentProps.d.ts +26 -20
- 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 +16 -26
- package/lib/createDevelopmentContractClaims.js +45 -30
- 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 -11
- package/lib/createEvidenceConfig.js +34 -12
- package/lib/createEvidenceConfig.js.map +1 -1
- package/lib/createResearchClaims.d.ts +5 -13
- package/lib/createResearchClaims.js +6 -14
- 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 +12 -0
- package/lib/internal/assertFilmCatalogLayout.js +144 -0
- package/lib/internal/assertFilmCatalogLayout.js.map +1 -0
- 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 +5 -0
- package/lib/internal/hasMatchingFile.js +20 -0
- package/lib/internal/hasMatchingFile.js.map +1 -0
- 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 +5 -15
- 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 +2 -10
- package/lib/narrative/internal/claims/createLayerClaims.js +2 -28
- 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 +9 -18
- package/lib/narrative/internal/claims/createOutlineClaims.js.map +1 -1
- package/lib/narrative/internal/claims/createPopulationObligationClaims.d.ts +4 -14
- package/lib/narrative/internal/claims/createPopulationObligationClaims.js +10 -36
- 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 +57 -56
- package/lib/narrative/internal/claims/createReviewClaims.js.map +1 -1
- package/lib/narrative/internal/claims/createSettingCoverageClaim.d.ts +1 -9
- package/lib/narrative/internal/claims/createSettingCoverageClaim.js +1 -9
- package/lib/narrative/internal/claims/createSettingCoverageClaim.js.map +1 -1
- package/lib/narrative/internal/claims/index.d.ts +0 -1
- package/lib/narrative/internal/claims/index.js +0 -1
- package/lib/narrative/internal/claims/index.js.map +1 -1
- package/lib/narrative/internal/collectProductionClaims.d.ts +1 -11
- package/lib/narrative/internal/collectProductionClaims.js +2 -15
- 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/index.d.ts +0 -1
- package/lib/narrative/internal/index.js +0 -1
- package/lib/narrative/internal/index.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 +3 -13
- package/lib/narrative/internal/references/createLanguagePrincipleReferences.js +4 -13
- 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 +2 -21
- package/lib/narrative/internal/references/createPrincipleReferences.js +6 -35
- 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 -16
- package/lib/narrative/internal/references/createSharedReference.js +8 -17
- 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 -13
- package/lib/narrative/internal/references/layerFiles.js +5 -15
- 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 +8 -18
- package/lib/narrative/internal/utilities/createContractRoot.js +8 -18
- 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 +9 -0
- package/lib/narrative/internal/utilities/hasStoryContract.js +20 -0
- package/lib/narrative/internal/utilities/hasStoryContract.js.map +1 -0
- 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 +27 -20
- package/src/IAutoMovieEvidenceConfigProps.ts +19 -18
- package/src/IAutoMovieNarrativeProps.ts +10 -8
- package/src/IAutoMovieNoNarrativeProps.ts +4 -6
- package/src/createDevelopmentContractClaims.ts +46 -30
- package/src/createEngineeringClaims.ts +17 -22
- package/src/createEvidenceConfig.ts +45 -12
- package/src/createResearchClaims.ts +6 -14
- 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 +173 -0
- package/src/internal/assertProductionContractLayout.ts +2 -10
- package/src/internal/createReferenceRoot.ts +0 -8
- package/src/internal/hasMatchingFile.ts +21 -0
- 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 +5 -15
- 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 +2 -30
- package/src/narrative/internal/claims/createOutlineClaims.ts +9 -26
- package/src/narrative/internal/claims/createPopulationObligationClaims.ts +12 -53
- package/src/narrative/internal/claims/createReviewClaims.ts +57 -64
- package/src/narrative/internal/claims/createSettingCoverageClaim.ts +1 -9
- package/src/narrative/internal/claims/index.ts +0 -1
- package/src/narrative/internal/collectProductionClaims.ts +2 -15
- package/src/narrative/internal/constructionStage.ts +2 -9
- package/src/narrative/internal/createGraphConfig.ts +4 -12
- package/src/narrative/internal/index.ts +0 -1
- 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 +4 -14
- 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 +9 -42
- package/src/narrative/internal/references/createSettingReferences.ts +3 -10
- package/src/narrative/internal/references/createSharedReference.ts +8 -17
- package/src/narrative/internal/references/createUpstreamReference.ts +0 -8
- package/src/narrative/internal/references/layerFiles.ts +5 -15
- 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 +8 -18
- 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 +21 -0
- 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
- package/lib/narrative/internal/REALIZED_LAYERS.d.ts +0 -16
- package/lib/narrative/internal/REALIZED_LAYERS.js +0 -19
- package/lib/narrative/internal/REALIZED_LAYERS.js.map +0 -1
- package/lib/narrative/internal/claims/createExpressionObligationClaims.d.ts +0 -26
- package/lib/narrative/internal/claims/createExpressionObligationClaims.js +0 -93
- package/lib/narrative/internal/claims/createExpressionObligationClaims.js.map +0 -1
- package/src/narrative/internal/REALIZED_LAYERS.ts +0 -18
- package/src/narrative/internal/claims/createExpressionObligationClaims.ts +0 -125
|
@@ -13,19 +13,11 @@ import { STORY_CONTRACTS } from "./STORY_CONTRACTS";
|
|
|
13
13
|
* `docs/contracts/{work,language}`. Their duties are admitted only when their
|
|
14
14
|
* files exist where they now belong, so a production left in the old layout
|
|
15
15
|
* would silently lose every language and work duty instead of failing. Either
|
|
16
|
-
* legacy directory therefore stops configuration, and the error names each
|
|
17
|
-
*
|
|
16
|
+
* legacy directory therefore stops configuration, and the error names each one
|
|
17
|
+
* with its new home. Nothing is read from the old location.
|
|
18
18
|
*
|
|
19
19
|
* @param location Absolute production directory; read, not retained.
|
|
20
20
|
* @throws Error naming every legacy directory found and where it moves.
|
|
21
|
-
*
|
|
22
|
-
* @evidence contracts/development/implementation.md#principled-implementation Directory existence under the production location is the exact signal of the retired layout, because the old tree held only production-owned families; `fs.existsSync` follows the installed filesystem, and the message is built from the same layout constants the factories use.
|
|
23
|
-
* @evidence contracts/development/implementation.md#clear-and-simple-structure One guard owns the migration refusal, called by createEvidenceConfig and by the narrative source assertion, so neither the configuration entry nor any contract factory carries legacy knowledge.
|
|
24
|
-
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts The guard refuses rather than falls back: no reference, probe or root reads the old location, and every legacy family found is reported in one error instead of the first alone.
|
|
25
|
-
* @evidence contracts/development/implementation.md#efficient-algorithms Two existence probes and a message linear in the found directories.
|
|
26
|
-
* @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work Each configuration build observes the filesystem anew; caching would hide a migration made between builds.
|
|
27
|
-
* @evidenceExclude contracts/development/implementation.md#bound-retention-and-release-resources Synchronous probes leave no handle, task or retained state.
|
|
28
|
-
* @evidence contracts/development/common.md#meaningful-documentation States the move, why a stale layout must fail loudly, that nothing is read from the old location, and the parameter and failure.
|
|
29
21
|
*/
|
|
30
22
|
export function assertProductionContractLayout(location: string): void {
|
|
31
23
|
const moves: string[] = (["work", "language"] as const)
|
|
@@ -12,14 +12,6 @@ import path from "node:path";
|
|
|
12
12
|
* @param location Absolute production directory holding `evidence.config.ts`.
|
|
13
13
|
* @param directory Absolute directory the root must reach.
|
|
14
14
|
* @returns The `/`-separated relative root, or `.` for the production itself.
|
|
15
|
-
*
|
|
16
|
-
* @evidence contracts/development/implementation.md#principled-implementation `path.relative` between two absolute directories gives the path native Evidence resolves back against the configuration directory; replacing `\` with `/` keeps Windows output portable. Directories on different Windows drives have no relative path, and Node then returns the absolute target, which passes through unchanged.
|
|
17
|
-
* @evidence contracts/development/implementation.md#clear-and-simple-structure One function owns the location-to-root rule for the engineering defaults and both story contract owners, instead of repeating the relative-and-normalize steps at each reference.
|
|
18
|
-
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts No root is special-cased; an empty relative path becomes `.` because an empty root names no directory.
|
|
19
|
-
* @evidence contracts/development/implementation.md#efficient-algorithms One relative-path computation and one replacement, linear in the path lengths.
|
|
20
|
-
* @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work A pure path computation coordinates no work across requests.
|
|
21
|
-
* @evidenceExclude contracts/development/implementation.md#bound-retention-and-release-resources Only the returned string outlives the call.
|
|
22
|
-
* @evidence contracts/development/common.md#meaningful-documentation States how native Evidence resolves the result, the portable separators, the parameters and the `.` result.
|
|
23
15
|
*/
|
|
24
16
|
export function createReferenceRoot(
|
|
25
17
|
location: string,
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import fs from "node:fs";
|
|
2
|
+
import path from "node:path";
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Returns whether a glob selects a regular file under the production root. A
|
|
6
|
+
* link to a file counts. A directory with a source extension does not.
|
|
7
|
+
*/
|
|
8
|
+
export function hasMatchingFile(
|
|
9
|
+
cwd: string,
|
|
10
|
+
patterns: string | string[],
|
|
11
|
+
exclude: string[],
|
|
12
|
+
): boolean {
|
|
13
|
+
return fs
|
|
14
|
+
.globSync(patterns, { cwd, exclude })
|
|
15
|
+
.some(
|
|
16
|
+
(file: string): boolean =>
|
|
17
|
+
fs
|
|
18
|
+
.statSync(path.join(cwd, file), { throwIfNoEntry: false })
|
|
19
|
+
?.isFile() === true,
|
|
20
|
+
);
|
|
21
|
+
}
|
package/src/internal/index.ts
CHANGED
|
@@ -11,16 +11,9 @@ import { SKILLS_ROOT } from "./SKILLS_ROOT";
|
|
|
11
11
|
* the working directory, so a workspace production can write
|
|
12
12
|
* `"../../../.agents/skills"` and get the same tree from any process.
|
|
13
13
|
*
|
|
14
|
-
* @param contracts The production location and optional shared tree; read, not
|
|
14
|
+
* @param contracts The production location and optional shared tree; read, not
|
|
15
|
+
* retained.
|
|
15
16
|
* @returns The absolute shared skills directory.
|
|
16
|
-
*
|
|
17
|
-
* @evidence contracts/development/implementation.md#principled-implementation Node's `path.resolve` anchors a relative value at the absolute production location, and `path.join` builds the default from the scaffold's `.agents/skills` layout.
|
|
18
|
-
* @evidence contracts/development/implementation.md#clear-and-simple-structure One function owns both the default and the resolution rule, so the configuration entry, the narrative assertion and every shared contract lookup agree on the shared tree.
|
|
19
|
-
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts A relative value is resolved against the production, never the working directory; no workspace layout is inferred from the filesystem.
|
|
20
|
-
* @evidence contracts/development/implementation.md#efficient-algorithms One path resolution or join, linear in the path length.
|
|
21
|
-
* @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work A pure path computation coordinates no work across requests.
|
|
22
|
-
* @evidenceExclude contracts/development/implementation.md#bound-retention-and-release-resources Only the returned string outlives the call.
|
|
23
|
-
* @evidence contracts/development/common.md#meaningful-documentation States the standalone default, how a relative value resolves, and the parameter and result.
|
|
24
17
|
*/
|
|
25
18
|
export function resolveSkillsDirectory(contracts: IContractLocation): string {
|
|
26
19
|
if (contracts.skills === undefined)
|
|
@@ -1,14 +1,10 @@
|
|
|
1
1
|
import type { NarrativeLayer } from "./NarrativeLayer";
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
|
-
* Names every authored layer: the canon the narrative layers inherit and the
|
|
4
|
+
* Names every authored layer: the canon the narrative layers inherit and the
|
|
5
|
+
* narrative layers themselves.
|
|
5
6
|
*
|
|
6
7
|
* Settings is the long route's canon and brief the short route's; each is a
|
|
7
8
|
* source layer with no parent of its own.
|
|
8
|
-
*
|
|
9
|
-
* @evidence contracts/development/design.md#principled-representation The union adds the two canon layers, long-route settings and short-route brief, to the three narrative layers, so dependency keys identify both the documentary parent and its adaptations.
|
|
10
|
-
* @evidence contracts/development/design.md#minimal-and-owned-surface Extending NarrativeLayer with the canon literals lets common dependency keys include canon without a separate parallel key type.
|
|
11
|
-
* @evidence contracts/development/design.md#prohibited-design-shortcuts Only the five supported layer literals are admitted; this alias supplies no runtime branch or ownership inference.
|
|
12
|
-
* @evidence contracts/development/common.md#meaningful-documentation The comment distinguishes the two canon layers, their routes and the inherited narrative layers.
|
|
13
9
|
*/
|
|
14
10
|
export type AuthoredLayer = "settings" | "brief" | NarrativeLayer;
|
|
@@ -7,11 +7,6 @@
|
|
|
7
7
|
* leaving delimiters, inter-section blank lines, and the other declaration
|
|
8
8
|
* family protected. `fingerprints` owns only the structural hash token in a
|
|
9
9
|
* review header, never an identical token in its target or reason.
|
|
10
|
-
*
|
|
11
|
-
* @evidence contracts/development/design.md#principled-representation A closed union limits mutations to comments, acknowledgements, reviews or fingerprint tokens.
|
|
12
|
-
* @evidence contracts/development/design.md#minimal-and-owned-surface This vocabulary is shared by runtime validation and projection.
|
|
13
|
-
* @evidence contracts/development/design.md#prohibited-design-shortcuts These alternatives are structural protocol regions, not consumer exceptions.
|
|
14
|
-
* @evidence contracts/development/common.md#meaningful-documentation The comment defines delimiters, reasons and surrounding bytes protected for each ownership.
|
|
15
10
|
*/
|
|
16
11
|
export type EvidenceMetadataRewriteOwnership =
|
|
17
12
|
| "comments"
|
|
@@ -1,11 +1,4 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* One human-readable sample taken from metadata after a bulk rewrite.
|
|
3
|
-
*
|
|
4
|
-
* @evidence contracts/development/design.md#principled-representation A record identifies exact declaration text by normalized path, one-based line, language and confirmer.
|
|
5
|
-
* @evidence contracts/development/design.md#minimal-and-owned-surface Explicit audit data can be matched against parsed candidate declarations.
|
|
6
|
-
* @evidence contracts/development/design.md#prohibited-design-shortcuts This record does not independently prove a render was viewed; validation checks identity and text consistency.
|
|
7
|
-
* @evidence contracts/development/common.md#meaningful-documentation Properties define normalization, source-line units, excluded delimiters and confirmer identity.
|
|
8
|
-
*/
|
|
1
|
+
/** One human-readable sample taken from metadata after a bulk rewrite. */
|
|
9
2
|
export interface IEvidenceMetadataRenderedSample {
|
|
10
3
|
/** Slash-normalized protected path containing the sampled declaration. */
|
|
11
4
|
file: string;
|
|
@@ -1,11 +1,4 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* One protected file proven unchanged outside structural evidence comments.
|
|
3
|
-
*
|
|
4
|
-
* @evidence contracts/development/design.md#principled-representation A result pairs a selected path with metadata change status and protected-projection SHA-256.
|
|
5
|
-
* @evidence contracts/development/design.md#minimal-and-owned-surface File evidence is exposed without returning complete retained projections.
|
|
6
|
-
* @evidence contracts/development/design.md#prohibited-design-shortcuts The hash describes protected bytes for the selected ownership rather than literary approval.
|
|
7
|
-
* @evidence contracts/development/common.md#meaningful-documentation Properties define path roots, structural metadata change and the hashed representation.
|
|
8
|
-
*/
|
|
1
|
+
/** One protected file proven unchanged outside structural evidence comments. */
|
|
9
2
|
export interface IEvidenceMetadataRewriteFile {
|
|
10
3
|
/** Slash-normalized path relative to both compared roots. */
|
|
11
4
|
file: string;
|
|
@@ -1,14 +1,7 @@
|
|
|
1
1
|
import type { EvidenceMetadataRewriteOwnership } from "./EvidenceMetadataRewriteOwnership";
|
|
2
2
|
import type { IEvidenceMetadataRenderedSample } from "./IEvidenceMetadataRenderedSample";
|
|
3
3
|
|
|
4
|
-
/**
|
|
5
|
-
* Selects the two trees and exact Markdown population of a metadata rewrite.
|
|
6
|
-
*
|
|
7
|
-
* @evidence contracts/development/design.md#principled-representation One record selects original and candidate roots, ownership and optional paths and sample.
|
|
8
|
-
* @evidence contracts/development/design.md#minimal-and-owned-surface The request groups one comparison boundary without positional coupling.
|
|
9
|
-
* @evidence contracts/development/design.md#prohibited-design-shortcuts Optional population and bulk fields express supported operations without waiving byte protection.
|
|
10
|
-
* @evidence contracts/development/common.md#meaningful-documentation Properties state root roles, omitted-files union semantics and bulk sample requirements.
|
|
11
|
-
*/
|
|
4
|
+
/** Selects the two trees and exact Markdown population of a metadata rewrite. */
|
|
12
5
|
export interface IEvidenceMetadataRewriteProps {
|
|
13
6
|
/** Immutable tree containing the bytes before the scoped operation. */
|
|
14
7
|
beforeRoot: string;
|
|
@@ -2,14 +2,7 @@ import type { EvidenceMetadataRewriteOwnership } from "./EvidenceMetadataRewrite
|
|
|
2
2
|
import type { IEvidenceMetadataRenderedSample } from "./IEvidenceMetadataRenderedSample";
|
|
3
3
|
import type { IEvidenceMetadataRewriteFile } from "./IEvidenceMetadataRewriteFile";
|
|
4
4
|
|
|
5
|
-
/**
|
|
6
|
-
* Reproducible result of one successful evidence-metadata rewrite check.
|
|
7
|
-
*
|
|
8
|
-
* @evidence contracts/development/design.md#principled-representation A successful result carries ownership, bulk state, sorted file results and a validated optional sample.
|
|
9
|
-
* @evidence contracts/development/design.md#minimal-and-owned-surface The report separates comparison evidence from the input request.
|
|
10
|
-
* @evidence contracts/development/design.md#prohibited-design-shortcuts The coordinator creates this report only after diagnostics are empty.
|
|
11
|
-
* @evidence contracts/development/common.md#meaningful-documentation Properties identify sorted coverage and when sample data is included.
|
|
12
|
-
*/
|
|
5
|
+
/** Reproducible result of one successful evidence-metadata rewrite check. */
|
|
13
6
|
export interface IEvidenceMetadataRewriteReport {
|
|
14
7
|
/** Exact mutable metadata region this report proved. */
|
|
15
8
|
ownership: EvidenceMetadataRewriteOwnership;
|
|
@@ -7,13 +7,8 @@ import type { ProductionStage } from "./ProductionStage";
|
|
|
7
7
|
*
|
|
8
8
|
* A work owns contracts the shared config cannot state for it: a scale target,
|
|
9
9
|
* a language-specific text floor, an episode-end standard. Each is a checklist
|
|
10
|
-
* its selected hosts answer item by item, and the wiring is the same every
|
|
11
|
-
*
|
|
12
|
-
*
|
|
13
|
-
* @evidence contracts/development/design.md#principled-representation The object groups work-contract paths, addressed inside the production's `docs/contracts`, host selectors, explicit symbol granularity and activation flags for createPackageChecklistClaim; the checklist default is documented on its member.
|
|
14
|
-
* @evidence contracts/development/design.md#minimal-and-owned-surface One object owns document selection, host granularity and activation so createPackageChecklistClaim validates the relationship together.
|
|
15
|
-
* @evidence contracts/development/design.md#prohibited-design-shortcuts Exact work paths and symbol validity are enforced by createPackageChecklistClaim rather than hidden type-level assumptions.
|
|
16
|
-
* @evidence contracts/development/common.md#meaningful-documentation Members explain document-relative addressing, body-relative hosts, required host granularity, the checklist default and optional deferral.
|
|
10
|
+
* its selected hosts answer item by item, and the wiring is the same every time
|
|
11
|
+
* — only the document, the hosts, and when the claim is off differ.
|
|
17
12
|
*/
|
|
18
13
|
export interface IPackageChecklistClaimProps {
|
|
19
14
|
/** Names the claim in diagnostics. State what the hosts must reach. */
|
|
@@ -4,14 +4,7 @@ import type { AuthoredLayer } from "./AuthoredLayer";
|
|
|
4
4
|
import type { NarrativeScope } from "./NarrativeScope";
|
|
5
5
|
import type { ProductionStage } from "./ProductionStage";
|
|
6
6
|
|
|
7
|
-
/**
|
|
8
|
-
* Describes one contract this work adopted, and the layers that answer it.
|
|
9
|
-
*
|
|
10
|
-
* @evidence contracts/development/design.md#principled-representation The object groups one adopted document set with owning layer stages; explicit symbol/checklist options preserve the distinction between per-unit and distributed duties.
|
|
11
|
-
* @evidence contracts/development/design.md#minimal-and-owned-surface A document set and layer-stage map avoid repeated per-layer declarations while retaining explicit host/checklist granularity.
|
|
12
|
-
* @evidence contracts/development/design.md#prohibited-design-shortcuts createPackageContract validates owning layers and delegates path/host constraints; the type suppresses no evidence.
|
|
13
|
-
* @evidence contracts/development/common.md#meaningful-documentation Members state citation paths, layer ownership, defaults, pilot scope and per-host versus distributed answering.
|
|
14
|
-
*/
|
|
7
|
+
/** Describes one contract this work adopted, and the layers that answer it. */
|
|
15
8
|
export interface IPackageContractProps {
|
|
16
9
|
/**
|
|
17
10
|
* Names the contract as its hosts cite it, such as
|
|
@@ -50,9 +43,9 @@ export interface IPackageContractProps {
|
|
|
50
43
|
* Chooses whether every selected host answers every target independently.
|
|
51
44
|
*
|
|
52
45
|
* Keep `false` for an ordinary distributed relationship whose actual hosts
|
|
53
|
-
* cover the targets between them. A whole-population comparison instead
|
|
54
|
-
*
|
|
55
|
-
*
|
|
46
|
+
* cover the targets between them. A whole-population comparison instead uses
|
|
47
|
+
* `createPackagePopulationContract`, which the layer's documents answer once
|
|
48
|
+
* at file level.
|
|
56
49
|
*
|
|
57
50
|
* @default true
|
|
58
51
|
*/
|
|
@@ -2,14 +2,7 @@ import type { AuthoredLayer } from "./AuthoredLayer";
|
|
|
2
2
|
import type { NarrativeScope } from "./NarrativeScope";
|
|
3
3
|
import type { ProductionStage } from "./ProductionStage";
|
|
4
4
|
|
|
5
|
-
/**
|
|
6
|
-
* Describes one work-specific duty answered once per complete layer.
|
|
7
|
-
*
|
|
8
|
-
* @evidence contracts/development/design.md#principled-representation The object represents one exact work obligation document and its owning populations, with pilot-only deferral separate from pass activation.
|
|
9
|
-
* @evidence contracts/development/design.md#minimal-and-owned-surface One duty document and layer-stage map express once-per-layer obligations separately from per-H2 checklists.
|
|
10
|
-
* @evidence contracts/development/design.md#prohibited-design-shortcuts createPackagePopulationContract enforces exact obligation paths and pilot-only deferral; the interface adds no bypass.
|
|
11
|
-
* @evidence contracts/development/common.md#meaningful-documentation Members state tracked obligation addressing, complete-population ownership and pilot-only deferral.
|
|
12
|
-
*/
|
|
5
|
+
/** Describes one work-specific duty answered once per complete layer. */
|
|
13
6
|
export interface IPackagePopulationContractProps {
|
|
14
7
|
/** One tracked work-contract document containing population H2 duties. */
|
|
15
8
|
document: string;
|
|
@@ -3,16 +3,12 @@ import type { IEvidenceClaim } from "@wrtnlabs/evidence";
|
|
|
3
3
|
import type { IProductionConstruction } from "./IProductionConstruction";
|
|
4
4
|
import type { NarrativeScope } from "./NarrativeScope";
|
|
5
5
|
|
|
6
|
-
/**
|
|
7
|
-
* Selects narrative claim families, their stages and additional native claims.
|
|
8
|
-
*
|
|
9
|
-
* @evidence contracts/development/design.md#principled-representation The route, absolute location, optional absolute shared skills tree, authored scope and construction stages select native narrative respondents; extra claims and engineering support remain ordinary native claims.
|
|
10
|
-
* @evidence contracts/development/design.md#minimal-and-owned-surface One configuration object groups the options needed by the shared claim collector.
|
|
11
|
-
* @evidence contracts/development/design.md#prohibited-design-shortcuts Stages select structural evidence and never certify creative completion; native Evidence evaluates the resulting graph.
|
|
12
|
-
* @evidence contracts/development/common.md#meaningful-documentation Members explain route, location, the shared skills tree and its default, scope, stages and additive claims; the production owns independent creative review.
|
|
13
|
-
*/
|
|
6
|
+
/** Selects narrative claim families, their stages and additional native claims. */
|
|
14
7
|
export interface IProductionConfigProps {
|
|
15
|
-
/**
|
|
8
|
+
/**
|
|
9
|
+
* Chooses four-layer long work, short brief plus screenplay, or standalone
|
|
10
|
+
* assets.
|
|
11
|
+
*/
|
|
16
12
|
mode: "long" | "short" | "asset";
|
|
17
13
|
|
|
18
14
|
/** Engineering duties participate globally without a narrative parent. */
|
|
@@ -30,8 +26,8 @@ export interface IProductionConfigProps {
|
|
|
30
26
|
*
|
|
31
27
|
* Use its absolute directory. A workspace passes its root tree, so the shared
|
|
32
28
|
* story contracts resolve there, while the production's own `work` and
|
|
33
|
-
* `language` contracts always stay under `<location>/docs/contracts`. Omit it
|
|
34
|
-
* standalone production, whose shared contracts sit under its own
|
|
29
|
+
* `language` contracts always stay under `<location>/docs/contracts`. Omit it
|
|
30
|
+
* for a standalone production, whose shared contracts sit under its own
|
|
35
31
|
* `.agents/skills`.
|
|
36
32
|
*
|
|
37
33
|
* @default path.join(location, ".agents", "skills")
|
|
@@ -1,13 +1,6 @@
|
|
|
1
1
|
import type { ProductionStage } from "./ProductionStage";
|
|
2
2
|
|
|
3
|
-
/**
|
|
4
|
-
* Selects each layer's construction stage and its native parent references.
|
|
5
|
-
*
|
|
6
|
-
* @evidence contracts/development/design.md#principled-representation The stage object selects route-specific construction claims and a long-route outline override; native references carry the actual parents, while independent review judges their completion.
|
|
7
|
-
* @evidence contracts/development/design.md#minimal-and-owned-surface Scalar layer stages and the optional outline override express the actual construction chain without an alternate scripts edition.
|
|
8
|
-
* @evidence contracts/development/design.md#prohibited-design-shortcuts Runtime source validation rejects invalid stages and unsupported tuples rather than treating the interface as proof of validity.
|
|
9
|
-
* @evidence contracts/development/common.md#meaningful-documentation Members define the long-route outline fallback, the optional short-route brief and actual screenplay prerequisites for all three narrative routes.
|
|
10
|
-
*/
|
|
3
|
+
/** Selects each layer's construction stage and its native parent references. */
|
|
11
4
|
export interface IProductionConstruction {
|
|
12
5
|
/**
|
|
13
6
|
* Sets the long-route settings outline document's own construction stage.
|
|
@@ -48,8 +41,8 @@ export interface IProductionConstruction {
|
|
|
48
41
|
* Sets the screenplay construction stage.
|
|
49
42
|
*
|
|
50
43
|
* Requires approved scripts and treatments construction in long productions.
|
|
51
|
-
* Short productions require approved brief construction, and compact
|
|
52
|
-
*
|
|
44
|
+
* Short productions require approved brief construction, and compact short
|
|
45
|
+
* productions approved settings construction.
|
|
53
46
|
*/
|
|
54
47
|
screenplay: ProductionStage;
|
|
55
48
|
}
|
|
@@ -2,13 +2,8 @@
|
|
|
2
2
|
* Names the authored narrative layers, in pipeline order.
|
|
3
3
|
*
|
|
4
4
|
* `treatments` fixes what happens as one flat ordered sequence of event units,
|
|
5
|
-
* grouped by nothing and partitioned for no reader. `scripts` designs
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
* @evidence contracts/development/design.md#principled-representation The closed union names flat treatments, partitioned scripts and final screenplay, retaining their distinct authoring responsibilities.
|
|
10
|
-
* @evidence contracts/development/design.md#minimal-and-owned-surface Three literals keep treatments, scripts and final screenplay distinct without another runtime hierarchy.
|
|
11
|
-
* @evidence contracts/development/design.md#prohibited-design-shortcuts Each literal names an actual authoring layer; no consumer exception or fabricated release partition is admitted.
|
|
12
|
-
* @evidence contracts/development/common.md#meaningful-documentation The prose distinguishes flat events, scripts-designed partitions and final visible action/dialogue/sound/edit intent.
|
|
5
|
+
* grouped by nothing and partitioned for no reader. `scripts` designs the part
|
|
6
|
+
* and episode partition, scene progression and draft exchanges. `screenplay`
|
|
7
|
+
* authors the final action, dialogue, sound and edit from those decisions.
|
|
13
8
|
*/
|
|
14
9
|
export type NarrativeLayer = "treatments" | "scripts" | "screenplay";
|
|
@@ -5,13 +5,8 @@
|
|
|
5
5
|
* axes. `treatments` is a flat sequence of event units and never partitions the
|
|
6
6
|
* work for release, so nothing selects it: during a pilot the layer holds only
|
|
7
7
|
* the pilot's events, and after the complete-work reset it holds every event.
|
|
8
|
-
* `scripts` and `screenplay` carry the part and episode partition that
|
|
9
|
-
* designs, so a pilot names the one part it authors.
|
|
10
|
-
*
|
|
11
|
-
* @evidence contracts/development/design.md#principled-representation The discriminated union selects all authored parts or one explicitly named first part; flat treatments retain the events currently authored rather than a fictitious release partition.
|
|
12
|
-
* @evidence contracts/development/design.md#minimal-and-owned-surface The discriminant selects full work or one exact first part while leaving treatments unpartitioned.
|
|
13
|
-
* @evidence contracts/development/design.md#prohibited-design-shortcuts The template literal fixes only the 001 prefix; createNarrativeUnitFiles validates the remaining lower-kebab spelling.
|
|
14
|
-
* @evidence contracts/development/common.md#meaningful-documentation The prose explains separate narrative axes, pilot treatments content and exact named script/screenplay part.
|
|
8
|
+
* `scripts` and `screenplay` carry the part and episode partition that
|
|
9
|
+
* `scripts` designs, so a pilot names the one part it authors.
|
|
15
10
|
*/
|
|
16
11
|
export type NarrativeScope =
|
|
17
12
|
| {
|
|
@@ -1,9 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Authoring stages select claims; independent readers decide creative
|
|
3
|
-
*
|
|
4
|
-
* @evidence contracts/development/design.md#principled-representation The two literal stages express enabled structural evidence versus disabled duties, leaving completion to independent review.
|
|
5
|
-
* @evidence contracts/development/design.md#minimal-and-owned-surface The two literals express participation without mixing authoring status and approval.
|
|
6
|
-
* @evidence contracts/development/design.md#prohibited-design-shortcuts Disabled is declared configuration rather than a diagnostic fallback; independent readers own completion.
|
|
7
|
-
* @evidence contracts/development/common.md#meaningful-documentation The comment distinguishes claim selection from independent creative completion.
|
|
2
|
+
* Authoring stages select claims; independent readers decide creative
|
|
3
|
+
* completion.
|
|
8
4
|
*/
|
|
9
5
|
export type ProductionStage = "disabled" | "evidence";
|
|
@@ -1,19 +1,12 @@
|
|
|
1
1
|
import { SETTINGS_DOMAINS } from "./internal/SETTINGS_DOMAINS";
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
|
-
* Selects a short's brief canon: the scaffold's domain folders under
|
|
4
|
+
* Selects a short's brief canon: the scaffold's domain folders under
|
|
5
|
+
* `docs/body/brief`.
|
|
5
6
|
*
|
|
6
|
-
* The brief keeps the settings domain layout, `brief/<domain>/<subject>.md`,
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
* @evidence contracts/development/implementation.md#principled-implementation One glob per scaffold domain admits the brief's canon, sharing SETTINGS_DOMAINS with the settings selector and reader so the layouts cannot drift; no top-level glob is admitted because the reader refuses a mixed layout.
|
|
11
|
-
* @evidence contracts/development/implementation.md#clear-and-simple-structure The selector only describes the brief population; the shared reader owns concrete ordering and layout checks.
|
|
12
|
-
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Only the declared domain folders are admitted; arbitrary nesting is not.
|
|
13
|
-
* @evidence contracts/development/common.md#meaningful-documentation The comment states the brief root, its domain layout and why it matches settings.
|
|
14
|
-
* @evidence contracts/development/implementation.md#efficient-algorithms The result has one entry per domain, built in time linear in the fixed domain list.
|
|
15
|
-
* @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.
|
|
16
|
-
* @evidenceExclude contracts/development/implementation.md#bound-retention-and-release-resources The returned array is bounded by the fixed domain list and the function retains no per-call state.
|
|
7
|
+
* The brief keeps the settings domain layout, `brief/<domain>/<subject>.md`, so
|
|
8
|
+
* the same reader, which refuses mixed layouts, and the same citations serve
|
|
9
|
+
* both canon layers.
|
|
17
10
|
*/
|
|
18
11
|
export function createBriefFiles(): string[] {
|
|
19
12
|
return SETTINGS_DOMAINS.map(
|
|
@@ -16,14 +16,6 @@ import type { NarrativeScope } from "./NarrativeScope";
|
|
|
16
16
|
* misplaced scene file owe their answers instead of silently losing them.
|
|
17
17
|
*
|
|
18
18
|
* The selector is relative to the body root.
|
|
19
|
-
*
|
|
20
|
-
* @evidence contracts/development/implementation.md#principled-implementation Layer-specific globs select flat numbered treatments, episode files of scripts, and screenplay scene files in a short's film folder or long work's episode folders, narrowing scripts and screenplay to an exact first part for a pilot.
|
|
21
|
-
* @evidence contracts/development/implementation.md#clear-and-simple-structure The selector owns only relative narrative population paths; callers add the body root.
|
|
22
|
-
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Short film folders and numbered long partitions are supported production layouts; no file or production name controls selection, and first-part pilots remain confined to their exact directory.
|
|
23
|
-
* @evidence contracts/development/common.md#meaningful-documentation The prose states each layer's partition, the scene-file screenplay layout, pilot behavior and root relativity.
|
|
24
|
-
* @evidence contracts/development/implementation.md#efficient-algorithms Complete-work returns one or two fixed-size globs; pilot validation and interpolation take time and output space proportional to the selected part string length.
|
|
25
|
-
* @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work This selector builds one result from supplied values and coordinates no cross-request work; independent arrays avoid shared mutable selector state.
|
|
26
|
-
* @evidenceExclude contracts/development/implementation.md#bound-retention-and-release-resources Only the returned small selector array survives the call; no descriptor, task or module cache is acquired.
|
|
27
19
|
*/
|
|
28
20
|
export function createNarrativeUnitFiles(props: {
|
|
29
21
|
/** The narrative layer whose unit files are selected. */
|
|
@@ -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,
|
|
@@ -111,10 +103,8 @@ export function createPackageChecklistClaim(
|
|
|
111
103
|
/**
|
|
112
104
|
* Keeps the package API on the tracked work-owned contract subtree.
|
|
113
105
|
*
|
|
114
|
-
* `naturalness`
|
|
115
|
-
*
|
|
116
|
-
* answers. The caller selects the hosts and their stage; the document
|
|
117
|
-
* directory alone never chooses its host population.
|
|
106
|
+
* Existing work-owned `naturalness` addresses remain valid. The caller selects
|
|
107
|
+
* the hosts and stage for a work-specific expression question.
|
|
118
108
|
*/
|
|
119
109
|
function isWorkDocument(document: string): boolean {
|
|
120
110
|
const normalized: string = document.replaceAll("\\", "/");
|
|
@@ -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",
|