@cratis/pi 7.51.0 → 7.51.2

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 (162) hide show
  1. package/package/corpus/harnesses/copilot/instructions/application-profile.instructions.md +15 -1
  2. package/package/corpus/harnesses/copilot/instructions/authoring-skills.instructions.md +1 -1
  3. package/package/corpus/harnesses/copilot/instructions/cratis-folder-is-configuration.instructions.md +3 -1
  4. package/package/corpus/harnesses/copilot/instructions/exit-codes-and-wrappers.instructions.md +7 -1
  5. package/package/corpus/harnesses/copilot/instructions/guards-and-fuses.instructions.md +7 -1
  6. package/package/corpus/harnesses/pi/extensions/shared/rules.ts +9 -1
  7. package/package/corpus/rules/application-profile.md +15 -1
  8. package/package/corpus/rules/authoring-skills.md +1 -1
  9. package/package/corpus/rules/cratis-folder-is-configuration.md +3 -1
  10. package/package/corpus/rules/exit-codes-and-wrappers.md +7 -1
  11. package/package/corpus/rules/general.md +8 -6
  12. package/package/corpus/rules/guards-and-fuses.md +7 -1
  13. package/package/corpus/skills/cratis-application-slice-conformance/SKILL.md +8 -7
  14. package/package/corpus/skills/cratis-application-slice-conformance/references/checklists.md +1 -1
  15. package/package/corpus/skills/cratis-application-slice-conformance/references/provenance.md +2 -2
  16. package/package/corpus/skills/cratis-application-slice-specifications/SKILL.md +15 -19
  17. package/package/corpus/skills/cratis-application-slice-specifications/references/provenance.md +1 -1
  18. package/package/corpus/skills/cratis-application-slice-specifications/references/query-and-decision-scenarios.md +8 -6
  19. package/package/corpus/skills/cratis-arc-react-page/SKILL.md +10 -14
  20. package/package/corpus/skills/cratis-arc-react-page/references/dialogs.md +4 -2
  21. package/package/corpus/skills/cratis-arc-react-page/references/from-screenplay.md +7 -7
  22. package/package/corpus/skills/cratis-arc-react-page/references/provenance.md +2 -2
  23. package/package/corpus/skills/cratis-arc-react-page/references/queries-and-commands.md +1 -1
  24. package/package/corpus/skills/cratis-arc-react-page/verification.json +0 -2
  25. package/package/corpus/skills/cratis-chronicle-reactor/SKILL.md +15 -19
  26. package/package/corpus/skills/cratis-chronicle-reactor/references/provenance.md +1 -1
  27. package/package/corpus/skills/cratis-chronicle-reactor/references/specifications.md +10 -8
  28. package/package/corpus/skills/cratis-chronicle-read-model-specifications/SKILL.md +7 -7
  29. package/package/corpus/skills/cratis-chronicle-read-model-specifications/references/provenance.md +3 -3
  30. package/package/corpus/skills/cratis-screenplay-automations-and-translations/SKILL.md +30 -28
  31. package/package/corpus/skills/cratis-screenplay-automations-and-translations/references/automation-patterns.md +8 -8
  32. package/package/corpus/skills/cratis-screenplay-automations-and-translations/references/cases-to-specify.md +4 -4
  33. package/package/corpus/skills/cratis-screenplay-automations-and-translations/references/effects-and-idempotency.md +3 -1
  34. package/package/corpus/skills/cratis-screenplay-automations-and-translations/references/provenance.md +1 -14
  35. package/package/corpus/skills/cratis-screenplay-automations-and-translations/references/public-events-and-direction.md +6 -4
  36. package/package/corpus/skills/cratis-screenplay-automations-and-translations/references/realization-and-gap-fill.md +5 -6
  37. package/package/corpus/skills/cratis-screenplay-automations-and-translations/references/todo-list-example.md +11 -12
  38. package/package/corpus/skills/cratis-screenplay-automations-and-translations/references/translate-example.md +3 -3
  39. package/package/corpus/skills/cratis-screenplay-automations-and-translations/references/translation-patterns.md +2 -2
  40. package/package/corpus/skills/cratis-screenplay-captures-and-reactions/SKILL.md +22 -20
  41. package/package/corpus/skills/cratis-screenplay-captures-and-reactions/references/complete-examples.md +1 -1
  42. package/package/corpus/skills/cratis-screenplay-captures-and-reactions/references/invocation-identity.md +9 -10
  43. package/package/corpus/skills/cratis-screenplay-captures-and-reactions/references/refusals-and-redelivery.md +1 -1
  44. package/package/corpus/skills/cratis-screenplay-captures-and-reactions/references/specifying-triggers-and-clock.md +3 -4
  45. package/package/corpus/skills/cratis-screenplay-captures-and-reactions/verification.json +0 -4
  46. package/package/corpus/skills/cratis-screenplay-command-surface/SKILL.md +16 -15
  47. package/package/corpus/skills/cratis-screenplay-command-surface/references/compliance.md +17 -17
  48. package/package/corpus/skills/cratis-screenplay-command-surface/references/context.md +8 -8
  49. package/package/corpus/skills/cratis-screenplay-command-surface/references/enum-numbers.md +8 -12
  50. package/package/corpus/skills/cratis-screenplay-command-surface/references/generated-values-and-responses.md +31 -29
  51. package/package/corpus/skills/cratis-screenplay-command-surface/references/inline-events.md +5 -5
  52. package/package/corpus/skills/cratis-screenplay-command-surface/references/operations.md +2 -2
  53. package/package/corpus/skills/cratis-screenplay-command-surface/references/policy-persona-seed.md +3 -3
  54. package/package/corpus/skills/cratis-screenplay-command-surface/references/shop-generation.md +10 -10
  55. package/package/corpus/skills/cratis-screenplay-command-surface/references/validate-rules.md +9 -7
  56. package/package/corpus/skills/cratis-screenplay-command-surface/verification.json +2 -5
  57. package/package/corpus/skills/cratis-screenplay-discovery/SKILL.md +14 -15
  58. package/package/corpus/skills/cratis-screenplay-discovery/references/facilitation.md +1 -1
  59. package/package/corpus/skills/cratis-screenplay-discovery/references/personas-and-causes.md +1 -1
  60. package/package/corpus/skills/cratis-screenplay-discovery/references/plotting-and-handoff.md +2 -2
  61. package/package/corpus/skills/cratis-screenplay-discovery/references/provenance.md +3 -3
  62. package/package/corpus/skills/cratis-screenplay-event-modeling/SKILL.md +13 -17
  63. package/package/corpus/skills/cratis-screenplay-event-modeling/references/naming-primitives.md +2 -2
  64. package/package/corpus/skills/cratis-screenplay-event-modeling/references/nine-steps.md +2 -2
  65. package/package/corpus/skills/cratis-screenplay-event-modeling/references/parsed-not-runnable.md +11 -12
  66. package/package/corpus/skills/cratis-screenplay-event-modeling/references/provenance.md +2 -2
  67. package/package/corpus/skills/cratis-screenplay-event-modeling/verification.json +0 -4
  68. package/package/corpus/skills/cratis-screenplay-legacy-extraction/SKILL.md +1 -1
  69. package/package/corpus/skills/cratis-screenplay-legacy-extraction/references/evidence-table-template.md +4 -4
  70. package/package/corpus/skills/cratis-screenplay-legacy-extraction/references/generate-notes.md +34 -21
  71. package/package/corpus/skills/cratis-screenplay-legacy-extraction/references/generated-recovery.md +18 -12
  72. package/package/corpus/skills/cratis-screenplay-legacy-extraction/references/prologue-safety.md +7 -7
  73. package/package/corpus/skills/cratis-screenplay-legacy-extraction/references/provenance.md +1 -1
  74. package/package/corpus/skills/cratis-screenplay-legacy-extraction/references/rule-modeling.md +4 -4
  75. package/package/corpus/skills/cratis-screenplay-model-authoring/SKILL.md +24 -29
  76. package/package/corpus/skills/cratis-screenplay-model-authoring/references/choosing-generation.md +1 -2
  77. package/package/corpus/skills/cratis-screenplay-model-authoring/references/language-reference.md +44 -51
  78. package/package/corpus/skills/cratis-screenplay-model-authoring/references/mcp-loop.md +31 -36
  79. package/package/corpus/skills/cratis-screenplay-model-authoring/references/mcp-tools.md +56 -63
  80. package/package/corpus/skills/cratis-screenplay-model-authoring/references/model-notes.md +11 -10
  81. package/package/corpus/skills/cratis-screenplay-model-authoring/references/property-links.md +15 -15
  82. package/package/corpus/skills/cratis-screenplay-model-authoring/references/release-baseline.md +25 -21
  83. package/package/corpus/skills/cratis-screenplay-model-authoring/references/screen-authoring-workflow.md +16 -31
  84. package/package/corpus/skills/cratis-screenplay-model-authoring/verification.json +5 -4
  85. package/package/corpus/skills/cratis-screenplay-model-review/SKILL.md +1 -1
  86. package/package/corpus/skills/cratis-screenplay-model-review/references/checklist.md +3 -3
  87. package/package/corpus/skills/cratis-screenplay-model-review/references/provenance.md +3 -4
  88. package/package/corpus/skills/cratis-screenplay-model-review/references/public-keys-and-routes.md +1 -1
  89. package/package/corpus/skills/cratis-screenplay-model-review/references/report-template.md +7 -5
  90. package/package/corpus/skills/cratis-screenplay-model-review/references/worked-example.md +2 -2
  91. package/package/corpus/skills/cratis-screenplay-modeling-lifecycle/SKILL.md +11 -12
  92. package/package/corpus/skills/cratis-screenplay-modeling-lifecycle/references/code-reading-and-tokens.md +2 -2
  93. package/package/corpus/skills/cratis-screenplay-modeling-lifecycle/references/identity-and-edits.md +1 -1
  94. package/package/corpus/skills/cratis-screenplay-modeling-lifecycle/references/opt-in.md +8 -10
  95. package/package/corpus/skills/cratis-screenplay-modeling-lifecycle/references/provenance.md +6 -6
  96. package/package/corpus/skills/cratis-screenplay-modeling-lifecycle/references/stop-or-assume.md +2 -2
  97. package/package/corpus/skills/cratis-screenplay-modeling-lifecycle/references/verdicts-and-modes.md +1 -1
  98. package/package/corpus/skills/cratis-screenplay-modeling-lifecycle/references/vocabulary-map.md +3 -3
  99. package/package/corpus/skills/cratis-screenplay-modeling-lifecycle/references/worked-example.md +1 -1
  100. package/package/corpus/skills/cratis-screenplay-projections/SKILL.md +11 -22
  101. package/package/corpus/skills/cratis-screenplay-projections/references/pdl-grammar.md +1 -1
  102. package/package/corpus/skills/cratis-screenplay-projections/verification.json +0 -1
  103. package/package/corpus/skills/cratis-screenplay-read-surface/SKILL.md +16 -29
  104. package/package/corpus/skills/cratis-screenplay-read-surface/references/equality-filters.md +14 -18
  105. package/package/corpus/skills/cratis-screenplay-read-surface/references/guarded-actions.md +5 -7
  106. package/package/corpus/skills/cratis-screenplay-read-surface/references/named-keys.md +6 -6
  107. package/package/corpus/skills/cratis-screenplay-read-surface/references/provenance.md +1 -1
  108. package/package/corpus/skills/cratis-screenplay-read-surface/verification.json +1 -2
  109. package/package/corpus/skills/cratis-screenplay-render-and-gap-fill/SKILL.md +18 -19
  110. package/package/corpus/skills/cratis-screenplay-render-and-gap-fill/references/delivery-protocol.md +2 -2
  111. package/package/corpus/skills/cratis-screenplay-render-and-gap-fill/references/gap-fill-handoff.md +6 -6
  112. package/package/corpus/skills/cratis-screenplay-render-and-gap-fill/references/provenance.md +4 -4
  113. package/package/corpus/skills/cratis-screenplay-render-and-gap-fill/references/renderability-gate.md +5 -6
  114. package/package/corpus/skills/cratis-screenplay-render-and-gap-fill/references/worked-example.md +2 -3
  115. package/package/corpus/skills/cratis-screenplay-render-and-gap-fill/verification.json +1 -1
  116. package/package/corpus/skills/cratis-screenplay-scenario-coverage/SKILL.md +13 -15
  117. package/package/corpus/skills/cratis-screenplay-scenario-coverage/references/invoicing-dues-design.md +1 -1
  118. package/package/corpus/skills/cratis-screenplay-scenario-coverage/references/invoicing-dues-example.md +2 -2
  119. package/package/corpus/skills/cratis-screenplay-scenario-coverage/references/provenance.md +4 -6
  120. package/package/corpus/skills/cratis-screenplay-scenario-coverage/references/scenario-catalogue.md +4 -4
  121. package/package/corpus/skills/cratis-screenplay-scenario-coverage/references/scenario-examples.md +3 -3
  122. package/package/corpus/skills/cratis-screenplay-scenario-coverage/references/spec-forms-by-mode.md +11 -9
  123. package/package/corpus/skills/cratis-screenplay-scenario-coverage/references/view-and-story-specs.md +5 -5
  124. package/package/corpus/skills/cratis-screenplay-scenario-coverage/verification.json +0 -1
  125. package/package/corpus/skills/cratis-screenplay-slice-design/SKILL.md +11 -13
  126. package/package/corpus/skills/cratis-screenplay-slice-design/references/read-model-design.md +4 -4
  127. package/package/corpus/skills/cratis-screenplay-slice-design/references/rule-layers.md +6 -4
  128. package/package/corpus/skills/cratis-screenplay-slice-design/references/slicing.md +4 -2
  129. package/package/corpus/skills/cratis-screenplay-slice-design/references/worked-example.md +1 -1
  130. package/package/corpus/skills/cratis-screenplay-specifications/SKILL.md +37 -40
  131. package/package/corpus/skills/cratis-screenplay-specifications/references/actions-beyond-commands.md +10 -15
  132. package/package/corpus/skills/cratis-screenplay-specifications/references/child-ordering.md +14 -12
  133. package/package/corpus/skills/cratis-screenplay-specifications/references/concept-rules.md +1 -1
  134. package/package/corpus/skills/cratis-screenplay-specifications/references/examples-and-routes.md +9 -10
  135. package/package/corpus/skills/cratis-screenplay-specifications/references/generated-fixtures.md +5 -6
  136. package/package/corpus/skills/cratis-screenplay-specifications/references/reactions-and-cascades.md +8 -9
  137. package/package/corpus/skills/cratis-screenplay-specifications/references/source-notes.md +13 -16
  138. package/package/corpus/skills/cratis-screenplay-specifications/references/whitespace-rules.md +15 -13
  139. package/package/corpus/skills/cratis-screenplay-specifications/verification.json +4 -9
  140. package/package/corpus/skills/cratis-screenplay-streams-and-consistency/SKILL.md +29 -29
  141. package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/chronicle-boundaries.md +18 -15
  142. package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/consistency-and-concurrency.md +16 -15
  143. package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/evolution-example.md +1 -1
  144. package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/evolution.md +19 -17
  145. package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/provenance.md +3 -3
  146. package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/stream-patterns.md +1 -1
  147. package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/streams-example.md +2 -2
  148. package/package/corpus/skills/cratis-screenplay-streams-and-consistency/verification.json +2 -3
  149. package/package/corpus/skills/cratis-screenplay-toolchain/references/executable-subset.md +2 -0
  150. package/package/corpus/skills/cratis-screenplay-toolchain/references/pdl-example.md +1 -1
  151. package/package/corpus/skills/cratis-screenplay-toolchain/references/screenplay-contract-exceptions.json +0 -28
  152. package/package/corpus/skills/cratis-screenplay-ui-composition/SKILL.md +21 -26
  153. package/package/corpus/skills/cratis-screenplay-ui-composition/references/guarded-interactions.md +3 -3
  154. package/package/corpus/skills/cratis-screenplay-ui-composition/references/provenance.md +1 -1
  155. package/package/corpus/skills/cratis-screenplay-ui-composition/references/response-continuations.md +10 -10
  156. package/package/corpus/skills/cratis-screenplay-ui-composition/references/screen-composition-contract.md +23 -30
  157. package/package/corpus/skills/cratis-screenplay-ui-composition/references/worked-flow.md +4 -5
  158. package/package/corpus/skills/cratis-screenplay-ui-composition/verification.json +1 -5
  159. package/package.json +1 -1
  160. package/src/index.ts +9 -1
  161. package/package/corpus/skills/cratis-screenplay-captures-and-reactions/references/product-sources.md +0 -15
  162. package/package/corpus/skills/cratis-screenplay-model-authoring/references/provenance.md +0 -13
@@ -26,4 +26,4 @@ by Martin Dilger and Nebulit GmbH (https://nebulit.de), used with the explicit c
26
26
  | `.claude/skills/build-automation/SKILL.md`: reactor checklist: output fields traced to a stated source, skip conditions stated in the contract, repeated-input cases | `SKILL.md` "Specifications" and "Verify" | idea; our own wording kept |
27
27
  | `.claude/skills/build-automation/SKILL.md`: read the slice definition first as the source of truth, build the command handler before the processor, single / conditional / multiple-command processor patterns, no route for an automation, closing checklist (no invented mappings, no invented filters, no guessed fields, idempotency of the command) | `references/slice-delivery-checklist.md` | Adapted closely as an `IReactor` delivery checklist: processors became reactor handlers returning commands or events, the storyline-derived test note became a separate reactor mapping specification. Not adopted: the Emmett reactor, `processor.ts`, processor id, lock and retry configuration, the dead-letter store, `schema.migrate()`, Postgres event store bootstrap, and "no dedicated reactor test" (the field mapping is the contract here) |
28
28
 
29
- The `WithStrictEventSubscription()` scope statement and the scenario sequence-number behavior are verified against Chronicle `v19.32.0` source (`Source/Clients/Testing/ReadModels/ReadModelScenario.cs`, `Source/Clients/Testing/Reactors/ReactorScenario.cs`).
29
+ The `WithStrictEventSubscription()` scope statement and the scenario sequence-number behavior are verified against the Chronicle source (`Source/Clients/Testing/ReadModels/ReadModelScenario.cs`, `Source/Clients/Testing/Reactors/ReactorScenario.cs`).
@@ -3,9 +3,9 @@
3
3
  ## Contents
4
4
 
5
5
  - Specifications
6
- - Routing and produced events — Chronicle 19.50.0 verification
7
- - Read-model setup — Chronicle 19.46.0+
8
- - Exceptions and occurrence time — Chronicle 19.46.0+
6
+ - Routing and produced events
7
+ - Read-model setup
8
+ - Exceptions and occurrence time
9
9
  - Contract coverage
10
10
 
11
11
  ## Specifications
@@ -19,7 +19,7 @@ non-event side effects; for handlers that return events, assert the resulting
19
19
  appends through the scenario's event store. Cover the replay path separately
20
20
  when the reactor has `[OnceOnly]` or `[Replay]` handlers.
21
21
 
22
- ## Routing and produced events — Chronicle 19.50.0 verification
22
+ ## Routing and produced events
23
23
 
24
24
  Scenarios implement `IDisposable`; dispose in `Destroy()`.
25
25
  `Given.ForEventSource(id).OnStream(eventSourceType, eventStreamType, eventStreamId).Events(...)`
@@ -35,9 +35,11 @@ is part of the contract. Per-run `Defaults(clientArtifactsProvider, serviceProvi
35
35
  options)` supports `InMemoryClientArtifactsProvider` and `ExplicitArtifacts`;
36
36
  non-generic `ReactorScenario(reactorId, defaults)` exercises a runtime/fluent reactor.
37
37
  Sources: `Source/Clients/Testing/Reactors/` and `Source/Clients/Testing/Defaults.cs`
38
- at **v19.50.0**.
39
38
 
40
- ## Read-model setup — Chronicle 19.46.0+
39
+
40
+ ## Read-model setup
41
+
42
+ Requires Chronicle 19.46.0 or later for class-based reactor read-model seeding, scenario exception unwrapping and the UTC `EventContext.From` default.
41
43
 
42
44
  Class-based `ReactorScenario<TReactor>` does not build read models from `Given`
43
45
  events, **including passive models**. Seed a pre-built instance in `Establish()`:
@@ -82,7 +84,7 @@ guard applies only when the scenario uses `EventStoreForTesting` (including an
82
84
  explicit instance); an explicitly supplied store of another type and production
83
85
  read-model resolution are unchanged.
84
86
 
85
- ## Exceptions and occurrence time — Chronicle 19.46.0+
87
+ ## Exceptions and occurrence time
86
88
 
87
89
  `Events(...)` rethrows a synchronously throwing handler's **own exception**,
88
90
  unwrapping the `TargetInvocationException` previously surfaced by reflection,
@@ -97,7 +99,7 @@ their supplied offset; the positional constructor does not default `Occurred`.
97
99
  For deterministic time-dependent plain-call specs, supply a fixed occurrence
98
100
  time rather than asserting an exact current instant.
99
101
 
100
- Reverified against **Chronicle tag `v19.50.0`** (the guards began in 19.46.0):
102
+ Sources:
101
103
 
102
104
  - `Source/Clients/Testing/Reactors/ReactorSourceGivenBuilder.cs` and
103
105
  `ReactorScenarioGivenBuilder.cs`: seeding, absence and builder signatures.
@@ -19,15 +19,15 @@ event dispatch, filtering, metadata or read-model wiring contribute proof.
19
19
  For a read-model scenario specification the **`Given` *is* the act**. There
20
20
  is no separate `When`: seeding the events is what makes the projection run.
21
21
 
22
- ## Verified product sources
22
+ ## Product sources
23
23
 
24
- | Package | Version | Purpose |
25
- | --- | --- | --- |
26
- | `Cratis.Chronicle.Testing` | `19.59.4` | `Source/Clients/Testing/ReadModels/ReadModelScenario.cs` at tag `v19.59.4`: scenario selection, self and nominated reducers |
27
- | `Cratis.Chronicle` | `19.59.4` | `Source/Clients/DotNET/Reducers/{SelfReducerMethods,RegisteredReducerReadModel}.cs`, `ReadModels/ReadModelBuilderOwnership.cs` at tag `v19.59.4`: supported forms and ownership |
28
- | `Cratis.Specifications.XUnit` | `4.x` | The `Specification` base and the `ShouldXxx` assertions |
24
+ | Package | Purpose |
25
+ | --- | --- |
26
+ | `Cratis.Chronicle.Testing` | `Source/Clients/Testing/ReadModels/ReadModelScenario.cs`: scenario selection, self and nominated reducers |
27
+ | `Cratis.Chronicle` | `Source/Clients/DotNET/Reducers/{SelfReducerMethods,RegisteredReducerReadModel}.cs`, `ReadModels/ReadModelBuilderOwnership.cs`: supported forms and ownership |
28
+ | `Cratis.Specifications.XUnit` | The `Specification` base and the `ShouldXxx` assertions |
29
29
 
30
- Source: `Source/Clients/Testing/ReadModels/` at **Cratis/Chronicle v19.59.4**.
30
+ Source: `Source/Clients/Testing/ReadModels/` in `Cratis/Chronicle`.
31
31
 
32
32
  ```bash
33
33
  dotnet add package Cratis.Chronicle.Testing
@@ -1,6 +1,6 @@
1
1
  # Provenance
2
2
 
3
- Lineage of the #493 additions to `cratis-chronicle-read-model-specifications`. No TrogonStack material was adapted. Nebulit material is credited below.
3
+ Lineage of the additions to `cratis-chronicle-read-model-specifications`. No TrogonStack material was adapted. Nebulit material is credited below.
4
4
 
5
5
  ## Adapted closely (Martin Dilger and Nebulit GmbH)
6
6
 
@@ -10,6 +10,6 @@ by Martin Dilger and Nebulit GmbH (https://nebulit.de), used with the explicit c
10
10
  | Source file | Used in | How |
11
11
  |---|---|---|
12
12
  | `.claude/skills/build-state-view/SKILL.md`: checklist: every field asserted, every event covered, empty-list case | `SKILL.md` Step 6 | idea; our own wording kept |
13
- | `.claude/skills/build-state-view/SKILL.md`: one specification per contract specification, population on the first event, removal on the end event, assertions on the materialized state, optional storyline-derived read-model chain tests | `references/view-lifecycle-checks.md` | Adapted closely as population, update and removal checks over `ReadModelScenario<TReadModel>`; the partial-update and several-instance checks are ours. Not adopted: SQL insert, update and delete operation patterns, Flyway migrations, `PostgreSQLProjectionSpec` with Testcontainers, route creation and wiring; storyline-derived tests wait for storyline syntax (Screenplay#394), lifecycle spec families stand in |
13
+ | `.claude/skills/build-state-view/SKILL.md`: one specification per contract specification, population on the first event, removal on the end event, assertions on the materialized state, optional storyline-derived read-model chain tests | `references/view-lifecycle-checks.md` | Adapted closely as population, update and removal checks over `ReadModelScenario<TReadModel>`; the partial-update and several-instance checks are ours. Not adopted: SQL insert, update and delete operation patterns, Flyway migrations, `PostgreSQLProjectionSpec` with Testcontainers, route creation and wiring; storyline-derived tests wait for storyline syntax , lifecycle spec families stand in |
14
14
 
15
- The strict-subscription reconciliation is original to Cratis and verified against Chronicle v18.3.0 and v19.32.0.
15
+ The strict-subscription reconciliation is original to Cratis and verified against the Chronicle client.
@@ -15,7 +15,7 @@ protected, what is only recorded, and who acts. Grammar depth is in
15
15
  **Translation crosses an application boundary:** inbound turns outside data or foreign
16
16
  public events into private local facts; outbound publishes private facts as one local public
17
17
  event type. Declare `direction inbound|outbound` when public metadata is used; omission
18
- preserves historical inbound for legacy translations. Private-to-private follow-up is an
18
+ preserves inbound for translations without a declared direction. Private-to-private follow-up is an
19
19
  Automation (`produces` or `invokes`), even when a Chronicle reactor realizes it.
20
20
  Read [public events and direction](references/public-events-and-direction.md) for released
21
21
  ESM v9 forms, event-target folds, publication specifications and the Unsupported capture limit.
@@ -28,19 +28,17 @@ identity, effect and pending-work contract at that point; do not postpone it to
28
28
 
29
29
  ## Tool and realization facts (read before promising anything)
30
30
  - Reactions, clocks, triggers, captures and Automation/Translate slices compile (V1) and bind (V3)
31
- on Screenplay 4.61 or later: the standalone tool and the cratis CLI 3.28.2 or later (3.53.1
32
- bundles 4.137.0). Probed on 3.28.2: the complete examples are `executableReady`. A cratis bundle before 3.28.2
33
- (4.60.1) reported PLAY0268 at binding: report "V3 blocked: PLAY0268 (ESM v6)" and
31
+ as ESM v6: the standalone tool and a CLI whose bundled compiler admits v6. A compiler that
32
+ stops before v6 reports PLAY0268 at binding: report "V3 blocked: PLAY0268 (ESM v6)" and
34
33
  name the tool, never remove them.
35
34
  - The pinned standalone tool runs admitted scenarios through `screenplay test` or MCP
36
35
  `run-specifications`; source validation and render publication do not run V4.
37
- - Stage 4.51.3 refuses Automation/Translate members with STAGE-ESM-024; its direct
38
- planner audits through v7. Deliver that scope as authorized gap-fill
36
+ - A renderer can refuse Automation/Translate members (STAGE-ESM-024) it does not realize.
37
+ Deliver that scope as authorized gap-fill
39
38
  (`references/realization-and-gap-fill.md`).
40
39
  - Reaction `runs as system role "<Role>"` declares an invocation actor (ESM v10).
41
- Without it the invoke has no caller. Historical CLI 3.41.0's 4.114.0 compiler
42
- rejected the syntax (PLAY0137); previous CLI 3.46.1 refused ESM v10
43
- at render admission (CLI-RENDER-004). The CLI/Stage pair (toolchain
40
+ Without it the invoke has no caller. A compiler or renderer that stops before v10
41
+ rejects the syntax (PLAY0137) or refuses it at render admission (CLI-RENDER-004). The CLI/Stage pair (toolchain
44
42
  `references/renderable-subset.md`) renders role/authenticated reaction identity; claim-reading/opaque gates retain STAGE-ESM-034. Checked model/diagnostics: captures-and-reactions
45
43
  `references/invocation-identity.md`.
46
44
 
@@ -71,20 +69,24 @@ Personal data kept in events needs bare `pii` on its concept and a declared purp
71
69
  even when it blocks binding. Never record bearer tokens, magic links or signed URLs as facts
72
70
  (a keyed hash or reference at most), and never put PII on the event-source id.
73
71
 
74
- ## Verified product sources
75
- Tool versions: toolchain `SKILL.md`. Language claims were re-read at Screenplay v4.139.0,
76
- renderer claims at Stage v4.89.1 (`Documentation/reference/reaction-rendering.md:6-98`,
77
- `Source/Rendering.Cratis/Semantics/SemanticVersionFeatureAdmission.cs:25-46`): supported
78
- event-triggered Automation renders; Translate/captures and refused reactions stay gap-fill. The
79
- runtime facts at Arc v22.72.0 and Chronicle v19.50.1. Older reads kept as history:
80
-
81
- | Package | Version | Used for |
82
- | --- | --- | --- |
83
- | Screenplay | v4.66.0 (`c89198b`) | `Documentation/screenplay/{reactions,captures,triggers,specifications,diagnostics}.md`; examples compiled with the standalone tool |
84
- | cratis CLI | v3.28.3 | bundled Screenplay 4.66.0 and Stage 4.24.2 (before 3.28.2: 4.60.1, which gave PLAY0268 on v6 constructs and a false PLAY0285 on cascades, cli#242) |
85
- | Stage | v4.24.2 | admitted ESM v1 to v4; rendered no Automation or Translate slice |
86
- | Arc | v22.72.0 (read; v22.50.5 earlier) | `ExecuteCommandsAsSystemAttribute` (since v20.56.0); mixed events-and-commands reactor returns (since v22.72.0) |
87
- | Chronicle | v19.50.1 (read; v19.32.0 earlier) | `OnceOnlyAttribute`, `ReactorDelivery`, `Documentation/code-analysis/CHR0022.mdx` and `Documentation/reactors/delivery-identity.mdx` |
72
+ ## Product sources
73
+ Tool versions: toolchain `SKILL.md`. Language claims come from Screenplay
74
+ `Documentation/screenplay/{reactions,captures,triggers,specifications,diagnostics}.md`;
75
+ renderer claims from Stage `Documentation/reference/reaction-rendering.md`: supported
76
+ event-triggered Automation renders; Translate/captures and refused reactions stay gap-fill.
77
+ Runtime facts: Arc `ExecuteCommandsAsSystemAttribute` and mixed events-and-commands reactor
78
+ returns; Chronicle `OnceOnlyAttribute`, `ReactorDelivery`, `Documentation/code-analysis/CHR0022.mdx`
79
+ and `Documentation/reactors/delivery-identity.mdx`.
80
+
81
+ Requires Screenplay 4.125.0 or later (`screenplay --version`) for reaction `runs as system role` (ESM v10).
82
+
83
+ Requires Arc 20.56.0 or later for `[ExecuteCommandsAsSystem]`.
84
+
85
+ Requires Arc 22.72.0 or later for a reactor that returns events and commands together; before it, a mixed return is not handled. Stage still refuses a reaction that both `produces` and `invokes` (`STAGE-ESM-037`), so a mixed reaction stays authorized gap-fill whatever the Arc release.
86
+
87
+ Requires Screenplay 4.105.0 or later (`screenplay --version`) for list queries (`=> Item[]`); before it a list query is refused with PLAY0268.
88
+
89
+ Requires Screenplay 4.124.0 or later (`screenplay --version`) for `--check privilege` (PLAY0652).
88
90
 
89
91
  Read `SKILL.md` in `cratis-screenplay-toolchain` when selecting a tool; read the installed versions with `screenplay --version` and `cratis --version`. Reverify before claiming
90
92
  another version behaves the same.
@@ -141,7 +143,7 @@ or actor that nobody confirmed. Read `references/worked-integration.md` when you
141
143
  system principal only to reactors marked `[ExecuteCommandsAsSystem]`; without
142
144
  it there is no principal and `[Authorize]`/`[Roles]` deny. `runs as` covers returned
143
145
  or invoked commands, not imperative pipeline calls, reads, productions or causation.
144
- On Screenplay 4.127.0 run `--check privilege --warnaserror` (PLAY0652) for
146
+ Run `--check privilege --warnaserror` (PLAY0652) for
145
147
  confused-deputy paths: every trigger-event producer must require **all** declared
146
148
  system roles. Ungated commands/captures/reaction productions warn; opaque gates
147
149
  are information, not proven safe. An OR alternative does not require a role.
@@ -160,7 +162,7 @@ or actor that nobody confirmed. Read `references/worked-integration.md` when you
160
162
  named cases to `cratis-screenplay-scenario-coverage`. Produce the audit in `references/audit-format.md`.
161
163
 
162
164
  ## Rules
163
- **Compiler contracts** (diagnostics at 4.66.0)
165
+ **Compiler contracts** (diagnostics)
164
166
  - No inline `produces event` in a reaction (PLAY0474); declare reaction-produced events in the slice.
165
167
  - Effects sit under a trigger; `description`, `where` and current `runs as` are reaction-level; one `where` per
166
168
  reaction (PLAY0252); a trigger may not repeat (PLAY0253).
@@ -171,7 +173,7 @@ or actor that nobody confirmed. Read `references/worked-integration.md` when you
171
173
  separate binder check.
172
174
  - A trigger with `reads` that `produces` directly fails binding: decide in a command. `reads` never protects.
173
175
  - An authorized command exercised in a spec without `given caller` is PLAY0389 at binding.
174
- - A list query (`=> Item[]`) binds (Screenplay 4.105.0+; a snapshot list is not rendered, `STAGE-ESM-010`);
176
+ - A list query (`=> Item[]`) binds (a snapshot list is not rendered, `STAGE-ESM-010`);
175
177
  a clock sweep that iterates items needs a code body the reference does not run
176
178
  (`references/todo-list-example.md`).
177
179
 
@@ -203,8 +205,8 @@ direct effect states "not applicable: no queue" with its reason (per-chain quest
203
205
  Never report a verdict without the tool and version that produced it.
204
206
 
205
207
  ## Verify
206
- - V1 and V3 per `cratis-screenplay-toolchain`, each with tool and version. On a cratis before 3.28.2
207
- bundle report "V3 blocked: PLAY0268 (ESM v6)". Current admitted scenarios use
208
+ - V1 and V3 per `cratis-screenplay-toolchain`, each with tool and version. When the bundled compiler stops before v6,
209
+ report "V3 blocked: PLAY0268 (ESM v6)". Current admitted scenarios use
208
210
  standalone `screenplay test`/MCP for V4; unsupported or unbound is not passed.
209
211
  - For each external source and type: its translation, or an explicit out-of-scope reason; check
210
212
  target-field completeness as well as source-field dispositions.
@@ -13,7 +13,7 @@
13
13
  - 9. Fan-out
14
14
  - 10. Long-running process shapes
15
15
 
16
- Complete compiled example: `todo-list-example.md` (binds on Screenplay 4.66.0 and later; the list query
16
+ Complete compiled example: `todo-list-example.md` (binds as ESM v6; the list query
17
17
  excerpt binds too, and the retry sweep that needs code is shown as a marked excerpt).
18
18
 
19
19
  ## 1. Deciding whether it is an automation
@@ -45,11 +45,11 @@ Outcomes:
45
45
  - A projection that adds an item `from <OpeningFact>` and removes it with
46
46
  `remove with <ClosingFact>`. Several facts may open or close; they need not match one to one.
47
47
  - A keyed query (`…ById => Item optional` + `by itemId`) for specs and executable scope; a
48
- list query for the visible queue (`=> Item[]` binds since Screenplay 4.105.0; a snapshot list is refused by Stage, `STAGE-ESM-010`).
48
+ list query for the visible queue (`=> Item[]` binds on Screenplay 4.105.0 or later; a snapshot list is refused by Stage, `STAGE-ESM-010`).
49
49
  - A reaction `when <OpeningFact>` that invokes the command producing the closing fact.
50
50
  The trigger may `reads` the item view to document its input; that is not protection.
51
51
  - A retry sweep on a clock reads the whole view (no `by` on clock reads). Iterating its items
52
- declaratively (`for each <View>`) is reserved syntax; at Screenplay 4.139.0 the sweep needs a code body,
52
+ declaratively (`for each <View>`) is reserved syntax; the sweep needs a code body,
53
53
  which the reference never runs. Durable fan-out is outside the language (Screenplay#286).
54
54
  - Specify the list as a small story: empty -> item present (`then query …ById`) -> closed
55
55
  (`when append <Closing>` + `then no readmodel … for`), plus "not opened" for facts that
@@ -69,13 +69,13 @@ When a todo list is not needed: the effect is immediate, internal and cannot fai
69
69
  | caller | n/a | declared reaction `runs as` actor (ESM v10), otherwise none |
70
70
 
71
71
  ## 4. The actor behind an invoke
72
- Screenplay 4.125.0 declares the actor with reaction-level `runs as system role
72
+ The actor is declared with reaction-level `runs as system role
73
73
  "<Role>"` (ESM v10); without it a gated invocation has no caller and denies.
74
74
  `given caller` is not an invocation actor. Role requirements remain enforced;
75
- claim conditions for this system principal remain unknown. Historical CLI 3.41.0's
76
- older compiler rejected the syntax (PLAY0137). The CLI/Stage pair (toolchain
75
+ claim conditions for this system principal remain unknown. A compiler that stops before v10
76
+ rejects the syntax (PLAY0137). The CLI/Stage pair (toolchain
77
77
  `references/renderable-subset.md`) renders role/authenticated reaction identity; claim-reading/opaque gates retain STAGE-ESM-034.
78
- Previous CLI 3.46.1 refused v10 at its version gate.
78
+ A renderer that stops before v10 refuses it at its version gate.
79
79
  Use the checked model in captures-and-reactions `references/invocation-identity.md`.
80
80
  Arc gap-fill uses `[ExecuteCommandsAsSystem("<role>")]` for returned commands,
81
81
  not identity inferred from prose or an imperative pipeline call.
@@ -90,7 +90,7 @@ Decide and record one of:
90
90
  should refuse it.
91
91
  3. **Gated command + declared trusted actor** - keep the service-role policy and
92
92
  declare matching `runs as system role` on the reaction. Reference-test the
93
- scenario with standalone 4.125.0; separately record CLI/Stage target refusal.
93
+ scenario with a standalone compiler that admits v10; separately record CLI/Stage target refusal.
94
94
  A missing actor must not be excused by removing the gate or inventing a caller.
95
95
  Never remove an existing gate only to make a reaction spec pass.
96
96
  Omitting an HTTP route is not an authorization proof: the exposure requirement stays a target
@@ -16,7 +16,7 @@ One spec in the slice does not cover the others.
16
16
  | queue opens / closes | item appears, item disappears | `then query …ById`; `when append <Closing>` + `then no readmodel … for` |
17
17
  | already done | trigger re-delivered after the result exists | `given <Result>` + `when <Command>` -> `then error "<fixed constraint message>"` |
18
18
  | invoked command rejects | validation or constraint refuses | command spec in its StateChange slice; record what the queue shows afterwards |
19
- | no declared actor | invoked command is gated | specify its denial; for the trusted path declare reaction `runs as system role` and reference-test with standalone 4.125.0 |
19
+ | no declared actor | invoked command is gated | specify its denial; for the trusted path declare reaction `runs as system role` and reference-test with a standalone compiler that admits v10 |
20
20
  | clock boundary | due exactly at the instant, just before, just after | `given clock` + `when clock`; boundary semantics are contested in the docs, mark the expectation as an assumption |
21
21
  | each branch | does every filter and conditional production have both outcomes? | concrete triggering and non-triggering values; assert the resulting facts or view |
22
22
  | denied actor | every command and query under an inherited module/feature `authorize` needs its own denial; also, can an unauthorized caller reach a gated invoked command by another origin? | command spec with otherwise-valid inputs, `given caller` carrying the wrong role/claim (or no caller) and `then denied`; separate from the caller-less reaction gap |
@@ -61,9 +61,9 @@ One spec in the slice does not cover the others.
61
61
  - Current admitted Automation/Translate specifications run through standalone
62
62
  `screenplay test` or MCP `run-specifications`. Validate/render alone is not V4;
63
63
  report unsupported/unbound separately from passing scenarios.
64
- - With Screenplay 4.66.0 (standalone or cratis 3.28.2), a command spec lists the cascade (v6 semantics: after
65
- `when <Command>`, `then` lists every new fact, including reaction appends). Only when a
66
- cratis before 3.28.2 bundle (4.60.1) is the V1 tool does it report a false PLAY0285 on a cascade (cli#242):
64
+ - A command spec lists the cascade (v6 semantics: after
65
+ `when <Command>`, `then` lists every new fact, including reaction appends). Only when the V1
66
+ tool's compiler stops before v6 does it report a false PLAY0285 on a cascade:
67
67
  then keep the cascade out of the command spec, specify it in the Automation slice
68
68
  (`when append <Trigger>`) and record the expectation. See `cratis-screenplay-scenario-coverage`.
69
69
  - `given capture` never persists between specs: state the baseline in each spec that needs it.
@@ -27,13 +27,15 @@ key; write a reconciliation case.
27
27
 
28
28
  ## Refusal disposition and redelivery
29
29
 
30
- At Screenplay 4.125.0 an invocation can state ordered `on refused` selectors for
30
+ An invocation can state ordered `on refused` selectors for
31
31
  validation, constraint (optionally named) or explicit authorization denial.
32
32
  Bare refusal does not include authorization. A matching branch declares a fact
33
33
  or leaf `acknowledge`; `$refusal.reason`/`.message` are String details and
34
34
  `.constraint` belongs only to constraint selectors. This is **authoring-only**
35
35
  (PLAY0268), not evidence that a duplicate was safely acknowledged at runtime.
36
36
 
37
+ Requires Screenplay 4.81.0 or later (`screenplay --version`) for `on refused` selectors and `$refusal` values.
38
+
37
39
  Recovery syntax `when redelivered <Event> to <Reaction>` selects exactly one
38
40
  existing given occurrence; it is not append or replay. `then no events` makes a
39
41
  no-new-facts contract explicit but remains unadmitted too. Full selectors,
@@ -22,7 +22,7 @@ by Martin Dilger and Nebulit GmbH (https://nebulit.de), used with the explicit c
22
22
 
23
23
  | Source file | Used in | How |
24
24
  |---|---|---|
25
- | `.claude/skills/eventmodeling-designing-automation-chains/SKILL.md`: resolve the chain when introduced; exhaustive per-automation verification | `SKILL.md` intro and "Gate", `references/audit-format.md` | restored from #493; the six verification questions adapted closely as "Per-chain questions", translated to Screenplay (no board, no `validate_model`) |
25
+ | `.claude/skills/eventmodeling-designing-automation-chains/SKILL.md`: resolve the chain when introduced; exhaustive per-automation verification | `SKILL.md` intro and "Gate", `references/audit-format.md` | the six verification questions adapted closely as "Per-chain questions", translated to Screenplay (no board, no `validate_model`) |
26
26
  | same: pending membership not status; opening and closing events | `references/automation-patterns.md` section 2, `references/audit-format.md` question 6 | adapted closely; our todo-list example kept |
27
27
  | same: worker only for a new decision; redundant second stage and the `Synced` tell | `references/automation-patterns.md` section 7 "Redundant second stage" | adapted closely, marina berth example in place of Martin Dilger and Nebulit GmbH's |
28
28
  | same: silently skipping a missing target | `SKILL.md` "Gate", `references/audit-format.md` | idea inverted: an absent target is an unresolved dependency |
@@ -35,19 +35,6 @@ by Martin Dilger and Nebulit GmbH (https://nebulit.de), used with the explicit c
35
35
  ## Carried forward
36
36
  `references/automation-patterns.md`, `translation-patterns.md`, `effects-and-idempotency.md`,
37
37
  `cases-to-specify.md` and both examples come from the earlier Cratis drafts of this skill.
38
- Changes in this version: the examples are complete fenced documents that compile (the translate
39
- example's anonymous-booking spec gained the `given caller` PLAY0389 requires; the todo-list
40
- example's list query, `reads` and retry sweep moved to marked design-only excerpts so the core
41
- binds); tool-qualified verdict text; the trusted-actor text now names `[ExecuteCommandsAsSystem]`
42
- (Arc v20.56.0). Actor syntax was reverified at Screenplay v4.125.0
43
- `reactions.md`, `ReactionIdentityParser.cs`, `ReactionRefusalValidator.cs` and the
44
- binder's v10 selection; the checked scenario passed reference execution. CLI
45
- 3.41.0's older parser and Stage 4.51.3's v7 planner were historical target limits.
46
- Previous CLI 3.46.1 refused v10 at its version gate. The CLI/Stage pair
47
- (toolchain `references/renderable-subset.md`) renders role/authenticated reaction identity; claim-reading/opaque gates retain
48
- STAGE-ESM-034 (Stage `v4.89.1:Documentation/reference/reaction-rendering.md:57-59`).
49
- Public/direction forms and routes/filters follow Screenplay v4.135.0 decisions
50
- 0049–0051 and 0060–0066, not the older inbound-only translation scope.
51
38
 
52
39
  ## Eventmodelers Build-Kits
53
40
 
@@ -117,17 +117,19 @@ Keep correlation and resulting private events in the model and report the runtim
117
117
 
118
118
  ## Admission and evidence
119
119
 
120
- ESM v9 shipped in Screenplay 4.117.0 and is selected only by use of public events,
120
+ ESM v9 shipped and is selected only by use of public events,
121
121
  origins, direction, event-target builders or events-source captures. At 4.135.0,
122
122
  publication reference scenarios execute; imported shapes still refuse binding.
123
123
  Stage 4.52.0 (previous CLI 3.46.1, history) audited only through v7. The CLI/Stage pair (toolchain `references/renderable-subset.md`)
124
124
  reaches construct admission through v15 but still refuses publication (STAGE-ESM-032), foreign
125
125
  events/events-source captures (STAGE-ESM-033); source admission is not rendering.
126
126
 
127
- Source: Screenplay `v4.135.0:Documentation/screenplay/fixtures/public-events.play`,
127
+ Requires Screenplay 4.117.0 or later (`screenplay --version`) for public events (ESM v9).
128
+
129
+ Source: Screenplay `Documentation/screenplay/fixtures/public-events.play`,
128
130
  `events.md`, `slices.md`, `captures.md`, decisions 0049–0051 and
129
131
  `Source/DotNET/Screenplay.CanonicalCorpus/PublicEventsCorpus.cs`.
130
- Renderer source: Stage `v4.52.0:Source/Rendering.Cratis/Semantics/SemanticCratisAdmission.cs`
131
- and `v4.67.0:Source/Rendering.Cratis/Semantics/SemanticVersionFeatures.cs`.
132
+ Renderer source: Stage `Source/Rendering.Cratis/Semantics/SemanticCratisAdmission.cs`
133
+ and `Source/Rendering.Cratis/Semantics/SemanticVersionFeatures.cs`.
132
134
  Diagnostics and repairs: toolchain `references/diagnostics.md`; version allocation:
133
135
  toolchain `references/executable-subset.md`.
@@ -5,15 +5,14 @@ the automation-and-translation addendum to `cratis-screenplay-render-and-gap-fil
5
5
  skill for the admission, publication and ownership rules.
6
6
 
7
7
  ## Stage rendering versus gap-fill
8
- CLI 3.57.0 / Stage 4.89.1 render supported event-triggered Automation slices as Chronicle
8
+ The CLI and Stage render supported event-triggered Automation slices as Chronicle
9
9
  reactors. Translate/captures, non-event triggers and opaque bodies remain `STAGE-ESM-024`;
10
10
  Claim-reading/opaque `runs as` gates (`-034`), legacy `from` (`-035`), mixed effects (`-037`), unsupported mappings (`-039`)
11
11
  and protected destinations (`-040`) also remain refused. Command specs that cascade into
12
12
  reactions remain `-011`; supported single-hop append specs now render, as do semantic
13
13
  reaction `from` and role/authenticated system identities. Only refused scope is hand-written delivery with the model as
14
- its contract. Source: Stage `v4.89.1:Documentation/reference/reaction-rendering.md:6-98`;
15
- full admission: `cratis-stage-rendering-and-sandbox` `references/admission.md`. (History: cratis
16
- 3.28.2 and 3.28.3 refused such a model whole with `STAGE-ESM-016`, and 3.27.1 stopped earlier with PLAY0268.)
14
+ its contract. Source: Stage `Documentation/reference/reaction-rendering.md`;
15
+ full admission: `cratis-stage-rendering-and-sandbox` `references/admission.md`.
17
16
 
18
17
  A reaction that both `produces` events and `invokes` commands stays one modeled reaction. Hand-write one
19
18
  retry-safe reactor: the scaffold already includes Arc's mixed-result handler, but it appends
@@ -27,13 +26,13 @@ with `cratis-screenplay-render-and-gap-fill`.
27
26
  | Model element | Realization | Skill |
28
27
  |---|---|---|
29
28
  | reaction `when <Event>` with `invokes` or `produces` | Chronicle reactor returning commands or events | `cratis-chronicle-reactor` |
30
- | trusted actor for `invokes` | `[ExecuteCommandsAsSystem("<role>")]` on the reactor plus a policy requiring the role (Arc, since v20.56.0; available in Stage 4.51.3's rendered Arc 22.50.5) | `cratis-chronicle-reactor` |
29
+ | trusted actor for `invokes` | `[ExecuteCommandsAsSystem("<role>")]` on the reactor plus a policy requiring the role (Arc; see the Requires line below) | `cratis-chronicle-reactor` |
31
30
  | clock trigger, application trigger | scheduler or host signal that raises the occurrence | `cratis-engineering-effect-boundaries` |
32
31
  | call to an outside system | adapter behind an effect boundary, keyed by the idempotency key in the model | `cratis-engineering-effect-boundaries` |
33
32
  | capture source (webhook, poll, topic) | adapter that authenticates (the provider's signature or shared secret, never an application user token, because the provider cannot obtain one), parses and appends, keeping the provider's retry identity | `cratis-engineering-effect-boundaries` |
34
33
  | replay versus recovery redelivery | `[OnceOnly]` for replay; a receipt keyed by `ReactorDelivery.Id` for recovery | `cratis-chronicle-reactor` |
35
34
 
36
- Stage 4.51.3 rendered apps pin Arc 22.50.5/Chronicle 19.32.0, so
35
+ Rendered apps pin their own Arc and Chronicle releases, so
37
36
  `[ProtectedDecision]` and `DecisionRead<T>` are available to gap-fill, not
38
37
  Stage-emitted enforcement. Admit the projection/key and enroll the read in the
39
38
  active unit of work; never edit managed `Directory.Packages.props`.
@@ -5,17 +5,15 @@
5
5
  - Design-only additions
6
6
 
7
7
  A complete model: a result opens a work item, a reaction invokes a command, the command's fact
8
- closes the item. It binds on Screenplay 4.66.0 (`executableReady: true`), standalone and through `cratis screenplay mcp`
9
- 3.28.2. Historical rendering: 3.28.2 refused the whole model (`STAGE-ESM-016`),
10
- Stage 4.73.1 the reaction (`-024`). Stage 4.89.1 renders supported event reactions,
11
- but this model's clock/cascade specs remain refused (`-024`/`-011`); keep them intact. The cratis 3.27.1 bundle (4.60.1)
12
- rejected the Automation slice at binding with PLAY0268. Versions: `cratis-screenplay-toolchain` `SKILL.md`.
8
+ closes the item. It binds as ESM v6 (`executableReady: true`), standalone and through `cratis screenplay mcp`.
9
+ Stage renders supported event reactions, but this model's clock/cascade specs remain
10
+ refused (`-024`/`-011`); keep them intact. A compiler that stops before v6 rejects the
11
+ Automation slice at binding with PLAY0285 or PLAY0268. Versions: `cratis-screenplay-toolchain` `SKILL.md`.
13
12
 
14
13
  The first spec lists the whole cascade (`then` names every new fact: `CoursePassed`, and
15
14
  `CertificateSent` through the reaction), and `given clock` supplies the instant that
16
- `$context.occurred` needs. Both 4.66.0 tools accept that cascade; the cratis 3.27.1 bundle reported a false PLAY0285 on it
17
- (cli#242). These specs were not
18
- run in that historical probe; current admitted scenarios can be run with
15
+ `$context.occurred` needs. Both tools accept that cascade when they admit v6; an older compiler reports a false PLAY0285 on it.
16
+ Current admitted scenarios can be run with
19
17
  standalone `screenplay test` or MCP `run-specifications`.
20
18
 
21
19
  What the model proves and what it does not:
@@ -27,7 +25,7 @@ What the model proves and what it does not:
27
25
  - The actor behind `SendCertificate` is a recorded security decision in the `Certification`
28
26
  module `description`: this example declares no reaction identity, so its
29
27
  invocations remain caller-less. A gated trusted path can instead declare
30
- `runs as system role` on 4.125.0 (ESM v10), with separate CLI/Stage refusal.
28
+ `runs as system role` (ESM v10), with separate CLI/Stage refusal.
31
29
  - Report reference outcomes only after executing the selected scenarios.
32
30
 
33
31
  ```screenplay expect PLAY0469,PLAY0516
@@ -190,11 +188,12 @@ module Certification
190
188
  ## Design-only additions
191
189
 
192
190
  Two things a real queue often wants stay out of the complete model above: a list query (the
193
- visible queue) and a retry sweep that reads the whole view. The list query binds (Screenplay 4.105.0
194
- or later; it was PLAY0268 at 4.66.0, and Stage refuses a snapshot list); the sweep needs a code body the
195
- reference does not run, and durable per-item fan-out is outside the language (Screenplay#286). Say so
191
+ visible queue) and a retry sweep that reads the whole view. The list query binds (Stage refuses a snapshot list); the sweep needs a code body the
192
+ reference does not run, and durable per-item fan-out is outside the language. Say so
196
193
  in the verdict.
197
194
 
195
+ Requires Screenplay 4.105.0 or later (`screenplay --version`) for the list query; before it the list query is refused with PLAY0268.
196
+
198
197
  ```screenplay excerpt parent=assets/pending-certificates.play
199
198
  // Parent: the complete document above, slice StateView CertificatesToSend.
200
199
  query PendingCertificates => PendingCertificate[]
@@ -2,9 +2,9 @@
2
2
 
3
3
  A complete model: a webhook record from an outside proctoring service is captured, kept as an
4
4
  external fact in the provider's vocabulary, then translated by reactions into our facts. It
5
- binds on Screenplay 4.66.0 (`executableReady: true`), standalone and through `cratis screenplay mcp`
6
- 3.28.2; the cratis 3.27.1 bundle (Screenplay 4.60.1) compiled it (V1) but rejected the Translate
7
- slice at binding (PLAY0268). `cratis render` refuses it (3.28.2: whole, `STAGE-ESM-016`; Stage 4.73.1: `STAGE-ESM-024`).
5
+ binds as ESM v6 (`executableReady: true`), standalone and through `cratis screenplay mcp`; a
6
+ compiler that stops before v6 compiles it (V1) but rejects the Translate slice at binding
7
+ (PLAY0268). `cratis render` refuses it (`STAGE-ESM-016` or `STAGE-ESM-024`, by renderer).
8
8
 
9
9
  Read the slice `description`: it is the per-field disposition (map, translate, ignore) and it
10
10
  states what this example does not do. Examples never show the whole integration contract; use
@@ -1,7 +1,7 @@
1
1
  # Translation patterns
2
2
 
3
- Complete compiled example: `translate-example.md` (binds on Screenplay 4.66.0, also in cratis 3.28.2; the cratis 3.27.1
4
- bundle compiled it but rejected the slice at binding).
3
+ Complete compiled example: `translate-example.md` (binds as ESM v6; a compiler that stops before v6
4
+ compiles it but rejects the slice at binding).
5
5
 
6
6
  ## 1. Where outside facts may enter
7
7
  Only two routes, both in a `Translate` slice:
@@ -19,22 +19,23 @@ root. Never put a model under `.cratis/` or hand-copy it between repositories.
19
19
  `cratis ai install` manages `.cratis/ai/`, never model files. Keep explanatory
20
20
  Markdown in project documentation; `.play` is the single flow model.
21
21
 
22
- ## Verified product sources
22
+ ## Product sources
23
23
 
24
- Read [product sources](references/product-sources.md) for retained historical
25
- parser/binder probes and refusal/redelivery evidence. Tool versions are covered in toolchain
26
- `SKILL.md`; historical examples are not current execution evidence.
24
+ Language claims follow Screenplay `reactions.md`, `triggers.md`, `captures.md` and
25
+ `specifications.md` under `Documentation/screenplay/`; renderer claims follow Stage
26
+ `Documentation/reference/reaction-rendering.md`. Tool versions are covered in toolchain
27
+ `SKILL.md`; run the examples at the pinned standalone tool before relying on them.
27
28
 
28
29
  ⚠️ **Which tool admits them depends on its Screenplay version.** The ESM level
29
30
  decides, not the slice type:
30
31
 
31
- - **Standalone `screenplay` 4.61.0 or later (ESM v6 from 4.61.0, v7 from 4.68.0; probed on 4.66.0, examples recompiled on 4.68.0):** `Automation` and
32
+ - **A compiler that admits ESM v6 and v7:** `Automation` and
32
33
  `Translate` slices, reactions, declared triggers and captures bind, and the
33
- reference runner executes them. Probed: the complete example below is
34
+ reference runner executes them. The complete example below is
34
35
  `executableReady` over `screenplay mcp`.
35
- - **History:** the CLI 3.28.2 bundle (Screenplay 4.66.0) bound v6; the earlier 4.60.1 bundles
36
- refused it and falsely reported PLAY0285 (toolchain `references/diagnostics.md`).
37
- - **CLI 3.57.0 / Stage 4.89.1** render supported event-triggered Automation, not
36
+ - **A compiler that stops before ESM v6** refuses them and falsely reports PLAY0285
37
+ (toolchain `references/diagnostics.md`).
38
+ - **The CLI and Stage** render supported event-triggered Automation, not
38
39
  Translate/captures, non-event triggers or opaque bodies (`-024`). Role/authenticated `runs as`
39
40
  and semantic `from` render; claim/opaque gates, mixed effects and unsupported mappings remain refused;
40
41
  cascade specs remain `-011`. Keep refused scope as gap-fill. Full boundary and source
@@ -63,15 +64,17 @@ Read [references/specifying-triggers-and-clock.md](references/specifying-trigger
63
64
  ## Caller-less invokes and unprotected reads
64
65
 
65
66
  **Who is the caller of an `invokes`?** Without a declared actor, nobody.
66
- Screenplay 4.125.0 supports reaction-level `runs as system role "<Role>"`
67
+ Reactions support reaction-level `runs as system role "<Role>"`
67
68
  (optional roles, joined with `and role`). It selects ESM v10 and supplies the
68
69
  reference invocation's authenticated system principal with exactly those roles;
69
70
  `given caller` does not supply it. Keep gates and declare the least-privilege actor.
70
71
  Read [invocation identity](references/invocation-identity.md) for the checked
71
72
  scenario, claim/unknown semantics and PLAY0647–0652/0557 diagnostics.
72
73
 
73
- Historical CLI 3.41.0's 4.114.0 compiler rejected this source with PLAY0137.
74
- Previous CLI 3.46.1 refused v10 (CLI-RENDER-004); the CLI/Stage pair (toolchain
74
+ Requires Screenplay 4.125.0 or later (`screenplay --version`) for reaction `runs as system role` (ESM v10).
75
+
76
+ A compiler that stops before v10 rejects this source with PLAY0137, and a renderer that stops
77
+ before v10 refuses it (CLI-RENDER-004); the CLI/Stage pair (toolchain
75
78
  `references/renderable-subset.md`) renders supported identity, refusing claim-reading/opaque gates (STAGE-ESM-034).
76
79
  Stage emits Arc `[ExecuteCommandsAsSystem]`; refused scope uses authorized gap-fill. The attribute is for returned commands. Without that attribute
77
80
  Arc supplies no principal and `[Authorize]`/`[Roles]` deny. Each invoked command
@@ -82,16 +85,16 @@ ESM v6 the binder refuses to treat it as one: a trigger with `reads` that **prod
82
85
  directly**, or whose effect is an opaque body (`file` or an inline block), fails
83
86
  binding, because its decision dependency cannot be protected. A reaction that only
84
87
  `invokes` a command binds, and the decision, and any protection, belong to that
85
- command's own reads. Command `reads` give none yet either (`PLAY0271`, #129).
86
- Decision 0006 leaves `where` over read paths out of scope, and `where` needs
88
+ command's own reads. Command `reads` give none yet either (`PLAY0271`).
89
+ `where` over read paths out of scope, and `where` needs
87
90
  every operand to resolve from the trigger's declared scalar occurrence shape (listed in
88
91
  the input selection or not; nested paths and read aliases fail binding): keep the logic that uses the state in
89
- the invoked command or the implementation. Under `cratis` before 3.28.2 none of this
90
- bound at all (`PLAY0268`); `cratis` 3.28.2 binds it like the standalone tool.
92
+ the invoked command or the implementation. A compiler that stops before ESM v6 binds none of this
93
+ (`PLAY0268`).
91
94
 
92
95
  ## Refusals and recovery redelivery
93
96
 
94
- At 4.125.0, invocation refusal selectors, `$refusal` branch values,
97
+ Invocation refusal selectors, `$refusal` branch values,
95
98
  `acknowledge`, `when redelivered ... to ...` and `then no events` are valid
96
99
  authoring intent but refuse binding with PLAY0268. Read
97
100
  [refusals and redelivery](references/refusals-and-redelivery.md) for first-match
@@ -334,11 +337,10 @@ something is reported. `Startup` and `Shutdown` are registered the second way.
334
337
  ## Verify
335
338
 
336
339
  - [ ] `screenplay <model> --warnaserror` reports zero errors and zero warnings
337
- (standalone 4.68.0, or `cratis` 3.28.2 or later). Under `cratis` before 3.28.2 expect
340
+ (standalone, or a `cratis` whose compiler admits ESM v6). Under an older compiler expect
338
341
  `PLAY0268` at binding and a false `PLAY0285` on cascade specifications, and report them
339
342
  as tool skew.
340
- - [ ] The tool that bound the model is named (Screenplay 4.61 or later, so standalone or
341
- `cratis` 3.28.2 or later, for ESM v6 constructs); reference scenarios use
343
+ - [ ] The tool that bound the model is named (standalone, or a `cratis` whose compiler admits ESM v6, for ESM v6 constructs); reference scenarios use
342
344
  `screenplay test`/MCP. Unadmitted refusal/redelivery is not executed evidence.
343
345
  - [ ] Each automation has all four components — occurrence, state consulted,
344
346
  conditional logic, resulting command or event. If it always fires
@@ -11,7 +11,7 @@
11
11
  Each document below is complete and compiles with the standalone `screenplay` 4.68.0
12
12
  (`--warnaserror`). The SKILL.md excerpts show the reaction, capture or trigger part of
13
13
  these documents. Documents marked ESM v6 need Screenplay 4.61 or later: the standalone tool and `cratis` 3.28.2
14
- (bundled 4.66.0) validate and bind them (probed); `cratis` 3.27.1 (Screenplay 4.60.1) reported
14
+ validate and bind them (probed); `cratis` 3.27.1 reported
15
15
  `PLAY0268` when it bound them.
16
16
 
17
17
  ## Capture with `source`, `map`, `append` and `children`