@automovie/evidence 0.1.0 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +13 -9
- package/lib/IAutoMovieDevelopmentProps.d.ts +7 -6
- 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 +21 -11
- package/lib/createDevelopmentContractClaims.js +30 -13
- 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/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 +7 -6
- package/src/IAutoMovieEvidenceConfigProps.ts +9 -8
- package/src/IAutoMovieNarrativeProps.ts +0 -4
- package/src/IAutoMovieNoNarrativeProps.ts +18 -0
- package/src/createDevelopmentContractClaims.ts +38 -14
- 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/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
|
@@ -11,13 +11,13 @@ import type { IProductionConfigProps } from "../../IProductionConfigProps";
|
|
|
11
11
|
* repeating a population question on every unit turns one comparison into a
|
|
12
12
|
* restatement per unit.
|
|
13
13
|
*
|
|
14
|
-
* Unit duties use checklists.
|
|
15
|
-
* expression obligation claims rather than repeating their question per unit.
|
|
14
|
+
* Unit duties use checklists. Script expression population comparisons have
|
|
15
|
+
* separate expression obligation claims rather than repeating their question per unit.
|
|
16
16
|
*
|
|
17
17
|
* @evidence contracts/development/implementation.md#principled-implementation Construction stage controls whole-layer file-level obligation coverage, with one answering document per shared/language population item and no per-H2 repetition of the same comparison; createContractDirectory probes shared documents in the shared skills tree and language documents in the production's own `docs/contracts`.
|
|
18
18
|
* @evidence contracts/development/implementation.md#clear-and-simple-structure The exported factory delegates one family build while keeping population scope distinct from principle checklists and expression obligations.
|
|
19
19
|
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Required shared common/narrative files stay selected even when missing so the compiler reports a broken tree; only realized and layer-specific optional documents are conditionally selected.
|
|
20
|
-
* @evidence contracts/development/common.md#meaningful-documentation The prose explains whole-layer respondents, unique evidence and the boundary with per-unit and
|
|
20
|
+
* @evidence contracts/development/common.md#meaningful-documentation The prose explains whole-layer respondents, unique evidence and the boundary with per-unit and script expression families; the helper comment identifies optional-file compatibility.
|
|
21
21
|
* @evidence contracts/development/implementation.md#efficient-algorithms At most four candidates per scope are filtered and mapped, with a bounded number of synchronous existence probes and selector constructions; this factory never scans the manuscript population.
|
|
22
22
|
* @evidence contracts/development/implementation.md#reuse-equivalent-work Shared/language selection reuses layerFiles and reference builders; optional installed files are observed per config build, so changes in the contract tree invalidate naturally without a retained cache.
|
|
23
23
|
* @evidence contracts/development/implementation.md#bound-retention-and-release-resources Intermediate and returned arrays have a fixed family bound; returned claim/reference objects belong to the config owner and existence probes retain no exposed handles.
|
|
@@ -10,9 +10,9 @@ const constructionStage_1 = require("../constructionStage");
|
|
|
10
10
|
const createLocalContractReference_1 = require("../references/createLocalContractReference");
|
|
11
11
|
const createSharedReference_1 = require("../references/createSharedReference");
|
|
12
12
|
const layerFiles_1 = require("../references/layerFiles");
|
|
13
|
+
const BODY_ROOT_1 = require("../utilities/BODY_ROOT");
|
|
13
14
|
const createContractDirectory_1 = require("../utilities/createContractDirectory");
|
|
14
15
|
const createUnitFiles_1 = require("../utilities/createUnitFiles");
|
|
15
|
-
const passRoot_1 = require("../utilities/passRoot");
|
|
16
16
|
/**
|
|
17
17
|
* Creates the population obligation claims for a complete layer.
|
|
18
18
|
*
|
|
@@ -23,13 +23,13 @@ const passRoot_1 = require("../utilities/passRoot");
|
|
|
23
23
|
* repeating a population question on every unit turns one comparison into a
|
|
24
24
|
* restatement per unit.
|
|
25
25
|
*
|
|
26
|
-
* Unit duties use checklists.
|
|
27
|
-
* expression obligation claims rather than repeating their question per unit.
|
|
26
|
+
* Unit duties use checklists. Script expression population comparisons have
|
|
27
|
+
* separate expression obligation claims rather than repeating their question per unit.
|
|
28
28
|
*
|
|
29
29
|
* @evidence contracts/development/implementation.md#principled-implementation Construction stage controls whole-layer file-level obligation coverage, with one answering document per shared/language population item and no per-H2 repetition of the same comparison; createContractDirectory probes shared documents in the shared skills tree and language documents in the production's own `docs/contracts`.
|
|
30
30
|
* @evidence contracts/development/implementation.md#clear-and-simple-structure The exported factory delegates one family build while keeping population scope distinct from principle checklists and expression obligations.
|
|
31
31
|
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Required shared common/narrative files stay selected even when missing so the compiler reports a broken tree; only realized and layer-specific optional documents are conditionally selected.
|
|
32
|
-
* @evidence contracts/development/common.md#meaningful-documentation The prose explains whole-layer respondents, unique evidence and the boundary with per-unit and
|
|
32
|
+
* @evidence contracts/development/common.md#meaningful-documentation The prose explains whole-layer respondents, unique evidence and the boundary with per-unit and script expression families; the helper comment identifies optional-file compatibility.
|
|
33
33
|
* @evidence contracts/development/implementation.md#efficient-algorithms At most four candidates per scope are filtered and mapped, with a bounded number of synchronous existence probes and selector constructions; this factory never scans the manuscript population.
|
|
34
34
|
* @evidence contracts/development/implementation.md#reuse-equivalent-work Shared/language selection reuses layerFiles and reference builders; optional installed files are observed per config build, so changes in the contract tree invalidate naturally without a retained cache.
|
|
35
35
|
* @evidence contracts/development/implementation.md#bound-retention-and-release-resources Intermediate and returned arrays have a fixed family bound; returned claim/reference objects belong to the config owner and existence probes retain no exposed handles.
|
|
@@ -79,7 +79,7 @@ function claim(props) {
|
|
|
79
79
|
return {
|
|
80
80
|
name: `${props.layer} documents answer each ${props.reference.files[0]} item once`,
|
|
81
81
|
type: "markdown",
|
|
82
|
-
root:
|
|
82
|
+
root: BODY_ROOT_1.BODY_ROOT,
|
|
83
83
|
files: (0, createUnitFiles_1.createUnitFiles)(props.layer, props.scope),
|
|
84
84
|
symbol: "file",
|
|
85
85
|
disabled: props.disabled,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createPopulationObligationClaims.js","sourceRoot":"","sources":["../../../../src/narrative/internal/claims/createPopulationObligationClaims.ts"],"names":[],"mappings":";;;;;;AAIA,sDAAyB;AACzB,0DAA6B;AAO7B,4DAAyD;AACzD,6FAA0F;AAC1F,+EAA4E;AAC5E,yDAAsD;AACtD,kFAA+E;AAC/E,kEAA+D;
|
|
1
|
+
{"version":3,"file":"createPopulationObligationClaims.js","sourceRoot":"","sources":["../../../../src/narrative/internal/claims/createPopulationObligationClaims.ts"],"names":[],"mappings":";;;;;;AAIA,sDAAyB;AACzB,0DAA6B;AAO7B,4DAAyD;AACzD,6FAA0F;AAC1F,+EAA4E;AAC5E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}
|
|
@@ -5,7 +5,7 @@ import type { IProductionConfigProps } from "../../IProductionConfigProps";
|
|
|
5
5
|
* Creates the claims that record the evidence-stage reviews in the graph.
|
|
6
6
|
*
|
|
7
7
|
* A reviewer writes one review file per authored file and one review H2 per
|
|
8
|
-
* authored H2, directly under `docs/review/<
|
|
8
|
+
* authored H2, directly under `docs/review/draft/<layer>` in a tree that
|
|
9
9
|
* mirrors the authored layer. A selected review file or `verdict/index.md`
|
|
10
10
|
* starts this current population; missing counterparts never come from a
|
|
11
11
|
* legacy round. Without current files, the highest numbered legacy round
|
|
@@ -18,17 +18,17 @@ import type { IProductionConfigProps } from "../../IProductionConfigProps";
|
|
|
18
18
|
* No claim binds the review files to the authored files one to one, because
|
|
19
19
|
* the H2 bijection already leaves no authored H2 without a review.
|
|
20
20
|
*
|
|
21
|
-
* Review claims are active only while the
|
|
22
|
-
* A package whose installed contract predates the review family,
|
|
23
|
-
* reviewer has not yet written current files or a legacy round under
|
|
24
|
-
* `docs/review/<
|
|
21
|
+
* Review claims are active only while the layer's construction stage is
|
|
22
|
+
* `evidence`. A package whose installed contract predates the review family,
|
|
23
|
+
* or whose reviewer has not yet written current files or a legacy round under
|
|
24
|
+
* `docs/review/draft/<layer>`, has no review claims for that layer.
|
|
25
25
|
*
|
|
26
|
-
* @evidence contracts/development/implementation.md#principled-implementation Actual in-scope direct review files or a verdict select the canonical population exclusively; otherwise the highest numeric legacy round supplies exact current-review lineage and a separate file-level verdict obligation,
|
|
26
|
+
* @evidence contracts/development/implementation.md#principled-implementation Actual in-scope direct review files or a verdict select the canonical population exclusively; otherwise the highest numeric legacy round supplies exact current-review lineage and a separate file-level verdict obligation, both following the construction stage.
|
|
27
27
|
* @evidence contracts/development/implementation.md#clear-and-simple-structure One root selector keeps current-versus-legacy admission separate from the unchanged unit bijection, freshness and whole-population verdict claims.
|
|
28
28
|
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Older contract families, probed in the shared skills tree that also roots their references, and not-yet-created review roots yield no claims; native inactive populations do not establish that independent review occurred.
|
|
29
29
|
* @evidence contracts/development/common.md#meaningful-documentation The prose states canonical admission, exclusive legacy fallback, current-review invalidation, H2 bijection, verdict ownership and optional roots/contracts.
|
|
30
|
-
* @evidence contracts/development/implementation.md#efficient-algorithms
|
|
31
|
-
* @evidence contracts/development/implementation.md#reuse-equivalent-work
|
|
30
|
+
* @evidence contracts/development/implementation.md#efficient-algorithms One review root scans entries only as deep as its actual selectors; directory entries and native glob matching dominate, with a linear root scan for legacy selection when no canonical file exists.
|
|
31
|
+
* @evidence contracts/development/implementation.md#reuse-equivalent-work The resolved files, selected root and lineage serve both claims; filesystem observation repeats per config build so new current files replace legacy selection.
|
|
32
32
|
* @evidence contracts/development/implementation.md#bound-retention-and-release-resources Directory arrays are transient and bounded by visited entries; returned claims belong to the config, and synchronous scans retain no history, handle or task.
|
|
33
33
|
*/
|
|
34
34
|
export declare function createReviewClaims(props: IProductionConfigProps, layer: AuthoredLayer): IEvidenceClaim[];
|
|
@@ -8,18 +8,17 @@ const evidence_1 = require("@wrtnlabs/evidence");
|
|
|
8
8
|
const node_fs_1 = __importDefault(require("node:fs"));
|
|
9
9
|
const node_path_1 = __importDefault(require("node:path"));
|
|
10
10
|
const constructionStage_1 = require("../constructionStage");
|
|
11
|
-
const hasNaturalness_1 = require("../hasNaturalness");
|
|
12
11
|
const createLineageReference_1 = require("../references/createLineageReference");
|
|
13
12
|
const createSharedReference_1 = require("../references/createSharedReference");
|
|
13
|
+
const BODY_ROOT_1 = require("../utilities/BODY_ROOT");
|
|
14
14
|
const PACKAGE_DOCS_ROOT_1 = require("../utilities/PACKAGE_DOCS_ROOT");
|
|
15
15
|
const createContractDirectory_1 = require("../utilities/createContractDirectory");
|
|
16
16
|
const createUnitFiles_1 = require("../utilities/createUnitFiles");
|
|
17
|
-
const passRoot_1 = require("../utilities/passRoot");
|
|
18
17
|
/**
|
|
19
18
|
* Creates the claims that record the evidence-stage reviews in the graph.
|
|
20
19
|
*
|
|
21
20
|
* A reviewer writes one review file per authored file and one review H2 per
|
|
22
|
-
* authored H2, directly under `docs/review/<
|
|
21
|
+
* authored H2, directly under `docs/review/draft/<layer>` in a tree that
|
|
23
22
|
* mirrors the authored layer. A selected review file or `verdict/index.md`
|
|
24
23
|
* starts this current population; missing counterparts never come from a
|
|
25
24
|
* legacy round. Without current files, the highest numbered legacy round
|
|
@@ -32,93 +31,81 @@ const passRoot_1 = require("../utilities/passRoot");
|
|
|
32
31
|
* No claim binds the review files to the authored files one to one, because
|
|
33
32
|
* the H2 bijection already leaves no authored H2 without a review.
|
|
34
33
|
*
|
|
35
|
-
* Review claims are active only while the
|
|
36
|
-
* A package whose installed contract predates the review family,
|
|
37
|
-
* reviewer has not yet written current files or a legacy round under
|
|
38
|
-
* `docs/review/<
|
|
34
|
+
* Review claims are active only while the layer's construction stage is
|
|
35
|
+
* `evidence`. A package whose installed contract predates the review family,
|
|
36
|
+
* or whose reviewer has not yet written current files or a legacy round under
|
|
37
|
+
* `docs/review/draft/<layer>`, has no review claims for that layer.
|
|
39
38
|
*
|
|
40
|
-
* @evidence contracts/development/implementation.md#principled-implementation Actual in-scope direct review files or a verdict select the canonical population exclusively; otherwise the highest numeric legacy round supplies exact current-review lineage and a separate file-level verdict obligation,
|
|
39
|
+
* @evidence contracts/development/implementation.md#principled-implementation Actual in-scope direct review files or a verdict select the canonical population exclusively; otherwise the highest numeric legacy round supplies exact current-review lineage and a separate file-level verdict obligation, both following the construction stage.
|
|
41
40
|
* @evidence contracts/development/implementation.md#clear-and-simple-structure One root selector keeps current-versus-legacy admission separate from the unchanged unit bijection, freshness and whole-population verdict claims.
|
|
42
41
|
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Older contract families, probed in the shared skills tree that also roots their references, and not-yet-created review roots yield no claims; native inactive populations do not establish that independent review occurred.
|
|
43
42
|
* @evidence contracts/development/common.md#meaningful-documentation The prose states canonical admission, exclusive legacy fallback, current-review invalidation, H2 bijection, verdict ownership and optional roots/contracts.
|
|
44
|
-
* @evidence contracts/development/implementation.md#efficient-algorithms
|
|
45
|
-
* @evidence contracts/development/implementation.md#reuse-equivalent-work
|
|
43
|
+
* @evidence contracts/development/implementation.md#efficient-algorithms One review root scans entries only as deep as its actual selectors; directory entries and native glob matching dominate, with a linear root scan for legacy selection when no canonical file exists.
|
|
44
|
+
* @evidence contracts/development/implementation.md#reuse-equivalent-work The resolved files, selected root and lineage serve both claims; filesystem observation repeats per config build so new current files replace legacy selection.
|
|
46
45
|
* @evidence contracts/development/implementation.md#bound-retention-and-release-resources Directory arrays are transient and bounded by visited entries; returned claims belong to the config, and synchronous scans retain no history, handle or task.
|
|
47
46
|
*/
|
|
48
47
|
function createReviewClaims(props, layer) {
|
|
49
|
-
const passes = [
|
|
50
|
-
["draft", (0, constructionStage_1.constructionStage)(props, layer)],
|
|
51
|
-
...((0, hasNaturalness_1.hasNaturalness)(layer)
|
|
52
|
-
? [
|
|
53
|
-
["final", props.naturalness.screenplay],
|
|
54
|
-
]
|
|
55
|
-
: []),
|
|
56
|
-
];
|
|
57
48
|
const principles = installed(props, "principles/review.md");
|
|
58
49
|
const obligations = installed(props, "obligations/review.md");
|
|
59
50
|
if (!principles && !obligations)
|
|
60
51
|
return [];
|
|
61
52
|
const files = (0, createUnitFiles_1.createUnitFiles)(layer, props.narrativeScope);
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
exclusion: false,
|
|
114
|
-
}),
|
|
115
|
-
uniqueEvidence: true,
|
|
116
|
-
},
|
|
53
|
+
const inside = files.map((file) => file.slice(layer.length + 1));
|
|
54
|
+
const base = `${PACKAGE_DOCS_ROOT_1.PACKAGE_DOCS_ROOT}/review/draft/${layer}`;
|
|
55
|
+
const selected = selectReviewRoot(node_path_1.default.join(props.location, base), inside);
|
|
56
|
+
if (selected === null)
|
|
57
|
+
return [];
|
|
58
|
+
const disabled = (0, constructionStage_1.constructionStage)(props, layer) === "disabled";
|
|
59
|
+
const root = selected.root === "" ? base : `${base}/${selected.root}`;
|
|
60
|
+
const lineage = {
|
|
61
|
+
...(0, createLineageReference_1.createLineageReference)(files, "h2", true),
|
|
62
|
+
root: `${BODY_ROOT_1.BODY_ROOT}/${layer}`,
|
|
63
|
+
files: inside,
|
|
64
|
+
};
|
|
65
|
+
return [
|
|
66
|
+
{
|
|
67
|
+
name: `${layer} construction review H2 units keep a current review of their body H2`,
|
|
68
|
+
type: "markdown",
|
|
69
|
+
root,
|
|
70
|
+
files: selected.files,
|
|
71
|
+
symbol: "h2",
|
|
72
|
+
disabled,
|
|
73
|
+
reference: [
|
|
74
|
+
lineage,
|
|
75
|
+
...(principles
|
|
76
|
+
? [
|
|
77
|
+
(0, createSharedReference_1.createSharedReference)({
|
|
78
|
+
contracts: props,
|
|
79
|
+
file: "principles/review.md",
|
|
80
|
+
checklist: true,
|
|
81
|
+
exclusion: false,
|
|
82
|
+
}),
|
|
83
|
+
]
|
|
84
|
+
: []),
|
|
85
|
+
],
|
|
86
|
+
},
|
|
87
|
+
...(obligations
|
|
88
|
+
? [
|
|
89
|
+
{
|
|
90
|
+
name: `${layer} construction verdict answers each review obligation once`,
|
|
91
|
+
type: "markdown",
|
|
92
|
+
root,
|
|
93
|
+
files: ["verdict/index.md"],
|
|
94
|
+
symbol: "file",
|
|
95
|
+
disabled,
|
|
96
|
+
reference: {
|
|
97
|
+
...(0, createSharedReference_1.createSharedReference)({
|
|
98
|
+
contracts: props,
|
|
99
|
+
file: "obligations/review.md",
|
|
100
|
+
checklist: false,
|
|
101
|
+
exclusion: false,
|
|
102
|
+
}),
|
|
103
|
+
uniqueEvidence: true,
|
|
117
104
|
},
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
105
|
+
},
|
|
106
|
+
]
|
|
107
|
+
: []),
|
|
108
|
+
];
|
|
122
109
|
}
|
|
123
110
|
/**
|
|
124
111
|
* Selects current or legacy review hosts, or no review root.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createReviewClaims.js","sourceRoot":"","sources":["../../../../src/narrative/internal/claims/createReviewClaims.ts"],"names":[],"mappings":";;;;;;AAAA,iDAI4B;AAC5B,sDAAyB;AACzB,0DAA6B;
|
|
1
|
+
{"version":3,"file":"createReviewClaims.js","sourceRoot":"","sources":["../../../../src/narrative/internal/claims/createReviewClaims.ts"],"names":[],"mappings":";;;;;;AAAA,iDAI4B;AAC5B,sDAAyB;AACzB,0DAA6B;AAK7B,4DAAyD;AACzD,iFAA8E;AAC9E,+EAA4E;AAC5E,sDAAmD;AACnD,sEAAmE;AACnE,kFAA+E;AAC/E,kEAA+D;AAE/D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH,4BACE,KAA6B,EAC7B,KAAoB;IAEpB,MAAM,UAAU,GAAY,SAAS,CAAC,KAAK,EAAE,sBAAsB,CAAC,CAAC;IACrE,MAAM,WAAW,GAAY,SAAS,CAAC,KAAK,EAAE,uBAAuB,CAAC,CAAC;IACvE,IAAI,CAAC,UAAU,IAAI,CAAC,WAAW;QAAE,OAAO,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CAAC,GAAG,CAAC,CACnB,CACF,CAAC;AACJ,CAAC"}
|
|
@@ -7,7 +7,7 @@ import type { IProductionConfigProps } from "../../IProductionConfigProps";
|
|
|
7
7
|
* depends on, and a canon H2 no selected narrative H2 uses is answered by an
|
|
8
8
|
* exclusion on the narrative H2 whose scope makes it absent.
|
|
9
9
|
*
|
|
10
|
-
* @evidence contracts/development/implementation.md#principled-implementation Actual treatment or short-screenplay H2 consumers cover H2s of every enumerated
|
|
10
|
+
* @evidence contracts/development/implementation.md#principled-implementation Actual treatment or short-screenplay H2 consumers cover H2s of every enumerated canon body file, settings or brief as `canon` names, while the scalar construction stage controls the consumer stage; an empty canon returns undefined.
|
|
11
11
|
* @evidence contracts/development/implementation.md#clear-and-simple-structure Canon coverage lives on the concrete event or short-scene consumers, separate from structural prerequisite readiness and inherited script/screenplay relations.
|
|
12
12
|
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Empty reference populations are omitted because there is no canon dependency to cite; pass readiness remains a separate required check rather than being excused by this omission.
|
|
13
13
|
* @evidence contracts/development/common.md#meaningful-documentation The prose states which canon each consumer cites, dependency hosts and truthful scope exclusions, and the nearby comment distinguishes empty coverage from readiness.
|
|
@@ -4,7 +4,7 @@ exports.createSettingCoverageClaim = createSettingCoverageClaim;
|
|
|
4
4
|
const createNarrativeUnitFiles_1 = require("../../createNarrativeUnitFiles");
|
|
5
5
|
const constructionStage_1 = require("../constructionStage");
|
|
6
6
|
const createSettingReferences_1 = require("../references/createSettingReferences");
|
|
7
|
-
const
|
|
7
|
+
const BODY_ROOT_1 = require("../utilities/BODY_ROOT");
|
|
8
8
|
/**
|
|
9
9
|
* Creates canon dependencies on treatments or short screenplay H2s: settings for treatments and compact shorts, the brief for shorts.
|
|
10
10
|
*
|
|
@@ -12,7 +12,7 @@ const passRoot_1 = require("../utilities/passRoot");
|
|
|
12
12
|
* depends on, and a canon H2 no selected narrative H2 uses is answered by an
|
|
13
13
|
* exclusion on the narrative H2 whose scope makes it absent.
|
|
14
14
|
*
|
|
15
|
-
* @evidence contracts/development/implementation.md#principled-implementation Actual treatment or short-screenplay H2 consumers cover H2s of every enumerated
|
|
15
|
+
* @evidence contracts/development/implementation.md#principled-implementation Actual treatment or short-screenplay H2 consumers cover H2s of every enumerated canon body file, settings or brief as `canon` names, while the scalar construction stage controls the consumer stage; an empty canon returns undefined.
|
|
16
16
|
* @evidence contracts/development/implementation.md#clear-and-simple-structure Canon coverage lives on the concrete event or short-scene consumers, separate from structural prerequisite readiness and inherited script/screenplay relations.
|
|
17
17
|
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Empty reference populations are omitted because there is no canon dependency to cite; pass readiness remains a separate required check rather than being excused by this omission.
|
|
18
18
|
* @evidence contracts/development/common.md#meaningful-documentation The prose states which canon each consumer cites, dependency hosts and truthful scope exclusions, and the nearby comment distinguishes empty coverage from readiness.
|
|
@@ -22,16 +22,15 @@ const passRoot_1 = require("../utilities/passRoot");
|
|
|
22
22
|
*/
|
|
23
23
|
function createSettingCoverageClaim(props, layer, canon = "settings") {
|
|
24
24
|
const stage = (0, constructionStage_1.constructionStage)(props, layer);
|
|
25
|
-
const reference = (0, createSettingReferences_1.createSettingReferences)(props.location,
|
|
26
|
-
// An empty canon has no dependency to cite.
|
|
27
|
-
// checked separately by pass validation; canon is always read in body.
|
|
25
|
+
const reference = (0, createSettingReferences_1.createSettingReferences)(props.location, canon);
|
|
26
|
+
// An empty canon has no dependency to cite.
|
|
28
27
|
if (reference.length === 0)
|
|
29
28
|
return undefined;
|
|
30
29
|
return {
|
|
31
30
|
name: `${layer} H2 consumers cite their ${canon} dependencies`,
|
|
32
31
|
type: "markdown",
|
|
33
|
-
root:
|
|
34
|
-
files: (0, createNarrativeUnitFiles_1.createNarrativeUnitFiles)(layer, props.narrativeScope),
|
|
32
|
+
root: BODY_ROOT_1.BODY_ROOT,
|
|
33
|
+
files: (0, createNarrativeUnitFiles_1.createNarrativeUnitFiles)({ layer, scope: props.narrativeScope }),
|
|
35
34
|
symbol: "h2",
|
|
36
35
|
disabled: stage === "disabled",
|
|
37
36
|
reference,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createSettingCoverageClaim.js","sourceRoot":"","sources":["../../../../src/narrative/internal/claims/createSettingCoverageClaim.ts"],"names":[],"mappings":";;;AAIA,6EAA0E;AAC1E,4DAAyD;AACzD,mFAAgF;AAChF,
|
|
1
|
+
{"version":3,"file":"createSettingCoverageClaim.js","sourceRoot":"","sources":["../../../../src/narrative/internal/claims/createSettingCoverageClaim.ts"],"names":[],"mappings":";;;AAIA,6EAA0E;AAC1E,4DAAyD;AACzD,mFAAgF;AAChF,sDAAmD;AAEnD;;;;;;;;;;;;;;GAcG;AACH,oCACE,KAA6B,EAC7B,KAAkC,EAClC,KAAK,GAAyB,UAAU;IAExC,MAAM,KAAK,GAAoB,IAAA,qCAAiB,EAAC,KAAK,EAAE,KAAK,CAAC,CAAC;IAC/D,MAAM,SAAS,GAAyB,IAAA,iDAAuB,EAC7D,KAAK,CAAC,QAAQ,EACd,KAAK,CACN,CAAC;IACF,4CAA4C;IAC5C,IAAI,SAAS,CAAC,MAAM,KAAK,CAAC;QAAE,OAAO,SAAS,CAAC;IAC7C,OAAO;QACL,IAAI,EAAE,GAAG,KAAK,4BAA4B,KAAK,eAAe;QAC9D,IAAI,EAAE,UAAU;QAChB,IAAI,EAAE,qBAAS;QACf,KAAK,EAAE,IAAA,mDAAwB,EAAC,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,CAAC,cAAc,EAAE,CAAC;QACvE,MAAM,EAAE,IAAI;QACZ,QAAQ,EAAE,KAAK,KAAK,UAAU;QAC9B,SAAS;KACV,CAAC;AACJ,CAAC"}
|
|
@@ -9,6 +9,7 @@ const createOutlineClaims_1 = require("./claims/createOutlineClaims");
|
|
|
9
9
|
const createPopulationObligationClaims_1 = require("./claims/createPopulationObligationClaims");
|
|
10
10
|
const createReviewClaims_1 = require("./claims/createReviewClaims");
|
|
11
11
|
const productionLayers_1 = require("./productionLayers");
|
|
12
|
+
const BODY_ROOT_1 = require("./utilities/BODY_ROOT");
|
|
12
13
|
const assertProductionEvidenceSources_1 = require("./utilities/assertProductionEvidenceSources");
|
|
13
14
|
const createEvidenceFiles_1 = require("./utilities/createEvidenceFiles");
|
|
14
15
|
/**
|
|
@@ -24,10 +25,12 @@ const createEvidenceFiles_1 = require("./utilities/createEvidenceFiles");
|
|
|
24
25
|
*/
|
|
25
26
|
function collectProductionClaims(props) {
|
|
26
27
|
(0, assertProductionEvidenceSources_1.assertProductionEvidenceSources)(props);
|
|
28
|
+
// A short's brief holds only what the commission does not fix, so its
|
|
29
|
+
// screenplay alone realizes the instructions.
|
|
27
30
|
const instructions = (props.mode === "long"
|
|
28
31
|
? ["settings", "treatments"]
|
|
29
32
|
: props.mode === "short"
|
|
30
|
-
? ["
|
|
33
|
+
? ["screenplay"]
|
|
31
34
|
: []).flatMap((layer) => {
|
|
32
35
|
const claim = (0, createInstructionCoverageClaim_1.createInstructionCoverageClaim)(props, layer);
|
|
33
36
|
return claim === undefined ? [] : [claim];
|
|
@@ -49,7 +52,7 @@ function collectProductionClaims(props) {
|
|
|
49
52
|
];
|
|
50
53
|
for (const claim of claims) {
|
|
51
54
|
if (claim.type === "markdown" &&
|
|
52
|
-
claim.root ===
|
|
55
|
+
claim.root === BODY_ROOT_1.BODY_ROOT &&
|
|
53
56
|
claim.evidenceFiles === undefined &&
|
|
54
57
|
(claim.symbol === "file" || claim.symbol === "h2"))
|
|
55
58
|
claim.evidenceFiles = (0, createEvidenceFiles_1.createEvidenceFiles)(claim.symbol, claim.files);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"collectProductionClaims.js","sourceRoot":"","sources":["../../../src/narrative/internal/collectProductionClaims.ts"],"names":[],"mappings":";;;AAIA,wEAAqE;AACrE,gGAA6F;AAC7F,4FAAyF;AACzF,kEAA+D;AAC/D,sEAAmE;AACnE,gGAA6F;AAC7F,oEAAiE;AACjE,yDAAsD;AACtD,iGAA8F;AAC9F,yEAAsE;AAEtE;;;;;;;;;;GAUG;AACH,iCACE,KAA6B;IAE7B,IAAA,iEAA+B,EAAC,KAAK,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"collectProductionClaims.js","sourceRoot":"","sources":["../../../src/narrative/internal/collectProductionClaims.ts"],"names":[],"mappings":";;;AAIA,wEAAqE;AACrE,gGAA6F;AAC7F,4FAAyF;AACzF,kEAA+D;AAC/D,sEAAmE;AACnE,gGAA6F;AAC7F,oEAAiE;AACjE,yDAAsD;AACtD,qDAAkD;AAClD,iGAA8F;AAC9F,yEAAsE;AAEtE;;;;;;;;;;GAUG;AACH,iCACE,KAA6B;IAE7B,IAAA,iEAA+B,EAAC,KAAK,CAAC,CAAC;IAEvC,sEAAsE;IACtE,8CAA8C;IAC9C,MAAM,YAAY,GAAqB,CACrC,KAAK,CAAC,IAAI,KAAK,MAAM;QACnB,CAAC,CAAE,CAAC,UAAU,EAAE,YAAY,CAAW;QACvC,CAAC,CAAC,KAAK,CAAC,IAAI,KAAK,OAAO;YACtB,CAAC,CAAE,CAAC,YAAY,CAAW;YAC3B,CAAC,CAAC,EAAE,CACT,CAAC,OAAO,CACP,CAAC,KAA+C,EAAoB,EAAE;QACpE,MAAM,KAAK,GAA+B,IAAA,+DAA8B,EACtE,KAAK,EACL,KAAK,CACN,CAAC;QACF,OAAO,KAAK,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC;IAC5C,CAAC,CACF,CAAC;IACF,MAAM,OAAO,GACX,KAAK,CAAC,IAAI,KAAK,MAAM,CAAC,CAAC,CAAC,IAAA,yCAAmB,EAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;IAC1D,MAAM,MAAM,GAAqB;QAC/B,GAAG,IAAA,mCAAgB,EAAC,KAAK,CAAC;aACvB,OAAO,CAAC,CAAC,KAAoB,EAAoB,EAAE,CAAC;YACnD,GAAG,IAAA,qCAAiB,EAAC,KAAK,EAAE,KAAK,CAAC;YAClC,GAAG,IAAA,mEAAgC,EAAC,KAAK,EAAE,KAAK,CAAC;YACjD,GAAG,IAAA,mEAAgC,EAAC,KAAK,EAAE,KAAK,CAAC;YACjD,IAAA,2CAAoB,EAAC,KAAK,EAAE,KAAK,CAAC;SACnC,CAAC;aACD,MAAM,CAAC,CAAC,KAAqB,EAAW,EAAE,CACzC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,SAAS,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,IAAI,CACnE;QACH,GAAG,YAAY;QACf,GAAG,OAAO;QACV,GAAG,CAAC,KAAK,CAAC,MAAM,IAAI,EAAE,CAAC;QACvB,GAAG,IAAA,mCAAgB,EAAC,KAAK,CAAC,CAAC,OAAO,CAChC,CAAC,KAAoB,EAAoB,EAAE,CACzC,IAAA,uCAAkB,EAAC,KAAK,EAAE,KAAK,CAAC,CACnC;KACF,CAAC;IACF,KAAK,MAAM,KAAK,IAAI,MAAM,EAAE,CAAC;QAC3B,IACE,KAAK,CAAC,IAAI,KAAK,UAAU;YACzB,KAAK,CAAC,IAAI,KAAK,qBAAS;YACxB,KAAK,CAAC,aAAa,KAAK,SAAS;YACjC,CAAC,KAAK,CAAC,MAAM,KAAK,MAAM,IAAI,KAAK,CAAC,MAAM,KAAK,IAAI,CAAC;YAElD,KAAK,CAAC,aAAa,GAAG,IAAA,yCAAmB,EAAC,KAAK,CAAC,MAAM,EAAE,KAAK,CAAC,KAAK,CAAC,CAAC;IACzE,CAAC;IACD,OAAO,CAAC,GAAG,MAAM,EAAE,GAAG,CAAC,KAAK,CAAC,aAAa,IAAI,EAAE,CAAC,CAAC,CAAC;AACrD,CAAC"}
|
|
@@ -5,7 +5,6 @@ export * from "./claims";
|
|
|
5
5
|
export * from "./collectProductionClaims";
|
|
6
6
|
export * from "./constructionStage";
|
|
7
7
|
export * from "./createGraphConfig";
|
|
8
|
-
export * from "./hasNaturalness";
|
|
9
8
|
export * from "./isCanonLayer";
|
|
10
9
|
export * from "./metadataRewrite";
|
|
11
10
|
export * from "./productionLayers";
|
|
@@ -21,7 +21,6 @@ __exportStar(require("./claims"), exports);
|
|
|
21
21
|
__exportStar(require("./collectProductionClaims"), exports);
|
|
22
22
|
__exportStar(require("./constructionStage"), exports);
|
|
23
23
|
__exportStar(require("./createGraphConfig"), exports);
|
|
24
|
-
__exportStar(require("./hasNaturalness"), exports);
|
|
25
24
|
__exportStar(require("./isCanonLayer"), exports);
|
|
26
25
|
__exportStar(require("./metadataRewrite"), exports);
|
|
27
26
|
__exportStar(require("./productionLayers"), exports);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/narrative/internal/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,oDAAkC;AAClC,oDAAkC;AAClC,qDAAmC;AACnC,2CAAyB;AACzB,4DAA0C;AAC1C,sDAAoC;AACpC,sDAAoC;AACpC,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/narrative/internal/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,oDAAkC;AAClC,oDAAkC;AAClC,qDAAmC;AACnC,2CAAyB;AACzB,4DAA0C;AAC1C,sDAAoC;AACpC,sDAAoC;AACpC,iDAA+B;AAC/B,oDAAkC;AAClC,qDAAmC;AACnC,sDAAoC;AACpC,+CAA6B;AAC7B,wDAAsC;AACtC,6CAA2B;AAC3B,8CAA4B;AAC5B,4DAA0C"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import type { IEvidenceReference } from "@wrtnlabs/evidence";
|
|
2
|
-
import type { AuthoredPass } from "../../AuthoredPass";
|
|
3
2
|
/**
|
|
4
3
|
* Creates a reference to the treatment units a partitioned layer realizes.
|
|
5
4
|
*
|
|
@@ -26,4 +25,4 @@ import type { AuthoredPass } from "../../AuthoredPass";
|
|
|
26
25
|
* @evidence contracts/development/implementation.md#reuse-equivalent-work Address formation is shared with lineage references; H2 selectors retain the provided array while file selectors allocate qualified addresses, and no cross-call cache claims mutable selector equivalence.
|
|
27
26
|
* @evidence contracts/development/implementation.md#bound-retention-and-release-resources The returned reference is caller-owned and may retain the input selector array; file-qualified strings scale with selector text, with no open handles or persistent registry.
|
|
28
27
|
*/
|
|
29
|
-
export declare function createCoverageReference(files: string[], symbol: "file" | "h2"
|
|
28
|
+
export declare function createCoverageReference(files: string[], symbol: "file" | "h2"): IEvidenceReference;
|
|
@@ -28,10 +28,10 @@ const referenceLocation_1 = require("../utilities/referenceLocation");
|
|
|
28
28
|
* @evidence contracts/development/implementation.md#reuse-equivalent-work Address formation is shared with lineage references; H2 selectors retain the provided array while file selectors allocate qualified addresses, and no cross-call cache claims mutable selector equivalence.
|
|
29
29
|
* @evidence contracts/development/implementation.md#bound-retention-and-release-resources The returned reference is caller-owned and may retain the input selector array; file-qualified strings scale with selector text, with no open handles or persistent registry.
|
|
30
30
|
*/
|
|
31
|
-
function createCoverageReference(files, symbol
|
|
31
|
+
function createCoverageReference(files, symbol) {
|
|
32
32
|
return {
|
|
33
33
|
type: "markdown",
|
|
34
|
-
...(0, referenceLocation_1.referenceLocation)(files,
|
|
34
|
+
...(0, referenceLocation_1.referenceLocation)(files, symbol),
|
|
35
35
|
symbol,
|
|
36
36
|
noEvidenceExclude: true,
|
|
37
37
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createCoverageReference.js","sourceRoot":"","sources":["../../../../src/narrative/internal/references/createCoverageReference.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"createCoverageReference.js","sourceRoot":"","sources":["../../../../src/narrative/internal/references/createCoverageReference.ts"],"names":[],"mappings":";;;AAEA,sEAAmE;AAEnE;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,iCACE,KAAe,EACf,MAAqB;IAErB,OAAO;QACL,IAAI,EAAE,UAAU;QAChB,GAAG,IAAA,qCAAiB,EAAC,KAAK,EAAE,MAAM,CAAC;QACnC,MAAM;QACN,iBAAiB,EAAE,IAAI;KACxB,CAAC;AACJ,CAAC"}
|
|
@@ -4,8 +4,8 @@ import type { AuthoredLayer } from "../../AuthoredLayer";
|
|
|
4
4
|
/**
|
|
5
5
|
* Creates the open-world discovery duties one layer's population covers.
|
|
6
6
|
*
|
|
7
|
-
* Canon, settings or a short's brief, searches its own directives
|
|
8
|
-
* planned narrative to find what those layers would otherwise have to invent.
|
|
7
|
+
* Canon, settings or a short's brief, searches its own directives and subject,
|
|
8
|
+
* and backcasts the planned narrative to find what those layers would otherwise have to invent.
|
|
9
9
|
* That backcast is how settings anticipates the cross-layer narrative contract,
|
|
10
10
|
* so `discovery/narratives.md` is not selected here: it is the duty each
|
|
11
11
|
* narrative layer answers when it rechecks that contract against what it
|
|
@@ -7,8 +7,8 @@ const createSharedReference_1 = require("./createSharedReference");
|
|
|
7
7
|
/**
|
|
8
8
|
* Creates the open-world discovery duties one layer's population covers.
|
|
9
9
|
*
|
|
10
|
-
* Canon, settings or a short's brief, searches its own directives
|
|
11
|
-
* planned narrative to find what those layers would otherwise have to invent.
|
|
10
|
+
* Canon, settings or a short's brief, searches its own directives and subject,
|
|
11
|
+
* and backcasts the planned narrative to find what those layers would otherwise have to invent.
|
|
12
12
|
* That backcast is how settings anticipates the cross-layer narrative contract,
|
|
13
13
|
* so `discovery/narratives.md` is not selected here: it is the duty each
|
|
14
14
|
* narrative layer answers when it rechecks that contract against what it
|
|
@@ -1,15 +1,16 @@
|
|
|
1
1
|
import type { IEvidenceReference } from "@wrtnlabs/evidence";
|
|
2
2
|
import type { AuthoredLayer } from "../../AuthoredLayer";
|
|
3
3
|
/**
|
|
4
|
-
* Selects the installed language's per-unit questions for one
|
|
4
|
+
* Selects the installed language's per-unit questions for one family.
|
|
5
5
|
*
|
|
6
|
-
*
|
|
7
|
-
*
|
|
6
|
+
* A language module's principles apply to every construction; its
|
|
7
|
+
* `naturalness/` questions apply to scripts construction, the one layer that
|
|
8
|
+
* selects the expression family.
|
|
8
9
|
*
|
|
9
|
-
* @evidence contracts/development/implementation.md#principled-implementation Layer-specific candidate files are selected from the installed language principles or
|
|
10
|
+
* @evidence contracts/development/implementation.md#principled-implementation Layer-specific candidate files are selected from the installed language principles or expression family, with every present file forming a per-unit H2 checklist and exclusions forbidden.
|
|
10
11
|
* @evidence contracts/development/implementation.md#clear-and-simple-structure Family selection is localized here while local-file admission and contract-relative addresses belong to createLocalContractReference.
|
|
11
12
|
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Missing optional language files are omitted according to the sparse installed module; no default language or synthetic question is substituted.
|
|
12
|
-
* @evidence contracts/development/common.md#meaningful-documentation The prose states per-unit ownership,
|
|
13
|
+
* @evidence contracts/development/common.md#meaningful-documentation The prose states per-unit ownership, family selection and which construction answers the expression family.
|
|
13
14
|
* @evidence contracts/development/implementation.md#efficient-algorithms At most four candidate files each require one synchronous existence probe; mapping/filtering and allocated references have a fixed family bound with path-length-dependent string work.
|
|
14
15
|
* @evidence contracts/development/implementation.md#reuse-equivalent-work layerFiles and the local-reference builder centralize equivalent scope/address rules; installation state is observed for each build, not cached across edits.
|
|
15
16
|
* @evidence contracts/development/implementation.md#bound-retention-and-release-resources Only the bounded returned references remain with the claim owner; intermediate optional arrays and paths expire after the call with no open handles or tasks.
|
|
@@ -17,5 +18,5 @@ import type { AuthoredLayer } from "../../AuthoredLayer";
|
|
|
17
18
|
export declare function createLanguagePrincipleReferences(props: {
|
|
18
19
|
location: string;
|
|
19
20
|
layer: AuthoredLayer;
|
|
20
|
-
|
|
21
|
+
family: "principles" | "naturalness";
|
|
21
22
|
}): IEvidenceReference[];
|
|
@@ -4,26 +4,26 @@ exports.createLanguagePrincipleReferences = createLanguagePrincipleReferences;
|
|
|
4
4
|
const createLocalContractReference_1 = require("./createLocalContractReference");
|
|
5
5
|
const layerFiles_1 = require("./layerFiles");
|
|
6
6
|
/**
|
|
7
|
-
* Selects the installed language's per-unit questions for one
|
|
7
|
+
* Selects the installed language's per-unit questions for one family.
|
|
8
8
|
*
|
|
9
|
-
*
|
|
10
|
-
*
|
|
9
|
+
* A language module's principles apply to every construction; its
|
|
10
|
+
* `naturalness/` questions apply to scripts construction, the one layer that
|
|
11
|
+
* selects the expression family.
|
|
11
12
|
*
|
|
12
|
-
* @evidence contracts/development/implementation.md#principled-implementation Layer-specific candidate files are selected from the installed language principles or
|
|
13
|
+
* @evidence contracts/development/implementation.md#principled-implementation Layer-specific candidate files are selected from the installed language principles or expression family, with every present file forming a per-unit H2 checklist and exclusions forbidden.
|
|
13
14
|
* @evidence contracts/development/implementation.md#clear-and-simple-structure Family selection is localized here while local-file admission and contract-relative addresses belong to createLocalContractReference.
|
|
14
15
|
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Missing optional language files are omitted according to the sparse installed module; no default language or synthetic question is substituted.
|
|
15
|
-
* @evidence contracts/development/common.md#meaningful-documentation The prose states per-unit ownership,
|
|
16
|
+
* @evidence contracts/development/common.md#meaningful-documentation The prose states per-unit ownership, family selection and which construction answers the expression family.
|
|
16
17
|
* @evidence contracts/development/implementation.md#efficient-algorithms At most four candidate files each require one synchronous existence probe; mapping/filtering and allocated references have a fixed family bound with path-length-dependent string work.
|
|
17
18
|
* @evidence contracts/development/implementation.md#reuse-equivalent-work layerFiles and the local-reference builder centralize equivalent scope/address rules; installation state is observed for each build, not cached across edits.
|
|
18
19
|
* @evidence contracts/development/implementation.md#bound-retention-and-release-resources Only the bounded returned references remain with the claim owner; intermediate optional arrays and paths expire after the call with no open handles or tasks.
|
|
19
20
|
*/
|
|
20
21
|
function createLanguagePrincipleReferences(props) {
|
|
21
|
-
const family = props.gate === "naturalness" ? "naturalness" : "principles";
|
|
22
22
|
return (0, layerFiles_1.layerFiles)(props.layer)
|
|
23
23
|
.map((file) => (0, createLocalContractReference_1.createLocalContractReference)({
|
|
24
24
|
location: props.location,
|
|
25
25
|
scope: "language",
|
|
26
|
-
file: `${family}/${file}`,
|
|
26
|
+
file: `${props.family}/${file}`,
|
|
27
27
|
checklist: true,
|
|
28
28
|
exclusion: false,
|
|
29
29
|
}))
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createLanguagePrincipleReferences.js","sourceRoot":"","sources":["../../../../src/narrative/internal/references/createLanguagePrincipleReferences.ts"],"names":[],"mappings":";;;AAMA,iFAA8E;AAC9E,6CAA0C;AAE1C
|
|
1
|
+
{"version":3,"file":"createLanguagePrincipleReferences.js","sourceRoot":"","sources":["../../../../src/narrative/internal/references/createLanguagePrincipleReferences.ts"],"names":[],"mappings":";;;AAMA,iFAA8E;AAC9E,6CAA0C;AAE1C;;;;;;;;;;;;;;GAcG;AACH,2CAAkD,KAIjD;IACC,OAAO,IAAA,uBAAU,EAAC,KAAK,CAAC,KAAK,CAAC;SAC3B,GAAG,CAAC,CAAC,IAAY,EAA0C,EAAE,CAC5D,IAAA,2DAA4B,EAAC;QAC3B,QAAQ,EAAE,KAAK,CAAC,QAAQ;QACxB,KAAK,EAAE,UAAU;QACjB,IAAI,EAAE,GAAG,KAAK,CAAC,MAAM,IAAI,IAAI,EAAE;QAC/B,SAAS,EAAE,IAAI;QACf,SAAS,EAAE,KAAK;KACjB,CAAC,CACH;SACA,MAAM,CACL,CACE,SAAiD,EACR,EAAE,CAAC,SAAS,KAAK,SAAS,CACtE,CAAC;AACN,CAAC"}
|