@automovie/evidence 0.3.2 → 0.3.4

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 (97) hide show
  1. package/README.md +12 -2
  2. package/lib/IAutoMovieDevelopmentProps.d.ts +7 -4
  3. package/lib/IAutoMovieEvidenceConfigProps.d.ts +2 -2
  4. package/lib/createDevelopmentContractClaims.d.ts +8 -10
  5. package/lib/createDevelopmentContractClaims.js +31 -13
  6. package/lib/createDevelopmentContractClaims.js.map +1 -1
  7. package/lib/createEvidenceConfig.d.ts +5 -2
  8. package/lib/createEvidenceConfig.js +29 -3
  9. package/lib/createEvidenceConfig.js.map +1 -1
  10. package/lib/createResearchClaims.d.ts +2 -2
  11. package/lib/createResearchClaims.js +3 -3
  12. package/lib/createResearchClaims.js.map +1 -1
  13. package/lib/internal/STORY_CONTRACTS.d.ts +1 -1
  14. package/lib/internal/STORY_CONTRACTS.js +1 -1
  15. package/lib/internal/assertFilmCatalogLayout.d.ts +18 -0
  16. package/lib/internal/assertFilmCatalogLayout.js +49 -0
  17. package/lib/internal/assertFilmCatalogLayout.js.map +1 -0
  18. package/lib/internal/hasMatchingFile.d.ts +13 -0
  19. package/lib/internal/hasMatchingFile.js +28 -0
  20. package/lib/internal/hasMatchingFile.js.map +1 -0
  21. package/lib/narrative/NarrativeLayer.d.ts +2 -2
  22. package/lib/narrative/createPackageChecklistClaim.js +2 -4
  23. package/lib/narrative/createPackageChecklistClaim.js.map +1 -1
  24. package/lib/narrative/internal/claims/createInstructionCoverageClaim.d.ts +3 -3
  25. package/lib/narrative/internal/claims/createInstructionCoverageClaim.js +3 -3
  26. package/lib/narrative/internal/claims/createLayerClaims.d.ts +5 -5
  27. package/lib/narrative/internal/claims/createLayerClaims.js +5 -23
  28. package/lib/narrative/internal/claims/createLayerClaims.js.map +1 -1
  29. package/lib/narrative/internal/claims/createOutlineClaims.js +3 -4
  30. package/lib/narrative/internal/claims/createOutlineClaims.js.map +1 -1
  31. package/lib/narrative/internal/claims/createPopulationObligationClaims.d.ts +6 -7
  32. package/lib/narrative/internal/claims/createPopulationObligationClaims.js +12 -29
  33. package/lib/narrative/internal/claims/createPopulationObligationClaims.js.map +1 -1
  34. package/lib/narrative/internal/claims/createReviewClaims.js +3 -17
  35. package/lib/narrative/internal/claims/createReviewClaims.js.map +1 -1
  36. package/lib/narrative/internal/claims/createSettingCoverageClaim.d.ts +1 -1
  37. package/lib/narrative/internal/claims/createSettingCoverageClaim.js +1 -1
  38. package/lib/narrative/internal/claims/index.d.ts +0 -1
  39. package/lib/narrative/internal/claims/index.js +0 -1
  40. package/lib/narrative/internal/claims/index.js.map +1 -1
  41. package/lib/narrative/internal/collectProductionClaims.js +1 -4
  42. package/lib/narrative/internal/collectProductionClaims.js.map +1 -1
  43. package/lib/narrative/internal/index.d.ts +0 -1
  44. package/lib/narrative/internal/index.js +0 -1
  45. package/lib/narrative/internal/index.js.map +1 -1
  46. package/lib/narrative/internal/references/createLanguagePrincipleReferences.d.ts +4 -7
  47. package/lib/narrative/internal/references/createLanguagePrincipleReferences.js +5 -7
  48. package/lib/narrative/internal/references/createLanguagePrincipleReferences.js.map +1 -1
  49. package/lib/narrative/internal/references/createPrincipleReferences.d.ts +6 -17
  50. package/lib/narrative/internal/references/createPrincipleReferences.js +10 -31
  51. package/lib/narrative/internal/references/createPrincipleReferences.js.map +1 -1
  52. package/lib/narrative/internal/references/createSharedReference.d.ts +3 -4
  53. package/lib/narrative/internal/references/createSharedReference.js +4 -5
  54. package/lib/narrative/internal/references/createSharedReference.js.map +1 -1
  55. package/lib/narrative/internal/references/layerFiles.d.ts +5 -6
  56. package/lib/narrative/internal/references/layerFiles.js +6 -8
  57. package/lib/narrative/internal/references/layerFiles.js.map +1 -1
  58. package/lib/narrative/internal/utilities/createContractRoot.d.ts +6 -10
  59. package/lib/narrative/internal/utilities/createContractRoot.js +6 -10
  60. package/lib/narrative/internal/utilities/createContractRoot.js.map +1 -1
  61. package/lib/narrative/internal/utilities/hasStoryContract.d.ts +17 -0
  62. package/lib/narrative/internal/utilities/hasStoryContract.js +28 -0
  63. package/lib/narrative/internal/utilities/hasStoryContract.js.map +1 -0
  64. package/package.json +1 -1
  65. package/src/IAutoMovieDevelopmentProps.ts +7 -4
  66. package/src/IAutoMovieEvidenceConfigProps.ts +2 -2
  67. package/src/createDevelopmentContractClaims.ts +31 -13
  68. package/src/createEvidenceConfig.ts +36 -3
  69. package/src/createResearchClaims.ts +3 -3
  70. package/src/internal/STORY_CONTRACTS.ts +1 -1
  71. package/src/internal/assertFilmCatalogLayout.ts +55 -0
  72. package/src/internal/hasMatchingFile.ts +29 -0
  73. package/src/narrative/NarrativeLayer.ts +2 -2
  74. package/src/narrative/createPackageChecklistClaim.ts +2 -4
  75. package/src/narrative/internal/claims/createInstructionCoverageClaim.ts +3 -3
  76. package/src/narrative/internal/claims/createLayerClaims.ts +5 -25
  77. package/src/narrative/internal/claims/createOutlineClaims.ts +3 -12
  78. package/src/narrative/internal/claims/createPopulationObligationClaims.ts +14 -46
  79. package/src/narrative/internal/claims/createReviewClaims.ts +3 -25
  80. package/src/narrative/internal/claims/createSettingCoverageClaim.ts +1 -1
  81. package/src/narrative/internal/claims/index.ts +0 -1
  82. package/src/narrative/internal/collectProductionClaims.ts +1 -4
  83. package/src/narrative/internal/index.ts +0 -1
  84. package/src/narrative/internal/references/createLanguagePrincipleReferences.ts +5 -8
  85. package/src/narrative/internal/references/createPrincipleReferences.ts +13 -38
  86. package/src/narrative/internal/references/createSharedReference.ts +4 -5
  87. package/src/narrative/internal/references/layerFiles.ts +6 -8
  88. package/src/narrative/internal/utilities/createContractRoot.ts +6 -10
  89. package/src/narrative/internal/utilities/hasStoryContract.ts +29 -0
  90. package/lib/narrative/internal/REALIZED_LAYERS.d.ts +0 -16
  91. package/lib/narrative/internal/REALIZED_LAYERS.js +0 -19
  92. package/lib/narrative/internal/REALIZED_LAYERS.js.map +0 -1
  93. package/lib/narrative/internal/claims/createExpressionObligationClaims.d.ts +0 -26
  94. package/lib/narrative/internal/claims/createExpressionObligationClaims.js +0 -93
  95. package/lib/narrative/internal/claims/createExpressionObligationClaims.js.map +0 -1
  96. package/src/narrative/internal/REALIZED_LAYERS.ts +0 -18
  97. package/src/narrative/internal/claims/createExpressionObligationClaims.ts +0 -125
package/README.md CHANGED
@@ -36,6 +36,10 @@ export default createEvidenceConfig({
36
36
 
37
37
  The production's own contracts, `work/**` and `language/**`, hold the questions specific to that work and to its language, and live under `<location>/docs/contracts` in either layout.
38
38
 
39
+ Bundled story citations start at `contracts/story`. When upgrading, install the matching scaffold. For active answers to checklists that kept their names, drop the former `shared/` prefix. Final-expression questions moved into `principles/screenplay.md` for sections and `obligations/screenplay.md` for whole-film comparisons. For example, `shared/naturalness/realized.md#speech-yield` is now `principles/screenplay.md#speech-yield`.
40
+
41
+ If the production supplied its own `docs/contracts/language/naturalness/` questions, merge the ones it still uses into the corresponding screenplay files under `docs/contracts/language/`. Reconcile active answers with their current questions and respondents. Preserve the revision a closed review covered.
42
+
39
43
  ### Narrative
40
44
 
41
45
  Add `narrative` when the production writes a screenplay:
@@ -52,6 +56,8 @@ export default createEvidenceConfig({
52
56
 
53
57
  `construction` checks how each layer is built from the one before it. Setting a layer to `"evidence"` turns its check on, and setting a finished layer back to `"disabled"` leaves the layers still running unaffected.
54
58
 
59
+ Long-route scripts answer for scene progression, draft exchanges and event coverage. On both routes, final wording is checked during screenplay construction. Each section answers `principles/screenplay.md`. Each comparison across the film in `obligations/screenplay.md` takes one file answer.
60
+
55
61
  `short` is a brief under `docs/body/brief` followed by the screenplay, and `long`, the mode of a series, has four layers: settings, treatments, scripts and screenplay. A layer you leave out stays a disabled draft. The checks cover the complete work unless `scope` names the first part that a pilot covers.
56
62
 
57
63
  The screenplay is one folder per film with one file per scene: `docs/body/screenplay/<film>/NNN-<scene>.md` for a short, and `docs/body/screenplay/NNN-part/NNN-episode/NNN-<scene>.md` for a series, where each scene file realizes one scene of its episode's script. Both depths are selected on either route.
@@ -60,7 +66,9 @@ The screenplay is one folder per film with one file per scene: `docs/body/screen
60
66
 
61
67
  ### Research and development contracts
62
68
 
63
- Add `research` to hold each study in `docs/research/` to the research contract, and `development` when it builds the film's entities, behaviors and scenes in code:
69
+ With `narrative.mode: "short"`, the first study under `docs/research/` activates research by default. The top-level index alone does not activate it. Set `research` explicitly on other routes or when closing a research stage. Use `development` when a production builds entities, behaviors and scenes in code.
70
+
71
+ When composition Evidence opens for programmed scenes or films, it expects case sources under `src/composition/scenes/catalog/`, the film at `src/composition/films/catalog.ts` and the record at `docs/acceptance/catalog.md`. The catalog answers the composition checklist. Screenplay coverage comes from the production scenes and films. The director verifies the registered catalog plays and judges the tested conditions.
64
72
 
65
73
  ```ts
66
74
  export default createEvidenceConfig({
@@ -76,11 +84,13 @@ export default createEvidenceConfig({
76
84
 
77
85
  | Option | Checks | Against |
78
86
  | --- | --- | --- |
79
- | `research` | Each study in `docs/research/` | `contracts/story/shared/principles/research.md` |
87
+ | `research` | Each study in `docs/research/` | `contracts/story/principles/research.md` |
80
88
  | `development.entities` | Exports under `src/entities/` | `contracts/development/entities.md` |
81
89
  | `development.behaviors` | Exports under `src/laws/`, `src/interactions/` and `src/consequences/` | `contracts/development/behaviors.md` |
82
90
  | `development.composition` | Exports under `src/composition/` | `contracts/development/composition.md`, citing the screenplay scene files, sections and beats they realize |
83
91
 
92
+ When entities or composition are submitted, entity types cite the subject files in `cast/`, `crowds/`, `props/` and `sets/` under a short's `docs/body/brief/` or a long work's `docs/body/settings/`. For example, `@evidence docs/body/brief/props/ball.md The ball uses the brief's red panels.`
93
+
84
94
  Every screenplay section and beat must be realized by some scene, and every scene file by the film that orders it. Under `narrative: { mode: "none" }` with `development.composition`, every section of `docs/instructions/` must be realized by some composition or entity too, with no exclusion, because no narrative layer cites them. An option you leave out stays disabled.
85
95
 
86
96
  ### Your own claims
@@ -19,13 +19,14 @@
19
19
  export interface IAutoMovieDevelopmentProps {
20
20
  /**
21
21
  * Types, classes, functions and methods under `src/entities/` answer
22
- * `contracts/development/entities.md`.
22
+ * `contracts/development/entities.md`. Submitting entities or composition
23
+ * on a narrative route also connects entity types to its subject records.
23
24
  */
24
25
  entities?: "disabled" | "evidence";
25
26
  /**
26
27
  * Functions and methods under `src/laws/`, `src/interactions/` and
27
- * `src/consequences/` answer `contracts/development/behaviors.md`. A law
28
- * names the study it follows in its answer; no study citation is required.
28
+ * `src/consequences/` answer `contracts/development/behaviors.md`. Cite a
29
+ * skilled behavior's study passage in its studied laws answer.
29
30
  */
30
31
  behaviors?: "disabled" | "evidence";
31
32
  /**
@@ -33,7 +34,9 @@ export interface IAutoMovieDevelopmentProps {
33
34
  * `contracts/development/composition.md` and cite a screenplay scene file
34
35
  * or its sections and beats, every section and beat of which must be cited;
35
36
  * those under `src/composition/films/` answer it and cite the scene files
36
- * they order, every one of which must belong to a film.
37
+ * they order, every one of which must belong to a film. Catalog sources
38
+ * answer the composition checklist alone. Submitting programmed film or
39
+ * scene sources requires the catalog film, case sources and acceptance record.
37
40
  */
38
41
  composition?: "disabled" | "evidence";
39
42
  }
@@ -18,7 +18,7 @@ export interface IAutoMovieEvidenceConfigProps {
18
18
  * contracts, absolute or relative to `location`.
19
19
  *
20
20
  * The engineering and development checklists (`contracts/development/**`)
21
- * and the shared story contracts (`contracts/story/shared/**`) resolve here.
21
+ * and the shared story contracts (`contracts/story/**`) resolve here.
22
22
  * The production's own `work/**` and `language/**` contracts always resolve
23
23
  * under `<location>/docs/contracts`, never here. A workspace
24
24
  * production passes the workspace root's tree; a standalone production omits
@@ -34,6 +34,6 @@ export interface IAutoMovieEvidenceConfigProps {
34
34
  narrative?: IAutoMovieNarrativeProps | IAutoMovieNoNarrativeProps;
35
35
  /** Entity, behavior and composition development contracts; omitted stages stay disabled. */
36
36
  development?: IAutoMovieDevelopmentProps;
37
- /** Research studies answer the story research principles when `"evidence"`; disabled by default. */
37
+ /** Overrides research selection. By default a short selects all studies once one exists beyond the index. Other routes leave research disabled. */
38
38
  research?: "disabled" | "evidence";
39
39
  }
@@ -9,25 +9,23 @@ import type { IAutoMovieDevelopmentProps } from "./IAutoMovieDevelopmentProps";
9
9
  * tree at `props.skills`, by default the production's own `.agents/skills`.
10
10
  * Entities answer with their types, classes, functions and methods, because an
11
11
  * entity is a class whose methods are its capabilities. Behaviors (laws,
12
- * interactions and consequences) answer their checklist alone: most only
13
- * compose installed actions and follow no study, and a study can serve the
14
- * screenplay without any code, so neither direction of a study relation
15
- * holds for every production. A law names the study it follows in its
16
- * answer, which review judges.
12
+ * interactions and consequences) answer the behaviors checklist. For skilled
13
+ * practice, the studied laws answer cites the observations used to coordinate
14
+ * even installed actions. A study can also serve the screenplay alone.
17
15
  * Scenes cite the screenplay scene file, or the sections and beats of it they
18
16
  * realize, and every H2 section and H3 beat must be realized; films cite each
19
- * scene file they order, and every scene file must belong to a film. With
17
+ * scene file they order, and every scene file must belong to a film. Catalog
18
+ * scenes and the catalog film answer the composition checklist alone. With
20
19
  * `instructions`, the composition and entities must also realize every
21
20
  * instruction section, which no narrative layer then cites, with no
22
- * exclusion. Entities answer their checklist alone too, because their
23
- * settings citations are judged by review rather than required for every
24
- * settings heading.
21
+ * exclusion. The public configuration adds coverage of the route's subject
22
+ * records when entities or composition are submitted.
25
23
  *
26
24
  * @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.
27
25
  * @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.
28
26
  * @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.
29
27
  * @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.
30
- * @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.
28
+ * @evidence contracts/development/implementation.md#efficient-algorithms Builds at most six fixed-size claim trees in constant time without file I/O.
31
29
  * @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.
32
30
  * @evidence contracts/development/implementation.md#bound-retention-and-release-resources The caller owns the returned claims; nothing is retained.
33
31
  */
@@ -11,25 +11,23 @@ const SKILLS_ROOT_1 = require("./internal/SKILLS_ROOT");
11
11
  * tree at `props.skills`, by default the production's own `.agents/skills`.
12
12
  * Entities answer with their types, classes, functions and methods, because an
13
13
  * entity is a class whose methods are its capabilities. Behaviors (laws,
14
- * interactions and consequences) answer their checklist alone: most only
15
- * compose installed actions and follow no study, and a study can serve the
16
- * screenplay without any code, so neither direction of a study relation
17
- * holds for every production. A law names the study it follows in its
18
- * answer, which review judges.
14
+ * interactions and consequences) answer the behaviors checklist. For skilled
15
+ * practice, the studied laws answer cites the observations used to coordinate
16
+ * even installed actions. A study can also serve the screenplay alone.
19
17
  * Scenes cite the screenplay scene file, or the sections and beats of it they
20
18
  * realize, and every H2 section and H3 beat must be realized; films cite each
21
- * scene file they order, and every scene file must belong to a film. With
19
+ * scene file they order, and every scene file must belong to a film. Catalog
20
+ * scenes and the catalog film answer the composition checklist alone. With
22
21
  * `instructions`, the composition and entities must also realize every
23
22
  * instruction section, which no narrative layer then cites, with no
24
- * exclusion. Entities answer their checklist alone too, because their
25
- * settings citations are judged by review rather than required for every
26
- * settings heading.
23
+ * exclusion. The public configuration adds coverage of the route's subject
24
+ * records when entities or composition are submitted.
27
25
  *
28
26
  * @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.
29
27
  * @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.
30
28
  * @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.
31
29
  * @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.
32
- * @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.
30
+ * @evidence contracts/development/implementation.md#efficient-algorithms Builds at most six fixed-size claim trees in constant time without file I/O.
33
31
  * @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.
34
32
  * @evidence contracts/development/implementation.md#bound-retention-and-release-resources The caller owns the returned claims; nothing is retained.
35
33
  */
@@ -55,17 +53,32 @@ function createDevelopmentContractClaims(props = {}) {
55
53
  {
56
54
  stage: "composition",
57
55
  name: "scenes",
58
- files: ["src/composition/scenes/**/*.ts"],
56
+ files: [
57
+ "src/composition/scenes/**/*.ts",
58
+ "!src/composition/scenes/catalog/**",
59
+ ],
59
60
  symbol: ["function"],
60
61
  cited: { type: "markdown", files: screenplay, symbol: ["h2", "h3"] },
61
62
  },
62
63
  {
63
64
  stage: "composition",
64
65
  name: "films",
65
- files: ["src/composition/films/**/*.ts"],
66
+ files: [
67
+ "src/composition/films/**/*.ts",
68
+ "!src/composition/films/catalog.ts",
69
+ ],
66
70
  symbol: ["function"],
67
71
  cited: { type: "markdown", files: screenplay, symbol: "file" },
68
72
  },
73
+ {
74
+ stage: "composition",
75
+ name: "review catalog",
76
+ files: [
77
+ "src/composition/scenes/catalog/**/*.ts",
78
+ "src/composition/films/catalog.ts",
79
+ ],
80
+ symbol: ["function"],
81
+ },
69
82
  ];
70
83
  const claims = populations
71
84
  .filter((entry) => props[entry.stage] === "evidence")
@@ -89,7 +102,12 @@ function createDevelopmentContractClaims(props = {}) {
89
102
  claims.push({
90
103
  name: "the code realizes every instruction section",
91
104
  type: "typescript",
92
- files: ["src/composition/**/*.ts", "src/entities/**/*.ts"],
105
+ files: [
106
+ "src/composition/**/*.ts",
107
+ "!src/composition/scenes/catalog/**",
108
+ "!src/composition/films/catalog.ts",
109
+ "src/entities/**/*.ts",
110
+ ],
93
111
  symbol: ["type", "function"],
94
112
  reference: {
95
113
  type: "markdown",
@@ -1 +1 @@
1
- {"version":3,"file":"createDevelopmentContractClaims.js","sourceRoot":"","sources":["../src/createDevelopmentContractClaims.ts"],"names":[],"mappings":";;;AAOA,wDAAqD;AAErD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AACH,yCACE,KAAK,GAiBD,EAAE;IAEN,MAAM,UAAU,GAAa,CAAC,8BAA8B,CAAC,CAAC;IAC9D,MAAM,WAAW,GAMX;QACJ;YACE,KAAK,EAAE,UAAU;YACjB,IAAI,EAAE,UAAU;YAChB,KAAK,EAAE,CAAC,sBAAsB,CAAC;YAC/B,MAAM,EAAE,CAAC,MAAM,EAAE,UAAU,CAAC;SAC7B;QACD;YACE,KAAK,EAAE,WAAW;YAClB,IAAI,EAAE,WAAW;YACjB,KAAK,EAAE;gBACL,kBAAkB;gBAClB,0BAA0B;gBAC1B,0BAA0B;aAC3B;YACD,MAAM,EAAE,CAAC,UAAU,CAAC;SACrB;QACD;YACE,KAAK,EAAE,aAAa;YACpB,IAAI,EAAE,QAAQ;YACd,KAAK,EAAE,CAAC,gCAAgC,CAAC;YACzC,MAAM,EAAE,CAAC,UAAU,CAAC;YACpB,KAAK,EAAE,EAAE,IAAI,EAAE,UAAU,EAAE,KAAK,EAAE,UA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BAAyB,EAAE,sBAAsB,CAAC;YAC1D,MAAM,EAAE,CAAC,MAAM,EAAE,UAAU,CAAC;YAC5B,SAAS,EAAE;gBACT,IAAI,EAAE,UAAU;gBAChB,KAAK,EAAE,CAAC,wBAAwB,CAAC;gBACjC,MAAM,EAAE,IAAI;gBACZ,iBAAiB,EAAE,IAAI;aACxB;SACF,CAAC,CAAC;IACL,OAAO,MAAM,CAAC;AAChB,CAAC"}
1
+ {"version":3,"file":"createDevelopmentContractClaims.js","sourceRoot":"","sources":["../src/createDevelopmentContractClaims.ts"],"names":[],"mappings":";;;AAOA,wDAAqD;AAErD;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACH,yCACE,KAAK,GAiBD,EAAE;IAEN,MAAM,UAAU,GAAa,CAAC,8BAA8B,CAAC,CAAC;IAC9D,MAAM,WAAW,GAMX;QACJ;YACE,KAAK,EAAE,UAAU;YACjB,IAAI,EAAE,UAAU;YAChB,KAAK,EAAE,CAAC,sBAAsB,CAAC;YAC/B,MAAM,EAAE,CAAC,MAAM,EAAE,UAAU,CAAC;SAC7B;QACD;YACE,KAAK,EAAE,WAAW;YAClB,IAAI,EAAE,WAAW;YACjB,KAAK,EAAE;gBACL,kBAAkB;gBAClB,0BAA0B;gBAC1B,0BAA0B;aAC3B;YACD,MAAM,EAAE,CAAC,UAAU,CAAC;SACrB;QACD;YACE,KAAK,EAAE,aAAa;YACpB,IAAI,EAAE,QAAQ;YACd,KAAK,EAAE;gBACL,gCAAgC;gBAChC,oCAAoC;aACrC;YACD,MAAM,EAAE,CAAC,UAAU,CAAC;YACpB,KAAK,EAAE,EAAE,IAAI,EAAE,UAAU,EAAE,KAAK,EAAE,UAAU,EAAE,MAAM,EAAE,CAAC,IAAI,EAAE,IAAI,CAAC,EAAE;SACrE;QACD;YACE,KAAK,EAAE,aAAa;YACpB,IAAI,EAAE,OAAO;YACb,KAAK,EAAE;gBACL,+BAA+B;gBAC/B,mCAAmC;aACpC;YACD,MAAM,EAAE,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;gBACpC,mCAAmC;gBACnC,sBAAsB;aACvB;YACD,MAAM,EAAE,CAAC,MAAM,EAAE,UAAU,CAAC;YAC5B,SAAS,EAAE;gBACT,IAAI,EAAE,UAAU;gBAChB,KAAK,EAAE,CAAC,wBAAwB,CAAC;gBACjC,MAAM,EAAE,IAAI;gBACZ,iBAAiB,EAAE,IAAI;aACxB;SACF,CAAC,CAAC;IACL,OAAO,MAAM,CAAC;AAChB,CAAC"}
@@ -7,12 +7,15 @@ import type { IAutoMovieEvidenceConfigProps } from "./IAutoMovieEvidenceConfigPr
7
7
  * narrative factories, which keep production-owned work and language contracts
8
8
  * under `<location>/docs/contracts`, and its root relative to `location` goes to the default
9
9
  * engineering, development and research claims. Caller-supplied `claims` are
10
- * added after the defaults as written, so they name their own root.
10
+ * added after the defaults as written, so they name their own root. A short
11
+ * narrative includes its studies by default once one exists.
12
+ * Film composition validates its catalog inputs before building claims.
13
+ * On a story route the production's entity types cite their subject records.
11
14
  *
12
15
  * @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.
13
16
  * @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.
14
17
  * @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.
15
- * @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.
18
+ * @evidence contracts/development/implementation.md#efficient-algorithms Only submitted entities or composition on a story route probe for subject files. Only an omitted research option on the short route probes for studies. Enabled composition checks catalog inputs and mode none probes for instructions.
16
19
  * @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.
17
20
  * @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.
18
21
  * @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.
@@ -9,8 +9,10 @@ const node_path_1 = __importDefault(require("node:path"));
9
9
  const createDevelopmentContractClaims_1 = require("./createDevelopmentContractClaims");
10
10
  const createEngineeringClaims_1 = require("./createEngineeringClaims");
11
11
  const createResearchClaims_1 = require("./createResearchClaims");
12
+ const assertFilmCatalogLayout_1 = require("./internal/assertFilmCatalogLayout");
12
13
  const assertProductionContractLayout_1 = require("./internal/assertProductionContractLayout");
13
14
  const createReferenceRoot_1 = require("./internal/createReferenceRoot");
15
+ const hasMatchingFile_1 = require("./internal/hasMatchingFile");
14
16
  const resolveSkillsDirectory_1 = require("./internal/resolveSkillsDirectory");
15
17
  const createProductionConfig_1 = require("./narrative/createProductionConfig");
16
18
  /**
@@ -20,12 +22,15 @@ const createProductionConfig_1 = require("./narrative/createProductionConfig");
20
22
  * narrative factories, which keep production-owned work and language contracts
21
23
  * under `<location>/docs/contracts`, and its root relative to `location` goes to the default
22
24
  * engineering, development and research claims. Caller-supplied `claims` are
23
- * added after the defaults as written, so they name their own root.
25
+ * added after the defaults as written, so they name their own root. A short
26
+ * narrative includes its studies by default once one exists.
27
+ * Film composition validates its catalog inputs before building claims.
28
+ * On a story route the production's entity types cite their subject records.
24
29
  *
25
30
  * @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.
26
31
  * @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.
27
32
  * @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.
28
- * @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.
33
+ * @evidence contracts/development/implementation.md#efficient-algorithms Only submitted entities or composition on a story route probe for subject files. Only an omitted research option on the short route probes for studies. Enabled composition checks catalog inputs and mode none probes for instructions.
29
34
  * @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.
30
35
  * @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.
31
36
  * @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.
@@ -34,6 +39,8 @@ function createEvidenceConfig(props) {
34
39
  if (!node_path_1.default.isAbsolute(props.location))
35
40
  throw new Error("Evidence location must be an absolute project directory, such as import.meta.dirname.");
36
41
  (0, assertProductionContractLayout_1.assertProductionContractLayout)(props.location);
42
+ if (props.development?.composition === "evidence")
43
+ (0, assertFilmCatalogLayout_1.assertFilmCatalogLayout)(props.location);
37
44
  const skills = (0, resolveSkillsDirectory_1.resolveSkillsDirectory)(props);
38
45
  const root = (0, createReferenceRoot_1.createReferenceRoot)(props.location, skills);
39
46
  const claims = [
@@ -46,7 +53,26 @@ function createEvidenceConfig(props) {
46
53
  instructions: props.narrative?.mode === "none" &&
47
54
  node_fs_1.default.existsSync(node_path_1.default.join(props.location, "docs", "instructions")),
48
55
  }));
49
- if (props.research === "evidence")
56
+ if ((props.development?.entities === "evidence" ||
57
+ props.development?.composition === "evidence") &&
58
+ (props.narrative?.mode === "short" || props.narrative?.mode === "long")) {
59
+ const layer = props.narrative.mode === "short" ? "brief" : "settings";
60
+ const subjects = ["cast", "crowds", "props", "sets"].map((domain) => `docs/body/${layer}/${domain}/*.md`);
61
+ if ((0, hasMatchingFile_1.hasMatchingFile)(props.location, subjects, []))
62
+ claims.push({
63
+ name: `production entities cite ${layer} subjects`,
64
+ type: "typescript",
65
+ files: ["src/entities/**/*.ts"],
66
+ symbol: "type",
67
+ reference: { type: "markdown", files: subjects, symbol: "file" },
68
+ });
69
+ }
70
+ if (props.research === "evidence" ||
71
+ (props.research === undefined &&
72
+ props.narrative?.mode === "short" &&
73
+ (0, hasMatchingFile_1.hasMatchingFile)(props.location, "docs/research/**/*.md", [
74
+ "docs/research/index.md",
75
+ ])))
50
76
  claims.push(...(0, createResearchClaims_1.createResearchClaims)({ skills: root }));
51
77
  if (props.narrative === undefined)
52
78
  return { severity: "error", claims };
@@ -1 +1 @@
1
- {"version":3,"file":"createEvidenceConfig.js","sourceRoot":"","sources":["../src/createEvidenceConfig.ts"],"names":[],"mappings":";;;;;;AACA,sDAAyB;AACzB,0DAA6B;AAG7B,uFAAoF;AACpF,uEAAoE;AACpE,iEAA8D;AAC9D,8FAA2F;AAC3F,wEAAqE;AACrE,8EAA2E;AAC3E,+EAA4E;AAE5E;;;;;;;;;;;;;;;;GAgBG;AACH,8BACE,KAAoC;IAEpC,IAAI,CAAC,mBAAI,CAAC,UAAU,CAAC,KAAK,CAAC,QAAQ,CAAC;QAClC,MAAM,IAAI,KAAK,CACb,uF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AAY,IAAI,EAAE,CAAC;SACvD;QACD,aAAa,EAAE,MAAM;QACrB,MAAM,EAAE,eAAe,CAAC,KAAK,CAAC,SAAS,CAAC,MAAM,IAAI,EAAE,CAAC;KACtD,CAAC,CAAC;AACL,CAAC"}
@@ -4,9 +4,9 @@ import type { IEvidenceClaim } from "@wrtnlabs/evidence";
4
4
  * principles.
5
5
  *
6
6
  * Each study in `docs/research/`, apart from its index, answers every item of
7
- * `contracts/story/shared/principles/research.md`, read from the skills tree at
7
+ * `contracts/story/principles/research.md`, read from the skills tree at
8
8
  * `skills`, by default the production's own `.agents/skills`. The citation
9
- * address, `shared/principles/research.md`, is the same wherever that tree
9
+ * address, `principles/research.md`, is the same wherever that tree
10
10
  * lives. Like the other story layers, the answers live apart from the study,
11
11
  * in `docs/evidence/construction/files/research/`, under an H1 naming the
12
12
  * study's path, so the study stays a plain synthesis its readers use.
@@ -8,9 +8,9 @@ const STORY_CONTRACTS_1 = require("./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
13
+ * address, `principles/research.md`, is the same wherever that tree
14
14
  * lives. Like the other story layers, the answers live apart from the study,
15
15
  * in `docs/evidence/construction/files/research/`, under an H1 naming the
16
16
  * study's path, so the study stays a plain synthesis its readers use.
@@ -34,7 +34,7 @@ function createResearchClaims(props = {}) {
34
34
  reference: {
35
35
  type: "markdown",
36
36
  root: `${props.skills ?? SKILLS_ROOT_1.SKILLS_ROOT}/${STORY_CONTRACTS_1.STORY_CONTRACTS}`,
37
- files: ["shared/principles/research.md"],
37
+ files: ["principles/research.md"],
38
38
  symbol: "h2",
39
39
  checklist: true,
40
40
  },
@@ -1 +1 @@
1
- {"version":3,"file":"createResearchClaims.js","sourceRoot":"","sources":["../src/createResearchClaims.ts"],"names":[],"mappings":";;;AAEA,wDAAqD;AACrD,gEAA6D;AAE7D;;;;;;;;;;;;;;;;;;;GAmBG;AACH,8BACE,KAAK,GASD,EAAE;IAEN,OAAO;QACL;YACE,IAAI,EAAE,kBAAkB;YACxB,IAAI,EAAE,UAAU;YAChB,KAAK,EAAE,CAAC,uBAAuB,EAAE,yBAAyB,CAAC;YAC3D,aAAa,EAAE,CAAC,mDAAmD,CAAC;YACpE,MAAM,EAAE,MAAM;YACd,SAAS,EAAE;gBACT,IAAI,EAAE,UAAU;gBAChB,IAAI,EAAE,GAAG,KAAK,CAAC,MAAM,IAAI,yBAAW,IAAI,iCAAe,EAAE;gBACzD,KAAK,EAAE,CAAC,+BAA+B,CAAC;gBACxC,MAAM,EAAE,IAAI;gBACZ,SAAS,EAAE,IAAI;aAChB;SACF;KACF,CAAC;AACJ,CAAC"}
1
+ {"version":3,"file":"createResearchClaims.js","sourceRoot":"","sources":["../src/createResearchClaims.ts"],"names":[],"mappings":";;;AAEA,wDAAqD;AACrD,gEAA6D;AAE7D;;;;;;;;;;;;;;;;;;;GAmBG;AACH,8BACE,KAAK,GASD,EAAE;IAEN,OAAO;QACL;YACE,IAAI,EAAE,kBAAkB;YACxB,IAAI,EAAE,UAAU;YAChB,KAAK,EAAE,CAAC,uBAAuB,EAAE,yBAAyB,CAAC;YAC3D,aAAa,EAAE,CAAC,mDAAmD,CAAC;YACpE,MAAM,EAAE,MAAM;YACd,SAAS,EAAE;gBACT,IAAI,EAAE,UAAU;gBAChB,IAAI,EAAE,GAAG,KAAK,CAAC,MAAM,IAAI,yBAAW,IAAI,iCAAe,EAAE;gBACzD,KAAK,EAAE,CAAC,wBAAwB,CAAC;gBACjC,MAAM,EAAE,IAAI;gBACZ,SAAS,EAAE,IAAI;aAChB;SACF;KACF,CAAC;AACJ,CAAC"}
@@ -1,7 +1,7 @@
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/`
4
+ * Its checklist families ship directly in this directory. The `work/`
5
5
  * and `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
  *
@@ -4,7 +4,7 @@ exports.STORY_CONTRACTS = void 0;
4
4
  /**
5
5
  * Names the story contract tree inside a skills tree.
6
6
  *
7
- * Its `shared/` family ships with the scaffold's bundled skills. The `work/`
7
+ * Its checklist families ship directly in this directory. The `work/`
8
8
  * and `language/` families a production adopts live in its `docs/contracts`
9
9
  * instead; under a production's own skills tree they mark the retired layout.
10
10
  *
@@ -0,0 +1,18 @@
1
+ /**
2
+ * Check the catalog inputs when a production submits a programmed film or
3
+ * scene to composition Evidence. A starter or an isolated catalog can be
4
+ * developed before any film exists. The director verifies registration,
5
+ * playback and the scope of each case at the handoff.
6
+ *
7
+ * @param location Absolute production directory.
8
+ * @throws Error listing every missing catalog input.
9
+ *
10
+ * @evidence contracts/development/implementation.md#principled-implementation Production films and scenes trigger the same layout that the scaffold specifies. A catalog case, the catalog film and its acceptance record serve different consumers and are checked together.
11
+ * @evidence contracts/development/implementation.md#clear-and-simple-structure A source glob determines applicability, followed by one check for each fixed input and one for the case population.
12
+ * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts The generated starter, film registry, catalog and declaration files supply no production performance. File presence establishes only layout, and the director still has to replay the actual cases.
13
+ * @evidence contracts/development/implementation.md#efficient-algorithms Two scoped source searches and two fixed file probes run during configuration, outside film evaluation.
14
+ * @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work Each configuration observes current files, including newly added cases.
15
+ * @evidenceExclude contracts/development/implementation.md#bound-retention-and-release-resources The synchronous filesystem calls retain no handles or state.
16
+ * @evidence contracts/development/common.md#meaningful-documentation Names the submission that opens the check, the starter exception, the failure and the judgment retained by the director.
17
+ */
18
+ export declare function assertFilmCatalogLayout(location: string): void;
@@ -0,0 +1,49 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.assertFilmCatalogLayout = assertFilmCatalogLayout;
7
+ const node_fs_1 = __importDefault(require("node:fs"));
8
+ const node_path_1 = __importDefault(require("node:path"));
9
+ const hasMatchingFile_1 = require("./hasMatchingFile");
10
+ /**
11
+ * Check the catalog inputs when a production submits a programmed film or
12
+ * scene to composition Evidence. A starter or an isolated catalog can be
13
+ * developed before any film exists. The director verifies registration,
14
+ * playback and the scope of each case at the handoff.
15
+ *
16
+ * @param location Absolute production directory.
17
+ * @throws Error listing every missing catalog input.
18
+ *
19
+ * @evidence contracts/development/implementation.md#principled-implementation Production films and scenes trigger the same layout that the scaffold specifies. A catalog case, the catalog film and its acceptance record serve different consumers and are checked together.
20
+ * @evidence contracts/development/implementation.md#clear-and-simple-structure A source glob determines applicability, followed by one check for each fixed input and one for the case population.
21
+ * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts The generated starter, film registry, catalog and declaration files supply no production performance. File presence establishes only layout, and the director still has to replay the actual cases.
22
+ * @evidence contracts/development/implementation.md#efficient-algorithms Two scoped source searches and two fixed file probes run during configuration, outside film evaluation.
23
+ * @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work Each configuration observes current files, including newly added cases.
24
+ * @evidenceExclude contracts/development/implementation.md#bound-retention-and-release-resources The synchronous filesystem calls retain no handles or state.
25
+ * @evidence contracts/development/common.md#meaningful-documentation Names the submission that opens the check, the starter exception, the failure and the judgment retained by the director.
26
+ */
27
+ function assertFilmCatalogLayout(location) {
28
+ const scenes = "src/composition/scenes";
29
+ const films = "src/composition/films";
30
+ const catalog = `${films}/catalog.ts`;
31
+ const cases = `${scenes}/catalog/**/*.ts`;
32
+ const declarations = "**/*.d.ts";
33
+ if (!(0, hasMatchingFile_1.hasMatchingFile)(location, [`${scenes}/**/*.ts`, `${films}/**/*.ts`], [
34
+ `${scenes}/catalog/**`,
35
+ catalog,
36
+ `${films}/index.ts`,
37
+ `${films}/starter.ts`,
38
+ declarations,
39
+ ]))
40
+ return;
41
+ const missing = [catalog, "docs/acceptance/catalog.md"].filter((file) => !node_fs_1.default
42
+ .statSync(node_path_1.default.join(location, file), { throwIfNoEntry: false })
43
+ ?.isFile());
44
+ if (!(0, hasMatchingFile_1.hasMatchingFile)(location, cases, [declarations]))
45
+ missing.push(cases);
46
+ if (missing.length)
47
+ throw new Error(`Film composition requires its review catalog. Missing: ${missing.join(", ")}`);
48
+ }
49
+ //# sourceMappingURL=assertFilmCatalogLayout.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"assertFilmCatalogLayout.js","sourceRoot":"","sources":["../../src/internal/assertFilmCatalogLayout.ts"],"names":[],"mappings":";;;;;;AAAA,sDAAyB;AACzB,0DAA6B;AAE7B,uDAAoD;AAEpD;;;;;;;;;;;;;;;;GAgBG;AACH,iCAAwC,QAAgB;IACtD,MAAM,MAAM,GAAW,wBAAwB,CAAC;IAChD,MAAM,KAAK,GAAW,uBAAuB,CAAC;IAC9C,MAAM,OAAO,GAAW,GAAG,KAAK,aAAa,CAAC;IAC9C,MAAM,KAAK,GAAW,GAAG,MAAM,kBAAkB,CAAC;IAClD,MAAM,YAAY,GAAW,WAAW,CAAC;IACzC,IACE,CAAC,IAAA,iCAAe,EACd,QAAQ,EACR,CAAC,GAAG,MAAM,UAAU,EAAE,GAAG,KAAK,UAAU,CAAC,EACzC;QACE,GAAG,MAAM,aAAa;QACtB,OAAO;QACP,GAAG,KAAK,WAAW;QACnB,GAAG,KAAK,aAAa;QACrB,YAAY;KACb,CACF;QAED,OAAO;IAET,MAAM,OAAO,GAAa,CAAC,OAAO,EAAE,4BAA4B,CAAC,CAAC,MAAM,CACtE,CAAC,IAAY,EAAW,EAAE,CACxB,CAAC,iBAAE;SACA,QAAQ,CAAC,mBAAI,CAAC,IAAI,CAAC,QAAQ,EAAE,IAAI,CAAC,EAAE,EAAE,cAAc,EAAE,KAAK,EAAE,CAAC;QAC/D,EAAE,MAAM,EAAE,CACf,CAAC;IACF,IAAI,CAAC,IAAA,iCAAe,EAAC,QAAQ,EAAE,KAAK,EAAE,CAAC,YAAY,CAAC,CAAC;QAAE,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;IAC3E,IAAI,OAAO,CAAC,MAAM;QAChB,MAAM,IAAI,KAAK,CACb,0DAA0D,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAC/E,CAAC;AACN,CAAC"}
@@ -0,0 +1,13 @@
1
+ /**
2
+ * Returns whether a glob selects a regular file under the production root.
3
+ * A link to a file counts. A directory with a source extension does not.
4
+ *
5
+ * @evidence contracts/development/implementation.md#principled-implementation The glob resolves includes and exclusions against the same root used to stat its matches. Stat follows file links.
6
+ * @evidence contracts/development/implementation.md#clear-and-simple-structure One predicate serves case, film and study discovery.
7
+ * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts A matching path counts only when its current target is a file.
8
+ * @evidence contracts/development/implementation.md#efficient-algorithms Only matching paths are probed, stopping at the first file.
9
+ * @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work Each configuration needs the current source tree.
10
+ * @evidenceExclude contracts/development/implementation.md#bound-retention-and-release-resources The synchronous search keeps no handles or cached results.
11
+ * @evidence contracts/development/common.md#meaningful-documentation Specifies the root and how matching directories and links are treated.
12
+ */
13
+ export declare function hasMatchingFile(cwd: string, patterns: string | string[], exclude: string[]): boolean;
@@ -0,0 +1,28 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.hasMatchingFile = hasMatchingFile;
7
+ const node_fs_1 = __importDefault(require("node:fs"));
8
+ const node_path_1 = __importDefault(require("node:path"));
9
+ /**
10
+ * Returns whether a glob selects a regular file under the production root.
11
+ * A link to a file counts. A directory with a source extension does not.
12
+ *
13
+ * @evidence contracts/development/implementation.md#principled-implementation The glob resolves includes and exclusions against the same root used to stat its matches. Stat follows file links.
14
+ * @evidence contracts/development/implementation.md#clear-and-simple-structure One predicate serves case, film and study discovery.
15
+ * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts A matching path counts only when its current target is a file.
16
+ * @evidence contracts/development/implementation.md#efficient-algorithms Only matching paths are probed, stopping at the first file.
17
+ * @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work Each configuration needs the current source tree.
18
+ * @evidenceExclude contracts/development/implementation.md#bound-retention-and-release-resources The synchronous search keeps no handles or cached results.
19
+ * @evidence contracts/development/common.md#meaningful-documentation Specifies the root and how matching directories and links are treated.
20
+ */
21
+ function hasMatchingFile(cwd, patterns, exclude) {
22
+ return node_fs_1.default
23
+ .globSync(patterns, { cwd, exclude })
24
+ .some((file) => node_fs_1.default
25
+ .statSync(node_path_1.default.join(cwd, file), { throwIfNoEntry: false })
26
+ ?.isFile() === true);
27
+ }
28
+ //# sourceMappingURL=hasMatchingFile.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"hasMatchingFile.js","sourceRoot":"","sources":["../../src/internal/hasMatchingFile.ts"],"names":[],"mappings":";;;;;;AAAA,sDAAyB;AACzB,0DAA6B;AAE7B;;;;;;;;;;;GAWG;AACH,yBACE,GAAW,EACX,QAA2B,EAC3B,OAAiB;IAEjB,OAAO,iBAAE;SACN,QAAQ,CAAC,QAAQ,EAAE,EAAE,GAAG,EAAE,OAAO,EAAE,CAAC;SACpC,IAAI,CACH,CAAC,IAAY,EAAW,EAAE,CACxB,iBAAE;SACC,QAAQ,CAAC,mBAAI,CAAC,IAAI,CAAC,GAAG,EAAE,IAAI,CAAC,EAAE,EAAE,cAAc,EAAE,KAAK,EAAE,CAAC;QAC1D,EAAE,MAAM,EAAE,KAAK,IAAI,CACxB,CAAC;AACN,CAAC"}
@@ -3,8 +3,8 @@
3
3
  *
4
4
  * `treatments` fixes what happens as one flat ordered sequence of event units,
5
5
  * grouped by nothing and partitioned for no reader. `scripts` designs
6
- * the part and episode partition and its scene-level dramatic progression.
7
- * `screenplay` writes the final visible action, dialogue, sound, and edit intent.
6
+ * the part and episode partition, scene progression and draft exchanges.
7
+ * `screenplay` authors the final action, dialogue, sound and edit from those decisions.
8
8
  *
9
9
  * @evidence contracts/development/design.md#principled-representation The closed union names flat treatments, partitioned scripts and final screenplay, retaining their distinct authoring responsibilities.
10
10
  * @evidence contracts/development/design.md#minimal-and-owned-surface Three literals keep treatments, scripts and final screenplay distinct without another runtime hierarchy.
@@ -70,10 +70,8 @@ function createPackageChecklistClaim(props) {
70
70
  /**
71
71
  * Keeps the package API on the tracked work-owned contract subtree.
72
72
  *
73
- * `naturalness` is admitted for the same reason the shared and language trees
74
- * carry one: a work's own expression questions, which scripts construction
75
- * answers. The caller selects the hosts and their stage; the document
76
- * directory alone never chooses its host population.
73
+ * Existing work-owned `naturalness` addresses remain valid. The caller selects
74
+ * the hosts and stage for a work-specific expression question.
77
75
  */
78
76
  function isWorkDocument(document) {
79
77
  const normalized = document.replaceAll("\\", "/");
@@ -1 +1 @@
1
- {"version":3,"file":"createPackageChecklistClaim.js","sourceRoot":"","sources":["../../src/narrative/createPackageChecklistClaim.ts"],"names":[],"mappings":";;;AAKA,2EAAwE;AAExE,8DAA2D;AAC3D,kFAA+E;AAE/E;;;;;;;;;;;;;;;;;;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,K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,CAAC,KAAK,MAAM;QACnB;YACE,YAAY;YACZ,aAAa;YACb,aAAa;YACb,WAAW;YACX,SAAS;SACV,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;QACpB,KAAK,CAAC,KAAK,CACT,CAAC,IAAY,EAAW,EAAE,CAAC,IAAI,KAAK,EAAE,IAAI,IAAI,KAAK,GAAG,IAAI,IAAI,KAAK,IAAI,CACxE;QACD,CAAC,WAAW,CAAC,IAAI,CAAC,UAAU,CAAC;QAC7B,UAAU,CAAC,QAAQ,CAAC,KAAK,CAAC;QAC1B,CAAC,UAAU,CAAC,WAAW,EAAE,CAAC,QAAQ,CAAC,WAAW,CAAC,CAChD,CAAC;AACJ,CAAC"}
1
+ {"version":3,"file":"createPackageChecklistClaim.js","sourceRoot":"","sources":["../../src/narrative/createPackageChecklistClaim.ts"],"names":[],"mappings":";;;AAKA,2EAAwE;AAExE,8DAA2D;AAC3D,kFAA+E;AAE/E;;;;;;;;;;;;;;;;;;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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IAAI,KAAK,GAAG,IAAI,IAAI,KAAK,IAAI,CACxE;QACD,CAAC,WAAW,CAAC,IAAI,CAAC,UAAU,CAAC;QAC7B,UAAU,CAAC,QAAQ,CAAC,KAAK,CAAC;QAC1B,CAAC,UAAU,CAAC,WAAW,EAAE,CAAC,QAAQ,CAAC,WAAW,CAAC,CAChD,CAAC;AACJ,CAAC"}
@@ -4,9 +4,9 @@ import type { IProductionConfigProps } from "../../IProductionConfigProps";
4
4
  * Tracks instruction adoption in long work's settings, and realization in treatments or a short's screenplay.
5
5
  * Each layer covers the targets independently through its own construction
6
6
  * hosts and stage. Settings accounts for every adopted requirement; treatments
7
- * can exclude requirements outside its selected narrative population. A
8
- * short's brief holds only what the commission leaves open, so it owes no
9
- * instruction citation and its screenplay realizes every requirement.
7
+ * can exclude requirements outside its selected narrative population. On a
8
+ * short, the brief defines subjects and the screenplay accounts for every
9
+ * instruction.
10
10
  * Instructions remain targets only. No instructions folder means no claim.
11
11
  *
12
12
  * @evidence contracts/development/implementation.md#principled-implementation When docs/instructions exists, selected body H2 hosts independently cover every instruction H2; treatments may exclude out-of-population requirements while settings or short screenplay may not.