@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
@@ -11,32 +11,22 @@ import { SKILLS_ROOT } from "./internal/SKILLS_ROOT";
11
11
  * Creates the claims of the enabled production-specific development contracts.
12
12
  *
13
13
  * Each enabled stage selects the exported declarations of its source folders
14
- * and requires each to answer every item of
15
- * `contracts/development/<stage>.md` in its doc comment, read from the skills
16
- * tree at `props.skills`, by default the production's own `.agents/skills`.
17
- * Entities answer with their types, classes, functions and methods, because an
18
- * entity is a class whose methods are its capabilities. Behaviors (laws,
19
- * interactions and consequences) answer their checklist alone: most only
20
- * compose installed actions and follow no study, and a study can serve the
21
- * screenplay without any code, so neither direction of a study relation
22
- * holds for every production. A law names the study it follows in its
23
- * answer, which review judges.
24
- * Scenes cite the screenplay scene file, or the sections and beats of it they
25
- * realize, and every H2 section and H3 beat must be realized; films cite each
26
- * scene file they order, and every scene file must belong to a film. With
27
- * `instructions`, the composition and entities must also realize every
28
- * instruction section, which no narrative layer then cites, with no
29
- * exclusion. Entities answer their checklist alone too, because their
30
- * settings citations are judged by review rather than required for every
31
- * settings heading.
32
- *
33
- * @evidence contracts/development/implementation.md#principled-implementation Native TypeScript claims carry the checklist, and a second Markdown reference uses native target coverage to make the screenplay-section-and-beat-to-scene and scene-file-to-film relations mechanical, while entities and behaviors carry the checklist alone; `instructions` adds the instruction-to-code relation with the same coverage, no checklist and no exclusion, because a user requirement cannot be waived by its realizer.
34
- * @evidence contracts/development/implementation.md#clear-and-simple-structure One table maps each checklist population to its stage, folders, symbol kinds and cited population, and the one instruction relation, which has no checklist, follows it; disabled stages produce no claim, and the one props object carries the stages, the instruction switch and where the checklists are read.
35
- * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Source folders are the scaffold layout's documented locations, not fixture paths; nothing is inferred from file presence.
36
- * @evidence contracts/development/common.md#meaningful-documentation The comment states each stage's respondents, the relation it enforces and which skills tree holds the checklists; the `skills` member states its form and default, and `instructions` when the code must realize every instruction section.
37
- * @evidence contracts/development/implementation.md#efficient-algorithms Builds at most five fixed-size claim trees in constant time; it performs no discovery or file I/O.
38
- * @evidence contracts/development/implementation.md#reuse-equivalent-work Fresh objects are returned so one configuration's edits cannot reach another; there is no expensive shared work.
39
- * @evidence contracts/development/implementation.md#bound-retention-and-release-resources The caller owns the returned claims; nothing is retained.
14
+ * and requires each to answer every item of its checklist under
15
+ * `contracts/development/` in its doc comment, read from the skills tree at
16
+ * `props.skills`, by default the production's own `.agents/skills`. Entities
17
+ * answer `entities.md` with their types, classes, functions and methods,
18
+ * because an entity is a class whose methods are its capabilities. Behaviors
19
+ * (laws, interactions and consequences) answer `behaviors.md`. For skilled
20
+ * practice, the studied laws answer cites the observations used to coordinate
21
+ * even installed actions. A study can also serve the screenplay alone. Scenes
22
+ * answer `composition.md` and cite the screenplay scene file, or the sections
23
+ * and beats of it they realize, and every H2 section and H3 beat must be
24
+ * realized; screenplay films answer `films.md` and cite each scene file they
25
+ * order, and every scene file must belong to a film. A selected catalog's cases
26
+ * and review film answer `catalog.md`. With `instructions`, the composition and
27
+ * entities must also realize every instruction section, which no narrative
28
+ * layer then cites, with no exclusion. The public configuration adds coverage
29
+ * of the route's subject records when entities or composition are submitted.
40
30
  */
41
31
  export function createDevelopmentContractClaims(
42
32
  props: IAutoMovieDevelopmentProps & {
@@ -62,6 +52,7 @@ export function createDevelopmentContractClaims(
62
52
  const populations: {
63
53
  stage: keyof IAutoMovieDevelopmentProps;
64
54
  name: string;
55
+ checklist: string;
65
56
  files: string[];
66
57
  symbol: EvidenceProgrammingSymbol[];
67
58
  cited?: IEvidenceMarkdownReference;
@@ -69,12 +60,14 @@ export function createDevelopmentContractClaims(
69
60
  {
70
61
  stage: "entities",
71
62
  name: "entities",
63
+ checklist: "entities",
72
64
  files: ["src/entities/**/*.ts"],
73
65
  symbol: ["type", "function"],
74
66
  },
75
67
  {
76
68
  stage: "behaviors",
77
69
  name: "behaviors",
70
+ checklist: "behaviors",
78
71
  files: [
79
72
  "src/laws/**/*.ts",
80
73
  "src/interactions/**/*.ts",
@@ -85,17 +78,35 @@ export function createDevelopmentContractClaims(
85
78
  {
86
79
  stage: "composition",
87
80
  name: "scenes",
88
- files: ["src/composition/scenes/**/*.ts"],
81
+ checklist: "composition",
82
+ files: [
83
+ "src/composition/scenes/**/*.ts",
84
+ "!src/composition/scenes/catalog/**",
85
+ ],
89
86
  symbol: ["function"],
90
87
  cited: { type: "markdown", files: screenplay, symbol: ["h2", "h3"] },
91
88
  },
92
89
  {
93
90
  stage: "composition",
94
91
  name: "films",
95
- files: ["src/composition/films/**/*.ts"],
92
+ checklist: "films",
93
+ files: [
94
+ "src/composition/films/**/*.ts",
95
+ "!src/composition/films/catalog.ts",
96
+ ],
96
97
  symbol: ["function"],
97
98
  cited: { type: "markdown", files: screenplay, symbol: "file" },
98
99
  },
100
+ {
101
+ stage: "catalog",
102
+ name: "review catalog",
103
+ checklist: "catalog",
104
+ files: [
105
+ "src/composition/scenes/catalog/**/*.ts",
106
+ "src/composition/films/catalog.ts",
107
+ ],
108
+ symbol: ["function"],
109
+ },
99
110
  ];
100
111
  const claims: IEvidenceClaim[] = populations
101
112
  .filter((entry): boolean => props[entry.stage] === "evidence")
@@ -109,7 +120,7 @@ export function createDevelopmentContractClaims(
109
120
  {
110
121
  type: "markdown",
111
122
  root: props.skills ?? SKILLS_ROOT,
112
- files: [`contracts/development/${entry.stage}.md`],
123
+ files: [`contracts/development/${entry.checklist}.md`],
113
124
  symbol: "h2",
114
125
  checklist: true,
115
126
  },
@@ -121,7 +132,12 @@ export function createDevelopmentContractClaims(
121
132
  claims.push({
122
133
  name: "the code realizes every instruction section",
123
134
  type: "typescript",
124
- files: ["src/composition/**/*.ts", "src/entities/**/*.ts"],
135
+ files: [
136
+ "src/composition/**/*.ts",
137
+ "!src/composition/scenes/catalog/**",
138
+ "!src/composition/films/catalog.ts",
139
+ "src/entities/**/*.ts",
140
+ ],
125
141
  symbol: ["type", "function"],
126
142
  reference: {
127
143
  type: "markdown",
@@ -7,30 +7,25 @@ import { SKILLS_ROOT } from "./internal/SKILLS_ROOT";
7
7
  *
8
8
  * Use the result when extending, rather than replacing, the default engineering
9
9
  * population. Every exported source declaration and test answers the common
10
- * checklist; exported types, interfaces and classes also answer the design
11
- * checklist, exported functions and class methods the implementation checklist,
12
- * and exported test functions the testing checklist. The paths are read from
13
- * the skills tree at `skills`, by default the production's own
14
- * `.agents/skills`; a workspace production names the shared tree at the
15
- * workspace root instead, such as `../../../.agents/skills`. By default the
16
- * paths are the scaffold's
10
+ * checklist, except scenes, films and catalog cases under `src/composition/`,
11
+ * which realize a screenplay rather than serve callers and document that
12
+ * realization under their own composition, films and catalog contracts;
13
+ * exported types, interfaces and classes also answer the design checklist,
14
+ * exported functions and class methods the implementation checklist, and
15
+ * exported test functions the testing checklist. The paths are read from the
16
+ * skills tree at `skills`, by default the production's own `.agents/skills`; a
17
+ * workspace production names the shared tree at the workspace root instead,
18
+ * such as `../../../.agents/skills`. By default the paths are the scaffold's
17
19
  * `contracts/development/{common,design,implementation,testing}.md`.
18
20
  *
19
21
  * Each claim selects exactly the declarations that owe its checklists, so tests
20
22
  * answer common and testing in one claim, while source types and functions,
21
23
  * which owe different checklists, share common through a separate claim; a
22
- * claim reports an answer on a declaration outside its population as unhosted. A production created before that layout passes its
23
- * own paths instead, such as `common: null` with one `contracts/common.md` for
24
- * both design and implementation, which then selects types and functions in a
25
- * single claim as before.
26
- *
27
- * @evidence contracts/development/implementation.md#principled-implementation Native TypeScript symbol kinds separate declarations that describe a shape (type) from those that compute (function); one claim per population keeps every acknowledgement on a host its claim selects, and equal design and implementation paths collapse into one claim for the same reason.
28
- * @evidence contracts/development/implementation.md#clear-and-simple-structure This factory owns only the default engineering population, independent of narrative graph construction; the optional paths and skills root name the checklists without changing which declarations owe them.
29
- * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts The documented src/test conventions are production defaults, not fixture paths or tailored expected answers; a supplied path replaces only its checklist file, a supplied skills root moves only where they are read, and a null common path removes only the shared claim.
30
- * @evidence contracts/development/common.md#meaningful-documentation The comment explains which declarations answer which checklist, how claims follow their populations, fresh ownership, extension, the workspace skills root and the legacy form; each option states its role.
31
- * @evidence contracts/development/implementation.md#efficient-algorithms Allocates at most four fixed-size claim trees in constant time and space; it performs no discovery or file I/O.
32
- * @evidence contracts/development/implementation.md#reuse-equivalent-work Fresh objects are intentional so editing one configuration cannot contaminate another; there is no expensive shared work to cache.
33
- * @evidence contracts/development/implementation.md#bound-retention-and-release-resources The caller owns the returned claim trees; this function retains no references, handles, or tasks.
24
+ * claim reports an answer on a declaration outside its population as unhosted.
25
+ * A production created before that layout passes its own paths instead, such as
26
+ * `common: null` with one `contracts/common.md` for both design and
27
+ * implementation, which then selects types and functions in a single claim as
28
+ * before.
34
29
  */
35
30
  export function createEngineeringClaims(
36
31
  props: {
@@ -53,8 +48,8 @@ export function createEngineeringClaims(
53
48
  tests?: string;
54
49
 
55
50
  /**
56
- * Reference root of the skills tree holding the checklists, relative to
57
- * the directory of `evidence.config.ts` with `/` separators; `..` segments
51
+ * Reference root of the skills tree holding the checklists, relative to the
52
+ * directory of `evidence.config.ts` with `/` separators; `..` segments
58
53
  * reach a workspace's shared tree.
59
54
  *
60
55
  * @default ".agents/skills"
@@ -117,7 +112,7 @@ export function createEngineeringClaims(
117
112
  {
118
113
  name: "production documentation",
119
114
  type: "typescript",
120
- files: ["src/**/*.ts"],
115
+ files: ["src/**/*.ts", "!src/composition/**"],
121
116
  symbol: ["type", "function"],
122
117
  reference: checklist(common),
123
118
  } satisfies IEvidenceClaim,
@@ -6,8 +6,10 @@ import type { IAutoMovieEvidenceConfigProps } from "./IAutoMovieEvidenceConfigPr
6
6
  import { createDevelopmentContractClaims } from "./createDevelopmentContractClaims";
7
7
  import { createEngineeringClaims } from "./createEngineeringClaims";
8
8
  import { createResearchClaims } from "./createResearchClaims";
9
+ import { assertFilmCatalogLayout } from "./internal/assertFilmCatalogLayout";
9
10
  import { assertProductionContractLayout } from "./internal/assertProductionContractLayout";
10
11
  import { createReferenceRoot } from "./internal/createReferenceRoot";
12
+ import { hasMatchingFile } from "./internal/hasMatchingFile";
11
13
  import { resolveSkillsDirectory } from "./internal/resolveSkillsDirectory";
12
14
  import { createProductionConfig } from "./narrative/createProductionConfig";
13
15
 
@@ -16,17 +18,13 @@ import { createProductionConfig } from "./narrative/createProductionConfig";
16
18
  *
17
19
  * The shared skills tree is resolved once: its absolute directory goes to the
18
20
  * narrative factories, which keep production-owned work and language contracts
19
- * under `<location>/docs/contracts`, and its root relative to `location` goes to the default
20
- * engineering, development and research claims. Caller-supplied `claims` are
21
- * added after the defaults as written, so they name their own root.
22
- *
23
- * @evidence contracts/development/implementation.md#principled-implementation An absolute project location and a resolved absolute shared skills tree anchor the native engineering defaults and optional narrative selectors; native Evidence resolves the relative root against the configuration directory, the location, and caller-supplied claims are cloned before composition.
24
- * @evidence contracts/development/implementation.md#clear-and-simple-structure One options object selects engineering alone, engineering whose code realizes every instruction section when narrative mode is none and `docs/instructions` exists, or delegates narrative claim composition to createProductionConfig; resolveSkillsDirectory and createReferenceRoot own the shared-tree default, validation and spelling.
25
- * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts The returned object is an ordinary native configuration; this function neither evaluates diagnostics nor grants creative approval, an omitted skills tree yields exactly the standalone roots, and assertProductionContractLayout refuses a production still keeping its own contracts in the retired skills location rather than letting their duties vanish.
26
- * @evidence contracts/development/implementation.md#efficient-algorithms Two legacy-layout existence probes precede work, and mode none adds one instruction-directory probe; engineering creation allocates fixed defaults and clones supplied claims after them; narrative creation additionally discovers current contract files and expands a fixed number of layer families.
27
- * @evidence contracts/development/implementation.md#reuse-equivalent-work The shared tree is resolved once per call and reused by every factory; the layout guard repeats its two probes inside a narrative build so createProductionConfig called directly stays guarded; each call owns fresh option and claim copies, and filesystem-dependent narrative composition is not cached across calls.
28
- * @evidence contracts/development/implementation.md#bound-retention-and-release-resources The caller owns the returned configuration; this function retains no registry, native process or open resource.
29
- * @evidence contracts/development/common.md#meaningful-documentation The comment states how the shared tree reaches each factory and that supplied claims keep their own root; the input types explain routes, disabled stage defaults and additional native claims.
21
+ * under `<location>/docs/contracts`, and its root relative to `location` goes
22
+ * to the default engineering, development and research claims. Caller-supplied
23
+ * `claims` are added after the defaults as written, so they name their own
24
+ * root. A short narrative includes its studies by default once one exists.
25
+ * Catalog selection checks the three catalog inputs before building claims.
26
+ * Ordinary film composition can be checked directly against the screenplay. On
27
+ * a story route the production's entity types cite their subject records.
30
28
  */
31
29
  export function createEvidenceConfig(
32
30
  props: IAutoMovieEvidenceConfigProps,
@@ -36,6 +34,14 @@ export function createEvidenceConfig(
36
34
  "Evidence location must be an absolute project directory, such as import.meta.dirname.",
37
35
  );
38
36
  assertProductionContractLayout(props.location);
37
+ const catalog: boolean =
38
+ (props.development?.catalog === "evidence" ||
39
+ (props.development?.catalog === undefined &&
40
+ props.development?.composition === "evidence")) &&
41
+ assertFilmCatalogLayout(
42
+ props.location,
43
+ props.development?.catalog === "evidence",
44
+ );
39
45
  const skills: string = resolveSkillsDirectory(props);
40
46
  const root: string = createReferenceRoot(props.location, skills);
41
47
 
@@ -46,13 +52,40 @@ export function createEvidenceConfig(
46
52
  claims.push(
47
53
  ...createDevelopmentContractClaims({
48
54
  ...props.development,
55
+ catalog: catalog ? "evidence" : "disabled",
49
56
  skills: root,
50
57
  instructions:
51
58
  props.narrative?.mode === "none" &&
52
59
  fs.existsSync(path.join(props.location, "docs", "instructions")),
53
60
  }),
54
61
  );
55
- if (props.research === "evidence")
62
+ if (
63
+ (props.development?.entities === "evidence" ||
64
+ props.development?.composition === "evidence") &&
65
+ (props.narrative?.mode === "short" || props.narrative?.mode === "long")
66
+ ) {
67
+ const layer: string =
68
+ props.narrative.mode === "short" ? "brief" : "settings";
69
+ const subjects: string[] = ["cast", "crowds", "props", "sets"].map(
70
+ (domain: string): string => `docs/body/${layer}/${domain}/*.md`,
71
+ );
72
+ if (hasMatchingFile(props.location, subjects, []))
73
+ claims.push({
74
+ name: `production entities cite ${layer} subjects`,
75
+ type: "typescript",
76
+ files: ["src/entities/**/*.ts"],
77
+ symbol: "type",
78
+ reference: { type: "markdown", files: subjects, symbol: "file" },
79
+ });
80
+ }
81
+ if (
82
+ props.research === "evidence" ||
83
+ (props.research === undefined &&
84
+ props.narrative?.mode === "short" &&
85
+ hasMatchingFile(props.location, "docs/research/**/*.md", [
86
+ "docs/research/index.md",
87
+ ]))
88
+ )
56
89
  claims.push(...createResearchClaims({ skills: root }));
57
90
  if (props.narrative === undefined) return { severity: "error", claims };
58
91
 
@@ -8,20 +8,12 @@ import { STORY_CONTRACTS } from "./internal/STORY_CONTRACTS";
8
8
  * principles.
9
9
  *
10
10
  * Each study in `docs/research/`, apart from its index, answers every item of
11
- * `contracts/story/shared/principles/research.md`, read from the skills tree at
11
+ * `contracts/story/principles/research.md`, read from the skills tree at
12
12
  * `skills`, by default the production's own `.agents/skills`. The citation
13
- * address, `shared/principles/research.md`, is the same wherever that tree
14
- * lives. Like the other story layers, the answers live apart from the study,
15
- * in `docs/evidence/construction/files/research/`, under an H1 naming the
16
- * study's path, so the study stays a plain synthesis its readers use.
17
- *
18
- * @evidence contracts/development/implementation.md#principled-implementation A native Markdown file claim with detached evidence files keeps the study's text free of answers while each study still owes every research item; the reference root joins the given skills root with the installed `contracts/story` layout, which native Evidence resolves against the configuration directory.
19
- * @evidence contracts/development/implementation.md#clear-and-simple-structure One claim with fixed study and answer locations; the caller decides whether to enable it and where the shared skills tree is.
20
- * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts The study, index and answer paths are the scaffold layout's documented locations, not fixture paths; the default root is the standalone layout.
21
- * @evidence contracts/development/implementation.md#efficient-algorithms Builds one fixed-size claim tree in constant time; it performs no discovery or file I/O.
22
- * @evidence contracts/development/implementation.md#reuse-equivalent-work A fresh object is returned so one configuration's edits cannot reach another.
23
- * @evidence contracts/development/implementation.md#bound-retention-and-release-resources The caller owns the returned claim; nothing is retained.
24
- * @evidence contracts/development/common.md#meaningful-documentation The comment states the respondents, the contract, which tree it is read from and where the answers live; the option states its form and default.
13
+ * address, `principles/research.md`, is the same wherever that tree lives. Like
14
+ * the other story layers, the answers live apart from the study, in
15
+ * `docs/evidence/construction/files/research/`, under an H1 naming the study's
16
+ * path, so the study stays a plain synthesis its readers use.
25
17
  */
26
18
  export function createResearchClaims(
27
19
  props: {
@@ -45,7 +37,7 @@ export function createResearchClaims(
45
37
  reference: {
46
38
  type: "markdown",
47
39
  root: `${props.skills ?? SKILLS_ROOT}/${STORY_CONTRACTS}`,
48
- files: ["shared/principles/research.md"],
40
+ files: ["principles/research.md"],
49
41
  symbol: "h2",
50
42
  checklist: true,
51
43
  },
@@ -1,18 +1,17 @@
1
1
  /**
2
- * Locates the two contract owners one production's contracts come from: the production itself and the shared skills tree.
2
+ * Locates the two contract owners one production's contracts come from: the
3
+ * production itself and the shared skills tree.
3
4
  *
4
5
  * The production's own `work` and `language` contracts always live under
5
6
  * `<location>/docs/contracts`. The bundled shared contracts live under
6
7
  * `skills`, which a workspace points at its one shared tree; a standalone
7
8
  * production omits it and keeps them under its own `.agents/skills`.
8
- *
9
- * @evidence contracts/development/design.md#principled-representation Two absolute directories represent the two owners a contract can have, the production and the shared bundle; the optional member encodes the standalone layout, where the shared bundle sits under the production's own `.agents/skills`.
10
- * @evidence contracts/development/design.md#minimal-and-owned-surface Only the two directories that decide where a contract resolves; route, stages and claims stay with the configuration types that carry this shape.
11
- * @evidence contracts/development/design.md#prohibited-design-shortcuts No flag says "workspace": the owner is the directory itself, and an omitted `skills` is the standalone default rather than a guessed location.
12
- * @evidence contracts/development/common.md#meaningful-documentation The comment states which families each directory owns and the omitted default; the members state they are absolute.
13
9
  */
14
10
  export interface IContractLocation {
15
- /** Absolute production directory whose `docs/contracts` holds its `work` and `language` contracts. */
11
+ /**
12
+ * Absolute production directory whose `docs/contracts` holds its `work` and
13
+ * `language` contracts.
14
+ */
16
15
  location: string;
17
16
 
18
17
  /**
@@ -8,12 +8,19 @@
8
8
  * rather than in a skills tree, so a workspace's shared `.agents/skills` holds
9
9
  * only bundled contracts.
10
10
  *
11
- * Principled implementation: The scaffold places production-owned contracts under `docs/contracts`; the portable spelling is used both as a reference root and, split on `/`, as a filesystem path under the production location.
12
- * Clear and simple design: One constant supplies every production-owned root: local language references, the discovery claim over `work/**`, and the work-local package claims.
13
- * Prohibited implementation shortcuts: The value is the installed layout, not a fixture path; no fallback to the retired `.agents/skills/contracts/story` location exists, which assertProductionContractLayout refuses instead.
14
- * Meaningful documentation: The prose states which families live here, the address-to-file mapping and why they are outside the skills tree.
15
- * Efficient algorithms: A constant string with no computation.
16
- * Reuse equivalent work: Every consumer reads the same immutable string.
17
- * Bound retention and release resources: One fixed string for the module lifetime.
11
+ * Principled implementation: The scaffold places production-owned contracts
12
+ * under `docs/contracts`; the portable spelling is used both as a reference
13
+ * root and, split on `/`, as a filesystem path under the production location.
14
+ * Clear and simple design: One constant supplies every production-owned root:
15
+ * local language references, the discovery claim over `work/**`, and the
16
+ * work-local package claims. Prohibited implementation shortcuts: The value is
17
+ * the installed layout, not a fixture path; no fallback to the retired
18
+ * `.agents/skills/contracts/story` location exists, which
19
+ * assertProductionContractLayout refuses instead. Meaningful documentation: The
20
+ * prose states which families live here, the address-to-file mapping and why
21
+ * they are outside the skills tree. Efficient algorithms: A constant string
22
+ * with no computation. Reuse equivalent work: Every consumer reads the same
23
+ * immutable string. Bound retention and release resources: One fixed string for
24
+ * the module lifetime.
18
25
  */
19
26
  export const PRODUCTION_CONTRACTS: string = "docs/contracts";
@@ -8,12 +8,18 @@
8
8
  * `contracts/story/{work,language}` is the retired location
9
9
  * assertProductionContractLayout refuses.
10
10
  *
11
- * Principled implementation: The scaffold installs `.agents/skills` at a production's root; this spelling is that layout contract, written with portable separators because Evidence reference roots are portable relative paths.
12
- * Clear and simple design: One constant supplies the default shared tree, the default engineering, development and research reference roots, and the retired location the layout guard probes.
13
- * Prohibited implementation shortcuts: The value is the installed layout, not a fixture or host path; a workspace overrides the shared tree through `skills`.
14
- * Meaningful documentation: The prose states which contracts live here in standalone and workspace productions.
15
- * Efficient algorithms: A constant string with no computation.
16
- * Reuse equivalent work: Every consumer reads the same immutable string.
17
- * Bound retention and release resources: One fixed string for the module lifetime.
11
+ * Principled implementation: The scaffold installs `.agents/skills` at a
12
+ * production's root; this spelling is that layout contract, written with
13
+ * portable separators because Evidence reference roots are portable relative
14
+ * paths. Clear and simple design: One constant supplies the default shared
15
+ * tree, the default engineering, development and research reference roots, and
16
+ * the retired location the layout guard probes. Prohibited implementation
17
+ * shortcuts: The value is the installed layout, not a fixture or host path; a
18
+ * workspace overrides the shared tree through `skills`. Meaningful
19
+ * documentation: The prose states which contracts live here in standalone and
20
+ * workspace productions. Efficient algorithms: A constant string with no
21
+ * computation. Reuse equivalent work: Every consumer reads the same immutable
22
+ * string. Bound retention and release resources: One fixed string for the
23
+ * module lifetime.
18
24
  */
19
25
  export const SKILLS_ROOT: string = ".agents/skills";
@@ -1,16 +1,19 @@
1
1
  /**
2
2
  * Names the story contract tree inside a skills tree.
3
3
  *
4
- * Its `shared/` family ships with the scaffold's bundled skills. The `work/`
5
- * and `language/` families a production adopts live in its `docs/contracts`
4
+ * Its checklist families ship directly in this directory. The `work/` and
5
+ * `language/` families a production adopts live in its `docs/contracts`
6
6
  * instead; under a production's own skills tree they mark the retired layout.
7
7
  *
8
- * Principled implementation: The scaffold installs story contracts at `contracts/story` under a skills tree; the portable spelling joins the shared skills tree for shared contracts and the research root, and the production's own skills tree only for the retired-layout guard.
9
- * Clear and simple design: One constant serves every shared story root and the legacy guard.
10
- * Prohibited implementation shortcuts: The value is the installed layout, not a fixture path.
11
- * Meaningful documentation: The prose names the families and which tree owns each.
12
- * Efficient algorithms: A constant string with no computation.
13
- * Reuse equivalent work: Every consumer reads the same immutable string.
14
- * Bound retention and release resources: One fixed string for the module lifetime.
8
+ * Principled implementation: The scaffold installs story contracts at
9
+ * `contracts/story` under a skills tree; the portable spelling joins the shared
10
+ * skills tree for shared contracts and the research root, and the production's
11
+ * own skills tree only for the retired-layout guard. Clear and simple design:
12
+ * One constant serves every shared story root and the legacy guard. Prohibited
13
+ * implementation shortcuts: The value is the installed layout, not a fixture
14
+ * path. Meaningful documentation: The prose names the families and which tree
15
+ * owns each. Efficient algorithms: A constant string with no computation. Reuse
16
+ * equivalent work: Every consumer reads the same immutable string. Bound
17
+ * retention and release resources: One fixed string for the module lifetime.
15
18
  */
16
19
  export const STORY_CONTRACTS: string = "contracts/story";
@@ -0,0 +1,173 @@
1
+ import { parse } from "@babel/parser";
2
+ import fs from "node:fs";
3
+ import path from "node:path";
4
+
5
+ import { hasMatchingFile } from "./hasMatchingFile";
6
+
7
+ /**
8
+ * Check the inputs for a separate catalog. An explicit selection always
9
+ * requires its inputs. With composition alone, existing catalog artifacts
10
+ * retain the catalog check. The director verifies registration, playback and
11
+ * the tested conditions at the handoff.
12
+ *
13
+ * @param location Absolute production directory.
14
+ * @param required Whether the production selected the catalog explicitly.
15
+ * @returns Whether the production selected the catalog.
16
+ * @throws Error listing the missing film, record or case sources.
17
+ */
18
+ export function assertFilmCatalogLayout(
19
+ location: string,
20
+ required: boolean,
21
+ ): boolean {
22
+ const catalog: string = "src/composition/films/catalog.ts";
23
+ const record: string = "docs/acceptance/catalog.md";
24
+ const cases: string = "src/composition/scenes/catalog/**/*.ts";
25
+ const hasFilm: boolean = hasMatchingFile(location, catalog, []);
26
+ const sources: string[] = fs
27
+ .globSync(cases, { cwd: location, exclude: ["**/*.d.ts"] })
28
+ .map((file: string): string => path.join(location, file))
29
+ .filter(
30
+ (file: string): boolean =>
31
+ fs.statSync(file, { throwIfNoEntry: false })?.isFile() === true,
32
+ );
33
+ if (!required && !hasFilm && sources.length === 0) return false;
34
+
35
+ const missing: string[] = [];
36
+ if (!hasFilm || !hasCatalogFunction(path.join(location, catalog)))
37
+ missing.push(catalog);
38
+ if (!hasMatchingFile(location, record, [])) missing.push(record);
39
+ if (!sources.some(hasCatalogFunction)) missing.push(cases);
40
+ if (missing.length !== 0)
41
+ throw new Error(
42
+ `Review catalog is incomplete. Missing: ${missing.join(", ")}`,
43
+ );
44
+ return true;
45
+ }
46
+
47
+ /** Top-level declarations and publication statements in a catalog module. */
48
+ type CatalogStatement = ReturnType<typeof parse>["program"]["body"][number];
49
+
50
+ /** An expression assigned to a variable or class field. */
51
+ type CatalogExpression = NonNullable<
52
+ Extract<
53
+ CatalogStatement,
54
+ { type: "VariableDeclaration" }
55
+ >["declarations"][number]["init"]
56
+ >;
57
+
58
+ /** Checks the source-owned function surface without executing the production. */
59
+ function hasCatalogFunction(file: string): boolean {
60
+ const source: string = fs.readFileSync(file, "utf8");
61
+ let module: ReturnType<typeof parse>;
62
+ try {
63
+ module = parse(source, {
64
+ sourceType: "module",
65
+ plugins: ["typescript", "decorators-legacy"],
66
+ });
67
+ } catch {
68
+ return false;
69
+ }
70
+ return hasExportedCatalogFunction(module.program.body);
71
+ }
72
+
73
+ /** Finds a callable declaration directly exported or published by local name. */
74
+ function hasExportedCatalogFunction(statements: CatalogStatement[]): boolean {
75
+ const local: Set<string> = new Set();
76
+ const exported: Set<string> = new Set();
77
+ for (const statement of statements) {
78
+ if (statement.type === "ExportNamedDeclaration") {
79
+ if (statement.exportKind === "type" || statement.source) continue;
80
+ if (
81
+ statement.declaration &&
82
+ callableNames(statement.declaration).length !== 0
83
+ )
84
+ return true;
85
+ for (const specifier of statement.specifiers)
86
+ if (
87
+ specifier.type === "ExportSpecifier" &&
88
+ specifier.exportKind !== "type"
89
+ )
90
+ exported.add(specifier.local.name);
91
+ } else if (statement.type === "ExportDefaultDeclaration") {
92
+ const declaration: typeof statement.declaration = statement.declaration;
93
+ if (declaration.type === "Identifier") exported.add(declaration.name);
94
+ else if (
95
+ declaration.type === "FunctionDeclaration" ||
96
+ (declaration.type === "ClassDeclaration" &&
97
+ hasPublicCaseMethod(declaration)) ||
98
+ (declaration.type !== "ClassDeclaration" &&
99
+ declaration.type !== "TSDeclareFunction" &&
100
+ isCallableExpression(declaration))
101
+ )
102
+ return true;
103
+ } else {
104
+ for (const name of callableNames(statement)) local.add(name);
105
+ }
106
+ }
107
+ return [...exported].some((name: string): boolean => local.has(name));
108
+ }
109
+
110
+ /** Returns names with function implementations in a local declaration. */
111
+ function callableNames(statement: CatalogStatement): string[] {
112
+ if (statement.type === "FunctionDeclaration")
113
+ return statement.id ? [statement.id.name] : [];
114
+ if (statement.type === "ClassDeclaration")
115
+ return statement.id && !statement.declare && hasPublicCaseMethod(statement)
116
+ ? [statement.id.name]
117
+ : [];
118
+ if (statement.type === "TSModuleDeclaration")
119
+ return !statement.declare &&
120
+ statement.id.type === "Identifier" &&
121
+ statement.body?.type === "TSModuleBlock" &&
122
+ hasExportedCatalogFunction(statement.body.body)
123
+ ? [statement.id.name]
124
+ : [];
125
+ if (statement.type !== "VariableDeclaration" || statement.kind !== "const")
126
+ return [];
127
+ return statement.declarations.flatMap((binding): string[] =>
128
+ binding.id.type === "Identifier" && isCallableExpression(binding.init)
129
+ ? [binding.id.name]
130
+ : [],
131
+ );
132
+ }
133
+
134
+ /** Recognizes publicly callable methods and function-valued fields. */
135
+ function hasPublicCaseMethod(
136
+ declaration: Extract<CatalogStatement, { type: "ClassDeclaration" }>,
137
+ ): boolean {
138
+ return declaration.body.body.some((member): boolean => {
139
+ if (
140
+ (member.type !== "ClassMethod" && member.type !== "ClassProperty") ||
141
+ member.accessibility === "private" ||
142
+ member.accessibility === "protected"
143
+ )
144
+ return false;
145
+ if (member.type === "ClassMethod") return member.kind === "method";
146
+
147
+ const annotation: typeof member.typeAnnotation = member.typeAnnotation;
148
+ if (annotation?.type !== "TSTypeAnnotation")
149
+ return isCallableExpression(member.value);
150
+ let type: typeof annotation.typeAnnotation = annotation.typeAnnotation;
151
+ while (type.type === "TSParenthesizedType") type = type.typeAnnotation;
152
+ return isCallableExpression(member.value, type.type === "TSFunctionType");
153
+ });
154
+ }
155
+
156
+ /** Looks through type annotations to the attached function expression. */
157
+ function isCallableExpression(
158
+ expression: CatalogExpression | null | undefined,
159
+ allowFactory: boolean = false,
160
+ ): boolean {
161
+ while (
162
+ expression?.type === "TSAsExpression" ||
163
+ expression?.type === "TSNonNullExpression" ||
164
+ expression?.type === "TSSatisfiesExpression" ||
165
+ expression?.type === "TSTypeAssertion"
166
+ )
167
+ expression = expression.expression;
168
+ return (
169
+ expression?.type === "ArrowFunctionExpression" ||
170
+ expression?.type === "FunctionExpression" ||
171
+ (allowFactory && expression?.type === "CallExpression")
172
+ );
173
+ }