@cratis/pi 7.14.2 → 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 (186) hide show
  1. package/package/corpus/skills/cratis-application-slice-conformance/SKILL.md +11 -2
  2. package/package/corpus/skills/cratis-application-slice-conformance/references/build-prompts.md +8 -0
  3. package/package/corpus/skills/cratis-application-slice-conformance/references/checklists.md +10 -6
  4. package/package/corpus/skills/cratis-application-slice-specifications/SKILL.md +1 -1
  5. package/package/corpus/skills/cratis-arc-authentication-authorization-and-identity/SKILL.md +11 -7
  6. package/package/corpus/skills/cratis-arc-authentication-authorization-and-identity/references/authentication.md +12 -2
  7. package/package/corpus/skills/cratis-arc-authentication-authorization-and-identity/references/authorization.md +16 -1
  8. package/package/corpus/skills/cratis-arc-authentication-authorization-and-identity/references/frontend.md +7 -0
  9. package/package/corpus/skills/cratis-arc-authentication-authorization-and-identity/references/observable-emission-guards.md +9 -0
  10. package/package/corpus/skills/cratis-arc-command/SKILL.md +20 -15
  11. package/package/corpus/skills/cratis-arc-command/references/command-result.md +7 -0
  12. package/package/corpus/skills/cratis-arc-command/references/handler-shapes.md +10 -3
  13. package/package/corpus/skills/cratis-arc-command-execution/SKILL.md +1 -1
  14. package/package/corpus/skills/cratis-arc-command-operation/SKILL.md +5 -1
  15. package/package/corpus/skills/cratis-arc-command-operation/references/execution-and-recovery.md +12 -0
  16. package/package/corpus/skills/cratis-arc-command-operation/references/testing.md +10 -3
  17. package/package/corpus/skills/cratis-arc-command-typescript/SKILL.md +20 -116
  18. package/package/corpus/skills/cratis-arc-command-typescript/references/chronicle-events.md +11 -8
  19. package/package/corpus/skills/cratis-arc-command-typescript/references/command-specifications.md +63 -0
  20. package/package/corpus/skills/cratis-arc-command-typescript/references/hosting-and-storage.md +10 -0
  21. package/package/corpus/skills/cratis-arc-command-typescript/references/proxy-generation.md +38 -0
  22. package/package/corpus/skills/cratis-arc-command-typescript/references/slice-layout.md +19 -0
  23. package/package/corpus/skills/cratis-arc-command-typescript/verification.json +1 -1
  24. package/package/corpus/skills/cratis-arc-command-validation/SKILL.md +1 -1
  25. package/package/corpus/skills/cratis-arc-query-paging/SKILL.md +11 -10
  26. package/package/corpus/skills/cratis-arc-react-page/SKILL.md +30 -19
  27. package/package/corpus/skills/cratis-arc-react-page/references/data-page.md +11 -0
  28. package/package/corpus/skills/cratis-arc-react-page/references/data-tables.md +10 -0
  29. package/package/corpus/skills/cratis-arc-react-page/references/dialogs.md +12 -10
  30. package/package/corpus/skills/cratis-arc-react-page/references/from-screenplay.md +10 -0
  31. package/package/corpus/skills/cratis-arc-react-page/references/mvvm.md +11 -0
  32. package/package/corpus/skills/cratis-arc-react-page/references/queries-and-commands.md +7 -0
  33. package/package/corpus/skills/cratis-chronicle-client-dotnet/SKILL.md +58 -122
  34. package/package/corpus/skills/cratis-chronicle-client-dotnet/references/compatibility-check.md +26 -0
  35. package/package/corpus/skills/cratis-chronicle-client-dotnet/references/discovery.md +22 -0
  36. package/package/corpus/skills/cratis-chronicle-client-dotnet/references/hosting.md +31 -0
  37. package/package/corpus/skills/cratis-chronicle-client-elixir/SKILL.md +52 -131
  38. package/package/corpus/skills/cratis-chronicle-client-elixir/references/append-api.md +19 -0
  39. package/package/corpus/skills/cratis-chronicle-client-elixir/references/variants.md +73 -0
  40. package/package/corpus/skills/cratis-chronicle-client-kotlin/SKILL.md +29 -232
  41. package/package/corpus/skills/cratis-chronicle-client-kotlin/references/connection-lifecycle.md +20 -0
  42. package/package/corpus/skills/cratis-chronicle-client-kotlin/references/discovery-and-registration.md +44 -0
  43. package/package/corpus/skills/cratis-chronicle-client-kotlin/references/java-api.md +33 -0
  44. package/package/corpus/skills/cratis-chronicle-client-kotlin/references/spring-boot.md +54 -0
  45. package/package/corpus/skills/cratis-chronicle-client-kotlin/references/variants.md +77 -0
  46. package/package/corpus/skills/cratis-chronicle-client-typescript/SKILL.md +26 -102
  47. package/package/corpus/skills/cratis-chronicle-client-typescript/references/read-models-and-projections.md +23 -0
  48. package/package/corpus/skills/cratis-chronicle-client-typescript/references/variants.md +63 -0
  49. package/package/corpus/skills/cratis-chronicle-event-type-migration/SKILL.md +13 -13
  50. package/package/corpus/skills/cratis-chronicle-mcp-inspection/SKILL.md +1 -1
  51. package/package/corpus/skills/cratis-chronicle-projection/SKILL.md +13 -4
  52. package/package/corpus/skills/cratis-chronicle-projection/references/fluent-builder.md +10 -0
  53. package/package/corpus/skills/cratis-chronicle-projection/references/model-bound-attributes.md +14 -6
  54. package/package/corpus/skills/cratis-chronicle-projection/references/variants.md +9 -0
  55. package/package/corpus/skills/cratis-chronicle-reactor/SKILL.md +7 -49
  56. package/package/corpus/skills/cratis-chronicle-reactor/references/domain-failures.md +19 -0
  57. package/package/corpus/skills/cratis-chronicle-reactor/references/specifications.md +33 -0
  58. package/package/corpus/skills/cratis-chronicle-read-model/SKILL.md +2 -2
  59. package/package/corpus/skills/cratis-chronicle-read-model/references/queries.md +11 -0
  60. package/package/corpus/skills/cratis-chronicle-read-model-specifications/SKILL.md +1 -0
  61. package/package/corpus/skills/cratis-chronicle-reducer/SKILL.md +1 -1
  62. package/package/corpus/skills/cratis-chronicle-web-workbench/SKILL.md +24 -24
  63. package/package/corpus/skills/cratis-content-length/SKILL.md +1 -1
  64. package/package/corpus/skills/cratis-content-length/references/length-evidence.md +12 -0
  65. package/package/corpus/skills/cratis-developer-marketing/SKILL.md +19 -19
  66. package/package/corpus/skills/cratis-developer-marketing/references/measurement.md +10 -0
  67. package/package/corpus/skills/cratis-developer-marketing/references/playbook-evidence.md +10 -0
  68. package/package/corpus/skills/cratis-engineering-csharp-conventions/SKILL.md +5 -0
  69. package/package/corpus/skills/cratis-engineering-csharp-conventions/references/code-style.md +15 -0
  70. package/package/corpus/skills/cratis-engineering-csharp-conventions/references/exceptions-logging-and-di.md +9 -4
  71. package/package/corpus/skills/cratis-engineering-decision-record/SKILL.md +1 -2
  72. package/package/corpus/skills/cratis-engineering-decision-record/references/record-format.md +8 -0
  73. package/package/corpus/skills/cratis-engineering-docs-authoring/SKILL.md +1 -2
  74. package/package/corpus/skills/cratis-engineering-effect-boundaries/references/failure-archetypes.md +10 -0
  75. package/package/corpus/skills/cratis-fundamentals-concept/SKILL.md +1 -1
  76. package/package/corpus/skills/cratis-fundamentals-type-discovery/SKILL.md +1 -1
  77. package/package/corpus/skills/cratis-lens-browser-extension/SKILL.md +18 -18
  78. package/package/corpus/skills/cratis-performance-review/SKILL.md +1 -1
  79. package/package/corpus/skills/cratis-release-notes/SKILL.md +1 -0
  80. package/package/corpus/skills/cratis-screenplay-automations-and-translations/SKILL.md +29 -4
  81. package/package/corpus/skills/cratis-screenplay-automations-and-translations/references/automation-patterns.md +16 -4
  82. package/package/corpus/skills/cratis-screenplay-automations-and-translations/references/effects-and-idempotency.md +4 -15
  83. package/package/corpus/skills/cratis-screenplay-automations-and-translations/references/todo-list-example.md +6 -2
  84. package/package/corpus/skills/cratis-screenplay-automations-and-translations/references/translation-patterns.md +1 -6
  85. package/package/corpus/skills/cratis-screenplay-captures-and-reactions/SKILL.md +45 -245
  86. package/package/corpus/skills/cratis-screenplay-captures-and-reactions/references/capture-map-and-example.md +42 -0
  87. package/package/corpus/skills/cratis-screenplay-captures-and-reactions/references/complete-examples.md +155 -0
  88. package/package/corpus/skills/cratis-screenplay-captures-and-reactions/references/specifying-triggers-and-clock.md +27 -0
  89. package/package/corpus/skills/cratis-screenplay-captures-and-reactions/references/trigger-reads-example.md +21 -0
  90. package/package/corpus/skills/cratis-screenplay-command-surface/SKILL.md +69 -227
  91. package/package/corpus/skills/cratis-screenplay-command-surface/references/context.md +10 -0
  92. package/package/corpus/skills/cratis-screenplay-command-surface/references/generated-values-and-responses.md +51 -0
  93. package/package/corpus/skills/cratis-screenplay-command-surface/references/inline-events.md +62 -0
  94. package/package/corpus/skills/cratis-screenplay-command-surface/references/policy-persona-seed.md +46 -0
  95. package/package/corpus/skills/cratis-screenplay-command-surface/references/validate-rules.md +36 -0
  96. package/package/corpus/skills/cratis-screenplay-command-surface/verification.json +11 -11
  97. package/package/corpus/skills/cratis-screenplay-discovery/SKILL.md +10 -3
  98. package/package/corpus/skills/cratis-screenplay-discovery/references/facilitation.md +1 -6
  99. package/package/corpus/skills/cratis-screenplay-discovery/references/human-workshop.md +13 -0
  100. package/package/corpus/skills/cratis-screenplay-discovery/references/personas-and-causes.md +8 -0
  101. package/package/corpus/skills/cratis-screenplay-discovery/references/plotting-and-handoff.md +11 -0
  102. package/package/corpus/skills/cratis-screenplay-discovery/references/storming-loop.md +7 -0
  103. package/package/corpus/skills/cratis-screenplay-event-modeling/SKILL.md +75 -198
  104. package/package/corpus/skills/cratis-screenplay-event-modeling/references/file-layout.md +89 -0
  105. package/package/corpus/skills/cratis-screenplay-event-modeling/references/naming-primitives.md +26 -0
  106. package/package/corpus/skills/cratis-screenplay-event-modeling/references/nine-steps.md +14 -1
  107. package/package/corpus/skills/cratis-screenplay-event-modeling/references/parsed-not-runnable.md +8 -0
  108. package/package/corpus/skills/cratis-screenplay-event-modeling/references/provenance.md +10 -0
  109. package/package/corpus/skills/cratis-screenplay-event-modeling/references/slice-type-rules.md +12 -0
  110. package/package/corpus/skills/cratis-screenplay-event-modeling/verification.json +12 -6
  111. package/package/corpus/skills/cratis-screenplay-legacy-extraction/SKILL.md +5 -6
  112. package/package/corpus/skills/cratis-screenplay-legacy-extraction/references/candidate-inventory.md +11 -0
  113. package/package/corpus/skills/cratis-screenplay-legacy-extraction/references/prologue-safety.md +8 -0
  114. package/package/corpus/skills/cratis-screenplay-legacy-extraction/references/side-car-migration.md +11 -0
  115. package/package/corpus/skills/cratis-screenplay-legacy-extraction/references/ui-observation.md +1 -1
  116. package/package/corpus/skills/cratis-screenplay-model-authoring/SKILL.md +33 -10
  117. package/package/corpus/skills/cratis-screenplay-model-authoring/references/language-reference.md +8 -0
  118. package/package/corpus/skills/cratis-screenplay-model-authoring/references/mcp-loop.md +13 -17
  119. package/package/corpus/skills/cratis-screenplay-model-authoring/references/mcp-tools.md +11 -0
  120. package/package/corpus/skills/cratis-screenplay-model-review/SKILL.md +9 -9
  121. package/package/corpus/skills/cratis-screenplay-model-review/references/business-questions.md +9 -0
  122. package/package/corpus/skills/cratis-screenplay-model-review/references/checklist.md +15 -0
  123. package/package/corpus/skills/cratis-screenplay-model-review/references/report-template.md +9 -0
  124. package/package/corpus/skills/cratis-screenplay-model-review/references/worked-example.md +9 -0
  125. package/package/corpus/skills/cratis-screenplay-modeling-lifecycle/SKILL.md +17 -8
  126. package/package/corpus/skills/cratis-screenplay-modeling-lifecycle/references/handoff-template.md +8 -0
  127. package/package/corpus/skills/cratis-screenplay-modeling-lifecycle/references/identity-and-edits.md +1 -6
  128. package/package/corpus/skills/cratis-screenplay-modeling-lifecycle/references/phases.md +19 -0
  129. package/package/corpus/skills/cratis-screenplay-modeling-lifecycle/references/safety.md +1 -1
  130. package/package/corpus/skills/cratis-screenplay-modeling-lifecycle/references/verdicts-and-modes.md +11 -1
  131. package/package/corpus/skills/cratis-screenplay-modeling-lifecycle/references/vocabulary-map.md +2 -2
  132. package/package/corpus/skills/cratis-screenplay-projections/SKILL.md +3 -4
  133. package/package/corpus/skills/cratis-screenplay-projections/references/pdl-grammar.md +8 -0
  134. package/package/corpus/skills/cratis-screenplay-read-surface/SKILL.md +2 -2
  135. package/package/corpus/skills/cratis-screenplay-render-and-gap-fill/SKILL.md +3 -3
  136. package/package/corpus/skills/cratis-screenplay-render-and-gap-fill/references/gap-fill-handoff.md +1 -1
  137. package/package/corpus/skills/cratis-screenplay-render-and-gap-fill/references/worked-example.md +8 -0
  138. package/package/corpus/skills/cratis-screenplay-scenario-coverage/SKILL.md +10 -10
  139. package/package/corpus/skills/cratis-screenplay-scenario-coverage/references/coverage-matrix.md +8 -0
  140. package/package/corpus/skills/cratis-screenplay-scenario-coverage/references/invoicing-dues-example.md +4 -0
  141. package/package/corpus/skills/cratis-screenplay-scenario-coverage/references/scenario-catalogue.md +17 -0
  142. package/package/corpus/skills/cratis-screenplay-scenario-coverage/references/scenario-examples.md +10 -0
  143. package/package/corpus/skills/cratis-screenplay-scenario-coverage/references/scenario-workshop.md +11 -0
  144. package/package/corpus/skills/cratis-screenplay-scenario-coverage/references/view-and-story-specs.md +12 -0
  145. package/package/corpus/skills/cratis-screenplay-slice-design/SKILL.md +2 -2
  146. package/package/corpus/skills/cratis-screenplay-slice-design/references/command-inventory.md +7 -0
  147. package/package/corpus/skills/cratis-screenplay-slice-design/references/field-lineage.md +8 -0
  148. package/package/corpus/skills/cratis-screenplay-slice-design/references/read-model-design.md +16 -0
  149. package/package/corpus/skills/cratis-screenplay-slice-design/references/slicing.md +10 -0
  150. package/package/corpus/skills/cratis-screenplay-specifications/SKILL.md +52 -360
  151. package/package/corpus/skills/cratis-screenplay-specifications/references/actions-beyond-commands.md +34 -0
  152. package/package/corpus/skills/cratis-screenplay-specifications/references/concept-rules.md +77 -0
  153. package/package/corpus/skills/cratis-screenplay-specifications/references/generated-fixtures.md +39 -0
  154. package/package/corpus/skills/cratis-screenplay-specifications/references/reactions-and-cascades.md +72 -0
  155. package/package/corpus/skills/cratis-screenplay-specifications/references/worked-example.md +110 -0
  156. package/package/corpus/skills/cratis-screenplay-specifications/verification.json +6 -6
  157. package/package/corpus/skills/cratis-screenplay-streams-and-consistency/SKILL.md +21 -1
  158. package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/boundaries.md +13 -0
  159. package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/chronicle-boundaries.md +1 -1
  160. package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/consistency-and-concurrency.md +16 -20
  161. package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/stream-patterns.md +16 -0
  162. package/package/corpus/skills/cratis-screenplay-toolchain/SKILL.md +13 -7
  163. package/package/corpus/skills/cratis-screenplay-toolchain/references/diagnostics.md +10 -0
  164. package/package/corpus/skills/cratis-screenplay-toolchain/references/executable-subset.md +10 -0
  165. package/package/corpus/skills/cratis-screenplay-toolchain/references/generated-responses-example.md +1 -1
  166. package/package/corpus/skills/cratis-screenplay-toolchain/references/traps.md +1 -1
  167. package/package/corpus/skills/cratis-screenplay-toolchain/references/verdicts.md +10 -0
  168. package/package/corpus/skills/cratis-screenplay-toolchain/references/versions.md +12 -0
  169. package/package/corpus/skills/cratis-screenplay-ui-composition/SKILL.md +11 -13
  170. package/package/corpus/skills/cratis-screenplay-ui-composition/references/flow-review.md +1 -1
  171. package/package/corpus/skills/cratis-social-feed-post/SKILL.md +10 -10
  172. package/package/corpus/skills/cratis-social-feed-post/references/engagement-evidence.md +12 -0
  173. package/package/corpus/skills/cratis-specifications-csharp/SKILL.md +13 -2
  174. package/package/corpus/skills/cratis-specifications-csharp/references/application-scenarios.md +10 -10
  175. package/package/corpus/skills/cratis-specifications-csharp/references/csharp-patterns.md +10 -0
  176. package/package/corpus/skills/cratis-specifications-csharp/references/integration-specs.md +9 -0
  177. package/package/corpus/skills/cratis-specifications-typescript/SKILL.md +1 -2
  178. package/package/corpus/skills/cratis-specifications-typescript/references/typescript-patterns.md +11 -1
  179. package/package/corpus/skills/cratis-stage-rendering-and-sandbox/SKILL.md +30 -21
  180. package/package/corpus/skills/cratis-stage-rendering-and-sandbox/references/admission.md +9 -0
  181. package/package/corpus/skills/cratis-stage-rendering-and-sandbox/references/render-example.md +5 -0
  182. package/package/corpus/skills/cratis-stage-rendering-and-sandbox/references/sandbox-and-specrunner.md +2 -4
  183. package/package/corpus/skills/cratis-studio-mcp-safety-guidance/SKILL.md +2 -2
  184. package/package/corpus/skills/cratis-writing-voice-and-cadence/SKILL.md +39 -39
  185. package/package/corpus/skills/cratis-writing-voice-and-cadence/references/ai-tells.md +10 -0
  186. package/package.json +1 -1
@@ -27,7 +27,7 @@ an unproven pass.
27
27
  is the team's act of acceptance and opts the repository in.
28
28
  A committed file with uncommitted working-tree edits is a model change in progress: its HEAD version is the contract until the change is committed.
29
29
  A behavior is a **contract** only when an accepted (committed) model under the root covers it.
30
- A direct user request to model a scope is consent for that scope. Evidence: `references/opt-in.md`.
30
+ A direct user request to model a scope is consent for that scope. Evidence: `references/opt-in.md`. Read `references/opt-in.md` when checking opt-in evidence or model-root edge cases.
31
31
  2. **Not opted in:** continue code-first; never force a model (framework, brownfield,
32
32
  infrastructure, client and adapter work stays code-first). Only the entry-point agent or session
33
33
  may **propose a model**: at most once per session, never for trivial, bug-fix, infrastructure,
@@ -50,7 +50,7 @@ an unproven pass.
50
50
  **Never:** use code as a shortcut around the model; change the model to match existing code;
51
51
  edit Stage-managed output; leave a modeled rule living only in code; weaken protection
52
52
  (authorization, `@pii`, rules) so a model compiles or renders. Principles and rejected
53
- anti-patterns behind this rule: `references/principles.md`.
53
+ anti-patterns behind this rule: `references/principles.md`. Read `references/principles.md` when evaluating a proposed shortcut or classifying a finding.
54
54
 
55
55
  ## Do not cut corners to save tokens or effort
56
56
  Token economy governs what you read and print, never what the model contains. If a rule needs
@@ -93,12 +93,12 @@ or **critic** (P4-P5: strict, report first, fix in a separate batch).
93
93
  Report all five at checkpoints and handoffs (between edit batches only those you ran), each a
94
94
  result or "not run: <reason>" naming tool and version. Never infer one from another or "fix" a
95
95
  correct model to silence a diagnostic (record a tool-version gap). Commands, report template,
96
- source identity: `references/verdicts-and-modes.md`.
96
+ source identity: `references/verdicts-and-modes.md`. Read `references/verdicts-and-modes.md` before recording verdicts or establishing the source identity for acceptance.
97
97
 
98
98
  ## Lifecycle
99
99
  P0 intake, P1 discover, P2 model, P3 specify, P4 self-check, P5 independent review, P6 accept
100
100
  (bound to a source identity), P7 execute, P8 render or fall back, P9 verify. Each phase has
101
- **Input / Carry-forward / Gate** in `references/phases.md`. Gates bind: a phase ends when its
101
+ **Input / Carry-forward / Gate** in `references/phases.md`. Read `references/phases.md` when entering, skipping, or transitioning between phases. Gates bind: a phase ends when its
102
102
  gate holds against the current `.play` and fresh tool output, never memory. A failing item is
103
103
  fixed, accepted by the user, or recorded as an open question with its assumption; never
104
104
  carried silently. Skip a phase only on its stated skip condition and record why. Review fix
@@ -125,7 +125,7 @@ done; never rerun a completed one, start at the first incomplete.
125
125
  1. **Start**: read STATE.md; check the source identity; load the phase skill before authoring
126
126
  or judging; read the slice, specs and skill fully before concluding something is missing.
127
127
  Discover tool capabilities once per session (`cratis-screenplay-toolchain`). One brief per
128
- turn, one closed outcome: `references/per-turn-protocol.md`.
128
+ turn, one closed outcome: `references/per-turn-protocol.md`. Read `references/per-turn-protocol.md` when running a long-lived or delegated session that receives one brief at a time.
129
129
  2. **Scope**: only the addresses and phase the brief names; other defects go in the packet.
130
130
  One authoring agent per model root; reviewers and explainers are read-only.
131
131
  3. **Modeling**: assume visibly and continue (attended: ask the one question that changes the
@@ -153,8 +153,15 @@ the report's first line says the requested change is NOT done. Ask only for what
153
153
  not name or that widens its scope.
154
154
  Procedure and edit-request template: `references/identity-and-edits.md`.
155
155
 
156
+ **Document mappings count too.** With `identities.json` present, creating, deleting, renaming or
157
+ moving a mapped `.play` file changes no catalog address but still breaks reopening: at Screenplay
158
+ v4.66.0 `McpState.Open` throws `IdentityMappingConflict` ("mapped .play files are missing,
159
+ renamed, or accompanied by unmapped files ... use an MCP proposal to move/add/delete documents
160
+ explicitly"). Do these through MCP document operations (the `screenplay` server's `propose-ast` tool), never a file move or rename
161
+ in the shell or editor.
162
+
156
163
  ## Safety, approvals, untrusted content
157
- Effect table: `references/safety.md`. State-changing or expensive effects (MCP `apply`,
164
+ Effect table: `references/safety.md`. State-changing or expensive effects (the `screenplay` server's `apply` tool,
158
165
  `prologue start`, Extractor runs, traffic, load, `render --force`, non-read-only
159
166
  `cratis chronicle`) need approval naming the target, unless the request already named that
160
167
  effect and target. Ask again only when target or consequence expands
@@ -189,6 +196,7 @@ labelled as such. The user decides whether it is enough
189
196
  next phase, report pointer. Templates: `references/handoff-template.md`,
190
197
  `references/phase-report-inventories.md`; `references/reasoning-notes.md`;
191
198
  `references/code-reading-and-tokens.md`.
199
+ Read `references/handoff-template.md` when writing state, packets, questions, or edit requests; `references/phase-report-inventories.md` when producing a phase report; `references/reasoning-notes.md` when recording durable rationale in descriptions; and `references/code-reading-and-tokens.md` before choosing code-reading scope or compressing output.
192
200
 
193
201
  ## Route to one phase skill
194
202
  | Need | Skill |
@@ -205,6 +213,7 @@ labelled as such. The user decides whether it is enough
205
213
 
206
214
  Construct mechanics stay in the `cratis-screenplay-*` construct skills; term clashes:
207
215
  `references/vocabulary-map.md`; worked example: `references/worked-example.md`; done checklist: `references/phases.md`.
216
+ Read `references/worked-example.md` when needing an example of reasoning descriptions, constraints, and decided rejections.
208
217
 
209
218
  ## Gate
210
219
  Done when: the mode's "done when" holds with fresh verdict lines; every open question has an
@@ -212,7 +221,7 @@ address and assumption; every decided rejection is a specification; no protectio
212
221
  the packet opens with `Outcome:`; STATE.md is current.
213
222
 
214
223
  ## Verified product sources
215
- Full pin table: `cratis-screenplay-toolchain/references/versions.md`. Used here: Screenplay
224
+ Full pin table: `cratis-screenplay-toolchain/references/versions.md`. Read `cratis-screenplay-toolchain/references/versions.md` when selecting or reverifying tool versions. Used here: Screenplay
216
225
  `v4.66.0` (`c89198b`): `Source/DotNET/Tool/Program.cs` (`--warnaserror`, folder mode),
217
226
  `Source/DotNET/Screenplay/Semantics/SemanticModelBinder.cs:209-216` (personas are report-only),
218
227
  `Documentation/screenplay/{constraints,specifications}.md`, `mcp/reference.md` (`modelRevision`);
@@ -236,4 +245,4 @@ screenplay <model-folder> --warnaserror --no-color
236
245
  | Checking hand-written code against its slice | `cratis-application-slice-conformance` |
237
246
 
238
247
  ## Lineage
239
- Event Modeling method, Nebulit and TrogonStack adoption, licences: `references/provenance.md`.
248
+ Event Modeling method, Nebulit and TrogonStack adoption, licences: `references/provenance.md`. Read `references/provenance.md` when checking attribution or adapting material into a sibling method skill.
@@ -1,5 +1,13 @@
1
1
  # Handoff templates
2
2
 
3
+ ## Contents
4
+
5
+ - 1. State file: `.ai-work/screenplay/<model-slug>/STATE.md`
6
+ - 2. Phase report and handoff packet (two artifacts)
7
+ - 3. Edit request (identity-affecting or MCP-only changes)
8
+ - 4. Cold-readable questions
9
+ - 5. Who records the model used
10
+
3
11
  ## 1. State file: `.ai-work/screenplay/<model-slug>/STATE.md`
4
12
 
5
13
  One file per model, untracked (`rules/local-work-artifacts.md`). **Overwrite** every section on
@@ -36,12 +36,7 @@ read model, projection, ...), properties of commands, events, read models, compo
36
36
  triggers, queries, query arguments and specifications; also moving declarations between files and
37
37
  contract evolution of a persisted event (new generation, property added, removed or retyped).
38
38
 
39
- **Document mappings count too.** With `identities.json` present, creating, deleting, renaming or
40
- moving a mapped `.play` file changes no catalog address but still breaks reopening: at Screenplay
41
- v4.66.0 `McpState.Open` throws `IdentityMappingConflict` ("mapped .play files are missing,
42
- renamed, or accompanied by unmapped files ... use an MCP proposal to move/add/delete documents
43
- explicitly"). Do these through MCP document operations (`propose-ast`), never a file move or rename
44
- in the shell or editor.
39
+ See "Document mappings count too" in SKILL.md.
45
40
 
46
41
  **Bounded text edits** are for edits that preserve every address: descriptions, the bodies of
47
42
  rules and expressions, mappings between members that already exist, and other changes that
@@ -1,5 +1,24 @@
1
1
  # Phases: Input, Carry-forward, Gate
2
2
 
3
+ ## Contents
4
+
5
+ - Phase transition protocol
6
+ - P0 Intake
7
+ - P1 Discover (`cratis-screenplay-discovery`; modeling stance)
8
+ - P2 Model (`cratis-screenplay-slice-design`, `-streams-and-consistency`, `-automations-and-translations`)
9
+ - P3 Specify (`cratis-screenplay-scenario-coverage`; modeling stance)
10
+ - P4 Self-check (`cratis-screenplay-model-review`, self-check; critic stance)
11
+ - P5 Independent review (`cratis-screenplay-model-review`)
12
+ - P6 Accept (the user)
13
+ - P7 Execute (executable mode; modeling stance)
14
+ - P8 Render or fall back (`cratis-screenplay-render-and-gap-fill`)
15
+ - P9 Verify
16
+ - Entry points for changes to an existing model
17
+ - Resume mid-workflow
18
+ - Final output of a modeling engagement
19
+ - Quality checklist (closing)
20
+ - Legacy entry (replaces P1-P2)
21
+
3
22
  Every phase uses the same template, adapted from the per-step "Input / Output to carry forward /
4
23
  Gate" structure of the TrogonStack orchestrating skill (see `provenance.md`). Owners are roles:
5
24
  the **main session** orchestrates and owns the MCP connection while it is the identity owner;
@@ -3,7 +3,7 @@
3
3
  | Action | Rule | Enforced by |
4
4
  |---|---|---|
5
5
  | `.play` text edits in the model root that leave catalog addresses and document mappings unchanged (or any text edit when no `identities.json` exists) | allowed within the brief | policy |
6
- | MCP `apply`, recovery; catalog-changing and identity-affecting edits | the identity owner applies; approval naming the target | policy (the harness may also gate the tool) |
6
+ | the `screenplay` server's `apply` tool, recovery; catalog-changing and identity-affecting edits | the identity owner applies; approval naming the target | policy (the harness may also gate the tool) |
7
7
  | `cratis screenplay generate` | output only under `.ai-work/screenplay/<model-slug>/legacy/` | policy |
8
8
  | `cratis render` | probe renders under `.ai-work/screenplay/<model-slug>/render-probe/` unless the user names a destination; `--force` needs approval naming it; pass `--name`; never stage `.cratis-render/` | policy |
9
9
  | Prologue capture start, Extractor containers, traffic re-routing, load, cleanup DDL | approval naming the target; production needs the data owner's sign-off; plan cleanup first | policy |
@@ -1,5 +1,15 @@
1
1
  # Verdicts and modes
2
2
 
3
+ ## Contents
4
+
5
+ - Five independent results
6
+ - Commands (enough to check without loading the toolchain skill)
7
+ - Report template
8
+ - Source identity
9
+ - Render revision drift
10
+ - Tool-version gaps
11
+ - Modes
12
+
3
13
  Exact commands, exit codes, admitted subsets and every version-specific fact live in
4
14
  `cratis-screenplay-toolchain` (`references/versions.md` and its subset references). This file
5
15
  defines what each result means and how to report it. Do not copy version facts here.
@@ -163,7 +173,7 @@ file changing the digest, a filename containing a tab or a newline, and an expli
163
173
  ### Revisions are three different things
164
174
  - **Source identity** (above): bytes of the inputs. Used for acceptance.
165
175
  - **Workspace revision** (MCP `expectedRevision` and catalog revision): guards edits in one workspace session.
166
- - **`modelRevision`** (MCP `read-workspace view=executable-model`): the canonical semantic revision
176
+ - **`modelRevision`** (the `screenplay` server's `read-workspace` tool with `view=executable-model`): the canonical semantic revision
167
177
  of the bound executable model. It exists only when the model binds. Descriptions and source
168
178
  locations are not part of it; the application identity is (without `identities.json` it is
169
179
  bootstrapped from the root folder name, so renaming the root changes it). Moving a file changes
@@ -18,10 +18,10 @@ speaks in them; never model board mechanics (lanes, node ids, positions).
18
18
  | Chapter / workflow | `feature` | feature folder | vertical slices |
19
19
  | Slice | `slice` (one behaviour, not one artifact of each kind) | vertical slice folder | vertical slices |
20
20
  | Scenario (Given/When/Then) | `specification` | generated spec class `when_<spec_name>` (Debug) or hand-written C# specs | `cratis-screenplay-specifications`; C# spec skills |
21
- | Storyline (ordered beats) | a **family** of specifications sharing example data, each one transition (no storyline syntax today) | several spec classes | specifications |
21
+ | Storyline (ordered beats) | a **family** of specifications sharing example data, each one transition (no storyline syntax at the verified Screenplay v4.66.0) | several spec classes | specifications |
22
22
  | Field validation | concept `validate` (every use) / command `validate`, `require` | `ConceptValidator<T>` / `CommandValidator<T>` | command validation |
23
23
  | Role permission ("Cannot") | `policy` + `authorize` + `then denied` spec; ownership via `claim ... matches subject` | `[Authorize(Policy)]`, generated policies | authorization |
24
- | Precondition on stream state | `reads` + `require` as stated intent, not enforced today (target: Arc `[ProtectedDecision]` + `DecisionRead<T>`, or Chronicle DCB; `[ProtectedDecision]` is not available in Stage-rendered apps) | decision over a guarded read | command validation |
24
+ | Precondition on stream state | `reads` + `require` as stated intent, not enforced at the verified Screenplay v4.66.0 (target: Arc `[ProtectedDecision]` + `DecisionRead<T>`, or Chronicle DCB; `[ProtectedDecision]` is not available in Stage-rendered apps) | decision over a guarded read | command validation |
25
25
  | Generated id (`derived:uuid4()`) | `generated` (authorable, not executable) | id supplied before `Handle()` | commands |
26
26
  | External system / outbound call | `Translate` slice (inbound); `system`/`operation` (authorable, not executable) or Automation (outbound) | `ICommandOperation` / reactor | operations, reactors |
27
27
  | HTML mockup | `screen` Level 1 + board (`visualize-model`) | default Scene composition | ui composition |
@@ -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
 
@@ -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