@wildo-ai/saas-specifications 1.1.12 → 1.1.13
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/dist/esm/_core/application-maturity/application-maturity-open-items.d.ts +48 -0
- package/dist/esm/_core/application-maturity/application-maturity-open-items.d.ts.map +1 -0
- package/dist/esm/_core/application-maturity/application-maturity-open-items.js +69 -0
- package/dist/esm/_core/application-maturity/application-maturity-open-items.js.map +1 -0
- package/dist/esm/_core/application-maturity/application-maturity-validation.d.ts +5 -0
- package/dist/esm/_core/application-maturity/application-maturity-validation.d.ts.map +1 -1
- package/dist/esm/_core/application-maturity/application-maturity-validation.js +12 -0
- package/dist/esm/_core/application-maturity/application-maturity-validation.js.map +1 -1
- package/dist/esm/_core/application-maturity/application-maturity.schemas.d.ts +41 -0
- package/dist/esm/_core/application-maturity/application-maturity.schemas.d.ts.map +1 -1
- package/dist/esm/_core/application-maturity/application-maturity.schemas.js +41 -0
- package/dist/esm/_core/application-maturity/application-maturity.schemas.js.map +1 -1
- package/dist/esm/_core/compliance-documents/launch-blockers.schemas.d.ts +28 -3
- package/dist/esm/_core/compliance-documents/launch-blockers.schemas.d.ts.map +1 -1
- package/dist/esm/_core/compliance-documents/launch-blockers.schemas.js +28 -1
- package/dist/esm/_core/compliance-documents/launch-blockers.schemas.js.map +1 -1
- package/dist/esm/_core/index.d.ts +2 -0
- package/dist/esm/_core/index.d.ts.map +1 -1
- package/dist/esm/_core/index.js +2 -0
- package/dist/esm/_core/index.js.map +1 -1
- package/dist/esm/_core/requirements/functional-requirement.schemas.d.ts +2 -0
- package/dist/esm/_core/requirements/functional-requirement.schemas.d.ts.map +1 -1
- package/dist/esm/_core/requirements/functional-requirement.schemas.js +12 -0
- package/dist/esm/_core/requirements/functional-requirement.schemas.js.map +1 -1
- package/dist/esm/_core/requirements/non-functional-requirement.schemas.d.ts +2 -0
- package/dist/esm/_core/requirements/non-functional-requirement.schemas.d.ts.map +1 -1
- package/dist/esm/_core/requirements/non-functional-requirement.schemas.js +12 -0
- package/dist/esm/_core/requirements/non-functional-requirement.schemas.js.map +1 -1
- package/dist/esm/_core/requirements/requirement-engine-substance.schemas.d.ts +33 -0
- package/dist/esm/_core/requirements/requirement-engine-substance.schemas.d.ts.map +1 -0
- package/dist/esm/_core/requirements/requirement-engine-substance.schemas.js +34 -0
- package/dist/esm/_core/requirements/requirement-engine-substance.schemas.js.map +1 -0
- package/dist/esm/_core/requirements/requirements-snapshot-generation.schemas.d.ts +8 -0
- package/dist/esm/_core/requirements/requirements-snapshot-generation.schemas.d.ts.map +1 -1
- package/dist/esm/_core/requirements/requirements-snapshot-generation.schemas.js +13 -1
- package/dist/esm/_core/requirements/requirements-snapshot-generation.schemas.js.map +1 -1
- package/dist/esm/_core/requirements/requirements-snapshot.schemas.d.ts +4 -0
- package/dist/esm/_core/requirements/requirements-snapshot.schemas.d.ts.map +1 -1
- package/dist/esm/application-creation.exports.d.ts +2 -0
- package/dist/esm/application-creation.exports.d.ts.map +1 -1
- package/dist/esm/application-creation.exports.js +2 -0
- package/dist/esm/application-creation.exports.js.map +1 -1
- package/dist/esm/assurance/assurance-open-compliance-coverage-pack.d.ts +7 -0
- package/dist/esm/assurance/assurance-open-compliance-coverage-pack.d.ts.map +1 -1
- package/dist/esm/assurance/assurance-open-compliance-coverage-pack.js +46 -25
- package/dist/esm/assurance/assurance-open-compliance-coverage-pack.js.map +1 -1
- package/dist/esm/assurance/assurance-source-requirement-inventory.definitions.d.ts.map +1 -1
- package/dist/esm/assurance/assurance-source-requirement-inventory.definitions.js +30 -3
- package/dist/esm/assurance/assurance-source-requirement-inventory.definitions.js.map +1 -1
- package/dist/esm/engine/applications/resources/applications.resource.specification.d.ts +1 -0
- package/dist/esm/engine/applications/resources/applications.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/applications/resources/applications.resource.specification.js +1 -1
- package/dist/esm/engine/applications/resources/applications.resource.specification.js.map +1 -1
- package/dist/esm/engine/engine-resource-specifications.registry.d.ts.map +1 -1
- package/dist/esm/engine/engine-resource-specifications.registry.js +2 -0
- package/dist/esm/engine/engine-resource-specifications.registry.js.map +1 -1
- package/dist/esm/engine/frontend-components/data-display/approval-seal.frontend-component.specification.d.ts +4 -0
- package/dist/esm/engine/frontend-components/data-display/approval-seal.frontend-component.specification.d.ts.map +1 -0
- package/dist/esm/engine/frontend-components/data-display/approval-seal.frontend-component.specification.js +29 -0
- package/dist/esm/engine/frontend-components/data-display/approval-seal.frontend-component.specification.js.map +1 -0
- package/dist/esm/engine/frontend-components/data-display/formatters/display-field-file.frontend-component.specification.js +1 -1
- package/dist/esm/engine/frontend-components/data-display/formatters/display-field-file.frontend-component.specification.js.map +1 -1
- package/dist/esm/engine/frontend-components/flows-actors/low-level-ai-approval.frontend-component.specification.js +1 -1
- package/dist/esm/engine/frontend-components/flows-actors/low-level-ai-approval.frontend-component.specification.js.map +1 -1
- package/dist/esm/engine/frontend-components/high-level-views/high-level-views-chart-dashboard-layout-editor.frontend-component.specification.d.ts +4 -0
- package/dist/esm/engine/frontend-components/high-level-views/high-level-views-chart-dashboard-layout-editor.frontend-component.specification.d.ts.map +1 -0
- package/dist/esm/engine/frontend-components/high-level-views/high-level-views-chart-dashboard-layout-editor.frontend-component.specification.js +22 -0
- package/dist/esm/engine/frontend-components/high-level-views/high-level-views-chart-dashboard-layout-editor.frontend-component.specification.js.map +1 -0
- package/dist/esm/engine/frontend-components/index.d.ts +1 -0
- package/dist/esm/engine/frontend-components/index.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/index.js +5 -0
- package/dist/esm/engine/frontend-components/index.js.map +1 -1
- package/dist/esm/engine/notifications/resources/inbound-deliveries.resource.specification.d.ts +10 -0
- package/dist/esm/engine/notifications/resources/inbound-deliveries.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/notifications/resources/inbound-deliveries.resource.specification.js +10 -1
- package/dist/esm/engine/notifications/resources/inbound-deliveries.resource.specification.js.map +1 -1
- package/dist/esm/engine/organizations/resources/organization-dashboard-layouts.resource.specification.d.ts +30 -0
- package/dist/esm/engine/organizations/resources/organization-dashboard-layouts.resource.specification.d.ts.map +1 -0
- package/dist/esm/engine/organizations/resources/organization-dashboard-layouts.resource.specification.js +131 -0
- package/dist/esm/engine/organizations/resources/organization-dashboard-layouts.resource.specification.js.map +1 -0
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +8 -8
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { RequirementEvidenceLevel, type ApplicationMaturity } from './application-maturity.schemas';
|
|
2
|
+
/**
|
|
3
|
+
* WHAT IS STILL OPEN against the application's own requirements (#3701) — the one predicate "the creation reached its
|
|
4
|
+
* goal" is derived from.
|
|
5
|
+
*
|
|
6
|
+
* ## Why this exists
|
|
7
|
+
*
|
|
8
|
+
* The unattended drive stopped `goal-reached` on the reference run (2026-11-10) because the loop's model chose to stop,
|
|
9
|
+
* while the application's own maturity reading held 16 of its 24 requirements partly met, each with a gap a coding run
|
|
10
|
+
* reported. A model's choice to stop is a judgement; whether the application meets what it asked of itself is a
|
|
11
|
+
* MEASUREMENT, and this module is that measurement in the form a stop rule can read: one item per thing that keeps a
|
|
12
|
+
* requirement from being met, and an empty list only when nothing does.
|
|
13
|
+
*
|
|
14
|
+
* ## Total over what a reading can say
|
|
15
|
+
*
|
|
16
|
+
* Every row's LEVEL maps to the open item it is, or to none, through {@link REQUIREMENT_LEVEL_OPEN_ITEM}, a total map: a
|
|
17
|
+
* level added to the ladder does not compile until somebody says whether it leaves the requirement open. Every reported
|
|
18
|
+
* gap and every configuration gap on a row is an item of its own, whatever the level.
|
|
19
|
+
*/
|
|
20
|
+
export declare enum RequirementOpenItemKind {
|
|
21
|
+
/** Nothing the application decided points at the requirement. */
|
|
22
|
+
NOTHING_ADDRESSES_IT = "NOTHING_ADDRESSES_IT",
|
|
23
|
+
/** Something decided addresses it, and no build work for it has landed. */
|
|
24
|
+
NO_BUILD_WORK_LANDED = "NO_BUILD_WORK_LANDED",
|
|
25
|
+
/** A coding run reported the requirement still unmet, and the gap is open (#2580). */
|
|
26
|
+
REPORTED_GAP_OPEN = "REPORTED_GAP_OPEN",
|
|
27
|
+
/** The application's configuration does not turn on what the requirement needs (#3702). */
|
|
28
|
+
CONFIGURATION_DOES_NOT_MEET = "CONFIGURATION_DOES_NOT_MEET"
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* What each evidence level leaves open, by itself. `BUILT` leaves NOTHING open on purpose: a requirement whose build work
|
|
32
|
+
* landed and whose product the probe could not prove (a task that declares no product, `unverifiableLandedTaskRefs`) is
|
|
33
|
+
* MARKED ran-not-proven (`application-creation-directive.md`: mark, never gate), and a requirement that is BUILT because
|
|
34
|
+
* something is still missing carries that something as a gap, which is an item below. `VERIFIED` and `OBSERVED` are met.
|
|
35
|
+
*/
|
|
36
|
+
export declare const REQUIREMENT_LEVEL_OPEN_ITEM: Readonly<Record<RequirementEvidenceLevel, RequirementOpenItemKind | null>>;
|
|
37
|
+
/** One thing that keeps one requirement from being met. */
|
|
38
|
+
export interface RequirementOpenItem {
|
|
39
|
+
readonly requirementRef: string;
|
|
40
|
+
readonly kind: RequirementOpenItemKind;
|
|
41
|
+
/** The item in words: what is missing, and where it would be met. */
|
|
42
|
+
readonly detail: string;
|
|
43
|
+
/** The task that would close it, when one is named: the follow-up derived for a reported gap. */
|
|
44
|
+
readonly closedByTaskRef?: string;
|
|
45
|
+
}
|
|
46
|
+
/** Every open item of a reading, in row order. Empty exactly when every requirement is met by what the reading can measure. */
|
|
47
|
+
export declare function listRequirementOpenItems(reading: Pick<ApplicationMaturity, 'requirements'>): RequirementOpenItem[];
|
|
48
|
+
//# sourceMappingURL=application-maturity-open-items.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"application-maturity-open-items.d.ts","sourceRoot":"","sources":["../../../../src/_core/application-maturity/application-maturity-open-items.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,wBAAwB,EACxB,KAAK,mBAAmB,EACzB,MAAM,gCAAgC,CAAC;AAExC;;;;;;;;;;;;;;;;;GAiBG;AACH,oBAAY,uBAAuB;IACjC,iEAAiE;IACjE,oBAAoB,yBAAyB;IAC7C,2EAA2E;IAC3E,oBAAoB,yBAAyB;IAC7C,sFAAsF;IACtF,iBAAiB,sBAAsB;IACvC,2FAA2F;IAC3F,2BAA2B,gCAAgC;CAC5D;AAED;;;;;GAKG;AACH,eAAO,MAAM,2BAA2B,EAAE,QAAQ,CAAC,MAAM,CAAC,wBAAwB,EAAE,uBAAuB,GAAG,IAAI,CAAC,CAMlH,CAAC;AAEF,2DAA2D;AAC3D,MAAM,WAAW,mBAAmB;IAClC,QAAQ,CAAC,cAAc,EAAE,MAAM,CAAC;IAChC,QAAQ,CAAC,IAAI,EAAE,uBAAuB,CAAC;IACvC,qEAAqE;IACrE,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,iGAAiG;IACjG,QAAQ,CAAC,eAAe,CAAC,EAAE,MAAM,CAAC;CACnC;AAED,+HAA+H;AAC/H,wBAAgB,wBAAwB,CAAC,OAAO,EAAE,IAAI,CAAC,mBAAmB,EAAE,cAAc,CAAC,GAAG,mBAAmB,EAAE,CAsBlH"}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import { RequirementEvidenceLevel, } from './application-maturity.schemas.js';
|
|
2
|
+
/**
|
|
3
|
+
* WHAT IS STILL OPEN against the application's own requirements (#3701) — the one predicate "the creation reached its
|
|
4
|
+
* goal" is derived from.
|
|
5
|
+
*
|
|
6
|
+
* ## Why this exists
|
|
7
|
+
*
|
|
8
|
+
* The unattended drive stopped `goal-reached` on the reference run (2026-11-10) because the loop's model chose to stop,
|
|
9
|
+
* while the application's own maturity reading held 16 of its 24 requirements partly met, each with a gap a coding run
|
|
10
|
+
* reported. A model's choice to stop is a judgement; whether the application meets what it asked of itself is a
|
|
11
|
+
* MEASUREMENT, and this module is that measurement in the form a stop rule can read: one item per thing that keeps a
|
|
12
|
+
* requirement from being met, and an empty list only when nothing does.
|
|
13
|
+
*
|
|
14
|
+
* ## Total over what a reading can say
|
|
15
|
+
*
|
|
16
|
+
* Every row's LEVEL maps to the open item it is, or to none, through {@link REQUIREMENT_LEVEL_OPEN_ITEM}, a total map: a
|
|
17
|
+
* level added to the ladder does not compile until somebody says whether it leaves the requirement open. Every reported
|
|
18
|
+
* gap and every configuration gap on a row is an item of its own, whatever the level.
|
|
19
|
+
*/
|
|
20
|
+
export var RequirementOpenItemKind;
|
|
21
|
+
(function (RequirementOpenItemKind) {
|
|
22
|
+
/** Nothing the application decided points at the requirement. */
|
|
23
|
+
RequirementOpenItemKind["NOTHING_ADDRESSES_IT"] = "NOTHING_ADDRESSES_IT";
|
|
24
|
+
/** Something decided addresses it, and no build work for it has landed. */
|
|
25
|
+
RequirementOpenItemKind["NO_BUILD_WORK_LANDED"] = "NO_BUILD_WORK_LANDED";
|
|
26
|
+
/** A coding run reported the requirement still unmet, and the gap is open (#2580). */
|
|
27
|
+
RequirementOpenItemKind["REPORTED_GAP_OPEN"] = "REPORTED_GAP_OPEN";
|
|
28
|
+
/** The application's configuration does not turn on what the requirement needs (#3702). */
|
|
29
|
+
RequirementOpenItemKind["CONFIGURATION_DOES_NOT_MEET"] = "CONFIGURATION_DOES_NOT_MEET";
|
|
30
|
+
})(RequirementOpenItemKind || (RequirementOpenItemKind = {}));
|
|
31
|
+
/**
|
|
32
|
+
* What each evidence level leaves open, by itself. `BUILT` leaves NOTHING open on purpose: a requirement whose build work
|
|
33
|
+
* landed and whose product the probe could not prove (a task that declares no product, `unverifiableLandedTaskRefs`) is
|
|
34
|
+
* MARKED ran-not-proven (`application-creation-directive.md`: mark, never gate), and a requirement that is BUILT because
|
|
35
|
+
* something is still missing carries that something as a gap, which is an item below. `VERIFIED` and `OBSERVED` are met.
|
|
36
|
+
*/
|
|
37
|
+
export const REQUIREMENT_LEVEL_OPEN_ITEM = {
|
|
38
|
+
[RequirementEvidenceLevel.UNADDRESSED]: RequirementOpenItemKind.NOTHING_ADDRESSES_IT,
|
|
39
|
+
[RequirementEvidenceLevel.DECIDED]: RequirementOpenItemKind.NO_BUILD_WORK_LANDED,
|
|
40
|
+
[RequirementEvidenceLevel.BUILT]: null,
|
|
41
|
+
[RequirementEvidenceLevel.VERIFIED]: null,
|
|
42
|
+
[RequirementEvidenceLevel.OBSERVED]: null,
|
|
43
|
+
};
|
|
44
|
+
/** Every open item of a reading, in row order. Empty exactly when every requirement is met by what the reading can measure. */
|
|
45
|
+
export function listRequirementOpenItems(reading) {
|
|
46
|
+
const items = [];
|
|
47
|
+
for (const row of reading.requirements) {
|
|
48
|
+
const levelItem = REQUIREMENT_LEVEL_OPEN_ITEM[row.level];
|
|
49
|
+
if (levelItem === RequirementOpenItemKind.NOTHING_ADDRESSES_IT) {
|
|
50
|
+
items.push({ requirementRef: row.requirementRef, kind: levelItem, detail: 'nothing the application decided addresses it' });
|
|
51
|
+
}
|
|
52
|
+
else if (levelItem === RequirementOpenItemKind.NO_BUILD_WORK_LANDED) {
|
|
53
|
+
items.push({ requirementRef: row.requirementRef, kind: levelItem, detail: `addressed by ${row.addressedByRefs.join(', ')}, and no build work for it has landed` });
|
|
54
|
+
}
|
|
55
|
+
for (const gap of row.openGaps) {
|
|
56
|
+
items.push({
|
|
57
|
+
requirementRef: row.requirementRef,
|
|
58
|
+
kind: RequirementOpenItemKind.REPORTED_GAP_OPEN,
|
|
59
|
+
detail: `${gap.originTaskRef} reports: ${gap.missing}`,
|
|
60
|
+
...(gap.followUpTaskRef === undefined ? {} : { closedByTaskRef: gap.followUpTaskRef }),
|
|
61
|
+
});
|
|
62
|
+
}
|
|
63
|
+
for (const gap of row.configurationGaps) {
|
|
64
|
+
items.push({ requirementRef: row.requirementRef, kind: RequirementOpenItemKind.CONFIGURATION_DOES_NOT_MEET, detail: `${gap.value} is not set in ${gap.declaredIn}` });
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
return items;
|
|
68
|
+
}
|
|
69
|
+
//# sourceMappingURL=application-maturity-open-items.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"application-maturity-open-items.js","sourceRoot":"","sources":["../../../../src/_core/application-maturity/application-maturity-open-items.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,wBAAwB,GAEzB,MAAM,gCAAgC,CAAC;AAExC;;;;;;;;;;;;;;;;;GAiBG;AACH,MAAM,CAAN,IAAY,uBASX;AATD,WAAY,uBAAuB;IACjC,iEAAiE;IACjE,wEAA6C,CAAA;IAC7C,2EAA2E;IAC3E,wEAA6C,CAAA;IAC7C,sFAAsF;IACtF,kEAAuC,CAAA;IACvC,2FAA2F;IAC3F,sFAA2D,CAAA;AAC7D,CAAC,EATW,uBAAuB,KAAvB,uBAAuB,QASlC;AAED;;;;;GAKG;AACH,MAAM,CAAC,MAAM,2BAA2B,GAA+E;IACrH,CAAC,wBAAwB,CAAC,WAAW,CAAC,EAAE,uBAAuB,CAAC,oBAAoB;IACpF,CAAC,wBAAwB,CAAC,OAAO,CAAC,EAAE,uBAAuB,CAAC,oBAAoB;IAChF,CAAC,wBAAwB,CAAC,KAAK,CAAC,EAAE,IAAI;IACtC,CAAC,wBAAwB,CAAC,QAAQ,CAAC,EAAE,IAAI;IACzC,CAAC,wBAAwB,CAAC,QAAQ,CAAC,EAAE,IAAI;CAC1C,CAAC;AAYF,+HAA+H;AAC/H,MAAM,UAAU,wBAAwB,CAAC,OAAkD;IACzF,MAAM,KAAK,GAA0B,EAAE,CAAC;IACxC,KAAK,MAAM,GAAG,IAAI,OAAO,CAAC,YAAY,EAAE,CAAC;QACvC,MAAM,SAAS,GAAG,2BAA2B,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;QACzD,IAAI,SAAS,KAAK,uBAAuB,CAAC,oBAAoB,EAAE,CAAC;YAC/D,KAAK,CAAC,IAAI,CAAC,EAAE,cAAc,EAAE,GAAG,CAAC,cAAc,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,8CAA8C,EAAE,CAAC,CAAC;QAC9H,CAAC;aAAM,IAAI,SAAS,KAAK,uBAAuB,CAAC,oBAAoB,EAAE,CAAC;YACtE,KAAK,CAAC,IAAI,CAAC,EAAE,cAAc,EAAE,GAAG,CAAC,cAAc,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,gBAAgB,GAAG,CAAC,eAAe,CAAC,IAAI,CAAC,IAAI,CAAC,uCAAuC,EAAE,CAAC,CAAC;QACrK,CAAC;QACD,KAAK,MAAM,GAAG,IAAI,GAAG,CAAC,QAAQ,EAAE,CAAC;YAC/B,KAAK,CAAC,IAAI,CAAC;gBACT,cAAc,EAAE,GAAG,CAAC,cAAc;gBAClC,IAAI,EAAE,uBAAuB,CAAC,iBAAiB;gBAC/C,MAAM,EAAE,GAAG,GAAG,CAAC,aAAa,aAAa,GAAG,CAAC,OAAO,EAAE;gBACtD,GAAG,CAAC,GAAG,CAAC,eAAe,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,eAAe,EAAE,GAAG,CAAC,eAAe,EAAE,CAAC;aACvF,CAAC,CAAC;QACL,CAAC;QACD,KAAK,MAAM,GAAG,IAAI,GAAG,CAAC,iBAAiB,EAAE,CAAC;YACxC,KAAK,CAAC,IAAI,CAAC,EAAE,cAAc,EAAE,GAAG,CAAC,cAAc,EAAE,IAAI,EAAE,uBAAuB,CAAC,2BAA2B,EAAE,MAAM,EAAE,GAAG,GAAG,CAAC,KAAK,kBAAkB,GAAG,CAAC,UAAU,EAAE,EAAE,CAAC,CAAC;QACxK,CAAC;IACH,CAAC;IACD,OAAO,KAAK,CAAC;AACf,CAAC","sourcesContent":["import {\n RequirementEvidenceLevel,\n type ApplicationMaturity,\n} from './application-maturity.schemas';\n\n/**\n * WHAT IS STILL OPEN against the application's own requirements (#3701) — the one predicate \"the creation reached its\n * goal\" is derived from.\n *\n * ## Why this exists\n *\n * The unattended drive stopped `goal-reached` on the reference run (2026-11-10) because the loop's model chose to stop,\n * while the application's own maturity reading held 16 of its 24 requirements partly met, each with a gap a coding run\n * reported. A model's choice to stop is a judgement; whether the application meets what it asked of itself is a\n * MEASUREMENT, and this module is that measurement in the form a stop rule can read: one item per thing that keeps a\n * requirement from being met, and an empty list only when nothing does.\n *\n * ## Total over what a reading can say\n *\n * Every row's LEVEL maps to the open item it is, or to none, through {@link REQUIREMENT_LEVEL_OPEN_ITEM}, a total map: a\n * level added to the ladder does not compile until somebody says whether it leaves the requirement open. Every reported\n * gap and every configuration gap on a row is an item of its own, whatever the level.\n */\nexport enum RequirementOpenItemKind {\n /** Nothing the application decided points at the requirement. */\n NOTHING_ADDRESSES_IT = 'NOTHING_ADDRESSES_IT',\n /** Something decided addresses it, and no build work for it has landed. */\n NO_BUILD_WORK_LANDED = 'NO_BUILD_WORK_LANDED',\n /** A coding run reported the requirement still unmet, and the gap is open (#2580). */\n REPORTED_GAP_OPEN = 'REPORTED_GAP_OPEN',\n /** The application's configuration does not turn on what the requirement needs (#3702). */\n CONFIGURATION_DOES_NOT_MEET = 'CONFIGURATION_DOES_NOT_MEET',\n}\n\n/**\n * What each evidence level leaves open, by itself. `BUILT` leaves NOTHING open on purpose: a requirement whose build work\n * landed and whose product the probe could not prove (a task that declares no product, `unverifiableLandedTaskRefs`) is\n * MARKED ran-not-proven (`application-creation-directive.md`: mark, never gate), and a requirement that is BUILT because\n * something is still missing carries that something as a gap, which is an item below. `VERIFIED` and `OBSERVED` are met.\n */\nexport const REQUIREMENT_LEVEL_OPEN_ITEM: Readonly<Record<RequirementEvidenceLevel, RequirementOpenItemKind | null>> = {\n [RequirementEvidenceLevel.UNADDRESSED]: RequirementOpenItemKind.NOTHING_ADDRESSES_IT,\n [RequirementEvidenceLevel.DECIDED]: RequirementOpenItemKind.NO_BUILD_WORK_LANDED,\n [RequirementEvidenceLevel.BUILT]: null,\n [RequirementEvidenceLevel.VERIFIED]: null,\n [RequirementEvidenceLevel.OBSERVED]: null,\n};\n\n/** One thing that keeps one requirement from being met. */\nexport interface RequirementOpenItem {\n readonly requirementRef: string;\n readonly kind: RequirementOpenItemKind;\n /** The item in words: what is missing, and where it would be met. */\n readonly detail: string;\n /** The task that would close it, when one is named: the follow-up derived for a reported gap. */\n readonly closedByTaskRef?: string;\n}\n\n/** Every open item of a reading, in row order. Empty exactly when every requirement is met by what the reading can measure. */\nexport function listRequirementOpenItems(reading: Pick<ApplicationMaturity, 'requirements'>): RequirementOpenItem[] {\n const items: RequirementOpenItem[] = [];\n for (const row of reading.requirements) {\n const levelItem = REQUIREMENT_LEVEL_OPEN_ITEM[row.level];\n if (levelItem === RequirementOpenItemKind.NOTHING_ADDRESSES_IT) {\n items.push({ requirementRef: row.requirementRef, kind: levelItem, detail: 'nothing the application decided addresses it' });\n } else if (levelItem === RequirementOpenItemKind.NO_BUILD_WORK_LANDED) {\n items.push({ requirementRef: row.requirementRef, kind: levelItem, detail: `addressed by ${row.addressedByRefs.join(', ')}, and no build work for it has landed` });\n }\n for (const gap of row.openGaps) {\n items.push({\n requirementRef: row.requirementRef,\n kind: RequirementOpenItemKind.REPORTED_GAP_OPEN,\n detail: `${gap.originTaskRef} reports: ${gap.missing}`,\n ...(gap.followUpTaskRef === undefined ? {} : { closedByTaskRef: gap.followUpTaskRef }),\n });\n }\n for (const gap of row.configurationGaps) {\n items.push({ requirementRef: row.requirementRef, kind: RequirementOpenItemKind.CONFIGURATION_DOES_NOT_MEET, detail: `${gap.value} is not set in ${gap.declaredIn}` });\n }\n }\n return items;\n}\n"]}
|
|
@@ -10,6 +10,11 @@ export declare enum ApplicationMaturityFindingCode {
|
|
|
10
10
|
* finding names what is missing and the follow-up that answers it.
|
|
11
11
|
*/
|
|
12
12
|
REPORTED_GAP_OPEN = "REPORTED_GAP_OPEN",
|
|
13
|
+
/**
|
|
14
|
+
* A requirement the application's configuration does not meet (#3702): it declares an engine capability that is not
|
|
15
|
+
* enabled, or a language that is not served. Its evidence stops at BUILT, and the finding names the declaration to set.
|
|
16
|
+
*/
|
|
17
|
+
CONFIGURATION_DOES_NOT_MEET = "CONFIGURATION_DOES_NOT_MEET",
|
|
13
18
|
/**
|
|
14
19
|
* NO requirement carries a runtime observation, and the reading says why rather than leaving the
|
|
15
20
|
* top of the ladder quietly empty.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"application-maturity-validation.d.ts","sourceRoot":"","sources":["../../../../src/_core/application-maturity/application-maturity-validation.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,mBAAmB,EACzB,MAAM,gCAAgC,CAAC;AAExC,kGAAkG;AAClG,oBAAY,8BAA8B;IACxC,2FAA2F;IAC3F,uBAAuB,4BAA4B;IACnD,qGAAqG;IACrG,oBAAoB,yBAAyB;IAC7C;;;OAGG;IACH,iBAAiB,sBAAsB;IACvC;;;;;;;;OAQG;IACH,6BAA6B,kCAAkC;IAC/D,wFAAwF;IACxF,wBAAwB,6BAA6B;CACtD;AAED,MAAM,WAAW,0BAA0B;IACzC,QAAQ,CAAC,IAAI,EAAE,8BAA8B,CAAC;IAC9C,QAAQ,CAAC,cAAc,EAAE,MAAM,GAAG,IAAI,CAAC;IACvC,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;CAC1B;AAED;;;;;GAKG;AACH,eAAO,MAAM,qCAAqC,EAAE,SAAS,8BAA8B,EAAO,CAAC;AAEnG,wBAAgB,2BAA2B,CAAC,OAAO,EAAE,mBAAmB,GAAG,SAAS,0BAA0B,EAAE,
|
|
1
|
+
{"version":3,"file":"application-maturity-validation.d.ts","sourceRoot":"","sources":["../../../../src/_core/application-maturity/application-maturity-validation.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,mBAAmB,EACzB,MAAM,gCAAgC,CAAC;AAExC,kGAAkG;AAClG,oBAAY,8BAA8B;IACxC,2FAA2F;IAC3F,uBAAuB,4BAA4B;IACnD,qGAAqG;IACrG,oBAAoB,yBAAyB;IAC7C;;;OAGG;IACH,iBAAiB,sBAAsB;IACvC;;;OAGG;IACH,2BAA2B,gCAAgC;IAC3D;;;;;;;;OAQG;IACH,6BAA6B,kCAAkC;IAC/D,wFAAwF;IACxF,wBAAwB,6BAA6B;CACtD;AAED,MAAM,WAAW,0BAA0B;IACzC,QAAQ,CAAC,IAAI,EAAE,8BAA8B,CAAC;IAC9C,QAAQ,CAAC,cAAc,EAAE,MAAM,GAAG,IAAI,CAAC;IACvC,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;CAC1B;AAED;;;;;GAKG;AACH,eAAO,MAAM,qCAAqC,EAAE,SAAS,8BAA8B,EAAO,CAAC;AAEnG,wBAAgB,2BAA2B,CAAC,OAAO,EAAE,mBAAmB,GAAG,SAAS,0BAA0B,EAAE,CAmD/G"}
|
|
@@ -11,6 +11,11 @@ export var ApplicationMaturityFindingCode;
|
|
|
11
11
|
* finding names what is missing and the follow-up that answers it.
|
|
12
12
|
*/
|
|
13
13
|
ApplicationMaturityFindingCode["REPORTED_GAP_OPEN"] = "REPORTED_GAP_OPEN";
|
|
14
|
+
/**
|
|
15
|
+
* A requirement the application's configuration does not meet (#3702): it declares an engine capability that is not
|
|
16
|
+
* enabled, or a language that is not served. Its evidence stops at BUILT, and the finding names the declaration to set.
|
|
17
|
+
*/
|
|
18
|
+
ApplicationMaturityFindingCode["CONFIGURATION_DOES_NOT_MEET"] = "CONFIGURATION_DOES_NOT_MEET";
|
|
14
19
|
/**
|
|
15
20
|
* NO requirement carries a runtime observation, and the reading says why rather than leaving the
|
|
16
21
|
* top of the ladder quietly empty.
|
|
@@ -58,6 +63,13 @@ export function validateApplicationMaturity(reading) {
|
|
|
58
63
|
message: `${row.requirementRef} is partly met: ${gaps.join('; ')}. Its evidence stops at BUILT until the gap closes.`,
|
|
59
64
|
});
|
|
60
65
|
}
|
|
66
|
+
if (row.configurationGaps.length > 0) {
|
|
67
|
+
findings.push({
|
|
68
|
+
code: ApplicationMaturityFindingCode.CONFIGURATION_DOES_NOT_MEET,
|
|
69
|
+
requirementRef: row.requirementRef,
|
|
70
|
+
message: `${row.requirementRef} is not met by the application's configuration: ${row.configurationGaps.map((gap) => `${gap.value} (${gap.declaredIn})`).join('; ')}. Its evidence stops at BUILT until the configuration declares it.`,
|
|
71
|
+
});
|
|
72
|
+
}
|
|
61
73
|
if (row.landedTaskRefs.length > 0 && row.provenTaskRefs.length === 0) {
|
|
62
74
|
findings.push({
|
|
63
75
|
code: ApplicationMaturityFindingCode.LANDED_WITHOUT_PROOF,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"application-maturity-validation.js","sourceRoot":"","sources":["../../../../src/_core/application-maturity/application-maturity-validation.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,wBAAwB,GAEzB,MAAM,gCAAgC,CAAC;AAExC,kGAAkG;AAClG,MAAM,CAAN,IAAY,
|
|
1
|
+
{"version":3,"file":"application-maturity-validation.js","sourceRoot":"","sources":["../../../../src/_core/application-maturity/application-maturity-validation.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,wBAAwB,GAEzB,MAAM,gCAAgC,CAAC;AAExC,kGAAkG;AAClG,MAAM,CAAN,IAAY,8BA2BX;AA3BD,WAAY,8BAA8B;IACxC,2FAA2F;IAC3F,qFAAmD,CAAA;IACnD,qGAAqG;IACrG,+EAA6C,CAAA;IAC7C;;;OAGG;IACH,yEAAuC,CAAA;IACvC;;;OAGG;IACH,6FAA2D,CAAA;IAC3D;;;;;;;;OAQG;IACH,iGAA+D,CAAA;IAC/D,wFAAwF;IACxF,uFAAqD,CAAA;AACvD,CAAC,EA3BW,8BAA8B,KAA9B,8BAA8B,QA2BzC;AAQD;;;;;GAKG;AACH,MAAM,CAAC,MAAM,qCAAqC,GAA8C,EAAE,CAAC;AAEnG,MAAM,UAAU,2BAA2B,CAAC,OAA4B;IACtE,MAAM,QAAQ,GAAiC,EAAE,CAAC;IAClD,IAAI,OAAO,CAAC,YAAY,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;QACtC,QAAQ,CAAC,IAAI,CAAC;YACZ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AClC,OAAO,EAAE,GAAG,GAAG,CAAC,cAAc,mDAAmD,GAAG,CAAC,iBAAiB,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,GAAG,CAAC,KAAK,KAAK,GAAG,CAAC,UAAU,GAAG,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,oEAAoE;aACvO,CAAC,CAAC;QACL,CAAC;QACD,IAAI,GAAG,CAAC,cAAc,CAAC,MAAM,GAAG,CAAC,IAAI,GAAG,CAAC,cAAc,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;YACrE,QAAQ,CAAC,IAAI,CAAC;gBACZ,IAAI,EAAE,8BAA8B,CAAC,oBAAoB;gBACzD,cAAc,EAAE,GAAG,CAAC,cAAc;gBAClC,OAAO,EAAE,GAAG,GAAG,CAAC,cAAc,2BAA2B,GAAG,CAAC,cAAc,CAAC,IAAI,CAAC,IAAI,CAAC,+EAA+E;aACtK,CAAC,CAAC;QACL,CAAC;IACH,CAAC;IACD,IAAI,OAAO,CAAC,YAAY,CAAC,KAAK,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,CAAC,eAAe,CAAC,MAAM,KAAK,CAAC,CAAC,EAAE,CAAC;QAC1E,QAAQ,CAAC,IAAI,CAAC;YACZ,IAAI,EAAE,8BAA8B,CAAC,6BAA6B;YAClE,cAAc,EAAE,IAAI;YACpB,OAAO,EAAE,iHAAiH;kBACtH,+KAA+K;SACpL,CAAC,CAAC;IACL,CAAC;IACD,OAAO,QAAQ,CAAC;AAClB,CAAC","sourcesContent":["import {\n RequirementEvidenceLevel,\n type ApplicationMaturity,\n} from './application-maturity.schemas';\n\n/** Deterministic finding over a maturity reading; what the reading SAYS about the application. */\nexport enum ApplicationMaturityFindingCode {\n /** A requirement nothing the application decided points at — the reading's whole point. */\n REQUIREMENT_UNADDRESSED = 'REQUIREMENT_UNADDRESSED',\n /** A requirement whose build task landed and could not be proven, so its evidence stops at BUILT. */\n LANDED_WITHOUT_PROOF = 'LANDED_WITHOUT_PROOF',\n /**\n * A requirement a coding run reported still unmet, with the gap open (#2580): its evidence stops at BUILT, and the\n * finding names what is missing and the follow-up that answers it.\n */\n REPORTED_GAP_OPEN = 'REPORTED_GAP_OPEN',\n /**\n * A requirement the application's configuration does not meet (#3702): it declares an engine capability that is not\n * enabled, or a language that is not served. Its evidence stops at BUILT, and the finding names the declaration to set.\n */\n CONFIGURATION_DOES_NOT_MEET = 'CONFIGURATION_DOES_NOT_MEET',\n /**\n * NO requirement carries a runtime observation, and the reading says why rather than leaving the\n * top of the ladder quietly empty.\n *\n * This is the `RUNTIME_EVIDENCE` lesson from `compliance-is-derived-from-the-product.md`, applied\n * before it costs anything: a tier with no producer reads as \"measured and absent\" when it means\n * \"nothing can measure this yet\". The producer that would fill it is the engine-behaviour e2e\n * drive — a browser scenario naming the requirement it exercises — so the finding names it.\n */\n NO_RUNTIME_OBSERVATION_SOURCE = 'NO_RUNTIME_OBSERVATION_SOURCE',\n /** The application declares no requirements, so there is nothing to measure against. */\n NO_REQUIREMENTS_DECLARED = 'NO_REQUIREMENTS_DECLARED',\n}\n\nexport interface ApplicationMaturityFinding {\n readonly code: ApplicationMaturityFindingCode;\n readonly requirementRef: string | null;\n readonly message: string;\n}\n\n/**\n * NO hard floor, and this one is not a judgement call: a reading that refused would be a gate, and\n * the family exists precisely because there is no \"done\" to gate on. Every finding below describes\n * the APPLICATION — a requirement nobody addressed, a proof nobody could take — and an application\n * in that state is the ordinary early state rather than a defect in the artifact.\n */\nexport const APPLICATION_MATURITY_HARD_FLOOR_CODES: readonly ApplicationMaturityFindingCode[] = [];\n\nexport function validateApplicationMaturity(reading: ApplicationMaturity): readonly ApplicationMaturityFinding[] {\n const findings: ApplicationMaturityFinding[] = [];\n if (reading.requirements.length === 0) {\n findings.push({\n code: ApplicationMaturityFindingCode.NO_REQUIREMENTS_DECLARED,\n requirementRef: null,\n message: 'This application declares no requirements, so its maturity cannot be measured — the reading is NOT_MEASURABLE rather than zero.',\n });\n return findings;\n }\n for (const row of reading.requirements) {\n if (row.level === RequirementEvidenceLevel.UNADDRESSED) {\n findings.push({\n code: ApplicationMaturityFindingCode.REQUIREMENT_UNADDRESSED,\n requirementRef: row.requirementRef,\n message: `${row.requirementRef} is addressed by nothing the application has decided: no feature draft, surface, background unit or build task points at it.`,\n });\n continue;\n }\n if (row.openGaps.length > 0) {\n const gaps = row.openGaps.map((gap) => `${gap.originTaskRef} reports \"${gap.missing}\"${gap.followUpTaskRef === undefined ? ', with no follow-up' : `, answered by ${gap.followUpTaskRef} (not landed)`}`);\n findings.push({\n code: ApplicationMaturityFindingCode.REPORTED_GAP_OPEN,\n requirementRef: row.requirementRef,\n message: `${row.requirementRef} is partly met: ${gaps.join('; ')}. Its evidence stops at BUILT until the gap closes.`,\n });\n }\n if (row.configurationGaps.length > 0) {\n findings.push({\n code: ApplicationMaturityFindingCode.CONFIGURATION_DOES_NOT_MEET,\n requirementRef: row.requirementRef,\n message: `${row.requirementRef} is not met by the application's configuration: ${row.configurationGaps.map((gap) => `${gap.value} (${gap.declaredIn})`).join('; ')}. Its evidence stops at BUILT until the configuration declares it.`,\n });\n }\n if (row.landedTaskRefs.length > 0 && row.provenTaskRefs.length === 0) {\n findings.push({\n code: ApplicationMaturityFindingCode.LANDED_WITHOUT_PROOF,\n requirementRef: row.requirementRef,\n message: `${row.requirementRef} has landed build work (${row.landedTaskRefs.join(', ')}) whose declared product could not be probed, so its evidence stops at BUILT.`,\n });\n }\n }\n if (reading.requirements.every((row) => row.observationRefs.length === 0)) {\n findings.push({\n code: ApplicationMaturityFindingCode.NO_RUNTIME_OBSERVATION_SOURCE,\n requirementRef: null,\n message: 'No requirement carries a runtime observation, so the OBSERVED level is unreachable for this application today. '\n + 'What would fill it: an engine-behaviour e2e scenario that names the requirement it exercises, so a drive against the running application is evidence rather than a green log.',\n });\n }\n return findings;\n}\n"]}
|
|
@@ -60,6 +60,8 @@ export declare enum ApplicationMaturityVersion {
|
|
|
60
60
|
* does a requirement a coding run still REPORTS unmet (#2580): a proven product is not a met
|
|
61
61
|
* requirement while the run that built it says what is missing, so an open gap caps the row at
|
|
62
62
|
* `BUILT` until its follow-up lands (see `openGaps` on the row).
|
|
63
|
+
* And so does one the application's CONFIGURATION does not meet (#3702): a capability it needs that is not
|
|
64
|
+
* enabled, a language it names that is not served (see `configurationGaps` on the row).
|
|
63
65
|
* - `OBSERVED` — something watched the running application do it: a browser drive, a served page, a
|
|
64
66
|
* boot. The strongest evidence this framework can produce, and see
|
|
65
67
|
* {@link ApplicationMaturityFindingCode.NO_RUNTIME_OBSERVATION_SOURCE} for what supplies it.
|
|
@@ -141,6 +143,35 @@ export declare const RequirementOpenGapSchema: z.ZodObject<{
|
|
|
141
143
|
followUpTaskRef: z.ZodOptional<z.ZodString>;
|
|
142
144
|
}, z.core.$strict>;
|
|
143
145
|
export type RequirementOpenGap = z.infer<typeof RequirementOpenGapSchema>;
|
|
146
|
+
/**
|
|
147
|
+
* Why the application's CONFIGURATION does not meet a requirement (#3702). TOTAL over what a requirement can declare it
|
|
148
|
+
* needs from the configuration (`engineCapabilities`, `languages`), plus the one state in which nothing can be compared.
|
|
149
|
+
*/
|
|
150
|
+
export declare enum RequirementConfigurationGapKind {
|
|
151
|
+
/** The requirement needs an engine capability the application's configuration does not enable. */
|
|
152
|
+
ENGINE_CAPABILITY_NOT_ENABLED = "ENGINE_CAPABILITY_NOT_ENABLED",
|
|
153
|
+
/** The requirement names a language the application does not serve (`appPreferences.languages`). */
|
|
154
|
+
LANGUAGE_NOT_SERVED = "LANGUAGE_NOT_SERVED",
|
|
155
|
+
/**
|
|
156
|
+
* The requirement declares what it needs from the configuration, and the configuration could not be read: an unknown
|
|
157
|
+
* is not a met requirement, so the row stops below VERIFIED rather than read as proven.
|
|
158
|
+
*/
|
|
159
|
+
CONFIGURATION_NOT_READ = "CONFIGURATION_NOT_READ"
|
|
160
|
+
}
|
|
161
|
+
/**
|
|
162
|
+
* One thing the application's configuration does not turn on that a requirement declares it cannot be met without
|
|
163
|
+
* (#3702). Measured, never reported by anyone: the requirement's typed `engineCapabilities` / `languages` against the
|
|
164
|
+
* capabilities the configuration enables and the languages it serves. Any one caps the row at `BUILT`, like an open
|
|
165
|
+
* reported gap: a build task's product existing proves nothing about a switch that is off. Measured on the reference
|
|
166
|
+
* run (2026-11-10): the languages requirement read VERIFIED, proven by a page a task wrote, while the application had
|
|
167
|
+
* `MULTI_LANGUAGE` disabled and served English alone.
|
|
168
|
+
*/
|
|
169
|
+
export declare const RequirementConfigurationGapSchema: z.ZodObject<{
|
|
170
|
+
kind: z.ZodEnum<typeof RequirementConfigurationGapKind>;
|
|
171
|
+
value: z.ZodString;
|
|
172
|
+
declaredIn: z.ZodString;
|
|
173
|
+
}, z.core.$strict>;
|
|
174
|
+
export type RequirementConfigurationGap = z.infer<typeof RequirementConfigurationGapSchema>;
|
|
144
175
|
/** One requirement, and what exists for it. */
|
|
145
176
|
export declare const RequirementMaturityRowSchema: z.ZodObject<{
|
|
146
177
|
requirementRef: z.ZodString;
|
|
@@ -155,6 +186,11 @@ export declare const RequirementMaturityRowSchema: z.ZodObject<{
|
|
|
155
186
|
missing: z.ZodString;
|
|
156
187
|
followUpTaskRef: z.ZodOptional<z.ZodString>;
|
|
157
188
|
}, z.core.$strict>>>;
|
|
189
|
+
configurationGaps: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
190
|
+
kind: z.ZodEnum<typeof RequirementConfigurationGapKind>;
|
|
191
|
+
value: z.ZodString;
|
|
192
|
+
declaredIn: z.ZodString;
|
|
193
|
+
}, z.core.$strict>>>;
|
|
158
194
|
}, z.core.$strict>;
|
|
159
195
|
export type RequirementMaturityRow = z.infer<typeof RequirementMaturityRowSchema>;
|
|
160
196
|
/**
|
|
@@ -188,6 +224,11 @@ export declare const ApplicationMaturitySchema: z.ZodObject<{
|
|
|
188
224
|
missing: z.ZodString;
|
|
189
225
|
followUpTaskRef: z.ZodOptional<z.ZodString>;
|
|
190
226
|
}, z.core.$strict>>>;
|
|
227
|
+
configurationGaps: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
228
|
+
kind: z.ZodEnum<typeof RequirementConfigurationGapKind>;
|
|
229
|
+
value: z.ZodString;
|
|
230
|
+
declaredIn: z.ZodString;
|
|
231
|
+
}, z.core.$strict>>>;
|
|
191
232
|
}, z.core.$strict>>>;
|
|
192
233
|
}, z.core.$strip>;
|
|
193
234
|
export type ApplicationMaturity = z.infer<typeof ApplicationMaturitySchema>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"application-maturity.schemas.d.ts","sourceRoot":"","sources":["../../../../src/_core/application-maturity/application-maturity.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,OAAO,0BAA0B,CAAC;AAElC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AACH,oBAAY,0BAA0B;IACpC,EAAE,OAAO;CACV;AAED
|
|
1
|
+
{"version":3,"file":"application-maturity.schemas.d.ts","sourceRoot":"","sources":["../../../../src/_core/application-maturity/application-maturity.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,OAAO,0BAA0B,CAAC;AAElC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AACH,oBAAY,0BAA0B;IACpC,EAAE,OAAO;CACV;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCG;AACH,oBAAY,wBAAwB;IAClC,WAAW,gBAAgB;IAC3B,OAAO,YAAY;IACnB,KAAK,UAAU;IACf,QAAQ,aAAa;IACrB,QAAQ,aAAa;CACtB;AAkBD,+FAA+F;AAC/F,eAAO,MAAM,2BAA2B,EAAE,SAAS,wBAAwB,EACyE,CAAC;AAErJ,oGAAoG;AACpG,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,wBAAwB,EAAE,OAAO,EAAE,wBAAwB,GAAG,OAAO,CAE/G;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AAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAyFpC,CAAC;AACH,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC;AAC5E,yDAAyD"}
|
|
@@ -63,6 +63,8 @@ export var ApplicationMaturityVersion;
|
|
|
63
63
|
* does a requirement a coding run still REPORTS unmet (#2580): a proven product is not a met
|
|
64
64
|
* requirement while the run that built it says what is missing, so an open gap caps the row at
|
|
65
65
|
* `BUILT` until its follow-up lands (see `openGaps` on the row).
|
|
66
|
+
* And so does one the application's CONFIGURATION does not meet (#3702): a capability it needs that is not
|
|
67
|
+
* enabled, a language it names that is not served (see `configurationGaps` on the row).
|
|
66
68
|
* - `OBSERVED` — something watched the running application do it: a browser drive, a served page, a
|
|
67
69
|
* boot. The strongest evidence this framework can produce, and see
|
|
68
70
|
* {@link ApplicationMaturityFindingCode.NO_RUNTIME_OBSERVATION_SOURCE} for what supplies it.
|
|
@@ -202,6 +204,37 @@ export const RequirementOpenGapSchema = z.strictObject({
|
|
|
202
204
|
/** The follow-up task derived to answer it, not landed yet. Absent when none can be derived or this IS the follow-up's report. */
|
|
203
205
|
followUpTaskRef: nonEmptyString().optional(),
|
|
204
206
|
});
|
|
207
|
+
/**
|
|
208
|
+
* Why the application's CONFIGURATION does not meet a requirement (#3702). TOTAL over what a requirement can declare it
|
|
209
|
+
* needs from the configuration (`engineCapabilities`, `languages`), plus the one state in which nothing can be compared.
|
|
210
|
+
*/
|
|
211
|
+
export var RequirementConfigurationGapKind;
|
|
212
|
+
(function (RequirementConfigurationGapKind) {
|
|
213
|
+
/** The requirement needs an engine capability the application's configuration does not enable. */
|
|
214
|
+
RequirementConfigurationGapKind["ENGINE_CAPABILITY_NOT_ENABLED"] = "ENGINE_CAPABILITY_NOT_ENABLED";
|
|
215
|
+
/** The requirement names a language the application does not serve (`appPreferences.languages`). */
|
|
216
|
+
RequirementConfigurationGapKind["LANGUAGE_NOT_SERVED"] = "LANGUAGE_NOT_SERVED";
|
|
217
|
+
/**
|
|
218
|
+
* The requirement declares what it needs from the configuration, and the configuration could not be read: an unknown
|
|
219
|
+
* is not a met requirement, so the row stops below VERIFIED rather than read as proven.
|
|
220
|
+
*/
|
|
221
|
+
RequirementConfigurationGapKind["CONFIGURATION_NOT_READ"] = "CONFIGURATION_NOT_READ";
|
|
222
|
+
})(RequirementConfigurationGapKind || (RequirementConfigurationGapKind = {}));
|
|
223
|
+
/**
|
|
224
|
+
* One thing the application's configuration does not turn on that a requirement declares it cannot be met without
|
|
225
|
+
* (#3702). Measured, never reported by anyone: the requirement's typed `engineCapabilities` / `languages` against the
|
|
226
|
+
* capabilities the configuration enables and the languages it serves. Any one caps the row at `BUILT`, like an open
|
|
227
|
+
* reported gap: a build task's product existing proves nothing about a switch that is off. Measured on the reference
|
|
228
|
+
* run (2026-11-10): the languages requirement read VERIFIED, proven by a page a task wrote, while the application had
|
|
229
|
+
* `MULTI_LANGUAGE` disabled and served English alone.
|
|
230
|
+
*/
|
|
231
|
+
export const RequirementConfigurationGapSchema = z.strictObject({
|
|
232
|
+
kind: z.enum(RequirementConfigurationGapKind).systemEnum('RequirementConfigurationGapKind'),
|
|
233
|
+
/** The capability or language that is missing, as its vocabulary spells it; the configuration file when it is unread. */
|
|
234
|
+
value: nonEmptyString(),
|
|
235
|
+
/** Where the application declares it, so the gap is a named field to set rather than a question. */
|
|
236
|
+
declaredIn: nonEmptyString(),
|
|
237
|
+
});
|
|
205
238
|
/** One requirement, and what exists for it. */
|
|
206
239
|
export const RequirementMaturityRowSchema = z.strictObject({
|
|
207
240
|
/** The `requirements` family's own ref — the join, and the reason nothing here restates a statement. */
|
|
@@ -229,6 +262,11 @@ export const RequirementMaturityRowSchema = z.strictObject({
|
|
|
229
262
|
* a requirement whose builder says it is partly unmet is not proven, whatever the probe found.
|
|
230
263
|
*/
|
|
231
264
|
openGaps: z.array(RequirementOpenGapSchema).default([]),
|
|
265
|
+
/**
|
|
266
|
+
* What the application's configuration does not turn on that the requirement declares it needs (#3702). Any one caps
|
|
267
|
+
* the level at `BUILT`, as an open reported gap does.
|
|
268
|
+
*/
|
|
269
|
+
configurationGaps: z.array(RequirementConfigurationGapSchema).default([]),
|
|
232
270
|
});
|
|
233
271
|
/**
|
|
234
272
|
* THE application-maturity payload.
|
|
@@ -277,6 +315,9 @@ export const ApplicationMaturitySchema = z.object({
|
|
|
277
315
|
if (row.openGaps.length > 0 && isEvidenceAtOrAbove(row.level, RequirementEvidenceLevel.VERIFIED)) {
|
|
278
316
|
context.addIssue({ code: 'custom', message: `${row.requirementRef} is ${row.level} while ${row.openGaps.length} reported gap(s) on it are open`, path: ['requirements', index, 'level'] });
|
|
279
317
|
}
|
|
318
|
+
if (row.configurationGaps.length > 0 && isEvidenceAtOrAbove(row.level, RequirementEvidenceLevel.VERIFIED)) {
|
|
319
|
+
context.addIssue({ code: 'custom', message: `${row.requirementRef} is ${row.level} while the configuration does not meet it (${row.configurationGaps.map((gap) => gap.value).join(', ')})`, path: ['requirements', index, 'level'] });
|
|
320
|
+
}
|
|
280
321
|
if (row.level === RequirementEvidenceLevel.UNADDRESSED && row.addressedByRefs.length > 0) {
|
|
281
322
|
context.addIssue({ code: 'custom', message: `${row.requirementRef} is UNADDRESSED and names ${row.addressedByRefs.length} element(s) addressing it`, path: ['requirements', index, 'level'] });
|
|
282
323
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"application-maturity.schemas.js","sourceRoot":"","sources":["../../../../src/_core/application-maturity/application-maturity.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,6GAA6G;AAC7G,+GAA+G;AAC/G,OAAO,0BAA0B,CAAC;AAElC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AACH,MAAM,CAAN,IAAY,0BAEX;AAFD,WAAY,0BAA0B;IACpC,uCAAS,CAAA;AACX,CAAC,EAFW,0BAA0B,KAA1B,0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S,GAAG;YAC/H,IAAI,EAAE,CAAC,OAAO,CAAC;SAChB,CAAC,CAAC;IACL,CAAC;AACH,CAAC,CAAC,CAAC;AAEH,yDAAyD","sourcesContent":["import { z } from 'zod';\n// Side-effect import: this module calls `.systemEnum()` at load, so the decorators must be installed first —\n// never by the importer's luck (#966). A named import used only as a type would be elided and install nothing.\nimport '@wildo-ai/zod-decorators';\n\n/**\n * @wildo_source:part:start application-maturity.config facet:layer:specification facet:family:application-maturity\n *\n * WHERE THIS APPLICATION STANDS against what it asked of itself (#1496) — one row per requirement,\n * with the evidence that exists for it, and the stage that follows.\n *\n * ## There is no \"done\", and that is the whole design\n *\n * Paul, 2026-09-22: *\"there are no 'Done' for an app, there are a measurement face to requirements,\n * with some stage (thresholds, or maybe more complex calculation) face to where we are in the\n * maturity. this measurement should be evolutive.\"*\n *\n * So this family is a READING, never a gate. Nothing in the creation lane may refuse because of it,\n * and no stage means \"finished\": the highest stage says only that every requirement currently has\n * the strongest evidence this framework can produce for it, which the next requirement lowers again.\n *\n * ## The denominator is the application's OWN requirements, and nothing else\n *\n * Every row here comes from the `requirements` family. Not a list authored beside it, not a count of\n * files, not a share of build tasks — `derive-before-you-ask.md` shape 2 is exactly the defect of\n * measuring against a population you chose yourself, and it has already cost this repository two\n * false findings. A requirement added tomorrow appears here as `UNADDRESSED` and lowers the reading\n * with no code change; that is the acceptance this family was asked for.\n *\n * ## Evolutive by construction\n *\n * Two things are DECLARATIONS rather than code paths: the evidence LADDER (what counts as stronger\n * evidence) and the THRESHOLDS (what share at which level reaches a stage). The reading carries the\n * thresholds it was computed against, so a later pass that scores differently shows up as a diff of\n * the declaration rather than as a silent change of meaning.\n */\nexport enum ApplicationMaturityVersion {\n V1 = 'v1',\n}\n\n/**\n * How strong the evidence for ONE requirement is — ORDERED, weakest first, and the order is the\n * meaning: every comparison here is \"at or above\", so inserting a level between two existing ones\n * changes the ladder rather than the code that walks it.\n *\n * A level names the STRONGEST evidence a requirement has, and nothing more. It is deliberately NOT\n * a claim that the weaker evidence exists too: an observation of the running application is evidence\n * about the PRODUCT, and a requirement somebody exercised but nobody planned a task for is a real\n * state — under-reporting it because no decided element points at it would hide the strongest\n * evidence this framework can produce. What every level above `UNADDRESSED` does guarantee is that\n * SOME evidence exists, which is what `UNADDRESSED` means the absence of.\n *\n * Each level is reached by a MEASUREMENT, never by an assertion:\n *\n * - `UNADDRESSED` — nothing the application decided points at it. Not a failure: an early run has\n * every requirement here, which is what makes the reading move.\n * - `DECIDED` — a decided element links to it: a feature draft, an experience surface, a worker, a\n * build task. Read from the decided-aspect graph's inbound links, so a family that declares an\n * edge to a requirement tomorrow contributes here without this module knowing it exists.\n * - `BUILT` — a BUILD TASK that links to it has landed, judged by the landing probe over committed\n * bytes rather than by any status somebody wrote down.\n * - `VERIFIED` — that landed task's declared product was PROVEN: the probe found what the task said\n * it would produce. A task that landed and could not be proven stops at `BUILT`, deliberately. So\n * does a requirement a coding run still REPORTS unmet (#2580): a proven product is not a met\n * requirement while the run that built it says what is missing, so an open gap caps the row at\n * `BUILT` until its follow-up lands (see `openGaps` on the row).\n * - `OBSERVED` — something watched the running application do it: a browser drive, a served page, a\n * boot. The strongest evidence this framework can produce, and see\n * {@link ApplicationMaturityFindingCode.NO_RUNTIME_OBSERVATION_SOURCE} for what supplies it.\n * Reachable without any of the levels below, by the paragraph above.\n */\nexport enum RequirementEvidenceLevel {\n UNADDRESSED = 'UNADDRESSED',\n DECIDED = 'DECIDED',\n BUILT = 'BUILT',\n VERIFIED = 'VERIFIED',\n OBSERVED = 'OBSERVED',\n}\n\n/**\n * Each level's RANK — the one place the ordering lives, and a `Record` rather than an array so a\n * level added to the vocabulary tomorrow does not compile until somebody places it on the ladder.\n *\n * An array was the first shape and was wrong in the dangerous direction: an unplaced level made\n * `indexOf` return `-1`, so `isEvidenceAtOrAbove(anything, theNewLevel)` answered TRUE and every\n * row silently passed a threshold declared at it. A total map cannot reach that state.\n */\nconst REQUIREMENT_EVIDENCE_RANK: Readonly<Record<RequirementEvidenceLevel, number>> = {\n [RequirementEvidenceLevel.UNADDRESSED]: 0,\n [RequirementEvidenceLevel.DECIDED]: 1,\n [RequirementEvidenceLevel.BUILT]: 2,\n [RequirementEvidenceLevel.VERIFIED]: 3,\n [RequirementEvidenceLevel.OBSERVED]: 4,\n};\n\n/** The ladder in order, weakest first — derived from the ranks, so the two cannot disagree. */\nexport const REQUIREMENT_EVIDENCE_LADDER: readonly RequirementEvidenceLevel[] =\n (Object.keys(REQUIREMENT_EVIDENCE_RANK) as RequirementEvidenceLevel[]).sort((a, b) => REQUIREMENT_EVIDENCE_RANK[a] - REQUIREMENT_EVIDENCE_RANK[b]);\n\n/** True when `level` is at least as strong as `atLeast` — the only comparison this family makes. */\nexport function isEvidenceAtOrAbove(level: RequirementEvidenceLevel, atLeast: RequirementEvidenceLevel): boolean {\n return REQUIREMENT_EVIDENCE_RANK[level] >= REQUIREMENT_EVIDENCE_RANK[atLeast];\n}\n\n/**\n * Where the APPLICATION stands — the stage its weakest-covered requirements put it at.\n *\n * `NOT_MEASURABLE` is a stage rather than an absent reading, because an application with no landed\n * requirements has a true answer and it is not \"stage zero\": nothing has been asked of it yet, so\n * there is nothing to measure. Making that representable is what stops a reader inferring\n * \"measured, and bad\" from an empty file (`application-creation-directive.md`).\n */\nexport enum ApplicationMaturityStage {\n NOT_MEASURABLE = 'NOT_MEASURABLE',\n SPECIFIED = 'SPECIFIED',\n DECIDED = 'DECIDED',\n BUILT = 'BUILT',\n VERIFIED = 'VERIFIED',\n OBSERVED = 'OBSERVED',\n}\n\n/** Which half of the requirements family a row came from — the two are counted together and read apart. */\nexport enum RequirementFamilyHalf {\n FUNCTIONAL = 'FUNCTIONAL',\n NON_FUNCTIONAL = 'NON_FUNCTIONAL',\n}\n\n/**\n * A FACTORY rather than a shared constant, and the difference is visible on screen.\n *\n * The workbench's reading decorations are keyed by INSTANCE. When one instance served both the reading's\n * `summary` and every row's `requirementRef`, the workbench gave the key its receding identifier\n * treatment and so gave it to the summary as well: the one sentence the reading exists to say\n * rendered as a slug with no field chrome (measured 2026-09-24). One instance per field keeps a\n * display decision about one field from reaching another.\n */\nfunction nonEmptyString(): z.ZodString {\n return z.string().trim().min(1);\n}\n\n/**\n * One stage's admission test: the SHARE of requirements that must sit at or above a level.\n *\n * A declaration rather than a branch, so a richer calculation — per-kind weights, a different level\n * per half, a score — arrives as a different declaration and the walk stays the same.\n */\nexport const ApplicationMaturityStageThresholdSchema = z.strictObject({\n stage: z.enum(ApplicationMaturityStage).systemEnum('ApplicationMaturityStage'),\n /** The evidence level the share is measured at. */\n atLeast: z.enum(RequirementEvidenceLevel).systemEnum('RequirementEvidenceLevel'),\n /** The share of requirements that must reach it, 0–1 inclusive. */\n minimumShare: z.number().min(0).max(1),\n});\nexport type ApplicationMaturityStageThreshold = z.infer<typeof ApplicationMaturityStageThresholdSchema>;\n\n/**\n * The DEFAULT ladder thresholds: every requirement, at that level. One number, and it is not a guess.\n *\n * A share below 1 would be an invented tolerance — \"eighty per cent built is BUILT\" is a judgement\n * nobody has made, and this family exists to measure rather than to flatter. An application that\n * wants a softer bar declares one, and the reading carries what it was computed against, so the\n * softening is a visible decision rather than a number buried in a function.\n *\n * `SPECIFIED` and `NOT_MEASURABLE` carry no threshold: the first is reached by having requirements\n * at all, the second by having none.\n */\nexport const DEFAULT_APPLICATION_MATURITY_THRESHOLDS: readonly ApplicationMaturityStageThreshold[] = [\n { stage: ApplicationMaturityStage.DECIDED, atLeast: RequirementEvidenceLevel.DECIDED, minimumShare: 1 },\n { stage: ApplicationMaturityStage.BUILT, atLeast: RequirementEvidenceLevel.BUILT, minimumShare: 1 },\n { stage: ApplicationMaturityStage.VERIFIED, atLeast: RequirementEvidenceLevel.VERIFIED, minimumShare: 1 },\n { stage: ApplicationMaturityStage.OBSERVED, atLeast: RequirementEvidenceLevel.OBSERVED, minimumShare: 1 },\n];\n\n/**\n * The stage a set of rows reaches under a threshold declaration — the highest stage whose share is met.\n *\n * It lives in the SCHEMA file, beside the shape it scores, because the schema itself refuses a\n * reading whose stored `stage` is not the one its rows support: putting the walk in the validator\n * would make the schema import the validator that imports the schema, and a stage nothing checks is\n * the single field of this family a reader cannot verify by looking.\n */\nexport function resolveApplicationMaturityStage(reading: Pick<ApplicationMaturity, 'requirements' | 'thresholds'>): ApplicationMaturityStage {\n if (reading.requirements.length === 0) return ApplicationMaturityStage.NOT_MEASURABLE;\n let stage = ApplicationMaturityStage.SPECIFIED;\n /*\n * Walked in LADDER order rather than in declaration order: a threshold list is data an author may\n * write in any order, and a stage reached out of order would let a gap below it pass unnoticed.\n */\n for (const candidate of [ApplicationMaturityStage.DECIDED, ApplicationMaturityStage.BUILT, ApplicationMaturityStage.VERIFIED, ApplicationMaturityStage.OBSERVED]) {\n const threshold = reading.thresholds.find((entry) => entry.stage === candidate);\n if (threshold === undefined) break;\n const met = reading.requirements.filter((row) => isEvidenceAtOrAbove(row.level, threshold.atLeast)).length;\n if (met / reading.requirements.length < threshold.minimumShare) break;\n stage = candidate;\n }\n return stage;\n}\n\n/**\n * A gap a completed coding run REPORTED on a requirement it served, still open (#2580): no follow-up has landed for it,\n * or the follow-up's own run reports it still. A run states such a gap in its `wildo-requirements-unmet` block, and the\n * build host derives the follow-up task that answers it (#2496). Read from the runs' records, never from prose.\n */\nexport const RequirementOpenGapSchema = z.strictObject({\n /** The task whose latest completed run reported the gap: a build task, or a follow-up still reporting it. */\n originTaskRef: nonEmptyString(),\n /** What the run said is missing, in its own words. */\n missing: nonEmptyString(),\n /** The follow-up task derived to answer it, not landed yet. Absent when none can be derived or this IS the follow-up's report. */\n followUpTaskRef: nonEmptyString().optional(),\n});\nexport type RequirementOpenGap = z.infer<typeof RequirementOpenGapSchema>;\n\n/** One requirement, and what exists for it. */\nexport const RequirementMaturityRowSchema = z.strictObject({\n /** The `requirements` family's own ref — the join, and the reason nothing here restates a statement. */\n requirementRef: nonEmptyString(),\n half: z.enum(RequirementFamilyHalf).systemEnum('RequirementFamilyHalf'),\n level: z.enum(RequirementEvidenceLevel).systemEnum('RequirementEvidenceLevel'),\n /**\n * The decided elements that point at this requirement, by their own refs — a feature draft, an\n * experience surface, a worker, a build task.\n *\n * Empty whenever the level is `UNADDRESSED`, and NOT the other way round: a requirement carrying\n * only a runtime observation is `OBSERVED` with nothing addressing it, which is a true reading of\n * a product somebody exercised without anyone planning the work. The refusal below is therefore\n * one-directional on purpose.\n */\n addressedByRefs: z.array(nonEmptyString()).default([]),\n /** The build tasks addressing it that have LANDED. */\n landedTaskRefs: z.array(nonEmptyString()).default([]),\n /** The landed tasks among those whose declared product was PROVEN. A subset of `landedTaskRefs`. */\n provenTaskRefs: z.array(nonEmptyString()).default([]),\n /** Runtime observations naming this requirement, by their own refs. */\n observationRefs: z.array(nonEmptyString()).default([]),\n /**\n * The gaps coding runs reported on this requirement that are still open (#2580). Any one caps the level at `BUILT`:\n * a requirement whose builder says it is partly unmet is not proven, whatever the probe found.\n */\n openGaps: z.array(RequirementOpenGapSchema).default([]),\n});\nexport type RequirementMaturityRow = z.infer<typeof RequirementMaturityRowSchema>;\n\n/**\n * THE application-maturity payload.\n *\n * **Artifact-family id: `application-maturity`.** DERIVED — `deriveApplicationMaturity` is a pure\n * function of the requirements, the decided-element graph, the build plan's landing probe and the\n * runtime observations. Nothing generates it, for the same reason the capability composition is not\n * generated: a model asked where an application stands would answer, and the answer would be\n * unfalsifiable.\n */\nexport const ApplicationMaturitySchema = z.object({\n version: z.enum(ApplicationMaturityVersion).default(ApplicationMaturityVersion.V1),\n stage: z.enum(ApplicationMaturityStage).systemEnum('ApplicationMaturityStage'),\n /** The reading in one sentence, naming the counts that decided the stage. */\n summary: nonEmptyString(),\n /**\n * The thresholds this reading was computed against — carried, so a later softening is a diff.\n *\n * At least one, and CONTIGUOUS from `DECIDED` upward (see the refusal below): the walk stops at\n * the first stage with no threshold, so a set that skipped `DECIDED` and declared `VERIFIED`\n * would floor every application at `SPECIFIED` however strong its evidence — silently, because a\n * gap and a failed bar are the same `break`. Declaring only a prefix is legitimate and common\n * (\"we only score up to BUILT\"); declaring a hole is not.\n */\n thresholds: z.array(ApplicationMaturityStageThresholdSchema).min(1).default([...DEFAULT_APPLICATION_MATURITY_THRESHOLDS]),\n /** One row per requirement the application declares. TOTAL over the family; never a selection. */\n requirements: z.array(RequirementMaturityRowSchema).default([]),\n}).superRefine((reading, context) => {\n const seen = new Set<string>();\n reading.requirements.forEach((row, index) => {\n if (seen.has(row.requirementRef)) {\n context.addIssue({ code: 'custom', message: `requirement ${row.requirementRef} is measured twice`, path: ['requirements', index, 'requirementRef'] });\n }\n seen.add(row.requirementRef);\n /*\n * The row's own coherence, refused rather than reported: a proven task that is not among the\n * landed ones is a reading that contradicts itself, and a reader cannot tell which half to\n * believe. The SOFT cases — a requirement nothing addresses, a level nothing can reach — are\n * findings, because those describe the application rather than the reading.\n */\n for (const provenTaskRef of row.provenTaskRefs) {\n if (!row.landedTaskRefs.includes(provenTaskRef)) {\n context.addIssue({ code: 'custom', message: `task ${provenTaskRef} is proven for ${row.requirementRef} without being landed`, path: ['requirements', index, 'provenTaskRefs'] });\n }\n }\n if (row.openGaps.length > 0 && isEvidenceAtOrAbove(row.level, RequirementEvidenceLevel.VERIFIED)) {\n context.addIssue({ code: 'custom', message: `${row.requirementRef} is ${row.level} while ${row.openGaps.length} reported gap(s) on it are open`, path: ['requirements', index, 'level'] });\n }\n if (row.level === RequirementEvidenceLevel.UNADDRESSED && row.addressedByRefs.length > 0) {\n context.addIssue({ code: 'custom', message: `${row.requirementRef} is UNADDRESSED and names ${row.addressedByRefs.length} element(s) addressing it`, path: ['requirements', index, 'level'] });\n }\n });\n const stages = new Set<ApplicationMaturityStage>();\n reading.thresholds.forEach((threshold, index) => {\n if (stages.has(threshold.stage)) {\n context.addIssue({ code: 'custom', message: `stage ${threshold.stage} carries two thresholds`, path: ['thresholds', index, 'stage'] });\n }\n stages.add(threshold.stage);\n if (threshold.stage === ApplicationMaturityStage.NOT_MEASURABLE || threshold.stage === ApplicationMaturityStage.SPECIFIED) {\n /*\n * Neither is reachable by a threshold — one means \"no requirements\", the other \"some, and no\n * bar met\" — so a threshold on them was silently inert. Refused rather than ignored: an inert\n * declaration reads as a decision somebody made.\n */\n context.addIssue({ code: 'custom', message: `${threshold.stage} is not reached by a threshold: it is what an application falls back to`, path: ['thresholds', index, 'stage'] });\n }\n });\n /* CONTIGUITY, for the reason on the field above: a hole floors the reading and says nothing. */\n const scored = [ApplicationMaturityStage.DECIDED, ApplicationMaturityStage.BUILT, ApplicationMaturityStage.VERIFIED, ApplicationMaturityStage.OBSERVED];\n const highest = scored.reduce((last, stage, index) => (stages.has(stage) ? index : last), -1);\n for (let index = 0; index <= highest; index += 1) {\n if (!stages.has(scored[index]!)) {\n context.addIssue({\n code: 'custom',\n message: `the threshold set declares ${scored[highest]!} and skips ${scored[index]!} — the walk stops at the gap, so every stage above it is unreachable`,\n path: ['thresholds'],\n });\n }\n }\n /*\n * THE STAGE MUST BE THE ONE ITS OWN ROWS AND THRESHOLDS PRODUCE.\n *\n * The reading is landed as a file and read by the workbench, the creation home and any later\n * pass; a `stage` that disagrees with the rows beside it is the one thing a reader cannot detect,\n * because the stage is the part they read. This is the same refusal as the proven-without-landed\n * one above — a reading that contradicts itself fails closed — and it is a refusal of the\n * ARTIFACT, never of the lane, so it is not a gate on anything.\n */\n const supported = resolveApplicationMaturityStage({ requirements: reading.requirements, thresholds: reading.thresholds });\n if (reading.stage !== supported) {\n context.addIssue({\n code: 'custom',\n message: `stage ${reading.stage} is not what these ${reading.requirements.length} row(s) and thresholds support (${supported})`,\n path: ['stage'],\n });\n }\n});\nexport type ApplicationMaturity = z.infer<typeof ApplicationMaturitySchema>;\n/** @wildo_source:part:end application-maturity.config */\n"]}
|
|
1
|
+
{"version":3,"file":"application-maturity.schemas.js","sourceRoot":"","sources":["../../../../src/_core/application-maturity/application-maturity.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,6GAA6G;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C,KAAK,sBAAsB,OAAO,CAAC,YAAY,CAAC,MAAM,mCAAmC,SAAS,GAAG;YAC/H,IAAI,EAAE,CAAC,OAAO,CAAC;SAChB,CAAC,CAAC;IACL,CAAC;AACH,CAAC,CAAC,CAAC;AAEH,yDAAyD","sourcesContent":["import { z } from 'zod';\n// Side-effect import: this module calls `.systemEnum()` at load, so the decorators must be installed first —\n// never by the importer's luck (#966). A named import used only as a type would be elided and install nothing.\nimport '@wildo-ai/zod-decorators';\n\n/**\n * @wildo_source:part:start application-maturity.config facet:layer:specification facet:family:application-maturity\n *\n * WHERE THIS APPLICATION STANDS against what it asked of itself (#1496) — one row per requirement,\n * with the evidence that exists for it, and the stage that follows.\n *\n * ## There is no \"done\", and that is the whole design\n *\n * Paul, 2026-09-22: *\"there are no 'Done' for an app, there are a measurement face to requirements,\n * with some stage (thresholds, or maybe more complex calculation) face to where we are in the\n * maturity. this measurement should be evolutive.\"*\n *\n * So this family is a READING, never a gate. Nothing in the creation lane may refuse because of it,\n * and no stage means \"finished\": the highest stage says only that every requirement currently has\n * the strongest evidence this framework can produce for it, which the next requirement lowers again.\n *\n * ## The denominator is the application's OWN requirements, and nothing else\n *\n * Every row here comes from the `requirements` family. Not a list authored beside it, not a count of\n * files, not a share of build tasks — `derive-before-you-ask.md` shape 2 is exactly the defect of\n * measuring against a population you chose yourself, and it has already cost this repository two\n * false findings. A requirement added tomorrow appears here as `UNADDRESSED` and lowers the reading\n * with no code change; that is the acceptance this family was asked for.\n *\n * ## Evolutive by construction\n *\n * Two things are DECLARATIONS rather than code paths: the evidence LADDER (what counts as stronger\n * evidence) and the THRESHOLDS (what share at which level reaches a stage). The reading carries the\n * thresholds it was computed against, so a later pass that scores differently shows up as a diff of\n * the declaration rather than as a silent change of meaning.\n */\nexport enum ApplicationMaturityVersion {\n V1 = 'v1',\n}\n\n/**\n * How strong the evidence for ONE requirement is — ORDERED, weakest first, and the order is the\n * meaning: every comparison here is \"at or above\", so inserting a level between two existing ones\n * changes the ladder rather than the code that walks it.\n *\n * A level names the STRONGEST evidence a requirement has, and nothing more. It is deliberately NOT\n * a claim that the weaker evidence exists too: an observation of the running application is evidence\n * about the PRODUCT, and a requirement somebody exercised but nobody planned a task for is a real\n * state — under-reporting it because no decided element points at it would hide the strongest\n * evidence this framework can produce. What every level above `UNADDRESSED` does guarantee is that\n * SOME evidence exists, which is what `UNADDRESSED` means the absence of.\n *\n * Each level is reached by a MEASUREMENT, never by an assertion:\n *\n * - `UNADDRESSED` — nothing the application decided points at it. Not a failure: an early run has\n * every requirement here, which is what makes the reading move.\n * - `DECIDED` — a decided element links to it: a feature draft, an experience surface, a worker, a\n * build task. Read from the decided-aspect graph's inbound links, so a family that declares an\n * edge to a requirement tomorrow contributes here without this module knowing it exists.\n * - `BUILT` — a BUILD TASK that links to it has landed, judged by the landing probe over committed\n * bytes rather than by any status somebody wrote down.\n * - `VERIFIED` — that landed task's declared product was PROVEN: the probe found what the task said\n * it would produce. A task that landed and could not be proven stops at `BUILT`, deliberately. So\n * does a requirement a coding run still REPORTS unmet (#2580): a proven product is not a met\n * requirement while the run that built it says what is missing, so an open gap caps the row at\n * `BUILT` until its follow-up lands (see `openGaps` on the row).\n * And so does one the application's CONFIGURATION does not meet (#3702): a capability it needs that is not\n * enabled, a language it names that is not served (see `configurationGaps` on the row).\n * - `OBSERVED` — something watched the running application do it: a browser drive, a served page, a\n * boot. The strongest evidence this framework can produce, and see\n * {@link ApplicationMaturityFindingCode.NO_RUNTIME_OBSERVATION_SOURCE} for what supplies it.\n * Reachable without any of the levels below, by the paragraph above.\n */\nexport enum RequirementEvidenceLevel {\n UNADDRESSED = 'UNADDRESSED',\n DECIDED = 'DECIDED',\n BUILT = 'BUILT',\n VERIFIED = 'VERIFIED',\n OBSERVED = 'OBSERVED',\n}\n\n/**\n * Each level's RANK — the one place the ordering lives, and a `Record` rather than an array so a\n * level added to the vocabulary tomorrow does not compile until somebody places it on the ladder.\n *\n * An array was the first shape and was wrong in the dangerous direction: an unplaced level made\n * `indexOf` return `-1`, so `isEvidenceAtOrAbove(anything, theNewLevel)` answered TRUE and every\n * row silently passed a threshold declared at it. A total map cannot reach that state.\n */\nconst REQUIREMENT_EVIDENCE_RANK: Readonly<Record<RequirementEvidenceLevel, number>> = {\n [RequirementEvidenceLevel.UNADDRESSED]: 0,\n [RequirementEvidenceLevel.DECIDED]: 1,\n [RequirementEvidenceLevel.BUILT]: 2,\n [RequirementEvidenceLevel.VERIFIED]: 3,\n [RequirementEvidenceLevel.OBSERVED]: 4,\n};\n\n/** The ladder in order, weakest first — derived from the ranks, so the two cannot disagree. */\nexport const REQUIREMENT_EVIDENCE_LADDER: readonly RequirementEvidenceLevel[] =\n (Object.keys(REQUIREMENT_EVIDENCE_RANK) as RequirementEvidenceLevel[]).sort((a, b) => REQUIREMENT_EVIDENCE_RANK[a] - REQUIREMENT_EVIDENCE_RANK[b]);\n\n/** True when `level` is at least as strong as `atLeast` — the only comparison this family makes. */\nexport function isEvidenceAtOrAbove(level: RequirementEvidenceLevel, atLeast: RequirementEvidenceLevel): boolean {\n return REQUIREMENT_EVIDENCE_RANK[level] >= REQUIREMENT_EVIDENCE_RANK[atLeast];\n}\n\n/**\n * Where the APPLICATION stands — the stage its weakest-covered requirements put it at.\n *\n * `NOT_MEASURABLE` is a stage rather than an absent reading, because an application with no landed\n * requirements has a true answer and it is not \"stage zero\": nothing has been asked of it yet, so\n * there is nothing to measure. Making that representable is what stops a reader inferring\n * \"measured, and bad\" from an empty file (`application-creation-directive.md`).\n */\nexport enum ApplicationMaturityStage {\n NOT_MEASURABLE = 'NOT_MEASURABLE',\n SPECIFIED = 'SPECIFIED',\n DECIDED = 'DECIDED',\n BUILT = 'BUILT',\n VERIFIED = 'VERIFIED',\n OBSERVED = 'OBSERVED',\n}\n\n/** Which half of the requirements family a row came from — the two are counted together and read apart. */\nexport enum RequirementFamilyHalf {\n FUNCTIONAL = 'FUNCTIONAL',\n NON_FUNCTIONAL = 'NON_FUNCTIONAL',\n}\n\n/**\n * A FACTORY rather than a shared constant, and the difference is visible on screen.\n *\n * The workbench's reading decorations are keyed by INSTANCE. When one instance served both the reading's\n * `summary` and every row's `requirementRef`, the workbench gave the key its receding identifier\n * treatment and so gave it to the summary as well: the one sentence the reading exists to say\n * rendered as a slug with no field chrome (measured 2026-09-24). One instance per field keeps a\n * display decision about one field from reaching another.\n */\nfunction nonEmptyString(): z.ZodString {\n return z.string().trim().min(1);\n}\n\n/**\n * One stage's admission test: the SHARE of requirements that must sit at or above a level.\n *\n * A declaration rather than a branch, so a richer calculation — per-kind weights, a different level\n * per half, a score — arrives as a different declaration and the walk stays the same.\n */\nexport const ApplicationMaturityStageThresholdSchema = z.strictObject({\n stage: z.enum(ApplicationMaturityStage).systemEnum('ApplicationMaturityStage'),\n /** The evidence level the share is measured at. */\n atLeast: z.enum(RequirementEvidenceLevel).systemEnum('RequirementEvidenceLevel'),\n /** The share of requirements that must reach it, 0–1 inclusive. */\n minimumShare: z.number().min(0).max(1),\n});\nexport type ApplicationMaturityStageThreshold = z.infer<typeof ApplicationMaturityStageThresholdSchema>;\n\n/**\n * The DEFAULT ladder thresholds: every requirement, at that level. One number, and it is not a guess.\n *\n * A share below 1 would be an invented tolerance — \"eighty per cent built is BUILT\" is a judgement\n * nobody has made, and this family exists to measure rather than to flatter. An application that\n * wants a softer bar declares one, and the reading carries what it was computed against, so the\n * softening is a visible decision rather than a number buried in a function.\n *\n * `SPECIFIED` and `NOT_MEASURABLE` carry no threshold: the first is reached by having requirements\n * at all, the second by having none.\n */\nexport const DEFAULT_APPLICATION_MATURITY_THRESHOLDS: readonly ApplicationMaturityStageThreshold[] = [\n { stage: ApplicationMaturityStage.DECIDED, atLeast: RequirementEvidenceLevel.DECIDED, minimumShare: 1 },\n { stage: ApplicationMaturityStage.BUILT, atLeast: RequirementEvidenceLevel.BUILT, minimumShare: 1 },\n { stage: ApplicationMaturityStage.VERIFIED, atLeast: RequirementEvidenceLevel.VERIFIED, minimumShare: 1 },\n { stage: ApplicationMaturityStage.OBSERVED, atLeast: RequirementEvidenceLevel.OBSERVED, minimumShare: 1 },\n];\n\n/**\n * The stage a set of rows reaches under a threshold declaration — the highest stage whose share is met.\n *\n * It lives in the SCHEMA file, beside the shape it scores, because the schema itself refuses a\n * reading whose stored `stage` is not the one its rows support: putting the walk in the validator\n * would make the schema import the validator that imports the schema, and a stage nothing checks is\n * the single field of this family a reader cannot verify by looking.\n */\nexport function resolveApplicationMaturityStage(reading: Pick<ApplicationMaturity, 'requirements' | 'thresholds'>): ApplicationMaturityStage {\n if (reading.requirements.length === 0) return ApplicationMaturityStage.NOT_MEASURABLE;\n let stage = ApplicationMaturityStage.SPECIFIED;\n /*\n * Walked in LADDER order rather than in declaration order: a threshold list is data an author may\n * write in any order, and a stage reached out of order would let a gap below it pass unnoticed.\n */\n for (const candidate of [ApplicationMaturityStage.DECIDED, ApplicationMaturityStage.BUILT, ApplicationMaturityStage.VERIFIED, ApplicationMaturityStage.OBSERVED]) {\n const threshold = reading.thresholds.find((entry) => entry.stage === candidate);\n if (threshold === undefined) break;\n const met = reading.requirements.filter((row) => isEvidenceAtOrAbove(row.level, threshold.atLeast)).length;\n if (met / reading.requirements.length < threshold.minimumShare) break;\n stage = candidate;\n }\n return stage;\n}\n\n/**\n * A gap a completed coding run REPORTED on a requirement it served, still open (#2580): no follow-up has landed for it,\n * or the follow-up's own run reports it still. A run states such a gap in its `wildo-requirements-unmet` block, and the\n * build host derives the follow-up task that answers it (#2496). Read from the runs' records, never from prose.\n */\nexport const RequirementOpenGapSchema = z.strictObject({\n /** The task whose latest completed run reported the gap: a build task, or a follow-up still reporting it. */\n originTaskRef: nonEmptyString(),\n /** What the run said is missing, in its own words. */\n missing: nonEmptyString(),\n /** The follow-up task derived to answer it, not landed yet. Absent when none can be derived or this IS the follow-up's report. */\n followUpTaskRef: nonEmptyString().optional(),\n});\nexport type RequirementOpenGap = z.infer<typeof RequirementOpenGapSchema>;\n\n/**\n * Why the application's CONFIGURATION does not meet a requirement (#3702). TOTAL over what a requirement can declare it\n * needs from the configuration (`engineCapabilities`, `languages`), plus the one state in which nothing can be compared.\n */\nexport enum RequirementConfigurationGapKind {\n /** The requirement needs an engine capability the application's configuration does not enable. */\n ENGINE_CAPABILITY_NOT_ENABLED = 'ENGINE_CAPABILITY_NOT_ENABLED',\n /** The requirement names a language the application does not serve (`appPreferences.languages`). */\n LANGUAGE_NOT_SERVED = 'LANGUAGE_NOT_SERVED',\n /**\n * The requirement declares what it needs from the configuration, and the configuration could not be read: an unknown\n * is not a met requirement, so the row stops below VERIFIED rather than read as proven.\n */\n CONFIGURATION_NOT_READ = 'CONFIGURATION_NOT_READ',\n}\n\n/**\n * One thing the application's configuration does not turn on that a requirement declares it cannot be met without\n * (#3702). Measured, never reported by anyone: the requirement's typed `engineCapabilities` / `languages` against the\n * capabilities the configuration enables and the languages it serves. Any one caps the row at `BUILT`, like an open\n * reported gap: a build task's product existing proves nothing about a switch that is off. Measured on the reference\n * run (2026-11-10): the languages requirement read VERIFIED, proven by a page a task wrote, while the application had\n * `MULTI_LANGUAGE` disabled and served English alone.\n */\nexport const RequirementConfigurationGapSchema = z.strictObject({\n kind: z.enum(RequirementConfigurationGapKind).systemEnum('RequirementConfigurationGapKind'),\n /** The capability or language that is missing, as its vocabulary spells it; the configuration file when it is unread. */\n value: nonEmptyString(),\n /** Where the application declares it, so the gap is a named field to set rather than a question. */\n declaredIn: nonEmptyString(),\n});\nexport type RequirementConfigurationGap = z.infer<typeof RequirementConfigurationGapSchema>;\n\n/** One requirement, and what exists for it. */\nexport const RequirementMaturityRowSchema = z.strictObject({\n /** The `requirements` family's own ref — the join, and the reason nothing here restates a statement. */\n requirementRef: nonEmptyString(),\n half: z.enum(RequirementFamilyHalf).systemEnum('RequirementFamilyHalf'),\n level: z.enum(RequirementEvidenceLevel).systemEnum('RequirementEvidenceLevel'),\n /**\n * The decided elements that point at this requirement, by their own refs — a feature draft, an\n * experience surface, a worker, a build task.\n *\n * Empty whenever the level is `UNADDRESSED`, and NOT the other way round: a requirement carrying\n * only a runtime observation is `OBSERVED` with nothing addressing it, which is a true reading of\n * a product somebody exercised without anyone planning the work. The refusal below is therefore\n * one-directional on purpose.\n */\n addressedByRefs: z.array(nonEmptyString()).default([]),\n /** The build tasks addressing it that have LANDED. */\n landedTaskRefs: z.array(nonEmptyString()).default([]),\n /** The landed tasks among those whose declared product was PROVEN. A subset of `landedTaskRefs`. */\n provenTaskRefs: z.array(nonEmptyString()).default([]),\n /** Runtime observations naming this requirement, by their own refs. */\n observationRefs: z.array(nonEmptyString()).default([]),\n /**\n * The gaps coding runs reported on this requirement that are still open (#2580). Any one caps the level at `BUILT`:\n * a requirement whose builder says it is partly unmet is not proven, whatever the probe found.\n */\n openGaps: z.array(RequirementOpenGapSchema).default([]),\n /**\n * What the application's configuration does not turn on that the requirement declares it needs (#3702). Any one caps\n * the level at `BUILT`, as an open reported gap does.\n */\n configurationGaps: z.array(RequirementConfigurationGapSchema).default([]),\n});\nexport type RequirementMaturityRow = z.infer<typeof RequirementMaturityRowSchema>;\n\n/**\n * THE application-maturity payload.\n *\n * **Artifact-family id: `application-maturity`.** DERIVED — `deriveApplicationMaturity` is a pure\n * function of the requirements, the decided-element graph, the build plan's landing probe and the\n * runtime observations. Nothing generates it, for the same reason the capability composition is not\n * generated: a model asked where an application stands would answer, and the answer would be\n * unfalsifiable.\n */\nexport const ApplicationMaturitySchema = z.object({\n version: z.enum(ApplicationMaturityVersion).default(ApplicationMaturityVersion.V1),\n stage: z.enum(ApplicationMaturityStage).systemEnum('ApplicationMaturityStage'),\n /** The reading in one sentence, naming the counts that decided the stage. */\n summary: nonEmptyString(),\n /**\n * The thresholds this reading was computed against — carried, so a later softening is a diff.\n *\n * At least one, and CONTIGUOUS from `DECIDED` upward (see the refusal below): the walk stops at\n * the first stage with no threshold, so a set that skipped `DECIDED` and declared `VERIFIED`\n * would floor every application at `SPECIFIED` however strong its evidence — silently, because a\n * gap and a failed bar are the same `break`. Declaring only a prefix is legitimate and common\n * (\"we only score up to BUILT\"); declaring a hole is not.\n */\n thresholds: z.array(ApplicationMaturityStageThresholdSchema).min(1).default([...DEFAULT_APPLICATION_MATURITY_THRESHOLDS]),\n /** One row per requirement the application declares. TOTAL over the family; never a selection. */\n requirements: z.array(RequirementMaturityRowSchema).default([]),\n}).superRefine((reading, context) => {\n const seen = new Set<string>();\n reading.requirements.forEach((row, index) => {\n if (seen.has(row.requirementRef)) {\n context.addIssue({ code: 'custom', message: `requirement ${row.requirementRef} is measured twice`, path: ['requirements', index, 'requirementRef'] });\n }\n seen.add(row.requirementRef);\n /*\n * The row's own coherence, refused rather than reported: a proven task that is not among the\n * landed ones is a reading that contradicts itself, and a reader cannot tell which half to\n * believe. The SOFT cases — a requirement nothing addresses, a level nothing can reach — are\n * findings, because those describe the application rather than the reading.\n */\n for (const provenTaskRef of row.provenTaskRefs) {\n if (!row.landedTaskRefs.includes(provenTaskRef)) {\n context.addIssue({ code: 'custom', message: `task ${provenTaskRef} is proven for ${row.requirementRef} without being landed`, path: ['requirements', index, 'provenTaskRefs'] });\n }\n }\n if (row.openGaps.length > 0 && isEvidenceAtOrAbove(row.level, RequirementEvidenceLevel.VERIFIED)) {\n context.addIssue({ code: 'custom', message: `${row.requirementRef} is ${row.level} while ${row.openGaps.length} reported gap(s) on it are open`, path: ['requirements', index, 'level'] });\n }\n if (row.configurationGaps.length > 0 && isEvidenceAtOrAbove(row.level, RequirementEvidenceLevel.VERIFIED)) {\n context.addIssue({ code: 'custom', message: `${row.requirementRef} is ${row.level} while the configuration does not meet it (${row.configurationGaps.map((gap) => gap.value).join(', ')})`, path: ['requirements', index, 'level'] });\n }\n if (row.level === RequirementEvidenceLevel.UNADDRESSED && row.addressedByRefs.length > 0) {\n context.addIssue({ code: 'custom', message: `${row.requirementRef} is UNADDRESSED and names ${row.addressedByRefs.length} element(s) addressing it`, path: ['requirements', index, 'level'] });\n }\n });\n const stages = new Set<ApplicationMaturityStage>();\n reading.thresholds.forEach((threshold, index) => {\n if (stages.has(threshold.stage)) {\n context.addIssue({ code: 'custom', message: `stage ${threshold.stage} carries two thresholds`, path: ['thresholds', index, 'stage'] });\n }\n stages.add(threshold.stage);\n if (threshold.stage === ApplicationMaturityStage.NOT_MEASURABLE || threshold.stage === ApplicationMaturityStage.SPECIFIED) {\n /*\n * Neither is reachable by a threshold — one means \"no requirements\", the other \"some, and no\n * bar met\" — so a threshold on them was silently inert. Refused rather than ignored: an inert\n * declaration reads as a decision somebody made.\n */\n context.addIssue({ code: 'custom', message: `${threshold.stage} is not reached by a threshold: it is what an application falls back to`, path: ['thresholds', index, 'stage'] });\n }\n });\n /* CONTIGUITY, for the reason on the field above: a hole floors the reading and says nothing. */\n const scored = [ApplicationMaturityStage.DECIDED, ApplicationMaturityStage.BUILT, ApplicationMaturityStage.VERIFIED, ApplicationMaturityStage.OBSERVED];\n const highest = scored.reduce((last, stage, index) => (stages.has(stage) ? index : last), -1);\n for (let index = 0; index <= highest; index += 1) {\n if (!stages.has(scored[index]!)) {\n context.addIssue({\n code: 'custom',\n message: `the threshold set declares ${scored[highest]!} and skips ${scored[index]!} — the walk stops at the gap, so every stage above it is unreachable`,\n path: ['thresholds'],\n });\n }\n }\n /*\n * THE STAGE MUST BE THE ONE ITS OWN ROWS AND THRESHOLDS PRODUCE.\n *\n * The reading is landed as a file and read by the workbench, the creation home and any later\n * pass; a `stage` that disagrees with the rows beside it is the one thing a reader cannot detect,\n * because the stage is the part they read. This is the same refusal as the proven-without-landed\n * one above — a reading that contradicts itself fails closed — and it is a refusal of the\n * ARTIFACT, never of the lane, so it is not a gate on anything.\n */\n const supported = resolveApplicationMaturityStage({ requirements: reading.requirements, thresholds: reading.thresholds });\n if (reading.stage !== supported) {\n context.addIssue({\n code: 'custom',\n message: `stage ${reading.stage} is not what these ${reading.requirements.length} row(s) and thresholds support (${supported})`,\n path: ['stage'],\n });\n }\n});\nexport type ApplicationMaturity = z.infer<typeof ApplicationMaturitySchema>;\n/** @wildo_source:part:end application-maturity.config */\n"]}
|
|
@@ -33,6 +33,7 @@
|
|
|
33
33
|
* | brand name not cleared | the chosen brand name against its trademark screening — `deriveBrandNameChoiceStanding`, the predicate the coherence report and the risk signal use (#2338) — unless `brandNameClearances` records the name cleared outside the screening (#2440) |
|
|
34
34
|
* | assurance obligation unmet | the committed compliance programme's obligation register — {@link readAssuranceProgramObligationStanding}: a HARD obligation that applies (or may) and is not met (#55) |
|
|
35
35
|
* | data residency | {@link placeProvidersInsideDataResidency}, the population and verdict `wildo config sync` refuses on: each data-serving provider the declared (or answered and not yet declared) residency does not place inside, and an answered residency the configuration does not carry yet (#2294) |
|
|
36
|
+
* | agents run unguarded | each environment other than a local one whose `agentContentGuardrails` declares `RUN_UNGUARDED`: its agents' classifier-backed guardrails that no classifier offers there are not enforced (#2292) |
|
|
36
37
|
*
|
|
37
38
|
* The governance population is the QUEUE's, deliberately: a fact still needed by a DRAFTED governed document. A document
|
|
38
39
|
* not drafted yet asks nothing, so its facts are not listed here — the creation run drafting it is what surfaces them.
|
|
@@ -50,7 +51,7 @@
|
|
|
50
51
|
* (`negative-results-require-a-positive-probe.md`).
|
|
51
52
|
*/
|
|
52
53
|
import { z } from "zod";
|
|
53
|
-
import { type ApplicationBrandNameClearances, type ApplicationOperatorComplianceIdentity, type ApplicationRetentionSchedule, type GovernedDocumentRelease, type ApplicationProviderComplianceChoices, type ProviderComplianceProfile } from "@wildo-ai/saas-models";
|
|
54
|
+
import { type ApplicationBrandNameClearances, type ApplicationOperatorComplianceIdentity, type ApplicationRetentionSchedule, type GovernedDocumentRelease, type ApplicationProviderComplianceChoices, type ProviderComplianceProfile, type EnvironmentAgentContentGuardrails } from "@wildo-ai/saas-models";
|
|
54
55
|
/** WHAT is open — one member per kind of launch decision, each with its own settling path. */
|
|
55
56
|
export declare enum LaunchBlockerKind {
|
|
56
57
|
/** A part of `operatorComplianceIdentity` is undeclared: the legal entity, the hosting region, the privacy contact… */
|
|
@@ -112,7 +113,15 @@ export declare enum LaunchBlockerKind {
|
|
|
112
113
|
* declared): several of its regions fit, none does, its deployment model is a choice, an authored region lies outside,
|
|
113
114
|
* or it has no profile (#2294). Under a DECLARED residency `wildo config sync` refuses until it is settled.
|
|
114
115
|
*/
|
|
115
|
-
DATA_RESIDENCY_PROVIDER_UNPLACED = "data-residency-provider-unplaced"
|
|
116
|
+
DATA_RESIDENCY_PROVIDER_UNPLACED = "data-residency-provider-unplaced",
|
|
117
|
+
/**
|
|
118
|
+
* An environment other than a local one declares that its agents run UNGUARDED where no classifier offers a guardrail
|
|
119
|
+
* (`agentContentGuardrails: { withoutClassifier: RUN_UNGUARDED }`, #2292): an agent that declares prompt-injection
|
|
120
|
+
* screening or output moderation runs without it there. A decision the operator may keep; this keeps it in view until a
|
|
121
|
+
* classifier is selected for that environment or the declaration is removed. A local environment is never listed: no
|
|
122
|
+
* real user reaches it.
|
|
123
|
+
*/
|
|
124
|
+
AGENT_GUARDRAILS_RUN_UNGUARDED = "agent-guardrails-run-unguarded"
|
|
116
125
|
}
|
|
117
126
|
/** An input the list is derived from — named so an unreadable one can be reported as such. */
|
|
118
127
|
export declare enum LaunchBlockerSource {
|
|
@@ -127,7 +136,9 @@ export declare enum LaunchBlockerSource {
|
|
|
127
136
|
/** The committed compliance programme (`complianceSpecification`): its obligation register. */
|
|
128
137
|
ASSURANCE_PROGRAM = "assurance-program",
|
|
129
138
|
/** The data-serving providers' compliance profiles and the residency answer: where each provider processes (#2294). */
|
|
130
|
-
PROVIDER_DATA_RESIDENCY = "provider-data-residency"
|
|
139
|
+
PROVIDER_DATA_RESIDENCY = "provider-data-residency",
|
|
140
|
+
/** Each environment's `wildo.infra.<env>.config.ts`: what it declares about its agents' guardrails (#2292). */
|
|
141
|
+
ENVIRONMENT_CONFIGS = "environment-configs"
|
|
131
142
|
}
|
|
132
143
|
/** One open decision. */
|
|
133
144
|
export declare const LaunchBlockerSchema: z.ZodObject<{
|
|
@@ -219,6 +230,20 @@ export interface LaunchBlockerInputs {
|
|
|
219
230
|
readonly assuranceProgram?: {
|
|
220
231
|
readonly program: unknown;
|
|
221
232
|
};
|
|
233
|
+
/**
|
|
234
|
+
* What each authored environment declares about its agents' classifier-backed guardrails (#2292), one entry per
|
|
235
|
+
* environment whose infra config loaded. `undefined` when the environments could not be read: the item is then UNKNOWN.
|
|
236
|
+
*/
|
|
237
|
+
readonly environmentAgentGuardrails?: readonly {
|
|
238
|
+
/** The environment's name, its `infrastructure/<name>/` directory. */
|
|
239
|
+
readonly environment: string;
|
|
240
|
+
/** Whether it is a local environment, which no real user reaches. */
|
|
241
|
+
readonly local: boolean;
|
|
242
|
+
/** Its `agentContentGuardrails`, absent when it authors none. */
|
|
243
|
+
readonly declaration?: EnvironmentAgentContentGuardrails;
|
|
244
|
+
/** The file it is authored in. */
|
|
245
|
+
readonly declaredIn: string;
|
|
246
|
+
}[];
|
|
222
247
|
/** Why each unreadable input could not be read, for the report. */
|
|
223
248
|
readonly unreadableReasons?: Partial<Record<LaunchBlockerSource, string>>;
|
|
224
249
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"launch-blockers.schemas.d.ts","sourceRoot":"","sources":["../../../../src/_core/compliance-documents/launch-blockers.schemas.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"launch-blockers.schemas.d.ts","sourceRoot":"","sources":["../../../../src/_core/compliance-documents/launch-blockers.schemas.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmDG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAYL,KAAK,8BAA8B,EACnC,KAAK,qCAAqC,EAC1C,KAAK,4BAA4B,EACjC,KAAK,uBAAuB,EAK5B,KAAK,oCAAoC,EACzC,KAAK,yBAAyB,EAE9B,KAAK,iCAAiC,EACvC,MAAM,uBAAuB,CAAC;AAuC/B,8FAA8F;AAC9F,oBAAY,iBAAiB;IAC3B,uH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