@cratis/pi 7.14.1 → 7.14.3

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 (197) hide show
  1. package/package/corpus/agents/security-reviewer.md +2 -1
  2. package/package/corpus/rules/concepts.md +13 -7
  3. package/package/corpus/rules/glossary.md +2 -1
  4. package/package/corpus/rules/vertical-slices.md +5 -4
  5. package/package/corpus/skills/cratis-application-slice-conformance/SKILL.md +11 -2
  6. package/package/corpus/skills/cratis-application-slice-conformance/references/build-prompts.md +8 -0
  7. package/package/corpus/skills/cratis-application-slice-conformance/references/checklists.md +10 -6
  8. package/package/corpus/skills/cratis-application-slice-specifications/SKILL.md +1 -1
  9. package/package/corpus/skills/cratis-arc-authentication-authorization-and-identity/SKILL.md +11 -7
  10. package/package/corpus/skills/cratis-arc-authentication-authorization-and-identity/references/authentication.md +12 -2
  11. package/package/corpus/skills/cratis-arc-authentication-authorization-and-identity/references/authorization.md +16 -1
  12. package/package/corpus/skills/cratis-arc-authentication-authorization-and-identity/references/frontend.md +7 -0
  13. package/package/corpus/skills/cratis-arc-authentication-authorization-and-identity/references/observable-emission-guards.md +9 -0
  14. package/package/corpus/skills/cratis-arc-command/SKILL.md +24 -16
  15. package/package/corpus/skills/cratis-arc-command/references/command-result.md +7 -0
  16. package/package/corpus/skills/cratis-arc-command/references/handler-shapes.md +10 -3
  17. package/package/corpus/skills/cratis-arc-command-execution/SKILL.md +1 -1
  18. package/package/corpus/skills/cratis-arc-command-operation/SKILL.md +5 -1
  19. package/package/corpus/skills/cratis-arc-command-operation/references/execution-and-recovery.md +12 -0
  20. package/package/corpus/skills/cratis-arc-command-operation/references/testing.md +10 -3
  21. package/package/corpus/skills/cratis-arc-command-typescript/SKILL.md +20 -116
  22. package/package/corpus/skills/cratis-arc-command-typescript/references/chronicle-events.md +11 -8
  23. package/package/corpus/skills/cratis-arc-command-typescript/references/command-specifications.md +63 -0
  24. package/package/corpus/skills/cratis-arc-command-typescript/references/hosting-and-storage.md +10 -0
  25. package/package/corpus/skills/cratis-arc-command-typescript/references/proxy-generation.md +38 -0
  26. package/package/corpus/skills/cratis-arc-command-typescript/references/slice-layout.md +19 -0
  27. package/package/corpus/skills/cratis-arc-command-typescript/verification.json +1 -1
  28. package/package/corpus/skills/cratis-arc-command-validation/SKILL.md +1 -1
  29. package/package/corpus/skills/cratis-arc-query-paging/SKILL.md +11 -10
  30. package/package/corpus/skills/cratis-arc-react-page/SKILL.md +30 -19
  31. package/package/corpus/skills/cratis-arc-react-page/references/data-page.md +11 -0
  32. package/package/corpus/skills/cratis-arc-react-page/references/data-tables.md +10 -0
  33. package/package/corpus/skills/cratis-arc-react-page/references/dialogs.md +12 -10
  34. package/package/corpus/skills/cratis-arc-react-page/references/from-screenplay.md +10 -0
  35. package/package/corpus/skills/cratis-arc-react-page/references/mvvm.md +11 -0
  36. package/package/corpus/skills/cratis-arc-react-page/references/queries-and-commands.md +7 -0
  37. package/package/corpus/skills/cratis-chronicle-client-dotnet/SKILL.md +58 -122
  38. package/package/corpus/skills/cratis-chronicle-client-dotnet/references/compatibility-check.md +26 -0
  39. package/package/corpus/skills/cratis-chronicle-client-dotnet/references/discovery.md +22 -0
  40. package/package/corpus/skills/cratis-chronicle-client-dotnet/references/hosting.md +31 -0
  41. package/package/corpus/skills/cratis-chronicle-client-elixir/SKILL.md +52 -131
  42. package/package/corpus/skills/cratis-chronicle-client-elixir/references/append-api.md +19 -0
  43. package/package/corpus/skills/cratis-chronicle-client-elixir/references/variants.md +73 -0
  44. package/package/corpus/skills/cratis-chronicle-client-kotlin/SKILL.md +29 -232
  45. package/package/corpus/skills/cratis-chronicle-client-kotlin/references/connection-lifecycle.md +20 -0
  46. package/package/corpus/skills/cratis-chronicle-client-kotlin/references/discovery-and-registration.md +44 -0
  47. package/package/corpus/skills/cratis-chronicle-client-kotlin/references/java-api.md +33 -0
  48. package/package/corpus/skills/cratis-chronicle-client-kotlin/references/spring-boot.md +54 -0
  49. package/package/corpus/skills/cratis-chronicle-client-kotlin/references/variants.md +77 -0
  50. package/package/corpus/skills/cratis-chronicle-client-typescript/SKILL.md +26 -102
  51. package/package/corpus/skills/cratis-chronicle-client-typescript/references/read-models-and-projections.md +23 -0
  52. package/package/corpus/skills/cratis-chronicle-client-typescript/references/variants.md +63 -0
  53. package/package/corpus/skills/cratis-chronicle-compliance/SKILL.md +11 -2
  54. package/package/corpus/skills/cratis-chronicle-event-modeling/SKILL.md +2 -2
  55. package/package/corpus/skills/cratis-chronicle-event-type-migration/SKILL.md +13 -13
  56. package/package/corpus/skills/cratis-chronicle-mcp-inspection/SKILL.md +1 -1
  57. package/package/corpus/skills/cratis-chronicle-projection/SKILL.md +13 -4
  58. package/package/corpus/skills/cratis-chronicle-projection/references/fluent-builder.md +10 -0
  59. package/package/corpus/skills/cratis-chronicle-projection/references/model-bound-attributes.md +14 -6
  60. package/package/corpus/skills/cratis-chronicle-projection/references/variants.md +9 -0
  61. package/package/corpus/skills/cratis-chronicle-reactor/SKILL.md +7 -49
  62. package/package/corpus/skills/cratis-chronicle-reactor/references/domain-failures.md +19 -0
  63. package/package/corpus/skills/cratis-chronicle-reactor/references/specifications.md +33 -0
  64. package/package/corpus/skills/cratis-chronicle-read-model/SKILL.md +2 -2
  65. package/package/corpus/skills/cratis-chronicle-read-model/references/queries.md +11 -0
  66. package/package/corpus/skills/cratis-chronicle-read-model-specifications/SKILL.md +1 -0
  67. package/package/corpus/skills/cratis-chronicle-reducer/SKILL.md +1 -1
  68. package/package/corpus/skills/cratis-chronicle-web-workbench/SKILL.md +24 -24
  69. package/package/corpus/skills/cratis-content-length/SKILL.md +1 -1
  70. package/package/corpus/skills/cratis-content-length/references/length-evidence.md +12 -0
  71. package/package/corpus/skills/cratis-developer-marketing/SKILL.md +19 -19
  72. package/package/corpus/skills/cratis-developer-marketing/references/measurement.md +10 -0
  73. package/package/corpus/skills/cratis-developer-marketing/references/playbook-evidence.md +10 -0
  74. package/package/corpus/skills/cratis-engineering-csharp-conventions/SKILL.md +5 -0
  75. package/package/corpus/skills/cratis-engineering-csharp-conventions/references/code-style.md +15 -0
  76. package/package/corpus/skills/cratis-engineering-csharp-conventions/references/exceptions-logging-and-di.md +9 -4
  77. package/package/corpus/skills/cratis-engineering-decision-record/SKILL.md +1 -2
  78. package/package/corpus/skills/cratis-engineering-decision-record/references/record-format.md +8 -0
  79. package/package/corpus/skills/cratis-engineering-docs-authoring/SKILL.md +1 -2
  80. package/package/corpus/skills/cratis-engineering-effect-boundaries/references/failure-archetypes.md +10 -0
  81. package/package/corpus/skills/cratis-fundamentals-concept/SKILL.md +4 -4
  82. package/package/corpus/skills/cratis-fundamentals-type-discovery/SKILL.md +1 -1
  83. package/package/corpus/skills/cratis-lens-browser-extension/SKILL.md +18 -18
  84. package/package/corpus/skills/cratis-performance-review/SKILL.md +1 -1
  85. package/package/corpus/skills/cratis-release-notes/SKILL.md +1 -0
  86. package/package/corpus/skills/cratis-screenplay-automations-and-translations/SKILL.md +29 -4
  87. package/package/corpus/skills/cratis-screenplay-automations-and-translations/references/automation-patterns.md +16 -4
  88. package/package/corpus/skills/cratis-screenplay-automations-and-translations/references/effects-and-idempotency.md +4 -15
  89. package/package/corpus/skills/cratis-screenplay-automations-and-translations/references/todo-list-example.md +6 -2
  90. package/package/corpus/skills/cratis-screenplay-automations-and-translations/references/translation-patterns.md +1 -6
  91. package/package/corpus/skills/cratis-screenplay-captures-and-reactions/SKILL.md +45 -245
  92. package/package/corpus/skills/cratis-screenplay-captures-and-reactions/references/capture-map-and-example.md +42 -0
  93. package/package/corpus/skills/cratis-screenplay-captures-and-reactions/references/complete-examples.md +155 -0
  94. package/package/corpus/skills/cratis-screenplay-captures-and-reactions/references/specifying-triggers-and-clock.md +27 -0
  95. package/package/corpus/skills/cratis-screenplay-captures-and-reactions/references/trigger-reads-example.md +21 -0
  96. package/package/corpus/skills/cratis-screenplay-command-surface/SKILL.md +70 -221
  97. package/package/corpus/skills/cratis-screenplay-command-surface/references/context.md +10 -0
  98. package/package/corpus/skills/cratis-screenplay-command-surface/references/generated-values-and-responses.md +51 -0
  99. package/package/corpus/skills/cratis-screenplay-command-surface/references/inline-events.md +62 -0
  100. package/package/corpus/skills/cratis-screenplay-command-surface/references/policy-persona-seed.md +46 -0
  101. package/package/corpus/skills/cratis-screenplay-command-surface/references/validate-rules.md +36 -0
  102. package/package/corpus/skills/cratis-screenplay-command-surface/verification.json +11 -11
  103. package/package/corpus/skills/cratis-screenplay-discovery/SKILL.md +10 -3
  104. package/package/corpus/skills/cratis-screenplay-discovery/references/facilitation.md +1 -6
  105. package/package/corpus/skills/cratis-screenplay-discovery/references/human-workshop.md +13 -0
  106. package/package/corpus/skills/cratis-screenplay-discovery/references/personas-and-causes.md +8 -0
  107. package/package/corpus/skills/cratis-screenplay-discovery/references/plotting-and-handoff.md +11 -0
  108. package/package/corpus/skills/cratis-screenplay-discovery/references/storming-loop.md +7 -0
  109. package/package/corpus/skills/cratis-screenplay-event-modeling/SKILL.md +75 -198
  110. package/package/corpus/skills/cratis-screenplay-event-modeling/references/file-layout.md +89 -0
  111. package/package/corpus/skills/cratis-screenplay-event-modeling/references/naming-primitives.md +26 -0
  112. package/package/corpus/skills/cratis-screenplay-event-modeling/references/nine-steps.md +14 -1
  113. package/package/corpus/skills/cratis-screenplay-event-modeling/references/parsed-not-runnable.md +8 -0
  114. package/package/corpus/skills/cratis-screenplay-event-modeling/references/provenance.md +10 -0
  115. package/package/corpus/skills/cratis-screenplay-event-modeling/references/slice-type-rules.md +12 -0
  116. package/package/corpus/skills/cratis-screenplay-event-modeling/verification.json +12 -6
  117. package/package/corpus/skills/cratis-screenplay-legacy-extraction/SKILL.md +5 -6
  118. package/package/corpus/skills/cratis-screenplay-legacy-extraction/references/candidate-inventory.md +11 -0
  119. package/package/corpus/skills/cratis-screenplay-legacy-extraction/references/prologue-safety.md +8 -0
  120. package/package/corpus/skills/cratis-screenplay-legacy-extraction/references/side-car-migration.md +11 -0
  121. package/package/corpus/skills/cratis-screenplay-legacy-extraction/references/ui-observation.md +1 -1
  122. package/package/corpus/skills/cratis-screenplay-model-authoring/SKILL.md +33 -10
  123. package/package/corpus/skills/cratis-screenplay-model-authoring/references/language-reference.md +8 -0
  124. package/package/corpus/skills/cratis-screenplay-model-authoring/references/mcp-loop.md +13 -17
  125. package/package/corpus/skills/cratis-screenplay-model-authoring/references/mcp-tools.md +11 -0
  126. package/package/corpus/skills/cratis-screenplay-model-review/SKILL.md +9 -9
  127. package/package/corpus/skills/cratis-screenplay-model-review/references/business-questions.md +9 -0
  128. package/package/corpus/skills/cratis-screenplay-model-review/references/checklist.md +16 -1
  129. package/package/corpus/skills/cratis-screenplay-model-review/references/report-template.md +9 -0
  130. package/package/corpus/skills/cratis-screenplay-model-review/references/worked-example.md +9 -0
  131. package/package/corpus/skills/cratis-screenplay-modeling-lifecycle/SKILL.md +17 -8
  132. package/package/corpus/skills/cratis-screenplay-modeling-lifecycle/references/handoff-template.md +8 -0
  133. package/package/corpus/skills/cratis-screenplay-modeling-lifecycle/references/identity-and-edits.md +1 -6
  134. package/package/corpus/skills/cratis-screenplay-modeling-lifecycle/references/phases.md +19 -0
  135. package/package/corpus/skills/cratis-screenplay-modeling-lifecycle/references/safety.md +1 -1
  136. package/package/corpus/skills/cratis-screenplay-modeling-lifecycle/references/verdicts-and-modes.md +11 -1
  137. package/package/corpus/skills/cratis-screenplay-modeling-lifecycle/references/vocabulary-map.md +2 -2
  138. package/package/corpus/skills/cratis-screenplay-projections/SKILL.md +3 -4
  139. package/package/corpus/skills/cratis-screenplay-projections/references/pdl-grammar.md +8 -0
  140. package/package/corpus/skills/cratis-screenplay-read-surface/SKILL.md +2 -2
  141. package/package/corpus/skills/cratis-screenplay-render-and-gap-fill/SKILL.md +3 -3
  142. package/package/corpus/skills/cratis-screenplay-render-and-gap-fill/references/gap-fill-handoff.md +1 -1
  143. package/package/corpus/skills/cratis-screenplay-render-and-gap-fill/references/renderability-gate.md +1 -1
  144. package/package/corpus/skills/cratis-screenplay-render-and-gap-fill/references/worked-example.md +8 -0
  145. package/package/corpus/skills/cratis-screenplay-scenario-coverage/SKILL.md +10 -10
  146. package/package/corpus/skills/cratis-screenplay-scenario-coverage/references/coverage-matrix.md +8 -0
  147. package/package/corpus/skills/cratis-screenplay-scenario-coverage/references/invoicing-dues-example.md +4 -0
  148. package/package/corpus/skills/cratis-screenplay-scenario-coverage/references/scenario-catalogue.md +17 -0
  149. package/package/corpus/skills/cratis-screenplay-scenario-coverage/references/scenario-examples.md +10 -0
  150. package/package/corpus/skills/cratis-screenplay-scenario-coverage/references/scenario-workshop.md +11 -0
  151. package/package/corpus/skills/cratis-screenplay-scenario-coverage/references/view-and-story-specs.md +12 -0
  152. package/package/corpus/skills/cratis-screenplay-slice-design/SKILL.md +2 -2
  153. package/package/corpus/skills/cratis-screenplay-slice-design/references/command-inventory.md +7 -0
  154. package/package/corpus/skills/cratis-screenplay-slice-design/references/field-lineage.md +8 -0
  155. package/package/corpus/skills/cratis-screenplay-slice-design/references/read-model-design.md +16 -0
  156. package/package/corpus/skills/cratis-screenplay-slice-design/references/slicing.md +10 -0
  157. package/package/corpus/skills/cratis-screenplay-specifications/SKILL.md +52 -360
  158. package/package/corpus/skills/cratis-screenplay-specifications/references/actions-beyond-commands.md +34 -0
  159. package/package/corpus/skills/cratis-screenplay-specifications/references/concept-rules.md +77 -0
  160. package/package/corpus/skills/cratis-screenplay-specifications/references/generated-fixtures.md +39 -0
  161. package/package/corpus/skills/cratis-screenplay-specifications/references/reactions-and-cascades.md +72 -0
  162. package/package/corpus/skills/cratis-screenplay-specifications/references/worked-example.md +110 -0
  163. package/package/corpus/skills/cratis-screenplay-specifications/verification.json +6 -6
  164. package/package/corpus/skills/cratis-screenplay-streams-and-consistency/SKILL.md +23 -3
  165. package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/boundaries.md +13 -0
  166. package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/chronicle-boundaries.md +3 -3
  167. package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/consistency-and-concurrency.md +16 -20
  168. package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/stream-patterns.md +16 -0
  169. package/package/corpus/skills/cratis-screenplay-toolchain/SKILL.md +13 -7
  170. package/package/corpus/skills/cratis-screenplay-toolchain/references/diagnostics.md +10 -0
  171. package/package/corpus/skills/cratis-screenplay-toolchain/references/doc-contradictions.md +1 -1
  172. package/package/corpus/skills/cratis-screenplay-toolchain/references/executable-subset.md +12 -2
  173. package/package/corpus/skills/cratis-screenplay-toolchain/references/generated-responses-example.md +1 -1
  174. package/package/corpus/skills/cratis-screenplay-toolchain/references/provenance.md +2 -2
  175. package/package/corpus/skills/cratis-screenplay-toolchain/references/renderable-subset.md +1 -1
  176. package/package/corpus/skills/cratis-screenplay-toolchain/references/traps.md +1 -1
  177. package/package/corpus/skills/cratis-screenplay-toolchain/references/verdicts.md +10 -0
  178. package/package/corpus/skills/cratis-screenplay-toolchain/references/versions.md +15 -5
  179. package/package/corpus/skills/cratis-screenplay-ui-composition/SKILL.md +11 -13
  180. package/package/corpus/skills/cratis-screenplay-ui-composition/references/flow-review.md +1 -1
  181. package/package/corpus/skills/cratis-security-review/SKILL.md +13 -8
  182. package/package/corpus/skills/cratis-social-feed-post/SKILL.md +10 -10
  183. package/package/corpus/skills/cratis-social-feed-post/references/engagement-evidence.md +12 -0
  184. package/package/corpus/skills/cratis-specifications-csharp/SKILL.md +13 -2
  185. package/package/corpus/skills/cratis-specifications-csharp/references/application-scenarios.md +10 -10
  186. package/package/corpus/skills/cratis-specifications-csharp/references/csharp-patterns.md +10 -0
  187. package/package/corpus/skills/cratis-specifications-csharp/references/integration-specs.md +9 -0
  188. package/package/corpus/skills/cratis-specifications-typescript/SKILL.md +1 -2
  189. package/package/corpus/skills/cratis-specifications-typescript/references/typescript-patterns.md +11 -1
  190. package/package/corpus/skills/cratis-stage-rendering-and-sandbox/SKILL.md +30 -21
  191. package/package/corpus/skills/cratis-stage-rendering-and-sandbox/references/admission.md +9 -0
  192. package/package/corpus/skills/cratis-stage-rendering-and-sandbox/references/render-example.md +5 -0
  193. package/package/corpus/skills/cratis-stage-rendering-and-sandbox/references/sandbox-and-specrunner.md +2 -4
  194. package/package/corpus/skills/cratis-studio-mcp-safety-guidance/SKILL.md +2 -2
  195. package/package/corpus/skills/cratis-writing-voice-and-cadence/SKILL.md +39 -39
  196. package/package/corpus/skills/cratis-writing-voice-and-cadence/references/ai-tells.md +10 -0
  197. package/package.json +1 -1
@@ -323,15 +323,14 @@ What the executable model does with it (ESM v3):
323
323
  **Prefer a projection where one will do.** A reducer is code, and code is the part
324
324
  of a document a reader cannot check at a glance.
325
325
 
326
- Read [pdl-grammar.md](references/pdl-grammar.md) for the syntax grammar, the
327
- projection diagnostic codes, and worked examples.
326
+ Read [pdl-grammar.md](references/pdl-grammar.md) when checking exact syntax, interpreting a projection diagnostic code, or needing a worked example.
328
327
 
329
328
  ## Verify
330
329
 
331
330
  - [ ] Standalone `screenplay <model> --warnaserror` (4.68.0) reports zero errors and zero
332
331
  warnings; or `cratis screenplay validate --warnings-as-errors` on the model folder
333
332
  (3.28.2 bundles the same Screenplay 4.66.0; before 3.28.2 bundled 4.60.1, ESM v5
334
- or lower). Name which tool produced the result.
333
+ or lower). Name which tool produced the result. If it reports diagnostics, correct the model and rerun the same command; report unresolved diagnostics as blockers rather than a passing verification.
335
334
  - [ ] Each read model has **exactly one** builder.
336
335
  - [ ] No projection-level `key`; every `from` that must address the same
337
336
  instance is keyed on the same identity.
@@ -351,7 +350,7 @@ projection diagnostic codes, and worked examples.
351
350
  - [ ] A reducer is present only because a projection genuinely could not express it,
352
351
  and every rule has a body in a tagged fence or a `file`.
353
352
 
354
- Versions, tool capabilities and the executable and renderable subsets: `cratis-screenplay-toolchain` (`references/versions.md`). Where a construct sits in the
353
+ Read `cratis-screenplay-toolchain` (`references/versions.md`) when selecting a tool/version or checking tool capabilities and the executable and renderable subsets. Where a construct sits in the
355
354
  method: `cratis-screenplay-modeling-lifecycle` and `cratis-screenplay-slice-design`.
356
355
 
357
356
  ## Route near misses
@@ -1,5 +1,13 @@
1
1
  # PDL — syntax grammar, meaning and diagnostics
2
2
 
3
+ ## Contents
4
+
5
+ - Grammar
6
+ - Parser regexes
7
+ - Diagnostics
8
+ - Syntax that parses but means something else
9
+ - Worked examples
10
+
3
11
  Checked against `Documentation/screenplay/projections/{grammar,semantic-model,keys,variants}.md`
4
12
  and `Source/DotNET/Screenplay/Parsing/ProjectionParser.cs` at Screenplay tag
5
13
  `v4.31.0` (commit `355dffb`).
@@ -163,7 +163,7 @@ on the header line is a declaration error, not a shorthand.
163
163
 
164
164
  ### What runs
165
165
 
166
- In the executable model today, only the keyed snapshot shape binds:
166
+ In the Screenplay 4.66.0 executable model, only the keyed snapshot shape binds:
167
167
  `=> <ReadModel> optional` with one caller-supplied `by` argument and no `observable`,
168
168
  `filter`, `scoped to` or `performer`. Anything else, including `=> <ReadModel>`
169
169
  and `=> <ReadModel>[]`, reports `PLAY0268`. Its `authorize` gate runs before
@@ -271,7 +271,7 @@ binding failures are errors.
271
271
  - [ ] Each read model has exactly one builder and every field traces to an event.
272
272
  - [ ] No screen reference is left ambiguous or unresolved.
273
273
 
274
- Versions, tool capabilities and the executable and renderable subsets: `cratis-screenplay-toolchain` (`references/versions.md`). Where a construct sits in the
274
+ Read `references/versions.md` in `cratis-screenplay-toolchain` when choosing a tool, checking versions, or assessing executable and renderable subsets. Where a construct sits in the
275
275
  method: `cratis-screenplay-modeling-lifecycle` and `cratis-screenplay-slice-design`.
276
276
 
277
277
  ## Route near misses
@@ -21,7 +21,7 @@ rule is in `cratis-screenplay-modeling-lifecycle` ("Decide the level first"); it
21
21
 
22
22
  ## Verified product sources
23
23
 
24
- Version pins live once in `cratis-screenplay-toolchain` `references/versions.md`.
24
+ Version pins live once in `cratis-screenplay-toolchain` `references/versions.md`. Read that file before selecting the compiler and renderer versions for delivery.
25
25
 
26
26
  | Source | Pin | Used for |
27
27
  | --- | --- | --- |
@@ -186,8 +186,8 @@ Before reporting done:
186
186
  - `references/delivery-protocol.md` - inputs, commands, reading results, `Customizations/`.
187
187
  - `references/gap-fill-handoff.md` - the brief for `slice-implementer`, ledger flow.
188
188
  - `references/drift-and-ledger.md` - drift, publication refusals, the fallback ledger.
189
- - `references/worked-example.md` - a refused render and its report, with a complete model.
190
- - `references/provenance.md` - sources and attribution.
189
+ - Read `references/worked-example.md` when preparing the classification and report for a refused render; it contains a complete model.
190
+ - Read `references/provenance.md` when checking sources and attribution for the render workflow or gap-fill brief.
191
191
 
192
192
  ## Lineage
193
193
 
@@ -75,7 +75,7 @@ gap-fill): the registration goes through the seams in `Customizations/Program.cs
75
75
  not bind a modeled reaction or capture. Case C (no generated application): there is no generated
76
76
  `Program.cs` or partial hook, so the registration follows the hand-written application's own
77
77
  composition conventions (`rules/vertical-slices.md`, `cratis-chronicle-reactor`).
78
- A reaction invokes a command with no caller (Screenplay has no caller syntax today), so the
78
+ A reaction invokes a command with no caller (Screenplay 4.68.0 has no caller syntax), so the
79
79
  code needs a trusted path (`[ExecuteCommandsAsSystem]`, Arc 20.56.0 and later, in a rendered
80
80
  application's Arc 22.25.0 too); never invent `runs as`.
81
81
 
@@ -48,7 +48,7 @@ ESM). Only the probe answers renderability. `PLAY0270` entries are information,
48
48
  Read at the time of writing (all open): portable query semantics Stage#58 (list, observable and
49
49
  filtered queries); Automation and Translate slices Stage#79; mapping expressions and projection
50
50
  blocks Stage#117; modeled authentication Stage#120; event generation v4 Stage#165; per-persona
51
- screens Stage#194; compliance attributes Stage#197. Check that an issue is still open before citing
51
+ screens Stage#194. Check that an issue is still open before citing
52
52
  it, and cite only numbers you have just read. A closed issue is a trigger to probe again.
53
53
 
54
54
  ## Reference outcomes
@@ -1,5 +1,13 @@
1
1
  # Worked example: a refused render, the classification and the report
2
2
 
3
+ ## Contents
4
+
5
+ - The model
6
+ - The probe
7
+ - Classification
8
+ - Decision and ledger entry
9
+ - The report
10
+
3
11
  A marina model with one renderable command and one list view. The model compiles; `cratis render`
4
12
  refuses it, so nothing is published. The example shows how to classify, decide and report.
5
13
 
@@ -80,7 +80,7 @@ question is not four approvals.
80
80
  caller-supplied copies of state in `require`, boolean attestation inputs (`confirmsX ==
81
81
  true`) and rules hidden in `handler`/hint prose. Never drop an unresolved given or assertion
82
82
  to make a spec compile: record the blocked case and continue.
83
- 10. **Validate** the batch (V1, warnings as errors); V2/V3 when executable or renderable. The
83
+ 10. **Validate** the batch (V1, warnings as errors); V2/V3 when executable or renderable. Fix diagnostics without dropping intended rules, prerequisites or assertions, then rerun the applicable verdicts; if the chosen mode cannot admit the construct, preserve it and report the blocked scope explicitly. The
84
84
  phase report carries the matrix path, spec names added or changed, `recorded`, `open` and
85
85
  `gap` cells and open questions.
86
86
 
@@ -199,17 +199,17 @@ scope is reported as explicitly incomplete); V1 passes with the tool named in
199
199
  `cratis-specifications-csharp`.
200
200
 
201
201
  ## References (load on demand)
202
- - `references/scenario-catalogue.md` - each type: ask, applies when, n/a when, shape, traps; example data.
203
- - `references/view-and-story-specs.md` - view specs, lifecycle families, ordering, lag.
204
- - `references/coverage-matrix.md` - obligations from declarations, template, worked matrix.
202
+ - `references/scenario-catalogue.md` - each type: ask, applies when, n/a when, shape, traps; example data. Read when deciding applicability, eliciting cases or choosing example data.
203
+ - `references/view-and-story-specs.md` - view specs, lifecycle families, ordering, lag. Read before deciding each view's lifecycle family and drafting view specifications.
204
+ - `references/coverage-matrix.md` - obligations from declarations, template, worked matrix. Read before constructing or reconciling the coverage matrix.
205
205
  - `references/scenario-examples.md` - compact worked examples per category, good and bad forms,
206
206
  list and todo-list views; copied from the complete `references/invoicing-dues-example.md`
207
207
  (runnable) and, for compensation, `references/invoicing-dues-design.md` (design mode: holds the
208
- stored-state rules, does not bind).
209
- - `references/scenario-workshop.md` - facilitation guide for group scenario sessions.
210
- - `references/chronicle-verification.md` - guarantees that need more than a `.play` outcome.
211
- - `references/spec-forms-by-mode.md` - admitted forms in design, executable, renderable.
212
- - `references/berth-reservations.md` - complete compiled example (marina guest berths).
208
+ stored-state rules, does not bind). Read `references/scenario-examples.md` when drafting a category and you need good/bad or worked specification forms; read `references/invoicing-dues-example.md` when you need the complete executable declarations behind the invoicing excerpts; read `references/invoicing-dues-design.md` when specifying stored-state invoicing rules or their compensation scenarios in design mode.
209
+ - `references/scenario-workshop.md` - facilitation guide for group scenario sessions. Read when facilitating a group scenario session.
210
+ - `references/chronicle-verification.md` - guarantees that need more than a `.play` outcome. Read when a claimed guarantee needs in-process or real-kernel evidence beyond `.play` outcomes.
211
+ - `references/spec-forms-by-mode.md` - admitted forms in design, executable, renderable. Read after choosing the mode and before drafting its admitted specification forms.
212
+ - `references/berth-reservations.md` - complete compiled example (marina guest berths). Read when you need a complete design-mode example of a coverage matrix realized as specifications.
213
213
 
214
214
  ## Lineage
215
- Attribution and adapted sources: `references/provenance.md`.
215
+ Attribution and adapted sources: `references/provenance.md`. Read `references/provenance.md` when checking attribution or how an adapted practice differs from its source.
@@ -1,5 +1,13 @@
1
1
  # Coverage matrix
2
2
 
3
+ ## Contents
4
+
5
+ - Cell values
6
+ - Derive obligations from the model
7
+ - Template: commands, reactions, captures
8
+ - Template: read models
9
+ - Worked example (`berth-reservations.md`, design mode)
10
+
3
11
  Write it **before** drafting specs, keep it in `.ai-work/screenplay/<model-slug>/coverage.md` (or the
4
12
  `STATE.md` beside it), and update it with the specs. Reviewers check it against the model. The Screenplay MCP does not yet report which specifications a command, read model, policy or constraint still lacks (Screenplay#390, open, not available): the matrix is that report, built by hand from the declarations.
5
13
 
@@ -1,5 +1,9 @@
1
1
  # Invoicing and dues: worked example for the scenario-examples excerpts
2
2
 
3
+ ## Contents
4
+
5
+ - Notes
6
+
3
7
  Complete executable model (harbor club dues) holding every declaration the excerpts in
4
8
  `scenario-examples.md` and `view-and-story-specs.md` rely on, except the stored-state rules. Each
5
9
  of those excerpts is copied verbatim from the fence below (names are the specification names),
@@ -1,5 +1,22 @@
1
1
  # Scenario catalogue
2
2
 
3
+ ## Contents
4
+
5
+ - Eliciting cases
6
+ - 1. Happy path
7
+ - 2. Rule rejection (one per rule)
8
+ - 3. Authorization denial
9
+ - 4. State violation
10
+ - 5. Duplicate action and retry
11
+ - 6. Competing claim (concurrency)
12
+ - 7. Alternative path
13
+ - 8. Ordering and timing
14
+ - 9. External failure
15
+ - 10. Compensation
16
+ - 11. Evolution compatibility
17
+ - 12. Views
18
+ - Example data
19
+
3
20
  For each type: the question to put to the domain, when it applies, when "n/a" is a legitimate
4
21
  answer, the Screenplay shape, and traps. Excerpts point to the complete compiled example
5
22
  `berth-reservations.md` (marina guest berths). An `n/a` must name a domain reason; a
@@ -1,5 +1,15 @@
1
1
  # Scenario examples, category by category
2
2
 
3
+ ## Contents
4
+
5
+ - Good and bad forms
6
+ - 1. Command: success, rule rejection and denial
7
+ - 2. Command: state violations
8
+ - 3. External failure: the capture, then the retry
9
+ - 4. Compensation
10
+ - 5. Views: population, update, accumulation
11
+ - 6. Views: list contents and the empty list
12
+
3
13
  Compact examples for each scenario category, in one invoicing domain so the shapes compare
4
14
  easily. Every excerpt below is copied verbatim from the complete document in
5
15
  `invoicing-dues-example.md`, which compiles with warnings as errors and whose 21 specifications
@@ -1,5 +1,16 @@
1
1
  # Scenario workshop (human facilitation guide)
2
2
 
3
+ ## Contents
4
+
5
+ - Before the workshop
6
+ - During: one command at a time
7
+ - During: one view at a time
8
+ - Reading back
9
+ - Multi-role check (before leaving the room)
10
+ - Common mistakes
11
+ - Tips for rapid capture
12
+ - Rules of thumb, deliberately different from the source guide
13
+
3
14
  Use this when scenarios are written together with business people, developers and testers
4
15
  instead of by one author. The facilitation structure is adapted from the Workshop Facilitation
5
16
  Guide in TrogonStack `eventmodeling-elaborating-scenarios` (MIT; see `provenance.md`) and
@@ -1,5 +1,17 @@
1
1
  # View specifications and lifecycle families
2
2
 
3
+ ## Contents
4
+
5
+ - Per read model, decide before drafting
6
+ - Required specs per projected read model
7
+ - Lifecycle families (storyline emulation)
8
+ - Worked family: a todo list
9
+ - Removal is a positive obligation
10
+ - Ordering, lag and rebuild
11
+ - Performer-backed views (no events build them)
12
+ - Cross-context views
13
+ - Gated views
14
+
3
15
  Views cannot reject a stored fact, so view specs have no error cases. They answer: after these
4
16
  facts, what does the screen (or automation input) show?
5
17
 
@@ -211,7 +211,7 @@ Examples compile with `screenplay` 4.68.0 `--warnaserror` and `cratis screenplay
211
211
 
212
212
  - V1 (V3 if executable/renderable) passes, naming tool and version. Walk the Gate (every element ok / exempt with reason / gap); each persona `Cannot` line has a
213
213
  gate plus a denied spec, or is a gap.
214
- - Worked reference: `references/worked-example.md` (design mode, compiles clean).
214
+ - Worked reference: `references/worked-example.md` (design mode, compiles clean). Read when you need a complete design-mode example to compare with command inventories, lineage, and state-transition tables.
215
215
 
216
216
  ## Route near misses
217
217
 
@@ -235,4 +235,4 @@ Examples compile with `screenplay` 4.68.0 `--warnaserror` and `cratis screenplay
235
235
 
236
236
  ## Lineage
237
237
 
238
- Attribution: `references/provenance.md`.
238
+ Attribution: `references/provenance.md`. Read when checking source attribution or adaptation history.
@@ -1,5 +1,12 @@
1
1
  # Command design and the per-command refusal inventory
2
2
 
3
+ ## Contents
4
+
5
+ - Command card
6
+ - The inventory
7
+ - Filled for `worked-example.md`
8
+ - Common mistakes
9
+
3
10
  For every command, record what it needs, where each input comes from, how it can succeed and
4
11
  every way it can be refused. The inventory is the design output that
5
12
  `cratis-screenplay-scenario-coverage` consumes: each refusal becomes a specification there,
@@ -1,5 +1,13 @@
1
1
  # Field lineage
2
2
 
3
+ ## Contents
4
+
5
+ - Where values come from, per element
6
+ - The matrix
7
+ - The reason line per contributing event
8
+ - Gap handling
9
+ - Adding or renaming a field along a chain (manual checklist)
10
+
3
11
  Every value in the model has a place it comes from and a place it goes. If you cannot say
4
12
  where a field comes from, the model is missing an input, an event field or a decision. If an
5
13
  event field goes nowhere, ask why it is recorded (audit and history are valid answers; say so).
@@ -1,5 +1,21 @@
1
1
  # Read-model design
2
2
 
3
+ ## Contents
4
+
5
+ - Start from the consumer
6
+ - The typical slice pattern
7
+ - Events or views
8
+ - Components
9
+ - Fan-in per field
10
+ - Builder and freshness
11
+ - Query shape follows the business view
12
+ - No clock-relative state
13
+ - Who may see what
14
+ - Collections and many-at-once
15
+ - Building it
16
+ - Omissions are decisions
17
+ - Checks before handing off
18
+
3
19
  ## Start from the consumer
4
20
 
5
21
  List every consumer before designing any read model: each screen area a person looks at, and
@@ -1,5 +1,15 @@
1
1
  # Slicing, state transitions and the next slice
2
2
 
3
+ ## Contents
4
+
5
+ - Slices are the authoring unit
6
+ - Slice dependencies
7
+ - State-transition table (per entity)
8
+ - Generic edits
9
+ - Rule coverage
10
+ - Slice audit
11
+ - The next slice
12
+
3
13
  ## Slices are the authoring unit
4
14
 
5
15
  In Screenplay every construct already lives in a typed slice, so slicing is not a separate