@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.
Files changed (453) hide show
  1. package/README.md +7 -92
  2. package/lib/IAutoMovieDevelopmentProps.d.ts +26 -20
  3. package/lib/IAutoMovieEvidenceConfigProps.d.ts +19 -18
  4. package/lib/IAutoMovieNarrativeProps.d.ts +10 -8
  5. package/lib/IAutoMovieNoNarrativeProps.d.ts +4 -6
  6. package/lib/createDevelopmentContractClaims.d.ts +16 -26
  7. package/lib/createDevelopmentContractClaims.js +45 -30
  8. package/lib/createDevelopmentContractClaims.js.map +1 -1
  9. package/lib/createEngineeringClaims.d.ts +16 -21
  10. package/lib/createEngineeringClaims.js +15 -20
  11. package/lib/createEngineeringClaims.js.map +1 -1
  12. package/lib/createEvidenceConfig.d.ts +7 -11
  13. package/lib/createEvidenceConfig.js +34 -12
  14. package/lib/createEvidenceConfig.js.map +1 -1
  15. package/lib/createResearchClaims.d.ts +5 -13
  16. package/lib/createResearchClaims.js +6 -14
  17. package/lib/createResearchClaims.js.map +1 -1
  18. package/lib/internal/IContractLocation.d.ts +6 -7
  19. package/lib/internal/PRODUCTION_CONTRACTS.d.ts +14 -7
  20. package/lib/internal/PRODUCTION_CONTRACTS.js +14 -7
  21. package/lib/internal/PRODUCTION_CONTRACTS.js.map +1 -1
  22. package/lib/internal/SKILLS_ROOT.d.ts +13 -7
  23. package/lib/internal/SKILLS_ROOT.js +13 -7
  24. package/lib/internal/SKILLS_ROOT.js.map +1 -1
  25. package/lib/internal/STORY_CONTRACTS.d.ts +12 -9
  26. package/lib/internal/STORY_CONTRACTS.js +12 -9
  27. package/lib/internal/STORY_CONTRACTS.js.map +1 -1
  28. package/lib/internal/assertFilmCatalogLayout.d.ts +12 -0
  29. package/lib/internal/assertFilmCatalogLayout.js +144 -0
  30. package/lib/internal/assertFilmCatalogLayout.js.map +1 -0
  31. package/lib/internal/assertProductionContractLayout.d.ts +2 -10
  32. package/lib/internal/assertProductionContractLayout.js +2 -10
  33. package/lib/internal/assertProductionContractLayout.js.map +1 -1
  34. package/lib/internal/createReferenceRoot.d.ts +0 -8
  35. package/lib/internal/createReferenceRoot.js +0 -8
  36. package/lib/internal/createReferenceRoot.js.map +1 -1
  37. package/lib/internal/hasMatchingFile.d.ts +5 -0
  38. package/lib/internal/hasMatchingFile.js +20 -0
  39. package/lib/internal/hasMatchingFile.js.map +1 -0
  40. package/lib/internal/resolveSkillsDirectory.d.ts +2 -9
  41. package/lib/internal/resolveSkillsDirectory.js +2 -9
  42. package/lib/internal/resolveSkillsDirectory.js.map +1 -1
  43. package/lib/narrative/AuthoredLayer.d.ts +2 -6
  44. package/lib/narrative/EvidenceMetadataRewriteOwnership.d.ts +0 -5
  45. package/lib/narrative/IEvidenceMetadataRenderedSample.d.ts +1 -8
  46. package/lib/narrative/IEvidenceMetadataRewriteFile.d.ts +1 -8
  47. package/lib/narrative/IEvidenceMetadataRewriteProps.d.ts +1 -8
  48. package/lib/narrative/IEvidenceMetadataRewriteReport.d.ts +1 -8
  49. package/lib/narrative/IPackageChecklistClaimProps.d.ts +2 -7
  50. package/lib/narrative/IPackageContractProps.d.ts +4 -11
  51. package/lib/narrative/IPackagePopulationContractProps.d.ts +1 -8
  52. package/lib/narrative/IProductionConfigProps.d.ts +7 -11
  53. package/lib/narrative/IProductionConstruction.d.ts +3 -10
  54. package/lib/narrative/NarrativeLayer.d.ts +3 -8
  55. package/lib/narrative/NarrativeScope.d.ts +2 -7
  56. package/lib/narrative/ProductionStage.d.ts +2 -6
  57. package/lib/narrative/createBriefFiles.d.ts +5 -12
  58. package/lib/narrative/createBriefFiles.js +5 -12
  59. package/lib/narrative/createBriefFiles.js.map +1 -1
  60. package/lib/narrative/createNarrativeUnitFiles.d.ts +0 -8
  61. package/lib/narrative/createNarrativeUnitFiles.js +0 -8
  62. package/lib/narrative/createNarrativeUnitFiles.js.map +1 -1
  63. package/lib/narrative/createPackageChecklistClaim.d.ts +3 -11
  64. package/lib/narrative/createPackageChecklistClaim.js +5 -15
  65. package/lib/narrative/createPackageChecklistClaim.js.map +1 -1
  66. package/lib/narrative/createPackageContract.d.ts +0 -8
  67. package/lib/narrative/createPackageContract.js +0 -8
  68. package/lib/narrative/createPackageContract.js.map +1 -1
  69. package/lib/narrative/createPackagePopulationContract.d.ts +3 -11
  70. package/lib/narrative/createPackagePopulationContract.js +3 -11
  71. package/lib/narrative/createPackagePopulationContract.js.map +1 -1
  72. package/lib/narrative/createProductionClaims.d.ts +0 -8
  73. package/lib/narrative/createProductionClaims.js +0 -8
  74. package/lib/narrative/createProductionClaims.js.map +1 -1
  75. package/lib/narrative/createProductionConfig.d.ts +1 -11
  76. package/lib/narrative/createProductionConfig.js +1 -11
  77. package/lib/narrative/createProductionConfig.js.map +1 -1
  78. package/lib/narrative/createSettingsFiles.d.ts +0 -8
  79. package/lib/narrative/createSettingsFiles.js +0 -8
  80. package/lib/narrative/createSettingsFiles.js.map +1 -1
  81. package/lib/narrative/internal/AUTHORED_LAYERS.d.ts +14 -7
  82. package/lib/narrative/internal/AUTHORED_LAYERS.js +14 -7
  83. package/lib/narrative/internal/AUTHORED_LAYERS.js.map +1 -1
  84. package/lib/narrative/internal/claims/createDiscoveryClaim.d.ts +17 -22
  85. package/lib/narrative/internal/claims/createDiscoveryClaim.js +17 -22
  86. package/lib/narrative/internal/claims/createDiscoveryClaim.js.map +1 -1
  87. package/lib/narrative/internal/claims/createInstructionCoverageClaim.d.ts +7 -15
  88. package/lib/narrative/internal/claims/createInstructionCoverageClaim.js +7 -15
  89. package/lib/narrative/internal/claims/createInstructionCoverageClaim.js.map +1 -1
  90. package/lib/narrative/internal/claims/createLayerClaims.d.ts +2 -10
  91. package/lib/narrative/internal/claims/createLayerClaims.js +2 -28
  92. package/lib/narrative/internal/claims/createLayerClaims.js.map +1 -1
  93. package/lib/narrative/internal/claims/createOutlineClaims.d.ts +6 -14
  94. package/lib/narrative/internal/claims/createOutlineClaims.js +9 -18
  95. package/lib/narrative/internal/claims/createOutlineClaims.js.map +1 -1
  96. package/lib/narrative/internal/claims/createPopulationObligationClaims.d.ts +4 -14
  97. package/lib/narrative/internal/claims/createPopulationObligationClaims.js +10 -36
  98. package/lib/narrative/internal/claims/createPopulationObligationClaims.js.map +1 -1
  99. package/lib/narrative/internal/claims/createReviewClaims.d.ts +11 -19
  100. package/lib/narrative/internal/claims/createReviewClaims.js +57 -56
  101. package/lib/narrative/internal/claims/createReviewClaims.js.map +1 -1
  102. package/lib/narrative/internal/claims/createSettingCoverageClaim.d.ts +1 -9
  103. package/lib/narrative/internal/claims/createSettingCoverageClaim.js +1 -9
  104. package/lib/narrative/internal/claims/createSettingCoverageClaim.js.map +1 -1
  105. package/lib/narrative/internal/claims/index.d.ts +0 -1
  106. package/lib/narrative/internal/claims/index.js +0 -1
  107. package/lib/narrative/internal/claims/index.js.map +1 -1
  108. package/lib/narrative/internal/collectProductionClaims.d.ts +1 -11
  109. package/lib/narrative/internal/collectProductionClaims.js +2 -15
  110. package/lib/narrative/internal/collectProductionClaims.js.map +1 -1
  111. package/lib/narrative/internal/constructionStage.d.ts +2 -9
  112. package/lib/narrative/internal/constructionStage.js +2 -9
  113. package/lib/narrative/internal/constructionStage.js.map +1 -1
  114. package/lib/narrative/internal/createGraphConfig.d.ts +4 -12
  115. package/lib/narrative/internal/createGraphConfig.js +4 -12
  116. package/lib/narrative/internal/createGraphConfig.js.map +1 -1
  117. package/lib/narrative/internal/index.d.ts +0 -1
  118. package/lib/narrative/internal/index.js +0 -1
  119. package/lib/narrative/internal/index.js.map +1 -1
  120. package/lib/narrative/internal/isCanonLayer.d.ts +2 -9
  121. package/lib/narrative/internal/isCanonLayer.js +2 -9
  122. package/lib/narrative/internal/isCanonLayer.js.map +1 -1
  123. package/lib/narrative/internal/metadataRewrite/ACKNOWLEDGEMENT.d.ts +10 -7
  124. package/lib/narrative/internal/metadataRewrite/ACKNOWLEDGEMENT.js +10 -7
  125. package/lib/narrative/internal/metadataRewrite/ACKNOWLEDGEMENT.js.map +1 -1
  126. package/lib/narrative/internal/metadataRewrite/EvidenceDeclarationKind.d.ts +1 -8
  127. package/lib/narrative/internal/metadataRewrite/HEADING_ACKNOWLEDGEMENT.d.ts +10 -7
  128. package/lib/narrative/internal/metadataRewrite/HEADING_ACKNOWLEDGEMENT.js +10 -7
  129. package/lib/narrative/internal/metadataRewrite/HEADING_ACKNOWLEDGEMENT.js.map +1 -1
  130. package/lib/narrative/internal/metadataRewrite/HEADING_REVIEW.d.ts +10 -7
  131. package/lib/narrative/internal/metadataRewrite/HEADING_REVIEW.js +10 -7
  132. package/lib/narrative/internal/metadataRewrite/HEADING_REVIEW.js.map +1 -1
  133. package/lib/narrative/internal/metadataRewrite/IEvidenceHeading.d.ts +1 -8
  134. package/lib/narrative/internal/metadataRewrite/IEvidenceSection.d.ts +1 -8
  135. package/lib/narrative/internal/metadataRewrite/IMetadataFragment.d.ts +1 -8
  136. package/lib/narrative/internal/metadataRewrite/IProjectionSegment.d.ts +1 -8
  137. package/lib/narrative/internal/metadataRewrite/IProtectedProjection.d.ts +1 -8
  138. package/lib/narrative/internal/metadataRewrite/REVIEW.d.ts +11 -7
  139. package/lib/narrative/internal/metadataRewrite/REVIEW.js +11 -7
  140. package/lib/narrative/internal/metadataRewrite/REVIEW.js.map +1 -1
  141. package/lib/narrative/internal/metadataRewrite/SUSPICIOUS.d.ts +13 -8
  142. package/lib/narrative/internal/metadataRewrite/SUSPICIOUS.js +13 -8
  143. package/lib/narrative/internal/metadataRewrite/SUSPICIOUS.js.map +1 -1
  144. package/lib/narrative/internal/metadataRewrite/UTF8.d.ts +10 -7
  145. package/lib/narrative/internal/metadataRewrite/UTF8.js +10 -7
  146. package/lib/narrative/internal/metadataRewrite/UTF8.js.map +1 -1
  147. package/lib/narrative/internal/metadataRewrite/between.d.ts +1 -11
  148. package/lib/narrative/internal/metadataRewrite/between.js +1 -11
  149. package/lib/narrative/internal/metadataRewrite/between.js.map +1 -1
  150. package/lib/narrative/internal/metadataRewrite/continuation.d.ts +1 -11
  151. package/lib/narrative/internal/metadataRewrite/continuation.js +1 -11
  152. package/lib/narrative/internal/metadataRewrite/continuation.js.map +1 -1
  153. package/lib/narrative/internal/metadataRewrite/declarationKind.d.ts +1 -11
  154. package/lib/narrative/internal/metadataRewrite/declarationKind.js +1 -11
  155. package/lib/narrative/internal/metadataRewrite/declarationKind.js.map +1 -1
  156. package/lib/narrative/internal/metadataRewrite/decode.d.ts +1 -11
  157. package/lib/narrative/internal/metadataRewrite/decode.js +1 -11
  158. package/lib/narrative/internal/metadataRewrite/decode.js.map +1 -1
  159. package/lib/narrative/internal/metadataRewrite/directory.d.ts +1 -11
  160. package/lib/narrative/internal/metadataRewrite/directory.js +1 -11
  161. package/lib/narrative/internal/metadataRewrite/directory.js.map +1 -1
  162. package/lib/narrative/internal/metadataRewrite/errorMessage.d.ts +1 -11
  163. package/lib/narrative/internal/metadataRewrite/errorMessage.js +1 -11
  164. package/lib/narrative/internal/metadataRewrite/errorMessage.js.map +1 -1
  165. package/lib/narrative/internal/metadataRewrite/evidenceHeading.d.ts +1 -11
  166. package/lib/narrative/internal/metadataRewrite/evidenceHeading.js +1 -11
  167. package/lib/narrative/internal/metadataRewrite/evidenceHeading.js.map +1 -1
  168. package/lib/narrative/internal/metadataRewrite/evidenceSections.d.ts +1 -11
  169. package/lib/narrative/internal/metadataRewrite/evidenceSections.js +1 -11
  170. package/lib/narrative/internal/metadataRewrite/evidenceSections.js.map +1 -1
  171. package/lib/narrative/internal/metadataRewrite/findClose.d.ts +1 -11
  172. package/lib/narrative/internal/metadataRewrite/findClose.js +1 -11
  173. package/lib/narrative/internal/metadataRewrite/findClose.js.map +1 -1
  174. package/lib/narrative/internal/metadataRewrite/firstDifference.d.ts +1 -11
  175. package/lib/narrative/internal/metadataRewrite/firstDifference.js +1 -11
  176. package/lib/narrative/internal/metadataRewrite/firstDifference.js.map +1 -1
  177. package/lib/narrative/internal/metadataRewrite/flatFingerprintStart.d.ts +2 -9
  178. package/lib/narrative/internal/metadataRewrite/flatFingerprintStart.js +2 -9
  179. package/lib/narrative/internal/metadataRewrite/flatFingerprintStart.js.map +1 -1
  180. package/lib/narrative/internal/metadataRewrite/invalidUtf8Offset.d.ts +1 -11
  181. package/lib/narrative/internal/metadataRewrite/invalidUtf8Offset.js +1 -11
  182. package/lib/narrative/internal/metadataRewrite/invalidUtf8Offset.js.map +1 -1
  183. package/lib/narrative/internal/metadataRewrite/isDeclaration.d.ts +1 -11
  184. package/lib/narrative/internal/metadataRewrite/isDeclaration.js +1 -11
  185. package/lib/narrative/internal/metadataRewrite/isDeclaration.js.map +1 -1
  186. package/lib/narrative/internal/metadataRewrite/isNodeError.d.ts +1 -11
  187. package/lib/narrative/internal/metadataRewrite/isNodeError.js +1 -11
  188. package/lib/narrative/internal/metadataRewrite/isNodeError.js.map +1 -1
  189. package/lib/narrative/internal/metadataRewrite/lineEnding.d.ts +1 -11
  190. package/lib/narrative/internal/metadataRewrite/lineEnding.js +1 -11
  191. package/lib/narrative/internal/metadataRewrite/lineEnding.js.map +1 -1
  192. package/lib/narrative/internal/metadataRewrite/locate.d.ts +1 -11
  193. package/lib/narrative/internal/metadataRewrite/locate.js +1 -11
  194. package/lib/narrative/internal/metadataRewrite/locate.js.map +1 -1
  195. package/lib/narrative/internal/metadataRewrite/markdownFiles.d.ts +1 -11
  196. package/lib/narrative/internal/metadataRewrite/markdownFiles.js +1 -11
  197. package/lib/narrative/internal/metadataRewrite/markdownFiles.js.map +1 -1
  198. package/lib/narrative/internal/metadataRewrite/metadataOwnership.d.ts +1 -11
  199. package/lib/narrative/internal/metadataRewrite/metadataOwnership.js +1 -11
  200. package/lib/narrative/internal/metadataRewrite/metadataOwnership.js.map +1 -1
  201. package/lib/narrative/internal/metadataRewrite/normalizeFile.d.ts +1 -11
  202. package/lib/narrative/internal/metadataRewrite/normalizeFile.js +1 -11
  203. package/lib/narrative/internal/metadataRewrite/normalizeFile.js.map +1 -1
  204. package/lib/narrative/internal/metadataRewrite/occurrenceOffsets.d.ts +1 -11
  205. package/lib/narrative/internal/metadataRewrite/occurrenceOffsets.js +1 -11
  206. package/lib/narrative/internal/metadataRewrite/occurrenceOffsets.js.map +1 -1
  207. package/lib/narrative/internal/metadataRewrite/occurrences.d.ts +1 -11
  208. package/lib/narrative/internal/metadataRewrite/occurrences.js +1 -11
  209. package/lib/narrative/internal/metadataRewrite/occurrences.js.map +1 -1
  210. package/lib/narrative/internal/metadataRewrite/originalOffset.d.ts +1 -11
  211. package/lib/narrative/internal/metadataRewrite/originalOffset.js +1 -11
  212. package/lib/narrative/internal/metadataRewrite/originalOffset.js.map +1 -1
  213. package/lib/narrative/internal/metadataRewrite/project.d.ts +1 -11
  214. package/lib/narrative/internal/metadataRewrite/project.js +1 -11
  215. package/lib/narrative/internal/metadataRewrite/project.js.map +1 -1
  216. package/lib/narrative/internal/metadataRewrite/protectedFileKind.d.ts +1 -11
  217. package/lib/narrative/internal/metadataRewrite/protectedFileKind.js +1 -11
  218. package/lib/narrative/internal/metadataRewrite/protectedFileKind.js.map +1 -1
  219. package/lib/narrative/internal/metadataRewrite/replacementSafety.d.ts +1 -11
  220. package/lib/narrative/internal/metadataRewrite/replacementSafety.js +1 -11
  221. package/lib/narrative/internal/metadataRewrite/replacementSafety.js.map +1 -1
  222. package/lib/narrative/internal/metadataRewrite/sameMetadata.d.ts +1 -11
  223. package/lib/narrative/internal/metadataRewrite/sameMetadata.js +1 -11
  224. package/lib/narrative/internal/metadataRewrite/sameMetadata.js.map +1 -1
  225. package/lib/narrative/internal/metadataRewrite/selectFiles.d.ts +1 -11
  226. package/lib/narrative/internal/metadataRewrite/selectFiles.js +1 -11
  227. package/lib/narrative/internal/metadataRewrite/selectFiles.js.map +1 -1
  228. package/lib/narrative/internal/metadataRewrite/singleLineDeclaration.d.ts +1 -11
  229. package/lib/narrative/internal/metadataRewrite/singleLineDeclaration.js +1 -11
  230. package/lib/narrative/internal/metadataRewrite/singleLineDeclaration.js.map +1 -1
  231. package/lib/narrative/internal/metadataRewrite/textLocation.d.ts +1 -11
  232. package/lib/narrative/internal/metadataRewrite/textLocation.js +1 -11
  233. package/lib/narrative/internal/metadataRewrite/textLocation.js.map +1 -1
  234. package/lib/narrative/internal/metadataRewrite/validateRenderedSample.d.ts +1 -11
  235. package/lib/narrative/internal/metadataRewrite/validateRenderedSample.js +1 -11
  236. package/lib/narrative/internal/metadataRewrite/validateRenderedSample.js.map +1 -1
  237. package/lib/narrative/internal/metadataRewrite/withoutEnding.d.ts +1 -11
  238. package/lib/narrative/internal/metadataRewrite/withoutEnding.js +1 -11
  239. package/lib/narrative/internal/metadataRewrite/withoutEnding.js.map +1 -1
  240. package/lib/narrative/internal/productionLayers.d.ts +1 -11
  241. package/lib/narrative/internal/productionLayers.js +1 -11
  242. package/lib/narrative/internal/productionLayers.js.map +1 -1
  243. package/lib/narrative/internal/readSettingsFiles.d.ts +4 -12
  244. package/lib/narrative/internal/readSettingsFiles.js +8 -13
  245. package/lib/narrative/internal/readSettingsFiles.js.map +1 -1
  246. package/lib/narrative/internal/references/createCoverageReference.d.ts +2 -10
  247. package/lib/narrative/internal/references/createCoverageReference.js +2 -10
  248. package/lib/narrative/internal/references/createCoverageReference.js.map +1 -1
  249. package/lib/narrative/internal/references/createDiscoveryReferences.d.ts +5 -13
  250. package/lib/narrative/internal/references/createDiscoveryReferences.js +5 -13
  251. package/lib/narrative/internal/references/createDiscoveryReferences.js.map +1 -1
  252. package/lib/narrative/internal/references/createLanguageDiscoveryReferences.d.ts +1 -11
  253. package/lib/narrative/internal/references/createLanguageDiscoveryReferences.js +1 -11
  254. package/lib/narrative/internal/references/createLanguageDiscoveryReferences.js.map +1 -1
  255. package/lib/narrative/internal/references/createLanguagePrincipleReferences.d.ts +3 -13
  256. package/lib/narrative/internal/references/createLanguagePrincipleReferences.js +4 -13
  257. package/lib/narrative/internal/references/createLanguagePrincipleReferences.js.map +1 -1
  258. package/lib/narrative/internal/references/createLineageReference.d.ts +6 -14
  259. package/lib/narrative/internal/references/createLineageReference.js +6 -14
  260. package/lib/narrative/internal/references/createLineageReference.js.map +1 -1
  261. package/lib/narrative/internal/references/createLocalContractReference.d.ts +0 -8
  262. package/lib/narrative/internal/references/createLocalContractReference.js +0 -8
  263. package/lib/narrative/internal/references/createLocalContractReference.js.map +1 -1
  264. package/lib/narrative/internal/references/createPrincipleReferences.d.ts +2 -21
  265. package/lib/narrative/internal/references/createPrincipleReferences.js +6 -35
  266. package/lib/narrative/internal/references/createPrincipleReferences.js.map +1 -1
  267. package/lib/narrative/internal/references/createSettingReferences.d.ts +3 -10
  268. package/lib/narrative/internal/references/createSettingReferences.js +3 -10
  269. package/lib/narrative/internal/references/createSettingReferences.js.map +1 -1
  270. package/lib/narrative/internal/references/createSharedReference.d.ts +7 -16
  271. package/lib/narrative/internal/references/createSharedReference.js +8 -17
  272. package/lib/narrative/internal/references/createSharedReference.js.map +1 -1
  273. package/lib/narrative/internal/references/createUpstreamReference.d.ts +0 -8
  274. package/lib/narrative/internal/references/createUpstreamReference.js +0 -8
  275. package/lib/narrative/internal/references/createUpstreamReference.js.map +1 -1
  276. package/lib/narrative/internal/references/layerFiles.d.ts +4 -13
  277. package/lib/narrative/internal/references/layerFiles.js +5 -15
  278. package/lib/narrative/internal/references/layerFiles.js.map +1 -1
  279. package/lib/narrative/internal/settingsEntryAnchor.d.ts +2 -9
  280. package/lib/narrative/internal/settingsEntryAnchor.js +2 -9
  281. package/lib/narrative/internal/settingsEntryAnchor.js.map +1 -1
  282. package/lib/narrative/internal/topology/createTopologyFiles.d.ts +1 -11
  283. package/lib/narrative/internal/topology/createTopologyFiles.js +1 -11
  284. package/lib/narrative/internal/topology/createTopologyFiles.js.map +1 -1
  285. package/lib/narrative/internal/utilities/BODY_ROOT.d.ts +14 -7
  286. package/lib/narrative/internal/utilities/BODY_ROOT.js +14 -7
  287. package/lib/narrative/internal/utilities/BODY_ROOT.js.map +1 -1
  288. package/lib/narrative/internal/utilities/PACKAGE_DOCS_ROOT.d.ts +15 -7
  289. package/lib/narrative/internal/utilities/PACKAGE_DOCS_ROOT.js +15 -7
  290. package/lib/narrative/internal/utilities/PACKAGE_DOCS_ROOT.js.map +1 -1
  291. package/lib/narrative/internal/utilities/assertProductionEvidenceSources.d.ts +2 -9
  292. package/lib/narrative/internal/utilities/assertProductionEvidenceSources.js +2 -9
  293. package/lib/narrative/internal/utilities/assertProductionEvidenceSources.js.map +1 -1
  294. package/lib/narrative/internal/utilities/createContractDirectory.d.ts +4 -10
  295. package/lib/narrative/internal/utilities/createContractDirectory.js +4 -10
  296. package/lib/narrative/internal/utilities/createContractDirectory.js.map +1 -1
  297. package/lib/narrative/internal/utilities/createContractRoot.d.ts +8 -18
  298. package/lib/narrative/internal/utilities/createContractRoot.js +8 -18
  299. package/lib/narrative/internal/utilities/createContractRoot.js.map +1 -1
  300. package/lib/narrative/internal/utilities/createEvidenceFiles.d.ts +1 -11
  301. package/lib/narrative/internal/utilities/createEvidenceFiles.js +1 -11
  302. package/lib/narrative/internal/utilities/createEvidenceFiles.js.map +1 -1
  303. package/lib/narrative/internal/utilities/createUnitFiles.d.ts +0 -8
  304. package/lib/narrative/internal/utilities/createUnitFiles.js +0 -8
  305. package/lib/narrative/internal/utilities/createUnitFiles.js.map +1 -1
  306. package/lib/narrative/internal/utilities/hasStoryContract.d.ts +9 -0
  307. package/lib/narrative/internal/utilities/hasStoryContract.js +20 -0
  308. package/lib/narrative/internal/utilities/hasStoryContract.js.map +1 -0
  309. package/lib/narrative/internal/utilities/referenceLocation.d.ts +2 -9
  310. package/lib/narrative/internal/utilities/referenceLocation.js +2 -9
  311. package/lib/narrative/internal/utilities/referenceLocation.js.map +1 -1
  312. package/lib/narrative/internal/validateSettingsOutline.d.ts +6 -12
  313. package/lib/narrative/internal/validateSettingsOutline.js +27 -20
  314. package/lib/narrative/internal/validateSettingsOutline.js.map +1 -1
  315. package/lib/narrative/isFirstPartPilot.d.ts +1 -11
  316. package/lib/narrative/isFirstPartPilot.js +1 -11
  317. package/lib/narrative/isFirstPartPilot.js.map +1 -1
  318. package/lib/narrative/verifyEvidenceMetadataRewrite.d.ts +2 -10
  319. package/lib/narrative/verifyEvidenceMetadataRewrite.js +2 -10
  320. package/lib/narrative/verifyEvidenceMetadataRewrite.js.map +1 -1
  321. package/package.json +6 -5
  322. package/src/IAutoMovieDevelopmentProps.ts +27 -20
  323. package/src/IAutoMovieEvidenceConfigProps.ts +19 -18
  324. package/src/IAutoMovieNarrativeProps.ts +10 -8
  325. package/src/IAutoMovieNoNarrativeProps.ts +4 -6
  326. package/src/createDevelopmentContractClaims.ts +46 -30
  327. package/src/createEngineeringClaims.ts +17 -22
  328. package/src/createEvidenceConfig.ts +45 -12
  329. package/src/createResearchClaims.ts +6 -14
  330. package/src/internal/IContractLocation.ts +6 -7
  331. package/src/internal/PRODUCTION_CONTRACTS.ts +14 -7
  332. package/src/internal/SKILLS_ROOT.ts +13 -7
  333. package/src/internal/STORY_CONTRACTS.ts +12 -9
  334. package/src/internal/assertFilmCatalogLayout.ts +173 -0
  335. package/src/internal/assertProductionContractLayout.ts +2 -10
  336. package/src/internal/createReferenceRoot.ts +0 -8
  337. package/src/internal/hasMatchingFile.ts +21 -0
  338. package/src/internal/index.ts +1 -1
  339. package/src/internal/resolveSkillsDirectory.ts +2 -9
  340. package/src/narrative/AuthoredLayer.ts +2 -6
  341. package/src/narrative/EvidenceMetadataRewriteOwnership.ts +0 -5
  342. package/src/narrative/IEvidenceMetadataRenderedSample.ts +1 -8
  343. package/src/narrative/IEvidenceMetadataRewriteFile.ts +1 -8
  344. package/src/narrative/IEvidenceMetadataRewriteProps.ts +1 -8
  345. package/src/narrative/IEvidenceMetadataRewriteReport.ts +1 -8
  346. package/src/narrative/IPackageChecklistClaimProps.ts +2 -7
  347. package/src/narrative/IPackageContractProps.ts +4 -11
  348. package/src/narrative/IPackagePopulationContractProps.ts +1 -8
  349. package/src/narrative/IProductionConfigProps.ts +7 -11
  350. package/src/narrative/IProductionConstruction.ts +3 -10
  351. package/src/narrative/NarrativeLayer.ts +3 -8
  352. package/src/narrative/NarrativeScope.ts +2 -7
  353. package/src/narrative/ProductionStage.ts +2 -6
  354. package/src/narrative/createBriefFiles.ts +5 -12
  355. package/src/narrative/createNarrativeUnitFiles.ts +0 -8
  356. package/src/narrative/createPackageChecklistClaim.ts +5 -15
  357. package/src/narrative/createPackageContract.ts +0 -8
  358. package/src/narrative/createPackagePopulationContract.ts +3 -11
  359. package/src/narrative/createProductionClaims.ts +0 -8
  360. package/src/narrative/createProductionConfig.ts +1 -11
  361. package/src/narrative/createSettingsFiles.ts +0 -8
  362. package/src/narrative/internal/AUTHORED_LAYERS.ts +14 -7
  363. package/src/narrative/internal/claims/createDiscoveryClaim.ts +17 -22
  364. package/src/narrative/internal/claims/createInstructionCoverageClaim.ts +7 -15
  365. package/src/narrative/internal/claims/createLayerClaims.ts +2 -30
  366. package/src/narrative/internal/claims/createOutlineClaims.ts +9 -26
  367. package/src/narrative/internal/claims/createPopulationObligationClaims.ts +12 -53
  368. package/src/narrative/internal/claims/createReviewClaims.ts +57 -64
  369. package/src/narrative/internal/claims/createSettingCoverageClaim.ts +1 -9
  370. package/src/narrative/internal/claims/index.ts +0 -1
  371. package/src/narrative/internal/collectProductionClaims.ts +2 -15
  372. package/src/narrative/internal/constructionStage.ts +2 -9
  373. package/src/narrative/internal/createGraphConfig.ts +4 -12
  374. package/src/narrative/internal/index.ts +0 -1
  375. package/src/narrative/internal/isCanonLayer.ts +2 -9
  376. package/src/narrative/internal/metadataRewrite/ACKNOWLEDGEMENT.ts +10 -7
  377. package/src/narrative/internal/metadataRewrite/EvidenceDeclarationKind.ts +1 -8
  378. package/src/narrative/internal/metadataRewrite/HEADING_ACKNOWLEDGEMENT.ts +10 -7
  379. package/src/narrative/internal/metadataRewrite/HEADING_REVIEW.ts +10 -7
  380. package/src/narrative/internal/metadataRewrite/IEvidenceHeading.ts +1 -8
  381. package/src/narrative/internal/metadataRewrite/IEvidenceSection.ts +1 -8
  382. package/src/narrative/internal/metadataRewrite/IMetadataFragment.ts +1 -8
  383. package/src/narrative/internal/metadataRewrite/IProjectionSegment.ts +1 -8
  384. package/src/narrative/internal/metadataRewrite/IProtectedProjection.ts +1 -8
  385. package/src/narrative/internal/metadataRewrite/REVIEW.ts +11 -7
  386. package/src/narrative/internal/metadataRewrite/SUSPICIOUS.ts +13 -8
  387. package/src/narrative/internal/metadataRewrite/UTF8.ts +10 -7
  388. package/src/narrative/internal/metadataRewrite/between.ts +1 -11
  389. package/src/narrative/internal/metadataRewrite/continuation.ts +1 -11
  390. package/src/narrative/internal/metadataRewrite/declarationKind.ts +1 -11
  391. package/src/narrative/internal/metadataRewrite/decode.ts +1 -11
  392. package/src/narrative/internal/metadataRewrite/directory.ts +1 -11
  393. package/src/narrative/internal/metadataRewrite/errorMessage.ts +1 -11
  394. package/src/narrative/internal/metadataRewrite/evidenceHeading.ts +1 -11
  395. package/src/narrative/internal/metadataRewrite/evidenceSections.ts +1 -11
  396. package/src/narrative/internal/metadataRewrite/findClose.ts +1 -11
  397. package/src/narrative/internal/metadataRewrite/firstDifference.ts +1 -11
  398. package/src/narrative/internal/metadataRewrite/flatFingerprintStart.ts +2 -9
  399. package/src/narrative/internal/metadataRewrite/invalidUtf8Offset.ts +1 -11
  400. package/src/narrative/internal/metadataRewrite/isDeclaration.ts +1 -11
  401. package/src/narrative/internal/metadataRewrite/isNodeError.ts +1 -11
  402. package/src/narrative/internal/metadataRewrite/lineEnding.ts +1 -11
  403. package/src/narrative/internal/metadataRewrite/locate.ts +1 -11
  404. package/src/narrative/internal/metadataRewrite/markdownFiles.ts +1 -11
  405. package/src/narrative/internal/metadataRewrite/metadataOwnership.ts +1 -11
  406. package/src/narrative/internal/metadataRewrite/normalizeFile.ts +1 -11
  407. package/src/narrative/internal/metadataRewrite/occurrenceOffsets.ts +1 -11
  408. package/src/narrative/internal/metadataRewrite/occurrences.ts +1 -11
  409. package/src/narrative/internal/metadataRewrite/originalOffset.ts +1 -11
  410. package/src/narrative/internal/metadataRewrite/project.ts +1 -11
  411. package/src/narrative/internal/metadataRewrite/protectedFileKind.ts +1 -11
  412. package/src/narrative/internal/metadataRewrite/replacementSafety.ts +1 -11
  413. package/src/narrative/internal/metadataRewrite/sameMetadata.ts +1 -11
  414. package/src/narrative/internal/metadataRewrite/selectFiles.ts +1 -11
  415. package/src/narrative/internal/metadataRewrite/singleLineDeclaration.ts +1 -11
  416. package/src/narrative/internal/metadataRewrite/textLocation.ts +1 -11
  417. package/src/narrative/internal/metadataRewrite/validateRenderedSample.ts +1 -11
  418. package/src/narrative/internal/metadataRewrite/withoutEnding.ts +1 -11
  419. package/src/narrative/internal/productionLayers.ts +1 -11
  420. package/src/narrative/internal/readSettingsFiles.ts +8 -13
  421. package/src/narrative/internal/references/createCoverageReference.ts +2 -10
  422. package/src/narrative/internal/references/createDiscoveryReferences.ts +5 -13
  423. package/src/narrative/internal/references/createLanguageDiscoveryReferences.ts +1 -11
  424. package/src/narrative/internal/references/createLanguagePrincipleReferences.ts +4 -14
  425. package/src/narrative/internal/references/createLineageReference.ts +6 -14
  426. package/src/narrative/internal/references/createLocalContractReference.ts +0 -8
  427. package/src/narrative/internal/references/createPrincipleReferences.ts +9 -42
  428. package/src/narrative/internal/references/createSettingReferences.ts +3 -10
  429. package/src/narrative/internal/references/createSharedReference.ts +8 -17
  430. package/src/narrative/internal/references/createUpstreamReference.ts +0 -8
  431. package/src/narrative/internal/references/layerFiles.ts +5 -15
  432. package/src/narrative/internal/settingsEntryAnchor.ts +2 -9
  433. package/src/narrative/internal/topology/createTopologyFiles.ts +1 -11
  434. package/src/narrative/internal/utilities/BODY_ROOT.ts +14 -7
  435. package/src/narrative/internal/utilities/PACKAGE_DOCS_ROOT.ts +15 -7
  436. package/src/narrative/internal/utilities/assertProductionEvidenceSources.ts +2 -9
  437. package/src/narrative/internal/utilities/createContractDirectory.ts +4 -10
  438. package/src/narrative/internal/utilities/createContractRoot.ts +8 -18
  439. package/src/narrative/internal/utilities/createEvidenceFiles.ts +1 -11
  440. package/src/narrative/internal/utilities/createUnitFiles.ts +0 -8
  441. package/src/narrative/internal/utilities/hasStoryContract.ts +21 -0
  442. package/src/narrative/internal/utilities/referenceLocation.ts +2 -9
  443. package/src/narrative/internal/validateSettingsOutline.ts +27 -20
  444. package/src/narrative/isFirstPartPilot.ts +1 -11
  445. package/src/narrative/verifyEvidenceMetadataRewrite.ts +2 -10
  446. package/lib/narrative/internal/REALIZED_LAYERS.d.ts +0 -16
  447. package/lib/narrative/internal/REALIZED_LAYERS.js +0 -19
  448. package/lib/narrative/internal/REALIZED_LAYERS.js.map +0 -1
  449. package/lib/narrative/internal/claims/createExpressionObligationClaims.d.ts +0 -26
  450. package/lib/narrative/internal/claims/createExpressionObligationClaims.js +0 -93
  451. package/lib/narrative/internal/claims/createExpressionObligationClaims.js.map +0 -1
  452. package/src/narrative/internal/REALIZED_LAYERS.ts +0 -18
  453. package/src/narrative/internal/claims/createExpressionObligationClaims.ts +0 -125
@@ -1,12 +1,2 @@
1
- /**
2
- * Identifies missing paths, regular files, and paths that must not be followed.
3
- *
4
- * @evidence contracts/development/implementation.md#principled-implementation lstat every relative component, rejecting symlinks and nondirectory ancestors before accepting a regular final file.
5
- * @evidence contracts/development/implementation.md#clear-and-simple-structure Physical checks supplement lexical validation so selected paths cannot bypass safety.
6
- * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Only ENOENT becomes missing; other filesystem errors propagate without unsafe retries.
7
- * @evidence contracts/development/common.md#meaningful-documentation The comment identifies missing, regular and unsafe path categories.
8
- * @evidence contracts/development/implementation.md#efficient-algorithms D components require up to D synchronous lstat calls plus accumulated path-construction work.
9
- * @evidence contracts/development/implementation.md#reuse-equivalent-work Both roots are checked independently because physical identities and file kinds may differ.
10
- * @evidence contracts/development/implementation.md#bound-retention-and-release-resources Synchronous stats leave no open handles; paths and stat objects remain call-local.
11
- */
1
+ /** Identifies missing paths, regular files, and paths that must not be followed. */
12
2
  export declare function protectedFileKind(root: string, file: string): string;
@@ -7,17 +7,7 @@ exports.protectedFileKind = protectedFileKind;
7
7
  const node_fs_1 = __importDefault(require("node:fs"));
8
8
  const node_path_1 = __importDefault(require("node:path"));
9
9
  const isNodeError_1 = require("./isNodeError");
10
- /**
11
- * Identifies missing paths, regular files, and paths that must not be followed.
12
- *
13
- * @evidence contracts/development/implementation.md#principled-implementation lstat every relative component, rejecting symlinks and nondirectory ancestors before accepting a regular final file.
14
- * @evidence contracts/development/implementation.md#clear-and-simple-structure Physical checks supplement lexical validation so selected paths cannot bypass safety.
15
- * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Only ENOENT becomes missing; other filesystem errors propagate without unsafe retries.
16
- * @evidence contracts/development/common.md#meaningful-documentation The comment identifies missing, regular and unsafe path categories.
17
- * @evidence contracts/development/implementation.md#efficient-algorithms D components require up to D synchronous lstat calls plus accumulated path-construction work.
18
- * @evidence contracts/development/implementation.md#reuse-equivalent-work Both roots are checked independently because physical identities and file kinds may differ.
19
- * @evidence contracts/development/implementation.md#bound-retention-and-release-resources Synchronous stats leave no open handles; paths and stat objects remain call-local.
20
- */
10
+ /** Identifies missing paths, regular files, and paths that must not be followed. */
21
11
  function protectedFileKind(root, file) {
22
12
  let target = root;
23
13
  const parts = file.split("/");
@@ -1 +1 @@
1
- {"version":3,"file":"protectedFileKind.js","sourceRoot":"","sources":["../../../../src/narrative/internal/metadataRewrite/protectedFileKind.ts"],"names":[],"mappings":";;;;;;AAAA,sDAAyB;AACzB,0DAA6B;AAE7B,+CAA4C;AAE5C;;;;;;;;;;GAUG;AACH,2BAAkC,IAAY,EAAE,IAAY;IAC1D,IAAI,MAAM,GAAW,IAAI,CAAC;IAC1B,MAAM,KAAK,GAAa,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;IACxC,KAAK,IAAI,KAAK,GAAW,CAAC,EAAE,KAAK,GAAG,KAAK,CAAC,MAAM,EAAE,KAAK,IAAI,CAAC,EAAE,CAAC;QAC7D,MAAM,GAAG,mBAAI,CAAC,IAAI,CAAC,MAAM,EAAE,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC;QACzC,IAAI,CAAC;YACH,MAAM,IAAI,GAAa,iBAAE,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC;YAC5C,IAAI,IAAI,CAAC,cAAc,EAAE;gBAAE,OAAO,SAAS,CAAC;YAC5C,IAAI,KAAK,KAAK,KAAK,CAAC,MAAM,GAAG,CAAC;gBAC5B,OAAO,IAAI,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,UAAU,CAAC;YAC7C,IAAI,CAAC,IAAI,CAAC,WAAW,EAAE;gBAAE,OAAO,UAAU,CAAC;QAC7C,CAAC;QAAC,OAAO,KAAc,EAAE,CAAC;YACxB,IAAI,IAAA,yBAAW,EAAC,KAAK,CAAC,IAAI,KAAK,CAAC,IAAI,KAAK,QAAQ;gBAAE,OAAO,SAAS,CAAC;YACpE,MAAM,KAAK,CAAC;QACd,CAAC;IACH,CAAC;IACD,OAAO,UAAU,CAAC;AACpB,CAAC"}
1
+ {"version":3,"file":"protectedFileKind.js","sourceRoot":"","sources":["../../../../src/narrative/internal/metadataRewrite/protectedFileKind.ts"],"names":[],"mappings":";;;;;;AAAA,sDAAyB;AACzB,0DAA6B;AAE7B,+CAA4C;AAE5C,oFAAoF;AACpF,2BAAkC,IAAY,EAAE,IAAY;IAC1D,IAAI,MAAM,GAAW,IAAI,CAAC;IAC1B,MAAM,KAAK,GAAa,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;IACxC,KAAK,IAAI,KAAK,GAAW,CAAC,EAAE,KAAK,GAAG,KAAK,CAAC,MAAM,EAAE,KAAK,IAAI,CAAC,EAAE,CAAC;QAC7D,MAAM,GAAG,mBAAI,CAAC,IAAI,CAAC,MAAM,EAAE,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC;QACzC,IAAI,CAAC;YACH,MAAM,IAAI,GAAa,iBAAE,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC;YAC5C,IAAI,IAAI,CAAC,cAAc,EAAE;gBAAE,OAAO,SAAS,CAAC;YAC5C,IAAI,KAAK,KAAK,KAAK,CAAC,MAAM,GAAG,CAAC;gBAC5B,OAAO,IAAI,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,UAAU,CAAC;YAC7C,IAAI,CAAC,IAAI,CAAC,WAAW,EAAE;gBAAE,OAAO,UAAU,CAAC;QAC7C,CAAC;QAAC,OAAO,KAAc,EAAE,CAAC;YACxB,IAAI,IAAA,yBAAW,EAAC,KAAK,CAAC,IAAI,KAAK,CAAC,IAAI,KAAK,QAAQ;gBAAE,OAAO,SAAS,CAAC;YACpE,MAAM,KAAK,CAAC;QACd,CAAC;IACH,CAAC;IACD,OAAO,UAAU,CAAC;AACpB,CAAC"}
@@ -1,12 +1,2 @@
1
- /**
2
- * Returns all replacement alarms confirmed against ancestor text.
3
- *
4
- * @evidence contracts/development/implementation.md#principled-implementation Report U+FFFD and increases of fixed corruption tokens against the ancestor, including their candidate locations.
5
- * @evidence contracts/development/implementation.md#clear-and-simple-structure Heuristic corruption alarms remain separate from exact protected-byte comparison.
6
- * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Ancestor counts preserve preexisting tokens; fixed signals do not claim complete language or encoding validation.
7
- * @evidence contracts/development/common.md#meaningful-documentation The comment states ancestor-confirmed alarms; diagnostics expose counts and new positions.
8
- * @evidence contracts/development/implementation.md#efficient-algorithms For fixed T signals, ancestor and candidate scans dominate with O(K) match arrays plus location-conversion work.
9
- * @evidence contracts/development/implementation.md#reuse-equivalent-work The fixed token list is shared; candidate offsets serve counts and new-position diagnostics together.
10
- * @evidence contracts/development/implementation.md#bound-retention-and-release-resources Returned alarm strings are caller-owned; temporary offsets and locations expire with the call.
11
- */
1
+ /** Returns all replacement alarms confirmed against ancestor text. */
12
2
  export declare function replacementSafety(file: string, side: string, ancestor: string, candidate: string): string[];
@@ -5,17 +5,7 @@ const SUSPICIOUS_1 = require("./SUSPICIOUS");
5
5
  const occurrenceOffsets_1 = require("./occurrenceOffsets");
6
6
  const occurrences_1 = require("./occurrences");
7
7
  const textLocation_1 = require("./textLocation");
8
- /**
9
- * Returns all replacement alarms confirmed against ancestor text.
10
- *
11
- * @evidence contracts/development/implementation.md#principled-implementation Report U+FFFD and increases of fixed corruption tokens against the ancestor, including their candidate locations.
12
- * @evidence contracts/development/implementation.md#clear-and-simple-structure Heuristic corruption alarms remain separate from exact protected-byte comparison.
13
- * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Ancestor counts preserve preexisting tokens; fixed signals do not claim complete language or encoding validation.
14
- * @evidence contracts/development/common.md#meaningful-documentation The comment states ancestor-confirmed alarms; diagnostics expose counts and new positions.
15
- * @evidence contracts/development/implementation.md#efficient-algorithms For fixed T signals, ancestor and candidate scans dominate with O(K) match arrays plus location-conversion work.
16
- * @evidence contracts/development/implementation.md#reuse-equivalent-work The fixed token list is shared; candidate offsets serve counts and new-position diagnostics together.
17
- * @evidence contracts/development/implementation.md#bound-retention-and-release-resources Returned alarm strings are caller-owned; temporary offsets and locations expire with the call.
18
- */
8
+ /** Returns all replacement alarms confirmed against ancestor text. */
19
9
  function replacementSafety(file, side, ancestor, candidate) {
20
10
  const diagnostics = [];
21
11
  const replacement = candidate.indexOf("\uFFFD");
@@ -1 +1 @@
1
- {"version":3,"file":"replacementSafety.js","sourceRoot":"","sources":["../../../../src/narrative/internal/metadataRewrite/replacementSafety.ts"],"names":[],"mappings":";;;AAAA,6CAA0C;AAC1C,2DAAwD;AACxD,+CAA4C;AAC5C,iDAA8C;AAE9C;;;;;;;;;;GAUG;AACH,2BACE,IAAY,EACZ,IAAY,EACZ,QAAgB,EAChB,SAAiB;IAEjB,MAAM,WAAW,GAAa,EAAE,CAAC;IACjC,MAAM,WAAW,GAAW,SAAS,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC;IACxD,IAAI,WAAW,KAAK,CAAC,CAAC;QACpB,WAAW,CAAC,IAAI,CACd,GAAG,IAAI,KAAK,IAAI,kDAAkD,IAAA,2BAAY,EAAC,SAAS,EAAE,WAAW,CAAC,GAAG,CAC1G,CAAC;IACJ,IAAI,IAAI,KAAK,UAAU;QAAE,OAAO,WAAW,CAAC;IAE5C,KAAK,MAAM,KAAK,IAAI,uBAAU,EAAE,CAAC;QAC/B,MAAM,QAAQ,GAAW,IAAA,yBAAW,EAAC,QAAQ,EAAE,KAAK,CAAC,CAAC;QACtD,MAAM,cAAc,GAAa,IAAA,qCAAiB,EAAC,SAAS,EAAE,KAAK,CAAC,CAAC;QACrE,IAAI,cAAc,CAAC,MAAM,GAAG,QAAQ,EAAE,CAAC;YACrC,MAAM,MAAM,GAAW,cAAc,CAAC,QAAQ,CAAC,CAAC;YAChD,WAAW,CAAC,IAAI,CACd,GAAG,IAAI,qCAAqC,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,mBAAmB,QAAQ,OAAO,cAAc,CAAC,MAAM,iBAAiB,IAAA,2BAAY,EAAC,SAAS,EAAE,MAAM,CAAC,6CAA6C,CACtN,CAAC;QACJ,CAAC;IACH,CAAC;IACD,OAAO,WAAW,CAAC;AACrB,CAAC"}
1
+ {"version":3,"file":"replacementSafety.js","sourceRoot":"","sources":["../../../../src/narrative/internal/metadataRewrite/replacementSafety.ts"],"names":[],"mappings":";;;AAAA,6CAA0C;AAC1C,2DAAwD;AACxD,+CAA4C;AAC5C,iDAA8C;AAE9C,sEAAsE;AACtE,2BACE,IAAY,EACZ,IAAY,EACZ,QAAgB,EAChB,SAAiB;IAEjB,MAAM,WAAW,GAAa,EAAE,CAAC;IACjC,MAAM,WAAW,GAAW,SAAS,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC;IACxD,IAAI,WAAW,KAAK,CAAC,CAAC;QACpB,WAAW,CAAC,IAAI,CACd,GAAG,IAAI,KAAK,IAAI,kDAAkD,IAAA,2BAAY,EAAC,SAAS,EAAE,WAAW,CAAC,GAAG,CAC1G,CAAC;IACJ,IAAI,IAAI,KAAK,UAAU;QAAE,OAAO,WAAW,CAAC;IAE5C,KAAK,MAAM,KAAK,IAAI,uBAAU,EAAE,CAAC;QAC/B,MAAM,QAAQ,GAAW,IAAA,yBAAW,EAAC,QAAQ,EAAE,KAAK,CAAC,CAAC;QACtD,MAAM,cAAc,GAAa,IAAA,qCAAiB,EAAC,SAAS,EAAE,KAAK,CAAC,CAAC;QACrE,IAAI,cAAc,CAAC,MAAM,GAAG,QAAQ,EAAE,CAAC;YACrC,MAAM,MAAM,GAAW,cAAc,CAAC,QAAQ,CAAC,CAAC;YAChD,WAAW,CAAC,IAAI,CACd,GAAG,IAAI,qCAAqC,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,mBAAmB,QAAQ,OAAO,cAAc,CAAC,MAAM,iBAAiB,IAAA,2BAAY,EAAC,SAAS,EAAE,MAAM,CAAC,6CAA6C,CACtN,CAAC;QACJ,CAAC;IACH,CAAC;IACD,OAAO,WAAW,CAAC;AACrB,CAAC"}
@@ -1,13 +1,3 @@
1
1
  import type { IMetadataFragment } from "./IMetadataFragment";
2
- /**
3
- * Compares ordered metadata text and its authored-byte insertion anchors.
4
- *
5
- * @evidence contracts/development/implementation.md#principled-implementation Compare fragment counts, protected insertion offsets and exact removed text in order.
6
- * @evidence contracts/development/implementation.md#clear-and-simple-structure Including placement exposes movement across authored bytes.
7
- * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Whitespace and endings are never normalized into equality.
8
- * @evidence contracts/development/common.md#meaningful-documentation The comment identifies both text and insertion-anchor comparison.
9
- * @evidence contracts/development/implementation.md#efficient-algorithms Up to M fragment pairs and their string comparisons are examined, short-circuiting with constant auxiliary space.
10
- * @evidence contracts/development/implementation.md#reuse-equivalent-work Existing projection fragments are compared without reconstruction or extra hashing.
11
- * @evidence contracts/development/implementation.md#bound-retention-and-release-resources Borrowed arrays and fragments are not retained.
12
- */
2
+ /** Compares ordered metadata text and its authored-byte insertion anchors. */
13
3
  export declare function sameMetadata(before: IMetadataFragment[], after: IMetadataFragment[]): boolean;
@@ -1,17 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.sameMetadata = sameMetadata;
4
- /**
5
- * Compares ordered metadata text and its authored-byte insertion anchors.
6
- *
7
- * @evidence contracts/development/implementation.md#principled-implementation Compare fragment counts, protected insertion offsets and exact removed text in order.
8
- * @evidence contracts/development/implementation.md#clear-and-simple-structure Including placement exposes movement across authored bytes.
9
- * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Whitespace and endings are never normalized into equality.
10
- * @evidence contracts/development/common.md#meaningful-documentation The comment identifies both text and insertion-anchor comparison.
11
- * @evidence contracts/development/implementation.md#efficient-algorithms Up to M fragment pairs and their string comparisons are examined, short-circuiting with constant auxiliary space.
12
- * @evidence contracts/development/implementation.md#reuse-equivalent-work Existing projection fragments are compared without reconstruction or extra hashing.
13
- * @evidence contracts/development/implementation.md#bound-retention-and-release-resources Borrowed arrays and fragments are not retained.
14
- */
4
+ /** Compares ordered metadata text and its authored-byte insertion anchors. */
15
5
  function sameMetadata(before, after) {
16
6
  return (before.length === after.length &&
17
7
  before.every((fragment, index) => fragment.projectedStart === after[index].projectedStart &&
@@ -1 +1 @@
1
- {"version":3,"file":"sameMetadata.js","sourceRoot":"","sources":["../../../../src/narrative/internal/metadataRewrite/sameMetadata.ts"],"names":[],"mappings":";;;AAEA;;;;;;;;;;GAUG;AACH,sBACE,MAA2B,EAC3B,KAA0B;IAE1B,OAAO,CACL,MAAM,CAAC,MAAM,KAAK,KAAK,CAAC,MAAM;QAC9B,MAAM,CAAC,KAAK,CACV,CAAC,QAA2B,EAAE,KAAa,EAAW,EAAE,CACtD,QAAQ,CAAC,cAAc,KAAK,KAAK,CAAC,KAAK,CAAC,CAAC,cAAc;YACvD,QAAQ,CAAC,IAAI,KAAK,KAAK,CAAC,KAAK,CAAC,CAAC,IAAI,CACtC,CACF,CAAC;AACJ,CAAC"}
1
+ {"version":3,"file":"sameMetadata.js","sourceRoot":"","sources":["../../../../src/narrative/internal/metadataRewrite/sameMetadata.ts"],"names":[],"mappings":";;;AAEA,8EAA8E;AAC9E,sBACE,MAA2B,EAC3B,KAA0B;IAE1B,OAAO,CACL,MAAM,CAAC,MAAM,KAAK,KAAK,CAAC,MAAM;QAC9B,MAAM,CAAC,KAAK,CACV,CAAC,QAA2B,EAAE,KAAa,EAAW,EAAE,CACtD,QAAQ,CAAC,cAAc,KAAK,KAAK,CAAC,KAAK,CAAC,CAAC,cAAc;YACvD,QAAQ,CAAC,IAAI,KAAK,KAAK,CAAC,KAAK,CAAC,CAAC,IAAI,CACtC,CACF,CAAC;AACJ,CAAC"}
@@ -1,12 +1,2 @@
1
- /**
2
- * Selects an explicit safe population or the complete Markdown union.
3
- *
4
- * @evidence contracts/development/implementation.md#principled-implementation Choose normalized explicit files or both Markdown inventories, then deduplicate and sort names.
5
- * @evidence contracts/development/implementation.md#clear-and-simple-structure Population selection precedes separate physical-file safety checks.
6
- * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Both roots contribute so additions and removals remain detectable; explicit paths cannot bypass normalization.
7
- * @evidence contracts/development/common.md#meaningful-documentation The comment distinguishes explicit selection from complete Markdown union.
8
- * @evidence contracts/development/implementation.md#efficient-algorithms Inventory visits both trees when needed; sets use O(F) names and sorting uses O(F log F) path comparisons.
9
- * @evidence contracts/development/implementation.md#reuse-equivalent-work Set removes duplicates before comparison; independent root inventories cannot be assumed equivalent.
10
- * @evidence contracts/development/implementation.md#bound-retention-and-release-resources Returned names and temporary sets grow with population; no persistent cache or fixed cap is imposed.
11
- */
1
+ /** Selects an explicit safe population or the complete Markdown union. */
12
2
  export declare function selectFiles(beforeRoot: string, afterRoot: string, selected: string[] | undefined): string[];
@@ -3,17 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.selectFiles = selectFiles;
4
4
  const markdownFiles_1 = require("./markdownFiles");
5
5
  const normalizeFile_1 = require("./normalizeFile");
6
- /**
7
- * Selects an explicit safe population or the complete Markdown union.
8
- *
9
- * @evidence contracts/development/implementation.md#principled-implementation Choose normalized explicit files or both Markdown inventories, then deduplicate and sort names.
10
- * @evidence contracts/development/implementation.md#clear-and-simple-structure Population selection precedes separate physical-file safety checks.
11
- * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Both roots contribute so additions and removals remain detectable; explicit paths cannot bypass normalization.
12
- * @evidence contracts/development/common.md#meaningful-documentation The comment distinguishes explicit selection from complete Markdown union.
13
- * @evidence contracts/development/implementation.md#efficient-algorithms Inventory visits both trees when needed; sets use O(F) names and sorting uses O(F log F) path comparisons.
14
- * @evidence contracts/development/implementation.md#reuse-equivalent-work Set removes duplicates before comparison; independent root inventories cannot be assumed equivalent.
15
- * @evidence contracts/development/implementation.md#bound-retention-and-release-resources Returned names and temporary sets grow with population; no persistent cache or fixed cap is imposed.
16
- */
6
+ /** Selects an explicit safe population or the complete Markdown union. */
17
7
  function selectFiles(beforeRoot, afterRoot, selected) {
18
8
  const files = selected === undefined
19
9
  ? [
@@ -1 +1 @@
1
- {"version":3,"file":"selectFiles.js","sourceRoot":"","sources":["../../../../src/narrative/internal/metadataRewrite/selectFiles.ts"],"names":[],"mappings":";;;AAAA,mDAAgD;AAChD,mDAAgD;AAEhD;;;;;;;;;;GAUG;AACH,qBACE,UAAkB,EAClB,SAAiB,EACjB,QAA8B;IAE9B,MAAM,KAAK,GACT,QAAQ,KAAK,SAAS;QACpB,CAAC,CAAC;YACE,GAAG,IAAI,GAAG,CAAC;gBACT,GAAG,IAAA,6BAAa,EAAC,UAAU,CAAC;gBAC5B,GAAG,IAAA,6BAAa,EAAC,SAAS,CAAC;aAC5B,CAAC;SACH;QACH,CAAC,CAAC,QAAQ,CAAC,GAAG,CAAC,6BAAa,CAAC,CAAC;IAClC,OAAO,CAAC,GAAG,IAAI,GAAG,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,IAAY,EAAE,KAAa,EAAU,EAAE,CACtE,IAAI,CAAC,aAAa,CAAC,KAAK,CAAC,CAC1B,CAAC;AACJ,CAAC"}
1
+ {"version":3,"file":"selectFiles.js","sourceRoot":"","sources":["../../../../src/narrative/internal/metadataRewrite/selectFiles.ts"],"names":[],"mappings":";;;AAAA,mDAAgD;AAChD,mDAAgD;AAEhD,0EAA0E;AAC1E,qBACE,UAAkB,EAClB,SAAiB,EACjB,QAA8B;IAE9B,MAAM,KAAK,GACT,QAAQ,KAAK,SAAS;QACpB,CAAC,CAAC;YACE,GAAG,IAAI,GAAG,CAAC;gBACT,GAAG,IAAA,6BAAa,EAAC,UAAU,CAAC;gBAC5B,GAAG,IAAA,6BAAa,EAAC,SAAS,CAAC;aAC5B,CAAC;SACH;QACH,CAAC,CAAC,QAAQ,CAAC,GAAG,CAAC,6BAAa,CAAC,CAAC;IAClC,OAAO,CAAC,GAAG,IAAI,GAAG,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,IAAY,EAAE,KAAa,EAAU,EAAE,CACtE,IAAI,CAAC,aAAa,CAAC,KAAK,CAAC,CAC1B,CAAC;AACJ,CAAC"}
@@ -1,12 +1,2 @@
1
- /**
2
- * Recognizes one complete one-line comment and returns its declaration.
3
- *
4
- * @evidence contracts/development/implementation.md#principled-implementation Require exact one-line comment delimiters and classify only the enclosed declaration.
5
- * @evidence contracts/development/implementation.md#clear-and-simple-structure This helper recognizes syntax while project owns byte-removal decisions.
6
- * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Malformed spacing and unsupported declarations stay unrecognized without normalization.
7
- * @evidence contracts/development/common.md#meaningful-documentation The comment identifies complete comments and delimiter-free declaration output.
8
- * @evidence contracts/development/implementation.md#efficient-algorithms Prefix, suffix, slicing and grammar checks scale with line length and inner-string allocation.
9
- * @evidence contracts/development/implementation.md#reuse-equivalent-work The shared classifier and expressions are reused; each current line is recognized independently.
10
- * @evidence contracts/development/implementation.md#bound-retention-and-release-resources Returned text is caller-owned and no line history remains.
11
- */
1
+ /** Recognizes one complete one-line comment and returns its declaration. */
12
2
  export declare function singleLineDeclaration(line: string): string | undefined;
@@ -2,17 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.singleLineDeclaration = singleLineDeclaration;
4
4
  const isDeclaration_1 = require("./isDeclaration");
5
- /**
6
- * Recognizes one complete one-line comment and returns its declaration.
7
- *
8
- * @evidence contracts/development/implementation.md#principled-implementation Require exact one-line comment delimiters and classify only the enclosed declaration.
9
- * @evidence contracts/development/implementation.md#clear-and-simple-structure This helper recognizes syntax while project owns byte-removal decisions.
10
- * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Malformed spacing and unsupported declarations stay unrecognized without normalization.
11
- * @evidence contracts/development/common.md#meaningful-documentation The comment identifies complete comments and delimiter-free declaration output.
12
- * @evidence contracts/development/implementation.md#efficient-algorithms Prefix, suffix, slicing and grammar checks scale with line length and inner-string allocation.
13
- * @evidence contracts/development/implementation.md#reuse-equivalent-work The shared classifier and expressions are reused; each current line is recognized independently.
14
- * @evidence contracts/development/implementation.md#bound-retention-and-release-resources Returned text is caller-owned and no line history remains.
15
- */
5
+ /** Recognizes one complete one-line comment and returns its declaration. */
16
6
  function singleLineDeclaration(line) {
17
7
  if (!line.startsWith("<!-- ") || !line.endsWith(" -->"))
18
8
  return undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"singleLineDeclaration.js","sourceRoot":"","sources":["../../../../src/narrative/internal/metadataRewrite/singleLineDeclaration.ts"],"names":[],"mappings":";;;AAAA,mDAAgD;AAEhD;;;;;;;;;;GAUG;AACH,+BAAsC,IAAY;IAChD,IAAI,CAAC,IAAI,CAAC,UAAU,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,MAAM,CAAC;QAAE,OAAO,SAAS,CAAC;IAC1E,MAAM,WAAW,GAAW,IAAI,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC;IAC9C,OAAO,IAAA,6BAAa,EAAC,WAAW,CAAC,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,SAAS,CAAC;AAC9D,CAAC"}
1
+ {"version":3,"file":"singleLineDeclaration.js","sourceRoot":"","sources":["../../../../src/narrative/internal/metadataRewrite/singleLineDeclaration.ts"],"names":[],"mappings":";;;AAAA,mDAAgD;AAEhD,4EAA4E;AAC5E,+BAAsC,IAAY;IAChD,IAAI,CAAC,IAAI,CAAC,UAAU,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,MAAM,CAAC;QAAE,OAAO,SAAS,CAAC;IAC1E,MAAM,WAAW,GAAW,IAAI,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC;IAC9C,OAAO,IAAA,6BAAa,EAAC,WAAW,CAAC,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,SAAS,CAAC;AAC9D,CAAC"}
@@ -1,12 +1,2 @@
1
- /**
2
- * Formats one UTF-16 string index as source line, column, and UTF-8 byte.
3
- *
4
- * @evidence contracts/development/implementation.md#principled-implementation Convert a UTF-16 index to its UTF-8 prefix length, then locate that byte boundary in source text.
5
- * @evidence contracts/development/implementation.md#clear-and-simple-structure The adapter connects string-search indexes with byte-coordinate diagnostics.
6
- * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts UTF-16 positions are never assumed to equal UTF-8 byte offsets.
7
- * @evidence contracts/development/common.md#meaningful-documentation The comment names UTF-16 input, source line and column, and UTF-8 output units.
8
- * @evidence contracts/development/implementation.md#efficient-algorithms Prefix and full-text encoding plus location conversion cost O(B) time and transient space for B bytes.
9
- * @evidence contracts/development/implementation.md#reuse-equivalent-work locate supplies shared Unicode-column rules; different candidate strings need distinct temporary encodings.
10
- * @evidence contracts/development/implementation.md#bound-retention-and-release-resources Buffers, prefixes and line arrays expire locally; the result is one diagnostic string.
11
- */
1
+ /** Formats one UTF-16 string index as source line, column, and UTF-8 byte. */
12
2
  export declare function textLocation(text: string, index: number): string;
@@ -2,17 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.textLocation = textLocation;
4
4
  const locate_1 = require("./locate");
5
- /**
6
- * Formats one UTF-16 string index as source line, column, and UTF-8 byte.
7
- *
8
- * @evidence contracts/development/implementation.md#principled-implementation Convert a UTF-16 index to its UTF-8 prefix length, then locate that byte boundary in source text.
9
- * @evidence contracts/development/implementation.md#clear-and-simple-structure The adapter connects string-search indexes with byte-coordinate diagnostics.
10
- * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts UTF-16 positions are never assumed to equal UTF-8 byte offsets.
11
- * @evidence contracts/development/common.md#meaningful-documentation The comment names UTF-16 input, source line and column, and UTF-8 output units.
12
- * @evidence contracts/development/implementation.md#efficient-algorithms Prefix and full-text encoding plus location conversion cost O(B) time and transient space for B bytes.
13
- * @evidence contracts/development/implementation.md#reuse-equivalent-work locate supplies shared Unicode-column rules; different candidate strings need distinct temporary encodings.
14
- * @evidence contracts/development/implementation.md#bound-retention-and-release-resources Buffers, prefixes and line arrays expire locally; the result is one diagnostic string.
15
- */
5
+ /** Formats one UTF-16 string index as source line, column, and UTF-8 byte. */
16
6
  function textLocation(text, index) {
17
7
  const byte = Buffer.byteLength(text.slice(0, index), "utf8");
18
8
  const location = (0, locate_1.locate)(Buffer.from(text, "utf8"), byte);
@@ -1 +1 @@
1
- {"version":3,"file":"textLocation.js","sourceRoot":"","sources":["../../../../src/narrative/internal/metadataRewrite/textLocation.ts"],"names":[],"mappings":";;;AAAA,qCAAkC;AAElC;;;;;;;;;;GAUG;AACH,sBAA6B,IAAY,EAAE,KAAa;IACtD,MAAM,IAAI,GAAW,MAAM,CAAC,UAAU,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,EAAE,KAAK,CAAC,EAAE,MAAM,CAAC,CAAC;IACrE,MAAM,QAAQ,GAAqC,IAAA,eAAM,EACvD,MAAM,CAAC,IAAI,CAAC,IAAI,EAAE,MAAM,CAAC,EACzB,IAAI,CACL,CAAC;IACF,OAAO,GAAG,QAAQ,CAAC,IAAI,IAAI,QAAQ,CAAC,MAAM,UAAU,IAAI,GAAG,CAAC;AAC9D,CAAC"}
1
+ {"version":3,"file":"textLocation.js","sourceRoot":"","sources":["../../../../src/narrative/internal/metadataRewrite/textLocation.ts"],"names":[],"mappings":";;;AAAA,qCAAkC;AAElC,8EAA8E;AAC9E,sBAA6B,IAAY,EAAE,KAAa;IACtD,MAAM,IAAI,GAAW,MAAM,CAAC,UAAU,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,EAAE,KAAK,CAAC,EAAE,MAAM,CAAC,CAAC;IACrE,MAAM,QAAQ,GAAqC,IAAA,eAAM,EACvD,MAAM,CAAC,IAAI,CAAC,IAAI,EAAE,MAAM,CAAC,EACzB,IAAI,CACL,CAAC;IACF,OAAO,GAAG,QAAQ,CAAC,IAAI,IAAI,QAAQ,CAAC,MAAM,UAAU,IAAI,GAAG,CAAC;AAC9D,CAAC"}
@@ -1,16 +1,6 @@
1
1
  import type { IEvidenceMetadataRenderedSample } from "../../IEvidenceMetadataRenderedSample";
2
2
  import type { IProtectedProjection } from "./IProtectedProjection";
3
- /**
4
- * Requires and validates the auditable sample associated with a bulk batch.
5
- *
6
- * @evidence contracts/development/implementation.md#principled-implementation Require a bulk sample and check normalized file, positive line, nonempty fields and exact parsed candidate declaration text.
7
- * @evidence contracts/development/implementation.md#clear-and-simple-structure Already-built projections bind the record without rereading or reparsing Markdown.
8
- * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Only changed metadata files qualify; nearby authored text or unchanged declarations cannot substitute.
9
- * @evidence contracts/development/common.md#meaningful-documentation The comment states the audit-record requirement; consistency validation does not independently observe readability.
10
- * @evidence contracts/development/implementation.md#efficient-algorithms File membership scans F changed names; field checks scale with text and Map lookups reuse captured content.
11
- * @evidence contracts/development/implementation.md#reuse-equivalent-work Existing changed-file and projection populations are reused without a second filesystem scan.
12
- * @evidence contracts/development/implementation.md#bound-retention-and-release-resources Diagnostics and projections remain caller-owned; the shallow returned record holds sample fields with no handles or global state.
13
- */
3
+ /** Requires and validates the auditable sample associated with a bulk batch. */
14
4
  export declare function validateRenderedSample(sample: IEvidenceMetadataRenderedSample | undefined, bulk: boolean, changedFiles: string[], projections: Map<string, {
15
5
  before: IProtectedProjection;
16
6
  after: IProtectedProjection;
@@ -3,17 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.validateRenderedSample = validateRenderedSample;
4
4
  const errorMessage_1 = require("./errorMessage");
5
5
  const normalizeFile_1 = require("./normalizeFile");
6
- /**
7
- * Requires and validates the auditable sample associated with a bulk batch.
8
- *
9
- * @evidence contracts/development/implementation.md#principled-implementation Require a bulk sample and check normalized file, positive line, nonempty fields and exact parsed candidate declaration text.
10
- * @evidence contracts/development/implementation.md#clear-and-simple-structure Already-built projections bind the record without rereading or reparsing Markdown.
11
- * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Only changed metadata files qualify; nearby authored text or unchanged declarations cannot substitute.
12
- * @evidence contracts/development/common.md#meaningful-documentation The comment states the audit-record requirement; consistency validation does not independently observe readability.
13
- * @evidence contracts/development/implementation.md#efficient-algorithms File membership scans F changed names; field checks scale with text and Map lookups reuse captured content.
14
- * @evidence contracts/development/implementation.md#reuse-equivalent-work Existing changed-file and projection populations are reused without a second filesystem scan.
15
- * @evidence contracts/development/implementation.md#bound-retention-and-release-resources Diagnostics and projections remain caller-owned; the shallow returned record holds sample fields with no handles or global state.
16
- */
6
+ /** Requires and validates the auditable sample associated with a bulk batch. */
17
7
  function validateRenderedSample(sample, bulk, changedFiles, projections, diagnostics) {
18
8
  if (sample === undefined) {
19
9
  if (bulk)
@@ -1 +1 @@
1
- {"version":3,"file":"validateRenderedSample.js","sourceRoot":"","sources":["../../../../src/narrative/internal/metadataRewrite/validateRenderedSample.ts"],"names":[],"mappings":";;;AAEA,iDAA8C;AAC9C,mDAAgD;AAEhD;;;;;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C,GAAG,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;IACxC,IAAI,WAAW,KAAK,SAAS,IAAI,WAAW,KAAK,MAAM,CAAC,IAAI;QAC1D,WAAW,CAAC,IAAI,CACd,GAAG,IAAI,IAAI,MAAM,CAAC,IAAI,+FAA+F,CACtH,CAAC;IACJ,OAAO,EAAE,GAAG,MAAM,EAAE,IAAI,EAAE,CAAC;AAC7B,CAAC"}
1
+ {"version":3,"file":"validateRenderedSample.js","sourceRoot":"","sources":["../../../../src/narrative/internal/metadataRewrite/validateRenderedSample.ts"],"names":[],"mappings":";;;AAEA,iDAA8C;AAC9C,mDAAgD;AAEhD,gFAAgF;AAChF,gCACE,MAAmD,EACnD,IAAa,EACb,YAAsB,EACtB,WAGC,EACD,WAAqB;IAErB,IAAI,MAAM,KAAK,SAAS,EAAE,CAAC;QACzB,IAAI,IAAI;YACN,WAAW,CAAC,IAAI,CACd,uEAAuE,CACxE,CAAC;QACJ,OAAO,SAAS,CAAC;IACnB,CAAC;IAED,IAAI,IAAY,CAAC;IACjB,IAAI,CAAC;QACH,IAAI,GAAG,IAAA,6BAAa,EAAC,MAAM,CAAC,IAAI,CAAC,CAAC;IACpC,CAAC;IAAC,OAAO,KAAc,EAAE,CAAC;QACxB,WAAW,CAAC,IAAI,CAAC,IAAA,2BAAY,EAAC,KAAK,CAAC,CAAC,CAAC;QACtC,OAAO,SAAS,CAAC;IACnB,CAAC;IACD,IAAI,CAAC,YAAY,CAAC,QAAQ,CAAC,IAAI,CAAC;QAC9B,WAAW,CAAC,IAAI,CACd,GAAG,IAAI,4EAA4E,CACpF,CAAC;IACJ,IAAI,CAAC,MAAM,CAAC,SAAS,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,MAAM,CAAC,IAAI,GAAG,CAAC;QACnD,WAAW,CAAC,IAAI,CACd,GAAG,IAAI,oDAAoD,CAC5D,CAAC;IACJ,IAAI,MAAM,CAAC,QAAQ,CAAC,IAAI,EAAE,KAAK,EAAE;QAC/B,WAAW,CAAC,IAAI,CAAC,GAAG,IAAI,8CAA8C,CAAC,CAAC;IAC1E,IAAI,MAAM,CAAC,WAAW,CAAC,IAAI,EAAE,KAAK,EAAE;QAClC,WAAW,CAAC,IAAI,CAAC,GAAG,IAAI,+CAA+C,CAAC,CAAC;IAC3E,IAAI,MAAM,CAAC,IAAI,CAAC,IAAI,EAAE,KAAK,EAAE;QAC3B,WAAW,CAAC,IAAI,CAAC,GAAG,IAAI,2CAA2C,CAAC,CAAC;IAEvE,MAAM,WAAW,GAAuB,WAAW;SAChD,GAAG,CAAC,IAAI,CAAC;QACV,EAAE,KAAK,CAAC,YAAY,CAAC,GAAG,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;IACxC,IAAI,WAAW,KAAK,SAAS,IAAI,WAAW,KAAK,MAAM,CAAC,IAAI;QAC1D,WAAW,CAAC,IAAI,CACd,GAAG,IAAI,IAAI,MAAM,CAAC,IAAI,+FAA+F,CACtH,CAAC;IACJ,OAAO,EAAE,GAAG,MAAM,EAAE,IAAI,EAAE,CAAC;AAC7B,CAAC"}
@@ -1,12 +1,2 @@
1
- /**
2
- * Returns a line without consuming its exact ending.
3
- *
4
- * @evidence contracts/development/implementation.md#principled-implementation Remove one trailing CRLF, CR or LF while leaving every other character unchanged.
5
- * @evidence contracts/development/implementation.md#clear-and-simple-structure One helper defines the content boundary shared by projection and section parsing.
6
- * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts No interior newline or arbitrary trailing whitespace is normalized.
7
- * @evidence contracts/development/common.md#meaningful-documentation The comment identifies exact ending separation.
8
- * @evidence contracts/development/implementation.md#efficient-algorithms The end-anchored runtime regex processes L-character input; replacement may allocate O(L) text.
9
- * @evidence contracts/development/implementation.md#reuse-equivalent-work Shared ending semantics need no cache that would retain individual source lines.
10
- * @evidence contracts/development/implementation.md#bound-retention-and-release-resources No state is stored and returned text belongs to its caller.
11
- */
1
+ /** Returns a line without consuming its exact ending. */
12
2
  export declare function withoutEnding(line: string): string;
@@ -1,17 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.withoutEnding = withoutEnding;
4
- /**
5
- * Returns a line without consuming its exact ending.
6
- *
7
- * @evidence contracts/development/implementation.md#principled-implementation Remove one trailing CRLF, CR or LF while leaving every other character unchanged.
8
- * @evidence contracts/development/implementation.md#clear-and-simple-structure One helper defines the content boundary shared by projection and section parsing.
9
- * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts No interior newline or arbitrary trailing whitespace is normalized.
10
- * @evidence contracts/development/common.md#meaningful-documentation The comment identifies exact ending separation.
11
- * @evidence contracts/development/implementation.md#efficient-algorithms The end-anchored runtime regex processes L-character input; replacement may allocate O(L) text.
12
- * @evidence contracts/development/implementation.md#reuse-equivalent-work Shared ending semantics need no cache that would retain individual source lines.
13
- * @evidence contracts/development/implementation.md#bound-retention-and-release-resources No state is stored and returned text belongs to its caller.
14
- */
4
+ /** Returns a line without consuming its exact ending. */
15
5
  function withoutEnding(line) {
16
6
  return line.replace(/(?:\r\n|\r|\n)$/u, "");
17
7
  }
@@ -1 +1 @@
1
- {"version":3,"file":"withoutEnding.js","sourceRoot":"","sources":["../../../../src/narrative/internal/metadataRewrite/withoutEnding.ts"],"names":[],"mappings":";;;AAAA;;;;;;;;;;GAUG;AACH,uBAA8B,IAAY;IACxC,OAAO,IAAI,CAAC,OAAO,CAAC,kBAAkB,EAAE,EAAE,CAAC,CAAC;AAC9C,CAAC"}
1
+ {"version":3,"file":"withoutEnding.js","sourceRoot":"","sources":["../../../../src/narrative/internal/metadataRewrite/withoutEnding.ts"],"names":[],"mappings":";;;AAAA,yDAAyD;AACzD,uBAA8B,IAAY;IACxC,OAAO,IAAI,CAAC,OAAO,CAAC,kBAAkB,EAAE,EAAE,CAAC,CAAC;AAC9C,CAAC"}
@@ -1,14 +1,4 @@
1
1
  import type { AuthoredLayer } from "../AuthoredLayer";
2
2
  import type { IProductionConfigProps } from "../IProductionConfigProps";
3
- /**
4
- * Selects the narrative layers authored by the declared production route.
5
- *
6
- * @evidence contracts/development/implementation.md#principled-implementation The route discriminant chooses settings, treatments, scripts and screenplay for long, brief plus screenplay for short, and none for asset; validation of route/stage coherence belongs to the factory.
7
- * @evidence contracts/development/implementation.md#clear-and-simple-structure This selector centralizes route ownership so claim composition and dependency admission use the same population.
8
- * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Long, short and asset are declared product routes, and no consumer identity changes their layer lists.
9
- * @evidence contracts/development/common.md#meaningful-documentation The comment states route-selected authorship; the props contract explains the route and the factory validates it.
10
- * @evidence contracts/development/implementation.md#efficient-algorithms The route branch and bounded layer array take constant time and space.
11
- * @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work Each call returns a fresh bounded literal array; there is no effectful work or cross-request equivalence requirement.
12
- * @evidence contracts/development/implementation.md#bound-retention-and-release-resources Returned arrays are caller-owned with at most four entries, and no population grows in retained state or owns handles/tasks.
13
- */
3
+ /** Selects the narrative layers authored by the declared production route. */
14
4
  export declare function productionLayers(props: IProductionConfigProps): readonly AuthoredLayer[];
@@ -1,17 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.productionLayers = productionLayers;
4
- /**
5
- * Selects the narrative layers authored by the declared production route.
6
- *
7
- * @evidence contracts/development/implementation.md#principled-implementation The route discriminant chooses settings, treatments, scripts and screenplay for long, brief plus screenplay for short, and none for asset; validation of route/stage coherence belongs to the factory.
8
- * @evidence contracts/development/implementation.md#clear-and-simple-structure This selector centralizes route ownership so claim composition and dependency admission use the same population.
9
- * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Long, short and asset are declared product routes, and no consumer identity changes their layer lists.
10
- * @evidence contracts/development/common.md#meaningful-documentation The comment states route-selected authorship; the props contract explains the route and the factory validates it.
11
- * @evidence contracts/development/implementation.md#efficient-algorithms The route branch and bounded layer array take constant time and space.
12
- * @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work Each call returns a fresh bounded literal array; there is no effectful work or cross-request equivalence requirement.
13
- * @evidence contracts/development/implementation.md#bound-retention-and-release-resources Returned arrays are caller-owned with at most four entries, and no population grows in retained state or owns handles/tasks.
14
- */
4
+ /** Selects the narrative layers authored by the declared production route. */
15
5
  function productionLayers(props) {
16
6
  return props.mode === "long"
17
7
  ? ["settings", "treatments", "scripts", "screenplay"]
@@ -1 +1 @@
1
- {"version":3,"file":"productionLayers.js","sourceRoot":"","sources":["../../../src/narrative/internal/productionLayers.ts"],"names":[],"mappings":";;;AAGA;;;;;;;;;;GAUG;AACH,0BACE,KAA6B;IAE7B,OAAO,KAAK,CAAC,IAAI,KAAK,MAAM;QAC1B,CAAC,CAAC,CAAC,UAAU,EAAE,YAAY,EAAE,SAAS,EAAE,YAAY,CAAC;QACrD,CAAC,CAAC,KAAK,CAAC,IAAI,KAAK,OAAO;YACtB,CAAC,CAAC,CAAC,OAAO,EAAE,YAAY,CAAC;YACzB,CAAC,CAAC,EAAE,CAAC;AACX,CAAC"}
1
+ {"version":3,"file":"productionLayers.js","sourceRoot":"","sources":["../../../src/narrative/internal/productionLayers.ts"],"names":[],"mappings":";;;AAGA,8EAA8E;AAC9E,0BACE,KAA6B;IAE7B,OAAO,KAAK,CAAC,IAAI,KAAK,MAAM;QAC1B,CAAC,CAAC,CAAC,UAAU,EAAE,YAAY,EAAE,SAAS,EAAE,YAAY,CAAC;QACrD,CAAC,CAAC,KAAK,CAAC,IAAI,KAAK,OAAO;YACtB,CAAC,CAAC,CAAC,OAAO,EAAE,YAAY,CAAC;YACzB,CAAC,CAAC,EAAE,CAAC;AACX,CAAC"}
@@ -4,17 +4,9 @@
4
4
  *
5
5
  * The scaffold's layout is `docs/body/settings/<domain>/<subject>.md` with the
6
6
  * domains `world`, `cast`, `crowds`, `props`, `sets`, `cinematography` and
7
- * `sound`, read in that order and alphabetically within a domain. Domain
8
- * files use lower-kebab-case names and exclude the numbered `NNN-entry.md`
9
- * form. Numbered `NNN-subject/NNN-entry.md` folders read in number order.
10
- * One settings root uses one layout; `outline` is navigation, not canon.
11
- *
12
- * @evidence contracts/development/implementation.md#principled-implementation Concrete directory entries select legacy flat Markdown, the scaffold's closed domain folders or numbered subject folders, forbid mixed/nested/symlinked layouts, exclude the shared NUMBERED_FILE grammar from domain filenames, enforce unique three-digit order keys for numbered folders and return deterministic relative reading order.
13
- * @evidence contracts/development/implementation.md#clear-and-simple-structure The filesystem reader owns canon layout validation; callers build outline and evidence relationships from the returned order without rewriting existing files.
14
- * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Legacy flat settings and numbered folders stay supported; absent settings return empty, while unknown domains, malformed names, numbered files inside domains, mixed layouts, duplicate order keys and symlinks fail for every production. Domain admission excludes exactly the existing numbered-file grammar, preserving other digit-bearing lower-kebab-case names.
15
- * @evidence contracts/development/common.md#meaningful-documentation The comment states the scaffold domain layout and its reading order, numbered and legacy retention, and that outline is navigation; errors identify mixed layouts, naming, empty folders, nesting and duplicate order numbers.
16
- * @evidence contracts/development/implementation.md#efficient-algorithms For e root/subject entries, directory enumeration and name validation scan entry text; sorting folders and entries costs O(e log e) comparisons in the worst distribution, with O(e) output/sets and directory arrays. No canon bytes are read.
17
- * @evidence contracts/development/implementation.md#reuse-equivalent-work Each directory is listed once per call and duplicate-number sets avoid repeated pairwise comparisons; later calls rerun because current settings topology can change.
18
- * @evidence contracts/development/implementation.md#bound-retention-and-release-resources Listings and relative file arrays live for one call or in its returned result; synchronous filesystem operations leave no retained handles/tasks and no fixed count bound is imposed.
7
+ * `sound`, read in that order and alphabetically within a domain. Domain files
8
+ * use lower-kebab-case names and exclude the numbered `NNN-entry.md` form.
9
+ * Numbered `NNN-subject/NNN-entry.md` folders read in number order. One
10
+ * settings root uses one layout; `outline` is navigation, not canon.
19
11
  */
20
12
  export declare function readSettingsFiles(root: string): string[];
@@ -13,18 +13,10 @@ const SETTINGS_DOMAINS_1 = require("./SETTINGS_DOMAINS");
13
13
  *
14
14
  * The scaffold's layout is `docs/body/settings/<domain>/<subject>.md` with the
15
15
  * domains `world`, `cast`, `crowds`, `props`, `sets`, `cinematography` and
16
- * `sound`, read in that order and alphabetically within a domain. Domain
17
- * files use lower-kebab-case names and exclude the numbered `NNN-entry.md`
18
- * form. Numbered `NNN-subject/NNN-entry.md` folders read in number order.
19
- * One settings root uses one layout; `outline` is navigation, not canon.
20
- *
21
- * @evidence contracts/development/implementation.md#principled-implementation Concrete directory entries select legacy flat Markdown, the scaffold's closed domain folders or numbered subject folders, forbid mixed/nested/symlinked layouts, exclude the shared NUMBERED_FILE grammar from domain filenames, enforce unique three-digit order keys for numbered folders and return deterministic relative reading order.
22
- * @evidence contracts/development/implementation.md#clear-and-simple-structure The filesystem reader owns canon layout validation; callers build outline and evidence relationships from the returned order without rewriting existing files.
23
- * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Legacy flat settings and numbered folders stay supported; absent settings return empty, while unknown domains, malformed names, numbered files inside domains, mixed layouts, duplicate order keys and symlinks fail for every production. Domain admission excludes exactly the existing numbered-file grammar, preserving other digit-bearing lower-kebab-case names.
24
- * @evidence contracts/development/common.md#meaningful-documentation The comment states the scaffold domain layout and its reading order, numbered and legacy retention, and that outline is navigation; errors identify mixed layouts, naming, empty folders, nesting and duplicate order numbers.
25
- * @evidence contracts/development/implementation.md#efficient-algorithms For e root/subject entries, directory enumeration and name validation scan entry text; sorting folders and entries costs O(e log e) comparisons in the worst distribution, with O(e) output/sets and directory arrays. No canon bytes are read.
26
- * @evidence contracts/development/implementation.md#reuse-equivalent-work Each directory is listed once per call and duplicate-number sets avoid repeated pairwise comparisons; later calls rerun because current settings topology can change.
27
- * @evidence contracts/development/implementation.md#bound-retention-and-release-resources Listings and relative file arrays live for one call or in its returned result; synchronous filesystem operations leave no retained handles/tasks and no fixed count bound is imposed.
16
+ * `sound`, read in that order and alphabetically within a domain. Domain files
17
+ * use lower-kebab-case names and exclude the numbered `NNN-entry.md` form.
18
+ * Numbered `NNN-subject/NNN-entry.md` folders read in number order. One
19
+ * settings root uses one layout; `outline` is navigation, not canon.
28
20
  */
29
21
  function readSettingsFiles(root) {
30
22
  if (!node_fs_1.default.existsSync(root))
@@ -85,7 +77,10 @@ const KEBAB_FILE = /^[a-z0-9]+(?:-[a-z0-9]+)*\.md$/u;
85
77
  function compare(left, right) {
86
78
  return left < right ? -1 : left > right ? 1 : 0;
87
79
  }
88
- /** The sorted Markdown files of one settings folder, keeping domain and numbered names disjoint and refusing nesting, bad names and emptiness. */
80
+ /**
81
+ * The sorted Markdown files of one settings folder, keeping domain and numbered
82
+ * names disjoint and refusing nesting, bad names and emptiness.
83
+ */
89
84
  function list(root, folder, pattern) {
90
85
  const names = [];
91
86
  for (const entry of node_fs_1.default.readdirSync(node_path_1.default.join(root, folder), {
@@ -1 +1 @@
1
- {"version":3,"file":"readSettingsFiles.js","sourceRoot":"","sources":["../../../src/narrative/internal/readSettingsFiles.ts"],"names":[],"mappings":";;;;;;AAAA,sDAAyB;AACzB,0DAA6B;AAE7B,yDAAsD;AAEtD;;;;;;;;;;;;;;;;;;GAkBG;AACH,2BAAkC,IAAY;IAC5C,IAAI,CAAC,iBAAE,CAAC,UAAU,CAAC,IAAI,CAAC;QAAE,OAAO,EAAE,CAAC;IACpC,MAAM,KAAK,GAAa,EAAE,CAAC;IAC3B,MAAM,QAAQ,GAAa,EAAE,CAAC;IAC9B,MAAM,OAAO,GAAa,EAAE,CAAC;IAC7B,KAAK,MAAM,KAAK,IAAI,iBAAE,CAAC,WAAW,CAAC,IAAI,EAAE,EAAE,aAAa,EAAE,IAAI,EAAE,CAAC,EAAE,CAAC;QAClE,IAAI,KAAK,CAAC,MAAM,EAAE,IAAI,KAAK,CAAC,IAAI,CAAC,QAAQ,CAAC,KAAK,CAAC;YAAE,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;aACpE,IAAI,KAAK,CAAC,WAAW,EAAE,IAAI,KAAK,CAAC,IAAI,KAAK,SAAS,EAAE,CAAC;YACzD,IAAI,mCAA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IACE,CAAC,KAAK,CAAC,MAAM,EAAE;YACf,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC;YACzB,CAAC,OAAO,KAAK,UAAU,IAAI,aAAa,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;YAE1D,MAAM,IAAI,KAAK,CACb,GAAG,mBAAI,CAAC,IAAI,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,CAAC,IAAI,CAAC,2BAA2B,OAAO,KAAK,aAAa,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,6BAA6B,wCAAwC,CAChL,CAAC;QACJ,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;IACzB,CAAC;IACD,IAAI,CAAC,KAAK,CAAC,MAAM;QACf,MAAM,IAAI,KAAK,CACb,GAAG,mBAAI,CAAC,IAAI,CAAC,IAAI,EAAE,MAAM,CAAC,0CAA0C,CACrE,CAAC;IACJ,OAAO,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;AAC7B,CAAC"}
@@ -14,15 +14,7 @@ import type { IEvidenceReference } from "@wrtnlabs/evidence";
14
14
  * It proves only that. Ordinary coverage cannot require a host to cite
15
15
  * anything, and the one per-host count the engine offers is exactly one, which
16
16
  * a unit realizing two events would fail. Attribution is therefore a contract
17
- * duty rather than a cardinality: a unit with no parent cannot answer
18
- * its selected parent-realization principle truthfully.
19
- *
20
- * @evidence contracts/development/implementation.md#principled-implementation Treatment file/H2 references prohibit exclusions but permit many-to-many coverage, matching independent event and release partitions; host attribution remains a semantic contract because native cardinality cannot require an arbitrary positive count.
21
- * @evidence contracts/development/implementation.md#clear-and-simple-structure This helper isolates coverage from strict lineage, preventing the one-parent rule from being reused for differently partitioned populations.
22
- * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts NoEvidenceExclude enforces retained treatment targets without a fixture-specific bijection; the documented native limitation is not hidden by a fabricated host count.
23
- * @evidence contracts/development/common.md#meaningful-documentation The prose explains partition independence, the exact guarantee and the remaining per-host attribution responsibility.
24
- * @evidence contracts/development/implementation.md#efficient-algorithms The reference object is fixed size; referenceLocation copies/maps n selected paths for file references and reuses the supplied path array for H2 references, so work is O(n) path text or constant respectively.
25
- * @evidence contracts/development/implementation.md#reuse-equivalent-work Address formation is shared with lineage references; H2 selectors retain the provided array while file selectors allocate qualified addresses, and no cross-call cache claims mutable selector equivalence.
26
- * @evidence contracts/development/implementation.md#bound-retention-and-release-resources The returned reference is caller-owned and may retain the input selector array; file-qualified strings scale with selector text, with no open handles or persistent registry.
17
+ * duty rather than a cardinality: a unit with no parent cannot answer its
18
+ * selected parent-realization principle truthfully.
27
19
  */
28
20
  export declare function createCoverageReference(files: string[], symbol: "file" | "h2"): IEvidenceReference;
@@ -17,16 +17,8 @@ const referenceLocation_1 = require("../utilities/referenceLocation");
17
17
  * It proves only that. Ordinary coverage cannot require a host to cite
18
18
  * anything, and the one per-host count the engine offers is exactly one, which
19
19
  * a unit realizing two events would fail. Attribution is therefore a contract
20
- * duty rather than a cardinality: a unit with no parent cannot answer
21
- * its selected parent-realization principle truthfully.
22
- *
23
- * @evidence contracts/development/implementation.md#principled-implementation Treatment file/H2 references prohibit exclusions but permit many-to-many coverage, matching independent event and release partitions; host attribution remains a semantic contract because native cardinality cannot require an arbitrary positive count.
24
- * @evidence contracts/development/implementation.md#clear-and-simple-structure This helper isolates coverage from strict lineage, preventing the one-parent rule from being reused for differently partitioned populations.
25
- * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts NoEvidenceExclude enforces retained treatment targets without a fixture-specific bijection; the documented native limitation is not hidden by a fabricated host count.
26
- * @evidence contracts/development/common.md#meaningful-documentation The prose explains partition independence, the exact guarantee and the remaining per-host attribution responsibility.
27
- * @evidence contracts/development/implementation.md#efficient-algorithms The reference object is fixed size; referenceLocation copies/maps n selected paths for file references and reuses the supplied path array for H2 references, so work is O(n) path text or constant respectively.
28
- * @evidence contracts/development/implementation.md#reuse-equivalent-work Address formation is shared with lineage references; H2 selectors retain the provided array while file selectors allocate qualified addresses, and no cross-call cache claims mutable selector equivalence.
29
- * @evidence contracts/development/implementation.md#bound-retention-and-release-resources The returned reference is caller-owned and may retain the input selector array; file-qualified strings scale with selector text, with no open handles or persistent registry.
20
+ * duty rather than a cardinality: a unit with no parent cannot answer its
21
+ * selected parent-realization principle truthfully.
30
22
  */
31
23
  function createCoverageReference(files, symbol) {
32
24
  return {
@@ -1 +1 @@
1
- {"version":3,"file":"createCoverageReference.js","sourceRoot":"","sources":["../../../../src/narrative/internal/references/createCoverageReference.ts"],"names":[],"mappings":";;;AAEA,sEAAmE;AAEnE;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,iCACE,KAAe,EACf,MAAqB;IAErB,OAAO;QACL,IAAI,EAAE,UAAU;QAChB,GAAG,IAAA,qCAAiB,EAAC,KAAK,EAAE,MAAM,CAAC;QACnC,MAAM;QACN,iBAAiB,EAAE,IAAI;KACxB,CAAC;AACJ,CAAC"}
1
+ {"version":3,"file":"createCoverageReference.js","sourceRoot":"","sources":["../../../../src/narrative/internal/references/createCoverageReference.ts"],"names":[],"mappings":";;;AAEA,sEAAmE;AAEnE;;;;;;;;;;;;;;;;;GAiBG;AACH,iCACE,KAAe,EACf,MAAqB;IAErB,OAAO;QACL,IAAI,EAAE,UAAU;QAChB,GAAG,IAAA,qCAAiB,EAAC,KAAK,EAAE,MAAM,CAAC;QACnC,MAAM;QACN,iBAAiB,EAAE,IAAI;KACxB,CAAC;AACJ,CAAC"}
@@ -5,22 +5,14 @@ import type { AuthoredLayer } from "../../AuthoredLayer";
5
5
  * Creates the open-world discovery duties one layer's population covers.
6
6
  *
7
7
  * Canon, settings or a short's brief, searches its own directives and subject,
8
- * and backcasts the planned narrative to find what those layers would otherwise have to invent.
9
- * That backcast is how settings anticipates the cross-layer narrative contract,
10
- * so `discovery/narratives.md` is not selected here: it is the duty each
11
- * narrative layer answers when it rechecks that contract against what it
12
- * actually authored.
8
+ * and backcasts the planned narrative to find what those layers would otherwise
9
+ * have to invent. That backcast is how settings anticipates the cross-layer
10
+ * narrative contract, so `discovery/narratives.md` is not selected here: it is
11
+ * the duty each narrative layer answers when it rechecks that contract against
12
+ * what it actually authored.
13
13
  *
14
14
  * Exclusion is permitted throughout the family. A duty that requires a search
15
15
  * must be able to record that the search found nothing, which is what makes
16
16
  * requiring it honest.
17
- *
18
- * @evidence contracts/development/implementation.md#principled-implementation A fixed shared discovery family selects common and layer duties, adds narrative duties only for inheriting layers, and appends installed language calibration; shared duties resolve in the shared skills tree and language calibration in the production's own `docs/contracts`, each through its own reference root, and discovery permits exclusions for truthful negative searches.
19
- * @evidence contracts/development/implementation.md#clear-and-simple-structure The relation builder centralizes discovery target selection independently of the work-contract hosts created by createDiscoveryClaim.
20
- * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Canon layers omit narrative discovery because their backcast owns anticipation rather than rechecking authored inherited units; this is the declared layer responsibility.
21
- * @evidence contracts/development/common.md#meaningful-documentation The prose explains settings backcast, narrative-layer recheck and why negative search findings remain admissible.
22
- * @evidence contracts/development/implementation.md#efficient-algorithms Two or three shared references and at most one language reference are built; the optional language-file existence probe and fixed-count path operations dominate independent of manuscript size.
23
- * @evidence contracts/development/implementation.md#reuse-equivalent-work createSharedReference and the language-discovery selector share address/flag rules; optional language installation is checked each build rather than memoized across changed contract trees.
24
- * @evidence contracts/development/implementation.md#bound-retention-and-release-resources The bounded reference array is returned to the claim owner; only temporary path strings are discarded and no filesystem handles or tasks remain retained.
25
17
  */
26
18
  export declare function createDiscoveryReferences(contracts: IContractLocation, layer: AuthoredLayer): IEvidenceReference[];