@automovie/evidence 0.1.0 → 0.3.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.
- package/README.md +14 -10
- package/lib/IAutoMovieDevelopmentProps.d.ts +11 -10
- package/lib/IAutoMovieEvidenceConfigProps.d.ts +9 -8
- package/lib/IAutoMovieNarrativeProps.d.ts +0 -3
- package/lib/IAutoMovieNoNarrativeProps.d.ts +16 -0
- package/lib/{narrative/IProductionLayerStages.js → IAutoMovieNoNarrativeProps.js} +1 -1
- package/lib/IAutoMovieNoNarrativeProps.js.map +1 -0
- package/lib/createDevelopmentContractClaims.d.ts +26 -14
- package/lib/createDevelopmentContractClaims.js +35 -21
- package/lib/createDevelopmentContractClaims.js.map +1 -1
- package/lib/createEvidenceConfig.d.ts +3 -3
- package/lib/createEvidenceConfig.js +19 -12
- package/lib/createEvidenceConfig.js.map +1 -1
- package/lib/index.d.ts +7 -8
- package/lib/index.js +1 -8
- package/lib/index.js.map +1 -1
- package/lib/internal/index.d.ts +5 -0
- package/lib/internal/index.js +7 -0
- package/lib/internal/index.js.map +1 -1
- package/lib/internal/resolveSkillsDirectory.d.ts +8 -9
- package/lib/internal/resolveSkillsDirectory.js +9 -12
- package/lib/internal/resolveSkillsDirectory.js.map +1 -1
- package/lib/narrative/IPackageChecklistClaimProps.d.ts +5 -10
- package/lib/narrative/IPackageContractProps.d.ts +0 -8
- package/lib/narrative/IPackagePopulationContractProps.d.ts +1 -9
- package/lib/narrative/IProductionConfigProps.d.ts +1 -10
- package/lib/narrative/createBriefFiles.d.ts +2 -2
- package/lib/narrative/createBriefFiles.js +2 -2
- package/lib/narrative/createNarrativeUnitFiles.d.ts +19 -12
- package/lib/narrative/createNarrativeUnitFiles.js +22 -17
- package/lib/narrative/createNarrativeUnitFiles.js.map +1 -1
- package/lib/narrative/createPackageChecklistClaim.js +5 -10
- package/lib/narrative/createPackageChecklistClaim.js.map +1 -1
- package/lib/narrative/createPackageContract.d.ts +3 -3
- package/lib/narrative/createPackageContract.js +3 -8
- package/lib/narrative/createPackageContract.js.map +1 -1
- package/lib/narrative/createPackagePopulationContract.d.ts +7 -7
- package/lib/narrative/createPackagePopulationContract.js +10 -18
- package/lib/narrative/createPackagePopulationContract.js.map +1 -1
- package/lib/narrative/index.d.ts +0 -4
- package/lib/narrative/index.js +0 -4
- package/lib/narrative/index.js.map +1 -1
- package/lib/narrative/internal/REALIZED_LAYERS.d.ts +1 -1
- package/lib/narrative/internal/REALIZED_LAYERS.js +1 -1
- package/lib/narrative/internal/claims/createDiscoveryClaim.d.ts +11 -3
- package/lib/narrative/internal/claims/createDiscoveryClaim.js +17 -5
- package/lib/narrative/internal/claims/createDiscoveryClaim.js.map +1 -1
- package/lib/narrative/internal/claims/createExpressionObligationClaims.d.ts +9 -8
- package/lib/narrative/internal/claims/createExpressionObligationClaims.js +15 -22
- package/lib/narrative/internal/claims/createExpressionObligationClaims.js.map +1 -1
- package/lib/narrative/internal/claims/createInstructionCoverageClaim.d.ts +6 -4
- package/lib/narrative/internal/claims/createInstructionCoverageClaim.js +7 -5
- package/lib/narrative/internal/claims/createInstructionCoverageClaim.js.map +1 -1
- package/lib/narrative/internal/claims/createLayerClaims.d.ts +9 -9
- package/lib/narrative/internal/claims/createLayerClaims.js +45 -65
- package/lib/narrative/internal/claims/createLayerClaims.js.map +1 -1
- package/lib/narrative/internal/claims/createOutlineClaims.js +8 -8
- package/lib/narrative/internal/claims/createOutlineClaims.js.map +1 -1
- package/lib/narrative/internal/claims/createPopulationObligationClaims.d.ts +3 -3
- package/lib/narrative/internal/claims/createPopulationObligationClaims.js +5 -5
- package/lib/narrative/internal/claims/createPopulationObligationClaims.js.map +1 -1
- package/lib/narrative/internal/claims/createReviewClaims.d.ts +8 -8
- package/lib/narrative/internal/claims/createReviewClaims.js +64 -77
- package/lib/narrative/internal/claims/createReviewClaims.js.map +1 -1
- package/lib/narrative/internal/claims/createSettingCoverageClaim.d.ts +1 -1
- package/lib/narrative/internal/claims/createSettingCoverageClaim.js +6 -7
- package/lib/narrative/internal/claims/createSettingCoverageClaim.js.map +1 -1
- package/lib/narrative/internal/collectProductionClaims.js +5 -2
- package/lib/narrative/internal/collectProductionClaims.js.map +1 -1
- package/lib/narrative/internal/index.d.ts +0 -1
- package/lib/narrative/internal/index.js +0 -1
- package/lib/narrative/internal/index.js.map +1 -1
- package/lib/narrative/internal/readSettingsFiles.d.ts +6 -5
- package/lib/narrative/internal/readSettingsFiles.js +12 -9
- package/lib/narrative/internal/readSettingsFiles.js.map +1 -1
- package/lib/narrative/internal/references/createCoverageReference.d.ts +1 -2
- package/lib/narrative/internal/references/createCoverageReference.js +2 -2
- package/lib/narrative/internal/references/createCoverageReference.js.map +1 -1
- package/lib/narrative/internal/references/createDiscoveryReferences.d.ts +2 -2
- package/lib/narrative/internal/references/createDiscoveryReferences.js +2 -2
- package/lib/narrative/internal/references/createLanguagePrincipleReferences.d.ts +7 -6
- package/lib/narrative/internal/references/createLanguagePrincipleReferences.js +7 -7
- package/lib/narrative/internal/references/createLanguagePrincipleReferences.js.map +1 -1
- package/lib/narrative/internal/references/createLineageReference.d.ts +7 -8
- package/lib/narrative/internal/references/createLineageReference.js +8 -8
- package/lib/narrative/internal/references/createLineageReference.js.map +1 -1
- package/lib/narrative/internal/references/createPrincipleReferences.d.ts +9 -8
- package/lib/narrative/internal/references/createPrincipleReferences.js +12 -12
- package/lib/narrative/internal/references/createPrincipleReferences.js.map +1 -1
- package/lib/narrative/internal/references/createSettingReferences.d.ts +3 -4
- package/lib/narrative/internal/references/createSettingReferences.js +6 -6
- package/lib/narrative/internal/references/createSettingReferences.js.map +1 -1
- package/lib/narrative/internal/references/layerFiles.d.ts +5 -5
- package/lib/narrative/internal/references/layerFiles.js +5 -5
- package/lib/narrative/internal/topology/createTopologyFiles.d.ts +1 -1
- package/lib/narrative/internal/topology/createTopologyFiles.js +1 -1
- package/lib/narrative/internal/utilities/BODY_ROOT.d.ts +15 -0
- package/lib/narrative/internal/utilities/BODY_ROOT.js +20 -0
- package/lib/narrative/internal/utilities/BODY_ROOT.js.map +1 -0
- package/lib/narrative/internal/utilities/PACKAGE_DOCS_ROOT.d.ts +6 -6
- package/lib/narrative/internal/utilities/PACKAGE_DOCS_ROOT.js +6 -6
- package/lib/narrative/internal/utilities/assertProductionEvidenceSources.js +6 -19
- package/lib/narrative/internal/utilities/assertProductionEvidenceSources.js.map +1 -1
- package/lib/narrative/internal/utilities/createUnitFiles.d.ts +4 -6
- package/lib/narrative/internal/utilities/createUnitFiles.js +5 -7
- package/lib/narrative/internal/utilities/createUnitFiles.js.map +1 -1
- package/lib/narrative/internal/utilities/index.d.ts +1 -1
- package/lib/narrative/internal/utilities/index.js +1 -1
- package/lib/narrative/internal/utilities/index.js.map +1 -1
- package/lib/narrative/internal/utilities/referenceLocation.d.ts +6 -9
- package/lib/narrative/internal/utilities/referenceLocation.js +9 -14
- package/lib/narrative/internal/utilities/referenceLocation.js.map +1 -1
- package/package.json +8 -4
- package/src/IAutoMovieDevelopmentProps.ts +11 -10
- package/src/IAutoMovieEvidenceConfigProps.ts +9 -8
- package/src/IAutoMovieNarrativeProps.ts +0 -4
- package/src/IAutoMovieNoNarrativeProps.ts +18 -0
- package/src/createDevelopmentContractClaims.ts +43 -22
- package/src/createEvidenceConfig.ts +23 -13
- package/src/index.ts +8 -8
- package/src/internal/index.ts +7 -0
- package/src/internal/resolveSkillsDirectory.ts +9 -12
- package/src/narrative/IPackageChecklistClaimProps.ts +5 -11
- package/src/narrative/IPackageContractProps.ts +0 -9
- package/src/narrative/IPackagePopulationContractProps.ts +1 -10
- package/src/narrative/IProductionConfigProps.ts +1 -11
- package/src/narrative/createBriefFiles.ts +2 -2
- package/src/narrative/createNarrativeUnitFiles.ts +28 -20
- package/src/narrative/createPackageChecklistClaim.ts +5 -10
- package/src/narrative/createPackageContract.ts +3 -15
- package/src/narrative/createPackagePopulationContract.ts +11 -26
- package/src/narrative/index.ts +0 -4
- package/src/narrative/internal/REALIZED_LAYERS.ts +1 -1
- package/src/narrative/internal/claims/createDiscoveryClaim.ts +20 -6
- package/src/narrative/internal/claims/createExpressionObligationClaims.ts +15 -24
- package/src/narrative/internal/claims/createInstructionCoverageClaim.ts +8 -6
- package/src/narrative/internal/claims/createLayerClaims.ts +48 -78
- package/src/narrative/internal/claims/createOutlineClaims.ts +8 -8
- package/src/narrative/internal/claims/createPopulationObligationClaims.ts +5 -5
- package/src/narrative/internal/claims/createReviewClaims.ts +69 -91
- package/src/narrative/internal/claims/createSettingCoverageClaim.ts +5 -7
- package/src/narrative/internal/collectProductionClaims.ts +7 -5
- package/src/narrative/internal/index.ts +0 -1
- package/src/narrative/internal/readSettingsFiles.ts +14 -9
- package/src/narrative/internal/references/createCoverageReference.ts +1 -3
- package/src/narrative/internal/references/createDiscoveryReferences.ts +2 -2
- package/src/narrative/internal/references/createLanguagePrincipleReferences.ts +8 -9
- package/src/narrative/internal/references/createLineageReference.ts +7 -9
- package/src/narrative/internal/references/createPrincipleReferences.ts +13 -14
- package/src/narrative/internal/references/createSettingReferences.ts +5 -8
- package/src/narrative/internal/references/layerFiles.ts +5 -5
- package/src/narrative/internal/topology/createTopologyFiles.ts +1 -1
- package/src/narrative/internal/utilities/BODY_ROOT.ts +17 -0
- package/src/narrative/internal/utilities/PACKAGE_DOCS_ROOT.ts +6 -6
- package/src/narrative/internal/utilities/assertProductionEvidenceSources.ts +6 -25
- package/src/narrative/internal/utilities/createUnitFiles.ts +5 -7
- package/src/narrative/internal/utilities/index.ts +1 -1
- package/src/narrative/internal/utilities/referenceLocation.ts +8 -18
- package/lib/narrative/AuthoredPass.d.ts +0 -16
- package/lib/narrative/AuthoredPass.js +0 -3
- package/lib/narrative/AuthoredPass.js.map +0 -1
- package/lib/narrative/IProductionLayerStages.d.ts +0 -15
- package/lib/narrative/IProductionLayerStages.js.map +0 -1
- package/lib/narrative/internal/hasNaturalness.d.ts +0 -14
- package/lib/narrative/internal/hasNaturalness.js +0 -19
- package/lib/narrative/internal/hasNaturalness.js.map +0 -1
- package/lib/narrative/internal/utilities/passRoot.d.ts +0 -16
- package/lib/narrative/internal/utilities/passRoot.js +0 -22
- package/lib/narrative/internal/utilities/passRoot.js.map +0 -1
- package/lib/narrative/stripNaturalnessComments.d.ts +0 -12
- package/lib/narrative/stripNaturalnessComments.js +0 -34
- package/lib/narrative/stripNaturalnessComments.js.map +0 -1
- package/src/narrative/AuthoredPass.ts +0 -16
- package/src/narrative/IProductionLayerStages.ts +0 -16
- package/src/narrative/internal/hasNaturalness.ts +0 -17
- package/src/narrative/internal/utilities/passRoot.ts +0 -20
- package/src/narrative/stripNaturalnessComments.ts +0 -31
|
@@ -10,27 +10,24 @@ const SKILLS_ROOT_1 = require("./SKILLS_ROOT");
|
|
|
10
10
|
* Resolves the absolute shared skills tree holding the bundled contracts.
|
|
11
11
|
*
|
|
12
12
|
* An omitted `skills` is the standalone layout, the production's own
|
|
13
|
-
* `.agents/skills`. A
|
|
14
|
-
*
|
|
15
|
-
*
|
|
13
|
+
* `.agents/skills`. A relative one resolves against `location`, never against
|
|
14
|
+
* the working directory, so a workspace production can write
|
|
15
|
+
* `"../../../.agents/skills"` and get the same tree from any process.
|
|
16
16
|
*
|
|
17
17
|
* @param contracts The production location and optional shared tree; read, not retained.
|
|
18
18
|
* @returns The absolute shared skills directory.
|
|
19
|
-
* @throws Error when a supplied `skills` is not absolute.
|
|
20
19
|
*
|
|
21
|
-
* @evidence contracts/development/implementation.md#principled-implementation Node's `path.
|
|
22
|
-
* @evidence contracts/development/implementation.md#clear-and-simple-structure One function owns both the default and the
|
|
23
|
-
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts A relative value is
|
|
24
|
-
* @evidence contracts/development/implementation.md#efficient-algorithms One
|
|
20
|
+
* @evidence contracts/development/implementation.md#principled-implementation Node's `path.resolve` anchors a relative value at the absolute production location, and `path.join` builds the default from the scaffold's `.agents/skills` layout.
|
|
21
|
+
* @evidence contracts/development/implementation.md#clear-and-simple-structure One function owns both the default and the resolution rule, so the configuration entry, the narrative assertion and every shared contract lookup agree on the shared tree.
|
|
22
|
+
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts A relative value is resolved against the production, never the working directory; no workspace layout is inferred from the filesystem.
|
|
23
|
+
* @evidence contracts/development/implementation.md#efficient-algorithms One path resolution or join, linear in the path length.
|
|
25
24
|
* @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work A pure path computation coordinates no work across requests.
|
|
26
25
|
* @evidenceExclude contracts/development/implementation.md#bound-retention-and-release-resources Only the returned string outlives the call.
|
|
27
|
-
* @evidence contracts/development/common.md#meaningful-documentation States the standalone default,
|
|
26
|
+
* @evidence contracts/development/common.md#meaningful-documentation States the standalone default, how a relative value resolves, and the parameter and result.
|
|
28
27
|
*/
|
|
29
28
|
function resolveSkillsDirectory(contracts) {
|
|
30
29
|
if (contracts.skills === undefined)
|
|
31
30
|
return node_path_1.default.join(contracts.location, ...SKILLS_ROOT_1.SKILLS_ROOT.split("/"));
|
|
32
|
-
|
|
33
|
-
throw new Error("Evidence skills must be an absolute directory.");
|
|
34
|
-
return contracts.skills;
|
|
31
|
+
return node_path_1.default.resolve(contracts.location, contracts.skills);
|
|
35
32
|
}
|
|
36
33
|
//# sourceMappingURL=resolveSkillsDirectory.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"resolveSkillsDirectory.js","sourceRoot":"","sources":["../../src/internal/resolveSkillsDirectory.ts"],"names":[],"mappings":";;;;;;AAAA,0DAA6B;AAG7B,+CAA4C;AAE5C
|
|
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;
|
|
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,
|
|
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
|
|
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
|
-
*
|
|
31
|
+
* The hosts answer in detached construction evidence.
|
|
37
32
|
*/
|
|
38
|
-
|
|
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
|
|
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
|
|
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
|
-
*
|
|
6
|
-
*
|
|
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
|
-
*
|
|
10
|
-
*
|
|
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`
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
*
|
|
12
|
-
*
|
|
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
|
|
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
|
|
18
|
-
* @evidence contracts/development/implementation.md#clear-and-simple-structure The selector owns only relative narrative population paths; callers
|
|
19
|
-
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts
|
|
20
|
-
* @evidence contracts/development/common.md#meaningful-documentation The prose states layer partition
|
|
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(
|
|
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`
|
|
10
|
-
*
|
|
11
|
-
*
|
|
12
|
-
*
|
|
13
|
-
*
|
|
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
|
|
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
|
|
19
|
-
* @evidence contracts/development/implementation.md#clear-and-simple-structure The selector owns only relative narrative population paths; callers
|
|
20
|
-
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts
|
|
21
|
-
* @evidence contracts/development/common.md#meaningful-documentation The prose states layer partition
|
|
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(
|
|
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 (
|
|
34
|
-
return
|
|
35
|
-
? [`${layer}
|
|
36
|
-
: [`${layer}/*/???-*.md`];
|
|
37
|
-
return
|
|
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
|
|
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:
|
|
55
|
+
root: BODY_ROOT_1.BODY_ROOT,
|
|
56
56
|
files: props.files,
|
|
57
57
|
symbol: props.symbol,
|
|
58
|
-
|
|
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
|
|
79
|
-
* answers.
|
|
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;
|
|
1
|
+
{"version":3,"file":"createPackageChecklistClaim.js","sourceRoot":"","sources":["../../src/narrative/createPackageChecklistClaim.ts"],"names":[],"mappings":"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"}
|
|
@@ -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
|
|
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
|
|
13
|
-
* @evidence contracts/development/common.md#meaningful-documentation The prose states that one adopted contract expands to its owning layers; props document
|
|
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
|
|
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
|
|
17
|
-
* @evidence contracts/development/common.md#meaningful-documentation The prose states that one adopted contract expands to its owning layers; props document
|
|
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,
|
|
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
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
*
|
|
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;
|
|
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
|
|
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
|
|
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
|
|
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
|
|
13
|
-
*
|
|
14
|
-
*
|
|
15
|
-
*
|
|
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;
|
|
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
|
|
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
|
|
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:
|
|
53
|
+
root: BODY_ROOT_1.BODY_ROOT,
|
|
58
54
|
files,
|
|
59
55
|
symbol: "file",
|
|
60
|
-
|
|
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;
|
|
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;;;;;;;;;;;;;;;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,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,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"}
|
package/lib/narrative/index.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
export * from "./AuthoredLayer";
|
|
2
|
-
export * from "./AuthoredPass";
|
|
3
2
|
export * from "./EvidenceMetadataRewriteOwnership";
|
|
4
3
|
export * from "./IEvidenceMetadataRenderedSample";
|
|
5
4
|
export * from "./IEvidenceMetadataRewriteFile";
|
|
@@ -10,7 +9,6 @@ export * from "./IPackageContractProps";
|
|
|
10
9
|
export * from "./IPackagePopulationContractProps";
|
|
11
10
|
export * from "./IProductionConfigProps";
|
|
12
11
|
export * from "./IProductionConstruction";
|
|
13
|
-
export * from "./IProductionLayerStages";
|
|
14
12
|
export * from "./NarrativeLayer";
|
|
15
13
|
export * from "./NarrativeScope";
|
|
16
14
|
export * from "./ProductionStage";
|
|
@@ -22,7 +20,5 @@ export * from "./createPackagePopulationContract";
|
|
|
22
20
|
export * from "./createProductionClaims";
|
|
23
21
|
export * from "./createProductionConfig";
|
|
24
22
|
export * from "./createSettingsFiles";
|
|
25
|
-
export * from "./internal";
|
|
26
23
|
export * from "./isFirstPartPilot";
|
|
27
|
-
export * from "./stripNaturalnessComments";
|
|
28
24
|
export * from "./verifyEvidenceMetadataRewrite";
|
package/lib/narrative/index.js
CHANGED
|
@@ -15,7 +15,6 @@ 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);
|
|
19
18
|
__exportStar(require("./EvidenceMetadataRewriteOwnership"), exports);
|
|
20
19
|
__exportStar(require("./IEvidenceMetadataRenderedSample"), exports);
|
|
21
20
|
__exportStar(require("./IEvidenceMetadataRewriteFile"), exports);
|
|
@@ -26,7 +25,6 @@ __exportStar(require("./IPackageContractProps"), exports);
|
|
|
26
25
|
__exportStar(require("./IPackagePopulationContractProps"), exports);
|
|
27
26
|
__exportStar(require("./IProductionConfigProps"), exports);
|
|
28
27
|
__exportStar(require("./IProductionConstruction"), exports);
|
|
29
|
-
__exportStar(require("./IProductionLayerStages"), exports);
|
|
30
28
|
__exportStar(require("./NarrativeLayer"), exports);
|
|
31
29
|
__exportStar(require("./NarrativeScope"), exports);
|
|
32
30
|
__exportStar(require("./ProductionStage"), exports);
|
|
@@ -38,8 +36,6 @@ __exportStar(require("./createPackagePopulationContract"), exports);
|
|
|
38
36
|
__exportStar(require("./createProductionClaims"), exports);
|
|
39
37
|
__exportStar(require("./createProductionConfig"), exports);
|
|
40
38
|
__exportStar(require("./createSettingsFiles"), exports);
|
|
41
|
-
__exportStar(require("./internal"), exports);
|
|
42
39
|
__exportStar(require("./isFirstPartPilot"), exports);
|
|
43
|
-
__exportStar(require("./stripNaturalnessComments"), exports);
|
|
44
40
|
__exportStar(require("./verifyEvidenceMetadataRewrite"), exports);
|
|
45
41
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/narrative/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,kDAAgC;AAChC,
|
|
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"}
|