@radicaltools/cli 0.3.0 → 0.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (57) hide show
  1. package/README.md +121 -16
  2. package/dist/hub-catalogue/concern/concern-api-collections.radical +1136 -0
  3. package/dist/hub-catalogue/concern/concern-api-errors.radical +1180 -0
  4. package/dist/hub-catalogue/concern/concern-api-evolution.radical +449 -210
  5. package/dist/hub-catalogue/concern/concern-api-idempotency.radical +1218 -0
  6. package/dist/hub-catalogue/concern/concern-api-resource-design.radical +1102 -0
  7. package/dist/hub-catalogue/concern/concern-api-style-guide.radical +1210 -0
  8. package/dist/hub-catalogue/concern/concern-architecture-style.radical +287 -131
  9. package/dist/hub-catalogue/concern/concern-audit-trail.radical +1096 -0
  10. package/dist/hub-catalogue/concern/concern-authentication.radical +247 -37
  11. package/dist/hub-catalogue/concern/concern-authorization.radical +311 -89
  12. package/dist/hub-catalogue/concern/concern-availability.radical +287 -63
  13. package/dist/hub-catalogue/concern/concern-backend-stack.radical +300 -381
  14. package/dist/hub-catalogue/concern/concern-backup-recovery.radical +385 -129
  15. package/dist/hub-catalogue/concern/concern-caching.radical +1294 -0
  16. package/dist/hub-catalogue/concern/concern-capacity.radical +194 -81
  17. package/dist/hub-catalogue/concern/concern-code-documentation.radical +1397 -0
  18. package/dist/hub-catalogue/concern/concern-code-quality-gate.radical +1409 -0
  19. package/dist/hub-catalogue/concern/concern-code-review-branching.radical +1416 -0
  20. package/dist/hub-catalogue/concern/concern-code-style.radical +1058 -0
  21. package/dist/hub-catalogue/concern/concern-communication-style.radical +473 -167
  22. package/dist/hub-catalogue/concern/concern-data-classification.radical +970 -0
  23. package/dist/hub-catalogue/concern/concern-data-consistency.radical +339 -308
  24. package/dist/hub-catalogue/concern/concern-data-store.radical +480 -158
  25. package/dist/hub-catalogue/concern/concern-decomposition.radical +260 -85
  26. package/dist/hub-catalogue/concern/concern-definition-of-done.radical +1214 -0
  27. package/dist/hub-catalogue/concern/concern-delivery-metrics.radical +966 -0
  28. package/dist/hub-catalogue/concern/concern-dependency-hygiene.radical +1345 -0
  29. package/dist/hub-catalogue/concern/concern-deployment.radical +343 -92
  30. package/dist/hub-catalogue/concern/concern-encryption.radical +339 -76
  31. package/dist/hub-catalogue/concern/concern-error-handling-logging.radical +1197 -0
  32. package/dist/hub-catalogue/concern/concern-eu-dora.radical +1321 -0
  33. package/dist/hub-catalogue/concern/concern-frontend-stack.radical +467 -160
  34. package/dist/hub-catalogue/concern/concern-incident-management.radical +1204 -0
  35. package/dist/hub-catalogue/concern/concern-infrastructure.radical +1300 -268
  36. package/dist/hub-catalogue/concern/concern-integration-resilience.radical +88 -51
  37. package/dist/hub-catalogue/concern/concern-messaging.radical +173 -140
  38. package/dist/hub-catalogue/concern/concern-module-boundaries.radical +162 -159
  39. package/dist/hub-catalogue/concern/concern-observability.radical +224 -275
  40. package/dist/hub-catalogue/concern/concern-operational-readiness.radical +1249 -0
  41. package/dist/hub-catalogue/concern/concern-personal-data.radical +637 -122
  42. package/dist/hub-catalogue/concern/concern-quality-priorities.radical +1091 -0
  43. package/dist/hub-catalogue/concern/concern-rate-limiting.radical +433 -141
  44. package/dist/hub-catalogue/concern/concern-release-versioning.radical +1358 -0
  45. package/dist/hub-catalogue/concern/concern-retention.radical +1399 -0
  46. package/dist/hub-catalogue/concern/concern-secrets.radical +332 -74
  47. package/dist/hub-catalogue/concern/concern-secure-coding.radical +1379 -0
  48. package/dist/hub-catalogue/concern/concern-secure-development.radical +1245 -0
  49. package/dist/hub-catalogue/concern/concern-security-detection.radical +1153 -0
  50. package/dist/hub-catalogue/concern/concern-supply-chain.radical +257 -183
  51. package/dist/hub-catalogue/concern/concern-technical-debt.radical +1450 -0
  52. package/dist/hub-catalogue/concern/concern-technology-lifecycle.radical +1145 -0
  53. package/dist/hub-catalogue/concern/concern-tenant-isolation.radical +271 -137
  54. package/dist/hub-catalogue/concern/concern-test-strategy.radical +243 -224
  55. package/dist/hub-catalogue/concern/concern-threat-modelling.radical +1143 -0
  56. package/dist/index.js +3680 -2074
  57. package/package.json +1 -1
@@ -3,7 +3,7 @@
3
3
  "id": "concern-api-evolution",
4
4
  "category": "concern",
5
5
  "name": "API evolution",
6
- "description": "An API other systems call: how its contract is written, how it may change without breaking its callers, how versions are named, and how long an old one lives.",
6
+ "description": "An API that systems outside yours call: how its contract is written, how it may change without breaking its callers, how versions are named, and how long an old one lives. Contracts between your own parts are decided in the Communication style pack.",
7
7
  "tags": [
8
8
  "api",
9
9
  "versioning",
@@ -17,14 +17,18 @@
17
17
  "id": "api-evolution",
18
18
  "trigger": "LIST RELATIONS WHERE source.external = true AND target.external != true AND (target.type = \"system\" OR target.type = \"container\" OR target.type = \"webapp\" OR target.type = \"component\")",
19
19
  "applyTo": "target",
20
- "why": "other systems call these elements, so how their API may change without breaking them has to be decided.",
21
- "group": "integration"
20
+ "why": "systems outside yours call these elements, so how their API may change without breaking them has to be decided.",
21
+ "group": "api"
22
22
  },
23
23
  "sources": [
24
24
  {
25
25
  "title": "OpenAPI Specification (latest)",
26
26
  "url": "https://spec.openapis.org/oas/latest.html"
27
27
  },
28
+ {
29
+ "title": "GraphQL Specification (October 2021), @deprecated",
30
+ "url": "https://spec.graphql.org/October2021/#sec--deprecated"
31
+ },
28
32
  {
29
33
  "title": "RFC 8594, The Sunset HTTP Header Field",
30
34
  "url": "https://www.rfc-editor.org/rfc/rfc8594"
@@ -48,6 +52,10 @@
48
52
  {
49
53
  "title": "microservices.io, Service Integration Contract Test",
50
54
  "url": "https://microservices.io/patterns/testing/service-integration-contract-test.html"
55
+ },
56
+ {
57
+ "title": "Pact documentation",
58
+ "url": "https://docs.pact.io/"
51
59
  }
52
60
  ],
53
61
  "templateParams": [
@@ -66,7 +74,7 @@
66
74
  {
67
75
  "value": "graphql",
68
76
  "label": "a GraphQL schema",
69
- "description": "One endpoint where callers choose the fields they read; it evolves by adding fields and marking old ones @deprecated, checked with graphql-inspector. Pick it when many clients need different shapes of the same data, usually front ends."
77
+ "description": "One endpoint where callers choose the fields they read; it evolves by adding fields and marking old ones @deprecated, checked with graphql-inspector. Pick it when many clients need different shapes of the same data, usually front ends; it goes with no versions, deprecation field by field."
70
78
  },
71
79
  {
72
80
  "value": "protobuf",
@@ -75,41 +83,22 @@
75
83
  }
76
84
  ]
77
85
  },
78
- {
79
- "key": "CHANGE",
80
- "title": "Changes",
81
- "label": "How may the API change?",
82
- "hint": "A caller you do not release with cannot change on the day you do; this decides whether a breaking change is ever allowed in place.",
83
- "defaultValue": "additive",
84
- "options": [
85
- {
86
- "value": "additive",
87
- "label": "additive only, breaks in a new version",
88
- "description": "Every release only adds; anything that would break a caller goes into a new version served beside the old one until its sunset. Pick it when any caller is released on its own schedule: partners, installed mobile apps, other teams' services."
89
- },
90
- {
91
- "value": "instep",
92
- "label": "in step with its callers",
93
- "description": "The API and every caller change in one release, so a breaking change is allowed. Pick it only when every caller is yours, built in the same repository or release train, and no old client stays installed (no mobile app, no partner)."
94
- }
95
- ]
96
- },
97
86
  {
98
87
  "key": "VERSIONING",
99
88
  "title": "Versions",
100
89
  "label": "How does a caller name the version it wants?",
101
- "hint": "Only matters when breaking changes go to a new version; with changes in step with the callers the answer is not used.",
90
+ "hint": "Released versions only ever add; this decides where a breaking change goes: a new version beside the old one, or a deprecation of the old element in the only version.",
102
91
  "defaultValue": "path",
103
92
  "options": [
104
93
  {
105
94
  "value": "path",
106
95
  "label": "a major version in the path",
107
- "description": "/v1/, /v2/ in the URL; for Protocol Buffers the package suffix .v1 (AIP-185). Pick it for public and partner REST or gRPC APIs: the version shows in every log line and is easy to route and to cache."
96
+ "description": "/v1/, /v2/ in the URL; for Protocol Buffers the package suffix .v1 (AIP-185). Pick it for public and partner REST or gRPC APIs: the version shows in every log line and is easy to route and to cache. Unusual with a GraphQL schema, which has one endpoint: pick no versions there."
108
97
  },
109
98
  {
110
99
  "value": "header",
111
100
  "label": "a version header",
112
- "description": "Callers name the version in an Api-Version header (gRPC metadata for Protocol Buffers), often a date as Stripe does. Pick it when URLs must stay the same across versions (stored links, hypermedia) or versions are frequent and small."
101
+ "description": "Callers name the version in an Api-Version header (gRPC metadata api-version for Protocol Buffers), often a date as Stripe does. Pick it when URLs must stay the same across versions (stored links, hypermedia) or versions are frequent and small. Unusual with a GraphQL schema: pick no versions there."
113
102
  },
114
103
  {
115
104
  "value": "none",
@@ -133,7 +122,7 @@
133
122
  {
134
123
  "value": "conformance",
135
124
  "label": "conformance tests against the contract",
136
- "description": "Tests generated from the published contract (Schemathesis) call every operation of the running API and fail on any answer the contract does not describe. Pick it when callers are unknown or outside (a public API, many partners) and cannot give you tests."
125
+ "description": "Tests generated from the published contract (Schemathesis for OpenAPI and GraphQL; for gRPC, the server's reflection compared with the contract and every RPC probed) call the running API and fail on any answer the contract does not describe. Pick it when callers are unknown or outside (a public API, many partners) and cannot give you tests."
137
126
  }
138
127
  ]
139
128
  },
@@ -169,8 +158,8 @@
169
158
  "x": 260,
170
159
  "y": 0,
171
160
  "ears_type": "ubiquitous",
172
- "action": "publish its interface as {{FORMAT}}, kept in the repository with the code, released with every version and served at a stable URL, and fail the build when what it serves differs from that contract",
173
- "rationale": "The contract is what callers build against and what every change is checked against; a contract that drifts from the code is worse than none (OpenAPI Specification; Google AIP-180)."
161
+ "action": "publish its interface as {{FORMAT}}, kept in the repository with the code, tagged with every release, and served at a stable URL that holds the document of the release deployed",
162
+ "rationale": "The contract is what callers build against and what every change is checked against; a published copy that is not the deployed release's is worse than none (OpenAPI Specification; Google AIP-180)."
174
163
  },
175
164
  {
176
165
  "id": "req-compat",
@@ -180,12 +169,9 @@
180
169
  "y": 130,
181
170
  "ears_type": "unwanted-behaviour",
182
171
  "unwanted_condition": "a pull request removes or renames a field, operation, enum value or error code, makes an optional input required, narrows a type, or changes what a field means",
183
- "action": "refuse it unless the change goes into a new major version served beside the old one, so that 0 breaking changes reach a released version",
172
+ "action": "refuse it unless the change goes into a new version served beside the old one, so that 0 breaking changes reach a released version",
184
173
  "rationale": "Adding is safe; anything else breaks a caller that has not changed (Google AIP-180 lists the changes that break source, wire and semantic compatibility).",
185
174
  "hubWhen": {
186
- "CHANGE": [
187
- "additive"
188
- ],
189
175
  "VERSIONING": [
190
176
  "path",
191
177
  "header"
@@ -202,9 +188,6 @@
202
188
  "action": "serve each major version under its own path prefix (/v1/, /v2/; the package suffix .v1 for Protocol Buffers), serve at most two major versions at once, and change a released major version only by adding",
203
189
  "rationale": "A version in the path is visible in every log and easy to route; two at a time bounds the cost of keeping old ones (Google AIP-185, Microsoft REST API Guidelines).",
204
190
  "hubWhen": {
205
- "CHANGE": [
206
- "additive"
207
- ],
208
191
  "VERSIONING": [
209
192
  "path"
210
193
  ]
@@ -218,12 +201,24 @@
218
201
  "y": 390,
219
202
  "ears_type": "unwanted-behaviour",
220
203
  "unwanted_condition": "a request carries no Api-Version header, or names a version that is not served",
221
- "action": "answer 400 with the list of versions served, and otherwise answer in the version named and echo it in the response, serving at most two major versions at once",
204
+ "action": "answer 400 with the list of versions served",
222
205
  "rationale": "A caller that does not name a version gets whatever is newest and breaks on the next release; requiring it makes the dependency explicit (Microsoft REST API Guidelines require an explicit api-version).",
223
206
  "hubWhen": {
224
- "CHANGE": [
225
- "additive"
226
- ],
207
+ "VERSIONING": [
208
+ "header"
209
+ ]
210
+ }
211
+ },
212
+ {
213
+ "id": "req-header-echo",
214
+ "type": "requirement",
215
+ "label": "Version echoed, two at most",
216
+ "x": 260,
217
+ "y": 520,
218
+ "ears_type": "ubiquitous",
219
+ "action": "answer every request in the version its Api-Version header names, echo that version in the Api-Version response header, and serve at most two versions at once",
220
+ "rationale": "The echo lets a caller and a log line prove which version answered; two at a time bounds the cost of keeping old ones (Microsoft REST API Guidelines).",
221
+ "hubWhen": {
227
222
  "VERSIONING": [
228
223
  "header"
229
224
  ]
@@ -234,15 +229,12 @@
234
229
  "type": "requirement",
235
230
  "label": "Removal only after disuse",
236
231
  "x": 260,
237
- "y": 520,
232
+ "y": 650,
238
233
  "ears_type": "unwanted-behaviour",
239
234
  "unwanted_condition": "a pull request removes, renames or changes the meaning of an element of the contract",
240
235
  "action": "refuse it unless the element has been deprecated for at least {{SUNSET_MONTHS}} months and no caller has used it for {{USAGE_DAYS}} days",
241
- "rationale": "With a single version nothing may break in place; usage data is what makes a removal safe (GraphQL specification, @deprecated; Google AIP-180).",
236
+ "rationale": "With a single version nothing may break in place; usage data is what makes a removal safe (GraphQL Specification, @deprecated; Google AIP-180).",
242
237
  "hubWhen": {
243
- "CHANGE": [
244
- "additive"
245
- ],
246
238
  "VERSIONING": [
247
239
  "none"
248
240
  ]
@@ -253,57 +245,69 @@
253
245
  "type": "requirement",
254
246
  "label": "Deprecation announced",
255
247
  "x": 260,
256
- "y": 650,
248
+ "y": 780,
257
249
  "ears_type": "event-driven",
258
- "trigger": "a version, operation or field is deprecated",
259
- "action": "mark it deprecated in the contract, add a Deprecation header (RFC 9745) and a Sunset header (RFC 8594) with a date at least {{SUNSET_MONTHS}} months away to every answer that uses it, tell every known caller, and keep serving it until that date",
250
+ "trigger": "a version or operation is deprecated",
251
+ "action": "mark it deprecated: true with an x-sunset date at least {{SUNSET_MONTHS}} months away in the contract, add a Deprecation header (RFC 9745) and a Sunset header (RFC 8594) with that date to every answer that uses it, tell every known caller, and keep serving it until that date",
260
252
  "rationale": "Callers need notice they can read in code and a date they can plan for; the headers make both machine-readable (RFC 9745, RFC 8594).",
261
253
  "hubWhen": {
262
- "CHANGE": [
263
- "additive"
254
+ "FORMAT": [
255
+ "openapi"
264
256
  ]
265
257
  }
266
258
  },
267
259
  {
268
- "id": "req-usage",
260
+ "id": "req-sunset-graphql",
269
261
  "type": "requirement",
270
- "label": "Usage of deprecated counted",
262
+ "label": "Deprecation announced per field",
271
263
  "x": 260,
272
- "y": 780,
273
- "ears_type": "ubiquitous",
274
- "action": "count the calls to every deprecated version, operation and field per calling system and day, and keep the counts until the sunset date",
275
- "rationale": "Without usage per caller, a sunset date is a guess and the callers still on an old version are found by breaking them.",
264
+ "y": 910,
265
+ "ears_type": "event-driven",
266
+ "trigger": "a field, argument or enum value is deprecated",
267
+ "action": "mark it @deprecated with a reason that ends in \"deprecated YYYY-MM-DD, sunset YYYY-MM-DD\", the sunset at least {{SUNSET_MONTHS}} months after the deprecation, tell every known caller, and keep serving it until that date",
268
+ "rationale": "One endpoint answers many fields at once, so a per-answer header cannot name a field; the reason in the schema is what every client and tool reads (GraphQL Specification, @deprecated).",
276
269
  "hubWhen": {
277
- "CHANGE": [
278
- "additive"
270
+ "FORMAT": [
271
+ "graphql"
279
272
  ]
280
273
  }
281
274
  },
282
275
  {
283
- "id": "req-instep",
276
+ "id": "req-sunset-protobuf",
284
277
  "type": "requirement",
285
- "label": "Released with its callers",
278
+ "label": "Deprecation announced per field",
286
279
  "x": 260,
287
- "y": 910,
288
- "ears_type": "ubiquitous",
289
- "action": "release a change of its contract only in the same release as every caller that uses it, built and tested together in one pipeline",
290
- "rationale": "Breaking in place is only safe when no caller can be left behind; one pipeline makes that a fact rather than a promise.",
280
+ "y": 1040,
281
+ "ears_type": "event-driven",
282
+ "trigger": "a field, RPC or enum value is deprecated",
283
+ "action": "mark it [deprecated = true] with a comment above it \"Deprecated: YYYY-MM-DD, sunset: YYYY-MM-DD\", the sunset at least {{SUNSET_MONTHS}} months after the deprecation, tell every known caller, keep serving it until that date, and reserve its number and name when it is removed",
284
+ "rationale": "Generated code warns on a deprecated field, and the dates in the contract are what callers plan by; reserving keeps the number from ever meaning something else (Google AIP-180).",
291
285
  "hubWhen": {
292
- "CHANGE": [
293
- "instep"
286
+ "FORMAT": [
287
+ "protobuf"
294
288
  ]
295
289
  }
296
290
  },
291
+ {
292
+ "id": "req-usage",
293
+ "type": "requirement",
294
+ "label": "Usage of deprecated counted",
295
+ "x": 260,
296
+ "y": 1170,
297
+ "ears_type": "ubiquitous",
298
+ "action": "count the calls to every deprecated version, operation and field per calling system and day, export the counts and each sunset date as metrics, and alert the API's owner when an element is called within 30 days of its sunset",
299
+ "rationale": "Without usage per caller, a sunset date is a guess and the callers still on an old version are found by breaking them."
300
+ },
297
301
  {
298
302
  "id": "req-pact",
299
303
  "type": "requirement",
300
304
  "label": "Caller contracts verified",
301
305
  "x": 260,
302
- "y": 1040,
306
+ "y": 1300,
303
307
  "ears_type": "event-driven",
304
308
  "trigger": "the API or one of its callers is built",
305
309
  "action": "verify every caller's published contract against the API, and block the deployment of either side while one verification fails",
306
- "rationale": "A caller's contract states what it really relies on, which a contract diff cannot know (microservices.io, Service Integration Contract Test; Pact).",
310
+ "rationale": "A caller's contract states what it really relies on, which a contract diff cannot know (microservices.io, Service Integration Contract Test; Pact documentation).",
307
311
  "hubWhen": {
308
312
  "CONTRACT_TESTS": [
309
313
  "pact"
@@ -315,7 +319,7 @@
315
319
  "type": "requirement",
316
320
  "label": "Running API conforms",
317
321
  "x": 260,
318
- "y": 1170,
322
+ "y": 1430,
319
323
  "ears_type": "event-driven",
320
324
  "trigger": "the API is built",
321
325
  "action": "run tests generated from its contract against every operation of a running instance, and fail the build on any answer whose status code or body the contract does not describe",
@@ -323,18 +327,41 @@
323
327
  "hubWhen": {
324
328
  "CONTRACT_TESTS": [
325
329
  "conformance"
330
+ ],
331
+ "FORMAT": [
332
+ "openapi",
333
+ "graphql"
334
+ ]
335
+ }
336
+ },
337
+ {
338
+ "id": "req-conformance-grpc",
339
+ "type": "requirement",
340
+ "label": "Running server conforms",
341
+ "x": 260,
342
+ "y": 1560,
343
+ "ears_type": "event-driven",
344
+ "trigger": "the API is built",
345
+ "action": "compare the services a running instance reflects with the services of the contract, call every RPC with an empty request, and fail the build on a service missing or extra or on an RPC answering Unknown or Internal",
346
+ "rationale": "Generated stubs make the shapes match; what they cannot show is a service left unregistered or an RPC that crashes on input the contract allows (Google AIP-180).",
347
+ "hubWhen": {
348
+ "CONTRACT_TESTS": [
349
+ "conformance"
350
+ ],
351
+ "FORMAT": [
352
+ "protobuf"
326
353
  ]
327
354
  }
328
355
  },
329
356
  {
330
357
  "id": "sc-contract",
331
358
  "type": "scenario",
332
- "label": "Contract matches release",
359
+ "label": "Published contract is the release's",
333
360
  "x": 520,
334
361
  "y": 0,
335
- "given": "a released version of the API",
336
- "when": "its contract is fetched from the stable URL and compared with what the release serves",
337
- "then": "the two match, operation by operation and field by field"
362
+ "given": "a deployed release of the API",
363
+ "when": "the contract is fetched from the stable URL and compared with the document at the release tag",
364
+ "then": "the two are the same, operation by operation and field by field"
338
365
  },
339
366
  {
340
367
  "id": "sc-compat",
@@ -344,11 +371,8 @@
344
371
  "y": 130,
345
372
  "given": "a pull request that renames a response field of a released version",
346
373
  "when": "the contract check compares it with the last release",
347
- "then": "the check fails, and passes once the rename is in a new major version",
374
+ "then": "the check fails, and passes once the rename is in a new version",
348
375
  "hubWhen": {
349
- "CHANGE": [
350
- "additive"
351
- ],
352
376
  "VERSIONING": [
353
377
  "path",
354
378
  "header"
@@ -362,12 +386,9 @@
362
386
  "x": 520,
363
387
  "y": 260,
364
388
  "given": "major versions 1 and 2 served",
365
- "when": "a caller calls the same operation under /v1/ and /v2/",
366
- "then": "each answers in its own shape, and releasing a third major version needs version 1 retired first",
389
+ "when": "a caller calls the same operation under /v1/ and /v2/, and the served prefixes are listed from the router",
390
+ "then": "each answers in its own shape, and the list holds no more than two prefixes",
367
391
  "hubWhen": {
368
- "CHANGE": [
369
- "additive"
370
- ],
371
392
  "VERSIONING": [
372
393
  "path"
373
394
  ]
@@ -380,12 +401,24 @@
380
401
  "x": 520,
381
402
  "y": 390,
382
403
  "given": "versions 2025-01-01 and 2026-01-01 served",
383
- "when": "a request comes without Api-Version, one with 2024-01-01 and one with 2026-01-01",
384
- "then": "the first two get 400 listing the served versions; the third is answered with Api-Version: 2026-01-01",
404
+ "when": "a request comes without Api-Version and one with 2024-01-01",
405
+ "then": "both get 400 with a body that lists 2025-01-01 and 2026-01-01",
406
+ "hubWhen": {
407
+ "VERSIONING": [
408
+ "header"
409
+ ]
410
+ }
411
+ },
412
+ {
413
+ "id": "sc-header-echo",
414
+ "type": "scenario",
415
+ "label": "Version echoed",
416
+ "x": 520,
417
+ "y": 520,
418
+ "given": "versions 2025-01-01 and 2026-01-01 served",
419
+ "when": "a request names 2026-01-01, and the served versions are listed",
420
+ "then": "the answer carries Api-Version: 2026-01-01 and the list holds no more than two versions",
385
421
  "hubWhen": {
386
- "CHANGE": [
387
- "additive"
388
- ],
389
422
  "VERSIONING": [
390
423
  "header"
391
424
  ]
@@ -396,14 +429,11 @@
396
429
  "type": "scenario",
397
430
  "label": "Used field kept",
398
431
  "x": 520,
399
- "y": 520,
432
+ "y": 650,
400
433
  "given": "a field deprecated {{SUNSET_MONTHS}} months ago that one caller used yesterday",
401
434
  "when": "a pull request removes it",
402
435
  "then": "the check fails and names the caller; with {{USAGE_DAYS}} days without a call it passes",
403
436
  "hubWhen": {
404
- "CHANGE": [
405
- "additive"
406
- ],
407
437
  "VERSIONING": [
408
438
  "none"
409
439
  ]
@@ -414,52 +444,62 @@
414
444
  "type": "scenario",
415
445
  "label": "Deprecation carries a date",
416
446
  "x": 520,
417
- "y": 650,
447
+ "y": 780,
418
448
  "given": "an operation deprecated today",
419
449
  "when": "a caller calls it",
420
- "then": "the answer carries Deprecation with today's date and Sunset at least {{SUNSET_MONTHS}} months later, and the operation still works",
450
+ "then": "the answer carries Deprecation with today's date and Sunset at least {{SUNSET_MONTHS}} months later, equal to the contract's x-sunset, and the operation still works",
421
451
  "hubWhen": {
422
- "CHANGE": [
423
- "additive"
452
+ "FORMAT": [
453
+ "openapi"
424
454
  ]
425
455
  }
426
456
  },
427
457
  {
428
- "id": "sc-usage",
458
+ "id": "sc-sunset-graphql",
429
459
  "type": "scenario",
430
- "label": "Laggards identified",
460
+ "label": "Field carries its dates",
431
461
  "x": 520,
432
- "y": 780,
433
- "given": "a deprecated operation called by two systems",
434
- "when": "the usage report for the last 7 days is read",
435
- "then": "it lists both systems with their daily call counts",
462
+ "y": 910,
463
+ "given": "a field deprecated today",
464
+ "when": "the schema is introspected",
465
+ "then": "its deprecation reason ends in today's date and a sunset at least {{SUNSET_MONTHS}} months later, and the field still resolves",
436
466
  "hubWhen": {
437
- "CHANGE": [
438
- "additive"
467
+ "FORMAT": [
468
+ "graphql"
439
469
  ]
440
470
  }
441
471
  },
442
472
  {
443
- "id": "sc-instep",
473
+ "id": "sc-sunset-protobuf",
444
474
  "type": "scenario",
445
- "label": "Callers built together",
475
+ "label": "Field carries its dates",
446
476
  "x": 520,
447
- "y": 910,
448
- "given": "a pull request that renames a field of the contract",
449
- "when": "the pipeline runs",
450
- "then": "every caller of the field is built and tested against the change in the same pipeline, and the release ships them together",
477
+ "y": 1040,
478
+ "given": "a field deprecated today",
479
+ "when": "the .proto files are checked",
480
+ "then": "the field is marked deprecated with today's date and a sunset at least {{SUNSET_MONTHS}} months later",
451
481
  "hubWhen": {
452
- "CHANGE": [
453
- "instep"
482
+ "FORMAT": [
483
+ "protobuf"
454
484
  ]
455
485
  }
456
486
  },
487
+ {
488
+ "id": "sc-usage",
489
+ "type": "scenario",
490
+ "label": "Laggards identified",
491
+ "x": 520,
492
+ "y": 1170,
493
+ "given": "a deprecated operation called by two systems, its sunset 20 days away",
494
+ "when": "the usage metrics are read",
495
+ "then": "they list both systems with their call counts, and the owner is alerted"
496
+ },
457
497
  {
458
498
  "id": "sc-pact",
459
499
  "type": "scenario",
460
500
  "label": "Break caught before deploy",
461
501
  "x": 520,
462
- "y": 1040,
502
+ "y": 1300,
463
503
  "given": "a caller whose contract reads the field \"total\"",
464
504
  "when": "a build of the API drops \"total\" and asks to deploy",
465
505
  "then": "the verification fails and the deployment is blocked",
@@ -474,13 +514,35 @@
474
514
  "type": "scenario",
475
515
  "label": "Undocumented answer caught",
476
516
  "x": 520,
477
- "y": 1170,
517
+ "y": 1430,
478
518
  "given": "an operation that answers 500 for an empty name, not described in the contract",
479
519
  "when": "the conformance tests run on the build",
480
520
  "then": "they fail and name the operation and the input",
481
521
  "hubWhen": {
482
522
  "CONTRACT_TESTS": [
483
523
  "conformance"
524
+ ],
525
+ "FORMAT": [
526
+ "openapi",
527
+ "graphql"
528
+ ]
529
+ }
530
+ },
531
+ {
532
+ "id": "sc-conformance-grpc",
533
+ "type": "scenario",
534
+ "label": "Unregistered service caught",
535
+ "x": 520,
536
+ "y": 1560,
537
+ "given": "a service in the contract the server does not register",
538
+ "when": "the conformance step runs on the build",
539
+ "then": "it fails and names the service",
540
+ "hubWhen": {
541
+ "CONTRACT_TESTS": [
542
+ "conformance"
543
+ ],
544
+ "FORMAT": [
545
+ "protobuf"
484
546
  ]
485
547
  }
486
548
  },
@@ -493,14 +555,11 @@
493
555
  "concern": "api-evolution",
494
556
  "status": "accepted",
495
557
  "date": "",
496
- "context": "Other systems call this element through its API, and they are built and released by other people on their own schedule. The forces: a renamed field, a new required input, a narrowed type or a changed error code breaks a caller that cannot change on the same day; without a machine-readable contract nobody can tell which change breaks what, so breaks are found in production; every version kept alive costs code, tests and attention; callers have to hear that something is going away early enough to move, and with a date they can plan for; and the contract callers read must be what the API really serves.",
497
- "decision": "The API is described in {{FORMAT}}, kept with the code. Released versions change only by adding; a breaking change goes into a new major version under its own path prefix (/v2/, or the package suffix .v2 for Protocol Buffers), served beside the previous one. At most two major versions are served at once. A deprecated version answers with Deprecation and Sunset headers and is served for {{SUNSET_MONTHS}} months; calls to it are counted per caller. Every pull request is diffed against the contract of the last release (oasdiff for OpenAPI, graphql-inspector for GraphQL, buf breaking for Protocol Buffers) and fails on a break. Promises to callers are checked by {{CONTRACT_TESTS}}. Choosing what counts as breaking: Google AIP-180 (source, wire and semantic compatibility).",
558
+ "context": "Other systems call this element through its API, and they are built and released by other people on their own schedule. The forces: a renamed field, a new required input, a narrowed type or a changed error code breaks a caller that cannot change on the same day; without a machine-readable contract nobody can tell which change breaks what, so breaks are found in production; every version kept alive costs code, tests and attention; callers have to hear that something is going away early enough to move, and with a date they can plan for; and the contract callers read must be what the API really serves. Snippets assume one contract document per served version under api/ (api/v1.yaml, api/v2.yaml; schema.graphql for GraphQL; .proto files under api/ for Protocol Buffers), the router's table in src/app and the released contract reachable at $API_URL.",
559
+ "decision": "The API is described in {{FORMAT}}, kept with the code, one contract document per served version. Released versions change only by adding; a breaking change goes into a new major version under its own path prefix (/v2/, or the package suffix .v2 for Protocol Buffers; for a GraphQL schema the endpoint /v2/graphql), served beside the previous one. At most two major versions are served at once. A deprecated version is marked in its contract with its sunset date, announced to callers (Deprecation and Sunset headers over HTTP) and served for {{SUNSET_MONTHS}} months; calls to it are counted per caller and alerted near the sunset. Every pull request diffs each version's document against the last release's (oasdiff for OpenAPI, graphql-inspector for GraphQL, buf breaking for Protocol Buffers) and fails on a break; a new version has nothing to diff against. Promises to callers are checked by {{CONTRACT_TESTS}}. Choosing what counts as breaking: Google AIP-180 (source, wire and semantic compatibility).",
498
560
  "consequences": "• Callers upgrade when they choose, within {{SUNSET_MONTHS}} months of a deprecation.\n• Two major versions run side by side for a while: twice the routes, tests and documentation.\n• A breaking change costs a whole new major version, so teams batch them and design for adding.\n• Fields and field numbers are never reused for something else.",
499
- "alternatives": "1. A version header: stable URLs, but the version is hidden from logs and caches.\n2. No versions, field-by-field deprecation: cheaper, but needs usage data for every caller.\n3. Releasing with the callers: simplest, only when every caller is ours.",
561
+ "alternatives": "1. A version header: stable URLs, but the version is hidden from logs and caches.\n2. No versions, field-by-field deprecation: cheaper, but needs usage data for every caller.\n3. Releasing with the callers: only for callers inside our own release, which the Communication style pack decides.",
500
562
  "hubWhen": {
501
- "CHANGE": [
502
- "additive"
503
- ],
504
563
  "VERSIONING": [
505
564
  "path"
506
565
  ]
@@ -515,14 +574,11 @@
515
574
  "concern": "api-evolution",
516
575
  "status": "accepted",
517
576
  "date": "",
518
- "context": "Other systems call this element through its API, and they are built and released by other people on their own schedule. The forces: a renamed field, a new required input, a narrowed type or a changed error code breaks a caller that cannot change on the same day; without a machine-readable contract nobody can tell which change breaks what, so breaks are found in production; every version kept alive costs code, tests and attention; callers have to hear that something is going away early enough to move, and with a date they can plan for; and the contract callers read must be what the API really serves.",
519
- "decision": "The API is described in {{FORMAT}}, kept with the code. Released versions change only by adding; a breaking change goes into a new version that callers ask for in the Api-Version header (gRPC metadata of the same name for Protocol Buffers). A request without a served version is answered 400; the version served is echoed in the response. At most two major versions are served at once, each translated from one implementation by a version layer at the edge (as Stripe does with dated versions). A deprecated version answers with Deprecation and Sunset headers and is served for {{SUNSET_MONTHS}} months; calls to it are counted per caller. Every pull request is diffed against the last release's contract and fails on a break. Promises to callers are checked by {{CONTRACT_TESTS}}.",
577
+ "context": "Other systems call this element through its API, and they are built and released by other people on their own schedule. The forces: a renamed field, a new required input, a narrowed type or a changed error code breaks a caller that cannot change on the same day; without a machine-readable contract nobody can tell which change breaks what, so breaks are found in production; every version kept alive costs code, tests and attention; callers have to hear that something is going away early enough to move, and with a date they can plan for; and the contract callers read must be what the API really serves. Snippets assume one contract document per served version under api/ (api/v1.yaml, api/v2.yaml; schema.graphql for GraphQL; .proto files under api/ for Protocol Buffers), the router's table in src/app and the released contract reachable at $API_URL.",
578
+ "decision": "The API is described in {{FORMAT}}, kept with the code, one contract document per served version (api/2026-01-01.yaml). Released versions change only by adding; a breaking change goes into a new version that callers ask for in the Api-Version header (gRPC metadata api-version for Protocol Buffers; for a GraphQL schema the same header on the one endpoint). A request without a served version is answered 400 with the versions served; the version served is echoed in the response. At most two versions are served at once, each translated from one implementation by a version layer at the edge (as Stripe does with dated versions). A deprecated version is marked in its contract with its sunset date, announced to callers (Deprecation and Sunset headers over HTTP) and served for {{SUNSET_MONTHS}} months; calls to it are counted per caller and alerted near the sunset. Every pull request diffs each version's document against the last release's and fails on a break; a new version has nothing to diff against. Promises to callers are checked by {{CONTRACT_TESTS}}.",
520
579
  "consequences": "• URLs and links stay the same across versions.\n• Every caller must send the header; clients that do not are refused, which surfaces them early.\n• Caches and gateways must vary on Api-Version.\n• The version layer is code of its own that has to be tested per version.",
521
580
  "alternatives": "1. A major version in the path: visible and easy to route, but URLs change with every major version.\n2. A query parameter (api-version, as Azure does): visible in logs, but easy to drop when links are copied.\n3. No versions, field-by-field deprecation.",
522
581
  "hubWhen": {
523
- "CHANGE": [
524
- "additive"
525
- ],
526
582
  "VERSIONING": [
527
583
  "header"
528
584
  ]
@@ -537,53 +593,31 @@
537
593
  "concern": "api-evolution",
538
594
  "status": "accepted",
539
595
  "date": "",
540
- "context": "Other systems call this element through its API, and they are built and released by other people on their own schedule. The forces: a renamed field, a new required input, a narrowed type or a changed error code breaks a caller that cannot change on the same day; without a machine-readable contract nobody can tell which change breaks what, so breaks are found in production; every version kept alive costs code, tests and attention; callers have to hear that something is going away early enough to move, and with a date they can plan for; and the contract callers read must be what the API really serves.",
541
- "decision": "The API is described in {{FORMAT}}, kept with the code, and has a single version. It changes only by adding; an element to go is marked deprecated in the contract (@deprecated in GraphQL, deprecated: true in OpenAPI, deprecated = true in Protocol Buffers) with Deprecation and Sunset headers, and is removed only after {{SUNSET_MONTHS}} months and {{USAGE_DAYS}} days without a call, as the usage counts per caller show. Every pull request is diffed against the last release's contract (oasdiff, graphql-inspector or buf breaking) and fails on a removal the usage data does not allow. Promises to callers are checked by {{CONTRACT_TESTS}}. Choose it over versions when the API is GraphQL or you can see every caller's usage; prefer versions for public APIs whose callers you cannot see.",
596
+ "context": "Other systems call this element through its API, and they are built and released by other people on their own schedule. The forces: a renamed field, a new required input, a narrowed type or a changed error code breaks a caller that cannot change on the same day; without a machine-readable contract nobody can tell which change breaks what, so breaks are found in production; every version kept alive costs code, tests and attention; callers have to hear that something is going away early enough to move, and with a date they can plan for; and the contract callers read must be what the API really serves. Snippets assume one contract document per served version under api/ (api/v1.yaml, api/v2.yaml; schema.graphql for GraphQL; .proto files under api/ for Protocol Buffers), the router's table in src/app and the released contract reachable at $API_URL.",
597
+ "decision": "The API is described in {{FORMAT}}, kept with the code, and has a single version. It changes only by adding; an element to go is marked deprecated in the contract with its dates (@deprecated with the sunset in its reason in GraphQL, deprecated: true with x-sunset in OpenAPI, [deprecated = true] with a dated comment in Protocol Buffers), announced to callers (Deprecation and Sunset headers over HTTP), and is removed only after {{SUNSET_MONTHS}} months and {{USAGE_DAYS}} days without a call, as the usage counts per caller show. Every pull request is diffed against the last release's contract (oasdiff with its deprecation grace period, graphql-inspector with the usage rule, buf breaking with reserved numbers and names) and fails on a removal the dates and the usage data do not allow. Promises to callers are checked by {{CONTRACT_TESTS}}. Choose it over versions when the API is GraphQL or you can see every caller's usage; prefer versions for public APIs whose callers you cannot see.",
542
598
  "consequences": "• Callers never migrate between versions; they only stop using what is deprecated.\n• Usage per caller and field has to be collected and kept, or nothing can ever be removed.\n• A change of meaning cannot be made in place: it needs a new field with a new name.",
543
- "alternatives": "1. A major version in the path or a header: lets breaking changes happen in bulk, at the cost of running versions side by side.\n2. Releasing with the callers: only when every caller is ours.",
599
+ "alternatives": "1. A major version in the path or a header: lets breaking changes happen in bulk, at the cost of running versions side by side.\n2. Releasing with the callers: only for callers inside our own release, which the Communication style pack decides.",
544
600
  "hubWhen": {
545
- "CHANGE": [
546
- "additive"
547
- ],
548
601
  "VERSIONING": [
549
602
  "none"
550
603
  ]
551
604
  }
552
605
  },
553
- {
554
- "id": "adr-instep",
555
- "type": "adr",
556
- "label": "API released in step with its callers",
557
- "x": 780,
558
- "y": 390,
559
- "concern": "api-evolution",
560
- "status": "accepted",
561
- "date": "",
562
- "context": "Other systems call this element through its API, and they are built and released by other people on their own schedule. The forces: a renamed field, a new required input, a narrowed type or a changed error code breaks a caller that cannot change on the same day; without a machine-readable contract nobody can tell which change breaks what, so breaks are found in production; every version kept alive costs code, tests and attention; callers have to hear that something is going away early enough to move, and with a date they can plan for; and the contract callers read must be what the API really serves. Here every caller is ours, built in the same repository or release train, and no old client stays installed.",
563
- "decision": "The API is described in {{FORMAT}}, kept with the code, and has no versions: a change of the contract, breaking or not, is released together with every caller that uses it. The callers depend on the contract inside the workspace, never on a published copy, so the build graph (Nx affected, Turborepo, Bazel) builds and tests each caller of a changed contract in the same pipeline. Promises to callers are checked by {{CONTRACT_TESTS}}. An outside caller (a partner, an installed mobile app, another team's release) needs this decision superseded by additive changes first.",
564
- "consequences": "• No versions to keep, no sunset to wait for.\n• Every change of the contract rebuilds and retests all its callers; the pipeline is as slow as the slowest caller.\n• The first outside caller makes this decision wrong overnight; it has to be visible when one arrives.",
565
- "alternatives": "1. Additive changes with a version in the path or a header: needed as soon as one caller is released on its own.\n2. A single version deprecated field by field: no lockstep releases, but usage tracking.",
566
- "hubWhen": {
567
- "CHANGE": [
568
- "instep"
569
- ]
570
- }
571
- },
572
606
  {
573
607
  "id": "ff-oasdiff",
574
608
  "type": "fitness-fn",
575
609
  "label": "OpenAPI break check",
576
610
  "x": 1040,
577
611
  "y": 0,
578
- "category": "structural",
579
- "threshold": "0 breaking changes (oasdiff level ERR) between the last release's contract and the pull request, outside a new major version",
580
- "description": "In every pull request, oasdiff compares the OpenAPI document with the one of the last release tag and fails on any change it rates as breaking (removed or renamed operations and fields, new required inputs, narrowed types, removed enum values).\n\nTool: oasdiff\n\n```yaml\n# .github/workflows/api-contract.yml (a job step)\n- name: No breaking API changes\n run: |\n git fetch --tags\n git show \"$(git describe --tags --abbrev=0)\":api/openapi.yaml > /tmp/base.yaml\n docker run --rm -v /tmp:/base -v \"$PWD\":/rev tufin/oasdiff \\\n breaking /base/base.yaml /rev/api/openapi.yaml --fail-on ERR\n```",
612
+ "characteristic": "compatibility",
613
+ "scope": "atomic",
614
+ "cadence": "triggered",
615
+ "trigger": "pull-request",
616
+ "invocation": "automated",
617
+ "description": "In every pull request, oasdiff compares each contract document with the same document at the last release tag and fails on any change it rates as breaking (removed or renamed operations and fields, new required inputs, narrowed types, removed enum values); a deprecated operation must carry x-sunset at least {{SUNSET_MONTHS}} months away, and once that date has passed its removal is not breaking (whether anybody still calls it is checked by the usage alert). A new version is a new document with nothing to diff against. After each deployment the same tool compares the stable URL with the release's document.\n\nThreshold: 0 breaking changes (oasdiff level ERR) between each version's document at the last release tag and the pull request, a removal after its x-sunset date and {{SUNSET_MONTHS}} months of deprecation not counting; after a deployment, 0 differences between the stable URL and the release's document\n\nTool: oasdiff\n\n```yaml\n# .github/workflows/api-contract.yml (job steps; actions/checkout@v4.2.2 with fetch-depth: 0 — pin by commit SHA in your repository)\n- name: No breaking API changes outside a new version\n run: |\n last=$(git describe --tags --abbrev=0)\n for doc in api/*.yaml; do # one document per served version\n git show \"$last:$doc\" > /tmp/base.yaml 2>/dev/null || continue # a new version: nothing to diff against\n docker run --rm -v /tmp:/base -v \"$PWD\":/rev tufin/oasdiff:stable \\\n breaking /base/base.yaml \"/rev/$doc\" --fail-on ERR \\\n --deprecation-days-stable $(( {{SUNSET_MONTHS}} * 30 )) # x-sunset required this far away; removal after it is not breaking\n done\n# after each deployment:\n- name: The stable URL serves the release's contract\n run: |\n for doc in api/*.yaml; do\n docker run --rm -v \"$PWD\":/rev tufin/oasdiff:stable \\\n diff \"/rev/$doc\" \"$API_URL/openapi/$(basename \"$doc\" .yaml).json\" --fail-on-diff\n done\n```",
581
618
  "hubWhen": {
582
619
  "FORMAT": [
583
620
  "openapi"
584
- ],
585
- "CHANGE": [
586
- "additive"
587
621
  ]
588
622
  }
589
623
  },
@@ -593,15 +627,15 @@
593
627
  "label": "GraphQL break check",
594
628
  "x": 1040,
595
629
  "y": 130,
596
- "category": "structural",
597
- "threshold": "0 breaking changes between the last release's schema and the pull request; a field is removed only once deprecated",
598
- "description": "In every pull request, graphql-inspector diffs the schema with the one on the main branch and fails on a breaking change (a removed field or type, a changed argument, a nullable field made non-null on input).\n\nTool: graphql-inspector\n\n```yaml\n# .github/workflows/api-contract.yml (a job step)\n- name: No breaking schema changes\n run: npx @graphql-inspector/cli diff 'git:origin/main:schema.graphql' schema.graphql\n```",
630
+ "characteristic": "compatibility",
631
+ "scope": "atomic",
632
+ "cadence": "triggered",
633
+ "trigger": "pull-request",
634
+ "invocation": "automated",
635
+ "description": "In every pull request, graphql-inspector diffs the schema with the one at the last release tag and fails on a breaking change (a removed field or type, a changed argument, a nullable field made non-null on input). Removing a deprecated field is allowed when the usage module, asked per field, reports no call in the last {{USAGE_DAYS}} days (the dates in the reason are checked by the sunset test). After each deployment the served schema is introspected and must equal the release's.\n\nThreshold: 0 breaking changes between the schema at the last release tag and the pull request, the removal of a deprecated field unused for {{USAGE_DAYS}} days not counting; after a deployment, 0 differences between the served schema and the release's\n\nTool: graphql-inspector\n\n```yaml\n# .github/workflows/api-contract.yml (job steps; actions/checkout@v4.2.2 with fetch-depth: 0 — pin by commit SHA in your repository)\n- name: No breaking schema changes\n run: |\n git show \"$(git describe --tags --abbrev=0)\":schema.graphql > /tmp/base.graphql\n npx @graphql-inspector/cli diff /tmp/base.graphql schema.graphql \\\n --rule suppressRemovalOfDeprecatedField \\\n --rule considerUsage --onUsage ./usage.js\n # usage.js: export default (fields) => Promise<boolean[]>, true when the field had 0 calls in the last {{USAGE_DAYS}} days\n# after each deployment:\n- name: The endpoint serves the release's schema\n run: |\n npx @graphql-inspector/cli introspect \"$API_URL/graphql\" --write /tmp/served.graphql\n npx @graphql-inspector/cli diff schema.graphql /tmp/served.graphql | grep -q 'No changes detected'\n```",
599
636
  "hubWhen": {
600
637
  "FORMAT": [
601
638
  "graphql"
602
- ],
603
- "CHANGE": [
604
- "additive"
605
639
  ]
606
640
  }
607
641
  },
@@ -611,15 +645,15 @@
611
645
  "label": "Protobuf break check",
612
646
  "x": 1040,
613
647
  "y": 260,
614
- "category": "structural",
615
- "threshold": "0 breaking changes (buf rule set FILE) against the main branch; 0 lint findings, PACKAGE_VERSION_SUFFIX included",
616
- "description": "buf lint requires a version suffix on every package, and buf breaking compares the .proto files with the main branch, failing on a removed or renumbered field, a changed type or a removed RPC.\n\nTool: buf breaking\n\n```yaml\n# buf.yaml\nversion: v2\nlint:\n use: [STANDARD] # includes PACKAGE_VERSION_SUFFIX: acme.orders.v1\nbreaking:\n use: [FILE]\n# CI step:\n# buf lint && buf breaking --against '.git#branch=main'\n```",
648
+ "characteristic": "compatibility",
649
+ "scope": "atomic",
650
+ "cadence": "triggered",
651
+ "trigger": "pull-request",
652
+ "invocation": "automated",
653
+ "description": "buf lint requires a version suffix on every package, and buf breaking compares the .proto files with the last release tag, failing on a renumbered field, a changed type, a removed RPC, or a field deleted without reserving its number and name (which is how a field past its sunset goes). After each deployment the services the server reflects are compared with the services of the release's descriptors.\n\nThreshold: 0 breaking changes against the last release tag, a deleted field whose number and name are reserved not counting; 0 lint findings, PACKAGE_VERSION_SUFFIX included; after a deployment, the services the server reflects equal the contract's\n\nTool: buf breaking, grpcurl\n\n```yaml\n# buf.yaml\nversion: v2\nlint:\n use: [STANDARD] # includes PACKAGE_VERSION_SUFFIX: acme.orders.v1\nbreaking:\n use: [FILE, FIELD_NO_DELETE_UNLESS_NUMBER_RESERVED, FIELD_NO_DELETE_UNLESS_NAME_RESERVED]\n except: [FIELD_NO_DELETE] # a field may go once its number and name are reserved\n# CI step (checkout with fetch-depth: 0); with a version header, each version is its own module directory, diffed with subdir=:\n# buf lint && buf breaking --against \".git#tag=$(git describe --tags --abbrev=0)\"\n# after each deployment: the server reflects the services of the release\n# buf build -o /tmp/release.binpb\n# diff <(grpcurl -protoset /tmp/release.binpb list | sort) <(grpcurl -plaintext \"$GRPC_ADDRESS\" list | grep -v '^grpc\\.' | sort)\n```",
617
654
  "hubWhen": {
618
655
  "FORMAT": [
619
656
  "protobuf"
620
- ],
621
- "CHANGE": [
622
- "additive"
623
657
  ]
624
658
  }
625
659
  },
@@ -629,12 +663,99 @@
629
663
  "label": "Deprecations carry a sunset",
630
664
  "x": 1040,
631
665
  "y": 390,
632
- "category": "structural",
633
- "threshold": "Every operation marked deprecated in the contract answers with a Deprecation header and a Sunset date at least {{SUNSET_MONTHS}} months after it; 0 without",
634
- "description": "A test reads the operations marked deprecated from the contract (not from a list kept by hand), calls each and checks the Deprecation (RFC 9745) and Sunset (RFC 8594) headers. For gRPC the same test reads the response metadata.\n\nTool: Vitest with supertest (or the test runner and HTTP client of your stack)\n\n```ts\nimport { readFileSync } from 'node:fs'\nimport { parse } from 'yaml'\nimport request from 'supertest'\nimport { app } from '../src/app'\n\nconst SUNSET_MONTHS = {{SUNSET_MONTHS}}\nconst spec = parse(readFileSync('api/openapi.yaml', 'utf8'))\nconst deprecated = Object.entries(spec.paths).flatMap(([path, ops]) =>\n Object.entries(ops as Record<string, { deprecated?: boolean; 'x-example'?: string }>)\n .filter(([, op]) => op.deprecated)\n .map(([method, op]) => ({ method, path: op['x-example'] ?? path })))\n\ndescribe.each(deprecated)('$method $path', ({ method, path }) => {\n it('announces its deprecation and a sunset far enough away', async () => {\n const res = await request(app)[method](path)\n expect(res.headers.deprecation).toMatch(/^@\\d+$/) // RFC 9745: @<epoch seconds>\n const from = new Date(Number(res.headers.deprecation.slice(1)) * 1000)\n from.setMonth(from.getMonth() + SUNSET_MONTHS)\n expect(Date.parse(res.headers.sunset)).toBeGreaterThanOrEqual(from.getTime()) // RFC 8594\n })\n})\n```",
666
+ "characteristic": "compatibility",
667
+ "scope": "atomic",
668
+ "cadence": "triggered",
669
+ "trigger": "pull-request",
670
+ "invocation": "automated",
671
+ "description": "A test reads the operations marked deprecated from the contract documents (not from a list kept by hand), calls each and checks the Deprecation (RFC 9745) and Sunset (RFC 8594) headers against the contract's x-sunset.\n\nThreshold: Every operation marked deprecated in the contract carries x-sunset and answers with a Deprecation header and a Sunset date equal to it and at least {{SUNSET_MONTHS}} months after the deprecation; 0 without\n\nTool: Vitest with supertest (or the test runner and HTTP client of your stack)\n\n```ts\nimport { readFileSync, readdirSync } from 'node:fs'\nimport { parse } from 'yaml'\nimport request from 'supertest'\nimport { app } from '../src/app'\n\nconst SUNSET_MONTHS = {{SUNSET_MONTHS}}\ntype Op = { deprecated?: boolean; 'x-sunset'?: string; 'x-example'?: string }\nconst deprecated = readdirSync('api').filter((f) => f.endsWith('.yaml')).flatMap((file) => {\n const spec = parse(readFileSync(`api/${file}`, 'utf8'))\n return Object.entries(spec.paths as Record<string, Record<string, Op>>).flatMap(([path, ops]) =>\n Object.entries(ops).filter(([, op]) => op.deprecated).map(([method, op]) => ({ method, path: op['x-example'] ?? path, sunset: op['x-sunset'] })))\n})\n\ndescribe.each(deprecated)('$method $path', ({ method, path, sunset }) => {\n it('announces its deprecation and a sunset far enough away', async () => {\n expect(sunset).toMatch(/^\\d{4}-\\d{2}-\\d{2}/) // x-sunset in the contract\n const res = await request(app)[method](path)\n expect(res.headers.deprecation).toMatch(/^@\\d+$/) // RFC 9745: @<epoch seconds>\n const from = new Date(Number(res.headers.deprecation.slice(1)) * 1000)\n from.setMonth(from.getMonth() + SUNSET_MONTHS)\n expect(Date.parse(res.headers.sunset)).toBe(Date.parse(sunset!)) // RFC 8594, the contract's date\n expect(Date.parse(res.headers.sunset)).toBeGreaterThanOrEqual(from.getTime())\n })\n})\n```",
635
672
  "hubWhen": {
636
- "CHANGE": [
637
- "additive"
673
+ "FORMAT": [
674
+ "openapi"
675
+ ]
676
+ }
677
+ },
678
+ {
679
+ "id": "ff-sunset-graphql",
680
+ "type": "fitness-fn",
681
+ "label": "Deprecated fields carry their dates",
682
+ "x": 1040,
683
+ "y": 520,
684
+ "characteristic": "compatibility",
685
+ "scope": "atomic",
686
+ "cadence": "triggered",
687
+ "trigger": "pull-request",
688
+ "invocation": "automated",
689
+ "description": "A test builds the schema from schema.graphql, walks every type for deprecated fields, arguments and enum values, and checks the two dates in each reason.\n\nThreshold: Every @deprecated field, argument and enum value has a reason ending in \"deprecated YYYY-MM-DD, sunset YYYY-MM-DD\" with the sunset at least {{SUNSET_MONTHS}} months after the deprecation; 0 without\n\nTool: Vitest with the graphql package (or the test runner of your stack)\n\n```ts\nimport { readFileSync } from 'node:fs'\nimport { buildSchema, isObjectType, isInputObjectType, isEnumType, isInterfaceType } from 'graphql'\n\nconst SUNSET_MONTHS = {{SUNSET_MONTHS}}\nconst DATES = /deprecated (\\d{4}-\\d{2}-\\d{2}), sunset (\\d{4}-\\d{2}-\\d{2})$/\nconst schema = buildSchema(readFileSync('schema.graphql', 'utf8'))\nconst deprecated: Array<{ where: string; reason: string | null | undefined }> = []\nfor (const type of Object.values(schema.getTypeMap())) {\n if (type.name.startsWith('__')) continue\n if (isEnumType(type)) for (const v of type.getValues()) if (v.deprecationReason != null) deprecated.push({ where: `${type.name}.${v.name}`, reason: v.deprecationReason })\n if (isObjectType(type) || isInterfaceType(type) || isInputObjectType(type)) for (const f of Object.values(type.getFields())) {\n if (f.deprecationReason != null) deprecated.push({ where: `${type.name}.${f.name}`, reason: f.deprecationReason })\n if ('args' in f) for (const a of f.args) if (a.deprecationReason != null) deprecated.push({ where: `${type.name}.${f.name}(${a.name})`, reason: a.deprecationReason })\n }\n}\n\ndescribe.each(deprecated)('$where', ({ reason }) => {\n it('names its deprecation and sunset dates, far enough apart', () => {\n const m = DATES.exec(reason ?? '')\n expect(m, 'reason ends in \"deprecated YYYY-MM-DD, sunset YYYY-MM-DD\"').not.toBeNull()\n const from = new Date(m![1])\n from.setMonth(from.getMonth() + SUNSET_MONTHS)\n expect(Date.parse(m![2])).toBeGreaterThanOrEqual(from.getTime())\n })\n})\n```",
690
+ "hubWhen": {
691
+ "FORMAT": [
692
+ "graphql"
693
+ ]
694
+ }
695
+ },
696
+ {
697
+ "id": "ff-sunset-protobuf",
698
+ "type": "fitness-fn",
699
+ "label": "Deprecated fields carry their dates",
700
+ "x": 1040,
701
+ "y": 650,
702
+ "characteristic": "compatibility",
703
+ "scope": "atomic",
704
+ "cadence": "triggered",
705
+ "trigger": "pull-request",
706
+ "invocation": "automated",
707
+ "description": "A CI step greps the .proto files for deprecated elements and checks the dated comment above each; reserving the number and name on removal is checked by buf breaking.\n\nThreshold: Every [deprecated = true] field, RPC and enum value has a comment \"Deprecated: YYYY-MM-DD, sunset: YYYY-MM-DD\" on the line above with the sunset at least {{SUNSET_MONTHS}} months after the deprecation; 0 without\n\nTool: grep and GNU date in the CI job\n\n```bash\n#!/usr/bin/env bash\n# every deprecated field, RPC or enum value: the line above reads \"// Deprecated: 2026-01-01, sunset: 2026-07-01\"\nset -uo pipefail\nfail=0\nwhile IFS=: read -r file line _; do\n dates=$(sed -n \"$((line - 1))p\" \"$file\" | grep -Eo 'Deprecated: [0-9]{4}-[0-9]{2}-[0-9]{2}, sunset: [0-9]{4}-[0-9]{2}-[0-9]{2}' || true)\n if [ -z \"$dates\" ]; then echo \"$file:$line: deprecated without its dates\"; fail=1; continue; fi\n from=$(date -d \"$(echo \"$dates\" | cut -d' ' -f2 | tr -d ,)\" +%s)\n to=$(date -d \"$(echo \"$dates\" | cut -d' ' -f4)\" +%s)\n if [ $(( (to - from) / 86400 )) -lt $(( {{SUNSET_MONTHS}} * 30 )) ]; then echo \"$file:$line: sunset under {{SUNSET_MONTHS}} months after deprecation\"; fail=1; fi\ndone < <(grep -rn 'deprecated = true' api/ --include='*.proto')\nexit $fail\n```",
708
+ "hubWhen": {
709
+ "FORMAT": [
710
+ "protobuf"
711
+ ]
712
+ }
713
+ },
714
+ {
715
+ "id": "ff-usage",
716
+ "type": "fitness-fn",
717
+ "label": "Deprecated usage counted and alerted",
718
+ "x": 1040,
719
+ "y": 780,
720
+ "characteristic": "compatibility",
721
+ "scope": "atomic",
722
+ "cadence": "continual",
723
+ "invocation": "automated",
724
+ "description": "The element exports api_deprecated_calls_total{caller, operation} and api_sunset_timestamp_seconds{operation} (from the dates in the contract); Prometheus rules alert when the counter is missing and when a deprecated element close to its sunset is still called.\n\nThreshold: The counter api_deprecated_calls_total{caller, operation} is scraped (an alert fires while it is absent); an alert names every caller that called an element whose sunset is under 30 days away in the last 7 days\n\nTool: Prometheus alerting rules\n\n```yaml\ngroups:\n- name: api-deprecations\n rules:\n - alert: DeprecatedUsageNotCounted\n expr: absent(api_deprecated_calls_total)\n for: 1h\n labels: { severity: ticket }\n annotations: { summary: \"the API exports no usage counter for deprecated elements\" }\n - alert: SunsetNearWithCallers\n expr: |\n sum by (operation, caller) (increase(api_deprecated_calls_total[7d])) > 0\n and on (operation) (api_sunset_timestamp_seconds - time()) < 30 * 86400\n labels: { severity: ticket }\n annotations: { summary: \"{{ $labels.caller }} still calls {{ $labels.operation }}, whose sunset is under 30 days away\" }\n```"
725
+ },
726
+ {
727
+ "id": "ff-two-paths",
728
+ "type": "fitness-fn",
729
+ "label": "Two major versions at most",
730
+ "x": 1040,
731
+ "y": 910,
732
+ "characteristic": "compatibility",
733
+ "scope": "atomic",
734
+ "cadence": "triggered",
735
+ "trigger": "pull-request",
736
+ "invocation": "automated",
737
+ "description": "A test lists the routes from the router (not from a list kept by hand), collects their /vN/ prefixes (for gRPC, the .vN package suffixes of the registered services) and fails when there are more than two.\n\nThreshold: The router serves at most 2 distinct major version prefixes; a third fails the test\n\nTool: Vitest (or the test runner of your stack)\n\n```ts\nimport { routes } from '../src/app' // the router's table\n\nit('serves at most two major versions', () => {\n const majors = new Set(routes.map((r) => /^\\/v(\\d+)\\//.exec(r.path)?.[1]).filter(Boolean))\n expect([...majors].length, `major versions served: ${[...majors].join(', ')}`).toBeLessThanOrEqual(2)\n})\n```",
738
+ "hubWhen": {
739
+ "VERSIONING": [
740
+ "path"
741
+ ]
742
+ }
743
+ },
744
+ {
745
+ "id": "ff-header-versions",
746
+ "type": "fitness-fn",
747
+ "label": "Version header required and echoed",
748
+ "x": 1040,
749
+ "y": 1040,
750
+ "characteristic": "compatibility",
751
+ "scope": "atomic",
752
+ "cadence": "triggered",
753
+ "trigger": "pull-request",
754
+ "invocation": "automated",
755
+ "description": "A test calls the API without the header, with an unknown version and with each served version, and checks the status, the list in the 400 body and the echoed header.\n\nThreshold: A request without Api-Version, and one naming an unserved version, get 400 with the served versions; a request naming a served version is answered with that version echoed; at most 2 versions are served\n\nTool: Vitest with supertest (or the test runner and HTTP client of your stack)\n\n```ts\nimport request from 'supertest'\nimport { app } from '../src/app'\n\nit('requires the version header, echoes it, and serves two versions at most', async () => {\n const missing = await request(app).get('/orders').expect(400)\n const served: string[] = missing.body.versions\n expect(served.length).toBeLessThanOrEqual(2)\n const unknown = await request(app).get('/orders').set('Api-Version', '2000-01-01').expect(400)\n expect(unknown.body.versions).toEqual(served)\n for (const v of served) {\n const res = await request(app).get('/orders').set('Api-Version', v).expect(200)\n expect(res.headers['api-version']).toBe(v)\n }\n})\n```",
756
+ "hubWhen": {
757
+ "VERSIONING": [
758
+ "header"
638
759
  ]
639
760
  }
640
761
  },
@@ -643,10 +764,13 @@
643
764
  "type": "fitness-fn",
644
765
  "label": "Caller contracts verified",
645
766
  "x": 1040,
646
- "y": 520,
647
- "category": "process",
648
- "threshold": "100 % of the callers' pacts for the main branch and every deployed version verify on each build; can-i-deploy answers yes before every deployment",
649
- "description": "Every build of the API fetches the pacts of its callers from the Pact Broker and replays them against the running API, publishing the result; the deployment step asks can-i-deploy and stops on no.\n\nTool: Pact (pact-js Verifier, Pact Broker can-i-deploy)\n\n```ts\nimport { Verifier } from '@pact-foundation/pact'\n\nit('honours every caller\\'s pact', () =>\n new Verifier({\n provider: 'order-api',\n providerBaseUrl: 'http://localhost:8080',\n pactBrokerUrl: process.env.PACT_BROKER_BASE_URL,\n consumerVersionSelectors: [{ mainBranch: true }, { deployedOrReleased: true }],\n publishVerificationResult: true,\n providerVersion: process.env.GIT_SHA,\n }).verifyProvider())\n\n// before deploying:\n// npx pact-broker can-i-deploy --pacticipant order-api --version \"$GIT_SHA\" --to-environment production\n```",
767
+ "y": 1170,
768
+ "characteristic": "compatibility",
769
+ "scope": "holistic",
770
+ "cadence": "triggered",
771
+ "trigger": "pull-request",
772
+ "invocation": "automated",
773
+ "description": "Every build of the API fetches the pacts of its callers from the Pact Broker and replays them against the running API, publishing the result; the deployment step asks can-i-deploy and stops on no.\n\nThreshold: 100 % of the callers' pacts for the main branch and every deployed version verify on each build; can-i-deploy answers yes before every deployment\n\nTool: Pact (pact-js Verifier, Pact Broker can-i-deploy)\n\n```ts\nimport { Verifier } from '@pact-foundation/pact'\n\nit('honours every caller\\'s pact', () =>\n new Verifier({\n provider: 'order-api',\n providerBaseUrl: 'http://localhost:8080',\n pactBrokerUrl: process.env.PACT_BROKER_BASE_URL,\n consumerVersionSelectors: [{ mainBranch: true }, { deployedOrReleased: true }],\n publishVerificationResult: true,\n providerVersion: process.env.GIT_SHA,\n }).verifyProvider())\n\n// before deploying:\n// npx --package=@pact-foundation/pact-cli pact-broker can-i-deploy --pacticipant order-api --version \"$GIT_SHA\" --to-environment production\n```",
650
774
  "hubWhen": {
651
775
  "CONTRACT_TESTS": [
652
776
  "pact"
@@ -658,28 +782,41 @@
658
782
  "type": "fitness-fn",
659
783
  "label": "API conforms to contract",
660
784
  "x": 1040,
661
- "y": 650,
662
- "category": "structural",
663
- "threshold": "0 answers whose status code, headers or body the contract does not describe, over every operation, on each build",
664
- "description": "On every build, Schemathesis generates calls for each operation of the published contract (OpenAPI or GraphQL), runs them against a running instance and fails on an answer the contract does not allow or on a server error. For gRPC the generated server stubs make the build fail instead.\n\nTool: Schemathesis\n\n```yaml\n# .github/workflows/api-contract.yml (after the API is started)\n- name: The running API conforms to its contract\n uses: schemathesis/action@v1\n with:\n schema: 'http://localhost:8080/openapi.json' # or http://localhost:8080/graphql\n```",
785
+ "y": 1300,
786
+ "characteristic": "compatibility",
787
+ "scope": "atomic",
788
+ "cadence": "triggered",
789
+ "trigger": "pull-request",
790
+ "invocation": "automated",
791
+ "description": "On every build, Schemathesis generates calls for each operation of the published contract (OpenAPI or GraphQL), runs them against a running instance and fails on an answer the contract does not allow or on a server error.\n\nThreshold: 0 answers whose status code, headers or body the contract does not describe, and 0 server errors, over every operation, on each build\n\nTool: Schemathesis\n\n```bash\n# CI step, after the API is started\npip install 'schemathesis>=4'\nst run \"$API_URL/openapi.json\" --checks all # for a GraphQL schema: st run \"$API_URL/graphql\" --checks all\n```",
665
792
  "hubWhen": {
666
793
  "CONTRACT_TESTS": [
667
794
  "conformance"
795
+ ],
796
+ "FORMAT": [
797
+ "openapi",
798
+ "graphql"
668
799
  ]
669
800
  }
670
801
  },
671
802
  {
672
- "id": "ff-instep",
803
+ "id": "ff-conformance-grpc",
673
804
  "type": "fitness-fn",
674
- "label": "Callers built with contract",
805
+ "label": "Server conforms to contract",
675
806
  "x": 1040,
676
- "y": 780,
677
- "category": "process",
678
- "threshold": "Every caller of the contract is built and tested in the pipeline of each change to it; 0 callers depend on a published copy of the contract",
679
- "description": "The callers depend on the contract project inside the workspace, so the build graph puts each of them in the affected set of a change to the contract; a module-boundary rule fails the lint when a caller imports a published client package instead.\n\nTool: Nx (nx affected, @nx/enforce-module-boundaries)\n\n```yaml\n# .github/workflows/ci.yml\n- run: npx nx affected -t lint test e2e --base=origin/main\n# eslint.config: callers may use the contract only from the workspace\n# '@nx/enforce-module-boundaries': ['error', {\n# banTransitiveDependencies: true,\n# depConstraints: [{ sourceTag: 'type:caller', onlyDependOnLibsWithTags: ['type:contract', 'type:lib'] }],\n# }]\n```",
807
+ "y": 1430,
808
+ "characteristic": "compatibility",
809
+ "scope": "atomic",
810
+ "cadence": "triggered",
811
+ "trigger": "pull-request",
812
+ "invocation": "automated",
813
+ "description": "On every build, the services the server reflects are compared with those of the contract's descriptors, and every RPC is called with an empty request; a crash (Unknown, Internal) fails the build, an InvalidArgument does not.\n\nThreshold: The services the running server reflects equal the services of the contract; 0 RPCs answer Unknown or Internal to an empty request\n\nTool: buf and grpcurl\n\n```bash\n#!/usr/bin/env bash\nset -euo pipefail\nbuf build -o /tmp/contract.binpb\ndiff <(grpcurl -protoset /tmp/contract.binpb list | sort) <(grpcurl -plaintext \"$GRPC_ADDRESS\" list | grep -v '^grpc\\.' | sort)\nfail=0\nfor svc in $(grpcurl -protoset /tmp/contract.binpb list); do\n for rpc in $(grpcurl -protoset /tmp/contract.binpb list \"$svc\"); do\n out=$(grpcurl -plaintext -d '{}' \"$GRPC_ADDRESS\" \"$rpc\" 2>&1 || true)\n if echo \"$out\" | grep -qE 'Code: (Unknown|Internal)'; then echo \"$rpc crashes on an empty request\"; fail=1; fi\n done\ndone\nexit $fail\n```",
680
814
  "hubWhen": {
681
- "CHANGE": [
682
- "instep"
815
+ "CONTRACT_TESTS": [
816
+ "conformance"
817
+ ],
818
+ "FORMAT": [
819
+ "protobuf"
683
820
  ]
684
821
  }
685
822
  }
@@ -709,6 +846,12 @@
709
846
  "targetId": "need",
710
847
  "relationType": "derives"
711
848
  },
849
+ {
850
+ "id": "req-header-echo--derives--need",
851
+ "sourceId": "req-header-echo",
852
+ "targetId": "need",
853
+ "relationType": "derives"
854
+ },
712
855
  {
713
856
  "id": "req-versionless--derives--need",
714
857
  "sourceId": "req-versionless",
@@ -722,14 +865,20 @@
722
865
  "relationType": "derives"
723
866
  },
724
867
  {
725
- "id": "req-usage--derives--need",
726
- "sourceId": "req-usage",
868
+ "id": "req-sunset-graphql--derives--need",
869
+ "sourceId": "req-sunset-graphql",
727
870
  "targetId": "need",
728
871
  "relationType": "derives"
729
872
  },
730
873
  {
731
- "id": "req-instep--derives--need",
732
- "sourceId": "req-instep",
874
+ "id": "req-sunset-protobuf--derives--need",
875
+ "sourceId": "req-sunset-protobuf",
876
+ "targetId": "need",
877
+ "relationType": "derives"
878
+ },
879
+ {
880
+ "id": "req-usage--derives--need",
881
+ "sourceId": "req-usage",
733
882
  "targetId": "need",
734
883
  "relationType": "derives"
735
884
  },
@@ -745,6 +894,12 @@
745
894
  "targetId": "need",
746
895
  "relationType": "derives"
747
896
  },
897
+ {
898
+ "id": "req-conformance-grpc--derives--need",
899
+ "sourceId": "req-conformance-grpc",
900
+ "targetId": "need",
901
+ "relationType": "derives"
902
+ },
748
903
  {
749
904
  "id": "sc-contract--verifies--req-contract",
750
905
  "sourceId": "sc-contract",
@@ -769,6 +924,12 @@
769
924
  "targetId": "req-header",
770
925
  "relationType": "verifies"
771
926
  },
927
+ {
928
+ "id": "sc-header-echo--verifies--req-header-echo",
929
+ "sourceId": "sc-header-echo",
930
+ "targetId": "req-header-echo",
931
+ "relationType": "verifies"
932
+ },
772
933
  {
773
934
  "id": "sc-versionless--verifies--req-versionless",
774
935
  "sourceId": "sc-versionless",
@@ -782,15 +943,21 @@
782
943
  "relationType": "verifies"
783
944
  },
784
945
  {
785
- "id": "sc-usage--verifies--req-usage",
786
- "sourceId": "sc-usage",
787
- "targetId": "req-usage",
946
+ "id": "sc-sunset-graphql--verifies--req-sunset-graphql",
947
+ "sourceId": "sc-sunset-graphql",
948
+ "targetId": "req-sunset-graphql",
949
+ "relationType": "verifies"
950
+ },
951
+ {
952
+ "id": "sc-sunset-protobuf--verifies--req-sunset-protobuf",
953
+ "sourceId": "sc-sunset-protobuf",
954
+ "targetId": "req-sunset-protobuf",
788
955
  "relationType": "verifies"
789
956
  },
790
957
  {
791
- "id": "sc-instep--verifies--req-instep",
792
- "sourceId": "sc-instep",
793
- "targetId": "req-instep",
958
+ "id": "sc-usage--verifies--req-usage",
959
+ "sourceId": "sc-usage",
960
+ "targetId": "req-usage",
794
961
  "relationType": "verifies"
795
962
  },
796
963
  {
@@ -805,6 +972,12 @@
805
972
  "targetId": "req-conformance",
806
973
  "relationType": "verifies"
807
974
  },
975
+ {
976
+ "id": "sc-conformance-grpc--verifies--req-conformance-grpc",
977
+ "sourceId": "sc-conformance-grpc",
978
+ "targetId": "req-conformance-grpc",
979
+ "relationType": "verifies"
980
+ },
808
981
  {
809
982
  "id": "ff-oasdiff--implements--adr-version-path",
810
983
  "sourceId": "ff-oasdiff",
@@ -877,6 +1050,72 @@
877
1050
  "targetId": "adr-versionless",
878
1051
  "relationType": "implements"
879
1052
  },
1053
+ {
1054
+ "id": "ff-sunset-graphql--implements--adr-version-path",
1055
+ "sourceId": "ff-sunset-graphql",
1056
+ "targetId": "adr-version-path",
1057
+ "relationType": "implements"
1058
+ },
1059
+ {
1060
+ "id": "ff-sunset-graphql--implements--adr-version-header",
1061
+ "sourceId": "ff-sunset-graphql",
1062
+ "targetId": "adr-version-header",
1063
+ "relationType": "implements"
1064
+ },
1065
+ {
1066
+ "id": "ff-sunset-graphql--implements--adr-versionless",
1067
+ "sourceId": "ff-sunset-graphql",
1068
+ "targetId": "adr-versionless",
1069
+ "relationType": "implements"
1070
+ },
1071
+ {
1072
+ "id": "ff-sunset-protobuf--implements--adr-version-path",
1073
+ "sourceId": "ff-sunset-protobuf",
1074
+ "targetId": "adr-version-path",
1075
+ "relationType": "implements"
1076
+ },
1077
+ {
1078
+ "id": "ff-sunset-protobuf--implements--adr-version-header",
1079
+ "sourceId": "ff-sunset-protobuf",
1080
+ "targetId": "adr-version-header",
1081
+ "relationType": "implements"
1082
+ },
1083
+ {
1084
+ "id": "ff-sunset-protobuf--implements--adr-versionless",
1085
+ "sourceId": "ff-sunset-protobuf",
1086
+ "targetId": "adr-versionless",
1087
+ "relationType": "implements"
1088
+ },
1089
+ {
1090
+ "id": "ff-usage--implements--adr-version-path",
1091
+ "sourceId": "ff-usage",
1092
+ "targetId": "adr-version-path",
1093
+ "relationType": "implements"
1094
+ },
1095
+ {
1096
+ "id": "ff-usage--implements--adr-version-header",
1097
+ "sourceId": "ff-usage",
1098
+ "targetId": "adr-version-header",
1099
+ "relationType": "implements"
1100
+ },
1101
+ {
1102
+ "id": "ff-usage--implements--adr-versionless",
1103
+ "sourceId": "ff-usage",
1104
+ "targetId": "adr-versionless",
1105
+ "relationType": "implements"
1106
+ },
1107
+ {
1108
+ "id": "ff-two-paths--implements--adr-version-path",
1109
+ "sourceId": "ff-two-paths",
1110
+ "targetId": "adr-version-path",
1111
+ "relationType": "implements"
1112
+ },
1113
+ {
1114
+ "id": "ff-header-versions--implements--adr-version-header",
1115
+ "sourceId": "ff-header-versions",
1116
+ "targetId": "adr-version-header",
1117
+ "relationType": "implements"
1118
+ },
880
1119
  {
881
1120
  "id": "ff-pact--implements--adr-version-path",
882
1121
  "sourceId": "ff-pact",
@@ -895,12 +1134,6 @@
895
1134
  "targetId": "adr-versionless",
896
1135
  "relationType": "implements"
897
1136
  },
898
- {
899
- "id": "ff-pact--implements--adr-instep",
900
- "sourceId": "ff-pact",
901
- "targetId": "adr-instep",
902
- "relationType": "implements"
903
- },
904
1137
  {
905
1138
  "id": "ff-conformance--implements--adr-version-path",
906
1139
  "sourceId": "ff-conformance",
@@ -920,15 +1153,21 @@
920
1153
  "relationType": "implements"
921
1154
  },
922
1155
  {
923
- "id": "ff-conformance--implements--adr-instep",
924
- "sourceId": "ff-conformance",
925
- "targetId": "adr-instep",
1156
+ "id": "ff-conformance-grpc--implements--adr-version-path",
1157
+ "sourceId": "ff-conformance-grpc",
1158
+ "targetId": "adr-version-path",
926
1159
  "relationType": "implements"
927
1160
  },
928
1161
  {
929
- "id": "ff-instep--implements--adr-instep",
930
- "sourceId": "ff-instep",
931
- "targetId": "adr-instep",
1162
+ "id": "ff-conformance-grpc--implements--adr-version-header",
1163
+ "sourceId": "ff-conformance-grpc",
1164
+ "targetId": "adr-version-header",
1165
+ "relationType": "implements"
1166
+ },
1167
+ {
1168
+ "id": "ff-conformance-grpc--implements--adr-versionless",
1169
+ "sourceId": "ff-conformance-grpc",
1170
+ "targetId": "adr-versionless",
932
1171
  "relationType": "implements"
933
1172
  }
934
1173
  ]