@cratis/pi 7.51.2 → 7.51.4

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 (168) hide show
  1. package/package/corpus/harnesses/copilot/instructions/authoring-skills.instructions.md +7 -1
  2. package/package/corpus/rules/authoring-skills.md +7 -1
  3. package/package/corpus/skills/cratis-application-slice-specifications/SKILL.md +4 -55
  4. package/package/corpus/skills/cratis-application-slice-specifications/references/command-result-assertions.md +36 -0
  5. package/package/corpus/skills/cratis-application-slice-specifications/references/reading-play-specifications.md +30 -0
  6. package/package/corpus/skills/cratis-arc-authentication-authorization-and-identity/SKILL.md +4 -69
  7. package/package/corpus/skills/cratis-arc-authentication-authorization-and-identity/references/authentication.md +8 -0
  8. package/package/corpus/skills/cratis-arc-authentication-authorization-and-identity/references/authorization.md +9 -0
  9. package/package/corpus/skills/cratis-arc-authentication-authorization-and-identity/references/frontend.md +19 -0
  10. package/package/corpus/skills/cratis-arc-authentication-authorization-and-identity/references/identity-endpoints.md +40 -0
  11. package/package/corpus/skills/cratis-arc-authentication-authorization-and-identity/references/local-development.md +7 -0
  12. package/package/corpus/skills/cratis-arc-authentication-authorization-and-identity/references/product-sources.md +11 -0
  13. package/package/corpus/skills/cratis-arc-command/SKILL.md +8 -99
  14. package/package/corpus/skills/cratis-arc-command/references/causation-details.md +26 -0
  15. package/package/corpus/skills/cratis-arc-command/references/client-contract.md +16 -0
  16. package/package/corpus/skills/cratis-arc-command/references/event-source-id-details.md +13 -0
  17. package/package/corpus/skills/cratis-arc-command/references/generation-boundaries.md +8 -0
  18. package/package/corpus/skills/cratis-arc-command/references/product-sources.md +16 -0
  19. package/package/corpus/skills/cratis-arc-command/references/provide-example.md +19 -0
  20. package/package/corpus/skills/cratis-arc-command/references/proxy-generation.md +8 -0
  21. package/package/corpus/skills/cratis-arc-command/references/return-shape-examples.md +24 -0
  22. package/package/corpus/skills/cratis-arc-command-kotlin/SKILL.md +3 -61
  23. package/package/corpus/skills/cratis-arc-command-kotlin/references/artifacts.md +16 -0
  24. package/package/corpus/skills/cratis-arc-command-kotlin/references/authorization-override-example.md +17 -0
  25. package/package/corpus/skills/cratis-arc-command-kotlin/references/project-setup.md +40 -0
  26. package/package/corpus/skills/cratis-arc-command-typescript/SKILL.md +4 -105
  27. package/package/corpus/skills/cratis-arc-command-typescript/references/parameter-binding.md +26 -0
  28. package/package/corpus/skills/cratis-arc-command-typescript/references/project-setup.md +89 -0
  29. package/package/corpus/skills/cratis-arc-query-typescript/SKILL.md +3 -74
  30. package/package/corpus/skills/cratis-arc-query-typescript/references/product-sources.md +11 -0
  31. package/package/corpus/skills/cratis-arc-query-typescript/references/scenario-example.md +23 -0
  32. package/package/corpus/skills/cratis-arc-query-typescript/references/storage-examples.md +52 -0
  33. package/package/corpus/skills/cratis-arc-react-page/SKILL.md +3 -63
  34. package/package/corpus/skills/cratis-arc-react-page/references/data-page.md +28 -0
  35. package/package/corpus/skills/cratis-arc-react-page/references/dialogs.md +47 -0
  36. package/package/corpus/skills/cratis-chronicle-client-dotnet/SKILL.md +3 -80
  37. package/package/corpus/skills/cratis-chronicle-client-dotnet/references/connection-options.md +61 -0
  38. package/package/corpus/skills/cratis-chronicle-client-dotnet/references/lifecycle.md +30 -0
  39. package/package/corpus/skills/cratis-chronicle-client-elixir/SKILL.md +8 -101
  40. package/package/corpus/skills/cratis-chronicle-client-elixir/references/client-options.md +43 -0
  41. package/package/corpus/skills/cratis-chronicle-client-elixir/references/idioms-and-inspection.md +35 -0
  42. package/package/corpus/skills/cratis-chronicle-client-elixir/references/product-sources.md +10 -0
  43. package/package/corpus/skills/cratis-chronicle-client-elixir/references/reactor-example.md +33 -0
  44. package/package/corpus/skills/cratis-chronicle-client-kotlin/SKILL.md +7 -88
  45. package/package/corpus/skills/cratis-chronicle-client-kotlin/references/annotations-and-handlers.md +32 -0
  46. package/package/corpus/skills/cratis-chronicle-client-kotlin/references/append-concurrency.md +9 -0
  47. package/package/corpus/skills/cratis-chronicle-client-kotlin/references/connection-string.md +27 -0
  48. package/package/corpus/skills/cratis-chronicle-client-kotlin/references/event-type-annotations.md +9 -0
  49. package/package/corpus/skills/cratis-chronicle-client-kotlin/references/product-sources.md +13 -0
  50. package/package/corpus/skills/cratis-chronicle-client-kotlin/references/read-models-and-projections.md +29 -0
  51. package/package/corpus/skills/cratis-chronicle-client-typescript/SKILL.md +3 -103
  52. package/package/corpus/skills/cratis-chronicle-client-typescript/references/connection-options.md +52 -0
  53. package/package/corpus/skills/cratis-chronicle-client-typescript/references/lifecycle.md +31 -0
  54. package/package/corpus/skills/cratis-chronicle-client-typescript/references/project-setup.md +36 -0
  55. package/package/corpus/skills/cratis-chronicle-projection/SKILL.md +1 -21
  56. package/package/corpus/skills/cratis-chronicle-projection/references/definition-changes.md +27 -0
  57. package/package/corpus/skills/cratis-chronicle-reactor/SKILL.md +5 -110
  58. package/package/corpus/skills/cratis-chronicle-reactor/references/cross-service-events.md +13 -0
  59. package/package/corpus/skills/cratis-chronicle-reactor/references/filtering.md +34 -0
  60. package/package/corpus/skills/cratis-chronicle-reactor/references/read-model-injection.md +29 -0
  61. package/package/corpus/skills/cratis-chronicle-reactor/references/return-event-metadata.md +51 -0
  62. package/package/corpus/skills/cratis-chronicle-reducer/SKILL.md +7 -92
  63. package/package/corpus/skills/cratis-chronicle-reducer/references/filtering.md +36 -0
  64. package/package/corpus/skills/cratis-chronicle-reducer/references/instance-reducer-example.md +20 -0
  65. package/package/corpus/skills/cratis-chronicle-reducer/references/product-sources.md +8 -0
  66. package/package/corpus/skills/cratis-chronicle-reducer/references/replay-hooks-and-definition-changes.md +35 -0
  67. package/package/corpus/skills/cratis-chronicle-reducer/references/specification-example.md +15 -0
  68. package/package/corpus/skills/cratis-components-styling/SKILL.md +1 -15
  69. package/package/corpus/skills/cratis-components-styling/references/renderer-adapters.md +21 -0
  70. package/package/corpus/skills/cratis-governed-release-methodology/SKILL.md +1 -24
  71. package/package/corpus/skills/cratis-governed-release-methodology/references/lifecycle-phases.md +30 -0
  72. package/package/corpus/skills/cratis-screenplay-automations-and-translations/SKILL.md +2 -15
  73. package/package/corpus/skills/cratis-screenplay-automations-and-translations/references/neighbouring-skills.md +12 -0
  74. package/package/corpus/skills/cratis-screenplay-automations-and-translations/references/product-sources.md +11 -0
  75. package/package/corpus/skills/cratis-screenplay-captures-and-reactions/SKILL.md +3 -93
  76. package/package/corpus/skills/cratis-screenplay-captures-and-reactions/references/capture-map-and-example.md +37 -0
  77. package/package/corpus/skills/cratis-screenplay-captures-and-reactions/references/trigger-declaration.md +48 -0
  78. package/package/corpus/skills/cratis-screenplay-captures-and-reactions/references/trigger-reads-example.md +16 -0
  79. package/package/corpus/skills/cratis-screenplay-command-surface/SKILL.md +5 -97
  80. package/package/corpus/skills/cratis-screenplay-command-surface/references/compliance.md +9 -0
  81. package/package/corpus/skills/cratis-screenplay-command-surface/references/constraints-produces-concurrency.md +89 -0
  82. package/package/corpus/skills/cratis-screenplay-command-surface/references/routes-and-external-operations.md +21 -0
  83. package/package/corpus/skills/cratis-screenplay-discovery/SKILL.md +5 -38
  84. package/package/corpus/skills/cratis-screenplay-discovery/references/interview-questions.md +14 -0
  85. package/package/corpus/skills/cratis-screenplay-discovery/references/neighbouring-skills.md +14 -0
  86. package/package/corpus/skills/cratis-screenplay-discovery/references/plotting-and-handoff.md +9 -0
  87. package/package/corpus/skills/cratis-screenplay-discovery/references/product-sources.md +16 -0
  88. package/package/corpus/skills/cratis-screenplay-event-modeling/SKILL.md +6 -74
  89. package/package/corpus/skills/cratis-screenplay-event-modeling/references/facilitation-stance.md +12 -0
  90. package/package/corpus/skills/cratis-screenplay-event-modeling/references/file-layout.md +19 -0
  91. package/package/corpus/skills/cratis-screenplay-event-modeling/references/modeling-reasoning.md +13 -0
  92. package/package/corpus/skills/cratis-screenplay-event-modeling/references/neighbouring-skills.md +16 -0
  93. package/package/corpus/skills/cratis-screenplay-event-modeling/references/parsed-not-runnable.md +33 -0
  94. package/package/corpus/skills/cratis-screenplay-event-modeling/references/provenance.md +6 -0
  95. package/package/corpus/skills/cratis-screenplay-legacy-extraction/SKILL.md +2 -17
  96. package/package/corpus/skills/cratis-screenplay-legacy-extraction/references/interview-findings.md +18 -0
  97. package/package/corpus/skills/cratis-screenplay-legacy-extraction/references/neighbouring-skills.md +12 -0
  98. package/package/corpus/skills/cratis-screenplay-model-authoring/SKILL.md +5 -89
  99. package/package/corpus/skills/cratis-screenplay-model-authoring/references/language-reference.md +6 -0
  100. package/package/corpus/skills/cratis-screenplay-model-authoring/references/layout.md +30 -0
  101. package/package/corpus/skills/cratis-screenplay-model-authoring/references/repairs.md +42 -0
  102. package/package/corpus/skills/cratis-screenplay-model-authoring/references/state-and-recovery.md +30 -0
  103. package/package/corpus/skills/cratis-screenplay-model-review/SKILL.md +10 -42
  104. package/package/corpus/skills/cratis-screenplay-model-review/references/baseline-comparison.md +7 -0
  105. package/package/corpus/skills/cratis-screenplay-model-review/references/business-questions.md +11 -0
  106. package/package/corpus/skills/cratis-screenplay-model-review/references/interview-batch.md +14 -0
  107. package/package/corpus/skills/cratis-screenplay-model-review/references/model-inventory-report.md +8 -0
  108. package/package/corpus/skills/cratis-screenplay-model-review/references/neighbouring-skills.md +12 -0
  109. package/package/corpus/skills/cratis-screenplay-model-review/references/report-template.md +21 -0
  110. package/package/corpus/skills/cratis-screenplay-modeling-lifecycle/SKILL.md +15 -68
  111. package/package/corpus/skills/cratis-screenplay-modeling-lifecycle/references/completeness-self-check.md +12 -0
  112. package/package/corpus/skills/cratis-screenplay-modeling-lifecycle/references/handoff-template.md +15 -0
  113. package/package/corpus/skills/cratis-screenplay-modeling-lifecycle/references/identity-and-edits.md +9 -0
  114. package/package/corpus/skills/cratis-screenplay-modeling-lifecycle/references/independent-review.md +10 -0
  115. package/package/corpus/skills/cratis-screenplay-modeling-lifecycle/references/neighbouring-skills.md +10 -0
  116. package/package/corpus/skills/cratis-screenplay-modeling-lifecycle/references/per-turn-protocol.md +5 -0
  117. package/package/corpus/skills/cratis-screenplay-modeling-lifecycle/references/product-sources.md +9 -0
  118. package/package/corpus/skills/cratis-screenplay-modeling-lifecycle/references/safety.md +12 -0
  119. package/package/corpus/skills/cratis-screenplay-modeling-lifecycle/references/stop-or-assume.md +25 -0
  120. package/package/corpus/skills/cratis-screenplay-modeling-lifecycle/references/verdicts-and-modes.md +8 -0
  121. package/package/corpus/skills/cratis-screenplay-projections/SKILL.md +3 -67
  122. package/package/corpus/skills/cratis-screenplay-projections/references/joins.md +41 -0
  123. package/package/corpus/skills/cratis-screenplay-projections/references/variants.md +41 -0
  124. package/package/corpus/skills/cratis-screenplay-render-and-gap-fill/SKILL.md +3 -31
  125. package/package/corpus/skills/cratis-screenplay-render-and-gap-fill/references/delivery-protocol.md +9 -0
  126. package/package/corpus/skills/cratis-screenplay-render-and-gap-fill/references/neighbouring-skills.md +11 -0
  127. package/package/corpus/skills/cratis-screenplay-render-and-gap-fill/references/product-sources.md +23 -0
  128. package/package/corpus/skills/cratis-screenplay-scenario-coverage/SKILL.md +11 -75
  129. package/package/corpus/skills/cratis-screenplay-scenario-coverage/references/interview-batch.md +16 -0
  130. package/package/corpus/skills/cratis-screenplay-scenario-coverage/references/neighbouring-skills.md +10 -0
  131. package/package/corpus/skills/cratis-screenplay-scenario-coverage/references/public-event-coverage.md +12 -0
  132. package/package/corpus/skills/cratis-screenplay-scenario-coverage/references/quality-checklist.md +17 -0
  133. package/package/corpus/skills/cratis-screenplay-scenario-coverage/references/review-questions.md +9 -0
  134. package/package/corpus/skills/cratis-screenplay-scenario-coverage/references/scenario-catalogue.md +28 -0
  135. package/package/corpus/skills/cratis-screenplay-scenario-coverage/references/version-skew.md +14 -0
  136. package/package/corpus/skills/cratis-screenplay-slice-design/SKILL.md +18 -94
  137. package/package/corpus/skills/cratis-screenplay-slice-design/references/command-inventory.md +25 -0
  138. package/package/corpus/skills/cratis-screenplay-slice-design/references/field-lineage.md +9 -0
  139. package/package/corpus/skills/cratis-screenplay-slice-design/references/identity-edits.md +14 -0
  140. package/package/corpus/skills/cratis-screenplay-slice-design/references/model-reasoning.md +9 -0
  141. package/package/corpus/skills/cratis-screenplay-slice-design/references/neighbouring-skills.md +10 -0
  142. package/package/corpus/skills/cratis-screenplay-slice-design/references/product-sources.md +9 -0
  143. package/package/corpus/skills/cratis-screenplay-slice-design/references/public-boundaries-and-keys.md +16 -0
  144. package/package/corpus/skills/cratis-screenplay-slice-design/references/read-model-design.md +36 -0
  145. package/package/corpus/skills/cratis-screenplay-slice-design/references/slicing.md +17 -0
  146. package/package/corpus/skills/cratis-screenplay-specifications/SKILL.md +5 -63
  147. package/package/corpus/skills/cratis-screenplay-specifications/references/examples-and-routes.md +6 -0
  148. package/package/corpus/skills/cratis-screenplay-specifications/references/outcome-comparison.md +33 -0
  149. package/package/corpus/skills/cratis-screenplay-specifications/references/vocabulary.md +40 -0
  150. package/package/corpus/skills/cratis-screenplay-streams-and-consistency/SKILL.md +11 -77
  151. package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/consistency-and-concurrency.md +21 -0
  152. package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/evolution.md +18 -0
  153. package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/interview-batch.md +20 -0
  154. package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/neighbouring-skills.md +12 -0
  155. package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/product-sources.md +12 -0
  156. package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/review-questions.md +13 -0
  157. package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/stream-id-rules.md +15 -0
  158. package/package/corpus/skills/cratis-screenplay-toolchain/SKILL.md +1 -8
  159. package/package/corpus/skills/cratis-screenplay-toolchain/references/neighbouring-skills.md +12 -0
  160. package/package/corpus/skills/cratis-screenplay-ui-composition/SKILL.md +6 -99
  161. package/package/corpus/skills/cratis-screenplay-ui-composition/references/file-references.md +38 -0
  162. package/package/corpus/skills/cratis-screenplay-ui-composition/references/layout-arrangement.md +31 -0
  163. package/package/corpus/skills/cratis-screenplay-ui-composition/references/localized-strings.md +15 -0
  164. package/package/corpus/skills/cratis-screenplay-ui-composition/references/screen-composition-contract.md +6 -0
  165. package/package/corpus/skills/cratis-screenplay-ui-composition/references/ui-profile-and-theme.md +34 -0
  166. package/package/corpus/skills/cratis-stage-rendering-and-sandbox/SKILL.md +1 -10
  167. package/package/corpus/skills/cratis-stage-rendering-and-sandbox/references/neighbouring-skills.md +14 -0
  168. package/package.json +1 -1
@@ -50,18 +50,7 @@ Model notes use Screenplay `Documentation/screenplay/model-notes.md`;
50
50
  tool sources: model-authoring `references/model-notes.md`.
51
51
  Requires Screenplay 4.144.0 or later (`screenplay --version`) for model notes.
52
52
 
53
- | Fact used here | Source |
54
- | --- | --- |
55
- | Persona syntax, report-only, policies must be declared | Screenplay `Documentation/screenplay/personas.md` |
56
- | Description order; authored/import board order and order-preserving MCP layouts | Screenplay `Documentation/screenplay/grammar.md`, `folders.md`, `imports.md` |
57
- | Single-line and fenced `description` (`FencedText`) | `Documentation/screenplay/slices.md#descriptions`, `grammar.md` |
58
- | `<Type>[]`, shapes must be declared; `pii` and `reason` on concepts | `Documentation/screenplay/events.md`, `concepts.md` |
59
- | `then denied`, `given caller`, `then error` | `Documentation/screenplay/specifications.md` |
60
- | PII on an event-source id is rejected by Chronicle (CHR0034); nullable event properties warn (CHR0012) | Chronicle `Source/Clients/DotNET.CodeAnalysis/DiagnosticIds.cs` |
61
- | Bare `pii` and `secret` on a concept bind as ESM v13; legacy `@`-prefixed markers are deprecated (PLAY0565); enum/identity compliance fails binding (PLAY0268); current markers are in `cratis-screenplay-command-surface` | `Source/DotNET/Screenplay/Semantics/SemanticModelBinder.Concepts.cs` |
62
-
63
- Every complete `screenplay` fence in this skill compiles with the standalone compiler
64
- (`--warnaserror`).
53
+ Read [references/product-sources.md](references/product-sources.md) when checking a discovery fact against the Screenplay, Chronicle or compiler sources.
65
54
 
66
55
  ## Interview phase
67
56
 
@@ -75,17 +64,7 @@ feed plotting and the handoff. Full menu with follow-up triggers: `references/in
75
64
 
76
65
  Critical questions:
77
66
 
78
- 1. **How complete is the input?** (written spec / documented rules / rough list / word of
79
- mouth / running system). Thin input means a heavier step 4. Follow up: for a rough list or
80
- word of mouth, probe for missing scenarios and ask the rules to be stated.
81
- 2. **Who has the final word on business meaning?** Follow up: only engineers present means
82
- every meaning is an assumption to confirm; recommend inviting the domain expert.
83
- 3. **Where is it complex, disputed or fragile today?** (the hotspots). Follow up, per hotspot:
84
- what goes wrong there, what happened the last time.
85
- 4. **Which rules must always or never hold?** Follow up, per rule: what does the person see
86
- when refused, and must the business remember the breach (a fact only if so)?
87
- 5. **Who takes part, and what may each role not do?** Follow up: for each Cannot, is it an
88
- authority limit or a rule for everyone?
67
+ 1. **How complete is the input?** Then: who has the final word on business meaning; where it is complex, disputed or fragile; which rules must always or never hold; who takes part and what each role may not do. Read [references/interview-questions.md](references/interview-questions.md) ("Critical questions") for each question's follow-ups.
89
68
 
90
69
  With no input at all, open with: "Describe the starting situation, then the steps people take
91
70
  to reach the intended result." With a brief, restate domain and goal in two sentences and confirm.
@@ -155,11 +134,8 @@ Never put secrets or personal data in note text; `.screenplay/notes.json` is com
155
134
  - A `persona` names declared policies only (unknown policy = error); `description` appears
156
135
  at most once, anywhere in its body.
157
136
  - Declare each event once in the whole application; other slices refer to it by name.
158
- - Boards keep authored declaration and import order: imports expand depth-first, glob
159
- matches alphabetically. Unimported folder files remain visible after ranked siblings.
160
- MCP `expand-layout` preserves this order with import barrels; an import-less
161
- `PlayFileWriter.Expand` layout falls back to path order. Order is presentation, not
162
- execution or identity. Keep causes and branches in the feature `documentation` and STATE.md.
137
+ - Boards keep authored declaration and import order (order is presentation, not execution or identity); `references/plotting-and-handoff.md` ("Board order") has the import-expansion, glob and MCP `expand-layout` rules. Keep causes and branches in the feature `documentation` and STATE.md.
138
+
163
139
  - A misspelt keyword inside a slice is only warning PLAY0029 and the block disappears: always
164
140
  validate with warnings as errors.
165
141
 
@@ -224,16 +200,7 @@ and the report says which verdicts were not run (V2 to V5 are not run in discove
224
200
 
225
201
  ## Route near misses
226
202
 
227
- - Commands, inputs, read models, screens, lineage: `cratis-screenplay-slice-design`.
228
- - Streams, constraints, protected decisions: `cratis-screenplay-streams-and-consistency`.
229
- - Clocks, reactions, outside data: `cratis-screenplay-automations-and-translations`.
230
- - Specs for Cannot, competition, duplicates: `cratis-screenplay-scenario-coverage`.
231
- - Grammar for event, persona and concept: `cratis-screenplay-command-surface`; the nine-step
232
- facilitation questions: `cratis-screenplay-event-modeling`.
233
- - Audit of a finished model: `cratis-screenplay-model-review`.
234
- - Existing code or database as the source: `cratis-screenplay-legacy-extraction`.
235
- - Diagram of the result: `cratis-event-model-diagram`.
236
- - Syntax, diagnostics and tools: `cratis-screenplay-toolchain`.
203
+ Read [references/neighbouring-skills.md](references/neighbouring-skills.md) when the work is commands, streams, reactions, specifications, grammar, review, extraction, diagrams or tooling rather than discovery.
237
204
 
238
205
  ## References (load on demand)
239
206
 
@@ -64,3 +64,17 @@ reviewer should challenge.
64
64
  - An event nobody can say the cause of.
65
65
  - A workflow with no terminal fact or no failure path.
66
66
  - Answers that describe screens or tables instead of what happened.
67
+
68
+ ## Critical questions
69
+
70
+ 1. **How complete is the input?** (written spec / documented rules / rough list / word of
71
+ mouth / running system). Thin input means a heavier step 4. Follow up: for a rough list or
72
+ word of mouth, probe for missing scenarios and ask the rules to be stated.
73
+ 2. **Who has the final word on business meaning?** Follow up: only engineers present means
74
+ every meaning is an assumption to confirm; recommend inviting the domain expert.
75
+ 3. **Where is it complex, disputed or fragile today?** (the hotspots). Follow up, per hotspot:
76
+ what goes wrong there, what happened the last time.
77
+ 4. **Which rules must always or never hold?** Follow up, per rule: what does the person see
78
+ when refused, and must the business remember the breach (a fact only if so)?
79
+ 5. **Who takes part, and what may each role not do?** Follow up: for each Cannot, is it an
80
+ authority limit or a rule for everyone?
@@ -0,0 +1,14 @@
1
+ # Neighbouring skills
2
+
3
+ Which skill owns each task next to discovery.
4
+
5
+ - Commands, inputs, read models, screens, lineage: `cratis-screenplay-slice-design`.
6
+ - Streams, constraints, protected decisions: `cratis-screenplay-streams-and-consistency`.
7
+ - Clocks, reactions, outside data: `cratis-screenplay-automations-and-translations`.
8
+ - Specs for Cannot, competition, duplicates: `cratis-screenplay-scenario-coverage`.
9
+ - Grammar for event, persona and concept: `cratis-screenplay-command-surface`; the nine-step
10
+ facilitation questions: `cratis-screenplay-event-modeling`.
11
+ - Audit of a finished model: `cratis-screenplay-model-review`.
12
+ - Existing code or database as the source: `cratis-screenplay-legacy-extraction`.
13
+ - Diagram of the result: `cratis-event-model-diagram`.
14
+ - Syntax, diagnostics and tools: `cratis-screenplay-toolchain`.
@@ -12,6 +12,7 @@
12
12
  - Storyline: one view walked through its states
13
13
  - 5. Plot checks
14
14
  - Handoff packet to `cratis-screenplay-slice-design`
15
+ - Board order
15
16
 
16
17
  Plotting arranges the discovered events as a narrative: what happens first, what depends on
17
18
  what, what can happen instead, where it ends. In Screenplay the plot is written into the
@@ -199,3 +200,11 @@ Seeds for later skills:
199
200
  | Competition candidate | a competing-claim spec; consistency design |
200
201
  | Duplicate candidate | a duplicate or retry spec |
201
202
  | Ending | removal from affected views |
203
+
204
+ ## Board order
205
+
206
+ - Boards keep authored declaration and import order: imports expand depth-first, glob
207
+ matches alphabetically. Unimported folder files remain visible after ranked siblings.
208
+ MCP `expand-layout` preserves this order with import barrels; an import-less
209
+ `PlayFileWriter.Expand` layout falls back to path order. Order is presentation, not
210
+ execution or identity. Keep causes and branches in the feature `documentation` and STATE.md.
@@ -0,0 +1,16 @@
1
+ # Product sources
2
+
3
+ Sources for the facts discovery relies on.
4
+
5
+ | Fact used here | Source |
6
+ | --- | --- |
7
+ | Persona syntax, report-only, policies must be declared | Screenplay `Documentation/screenplay/personas.md` |
8
+ | Description order; authored/import board order and order-preserving MCP layouts | Screenplay `Documentation/screenplay/grammar.md`, `folders.md`, `imports.md` |
9
+ | Single-line and fenced `description` (`FencedText`) | `Documentation/screenplay/slices.md#descriptions`, `grammar.md` |
10
+ | `<Type>[]`, shapes must be declared; `pii` and `reason` on concepts | `Documentation/screenplay/events.md`, `concepts.md` |
11
+ | `then denied`, `given caller`, `then error` | `Documentation/screenplay/specifications.md` |
12
+ | PII on an event-source id is rejected by Chronicle (CHR0034); nullable event properties warn (CHR0012) | Chronicle `Source/Clients/DotNET.CodeAnalysis/DiagnosticIds.cs` |
13
+ | Bare `pii` and `secret` on a concept bind as ESM v13; legacy `@`-prefixed markers are deprecated (PLAY0565); enum/identity compliance fails binding (PLAY0268); current markers are in `cratis-screenplay-command-surface` | `Source/DotNET/Screenplay/Semantics/SemanticModelBinder.Concepts.cs` |
14
+
15
+ Every complete `screenplay` fence in this skill compiles with the standalone compiler
16
+ (`--warnaserror`).
@@ -17,14 +17,7 @@ assumptions, keep asking *"and then what happens?"* after every event, every
17
17
  command, every answer. Use business language. Do not discuss databases, APIs, or
18
18
  frameworks during modeling.
19
19
 
20
- **Ask only what the step needs.** Missing or ambiguous information: ask the one question that
21
- changes the model most, and follow a vague answer ("it depends", "usually") with "what decides
22
- it?". Already known: do not ask. Told not to stop (unattended run): assume the
23
- most reasonable answer, say so visibly where it can be corrected, never guess silently. Assume
24
- visibly during modeling; delivery blocks any guess that could encode a wrong rule, authorization,
25
- money or time behavior. Contradictions, a third review round, a gate only the user can accept,
26
- and approvals not yet given always stop
27
- (`cratis-screenplay-modeling-lifecycle`, `references/stop-or-assume.md`). Read `cratis-screenplay-modeling-lifecycle`'s `references/stop-or-assume.md` when information is missing or contradictory, or when deciding whether unattended work may proceed.
20
+ **Ask only what the step needs:** ask the one question that changes the model most; in an unattended run assume visibly, never silently; contradictions, a third review round and missing approvals always stop. Read [references/facilitation-stance.md](references/facilitation-stance.md) for the full rule, and `cratis-screenplay-modeling-lifecycle`'s `references/stop-or-assume.md` when information is missing or contradictory, or when deciding whether unattended work may proceed.
28
21
 
29
22
  **Do not cut corners to save tokens or effort.** A rule that needs more slices, events, views,
30
23
  translation steps or specifications gets them written; budget is never a reason to delete a
@@ -88,7 +81,6 @@ keeps the activities, Screenplay output and facilitation questions of each step:
88
81
 
89
82
  Read [references/nine-steps.md](references/nine-steps.md) when facilitating a workflow and needing a step's activities, required output, or questions. Read [references/invoicing-example.md](references/invoicing-example.md) when you need a complete worked `.play` document (RegisterInvoice command and InvoiceList view) to copy the shape from.
90
83
 
91
-
92
84
  ## Verify
93
85
 
94
86
  ```shell
@@ -108,11 +100,7 @@ is the fallback, and neither names the other's verdict. Versions and commands:
108
100
  - [ ] Personal data is classified on the `concept`, with a reason.
109
101
  - [ ] Specifications name the rejections, not only the happy path.
110
102
  - [ ] Bind with the runtime's compiler; tool versions: toolchain `SKILL.md`.
111
- A CLI and Stage that admit v15 also admit supported event Automation,
112
- generation strategies/responses, equality filters, enum numbers and compliance. Translate/captures
113
- and refused reactions remain gaps (Stage `references/admission.md`).
114
- Mixed effects remain `STAGE-ESM-037`: retries can duplicate events. Keep the reaction
115
- whole and prove retry-safe gap-fill; never split or drop effects.
103
+ Read [references/parsed-not-runnable.md](references/parsed-not-runnable.md) (section "A CLI and Stage that admit v15") when judging what Stage renders: Translate/captures and refused reactions stay gaps, and mixed effects stay `STAGE-ESM-037`.
116
104
 
117
105
  ## Parsed is not runnable
118
106
 
@@ -126,28 +114,7 @@ The independent verdicts V1 to V5 that report them are in
126
114
  `cratis-screenplay-modeling-lifecycle`.
127
115
 
128
116
  What binds depends on **which tool** you ask, so name the tool and its version:
129
-
130
- - `Automation` and `Translate` slices, reactions, captures and triggers bind (ESM v6) on the
131
- standalone tool and a CLI bundle that admits v6. (An older bundle
132
- reports *Slice '<name>' of type '<type>' is not admitted by ESM v1.*) Stage renders supported event-triggered Automation, not Translate/captures or non-event triggers.
133
- - `reads` and `concurrency` on a command do not bind (`PLAY0271`), so no decision is
134
- protected against stale state. A reaction trigger's `reads` that only `invokes` is
135
- report-only intent (`PLAY0270`); one that `produces` directly fails binding (`PLAY0268`).
136
- - `persona` declarations are report-only and never block; bare `pii` and `secret`
137
- concepts bind as ESM v13 (Requires Screenplay 4.141.0 or later); Stage renders admitted v13 protection.
138
- Enum/identity compliance and protected events with explicit subject marks remain
139
- refused (PLAY0268); see command-surface `references/compliance.md`. Keep protection.
140
- - Generated values/responses bind and reference-execute as v7; sources, streams
141
- and command/specification routes as v8; reaction `runs as` identity as v10;
142
- qualifying Double literals lower exactly as v11 and non-positional enum numbers
143
- as v12. Use `screenplay test` or MCP `run-specifications` for V4.
144
- Operations/systems, the `numbers exact` **source mode** (PLAY0268) and
145
- refusal/redelivery remain unadmitted. The CLI and Stage render supported generation strategies and v15 freshness,
146
- scalar/named responses, enum numbers, compliance and supported event reactions.
147
- The pair reaches construct checks through the ESM version it bundles, not blanket rendering; supported v14 filters
148
- render. Current boundaries and source evidence:
149
- `cratis-screenplay-toolchain/references/renderable-subset.md`.
150
- Source/binding admission and target realization are separate gates.
117
+ Read [references/parsed-not-runnable.md](references/parsed-not-runnable.md) (section "What binds depends on which tool") when stating what a tool binds or renders (`reads`/`concurrency` fail with `PLAY0271`; `persona` declarations are report-only; an older bundle reports *Slice '<name>' of type '<type>' is not admitted by ESM v1.*).
151
118
 
152
119
  The ESM versions, the full disposition table and the Step 7 clock example's binding
153
120
  result are in [references/parsed-not-runnable.md](references/parsed-not-runnable.md)
@@ -158,28 +125,12 @@ evidence a construct works downstream.
158
125
 
159
126
  ## Locate the model
160
127
 
161
- Look first for the project's existing `.play` files: the folder holding them is the
162
- model. A new model goes under the repository's `Source/` or `src/` folder, else in a
163
- `Screenplay/` folder at the repository root; never under `.cratis/`, which holds
164
- configuration and the shared AI corpus only. This is the
165
- conventional home for consumer-owned `.play` source; do not invent another
166
- location or search the whole repository before checking it.
167
-
168
- `cratis ai install` manages `.cratis/ai/`, never model files. Never
169
- hand-copy Screenplay source between repositories. Keep Markdown that explains,
170
- questions or navigates the model in the repository's documentation; the `.play`
171
- source is the single flow model.
128
+ Look first for the project's existing `.play` files: the folder holding them is the model; a new model goes under `Source/` or `src/`, else `Screenplay/`, never under `.cratis/`. Read [references/file-layout.md](references/file-layout.md) (section "Locate the model") when the location is unclear or source might be copied between repositories. `cratis ai install` manages `.cratis/ai/`, never model files.
172
129
 
173
130
  ## Verified product sources
174
131
 
175
132
  Which tool reports what, and how to read installed versions, live only in `cratis-screenplay-toolchain`
176
133
  `SKILL.md`; read it before choosing a tool or reporting a version-dependent verdict.
177
- The nine-step examples compile with the standalone compiler and their specifications run
178
- in the reference runner (compilation does not establish reference execution).
179
-
180
- Sources: Screenplay `Documentation/screenplay/{slices,commands,folders,printing,interactions,specifications}.md` and
181
- `projections/keys.md`; the inline-contract and event-context changes follow `commands.md` and `events.md`.
182
-
183
134
  Read [references/slice-type-rules.md](references/slice-type-rules.md) when deciding if a behavior is an Automation or a Translate slice.
184
135
 
185
136
  ## Two phases - discovery, then design
@@ -192,13 +143,7 @@ do not assume; it lands as `module`, `persona` and `import`; protocol in
192
143
 
193
144
  ## Keep modeling reasoning with its declaration
194
145
 
195
- Use `description` for summaries and fenced Markdown `documentation` on modules,
196
- features, slices, commands, read models and reactions (also events) for assumptions,
197
- boundaries and rejected alternatives. Do not leave that reasoning only in comments
198
- or disconnected notes. Both are report-only (PLAY0270), never executable rules.
199
- Specifications use `description` to name the witnessed behavior; longer reasoning
200
- belongs to their slice. Syntax, merge rules and diagnostics:
201
- [model reasoning](../cratis-screenplay-slice-design/references/model-reasoning.md).
146
+ Read [references/modeling-reasoning.md](references/modeling-reasoning.md) when recording assumptions, boundaries or rejected alternatives on a declaration (`description`, `documentation`).
202
147
 
203
148
  ## The prime directive: do not lose information
204
149
 
@@ -250,7 +195,6 @@ compile or will not be safe. Both are deliberate.
250
195
  the modeled `reads` + `require` intent, specifications, and the recorded
251
196
  target-enforcement gap described above.
252
197
 
253
-
254
198
  ## Naming the primitives is the highest-value work
255
199
 
256
200
  Name concepts before events, classify personal data at the concept, keep events past tense and single-purpose, and never put the event-source identity in an event payload.
@@ -273,7 +217,6 @@ The full critic pass (evidence, severity, business-question review) is
273
217
  instances - ask *"can there be more than one of these at once?"* for each field.
274
218
  8. No cross-cutting infrastructure is modeled as a `Translate` slice.
275
219
 
276
-
277
220
  ## Choose a file layout
278
221
 
279
222
  Choose the coarsest layout that keeps source and diffs readable; compile the folder, or its root file, as one application, because compiling files individually reports false unknown-type errors (`PLAY0165`, `PLAY0166`, `PLAY0167`).
@@ -283,18 +226,7 @@ Read [references/file-layout.md](references/file-layout.md) when choosing or cha
283
226
 
284
227
  The lifecycle, toolchain and phase skills are in "Start here" above. Construct and neighbouring skills:
285
228
 
286
- | Need | Skill |
287
- | --- | --- |
288
- | Commands, validation, authorization, `produces`, concurrency, `$context` | `cratis-screenplay-command-surface` |
289
- | Projections - PDL keys, joins, children, removal, arithmetic | `cratis-screenplay-projections` |
290
- | Read models, queries, screens | `cratis-screenplay-read-surface` |
291
- | Layouts, templates, forms, contributions, themes, i18n | `cratis-screenplay-ui-composition` |
292
- | Captures (CDL), reactions, triggers | `cratis-screenplay-captures-and-reactions` |
293
- | Given/when/then specifications | `cratis-screenplay-specifications` |
294
- | Language mechanics, the compiler, the admitted set | `cratis-screenplay-model-authoring` |
295
- | Rendering a settled model into an application | `cratis-stage-rendering-and-sandbox` |
296
- | Drawing the model as a Mermaid diagram | `cratis-event-model-diagram` |
297
- | Modeling against hand-written Chronicle C# | `cratis-chronicle-event-modeling` |
229
+ Read [references/neighbouring-skills.md](references/neighbouring-skills.md) when the need is a construct, authoring, rendering, diagram or Chronicle C# skill.
298
230
 
299
231
  ## Lineage
300
232
  Method lineage, Nebulit material and licenses: `references/provenance.md`. Read it when checking method lineage, attribution, or adaptation permissions.
@@ -0,0 +1,12 @@
1
+ # Facilitation stance: asking and assuming
2
+
3
+ The full rule for asking questions, assuming answers and stopping.
4
+
5
+ **Ask only what the step needs.** Missing or ambiguous information: ask the one question that
6
+ changes the model most, and follow a vague answer ("it depends", "usually") with "what decides
7
+ it?". Already known: do not ask. Told not to stop (unattended run): assume the
8
+ most reasonable answer, say so visibly where it can be corrected, never guess silently. Assume
9
+ visibly during modeling; delivery blocks any guess that could encode a wrong rule, authorization,
10
+ money or time behavior. Contradictions, a third review round, a gate only the user can accept,
11
+ and approvals not yet given always stop
12
+ (`cratis-screenplay-modeling-lifecycle`, `references/stop-or-assume.md`). Read `cratis-screenplay-modeling-lifecycle`'s `references/stop-or-assume.md` when information is missing or contradictory, or when deciding whether unattended work may proceed.
@@ -1,3 +1,8 @@
1
+ ## Contents
2
+
3
+ - Choose a file layout
4
+ - Locate the model
5
+
1
6
  ## Choose a file layout
2
7
 
3
8
  Treat the model folder as one application and choose the coarsest layout
@@ -87,3 +92,17 @@ file is kept, and some order carries meaning: `authorize` gates and policy
87
92
  operands evaluate left to right, and specification events compare in authored
88
93
  order unless `then events in any order` is stated. Never encode meaning in the
89
94
  order of modules, features or slices.
95
+
96
+ ## Locate the model
97
+
98
+ Look first for the project's existing `.play` files: the folder holding them is the
99
+ model. A new model goes under the repository's `Source/` or `src/` folder, else in a
100
+ `Screenplay/` folder at the repository root; never under `.cratis/`, which holds
101
+ configuration and the shared AI corpus only. This is the
102
+ conventional home for consumer-owned `.play` source; do not invent another
103
+ location or search the whole repository before checking it.
104
+
105
+ `cratis ai install` manages `.cratis/ai/`, never model files. Never
106
+ hand-copy Screenplay source between repositories. Keep Markdown that explains,
107
+ questions or navigates the model in the repository's documentation; the `.play`
108
+ source is the single flow model.
@@ -0,0 +1,13 @@
1
+ # Keeping modeling reasoning with its declaration
2
+
3
+ Where assumptions, boundaries and rejected alternatives live in the model.
4
+
5
+ ## Keep modeling reasoning with its declaration
6
+
7
+ Use `description` for summaries and fenced Markdown `documentation` on modules,
8
+ features, slices, commands, read models and reactions (also events) for assumptions,
9
+ boundaries and rejected alternatives. Do not leave that reasoning only in comments
10
+ or disconnected notes. Both are report-only (PLAY0270), never executable rules.
11
+ Specifications use `description` to name the witnessed behavior; longer reasoning
12
+ belongs to their slice. Syntax, merge rules and diagnostics:
13
+ [model reasoning](../../cratis-screenplay-slice-design/references/model-reasoning.md).
@@ -0,0 +1,16 @@
1
+ # Construct and neighbouring skills
2
+
3
+ Which skill owns each construct and neighbouring task.
4
+
5
+ | Need | Skill |
6
+ | --- | --- |
7
+ | Commands, validation, authorization, `produces`, concurrency, `$context` | `cratis-screenplay-command-surface` |
8
+ | Projections - PDL keys, joins, children, removal, arithmetic | `cratis-screenplay-projections` |
9
+ | Read models, queries, screens | `cratis-screenplay-read-surface` |
10
+ | Layouts, templates, forms, contributions, themes, i18n | `cratis-screenplay-ui-composition` |
11
+ | Captures (CDL), reactions, triggers | `cratis-screenplay-captures-and-reactions` |
12
+ | Given/when/then specifications | `cratis-screenplay-specifications` |
13
+ | Language mechanics, the compiler, the admitted set | `cratis-screenplay-model-authoring` |
14
+ | Rendering a settled model into an application | `cratis-stage-rendering-and-sandbox` |
15
+ | Drawing the model as a Mermaid diagram | `cratis-event-model-diagram` |
16
+ | Modeling against hand-written Chronicle C# | `cratis-chronicle-event-modeling` |
@@ -59,3 +59,36 @@ Trigger reads do not enforce decision consistency. Event generations and typed r
59
59
  but historical schemas do not supply deployed migrations.
60
60
  Check actual binder, runner and consumer admission instead of equating an
61
61
  accepted proposal or parsed node with a running application.
62
+
63
+
64
+ ## What binds depends on which tool
65
+
66
+ - `Automation` and `Translate` slices, reactions, captures and triggers bind (ESM v6) on the
67
+ standalone tool and a CLI bundle that admits v6. (An older bundle
68
+ reports *Slice '<name>' of type '<type>' is not admitted by ESM v1.*) Stage renders supported event-triggered Automation, not Translate/captures or non-event triggers.
69
+ - `reads` and `concurrency` on a command do not bind (`PLAY0271`), so no decision is
70
+ protected against stale state. A reaction trigger's `reads` that only `invokes` is
71
+ report-only intent (`PLAY0270`); one that `produces` directly fails binding (`PLAY0268`).
72
+ - `persona` declarations are report-only and never block; bare `pii` and `secret`
73
+ concepts bind as ESM v13 (Requires Screenplay 4.141.0 or later); Stage renders admitted v13 protection.
74
+ Enum/identity compliance and protected events with explicit subject marks remain
75
+ refused (PLAY0268); see command-surface `references/compliance.md`. Keep protection.
76
+ - Generated values/responses bind and reference-execute as v7; sources, streams
77
+ and command/specification routes as v8; reaction `runs as` identity as v10;
78
+ qualifying Double literals lower exactly as v11 and non-positional enum numbers
79
+ as v12. Use `screenplay test` or MCP `run-specifications` for V4.
80
+ Operations/systems, the `numbers exact` **source mode** (PLAY0268) and
81
+ refusal/redelivery remain unadmitted. The CLI and Stage render supported generation strategies and v15 freshness,
82
+ scalar/named responses, enum numbers, compliance and supported event reactions.
83
+ The pair reaches construct checks through the ESM version it bundles, not blanket rendering; supported v14 filters
84
+ render. Current boundaries and source evidence:
85
+ `cratis-screenplay-toolchain/references/renderable-subset.md`.
86
+ Source/binding admission and target realization are separate gates.
87
+
88
+ ## A CLI and Stage that admit v15
89
+
90
+ A CLI and Stage that admit v15 also admit supported event Automation,
91
+ generation strategies/responses, equality filters, enum numbers and compliance. Translate/captures
92
+ and refused reactions remain gaps (Stage `references/admission.md`).
93
+ Mixed effects remain `STAGE-ESM-037`: retries can duplicate events. Keep the reaction
94
+ whole and prove retry-safe gap-fill; never split or drop effects.
@@ -38,3 +38,9 @@ Source: https://github.com/Nebulit-GmbH/Eventmodelers-Build-Kits, by Martin Dilg
38
38
  > Screenplay adopts that vocabulary directly: *"Slices are the atom - everything
39
39
  > lives inside a typed slice aligned with Event Modeling's vocabulary."*
40
40
  > Where Cratis deliberately diverges, this skill says so.
41
+
42
+ The nine-step examples compile with the standalone compiler and their specifications run
43
+ in the reference runner (compilation does not establish reference execution).
44
+
45
+ Sources: Screenplay `Documentation/screenplay/{slices,commands,folders,printing,interactions,specifications}.md` and
46
+ `projections/keys.md`; the inline-contract and event-context changes follow `commands.md` and `events.md`.
@@ -47,15 +47,7 @@ environments, the evidence-disclosure policy and the domain experts. Otherwise a
47
47
  missing, one question per turn, the most blocking first (the harness's question tool if any). Record answers in `.ai-work/screenplay/<model-slug>/legacy/INTERVIEW.md`
48
48
  (`references/interview-findings.md`) and in the Interview Trail of `STATE.md`.
49
49
 
50
- Critical questions (full wording, why they matter and follow-up triggers:
51
- `references/interview-findings.md`; adapted from the TrogonStack legacy-integration interview):
52
- system state and documentation; the **freeze agreement** (no new features, only bug fixes, no
53
- schema changes: most critical when a migration or side-car is planned, because without it the
54
- extracted events go stale; a documentation-only extraction records "freeze not applicable");
55
- observation and extraction feasibility (a clone or staging by default); data sensitivity and
56
- disclosure, including whether the client lets legacy evidence into the model repository
57
- (`references/re-entry-and-passes.md` section 4); people and goal (who decides keep / change /
58
- remove); timeline, staffing and risk for a migration.
50
+ Critical questions (full wording and follow-up triggers: `references/interview-findings.md`): system state and documentation; the **freeze agreement** (most critical when a migration or side-car is planned, because without it the extracted events go stale); observation and extraction feasibility; data sensitivity and disclosure; people and goal; timeline, staffing and risk.
59
51
 
60
52
  **Unattended:** do not stop. Assume the most restrictive answer (clone only, no capture, no
61
53
  hosted-model disclosure, freeze unknown), record each assumption visibly in `INTERVIEW.md`, and
@@ -223,14 +215,7 @@ The candidate may go to review only when all hold, each a result or "not run: <r
223
215
 
224
216
  ## Route near misses
225
217
 
226
- - Greenfield discovery: `cratis-screenplay-discovery`; slice shapes: `cratis-screenplay-slice-design`;
227
- identity and invariants: `cratis-screenplay-streams-and-consistency`; integrations and jobs:
228
- `cratis-screenplay-automations-and-translations`; coverage: `cratis-screenplay-scenario-coverage`;
229
- review of the candidate: `cratis-screenplay-model-review`; rendering:
230
- `cratis-screenplay-render-and-gap-fill`.
231
- - Syntax and verdicts: `cratis-screenplay-toolchain`; phases, identity and approvals:
232
- `cratis-screenplay-modeling-lifecycle`; running Chronicle: `cratis-chronicle-cli-operations`,
233
- `cratis-chronicle-mcp-inspection`.
218
+ Read [references/neighbouring-skills.md](references/neighbouring-skills.md) when the work is greenfield discovery, slice shapes, streams, integrations, coverage, review, rendering, tooling or running Chronicle.
234
219
 
235
220
  ## Lineage
236
221
 
@@ -1,5 +1,11 @@
1
1
  # Interview findings (legacy extraction)
2
2
 
3
+ ## Contents
4
+
5
+ - Critical questions
6
+ - Findings template
7
+ - Critical questions
8
+
3
9
  Adapted from TrogonStack `eventmodeling-integrating-legacy-systems` (MIT; see `LICENSE`,
4
10
  `provenance.md`). Fill this in before L0 and keep it in
5
11
  `.ai-work/screenplay/<model-slug>/legacy/INTERVIEW.md`. Answers also go into the Interview
@@ -95,3 +101,15 @@ Ask only what is missing, one per turn.
95
101
 
96
102
  RECOMMENDATION: proceed / resolve blockers first / not recommended now (why)
97
103
  ```
104
+
105
+ ## Critical questions
106
+
107
+ Critical questions (full wording, why they matter and follow-up triggers:
108
+ `references/interview-findings.md`; adapted from the TrogonStack legacy-integration interview):
109
+ system state and documentation; the **freeze agreement** (no new features, only bug fixes, no
110
+ schema changes: most critical when a migration or side-car is planned, because without it the
111
+ extracted events go stale; a documentation-only extraction records "freeze not applicable");
112
+ observation and extraction feasibility (a clone or staging by default); data sensitivity and
113
+ disclosure, including whether the client lets legacy evidence into the model repository
114
+ (`references/re-entry-and-passes.md` section 4); people and goal (who decides keep / change /
115
+ remove); timeline, staffing and risk for a migration.
@@ -0,0 +1,12 @@
1
+ # Neighbouring skills
2
+
3
+ Which skill owns each task next to legacy extraction.
4
+
5
+ - Greenfield discovery: `cratis-screenplay-discovery`; slice shapes: `cratis-screenplay-slice-design`;
6
+ identity and invariants: `cratis-screenplay-streams-and-consistency`; integrations and jobs:
7
+ `cratis-screenplay-automations-and-translations`; coverage: `cratis-screenplay-scenario-coverage`;
8
+ review of the candidate: `cratis-screenplay-model-review`; rendering:
9
+ `cratis-screenplay-render-and-gap-fill`.
10
+ - Syntax and verdicts: `cratis-screenplay-toolchain`; phases, identity and approvals:
11
+ `cratis-screenplay-modeling-lifecycle`; running Chronicle: `cratis-chronicle-cli-operations`,
12
+ `cratis-chronicle-mcp-inspection`.
@@ -184,96 +184,15 @@ Choose formatting and disclose dropped comments before apply:
184
184
 
185
185
  ## Repair or extract before rewriting
186
186
 
187
- Read `read-workspace` with `view: "diagnostics"`, then `view: "repairs"` at the
188
- same revision. Pass the returned `diagnosticCode`, `subject`, required formatting
189
- and both revisions to `propose-repair`; preview with `read-proposal`, then `apply`.
190
- Only verified repairs are listed, and the selected repair gets a fresh transaction.
191
- For PLAY0166/PLAY0478, use the evidence-pinned loop in `references/mcp-tools.md`:
192
- `pinRepairEvidence` plus `expectedRepairEvidenceRevision` prevent attachment drift
193
- from silently changing the reviewed candidate.
194
-
195
- - `PLAY0166` declares a missing produced event; `PLAY0478` is a routing decision
196
- (identifier destination, never fix-all); `PLAY0471` removes a redundant name-equal event pin.
197
- - `PLAY0516` repairs presentation order by moving a sibling or import, or pinning
198
- a producer before a glob. It preserves semantics/identities and introduces no
199
- new timeline findings; evidence pinning is unsupported for this repair.
200
- - `PLAY0469` removes an inline identifier payload copy: it **changes the event
201
- contract**, refuses consumer/opaque impact, has no fix-all, and the catalog does
202
- not prove events were persisted, so ask about stored contracts first.
203
- No automatic generation-evolution repair ships.
204
- - `PLAY0479`: migrate optionality spelling with `PreserveTrivia`; document scope
205
- migrates all occurrences together. Keep the `query Q => observable?` exception.
206
- - Generation repairs PLAY0683/0684: [subjects, review and limits](references/mcp-tools.md#concept-generation).
207
- - Compliance repairs PLAY0565/0653: [MCP tool guide](references/mcp-tools.md).
208
-
209
- `propose-number-enum-members` pins an unnumbered enum to current positions.
210
- Opt-in MCP `checks: "enum-pinning"` / `--check enum-pinning` (PLAY0671) hints at
211
- stored enums, not correctness repairs. Arguments/review: `references/mcp-tools.md`.
212
-
213
- Use `propose-extract-inline-event` before adding generations (canonical consent;
214
- no comment loss/reverse). The [release baseline](references/release-baseline.md):
215
- admit in the release job; no baseline requires an explicit mode;
216
- `eventNeverPersisted: true` cannot unfreeze admitted revisions. Differing event pins carry
217
- `storedName` in ESM v16. Pins are event-name identifiers,
218
- shared by all generations and unique (PLAY0472). A renderer admits only the ESM versions it
219
- bundles, so an older Stage can refuse v16. Stored stream `All` (even `id "All"`) refuses PLAY0273; rename without
220
- that pin. Evidence/limits: [MCP tool guide](references/mcp-tools.md).
221
-
222
- Requires Screenplay 4.153.0 or later (`screenplay --version`) for the release baseline and its `baseline` command, and 4.152.0 or later for `storedName` (ESM v16).
187
+ Read `read-workspace` with `view: "repairs"` at the same revision as diagnostics and pass the repair to `propose-repair`; use `propose-extract-inline-event` before adding generations. `PLAY0469` changes the event contract, so ask about stored contracts first. No automatic generation-evolution repair ships. `PLAY0479`: migrate optionality spelling with `PreserveTrivia`. `eventNeverPersisted: true` cannot unfreeze admitted revisions. Differing event pins carry `storedName` in ESM v16, shared by all generations and unique (PLAY0472). Read [references/repairs.md](references/repairs.md) when fixing `PLAY0166`, `PLAY0478`, `PLAY0516` or `PLAY0683`, or admitting a [release baseline](references/release-baseline.md).
223
188
 
224
189
  ## Choose a readable layout
225
190
 
226
- Use `recommend-layout` for size-admissible options, then review an `expand-layout`
227
- proposal. Layout is not application semantics.
228
-
229
- - Keep one `application.play` while it remains readable.
230
- - Use one file per module when modules are simple.
231
- - Use one file per feature when nested features need separate review.
232
- - Use one file per slice when a large model needs isolated diffs.
233
-
234
- Compose split files with quoted imports (`import "<path or glob>"`).
235
- Each level above the slices is a barrel file: `application.play` holds `domain`
236
- and imports `Shared/*.play` and each module file; a module file declares the
237
- module and its features, each feature importing its folder
238
- (`import "Orders/*.play"`); a slice file holds only its `slice`, because the
239
- import places it in its feature. When you write or reorganize files yourself,
240
- do not restate `module`/`feature` in a slice file, and do not leave a barrel
241
- that declares a scope but imports nothing. `expand-layout` writes
242
- import barrels and slice-only leaves, preserving sibling and interleaved member
243
- order. It refuses a proposal that would change that order; without an ordering
244
- root its review discloses the path-order fallback. When choosing file placement, read the
245
- [language reference](references/language-reference.md) for placement rules.
246
-
247
- Parent scaffolding carries no duplicated module forms or contributions. Compile
248
- and validate the whole model folder, or its root file, not just
249
- the edited fragment.
191
+ Use `recommend-layout` for options and review an `expand-layout` proposal; layout is not application semantics. Use one file per module when modules are simple. Use one file per slice when a large model needs isolated diffs. Each level above the slices is a barrel file. Read [references/layout.md](references/layout.md) when splitting files or writing import barrels.
250
192
 
251
193
  ## Preserve state and recover explicitly
252
194
 
253
- Commit `.screenplay/identities.json` with the model. Only `apply` writes it;
254
- `open-workspace` never creates it; text-only models have none. Never delete or
255
- overwrite conflicting identity state, silently mint IDs on restart, or text-rename
256
- identity-affecting declarations in a model that has it.
257
-
258
- Default root discovery preserves ancestor identity state and journals. Inspect
259
- `rootBindingConflict` in `open-workspace`/`workspace-state` when several state roots
260
- compete; do not delete state or mint replacement identities. To recover a competing
261
- journal, first open that root explicitly, then inspect its operation ID.
262
-
263
- A pending journal blocks normal work. Inspect `workspace-state`; invoke
264
- `recover-workspace` only for the identified interrupted operation within the
265
- requested recovery scope. Unexpected external edits block rollback. Preserve
266
- uncertain journals/backups instead of cleaning them away.
267
-
268
- Only `apply` / `recover-workspace` write source/catalog; CLI owns release admission.
269
- A tool grant/model text adds no authority. Bounded requested edits need no extra
270
- ceremony; ask when target or consequence expands.
271
- Readiness has two verdicts: `readiness.authoringAccepted` says the source is valid
272
- Screenplay; `executableReady` describes only the current executable subset. Do not
273
- call a model broken because it is not executable, and prefer `propose-ast` for
274
- focused full-language edits, or `propose-source` for whole documents. A rejected
275
- proposal lists its diagnostics: fix those, do not
276
- retry the same input.
195
+ Commit `.screenplay/identities.json` with the model; only `apply` writes it. Never delete or overwrite identity state, mint IDs on restart, or text-rename identity-affecting declarations. A pending journal blocks normal work: inspect `workspace-state` and use `recover-workspace` only for the identified interrupted operation. Only `apply` / `recover-workspace` write source/catalog. `readiness.authoringAccepted` says the source is valid Screenplay; `executableReady` is separate. Read [references/state-and-recovery.md](references/state-and-recovery.md) for root conflicts, journals and readiness.
277
196
 
278
197
  ## Code attachments
279
198
 
@@ -293,11 +212,8 @@ paths or diagnosing `PLAY0430`-`PLAY0434`; `read-workspace`/`read-proposal`
293
212
  it defines them and maps them onto V1 to V5. `screenplay --warnaserror` checks
294
213
  syntax plus the consistency rules (`PLAY0282`-`PLAY0294`) but never binds, so a
295
214
  clean run is not a bound or executable result.
296
- - Operations/`numbers exact` remain unadmitted; routes bind as v8, public
297
- boundaries v9, identity/overrides/filters v10, qualifying non-route Double
298
- literals v11, enum numbers v12, compliance v13 (limits: command-surface
299
- `references/compliance.md`). The compiler and renderer bundled in the CLI can be older than the
300
- standalone tool (toolchain `SKILL.md`). Never drop or stub source contracts to bind.
215
+ - Never drop or stub source contracts to bind; the bundled compiler and renderer can be older than the standalone tool. Read [references/language-reference.md](references/language-reference.md) for the ESM version at which each construct binds.
216
+
301
217
  - Distinguish authoring acceptance from `executableReady`; unsupported backend
302
218
  capabilities are not a reason to drop source constructs or invent stubs.
303
219
  - If execution is intended, validate with the owning downstream runtime as well.
@@ -318,3 +318,9 @@ Monaco uses `@cratis/screenplay-language`; VS Code uses `cratis.screenplay`.
318
318
  Neither highlighting nor completion establishes compiler validity. Verify the
319
319
  complete folder with the compiler after changes, and verify the owning downstream
320
320
  runtime separately if execution is the goal.
321
+
322
+ - Operations/`numbers exact` remain unadmitted; routes bind as v8, public
323
+ boundaries v9, identity/overrides/filters v10, qualifying non-route Double
324
+ literals v11, enum numbers v12, compliance v13 (limits: command-surface
325
+ `references/compliance.md`). The compiler and renderer bundled in the CLI can be older than the
326
+ standalone tool (toolchain `SKILL.md`). Never drop or stub source contracts to bind.