@sdd-method/sdd-cli 0.25.3 → 0.26.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.js +72 -2
- package/dist/lib/catalogue/build.js.map +1 -1
- package/dist/lib/catalogue/builders/event-catalog-walker.d.ts +31 -0
- package/dist/lib/catalogue/builders/event-catalog-walker.d.ts.map +1 -0
- package/dist/lib/catalogue/builders/event-catalog-walker.js +139 -0
- package/dist/lib/catalogue/builders/event-catalog-walker.js.map +1 -0
- package/dist/lib/catalogue/builders/event-edges.d.ts +3 -0
- package/dist/lib/catalogue/builders/event-edges.d.ts.map +1 -1
- package/dist/lib/catalogue/builders/event-edges.js +28 -10
- package/dist/lib/catalogue/builders/event-edges.js.map +1 -1
- package/dist/lib/catalogue/builders/events.d.ts +5 -1
- package/dist/lib/catalogue/builders/events.d.ts.map +1 -1
- package/dist/lib/catalogue/builders/events.js +65 -23
- package/dist/lib/catalogue/builders/events.js.map +1 -1
- package/dist/lib/catalogue/builders/glossary-xref.d.ts +11 -1
- package/dist/lib/catalogue/builders/glossary-xref.d.ts.map +1 -1
- package/dist/lib/catalogue/builders/glossary-xref.js +309 -44
- package/dist/lib/catalogue/builders/glossary-xref.js.map +1 -1
- package/dist/lib/catalogue/builders/repo-edges.d.ts +12 -0
- package/dist/lib/catalogue/builders/repo-edges.d.ts.map +1 -1
- package/dist/lib/catalogue/builders/repo-edges.js +122 -37
- package/dist/lib/catalogue/builders/repo-edges.js.map +1 -1
- package/dist/lib/catalogue/canonical-schema.yaml +20 -6
- package/package.json +2 -2
|
@@ -8,6 +8,18 @@ export interface RepoEdgesInputs {
|
|
|
8
8
|
readonly capabilityIdByPath: ReadonlyMap<string, string>;
|
|
9
9
|
/** Map of contract spec_path → contract id (from contracts builder). */
|
|
10
10
|
readonly contractIdByPath: ReadonlyMap<string, string>;
|
|
11
|
+
/** Contract rows (for source_repo_id denormalisation — Path B of repo_contract). Optional; defaults to empty. */
|
|
12
|
+
readonly contractRows?: readonly CatalogueRow[];
|
|
13
|
+
/** Service rows (for primary_repo_id lookup — Path X of repo_capability). Optional; defaults to empty. */
|
|
14
|
+
readonly serviceRows?: readonly CatalogueRow[];
|
|
15
|
+
/** capability_service edge rows (Path X of repo_capability). Optional; defaults to empty. */
|
|
16
|
+
readonly capabilityServiceRows?: readonly CatalogueRow[];
|
|
17
|
+
/** capability_feature edge rows (Path Y of repo_capability). Optional; defaults to empty. */
|
|
18
|
+
readonly capabilityFeatureRows?: readonly CatalogueRow[];
|
|
19
|
+
/** feature_repo edge rows (Path Y of repo_capability). Optional; defaults to empty. */
|
|
20
|
+
readonly featureRepoRows?: readonly CatalogueRow[];
|
|
21
|
+
/** Repository ids known to this build (FK validation upfront). Optional; defaults to "accept all". */
|
|
22
|
+
readonly knownRepoIds?: ReadonlySet<string>;
|
|
11
23
|
}
|
|
12
24
|
export interface RepoEdgesResult {
|
|
13
25
|
readonly repoCapability: CatalogueRow[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"repo-edges.d.ts","sourceRoot":"","sources":["../../../../src/lib/catalogue/builders/repo-edges.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"repo-edges.d.ts","sourceRoot":"","sources":["../../../../src/lib/catalogue/builders/repo-edges.ts"],"names":[],"mappings":"AAsCA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AACrD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAClD,OAAO,EAEL,KAAK,gBAAgB,EACtB,MAAM,mBAAmB,CAAC;AAE3B,MAAM,WAAW,eAAe;IAC9B,QAAQ,CAAC,QAAQ,EAAE,WAAW,CAAC;IAC/B,QAAQ,CAAC,OAAO,EAAE,SAAS,gBAAgB,EAAE,CAAC;IAC9C,sFAAsF;IACtF,QAAQ,CAAC,kBAAkB,EAAE,WAAW,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACzD,wEAAwE;IACxE,QAAQ,CAAC,gBAAgB,EAAE,WAAW,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACvD,iHAAiH;IACjH,QAAQ,CAAC,YAAY,CAAC,EAAE,SAAS,YAAY,EAAE,CAAC;IAChD,0GAA0G;IAC1G,QAAQ,CAAC,WAAW,CAAC,EAAE,SAAS,YAAY,EAAE,CAAC;IAC/C,6FAA6F;IAC7F,QAAQ,CAAC,qBAAqB,CAAC,EAAE,SAAS,YAAY,EAAE,CAAC;IACzD,6FAA6F;IAC7F,QAAQ,CAAC,qBAAqB,CAAC,EAAE,SAAS,YAAY,EAAE,CAAC;IACzD,uFAAuF;IACvF,QAAQ,CAAC,eAAe,CAAC,EAAE,SAAS,YAAY,EAAE,CAAC;IACnD,sGAAsG;IACtG,QAAQ,CAAC,YAAY,CAAC,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;CAC7C;AAED,MAAM,WAAW,eAAe;IAC9B,QAAQ,CAAC,cAAc,EAAE,YAAY,EAAE,CAAC;IACxC,QAAQ,CAAC,YAAY,EAAE,YAAY,EAAE,CAAC;IACtC,QAAQ,CAAC,WAAW,EAAE,YAAY,EAAE,CAAC;CACtC;AAED,wBAAgB,cAAc,CAAC,MAAM,EAAE,eAAe,GAAG,eAAe,CAOvE"}
|
|
@@ -1,7 +1,12 @@
|
|
|
1
1
|
// Repo-edge builders — repo_capability, repo_contract, feature_repo.
|
|
2
2
|
//
|
|
3
|
-
//
|
|
4
|
-
//
|
|
3
|
+
// Per ADR 0157 (Forward-Declared / Reverse-Derived Parity for Edge Catalogues):
|
|
4
|
+
// both edges ingest from forward-method declared sources AND reverse-method
|
|
5
|
+
// derived sources, merged by primary-key deduplication. The two paths are
|
|
6
|
+
// equal-status per the parity principle; neither displaces the other.
|
|
7
|
+
//
|
|
8
|
+
// Forward-method declared sources (typically authored by forward-method
|
|
9
|
+
// adopters in `orchestration/repo-config/<domain>/<repo>.yaml`):
|
|
5
10
|
//
|
|
6
11
|
// additional_context:
|
|
7
12
|
// - docs/domains/<domain>/product/<capability>.md
|
|
@@ -12,32 +17,51 @@
|
|
|
12
17
|
// proto: [<path-relative-to-contracts/proto/>]
|
|
13
18
|
// avro: [<path-relative-to-contracts/avro/>]
|
|
14
19
|
//
|
|
15
|
-
//
|
|
16
|
-
//
|
|
17
|
-
//
|
|
18
|
-
//
|
|
19
|
-
//
|
|
20
|
-
//
|
|
21
|
-
//
|
|
22
|
-
//
|
|
23
|
-
//
|
|
24
|
-
//
|
|
25
|
-
// `
|
|
26
|
-
//
|
|
27
|
-
//
|
|
20
|
+
// Reverse-method derived sources (universal — work for any SDD with the
|
|
21
|
+
// underlying catalogue rows populated):
|
|
22
|
+
//
|
|
23
|
+
// repo_contract — `contracts.source_repo_id` denormalisation (from OpenAPI
|
|
24
|
+
// `x-source-repo` hints per ADR 0110, or whatever populates the column).
|
|
25
|
+
// repo_capability Path X (universal) — `capability_service ⋈
|
|
26
|
+
// services.primary_repo_id`. Works in both forward and reverse method
|
|
27
|
+
// shapes because primary_repo_id is core-schema and capability_service
|
|
28
|
+
// is heavily authored.
|
|
29
|
+
// repo_capability Path Y (augments via ADR 0143 feature-grounding) —
|
|
30
|
+
// `capability_feature ⋈ feature_repo`. Adopters who have adopted the
|
|
31
|
+
// feature-grounding extractor get many additional rows.
|
|
32
|
+
//
|
|
33
|
+
// feature_repo: ADR 0143's feature-grounding extractor populates this in
|
|
34
|
+
// build.ts (10a). The forward declared `contributes_to.artifact_type:
|
|
35
|
+
// feature-set` path is documented in the metamodel but unused by any
|
|
36
|
+
// observed adopter — left empty here pending first-adopter authoring.
|
|
28
37
|
import { basename, sep } from "node:path";
|
|
29
38
|
import { normaliseAdditionalContextEntry, } from "./repositories.js";
|
|
30
39
|
export function buildRepoEdges(inputs) {
|
|
31
40
|
const repoCapability = collectRepoCapability(inputs);
|
|
32
41
|
const repoContract = collectRepoContract(inputs);
|
|
33
|
-
// feature_repo
|
|
34
|
-
//
|
|
42
|
+
// feature_repo is populated later in build.ts by the ADR 0143
|
|
43
|
+
// feature-grounding extractor; this builder doesn't contribute.
|
|
35
44
|
const featureRepo = [];
|
|
36
45
|
return { repoCapability, repoContract, featureRepo };
|
|
37
46
|
}
|
|
38
47
|
function collectRepoCapability(inputs) {
|
|
39
48
|
const rows = [];
|
|
40
49
|
const seen = new Set();
|
|
50
|
+
const serviceRows = inputs.serviceRows ?? [];
|
|
51
|
+
const capabilityServiceRows = inputs.capabilityServiceRows ?? [];
|
|
52
|
+
const capabilityFeatureRows = inputs.capabilityFeatureRows ?? [];
|
|
53
|
+
const featureRepoRows = inputs.featureRepoRows ?? [];
|
|
54
|
+
const knownRepoIds = inputs.knownRepoIds;
|
|
55
|
+
const emit = (repoId, capId) => {
|
|
56
|
+
if (knownRepoIds !== undefined && !knownRepoIds.has(repoId))
|
|
57
|
+
return;
|
|
58
|
+
const id = `${repoId}__${capId}`;
|
|
59
|
+
if (seen.has(id))
|
|
60
|
+
return;
|
|
61
|
+
seen.add(id);
|
|
62
|
+
rows.push({ id, repo_id: repoId, capability_id: capId });
|
|
63
|
+
};
|
|
64
|
+
// Forward path — declared in repo-config additional_context[].
|
|
41
65
|
for (const cfg of inputs.configs) {
|
|
42
66
|
const extras = cfg.data.additional_context ?? [];
|
|
43
67
|
for (const raw of extras) {
|
|
@@ -48,26 +72,84 @@ function collectRepoCapability(inputs) {
|
|
|
48
72
|
const capId = inputs.capabilityIdByPath.get(cleaned);
|
|
49
73
|
if (capId === undefined) {
|
|
50
74
|
// Not a capability spec path (likely an ADR file or freeform doc).
|
|
51
|
-
//
|
|
52
|
-
//
|
|
75
|
+
// additional_context is intentionally multi-purpose; only matches
|
|
76
|
+
// that resolve to capabilities count.
|
|
53
77
|
continue;
|
|
54
78
|
}
|
|
55
|
-
|
|
56
|
-
if (seen.has(id))
|
|
57
|
-
continue;
|
|
58
|
-
seen.add(id);
|
|
59
|
-
rows.push({
|
|
60
|
-
id,
|
|
61
|
-
repo_id: cfg.repoId,
|
|
62
|
-
capability_id: capId,
|
|
63
|
-
});
|
|
79
|
+
emit(cfg.repoId, capId);
|
|
64
80
|
}
|
|
65
81
|
}
|
|
82
|
+
// Reverse path X (universal) — capability_service ⋈ services.primary_repo_id.
|
|
83
|
+
const repoBySvcId = new Map();
|
|
84
|
+
for (const s of serviceRows) {
|
|
85
|
+
const sid = String(s["id"]);
|
|
86
|
+
const repoId = String(s["primary_repo_id"] ?? "");
|
|
87
|
+
if (sid !== "" && repoId !== "")
|
|
88
|
+
repoBySvcId.set(sid, repoId);
|
|
89
|
+
}
|
|
90
|
+
for (const cs of capabilityServiceRows) {
|
|
91
|
+
const svcId = String(cs["service_id"] ?? "");
|
|
92
|
+
const capId = String(cs["capability_id"] ?? "");
|
|
93
|
+
if (svcId === "" || capId === "")
|
|
94
|
+
continue;
|
|
95
|
+
const repoId = repoBySvcId.get(svcId);
|
|
96
|
+
if (repoId === undefined)
|
|
97
|
+
continue;
|
|
98
|
+
emit(repoId, capId);
|
|
99
|
+
}
|
|
100
|
+
// Surface a single summary finding when capability_service rows exist with
|
|
101
|
+
// services lacking primary_repo_id. The walker quietly skips those edges;
|
|
102
|
+
// this finding tells the reader why the universal path missed some.
|
|
103
|
+
let missingPrimaryRepoSvcs = 0;
|
|
104
|
+
for (const cs of capabilityServiceRows) {
|
|
105
|
+
const svcId = String(cs["service_id"] ?? "");
|
|
106
|
+
if (svcId === "")
|
|
107
|
+
continue;
|
|
108
|
+
if (!repoBySvcId.has(svcId))
|
|
109
|
+
missingPrimaryRepoSvcs++;
|
|
110
|
+
}
|
|
111
|
+
if (missingPrimaryRepoSvcs > 0) {
|
|
112
|
+
inputs.findings.add("orphan", `repo_capability: ${missingPrimaryRepoSvcs} capability_service rows reference services with empty primary_repo_id — reverse-method Path X (capability_service ⋈ services.primary_repo_id) skipped those edges (per ADR 0157 §4.3)`);
|
|
113
|
+
}
|
|
114
|
+
// Reverse path Y — capability_feature ⋈ feature_repo (transitive via ADR 0143).
|
|
115
|
+
const featuresToRepos = new Map();
|
|
116
|
+
for (const fr of featureRepoRows) {
|
|
117
|
+
const fid = String(fr["feature_id"] ?? "");
|
|
118
|
+
const rid = String(fr["repo_id"] ?? "");
|
|
119
|
+
if (fid === "" || rid === "")
|
|
120
|
+
continue;
|
|
121
|
+
if (!featuresToRepos.has(fid))
|
|
122
|
+
featuresToRepos.set(fid, new Set());
|
|
123
|
+
featuresToRepos.get(fid).add(rid);
|
|
124
|
+
}
|
|
125
|
+
for (const cf of capabilityFeatureRows) {
|
|
126
|
+
const fid = String(cf["feature_id"] ?? "");
|
|
127
|
+
const cid = String(cf["capability_id"] ?? "");
|
|
128
|
+
if (fid === "" || cid === "")
|
|
129
|
+
continue;
|
|
130
|
+
const repos = featuresToRepos.get(fid);
|
|
131
|
+
if (!repos)
|
|
132
|
+
continue;
|
|
133
|
+
for (const repoId of repos)
|
|
134
|
+
emit(repoId, cid);
|
|
135
|
+
}
|
|
66
136
|
return rows;
|
|
67
137
|
}
|
|
68
138
|
function collectRepoContract(inputs) {
|
|
69
139
|
const rows = [];
|
|
70
140
|
const seen = new Set();
|
|
141
|
+
const contractRows = inputs.contractRows ?? [];
|
|
142
|
+
const knownRepoIds = inputs.knownRepoIds;
|
|
143
|
+
const emit = (repoId, contractId) => {
|
|
144
|
+
if (knownRepoIds !== undefined && !knownRepoIds.has(repoId))
|
|
145
|
+
return;
|
|
146
|
+
const id = `${repoId}__${contractId}`;
|
|
147
|
+
if (seen.has(id))
|
|
148
|
+
return;
|
|
149
|
+
seen.add(id);
|
|
150
|
+
rows.push({ id, repo_id: repoId, contract_id: contractId });
|
|
151
|
+
};
|
|
152
|
+
// Forward path — declared in repo-config contracts.{openapi,proto,avro}[].
|
|
71
153
|
// Pre-compute suffix and basename indexes for fuzzy matching.
|
|
72
154
|
const suffixIndex = new Map();
|
|
73
155
|
const basenameIndex = new Map();
|
|
@@ -96,18 +178,21 @@ function collectRepoContract(inputs) {
|
|
|
96
178
|
inputs.findings.add("orphan", `${cfg.relPath}: contracts.${kind} entry "${entry}" did not match any contract`);
|
|
97
179
|
continue;
|
|
98
180
|
}
|
|
99
|
-
|
|
100
|
-
if (seen.has(edgeId))
|
|
101
|
-
continue;
|
|
102
|
-
seen.add(edgeId);
|
|
103
|
-
rows.push({
|
|
104
|
-
id: edgeId,
|
|
105
|
-
repo_id: cfg.repoId,
|
|
106
|
-
contract_id: id,
|
|
107
|
-
});
|
|
181
|
+
emit(cfg.repoId, id);
|
|
108
182
|
}
|
|
109
183
|
}
|
|
110
184
|
}
|
|
185
|
+
// Reverse path — contracts.source_repo_id denormalisation.
|
|
186
|
+
// Adopters who carry OpenAPI x-source-repo hints (per ADR 0110) or whose
|
|
187
|
+
// contracts builder otherwise populates source_repo_id get one row per
|
|
188
|
+
// (source_repo_id, contract.id) for free.
|
|
189
|
+
for (const c of contractRows) {
|
|
190
|
+
const cid = String(c["id"]);
|
|
191
|
+
const srcRepo = String(c["source_repo_id"] ?? "");
|
|
192
|
+
if (cid === "" || srcRepo === "")
|
|
193
|
+
continue;
|
|
194
|
+
emit(srcRepo, cid);
|
|
195
|
+
}
|
|
111
196
|
return rows;
|
|
112
197
|
}
|
|
113
198
|
//# sourceMappingURL=repo-edges.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"repo-edges.js","sourceRoot":"","sources":["../../../../src/lib/catalogue/builders/repo-edges.ts"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,EAAE;AACF,
|
|
1
|
+
{"version":3,"file":"repo-edges.js","sourceRoot":"","sources":["../../../../src/lib/catalogue/builders/repo-edges.ts"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,EAAE;AACF,gFAAgF;AAChF,4EAA4E;AAC5E,0EAA0E;AAC1E,sEAAsE;AACtE,EAAE;AACF,wEAAwE;AACxE,iEAAiE;AACjE,EAAE;AACF,wBAAwB;AACxB,sDAAsD;AACtD,gEAAgE;AAChE,EAAE;AACF,eAAe;AACf,uDAAuD;AACvD,qDAAqD;AACrD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
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
# Builder contract: see docs/method/methods/catalogue-builder-specification.md.
|
|
46
46
|
# Category taxonomy: see docs/method/methods/product-category-taxonomy.md.
|
|
47
47
|
|
|
48
|
-
schema_version: "2.
|
|
48
|
+
schema_version: "2.12.0"
|
|
49
49
|
schema_owner: "sdd-method"
|
|
50
50
|
schema_status: "canonical"
|
|
51
51
|
# Bump rationale (2.9.0 — additive minor): adds the Track 2 cohort-sweep
|
|
@@ -219,7 +219,7 @@ catalogues:
|
|
|
219
219
|
|
|
220
220
|
glossary_xref:
|
|
221
221
|
primary_key: id
|
|
222
|
-
description: "Edge: cross-domain glossary relationships from glossary-alignment-manifest.yaml."
|
|
222
|
+
description: "Edge: cross-domain glossary relationships from glossary-alignment-manifest.yaml. Per ADR 0158, four walkers ingest into this catalogue: (a) forward declared pair-form {source, target} entries under aliases/conflicts, (b) reverse-method cross_domain_terms (emits references edges per referencer→owner), (c) reverse-method multi-domain conflicts (pair-wise expansion across domains[]), (d) forward-method supersedes (status: superseded entries with superseded_by back-link)."
|
|
223
223
|
foreign_keys:
|
|
224
224
|
- { column: source_id, references: glossary_items.id, nullable: false }
|
|
225
225
|
- { column: target_id, references: glossary_items.id, nullable: false }
|
|
@@ -227,7 +227,21 @@ catalogues:
|
|
|
227
227
|
- { name: id, type: string, nullable: false, description: "Composite: {source_id}__{relation}__{target_id}." }
|
|
228
228
|
- { name: source_id, type: string, nullable: false }
|
|
229
229
|
- { name: target_id, type: string, nullable: false }
|
|
230
|
-
- { name: relation, type: string, nullable: false, description: "alias-of | conflicts-with." }
|
|
230
|
+
- { name: relation, type: string, nullable: false, description: "alias-of | conflicts-with | references | supersedes (extended in schema 2.12.0 per ADR 0158)." }
|
|
231
|
+
|
|
232
|
+
entity_glossary:
|
|
233
|
+
primary_key: id
|
|
234
|
+
description: "Edge: data-model entity → canonical glossary term. Added in schema 2.12.0 per ADR 0158. Source: glossary-alignment-manifest.yaml `models[].entities[]` with status ∈ {aligned, matched_direct} and non-empty glossary_term. PK derives from (domain, entity_name, glossary_item) so same-domain multi-diagram entries collapse to one row; cross-domain entries (e.g. platform-wide conceptual model + domain-specific model) emit one row per domain — legitimate cross-level cataloguing."
|
|
235
|
+
foreign_keys:
|
|
236
|
+
- { column: domain_id, references: domains.id, nullable: false }
|
|
237
|
+
- { column: glossary_item_id, references: glossary_items.id, nullable: false }
|
|
238
|
+
columns:
|
|
239
|
+
- { name: id, type: string, nullable: false, description: "Composite: {domain_id}__{entity_name_slug}__{glossary_item_id}." }
|
|
240
|
+
- { name: domain_id, type: string, nullable: false }
|
|
241
|
+
- { name: entity_name, type: string, nullable: false }
|
|
242
|
+
- { name: glossary_item_id, type: string, nullable: false }
|
|
243
|
+
- { name: status, type: string, nullable: false, description: "aligned | matched_direct. Conflicting statuses within a domain resolve matched_direct > aligned with a divergence finding." }
|
|
244
|
+
- { name: source_sdd_id, type: string, nullable: true, description: "Originating SDD slug. Populated by the aggregator per ADR 0134." }
|
|
231
245
|
|
|
232
246
|
services:
|
|
233
247
|
primary_key: id
|
|
@@ -363,7 +377,7 @@ catalogues:
|
|
|
363
377
|
|
|
364
378
|
events:
|
|
365
379
|
primary_key: id
|
|
366
|
-
description: "Asynchronous messages. Cross-domain events (e.g. shared envelopes) leave domain_id empty."
|
|
380
|
+
description: "Asynchronous messages. Cross-domain events (e.g. shared envelopes) leave domain_id empty. Per ADR 0156 (multi-source ingestion, schema 2.12.0): forward-method canonical source is `contracts/avro/*.avsc` files; reverse-method canonical source is `docs/domains/{domain}/contracts/events/event-catalog.yaml`. YAML wins on name/domain/publisher/transport/consumers; avsc augments schema_path/version. Both paths run and merge by id slug."
|
|
367
381
|
foreign_keys:
|
|
368
382
|
- { column: publisher_service_id, references: services.id, nullable: true }
|
|
369
383
|
- { column: domain_id, references: domains.id, nullable: true }
|
|
@@ -372,8 +386,8 @@ catalogues:
|
|
|
372
386
|
- { name: name, type: string, nullable: false }
|
|
373
387
|
- { name: publisher_service_id, type: string, nullable: true }
|
|
374
388
|
- { name: domain_id, type: string, nullable: true }
|
|
375
|
-
- { name: transport, type: string, nullable: true, description: "kafka | sns | sqs | kinesis | eventbridge | mongodb-change-stream." }
|
|
376
|
-
- { name: schema_path, type: string, nullable: true }
|
|
389
|
+
- { name: transport, type: string, nullable: true, description: "Open string per ADR 0156. Recommended values: kafka | sns | sqs | kinesis | eventbridge | mongodb-change-stream | nats | activemq | rabbitmq | jms | other. Values outside the recommended set emit [finding] convention." }
|
|
390
|
+
- { name: schema_path, type: string, nullable: true, description: "Path to event schema (Avro .avsc or JSON-Schema .json/.schema.json). Nullable — leave empty for loosely-typed events (e.g. ActiveMQ JMS, NATS with payload_schema: {type: object}). Per ADR 0156." }
|
|
377
391
|
- { name: version, type: string, nullable: true }
|
|
378
392
|
- { name: source_sdd_id, type: string, nullable: true, description: "Originating SDD slug. Populated by the aggregator per ADR 0134." }
|
|
379
393
|
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sdd-method/sdd-cli",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"description": "Method-layer CLI for SDD repository lifecycle — init, sync, validate, list, plan, generate-briefing, mcp serve, catalogue {build,aggregate,validate,version}, pack {build,validate}. v0.25.3 ships catalogue schema 2.11.0 (additive minor): relaxes c4_systems.product_id to a nullable FK. Every product is a system, but not every system is a product — external/SaaS systems catalogued as c4_systems (e.g. Salesforce, DocuSign, Zendesk) legitimately have no owning product. The FK + column were nullable: false, so organisation-level aggregation FAILed with dangling-FK errors on c4_systems rows whose product_id is empty (63 such across the bko/latam/masternaut platforms). The FK validator already passes nullable empty values (fk-validator.test.ts \"treats nullable FK with empty value as PASS\"), so no logic change. Builds with populated product_id (e.g. connect, where every c4_system has an owning product) are unaffected — nullable is strictly more permissive. SCHEMA_COMPAT unchanged (still ^2.0.0); backward compatible — existing 2.10.0 catalogues read unchanged, no migration. v0.25.2 fixes a sync bug: bundle.ts inferred is_forward_base from isBundleName (true for ANY known bundle) instead of isForwardBase, so an additive bundle that omits is_forward_base in its manifest — every sdd-method-cut reverse-extension-baseline — was misclassified as a forward base, making `sdd-cli sync` throw \"Forward-base bundle reverse-extension-baseline has no profile mapping\" and blocking adopters from layering the reverse extension over a forward base. Inference now uses isForwardBase (additive bundles correctly resolve to false). v0.25.1 is a conformance patch: v0.25.0's notes advertised that the legacy c4_containers types Infrastructure / External System \"remain recognised-but-WARNed during the 2.x line\", but no code emitted that finding (the builder-spec's \"a conforming builder MUST emit [finding] convention\" was unimplemented). v0.25.1 adds checkContainerTypeAdvisory, wired into both `catalogue build` and `catalogue validate`, emitting a `convention` finding for any c4_containers.type outside the canonical c4_container_type set {Application, Data Store}. It reads the allowed values from the schema enum (no hardcoded list) and self-disables once the enum is bound via column_enums (the 3.0.0 hard-fail path) or removed — handing off cleanly at the major bump with no double-reporting. The validate path has teeth (it fires over an existing catalogues/ dir — e.g. an adopter who upgraded sdd-cli but has not yet rebuilt a catalogue still carrying Infrastructure rows from the old builder, which is the warn-then-enforce migration window ADR 0155 §4.3 relies on before 3.0.0); the build path is defensive (the canonical builder derives type from the C4 macro and cannot emit a legacy value). No schema change; SCHEMA_COMPAT unchanged (^2.0.0); patch release. v0.25.0 ships catalogue schema 2.10.0 (lockstep with sdd-method ADR 0155 — Align C4 Catalogue Capture with Strict C4 Abstractions), bringing the catalogue's C4 layer into line with c4model.com/abstractions. New node catalogue c4_external_systems (C4 L1 external software systems extracted from System_Ext(...) / Container_Ext(...) on L1+L2 mermaid; id = ext-{slug}); new edges persona_c4system (the C4 Person-uses-System relationship, mapping Person(...) actors to personas rows — the C4 Person abstraction reuses Persona) and system_external_dependency (system integrates-with external, from Rel(...) lines, collapsed to system level per ADR 0155 §4.2). New advisory enum c4_container_type = {Application, Data Store}: the c4-containers builder now types ContainerQueue as Data Store (was the non-canonical \"Infrastructure\") and no longer emits Container_Ext as an internal container row (external containers are catalogued as c4_external_systems); the legacy types Infrastructure / External System remain recognised-but-WARNed during the 2.x line and are removed at the 3.0.0 major bump (the enum is intentionally not bound in column_enums until then). The aggregator dedups c4_external_systems by id across SDDs rather than failing the duplicate-PK check — the one narrowly-scoped exception per ADR 0134, since the same external system (e.g. ext-google-maps) is legitimately declared by multiple SDDs; attribute conflicts on a shared id surface as a convention finding. SCHEMA_COMPAT unchanged (still ^2.0.0); additive minor. v0.24.0 ships sdd-mcp Phase 8 — catalogue resources + tools on the read-only MCP server (sdd-method ADR 0128 + ADR 0150). New resources: sdd://catalogue/schema (vendored canonical schema as JSON), sdd://catalogue/metamodel, sdd://catalogue/category-taxonomy, sdd://catalogue (list of built catalogues), and sdd://catalogue/{name} (rows from catalogues/{name}.csv, validated against the schema, distinguishing not-declared from not-built). New tools: query_catalogue_coverage (row count + internal-FK pass), find_products_by_category, find_orphan_rows (broken internal FK targets), and query_edges_for_entity (every edge row referencing an entity). All reuse the existing src/lib/catalogue schema-loader + csv-reader rather than re-parsing; FK checks consider internal FKs only per ADR 0134 (external FKs are validated at aggregation). Markdown resources try the post-IA path (guides/, standards/) then fall back, returning a structured 'run sdd-cli sync' error when absent. v0.23.1 patches v0.23.0: `sdd-cli pack build` now populates source_commit + source_branch in the rendered BUNDLE_MANIFEST.yaml from `git rev-parse HEAD` / `git rev-parse --abbrev-ref HEAD` against the producer-repo working tree, matching sdd-method's build-method-baseline-bundle.sh provenance behaviour. Non-git producer dirs (CI artefact directories etc.) get the sentinel \"uncommitted\" so consumer-side parseManifest (which rejects empty source_commit) still accepts the bundle. Pre-v0.23.1 packs wrote empty strings and were unsyncable — discovered during the contextua-platform Phase 7 first-adopter pilot (ADR 0151) when operations-console refused the first build of contextua-app-context-pack@v0.1.0. v0.23.0 ships the adopter pack producer + consumer surface per sdd-method ADR 0151 (companion plan adopter-bundle-producer-model.md Phases 3a + 3b + 3c). New `pack` verb with build and validate subcommands lets platform-profile adopters (contextua-platform, CXS Connect) produce additive-layer bundles from a context-pack-seed.yaml declaration. The builder validates the seed against the canonical schema, resolves include: directives across files, expands managed_paths (literal + glob against the producer working tree), runs a producer-side leakage check (disjointness with the declared forward base + disjointness with declared forbidden_paths globs), stages the payload tree, emits SHA-256 checksums per managed file, renders BUNDLE_MANIFEST.yaml mirroring the .hbs template shape, and produces <pack-name>-v<semver>.tar.gz + sidecar .sha256. Consumer-side enforcement extends `sdd-cli sync` for the multi-bundle lock chain: requires_forward_base resolution verifies the consumer's lock carries a compatible forward base; requires_pack resolution enforces vertical-extension dependencies with full semver-range support (caret with pre-1.0 narrow per npm convention, tilde, exact pin, >=); the existing cross-bundle path-ownership check now functions for adopter pack names too (consumer-side leakage assertion); produced_by_adopter / scope / requires_forward_base / requires_pack carry from the manifest into the lock entry as additive optional fields preserving lock_version: 2. New `sdd-cli sync --config <path>` reads a multi-bundle method-baseline.config.yaml (ordered bundles[].source list) and iterates each through the single-bundle sync engine — mutually exclusive with --bundle. `sdd-cli list` surfaces adopter pack provenance: forward-base version in the repo line plus indented `+ <pack-name> <version> from <adopter-repo> [requires <base-pack>]` lines beneath; --verbose adds per-bundle managed_path counts; JSON format adds a per-repo bundles[] array carrying full provenance. Type relaxation: BundleManifest.bundleName and BundleEntry.name widened from the closed BundleName enum to string (adopter pack names are arbitrary per ADR 0151); the closed enum still applies to sdd-method forward bases, validated at parse time only when is_forward_base: true. BundleManifest parser migrated from line-by-line scalar regex to the existing yaml library dependency for nested requires_forward_base / requires_pack object parsing. v0.22.0 bundles three landed scopes. (a) ADR 0141 Phase 5 — `--agent-harness` flag on init/sync now accepts `github-copilot-cli` as the second reference implementation alongside the `claude-code` default; Copilot CLI sync writes `.github/hooks/{pre-tool-use,session-start}.json` with the same sentinel-based ownership pattern as the Claude Code `.claude/settings.json` block. Default changes from \"unset\" to `claude-code`; existing adopters on v0.12.2+ get sentinel-tagged-in-place via the dedupe pre-pass. Unknown harness values fail loudly instead of warning. (b) ADR 0148 Phase 4 — init and sync now emit `agent-instructions.md` at the SDD root (harness-neutral, fully method-managed, unconditional overwrite) plus a thin harness wrapper (`CLAUDE.md` under claude-code, `AGENTS.md` under github-copilot-cli) with `<!-- method-managed: begin/end -->` markers; adopter content around the marker block survives sync via the existing `writeMarkedBlockFile` machinery. The v0.3–v0.21 `generate-claude-md` verb + native rich-content renderer retire; the new `generate-briefing` verb regenerates both files from the on-disk templates for the no-bundle-sync case. Older bundles pre-dating ADR 0148 templates sync gracefully with a \"Skipped\" log line. Existing repos carrying a hand-rolled CLAUDE.md without markers will see the wrapper rewrite refused on first sync; pass --allow-overwrite after rehoming any custom content (covered in the upstream agent-instructions-migration-guide). (c) Catalogue schema 2.9.0 (lockstep with sdd-method v0.10.0 reverse-extension-baseline v0.9.0) carrying the Track 2 cohort-sweep field additions per content/plans/v0-9-0-cohort-sweep-derived-bundle.md: capabilities now carries data_subset (foundational/synthesis-tier keying axis) + slice_scope (multi-app-group capability slicing — same capability_id may appear with distinct slice_scope values, row identity becomes (id, slice_scope)); new per-feature edge catalogue feature_subscription_channels built from reverse-evidence/feature-grounding-evidence.yaml subscription_channels: entries (AppSync WebSocket / Pekko WS / MQTT / SSE channel layer, peer of graphql_operations: per resolved §1, kebab name + transport + evidence + optional payload_ref); new per-SDD edge catalogue product_platform_dependencies built from the product-scoped platform_dependencies: block in the same evidence file; new federated edge catalogue cross_sdd_platform_capability derived by the aggregator joining product_platform_dependencies × capability_service on target_service_id == service_id, emitting one row per resolved (consuming-product, platform-capability) pair with orphan findings for unresolved references. SCHEMA_COMPAT unchanged (still ^2.0.0); additive minor across both new catalogues and capability column additions. v0.21.0 ships catalogue schema 2.8.0 closing the long-tail contract-consumer mapping gap (K-03a). The contracts builder now also walks the platform-profile layout `docs/domains/<dom>/contracts/{openapi,proto,avro}/<file>.<ext>` documented in reverse/workflows/contract.md, in addition to the canonical `contracts/<subdir>/<dom>/<file>.<ext>` layout — backward-compatible additive change for federated SDDs that don't carry per-domain contracts. Adds a new buildServiceContractConsumes builder that parses each service's `repos/<service>/docs/service-architecture.md` External Interfaces table, reads Outbound rows, and emits `service_contract` rows with role=consumes via an adopter-supplied `.sdd/service-contract-aliases.yaml` (case-insensitive interface_aliases + interface_contains substring tier + same_product_inference templates with `{prefix}` substitution). Schema 2.8.0 marks service_contract.contract_id as external:true so federated SDDs can emit consumes rows pointing to platform-root contracts; aggregator validates the merged catalogue. Resolution failures become convention findings, not FK-invalid rows. Pattern documented in sdd-method ADR 0147. SCHEMA_COMPAT unchanged (still ^2.0.0). v0.19.0 ships catalogue schema 2.6.0 (lockstep with sdd-method): adds optional `sub_integrations:` array on integration-manifest.yaml per ADR 0144. Multi-provider integration monoliths (modernisation-in-flight or intentional permanent gateways brokering N providers) can declare each provider; the integrations.ts builder emits one integrations.csv row per sub_integration with parent_product_id = umbrella SDD's integrationId. Uses the existing parent_product_id column — no new schema columns. Backward compatible (optional field); SDDs without sub_integrations emit identical output to pre-2.6.0. Originating motivation: connect's sdd-camera-platform-legacy covering Surfsight v2 + VisionTrack v1/v2 + SureCam in one Spring-Boot codebase. SCHEMA_COMPAT unchanged (still ^2.0.0). v0.18.0 ships catalogue schema 2.5.0 (lockstep with sdd-method): adds feature-grounding source per ADR 0143. Canonical builder walks `docs/domains/<dom>/design/<capability>/feature-grounding.md` (platform-profile) and `docs/design/integration/feature-grounding.md` (integration-product), parses the markdown table form, and emits features.csv rows (source: feature-grounding, capability-owned) plus capability_feature / feature_repo / feature_service edges derived from the table columns. Optional per-SDD `.sdd/feature-grounding-aliases.yaml` translates display names (class names, file basenames) to canonical service / repo ids. SCHEMA_COMPAT unchanged (still ^2.0.0). v0.17.0 enables multi-level federation: organisation-level SDDs can now aggregate from organisation-level children (e.g. CXS aggregating sdd-mining, sdd-latam) via optional level: organisation field on siblings, skipping manifest requirements for pure orchestration repos. v0.16.0 adds organisation-profile support for system-of-systems aggregators (e.g. CXS aggregating sdd-connect, sdd-mining, sdd-latam), closing the gap for organisation-level SDD manifests. v0.15.0 ships catalogue schema 2.4.0 (lockstep with sdd-method): adds feature_contract derived edge (forward: capability_feature ⋈ capability_contract; reverse: feature_service ⋈ service_contract) closing the Capability → Feature → Contract chain pre-implementation, plus the new DomainModel entity per ADR 0142 with domain_models / capability_domain_model / feature_domain_model catalogues sourced from a new traceability.domain_model manifest field (forward) or docs/domains/*/architecture/data-model.mermaid.md file-system scan (reverse). Platform-profile only for domain_models; the metamodel now also documents non-catalogued method artefacts (work orders, discovery stories, execution stories, traceability manifests) so it's a complete reference for the forward SDD method's artefact set. SCHEMA_COMPAT unchanged (still ^2.0.0). v0.14.1 patches v0.14.0's domains-builder fix: products-builder now also clears domain_id for non-platform-profile rows even when manifest.domainId is declared. v0.14.0 stopped emitting umbrella domain rows but products.domain_id (and the applications.csv filtered view) still pointed at them, dangling at FK validation. Per ADR 0136 + schema description for products.domain_id, app/integration/support products do not have a primary domain — the builder now honours that statement regardless of manifest declaration, and emits an inferred finding when a manifest-declared value is overridden. v0.14.0 ships two post-v0.9.0-release fixes surfaced by the connect-cohort sync: (1) sync now enforces minimum_sdd_cli_version declared by bundle manifests — previously the orchestration check existed only in the shell sync script and was a no-op when adopters used `sdd-cli sync`, leaving the safety net for stale-CLI scenarios silently absent; (2) per ADR 0136 (App and Integration Products Do Not Belong to a Primary Domain), the domains.ts catalogue builder now skips row emission for non-platform-profile SDDs — application-product and integration-product SDDs that have a docs/domains/<umbrella>/ subdirectory as a structural-organisation convention no longer emit a member-declaration row that collides on PK at aggregation against the canonical platform-profile contribution. v0.13.2 fixed the aggregator's sibling-vendored-schema cross-check to use semver range satisfaction against SCHEMA_COMPAT.catalogue_schema (^2.0.0) instead of strict equality — siblings vendored at lower minor versions inside the same major are now accepted, unblocking aggregation across federated cohorts where the canonical schema is ahead of the bundled schema. v0.13.0 ships the feature-tree.md bullet parser per sdd-method schema 2.2.0 + plan extract-feature-tree-bullets.md: application-product builders now emit features.csv rows with source: \"feature-tree\" from per-app feature-tree.md bullets, populating the previously-empty edge catalogues (persona_feature, journey_feature) for portfolio monoliths whose feature inventory lives in the bullet form. Adds the optional runway column on features.csv with adopter-owned controlled-vocabulary validation via feature-runway-vocabulary.yaml at the SDD root. v0.12.2 dedupes equivalent unmarked adopter PreToolUse entries on settings.json upsert. v0.12.0 extends the integration profileType enum to 11 values (per sdd-method ADR 0137) and fixes the init→sync conflict. v0.11.0 shipped the canonical catalogue surface per ADR 0134 + schema 2.1.0.",
|
|
3
|
+
"version": "0.26.0",
|
|
4
|
+
"description": "Method-layer CLI for SDD repository lifecycle — init, sync, validate, list, plan, generate-briefing, mcp serve, catalogue {build,aggregate,validate,version}, pack {build,validate}. v0.26.0 ships catalogue schema 2.12.0 (additive minor) implementing three ADRs in one release: ADR 0156 (Event Catalogue Multi-Source Ingestion) adds the reverse-method `docs/domains/<domain>/contracts/events/event-catalog.yaml` walker alongside the existing forward avsc path — YAML wins on name/domain/publisher/transport/consumers; avsc augments schema_path/version when YAML is null. Transport enum opens (no hardcoded \"nats\" default); recommended values surface a convention finding when violated. service_event edges populate from YAML's publisher + consumers[] in addition to repo-config events.produces/consumes. ADR 0157 (Forward-Declared / Reverse-Derived Parity for Edge Catalogues) codifies the principle that every edge with a forward declared source MUST also have a reverse derived source, applied here to repo_capability + repo_contract: reverse derivations add `capability_service ⋈ services.primary_repo_id` (universal Path X) and `capability_feature ⋈ feature_repo` (Path Y via ADR 0143 evidence) for repo_capability, and `contracts.source_repo_id` denormalisation for repo_contract — alongside the existing forward-declared `additional_context:` / `repo-config.contracts:` paths. The orphan-finding pattern surfaces when reverse paths can't derive (e.g. capability_service rows referencing services with empty primary_repo_id). ADR 0158 (Glossary Cross-Reference Multi-Source Ingestion) extends glossary_xref ingestion from one walker to four (forward declared pair-form, reverse cross_domain_terms, reverse multi-domain conflicts with field-inspection disambiguation, forward supersedes via models[].entities[].superseded_by) plus introduces a new sibling edge catalogue entity_glossary for data-model-entity → glossary-term mappings (status ∈ {aligned, matched_direct}). Dedupe by (domain, entity_name, glossary_item_id) collapses same-domain multi-diagram entries while preserving cross-domain cross-level cataloguing. glossary_xref.relation enum extends from {alias-of, conflicts-with} to {alias-of, conflicts-with, references, supersedes}. SCHEMA_COMPAT unchanged (^2.0.0); additive minor across all three ADRs. Cross-adopter regression verified: contextua's existing forward-path rows (12 repo_contract, 78 events, 42 service_event) preserved exactly; new reverse-path additions (+30 repo_capability via Path X; +10 entity_glossary). v0.25.3 ships catalogue schema 2.11.0 (additive minor): relaxes c4_systems.product_id to a nullable FK. Every product is a system, but not every system is a product — external/SaaS systems catalogued as c4_systems (e.g. Salesforce, DocuSign, Zendesk) legitimately have no owning product. The FK + column were nullable: false, so organisation-level aggregation FAILed with dangling-FK errors on c4_systems rows whose product_id is empty (63 such across the bko/latam/masternaut platforms). The FK validator already passes nullable empty values (fk-validator.test.ts \"treats nullable FK with empty value as PASS\"), so no logic change. Builds with populated product_id (e.g. connect, where every c4_system has an owning product) are unaffected — nullable is strictly more permissive. SCHEMA_COMPAT unchanged (still ^2.0.0); backward compatible — existing 2.10.0 catalogues read unchanged, no migration. v0.25.2 fixes a sync bug: bundle.ts inferred is_forward_base from isBundleName (true for ANY known bundle) instead of isForwardBase, so an additive bundle that omits is_forward_base in its manifest — every sdd-method-cut reverse-extension-baseline — was misclassified as a forward base, making `sdd-cli sync` throw \"Forward-base bundle reverse-extension-baseline has no profile mapping\" and blocking adopters from layering the reverse extension over a forward base. Inference now uses isForwardBase (additive bundles correctly resolve to false). v0.25.1 is a conformance patch: v0.25.0's notes advertised that the legacy c4_containers types Infrastructure / External System \"remain recognised-but-WARNed during the 2.x line\", but no code emitted that finding (the builder-spec's \"a conforming builder MUST emit [finding] convention\" was unimplemented). v0.25.1 adds checkContainerTypeAdvisory, wired into both `catalogue build` and `catalogue validate`, emitting a `convention` finding for any c4_containers.type outside the canonical c4_container_type set {Application, Data Store}. It reads the allowed values from the schema enum (no hardcoded list) and self-disables once the enum is bound via column_enums (the 3.0.0 hard-fail path) or removed — handing off cleanly at the major bump with no double-reporting. The validate path has teeth (it fires over an existing catalogues/ dir — e.g. an adopter who upgraded sdd-cli but has not yet rebuilt a catalogue still carrying Infrastructure rows from the old builder, which is the warn-then-enforce migration window ADR 0155 §4.3 relies on before 3.0.0); the build path is defensive (the canonical builder derives type from the C4 macro and cannot emit a legacy value). No schema change; SCHEMA_COMPAT unchanged (^2.0.0); patch release. v0.25.0 ships catalogue schema 2.10.0 (lockstep with sdd-method ADR 0155 — Align C4 Catalogue Capture with Strict C4 Abstractions), bringing the catalogue's C4 layer into line with c4model.com/abstractions. New node catalogue c4_external_systems (C4 L1 external software systems extracted from System_Ext(...) / Container_Ext(...) on L1+L2 mermaid; id = ext-{slug}); new edges persona_c4system (the C4 Person-uses-System relationship, mapping Person(...) actors to personas rows — the C4 Person abstraction reuses Persona) and system_external_dependency (system integrates-with external, from Rel(...) lines, collapsed to system level per ADR 0155 §4.2). New advisory enum c4_container_type = {Application, Data Store}: the c4-containers builder now types ContainerQueue as Data Store (was the non-canonical \"Infrastructure\") and no longer emits Container_Ext as an internal container row (external containers are catalogued as c4_external_systems); the legacy types Infrastructure / External System remain recognised-but-WARNed during the 2.x line and are removed at the 3.0.0 major bump (the enum is intentionally not bound in column_enums until then). The aggregator dedups c4_external_systems by id across SDDs rather than failing the duplicate-PK check — the one narrowly-scoped exception per ADR 0134, since the same external system (e.g. ext-google-maps) is legitimately declared by multiple SDDs; attribute conflicts on a shared id surface as a convention finding. SCHEMA_COMPAT unchanged (still ^2.0.0); additive minor. v0.24.0 ships sdd-mcp Phase 8 — catalogue resources + tools on the read-only MCP server (sdd-method ADR 0128 + ADR 0150). New resources: sdd://catalogue/schema (vendored canonical schema as JSON), sdd://catalogue/metamodel, sdd://catalogue/category-taxonomy, sdd://catalogue (list of built catalogues), and sdd://catalogue/{name} (rows from catalogues/{name}.csv, validated against the schema, distinguishing not-declared from not-built). New tools: query_catalogue_coverage (row count + internal-FK pass), find_products_by_category, find_orphan_rows (broken internal FK targets), and query_edges_for_entity (every edge row referencing an entity). All reuse the existing src/lib/catalogue schema-loader + csv-reader rather than re-parsing; FK checks consider internal FKs only per ADR 0134 (external FKs are validated at aggregation). Markdown resources try the post-IA path (guides/, standards/) then fall back, returning a structured 'run sdd-cli sync' error when absent. v0.23.1 patches v0.23.0: `sdd-cli pack build` now populates source_commit + source_branch in the rendered BUNDLE_MANIFEST.yaml from `git rev-parse HEAD` / `git rev-parse --abbrev-ref HEAD` against the producer-repo working tree, matching sdd-method's build-method-baseline-bundle.sh provenance behaviour. Non-git producer dirs (CI artefact directories etc.) get the sentinel \"uncommitted\" so consumer-side parseManifest (which rejects empty source_commit) still accepts the bundle. Pre-v0.23.1 packs wrote empty strings and were unsyncable — discovered during the contextua-platform Phase 7 first-adopter pilot (ADR 0151) when operations-console refused the first build of contextua-app-context-pack@v0.1.0. v0.23.0 ships the adopter pack producer + consumer surface per sdd-method ADR 0151 (companion plan adopter-bundle-producer-model.md Phases 3a + 3b + 3c). New `pack` verb with build and validate subcommands lets platform-profile adopters (contextua-platform, CXS Connect) produce additive-layer bundles from a context-pack-seed.yaml declaration. The builder validates the seed against the canonical schema, resolves include: directives across files, expands managed_paths (literal + glob against the producer working tree), runs a producer-side leakage check (disjointness with the declared forward base + disjointness with declared forbidden_paths globs), stages the payload tree, emits SHA-256 checksums per managed file, renders BUNDLE_MANIFEST.yaml mirroring the .hbs template shape, and produces <pack-name>-v<semver>.tar.gz + sidecar .sha256. Consumer-side enforcement extends `sdd-cli sync` for the multi-bundle lock chain: requires_forward_base resolution verifies the consumer's lock carries a compatible forward base; requires_pack resolution enforces vertical-extension dependencies with full semver-range support (caret with pre-1.0 narrow per npm convention, tilde, exact pin, >=); the existing cross-bundle path-ownership check now functions for adopter pack names too (consumer-side leakage assertion); produced_by_adopter / scope / requires_forward_base / requires_pack carry from the manifest into the lock entry as additive optional fields preserving lock_version: 2. New `sdd-cli sync --config <path>` reads a multi-bundle method-baseline.config.yaml (ordered bundles[].source list) and iterates each through the single-bundle sync engine — mutually exclusive with --bundle. `sdd-cli list` surfaces adopter pack provenance: forward-base version in the repo line plus indented `+ <pack-name> <version> from <adopter-repo> [requires <base-pack>]` lines beneath; --verbose adds per-bundle managed_path counts; JSON format adds a per-repo bundles[] array carrying full provenance. Type relaxation: BundleManifest.bundleName and BundleEntry.name widened from the closed BundleName enum to string (adopter pack names are arbitrary per ADR 0151); the closed enum still applies to sdd-method forward bases, validated at parse time only when is_forward_base: true. BundleManifest parser migrated from line-by-line scalar regex to the existing yaml library dependency for nested requires_forward_base / requires_pack object parsing. v0.22.0 bundles three landed scopes. (a) ADR 0141 Phase 5 — `--agent-harness` flag on init/sync now accepts `github-copilot-cli` as the second reference implementation alongside the `claude-code` default; Copilot CLI sync writes `.github/hooks/{pre-tool-use,session-start}.json` with the same sentinel-based ownership pattern as the Claude Code `.claude/settings.json` block. Default changes from \"unset\" to `claude-code`; existing adopters on v0.12.2+ get sentinel-tagged-in-place via the dedupe pre-pass. Unknown harness values fail loudly instead of warning. (b) ADR 0148 Phase 4 — init and sync now emit `agent-instructions.md` at the SDD root (harness-neutral, fully method-managed, unconditional overwrite) plus a thin harness wrapper (`CLAUDE.md` under claude-code, `AGENTS.md` under github-copilot-cli) with `<!-- method-managed: begin/end -->` markers; adopter content around the marker block survives sync via the existing `writeMarkedBlockFile` machinery. The v0.3–v0.21 `generate-claude-md` verb + native rich-content renderer retire; the new `generate-briefing` verb regenerates both files from the on-disk templates for the no-bundle-sync case. Older bundles pre-dating ADR 0148 templates sync gracefully with a \"Skipped\" log line. Existing repos carrying a hand-rolled CLAUDE.md without markers will see the wrapper rewrite refused on first sync; pass --allow-overwrite after rehoming any custom content (covered in the upstream agent-instructions-migration-guide). (c) Catalogue schema 2.9.0 (lockstep with sdd-method v0.10.0 reverse-extension-baseline v0.9.0) carrying the Track 2 cohort-sweep field additions per content/plans/v0-9-0-cohort-sweep-derived-bundle.md: capabilities now carries data_subset (foundational/synthesis-tier keying axis) + slice_scope (multi-app-group capability slicing — same capability_id may appear with distinct slice_scope values, row identity becomes (id, slice_scope)); new per-feature edge catalogue feature_subscription_channels built from reverse-evidence/feature-grounding-evidence.yaml subscription_channels: entries (AppSync WebSocket / Pekko WS / MQTT / SSE channel layer, peer of graphql_operations: per resolved §1, kebab name + transport + evidence + optional payload_ref); new per-SDD edge catalogue product_platform_dependencies built from the product-scoped platform_dependencies: block in the same evidence file; new federated edge catalogue cross_sdd_platform_capability derived by the aggregator joining product_platform_dependencies × capability_service on target_service_id == service_id, emitting one row per resolved (consuming-product, platform-capability) pair with orphan findings for unresolved references. SCHEMA_COMPAT unchanged (still ^2.0.0); additive minor across both new catalogues and capability column additions. v0.21.0 ships catalogue schema 2.8.0 closing the long-tail contract-consumer mapping gap (K-03a). The contracts builder now also walks the platform-profile layout `docs/domains/<dom>/contracts/{openapi,proto,avro}/<file>.<ext>` documented in reverse/workflows/contract.md, in addition to the canonical `contracts/<subdir>/<dom>/<file>.<ext>` layout — backward-compatible additive change for federated SDDs that don't carry per-domain contracts. Adds a new buildServiceContractConsumes builder that parses each service's `repos/<service>/docs/service-architecture.md` External Interfaces table, reads Outbound rows, and emits `service_contract` rows with role=consumes via an adopter-supplied `.sdd/service-contract-aliases.yaml` (case-insensitive interface_aliases + interface_contains substring tier + same_product_inference templates with `{prefix}` substitution). Schema 2.8.0 marks service_contract.contract_id as external:true so federated SDDs can emit consumes rows pointing to platform-root contracts; aggregator validates the merged catalogue. Resolution failures become convention findings, not FK-invalid rows. Pattern documented in sdd-method ADR 0147. SCHEMA_COMPAT unchanged (still ^2.0.0). v0.19.0 ships catalogue schema 2.6.0 (lockstep with sdd-method): adds optional `sub_integrations:` array on integration-manifest.yaml per ADR 0144. Multi-provider integration monoliths (modernisation-in-flight or intentional permanent gateways brokering N providers) can declare each provider; the integrations.ts builder emits one integrations.csv row per sub_integration with parent_product_id = umbrella SDD's integrationId. Uses the existing parent_product_id column — no new schema columns. Backward compatible (optional field); SDDs without sub_integrations emit identical output to pre-2.6.0. Originating motivation: connect's sdd-camera-platform-legacy covering Surfsight v2 + VisionTrack v1/v2 + SureCam in one Spring-Boot codebase. SCHEMA_COMPAT unchanged (still ^2.0.0). v0.18.0 ships catalogue schema 2.5.0 (lockstep with sdd-method): adds feature-grounding source per ADR 0143. Canonical builder walks `docs/domains/<dom>/design/<capability>/feature-grounding.md` (platform-profile) and `docs/design/integration/feature-grounding.md` (integration-product), parses the markdown table form, and emits features.csv rows (source: feature-grounding, capability-owned) plus capability_feature / feature_repo / feature_service edges derived from the table columns. Optional per-SDD `.sdd/feature-grounding-aliases.yaml` translates display names (class names, file basenames) to canonical service / repo ids. SCHEMA_COMPAT unchanged (still ^2.0.0). v0.17.0 enables multi-level federation: organisation-level SDDs can now aggregate from organisation-level children (e.g. CXS aggregating sdd-mining, sdd-latam) via optional level: organisation field on siblings, skipping manifest requirements for pure orchestration repos. v0.16.0 adds organisation-profile support for system-of-systems aggregators (e.g. CXS aggregating sdd-connect, sdd-mining, sdd-latam), closing the gap for organisation-level SDD manifests. v0.15.0 ships catalogue schema 2.4.0 (lockstep with sdd-method): adds feature_contract derived edge (forward: capability_feature ⋈ capability_contract; reverse: feature_service ⋈ service_contract) closing the Capability → Feature → Contract chain pre-implementation, plus the new DomainModel entity per ADR 0142 with domain_models / capability_domain_model / feature_domain_model catalogues sourced from a new traceability.domain_model manifest field (forward) or docs/domains/*/architecture/data-model.mermaid.md file-system scan (reverse). Platform-profile only for domain_models; the metamodel now also documents non-catalogued method artefacts (work orders, discovery stories, execution stories, traceability manifests) so it's a complete reference for the forward SDD method's artefact set. SCHEMA_COMPAT unchanged (still ^2.0.0). v0.14.1 patches v0.14.0's domains-builder fix: products-builder now also clears domain_id for non-platform-profile rows even when manifest.domainId is declared. v0.14.0 stopped emitting umbrella domain rows but products.domain_id (and the applications.csv filtered view) still pointed at them, dangling at FK validation. Per ADR 0136 + schema description for products.domain_id, app/integration/support products do not have a primary domain — the builder now honours that statement regardless of manifest declaration, and emits an inferred finding when a manifest-declared value is overridden. v0.14.0 ships two post-v0.9.0-release fixes surfaced by the connect-cohort sync: (1) sync now enforces minimum_sdd_cli_version declared by bundle manifests — previously the orchestration check existed only in the shell sync script and was a no-op when adopters used `sdd-cli sync`, leaving the safety net for stale-CLI scenarios silently absent; (2) per ADR 0136 (App and Integration Products Do Not Belong to a Primary Domain), the domains.ts catalogue builder now skips row emission for non-platform-profile SDDs — application-product and integration-product SDDs that have a docs/domains/<umbrella>/ subdirectory as a structural-organisation convention no longer emit a member-declaration row that collides on PK at aggregation against the canonical platform-profile contribution. v0.13.2 fixed the aggregator's sibling-vendored-schema cross-check to use semver range satisfaction against SCHEMA_COMPAT.catalogue_schema (^2.0.0) instead of strict equality — siblings vendored at lower minor versions inside the same major are now accepted, unblocking aggregation across federated cohorts where the canonical schema is ahead of the bundled schema. v0.13.0 ships the feature-tree.md bullet parser per sdd-method schema 2.2.0 + plan extract-feature-tree-bullets.md: application-product builders now emit features.csv rows with source: \"feature-tree\" from per-app feature-tree.md bullets, populating the previously-empty edge catalogues (persona_feature, journey_feature) for portfolio monoliths whose feature inventory lives in the bullet form. Adds the optional runway column on features.csv with adopter-owned controlled-vocabulary validation via feature-runway-vocabulary.yaml at the SDD root. v0.12.2 dedupes equivalent unmarked adopter PreToolUse entries on settings.json upsert. v0.12.0 extends the integration profileType enum to 11 values (per sdd-method ADR 0137) and fixes the init→sync conflict. v0.11.0 shipped the canonical catalogue surface per ADR 0134 + schema 2.1.0.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"sdd-method",
|
|
7
7
|
"sdd",
|