@automovie/evidence 0.0.0 → 0.2.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 (189) hide show
  1. package/README.md +13 -9
  2. package/lib/IAutoMovieDevelopmentProps.d.ts +7 -6
  3. package/lib/IAutoMovieEvidenceConfigProps.d.ts +9 -8
  4. package/lib/IAutoMovieNarrativeProps.d.ts +0 -3
  5. package/lib/IAutoMovieNoNarrativeProps.d.ts +16 -0
  6. package/lib/{narrative/IProductionLayerStages.js → IAutoMovieNoNarrativeProps.js} +1 -1
  7. package/lib/IAutoMovieNoNarrativeProps.js.map +1 -0
  8. package/lib/createDevelopmentContractClaims.d.ts +21 -11
  9. package/lib/createDevelopmentContractClaims.js +30 -13
  10. package/lib/createDevelopmentContractClaims.js.map +1 -1
  11. package/lib/createEvidenceConfig.d.ts +3 -3
  12. package/lib/createEvidenceConfig.js +19 -12
  13. package/lib/createEvidenceConfig.js.map +1 -1
  14. package/lib/index.d.ts +7 -7
  15. package/lib/index.js +1 -7
  16. package/lib/index.js.map +1 -1
  17. package/lib/internal/index.d.ts +12 -0
  18. package/lib/internal/index.js +31 -0
  19. package/lib/internal/index.js.map +1 -0
  20. package/lib/internal/resolveSkillsDirectory.d.ts +8 -9
  21. package/lib/internal/resolveSkillsDirectory.js +9 -12
  22. package/lib/internal/resolveSkillsDirectory.js.map +1 -1
  23. package/lib/narrative/IPackageChecklistClaimProps.d.ts +5 -10
  24. package/lib/narrative/IPackageContractProps.d.ts +0 -8
  25. package/lib/narrative/IPackagePopulationContractProps.d.ts +1 -9
  26. package/lib/narrative/IProductionConfigProps.d.ts +1 -10
  27. package/lib/narrative/createBriefFiles.d.ts +2 -2
  28. package/lib/narrative/createBriefFiles.js +2 -2
  29. package/lib/narrative/createNarrativeUnitFiles.d.ts +19 -12
  30. package/lib/narrative/createNarrativeUnitFiles.js +22 -17
  31. package/lib/narrative/createNarrativeUnitFiles.js.map +1 -1
  32. package/lib/narrative/createPackageChecklistClaim.js +5 -10
  33. package/lib/narrative/createPackageChecklistClaim.js.map +1 -1
  34. package/lib/narrative/createPackageContract.d.ts +3 -3
  35. package/lib/narrative/createPackageContract.js +3 -8
  36. package/lib/narrative/createPackageContract.js.map +1 -1
  37. package/lib/narrative/createPackagePopulationContract.d.ts +7 -7
  38. package/lib/narrative/createPackagePopulationContract.js +10 -18
  39. package/lib/narrative/createPackagePopulationContract.js.map +1 -1
  40. package/lib/narrative/index.d.ts +11 -14
  41. package/lib/narrative/index.js +11 -14
  42. package/lib/narrative/index.js.map +1 -1
  43. package/lib/narrative/internal/REALIZED_LAYERS.d.ts +1 -1
  44. package/lib/narrative/internal/REALIZED_LAYERS.js +1 -1
  45. package/lib/narrative/internal/claims/createDiscoveryClaim.d.ts +11 -3
  46. package/lib/narrative/internal/claims/createDiscoveryClaim.js +17 -5
  47. package/lib/narrative/internal/claims/createDiscoveryClaim.js.map +1 -1
  48. package/lib/narrative/internal/claims/createExpressionObligationClaims.d.ts +9 -8
  49. package/lib/narrative/internal/claims/createExpressionObligationClaims.js +15 -22
  50. package/lib/narrative/internal/claims/createExpressionObligationClaims.js.map +1 -1
  51. package/lib/narrative/internal/claims/createInstructionCoverageClaim.d.ts +6 -4
  52. package/lib/narrative/internal/claims/createInstructionCoverageClaim.js +7 -5
  53. package/lib/narrative/internal/claims/createInstructionCoverageClaim.js.map +1 -1
  54. package/lib/narrative/internal/claims/createLayerClaims.d.ts +9 -9
  55. package/lib/narrative/internal/claims/createLayerClaims.js +45 -65
  56. package/lib/narrative/internal/claims/createLayerClaims.js.map +1 -1
  57. package/lib/narrative/internal/claims/createOutlineClaims.js +8 -8
  58. package/lib/narrative/internal/claims/createOutlineClaims.js.map +1 -1
  59. package/lib/narrative/internal/claims/createPopulationObligationClaims.d.ts +3 -3
  60. package/lib/narrative/internal/claims/createPopulationObligationClaims.js +5 -5
  61. package/lib/narrative/internal/claims/createPopulationObligationClaims.js.map +1 -1
  62. package/lib/narrative/internal/claims/createReviewClaims.d.ts +8 -8
  63. package/lib/narrative/internal/claims/createReviewClaims.js +64 -77
  64. package/lib/narrative/internal/claims/createReviewClaims.js.map +1 -1
  65. package/lib/narrative/internal/claims/createSettingCoverageClaim.d.ts +1 -1
  66. package/lib/narrative/internal/claims/createSettingCoverageClaim.js +6 -7
  67. package/lib/narrative/internal/claims/createSettingCoverageClaim.js.map +1 -1
  68. package/lib/narrative/internal/claims/index.d.ts +8 -0
  69. package/lib/narrative/internal/claims/index.js +25 -0
  70. package/lib/narrative/internal/claims/index.js.map +1 -0
  71. package/lib/narrative/internal/collectProductionClaims.js +5 -2
  72. package/lib/narrative/internal/collectProductionClaims.js.map +1 -1
  73. package/lib/narrative/internal/index.d.ts +16 -0
  74. package/lib/narrative/internal/index.js +33 -0
  75. package/lib/narrative/internal/index.js.map +1 -0
  76. package/lib/narrative/internal/metadataRewrite/index.d.ts +43 -0
  77. package/lib/narrative/internal/metadataRewrite/index.js +60 -0
  78. package/lib/narrative/internal/metadataRewrite/index.js.map +1 -0
  79. package/lib/narrative/internal/references/createCoverageReference.d.ts +1 -2
  80. package/lib/narrative/internal/references/createCoverageReference.js +2 -2
  81. package/lib/narrative/internal/references/createCoverageReference.js.map +1 -1
  82. package/lib/narrative/internal/references/createDiscoveryReferences.d.ts +2 -2
  83. package/lib/narrative/internal/references/createDiscoveryReferences.js +2 -2
  84. package/lib/narrative/internal/references/createLanguagePrincipleReferences.d.ts +7 -6
  85. package/lib/narrative/internal/references/createLanguagePrincipleReferences.js +7 -7
  86. package/lib/narrative/internal/references/createLanguagePrincipleReferences.js.map +1 -1
  87. package/lib/narrative/internal/references/createLineageReference.d.ts +7 -8
  88. package/lib/narrative/internal/references/createLineageReference.js +8 -8
  89. package/lib/narrative/internal/references/createLineageReference.js.map +1 -1
  90. package/lib/narrative/internal/references/createPrincipleReferences.d.ts +9 -8
  91. package/lib/narrative/internal/references/createPrincipleReferences.js +12 -12
  92. package/lib/narrative/internal/references/createPrincipleReferences.js.map +1 -1
  93. package/lib/narrative/internal/references/createSettingReferences.d.ts +3 -4
  94. package/lib/narrative/internal/references/createSettingReferences.js +6 -6
  95. package/lib/narrative/internal/references/createSettingReferences.js.map +1 -1
  96. package/lib/narrative/internal/references/index.d.ts +11 -0
  97. package/lib/narrative/internal/references/index.js +28 -0
  98. package/lib/narrative/internal/references/index.js.map +1 -0
  99. package/lib/narrative/internal/references/layerFiles.d.ts +5 -5
  100. package/lib/narrative/internal/references/layerFiles.js +5 -5
  101. package/lib/narrative/internal/topology/createTopologyFiles.d.ts +1 -1
  102. package/lib/narrative/internal/topology/createTopologyFiles.js +1 -1
  103. package/lib/narrative/internal/topology/index.d.ts +1 -0
  104. package/lib/narrative/internal/topology/index.js +18 -0
  105. package/lib/narrative/internal/topology/index.js.map +1 -0
  106. package/lib/narrative/internal/utilities/BODY_ROOT.d.ts +15 -0
  107. package/lib/narrative/internal/utilities/BODY_ROOT.js +20 -0
  108. package/lib/narrative/internal/utilities/BODY_ROOT.js.map +1 -0
  109. package/lib/narrative/internal/utilities/PACKAGE_DOCS_ROOT.d.ts +6 -6
  110. package/lib/narrative/internal/utilities/PACKAGE_DOCS_ROOT.js +6 -6
  111. package/lib/narrative/internal/utilities/assertProductionEvidenceSources.js +6 -19
  112. package/lib/narrative/internal/utilities/assertProductionEvidenceSources.js.map +1 -1
  113. package/lib/narrative/internal/utilities/createUnitFiles.d.ts +4 -6
  114. package/lib/narrative/internal/utilities/createUnitFiles.js +5 -7
  115. package/lib/narrative/internal/utilities/createUnitFiles.js.map +1 -1
  116. package/lib/narrative/internal/utilities/index.d.ts +8 -0
  117. package/lib/narrative/internal/utilities/index.js +25 -0
  118. package/lib/narrative/internal/utilities/index.js.map +1 -0
  119. package/lib/narrative/internal/utilities/referenceLocation.d.ts +6 -9
  120. package/lib/narrative/internal/utilities/referenceLocation.js +9 -14
  121. package/lib/narrative/internal/utilities/referenceLocation.js.map +1 -1
  122. package/package.json +8 -4
  123. package/src/IAutoMovieDevelopmentProps.ts +7 -6
  124. package/src/IAutoMovieEvidenceConfigProps.ts +9 -8
  125. package/src/IAutoMovieNarrativeProps.ts +0 -4
  126. package/src/IAutoMovieNoNarrativeProps.ts +18 -0
  127. package/src/createDevelopmentContractClaims.ts +38 -14
  128. package/src/createEvidenceConfig.ts +23 -13
  129. package/src/index.ts +8 -7
  130. package/src/internal/index.ts +14 -0
  131. package/src/internal/resolveSkillsDirectory.ts +9 -12
  132. package/src/narrative/IPackageChecklistClaimProps.ts +5 -11
  133. package/src/narrative/IPackageContractProps.ts +0 -9
  134. package/src/narrative/IPackagePopulationContractProps.ts +1 -10
  135. package/src/narrative/IProductionConfigProps.ts +1 -11
  136. package/src/narrative/createBriefFiles.ts +2 -2
  137. package/src/narrative/createNarrativeUnitFiles.ts +28 -20
  138. package/src/narrative/createPackageChecklistClaim.ts +5 -10
  139. package/src/narrative/createPackageContract.ts +3 -15
  140. package/src/narrative/createPackagePopulationContract.ts +11 -26
  141. package/src/narrative/index.ts +11 -14
  142. package/src/narrative/internal/REALIZED_LAYERS.ts +1 -1
  143. package/src/narrative/internal/claims/createDiscoveryClaim.ts +20 -6
  144. package/src/narrative/internal/claims/createExpressionObligationClaims.ts +15 -24
  145. package/src/narrative/internal/claims/createInstructionCoverageClaim.ts +8 -6
  146. package/src/narrative/internal/claims/createLayerClaims.ts +48 -78
  147. package/src/narrative/internal/claims/createOutlineClaims.ts +8 -8
  148. package/src/narrative/internal/claims/createPopulationObligationClaims.ts +5 -5
  149. package/src/narrative/internal/claims/createReviewClaims.ts +69 -91
  150. package/src/narrative/internal/claims/createSettingCoverageClaim.ts +5 -7
  151. package/src/narrative/internal/claims/index.ts +8 -0
  152. package/src/narrative/internal/collectProductionClaims.ts +7 -5
  153. package/src/narrative/internal/index.ts +16 -0
  154. package/src/narrative/internal/metadataRewrite/index.ts +43 -0
  155. package/src/narrative/internal/references/createCoverageReference.ts +1 -3
  156. package/src/narrative/internal/references/createDiscoveryReferences.ts +2 -2
  157. package/src/narrative/internal/references/createLanguagePrincipleReferences.ts +8 -9
  158. package/src/narrative/internal/references/createLineageReference.ts +7 -9
  159. package/src/narrative/internal/references/createPrincipleReferences.ts +13 -14
  160. package/src/narrative/internal/references/createSettingReferences.ts +5 -8
  161. package/src/narrative/internal/references/index.ts +11 -0
  162. package/src/narrative/internal/references/layerFiles.ts +5 -5
  163. package/src/narrative/internal/topology/createTopologyFiles.ts +1 -1
  164. package/src/narrative/internal/topology/index.ts +1 -0
  165. package/src/narrative/internal/utilities/BODY_ROOT.ts +17 -0
  166. package/src/narrative/internal/utilities/PACKAGE_DOCS_ROOT.ts +6 -6
  167. package/src/narrative/internal/utilities/assertProductionEvidenceSources.ts +6 -25
  168. package/src/narrative/internal/utilities/createUnitFiles.ts +5 -7
  169. package/src/narrative/internal/utilities/index.ts +8 -0
  170. package/src/narrative/internal/utilities/referenceLocation.ts +8 -18
  171. package/lib/narrative/AuthoredPass.d.ts +0 -16
  172. package/lib/narrative/AuthoredPass.js +0 -3
  173. package/lib/narrative/AuthoredPass.js.map +0 -1
  174. package/lib/narrative/IProductionLayerStages.d.ts +0 -15
  175. package/lib/narrative/IProductionLayerStages.js.map +0 -1
  176. package/lib/narrative/internal/hasNaturalness.d.ts +0 -14
  177. package/lib/narrative/internal/hasNaturalness.js +0 -19
  178. package/lib/narrative/internal/hasNaturalness.js.map +0 -1
  179. package/lib/narrative/internal/utilities/passRoot.d.ts +0 -16
  180. package/lib/narrative/internal/utilities/passRoot.js +0 -22
  181. package/lib/narrative/internal/utilities/passRoot.js.map +0 -1
  182. package/lib/narrative/stripNaturalnessComments.d.ts +0 -12
  183. package/lib/narrative/stripNaturalnessComments.js +0 -34
  184. package/lib/narrative/stripNaturalnessComments.js.map +0 -1
  185. package/src/narrative/AuthoredPass.ts +0 -16
  186. package/src/narrative/IProductionLayerStages.ts +0 -16
  187. package/src/narrative/internal/hasNaturalness.ts +0 -17
  188. package/src/narrative/internal/utilities/passRoot.ts +0 -20
  189. package/src/narrative/stripNaturalnessComments.ts +0 -31
@@ -1 +1 @@
1
- {"version":3,"file":"resolveSkillsDirectory.js","sourceRoot":"","sources":["../../src/internal/resolveSkillsDirectory.ts"],"names":[],"mappings":";;;;;;AAAA,0DAA6B;AAG7B,+CAA4C;AAE5C;;;;;;;;;;;;;;;;;;;GAmBG;AACH,gCAAuC,SAA4B;IACjE,IAAI,SAAS,CAAC,MAAM,KAAK,SAAS;QAChC,OAAO,mBAAI,CAAC,IAAI,CAAC,SAAS,CAAC,QAAQ,EAAE,GAAG,yBAAW,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC;IAClE,IAAI,CAAC,mBAAI,CAAC,UAAU,CAAC,SAAS,CAAC,MAAM,CAAC;QACpC,MAAM,IAAI,KAAK,CAAC,gDAAgD,CAAC,CAAC;IACpE,OAAO,SAAS,CAAC,MAAM,CAAC;AAC1B,CAAC"}
1
+ {"version":3,"file":"resolveSkillsDirectory.js","sourceRoot":"","sources":["../../src/internal/resolveSkillsDirectory.ts"],"names":[],"mappings":";;;;;;AAAA,0DAA6B;AAG7B,+CAA4C;AAE5C;;;;;;;;;;;;;;;;;;GAkBG;AACH,gCAAuC,SAA4B;IACjE,IAAI,SAAS,CAAC,MAAM,KAAK,SAAS;QAChC,OAAO,mBAAI,CAAC,IAAI,CAAC,SAAS,CAAC,QAAQ,EAAE,GAAG,yBAAW,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC;IAClE,OAAO,mBAAI,CAAC,OAAO,CAAC,SAAS,CAAC,QAAQ,EAAE,SAAS,CAAC,MAAM,CAAC,CAAC;AAC5D,CAAC"}
@@ -1,5 +1,4 @@
1
1
  import type { EvidenceMarkdownSymbol } from "@wrtnlabs/evidence";
2
- import type { AuthoredPass } from "./AuthoredPass";
3
2
  import type { ProductionStage } from "./ProductionStage";
4
3
  /**
5
4
  * Describes one work-local contract claim.
@@ -9,10 +8,10 @@ import type { ProductionStage } from "./ProductionStage";
9
8
  * its selected hosts answer item by item, and the wiring is the same every
10
9
  * time — only the document, the hosts, and when the claim is off differ.
11
10
  *
12
- * @evidence contracts/development/design.md#principled-representation The object groups work-contract paths, addressed inside the production's `docs/contracts`, host selectors, explicit symbol granularity and activation flags for createPackageChecklistClaim; default pass and checklist meanings are documented on their members.
11
+ * @evidence contracts/development/design.md#principled-representation The object groups work-contract paths, addressed inside the production's `docs/contracts`, host selectors, explicit symbol granularity and activation flags for createPackageChecklistClaim; the checklist default is documented on its member.
13
12
  * @evidence contracts/development/design.md#minimal-and-owned-surface One object owns document selection, host granularity and activation so createPackageChecklistClaim validates the relationship together.
14
13
  * @evidence contracts/development/design.md#prohibited-design-shortcuts Exact work paths and symbol validity are enforced by createPackageChecklistClaim rather than hidden type-level assumptions.
15
- * @evidence contracts/development/common.md#meaningful-documentation Members explain document-relative addressing, required host granularity, pass/checklist defaults and optional deferral.
14
+ * @evidence contracts/development/common.md#meaningful-documentation Members explain document-relative addressing, body-relative hosts, required host granularity, the checklist default and optional deferral.
16
15
  */
17
16
  export interface IPackageChecklistClaimProps {
18
17
  /** Names the claim in diagnostics. State what the hosts must reach. */
@@ -26,16 +25,12 @@ export interface IPackageChecklistClaimProps {
26
25
  * answers every item of every one.
27
26
  */
28
27
  document: string | string[];
29
- /** Selects the host files this checklist binds, relative to the selected pass root. */
30
- files: string[];
31
28
  /**
32
- * Selects which logical pass answers: `draft` for construction,
33
- * `final` for naturalness. Construction hosts body with detached evidence; naturalness
34
- * hosts its working text with inline evidence.
29
+ * Selects the host files this checklist binds, relative to `docs/body`.
35
30
  *
36
- * @default "draft"
31
+ * The hosts answer in detached construction evidence.
37
32
  */
38
- pass?: AuthoredPass;
33
+ files: string[];
39
34
  /** Sets the stage of the layer that owns the hosts. */
40
35
  stage: ProductionStage;
41
36
  /**
@@ -1,6 +1,5 @@
1
1
  import type { EvidenceMarkdownSymbol } from "@wrtnlabs/evidence";
2
2
  import type { AuthoredLayer } from "./AuthoredLayer";
3
- import type { AuthoredPass } from "./AuthoredPass";
4
3
  import type { NarrativeScope } from "./NarrativeScope";
5
4
  import type { ProductionStage } from "./ProductionStage";
6
5
  /**
@@ -26,13 +25,6 @@ export interface IPackageContractProps {
26
25
  * whether or not it is active yet.
27
26
  */
28
27
  layers: Partial<Record<AuthoredLayer, ProductionStage>>;
29
- /**
30
- * Selects which logical pass answers the rule. `draft` is construction,
31
- * `final` is naturalness and hosts the working text; construction hosts body.
32
- *
33
- * @default "draft"
34
- */
35
- pass?: AuthoredPass;
36
28
  /** Selects the complete work or one pilot slice, for the narrative globs. */
37
29
  narrativeScope: NarrativeScope;
38
30
  /** States what the hosts must reach. Each layer's claim names itself after it. */
@@ -1,5 +1,4 @@
1
1
  import type { AuthoredLayer } from "./AuthoredLayer";
2
- import type { AuthoredPass } from "./AuthoredPass";
3
2
  import type { NarrativeScope } from "./NarrativeScope";
4
3
  import type { ProductionStage } from "./ProductionStage";
5
4
  /**
@@ -8,20 +7,13 @@ import type { ProductionStage } from "./ProductionStage";
8
7
  * @evidence contracts/development/design.md#principled-representation The object represents one exact work obligation document and its owning populations, with pilot-only deferral separate from pass activation.
9
8
  * @evidence contracts/development/design.md#minimal-and-owned-surface One duty document and layer-stage map express once-per-layer obligations separately from per-H2 checklists.
10
9
  * @evidence contracts/development/design.md#prohibited-design-shortcuts createPackagePopulationContract enforces exact obligation paths and pilot-only deferral; the interface adds no bypass.
11
- * @evidence contracts/development/common.md#meaningful-documentation Members state tracked obligation addressing, complete-population ownership, final-pass working roots and pilot-only deferral.
10
+ * @evidence contracts/development/common.md#meaningful-documentation Members state tracked obligation addressing, complete-population ownership and pilot-only deferral.
12
11
  */
13
12
  export interface IPackagePopulationContractProps {
14
13
  /** One tracked work-contract document containing population H2 duties. */
15
14
  document: string;
16
15
  /** Layers whose complete populations answer the document. */
17
16
  layers: Partial<Record<AuthoredLayer, ProductionStage>>;
18
- /**
19
- * Selects which logical pass answers: `draft` for construction,
20
- * `final` for naturalness. Construction selects body; naturalness selects the working text.
21
- *
22
- * @default "draft"
23
- */
24
- pass?: AuthoredPass;
25
17
  /**
26
18
  * Selects the exact narrative population whose documents answer the duty.
27
19
  *
@@ -1,11 +1,10 @@
1
1
  import type { IEvidenceClaim } from "@wrtnlabs/evidence";
2
2
  import type { IProductionConstruction } from "./IProductionConstruction";
3
- import type { IProductionLayerStages } from "./IProductionLayerStages";
4
3
  import type { NarrativeScope } from "./NarrativeScope";
5
4
  /**
6
5
  * Selects narrative claim families, their stages and additional native claims.
7
6
  *
8
- * @evidence contracts/development/design.md#principled-representation The route, absolute location, optional absolute shared skills tree, authored scope and stage maps select native narrative respondents; extra claims and engineering support remain ordinary native claims.
7
+ * @evidence contracts/development/design.md#principled-representation The route, absolute location, optional absolute shared skills tree, authored scope and construction stages select native narrative respondents; extra claims and engineering support remain ordinary native claims.
9
8
  * @evidence contracts/development/design.md#minimal-and-owned-surface One configuration object groups the options needed by the shared claim collector.
10
9
  * @evidence contracts/development/design.md#prohibited-design-shortcuts Stages select structural evidence and never certify creative completion; native Evidence evaluates the resulting graph.
11
10
  * @evidence contracts/development/common.md#meaningful-documentation Members explain route, location, the shared skills tree and its default, scope, stages and additive claims; the production owns independent creative review.
@@ -42,14 +41,6 @@ export interface IProductionConfigProps {
42
41
  * and the population duties the layer's own material settles.
43
42
  */
44
43
  construction: IProductionConstruction;
45
- /**
46
- * Sets the screenplay naturalness stage.
47
- *
48
- * Revision opens after screenplay construction approval. Scripts answer their
49
- * expression questions inside construction; settings and treatments also
50
- * finish within construction.
51
- */
52
- naturalness: IProductionLayerStages;
53
44
  /**
54
45
  * Adds claims used only by this production.
55
46
  *
@@ -2,8 +2,8 @@
2
2
  * Selects a short's brief canon: the scaffold's domain folders under `docs/body/brief`.
3
3
  *
4
4
  * The brief keeps the settings domain layout, `brief/<domain>/<subject>.md`,
5
- * with the work's fixed conditions in `brief/world/work.md`, so the same reader,
6
- * which refuses mixed layouts, and the same citations serve both canon layers.
5
+ * so the same reader, which refuses mixed layouts, and the same citations
6
+ * serve both canon layers.
7
7
  *
8
8
  * @evidence contracts/development/implementation.md#principled-implementation One glob per scaffold domain admits the brief's canon, sharing SETTINGS_DOMAINS with the settings selector and reader so the layouts cannot drift; no top-level glob is admitted because the reader refuses a mixed layout.
9
9
  * @evidence contracts/development/implementation.md#clear-and-simple-structure The selector only describes the brief population; the shared reader owns concrete ordering and layout checks.
@@ -6,8 +6,8 @@ const SETTINGS_DOMAINS_1 = require("./internal/SETTINGS_DOMAINS");
6
6
  * Selects a short's brief canon: the scaffold's domain folders under `docs/body/brief`.
7
7
  *
8
8
  * The brief keeps the settings domain layout, `brief/<domain>/<subject>.md`,
9
- * with the work's fixed conditions in `brief/world/work.md`, so the same reader,
10
- * which refuses mixed layouts, and the same citations serve both canon layers.
9
+ * so the same reader, which refuses mixed layouts, and the same citations
10
+ * serve both canon layers.
11
11
  *
12
12
  * @evidence contracts/development/implementation.md#principled-implementation One glob per scaffold domain admits the brief's canon, sharing SETTINGS_DOMAINS with the settings selector and reader so the layouts cannot drift; no top-level glob is admitted because the reader refuses a mixed layout.
13
13
  * @evidence contracts/development/implementation.md#clear-and-simple-structure The selector only describes the brief population; the shared reader owns concrete ordering and layout checks.
@@ -5,21 +5,28 @@ import type { NarrativeScope } from "./NarrativeScope";
5
5
  *
6
6
  * `treatments` is flat and carries no release partition, so its population is
7
7
  * every numbered event file it holds — during a pilot the layer contains only
8
- * the pilot's events, so the same selector serves both modes. `scripts` and
9
- * long-form `screenplay` carry the part partition, so a pilot narrows them to
10
- * the one part it authors. Complete-work screenplay also selects flat Markdown
11
- * for short productions. Route topology validation rejects flat files in long
12
- * work rather than silently omitting their evidence.
8
+ * the pilot's events, so the same selector serves both modes. `scripts` holds
9
+ * one file per episode in its part folders, `NNN-part/NNN-episode.md`.
10
+ * `screenplay` holds one file per scene in a film folder: a short's
11
+ * `<film>/NNN-scene.md`, or long work's `NNN-part/NNN-episode/NNN-scene.md`,
12
+ * whose episode folder takes the place of the script's episode file. A pilot
13
+ * narrows scripts and screenplay to the one part it authors. The layer's
14
+ * topology selector still reaches every other file under it, so the H2s of a
15
+ * misplaced scene file owe their answers instead of silently losing them.
13
16
  *
14
- * The selector is relative to the authored pass root. A naturalness comparison uses the
15
- * same relative file identity under `docs/revision`.
17
+ * The selector is relative to the body root.
16
18
  *
17
- * @evidence contracts/development/implementation.md#principled-implementation Layer-specific globs preserve flat numbered treatments, partitioned scripts and exact first-part pilots; complete-work screenplay also captures flat short-film documents, with route-specific admission owned by topology validation.
18
- * @evidence contracts/development/implementation.md#clear-and-simple-structure The selector owns only relative narrative population paths; callers choose body, frozen or working roots independently.
19
- * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Flat short screenplays and numbered long partitions are supported production layouts; no file or production name controls selection, and first-part pilots remain confined to their exact directory.
20
- * @evidence contracts/development/common.md#meaningful-documentation The prose states layer partition differences, pilot behavior, root relativity and frozen-snapshot identity.
19
+ * @evidence contracts/development/implementation.md#principled-implementation Layer-specific globs select flat numbered treatments, episode files of scripts, and screenplay scene files in a short's film folder or long work's episode folders, narrowing scripts and screenplay to an exact first part for a pilot.
20
+ * @evidence contracts/development/implementation.md#clear-and-simple-structure The selector owns only relative narrative population paths; callers add the body root.
21
+ * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Short film folders and numbered long partitions are supported production layouts; no file or production name controls selection, and first-part pilots remain confined to their exact directory.
22
+ * @evidence contracts/development/common.md#meaningful-documentation The prose states each layer's partition, the scene-file screenplay layout, pilot behavior and root relativity.
21
23
  * @evidence contracts/development/implementation.md#efficient-algorithms Complete-work returns one or two fixed-size globs; pilot validation and interpolation take time and output space proportional to the selected part string length.
22
24
  * @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work This selector builds one result from supplied values and coordinates no cross-request work; independent arrays avoid shared mutable selector state.
23
25
  * @evidenceExclude contracts/development/implementation.md#bound-retention-and-release-resources Only the returned small selector array survives the call; no descriptor, task or module cache is acquired.
24
26
  */
25
- export declare function createNarrativeUnitFiles(layer: NarrativeLayer, scope: NarrativeScope): string[];
27
+ export declare function createNarrativeUnitFiles(props: {
28
+ /** The narrative layer whose unit files are selected. */
29
+ layer: NarrativeLayer;
30
+ /** The complete work, or the exact first part a pilot authors. */
31
+ scope: NarrativeScope;
32
+ }): string[];
@@ -6,34 +6,39 @@ exports.createNarrativeUnitFiles = createNarrativeUnitFiles;
6
6
  *
7
7
  * `treatments` is flat and carries no release partition, so its population is
8
8
  * every numbered event file it holds — during a pilot the layer contains only
9
- * the pilot's events, so the same selector serves both modes. `scripts` and
10
- * long-form `screenplay` carry the part partition, so a pilot narrows them to
11
- * the one part it authors. Complete-work screenplay also selects flat Markdown
12
- * for short productions. Route topology validation rejects flat files in long
13
- * work rather than silently omitting their evidence.
9
+ * the pilot's events, so the same selector serves both modes. `scripts` holds
10
+ * one file per episode in its part folders, `NNN-part/NNN-episode.md`.
11
+ * `screenplay` holds one file per scene in a film folder: a short's
12
+ * `<film>/NNN-scene.md`, or long work's `NNN-part/NNN-episode/NNN-scene.md`,
13
+ * whose episode folder takes the place of the script's episode file. A pilot
14
+ * narrows scripts and screenplay to the one part it authors. The layer's
15
+ * topology selector still reaches every other file under it, so the H2s of a
16
+ * misplaced scene file owe their answers instead of silently losing them.
14
17
  *
15
- * The selector is relative to the authored pass root. A naturalness comparison uses the
16
- * same relative file identity under `docs/revision`.
18
+ * The selector is relative to the body root.
17
19
  *
18
- * @evidence contracts/development/implementation.md#principled-implementation Layer-specific globs preserve flat numbered treatments, partitioned scripts and exact first-part pilots; complete-work screenplay also captures flat short-film documents, with route-specific admission owned by topology validation.
19
- * @evidence contracts/development/implementation.md#clear-and-simple-structure The selector owns only relative narrative population paths; callers choose body, frozen or working roots independently.
20
- * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Flat short screenplays and numbered long partitions are supported production layouts; no file or production name controls selection, and first-part pilots remain confined to their exact directory.
21
- * @evidence contracts/development/common.md#meaningful-documentation The prose states layer partition differences, pilot behavior, root relativity and frozen-snapshot identity.
20
+ * @evidence contracts/development/implementation.md#principled-implementation Layer-specific globs select flat numbered treatments, episode files of scripts, and screenplay scene files in a short's film folder or long work's episode folders, narrowing scripts and screenplay to an exact first part for a pilot.
21
+ * @evidence contracts/development/implementation.md#clear-and-simple-structure The selector owns only relative narrative population paths; callers add the body root.
22
+ * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Short film folders and numbered long partitions are supported production layouts; no file or production name controls selection, and first-part pilots remain confined to their exact directory.
23
+ * @evidence contracts/development/common.md#meaningful-documentation The prose states each layer's partition, the scene-file screenplay layout, pilot behavior and root relativity.
22
24
  * @evidence contracts/development/implementation.md#efficient-algorithms Complete-work returns one or two fixed-size globs; pilot validation and interpolation take time and output space proportional to the selected part string length.
23
25
  * @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work This selector builds one result from supplied values and coordinates no cross-request work; independent arrays avoid shared mutable selector state.
24
26
  * @evidenceExclude contracts/development/implementation.md#bound-retention-and-release-resources Only the returned small selector array survives the call; no descriptor, task or module cache is acquired.
25
27
  */
26
- function createNarrativeUnitFiles(layer, scope) {
28
+ function createNarrativeUnitFiles(props) {
29
+ const { layer, scope } = props;
27
30
  if (scope.mode !== "complete-work" &&
28
31
  (scope.mode !== "first-part-pilot" ||
29
32
  !/^001-[a-z0-9]+(?:-[a-z0-9]+)*$/u.test(scope.part)))
30
33
  throw new Error("A first-part pilot requires one exact 001-lower-kebab-case part directory.");
31
34
  if (layer === "treatments")
32
35
  return [`${layer}/???-*.md`];
33
- if (scope.mode === "complete-work")
34
- return layer === "screenplay"
35
- ? [`${layer}/*.md`, `${layer}/*/???-*.md`]
36
- : [`${layer}/*/???-*.md`];
37
- return [`${layer}/${scope.part}/???-*.md`];
36
+ if (layer === "screenplay")
37
+ return scope.mode === "complete-work"
38
+ ? [`${layer}/*/???-*.md`, `${layer}/*/*/???-*.md`]
39
+ : [`${layer}/${scope.part}/*/???-*.md`];
40
+ return scope.mode === "complete-work"
41
+ ? [`${layer}/*/???-*.md`]
42
+ : [`${layer}/${scope.part}/???-*.md`];
38
43
  }
39
44
  //# sourceMappingURL=createNarrativeUnitFiles.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"createNarrativeUnitFiles.js","sourceRoot":"","sources":["../../src/narrative/createNarrativeUnitFiles.ts"],"names":[],"mappings":";;;AAGA;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,kCACE,KAAqB,EACrB,KAAqB;IAErB,IACE,KAAK,CAAC,IAAI,KAAK,eAAe;QAC9B,CAAC,KAAK,CAAC,IAAI,KAAK,kBAAkB;YAChC,CAAC,iCAAiC,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;QAEtD,MAAM,IAAI,KAAK,CACb,4EAA4E,CAC7E,CAAC;IACJ,IAAI,KAAK,KAAK,YAAY;QAAE,OAAO,CAAC,GAAG,KAAK,WAAW,CAAC,CAAC;IACzD,IAAI,KAAK,CAAC,IAAI,KAAK,eAAe;QAChC,OAAO,KAAK,KAAK,YAAY;YAC3B,CAAC,CAAC,CAAC,GAAG,KAAK,OAAO,EAAE,GAAG,KAAK,aAAa,CAAC;YAC1C,CAAC,CAAC,CAAC,GAAG,KAAK,aAAa,CAAC,CAAC;IAC9B,OAAO,CAAC,GAAG,KAAK,IAAI,KAAK,CAAC,IAAI,WAAW,CAAC,CAAC;AAC7C,CAAC"}
1
+ {"version":3,"file":"createNarrativeUnitFiles.js","sourceRoot":"","sources":["../../src/narrative/createNarrativeUnitFiles.ts"],"names":[],"mappings":";;;AAGA;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,kCAAyC,KAMxC;IACC,MAAM,EAAE,KAAK,EAAE,KAAK,EAAE,GAAG,KAAK,CAAC;IAC/B,IACE,KAAK,CAAC,IAAI,KAAK,eAAe;QAC9B,CAAC,KAAK,CAAC,IAAI,KAAK,kBAAkB;YAChC,CAAC,iCAAiC,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;QAEtD,MAAM,IAAI,KAAK,CACb,4EAA4E,CAC7E,CAAC;IACJ,IAAI,KAAK,KAAK,YAAY;QAAE,OAAO,CAAC,GAAG,KAAK,WAAW,CAAC,CAAC;IACzD,IAAI,KAAK,KAAK,YAAY;QACxB,OAAO,KAAK,CAAC,IAAI,KAAK,eAAe;YACnC,CAAC,CAAC,CAAC,GAAG,KAAK,aAAa,EAAE,GAAG,KAAK,eAAe,CAAC;YAClD,CAAC,CAAC,CAAC,GAAG,KAAK,IAAI,KAAK,CAAC,IAAI,aAAa,CAAC,CAAC;IAC5C,OAAO,KAAK,CAAC,IAAI,KAAK,eAAe;QACnC,CAAC,CAAC,CAAC,GAAG,KAAK,aAAa,CAAC;QACzB,CAAC,CAAC,CAAC,GAAG,KAAK,IAAI,KAAK,CAAC,IAAI,WAAW,CAAC,CAAC;AAC1C,CAAC"}
@@ -2,8 +2,8 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.createPackageChecklistClaim = createPackageChecklistClaim;
4
4
  const PRODUCTION_CONTRACTS_1 = require("../internal/PRODUCTION_CONTRACTS");
5
+ const BODY_ROOT_1 = require("./internal/utilities/BODY_ROOT");
5
6
  const createEvidenceFiles_1 = require("./internal/utilities/createEvidenceFiles");
6
- const passRoot_1 = require("./internal/utilities/passRoot");
7
7
  /**
8
8
  * Creates one work-local contract claim.
9
9
  *
@@ -52,14 +52,10 @@ function createPackageChecklistClaim(props) {
52
52
  return {
53
53
  name: props.name,
54
54
  type: "markdown",
55
- root: (0, passRoot_1.passRoot)(props.pass ?? "draft"),
55
+ root: BODY_ROOT_1.BODY_ROOT,
56
56
  files: props.files,
57
57
  symbol: props.symbol,
58
- ...(props.pass === "final"
59
- ? {}
60
- : {
61
- evidenceFiles: (0, createEvidenceFiles_1.createEvidenceFiles)(symbols[0], props.files),
62
- }),
58
+ evidenceFiles: (0, createEvidenceFiles_1.createEvidenceFiles)(symbols[0], props.files),
63
59
  disabled: props.stage === "disabled" || props.inapplicable === true,
64
60
  reference: canonicalDocuments.map((document) => ({
65
61
  type: "markdown",
@@ -75,9 +71,8 @@ function createPackageChecklistClaim(props) {
75
71
  * Keeps the package API on the tracked work-owned contract subtree.
76
72
  *
77
73
  * `naturalness` is admitted for the same reason the shared and language trees
78
- * carry one: a work's own observable form is a question its finished text
79
- * answers. Screenplay selects `pass: "final"` and its naturalness stage; scripts
80
- * select `pass: "draft"` and scripts construction explicitly. The document
74
+ * carry one: a work's own expression questions, which scripts construction
75
+ * answers. The caller selects the hosts and their stage; the document
81
76
  * directory alone never chooses its host population.
82
77
  */
83
78
  function isWorkDocument(document) {
@@ -1 +1 @@
1
- {"version":3,"file":"createPackageChecklistClaim.js","sourceRoot":"","sources":["../../src/narrative/createPackageChecklistClaim.ts"],"names":[],"mappings":";;;AAKA,2EAAwE;AAExE,kFAA+E;AAC/E,4DAAyD;AAEzD;;;;;;;;;;;;;;;;;;GAkBG;AACH,qCACE,KAAkC;IAElC,MAAM,SAAS,GAAa,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,QAAQ,CAAC;QACvD,CAAC,CAAC,KAAK,CAAC,QAAQ;QAChB,CAAC,CAAC,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC;IACrB,MAAM,kBAAkB,GAAa,SAAS,CAAC,GAAG,CAChD,CAAC,QAAgB,EAAU,EAAE,CAAC,QAAQ,CAAC,UAAU,CAAC,IAAI,EAAE,GAAG,CAAC,CAC7D,CAAC;IACF,IAAI,kBAAkB,CAAC,MAAM,KAAK,CAAC;QACjC,MAAM,IAAI,KAAK,CAAC,yDAAyD,CAAC,CAAC;IAC7E,IAAI,IAAI,GAAG,CAAC,kBAAkB,CAAC,CAAC,IAAI,KAAK,kBAAkB,CAAC,MAAM;QAChE,MAAM,IAAI,KAAK,CACb,gEAAgE,CACjE,CAAC;IACJ,MAAM,OAAO,GAAuB,kBAAkB,CAAC,IAAI,CACzD,CAAC,QAAgB,EAAW,EAAE,CAAC,CAAC,cAAc,CAAC,QAAQ,CAAC,CACzD,CAAC;IACF,IAAI,OAAO,KAAK,SAAS;Q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AAW,EAAE,CAAC,QAAQ,CAAC,WAAW,CAAC,CAChD,CAAC;AACJ,CAAC"}
@@ -7,10 +7,10 @@ import type { IPackageContractProps } from "./IPackageContractProps";
7
7
  * out is the same claim four times with only the layer's name, stage, and file
8
8
  * glob changing. State the layers instead, and the wiring follows from them.
9
9
  *
10
- * @evidence contracts/development/implementation.md#principled-implementation Each declared layer stage becomes one checklist claim with that layer's exact narrative selector; final-pass contracts reject layers without naturalness before mapping.
10
+ * @evidence contracts/development/implementation.md#principled-implementation Each declared layer stage becomes one checklist claim with that layer's exact narrative selector, after an empty layer map is rejected.
11
11
  * @evidence contracts/development/implementation.md#clear-and-simple-structure The wrapper keeps adopted rule identity and layer ownership together, delegating exact document/host checks to createPackageChecklistClaim.
12
- * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Only the two actual naturalness layers are admitted on final; no special claim name or fixture changes validation.
13
- * @evidence contracts/development/common.md#meaningful-documentation The prose states that one adopted contract expands to its owning layers; props document pass, granularity, activation and pilot scope.
12
+ * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Every authored layer is admitted on the same terms; no special claim name or fixture changes validation.
13
+ * @evidence contracts/development/common.md#meaningful-documentation The prose states that one adopted contract expands to its owning layers; props document granularity, activation and pilot scope.
14
14
  * @evidence contracts/development/implementation.md#efficient-algorithms For l owning layers, d document-path characters and f selector output, expansion costs O(l*(d+f)) through delegated validation; l is at most the supported authored layer set for typed callers.
15
15
  * @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work Each layer needs a distinct claim and diagnostic name; equivalent shared document paths are inputs, not cached effectful results, and no cross-request coordinator is created.
16
16
  * @evidenceExclude contracts/development/implementation.md#bound-retention-and-release-resources The result owns l claim objects and their delegated arrays; local layer entries are discarded on completion or failure, with no handles or running tasks.
@@ -2,7 +2,6 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.createPackageContract = createPackageContract;
4
4
  const createPackageChecklistClaim_1 = require("./createPackageChecklistClaim");
5
- const hasNaturalness_1 = require("./internal/hasNaturalness");
6
5
  const createUnitFiles_1 = require("./internal/utilities/createUnitFiles");
7
6
  /**
8
7
  * Creates one adopted contract's claims, one per layer that answers it.
@@ -11,10 +10,10 @@ const createUnitFiles_1 = require("./internal/utilities/createUnitFiles");
11
10
  * out is the same claim four times with only the layer's name, stage, and file
12
11
  * glob changing. State the layers instead, and the wiring follows from them.
13
12
  *
14
- * @evidence contracts/development/implementation.md#principled-implementation Each declared layer stage becomes one checklist claim with that layer's exact narrative selector; final-pass contracts reject layers without naturalness before mapping.
13
+ * @evidence contracts/development/implementation.md#principled-implementation Each declared layer stage becomes one checklist claim with that layer's exact narrative selector, after an empty layer map is rejected.
15
14
  * @evidence contracts/development/implementation.md#clear-and-simple-structure The wrapper keeps adopted rule identity and layer ownership together, delegating exact document/host checks to createPackageChecklistClaim.
16
- * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Only the two actual naturalness layers are admitted on final; no special claim name or fixture changes validation.
17
- * @evidence contracts/development/common.md#meaningful-documentation The prose states that one adopted contract expands to its owning layers; props document pass, granularity, activation and pilot scope.
15
+ * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Every authored layer is admitted on the same terms; no special claim name or fixture changes validation.
16
+ * @evidence contracts/development/common.md#meaningful-documentation The prose states that one adopted contract expands to its owning layers; props document granularity, activation and pilot scope.
18
17
  * @evidence contracts/development/implementation.md#efficient-algorithms For l owning layers, d document-path characters and f selector output, expansion costs O(l*(d+f)) through delegated validation; l is at most the supported authored layer set for typed callers.
19
18
  * @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work Each layer needs a distinct claim and diagnostic name; equivalent shared document paths are inputs, not cached effectful results, and no cross-request coordinator is created.
20
19
  * @evidenceExclude contracts/development/implementation.md#bound-retention-and-release-resources The result owns l claim objects and their delegated arrays; local layer entries are discarded on completion or failure, with no handles or running tasks.
@@ -23,15 +22,11 @@ function createPackageContract(props) {
23
22
  const layers = Object.entries(props.layers);
24
23
  if (layers.length === 0)
25
24
  throw new Error("A package contract requires at least one owning layer.");
26
- if (props.pass === "final" &&
27
- layers.some(([layer]) => !(0, hasNaturalness_1.hasNaturalness)(layer)))
28
- throw new Error("Only screenplay has a naturalness pass; adopt scripts contracts in construction.");
29
25
  return layers.map(([layer, stage]) => (0, createPackageChecklistClaim_1.createPackageChecklistClaim)({
30
26
  name: `${layer} units ${props.reason}`,
31
27
  document: props.document,
32
28
  files: (0, createUnitFiles_1.createUnitFiles)(layer, props.narrativeScope),
33
29
  stage,
34
- pass: props.pass,
35
30
  symbol: props.symbol,
36
31
  checklist: props.checklist,
37
32
  inapplicable: props.inapplicable,
@@ -1 +1 @@
1
- {"version":3,"file":"createPackageContract.js","sourceRoot":"","sources":["../../src/narrative/createPackageContract.ts"],"names":[],"mappings":";;;AAKA,+EAA4E;AAC5E,8DAA2D;AAC3D,0EAAuE;AAEvE;;;;;;;;;;;;;;GAcG;AACH,+BACE,KAA4B;IAE5B,MAAM,MAAM,GAAgC,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;IACzE,IAAI,MAAM,CAAC,MAAM,KAAK,CAAC;QACrB,MAAM,IAAI,KAAK,CAAC,wDAAwD,CAAC,CAAC;IAC5E,IACE,KAAK,CAAC,IAAI,KAAK,OAAO;QACtB,MAAM,CAAC,IAAI,CACT,CAAC,CAAC,KAAK,CAA4B,EAAW,EAAE,CAC9C,CAAC,IAAA,+BAAc,EAAC,KAAsB,CAAC,CAC1C;QAED,MAAM,IAAI,KAAK,CACb,kFAAkF,CACnF,CAAC;IAEJ,OAAO,MAAM,CAAC,GAAG,CACf,CAAC,CAAC,KAAK,EAAE,KAAK,CAA4B,EAAkB,EAAE,CAC5D,IAAA,yDAA2B,EAAC;QAC1B,IAAI,EAAE,GAAG,KAAK,UAAU,KAAK,CAAC,MAAM,EAAE;QACtC,QAAQ,EAAE,KAAK,CAAC,QAAQ;QACxB,KAAK,EAAE,IAAA,iCAAe,EAAC,KAAsB,EAAE,KAAK,CAAC,cAAc,CAAC;QACpE,KAAK;QACL,IAAI,EAAE,KAAK,CAAC,IAAI;QAChB,MAAM,EAAE,KAAK,CAAC,MAAM;QACpB,SAAS,EAAE,KAAK,CAAC,SAAS;QAC1B,YAAY,EAAE,KAAK,CAAC,YAAY;KACjC,CAAC,CACL,CAAC;AACJ,CAAC"}
1
+ {"version":3,"file":"createPackageContract.js","sourceRoot":"","sources":["../../src/narrative/createPackageContract.ts"],"names":[],"mappings":";;;AAKA,+EAA4E;AAC5E,0EAAuE;AAEvE;;;;;;;;;;;;;;GAcG;AACH,+BACE,KAA4B;IAE5B,MAAM,MAAM,GAAgC,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;IACzE,IAAI,MAAM,CAAC,MAAM,KAAK,CAAC;QACrB,MAAM,IAAI,KAAK,CAAC,wDAAwD,CAAC,CAAC;IAE5E,OAAO,MAAM,CAAC,GAAG,CACf,CAAC,CAAC,KAAK,EAAE,KAAK,CAA4B,EAAkB,EAAE,CAC5D,IAAA,yDAA2B,EAAC;QAC1B,IAAI,EAAE,GAAG,KAAK,UAAU,KAAK,CAAC,MAAM,EAAE;QACtC,QAAQ,EAAE,KAAK,CAAC,QAAQ;QACxB,KAAK,EAAE,IAAA,iCAAe,EAAC,KAAsB,EAAE,KAAK,CAAC,cAAc,CAAC;QACpE,KAAK;QACL,MAAM,EAAE,KAAK,CAAC,MAAM;QACpB,SAAS,EAAE,KAAK,CAAC,SAAS;QAC1B,YAAY,EAAE,KAAK,CAAC,YAAY;KACjC,CAAC,CACL,CAAC;AACJ,CAAC"}
@@ -3,17 +3,17 @@ import type { IPackagePopulationContractProps } from "./IPackagePopulationContra
3
3
  /**
4
4
  * Creates one population obligation claim per selected layer.
5
5
  *
6
- * The layer's own documents answer each duty once, at file level. Construction
7
- * uses detached evidence; naturalness uses a working-file comment. Each duty
8
- * has exactly one answering document. A duty is never repeated per H2, because a
9
- * population question restated on every unit is no longer one comparison.
6
+ * The layer's own documents answer each duty once, at file level, through
7
+ * detached construction evidence. Each duty has exactly one answering
8
+ * document. A duty is never repeated per H2, because a population question
9
+ * restated on every unit is no longer one comparison.
10
10
  *
11
- * @evidence contracts/development/implementation.md#principled-implementation An exact work/obligations path yields one unique-evidence file-level duty reference per owning layer; naturalness eligibility and pilot-only inapplicability are checked before constructing claims. The reference roots at the production's own `docs/contracts`, because the work obligation is production-owned even when a workspace keeps the shared contracts elsewhere.
11
+ * @evidence contracts/development/implementation.md#principled-implementation An exact work/obligations path yields one unique-evidence file-level duty reference per owning layer; pilot-only inapplicability is checked before constructing claims. The reference roots at the production's own `docs/contracts`, because the work obligation is production-owned even when a workspace keeps the shared contracts elsewhere.
12
12
  * @evidence contracts/development/implementation.md#clear-and-simple-structure The factory keeps once-per-population ownership separate from per-H2 checklist expansion and delegates manuscript selectors to createUnitFiles.
13
13
  * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Pilot-only deferral follows the explicit scope contract; complete-work obligations cannot be suppressed through the inapplicable flag.
14
- * @evidence contracts/development/common.md#meaningful-documentation The comment identifies detached versus inline evidence, file-level answering and exactly one answering document per duty; props state ownership and deferral.
14
+ * @evidence contracts/development/common.md#meaningful-documentation The comment identifies detached evidence, file-level answering and exactly one answering document per duty; props state ownership and deferral.
15
15
  * @evidence contracts/development/implementation.md#efficient-algorithms The document path is scanned once, then l layer entries each produce selector strings and one reference. Time and allocation scale with path bytes plus layer/selector output; typed workloads have only the authored layer set.
16
- * @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work Claims remain distinct per layer and their evidence roots differ by pass; this stateless factory coordinates no reusable requests or mutable shared result.
16
+ * @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work Claims remain distinct per layer with their own selectors and stages; this stateless factory coordinates no reusable requests or mutable shared result.
17
17
  * @evidenceExclude contracts/development/implementation.md#bound-retention-and-release-resources Local path and entry arrays expire on return or throw; the returned claims own their reference and selector arrays and acquire no file handles or tasks.
18
18
  */
19
19
  export declare function createPackagePopulationContract(props: IPackagePopulationContractProps): IEvidenceClaim[];
@@ -2,24 +2,23 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.createPackagePopulationContract = createPackagePopulationContract;
4
4
  const PRODUCTION_CONTRACTS_1 = require("../internal/PRODUCTION_CONTRACTS");
5
- const hasNaturalness_1 = require("./internal/hasNaturalness");
5
+ const BODY_ROOT_1 = require("./internal/utilities/BODY_ROOT");
6
6
  const createEvidenceFiles_1 = require("./internal/utilities/createEvidenceFiles");
7
7
  const createUnitFiles_1 = require("./internal/utilities/createUnitFiles");
8
- const passRoot_1 = require("./internal/utilities/passRoot");
9
8
  /**
10
9
  * Creates one population obligation claim per selected layer.
11
10
  *
12
- * The layer's own documents answer each duty once, at file level. Construction
13
- * uses detached evidence; naturalness uses a working-file comment. Each duty
14
- * has exactly one answering document. A duty is never repeated per H2, because a
15
- * population question restated on every unit is no longer one comparison.
11
+ * The layer's own documents answer each duty once, at file level, through
12
+ * detached construction evidence. Each duty has exactly one answering
13
+ * document. A duty is never repeated per H2, because a population question
14
+ * restated on every unit is no longer one comparison.
16
15
  *
17
- * @evidence contracts/development/implementation.md#principled-implementation An exact work/obligations path yields one unique-evidence file-level duty reference per owning layer; naturalness eligibility and pilot-only inapplicability are checked before constructing claims. The reference roots at the production's own `docs/contracts`, because the work obligation is production-owned even when a workspace keeps the shared contracts elsewhere.
16
+ * @evidence contracts/development/implementation.md#principled-implementation An exact work/obligations path yields one unique-evidence file-level duty reference per owning layer; pilot-only inapplicability is checked before constructing claims. The reference roots at the production's own `docs/contracts`, because the work obligation is production-owned even when a workspace keeps the shared contracts elsewhere.
18
17
  * @evidence contracts/development/implementation.md#clear-and-simple-structure The factory keeps once-per-population ownership separate from per-H2 checklist expansion and delegates manuscript selectors to createUnitFiles.
19
18
  * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Pilot-only deferral follows the explicit scope contract; complete-work obligations cannot be suppressed through the inapplicable flag.
20
- * @evidence contracts/development/common.md#meaningful-documentation The comment identifies detached versus inline evidence, file-level answering and exactly one answering document per duty; props state ownership and deferral.
19
+ * @evidence contracts/development/common.md#meaningful-documentation The comment identifies detached evidence, file-level answering and exactly one answering document per duty; props state ownership and deferral.
21
20
  * @evidence contracts/development/implementation.md#efficient-algorithms The document path is scanned once, then l layer entries each produce selector strings and one reference. Time and allocation scale with path bytes plus layer/selector output; typed workloads have only the authored layer set.
22
- * @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work Claims remain distinct per layer and their evidence roots differ by pass; this stateless factory coordinates no reusable requests or mutable shared result.
21
+ * @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work Claims remain distinct per layer with their own selectors and stages; this stateless factory coordinates no reusable requests or mutable shared result.
23
22
  * @evidenceExclude contracts/development/implementation.md#bound-retention-and-release-resources Local path and entry arrays expire on return or throw; the returned claims own their reference and selector arrays and acquire no file handles or tasks.
24
23
  */
25
24
  function createPackagePopulationContract(props) {
@@ -35,9 +34,6 @@ function createPackagePopulationContract(props) {
35
34
  const layers = Object.entries(props.layers);
36
35
  if (layers.length === 0)
37
36
  throw new Error("A population contract requires at least one owning layer.");
38
- if (props.pass === "final" &&
39
- layers.some(([layer]) => !(0, hasNaturalness_1.hasNaturalness)(layer)))
40
- throw new Error("Only screenplay has a naturalness pass; adopt scripts obligations in construction.");
41
37
  if (props.inapplicable === true &&
42
38
  props.narrativeScope.mode !== "first-part-pilot")
43
39
  throw new Error("A population contract is inapplicable only while a first-part pilot defers a complete-work obligation.");
@@ -54,14 +50,10 @@ function createPackagePopulationContract(props) {
54
50
  return {
55
51
  name: `${layer} documents ${props.reason}`,
56
52
  type: "markdown",
57
- root: (0, passRoot_1.passRoot)(props.pass ?? "draft"),
53
+ root: BODY_ROOT_1.BODY_ROOT,
58
54
  files,
59
55
  symbol: "file",
60
- ...(props.pass === "final"
61
- ? {}
62
- : {
63
- evidenceFiles: (0, createEvidenceFiles_1.createEvidenceFiles)("file", files),
64
- }),
56
+ evidenceFiles: (0, createEvidenceFiles_1.createEvidenceFiles)("file", files),
65
57
  disabled: stage === "disabled" || props.inapplicable === true,
66
58
  reference: obligation,
67
59
  };
@@ -1 +1 @@
1
- {"version":3,"file":"createPackagePopulationContract.js","sourceRoot":"","sources":["../../src/narrative/createPackagePopulationContract.ts"],"names":[],"mappings":";;;AAKA,2EAAwE;AAIxE,8DAA2D;AAC3D,kFAA+E;AAC/E,0EAAuE;AACvE,4DAAyD;AAEzD;;;;;;;;;;;;;;;GAeG;AACH,yCACE,KAAsC;IAEtC,MAAM,kBAAkB,GAAW,KAAK,CAAC,QAAQ,CAAC,UAAU,CAAC,IAAI,EAAE,GAAG,CAAC,CAAC;IACxE,IACE,CAAC,kBAAkB,CAAC,UAAU,CAAC,mBAAmB,CAAC;QACnD,kBAAkB;aACf,KAAK,CAAC,GAAG,CAAC;aACV,IAAI,CACH,CAAC,IAAY,EAAW,EAAE,CAAC,IAAI,KAAK,EAAE,IAAI,IAAI,KAAK,GAAG,IAAI,IAAI,KAAK,IAAI,CACxE;QACH,WAAW,CAAC,IAAI,CAAC,kBAAkB,CAAC;QACpC,CAAC,kBAAkB,CAAC,QAAQ,CAAC,KAAK,CAAC;QACnC,kBAAkB,CAAC,WAAW,EAAE,CAAC,QAAQ,CAAC,WAAW,CAAC;QAEtD,MAAM,IAAI,KAAK,CACb,GAAG,KAAK,CAAC,QAAQ,8EAA8E,CAChG,CAAC;IAEJ,MAAM,MAAM,GAAgC,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;IACzE,IAAI,MAAM,CAAC,MAAM,KAAK,CAAC;QACrB,MAAM,IAAI,KAAK,CACb,2DAA2D,CAC5D,CAAC;IACJ,IACE,KAAK,CAAC,IAAI,KAAK,OAAO;QACtB,MAAM,CAAC,IAAI,CACT,CAAC,CAAC,KAAK,CAA4B,EAAW,EAAE,CAC9C,CAAC,IAAA,+BAAc,EAAC,KAAsB,CAAC,CAC1C;QAED,MAAM,IAAI,KAAK,CACb,oFAAoF,CACrF,CAAC;IACJ,IACE,KAAK,CAAC,YAAY,KAAK,IAAI;QAC3B,KAAK,CAAC,cAAc,CAAC,IAAI,KAAK,kBAAkB;QAEhD,MAAM,IAAI,KAAK,CACb,wGAAwG,CACzG,CAAC;IAEJ,OAAO,MAAM,CAAC,GAAG,CACf,CAAC,CAAC,KAAK,EAAE,KAAK,CAA4B,EASxC,EAAE;QACF,MAAM,UAAU,GAA+B;YAC7C,IAAI,EAAE,UAAU;YAChB,IAAI,EAAE,2CAAoB;YAC1B,KAAK,EAAE,CAAC,kBAAkB,CAAC;YAC3B,MAAM,EAAE,IAAI;YACZ,iBAAiB,EAAE,IAAI;YACvB,cAAc,EAAE,IAAI;SACrB,CAAC;QACF,MAAM,KAAK,GAAa,IAAA,iCAAe,EACrC,KAAsB,EACtB,KAAK,CAAC,cAAc,CACrB,CAAC;QACF,OAAO;YACL,IAAI,EAAE,GAAG,KAAK,cAAc,KAAK,CAAC,MAAM,EAAE;YAC1C,IAAI,EAAE,UAAU;YAChB,IAAI,EAAE,IAAA,mBAAQ,EAAC,KAAK,CAAC,IAAI,IAAI,OAAO,CAAC;YACrC,KAAK;YACL,MAAM,EAAE,MAAM;YACd,GAAG,CAAC,KAAK,CAAC,IAAI,KAAK,OAAO;gBACxB,CAAC,CAAC,EAAE;gBACJ,CAAC,CAAC;oBACE,aAAa,EAAE,IAAA,yCAAmB,EAAC,MAAM,EAAE,KAAK,CAAC;iBAClD,CAAC;YACN,QAAQ,EAAE,KAAK,KAAK,UAAU,IAAI,KAAK,CAAC,YAAY,KAAK,IAAI;YAC7D,SAAS,EAAE,UAAU;SACtB,CAAC;IACJ,CAAC,CACF,CAAC;AACJ,CAAC"}
1
+ {"version":3,"file":"createPackagePopulationContract.js","sourceRoot":"","sources":["../../src/narrative/createPackagePopulationContract.ts"],"names":[],"mappings":";;;AAKA,2EAAwE;AAIxE,8DAA2D;AAC3D,kFAA+E;AAC/E,0EAAuE;AAEvE;;;;;;;;;;;;;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tB,KAAK,CAAC,cAAc,CACrB,CAAC;QACF,OAAO;YACL,IAAI,EAAE,GAAG,KAAK,cAAc,KAAK,CAAC,MAAM,EAAE;YAC1C,IAAI,EAAE,UAAU;YAChB,IAAI,EAAE,qBAAS;YACf,KAAK;YACL,MAAM,EAAE,MAAM;YACd,aAAa,EAAE,IAAA,yCAAmB,EAAC,MAAM,EAAE,KAAK,CAAC;YACjD,QAAQ,EAAE,KAAK,KAAK,UAAU,IAAI,KAAK,CAAC,YAAY,KAAK,IAAI;YAC7D,SAAS,EAAE,UAAU;SACtB,CAAC;IACJ,CAAC,CACF,CAAC;AACJ,CAAC"}
@@ -1,27 +1,24 @@
1
1
  export * from "./AuthoredLayer";
2
- export * from "./AuthoredPass";
2
+ export * from "./EvidenceMetadataRewriteOwnership";
3
+ export * from "./IEvidenceMetadataRenderedSample";
4
+ export * from "./IEvidenceMetadataRewriteFile";
5
+ export * from "./IEvidenceMetadataRewriteProps";
6
+ export * from "./IEvidenceMetadataRewriteReport";
7
+ export * from "./IPackageChecklistClaimProps";
8
+ export * from "./IPackageContractProps";
9
+ export * from "./IPackagePopulationContractProps";
3
10
  export * from "./IProductionConfigProps";
4
11
  export * from "./IProductionConstruction";
5
- export * from "./IProductionLayerStages";
6
12
  export * from "./NarrativeLayer";
7
13
  export * from "./NarrativeScope";
8
14
  export * from "./ProductionStage";
9
- export * from "./createProductionClaims";
10
- export * from "./createProductionConfig";
11
- export * from "./createSettingsFiles";
12
15
  export * from "./createBriefFiles";
13
- export * from "./stripNaturalnessComments";
14
16
  export * from "./createNarrativeUnitFiles";
15
- export * from "./IPackageChecklistClaimProps";
16
17
  export * from "./createPackageChecklistClaim";
17
- export * from "./IPackageContractProps";
18
18
  export * from "./createPackageContract";
19
- export * from "./IPackagePopulationContractProps";
20
19
  export * from "./createPackagePopulationContract";
20
+ export * from "./createProductionClaims";
21
+ export * from "./createProductionConfig";
22
+ export * from "./createSettingsFiles";
21
23
  export * from "./isFirstPartPilot";
22
- export * from "./EvidenceMetadataRewriteOwnership";
23
- export * from "./IEvidenceMetadataRewriteProps";
24
- export * from "./IEvidenceMetadataRewriteReport";
25
- export * from "./IEvidenceMetadataRenderedSample";
26
- export * from "./IEvidenceMetadataRewriteFile";
27
24
  export * from "./verifyEvidenceMetadataRewrite";
@@ -15,30 +15,27 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./AuthoredLayer"), exports);
18
- __exportStar(require("./AuthoredPass"), exports);
18
+ __exportStar(require("./EvidenceMetadataRewriteOwnership"), exports);
19
+ __exportStar(require("./IEvidenceMetadataRenderedSample"), exports);
20
+ __exportStar(require("./IEvidenceMetadataRewriteFile"), exports);
21
+ __exportStar(require("./IEvidenceMetadataRewriteProps"), exports);
22
+ __exportStar(require("./IEvidenceMetadataRewriteReport"), exports);
23
+ __exportStar(require("./IPackageChecklistClaimProps"), exports);
24
+ __exportStar(require("./IPackageContractProps"), exports);
25
+ __exportStar(require("./IPackagePopulationContractProps"), exports);
19
26
  __exportStar(require("./IProductionConfigProps"), exports);
20
27
  __exportStar(require("./IProductionConstruction"), exports);
21
- __exportStar(require("./IProductionLayerStages"), exports);
22
28
  __exportStar(require("./NarrativeLayer"), exports);
23
29
  __exportStar(require("./NarrativeScope"), exports);
24
30
  __exportStar(require("./ProductionStage"), exports);
25
- __exportStar(require("./createProductionClaims"), exports);
26
- __exportStar(require("./createProductionConfig"), exports);
27
- __exportStar(require("./createSettingsFiles"), exports);
28
31
  __exportStar(require("./createBriefFiles"), exports);
29
- __exportStar(require("./stripNaturalnessComments"), exports);
30
32
  __exportStar(require("./createNarrativeUnitFiles"), exports);
31
- __exportStar(require("./IPackageChecklistClaimProps"), exports);
32
33
  __exportStar(require("./createPackageChecklistClaim"), exports);
33
- __exportStar(require("./IPackageContractProps"), exports);
34
34
  __exportStar(require("./createPackageContract"), exports);
35
- __exportStar(require("./IPackagePopulationContractProps"), exports);
36
35
  __exportStar(require("./createPackagePopulationContract"), exports);
36
+ __exportStar(require("./createProductionClaims"), exports);
37
+ __exportStar(require("./createProductionConfig"), exports);
38
+ __exportStar(require("./createSettingsFiles"), exports);
37
39
  __exportStar(require("./isFirstPartPilot"), exports);
38
- __exportStar(require("./EvidenceMetadataRewriteOwnership"), exports);
39
- __exportStar(require("./IEvidenceMetadataRewriteProps"), exports);
40
- __exportStar(require("./IEvidenceMetadataRewriteReport"), exports);
41
- __exportStar(require("./IEvidenceMetadataRenderedSample"), exports);
42
- __exportStar(require("./IEvidenceMetadataRewriteFile"), exports);
43
40
  __exportStar(require("./verifyEvidenceMetadataRewrite"), exports);
44
41
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/narrative/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,kDAAgC;AAChC,iDAA+B;AAC/B,2DAAyC;AACzC,4DAA0C;AAC1C,2DAAyC;AACzC,mDAAiC;AACjC,mDAAiC;AACjC,oDAAkC;AAClC,2DAAyC;AACzC,2DAAyC;AACzC,wDAAsC;AACtC,qDAAmC;AACnC,6DAA2C;AAC3C,6DAA2C;AAC3C,gEAA8C;AAC9C,gEAA8C;AAC9C,0DAAwC;AACxC,0DAAwC;AACxC,oEAAkD;AAClD,oEAAkD;AAClD,qDAAmC;AACnC,qEAAmD;AACnD,kEAAgD;AAChD,mEAAiD;AACjD,oEAAkD;AAClD,iEAA+C;AAC/C,kEAAgD"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/narrative/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,kDAAgC;AAChC,qEAAmD;AACnD,oEAAkD;AAClD,iEAA+C;AAC/C,kEAAgD;AAChD,mEAAiD;AACjD,gEAA8C;AAC9C,0DAAwC;AACxC,oEAAkD;AAClD,2DAAyC;AACzC,4DAA0C;AAC1C,mDAAiC;AACjC,mDAAiC;AACjC,oDAAkC;AAClC,qDAAmC;AACnC,6DAA2C;AAC3C,gEAA8C;AAC9C,0DAAwC;AACxC,oEAAkD;AAClD,2DAAyC;AACzC,2DAAyC;AACzC,wDAAsC;AACtC,qDAAmC;AACnC,kEAAgD"}
@@ -6,7 +6,7 @@ import type { AuthoredLayer } from "../AuthoredLayer";
6
6
  * below, so a question about the words themselves can only be asked here.
7
7
  *
8
8
  * Principled implementation: The set names scripts and screenplay as the only layers holding literal expression rather than documentary plans.
9
- * Clear and simple design: Naturalness question discovery shares this two-layer eligibility vocabulary.
9
+ * Clear and simple design: layerFiles reads this two-layer eligibility vocabulary for every contract family that asks about literal text.
10
10
  * Prohibited implementation shortcuts: The literal layers express supported domain responsibility and do not depend on caller or fixture identities.
11
11
  * Meaningful documentation: The prose states the ordering or expression-versus-plan distinction needed by consumers.
12
12
  * Efficient algorithms: Initialization stores a fixed four-element array or two-element set; iteration is bounded by that vocabulary and set membership is expected constant time.