@sumrco/cli 0.4.4 → 0.4.6

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 (36) hide show
  1. package/ARTIFACT-MANIFEST.json +3 -3
  2. package/THIRD_PARTY_NOTICES.md +221 -5
  3. package/ai/modules/kontract/resources/authoring/configuration.rf.md +37 -0
  4. package/ai/modules/kontract/resources/authoring/contract-copy.rf.md +92 -0
  5. package/ai/modules/kontract/resources/authoring/design-profile/overview.md +2 -1
  6. package/ai/modules/kontract/resources/authoring/overview.md +10 -7
  7. package/ai/modules/kontract/resources/authoring/spec-layout.rf.md +6 -27
  8. package/ai/modules/kontract/resources/authoring/team-members/spec-author.tm.md +15 -14
  9. package/ai/modules/kontract/resources/authoring/workflows/spec-change.cmd.md +29 -21
  10. package/ai/modules/kontract/resources/generated-output.rf.md +60 -0
  11. package/ai/modules/kontract/resources/overview.md +10 -9
  12. package/ai/modules/kontract/sumr.module.yaml +1 -1
  13. package/ai/modules/mission/resources/flow-actions.rf.md +1 -0
  14. package/ai/modules/mission/resources/flow-config.rf.md +1 -0
  15. package/ai/modules/mission/resources/flow-safety-boundaries.rf.md +1 -0
  16. package/ai/modules/mission/resources/overview.md +1 -0
  17. package/ai/modules/mission/resources/stage-closeout.rf.md +1 -0
  18. package/ai/modules/mission/resources/stage-delivery.rf.md +1 -0
  19. package/ai/modules/mission/resources/stage-intake.rf.md +1 -0
  20. package/ai/modules/mission/resources/stage-planning.rf.md +1 -0
  21. package/ai/modules/mission/resources/stage-pull-request.rf.md +1 -0
  22. package/ai/modules/mission/resources/stage-quality.rf.md +1 -0
  23. package/ai/modules/mission/sumr.module.yaml +1 -1
  24. package/ai/modules/playbook/resources/authoring/cross-referencing.rf.md +11 -8
  25. package/ai/modules/playbook/resources/authoring/descriptions.rf.md +3 -3
  26. package/ai/modules/playbook/resources/authoring/folder-structure.rf.md +2 -2
  27. package/ai/modules/playbook/resources/authoring/frontmatter.rf.md +73 -33
  28. package/ai/modules/playbook/resources/authoring/lifecycle-hooks.rf.md +1 -1
  29. package/ai/modules/playbook/resources/authoring/markdown.rf.md +2 -1
  30. package/ai/modules/playbook/resources/authoring/overview.md +14 -6
  31. package/ai/modules/playbook/resources/team-members/technical-writer.tm.md +1 -1
  32. package/ai/modules/playbook/sumr.module.yaml +1 -4
  33. package/bin/sumr +6 -1
  34. package/index.js +2059 -2000
  35. package/package.json +2 -2
  36. package/sbom.cdx.json +1106 -101
@@ -3,15 +3,15 @@
3
3
  "files": [
4
4
  {
5
5
  "file": "index.js",
6
- "sha256": "99783da54cedafaf91b152b44a6100fdbf8773a19f69cb3f8910bed67aea9919"
6
+ "sha256": "7b5aab3514f237e58465bedf0c09d8a9f4de4022f6a0adac7db6f4a210c6c527"
7
7
  },
8
8
  {
9
9
  "file": "THIRD_PARTY_NOTICES.md",
10
- "sha256": "a54883b67a7a3de0b500dbcdf74af4a56d98108411d3f7033b4ce6d3f6eaffc1"
10
+ "sha256": "065119ca1417a43cafc75a25303bf5788df6dc542fa7eff2888aea0c8ac45f6a"
11
11
  },
12
12
  {
13
13
  "file": "sbom.cdx.json",
14
- "sha256": "12740ce4809b7eabe2309af0954a0c2a23c3bc64f58ec636c64b296b6f10dfdf"
14
+ "sha256": "506ae6d48671f21e94955edb84711f788cb2da3be0647a757e03d5913d96b686"
15
15
  }
16
16
  ],
17
17
  "schemaVersion": 1
@@ -218,6 +218,12 @@ Evidence: Bun metafile input
218
218
  License: Apache-2.0
219
219
  Source: https://github.com/stoplightio/yaml-ast-parser.git
220
220
 
221
+ ## @types/debug 4.1.13
222
+
223
+ Evidence: Declared required dependency closure
224
+ License: MIT
225
+ Source: https://github.com/DefinitelyTyped/DefinitelyTyped.git
226
+
221
227
  ## @types/es-aggregate-error 1.0.6
222
228
 
223
229
  Evidence: Declared required dependency closure
@@ -230,19 +236,37 @@ Evidence: Declared required dependency closure
230
236
  License: MIT
231
237
  Source: https://github.com/DefinitelyTyped/DefinitelyTyped.git
232
238
 
239
+ ## @types/mdast 4.0.4
240
+
241
+ Evidence: Declared required dependency closure
242
+ License: MIT
243
+ Source: https://github.com/DefinitelyTyped/DefinitelyTyped.git
244
+
245
+ ## @types/ms 2.1.0
246
+
247
+ Evidence: Declared required dependency closure
248
+ License: MIT
249
+ Source: https://github.com/DefinitelyTyped/DefinitelyTyped.git
250
+
233
251
  ## @types/node 25.5.0
234
252
 
235
253
  Evidence: Declared required dependency closure
236
254
  License: MIT
237
255
  Source: https://github.com/DefinitelyTyped/DefinitelyTyped.git
238
256
 
257
+ ## @types/unist 3.0.3
258
+
259
+ Evidence: Declared required dependency closure
260
+ License: MIT
261
+ Source: https://github.com/DefinitelyTyped/DefinitelyTyped.git
262
+
239
263
  ## @types/urijs 1.19.26
240
264
 
241
265
  Evidence: Declared required dependency closure
242
266
  License: MIT
243
267
  Source: https://github.com/DefinitelyTyped/DefinitelyTyped.git
244
268
 
245
- ## @ungap/structured-clone 1.3.3
269
+ ## @ungap/structured-clone 1.4.0
246
270
 
247
271
  Evidence: Declared required dependency closure
248
272
  License: ISC
@@ -356,6 +380,12 @@ Evidence: Bun metafile input
356
380
  License: MIT
357
381
  Source: git://github.com/blakeembrey/change-case.git
358
382
 
383
+ ## character-entities 2.0.2
384
+
385
+ Evidence: Bun metafile input
386
+ License: MIT
387
+ Source: wooorm/character-entities
388
+
359
389
  ## colorette 1.4.0
360
390
 
361
391
  Evidence: Bun metafile input
@@ -380,6 +410,18 @@ Evidence: Declared required dependency closure
380
410
  License: MIT
381
411
  Source: git+https://github.com/inspect-js/data-view-byte-offset.git
382
412
 
413
+ ## debug 4.4.3
414
+
415
+ Evidence: Declared required dependency closure
416
+ License: MIT
417
+ Source: git://github.com/debug-js/debug.git
418
+
419
+ ## decode-named-character-reference 1.3.0
420
+
421
+ Evidence: Bun metafile input
422
+ License: MIT
423
+ Source: wooorm/decode-named-character-reference
424
+
383
425
  ## define-data-property 1.1.4
384
426
 
385
427
  Evidence: Bun metafile input
@@ -398,12 +440,30 @@ Evidence: Bun metafile input
398
440
  License: MIT
399
441
  Source: git://github.com/jriecken/dependency-graph.git
400
442
 
443
+ ## dequal 2.0.3
444
+
445
+ Evidence: Declared required dependency closure
446
+ License: MIT
447
+ Source: lukeed/dequal
448
+
449
+ ## devlop 1.1.0
450
+
451
+ Evidence: Declared required dependency closure
452
+ License: MIT
453
+ Source: wooorm/devlop
454
+
401
455
  ## dunder-proto 1.0.1
402
456
 
403
457
  Evidence: Bun metafile input
404
458
  License: MIT
405
459
  Source: git+https://github.com/es-shims/dunder-proto.git
406
460
 
461
+ ## entities 8.1.0
462
+
463
+ Evidence: Bun metafile input
464
+ License: BSD-2-Clause
465
+ Source: https://github.com/fb55/entities.git
466
+
407
467
  ## es-abstract 1.24.2
408
468
 
409
469
  Evidence: Bun metafile input
@@ -482,7 +542,7 @@ Evidence: Bun metafile input
482
542
  License: MIT
483
543
  Source: github:fabiospampinato/fast-string-width
484
544
 
485
- ## fast-uri 3.1.5
545
+ ## fast-uri 3.1.8
486
546
 
487
547
  Evidence: Bun metafile input
488
548
  License: BSD-3-Clause
@@ -746,7 +806,7 @@ Evidence: Bun metafile input
746
806
  License: MIT
747
807
  Source: gustf/js-levenshtein
748
808
 
749
- ## js-yaml 4.3.1
809
+ ## js-yaml 4.3.2
750
810
 
751
811
  Evidence: Bun metafile input
752
812
  License: MIT
@@ -818,12 +878,156 @@ Evidence: Bun metafile input
818
878
  License: MIT
819
879
  Source: git+https://github.com/es-shims/math-intrinsics.git
820
880
 
881
+ ## mdast-util-from-markdown 2.0.3
882
+
883
+ Evidence: Bun metafile input
884
+ License: MIT
885
+ Source: syntax-tree/mdast-util-from-markdown
886
+
887
+ ## mdast-util-to-string 4.0.0
888
+
889
+ Evidence: Bun metafile input
890
+ License: MIT
891
+ Source: syntax-tree/mdast-util-to-string
892
+
893
+ ## micromark 4.0.2
894
+
895
+ Evidence: Bun metafile input
896
+ License: MIT
897
+ Source: https://github.com/micromark/micromark/tree/main/packages/micromark
898
+
899
+ ## micromark-core-commonmark 2.0.3
900
+
901
+ Evidence: Bun metafile input
902
+ License: MIT
903
+ Source: https://github.com/micromark/micromark/tree/main/packages/micromark-core-commonmark
904
+
905
+ ## micromark-factory-destination 2.0.1
906
+
907
+ Evidence: Bun metafile input
908
+ License: MIT
909
+ Source: https://github.com/micromark/micromark/tree/main/packages/micromark-factory-destination
910
+
911
+ ## micromark-factory-label 2.0.1
912
+
913
+ Evidence: Bun metafile input
914
+ License: MIT
915
+ Source: https://github.com/micromark/micromark/tree/main/packages/micromark-factory-label
916
+
917
+ ## micromark-factory-space 2.0.1
918
+
919
+ Evidence: Bun metafile input
920
+ License: MIT
921
+ Source: https://github.com/micromark/micromark/tree/main/packages/micromark-factory-space
922
+
923
+ ## micromark-factory-title 2.0.1
924
+
925
+ Evidence: Bun metafile input
926
+ License: MIT
927
+ Source: https://github.com/micromark/micromark/tree/main/packages/micromark-factory-title
928
+
929
+ ## micromark-factory-whitespace 2.0.1
930
+
931
+ Evidence: Bun metafile input
932
+ License: MIT
933
+ Source: https://github.com/micromark/micromark/tree/main/packages/micromark-factory-whitespace
934
+
935
+ ## micromark-util-character 2.1.1
936
+
937
+ Evidence: Bun metafile input
938
+ License: MIT
939
+ Source: https://github.com/micromark/micromark/tree/main/packages/micromark-util-character
940
+
941
+ ## micromark-util-chunked 2.0.1
942
+
943
+ Evidence: Bun metafile input
944
+ License: MIT
945
+ Source: https://github.com/micromark/micromark/tree/main/packages/micromark-util-chunked
946
+
947
+ ## micromark-util-classify-character 2.0.1
948
+
949
+ Evidence: Bun metafile input
950
+ License: MIT
951
+ Source: https://github.com/micromark/micromark/tree/main/packages/micromark-util-classify-character
952
+
953
+ ## micromark-util-combine-extensions 2.0.1
954
+
955
+ Evidence: Bun metafile input
956
+ License: MIT
957
+ Source: https://github.com/micromark/micromark/tree/main/packages/micromark-util-combine-extensions
958
+
959
+ ## micromark-util-decode-numeric-character-reference 2.0.2
960
+
961
+ Evidence: Bun metafile input
962
+ License: MIT
963
+ Source: https://github.com/micromark/micromark/tree/main/packages/micromark-util-decode-numeric-character-reference
964
+
965
+ ## micromark-util-decode-string 2.0.1
966
+
967
+ Evidence: Bun metafile input
968
+ License: MIT
969
+ Source: https://github.com/micromark/micromark/tree/main/packages/micromark-util-decode-string
970
+
971
+ ## micromark-util-encode 2.0.1
972
+
973
+ Evidence: Declared required dependency closure
974
+ License: MIT
975
+ Source: https://github.com/micromark/micromark/tree/main/packages/micromark-util-encode
976
+
977
+ ## micromark-util-html-tag-name 2.0.1
978
+
979
+ Evidence: Bun metafile input
980
+ License: MIT
981
+ Source: https://github.com/micromark/micromark/tree/main/packages/micromark-util-html-tag-name
982
+
983
+ ## micromark-util-normalize-identifier 2.0.1
984
+
985
+ Evidence: Bun metafile input
986
+ License: MIT
987
+ Source: https://github.com/micromark/micromark/tree/main/packages/micromark-util-normalize-identifier
988
+
989
+ ## micromark-util-resolve-all 2.0.1
990
+
991
+ Evidence: Bun metafile input
992
+ License: MIT
993
+ Source: https://github.com/micromark/micromark/tree/main/packages/micromark-util-resolve-all
994
+
995
+ ## micromark-util-sanitize-uri 2.0.1
996
+
997
+ Evidence: Declared required dependency closure
998
+ License: MIT
999
+ Source: https://github.com/micromark/micromark/tree/main/packages/micromark-util-sanitize-uri
1000
+
1001
+ ## micromark-util-subtokenize 2.1.0
1002
+
1003
+ Evidence: Bun metafile input
1004
+ License: MIT
1005
+ Source: https://github.com/micromark/micromark/tree/main/packages/micromark-util-subtokenize
1006
+
1007
+ ## micromark-util-symbol 2.0.1
1008
+
1009
+ Evidence: Declared required dependency closure
1010
+ License: MIT
1011
+ Source: https://github.com/micromark/micromark/tree/main/packages/micromark-util-symbol
1012
+
1013
+ ## micromark-util-types 2.0.2
1014
+
1015
+ Evidence: Declared required dependency closure
1016
+ License: MIT
1017
+ Source: https://github.com/micromark/micromark/tree/main/packages/micromark-util-types
1018
+
821
1019
  ## minimatch 3.1.5
822
1020
 
823
1021
  Evidence: Bun metafile input
824
1022
  License: ISC
825
1023
  Source: git://github.com/isaacs/minimatch.git
826
1024
 
1025
+ ## ms 2.1.3
1026
+
1027
+ Evidence: Declared required dependency closure
1028
+ License: MIT
1029
+ Source: vercel/ms
1030
+
827
1031
  ## nimma 0.2.3
828
1032
 
829
1033
  Evidence: Bun metafile input
@@ -866,6 +1070,12 @@ Evidence: Declared required dependency closure
866
1070
  License: MIT
867
1071
  Source: git+https://github.com/ljharb/own-keys.git
868
1072
 
1073
+ ## parse5 8.0.1
1074
+
1075
+ Evidence: Bun metafile input
1076
+ License: MIT
1077
+ Source: git://github.com/inikulin/parse5.git
1078
+
869
1079
  ## picomatch 4.0.4
870
1080
 
871
1081
  Evidence: Bun metafile input
@@ -1040,7 +1250,7 @@ Evidence: Declared required dependency closure
1040
1250
  License: MIT
1041
1251
  Source: git+https://github.com/inspect-js/typed-array-byte-length.git
1042
1252
 
1043
- ## typed-array-byte-offset 1.0.4
1253
+ ## typed-array-byte-offset 1.0.5
1044
1254
 
1045
1255
  Evidence: Declared required dependency closure
1046
1256
  License: MIT
@@ -1064,6 +1274,12 @@ Evidence: Declared required dependency closure
1064
1274
  License: MIT
1065
1275
  Source: git+https://github.com/nodejs/undici.git
1066
1276
 
1277
+ ## unist-util-stringify-position 4.0.0
1278
+
1279
+ Evidence: Bun metafile input
1280
+ License: MIT
1281
+ Source: syntax-tree/unist-util-stringify-position
1282
+
1067
1283
  ## urijs 1.19.11
1068
1284
 
1069
1285
  Evidence: Bun metafile input
@@ -1106,7 +1322,7 @@ Evidence: Declared required dependency closure
1106
1322
  License: MIT
1107
1323
  Source: git+https://github.com/inspect-js/which-collection.git
1108
1324
 
1109
- ## which-typed-array 1.1.22
1325
+ ## which-typed-array 1.1.24
1110
1326
 
1111
1327
  Evidence: Declared required dependency closure
1112
1328
  License: MIT
@@ -116,6 +116,7 @@ Use `--target <name>` to scope generation to one target.
116
116
  | Client/SDK | `typescript-axios` | TypeScript axios SDK. |
117
117
  | Client/SDK | `typescript-angular` | Angular SDK. |
118
118
  | Model | `typescript-models` | Framework-model-only output. |
119
+ | Runtime schema | `typescript-effect` | Directional Effect 3 schemas plus explicit encoded and decoded TypeScript types. |
119
120
  | Framework adapter/SDK | `react-query-hooks` | Validated Fetch SDK, deterministic TanStack Query keys/options, and optional direct hooks. |
120
121
 
121
122
  Kontract is structured for more generator targets over time: runtime evidence,
@@ -152,6 +153,42 @@ Use `asyncapi-nats` when the consumer also needs the NATS subject,
152
153
  request/reply, client, and server adapter artifacts. `prefix` is NATS-specific
153
154
  and is rejected on `asyncapi-models`.
154
155
 
156
+ ## `typescript-effect`
157
+
158
+ Use the Effect target when a consumer needs runtime-authoritative schemas and
159
+ typed parse failures without a generated transport client:
160
+
161
+ ```yaml
162
+ generator:
163
+ type: typescript-effect
164
+ effectMajor: 3
165
+ schemaMode: strict
166
+ ```
167
+
168
+ `effectMajor` defaults to `3`; this release rejects other majors. The generated
169
+ consumer package must declare a compatible direct `effect` dependency.
170
+ Kontract itself does not depend on Effect, and generated files import
171
+ `effect/Schema`, never the deprecated `@effect/schema` package.
172
+
173
+ Each symmetric component emits `schemas/<name>.schema.ts` with `${Name}Schema`,
174
+ `${Name}`, and `${Name}Encoded`. A component emits the additional input/output
175
+ schema and type names only when `readOnly` or `writeOnly` makes the two
176
+ directions different. Input schemas exclude `readOnly` properties; output
177
+ schemas exclude `writeOnly` properties. Dates, date-times, money strings, and
178
+ other authored wire values stay in their wire representation; the target does
179
+ not add implicit transformations.
180
+
181
+ The target supports `audiences.exclude`, `schemaMode`, fixed tuples, nested
182
+ nullable values, schema defaults, deprecation metadata, and explicit unknown
183
+ catch-alls. It rejects `audiences.marker`, Zod/client options, null-only
184
+ schemas, open-ended tuples, named fields combined with a typed catch-all, and
185
+ constraints it cannot preserve. Those failures occur before generated output
186
+ is written. `schemaMode` defaults to `strict` for this target.
187
+
188
+ No HTTP client is generated. Applications compose the schemas with their own
189
+ Effect transport/application boundary. An Effect-native client is a separate
190
+ future decision, not an alias or wrapper around the Promise SDK targets.
191
+
155
192
  ## `typescript-nestjs` options
156
193
 
157
194
  | Option | Output |
@@ -0,0 +1,92 @@
1
+ ---
2
+ category: reference
3
+ name: contract-copy
4
+ title: API and Async Contract Copy
5
+ description: "Public and developer-facing OpenAPI and AsyncAPI titles, summaries, descriptions, and implementation-detail boundaries."
6
+ label: Contract Copy
7
+ when: Writing or reviewing operation, parameter, response, schema, channel, message, or API-info copy
8
+ order: 14
9
+ ---
10
+
11
+ # API and Async Contract Copy
12
+
13
+ Text authored in an API or async schema is part of the contract. It can appear
14
+ in API references, generated SDK documentation, editor tooling, and AI answers,
15
+ so readers must be able to understand the behavior without guessing from an
16
+ identifier, route, or channel.
17
+
18
+ Use the repository's copywriter role to review new or changed public and
19
+ developer-facing contract text before validation and generation. When that
20
+ role is unavailable, the active reviewer applies this reference and the
21
+ repository's general microcopy guidance directly. This reference covers only
22
+ contract-field semantics.
23
+
24
+ ## Contract fields
25
+
26
+ Review these fields when they are present:
27
+
28
+ - API `info.title` and `info.description`;
29
+ - API operation `summary` and `description`;
30
+ - API parameter, request-body, and response descriptions, plus schema and
31
+ property titles and descriptions;
32
+ - async schema `info.title` and `info.description`;
33
+ - async schema channel and operation titles, summaries, and descriptions;
34
+ - async schema message titles, summaries, and descriptions;
35
+ - async schema and property titles and descriptions.
36
+
37
+ ## Rules
38
+
39
+ - Every API and async schema operation MUST have a concise `summary` that names
40
+ the action, query, command, or event.
41
+ - Add `description` only when it contributes information the summary does not:
42
+ meaning, outcome, audience, permissions, side effects, constraints, caller
43
+ context, or message semantics.
44
+ - Describe schemas and properties in terms of their product meaning and
45
+ caller-visible invariants. Do not restate the schema key or property name.
46
+ - Do not repeat a visible label, tag, route, channel, operation identifier,
47
+ message identifier, or title in sentence form.
48
+ - Keep generator, framework, storage, and transport details out of contract
49
+ copy unless the intended reader needs that detail to use the contract
50
+ correctly.
51
+ - Do not add prose merely to populate an optional field. Omit a description
52
+ when the summary or name already communicates the complete meaning.
53
+
54
+ <!-- extract:examples -->
55
+ ## Summary and description examples
56
+
57
+ ### ❌ Avoid: the description echoes the summary
58
+
59
+ ```yaml
60
+ operationId: listItems
61
+ summary: List items
62
+ description: Lists items.
63
+ ```
64
+
65
+ Why: the description adds no meaning.
66
+
67
+ ### ✅ Prefer: the description adds an authorization boundary
68
+
69
+ ```yaml
70
+ operationId: listItems
71
+ summary: List items
72
+ description: Returns the items the caller is permitted to view.
73
+ ```
74
+
75
+ Why: the description explains which items the caller receives.
76
+ <!-- /extract:examples -->
77
+
78
+ ## Source-to-output discipline
79
+
80
+ Contract copy starts in the source YAML and follows the same lifecycle as every
81
+ other contract change:
82
+
83
+ ```text
84
+ source YAML -> copy review -> validate -> generate -> review generated diff
85
+ ```
86
+
87
+ - Change `*.api.yml`, `*.api.yaml`, `*.async.yml`, or `*.async.yaml` first.
88
+ - Run `sumr kontract validate` before generation.
89
+ - Run `sumr kontract generate`, then review every generated metadata and
90
+ documentation change for the intended wording.
91
+ - NEVER patch generated contracts, SDK documentation, metadata, or AI output to
92
+ correct copy. Fix the owning YAML and regenerate.
@@ -1,7 +1,8 @@
1
1
  ---
2
+ category: how-to:concept
2
3
  name: design-profile
3
4
  title: Contract Design Profile
4
- description: "How Kontract profile values guide HTTP, async schema, and schema directory examples without changing generation."
5
+ description: "How Kontract profile values guide HTTP, async schema, and schema directory examples without changing generation. Use when configuring or reviewing guidance profiles and schema layout examples."
5
6
  tags: [kontract, design-profile, http, asyncapi, schema-layout]
6
7
  ---
7
8
 
@@ -1,7 +1,8 @@
1
1
  ---
2
+ category: how-to:concept
2
3
  name: authoring
3
4
  title: Spec Authoring
4
- description: "How Kontract spec authors should configure guidance, organize specs, reuse schemas, and change API or async schema files safely."
5
+ description: "How Kontract spec authors configure guidance, organize specs, reuse schemas, and change API or async schema files safely. Use when creating, moving, reviewing, or refactoring Kontract source specs."
5
6
  tags: [kontract, authoring, api, async, schema-layout, contracts]
6
7
  ---
7
8
 
@@ -24,11 +25,13 @@ Start here before proposing schema files or folder moves:
24
25
  3. Use the contract design profile to align API paths, async schema channels, and
25
26
  schema folder examples with the selected styles.
26
27
  4. Use the spec layout rules before creating or moving API/async roots.
27
- 5. Use schema reuse guidance before adding new payloads, envelopes, errors,
28
+ 5. Use contract copy guidance for public or developer-facing titles,
29
+ summaries, descriptions, parameters, responses, schemas, and messages.
30
+ 6. Use schema reuse guidance before adding new payloads, envelopes, errors,
28
31
  pagination, scalar constraints, schedules, or config objects.
29
- 6. Use scope and splitting guidance before expanding a large spec or proposing a
32
+ 7. Use scope and splitting guidance before expanding a large spec or proposing a
30
33
  folder migration.
31
- 7. Run the spec-change workflow when a spec change must be validated,
34
+ 8. Run the spec-change workflow when a spec change must be validated,
32
35
  generated, and reviewed.
33
36
 
34
37
  ## Non-negotiables
@@ -48,9 +51,9 @@ Start here before proposing schema files or folder moves:
48
51
  capability-local `shared/` folder only when multiple surfaces in that
49
52
  capability reuse the same product concept; promote to `schema/shared/` only
50
53
  when multiple capabilities share the same meaning.
51
- - Every API schema and async schema operation should include a concise
52
- `summary`. Add `description` only when it clarifies outcome, scope,
53
- permissions, side effects, constraints, or message semantics.
54
+ - Follow the Contract Copy reference: every API schema and async schema
55
+ operation must include a concise `summary`, while `description` is used only
56
+ when it adds information.
54
57
  - Separate the three protocol scenarios: API-only, async-only, and
55
58
  API + async. When both protocols exist, keep protocol-specific layers
56
59
  separate and share only components with identical meaning, especially
@@ -106,10 +106,8 @@ schema/
106
106
  - The async contract namespace comes from the async schema `info.title`, not the filename —
107
107
  set `info.title` deliberately.
108
108
  - Multi-file specs are bundled automatically; keep `$ref` paths repo-relative.
109
- - Every operation object in API schema and async schema source should include a
110
- concise `summary`. Use `description` when a reader needs outcome, scope,
111
- permissions, side effects, constraints, or message semantics beyond the
112
- summary.
109
+ - Apply the Contract Copy reference to API and async schema titles, summaries,
110
+ descriptions, parameters, responses, schemas, and messages.
113
111
 
114
112
  ## Protocol scenarios
115
113
 
@@ -458,15 +456,10 @@ Share only business payload shapes.
458
456
  - Put reusable HTTP payloads in `components.schemas`.
459
457
  - Operation request/response schemas should reference components with `$ref`.
460
458
  Inline operation schemas are rejected so generated DTO/model names stay stable.
461
- - Every operation should include `summary` to name the action. Use
462
- `description` to explain
463
- outcome, scope, caller context, constraints, or next steps; do not repeat the
464
- summary in sentence form.
465
- - Avoid tag echo. If the API docs already show a tag such as `Playbook` or
466
- `Accounts`, omit that word from the summary unless the operation would become
467
- ambiguous.
468
- - Route public or developer-facing `summary`, `description`, parameter, schema,
469
- and response text through the repo's copywriter standard before validating.
459
+ - Follow Contract Copy for operation and component text. Route public or
460
+ developer-facing copy through the repository's copywriter role before
461
+ validating; when that role is unavailable, apply Contract Copy and the
462
+ repository's general microcopy guidance directly.
470
463
  - Prefer explicit object schemas over anonymous nested shapes when a payload is
471
464
  shared by multiple operations.
472
465
  - If multiple responses repeat the same envelope fields, extract the envelope
@@ -488,17 +481,3 @@ Share only business payload shapes.
488
481
 
489
482
  Run `sumr kontract validate` after any layout change to confirm specs still
490
483
  resolve before generating.
491
-
492
- ## async schema copy rules
493
-
494
- Every async schema operation should include `summary`. Async schema `title`,
495
- `summary`, and `description` fields can appear in generated docs, SDK docs, and
496
- AI answers. Review them with the same copywriter standard as API schema:
497
-
498
- - `title` names the message or operation.
499
- - `summary` states the job or event in one concise sentence.
500
- - `description` adds context only when the outcome, constraint, or event
501
- semantics need more detail.
502
- - Do not repeat the channel, operation id, schema key, or title in the summary.
503
- - Keep transport terms such as subject, payload, NATS, command, and query only
504
- when the reader needs that exact implementation detail.
@@ -18,23 +18,24 @@ generated contracts.
18
18
 
19
19
  Apply the generated **sumr-kontract-usage** skill, then start from the
20
20
  `resources/authoring/` overview. Use its configuration, design-profile axis
21
- references, spec-layout, schema-reuse, scope-and-splitting, and spec-change
22
- workflow before editing source specs. Use the generated-output reference before
23
- consuming or reviewing generated TypeScript.
21
+ references, spec-layout, contract-copy, schema-reuse, scope-and-splitting, and
22
+ spec-change workflow before editing source specs. Use the generated-output
23
+ reference before consuming or reviewing generated TypeScript.
24
24
 
25
25
  ## Responsibilities
26
26
 
27
- - Translate API requirements into API schema, async schema, or `*.api.yml`
28
- specs under `schema/`.
29
- - After writing or updating any `*.api.yml`, `*.async.yml`, or
30
- `*.api.yml` file, review it against Kontract reuse, layout, and generation
27
+ - Translate API and messaging requirements into API or async schema source
28
+ files under the selected source's configured `kontract.sources[].input`.
29
+ - After writing or updating any `*.api.yml`, `*.api.yaml`, `*.async.yml`, or
30
+ `*.async.yaml` file, review it against Kontract reuse, layout, and generation
31
31
  rules before validating.
32
- - Review changed public or developer-facing summaries, descriptions, parameter
33
- descriptions, response descriptions, message titles, and message summaries
34
- against the repo's copywriter standard before generation.
35
- - Ensure every API schema and async schema operation has a concise `summary`.
36
- Add `description` only when it clarifies outcome, scope, permissions, side
37
- effects, constraints, or message semantics.
32
+ - Apply Contract Copy to changed public or developer-facing titles, summaries,
33
+ descriptions, parameters, responses, schemas, and messages. Route them
34
+ through the repository's copywriter role before generation; when that role is
35
+ unavailable, apply Contract Copy and the repository's general microcopy
36
+ guidance directly.
37
+ - Ensure every API schema and async schema operation has a concise `summary`;
38
+ keep `description` only when it adds information.
38
39
  - Read `kontract.guidance.profile` before writing examples so HTTP paths,
39
40
  async schema channels, and schema layouts match the selected styles.
40
41
  - Inspect the actual specs before writing examples. If the repo only has
@@ -71,7 +72,7 @@ consuming or reviewing generated TypeScript.
71
72
 
72
73
  ## Boundaries
73
74
 
74
- - Never edit files under the generated `contracts/` output.
75
+ - Never edit files under a configured target's generated output.
75
76
  - Never hand-write Zod schemas, DTOs, NATS subjects, or clients that Kontract owns.
76
77
  - Do not introduce a second source of truth; the spec is authoritative.
77
78
  - Do not over-share unrelated concepts only because their current fields look