@sdd-method/maintain-cli 0.3.0 → 0.5.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/briefing/render.js +1 -2
- package/dist/lib/briefing/variables.js +1 -2
- package/dist/lib/catalogue/aggregate.js +35 -36
- package/dist/lib/catalogue/application-archetype/expectations.js +1 -1
- package/dist/lib/catalogue/archetype/wireframe.js +1 -1
- package/dist/lib/catalogue/build.js +17 -23
- package/dist/lib/catalogue/builders/application-conformance-coverage.js +1 -1
- package/dist/lib/catalogue/builders/c4-components.js +4 -5
- package/dist/lib/catalogue/builders/c4-containers.js +3 -3
- package/dist/lib/catalogue/builders/c4-entity-rollups.js +1 -1
- package/dist/lib/catalogue/builders/c4-external-systems.js +1 -1
- package/dist/lib/catalogue/builders/c4-l1-candidates.js +1 -1
- package/dist/lib/catalogue/builders/capabilities.js +2 -2
- package/dist/lib/catalogue/builders/capability-edges.js +4 -4
- package/dist/lib/catalogue/builders/capability-spec-walker.js +3 -3
- package/dist/lib/catalogue/builders/container-dependency.js +18 -19
- package/dist/lib/catalogue/builders/contracts.js +5 -6
- package/dist/lib/catalogue/builders/data-store-mapping.js +3 -3
- package/dist/lib/catalogue/builders/edge-label-merge.js +2 -2
- package/dist/lib/catalogue/builders/entities-manifest.js +1 -1
- package/dist/lib/catalogue/builders/entities-mermaid.js +3 -3
- package/dist/lib/catalogue/builders/entity-slug.js +11 -12
- package/dist/lib/catalogue/builders/event-catalog-walker.js +3 -3
- package/dist/lib/catalogue/builders/event-edges.js +1 -1
- package/dist/lib/catalogue/builders/evidence-class.js +2 -2
- package/dist/lib/catalogue/builders/external-system-exemption.js +1 -1
- package/dist/lib/catalogue/builders/feature-contract.js +1 -3
- package/dist/lib/catalogue/builders/feature-grounding.js +1 -2
- package/dist/lib/catalogue/builders/feature-groups.js +0 -1
- package/dist/lib/catalogue/builders/feature-subscription-channels.js +2 -3
- package/dist/lib/catalogue/builders/feature-tree-walker.js +1 -1
- package/dist/lib/catalogue/builders/features.js +3 -4
- package/dist/lib/catalogue/builders/glossary-xref.js +1 -1
- package/dist/lib/catalogue/builders/persona-c4system.js +7 -7
- package/dist/lib/catalogue/builders/persona-container.js +14 -14
- package/dist/lib/catalogue/builders/personas.js +1 -2
- package/dist/lib/catalogue/builders/product-platform-dependencies.js +2 -2
- package/dist/lib/catalogue/builders/quality-scores.js +1 -1
- package/dist/lib/catalogue/builders/repositories.js +2 -2
- package/dist/lib/catalogue/builders/screen-tree.js +1 -1
- package/dist/lib/catalogue/builders/screens.js +3 -4
- package/dist/lib/catalogue/builders/system-external-dependency.js +7 -7
- package/dist/lib/catalogue/canonical-schema.yaml +23 -23
- package/dist/lib/catalogue/contract-path-resolution.js +3 -3
- package/dist/lib/catalogue/coverage-predicates.js +4 -4
- package/dist/lib/catalogue/coverage-run.js +1 -1
- package/dist/lib/catalogue/dedupe-keyed-tables.js +2 -3
- package/dist/lib/catalogue/ext-id.js +4 -4
- package/dist/lib/catalogue/feature-grounding-aliases-loader.js +1 -1
- package/dist/lib/catalogue/finding-identity.js +3 -3
- package/dist/lib/catalogue/freshness.js +1 -1
- package/dist/lib/catalogue/manifest-loader.js +2 -2
- package/dist/lib/catalogue/scaffold-delta.js +1 -1
- package/dist/lib/catalogue/schema-compat.js +1 -2
- package/dist/lib/catalogue/screen-validation-loader.js +1 -1
- package/dist/lib/catalogue/staleness-verdicts.js +2 -2
- package/dist/lib/catalogue/traceability-loader.js +2 -3
- package/dist/lib/ci-binding/index.js +108 -33
- package/dist/lib/ci-binding/module.js +18 -8
- package/dist/lib/init/ci-workflow.js +2 -0
- package/dist/lib/lock-file.js +1 -1
- package/dist/lib/pack/reference-closure.js +3 -3
- package/dist/lib/package-version.js +1 -1
- package/dist/lib/snapshot/manifest.js +1 -1
- package/dist/lib/sync/adr-transitions.js +1 -1
- package/dist/lib/sync/config.js +8 -1
- package/dist/lib/sync/diff.js +1 -1
- package/dist/lib/sync/index.js +8 -3
- package/dist/lib/validate/behaviour-store.js +351 -0
- package/dist/lib/validate/dispatch.js +18 -0
- package/dist/lib/validate/index.js +1 -1
- package/dist/lib/validate/plan.js +3 -1
- package/dist/lib/validate/yaml-parse.js +1 -1
- package/dist/maintain-version.json +2 -2
- package/dist/verbs/sync.js +1 -1
- package/dist/verify-version.json +2 -2
- package/package.json +4 -6
- package/scripts/validate-app-dependencies.sh +5 -5
- package/scripts/validate-integration-docs.sh +1 -1
- package/LICENSE +0 -201
- package/NOTICE +0 -17
|
@@ -14,7 +14,7 @@ import { mergeEdgeLabel } from "./edge-label-merge.js";
|
|
|
14
14
|
// Any C4-PlantUML relationship macro: Rel, Rel_U/D/L/R, BiRel, Rel_Back, etc.
|
|
15
15
|
// Capture the first two positional args (from, to) and an optional label.
|
|
16
16
|
const REL_RE = /^(?:Bi)?Rel(?:_[A-Za-z]+)?\s*\(\s*(\w+)\s*,\s*(\w+)\s*(?:,\s*"([^"]*)")?/;
|
|
17
|
-
// Diagram files come from the shared collector
|
|
17
|
+
// Diagram files come from the shared collector — see
|
|
18
18
|
// c4-external-systems.ts / c4-l1-candidates.ts. This builder previously
|
|
19
19
|
// kept a private, pre-0.30.1-ordered copy missing the domain-scoped L1
|
|
20
20
|
// path, so Rel(...) lines there were never harvested.
|
|
@@ -30,7 +30,7 @@ export async function buildSystemExternalDependency(inputs) {
|
|
|
30
30
|
const rows = [];
|
|
31
31
|
const seen = new Set();
|
|
32
32
|
const rowsById = new Map();
|
|
33
|
-
//
|
|
33
|
+
// A Rel in the syndicated platform L1 is a statement about the
|
|
34
34
|
// PLATFORM. For any other SDD those lines minted the platform's
|
|
35
35
|
// dependencies (and even its persona interactions) as the sibling's own
|
|
36
36
|
// edges — measured at 28% of one estate's dependency graph and 35/35
|
|
@@ -42,11 +42,11 @@ export async function buildSystemExternalDependency(inputs) {
|
|
|
42
42
|
for (const { abs, syndicated } of files) {
|
|
43
43
|
if (syndicated && !isRoot)
|
|
44
44
|
continue;
|
|
45
|
-
//
|
|
45
|
+
// the non-external Rel endpoint may be a local container — carry
|
|
46
46
|
// its id so adjudication can rewrite this edge onto container_dependency
|
|
47
47
|
// instead of destroying it when the external endpoint proves internal.
|
|
48
48
|
const content = await readFile(abs, "utf-8");
|
|
49
|
-
//
|
|
49
|
+
// A Person-sourced Rel must never enter this catalogue — its
|
|
50
50
|
// semantics are runtime calls between software, and attributing a
|
|
51
51
|
// human's Rel to the system erases the person-ness (which adjudication
|
|
52
52
|
// then launders into system_system_dependency). The persona-container
|
|
@@ -60,14 +60,14 @@ export async function buildSystemExternalDependency(inputs) {
|
|
|
60
60
|
for (const rel of parseRels(content)) {
|
|
61
61
|
if (personEntries.has(rel.from) || personEntries.has(rel.to))
|
|
62
62
|
continue;
|
|
63
|
-
//
|
|
64
|
-
// container-dependency builder
|
|
63
|
+
// Classification is CONTAINER-FIRST, uniformly with the
|
|
64
|
+
// container-dependency builder. An entry-id that
|
|
65
65
|
// resolves to a local container IS a container, whatever a sibling
|
|
66
66
|
// diagram called it — the old external-first read here meant a
|
|
67
67
|
// dual-use SOURCE made the pair look external↔external to this
|
|
68
68
|
// builder while looking container→external to its sibling, and the
|
|
69
69
|
// edge fell between them: claimed by neither, reported by nothing.
|
|
70
|
-
//
|
|
70
|
+
// A fix applied to one builder must be swept into this one too.
|
|
71
71
|
const fromIsContainer = inputs.containerIdByEntryId?.has(rel.from) ?? false;
|
|
72
72
|
const toIsContainer = inputs.containerIdByEntryId?.has(rel.to) ?? false;
|
|
73
73
|
const fromExt = fromIsContainer
|
|
@@ -134,7 +134,7 @@ enums:
|
|
|
134
134
|
runtime: true
|
|
135
135
|
emits_service_row: false
|
|
136
136
|
description: |
|
|
137
|
-
Type of repository, declared in `orchestration/repo-config/*.yaml` as `service_type` and surfaced in `repositories.component_type` and `services.component_type`. The canonical builder uses this to decide which repos are runtime services (api_service, worker, gateway, frontend, mobile) and which are non-runtime (library, infrastructure, documentation); firmware runs, but on a device, so it is runtime without a service row (M-ADR 0215) — service emission follows emits_service_row, not runtime. Whether a repo is a vertical-domain application is conveyed by its SDD manifest's `profile: application-product`, not by a service_type tag — this enum is strictly about runtime artefact shape
|
|
137
|
+
Type of repository, declared in `orchestration/repo-config/*.yaml` as `service_type` and surfaced in `repositories.component_type` and `services.component_type`. The canonical builder uses this to decide which repos are runtime services (api_service, worker, gateway, frontend, mobile) and which are non-runtime (library, infrastructure, documentation); firmware runs, but on a device, so it is runtime without a service row (M-ADR 0215) — service emission follows emits_service_row, not runtime. Whether a repo is a vertical-domain application is conveyed by its SDD manifest's `profile: application-product`, not by a service_type tag — this enum is strictly about runtime artefact shape.
|
|
138
138
|
capability_exemption_reason:
|
|
139
139
|
values:
|
|
140
140
|
- value: infrastructure
|
|
@@ -174,11 +174,11 @@ enums:
|
|
|
174
174
|
- value: public-infrastructure
|
|
175
175
|
description: Public networks, registries, or services no party in the estate operates.
|
|
176
176
|
- value: estate-owned-unmodelled
|
|
177
|
-
description: "Operated by this estate but with no SDD or container home yet — the row is an accounted-for stand-in, and this population is the estate's modelling backlog, countable (
|
|
177
|
+
description: "Operated by this estate but with no SDD or container home yet — the row is an accounted-for stand-in, and this population is the estate's modelling backlog, countable (2.32.0). Not an assertion of externality: an assertion of accountability for a boundary row."
|
|
178
178
|
- value: organisation-internal
|
|
179
|
-
description: Owned elsewhere in the same organisation, outside this estate's modelling boundary (
|
|
179
|
+
description: Owned elsewhere in the same organisation, outside this estate's modelling boundary (2.32.0).
|
|
180
180
|
description: |
|
|
181
|
-
Why an external-system candidate is ACCOUNTED FOR at the estate boundary, per M-ADR 0189 §4.6 (
|
|
181
|
+
Why an external-system candidate is ACCOUNTED FOR at the estate boundary, per M-ADR 0189 §4.6 (wording corrected in 2.32.0): five values assert another party owns the system, and two assert the estate/organisation owns it but it has no model home yet — forcing the latter through the former would demand a false reason, and a false reason is worse than silence. The adjudicator can prove a candidate internal; it cannot prove one accounted-for — that is an assertion the author is accountable for, in the shape M-ADR 0188 ratified for repositories. Closed vocabulary, method-owned, extended only by ADR amendment, so adopters cannot locally widen the exemption surface to silence the unverified-candidate coverage finding.
|
|
182
182
|
ENFORCED, not advisory: the builder drops a row whose reason is outside this vocabulary (convention finding) and the candidate stays unverified — which is the point. An unrecognised reason must not succeed at the one thing an exemption does.
|
|
183
183
|
scaffold_status:
|
|
184
184
|
values:
|
|
@@ -1353,7 +1353,7 @@ catalogues:
|
|
|
1353
1353
|
nullable: true
|
|
1354
1354
|
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.
|
|
1355
1355
|
description: |
|
|
1356
|
-
Hierarchical grouping for features. First-class entity
|
|
1356
|
+
Hierarchical grouping for features. First-class entity — replaces the previous reverse-only synthetic `feature-tree-group` rows in features.csv. Both forward and reverse can use feature_groups: forward application-product SDDs whose `feature-tree.md` has H2/H3 structure, reverse SDDs whose extracted feature trees are inherently hierarchical, and any SDD that promotes groups to first-class with authored metadata. Groups can nest via `parent_group_id`.
|
|
1357
1357
|
foreign_keys:
|
|
1358
1358
|
- column: product_id
|
|
1359
1359
|
references: products.id
|
|
@@ -2062,8 +2062,8 @@ catalogues:
|
|
|
2062
2062
|
nullable: false
|
|
2063
2063
|
description: Mandatory, non-empty. The reason makes exemptions countable; the note makes them reviewable (M-ADR 0188 §4.2 pattern).
|
|
2064
2064
|
description: |
|
|
2065
|
-
A declared, reasoned assertion that an external-system candidate is GENUINELY external (M-ADR 0189 §4.6
|
|
2066
|
-
The invariant it completes: c4_external_systems was the one catalogue family with no coverage predicate — a candidate producing no adjudication outcome was silent, and that silence hid a 28% dependency -graph distortion
|
|
2065
|
+
A declared, reasoned assertion that an external-system candidate is GENUINELY external (M-ADR 0189 §4.6). Annotation catalogue (M-ADR 0133 §4.2b): one FK, declared never derived, closed reason enum. Sourced from `orchestration/external-system-exemptions.yaml`.
|
|
2066
|
+
The invariant it completes: c4_external_systems was the one catalogue family with no coverage predicate — a candidate producing no adjudication outcome was silent, and that silence hid a 28% dependency -graph distortion. Every candidate now either resolves at adjudication, or carries an exemption here, or is reported unverified. An exemption retires only the unverified finding — never an adjudication outcome (a converted candidate's exemption is a contradiction, reported and dropped). Shared entities may be exempted by multiple SDDs: identical rows dedup at aggregation (same exception class as c4_external_systems); conflicting rows keep first-seen with a convention finding.
|
|
2067
2067
|
foreign_keys:
|
|
2068
2068
|
- column: external_system_id
|
|
2069
2069
|
references: c4_external_systems.id
|
|
@@ -2172,7 +2172,7 @@ catalogues:
|
|
|
2172
2172
|
type: string
|
|
2173
2173
|
nullable: false
|
|
2174
2174
|
description: exposes | consumes.
|
|
2175
|
-
description: "Edge: service exposes or consumes contract. Both FKs are external (per M-ADR 0147): federated SDDs that walk per-repo service-architecture tables emit consumes rows where service_id resolves to the platform-root catalogue's services.csv (post-aggregation) and contract_id resolves to the platform-root contracts.csv. Internal builds (
|
|
2175
|
+
description: "Edge: service exposes or consumes contract. Both FKs are external (per M-ADR 0147): federated SDDs that walk per-repo service-architecture tables emit consumes rows where service_id resolves to the platform-root catalogue's services.csv (post-aggregation) and contract_id resolves to the platform-root contracts.csv. Internal builds (a single-SDD platform) still optimistically validate locally. Schema 2.8.0."
|
|
2176
2176
|
foreign_keys:
|
|
2177
2177
|
- column: service_id
|
|
2178
2178
|
references: services.id
|
|
@@ -2303,7 +2303,7 @@ catalogues:
|
|
|
2303
2303
|
nullable: true
|
|
2304
2304
|
description: Where the coupling is evidenced — a path or anchor in the SDD, from `evidence:` on the services[] entry. Prose about the coupling stays in dependency_notes; this is the pointer a reviewer follows.
|
|
2305
2305
|
description: |
|
|
2306
|
-
Edge: capability is realised by services. Sourced from the capability traceability manifest services[] block. service_id is an external FK (schema 2.29.0
|
|
2306
|
+
Edge: capability is realised by services. Sourced from the capability traceability manifest services[] block. service_id is an external FK (schema 2.29.0): a traceability entry marked `owner_sdd:` declares a cross-SDD reference (e.g. the service moved to a sibling SDD at an M-ADR 0170 §4.2 carve) — the per-SDD builder emits the edge, logs it `[finding] external`, and aggregation validates it hard against the owning sibling's rows. An UNMARKED id that does not resolve locally is NOT emitted — it stays a member-tier orphan finding (or convention, when it names a known external system).
|
|
2307
2307
|
foreign_keys:
|
|
2308
2308
|
- column: capability_id
|
|
2309
2309
|
references: capabilities.id
|
|
@@ -2365,8 +2365,8 @@ catalogues:
|
|
|
2365
2365
|
- name: source
|
|
2366
2366
|
type: string
|
|
2367
2367
|
nullable: false
|
|
2368
|
-
description: "declared — the only emitted value. `derived` is reserved vocabulary: the reverse derivation it anticipated was never built (0 rows across 105 measured units) and the claim was corrected at 3.0.0 (M-ADR 0203 §4.5
|
|
2369
|
-
description: "Edge: capability is bound to a contract. Whether the capability exposes or depends on it is not stated by the source (traceability.contracts), so this description asserts no direction (M-ADR 0211 §1). Forward-declared only. Forward-declared only (traceability.contracts). The reverse derivation this description long claimed (service_contract ⋈ capability_service) was measured nonexistent — 0 `source: derived` rows across 105 units, builder references neither catalogue — and the CLAIM was corrected at 3.0.0 (M-ADR 0203 §4.5
|
|
2368
|
+
description: "declared — the only emitted value. `derived` is reserved vocabulary: the reverse derivation it anticipated was never built (0 rows across 105 measured units) and the claim was corrected at 3.0.0 (M-ADR 0203 §4.5); the value re-enters if a decision builds a reverse source."
|
|
2369
|
+
description: "Edge: capability is bound to a contract. Whether the capability exposes or depends on it is not stated by the source (traceability.contracts), so this description asserts no direction (M-ADR 0211 §1). Forward-declared only. Forward-declared only (traceability.contracts). The reverse derivation this description long claimed (service_contract ⋈ capability_service) was measured nonexistent — 0 `source: derived` rows across 105 units, builder references neither catalogue — and the CLAIM was corrected at 3.0.0 (M-ADR 0203 §4.5, gap class absent-derivation per M-ADR 0196 §4.1). The edge is forward-one-directional until a decision builds a reverse source."
|
|
2370
2370
|
foreign_keys:
|
|
2371
2371
|
- column: capability_id
|
|
2372
2372
|
references: capabilities.id
|
|
@@ -2546,7 +2546,7 @@ catalogues:
|
|
|
2546
2546
|
type: string
|
|
2547
2547
|
nullable: true
|
|
2548
2548
|
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.
|
|
2549
|
-
description: "Edge: feature delivers async push via a named channel/topic. Peer of `graphql_operations:` in the per-feature evidence shape — `graphql_operations:` carries the GraphQL operation names declared in the schema (Queries / Mutations / Subscriptions); `feature_subscription_channels` rows carry the channel/topic layer that physically delivers the push events (AppSync WebSocket endpoints, Pekko WS channels, MQTT topics, server-sent-event streams).
|
|
2549
|
+
description: "Edge: feature delivers async push via a named channel/topic. Peer of `graphql_operations:` in the per-feature evidence shape — `graphql_operations:` carries the GraphQL operation names declared in the schema (Queries / Mutations / Subscriptions); `feature_subscription_channels` rows carry the channel/topic layer that physically delivers the push events (AppSync WebSocket endpoints, Pekko WS channels, MQTT topics, server-sent-event streams). A single GraphQL Subscription operation may listen on multiple channels; one channel may be consumed by multiple operations — modelling as a separate edge catalogue (not as a feature column) accommodates the many-to-many. Built per-SDD from `reverse-evidence/feature-grounding-evidence.yaml` `subscription_channels:` entries on each feature. Added in schema 2.9.0."
|
|
2550
2550
|
foreign_keys:
|
|
2551
2551
|
- column: feature_id
|
|
2552
2552
|
references: features.id
|
|
@@ -2672,9 +2672,9 @@ catalogues:
|
|
|
2672
2672
|
- name: interaction
|
|
2673
2673
|
type: string
|
|
2674
2674
|
nullable: true
|
|
2675
|
-
description: Optional interaction label from the Rel(...) line. May hold multiple '; '-joined labels
|
|
2675
|
+
description: Optional interaction label from the Rel(...) line. May hold multiple '; '-joined labels.
|
|
2676
2676
|
description: |
|
|
2677
|
-
Edge: a persona uses a C4 container — the L2-granularity companion to persona_c4system (M-ADR 0189
|
|
2677
|
+
Edge: a persona uses a C4 container — the L2-granularity companion to persona_c4system (M-ADR 0189, ratified 2026-07-10). Eleven of one estate's L2 diagrams and the bulk of another's 81 unroutable Rels drew Person→Container relationships that had no catalogue and raised no finding. Harvested at member tier from Rel(...) lines whose endpoints resolve to a file-local Person and a local container (either direction; the row is normalised persona→container). A Person that matches no persona row is a coverage finding, never a silent skip. Both authoring directions feed from the same diagram surface (M-ADR 0157 parity). Added in schema 2.34.0.
|
|
2678
2678
|
foreign_keys:
|
|
2679
2679
|
- column: persona_id
|
|
2680
2680
|
references: personas.id
|
|
@@ -2698,11 +2698,11 @@ catalogues:
|
|
|
2698
2698
|
- name: interaction
|
|
2699
2699
|
type: string
|
|
2700
2700
|
nullable: true
|
|
2701
|
-
description: Optional integration label/protocol from the Rel(...) line. May hold multiple '; '-joined labels when one pair is declared with distinct labels (
|
|
2701
|
+
description: Optional integration label/protocol from the Rel(...) line. May hold multiple '; '-joined labels when one pair is declared with distinct labels (2.33.2).
|
|
2702
2702
|
- name: from_container_id
|
|
2703
2703
|
type: string
|
|
2704
2704
|
nullable: true
|
|
2705
|
-
description: The Rel's non-external endpoint resolved to a local container at member tier, when it is one (
|
|
2705
|
+
description: The Rel's non-external endpoint resolved to a local container at member tier, when it is one (2.33.0) — the datum that lets adjudication rewrite this edge onto container_dependency instead of destroying it. Empty when the endpoint is the system itself or unresolvable.
|
|
2706
2706
|
description: "Edge: a C4 system integrates with an external software system. Captures the L1 context 'System integrates with External System' relationship, extracted from System_Ext(...) + Rel(...) on L1/L2 diagrams. Per M-ADR 0155. Container-level external dependencies are out of scope (system-level only). Added in schema 2.10.0. From 2.30.0 (M-ADR 0189 §4.4): edges whose external endpoint the aggregator adjudicates as an INTERNAL system are rewritten onto system_system_dependency and removed from this catalogue."
|
|
2707
2707
|
foreign_keys:
|
|
2708
2708
|
- column: c4_system_id
|
|
@@ -2734,13 +2734,13 @@ catalogues:
|
|
|
2734
2734
|
- name: source_sdd_id
|
|
2735
2735
|
type: string
|
|
2736
2736
|
nullable: true
|
|
2737
|
-
description: SDD whose diagram declared the originating reference. Member-emitted rows set it directly
|
|
2737
|
+
description: SDD whose diagram declared the originating reference. Member-emitted rows set it directly; adjudication-derived rows are stamped by the aggregator.
|
|
2738
2738
|
- name: platform_sdd_id
|
|
2739
2739
|
type: string
|
|
2740
2740
|
nullable: true
|
|
2741
2741
|
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.
|
|
2742
2742
|
description: |
|
|
2743
|
-
Edge: a C4 container depends on another INTERNAL container (
|
|
2743
|
+
Edge: a C4 container depends on another INTERNAL container (the system-tier gap exactly one tier down: "no edge for internal" at L2). Derived by the aggregator at adjudication: an external-system candidate that resolves to an internal container was never external — each of its dependency edges whose member-resolved `from_container_id` is known is rewritten here, and a candidate with no remaining edges is dropped (it was a phantom duplicate of the container). A candidate with unconvertible edges is kept with the tier-contradiction finding, so no edge is ever destroyed to make a build quieter — the measured cost that stopped an adopter remediating 22 contradictions was eight real edges. ALSO emitted at member tier (2.33.1): the C4-correct authoring — Rel(container_a, container_b) between two Container(...) nodes — emits its edge directly; adjudication merges into a catalogue that already has content rather than being its only source, so the metamodel no longer rewards mis-declaration over correct authoring. Added in schema 2.33.0.
|
|
2744
2744
|
foreign_keys:
|
|
2745
2745
|
- column: from_container_id
|
|
2746
2746
|
references: c4_containers.id
|
|
@@ -2910,7 +2910,7 @@ catalogues:
|
|
|
2910
2910
|
- name: target_locus
|
|
2911
2911
|
type: string
|
|
2912
2912
|
nullable: true
|
|
2913
|
-
description: platform | external | legacy (M-ADR 0204; closed enum, absent/empty = platform). A statement about the TARGET only — never about the consuming product, and never a stability, lifecycle or quality claim. platform rows behave exactly as before this column existed. external/legacy rows carry empty target_capability_id and target_service_id and name their target in target_external_system_id; they skip platform resolution and the
|
|
2913
|
+
description: platform | external | legacy (M-ADR 0204; closed enum, absent/empty = platform). A statement about the TARGET only — never about the consuming product, and never a stability, lifecycle or quality claim. platform rows behave exactly as before this column existed. external/legacy rows carry empty target_capability_id and target_service_id and name their target in target_external_system_id; they skip platform resolution and the synchronous realiser-join, with every skip named.
|
|
2914
2914
|
- name: target_external_system_id
|
|
2915
2915
|
type: string
|
|
2916
2916
|
nullable: true
|
|
@@ -2926,7 +2926,7 @@ catalogues:
|
|
|
2926
2926
|
- name: contract_type
|
|
2927
2927
|
type: string
|
|
2928
2928
|
nullable: true
|
|
2929
|
-
description: rest | graphql | openapi | grpc | event | event-stream | stream | other. Optional; reflects what the consuming SDD declares. The async set (`event`/`event-stream`/`stream`) marks a shared-stream subscription that binds to a stream contract rather than a realiser service (M-ADR 0192) — such rows skip the
|
|
2929
|
+
description: rest | graphql | openapi | grpc | event | event-stream | stream | other. Optional; reflects what the consuming SDD declares. The async set (`event`/`event-stream`/`stream`) marks a shared-stream subscription that binds to a stream contract rather than a realiser service (M-ADR 0192) — such rows skip the synchronous realiser-join at aggregation.
|
|
2930
2930
|
- name: required_stability
|
|
2931
2931
|
type: string
|
|
2932
2932
|
nullable: true
|
|
@@ -2948,7 +2948,7 @@ catalogues:
|
|
|
2948
2948
|
nullable: true
|
|
2949
2949
|
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.
|
|
2950
2950
|
description: |
|
|
2951
|
-
Per-SDD edge: an application-side or integration-side SDD declares that its product depends on a platform-side capability + service pair. Built from `reverse-evidence/feature-grounding-evidence.yaml` `platform_dependencies:` block (product-level — the cohort source shape carries product-scoped dependency rows with a `consumed_by:` list naming which services within the consuming product depend on the target). Each row records one (consuming product, target capability, target service) triple. The aggregator then joins these rows against platform-side `capability_service` to emit `cross_sdd_platform_capability` edges at aggregation time. Cross- SDD references (target_capability_id, target_service_id) are external — they're not expected to resolve in the per-SDD build, only at aggregation. Added in schema 2.9.0
|
|
2951
|
+
Per-SDD edge: an application-side or integration-side SDD declares that its product depends on a platform-side capability + service pair. Built from `reverse-evidence/feature-grounding-evidence.yaml` `platform_dependencies:` block (product-level — the cohort source shape carries product-scoped dependency rows with a `consumed_by:` list naming which services within the consuming product depend on the target). Each row records one (consuming product, target capability, target service) triple. The aggregator then joins these rows against platform-side `capability_service` to emit `cross_sdd_platform_capability` edges at aggregation time. Cross- SDD references (target_capability_id, target_service_id) are external — they're not expected to resolve in the per-SDD build, only at aggregation. Added in schema 2.9.0.
|
|
2952
2952
|
foreign_keys:
|
|
2953
2953
|
- column: product_id
|
|
2954
2954
|
references: products.id
|
|
@@ -2993,7 +2993,7 @@ catalogues:
|
|
|
2993
2993
|
nullable: false
|
|
2994
2994
|
description: Service identifier the consuming SDD references and the platform SDD owns. The join key.
|
|
2995
2995
|
description: |
|
|
2996
|
-
Federated edge: an application-side or integration-side SDD's `product_platform_dependencies` reference resolves against a platform-side SDD's capability spec via the platform capability's `capability_service` roster. Surfaces ecosystem-wide platform- consumer relationships at product → capability granularity. Built **only at aggregation time** — `sdd-cli catalogue aggregate` joins each consuming SDD's `product_platform_dependencies` rows against every other SDD's `capability_service` rows on `target_service_id == service_id`, emitting one row per resolved (consuming-product, platform-capability) pair. Per-SDD builders emit nothing for this catalogue; the aggregator owns it entirely. A platform-dependency whose target_service_id doesn't resolve to any platform-side capability_service row is logged as an `orphan` finding and produces no row. Cross-SDD references are external by definition. Added in schema 2.9.0; see
|
|
2996
|
+
Federated edge: an application-side or integration-side SDD's `product_platform_dependencies` reference resolves against a platform-side SDD's capability spec via the platform capability's `capability_service` roster. Surfaces ecosystem-wide platform- consumer relationships at product → capability granularity. Built **only at aggregation time** — `sdd-cli catalogue aggregate` joins each consuming SDD's `product_platform_dependencies` rows against every other SDD's `capability_service` rows on `target_service_id == service_id`, emitting one row per resolved (consuming-product, platform-capability) pair. Per-SDD builders emit nothing for this catalogue; the aggregator owns it entirely. A platform-dependency whose target_service_id doesn't resolve to any platform-side capability_service row is logged as an `orphan` finding and produces no row. Cross-SDD references are external by definition. Added in schema 2.9.0; see M-ADR 0134.
|
|
2997
2997
|
foreign_keys:
|
|
2998
2998
|
- column: consuming_product_id
|
|
2999
2999
|
references: products.id
|
|
@@ -3131,7 +3131,7 @@ catalogues:
|
|
|
3131
3131
|
nullable: true
|
|
3132
3132
|
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.
|
|
3133
3133
|
description: |
|
|
3134
|
-
Application-product annotation (M-ADR 0191 §4.3 overlay, second element
|
|
3134
|
+
Application-product annotation (M-ADR 0191 §4.3 overlay, second element): one row per conformance tag the product asserts about its archetype's conformance expectations. Built per-SDD from the manifest's `conformance` block so the AGGREGATION-tier conformance GATE can read it. `status=covered` means the product's own conformance suite exercises the tag; `status=deviated` means the product declares (with a rationale) that it deliberately does not. At aggregation, an archetype-expected conformance tag that is neither covered nor deviated raises a deviation-visible WARN. The method gates the DECLARATION — it does not run the adopter's conformance suite. Added in schema 2.39.0.
|
|
3135
3135
|
foreign_keys:
|
|
3136
3136
|
- column: product_id
|
|
3137
3137
|
references: products.id
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Contract-path resolution at aggregation tier
|
|
1
|
+
// Contract-path resolution at aggregation tier.
|
|
2
2
|
//
|
|
3
3
|
// WHY THIS LIVES AT AGGREGATE TIER AND NOWHERE ELSE
|
|
4
4
|
// `app-platform-dependencies.yaml` declares, per dependency, the contract the
|
|
@@ -54,8 +54,8 @@ export function isPathShaped(value) {
|
|
|
54
54
|
* sdd_id OR by its directory basename, and the distinction is not cosmetic: an
|
|
55
55
|
* author writing this prefix is reading it off the filesystem, so it is the
|
|
56
56
|
* DIRECTORY they write. In one measured estate every such prefix is
|
|
57
|
-
* `platform/sdd-
|
|
58
|
-
* `
|
|
57
|
+
* `platform/sdd-loyalty-platform/` while that SDD's declared sdd_id is
|
|
58
|
+
* `loyalty-platform` — matching on sdd_id alone therefore split nothing and
|
|
59
59
|
* reported 13 existing contracts as missing. Both keys are accepted.
|
|
60
60
|
*
|
|
61
61
|
* That prefix
|
|
@@ -13,12 +13,12 @@
|
|
|
13
13
|
* §4.3 (`orphaned` is aggregate-only; member tier reports
|
|
14
14
|
* `unresolved-locally`, cause-agnostic); the Path-X leverage axis is
|
|
15
15
|
* reported separately and only when repo_capability.csv exists.
|
|
16
|
-
* - event_coverage
|
|
16
|
+
* - event_coverage: every catalogued event is attributed to a
|
|
17
17
|
* runtime — service_event edge or resolving publisher column — with
|
|
18
18
|
* the contract-twin alternative route, the column-vs-edge disagreement
|
|
19
19
|
* controls, and the chain-readout/consumer-enumerability metric lines
|
|
20
20
|
* that are never verdicts.
|
|
21
|
-
* - contract_coverage
|
|
21
|
+
* - contract_coverage: every catalogued contract is reachable —
|
|
22
22
|
* capability_contract or service_contract — with the three computed
|
|
23
23
|
* exclusions (deprecated / provider-surface / not-an-interface, the
|
|
24
24
|
* last a positive READ of the spec file), the covered-as-event
|
|
@@ -178,8 +178,8 @@ FROM "services" s
|
|
|
178
178
|
WHERE s."id" IS NOT NULL AND s."id" <> ''
|
|
179
179
|
ORDER BY service_id, primary_repo;`;
|
|
180
180
|
export async function runServiceCapabilityCoverage(session, options) {
|
|
181
|
-
// Known-bad probe, carried over from the reference implementation
|
|
182
|
-
//
|
|
181
|
+
// Known-bad probe, carried over from the reference implementation:
|
|
182
|
+
// a synthetic claimed service must classify
|
|
183
183
|
// as claimed BEFORE any real data is reported — a run whose
|
|
184
184
|
// classification never executed must not be able to report a healthy
|
|
185
185
|
// estate.
|
|
@@ -89,7 +89,7 @@ export async function runCatalogueCoverage(inputs, write) {
|
|
|
89
89
|
const available = new Set(schema.catalogues.map((c) => c.name).filter((n) => present(n)));
|
|
90
90
|
lines.push(...renderScoresCoverage(await runScoresCoverage(session, { tier, available, sddRoot }), tier));
|
|
91
91
|
// Staleness VERDICTS — the second half of the fourteenth check's §4.5
|
|
92
|
-
// scope
|
|
92
|
+
// scope, member-tier only with the aggregate skip stated.
|
|
93
93
|
// Same coverage class, same reporting-only staging as the rest of the
|
|
94
94
|
// scores family.
|
|
95
95
|
lines.push(...renderStalenessVerdicts(await runStalenessVerdicts(session, { tier, available, sddRoot }), tier));
|
|
@@ -20,10 +20,9 @@
|
|
|
20
20
|
* `build` (where the offending SDD is unambiguous) instead of only at
|
|
21
21
|
* `aggregate`.
|
|
22
22
|
*
|
|
23
|
-
* Background: the method's coordination record feature-edge-cross-source-duplicate.
|
|
24
23
|
* Sibling precedents (the unconditional-emit fixes whose per-walker dedup this
|
|
25
|
-
* generalises across sources):
|
|
26
|
-
* (0.30.2) and
|
|
24
|
+
* generalises across sources): the feature-grounding collision-edge fix
|
|
25
|
+
* (0.30.2) and the capability-spec collision-edge fix (0.30.3).
|
|
27
26
|
*/
|
|
28
27
|
/**
|
|
29
28
|
* Render a cell exactly as the CSV writer will, so two rows count as identical
|
|
@@ -12,12 +12,12 @@
|
|
|
12
12
|
// carries (`name`), so the old→new map is a build artefact, not an authored
|
|
13
13
|
// migration: `sdd-cli catalogue migration-map` emits it, and the exemption
|
|
14
14
|
// loader consults it during the cut window (an authored exemption keyed by
|
|
15
|
-
// a mapped old id is regenerable, NOT drift — the
|
|
15
|
+
// a mapped old id is regenerable, NOT drift — the regenerability rule at schema scale).
|
|
16
16
|
/**
|
|
17
17
|
* Normalise a declared diagram entry id to slug form. Camel humps split
|
|
18
|
-
* BEFORE lowercasing (
|
|
19
|
-
* most SDD ids are hyphenated, and `
|
|
20
|
-
* same identity the adjudicator resolves for it (`
|
|
18
|
+
* BEFORE lowercasing (matching the aggregator's resolver):
|
|
19
|
+
* most SDD ids are hyphenated, and `posGatewayFramework` must derive the
|
|
20
|
+
* same identity the adjudicator resolves for it (`pos-gateway-framework`).
|
|
21
21
|
*/
|
|
22
22
|
export function normaliseEntryId(entryId) {
|
|
23
23
|
return entryId
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
* AuthHandler: example-service-api
|
|
15
15
|
* web-ui: example-web-ui
|
|
16
16
|
* repo_aliases:
|
|
17
|
-
*
|
|
17
|
+
* stock-bff: northwind-stock-bff
|
|
18
18
|
*
|
|
19
19
|
* Either block is optional. Empty / missing file = no aliases (every
|
|
20
20
|
* reference must resolve directly against the canonical id).
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Finding IDENTITY — the stable key a findings baseline is compared on, per
|
|
3
|
-
* M-ADR 0132 §4.3 as amended
|
|
3
|
+
* M-ADR 0132 §4.3 as amended.
|
|
4
4
|
*
|
|
5
5
|
* THE PROBLEM THIS EXISTS FOR, measured rather than asserted. A findings
|
|
6
6
|
* baseline stores whole `[finding]` lines, so improving a message invalidates
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
* files, 74 non-empty, 1,677 body lines — that works for 1,434 lines (85.5%)
|
|
18
18
|
* and fails for 243 (14.5%), which embed their subject in prose:
|
|
19
19
|
*
|
|
20
|
-
* [finding] orphan: repo integration-
|
|
20
|
+
* [finding] orphan: repo integration-acme resolves to no capability ...
|
|
21
21
|
*
|
|
22
22
|
* One renderer template, all orphan class, spread across 62 repos. Recovering
|
|
23
23
|
* identity there means teaching the comparator the renderer's message
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
* baseline is reviewed by people and a side-channel nobody sees is a side
|
|
31
31
|
* channel nobody maintains:
|
|
32
32
|
*
|
|
33
|
-
* [finding] orphan (repo:integration-
|
|
33
|
+
* [finding] orphan (repo:integration-acme): repo integration-acme ...
|
|
34
34
|
* [finding] divergence (docs/domains/asset/product/x.traceability.yaml): ...
|
|
35
35
|
*
|
|
36
36
|
* A finding with no declared subject renders EXACTLY as it does today. That is
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* `catalogue build --check`: are the committed catalogues what the committed specs build to?
|
|
3
|
-
* (M-ADR 0218 §5
|
|
3
|
+
* (M-ADR 0218 §5.)
|
|
4
4
|
*
|
|
5
5
|
* Builds into a temporary directory and compares, so it writes nothing into the SDD. Only what
|
|
6
6
|
* the build PRODUCES is compared: a hand-written file that happens to sit in catalogues/ (a
|
|
@@ -123,7 +123,7 @@ const DataPlaneSchema = z.object({
|
|
|
123
123
|
bindings: z.array(DataPlaneBindingSchema),
|
|
124
124
|
deviations: z.array(DataPlaneDeviationSchema).optional(),
|
|
125
125
|
});
|
|
126
|
-
// Conformance coverage (M-ADR 0191 §4.3, second overlay element
|
|
126
|
+
// Conformance coverage (M-ADR 0191 §4.3, second overlay element). An
|
|
127
127
|
// application-product asserts which of its archetype's conformance expectations
|
|
128
128
|
// its own conformance suite exercises (`coverage`), and declares a rationale for
|
|
129
129
|
// any expected tag it deliberately does not cover (`deviations`). The method
|
|
@@ -249,7 +249,7 @@ const ManifestSchema = z.object({
|
|
|
249
249
|
// optional declared deviations from the archetype default, each carrying a
|
|
250
250
|
// rationale so the mismatch is sanctioned variance, not silent drift.
|
|
251
251
|
data_plane: DataPlaneSchema.optional(),
|
|
252
|
-
// Conformance coverage declaration (M-ADR 0191 §4.3
|
|
252
|
+
// Conformance coverage declaration (M-ADR 0191 §4.3, sdd-manifest-schema
|
|
253
253
|
// 1.5.0). Which archetype conformance expectations the product's suite
|
|
254
254
|
// exercises, plus rationales for any it deliberately does not.
|
|
255
255
|
conformance: ConformanceSchema.optional(),
|
|
@@ -216,7 +216,7 @@ export async function runScaffoldDelta(session, options) {
|
|
|
216
216
|
}
|
|
217
217
|
/**
|
|
218
218
|
* The delta's DEFECT classes are gate-acting (`divergence`), PROMOTED by a
|
|
219
|
-
* recorded
|
|
219
|
+
* recorded method act after the M-ADR 0207 §4.9 pilot completed with no
|
|
220
220
|
* surprise in any gated figure (2026-08-08) — the deliberate later act the
|
|
221
221
|
* scores-coverage precedent reserves, performed. `scaffold-stale` stays
|
|
222
222
|
* `coverage` with its staleness family: a stale anchor is a re-declare
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Per-schema compatibility ranges declared by this sdd-cli build.
|
|
3
3
|
*
|
|
4
|
-
*
|
|
5
|
-
* sdd-method-distributed schemas version independently. The CLI declares
|
|
4
|
+
* The three sdd-method-distributed schemas version independently. The CLI declares
|
|
6
5
|
* the version range it accepts for each and fails fast at read time on
|
|
7
6
|
* out-of-range manifests.
|
|
8
7
|
*
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
* - Divider
|
|
16
16
|
* archetype_overlays: # per-platform overlay (ADR 0169 §4.3)
|
|
17
17
|
* web-generic:
|
|
18
|
-
* strip_prefixes: [
|
|
18
|
+
* strip_prefixes: [Nwc, Nwe] # render-only: stripped when humanising labels
|
|
19
19
|
* overrides:
|
|
20
20
|
* VBespokeGrid: grid
|
|
21
21
|
* swiftui:
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
// Staleness VERDICTS — the second half of M-ADR 0205 §4.5's staleness scope
|
|
2
|
-
//
|
|
1
|
+
// Staleness VERDICTS — the second half of M-ADR 0205 §4.5's staleness scope:
|
|
2
|
+
// "staleness meaning corpus_ref older than the target's last
|
|
3
3
|
// content change". The scores-coverage predicate computes each row's BASIS;
|
|
4
4
|
// this module computes the VERDICT the basis supports. A stale score is worse
|
|
5
5
|
// than a missing one, because it reads as coverage — the predicate otherwise
|
|
@@ -262,8 +262,7 @@ function extractContracts(raw) {
|
|
|
262
262
|
// entries used to raise disappeared — the declarations became invisible
|
|
263
263
|
// to row emission and to finding emission at once. The builder had been
|
|
264
264
|
// taught the object form (contracts.ts) while its only feeder had not:
|
|
265
|
-
//
|
|
266
|
-
// it. `spicedb` was likewise never extracted, so `.zed` declarations
|
|
265
|
+
// a builder one surface ahead of the pipeline that supplies it. `spicedb` was likewise never extracted, so `.zed` declarations
|
|
267
266
|
// never reached any builder even as bare strings.
|
|
268
267
|
const arr = (key) => {
|
|
269
268
|
const v = o[key];
|
|
@@ -282,7 +281,7 @@ function extractContracts(raw) {
|
|
|
282
281
|
const graphql = arr("graphql");
|
|
283
282
|
// `provenance` (3.5.0) MUST be extracted here or the builder that reads it
|
|
284
283
|
// sees nothing — this function reconstructs the block key-by-key rather than
|
|
285
|
-
// passing the parsed object through, which is precisely the
|
|
284
|
+
// passing the parsed object through, which is precisely the shape the
|
|
286
285
|
// comment above records. It was re-committed once during 3.5.0's own
|
|
287
286
|
// implementation: the builder was taught to read provenance while this feeder
|
|
288
287
|
// still dropped it, and only an end-to-end catalogue build caught it, because
|