@sdd-method/sdd-cli 1.2.0 → 1.3.1
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/lib/catalogue/build.d.ts.map +1 -1
- package/dist/lib/catalogue/build.js +14 -1
- package/dist/lib/catalogue/build.js.map +1 -1
- package/dist/lib/catalogue/builders/capability-edges.d.ts.map +1 -1
- package/dist/lib/catalogue/builders/capability-edges.js +10 -1
- package/dist/lib/catalogue/builders/capability-edges.js.map +1 -1
- package/dist/lib/catalogue/builders/index.d.ts +2 -0
- package/dist/lib/catalogue/builders/index.d.ts.map +1 -1
- package/dist/lib/catalogue/builders/index.js +1 -0
- package/dist/lib/catalogue/builders/index.js.map +1 -1
- package/dist/lib/catalogue/builders/quality-scores.d.ts +14 -0
- package/dist/lib/catalogue/builders/quality-scores.d.ts.map +1 -0
- package/dist/lib/catalogue/builders/quality-scores.js +390 -0
- package/dist/lib/catalogue/builders/quality-scores.js.map +1 -0
- package/dist/lib/catalogue/builders/services.d.ts.map +1 -1
- package/dist/lib/catalogue/builders/services.js +5 -1
- package/dist/lib/catalogue/builders/services.js.map +1 -1
- package/dist/lib/catalogue/canonical-schema.yaml +199 -1
- package/dist/lib/catalogue/coverage-render.d.ts +15 -0
- package/dist/lib/catalogue/coverage-render.d.ts.map +1 -1
- package/dist/lib/catalogue/coverage-render.js +85 -0
- package/dist/lib/catalogue/coverage-render.js.map +1 -1
- package/dist/lib/catalogue/coverage-run.d.ts.map +1 -1
- package/dist/lib/catalogue/coverage-run.js +7 -1
- package/dist/lib/catalogue/coverage-run.js.map +1 -1
- package/dist/lib/catalogue/scores-coverage.d.ts +138 -0
- package/dist/lib/catalogue/scores-coverage.d.ts.map +1 -0
- package/dist/lib/catalogue/scores-coverage.js +346 -0
- package/dist/lib/catalogue/scores-coverage.js.map +1 -0
- package/dist/lib/mcp/parse/gate-registry.d.ts +63 -4
- package/dist/lib/mcp/parse/gate-registry.d.ts.map +1 -1
- package/dist/lib/mcp/parse/gate-registry.js +127 -31
- package/dist/lib/mcp/parse/gate-registry.js.map +1 -1
- package/dist/lib/mcp/resources/gates.d.ts.map +1 -1
- package/dist/lib/mcp/resources/gates.js +13 -27
- package/dist/lib/mcp/resources/gates.js.map +1 -1
- package/dist/lib/mcp/tools/query-gate-status.d.ts.map +1 -1
- package/dist/lib/mcp/tools/query-gate-status.js +13 -27
- package/dist/lib/mcp/tools/query-gate-status.js.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,390 @@
|
|
|
1
|
+
// Quality-scores builder — emits the rubric-assessment catalogues (M-ADR 0205
|
|
2
|
+
// §4.5, schema 3.2.0):
|
|
3
|
+
// quality_scores, quality_score_dimensions
|
|
4
|
+
//
|
|
5
|
+
// Source: `orchestration/gate-registry/<rubric>-scores.yaml`. The authored
|
|
6
|
+
// surface stays YAML because a score is a judgment, authored where it asserts
|
|
7
|
+
// intent; these rows are DERIVED and never edited.
|
|
8
|
+
//
|
|
9
|
+
// Three shapes here are counter-intuitive enough that a builder written from
|
|
10
|
+
// the method's own registry TEMPLATES would get all three wrong. Each was
|
|
11
|
+
// measured across 15 method-side + 152 estate-side registry files (the Phase-B
|
|
12
|
+
// B0 survey, 2026-08-06), and each is guarded by a control:
|
|
13
|
+
//
|
|
14
|
+
// 1. TWO AUTHORED DIALECTS. All fifteen method templates specify a nested
|
|
15
|
+
// shape (`selection_policy` / `current` / `reviews`), but the live forward
|
|
16
|
+
// data is overwhelmingly FLAT — `gate` / `weighted_score` / `scored_at` /
|
|
17
|
+
// `scored_by` / `scores` / `flags` directly on the entry. Reading only the
|
|
18
|
+
// template shape would catalogue 6 entries out of 204. Both are legitimate:
|
|
19
|
+
// the templates were modernised, the data was not migrated.
|
|
20
|
+
// 2. THE CONTAINER KEY IDENTIFIES NOTHING. It drifts between template and
|
|
21
|
+
// estate in 4 of 10 files (`diagrams` vs `c4_diagram_scores`, `capabilities`
|
|
22
|
+
// vs `feature_grounding_scores`, ...) and is non-unique method-side
|
|
23
|
+
// (`domains` names BOTH domain-architecture and intent-quality;
|
|
24
|
+
// `capabilities` names BOTH feature-grounding and traceability-manifest).
|
|
25
|
+
// So `rubric_id` comes from the file's `registry_type` when declared, else
|
|
26
|
+
// the filename stem minus `-scores`. Never the key.
|
|
27
|
+
// 3. `corpus_ref` IS NEW AUTHORING. M-ADR 0205 §4.5 names it and the coverage
|
|
28
|
+
// instrument's staleness rule depends on it, but nothing authors it in
|
|
29
|
+
// either estate today. Rows therefore carry `staleness_basis` saying which
|
|
30
|
+
// anchor they can actually support, so no consumer can state a staleness
|
|
31
|
+
// verdict without its basis.
|
|
32
|
+
//
|
|
33
|
+
// LOUDNESS CONTRACT. Nothing here drops silently — that is the whole point of
|
|
34
|
+
// the class. An unparseable registry, an unknown rubric_id, an ambiguous
|
|
35
|
+
// container, a registry_type disagreeing with its filename, and an
|
|
36
|
+
// out-of-vocabulary gate value each produce a finding naming the file, the
|
|
37
|
+
// entry and the remedy. The one thing that is NOT a finding is a registry with
|
|
38
|
+
// an empty container: the method repo ships fifteen of those deliberately, and
|
|
39
|
+
// their emptiness is the signal the B2 coverage predicate reads, not an error
|
|
40
|
+
// here.
|
|
41
|
+
import { readdir, readFile } from "node:fs/promises";
|
|
42
|
+
import { basename, join } from "node:path";
|
|
43
|
+
import { parse as parseYaml } from "yaml";
|
|
44
|
+
const REGISTRY_DIR_REL = "orchestration/gate-registry";
|
|
45
|
+
/**
|
|
46
|
+
* File-level keys that are registry metadata rather than scored entries.
|
|
47
|
+
* Anything else at the top level is the entry container. The reverse family's
|
|
48
|
+
* `registry_type` / `assessed_at` / `assessed_by` are here too so that family
|
|
49
|
+
* parses with the same code path, even though only the weighted house form is
|
|
50
|
+
* emitted today (schema 3.2.0's `scoring_form` reserves the banded case).
|
|
51
|
+
*/
|
|
52
|
+
const HEADER_KEYS = new Set([
|
|
53
|
+
"schema_version",
|
|
54
|
+
"description",
|
|
55
|
+
"pass_threshold",
|
|
56
|
+
"registry_type",
|
|
57
|
+
"assessed_at",
|
|
58
|
+
"assessed_by",
|
|
59
|
+
]);
|
|
60
|
+
/**
|
|
61
|
+
* rubric_id -> target_kind. A CLOSED map on purpose: an unknown rubric is a
|
|
62
|
+
* loud finding, never a silently-dropped entry or a guessed kind. New rubrics
|
|
63
|
+
* ship with a row here (the R9 four-surface rule already requires the registry;
|
|
64
|
+
* this is the fifth touchpoint and the one that makes the rows appear).
|
|
65
|
+
*/
|
|
66
|
+
const TARGET_KIND_BY_RUBRIC = new Map([
|
|
67
|
+
["adr-quality", "adr"],
|
|
68
|
+
["contract-quality", "contract"],
|
|
69
|
+
["c4-diagram", "c4_diagram"],
|
|
70
|
+
["domain-architecture", "domain"],
|
|
71
|
+
["intent-quality", "domain"],
|
|
72
|
+
["feature-grounding", "capability"],
|
|
73
|
+
["traceability-manifest", "capability"],
|
|
74
|
+
["glossary", "glossary"],
|
|
75
|
+
["persona", "persona"],
|
|
76
|
+
["product-definition", "product"],
|
|
77
|
+
["screen-spec", "screen"],
|
|
78
|
+
["strategic-doc", "strategic_doc"],
|
|
79
|
+
["user-story", "user_story"],
|
|
80
|
+
["work-order", "work_order"],
|
|
81
|
+
["integration-sdd-quality", "integration"],
|
|
82
|
+
]);
|
|
83
|
+
/** schema 3.2.0 `quality_gate`. Deliberately UNBOUND — see that enum's note. */
|
|
84
|
+
const GATE_VALUES = new Set(["pass", "conditional", "fail", "unscored"]);
|
|
85
|
+
const isRecord = (v) => typeof v === "object" && v !== null && !Array.isArray(v);
|
|
86
|
+
const str = (v) => typeof v === "string" ? v : typeof v === "number" ? String(v) : null;
|
|
87
|
+
const num = (v) => {
|
|
88
|
+
if (typeof v === "number" && Number.isFinite(v))
|
|
89
|
+
return v;
|
|
90
|
+
if (typeof v === "string" && v.trim() !== "" && Number.isFinite(Number(v))) {
|
|
91
|
+
return Number(v);
|
|
92
|
+
}
|
|
93
|
+
return null;
|
|
94
|
+
};
|
|
95
|
+
/**
|
|
96
|
+
* Count raised flags across the two authored dialects:
|
|
97
|
+
* `flags: { over_scope_risk: true, ... }` -> count the true ones
|
|
98
|
+
* `flags_raised: [name, ...]` -> count the list
|
|
99
|
+
* A scalar `flags_raised: 0` also occurs in the wild (one estate authors it),
|
|
100
|
+
* and reads as zero rather than as a parse defect.
|
|
101
|
+
*/
|
|
102
|
+
function countFlags(entry, current) {
|
|
103
|
+
const raised = current["flags_raised"] ?? entry["flags_raised"];
|
|
104
|
+
if (Array.isArray(raised))
|
|
105
|
+
return raised.length;
|
|
106
|
+
if (typeof raised === "number")
|
|
107
|
+
return raised;
|
|
108
|
+
const flags = current["flags"] ?? entry["flags"];
|
|
109
|
+
if (isRecord(flags))
|
|
110
|
+
return Object.values(flags).filter((v) => v === true).length;
|
|
111
|
+
return 0;
|
|
112
|
+
}
|
|
113
|
+
/**
|
|
114
|
+
* Hard-gate state across the two dialects:
|
|
115
|
+
* `hard_gates: { triggered: bool, reasons: [] }`
|
|
116
|
+
* `hard_gates_triggered: [reasons]` (empty list = not triggered)
|
|
117
|
+
*/
|
|
118
|
+
function hardGateTriggered(entry, current) {
|
|
119
|
+
const list = current["hard_gates_triggered"] ?? entry["hard_gates_triggered"];
|
|
120
|
+
if (Array.isArray(list))
|
|
121
|
+
return list.length > 0;
|
|
122
|
+
const hg = current["hard_gates"] ?? entry["hard_gates"];
|
|
123
|
+
if (isRecord(hg))
|
|
124
|
+
return hg["triggered"] === true;
|
|
125
|
+
return false;
|
|
126
|
+
}
|
|
127
|
+
function requiredActionsCount(entry, current) {
|
|
128
|
+
const explicit = num(current["required_actions_count"] ?? entry["required_actions_count"]);
|
|
129
|
+
if (explicit !== null)
|
|
130
|
+
return explicit;
|
|
131
|
+
const list = current["required_actions"] ?? entry["required_actions"];
|
|
132
|
+
return Array.isArray(list) ? list.length : 0;
|
|
133
|
+
}
|
|
134
|
+
/**
|
|
135
|
+
* Scorer provenance across three dialects: the nested `scorer:` block, the flat
|
|
136
|
+
* `scored_by:` free-text field, and the reverse family's file-level
|
|
137
|
+
* `assessed_by:`. A flat-dialect row therefore lands its whole provenance in
|
|
138
|
+
* `scorer_model` as free text — expected, and documented in the schema, so it
|
|
139
|
+
* does not read as a parse defect to whoever queries it later.
|
|
140
|
+
*/
|
|
141
|
+
function scorerFields(entry, current, fileAssessedBy) {
|
|
142
|
+
const scorer = current["scorer"] ?? entry["scorer"];
|
|
143
|
+
if (isRecord(scorer)) {
|
|
144
|
+
return {
|
|
145
|
+
scorer_provider: str(scorer["provider"]),
|
|
146
|
+
scorer_tool: str(scorer["tool"]),
|
|
147
|
+
scorer_model: str(scorer["model"]),
|
|
148
|
+
scorer_model_family: str(scorer["model_family"]),
|
|
149
|
+
scorer_prompt_version: str(scorer["prompt_version"]),
|
|
150
|
+
};
|
|
151
|
+
}
|
|
152
|
+
const flat = str(current["scored_by"] ?? entry["scored_by"]) ?? fileAssessedBy;
|
|
153
|
+
return {
|
|
154
|
+
scorer_provider: null,
|
|
155
|
+
scorer_tool: null,
|
|
156
|
+
scorer_model: flat,
|
|
157
|
+
scorer_model_family: null,
|
|
158
|
+
scorer_prompt_version: null,
|
|
159
|
+
};
|
|
160
|
+
}
|
|
161
|
+
/** Slug a target ref into a PK-safe token without collapsing distinct refs. */
|
|
162
|
+
const slugToken = (s) => s
|
|
163
|
+
.trim()
|
|
164
|
+
.replace(/[^A-Za-z0-9_.-]+/g, "-")
|
|
165
|
+
.replace(/^-+|-+$/g, "")
|
|
166
|
+
.toLowerCase();
|
|
167
|
+
/**
|
|
168
|
+
* The effective review for a nested entry, or null when there is nothing to
|
|
169
|
+
* select. Resolution order, deliberately explicit rather than "latest wins":
|
|
170
|
+
*
|
|
171
|
+
* 1. `selection_policy.selected_review_run_id` matched against
|
|
172
|
+
* `reviews[].review_run_id` — the registry SAYING which review is
|
|
173
|
+
* effective is authoritative, whatever the dates say.
|
|
174
|
+
* 2. `current.review_run_id` matched the same way — the summary naming its
|
|
175
|
+
* own source.
|
|
176
|
+
* 3. Exactly one review and no id anywhere: it is unambiguous, so use it.
|
|
177
|
+
*
|
|
178
|
+
* Several reviews with no resolvable id is NOT guessed at — the caller reports
|
|
179
|
+
* it. Picking the newest would silently choose a verdict the registry never
|
|
180
|
+
* nominated, and a scores registry's whole point is that the effective record
|
|
181
|
+
* is declared rather than inferred.
|
|
182
|
+
*/
|
|
183
|
+
function selectReview(entry, current) {
|
|
184
|
+
const reviews = entry["reviews"];
|
|
185
|
+
if (!Array.isArray(reviews))
|
|
186
|
+
return null;
|
|
187
|
+
const records = reviews.filter(isRecord);
|
|
188
|
+
if (records.length === 0)
|
|
189
|
+
return null;
|
|
190
|
+
const policy = entry["selection_policy"];
|
|
191
|
+
const wanted = (isRecord(policy) ? str(policy["selected_review_run_id"]) : null) ??
|
|
192
|
+
str(current["review_run_id"]);
|
|
193
|
+
if (wanted !== null) {
|
|
194
|
+
const hit = records.find((r) => str(r["review_run_id"]) === wanted);
|
|
195
|
+
if (hit)
|
|
196
|
+
return hit;
|
|
197
|
+
}
|
|
198
|
+
return records.length === 1 ? records[0] : null;
|
|
199
|
+
}
|
|
200
|
+
/**
|
|
201
|
+
* Fields present on `current` win; anything absent there falls back to the
|
|
202
|
+
* selected review. That direction matters: `current` is the registry's own
|
|
203
|
+
* statement of the effective headline, so a gate or weighted_score recorded
|
|
204
|
+
* there overrides the review's copy if they ever disagree — while the detail
|
|
205
|
+
* `current` does not carry comes from the review it points at.
|
|
206
|
+
*/
|
|
207
|
+
function mergePreferringCurrent(current, review) {
|
|
208
|
+
const out = { ...review };
|
|
209
|
+
for (const [k, v] of Object.entries(current)) {
|
|
210
|
+
if (v !== undefined && v !== null)
|
|
211
|
+
out[k] = v;
|
|
212
|
+
}
|
|
213
|
+
return out;
|
|
214
|
+
}
|
|
215
|
+
export async function buildQualityScores(inputs) {
|
|
216
|
+
const { sddPath, findings, sddId } = inputs;
|
|
217
|
+
const dir = join(sddPath, REGISTRY_DIR_REL);
|
|
218
|
+
let files;
|
|
219
|
+
try {
|
|
220
|
+
files = (await readdir(dir))
|
|
221
|
+
.filter((f) => f.endsWith(".yaml") || f.endsWith(".yml"))
|
|
222
|
+
.sort();
|
|
223
|
+
}
|
|
224
|
+
catch {
|
|
225
|
+
// No gate-registry directory. Headers-only, and NOT a finding: the surface
|
|
226
|
+
// is optional per profile, and absence of the whole surface is not an
|
|
227
|
+
// authoring gap in it (the repo-config predicate's n/a rule, same reasoning).
|
|
228
|
+
return { qualityScores: [], qualityScoreDimensions: [] };
|
|
229
|
+
}
|
|
230
|
+
const qualityScores = [];
|
|
231
|
+
const qualityScoreDimensions = [];
|
|
232
|
+
for (const file of files) {
|
|
233
|
+
const rel = `${REGISTRY_DIR_REL}/${file}`;
|
|
234
|
+
const raw = await readFile(join(dir, file), "utf8");
|
|
235
|
+
let doc;
|
|
236
|
+
try {
|
|
237
|
+
doc = parseYaml(raw);
|
|
238
|
+
}
|
|
239
|
+
catch (e) {
|
|
240
|
+
// Measured: 3 of one estate's 10 registries do not parse (two mixing
|
|
241
|
+
// mapping and sequence entries under one container, one with a duplicate
|
|
242
|
+
// key whose two blocks hold CONTRADICTORY verdicts for the same target).
|
|
243
|
+
// A parser that tolerates duplicate keys reports the flattering figure
|
|
244
|
+
// and hides it; this one refuses, and says so.
|
|
245
|
+
// WARN, not error, and the choice is deliberate. Score registries are
|
|
246
|
+
// scoring-run output, not a method-mandated authoring surface, and the
|
|
247
|
+
// same reasoning that leaves `quality_gate` unbound applies here: this
|
|
248
|
+
// class must not hard-fail an estate's whole catalogue build over data
|
|
249
|
+
// that predates it (measured: one estate carries three such files). The
|
|
250
|
+
// loudness comes from the findings baseline — a new unbaselined finding
|
|
251
|
+
// fails the gate — which is how this method makes things loud without
|
|
252
|
+
// making builds brittle.
|
|
253
|
+
findings.add("divergence", `${rel} is not parseable YAML (${String(e.message).split("\n")[0]}) — every score it holds is invisible to the catalogue; repair the file (a duplicate key silently discards one of two judgments, and a mapping/sequence mix is invalid in every parser)`);
|
|
254
|
+
continue;
|
|
255
|
+
}
|
|
256
|
+
if (!isRecord(doc))
|
|
257
|
+
continue;
|
|
258
|
+
// --- rubric_id: registry_type, else filename. Never the container key. ---
|
|
259
|
+
const stem = basename(file).replace(/\.(yaml|yml)$/, "");
|
|
260
|
+
const fromFilename = stem.replace(/-scores$/, "");
|
|
261
|
+
const declared = str(doc["registry_type"]);
|
|
262
|
+
const rubricId = declared ?? fromFilename;
|
|
263
|
+
if (declared !== null && declared !== fromFilename) {
|
|
264
|
+
findings.add("convention", `${rel} declares registry_type '${declared}' but its filename says '${fromFilename}' — rubric_id uses the declared value; rename the file or correct registry_type so the two agree`);
|
|
265
|
+
}
|
|
266
|
+
const targetKind = TARGET_KIND_BY_RUBRIC.get(rubricId);
|
|
267
|
+
if (targetKind === undefined) {
|
|
268
|
+
findings.add("coverage", `${rel} uses rubric '${rubricId}', which has no target-kind mapping — its scores are NOT catalogued; add the rubric to the quality-scores builder's TARGET_KIND_BY_RUBRIC map (a new rubric ships its registry, rubric, skill trio and seed rows; this is the fifth surface)`);
|
|
269
|
+
continue;
|
|
270
|
+
}
|
|
271
|
+
const fileAssessedBy = str(doc["assessed_by"]);
|
|
272
|
+
// --- the entry container: the single non-header mapping key ---
|
|
273
|
+
const containers = Object.entries(doc).filter(([k, v]) => !HEADER_KEYS.has(k) && isRecord(v));
|
|
274
|
+
if (containers.length === 0)
|
|
275
|
+
continue; // headers-only registry: deliberate, silent
|
|
276
|
+
if (containers.length > 1) {
|
|
277
|
+
findings.add("convention", `${rel} has ${containers.length} candidate entry containers (${containers.map(([k]) => k).join(", ")}) — a registry declares exactly one; no scores read from this file`);
|
|
278
|
+
continue;
|
|
279
|
+
}
|
|
280
|
+
const container = containers[0]?.[1];
|
|
281
|
+
if (!isRecord(container))
|
|
282
|
+
continue;
|
|
283
|
+
for (const [entryKey, entryVal] of Object.entries(container)) {
|
|
284
|
+
if (!isRecord(entryVal))
|
|
285
|
+
continue;
|
|
286
|
+
// --- dialect detection: nested (templates) vs flat (live estate data) ---
|
|
287
|
+
const nested = isRecord(entryVal["current"]);
|
|
288
|
+
const currentBlock = nested
|
|
289
|
+
? entryVal["current"]
|
|
290
|
+
: entryVal;
|
|
291
|
+
// `current` is a SUMMARY, not necessarily the whole record. In the
|
|
292
|
+
// multi-review shape the method's own templates specify, the detail —
|
|
293
|
+
// scores, flags, hard_gates, required_actions — lives ONLY in the
|
|
294
|
+
// selected `reviews[]` entry, and `current` carries just the headline
|
|
295
|
+
// (run id, date, gate, weighted_score, scorer). Reading `current` alone
|
|
296
|
+
// therefore drops the detail SILENTLY, which is exactly what it did:
|
|
297
|
+
// measured on a real estate, six user-story entries lost 36 dimension
|
|
298
|
+
// rows and 13 required-action counts, and their flag counts read 0 only
|
|
299
|
+
// because those six happened to raise none — luck, not correctness.
|
|
300
|
+
const selected = selectReview(entryVal, currentBlock);
|
|
301
|
+
const current = selected
|
|
302
|
+
? mergePreferringCurrent(currentBlock, selected)
|
|
303
|
+
: currentBlock;
|
|
304
|
+
if (nested && selected === null && !isRecord(currentBlock["scores"])) {
|
|
305
|
+
const reviews = entryVal["reviews"];
|
|
306
|
+
if (Array.isArray(reviews) && reviews.length > 0) {
|
|
307
|
+
findings.add("coverage", `${rel}: ${entryKey} has ${reviews.length} review(s) but none can be selected as effective (selection_policy.selected_review_run_id matches no review_run_id, and current.review_run_id does not either) — its dimension scores are NOT catalogued; set selected_review_run_id to one of the recorded runs`);
|
|
308
|
+
}
|
|
309
|
+
}
|
|
310
|
+
const targetRef = str(entryVal["unit_id"]) ?? entryKey;
|
|
311
|
+
const targetPath = str(entryVal["file_path"]) ?? str(current["file_path"]);
|
|
312
|
+
// --- gate: unbound vocabulary, convention finding + empty cell ---
|
|
313
|
+
const rawGate = str(current["gate"]);
|
|
314
|
+
let gate = null;
|
|
315
|
+
if (rawGate !== null && rawGate.trim() !== "") {
|
|
316
|
+
if (GATE_VALUES.has(rawGate)) {
|
|
317
|
+
gate = rawGate;
|
|
318
|
+
}
|
|
319
|
+
else {
|
|
320
|
+
findings.add("convention", `${rel}: ${entryKey} has gate '${rawGate}', outside the quality_gate vocabulary (${[...GATE_VALUES].join(" | ")}) — the cell is left EMPTY rather than emitting a value no consumer can interpret; use an in-vocabulary value, or raise the extension as a method decision if the concept is real`);
|
|
321
|
+
}
|
|
322
|
+
}
|
|
323
|
+
const corpusRef = str(current["corpus_ref"]) ?? str(entryVal["corpus_ref"]);
|
|
324
|
+
const stalenessBasis = corpusRef !== null ? "corpus_ref" : targetPath !== null ? "scored_at" : "none";
|
|
325
|
+
const selectionPolicy = entryVal["selection_policy"];
|
|
326
|
+
const selectionMethod = isRecord(selectionPolicy)
|
|
327
|
+
? str(selectionPolicy["method"])
|
|
328
|
+
: null;
|
|
329
|
+
const id = `${rubricId}__${targetKind}__${slugToken(targetRef)}`;
|
|
330
|
+
qualityScores.push({
|
|
331
|
+
id,
|
|
332
|
+
rubric_id: rubricId,
|
|
333
|
+
scoring_form: "weighted",
|
|
334
|
+
target_kind: targetKind,
|
|
335
|
+
target_ref: targetRef,
|
|
336
|
+
target_path: targetPath,
|
|
337
|
+
gate,
|
|
338
|
+
weighted_score: num(current["weighted_score"]),
|
|
339
|
+
score_denominator: num(entryVal["score_denominator"] ?? current["score_denominator"]),
|
|
340
|
+
scored_at: str(current["scored_at"]) ?? str(entryVal["scored_at"]),
|
|
341
|
+
corpus_ref: corpusRef,
|
|
342
|
+
staleness_basis: stalenessBasis,
|
|
343
|
+
review_run_id: str(current["review_run_id"]),
|
|
344
|
+
selection_method: selectionMethod,
|
|
345
|
+
...scorerFields(entryVal, current, fileAssessedBy),
|
|
346
|
+
flag_count: countFlags(entryVal, current),
|
|
347
|
+
hard_gate_triggered: hardGateTriggered(entryVal, current),
|
|
348
|
+
required_actions_count: requiredActionsCount(entryVal, current),
|
|
349
|
+
sdd_id: sddId,
|
|
350
|
+
source_sdd_id: null,
|
|
351
|
+
});
|
|
352
|
+
// --- dimensions: the rubric's own keys, verbatim ---
|
|
353
|
+
const scores = current["scores"];
|
|
354
|
+
if (isRecord(scores)) {
|
|
355
|
+
for (const [dimKey, dimVal] of Object.entries(scores)) {
|
|
356
|
+
qualityScoreDimensions.push({
|
|
357
|
+
id: `${id}__${slugToken(dimKey)}`,
|
|
358
|
+
quality_score_id: id,
|
|
359
|
+
rubric_id: rubricId,
|
|
360
|
+
target_kind: targetKind,
|
|
361
|
+
target_ref: targetRef,
|
|
362
|
+
dimension_key: dimKey,
|
|
363
|
+
dimension_score: num(dimVal),
|
|
364
|
+
dimension_weight: null,
|
|
365
|
+
source_sdd_id: null,
|
|
366
|
+
});
|
|
367
|
+
}
|
|
368
|
+
}
|
|
369
|
+
}
|
|
370
|
+
}
|
|
371
|
+
// Total order, per M-ADR 0205 §4.2 — the committed CSV must be byte-stable.
|
|
372
|
+
qualityScores.sort((a, b) => String(a["id"]).localeCompare(String(b["id"])));
|
|
373
|
+
qualityScoreDimensions.sort((a, b) => String(a["id"]).localeCompare(String(b["id"])));
|
|
374
|
+
// Duplicate ids mean two entries scored the same target under one rubric.
|
|
375
|
+
// BOTH rows are emitted rather than one being dropped: dropping would pick a
|
|
376
|
+
// winner between two possibly-contradictory verdicts, which is precisely how
|
|
377
|
+
// that defect stayed invisible in an estate for a month. The builder
|
|
378
|
+
// diagnoses; the downstream pk-duplicate check owns fatality, which is where
|
|
379
|
+
// PK integrity belongs.
|
|
380
|
+
const seen = new Set();
|
|
381
|
+
for (const row of qualityScores) {
|
|
382
|
+
const id = String(row["id"]);
|
|
383
|
+
if (seen.has(id)) {
|
|
384
|
+
findings.add("divergence", `quality_scores: duplicate id '${id}' — two registry entries score the same target under the same rubric; both rows are emitted (the pk check fails on them) rather than one being silently preferred, because the two verdicts may disagree`);
|
|
385
|
+
}
|
|
386
|
+
seen.add(id);
|
|
387
|
+
}
|
|
388
|
+
return { qualityScores, qualityScoreDimensions };
|
|
389
|
+
}
|
|
390
|
+
//# sourceMappingURL=quality-scores.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"quality-scores.js","sourceRoot":"","sources":["../../../../src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CAChE;AAiFD,MAAM,WAAW,mBAAmB;IAClC,QAAQ,CAAC,IAAI,EAAE,YAAY,EAAE,CAAC;IAC9B;;;;;OAKG;IACH,QAAQ,CAAC,kBAAkB,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;CAClD;AAED,wBAAsB,aAAa,CACjC,MAAM,EAAE,mBAAmB,GAC1B,OAAO,CAAC,mBAAmB,CAAC,CAoF9B"}
|
|
@@ -63,7 +63,11 @@ function parseDeclaredServices(raw, relPath, findings) {
|
|
|
63
63
|
if (raw === undefined)
|
|
64
64
|
return null;
|
|
65
65
|
if (!Array.isArray(raw)) {
|
|
66
|
-
findings.add("convention",
|
|
66
|
+
findings.add("convention",
|
|
67
|
+
// Names the remedy, and specifically the `services: []` form: a BARE
|
|
68
|
+
// `services:` parses as null, which is not a list, so it lands here —
|
|
69
|
+
// and it is two characters away from the declaration an author meant.
|
|
70
|
+
`${relPath}: services: must be a list — block dropped, default single-service projection kept; write it as a list of entries (\`services:\` then \` - id: ...\`), or as \`services: []\` to declare that this repo deliberately emits no service row (M-ADR 0197). A bare \`services:\` with nothing after it is neither.`);
|
|
67
71
|
return null;
|
|
68
72
|
}
|
|
69
73
|
const seen = new Set();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"services.js","sourceRoot":"","sources":["../../../../src/lib/catalogue/builders/services.ts"],"names":[],"mappings":"AAAA,mEAAmE;AACnE,mEAAmE;AACnE,0EAA0E;AAC1E,wEAAwE;AACxE,wEAAwE;AACxE,oEAAoE;AACpE,qEAAqE;AACrE,oEAAoE;AACpE,wEAAwE;AACxE,uEAAuE;AACvE,gCAAgC;AAChC,EAAE;AACF,oDAAoD;AACpD,mEAAmE;AACnE,oDAAoD;AACpD,uEAAuE;AACvE,oEAAoE;AACpE,mEAAmE;AACnE,uDAAuD;AACvD,EAAE;AACF,mEAAmE;AACnE,kEAAkE;AAClE,yEAAyE;AACzE,iBAAiB;AACjB,EAAE;AACF,oEAAoE;AACpE,wEAAwE;AACxE,2DAA2D;AAC3D,sCAAsC;AACtC,EAAE;AACF,uEAAuE;AACvE,0EAA0E;AAC1E,aAAa;AACb,wEAAwE;AACxE,gEAAgE;AAChE,2DAA2D;AAC3D,qEAAqE;AACrE,yEAAyE;AACzE,wEAAwE;AACxE,4DAA4D;AAC5D,EAAE;AACF,iEAAiE;AACjE,wEAAwE;AACxE,0EAA0E;AAC1E,iDAAiD;AAKjD,OAAO,EAEL,mBAAmB,GACpB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,cAAc,EACd,yBAAyB,EACzB,mBAAmB,GACpB,MAAM,mCAAmC,CAAC;AAmC3C;;;;;;;;;;;;;GAaG;AACH,SAAS,qBAAqB,CAC5B,GAAY,EACZ,OAAe,EACf,QAAqB;IAErB,IAAI,GAAG,KAAK,SAAS;QAAE,OAAO,IAAI,CAAC;IACnC,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,GAAG,CAAC,EAAE,CAAC;QACxB,QAAQ,CAAC,GAAG,CACV,YAAY,
|
|
1
|
+
{"version":3,"file":"services.js","sourceRoot":"","sources":["../../../../src/lib/catalogue/builders/services.ts"],"names":[],"mappings":"AAAA,mEAAmE;AACnE,mEAAmE;AACnE,0EAA0E;AAC1E,wEAAwE;AACxE,wEAAwE;AACxE,oEAAoE;AACpE,qEAAqE;AACrE,oEAAoE;AACpE,wEAAwE;AACxE,uEAAuE;AACvE,gCAAgC;AAChC,EAAE;AACF,oDAAoD;AACpD,mEAAmE;AACnE,oDAAoD;AACpD,uEAAuE;AACvE,oEAAoE;AACpE,mEAAmE;AACnE,uDAAuD;AACvD,EAAE;AACF,mEAAmE;AACnE,kEAAkE;AAClE,yEAAyE;AACzE,iBAAiB;AACjB,EAAE;AACF,oEAAoE;AACpE,wEAAwE;AACxE,2DAA2D;AAC3D,sCAAsC;AACtC,EAAE;AACF,uEAAuE;AACvE,0EAA0E;AAC1E,aAAa;AACb,wEAAwE;AACxE,gEAAgE;AAChE,2DAA2D;AAC3D,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