@cratis/pi 7.6.5 → 7.7.1

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 (212) hide show
  1. package/package/corpus/agents/backend-developer.md +14 -0
  2. package/package/corpus/agents/code-reviewer.md +16 -0
  3. package/package/corpus/agents/coordinator.md +17 -0
  4. package/package/corpus/agents/frontend-developer.md +17 -0
  5. package/package/corpus/agents/orchestrator.md +18 -0
  6. package/package/corpus/agents/planner.md +24 -0
  7. package/package/corpus/agents/screenplay-modeler.md +57 -0
  8. package/package/corpus/agents/screenplay-renderer.md +42 -0
  9. package/package/corpus/agents/screenplay-reviewer.md +45 -0
  10. package/package/corpus/agents/slice-implementer.md +32 -5
  11. package/package/corpus/agents/spec-writer.md +16 -3
  12. package/package/corpus/prompts/add-reactor.prompt.md +5 -3
  13. package/package/corpus/prompts/new-vertical-slice.prompt.md +16 -5
  14. package/package/corpus/prompts/write-specs.prompt.md +12 -6
  15. package/package/corpus/rules/application-profile.md +7 -3
  16. package/package/corpus/rules/general.md +8 -3
  17. package/package/corpus/rules/glossary.md +1 -1
  18. package/package/corpus/rules/profiles.md +42 -4
  19. package/package/corpus/rules/reactors.md +30 -22
  20. package/package/corpus/rules/vertical-slices.md +3 -1
  21. package/package/corpus/skills/cratis-application-react-specifications/SKILL.md +13 -0
  22. package/package/corpus/skills/cratis-application-slice-conformance/LICENSE +2 -0
  23. package/package/corpus/skills/cratis-application-slice-conformance/SKILL.md +173 -0
  24. package/package/corpus/skills/cratis-application-slice-conformance/references/checklists.md +66 -0
  25. package/package/corpus/skills/cratis-application-slice-conformance/references/contract-and-precedence.md +49 -0
  26. package/package/corpus/skills/cratis-application-slice-conformance/references/provenance.md +23 -0
  27. package/package/corpus/skills/cratis-application-slice-conformance/references/worked-example.md +91 -0
  28. package/package/corpus/skills/cratis-application-slice-conformance/verification.json +14 -0
  29. package/package/corpus/skills/cratis-application-slice-specifications/SKILL.md +57 -1
  30. package/package/corpus/skills/cratis-application-slice-specifications/references/provenance.md +16 -0
  31. package/package/corpus/skills/cratis-arc-command/SKILL.md +10 -0
  32. package/package/corpus/skills/cratis-arc-command-execution/SKILL.md +10 -0
  33. package/package/corpus/skills/cratis-arc-command-validation/SKILL.md +10 -0
  34. package/package/corpus/skills/cratis-arc-observable-query-http/SKILL.md +10 -0
  35. package/package/corpus/skills/cratis-arc-query-paging/SKILL.md +10 -0
  36. package/package/corpus/skills/cratis-arc-react-page/SKILL.md +68 -8
  37. package/package/corpus/skills/cratis-arc-react-page/references/from-screenplay.md +199 -0
  38. package/package/corpus/skills/cratis-arc-react-page/references/provenance.md +13 -0
  39. package/package/corpus/skills/cratis-chronicle-event-constraints/SKILL.md +10 -0
  40. package/package/corpus/skills/cratis-chronicle-event-modeling/SKILL.md +38 -10
  41. package/package/corpus/skills/cratis-chronicle-event-type-migration/SKILL.md +13 -0
  42. package/package/corpus/skills/cratis-chronicle-projection/SKILL.md +13 -0
  43. package/package/corpus/skills/cratis-chronicle-reactor/SKILL.md +58 -6
  44. package/package/corpus/skills/cratis-chronicle-reactor/references/provenance.md +9 -0
  45. package/package/corpus/skills/cratis-chronicle-read-model/SKILL.md +13 -0
  46. package/package/corpus/skills/cratis-chronicle-read-model-specifications/SKILL.md +47 -0
  47. package/package/corpus/skills/cratis-chronicle-read-model-specifications/references/provenance.md +11 -0
  48. package/package/corpus/skills/cratis-chronicle-reducer/SKILL.md +13 -0
  49. package/package/corpus/skills/cratis-components-stepper-command-dialog/SKILL.md +13 -0
  50. package/package/corpus/skills/cratis-event-model-diagram/SKILL.md +35 -16
  51. package/package/corpus/skills/cratis-screenplay-automations-and-translations/LICENSE +28 -0
  52. package/package/corpus/skills/cratis-screenplay-automations-and-translations/SKILL.md +166 -0
  53. package/package/corpus/skills/cratis-screenplay-automations-and-translations/references/audit-format.md +31 -0
  54. package/package/corpus/skills/cratis-screenplay-automations-and-translations/references/automation-patterns.md +139 -0
  55. package/package/corpus/skills/cratis-screenplay-automations-and-translations/references/cases-to-specify.md +69 -0
  56. package/package/corpus/skills/cratis-screenplay-automations-and-translations/references/effects-and-idempotency.md +88 -0
  57. package/package/corpus/skills/cratis-screenplay-automations-and-translations/references/integration-contracts.md +64 -0
  58. package/package/corpus/skills/cratis-screenplay-automations-and-translations/references/provenance.md +37 -0
  59. package/package/corpus/skills/cratis-screenplay-automations-and-translations/references/realization-and-gap-fill.md +34 -0
  60. package/package/corpus/skills/cratis-screenplay-automations-and-translations/references/todo-list-example.md +208 -0
  61. package/package/corpus/skills/cratis-screenplay-automations-and-translations/references/translate-example.md +126 -0
  62. package/package/corpus/skills/cratis-screenplay-automations-and-translations/references/translation-patterns.md +93 -0
  63. package/package/corpus/skills/cratis-screenplay-automations-and-translations/references/worked-integration.md +98 -0
  64. package/package/corpus/skills/cratis-screenplay-automations-and-translations/verification.json +15 -0
  65. package/package/corpus/skills/cratis-screenplay-captures-and-reactions/SKILL.md +267 -50
  66. package/package/corpus/skills/cratis-screenplay-captures-and-reactions/references/complete-examples.md +185 -0
  67. package/package/corpus/skills/cratis-screenplay-captures-and-reactions/verification.json +60 -12
  68. package/package/corpus/skills/cratis-screenplay-command-surface/SKILL.md +42 -12
  69. package/package/corpus/skills/cratis-screenplay-discovery/LICENSE +30 -0
  70. package/package/corpus/skills/cratis-screenplay-discovery/SKILL.md +229 -0
  71. package/package/corpus/skills/cratis-screenplay-discovery/references/divergent-sweep.md +37 -0
  72. package/package/corpus/skills/cratis-screenplay-discovery/references/event-naming.md +64 -0
  73. package/package/corpus/skills/cratis-screenplay-discovery/references/facilitation.md +62 -0
  74. package/package/corpus/skills/cratis-screenplay-discovery/references/human-workshop.md +222 -0
  75. package/package/corpus/skills/cratis-screenplay-discovery/references/interview-questions.md +66 -0
  76. package/package/corpus/skills/cratis-screenplay-discovery/references/personas-and-causes.md +152 -0
  77. package/package/corpus/skills/cratis-screenplay-discovery/references/plotting-and-handoff.md +111 -0
  78. package/package/corpus/skills/cratis-screenplay-discovery/references/provenance.md +37 -0
  79. package/package/corpus/skills/cratis-screenplay-discovery/references/storming-loop.md +119 -0
  80. package/package/corpus/skills/cratis-screenplay-discovery/references/worked-session.md +87 -0
  81. package/package/corpus/skills/cratis-screenplay-discovery/verification.json +15 -0
  82. package/package/corpus/skills/cratis-screenplay-event-modeling/SKILL.md +140 -77
  83. package/package/corpus/skills/cratis-screenplay-event-modeling/references/invoicing-example.md +51 -0
  84. package/package/corpus/skills/cratis-screenplay-event-modeling/references/nine-steps.md +114 -28
  85. package/package/corpus/skills/cratis-screenplay-event-modeling/references/parsed-not-runnable.md +50 -0
  86. package/package/corpus/skills/cratis-screenplay-event-modeling/verification.json +28 -3
  87. package/package/corpus/skills/cratis-screenplay-legacy-extraction/LICENSE +31 -0
  88. package/package/corpus/skills/cratis-screenplay-legacy-extraction/SKILL.md +239 -0
  89. package/package/corpus/skills/cratis-screenplay-legacy-extraction/references/chronicle-observations.md +25 -0
  90. package/package/corpus/skills/cratis-screenplay-legacy-extraction/references/evidence-table-template.md +79 -0
  91. package/package/corpus/skills/cratis-screenplay-legacy-extraction/references/expert-verification.md +48 -0
  92. package/package/corpus/skills/cratis-screenplay-legacy-extraction/references/generate-notes.md +75 -0
  93. package/package/corpus/skills/cratis-screenplay-legacy-extraction/references/intent-example.md +164 -0
  94. package/package/corpus/skills/cratis-screenplay-legacy-extraction/references/interview-findings.md +88 -0
  95. package/package/corpus/skills/cratis-screenplay-legacy-extraction/references/loss-report-template.md +47 -0
  96. package/package/corpus/skills/cratis-screenplay-legacy-extraction/references/prologue-safety.md +147 -0
  97. package/package/corpus/skills/cratis-screenplay-legacy-extraction/references/provenance.md +10 -0
  98. package/package/corpus/skills/cratis-screenplay-legacy-extraction/references/rule-modeling.md +36 -0
  99. package/package/corpus/skills/cratis-screenplay-legacy-extraction/references/side-car-migration.md +126 -0
  100. package/package/corpus/skills/cratis-screenplay-legacy-extraction/references/signal-to-intent.md +57 -0
  101. package/package/corpus/skills/cratis-screenplay-legacy-extraction/references/ui-observation.md +52 -0
  102. package/package/corpus/skills/cratis-screenplay-legacy-extraction/verification.json +17 -0
  103. package/package/corpus/skills/cratis-screenplay-model-authoring/SKILL.md +77 -57
  104. package/package/corpus/skills/cratis-screenplay-model-authoring/references/language-reference.md +50 -20
  105. package/package/corpus/skills/cratis-screenplay-model-authoring/references/mcp-loop.md +211 -0
  106. package/package/corpus/skills/cratis-screenplay-model-authoring/references/mcp-tools.md +44 -6
  107. package/package/corpus/skills/cratis-screenplay-model-authoring/references/provenance.md +13 -0
  108. package/package/corpus/skills/cratis-screenplay-model-authoring/verification.json +64 -10
  109. package/package/corpus/skills/cratis-screenplay-model-review/LICENSE +34 -0
  110. package/package/corpus/skills/cratis-screenplay-model-review/SKILL.md +209 -0
  111. package/package/corpus/skills/cratis-screenplay-model-review/references/anti-patterns.md +89 -0
  112. package/package/corpus/skills/cratis-screenplay-model-review/references/business-questions.md +128 -0
  113. package/package/corpus/skills/cratis-screenplay-model-review/references/checklist.md +176 -0
  114. package/package/corpus/skills/cratis-screenplay-model-review/references/provenance.md +36 -0
  115. package/package/corpus/skills/cratis-screenplay-model-review/references/report-template.md +149 -0
  116. package/package/corpus/skills/cratis-screenplay-model-review/references/review-questions.md +59 -0
  117. package/package/corpus/skills/cratis-screenplay-model-review/references/worked-example.md +255 -0
  118. package/package/corpus/skills/cratis-screenplay-model-review/verification.json +13 -0
  119. package/package/corpus/skills/cratis-screenplay-modeling-lifecycle/LICENSE +32 -0
  120. package/package/corpus/skills/cratis-screenplay-modeling-lifecycle/SKILL.md +239 -0
  121. package/package/corpus/skills/cratis-screenplay-modeling-lifecycle/references/code-reading-and-tokens.md +55 -0
  122. package/package/corpus/skills/cratis-screenplay-modeling-lifecycle/references/handoff-template.md +124 -0
  123. package/package/corpus/skills/cratis-screenplay-modeling-lifecycle/references/identity-and-edits.md +84 -0
  124. package/package/corpus/skills/cratis-screenplay-modeling-lifecycle/references/opt-in.md +48 -0
  125. package/package/corpus/skills/cratis-screenplay-modeling-lifecycle/references/phase-report-inventories.md +25 -0
  126. package/package/corpus/skills/cratis-screenplay-modeling-lifecycle/references/phases.md +162 -0
  127. package/package/corpus/skills/cratis-screenplay-modeling-lifecycle/references/principles.md +53 -0
  128. package/package/corpus/skills/cratis-screenplay-modeling-lifecycle/references/provenance.md +63 -0
  129. package/package/corpus/skills/cratis-screenplay-modeling-lifecycle/references/reasoning-notes.md +31 -0
  130. package/package/corpus/skills/cratis-screenplay-modeling-lifecycle/references/safety.md +31 -0
  131. package/package/corpus/skills/cratis-screenplay-modeling-lifecycle/references/stop-or-assume.md +46 -0
  132. package/package/corpus/skills/cratis-screenplay-modeling-lifecycle/references/verdicts-and-modes.md +204 -0
  133. package/package/corpus/skills/cratis-screenplay-modeling-lifecycle/references/vocabulary-map.md +55 -0
  134. package/package/corpus/skills/cratis-screenplay-modeling-lifecycle/references/worked-example.md +86 -0
  135. package/package/corpus/skills/cratis-screenplay-modeling-lifecycle/verification.json +16 -0
  136. package/package/corpus/skills/cratis-screenplay-projections/SKILL.md +14 -3
  137. package/package/corpus/skills/cratis-screenplay-read-surface/SKILL.md +15 -1
  138. package/package/corpus/skills/cratis-screenplay-render-and-gap-fill/LICENSE +2 -0
  139. package/package/corpus/skills/cratis-screenplay-render-and-gap-fill/SKILL.md +179 -0
  140. package/package/corpus/skills/cratis-screenplay-render-and-gap-fill/references/delivery-protocol.md +99 -0
  141. package/package/corpus/skills/cratis-screenplay-render-and-gap-fill/references/drift-and-ledger.md +67 -0
  142. package/package/corpus/skills/cratis-screenplay-render-and-gap-fill/references/gap-fill-handoff.md +72 -0
  143. package/package/corpus/skills/cratis-screenplay-render-and-gap-fill/references/provenance.md +27 -0
  144. package/package/corpus/skills/cratis-screenplay-render-and-gap-fill/references/renderability-gate.md +56 -0
  145. package/package/corpus/skills/cratis-screenplay-render-and-gap-fill/references/worked-example.md +124 -0
  146. package/package/corpus/skills/cratis-screenplay-render-and-gap-fill/verification.json +14 -0
  147. package/package/corpus/skills/cratis-screenplay-scenario-coverage/LICENSE +31 -0
  148. package/package/corpus/skills/cratis-screenplay-scenario-coverage/SKILL.md +200 -0
  149. package/package/corpus/skills/cratis-screenplay-scenario-coverage/references/berth-reservations.md +579 -0
  150. package/package/corpus/skills/cratis-screenplay-scenario-coverage/references/chronicle-verification.md +24 -0
  151. package/package/corpus/skills/cratis-screenplay-scenario-coverage/references/coverage-matrix.md +102 -0
  152. package/package/corpus/skills/cratis-screenplay-scenario-coverage/references/provenance.md +41 -0
  153. package/package/corpus/skills/cratis-screenplay-scenario-coverage/references/scenario-catalogue.md +196 -0
  154. package/package/corpus/skills/cratis-screenplay-scenario-coverage/references/scenario-workshop.md +102 -0
  155. package/package/corpus/skills/cratis-screenplay-scenario-coverage/references/spec-forms-by-mode.md +71 -0
  156. package/package/corpus/skills/cratis-screenplay-scenario-coverage/references/view-and-story-specs.md +91 -0
  157. package/package/corpus/skills/cratis-screenplay-scenario-coverage/verification.json +13 -0
  158. package/package/corpus/skills/cratis-screenplay-slice-design/LICENSE +30 -0
  159. package/package/corpus/skills/cratis-screenplay-slice-design/SKILL.md +236 -0
  160. package/package/corpus/skills/cratis-screenplay-slice-design/references/command-inventory.md +107 -0
  161. package/package/corpus/skills/cratis-screenplay-slice-design/references/field-lineage.md +130 -0
  162. package/package/corpus/skills/cratis-screenplay-slice-design/references/provenance.md +20 -0
  163. package/package/corpus/skills/cratis-screenplay-slice-design/references/read-model-design.md +201 -0
  164. package/package/corpus/skills/cratis-screenplay-slice-design/references/review-questions.md +23 -0
  165. package/package/corpus/skills/cratis-screenplay-slice-design/references/rule-layers.md +41 -0
  166. package/package/corpus/skills/cratis-screenplay-slice-design/references/slicing.md +122 -0
  167. package/package/corpus/skills/cratis-screenplay-slice-design/references/worked-example.md +305 -0
  168. package/package/corpus/skills/cratis-screenplay-slice-design/verification.json +43 -0
  169. package/package/corpus/skills/cratis-screenplay-specifications/SKILL.md +217 -36
  170. package/package/corpus/skills/cratis-screenplay-specifications/verification.json +28 -4
  171. package/package/corpus/skills/cratis-screenplay-streams-and-consistency/LICENSE +33 -0
  172. package/package/corpus/skills/cratis-screenplay-streams-and-consistency/SKILL.md +191 -0
  173. package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/boundaries.md +154 -0
  174. package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/chronicle-boundaries.md +54 -0
  175. package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/consistency-and-concurrency.md +191 -0
  176. package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/evolution-example.md +70 -0
  177. package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/evolution.md +65 -0
  178. package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/provenance.md +13 -0
  179. package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/stream-patterns.md +128 -0
  180. package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/streams-example.md +378 -0
  181. package/package/corpus/skills/cratis-screenplay-streams-and-consistency/verification.json +14 -0
  182. package/package/corpus/skills/cratis-screenplay-toolchain/LICENSE +2 -0
  183. package/package/corpus/skills/cratis-screenplay-toolchain/SKILL.md +177 -0
  184. package/package/corpus/skills/cratis-screenplay-toolchain/references/automation-translate-example.md +121 -0
  185. package/package/corpus/skills/cratis-screenplay-toolchain/references/cheat-sheet-example.md +319 -0
  186. package/package/corpus/skills/cratis-screenplay-toolchain/references/cheat-sheet.md +96 -0
  187. package/package/corpus/skills/cratis-screenplay-toolchain/references/diagnostics.md +107 -0
  188. package/package/corpus/skills/cratis-screenplay-toolchain/references/doc-contradictions.md +48 -0
  189. package/package/corpus/skills/cratis-screenplay-toolchain/references/executable-example.md +113 -0
  190. package/package/corpus/skills/cratis-screenplay-toolchain/references/executable-subset.md +148 -0
  191. package/package/corpus/skills/cratis-screenplay-toolchain/references/pdl-example.md +267 -0
  192. package/package/corpus/skills/cratis-screenplay-toolchain/references/provenance.md +51 -0
  193. package/package/corpus/skills/cratis-screenplay-toolchain/references/renderable-subset.md +88 -0
  194. package/package/corpus/skills/cratis-screenplay-toolchain/references/traps.md +51 -0
  195. package/package/corpus/skills/cratis-screenplay-toolchain/references/verdicts.md +134 -0
  196. package/package/corpus/skills/cratis-screenplay-toolchain/references/versions.md +134 -0
  197. package/package/corpus/skills/cratis-screenplay-toolchain/verification.json +15 -0
  198. package/package/corpus/skills/cratis-screenplay-ui-composition/SKILL.md +53 -5
  199. package/package/corpus/skills/cratis-screenplay-ui-composition/references/flow-review.md +56 -0
  200. package/package/corpus/skills/cratis-screenplay-ui-composition/references/provenance.md +13 -0
  201. package/package/corpus/skills/cratis-screenplay-ui-composition/references/worked-flow.md +65 -0
  202. package/package/corpus/skills/cratis-screenplay-ui-composition/verification.json +4 -1
  203. package/package/corpus/skills/cratis-specification-by-example/SKILL.md +44 -1
  204. package/package/corpus/skills/cratis-specifications-csharp/SKILL.md +10 -0
  205. package/package/corpus/skills/cratis-stage-rendering-and-sandbox/SKILL.md +186 -219
  206. package/package/corpus/skills/cratis-stage-rendering-and-sandbox/references/admission.md +177 -0
  207. package/package/corpus/skills/cratis-stage-rendering-and-sandbox/references/render-example.md +150 -0
  208. package/package/corpus/skills/cratis-stage-rendering-and-sandbox/references/rendered-application.md +87 -0
  209. package/package/corpus/skills/cratis-stage-rendering-and-sandbox/references/sandbox-and-specrunner.md +98 -0
  210. package/package/corpus/skills/cratis-stage-rendering-and-sandbox/verification.json +19 -0
  211. package/package/profile-catalog.json +11 -0
  212. package/package.json +1 -1
@@ -0,0 +1,36 @@
1
+ # Provenance
2
+
3
+ ## Closely adapted (MIT)
4
+
5
+ Source: https://github.com/TrogonStack/agentskills at commit
6
+ `7b249d3ee42d8b7e11fa564141ebd5fbc37aadf1`, path `plugins/trogonstack-eventmodeling/skills/`.
7
+ MIT, Copyright (c) 2025 Straw Hat, LLC. The complete notice is in this skill's `LICENSE`.
8
+
9
+ | Source skill | Adapted into | How |
10
+ |---|---|---|
11
+ | `eventmodeling-validating-event-models-checklist` | `checklist.md` (phase layout, per-phase check counts), `report-template.md` (per check: status, element, evidence; anti-patterns block; final questions; verdict and success criteria), `anti-patterns.md` ("Calculation events", "Circular dependencies", "Shared versus handler-owned state", "Persistent versus ephemeral state" translated to Screenplay), `review-questions.md` (per-subject questions and per-domain examples) | Structure and wording adapted closely; every code and class term mapped to Screenplay constructs; the 16 checks became the phased checklist with additions |
12
+ | `eventmodeling-validating-event-models` | `checklist.md` T (allowed and refused transitions per entity), C7 and C8 (unique semantics, corrections name what they correct), F3, G (role attribution and coverage), D and E (read models serve real queries, regenerable), `report-template.md` (critical and warning findings, completeness table) | Adapted; the command-state rule is not adopted as such (Screenplay decisions read stored state through `reads`; see `anti-patterns.md`) |
13
+ | `eventmodeling-checking-completeness` | `checklist.md` A (origin and destination for every field, every command input, every read-model field), A8 (step contracts), G (role coverage), `references/worked-example.md` (field-trace format) | Adapted; matrices replaced by lineage over `.play` declarations |
14
+
15
+ ## Ideas written independently (not copied)
16
+
17
+ Nebulit-GmbH/agentic-engineer has no licence; nothing is reproduced beyond short phrases.
18
+
19
+ | Idea | Source | Where it lands |
20
+ |---|---|---|
21
+ | Read-only model analysis with counts, status, spec coverage and structural gaps | idea from Nebulit-GmbH/agentic-engineer@07b0f30:`.claude/skills/analyze-existing-model/SKILL.md`, written independently | SKILL.md "Audit pass", `report-template.md` Inventory |
22
+ | One remark per element, with a kind (question, task, comment) and a resolve step | idea from Nebulit-GmbH/agentic-engineer@07b0f30:`.claude/skills/handle-comment/SKILL.md`, written independently | SKILL.md "Findings" (one finding per declaration, kinds, states on re-review) |
23
+ | Business-analyst pass: read the model fresh, ask only grounded plain-language questions, zero is valid, drawings versus questions | idea from Nebulit-GmbH/agentic-engineer@07b0f30:`.claude/skills/wdyt/SKILL.md`, written independently | `business-questions.md` (categories, language rule, themes) |
24
+ | Structural shapes as signals, one of which is always reported | idea from Nebulit-GmbH/agentic-engineer@07b0f30:`.claude/skills/eventmodeling-core-rules/SKILL.md`, written independently | `anti-patterns.md` structural shapes |
25
+
26
+ ## Other lineage
27
+
28
+ - Event Modeling (Adam Dymitruk) and Martin Dilger, *Understanding Eventsourcing*:
29
+ completeness, vertical slices, the structural-shape signals.
30
+ - Alexey Zimarev, Oskar Dudycz, Vaughn Vernon and others on stream and boundary design:
31
+ the boundary rows of `anti-patterns.md`.
32
+ - Draft lineage of the first draft of this skill: the field-copy signal, the element sweep
33
+ and the entity walk are Cratis additions, grounded in Cratis/Screenplay#393 (advisory report
34
+ of information-level modeling smells, open at v4.64.0).
35
+ - Rejected anti-patterns (`checklist.md` R): Cratis/Screenplay strategy decisions and the
36
+ closure comments of the Screenplay issues that rejected them.
@@ -0,0 +1,149 @@
1
+ # Review report template
2
+
3
+ Keep the report to findings and evidence; no file dumps. Addresses and paths, not contents.
4
+ The check-by-check layout (per phase: how many checks; per check: status, element, evidence;
5
+ anti-patterns; final questions; verdict; success criteria) is adapted from TrogonStack
6
+ `eventmodeling-validating-event-models-checklist` (see `provenance.md`). A complete filled
7
+ example: `worked-example.md`.
8
+
9
+ When the brief says the final message is the report, the whole report is that message. Never
10
+ write the report into the model root.
11
+
12
+ ```text
13
+ # Model review: <model or scope>
14
+ Mode: <design|executable|renderable> Stance: critic Review kind: <self-check|independent|audit|proposal>
15
+ Model root: <path>
16
+ Source identity: <commit + digest from the source-identity helper, cratis-screenplay-modeling-lifecycle references/verdicts-and-modes.md "Source identity">
17
+ Workspace: <modelRevision / catalogRevision from MCP, when connected> (a different thing; never the source identity)
18
+ Scope: <whole model | module/feature/slice list | edit request id>
19
+ Authors: <agent>, model: <model or "not exposed">, one entry per contributing author
20
+ Reviewer: <agent>, model: <model or "not exposed">, fresh context: yes|no
21
+ Independence: independent (fresh context, different model family from every author)
22
+ | same-family (additional review; the user decides whether it is enough)
23
+
24
+ ## Verdict lines (independent; each is a result or "not run: reason")
25
+ V1 authorable: <pass (tool, version, N files) | fail: PLAYnnnn at file:line>
26
+ V2 executable diagnostics: <clean | n diagnostics: codes | not run: reason>
27
+ V3 binding-ready: <ready | blocked: codes | not run: reason>
28
+ V4 reference specs run: <route, expected vs discovered, passed/failed/unsupported/cancelled | not run: no route>
29
+ V5 rendered, target-verified: admission <...>; publication <...>; build <...>; tests <...> (each "not run: reason" when absent)
30
+ Gaps: <capability gaps and tool-version gaps, e.g. false PLAY0285 on cascades in cratis 3.27.1>
31
+
32
+ ## Inventory (read-only audit; MCP describe-application view=summary, find-assertion-gaps)
33
+ Modules n, features n, slices n (StateChange n, StateView n, Automation n, Translate n),
34
+ events n, commands n, read models n, specs n, slices with no assertion n.
35
+
36
+ ## Phase 1: Element sweep (7 checks)
37
+ Check S1: <short title>
38
+ Status: PASS | FINDING #n | N/A: <reason> | NOT RUN: <reason>
39
+ Element: <address of the declaration>
40
+ Evidence: <the sweep line: names, counts, the spec found or NONE>
41
+ ...one block per check, every id in the phase...
42
+
43
+ ## Phase 2: Entity walk (5 checks)
44
+ ...
45
+ (one section per phase of checklist.md, in order, each stating its check count)
46
+
47
+ Sweep summary: gated elements n, with denial spec n, NONE: <names>; field-copy signals: <names or none>.
48
+
49
+ ## Lineage matrix (scope)
50
+ | Element.field | Origin | Destinations | Status |
51
+
52
+ ## Coverage matrix
53
+ <from the coverage matrix of `cratis-screenplay-scenario-coverage`; mark empty cells and weak n/a reasons>
54
+
55
+ ## Dependencies
56
+ Per slice: events consumed and the producing slice (orientation only, not build order); cycles found.
57
+
58
+ ## Anti-patterns identified
59
+ CRITICAL | MAJOR | MINOR: <pattern name>, at <address>
60
+ Problem: <why it breaks the business or the model>
61
+ Violates: <checklist ids>
62
+ Fix: <the smallest change that removes the consequence; edit class>
63
+
64
+ ## Findings
65
+ | # | Severity | Kind | Address (file:line) | Rule (tier) | Consequence | Fix |
66
+ |---|---|---|---|---|---|---|
67
+ Kinds: defect | question | note. One declaration per row (or an explicit list of names).
68
+
69
+ ## Edit requests (for the owning session; this review changed nothing)
70
+ | # | Finding | Address | Operation | Edit class | Reason |
71
+
72
+ ## Business questions
73
+ | # | Where | Question (plain language) | Why it matters |
74
+
75
+ ## Final questions
76
+ Q1 newcomer readability: yes | no (<what is in the way>)
77
+ Q2 view rules changeable without rewriting facts: yes | no (<event, field>)
78
+ Q3 deliverable without guessing a rule: yes | no (<unresolved rule>)
79
+
80
+ ## Verdict
81
+ Status: PASS | PASS WITH WARNINGS | FAIL
82
+ Ready to accept (P6): YES | NO - <what first>
83
+ Delivery readiness: <design only | executable | renderable> (as far as the verdict lines allow)
84
+ Confidence: high | medium | low (why)
85
+ Summary: <2-4 sentences: maturity, the most important risk, one concrete next step>
86
+ ```
87
+
88
+ ## Finding fields
89
+ - **Severity**
90
+ - critical: the model states something false, loses or corrupts business facts, breaks a
91
+ security or privacy requirement (including protection removed to pass a tool), or fails V1
92
+ in any mode or the gate the chosen mode requires;
93
+ - major: a business rule, path or scenario type is missing or unenforced without being
94
+ recorded; an invariant without atomic enforcement; a gated command behind a reaction
95
+ without a trusted-path decision; a structural shape with a demonstrated consequence;
96
+ - minor: naming, clarity, rationale placement, coverage gaps with low business impact.
97
+ - **Kind**: defect (the model contradicts agreed facts, the language, the chosen mode or a rule
98
+ it states itself), question (only a domain person can answer; it becomes a defect when the
99
+ answer contradicts the model), note (no consequence; at most one line).
100
+ - **Address**: kind and name path as MCP `search-declarations` reports it (or
101
+ `Module/Feature/Slice/<kind> <Name>`), plus `file:line` with the file name exactly as given.
102
+ Every finding is pinned to one declaration: one declaration per row, or an explicit list of
103
+ names; never a wildcard or a quantifier ("most", "remaining"). A gap affecting N elements
104
+ lists all N names.
105
+ - **Rule**: the checklist id or anti-pattern name, with its tier (C/D/Q).
106
+ - **Consequence**: what goes wrong for the business or the system if it stays. No consequence
107
+ means not a finding (at most a note).
108
+ - **Fix**: the smallest change that removes the consequence, in the right edit class
109
+ (address-preserving text edit, or an identity-affecting change returned as an edit request).
110
+
111
+ ## Root causes
112
+ Group findings on the same event or command and ask whether one design defect explains them (a
113
+ generic update event that skips a constraint, is missing from a projection and has no
114
+ precondition is one defect with three symptoms). Report the root cause as the finding with the
115
+ symptoms under it, and never propose a fix that keeps the defect (adding the generic event to a
116
+ constraint or projection).
117
+
118
+ ## Defect or business question?
119
+ - Defect: the reviewer can say what is wrong.
120
+ - Business question: only a domain person can answer it ("Can this be undone?", "Who may do
121
+ this for someone else?"). It becomes a defect only after the answer contradicts the model.
122
+ - Do not disguise a defect as a question, nor raise a question you could answer from the model.
123
+
124
+ ## Verdict rules
125
+ - **FAIL**: any critical finding, or a verdict line the mode requires fails.
126
+ - **PASS WITH WARNINGS**: no critical; one or more major or minor findings, or open business
127
+ questions that could change the model.
128
+ - **PASS**: no findings; open questions, if any, cannot change the model's structure.
129
+ - A "no" to a final question prevents PASS.
130
+ - **Success criteria.** The model is validated when: every phase is evaluated with no check
131
+ skipped without a stated reason; no critical finding stands; every final question is "yes";
132
+ every verdict line the mode requires is a result, not "not run". It needs fixes when a check
133
+ fails with named evidence, an anti-pattern hit stands, or a final question is "no", and the
134
+ fixes are targeted. It should be redesigned, not patched, when several phases fail or a fix
135
+ would rewrite the core timeline; say so in the summary.
136
+ - Confidence drops when evidence was not run (V2/V3 not run, no coverage matrix, partial scope).
137
+ - Independence is separate from the verdict. A review by the same model family as an author is
138
+ labelled same-family and never presented as independent; it is not blocked as a matter of
139
+ authority, and the user decides whether it is enough.
140
+
141
+ ## Findings across a re-review
142
+ A re-review keeps the earlier numbering and reports only the changed scope. Each earlier finding
143
+ gets one state: `fixed` (evidence), `open`, `accepted by the user` (with the answer),
144
+ `rejected by the reviewer` (with the reason) or `superseded by #n`. New findings take new
145
+ numbers. At most two fix rounds, then escalate to the user with what remains.
146
+
147
+ ## Wording
148
+ Never use shape nicknames (left chair, right chair, bed, book shelf) in text meant for business
149
+ stakeholders; describe the concern in plain words. Reviewer-only sections may use them.
@@ -0,0 +1,59 @@
1
+ # Review questions
2
+
3
+ Questions to ask while reviewing, by subject, and what separates a fact from a view in
4
+ different domains. Adapted from the "Questions to Ask During Validation" and "Checklist
5
+ Questions by Domain" sections of TrogonStack `eventmodeling-validating-event-models-checklist`
6
+ (see `provenance.md`), mapped to Screenplay constructs. Use them to find the evidence a check
7
+ needs; a "no" is a finding only when it has a business consequence.
8
+
9
+ ## For each kind of event source
10
+ 1. Do all events appended `for` this identity describe one business thing (checklist B2, B4)?
11
+ 2. Could these events occur in any order, or is the sequence important? If it matters, which
12
+ constraint or `then error` specification pins it (F2, T3)?
13
+ 3. Is every event a fact that actually happened, in the words the business uses (C1, C2)?
14
+
15
+ ## For each command
16
+ 1. Who can reach it, through which screen action, form, reaction or capture, and which policy
17
+ lets them (G1, G7)?
18
+ 2. Which fact does it produce, or which refusal does it document, and where is the refusal
19
+ pinned (S5, T3)?
20
+ 3. Which stored state does its rule need, read through `reads`, and is the rule marked as not
21
+ enforced when the model cannot enforce it (E3)?
22
+ 4. Does it ask for the whole entity again, or for one business change (S3)?
23
+
24
+ ## For each read model
25
+ 1. Which projection or reducer builds it, and is it the only builder (D7, H3)?
26
+ 2. Which screen, reaction or caller reads it, and what decision does the reader make from each
27
+ field (A6)?
28
+ 3. Could its figures change because a rule changed, without rewriting stored facts (D3)?
29
+ 4. Does one query shape serve one question (H1)?
30
+
31
+ ## For each slice and the model as a whole
32
+ 1. Does each slice depend on other slices only through event contracts and `invokes` (F7)?
33
+ 2. Could two people work on two slices at the same time without reading each other's
34
+ declarations, given only the events' fields (A8)?
35
+ 3. Is every shared artifact an event contract or a concept (B6)?
36
+ 4. Does a cycle exist anywhere (F6)?
37
+
38
+ ## Facts versus views, by domain
39
+ The principle is the same everywhere: immutable facts are events, calculated results are read
40
+ models; a decided figure that matters later is a fact.
41
+
42
+ | Domain | Facts (events) | Not events (views or derived) |
43
+ |---|---|---|
44
+ | Marina berths | `BerthRegistered`, `BerthAssigned`, `BoatArrived`, `BoatDeparted`, `SeasonFeeAssessed` | berth occupancy, free berths by length, days occupied this season |
45
+ | Invoicing | `InvoiceRegistered`, `InvoiceSent`, `PaymentReceived`, `InvoiceWrittenOff` | outstanding balance, overdue state (compare the stored due date at the edge), ageing buckets |
46
+ | Memberships | `MemberJoined`, `MembershipRenewed`, `MembershipLapsed`, `MembershipUpgraded` | active member count, renewal rate, time as a member |
47
+ | Course enrolment | `StudentEnrolled`, `PlaceOffered`, `PlaceDeclined`, `EnrolmentWithdrawn` | places left, waiting-list position, completion percentage |
48
+ | Equipment hire | `HireReserved`, `ItemCollected`, `ItemReturned`, `DamageAssessed` | availability calendar, utilisation, hire days to date |
49
+
50
+ `DamageAssessed` and `SeasonFeeAssessed` are decided figures: the business decided them at a
51
+ moment, and they are recorded. A running total of fees is not.
52
+
53
+ ## Patterns to recognise while reading
54
+ | You see | Ask | If the answer is "no" |
55
+ |---|---|---|
56
+ | `TotalComputed`, `BalanceUpdated` | Is this immutable and caused by a person or system action? | It is a view; move it to a projection |
57
+ | One wide view used by several commands' `require` lines | Could two of those commands be changed by different people without touching each other? | Give each rule its own `reads` (anti-patterns: shared decision state) |
58
+ | A flag a command writes | Is it only needed while deciding? | Derive it from facts; do not store it |
59
+ | A read-model field with no mapping | Where does it come from? | An event or a mapping is missing, or the field goes (A1) |
@@ -0,0 +1,255 @@
1
+ # Worked example: reviewing a marina berth model
2
+
3
+ A small model with one seeded design defect, reviewed in critic mode. The model file is
4
+ `berths.play`; line numbers below refer to it. The report follows `report-template.md` and is
5
+ shortened: it shows the flagged checks of each phase and elides the passing ones, which a real
6
+ report lists in full. The model compiles in design mode: the `ListBerths` list query blocks V3
7
+ (`PLAY0268`), which is why the report below does not run V3.
8
+
9
+ ## The model under review
10
+
11
+ ```screenplay
12
+ concept BerthId : Uuid
13
+ concept BerthName : String
14
+ concept BoatLength : Int
15
+ policy IsHarbourmaster
16
+ require role "Harbourmaster"
17
+
18
+ module Moorings
19
+ feature Berths
20
+ slice StateChange RegisterBerth
21
+ description "A harbourmaster adds a berth to the marina."
22
+ command RegisterBerth
23
+ berthId BerthId identifier
24
+ name BerthName
25
+ maxLength BoatLength
26
+ authorize IsHarbourmaster
27
+ produces event BerthRegistered
28
+ for berthId
29
+ name BerthName = name
30
+ maxLength BoatLength = maxLength
31
+ specification RegisteringABerth
32
+ given caller
33
+ authenticated
34
+ role "Harbourmaster"
35
+ when RegisterBerth
36
+ berthId = "9c858901-8a57-4791-81fe-4c455b099bc9"
37
+ name = "A-12"
38
+ maxLength = 9
39
+ then BerthRegistered
40
+ for "9c858901-8a57-4791-81fe-4c455b099bc9"
41
+ name = "A-12"
42
+ maxLength = 9
43
+
44
+ slice StateChange UpdateBerth
45
+ description "A harbourmaster edits a berth."
46
+ command UpdateBerth
47
+ berthId BerthId identifier
48
+ name BerthName
49
+ maxLength BoatLength
50
+ authorize IsHarbourmaster
51
+ produces event BerthUpdated
52
+ for berthId
53
+ name BerthName = name
54
+ maxLength BoatLength = maxLength
55
+
56
+ slice StateView BerthList
57
+ readmodel BerthSummary
58
+ berthId BerthId
59
+ name BerthName
60
+ maxLength BoatLength
61
+ projection BerthList => BerthSummary
62
+ from BerthRegistered
63
+ berthId = $eventSourceId
64
+ from BerthUpdated
65
+ berthId = $eventSourceId
66
+ query ListBerths => BerthSummary[]
67
+ ```
68
+
69
+ It compiles with warnings as errors (V1 passes), which says nothing about meaning.
70
+
71
+ ## Phase 1: element sweep (working notes)
72
+ ```text
73
+ S1 RegisterBerth gate IsHarbourmaster (command); denied spec NONE
74
+ S1 UpdateBerth gate IsHarbourmaster (command); denied spec NONE
75
+ S1 ListBerths gate none (no authorize on query); n/a: nothing to deny
76
+ S2 BerthRegistered properties name, maxLength; same as creation event: n/a (it is the creation event)
77
+ S2 BerthUpdated properties name, maxLength; same as creation event: yes
78
+ S3 UpdateBerth form-named: yes
79
+ S3 BerthUpdated form-named: yes (<Noun>Updated)
80
+ S5 RegisterBerth produces 1 (BerthRegistered); state change none -> registered; requires none
81
+ S5 UpdateBerth produces 1 (BerthUpdated); state change none; requires none (non-creating)
82
+ S6 BerthRegistered.berthId not in payload (identity comes from `for`): ok
83
+ S7 RegisterBerth StateChange: command, event, specs RegisteringABerth
84
+ S7 UpdateBerth StateChange: command, event, specs no specs
85
+ S7 BerthList StateView: projection, query; specs no specs
86
+ ```
87
+
88
+ ## Phase 2: entity walk (Berth)
89
+ ```text
90
+ T1 first fact: BerthRegistered, by RegisterBerth
91
+ T2 allowed: UpdateBerth: registered -> BerthUpdated -> registered (no state needed)
92
+ T3 refused: UpdateBerth before the berth exists: not refused, spec NONE
93
+ T4 final: none declared; can a berth be retired? (business question)
94
+ T5 alternative paths: none modeled
95
+ ```
96
+
97
+ ## Phase 3: field lineage
98
+ ```text
99
+ BerthSummary.berthId <- $eventSourceId (BerthRegistered, BerthUpdated) ok
100
+ BerthSummary.name <- BerthRegistered.name, BerthUpdated.name (AutoMap) ok (silent: counted)
101
+ BerthSummary.maxLength <- BerthRegistered.maxLength, BerthUpdated.maxLength ok (silent: counted)
102
+ BerthRegistered.name <- RegisterBerth.name ok
103
+ BerthUpdated.name <- UpdateBerth.name ok
104
+ BerthUpdated.maxLength <- UpdateBerth.maxLength ok
105
+ RegisterBerth.name -> BerthRegistered.name ok
106
+ Every event has a consumer (BerthList). Terminal reason: none needed.
107
+ ```
108
+
109
+ ## The report (excerpt)
110
+ ```text
111
+ # Model review: Moorings / Berths
112
+ Mode: design Stance: critic Review kind: independent
113
+ Source identity: 4f1c2ab+3e9a1c0b7d42 (source-identity helper)
114
+ Scope: feature Moorings/Berths
115
+ V1 authorable: pass (screenplay 4.64.0, 1 file)
116
+ V2 executable diagnostics: not run: design mode
117
+ V3 binding-ready: not run: design mode
118
+ V4 reference specs run: not run: no route
119
+ V5 rendered, target-verified: admission not run: design mode; publication, build, tests not run: design mode
120
+
121
+ ## Phase 1: Element sweep (7 checks)
122
+ Check S1: gated commands have a denial spec
123
+ Status: FINDING #2
124
+ Element: Moorings/Berths/StateChange RegisterBerth/command RegisterBerth, Moorings/Berths/StateChange UpdateBerth/command UpdateBerth
125
+ Evidence: denied spec NONE for both (berths.play:11, berths.play:35)
126
+
127
+ Check S2: events do not repeat the creation event
128
+ Status: FINDING #1
129
+ Element: Moorings/Berths/StateChange UpdateBerth/event BerthUpdated (berths.play:40)
130
+ Evidence: properties name, maxLength equal BerthRegistered's
131
+
132
+ ## Anti-patterns identified
133
+ MAJOR: Field-copy event, at UpdateBerth/event BerthUpdated
134
+ Problem: BerthUpdated records that data changed, not why; no rule can attach to a reason, and
135
+ consumers cannot tell a typo fix from a longer limit.
136
+ Violates: S2, S3, S5, T3, C7
137
+ Fix: replace UpdateBerth with one command per business change (see below)
138
+
139
+ ## Findings
140
+ | # | Severity | Kind | Address | Rule | Consequence | Fix |
141
+ | 1 | major | defect | Moorings/Berths/StateChange UpdateBerth (berths.play:33), command UpdateBerth, event BerthUpdated | S2, S3, S5 (D) | Root cause. The only way to change a berth resends name and maxLength: the reason is lost, nothing can refuse a change, and no rule or reaction can attach to it. Symptoms: no precondition, no spec, not pinned as a decision | One command and event per business change, for example RaiseBerthLengthLimit and BerthLengthLimitRaised; remove UpdateBerth and BerthUpdated; do not add BerthUpdated to constraints or projections |
142
+ | 2 | major | defect | command RegisterBerth (berths.play:11), command UpdateBerth (berths.play:35) | S1, G7 (D) | A boat owner calling either command is not shown to be refused | Add a `then denied` specification with a caller who lacks the role, per command |
143
+ | 3 | minor | defect | slice StateView BerthList (berths.play:45) | S7 (D) | The view has no specification; a mapping change goes unnoticed | A view specification from a registered berth |
144
+ | 4 | minor | question | event BerthRegistered | T4 | Can a berth be retired or withdrawn from service? | Ask the harbourmaster |
145
+
146
+ ## Edit requests
147
+ | 1 | finding 1 | UpdateBerth, BerthUpdated, projection BerthList `from BerthUpdated` | replace by RaiseBerthLengthLimit / BerthLengthLimitRaised | identity-affecting (removal and new event): owning session | no persisted history yet, so removal is safe; confirm first |
148
+
149
+ ## Business questions
150
+ 1. Harbourmaster, berth changes: when something about a berth changes, is it ever only a
151
+ correction of what was typed, or is it always a real change like a longer pontoon?
152
+ Why it matters: a correction and a real change are different facts.
153
+
154
+ ## Final questions
155
+ Q1 yes. Q2 yes. Q3 no (the retirement rule is unknown).
156
+
157
+ ## Verdict
158
+ Status: PASS WITH WARNINGS (no critical finding; two major)
159
+ Ready to accept (P6): NO - fix finding 1 and finding 2 first
160
+ Confidence: medium (design mode; V2 to V5 not run)
161
+ ```
162
+
163
+ ## After the fix
164
+ The same scope after the modeler applied the edit request and added denial specifications.
165
+ The review is re-run only on the changed scope. The query contract is unchanged: no edit request asked for a different query, so `ListBerths => BerthSummary[]` stays. This document compiles (design mode), but the list query blocks V3 (binding reports PLAY0268, a query must declare one caller-supplied `by` argument), so its specifications do not run here. Adding a keyed `BerthById` next to the list would not unblock binding; replacing the list would change the contract and needs its own domain-justified edit request.
166
+
167
+ ```screenplay
168
+ concept BerthId : Uuid
169
+ concept BerthName : String
170
+ concept BoatLength : Int
171
+ policy IsHarbourmaster
172
+ require role "Harbourmaster"
173
+
174
+ module Moorings
175
+ feature Berths
176
+ slice StateChange RegisterBerth
177
+ description "A harbourmaster adds a berth to the marina."
178
+ command RegisterBerth
179
+ berthId BerthId identifier
180
+ name BerthName
181
+ maxLength BoatLength
182
+ authorize IsHarbourmaster
183
+ produces event BerthRegistered
184
+ for berthId
185
+ name BerthName = name
186
+ maxLength BoatLength = maxLength
187
+ specification RegisteringABerth
188
+ given caller
189
+ authenticated
190
+ role "Harbourmaster"
191
+ when RegisterBerth
192
+ berthId = "9c858901-8a57-4791-81fe-4c455b099bc9"
193
+ name = "A-12"
194
+ maxLength = 9
195
+ then BerthRegistered
196
+ for "9c858901-8a57-4791-81fe-4c455b099bc9"
197
+ name = "A-12"
198
+ maxLength = 9
199
+ specification RefusingARegistrationFromAnOwner
200
+ given caller
201
+ authenticated
202
+ role "BoatOwner"
203
+ when RegisterBerth
204
+ berthId = "9c858901-8a57-4791-81fe-4c455b099bc9"
205
+ name = "A-12"
206
+ maxLength = 9
207
+ then denied
208
+
209
+ slice StateChange RaiseBerthLengthLimit
210
+ description "A harbourmaster records that a berth now takes longer boats, for example after the pontoon was extended."
211
+ command RaiseBerthLengthLimit
212
+ berthId BerthId identifier
213
+ newMaxLength BoatLength
214
+ authorize IsHarbourmaster
215
+ produces event BerthLengthLimitRaised
216
+ for berthId
217
+ maxLength BoatLength = newMaxLength
218
+ specification RaisingTheLimit
219
+ given caller
220
+ authenticated
221
+ role "Harbourmaster"
222
+ given BerthRegistered
223
+ for "9c858901-8a57-4791-81fe-4c455b099bc9"
224
+ name = "A-12"
225
+ maxLength = 9
226
+ when RaiseBerthLengthLimit
227
+ berthId = "9c858901-8a57-4791-81fe-4c455b099bc9"
228
+ newMaxLength = 12
229
+ then BerthLengthLimitRaised
230
+ for "9c858901-8a57-4791-81fe-4c455b099bc9"
231
+ maxLength = 12
232
+ specification RefusingARaiseFromAnOwner
233
+ given caller
234
+ authenticated
235
+ role "BoatOwner"
236
+ when RaiseBerthLengthLimit
237
+ berthId = "9c858901-8a57-4791-81fe-4c455b099bc9"
238
+ newMaxLength = 12
239
+ then denied
240
+
241
+ slice StateView BerthList
242
+ readmodel BerthSummary
243
+ berthId BerthId
244
+ name BerthName
245
+ maxLength BoatLength
246
+ projection BerthList => BerthSummary
247
+ from BerthRegistered
248
+ berthId = $eventSourceId
249
+ from BerthLengthLimitRaised
250
+ berthId = $eventSourceId
251
+ query ListBerths => BerthSummary[]
252
+ ```
253
+
254
+ The re-review marks finding 1 `fixed` (the event names the reason and carries one property), finding
255
+ 2 `fixed` for both commands, and leaves finding 3 open: the view still has no specification. It reports no other contract change, because there is none; had the list query been replaced, the re-review would flag it as an unrequested change.
@@ -0,0 +1,13 @@
1
+ {
2
+ "skill": "cratis-screenplay-model-review",
3
+ "input": "Review the marina berth .play model before we accept it: check the model and report findings, do not change anything.",
4
+ "fixtures": [],
5
+ "assertions": [
6
+ { "kind": "skill-contains", "value": "PASS WITH WARNINGS" },
7
+ { "kind": "skill-contains", "value": "Every finding is pinned to one declaration" },
8
+ { "kind": "skill-contains", "value": "edit request" },
9
+ { "kind": "skill-contains", "value": "business-question" },
10
+ { "kind": "skill-contains", "value": "Screenplay#393" },
11
+ { "kind": "skill-contains", "value": "entity walk" }
12
+ ]
13
+ }
@@ -0,0 +1,32 @@
1
+ Copyright (c) Cratis. All rights reserved.
2
+ Licensed under the MIT license. See LICENSE file in the canonical Cratis/AI repository for full license information.
3
+
4
+ ## Third-party notices
5
+
6
+ Portions of this skill (the per-phase Input / Carry-forward / Gate structure, the interview
7
+ phase, the interview trail, mid-workflow entry, the final output list and the quality checklist)
8
+ are adapted from TrogonStack/agentskills, plugin `trogonstack-eventmodeling`, commit
9
+ 7b249d3ee42d8b7e11fa564141ebd5fbc37aadf1. The items are listed in `references/provenance.md`.
10
+ That work is licensed under the MIT License, reproduced in full below.
11
+
12
+ MIT License
13
+
14
+ Copyright (c) 2025 Straw Hat, LLC
15
+
16
+ Permission is hereby granted, free of charge, to any person obtaining a copy
17
+ of this software and associated documentation files (the "Software"), to deal
18
+ in the Software without restriction, including without limitation the rights
19
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
20
+ copies of the Software, and to permit persons to whom the Software is
21
+ furnished to do so, subject to the following conditions:
22
+
23
+ The above copyright notice and this permission notice shall be included in all
24
+ copies or substantial portions of the Software.
25
+
26
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
27
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
28
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
29
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
30
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
31
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
32
+ SOFTWARE.