@sdd-method/sdd-cli 1.32.2 → 1.34.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/lib/catalogue/build.d.ts +5 -0
- package/dist/lib/catalogue/build.d.ts.map +1 -1
- package/dist/lib/catalogue/build.js +15 -3
- package/dist/lib/catalogue/build.js.map +1 -1
- package/dist/lib/catalogue/builders/implementations.d.ts +17 -0
- package/dist/lib/catalogue/builders/implementations.d.ts.map +1 -0
- package/dist/lib/catalogue/builders/implementations.js +180 -0
- package/dist/lib/catalogue/builders/implementations.js.map +1 -0
- 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/repositories.d.ts +6 -0
- package/dist/lib/catalogue/builders/repositories.d.ts.map +1 -1
- package/dist/lib/catalogue/builders/repositories.js +45 -29
- package/dist/lib/catalogue/builders/repositories.js.map +1 -1
- package/dist/lib/catalogue/canonical-schema.yaml +239 -7
- package/dist/lib/catalogue/rubric-coverage-map.yaml +49 -2
- package/dist/lib/snapshot/advance.d.ts.map +1 -1
- package/dist/lib/snapshot/advance.js +9 -0
- package/dist/lib/snapshot/advance.js.map +1 -1
- package/dist/verbs/catalogue.d.ts.map +1 -1
- package/dist/verbs/catalogue.js +3 -0
- package/dist/verbs/catalogue.js.map +1 -1
- package/package.json +2 -2
- package/scripts/sync-canonical-schema.sh +7 -0
|
@@ -141,8 +141,8 @@ export async function buildRepositories(inputs) {
|
|
|
141
141
|
const locByRepo = configs.length > 0
|
|
142
142
|
? await loadLocReport(inputs.sddPath, inputs.findings)
|
|
143
143
|
: new Map();
|
|
144
|
-
const
|
|
145
|
-
? await loadRepoProfiles(inputs.sddPath, inputs.findings)
|
|
144
|
+
const repoMeta = configs.length > 0
|
|
145
|
+
? await loadRepoProfiles(inputs.sddPath, inputs.findings, inputs.manifest.profile)
|
|
146
146
|
: new Map();
|
|
147
147
|
const rows = [];
|
|
148
148
|
for (const cfg of configs) {
|
|
@@ -191,7 +191,10 @@ export async function buildRepositories(inputs) {
|
|
|
191
191
|
// component — a wrong value in a populated column, which reads as
|
|
192
192
|
// authoritative and makes a filter on it return the same set as no
|
|
193
193
|
// filter at all.
|
|
194
|
-
profile:
|
|
194
|
+
profile: repoMeta.get(repoId)?.profile ?? inputs.manifest.profile,
|
|
195
|
+
// M-ADR 0213: whether the repository is inside this SDD's scope; empty when it has no reverse
|
|
196
|
+
// metadata (a forward SDD's generated components) or cannot be decided.
|
|
197
|
+
repo_scope: repoMeta.get(repoId)?.scope ?? "",
|
|
195
198
|
group: cfg.data.group ?? "",
|
|
196
199
|
category: cfg.data.category ?? "",
|
|
197
200
|
tier: cfg.data.tier ?? "",
|
|
@@ -264,30 +267,20 @@ async function loadRepoConfigs(sddPath, findings) {
|
|
|
264
267
|
configs.sort((a, b) => a.relPath.localeCompare(b.relPath));
|
|
265
268
|
return configs;
|
|
266
269
|
}
|
|
270
|
+
const REPO_SCOPES = ["component", "support"];
|
|
267
271
|
/**
|
|
268
|
-
*
|
|
269
|
-
*
|
|
270
|
-
*
|
|
271
|
-
* one row per repo (`repo_name` == repositories.id) with cloc-style metrics.
|
|
272
|
-
* It's produced out-of-band by the `measure-loc` skill and only the
|
|
273
|
-
* platform-profile SDD carries one — absence is normal for federated SDDs
|
|
274
|
-
* and leaves the LOC columns empty (logged once as a coverage finding).
|
|
275
|
-
*/
|
|
276
|
-
/**
|
|
277
|
-
* Per-repo `profile` from `repos/<slug>/reverse-metadata.yaml`, keyed by the
|
|
278
|
-
* directory name (which equals `repositories.id`).
|
|
279
|
-
*
|
|
280
|
-
* ABSENCE is silent; MALFORMATION is not. An absent `repos/` directory or a
|
|
281
|
-
* repo with no metadata file is normal — generated components are never
|
|
282
|
-
* cloned and a forward SDD mirrors nothing — so those fall back to the SDD's
|
|
283
|
-
* manifest profile without comment. A file that EXISTS but does not parse, or
|
|
284
|
-
* parses without a usable `profile`, takes the same fallback but reports it:
|
|
285
|
-
* the two are indistinguishable in the output row, and one of them is a
|
|
286
|
-
* defect. Measured once at 1 of 431 (a duplicate YAML key), where a strict
|
|
287
|
-
* parser threw and a lenient one had not, so the file read as absent and the
|
|
288
|
-
* repo silently kept the wrong profile.
|
|
272
|
+
* The legacy per-repo `profile` recorded only a binary (M-ADR 0213 §1: 662 of 663
|
|
273
|
+
* measured repositories): the SDD's own profile means a component, `support-repo`
|
|
274
|
+
* means support. Any other value is not mapped — it needs a human (§4.5 step 3).
|
|
289
275
|
*/
|
|
290
|
-
|
|
276
|
+
export function scopeFromLegacyProfile(profile, sddProfile) {
|
|
277
|
+
if (profile === "support-repo")
|
|
278
|
+
return "support";
|
|
279
|
+
if (profile === sddProfile)
|
|
280
|
+
return "component";
|
|
281
|
+
return undefined;
|
|
282
|
+
}
|
|
283
|
+
async function loadRepoProfiles(sddPath, findings, sddProfile) {
|
|
291
284
|
const out = new Map();
|
|
292
285
|
const root = join(sddPath, REPOS_DIR_REL);
|
|
293
286
|
let entries;
|
|
@@ -320,12 +313,35 @@ async function loadRepoProfiles(sddPath, findings) {
|
|
|
320
313
|
findings.add("convention", `${join(REPOS_DIR_REL, entry.name, REVERSE_METADATA_BASENAME)}: not parseable as YAML (${err.code ?? "parse error"}) — profile falls back to the SDD's, which may mistype this repo`);
|
|
321
314
|
continue;
|
|
322
315
|
}
|
|
323
|
-
const
|
|
324
|
-
|
|
325
|
-
|
|
316
|
+
const file = join(REPOS_DIR_REL, entry.name, REVERSE_METADATA_BASENAME);
|
|
317
|
+
const rawRole = parsed?.repo_scope;
|
|
318
|
+
const rawProfile = parsed?.profile;
|
|
319
|
+
const profile = typeof rawProfile === "string" && rawProfile.trim() !== "" ? rawProfile.trim() : undefined;
|
|
320
|
+
let scope;
|
|
321
|
+
if (typeof rawRole === "string" && rawRole.trim() !== "") {
|
|
322
|
+
if (REPO_SCOPES.includes(rawRole.trim())) {
|
|
323
|
+
scope = rawRole.trim();
|
|
324
|
+
}
|
|
325
|
+
else {
|
|
326
|
+
findings.add("convention", `${file}: repo_scope '${rawRole.trim()}' is not one of ${REPO_SCOPES.join(", ")} (M-ADR 0213 §4.2)`);
|
|
327
|
+
}
|
|
328
|
+
}
|
|
329
|
+
else if (profile !== undefined) {
|
|
330
|
+
scope = scopeFromLegacyProfile(profile, sddProfile);
|
|
331
|
+
if (scope === undefined) {
|
|
332
|
+
findings.add("convention", `${file}: legacy profile '${profile}' is neither this SDD's profile nor support-repo, so it maps to no repo_scope — decide component or support by hand (M-ADR 0213 §4.5)`);
|
|
333
|
+
}
|
|
334
|
+
}
|
|
335
|
+
if (profile === undefined && scope === undefined) {
|
|
336
|
+
findings.add("convention", `${file}: no usable \`repo_scope\` or legacy \`profile\` — profile falls back to the SDD's, which may mistype this repo`);
|
|
326
337
|
continue;
|
|
327
338
|
}
|
|
328
|
-
|
|
339
|
+
// A repository migrated to repo_scope keeps the deprecated column consistent
|
|
340
|
+
// until its removal: support reads support-repo, component the SDD's profile.
|
|
341
|
+
out.set(entry.name, {
|
|
342
|
+
profile: profile ?? (scope === "support" ? "support-repo" : sddProfile),
|
|
343
|
+
...(scope ? { scope } : {}),
|
|
344
|
+
});
|
|
329
345
|
}
|
|
330
346
|
return out;
|
|
331
347
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"repositories.js","sourceRoot":"","sources":["../../../../src/lib/catalogue/builders/repositories.ts"],"names":[],"mappings":"AAAA,+DAA+D;AAC/D,gEAAgE;AAChE,EAAE;AACF,uEAAuE;AACvE,oEAAoE;AACpE,qEAAqE;AACrE,qEAAqE;AACrE,kEAAkE;AAClE,yBAAyB;AACzB,EAAE;AACF,sEAAsE;AACtE,qEAAqE;AACrE,sBAAsB;AAEtB,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AACrD,OAAO,EAAE,IAAI,EAAE,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E,EAAE,CAAC;YACxB,GAAG,CAAC,IAAI,CAAC,GAAG,CAAC,MAAM,gBAAgB,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;QAC9C,CAAC;aAAM,IACL,KAAK,CAAC,MAAM,EAAE;YACd,CAAC,KAAK,CAAC,IAAI,CAAC,QAAQ,CAAC,OAAO,CAAC,IAAI,KAAK,CAAC,IAAI,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC,EAC7D,CAAC;YACD,GAAG,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QACjB,CAAC;IACH,CAAC;IACD,OAAO,GAAG,CAAC;AACb,CAAC;AAED,SAAS,0BAA0B,CAAC,MAAuB;IACzD,MAAM,OAAO,GAAG,MAAM,CAAC,KAAK,CAAC,cAAc,CAAC,CAAC;IAC7C,IAAI,CAAC,OAAO,EAAE,CAAC;QACb,8DAA8D;QAC9D,OAAO,IAAI,GAAG,CAAC,mBAAmB,CAAC,MAAM,CAAC,CAAC,CAAC;IAC9C,CAAC;IACD,OAAO,IAAI,GAAG,CAAC,OAAO,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC;AACrD,CAAC"}
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
# Emitted by sdd-cli's YAML emitter with no line folding; the three header scalars are quoted for the
|
|
8
8
|
# textual readers downstream. The one deliberate difference from the authored form is schema_status:
|
|
9
9
|
# the authored form says canonical; a projection never does.
|
|
10
|
-
schema_version: "3.
|
|
10
|
+
schema_version: "3.15.0"
|
|
11
11
|
schema_owner: "sdd-method"
|
|
12
12
|
schema_status: "generated"
|
|
13
13
|
enums:
|
|
@@ -474,20 +474,81 @@ enums:
|
|
|
474
474
|
- value: code-vs-contract
|
|
475
475
|
- value: binding-vs-reality
|
|
476
476
|
description: M-ADR 0194 conformance finding target. Bound at 3.13.0 from the column descriptions; measured against both reference estates before binding (M-ADR 0205 §4.4).
|
|
477
|
-
|
|
477
|
+
implementation_role:
|
|
478
478
|
values:
|
|
479
479
|
- value: as-is
|
|
480
|
+
description: The existing implementation.
|
|
480
481
|
- value: to-be
|
|
481
|
-
|
|
482
|
-
|
|
482
|
+
description: The target implementation the spec is migrating toward.
|
|
483
|
+
description: An implementation member's role against its spec (M-ADR 0181 §2.1). Bound at 3.13.0 on conformance_finding as conformance_role; renamed at 3.15.0, when implementation_members became its owner (M-ADR 0214 §4.2) — the values did not change.
|
|
484
|
+
implementation_lifecycle:
|
|
483
485
|
values:
|
|
484
486
|
- value: active
|
|
487
|
+
description: In service and the current implementation.
|
|
485
488
|
- value: planned
|
|
489
|
+
description: "Not yet built: the repository may not exist yet."
|
|
486
490
|
- value: deprecated
|
|
491
|
+
description: "Still running, scheduled for retirement (M-ADR 0214 §4.7: what some bindings called sunset)."
|
|
487
492
|
- value: migrating
|
|
493
|
+
description: Being moved onto, or off, while both sides run.
|
|
488
494
|
- value: legacy-active
|
|
495
|
+
description: The as-is implementation, still serving while a to-be replaces it.
|
|
489
496
|
- value: decommissioned
|
|
490
|
-
|
|
497
|
+
description: "Retired: no longer running."
|
|
498
|
+
description: An implementation member's lifecycle (M-ADR 0181 §2.1). Bound at 3.13.0 on conformance_finding as conformance_lifecycle; renamed at 3.15.0, when implementation_members became its owner (M-ADR 0214 §4.2) — the values did not change.
|
|
499
|
+
repo_scope:
|
|
500
|
+
values:
|
|
501
|
+
- value: component
|
|
502
|
+
description: "Part of what this SDD specifies: the SDD's artefact stack applies, and its capabilities or other services depend on it."
|
|
503
|
+
- value: support
|
|
504
|
+
description: "Supports a component without being one: its operational configuration, tooling, tests, collections, or a library it consumes."
|
|
505
|
+
description: Whether a mirrored repository is inside the scope of what its SDD specifies (M-ADR 0213). Deliberately neither a profile (profile is the SDD's) nor a role (role is M-ADR 0181's as-is | to-be); a repository's kind is component_type.
|
|
506
|
+
evidence_direction:
|
|
507
|
+
values:
|
|
508
|
+
- value: forward-authored
|
|
509
|
+
description: The spec came first and the code was built from it.
|
|
510
|
+
- value: seeding-reverse
|
|
511
|
+
description: A spec that never existed, recovered from pre-existing internal code.
|
|
512
|
+
- value: external-doc-reverse
|
|
513
|
+
description: The external surface a product consumes, grounded in a third party's published API or documentation.
|
|
514
|
+
- value: conformance-reverse
|
|
515
|
+
description: Own forward or maintained code, verified against its spec, with legitimate evolution fed back.
|
|
516
|
+
description: How an implementation member is evidenced (M-ADR 0180 §2.1; forward-authored added by M-ADR 0181 §2.1).
|
|
517
|
+
member_presence:
|
|
518
|
+
values:
|
|
519
|
+
- value: observed
|
|
520
|
+
description: Exported and observed in this baseline.
|
|
521
|
+
- value: carried
|
|
522
|
+
description: "Not re-exported: carried from an earlier baseline (carried_from), with its reason."
|
|
523
|
+
- value: removed
|
|
524
|
+
description: In the prior baseline and not in this one (members_removed), with its reason.
|
|
525
|
+
description: A snapshot member's presence in its baseline — the three states the snapshot conventions record (M-ADR 0214 §4.4).
|
|
526
|
+
conformance_disposition:
|
|
527
|
+
values:
|
|
528
|
+
- value: conformant
|
|
529
|
+
description: Code matches spec.
|
|
530
|
+
- value: conformant-open
|
|
531
|
+
description: "Both sides agree the item is deferred or absent: an open decision, not drift."
|
|
532
|
+
- value: code-defect
|
|
533
|
+
description: "The spec is authority: fix the code."
|
|
534
|
+
- value: spec-stale
|
|
535
|
+
description: "The code legitimately evolved: update the spec."
|
|
536
|
+
- value: divergence
|
|
537
|
+
description: "A genuine design question: triage, don't fail."
|
|
538
|
+
description: The triage outcome of a conformance-reverse delta (M-ADR 0180 §2.3). Bound so every file that records an outcome records one of these; the triage records are not yet catalogued (M-ADR 0214 §4.8).
|
|
539
|
+
delta_disposition:
|
|
540
|
+
values:
|
|
541
|
+
- value: capability-added
|
|
542
|
+
description: The code gained a capability the spec does not have.
|
|
543
|
+
- value: capability-removed
|
|
544
|
+
description: The code lost a capability the spec still has.
|
|
545
|
+
- value: spec-update
|
|
546
|
+
description: "The code legitimately evolved within a capability: the spec follows."
|
|
547
|
+
- value: refactor-only-no-spec-change
|
|
548
|
+
description: "The code changed and its behaviour did not: no spec change."
|
|
549
|
+
- value: ambiguous
|
|
550
|
+
description: "Cannot be classified from the delta alone: triage."
|
|
551
|
+
description: The classification of a delta-reverse finding between two snapshots (M-ADR 0180 §2.7). Bound so every file that records one records one of these; delta findings are not yet catalogued (M-ADR 0214 §4.8).
|
|
491
552
|
catalogues:
|
|
492
553
|
domains:
|
|
493
554
|
primary_key: id
|
|
@@ -1670,6 +1731,7 @@ catalogues:
|
|
|
1670
1731
|
- name: profile
|
|
1671
1732
|
type: string
|
|
1672
1733
|
nullable: false
|
|
1734
|
+
description: "DEPRECATED (removal at 4.0.0): not an SDD profile. The per-repo field reused sdd_profile's values to record only whether a mirrored repository is one of the SDD's own components or a supporting one — see repo_scope (M-ADR 0213)."
|
|
1673
1735
|
- name: group
|
|
1674
1736
|
type: string
|
|
1675
1737
|
nullable: true
|
|
@@ -1713,6 +1775,10 @@ catalogues:
|
|
|
1713
1775
|
type: string
|
|
1714
1776
|
nullable: true
|
|
1715
1777
|
description: The platform this row belongs to — sdd_id of its platform-root. Stamped by the aggregator per M-ADR 0208 §4.4 (preserve-if-set, fill rule by pull path); left empty by per-SDD builders. Added in 3.7.0.
|
|
1778
|
+
- name: repo_scope
|
|
1779
|
+
type: string
|
|
1780
|
+
nullable: true
|
|
1781
|
+
description: "Whether the repository is inside the scope of what THIS SDD specifies, from its reverse-metadata.yaml (M-ADR 0213 §4.2): component (part of what the SDD specifies) or support (supports a component without being one). Empty for a repository with no reverse metadata. Its kind is component_type; the SDD's profile is products/applications.profile."
|
|
1716
1782
|
foreign_keys:
|
|
1717
1783
|
- column: domain_id
|
|
1718
1784
|
references: domains.id
|
|
@@ -1722,6 +1788,7 @@ catalogues:
|
|
|
1722
1788
|
nullable: true
|
|
1723
1789
|
column_enums:
|
|
1724
1790
|
component_type: enums.service_type
|
|
1791
|
+
repo_scope: enums.repo_scope
|
|
1725
1792
|
domain_models:
|
|
1726
1793
|
primary_key: id
|
|
1727
1794
|
columns:
|
|
@@ -3279,8 +3346,8 @@ catalogues:
|
|
|
3279
3346
|
description: "Conformance-reverse drift summary, one row per check (method M-ADR 0180). NOT produced by `catalogue build` (it reads the spec repo) — produced by `sdd-cli conformance --emit-finding` (which has the code repo) and federated here by the aggregator. Each row is a run-dated snapshot of declared-vs-observed drift for an implementation member (M-ADR 0181 role/lifecycle), so estate-wide conformance is queryable (aggregate union) and trendable (snapshot diff across runs/commits). Verdicts are PROVISIONAL — disposition (code-defect | spec-stale | divergence) is triage, recorded elsewhere. No enforced FK on implementation_repo: the code repo is frequently cross-repo and not in this SDD's repositories.csv. Added in schema 2.25.0."
|
|
3280
3347
|
column_enums:
|
|
3281
3348
|
target: enums.conformance_target
|
|
3282
|
-
role: enums.
|
|
3283
|
-
lifecycle: enums.
|
|
3349
|
+
role: enums.implementation_role
|
|
3350
|
+
lifecycle: enums.implementation_lifecycle
|
|
3284
3351
|
quality_scores:
|
|
3285
3352
|
primary_key: id
|
|
3286
3353
|
columns:
|
|
@@ -3555,3 +3622,168 @@ catalogues:
|
|
|
3555
3622
|
column_enums:
|
|
3556
3623
|
item_kind: enums.scaffold_item_kind
|
|
3557
3624
|
state: enums.scaffold_item_state
|
|
3625
|
+
implementations:
|
|
3626
|
+
primary_key: id
|
|
3627
|
+
columns:
|
|
3628
|
+
- name: id
|
|
3629
|
+
type: string
|
|
3630
|
+
nullable: false
|
|
3631
|
+
description: The binding's implementation key — the same value every snapshot manifest of this implementation carries as implementation.
|
|
3632
|
+
- name: name
|
|
3633
|
+
type: string
|
|
3634
|
+
nullable: false
|
|
3635
|
+
description: The binding's name key, else the id.
|
|
3636
|
+
- name: spec
|
|
3637
|
+
type: string
|
|
3638
|
+
nullable: false
|
|
3639
|
+
description: The spec this implementation implements — the binding's spec key.
|
|
3640
|
+
- name: snapshot_area
|
|
3641
|
+
type: string
|
|
3642
|
+
nullable: true
|
|
3643
|
+
description: Store-relative path of this implementation's snapshot area (M-ADR 0214 §4.4), from the binding. Empty when the implementation has none.
|
|
3644
|
+
- name: doc_path
|
|
3645
|
+
type: string
|
|
3646
|
+
nullable: false
|
|
3647
|
+
description: Path of the binding file, relative to the SDD root.
|
|
3648
|
+
- name: source_sdd_id
|
|
3649
|
+
type: string
|
|
3650
|
+
nullable: true
|
|
3651
|
+
description: Originating SDD slug. Populated by the aggregator per M-ADR 0134.
|
|
3652
|
+
- name: platform_sdd_id
|
|
3653
|
+
type: string
|
|
3654
|
+
nullable: true
|
|
3655
|
+
description: The platform this row belongs to — sdd_id of its platform-root. Stamped by the aggregator per M-ADR 0208 §4.4.
|
|
3656
|
+
description: "An implementation of this SDD's spec: the durable system identity whose snapshots are its versions (M-ADR 0181 §2.5, M-ADR 0214 §4.1). One row per .sdd/implementation-binding.yaml that names its implementation; a binding without an implementation key emits nothing and a finding, because there is no identity to key on."
|
|
3657
|
+
implementation_members:
|
|
3658
|
+
primary_key: id
|
|
3659
|
+
columns:
|
|
3660
|
+
- name: id
|
|
3661
|
+
type: string
|
|
3662
|
+
nullable: false
|
|
3663
|
+
description: <implementation_id>::<repo_key>.
|
|
3664
|
+
- name: implementation_id
|
|
3665
|
+
type: string
|
|
3666
|
+
nullable: false
|
|
3667
|
+
- name: repo_id
|
|
3668
|
+
type: string
|
|
3669
|
+
nullable: true
|
|
3670
|
+
description: The member's repository when it resolves in this SDD's repositories. Empty for a planned member whose repository does not exist yet; a member of any other lifecycle that does not resolve is a builder finding.
|
|
3671
|
+
- name: repo_key
|
|
3672
|
+
type: string
|
|
3673
|
+
nullable: false
|
|
3674
|
+
description: The repository the binding names (its member repo key), resolved or not.
|
|
3675
|
+
- name: role
|
|
3676
|
+
type: string
|
|
3677
|
+
nullable: true
|
|
3678
|
+
- name: lifecycle
|
|
3679
|
+
type: string
|
|
3680
|
+
nullable: true
|
|
3681
|
+
- name: evidence_direction
|
|
3682
|
+
type: string
|
|
3683
|
+
nullable: true
|
|
3684
|
+
description: How this member is evidenced (M-ADR 0180 §2.1, placed on the member by M-ADR 0181 §2.1). Empty when the binding does not say.
|
|
3685
|
+
- name: source_sdd_id
|
|
3686
|
+
type: string
|
|
3687
|
+
nullable: true
|
|
3688
|
+
description: Originating SDD slug. Populated by the aggregator per M-ADR 0134.
|
|
3689
|
+
- name: platform_sdd_id
|
|
3690
|
+
type: string
|
|
3691
|
+
nullable: true
|
|
3692
|
+
description: The platform this row belongs to — sdd_id of its platform-root. Stamped by the aggregator per M-ADR 0208 §4.4.
|
|
3693
|
+
description: "Edge: a repository is a member of an implementation, with the member's role, lifecycle and evidence direction (M-ADR 0181 §2.1, M-ADR 0214 §4.2). Role and lifecycle live here once: repo_capability, repo_contract and feature_repo resolve their repository to this row rather than copying them (M-ADR 0214 §4.3). Membership is independent of the repository's repo_scope (M-ADR 0213): a shared library under conformance checks is a support member."
|
|
3694
|
+
foreign_keys:
|
|
3695
|
+
- column: implementation_id
|
|
3696
|
+
references: implementations.id
|
|
3697
|
+
nullable: false
|
|
3698
|
+
- column: repo_id
|
|
3699
|
+
references: repositories.id
|
|
3700
|
+
nullable: true
|
|
3701
|
+
column_enums:
|
|
3702
|
+
role: enums.implementation_role
|
|
3703
|
+
lifecycle: enums.implementation_lifecycle
|
|
3704
|
+
evidence_direction: enums.evidence_direction
|
|
3705
|
+
snapshots:
|
|
3706
|
+
primary_key: id
|
|
3707
|
+
columns:
|
|
3708
|
+
- name: id
|
|
3709
|
+
type: string
|
|
3710
|
+
nullable: false
|
|
3711
|
+
description: <implementation_id>@<baseline_id>.
|
|
3712
|
+
- name: implementation_id
|
|
3713
|
+
type: string
|
|
3714
|
+
nullable: false
|
|
3715
|
+
- name: baseline_id
|
|
3716
|
+
type: string
|
|
3717
|
+
nullable: false
|
|
3718
|
+
description: The observation date (YYYY-MM-DD) — the baseline folder and the manifest's snapshot_id.
|
|
3719
|
+
- name: prior_snapshot_id
|
|
3720
|
+
type: string
|
|
3721
|
+
nullable: true
|
|
3722
|
+
description: The snapshot this one was diffed from — <implementation_id>@<prior_snapshot>. Empty for the first.
|
|
3723
|
+
- name: credential_scan_result
|
|
3724
|
+
type: string
|
|
3725
|
+
nullable: true
|
|
3726
|
+
description: The manifest's credential_scan.result (clean, or what was found). Empty when no scan is recorded.
|
|
3727
|
+
- name: source_sdd_id
|
|
3728
|
+
type: string
|
|
3729
|
+
nullable: true
|
|
3730
|
+
description: Originating SDD slug. Populated by the aggregator per M-ADR 0134.
|
|
3731
|
+
- name: platform_sdd_id
|
|
3732
|
+
type: string
|
|
3733
|
+
nullable: true
|
|
3734
|
+
description: The platform this row belongs to — sdd_id of its platform-root. Stamped by the aggregator per M-ADR 0208 §4.4.
|
|
3735
|
+
description: One implementation's member set pinned at one observation (M-ADR 0181 §2.5, M-ADR 0214 §4.4). One row per dated baseline in the implementation's snapshot area whose snapshot.yaml names the same implementation. Needs the snapshot store root (build --snapshot-store or SDD_SNAPSHOT_STORE); without it the catalogue is empty and the build says so.
|
|
3736
|
+
foreign_keys:
|
|
3737
|
+
- column: implementation_id
|
|
3738
|
+
references: implementations.id
|
|
3739
|
+
nullable: false
|
|
3740
|
+
- column: prior_snapshot_id
|
|
3741
|
+
references: snapshots.id
|
|
3742
|
+
nullable: true
|
|
3743
|
+
snapshot_members:
|
|
3744
|
+
primary_key: id
|
|
3745
|
+
columns:
|
|
3746
|
+
- name: id
|
|
3747
|
+
type: string
|
|
3748
|
+
nullable: false
|
|
3749
|
+
description: <snapshot_id>::<repo_key>.
|
|
3750
|
+
- name: snapshot_id
|
|
3751
|
+
type: string
|
|
3752
|
+
nullable: false
|
|
3753
|
+
- name: repo_id
|
|
3754
|
+
type: string
|
|
3755
|
+
nullable: true
|
|
3756
|
+
description: The member's repository when it resolves in this SDD's repositories; empty otherwise (a removed member's repository may be gone).
|
|
3757
|
+
- name: repo_key
|
|
3758
|
+
type: string
|
|
3759
|
+
nullable: false
|
|
3760
|
+
description: The manifest's canonical_repo_key.
|
|
3761
|
+
- name: source_revision
|
|
3762
|
+
type: string
|
|
3763
|
+
nullable: false
|
|
3764
|
+
description: The revision observed (for a removed member, its last revision).
|
|
3765
|
+
- name: observed_at
|
|
3766
|
+
type: string
|
|
3767
|
+
nullable: true
|
|
3768
|
+
description: "The member's own observation date: the baseline's for an observed member, the earlier one for a carried member, the last observed for a removed one."
|
|
3769
|
+
- name: presence
|
|
3770
|
+
type: string
|
|
3771
|
+
nullable: false
|
|
3772
|
+
- name: source_sdd_id
|
|
3773
|
+
type: string
|
|
3774
|
+
nullable: true
|
|
3775
|
+
description: Originating SDD slug. Populated by the aggregator per M-ADR 0134.
|
|
3776
|
+
- name: platform_sdd_id
|
|
3777
|
+
type: string
|
|
3778
|
+
nullable: true
|
|
3779
|
+
description: The platform this row belongs to — sdd_id of its platform-root. Stamped by the aggregator per M-ADR 0208 §4.4.
|
|
3780
|
+
description: "Edge: a repository at one revision in one snapshot, with its presence — observed in this baseline, carried from an earlier one, or removed since the prior (M-ADR 0214 §4.4)."
|
|
3781
|
+
foreign_keys:
|
|
3782
|
+
- column: snapshot_id
|
|
3783
|
+
references: snapshots.id
|
|
3784
|
+
nullable: false
|
|
3785
|
+
- column: repo_id
|
|
3786
|
+
references: repositories.id
|
|
3787
|
+
nullable: true
|
|
3788
|
+
column_enums:
|
|
3789
|
+
presence: enums.member_presence
|
|
@@ -754,11 +754,58 @@ coverage:
|
|
|
754
754
|
kind: enum
|
|
755
755
|
scoring: not-applicable
|
|
756
756
|
reason: closed vocabulary, not an artefact
|
|
757
|
-
|
|
757
|
+
implementation_role:
|
|
758
758
|
kind: enum
|
|
759
759
|
scoring: not-applicable
|
|
760
760
|
reason: closed vocabulary, not an artefact
|
|
761
|
-
|
|
761
|
+
implementation_lifecycle:
|
|
762
|
+
kind: enum
|
|
763
|
+
scoring: not-applicable
|
|
764
|
+
reason: closed vocabulary, not an artefact
|
|
765
|
+
repo_scope:
|
|
766
|
+
kind: enum
|
|
767
|
+
scoring: not-applicable
|
|
768
|
+
reason: closed vocabulary, not an artefact
|
|
769
|
+
implementations:
|
|
770
|
+
kind: entity
|
|
771
|
+
scoring: scored-at-source
|
|
772
|
+
instrument: the binding is scored inside the integration SDD quality rubric (implementation-binding criteria); its identity against the snapshot manifests is a builder finding
|
|
773
|
+
implementation_members:
|
|
774
|
+
kind: edge
|
|
775
|
+
scoring: derived-edge
|
|
776
|
+
class: realisation
|
|
777
|
+
impact_flow: both
|
|
778
|
+
reason: derived from entity rows or manifest blocks scored at the owning entity
|
|
779
|
+
snapshots:
|
|
780
|
+
kind: entity
|
|
781
|
+
scoring: predicate
|
|
782
|
+
instrument: the snapshot record itself — scoring it with a rubric would be circular. Its integrity is sdd-cli snapshot verify (manifest shape, member folders, companion fields) and the builder's implementation-identity finding
|
|
783
|
+
relationships:
|
|
784
|
+
implementation_id:
|
|
785
|
+
class: membership
|
|
786
|
+
impact_flow: toward-target
|
|
787
|
+
prior_snapshot_id:
|
|
788
|
+
class: lineage
|
|
789
|
+
impact_flow: none
|
|
790
|
+
snapshot_members:
|
|
791
|
+
kind: edge
|
|
792
|
+
scoring: derived-edge
|
|
793
|
+
class: membership
|
|
794
|
+
impact_flow: none
|
|
795
|
+
reason: derived from entity rows or manifest blocks scored at the owning entity
|
|
796
|
+
evidence_direction:
|
|
797
|
+
kind: enum
|
|
798
|
+
scoring: not-applicable
|
|
799
|
+
reason: closed vocabulary, not an artefact
|
|
800
|
+
member_presence:
|
|
801
|
+
kind: enum
|
|
802
|
+
scoring: not-applicable
|
|
803
|
+
reason: closed vocabulary, not an artefact
|
|
804
|
+
conformance_disposition:
|
|
805
|
+
kind: enum
|
|
806
|
+
scoring: not-applicable
|
|
807
|
+
reason: closed vocabulary, not an artefact
|
|
808
|
+
delta_disposition:
|
|
762
809
|
kind: enum
|
|
763
810
|
scoring: not-applicable
|
|
764
811
|
reason: closed vocabulary, not an artefact
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"advance.d.ts","sourceRoot":"","sources":["../../../src/lib/snapshot/advance.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3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,6 +28,7 @@ import { parse, parseDocument, stringify } from "yaml";
|
|
|
28
28
|
// reflows every long string in the file, so an evidence pin would arrive with
|
|
29
29
|
// unrelated churn in lines the tool had no business touching.
|
|
30
30
|
import { deltaPath } from "./diff.js";
|
|
31
|
+
import { loadCanonicalSchema } from "../catalogue/schema-loader.js";
|
|
31
32
|
import { SnapshotError, credentialNotice, exists, isIsoDate, readManifest, splitFolder, } from "./manifest.js";
|
|
32
33
|
export const REVERSE_STATUSES = ["classified", "reversed"];
|
|
33
34
|
export const IMPACTS = ["none", "repo-minor", "repo-major", "product-major"];
|
|
@@ -173,6 +174,7 @@ export function repoint(sourcePath, newBaseline, newFolder) {
|
|
|
173
174
|
export async function advance(inputs, write) {
|
|
174
175
|
const { sddPath, areaRoot, to } = inputs;
|
|
175
176
|
const t1 = await readManifest(areaRoot, to);
|
|
177
|
+
const dispositions = new Set(((await loadCanonicalSchema()).enums["delta_disposition"]?.values ?? []).map((v) => v.value));
|
|
176
178
|
const dp = deltaPath(areaRoot, to);
|
|
177
179
|
if (!(await exists(dp))) {
|
|
178
180
|
throw new SnapshotError(`no ${dp}: the pin advances after the delta is recorded (run snapshot diff, then classify)`);
|
|
@@ -311,6 +313,13 @@ export async function advance(inputs, write) {
|
|
|
311
313
|
problems.push(`${key}: ${unclassified.length} finding(s) not yet classified (${unclassified.join(", ")}) — classify before the pin advances (delta-reverse.md §5)`);
|
|
312
314
|
continue;
|
|
313
315
|
}
|
|
316
|
+
// A classification is one of the bound vocabulary (M-ADR 0214 §4.5), read from the
|
|
317
|
+
// schema rather than restated here: a typo is not a classification.
|
|
318
|
+
const outOfVocabulary = mine.filter((f) => !dispositions.has(String(f.classification)));
|
|
319
|
+
if (outOfVocabulary.length > 0) {
|
|
320
|
+
problems.push(`${key}: ${outOfVocabulary.map((f) => `${f.id} '${String(f.classification)}'`).join(", ")} — not a delta_disposition (${[...dispositions].join(", ")}; M-ADR 0214 §4.5)`);
|
|
321
|
+
continue;
|
|
322
|
+
}
|
|
314
323
|
const findingNotes = mine.map((f) => `${f.id} [${f.classification}]${f.summary ? `: ${f.summary}` : ""}${f.spec_impact ? ` — spec: ${f.spec_impact}` : ""}`);
|
|
315
324
|
const extra = inputs.notes?.get(key);
|
|
316
325
|
const branch = splitFolder(m.exported_folder_name)?.stem.match(BRANCH)?.[1] ?? metadata.exported_branch;
|