@radicaltools/cli 0.4.0 → 0.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (61) hide show
  1. package/README.md +54 -27
  2. package/dist/{chunk-3H4ISGOV.js → chunk-J5ULJOOY.js} +1 -1
  3. package/dist/{dist-5ZBGYT7R.js → dist-TKLLLHVM.js} +2 -2
  4. package/dist/hub-catalogue/concern/concern-api-collections.radical +24 -12
  5. package/dist/hub-catalogue/concern/concern-api-errors.radical +26 -13
  6. package/dist/hub-catalogue/concern/concern-api-evolution.radical +26 -13
  7. package/dist/hub-catalogue/concern/concern-api-idempotency.radical +28 -14
  8. package/dist/hub-catalogue/concern/concern-api-resource-design.radical +24 -12
  9. package/dist/hub-catalogue/concern/concern-api-style-guide.radical +26 -13
  10. package/dist/hub-catalogue/concern/concern-architecture-style.radical +26 -13
  11. package/dist/hub-catalogue/concern/concern-audit-trail.radical +26 -13
  12. package/dist/hub-catalogue/concern/concern-authentication.radical +18 -9
  13. package/dist/hub-catalogue/concern/concern-authorization.radical +34 -17
  14. package/dist/hub-catalogue/concern/concern-availability.radical +20 -10
  15. package/dist/hub-catalogue/concern/concern-backend-stack.radical +16 -8
  16. package/dist/hub-catalogue/concern/concern-backup-recovery.radical +30 -15
  17. package/dist/hub-catalogue/concern/concern-caching.radical +28 -14
  18. package/dist/hub-catalogue/concern/concern-capacity.radical +18 -9
  19. package/dist/hub-catalogue/concern/concern-code-documentation.radical +32 -16
  20. package/dist/hub-catalogue/concern/concern-code-quality-gate.radical +30 -15
  21. package/dist/hub-catalogue/concern/concern-code-review-branching.radical +32 -16
  22. package/dist/hub-catalogue/concern/concern-code-style.radical +24 -12
  23. package/dist/hub-catalogue/concern/concern-communication-style.radical +28 -14
  24. package/dist/hub-catalogue/concern/concern-data-classification.radical +20 -10
  25. package/dist/hub-catalogue/concern/concern-data-consistency.radical +20 -10
  26. package/dist/hub-catalogue/concern/concern-data-store.radical +24 -12
  27. package/dist/hub-catalogue/concern/concern-decomposition.radical +28 -14
  28. package/dist/hub-catalogue/concern/concern-definition-of-done.radical +26 -13
  29. package/dist/hub-catalogue/concern/concern-delivery-metrics.radical +22 -11
  30. package/dist/hub-catalogue/concern/concern-dependency-hygiene.radical +28 -14
  31. package/dist/hub-catalogue/concern/concern-deployment.radical +24 -12
  32. package/dist/hub-catalogue/concern/concern-encryption.radical +28 -14
  33. package/dist/hub-catalogue/concern/concern-error-handling-logging.radical +28 -14
  34. package/dist/hub-catalogue/concern/concern-eu-dora.radical +26 -13
  35. package/dist/hub-catalogue/concern/concern-frontend-stack.radical +28 -14
  36. package/dist/hub-catalogue/concern/concern-incident-management.radical +26 -13
  37. package/dist/hub-catalogue/concern/concern-infrastructure.radical +34 -17
  38. package/dist/hub-catalogue/concern/concern-integration-resilience.radical +26 -13
  39. package/dist/hub-catalogue/concern/concern-messaging.radical +18 -9
  40. package/dist/hub-catalogue/concern/concern-module-boundaries.radical +18 -9
  41. package/dist/hub-catalogue/concern/concern-observability.radical +22 -11
  42. package/dist/hub-catalogue/concern/concern-operational-readiness.radical +28 -14
  43. package/dist/hub-catalogue/concern/concern-personal-data.radical +42 -21
  44. package/dist/hub-catalogue/concern/concern-quality-priorities.radical +24 -12
  45. package/dist/hub-catalogue/concern/concern-rate-limiting.radical +30 -15
  46. package/dist/hub-catalogue/concern/concern-release-versioning.radical +28 -14
  47. package/dist/hub-catalogue/concern/concern-retention.radical +28 -14
  48. package/dist/hub-catalogue/concern/concern-secrets.radical +32 -16
  49. package/dist/hub-catalogue/concern/concern-secure-coding.radical +28 -14
  50. package/dist/hub-catalogue/concern/concern-secure-development.radical +26 -13
  51. package/dist/hub-catalogue/concern/concern-security-detection.radical +22 -11
  52. package/dist/hub-catalogue/concern/concern-supply-chain.radical +28 -14
  53. package/dist/hub-catalogue/concern/concern-technical-debt.radical +30 -15
  54. package/dist/hub-catalogue/concern/concern-technology-lifecycle.radical +26 -13
  55. package/dist/hub-catalogue/concern/concern-tenant-isolation.radical +26 -13
  56. package/dist/hub-catalogue/concern/concern-test-strategy.radical +26 -13
  57. package/dist/hub-catalogue/concern/concern-threat-modelling.radical +26 -13
  58. package/dist/index.js +1626 -284
  59. package/dist/{pdfjs-I4NKVZXV.js → pdfjs-SWTQBTNZ.js} +1 -1
  60. package/dist/{undici-4Q3DBBHR.js → undici-ZXQJUQQA.js} +1 -1
  61. package/package.json +1 -1
package/README.md CHANGED
@@ -214,13 +214,19 @@ radical implement "Orders API" --path services/orders-api
214
214
  radical implement 8c66e024-… --path apps/cli --path apps/cli-shared
215
215
  radical implement "Orders API" # where it is built
216
216
  radical implement "Orders API" --remove
217
+ radical implement 8c66e024-… --remove # an element the model no longer has
217
218
  ```
218
219
 
219
220
  The element is its id or its name (an element of another model of the
220
221
  federation, as fetched, too); a name two elements share needs the id. Paths
221
222
  are from the working directory and kept from the repository's root; they
222
223
  replace the element's paths. An element without an entry is built where its
223
- nearest parent with one is.
224
+ nearest parent with one is. `--remove` also takes out an entry whose element
225
+ the model no longer has, by its id or name (`radical verify --remove` too).
226
+ The file is the one `radical check` reads: found from the model folder up to
227
+ the repository's root, else a new one in the repository's `.radical/` (outside
228
+ a repository, beside the model folder), where the MCP server and Studio write
229
+ it too. Keys the command does not know (`$schema`, an `owner`) stay.
224
230
 
225
231
  ## radical diff
226
232
 
@@ -283,7 +289,7 @@ installs the hooks for `.radical/model/` and saves its base once.
283
289
  ## radical federation
284
290
 
285
291
  ```sh
286
- node apps/cli/dist/index.js federation open|sync|watch path/to/model [--force]
292
+ node apps/cli/dist/index.js federation fetch [path/to/model] [--quiet] [--detach]
287
293
  ```
288
294
 
289
295
  One model across many repositories. A model folder names the models it
@@ -299,27 +305,22 @@ depends on in `deps.json`:
299
305
  ```
300
306
 
301
307
  `repo` is a git address or a path relative to the model folder, `path` the
302
- model folder in that repository, `ref` a branch, tag or commit.
303
-
304
- - `open` fetches each dependency at its ref into the cache (`$RADICAL_CACHE`,
305
- else the user's cache directory; one bare partial clone per repository, so
306
- only the model files are downloaded) and composes one model folder in
307
- `.radical/federation/`: the folder's own elements, relations, views and
308
- metamodel as they are, and every dependency's elements and relations with
309
- `origin: "<name>@<commit>"`. Studio and the MCP server open that folder;
310
- they draw elements with an origin dashed and refuse every change to them
311
- but their place. The composed folder gets a base composed the same way
312
- (Changes on branch shows only this model's changes), `check.json` and the
313
- test results. Changes not carried home yet are carried first.
314
- - `sync` writes what has no origin back to the model folder, and names each
315
- change to an element or relation with an origin, which it keeps out and
316
- undoes in the composed folder (exit 1). When the model folder changed too,
317
- nothing is carried unless `--force`; `open --force` composes again from the
318
- model folder and drops the composed folder's changes.
319
- - `watch` opens, then keeps both in step until stopped (Ctrl-C).
320
-
321
- Dependencies are not composed transitively. With a `deps.json`,
322
- `radical check` checks the model composed with its dependencies (see below).
308
+ model folder in that repository, `ref` a branch, tag or commit, or `latest`
309
+ (the newest version tag, else the default branch, at each fetch).
310
+
311
+ `fetch` fetches each dependency at its ref into the cache (`$RADICAL_CACHE`,
312
+ else the user's cache directory; one bare partial clone per repository, so
313
+ only the model files are downloaded), and the models it depends on in turn
314
+ (a model pinned twice at the nearest pin: the folder's own `deps.json`
315
+ first). It writes their elements, relations and views, each with
316
+ `origin: "<name>@<commit>"`, into `.state/federation.json` in the model
317
+ folder, out of git. Studio and the MCP server open the model folder itself
318
+ and show them beside its own, read-only; they never write them into the
319
+ folder. Without a `deps.json` there is nothing to fetch (exit 0). `--quiet`
320
+ prints nothing, `--detach` fetches in the background and returns at once:
321
+ `radical hooks install` runs `fetch --quiet --detach` after a checkout, a
322
+ commit, a pull and a rebase. With a `deps.json`, `radical check` checks the
323
+ model composed with its dependencies (see below).
323
324
 
324
325
  ## radical check
325
326
 
@@ -374,7 +375,14 @@ check, so an existing model can adopt a rule before every gap is closed.
374
375
  `--ratchet` lowers each `max` to the count found now and writes the config
375
376
  back; it never raises one. A rule that did not run keeps its `max`: the
376
377
  `test-*` rules without `--report` (the output marks them `–` and "not run"),
377
- every rule but the folder's when the folder is no model.
378
+ every rule but the folder's when the folder is no model. In a repository
379
+ that judges only its part of a model kept in a repository of its own
380
+ (`"model": { "repo": … }` in `.radical/radical.json`), the model's
381
+ `check.json` holds the whole model's baselines: `--ratchet` refuses to lower
382
+ them (exit 2), and lowers only a config of the repository's own named with
383
+ `--config`. With `--alone` or `--trigger`, which leave part of the model out
384
+ (the models `deps.json` names, the metric conditions of other events),
385
+ `--ratchet` lowers no baseline (exit 2).
378
386
 
379
387
  ### Goals
380
388
 
@@ -421,7 +429,10 @@ The model names no test: the repository binds its tests to the model's
421
429
  scenarios and fitness functions in `.radical/radical.json` ("verifies"), and
422
430
  a scenario or fitness function passes when every test bound to it passed and
423
431
  its `metrics` (metric conditions only) hold. A test is named as Vitest and
424
- Playwright print it, from the repository's root:
432
+ Playwright print it, from the repository's root, its parts joined by `›`
433
+ (Vitest's `>` is read too, and `radical verify` keeps it with `›`; the
434
+ project Playwright or Vitest prints before the file, `[chromium] › ` or
435
+ `|unit| `, and the line and column after it, `:2:3`, are left out):
425
436
 
426
437
  ```sh
427
438
  radical verify "Prints JSON" --test "apps/cli/src/cli.test.ts › radical check › prints the result as JSON"
@@ -432,6 +443,14 @@ radical verify "Prints JSON" # its tests
432
443
  radical verify "Prints JSON" --drop "<test>" # take one off
433
444
  ```
434
445
 
446
+ A test may be bound to a scenario or fitness function of another model of
447
+ the federation (a consumer contract test): it is this repository's, so
448
+ `radical check` judges it with the model's own (a failed or missing test is
449
+ an error here), and `--trace` shows that scenario's path, with the other
450
+ model's requirement above a failed one broken, as the check says. Before any
451
+ results, `--trace` lists the tests bound to each scenario and fitness function
452
+ with no outcome yet.
453
+
435
454
  `radical check` warns about a scenario the repository must verify (an
436
455
  element it builds satisfies its requirement) that has no test bound and no
437
456
  metric condition (`scenario-not-verified-here`), and about a test still
@@ -758,12 +777,20 @@ ports (`<ports>+NN`, `+100+NN`, `+200+NN`) and a `PROMPT.md` with its area;
758
777
  `BRIEF.md` names the commit, the commits and the model elements changed since
759
778
  the last round (by area), the open findings, the setup, the rules and the
760
779
  report's JSON form. `--since`, `--from` and `--no-build` change what it
761
- counts from, the first run's number and whether it builds. The brief asks
780
+ counts from, the first run's number and whether it builds; a run number an
781
+ earlier round has is refused (exit 2). The brief asks
762
782
  that scripts name no absolute path (they find the repository by walking up to
763
783
  `.radical/crucible/crucible.json`), since a finding's script is copied out of the round.
764
784
  `verify` serves a run's build on its ports (each server `serve` lists, on the
765
785
  run's port it names: `app`, `hub` or `other`), runs its scripts from its
766
- folder and stops the servers. `record` writes a report's findings (`open`, or
786
+ folder and stops the servers; a script not in the folder stops it before
787
+ anything runs (exit 2). A script shows the bug when it exits 1, and
788
+ says so in a line of its own (`REPRODUCED: yes` or `REPRODUCED: no`; `BUG: …`
789
+ and `FINDING: …` count as yes, whatever they say): `verify` prints those lines and whether the
790
+ bug shows for each script (the line wins, as a script that throws exits 1
791
+ too, and it says when exit and line disagree), keeps both in `round.json`, and
792
+ ends with the scripts that show the bug and those that do not. A run's folder
793
+ is `run-NN` in its round's folder, wherever the rounds folder is now. `record` writes a report's findings (`open`, or
767
794
  `question`) with copies of their scripts and of the screenshot each names,
768
795
  and warns about a copied script that names the repository's or the round's
769
796
  absolute paths.
@@ -16,7 +16,7 @@ var __commonJS = (cb, mod) => function __require2() {
16
16
  var define_RADICAL_BUILD_default;
17
17
  var init_define_RADICAL_BUILD = __esm({
18
18
  "<define:__RADICAL_BUILD__>"() {
19
- define_RADICAL_BUILD_default = { version: "0.4.0", commit: "8f1e2cd", date: "2026-11-10", release: true };
19
+ define_RADICAL_BUILD_default = { version: "0.5.0", commit: "166db2f", date: "2026-11-16", release: true };
20
20
  }
21
21
  });
22
22
 
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  init_define_RADICAL_BUILD
3
- } from "./chunk-3H4ISGOV.js";
3
+ } from "./chunk-J5ULJOOY.js";
4
4
 
5
5
  // ../../packages/assay/node_modules/unpdf/dist/index.mjs
6
6
  init_define_RADICAL_BUILD();
@@ -41,7 +41,7 @@ async function resolvePDFJSImports(pdfjsResolver, { force = false } = {}) {
41
41
  }
42
42
  }
43
43
  try {
44
- const { resolvePDFJS } = await import("./pdfjs-I4NKVZXV.js");
44
+ const { resolvePDFJS } = await import("./pdfjs-SWTQBTNZ.js");
45
45
  resolvedModule = await resolvePDFJS();
46
46
  } catch (error) {
47
47
  console.error(error);
@@ -842,73 +842,85 @@
842
842
  "id": "req-paged--derives--need",
843
843
  "sourceId": "req-paged",
844
844
  "targetId": "need",
845
- "relationType": "derives"
845
+ "relationType": "derives",
846
+ "quote": "Callers read collections from this element over HTTP, and the collections grow. Every list has to come back in bounded time and size however large its collection gets, show each item once to a caller who reads it page by page, apply exactly the filters and order the caller asked for or refuse the request, and hand out nothing callers could come to depend on by accident, such as ids or offsets inside a page token. The snippets assume the OpenAPI document at api/openapi.yaml, the application exported from src/app with requests validated against that document, page tokens sealed by src/collections/pageToken, and the tests under tests/ with their fixtures in tests/collections (a seeded /orders collection and a walk helper that reads every page of a list). Names are written in snake_case as Google AIP-158 writes them (page_size, page_token, next_page_token, order_by); where the Resource design pack chose camelCase, read pageSize, pageToken, nextPageToken and orderBy."
846
847
  },
847
848
  {
848
849
  "id": "req-token-opaque--derives--need",
849
850
  "sourceId": "req-token-opaque",
850
851
  "targetId": "need",
851
- "relationType": "derives"
852
+ "relationType": "derives",
853
+ "quote": "Callers read collections from this element over HTTP, and the collections grow. Every list has to come back in bounded time and size however large its collection gets, show each item once to a caller who reads it page by page, apply exactly the filters and order the caller asked for or refuse the request, and hand out nothing callers could come to depend on by accident, such as ids or offsets inside a page token. The snippets assume the OpenAPI document at api/openapi.yaml, the application exported from src/app with requests validated against that document, page tokens sealed by src/collections/pageToken, and the tests under tests/ with their fixtures in tests/collections (a seeded /orders collection and a walk helper that reads every page of a list). Names are written in snake_case as Google AIP-158 writes them (page_size, page_token, next_page_token, order_by); where the Resource design pack chose camelCase, read pageSize, pageToken, nextPageToken and orderBy."
852
854
  },
853
855
  {
854
856
  "id": "req-token-refused--derives--need",
855
857
  "sourceId": "req-token-refused",
856
858
  "targetId": "need",
857
- "relationType": "derives"
859
+ "relationType": "derives",
860
+ "quote": "Callers read collections from this element over HTTP, and the collections grow. Every list has to come back in bounded time and size however large its collection gets, show each item once to a caller who reads it page by page, apply exactly the filters and order the caller asked for or refuse the request, and hand out nothing callers could come to depend on by accident, such as ids or offsets inside a page token. The snippets assume the OpenAPI document at api/openapi.yaml, the application exported from src/app with requests validated against that document, page tokens sealed by src/collections/pageToken, and the tests under tests/ with their fixtures in tests/collections (a seeded /orders collection and a walk helper that reads every page of a list). Names are written in snake_case as Google AIP-158 writes them (page_size, page_token, next_page_token, order_by); where the Resource design pack chose camelCase, read pageSize, pageToken, nextPageToken and orderBy."
858
861
  },
859
862
  {
860
863
  "id": "req-cursor-consistent--derives--need",
861
864
  "sourceId": "req-cursor-consistent",
862
865
  "targetId": "need",
863
- "relationType": "derives"
866
+ "relationType": "derives",
867
+ "quote": "Callers read collections from this element over HTTP, and the collections grow. Every list has to come back in bounded time and size however large its collection gets, show each item once to a caller who reads it page by page, apply exactly the filters and order the caller asked for or refuse the request, and hand out nothing callers could come to depend on by accident, such as ids or offsets inside a page token. The snippets assume the OpenAPI document at api/openapi.yaml, the application exported from src/app with requests validated against that document, page tokens sealed by src/collections/pageToken, and the tests under tests/ with their fixtures in tests/collections (a seeded /orders collection and a walk helper that reads every page of a list). Names are written in snake_case as Google AIP-158 writes them (page_size, page_token, next_page_token, order_by); where the Resource design pack chose camelCase, read pageSize, pageToken, nextPageToken and orderBy."
864
868
  },
865
869
  {
866
870
  "id": "req-offset-cap--derives--need",
867
871
  "sourceId": "req-offset-cap",
868
872
  "targetId": "need",
869
- "relationType": "derives"
873
+ "relationType": "derives",
874
+ "quote": "Callers read collections from this element over HTTP, and the collections grow. Every list has to come back in bounded time and size however large its collection gets, show each item once to a caller who reads it page by page, apply exactly the filters and order the caller asked for or refuse the request, and hand out nothing callers could come to depend on by accident, such as ids or offsets inside a page token. The snippets assume the OpenAPI document at api/openapi.yaml, the application exported from src/app with requests validated against that document, page tokens sealed by src/collections/pageToken, and the tests under tests/ with their fixtures in tests/collections (a seeded /orders collection and a walk helper that reads every page of a list). Names are written in snake_case as Google AIP-158 writes them (page_size, page_token, next_page_token, order_by); where the Resource design pack chose camelCase, read pageSize, pageToken, nextPageToken and orderBy."
870
875
  },
871
876
  {
872
877
  "id": "req-bounded--derives--need",
873
878
  "sourceId": "req-bounded",
874
879
  "targetId": "need",
875
- "relationType": "derives"
880
+ "relationType": "derives",
881
+ "quote": "Callers read collections from this element over HTTP, and the collections grow. Every list has to come back in bounded time and size however large its collection gets, show each item once to a caller who reads it page by page, apply exactly the filters and order the caller asked for or refuse the request, and hand out nothing callers could come to depend on by accident, such as ids or offsets inside a page token. The snippets assume the OpenAPI document at api/openapi.yaml, the application exported from src/app with requests validated against that document, page tokens sealed by src/collections/pageToken, and the tests under tests/ with their fixtures in tests/collections (a seeded /orders collection and a walk helper that reads every page of a list). Names are written in snake_case as Google AIP-158 writes them (page_size, page_token, next_page_token, order_by); where the Resource design pack chose camelCase, read pageSize, pageToken, nextPageToken and orderBy."
876
882
  },
877
883
  {
878
884
  "id": "req-order--derives--need",
879
885
  "sourceId": "req-order",
880
886
  "targetId": "need",
881
- "relationType": "derives"
887
+ "relationType": "derives",
888
+ "quote": "Callers read collections from this element over HTTP, and the collections grow. Every list has to come back in bounded time and size however large its collection gets, show each item once to a caller who reads it page by page, apply exactly the filters and order the caller asked for or refuse the request, and hand out nothing callers could come to depend on by accident, such as ids or offsets inside a page token. The snippets assume the OpenAPI document at api/openapi.yaml, the application exported from src/app with requests validated against that document, page tokens sealed by src/collections/pageToken, and the tests under tests/ with their fixtures in tests/collections (a seeded /orders collection and a walk helper that reads every page of a list). Names are written in snake_case as Google AIP-158 writes them (page_size, page_token, next_page_token, order_by); where the Resource design pack chose camelCase, read pageSize, pageToken, nextPageToken and orderBy."
882
889
  },
883
890
  {
884
891
  "id": "req-unknown--derives--need",
885
892
  "sourceId": "req-unknown",
886
893
  "targetId": "need",
887
- "relationType": "derives"
894
+ "relationType": "derives",
895
+ "quote": "Callers read collections from this element over HTTP, and the collections grow. Every list has to come back in bounded time and size however large its collection gets, show each item once to a caller who reads it page by page, apply exactly the filters and order the caller asked for or refuse the request, and hand out nothing callers could come to depend on by accident, such as ids or offsets inside a page token. The snippets assume the OpenAPI document at api/openapi.yaml, the application exported from src/app with requests validated against that document, page tokens sealed by src/collections/pageToken, and the tests under tests/ with their fixtures in tests/collections (a seeded /orders collection and a walk helper that reads every page of a list). Names are written in snake_case as Google AIP-158 writes them (page_size, page_token, next_page_token, order_by); where the Resource design pack chose camelCase, read pageSize, pageToken, nextPageToken and orderBy."
888
896
  },
889
897
  {
890
898
  "id": "req-filter--derives--need",
891
899
  "sourceId": "req-filter",
892
900
  "targetId": "need",
893
- "relationType": "derives"
901
+ "relationType": "derives",
902
+ "quote": "Callers read collections from this element over HTTP, and the collections grow. Every list has to come back in bounded time and size however large its collection gets, show each item once to a caller who reads it page by page, apply exactly the filters and order the caller asked for or refuse the request, and hand out nothing callers could come to depend on by accident, such as ids or offsets inside a page token. The snippets assume the OpenAPI document at api/openapi.yaml, the application exported from src/app with requests validated against that document, page tokens sealed by src/collections/pageToken, and the tests under tests/ with their fixtures in tests/collections (a seeded /orders collection and a walk helper that reads every page of a list). Names are written in snake_case as Google AIP-158 writes them (page_size, page_token, next_page_token, order_by); where the Resource design pack chose camelCase, read pageSize, pageToken, nextPageToken and orderBy."
894
903
  },
895
904
  {
896
905
  "id": "req-sort--derives--need",
897
906
  "sourceId": "req-sort",
898
907
  "targetId": "need",
899
- "relationType": "derives"
908
+ "relationType": "derives",
909
+ "quote": "Callers read collections from this element over HTTP, and the collections grow. Every list has to come back in bounded time and size however large its collection gets, show each item once to a caller who reads it page by page, apply exactly the filters and order the caller asked for or refuse the request, and hand out nothing callers could come to depend on by accident, such as ids or offsets inside a page token. The snippets assume the OpenAPI document at api/openapi.yaml, the application exported from src/app with requests validated against that document, page tokens sealed by src/collections/pageToken, and the tests under tests/ with their fixtures in tests/collections (a seeded /orders collection and a walk helper that reads every page of a list). Names are written in snake_case as Google AIP-158 writes them (page_size, page_token, next_page_token, order_by); where the Resource design pack chose camelCase, read pageSize, pageToken, nextPageToken and orderBy."
900
910
  },
901
911
  {
902
912
  "id": "req-fields--derives--need",
903
913
  "sourceId": "req-fields",
904
914
  "targetId": "need",
905
- "relationType": "derives"
915
+ "relationType": "derives",
916
+ "quote": "Callers read collections from this element over HTTP, and the collections grow. Every list has to come back in bounded time and size however large its collection gets, show each item once to a caller who reads it page by page, apply exactly the filters and order the caller asked for or refuse the request, and hand out nothing callers could come to depend on by accident, such as ids or offsets inside a page token. The snippets assume the OpenAPI document at api/openapi.yaml, the application exported from src/app with requests validated against that document, page tokens sealed by src/collections/pageToken, and the tests under tests/ with their fixtures in tests/collections (a seeded /orders collection and a walk helper that reads every page of a list). Names are written in snake_case as Google AIP-158 writes them (page_size, page_token, next_page_token, order_by); where the Resource design pack chose camelCase, read pageSize, pageToken, nextPageToken and orderBy."
906
917
  },
907
918
  {
908
919
  "id": "req-latency--derives--need",
909
920
  "sourceId": "req-latency",
910
921
  "targetId": "need",
911
- "relationType": "derives"
922
+ "relationType": "derives",
923
+ "quote": "Callers read collections from this element over HTTP, and the collections grow. Every list has to come back in bounded time and size however large its collection gets, show each item once to a caller who reads it page by page, apply exactly the filters and order the caller asked for or refuse the request, and hand out nothing callers could come to depend on by accident, such as ids or offsets inside a page token. The snippets assume the OpenAPI document at api/openapi.yaml, the application exported from src/app with requests validated against that document, page tokens sealed by src/collections/pageToken, and the tests under tests/ with their fixtures in tests/collections (a seeded /orders collection and a walk helper that reads every page of a list). Names are written in snake_case as Google AIP-158 writes them (page_size, page_token, next_page_token, order_by); where the Resource design pack chose camelCase, read pageSize, pageToken, nextPageToken and orderBy."
912
924
  },
913
925
  {
914
926
  "id": "sc-paged--verifies--req-paged",
@@ -832,79 +832,92 @@
832
832
  "id": "req-problem-details--derives--need",
833
833
  "sourceId": "req-problem-details",
834
834
  "targetId": "need",
835
- "relationType": "derives"
835
+ "relationType": "derives",
836
+ "quote": "Every client of this API has to handle its errors in code: tell one failure from another without parsing prose, mark every wrong field for its user, and quote one id to support. That only works if every operation answers errors in one documented shape, with codes that keep their meaning and text written for the caller rather than copied from an exception. The snippets assume one OpenAPI document per API under api/ (api/orders.yaml), the error code catalogue at api/errors/codes.yaml, the error rules in api/style/errors.yaml beside the style ruleset the API style guide pack keeps, the app exported from src/app (an Express app, with test-only routes: GET /__boom throws an unexpected error and GET /__expected an expected one, both with the text in the ERROR_MARK variable), POST /orders validating email, items[].quantity and currency, and the tests under test/ run with NODE_ENV=production."
836
837
  },
837
838
  {
838
839
  "id": "req-microsoft-error--derives--need",
839
840
  "sourceId": "req-microsoft-error",
840
841
  "targetId": "need",
841
- "relationType": "derives"
842
+ "relationType": "derives",
843
+ "quote": "Every client of this API has to handle its errors in code: tell one failure from another without parsing prose, mark every wrong field for its user, and quote one id to support. That only works if every operation answers errors in one documented shape, with codes that keep their meaning and text written for the caller rather than copied from an exception. The snippets assume one OpenAPI document per API under api/ (api/orders.yaml), the error code catalogue at api/errors/codes.yaml, the error rules in api/style/errors.yaml beside the style ruleset the API style guide pack keeps, the app exported from src/app (an Express app, with test-only routes: GET /__boom throws an unexpected error and GET /__expected an expected one, both with the text in the ERROR_MARK variable), POST /orders validating email, items[].quantity and currency, and the tests under test/ run with NODE_ENV=production."
842
844
  },
843
845
  {
844
846
  "id": "req-google-status--derives--need",
845
847
  "sourceId": "req-google-status",
846
848
  "targetId": "need",
847
- "relationType": "derives"
849
+ "relationType": "derives",
850
+ "quote": "Every client of this API has to handle its errors in code: tell one failure from another without parsing prose, mark every wrong field for its user, and quote one id to support. That only works if every operation answers errors in one documented shape, with codes that keep their meaning and text written for the caller rather than copied from an exception. The snippets assume one OpenAPI document per API under api/ (api/orders.yaml), the error code catalogue at api/errors/codes.yaml, the error rules in api/style/errors.yaml beside the style ruleset the API style guide pack keeps, the app exported from src/app (an Express app, with test-only routes: GET /__boom throws an unexpected error and GET /__expected an expected one, both with the text in the ERROR_MARK variable), POST /orders validating email, items[].quantity and currency, and the tests under test/ run with NODE_ENV=production."
848
851
  },
849
852
  {
850
853
  "id": "req-minimal--derives--need",
851
854
  "sourceId": "req-minimal",
852
855
  "targetId": "need",
853
- "relationType": "derives"
856
+ "relationType": "derives",
857
+ "quote": "Every client of this API has to handle its errors in code: tell one failure from another without parsing prose, mark every wrong field for its user, and quote one id to support. That only works if every operation answers errors in one documented shape, with codes that keep their meaning and text written for the caller rather than copied from an exception. The snippets assume one OpenAPI document per API under api/ (api/orders.yaml), the error code catalogue at api/errors/codes.yaml, the error rules in api/style/errors.yaml beside the style ruleset the API style guide pack keeps, the app exported from src/app (an Express app, with test-only routes: GET /__boom throws an unexpected error and GET /__expected an expected one, both with the text in the ERROR_MARK variable), POST /orders validating email, items[].quantity and currency, and the tests under test/ run with NODE_ENV=production."
854
858
  },
855
859
  {
856
860
  "id": "req-correlation--derives--need",
857
861
  "sourceId": "req-correlation",
858
862
  "targetId": "need",
859
- "relationType": "derives"
863
+ "relationType": "derives",
864
+ "quote": "Every client of this API has to handle its errors in code: tell one failure from another without parsing prose, mark every wrong field for its user, and quote one id to support. That only works if every operation answers errors in one documented shape, with codes that keep their meaning and text written for the caller rather than copied from an exception. The snippets assume one OpenAPI document per API under api/ (api/orders.yaml), the error code catalogue at api/errors/codes.yaml, the error rules in api/style/errors.yaml beside the style ruleset the API style guide pack keeps, the app exported from src/app (an Express app, with test-only routes: GET /__boom throws an unexpected error and GET /__expected an expected one, both with the text in the ERROR_MARK variable), POST /orders validating email, items[].quantity and currency, and the tests under test/ run with NODE_ENV=production."
860
865
  },
861
866
  {
862
867
  "id": "req-caller-text--derives--need",
863
868
  "sourceId": "req-caller-text",
864
869
  "targetId": "need",
865
- "relationType": "derives"
870
+ "relationType": "derives",
871
+ "quote": "Every client of this API has to handle its errors in code: tell one failure from another without parsing prose, mark every wrong field for its user, and quote one id to support. That only works if every operation answers errors in one documented shape, with codes that keep their meaning and text written for the caller rather than copied from an exception. The snippets assume one OpenAPI document per API under api/ (api/orders.yaml), the error code catalogue at api/errors/codes.yaml, the error rules in api/style/errors.yaml beside the style ruleset the API style guide pack keeps, the app exported from src/app (an Express app, with test-only routes: GET /__boom throws an unexpected error and GET /__expected an expected one, both with the text in the ERROR_MARK variable), POST /orders validating email, items[].quantity and currency, and the tests under test/ run with NODE_ENV=production."
866
872
  },
867
873
  {
868
874
  "id": "req-documented--derives--need",
869
875
  "sourceId": "req-documented",
870
876
  "targetId": "need",
871
- "relationType": "derives"
877
+ "relationType": "derives",
878
+ "quote": "Every client of this API has to handle its errors in code: tell one failure from another without parsing prose, mark every wrong field for its user, and quote one id to support. That only works if every operation answers errors in one documented shape, with codes that keep their meaning and text written for the caller rather than copied from an exception. The snippets assume one OpenAPI document per API under api/ (api/orders.yaml), the error code catalogue at api/errors/codes.yaml, the error rules in api/style/errors.yaml beside the style ruleset the API style guide pack keeps, the app exported from src/app (an Express app, with test-only routes: GET /__boom throws an unexpected error and GET /__expected an expected one, both with the text in the ERROR_MARK variable), POST /orders validating email, items[].quantity and currency, and the tests under test/ run with NODE_ENV=production."
872
879
  },
873
880
  {
874
881
  "id": "req-codes--derives--need",
875
882
  "sourceId": "req-codes",
876
883
  "targetId": "need",
877
- "relationType": "derives"
884
+ "relationType": "derives",
885
+ "quote": "Every client of this API has to handle its errors in code: tell one failure from another without parsing prose, mark every wrong field for its user, and quote one id to support. That only works if every operation answers errors in one documented shape, with codes that keep their meaning and text written for the caller rather than copied from an exception. The snippets assume one OpenAPI document per API under api/ (api/orders.yaml), the error code catalogue at api/errors/codes.yaml, the error rules in api/style/errors.yaml beside the style ruleset the API style guide pack keeps, the app exported from src/app (an Express app, with test-only routes: GET /__boom throws an unexpected error and GET /__expected an expected one, both with the text in the ERROR_MARK variable), POST /orders validating email, items[].quantity and currency, and the tests under test/ run with NODE_ENV=production."
878
886
  },
879
887
  {
880
888
  "id": "req-status-only--derives--need",
881
889
  "sourceId": "req-status-only",
882
890
  "targetId": "need",
883
- "relationType": "derives"
891
+ "relationType": "derives",
892
+ "quote": "Every client of this API has to handle its errors in code: tell one failure from another without parsing prose, mark every wrong field for its user, and quote one id to support. That only works if every operation answers errors in one documented shape, with codes that keep their meaning and text written for the caller rather than copied from an exception. The snippets assume one OpenAPI document per API under api/ (api/orders.yaml), the error code catalogue at api/errors/codes.yaml, the error rules in api/style/errors.yaml beside the style ruleset the API style guide pack keeps, the app exported from src/app (an Express app, with test-only routes: GET /__boom throws an unexpected error and GET /__expected an expected one, both with the text in the ERROR_MARK variable), POST /orders validating email, items[].quantity and currency, and the tests under test/ run with NODE_ENV=production."
884
893
  },
885
894
  {
886
895
  "id": "req-validation-all--derives--need",
887
896
  "sourceId": "req-validation-all",
888
897
  "targetId": "need",
889
- "relationType": "derives"
898
+ "relationType": "derives",
899
+ "quote": "Every client of this API has to handle its errors in code: tell one failure from another without parsing prose, mark every wrong field for its user, and quote one id to support. That only works if every operation answers errors in one documented shape, with codes that keep their meaning and text written for the caller rather than copied from an exception. The snippets assume one OpenAPI document per API under api/ (api/orders.yaml), the error code catalogue at api/errors/codes.yaml, the error rules in api/style/errors.yaml beside the style ruleset the API style guide pack keeps, the app exported from src/app (an Express app, with test-only routes: GET /__boom throws an unexpected error and GET /__expected an expected one, both with the text in the ERROR_MARK variable), POST /orders validating email, items[].quantity and currency, and the tests under test/ run with NODE_ENV=production."
890
900
  },
891
901
  {
892
902
  "id": "req-validation-first--derives--need",
893
903
  "sourceId": "req-validation-first",
894
904
  "targetId": "need",
895
- "relationType": "derives"
905
+ "relationType": "derives",
906
+ "quote": "Every client of this API has to handle its errors in code: tell one failure from another without parsing prose, mark every wrong field for its user, and quote one id to support. That only works if every operation answers errors in one documented shape, with codes that keep their meaning and text written for the caller rather than copied from an exception. The snippets assume one OpenAPI document per API under api/ (api/orders.yaml), the error code catalogue at api/errors/codes.yaml, the error rules in api/style/errors.yaml beside the style ruleset the API style guide pack keeps, the app exported from src/app (an Express app, with test-only routes: GET /__boom throws an unexpected error and GET /__expected an expected one, both with the text in the ERROR_MARK variable), POST /orders validating email, items[].quantity and currency, and the tests under test/ run with NODE_ENV=production."
896
907
  },
897
908
  {
898
909
  "id": "req-docs-page--derives--need",
899
910
  "sourceId": "req-docs-page",
900
911
  "targetId": "need",
901
- "relationType": "derives"
912
+ "relationType": "derives",
913
+ "quote": "Every client of this API has to handle its errors in code: tell one failure from another without parsing prose, mark every wrong field for its user, and quote one id to support. That only works if every operation answers errors in one documented shape, with codes that keep their meaning and text written for the caller rather than copied from an exception. The snippets assume one OpenAPI document per API under api/ (api/orders.yaml), the error code catalogue at api/errors/codes.yaml, the error rules in api/style/errors.yaml beside the style ruleset the API style guide pack keeps, the app exported from src/app (an Express app, with test-only routes: GET /__boom throws an unexpected error and GET /__expected an expected one, both with the text in the ERROR_MARK variable), POST /orders validating email, items[].quantity and currency, and the tests under test/ run with NODE_ENV=production."
902
914
  },
903
915
  {
904
916
  "id": "req-docs-identifiers--derives--need",
905
917
  "sourceId": "req-docs-identifiers",
906
918
  "targetId": "need",
907
- "relationType": "derives"
919
+ "relationType": "derives",
920
+ "quote": "Every client of this API has to handle its errors in code: tell one failure from another without parsing prose, mark every wrong field for its user, and quote one id to support. That only works if every operation answers errors in one documented shape, with codes that keep their meaning and text written for the caller rather than copied from an exception. The snippets assume one OpenAPI document per API under api/ (api/orders.yaml), the error code catalogue at api/errors/codes.yaml, the error rules in api/style/errors.yaml beside the style ruleset the API style guide pack keeps, the app exported from src/app (an Express app, with test-only routes: GET /__boom throws an unexpected error and GET /__expected an expected one, both with the text in the ERROR_MARK variable), POST /orders validating email, items[].quantity and currency, and the tests under test/ run with NODE_ENV=production."
908
921
  },
909
922
  {
910
923
  "id": "sc-problem-details--verifies--req-problem-details",
@@ -826,79 +826,92 @@
826
826
  "id": "req-contract--derives--need",
827
827
  "sourceId": "req-contract",
828
828
  "targetId": "need",
829
- "relationType": "derives"
829
+ "relationType": "derives",
830
+ "quote": "Other systems call this API, and they are released on their own schedule by people who do not see our code. A renamed field, a new required parameter, a narrower type or a changed error breaks them without warning; without a contract nobody can tell which change breaks what, and without notice and a date a caller cannot plan its move off an old version. The API also has to keep changing, so the rules must make safe changes cheap and unsafe ones visible."
830
831
  },
831
832
  {
832
833
  "id": "req-compat--derives--need",
833
834
  "sourceId": "req-compat",
834
835
  "targetId": "need",
835
- "relationType": "derives"
836
+ "relationType": "derives",
837
+ "quote": "Other systems call this API, and they are released on their own schedule by people who do not see our code. A renamed field, a new required parameter, a narrower type or a changed error breaks them without warning; without a contract nobody can tell which change breaks what, and without notice and a date a caller cannot plan its move off an old version. The API also has to keep changing, so the rules must make safe changes cheap and unsafe ones visible."
836
838
  },
837
839
  {
838
840
  "id": "req-path--derives--need",
839
841
  "sourceId": "req-path",
840
842
  "targetId": "need",
841
- "relationType": "derives"
843
+ "relationType": "derives",
844
+ "quote": "Other systems call this API, and they are released on their own schedule by people who do not see our code. A renamed field, a new required parameter, a narrower type or a changed error breaks them without warning; without a contract nobody can tell which change breaks what, and without notice and a date a caller cannot plan its move off an old version. The API also has to keep changing, so the rules must make safe changes cheap and unsafe ones visible."
842
845
  },
843
846
  {
844
847
  "id": "req-header--derives--need",
845
848
  "sourceId": "req-header",
846
849
  "targetId": "need",
847
- "relationType": "derives"
850
+ "relationType": "derives",
851
+ "quote": "Other systems call this API, and they are released on their own schedule by people who do not see our code. A renamed field, a new required parameter, a narrower type or a changed error breaks them without warning; without a contract nobody can tell which change breaks what, and without notice and a date a caller cannot plan its move off an old version. The API also has to keep changing, so the rules must make safe changes cheap and unsafe ones visible."
848
852
  },
849
853
  {
850
854
  "id": "req-header-echo--derives--need",
851
855
  "sourceId": "req-header-echo",
852
856
  "targetId": "need",
853
- "relationType": "derives"
857
+ "relationType": "derives",
858
+ "quote": "Other systems call this API, and they are released on their own schedule by people who do not see our code. A renamed field, a new required parameter, a narrower type or a changed error breaks them without warning; without a contract nobody can tell which change breaks what, and without notice and a date a caller cannot plan its move off an old version. The API also has to keep changing, so the rules must make safe changes cheap and unsafe ones visible."
854
859
  },
855
860
  {
856
861
  "id": "req-versionless--derives--need",
857
862
  "sourceId": "req-versionless",
858
863
  "targetId": "need",
859
- "relationType": "derives"
864
+ "relationType": "derives",
865
+ "quote": "Other systems call this API, and they are released on their own schedule by people who do not see our code. A renamed field, a new required parameter, a narrower type or a changed error breaks them without warning; without a contract nobody can tell which change breaks what, and without notice and a date a caller cannot plan its move off an old version. The API also has to keep changing, so the rules must make safe changes cheap and unsafe ones visible."
860
866
  },
861
867
  {
862
868
  "id": "req-sunset--derives--need",
863
869
  "sourceId": "req-sunset",
864
870
  "targetId": "need",
865
- "relationType": "derives"
871
+ "relationType": "derives",
872
+ "quote": "Other systems call this API, and they are released on their own schedule by people who do not see our code. A renamed field, a new required parameter, a narrower type or a changed error breaks them without warning; without a contract nobody can tell which change breaks what, and without notice and a date a caller cannot plan its move off an old version. The API also has to keep changing, so the rules must make safe changes cheap and unsafe ones visible."
866
873
  },
867
874
  {
868
875
  "id": "req-sunset-graphql--derives--need",
869
876
  "sourceId": "req-sunset-graphql",
870
877
  "targetId": "need",
871
- "relationType": "derives"
878
+ "relationType": "derives",
879
+ "quote": "Other systems call this API, and they are released on their own schedule by people who do not see our code. A renamed field, a new required parameter, a narrower type or a changed error breaks them without warning; without a contract nobody can tell which change breaks what, and without notice and a date a caller cannot plan its move off an old version. The API also has to keep changing, so the rules must make safe changes cheap and unsafe ones visible."
872
880
  },
873
881
  {
874
882
  "id": "req-sunset-protobuf--derives--need",
875
883
  "sourceId": "req-sunset-protobuf",
876
884
  "targetId": "need",
877
- "relationType": "derives"
885
+ "relationType": "derives",
886
+ "quote": "Other systems call this API, and they are released on their own schedule by people who do not see our code. A renamed field, a new required parameter, a narrower type or a changed error breaks them without warning; without a contract nobody can tell which change breaks what, and without notice and a date a caller cannot plan its move off an old version. The API also has to keep changing, so the rules must make safe changes cheap and unsafe ones visible."
878
887
  },
879
888
  {
880
889
  "id": "req-usage--derives--need",
881
890
  "sourceId": "req-usage",
882
891
  "targetId": "need",
883
- "relationType": "derives"
892
+ "relationType": "derives",
893
+ "quote": "Other systems call this API, and they are released on their own schedule by people who do not see our code. A renamed field, a new required parameter, a narrower type or a changed error breaks them without warning; without a contract nobody can tell which change breaks what, and without notice and a date a caller cannot plan its move off an old version. The API also has to keep changing, so the rules must make safe changes cheap and unsafe ones visible."
884
894
  },
885
895
  {
886
896
  "id": "req-pact--derives--need",
887
897
  "sourceId": "req-pact",
888
898
  "targetId": "need",
889
- "relationType": "derives"
899
+ "relationType": "derives",
900
+ "quote": "Other systems call this API, and they are released on their own schedule by people who do not see our code. A renamed field, a new required parameter, a narrower type or a changed error breaks them without warning; without a contract nobody can tell which change breaks what, and without notice and a date a caller cannot plan its move off an old version. The API also has to keep changing, so the rules must make safe changes cheap and unsafe ones visible."
890
901
  },
891
902
  {
892
903
  "id": "req-conformance--derives--need",
893
904
  "sourceId": "req-conformance",
894
905
  "targetId": "need",
895
- "relationType": "derives"
906
+ "relationType": "derives",
907
+ "quote": "Other systems call this API, and they are released on their own schedule by people who do not see our code. A renamed field, a new required parameter, a narrower type or a changed error breaks them without warning; without a contract nobody can tell which change breaks what, and without notice and a date a caller cannot plan its move off an old version. The API also has to keep changing, so the rules must make safe changes cheap and unsafe ones visible."
896
908
  },
897
909
  {
898
910
  "id": "req-conformance-grpc--derives--need",
899
911
  "sourceId": "req-conformance-grpc",
900
912
  "targetId": "need",
901
- "relationType": "derives"
913
+ "relationType": "derives",
914
+ "quote": "Other systems call this API, and they are released on their own schedule by people who do not see our code. A renamed field, a new required parameter, a narrower type or a changed error breaks them without warning; without a contract nobody can tell which change breaks what, and without notice and a date a caller cannot plan its move off an old version. The API also has to keep changing, so the rules must make safe changes cheap and unsafe ones visible."
902
915
  },
903
916
  {
904
917
  "id": "sc-contract--verifies--req-contract",