@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,7 +1,8 @@
1
1
  /**
2
2
  * Gives reference targets an explicit address in the graph's global space.
3
3
  *
4
- * Every inherited reference selects the body, where each layer's authored text lives.
4
+ * Every inherited reference selects the body, where each layer's authored text
5
+ * lives.
5
6
  *
6
7
  * File references use package-relative addresses. A claim that selects file
7
8
  * hosts and a claim that selects section hosts read the same documents, and the
@@ -10,14 +11,6 @@
10
11
  * would reach that reference as an aggregate target and be refused for lacking
11
12
  * a section host. A distinct address space keeps each annotation with the
12
13
  * reference it answers.
13
- *
14
- * @evidence contracts/development/implementation.md#principled-implementation References always target the body, and file references use package-global addresses distinct from H2-root addresses to avoid aggregate-target collisions.
15
- * @evidence contracts/development/implementation.md#clear-and-simple-structure Address qualification is centralized for coverage, lineage and settings references, keeping native binder address-space rules out of their semantic flag builders.
16
- * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts The file/H2 address distinction follows native aggregate binding semantics; no citation is rewritten to match an expected answer.
17
- * @evidence contracts/development/common.md#meaningful-documentation The prose explains body targeting and why file references need a separate global address space.
18
- * @evidence contracts/development/implementation.md#efficient-algorithms File mode maps n selectors and their total text length p into qualified paths in O(n + p) work/storage; H2 mode constructs only its root and reuses the supplied files array.
19
- * @evidence contracts/development/implementation.md#reuse-equivalent-work Coverage and lineage share this address rule, and H2 mode reuses the input selector array; there is no cache that could incorrectly equate mutable files arrays.
20
- * @evidence contracts/development/implementation.md#bound-retention-and-release-resources The caller owns the returned root/files record; file mode owns n new strings while H2 mode retains the caller array reference, with no filesystem handle or running task.
21
14
  */
22
15
  export declare function referenceLocation(files: string[], symbol?: "file" | "h2"): {
23
16
  root: string;
@@ -5,7 +5,8 @@ const BODY_ROOT_1 = require("./BODY_ROOT");
5
5
  /**
6
6
  * Gives reference targets an explicit address in the graph's global space.
7
7
  *
8
- * Every inherited reference selects the body, where each layer's authored text lives.
8
+ * Every inherited reference selects the body, where each layer's authored text
9
+ * lives.
9
10
  *
10
11
  * File references use package-relative addresses. A claim that selects file
11
12
  * hosts and a claim that selects section hosts read the same documents, and the
@@ -14,14 +15,6 @@ const BODY_ROOT_1 = require("./BODY_ROOT");
14
15
  * would reach that reference as an aggregate target and be refused for lacking
15
16
  * a section host. A distinct address space keeps each annotation with the
16
17
  * reference it answers.
17
- *
18
- * @evidence contracts/development/implementation.md#principled-implementation References always target the body, and file references use package-global addresses distinct from H2-root addresses to avoid aggregate-target collisions.
19
- * @evidence contracts/development/implementation.md#clear-and-simple-structure Address qualification is centralized for coverage, lineage and settings references, keeping native binder address-space rules out of their semantic flag builders.
20
- * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts The file/H2 address distinction follows native aggregate binding semantics; no citation is rewritten to match an expected answer.
21
- * @evidence contracts/development/common.md#meaningful-documentation The prose explains body targeting and why file references need a separate global address space.
22
- * @evidence contracts/development/implementation.md#efficient-algorithms File mode maps n selectors and their total text length p into qualified paths in O(n + p) work/storage; H2 mode constructs only its root and reuses the supplied files array.
23
- * @evidence contracts/development/implementation.md#reuse-equivalent-work Coverage and lineage share this address rule, and H2 mode reuses the input selector array; there is no cache that could incorrectly equate mutable files arrays.
24
- * @evidence contracts/development/implementation.md#bound-retention-and-release-resources The caller owns the returned root/files record; file mode owns n new strings while H2 mode retains the caller array reference, with no filesystem handle or running task.
25
18
  */
26
19
  function referenceLocation(files, symbol = "h2") {
27
20
  if (symbol === "file")
@@ -1 +1 @@
1
- {"version":3,"file":"referenceLocation.js","sourceRoot":"","sources":["../../../../src/narrative/internal/utilities/referenceLocation.ts"],"names":[],"mappings":";;;AAAA,2CAAwC;AAExC;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,2BACE,KAAe,EACf,MAAM,GAAkB,IAAI;IAK5B,IAAI,MAAM,KAAK,MAAM;QACnB,OAAO;YACL,IAAI,EAAE,GAAG;YACT,KAAK,EAAE,KAAK,CAAC,GAAG,CAAC,CAAC,IAAY,EAAU,EAAE,CAAC,GAAG,qBAAS,IAAI,IAAI,EAAE,CAAC;SACnE,CAAC;IACJ,OAAO,EAAE,IAAI,EAAE,qBAAS,EAAE,KAAK,EAAE,CAAC;AACpC,CAAC"}
1
+ {"version":3,"file":"referenceLocation.js","sourceRoot":"","sources":["../../../../src/narrative/internal/utilities/referenceLocation.ts"],"names":[],"mappings":";;;AAAA,2CAAwC;AAExC;;;;;;;;;;;;;GAaG;AACH,2BACE,KAAe,EACf,MAAM,GAAkB,IAAI;IAK5B,IAAI,MAAM,KAAK,MAAM;QACnB,OAAO;YACL,IAAI,EAAE,GAAG;YACT,KAAK,EAAE,KAAK,CAAC,GAAG,CAAC,CAAC,IAAY,EAAU,EAAE,CAAC,GAAG,qBAAS,IAAI,IAAI,EAAE,CAAC;SACnE,CAAC;IACJ,OAAO,EAAE,IAAI,EAAE,qBAAS,EAAE,KAAK,EAAE,CAAC;AACpC,CAAC"}
@@ -1,16 +1,10 @@
1
1
  /**
2
- * Checks that the outline describes the classified canon, in domain or numbered folders, in its actual order.
2
+ * Checks that the outline describes the classified canon, in domain or numbered
3
+ * folders, in its actual order.
3
4
  *
4
- * Entry anchors encode the relative file path and entry labels equal the H1. This checks
5
- * the authored layout, not evidence rows: the graph owns citation cardinality
6
- * and the semantic reviewer owns whether grouping and explanations work.
7
- *
8
- * @evidence contracts/development/implementation.md#principled-implementation The outline's structural headings are matched sequentially against numbered canon paths and each file's single H1; path-encoded anchors and exact titles enforce one ordered entry per canon file without judging semantic grouping.
9
- * @evidence contracts/development/implementation.md#clear-and-simple-structure The validator owns settings index topology, leaving citation cardinality to the graph and grouping quality to independent review.
10
- * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Empty outline parts, missing/extra/reordered entries and title/anchor differences fail directly; comments and fenced examples are inert structural material for every input.
11
- * @evidence contracts/development/common.md#meaningful-documentation The prose states path-derived anchors, H1 label equality, actual order and boundaries between topology, graph evidence and semantic review.
12
- * @evidence contracts/development/implementation.md#efficient-algorithms Canon enumeration sorts entries, then the outline and each referenced file are read/parsed once; cost grows with entry sorting and total Markdown characters. Arrays retain parsed headings and paths, and the active document bytes are bounded by each read rather than an external fixed cap.
13
- * @evidence contracts/development/implementation.md#reuse-equivalent-work The ordered canon list is reused for all outline entries, while each matched file is read once; no cross-call cache is safe because canon bytes and topology are mutable.
14
- * @evidence contracts/development/implementation.md#bound-retention-and-release-resources All strings, heading arrays and path collections are local and released on completion/failure; synchronous readFileSync calls own no retained descriptor or asynchronous task.
5
+ * Entry anchors encode the relative file path and entry labels equal the H1.
6
+ * This checks the authored layout, not evidence rows: the graph owns citation
7
+ * cardinality and the semantic reviewer owns whether grouping and explanations
8
+ * work.
15
9
  */
16
10
  export declare function validateSettingsOutline(location: string): void;
@@ -9,19 +9,13 @@ const node_path_1 = __importDefault(require("node:path"));
9
9
  const readSettingsFiles_1 = require("./readSettingsFiles");
10
10
  const settingsEntryAnchor_1 = require("./settingsEntryAnchor");
11
11
  /**
12
- * Checks that the outline describes the classified canon, in domain or numbered folders, in its actual order.
12
+ * Checks that the outline describes the classified canon, in domain or numbered
13
+ * folders, in its actual order.
13
14
  *
14
- * Entry anchors encode the relative file path and entry labels equal the H1. This checks
15
- * the authored layout, not evidence rows: the graph owns citation cardinality
16
- * and the semantic reviewer owns whether grouping and explanations work.
17
- *
18
- * @evidence contracts/development/implementation.md#principled-implementation The outline's structural headings are matched sequentially against numbered canon paths and each file's single H1; path-encoded anchors and exact titles enforce one ordered entry per canon file without judging semantic grouping.
19
- * @evidence contracts/development/implementation.md#clear-and-simple-structure The validator owns settings index topology, leaving citation cardinality to the graph and grouping quality to independent review.
20
- * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Empty outline parts, missing/extra/reordered entries and title/anchor differences fail directly; comments and fenced examples are inert structural material for every input.
21
- * @evidence contracts/development/common.md#meaningful-documentation The prose states path-derived anchors, H1 label equality, actual order and boundaries between topology, graph evidence and semantic review.
22
- * @evidence contracts/development/implementation.md#efficient-algorithms Canon enumeration sorts entries, then the outline and each referenced file are read/parsed once; cost grows with entry sorting and total Markdown characters. Arrays retain parsed headings and paths, and the active document bytes are bounded by each read rather than an external fixed cap.
23
- * @evidence contracts/development/implementation.md#reuse-equivalent-work The ordered canon list is reused for all outline entries, while each matched file is read once; no cross-call cache is safe because canon bytes and topology are mutable.
24
- * @evidence contracts/development/implementation.md#bound-retention-and-release-resources All strings, heading arrays and path collections are local and released on completion/failure; synchronous readFileSync calls own no retained descriptor or asynchronous task.
15
+ * Entry anchors encode the relative file path and entry labels equal the H1.
16
+ * This checks the authored layout, not evidence rows: the graph owns citation
17
+ * cardinality and the semantic reviewer owns whether grouping and explanations
18
+ * work.
25
19
  */
26
20
  function validateSettingsOutline(location) {
27
21
  const root = node_path_1.default.join(location, "docs/body/settings");
@@ -74,18 +68,31 @@ function validateSettingsOutline(location) {
74
68
  throw new Error(`${target}: outline entries must match every numbered file once, in file order.`);
75
69
  }
76
70
  /**
77
- * Reads structural ATX headings while keeping comments and fenced examples inert.
71
+ * Reads structural ATX headings while keeping comments and fenced examples
72
+ * inert.
78
73
  *
79
74
  * A leading byte order mark is dropped first, as the binder does when it trims
80
75
  * a file, so both readers accept the same authored bytes.
81
76
  *
82
- * Principled implementation: A line-state parser masks HTML comments and compatible fences before recognizing ATX headings; stripping an initial BOM keeps its first-heading interpretation aligned with authored binder trimming.
83
- * Clear and simple design: The local parser exists for outline structure only, returning heading captures without rewriting the source or replacing graph evidence extraction.
84
- * Prohibited implementation shortcuts: BOM and fenced/comment examples follow supported Markdown input rules for every document; no title or expected outline entry is injected.
85
- * Meaningful documentation: The prose explains example/comment inertness and the leading BOM premise; returned regexp groups retain heading depth and raw title for the validator.
86
- * Efficient algorithms: Line splitting and forward state scans visit Markdown text; accumulated visible fragments and regexp captures consume space proportional to input/headings. Repeated string concatenation relies on runtime string handling and claims no measured linear speedup.
87
- * Reuse equivalent work: One pass handles comments and fences together for a document; the pure parser coordinates no cross-request work or filesystem effects.
88
- * Bound retention and release resources: Line, visible-text and capture arrays are local or caller-owned at return; no persistent state, descriptor or task is retained.
77
+ * Principled implementation: A line-state parser masks HTML comments and
78
+ * compatible fences before recognizing ATX headings; stripping an initial BOM
79
+ * keeps its first-heading interpretation aligned with authored binder trimming.
80
+ * Clear and simple design: The local parser exists for outline structure only,
81
+ * returning heading captures without rewriting the source or replacing graph
82
+ * evidence extraction. Prohibited implementation shortcuts: BOM and
83
+ * fenced/comment examples follow supported Markdown input rules for every
84
+ * document; no title or expected outline entry is injected. Meaningful
85
+ * documentation: The prose explains example/comment inertness and the leading
86
+ * BOM premise; returned regexp groups retain heading depth and raw title for
87
+ * the validator. Efficient algorithms: Line splitting and forward state scans
88
+ * visit Markdown text; accumulated visible fragments and regexp captures
89
+ * consume space proportional to input/headings. Repeated string concatenation
90
+ * relies on runtime string handling and claims no measured linear speedup.
91
+ * Reuse equivalent work: One pass handles comments and fences together for a
92
+ * document; the pure parser coordinates no cross-request work or filesystem
93
+ * effects. Bound retention and release resources: Line, visible-text and
94
+ * capture arrays are local or caller-owned at return; no persistent state,
95
+ * descriptor or task is retained.
89
96
  */
90
97
  function headings(markdown) {
91
98
  let comment = false;
@@ -1 +1 @@
1
- {"version":3,"file":"validateSettingsOutline.js","sourceRoot":"","sources":["../../../src/narrative/internal/validateSettingsOutline.ts"],"names":[],"mappings":";;;;;;AAAA,sDAAyB;AACzB,0DAA6B;AAE7B,2DAAwD;AACxD,+DAA4D;AAE5D;;;;;;;;;;;;;;GAcG;AACH,iCAAwC,QAAgB;IACtD,MAAM,IAAI,GAAW,mBAAI,CAAC,IAAI,CAAC,QAAQ,EAAE,oBAAoB,CAAC,CAAC;IAC/D,MAAM,MAAM,GAAW,mBAAI,CAAC,IAAI,CAAC,IAAI,EAAE,kBAAkB,CAAC,CAAC;IAC3D,IAAI,CAAC,iBAAE,CAAC,UAAU,CAAC,MAAM,CAAC;QACxB,MAAM,IAAI,KAAK,CAAC,GAAG,MAAM,iCAAiC,CAAC,CAAC;IAC9D,iGAAiG;IACjG,MAAM,KAAK,GAAa,IAAA,qCAAiB,EAAC,IAAI,CAAC,CAAC,MAAM,CACpD,CAAC,IAAY,EAAW,EAAE,CACxB,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC;QAClB,0CAA0C,CAAC,IAAI,CAAC,IAAI,CAAC,CACxD,CAAC;IACF,MAAM,OAAO,GAAsB,QAAQ,CAAC,iBAAE,CAAC,YAAY,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC;IAC7E,IACE,OAAO,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,KAAK,GAAG;QACvB,OAAO,CAAC,MAAM,CAAC,CAAC,IAAqB,EAAW,EAAE,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,GAAG,CAAC;aAChE,MAAM,KAAK,CAAC;QAEf,MAAM,IAAI,KAAK,CAAC,GAAG,MAAM,uCAAuC,CAAC,CAAC;IACpE,IAAI,IAAI,GAAY,KAAK,CAAC;IAC1B,IAAI,OAAO,GAAW,CAAC,CAAC;IACxB,IAAI,MAAM,GAAW,CAAC,CAAC;IAC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OAAO,CAAC,CAAC;IACpC,CAAC;IACD,OAAO,MAAM,CAAC;AAChB,CAAC"}
1
+ {"version":3,"file":"validateSettingsOutline.js","sourceRoot":"","sources":["../../../src/narrative/internal/validateSettingsOutline.ts"],"names":[],"mappings":";;;;;;AAAA,sDAAyB;AACzB,0DAA6B;AAE7B,2DAAwD;AACxD,+DAA4D;AAE5D;;;;;;;;GAQG;AACH,iCAAwC,QAAgB;IACtD,MAAM,IAAI,GAAW,mBAAI,CAAC,IAAI,CAAC,QAAQ,EAAE,oBAAoB,CAAC,CAAC;IAC/D,MAAM,MAAM,GAAW,mBAAI,CAAC,IAAI,CAAC,IAAI,EAAE,kBAAkB,CAAC,CAAC;IAC3D,IAAI,CAAC,iBAAE,CAAC,UAAU,CAAC,MAAM,CAAC;QACxB,MAAM,IAAI,KAAK,CAAC,GAAG,MAAM,iCAAiC,CAAC,CAAC;IAC9D,iGAAiG;IACjG,MAAM,KAAK,GAAa,IAAA,qCAAiB,EAAC,IAAI,CAAC,CAAC,MAAM,CACpD,CAAC,IAAY,EAAW,EAAE,CACxB,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC;QAClB,0CAA0C,CAAC,IAAI,CAAC,IAAI,CAAC,CACxD,CAAC;IACF,MAAM,OAAO,GAAsB,QAAQ,CAAC,iBAAE,CAAC,YAAY,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC;IAC7E,IACE,OAAO,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,KAAK,GAAG;QACvB,OAAO,CAAC,MAAM,CAAC,CAAC,IAAqB,EAAW,EAAE,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,GAAG,CAAC;aAChE,MAAM,KAAK,CAAC;QAEf,MAAM,IAAI,KAAK,CAAC,GAAG,MAAM,uCAAuC,CAAC,CAAC;IACpE,IAAI,IAAI,GAAY,KAAK,CAAC;IAC1B,IAAI,OAAO,GAAW,CAAC,CAAC;IACxB,IAAI,MAAM,GAAW,CAAC,CA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AAM,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IACpC,CAAC;IACD,OAAO,MAAM,CAAC;AAChB,CAAC"}
@@ -1,13 +1,3 @@
1
1
  import type { NarrativeScope } from "./NarrativeScope";
2
- /**
3
- * Returns whether the selected narrative population is one pilot slice.
4
- *
5
- * @evidence contracts/development/implementation.md#principled-implementation The discriminant comparison recognizes the pilot arm of NarrativeScope without consulting filenames or enabling stages.
6
- * @evidence contracts/development/implementation.md#clear-and-simple-structure This predicate only answers scope selection; file-name validation remains with the narrative selector.
7
- * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Both admitted scope modes use their literal contract spelling, without a special consumer or fallback mode.
8
- * @evidence contracts/development/common.md#meaningful-documentation The comment identifies the result as pilot population selection; it makes no approval or layout validity claim.
9
- * @evidence contracts/development/implementation.md#efficient-algorithms One literal comparison takes constant time and allocates no collection.
10
- * @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work This pure predicate coordinates no reusable requests, phases or effectful work.
11
- * @evidenceExclude contracts/development/implementation.md#bound-retention-and-release-resources The predicate retains no object, handle or task beyond its call.
12
- */
2
+ /** Returns whether the selected narrative population is one pilot slice. */
13
3
  export declare function isFirstPartPilot(scope: NarrativeScope): boolean;
@@ -1,17 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.isFirstPartPilot = isFirstPartPilot;
4
- /**
5
- * Returns whether the selected narrative population is one pilot slice.
6
- *
7
- * @evidence contracts/development/implementation.md#principled-implementation The discriminant comparison recognizes the pilot arm of NarrativeScope without consulting filenames or enabling stages.
8
- * @evidence contracts/development/implementation.md#clear-and-simple-structure This predicate only answers scope selection; file-name validation remains with the narrative selector.
9
- * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Both admitted scope modes use their literal contract spelling, without a special consumer or fallback mode.
10
- * @evidence contracts/development/common.md#meaningful-documentation The comment identifies the result as pilot population selection; it makes no approval or layout validity claim.
11
- * @evidence contracts/development/implementation.md#efficient-algorithms One literal comparison takes constant time and allocates no collection.
12
- * @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work This pure predicate coordinates no reusable requests, phases or effectful work.
13
- * @evidenceExclude contracts/development/implementation.md#bound-retention-and-release-resources The predicate retains no object, handle or task beyond its call.
14
- */
4
+ /** Returns whether the selected narrative population is one pilot slice. */
15
5
  function isFirstPartPilot(scope) {
16
6
  return scope.mode === "first-part-pilot";
17
7
  }
@@ -1 +1 @@
1
- {"version":3,"file":"isFirstPartPilot.js","sourceRoot":"","sources":["../../src/narrative/isFirstPartPilot.ts"],"names":[],"mappings":";;;AAEA;;;;;;;;;;GAUG;AACH,0BAAiC,KAAqB;IACpD,OAAO,KAAK,CAAC,IAAI,KAAK,kBAAkB,CAAC;AAC3C,CAAC"}
1
+ {"version":3,"file":"isFirstPartPilot.js","sourceRoot":"","sources":["../../src/narrative/isFirstPartPilot.ts"],"names":[],"mappings":";;;AAEA,4EAA4E;AAC5E,0BAAiC,KAAqB;IACpD,OAAO,KAAK,CAAC,IAAI,KAAK,kBAAkB,CAAC;AAC3C,CAAC"}
@@ -3,18 +3,10 @@ import type { IEvidenceMetadataRewriteReport } from "./IEvidenceMetadataRewriteR
3
3
  /**
4
4
  * Proves that a metadata-only rewrite changed only structural evidence rows.
5
5
  *
6
- * The canonical projection removes only the metadata region explicitly owned
7
- * by the operation. Complete comment ownership stops at the delimiters, while
6
+ * The canonical projection removes only the metadata region explicitly owned by
7
+ * the operation. Complete comment ownership stops at the delimiters, while
8
8
  * acknowledgement, review, and fingerprint ownership leaves the surrounding
9
9
  * evidence structure protected. Every other byte remains protected, including
10
10
  * Markdown body, sources, punctuation, BOM choice, and non-owned line endings.
11
- *
12
- * @evidence contracts/development/implementation.md#principled-implementation Validate physical file safety and strict UTF-8, compare ownership-specific byte projections, check corruption signals and bind bulk samples to changed metadata.
13
- * @evidence contracts/development/implementation.md#clear-and-simple-structure One synchronous coordinator aggregates diagnostics while grammar, byte mapping and sample checks have separate helpers.
14
- * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts BOM, authored text and unowned endings stay protected; added, removed or symlinked selected paths fail rather than becoming metadata edits.
15
- * @evidence contracts/development/common.md#meaningful-documentation The comment defines ownership boundaries and byte preservation; failure throws aggregated diagnostics and success returns hashes and sample data.
16
- * @evidence contracts/development/implementation.md#efficient-algorithms Across F files and B bytes, reads, validation, projection, hashing and token scans dominate; malformed-block lookahead may rescan, sorting is O(F log F), and retained projections scale with total bytes.
17
- * @evidence contracts/development/implementation.md#reuse-equivalent-work Each projection serves equality, source diagnostics, metadata comparison, hashing and sample checks within this invocation; filesystem results are not cached across operations.
18
- * @evidence contracts/development/implementation.md#bound-retention-and-release-resources The call owns synchronous reads, diagnostics, reports and its projection Map until return or throw; no handles stay open and memory has no fixed cap beyond selected inputs.
19
11
  */
20
12
  export declare function verifyEvidenceMetadataRewrite(props: IEvidenceMetadataRewriteProps): IEvidenceMetadataRewriteReport;
@@ -23,19 +23,11 @@ const validateRenderedSample_1 = require("./internal/metadataRewrite/validateRen
23
23
  /**
24
24
  * Proves that a metadata-only rewrite changed only structural evidence rows.
25
25
  *
26
- * The canonical projection removes only the metadata region explicitly owned
27
- * by the operation. Complete comment ownership stops at the delimiters, while
26
+ * The canonical projection removes only the metadata region explicitly owned by
27
+ * the operation. Complete comment ownership stops at the delimiters, while
28
28
  * acknowledgement, review, and fingerprint ownership leaves the surrounding
29
29
  * evidence structure protected. Every other byte remains protected, including
30
30
  * Markdown body, sources, punctuation, BOM choice, and non-owned line endings.
31
- *
32
- * @evidence contracts/development/implementation.md#principled-implementation Validate physical file safety and strict UTF-8, compare ownership-specific byte projections, check corruption signals and bind bulk samples to changed metadata.
33
- * @evidence contracts/development/implementation.md#clear-and-simple-structure One synchronous coordinator aggregates diagnostics while grammar, byte mapping and sample checks have separate helpers.
34
- * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts BOM, authored text and unowned endings stay protected; added, removed or symlinked selected paths fail rather than becoming metadata edits.
35
- * @evidence contracts/development/common.md#meaningful-documentation The comment defines ownership boundaries and byte preservation; failure throws aggregated diagnostics and success returns hashes and sample data.
36
- * @evidence contracts/development/implementation.md#efficient-algorithms Across F files and B bytes, reads, validation, projection, hashing and token scans dominate; malformed-block lookahead may rescan, sorting is O(F log F), and retained projections scale with total bytes.
37
- * @evidence contracts/development/implementation.md#reuse-equivalent-work Each projection serves equality, source diagnostics, metadata comparison, hashing and sample checks within this invocation; filesystem results are not cached across operations.
38
- * @evidence contracts/development/implementation.md#bound-retention-and-release-resources The call owns synchronous reads, diagnostics, reports and its projection Map until return or throw; no handles stay open and memory has no fixed cap beyond selected inputs.
39
31
  */
40
32
  function verifyEvidenceMetadataRewrite(props) {
41
33
  const beforeRoot = (0, directory_1.directory)(props.beforeRoot, "beforeRoot");
@@ -1 +1 @@
1
- {"version":3,"file":"verifyEvidenceMetadataRewrite.js","sourceRoot":"","sources":["../../src/narrative/verifyEvidenceMetadataRewrite.ts"],"names":[],"mappings":";;;;;;AAAA,8DAAiC;AACjC,sDAAyB;AACzB,0DAA6B;AAQ7B,8DAA2D;AAC3D,oEAAiE;AACjE,0EAAuE;AACvE,gFAA6E;AAC7E,8DAA2D;AAC3D,oFAAiF;AACjF,8EAA2E;AAC3E,gEAA6D;AAC7D,oFAAiF;AACjF,oFAAiF;AACjF,0EAAuE;AACvE,wEAAqE;AACrE,8FAA2F;AAE3F;;;;;;;;;;;;;;;;GAgBG;AACH,uCACE,KAAoC;IAEpC,MAAM,UAAU,GAAW,IAAA,qBAAS,EAAC,KAAK,CAAC,UAAU,EAAE,YAAY,CAAC,CAAC;IACrE,MAAM,SAAS,GAAW,IAAA,qBAAS,EAAC,KAAK,CAAC,SAAS,EAAE,WAAW,CAAC,CAAC;IAClE,MAAM,SAAS,GAAqC,IAAA,qCAAiB,EACnE,KAAK,CAAC,SAAS,CAChB,CAAC;IACF,MAAM,KAAK,GAAa,IAAA,yBAAW,EAAC,UAAU,EAAE,SAAS,EAAE,KAAK,CAAC,K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AAC;IACpE,MAAM,IAAI,GAAY,KAAK,CAAC,IAAI,KAAK,IAAI,IAAI,YAAY,CAAC,MAAM,GAAG,CAAC,CAAC;IACrE,MAAM,cAAc,GAClB,IAAA,+CAAsB,EACpB,KAAK,CAAC,cAAc,EACpB,IAAI,EACJ,YAAY,EACZ,WAAW,EACX,WAAW,CACZ,CAAC;IAEJ,IAAI,WAAW,CAAC,MAAM,KAAK,CAAC;QAC1B,MAAM,IAAI,KAAK,CACb,mDAAmD,WAAW;aAC3D,GAAG,CAAC,CAAC,UAAkB,EAAU,EAAE,CAAC,KAAK,UAAU,EAAE,CAAC;aACtD,IAAI,CAAC,IAAI,CAAC,EAAE,CAChB,CAAC;IACJ,OAAO;QACL,SAAS;QACT,IAAI;QACJ,KAAK,EAAE,MAAM;QACb,GAAG,CAAC,cAAc,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,cAAc,EAAE,CAAC;KAC5D,CAAC;AACJ,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@automovie/evidence",
3
- "version": "0.3.3",
3
+ "version": "0.4.0",
4
4
  "description": "Evidence configuration and optional narrative lifecycle validation for AutoMovie productions",
5
5
  "engines": {
6
6
  "node": ">=22.23.2"
@@ -38,14 +38,15 @@
38
38
  "access": "public"
39
39
  },
40
40
  "dependencies": {
41
- "@wrtnlabs/evidence": "^0.8.2"
41
+ "@babel/parser": "7.29.7",
42
+ "@wrtnlabs/evidence": "^0.11.1"
42
43
  },
43
44
  "devDependencies": {
44
- "@ttsc/evidence": "^0.37.1",
45
- "@ttsc/lint": "^0.37.1",
45
+ "@ttsc/evidence": "^0.38.1",
46
+ "@ttsc/lint": "^0.38.1",
46
47
  "@types/node": "^22.19.17",
47
48
  "rimraf": "^6.0.1",
48
- "ttsc": "^0.37.1",
49
+ "ttsc": "^0.38.1",
49
50
  "typescript": "^7.0.2"
50
51
  },
51
52
  "scripts": {
@@ -2,40 +2,47 @@
2
2
  * Production-specific development contracts a commissioned film turns on.
3
3
  *
4
4
  * Each stage selects the exported declarations of its source folders against
5
- * one checklist under `contracts/development/` of the shared skills tree, answered in
6
- * their doc comments: entities in `src/entities/` answer `entities.md`, laws,
7
- * interactions and consequences in `src/laws/`, `src/interactions/` and
8
- * `src/consequences/` answer `behaviors.md`, a law naming the study it
9
- * follows in its answer, and scenes and films in `src/composition/` answer `composition.md`, scenes
10
- * citing the screenplay scene file or the sections and beats of it they
11
- * realize and films citing the scene files they order. An omitted stage stays
12
- * `"disabled"`, so ordinary coding and narrative-only work owe none of them.
13
- *
14
- * @evidence contracts/development/design.md#principled-representation One stage per contract mirrors the scaffold's development contracts, so a commission enables exactly the duties its code can establish.
15
- * @evidence contracts/development/design.md#minimal-and-owned-surface Three optional fields with the narrative stage vocabulary; folders, populations and references belong to the claim factory.
16
- * @evidence contracts/development/design.md#prohibited-design-shortcuts No stage is implied by file presence; an absent field is disabled.
17
- * @evidence contracts/development/common.md#meaningful-documentation The comment names each stage's respondents, the scene and film citations and the disabled default.
5
+ * checklists under `contracts/development/` of the shared skills tree, answered
6
+ * in their doc comments: entities in `src/entities/` answer `entities.md`,
7
+ * laws, interactions and consequences in `src/laws/`, `src/interactions/` and
8
+ * `src/consequences/` answer `behaviors.md`, a law naming the study it follows
9
+ * in its answer, scenes in `src/composition/` answer `composition.md`, citing
10
+ * the screenplay scene file or the sections and beats of it they realize,
11
+ * screenplay films answer `films.md`, citing the scene files they order, and a
12
+ * separately selected catalog answers `catalog.md`. Ordinary coding and
13
+ * narrative-only work leave development stages disabled.
18
14
  */
19
15
  export interface IAutoMovieDevelopmentProps {
20
16
  /**
21
17
  * Types, classes, functions and methods under `src/entities/` answer
22
- * `contracts/development/entities.md`.
18
+ * `contracts/development/entities.md`. Submitting entities or composition on
19
+ * a narrative route also connects entity types to its subject records.
23
20
  */
24
21
  entities?: "disabled" | "evidence";
25
22
 
26
23
  /**
27
24
  * Functions and methods under `src/laws/`, `src/interactions/` and
28
- * `src/consequences/` answer `contracts/development/behaviors.md`. A law
29
- * names the study it follows in its answer; no study citation is required.
25
+ * `src/consequences/` answer `contracts/development/behaviors.md`. Cite a
26
+ * skilled behavior's study passage in its studied laws answer.
30
27
  */
31
28
  behaviors?: "disabled" | "evidence";
32
29
 
33
30
  /**
34
31
  * Functions and methods under `src/composition/scenes/` answer
35
- * `contracts/development/composition.md` and cite a screenplay scene file
36
- * or its sections and beats, every section and beat of which must be cited;
37
- * those under `src/composition/films/` answer it and cite the scene files
38
- * they order, every one of which must belong to a film.
32
+ * `contracts/development/composition.md` and cite a screenplay scene file or
33
+ * its sections and beats, every section and beat of which must be cited;
34
+ * those under `src/composition/films/` answer
35
+ * `contracts/development/films.md` and cite the scene files they order, every
36
+ * one of which must belong to a film. Catalog files have their own contract.
39
37
  */
40
38
  composition?: "disabled" | "evidence";
39
+
40
+ /**
41
+ * Case functions and the catalog film answer
42
+ * `contracts/development/catalog.md`. The stage requires case sources, the
43
+ * catalog film and its acceptance record. Omission keeps an existing catalog
44
+ * selected under composition Evidence. Use `"disabled"` to clear that
45
+ * selection explicitly.
46
+ */
47
+ catalog?: "disabled" | "evidence";
41
48
  }
@@ -4,14 +4,7 @@ import type { IAutoMovieDevelopmentProps } from "./IAutoMovieDevelopmentProps";
4
4
  import type { IAutoMovieNarrativeProps } from "./IAutoMovieNarrativeProps";
5
5
  import type { IAutoMovieNoNarrativeProps } from "./IAutoMovieNoNarrativeProps";
6
6
 
7
- /**
8
- * Configures a project's engineering evidence and optional narrative workflow.
9
- *
10
- * @evidence contracts/development/design.md#principled-representation The absolute project location anchors the production's own contracts and an optional skills directory, absolute or relative to that location, anchors the bundled shared ones; native claims configure engineering while an explicit narrative route adds creative relationships and independent-review structure, and mode none adds only the instruction-to-code relation.
11
- * @evidence contracts/development/design.md#minimal-and-owned-surface One object contains the two contract locations, native engineering claims and optional narrative choices, a route with disabled stage defaults or none.
12
- * @evidence contracts/development/design.md#prohibited-design-shortcuts No narrative mode is inferred from existing files or imposed on ordinary coding and standalone assets, and no workspace is inferred from the filesystem: a shared tree elsewhere is named explicitly.
13
- * @evidence contracts/development/common.md#meaningful-documentation Members state path ownership, the shared tree's default, that supplied claims add to the engineering defaults, and narrative opt-in behavior.
14
- */
7
+ /** Configures a project's engineering evidence and optional narrative workflow. */
15
8
  export interface IAutoMovieEvidenceConfigProps {
16
9
  /** Absolute project directory containing the production-owned contracts. */
17
10
  location: string;
@@ -20,13 +13,12 @@ export interface IAutoMovieEvidenceConfigProps {
20
13
  * Directory of the shared `.agents/skills` tree holding the bundled
21
14
  * contracts, absolute or relative to `location`.
22
15
  *
23
- * The engineering and development checklists (`contracts/development/**`)
24
- * and the shared story contracts (`contracts/story/shared/**`) resolve here.
25
- * The production's own `work/**` and `language/**` contracts always resolve
26
- * under `<location>/docs/contracts`, never here. A workspace
27
- * production passes the workspace root's tree; a standalone production omits
28
- * it. Citation addresses are the same either way; only reference roots
29
- * change.
16
+ * The engineering and development checklists (`contracts/development/**`) and
17
+ * the shared story contracts (`contracts/story/**`) resolve here. The
18
+ * production's own `work/**` and `language/**` contracts always resolve under
19
+ * `<location>/docs/contracts`, never here. A workspace production passes the
20
+ * workspace root's tree; a standalone production omits it. Citation addresses
21
+ * are the same either way; only reference roots change.
30
22
  *
31
23
  * @default path.join(location, ".agents", "skills")
32
24
  */
@@ -35,12 +27,21 @@ export interface IAutoMovieEvidenceConfigProps {
35
27
  /** Native claims added to the default source and test engineering claims. */
36
28
  claims?: IEvidenceClaim[];
37
29
 
38
- /** Omit for ordinary coding and standalone assets; provide a route for video writing, or mode none for a screenplay no narrative pass writes. */
30
+ /**
31
+ * Omit for ordinary coding and standalone assets; provide a route for video
32
+ * writing, or mode none for a screenplay no narrative pass writes.
33
+ */
39
34
  narrative?: IAutoMovieNarrativeProps | IAutoMovieNoNarrativeProps;
40
35
 
41
- /** Entity, behavior and composition development contracts; omitted stages stay disabled. */
36
+ /**
37
+ * Selects development contracts for entities, behaviors, composition and a
38
+ * separate review catalog.
39
+ */
42
40
  development?: IAutoMovieDevelopmentProps;
43
41
 
44
- /** Research studies answer the story research principles when `"evidence"`; disabled by default. */
42
+ /**
43
+ * Overrides research selection. By default a short selects all studies once
44
+ * one exists beyond the index. Other routes leave research disabled.
45
+ */
45
46
  research?: "disabled" | "evidence";
46
47
  }
@@ -4,18 +4,20 @@ import type { IProductionConstruction } from "./narrative/IProductionConstructio
4
4
  import type { NarrativeScope } from "./narrative/NarrativeScope";
5
5
 
6
6
  /**
7
- * Opts into narrative evidence using native claims and selected authored stages.
8
- *
9
- * @evidence contracts/development/design.md#principled-representation Mode chooses the actual layers; omitted stages remain disabled drafts, and omitted scope selects the complete work.
10
- * @evidence contracts/development/design.md#minimal-and-owned-surface Narrative options extend the engineering configuration without a parallel claim-owner representation.
11
- * @evidence contracts/development/design.md#prohibited-design-shortcuts Additional claims use the native Evidence shape and preserve their own selectors, references and review settings.
12
- * @evidence contracts/development/common.md#meaningful-documentation Fields define the route, stage defaults, authored scope and ordinary additional claims.
7
+ * Opts into narrative evidence using native claims and selected authored
8
+ * stages.
13
9
  */
14
10
  export interface IAutoMovieNarrativeProps {
15
- /** Long retains four layers; short writes its brief canon, then the screenplay, with no treatments, scripts or outline. */
11
+ /**
12
+ * Long retains four layers; short writes its brief canon, then the
13
+ * screenplay, with no treatments, scripts or outline.
14
+ */
16
15
  mode: "long" | "short";
17
16
 
18
- /** Unspecified layers are disabled drafts; an omitted outline follows settings. */
17
+ /**
18
+ * Unspecified layers are disabled drafts; an omitted outline follows
19
+ * settings.
20
+ */
19
21
  construction?: Partial<IProductionConstruction>;
20
22
 
21
23
  /** Defaults to the complete work; a pilot must identify its exact first part. */
@@ -3,14 +3,12 @@ import type { IEvidenceClaim } from "@wrtnlabs/evidence";
3
3
  /**
4
4
  * Declares that no narrative layer is checked, for a screenplay no narrative
5
5
  * pass writes.
6
- *
7
- * @evidence contracts/development/design.md#principled-representation The choice is named by its own mode rather than left to an omitted option, and with an enabled composition stage the code then realizes every instruction section that no narrative layer cites.
8
- * @evidence contracts/development/design.md#minimal-and-owned-surface The mode and additional native claims are the only members; layer stages and scope belong to the narrative routes.
9
- * @evidence contracts/development/design.md#prohibited-design-shortcuts No stage or scope field exists, so none can be written and silently ignored.
10
- * @evidence contracts/development/common.md#meaningful-documentation The comment states when the choice applies and what each member does.
11
6
  */
12
7
  export interface IAutoMovieNoNarrativeProps {
13
- /** Checks no narrative layer; with an enabled composition stage, the composition and entities must realize every instruction section instead. */
8
+ /**
9
+ * Checks no narrative layer; with an enabled composition stage, the
10
+ * composition and entities must realize every instruction section instead.
11
+ */
14
12
  mode: "none";
15
13
 
16
14
  /** Additional native claims for the production's actual respondents. */