@cratis/pi 7.40.0 → 7.41.0

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 (69) hide show
  1. package/package/corpus/product-sync.json +10 -10
  2. package/package/corpus/skills/cratis-arc-command/references/generated-values.md +3 -2
  3. package/package/corpus/skills/cratis-chronicle-reactor/SKILL.md +1 -1
  4. package/package/corpus/skills/cratis-screenplay-automations-and-translations/SKILL.md +3 -3
  5. package/package/corpus/skills/cratis-screenplay-automations-and-translations/references/audit-format.md +2 -2
  6. package/package/corpus/skills/cratis-screenplay-automations-and-translations/references/automation-patterns.md +1 -1
  7. package/package/corpus/skills/cratis-screenplay-automations-and-translations/references/provenance.md +2 -2
  8. package/package/corpus/skills/cratis-screenplay-automations-and-translations/references/public-events-and-direction.md +1 -1
  9. package/package/corpus/skills/cratis-screenplay-automations-and-translations/references/realization-and-gap-fill.md +5 -4
  10. package/package/corpus/skills/cratis-screenplay-automations-and-translations/references/todo-list-example.md +1 -1
  11. package/package/corpus/skills/cratis-screenplay-captures-and-reactions/SKILL.md +5 -5
  12. package/package/corpus/skills/cratis-screenplay-captures-and-reactions/references/invocation-identity.md +4 -2
  13. package/package/corpus/skills/cratis-screenplay-command-surface/SKILL.md +10 -8
  14. package/package/corpus/skills/cratis-screenplay-command-surface/references/compliance.md +7 -6
  15. package/package/corpus/skills/cratis-screenplay-command-surface/references/enum-numbers.md +4 -4
  16. package/package/corpus/skills/cratis-screenplay-command-surface/references/generated-values-and-responses.md +137 -50
  17. package/package/corpus/skills/cratis-screenplay-command-surface/verification.json +12 -7
  18. package/package/corpus/skills/cratis-screenplay-event-modeling/SKILL.md +7 -7
  19. package/package/corpus/skills/cratis-screenplay-event-modeling/references/nine-steps.md +1 -1
  20. package/package/corpus/skills/cratis-screenplay-event-modeling/references/parsed-not-runnable.md +4 -4
  21. package/package/corpus/skills/cratis-screenplay-model-authoring/SKILL.md +1 -1
  22. package/package/corpus/skills/cratis-screenplay-model-authoring/references/language-reference.md +6 -4
  23. package/package/corpus/skills/cratis-screenplay-model-authoring/references/mcp-tools.md +3 -1
  24. package/package/corpus/skills/cratis-screenplay-model-review/references/anti-patterns.md +1 -1
  25. package/package/corpus/skills/cratis-screenplay-model-review/references/checklist.md +1 -1
  26. package/package/corpus/skills/cratis-screenplay-modeling-lifecycle/SKILL.md +2 -2
  27. package/package/corpus/skills/cratis-screenplay-modeling-lifecycle/references/phases.md +1 -1
  28. package/package/corpus/skills/cratis-screenplay-modeling-lifecycle/references/vocabulary-map.md +1 -1
  29. package/package/corpus/skills/cratis-screenplay-read-surface/SKILL.md +1 -1
  30. package/package/corpus/skills/cratis-screenplay-read-surface/references/equality-filters.md +15 -10
  31. package/package/corpus/skills/cratis-screenplay-render-and-gap-fill/SKILL.md +11 -11
  32. package/package/corpus/skills/cratis-screenplay-render-and-gap-fill/references/delivery-protocol.md +1 -1
  33. package/package/corpus/skills/cratis-screenplay-render-and-gap-fill/references/gap-fill-handoff.md +4 -4
  34. package/package/corpus/skills/cratis-screenplay-render-and-gap-fill/references/renderability-gate.md +5 -5
  35. package/package/corpus/skills/cratis-screenplay-render-and-gap-fill/verification.json +1 -1
  36. package/package/corpus/skills/cratis-screenplay-scenario-coverage/references/spec-forms-by-mode.md +6 -5
  37. package/package/corpus/skills/cratis-screenplay-slice-design/references/field-lineage.md +1 -1
  38. package/package/corpus/skills/cratis-screenplay-specifications/references/generated-fixtures.md +10 -3
  39. package/package/corpus/skills/cratis-screenplay-specifications/references/reactions-and-cascades.md +5 -5
  40. package/package/corpus/skills/cratis-screenplay-streams-and-consistency/SKILL.md +4 -4
  41. package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/boundaries.md +1 -1
  42. package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/evolution.md +2 -2
  43. package/package/corpus/skills/cratis-screenplay-streams-and-consistency/verification.json +1 -1
  44. package/package/corpus/skills/cratis-screenplay-toolchain/SKILL.md +17 -13
  45. package/package/corpus/skills/cratis-screenplay-toolchain/references/cheat-sheet-example.md +2 -2
  46. package/package/corpus/skills/cratis-screenplay-toolchain/references/diagnostics.md +6 -3
  47. package/package/corpus/skills/cratis-screenplay-toolchain/references/doc-contradictions.md +2 -2
  48. package/package/corpus/skills/cratis-screenplay-toolchain/references/executable-subset.md +26 -21
  49. package/package/corpus/skills/cratis-screenplay-toolchain/references/generation-strategies-example.md +43 -0
  50. package/package/corpus/skills/cratis-screenplay-toolchain/references/production-routes-and-filters.md +5 -2
  51. package/package/corpus/skills/cratis-screenplay-toolchain/references/renderable-subset.md +32 -32
  52. package/package/corpus/skills/cratis-screenplay-toolchain/references/screenplay-contract.json +1499 -46
  53. package/package/corpus/skills/cratis-screenplay-toolchain/references/screenplay-contract.version +1 -1
  54. package/package/corpus/skills/cratis-screenplay-toolchain/references/sources-and-streams.md +2 -2
  55. package/package/corpus/skills/cratis-screenplay-toolchain/references/traps.md +3 -3
  56. package/package/corpus/skills/cratis-screenplay-toolchain/references/verdicts.md +2 -2
  57. package/package/corpus/skills/cratis-screenplay-toolchain/references/versions.md +50 -38
  58. package/package/corpus/skills/cratis-screenplay-toolchain/verification.json +8 -6
  59. package/package/corpus/skills/cratis-screenplay-ui-composition/SKILL.md +5 -4
  60. package/package/corpus/skills/cratis-screenplay-ui-composition/references/response-continuations.md +109 -0
  61. package/package/corpus/skills/cratis-screenplay-ui-composition/references/worked-flow.md +1 -1
  62. package/package/corpus/skills/cratis-screenplay-ui-composition/verification.json +5 -0
  63. package/package/corpus/skills/cratis-stage-rendering-and-sandbox/SKILL.md +17 -18
  64. package/package/corpus/skills/cratis-stage-rendering-and-sandbox/references/admission.md +47 -35
  65. package/package/corpus/skills/cratis-stage-rendering-and-sandbox/references/rendered-application.md +7 -7
  66. package/package/corpus/skills/cratis-stage-rendering-and-sandbox/references/sandbox-and-specrunner.md +20 -8
  67. package/package/corpus/skills/cratis-stage-rendering-and-sandbox/references/scene-runtime.md +1 -1
  68. package/package/corpus/skills/cratis-stage-rendering-and-sandbox/verification.json +4 -1
  69. package/package.json +1 -1
@@ -199,7 +199,7 @@ system state?"* If no, it is co-production — one `StateChange` slice with seve
199
199
 
200
200
  **Output:** the `reaction`, in an `Automation` slice. It binds on the standalone
201
201
  `screenplay` and the `cratis` bundle (ESM v6; the 3.27.1 bundle rejected the slice at binding) and
202
- Stage 4.83.0 renders supported event-triggered Automation; refused scope stays gap-fill (versions:
202
+ Stage 4.89.1 renders supported event-triggered Automation; refused scope stays gap-fill (versions:
203
203
  `cratis-screenplay-toolchain`). A reaction that `produces` and `invokes` stays one reaction: Stage
204
204
  refuses it (`STAGE-ESM-037`) but Arc 22.72.0 and later run it as one reactor (events first, then
205
205
  commands; no cross-effect transaction; the scaffold includes the handler, but retries can duplicate events), so gap-fill it whole, never split it. When the automation decides from a view, declare it under
@@ -29,14 +29,14 @@ Pins and consumer boundaries: toolchain `references/versions.md`.
29
29
  | Construct | Standalone disposition (v4.125.0/v4.139.0 evidence; compliance updated at v4.141.0) |
30
30
  | --- | --- |
31
31
  | `persona`, domain/authentication metadata | Report-only; unknown named policies remain source defects |
32
- | Compliance concepts | Bare `pii`/`personal` and `secret`, qualifiers and scope bind as v13 (4.142.0 checked); enum/identity compliance and events combining personal or explicitly subject-scoped secret values with an explicit `subject` mark refuse PLAY0268 at binding only. CLI 3.56.0's 4.145.1 bundle binds markers; Stage 4.83.0 renders v13 protection, not protected identities/enums or subject lineage. Never remove protection |
32
+ | Compliance concepts | Bare `pii`/`personal` and `secret`, qualifiers and scope bind as v13 (4.142.0 checked); enum/identity compliance and events combining personal or explicitly subject-scoped secret values with an explicit `subject` mark refuse PLAY0268 at binding only. CLI 3.57.0's 4.147.1 bundle binds markers; Stage 4.89.1 renders v13 protection, not protected identities/enums or subject lineage. Never remove protection |
33
33
  | Identity details / processing purposes / event subject | Report-only metadata (4.127.0); executable detail reads refuse PLAY0268, not source declaration errors |
34
34
  | Composite stream ids | v8 routing; complete named parts/canonical comparisons, PLAY0515 refuses protected keys/sources; not a legacy text split |
35
35
  | Command reads/concurrency | Legacy unprotected decisions, PLAY0271 |
36
36
  | Invokes-only trigger reads | Report-only, not protected state; direct production with reads refuses |
37
- | Generated values/responses | v7 binding/reference execution; Stage 4.83.0 renders required scalar UUID concepts, scalar/named responses and fixtures; unsupported types/combinations remain -028/-038 |
38
- | Sources/streams and command/specification routes | v8 binding/reference execution; the pinned CLI (toolchain `references/versions.md`) reaches Stage checks through v13 |
39
- | Declared reaction invocation actor | v10 binding/reference execution; older CLI parser PLAY0137; Stage planner refuses reaction identity (STAGE-ESM-034), not v10 as a version |
37
+ | Generated values/responses | v7 binding/reference execution; v15 strategies/strict fixtures/freshness since Screenplay 4.147.0. Stage 4.89.1 renders supported UUID/String strategies, responses and fixtures; unsupported types/combinations remain -028/-038 |
38
+ | Sources/streams and command/specification routes | v8 binding/reference execution; the pinned CLI (toolchain `references/versions.md`) reaches Stage checks through v15 |
39
+ | Declared reaction invocation actor | v10 binding/reference execution; older CLI parser PLAY0137; Stage 4.89.1 renders role/authenticated reaction identity; claim-reading/opaque gates retain STAGE-ESM-034, not a v10 version refusal |
40
40
  | Operations/systems, `numbers exact` source mode, refusal/redelivery | Source accepted; whole binding refuses PLAY0268 |
41
41
  | UI | Authoring/deferred metadata; runtime support is a separate consumer contract |
42
42
 
@@ -289,7 +289,7 @@ paths or diagnosing `PLAY0430`-`PLAY0434`; `read-workspace`/`read-proposal`
289
289
  boundaries v9, identity/overrides/filters v10, qualifying non-route Double
290
290
  literals v11, enum numbers v12, compliance v13 (since 4.141.0;
291
291
  limits: command-surface `references/compliance.md`).
292
- CLI 3.56.0 bundles Screenplay 4.145.1 / Stage 4.83.0 and renders v12 enum numbers. Never drop or stub source contracts to bind.
292
+ CLI 3.57.0 bundles Screenplay 4.147.1 / Stage 4.89.1 and renders v12 enum numbers. Never drop or stub source contracts to bind.
293
293
  - Distinguish authoring acceptance from `executableReady`; unsupported backend
294
294
  capabilities are not a reason to drop source constructs or invent stubs.
295
295
  - If execution is intended, validate with the owning downstream runtime as well.
@@ -250,7 +250,7 @@ the standalone 4.66.0 tool for the rows marked "probed"; Cratis CLI 3.28.2 and 3
250
250
  Screenplay 4.66.0 (before 3.28.2, Screenplay 4.60.1, differ where stated).
251
251
 
252
252
  Read-model identity below is corrected to 4.135.0; equality query filters are
253
- updated to standalone 4.145.0 (admitted in 4.143.0, ESM v14):
253
+ updated to standalone 4.148.0 (admitted in 4.143.0, ESM v14):
254
254
  explicit trailing `key` wins; otherwise single-instance queries in the owning slice
255
255
  must agree on `by`. Only with no single-instance identifier and an admitted list
256
256
  query does conventional `*Id` inference run. Queryless views need explicit `key`.
@@ -260,15 +260,17 @@ See read-surface `references/named-keys.md` for the collection-key exclusion alg
260
260
  | --- | --- |
261
261
  | Binds and runs in the reference runner | `StateChange`/`StateView` slices; `produces` including `when` conditions over command properties and literal tags; the portable validation rules, `matches email`, quoted `matches` patterns and `require` over command properties; declarative policies and `authorize` on modules, features, commands and keyed queries; `unique` constraints; projections as Chronicle lowers them, including variants, except the projection constructs in the next row; specifications, including `given caller`, `then denied` and `when append` |
262
262
  | Binds, but the reference execution plan refuses it | A projection-level `remove via join`; `all` beside removals, `children` or `nested`; a `join`, `children` or `remove via join` inside `nested`; any event-context value other than the event source identity in a projection mapping or key, such as `$eventContext.occurred`, `$eventContext.sequenceNumber` or `$eventContext.causedBy.subject` (`$eventSourceId` and `$eventContext.eventSourceId` run) |
263
- | Binds as ESM v6 on Screenplay 4.66.0, standalone and Cratis CLI 3.28.2 (probed); `PLAY0268` on Cratis CLI before 3.28.2 | `Automation` and `Translate` slices, reactions that produce or invoke, captures, top-level `trigger`, clock, trigger and capture specifications. The current standalone `screenplay test`/MCP reference route evaluates admitted v6 actions; the historical Stage 4.24.2 probe rendered none; Stage 4.83.0 renders supported event-triggered Automation, with remaining refusals in the Stage skill's `references/admission.md` |
263
+ | Binds as ESM v6 on Screenplay 4.66.0, standalone and Cratis CLI 3.28.2 (probed); `PLAY0268` on Cratis CLI before 3.28.2 | `Automation` and `Translate` slices, reactions that produce or invoke, captures, top-level `trigger`, clock, trigger and capture specifications. The current standalone `screenplay test`/MCP reference route evaluates admitted v6 actions; the historical Stage 4.24.2 probe rendered none; Stage 4.89.1 renders supported event-triggered Automation, with remaining refusals in the Stage skill's `references/admission.md` |
264
264
  | Reaction with trigger `reads` | Direct-producing (or code-bodied) reaction with `reads`: `PLAY0268` ("ESM v6 cannot protect that decision dependency", decision 0006), non-executable. Invokes-only reaction with `reads`: information only; the invoked command must declare and protect its own decision reads. Keep the `reads`; never remove them to obtain binding |
265
265
  | Binds as opaque code (v3); reference runner reports unsupported | Bodied reducers, bodied named rules, fenced `validate` blocks, code or file policies. A pure reducer body is the only attachment Stage 4.24.0 admits |
266
266
  | Information only, never blocks (probed) | `persona` (report-only: `PLAY0270`, the policies it lists must exist), `authentication`, `domain`, `seed`, descriptions and `file` provenance. A persona does not block binding and does not change behavior, so state persona scope in a description or a policy the model uses |
267
- | Binds as ESM v7 on standalone Screenplay 4.68.0 (source and release notes; `PLAY0268` on the 4.66.0 in Cratis CLI 3.28.x, probed) | `generated` properties and `returns` responses, generated fixtures and `then returns`: bound and executed by the reference runner; a policy, rule or requirement that references a generated value is `PLAY0273`, and a generated property on a concept with validation rules is `PLAY0268`. Stage 4.83.0 renders required scalar UUID concepts, scalar/named responses and fixtures; unsupported types/result combinations remain `-028`/`-038` |
267
+ | Binds as ESM v7 on standalone Screenplay 4.68.0 (source and release notes; `PLAY0268` on the 4.66.0 in Cratis CLI 3.28.x, probed) | `generated` properties and `returns` responses, generated fixtures and `then returns`: bound and executed by the reference runner; a policy, rule or requirement that references a generated value is `PLAY0273`, and a generated property on a concept with validation rules is `PLAY0268`. Stage 4.89.1 renders supported UUID/String strategies, scalar/named responses and fixtures; unsupported types/result combinations remain `-028`/`-038` |
268
268
  | Authorable, not executable (PLAY0268) | Systems/operations, the `numbers exact` source mode (PLAY0268; exact lowering of qualifying Double literals is the admitted v11) and refusal/redelivery remain unadmitted |
269
+ | Concept generation strategies (ESM v15, since 4.147.0) | Required scalar generatable Uuid/String concepts; concept-owned uuid/uuidv7/ulid/typeid/nanoid/bytes strategies and admitted modifiers. Strict fixture encoding; Guarded whole-source freshness rejects Concurrency with no append/retry. Rules, generated secrets, pattern/random/rule and sequence remain refused. CLI 3.57.0 / Stage 4.89.1 render supported strategies: command-surface `references/generated-values-and-responses.md` |
270
+ | Response-name UI continuations (4.148.0, no ESM change) | Form submit and execute-success scopes, own failure PLAY0685, nested shadowing and outer success in inner failure; field/parameter precedence. CLI's 4.147.1 lacks resolution; Scene runtime binding remains downstream. UI composition `references/response-continuations.md` |
269
271
  | Collection equality filters (ESM v14, since 4.143.0) | Caller-supplied `filter name Type [optional]`, no `from`, matching a same-named scalar primitive/concept/enum read-model property with the same nominal type. AND with `by`; optional omission does not narrow, supplied null is refused. PLAY0468 covers unknown/repeated/missing required spec arguments; result rows compare by read-model/key regardless of order. Read read-surface `references/equality-filters.md` for the compiled example and renderer ceilings |
270
272
  | Current routing and actor admission | Sources/streams and command/specification routes bind and reference-execute as v8; reaction `runs as system role` supplies the invocation actor as v10 on 4.125.0. Whole-workspace binding determines executable availability; CLI/Stage realization remains separate |
271
- | Blocks binding (`PLAY0268`) | enum/identity compliance and events combining personal or explicitly subject-scoped secret values with explicit subject marks (4.141.0); historical CLI 3.53.1 refuses all `pii`/`secret` concepts; CLI 3.56.0 binds v13 and Stage 4.83.0 renders protection (historical probe: "compliance attributes require portable data-subject semantics"); command `handler` (never binds; a command cannot declare both `produces` and `handler`, `PLAY0035`), bare `rule <Name>`, `require` or conditions over read-model paths, dates and `today` in comparisons, `$context.tenant`/claims/roles/causation in `produces`, `$env` conditions, `file` constraints, unquoted `import` of an external contract, a read model with neither explicit `key` nor unambiguous query-based identity as described above (composite keys remain unadmitted), queries with context `from` sources (typed query context is unadmitted), single-result filters (collections only), `scoped to` (opaque scope), `performer` (opaque implementation) or composite `by` blocks (#599); optional keyed and collection queries, including caller-supplied equality filters and observable delivery, bind, `$causedBy` and templates in projections |
273
+ | Blocks binding (`PLAY0268`) | enum/identity compliance and events combining personal or explicitly subject-scoped secret values with explicit subject marks (4.141.0); historical CLI 3.53.1 refuses all `pii`/`secret` concepts; CLI 3.57.0 binds v13 and Stage 4.89.1 renders protection (historical probe: "compliance attributes require portable data-subject semantics"); command `handler` (never binds; a command cannot declare both `produces` and `handler`, `PLAY0035`), bare `rule <Name>`, `require` or conditions over read-model paths, dates and `today` in comparisons, `$context.tenant`/claims/roles/causation in `produces`, `$env` conditions, `file` constraints, unquoted `import` of an external contract, a read model with neither explicit `key` nor unambiguous query-based identity as described above (composite keys remain unadmitted), queries with context `from` sources (typed query context is unadmitted), single-result filters (collections only), `scoped to` (opaque scope), `performer` (opaque implementation) or composite `by` blocks (#599); optional keyed and collection queries, including caller-supplied equality filters and observable delivery, bind, `$causedBy` and templates in projections |
272
274
  | Blocks binding (`PLAY0271`, legacy meaning) | Command `reads` and `concurrency` |
273
275
  | Deferred (`PLAY0269`, information) | Screens, layouts, templates, forms, contributions, UI profiles, themes, behaviors and `on`/`uses` |
274
276
  | Metadata only (`PLAY0270`, information) | `domain`, `seed`, `persona`, trigger and other descriptions, and `file` provenance on declarations |
@@ -245,7 +245,9 @@ response-only command reports `syntaxOnly: false` and a null `executionReadiness
245
245
  also uses operations, streams, handlers or exact numeric mode keeps a readiness string naming each
246
246
  unadmitted feature. Null readiness does not prove the whole application binds or that every generation
247
247
  fixture exists. Canonical `executable-model` pages include `generated`, `response`, `generatedValues`
248
- and `thenReturns` when present. Form response scopes and a renderer response type remain downstream work.
248
+ and `thenReturns` when present. Screenplay 4.148.0 resolves form/execute-success response names (no ESM change);
249
+ Scene runtime continuation binding remains downstream at Stage 4.89.1. See UI composition
250
+ `references/response-continuations.md` for scope, failure PLAY0685 and tagged evidence.
249
251
 
250
252
  ## Descriptions and specification views
251
253
 
@@ -62,7 +62,7 @@ the problem, the checks it violates, the fix, all pinned to one declaration.
62
62
  | Missing `for` | an event production (`produces <Event>` or `produces event`) without `for`. Not operation productions: they are authorable design intent, belong to commands, and take no event `for`, tags or routing | runtimes disagree on the destination | C (executable) / D | `for <identifier>` |
63
63
  | Unbuilt read-model field | field no projection maps and AutoMap cannot fill | always empty; not reported by the compiler | D | map it or remove it |
64
64
  | Undeclared removal/append event | `remove with` or capture `append` names an undeclared event | V1 warns (PLAY0166, a failure under warnings as errors); binding fails PLAY0273 | C (executable) / D | declare or fix the name; run V3 |
65
- | Gated command invoked by a reaction without a declared actor | reaction `invokes` a command under a caller policy and has no `runs as system role "<Role>"` that satisfies the gate | the invocation carries no caller: rejected at run time | D (major) | declare `runs as system role "<Role>"` with the least-privilege role the gate admits (ESM v10, Screenplay 4.125.0; Stage 4.83.0 renders supported event reactions but still refuses `runsAs` with STAGE-ESM-034, so this trusted-actor scope is gap-fill) or record another trusted-path decision - never just delete the gate. A matching `runs as system role` is the admitted trusted path, not a defect |
65
+ | Gated command invoked by a reaction without a declared actor | reaction `invokes` a command under a caller policy and has no `runs as system role "<Role>"` that satisfies the gate | the invocation carries no caller: rejected at run time | D (major) | declare `runs as system role "<Role>"` with the least-privilege role the gate admits (ESM v10, Screenplay 4.125.0; Stage 4.89.1 renders role/authenticated trusted actors, but claim-reading/opaque gates still refuse STAGE-ESM-034 and need gap-fill) or record another trusted-path decision - never just delete the gate. A matching `runs as system role` is the admitted trusted path, not a defect |
66
66
  | `reads` + `produces` reaction | reaction both reads a view and produces | fails binding | C (executable) | invoke a command, or produce without reads |
67
67
  | `reads` treated as protection | rule "checked" because the command or reaction `reads` a view | `reads` enforces nothing | D (major) | keep or introduce `reads <View>` + `require ... message` as stated intent, mark it NOT enforced in the slice `description`, name the target (`[ProtectedDecision]` + `DecisionRead<T>`, Chronicle DCB, or a constraint where it fits); checklist E3 |
68
68
  | Caller-supplied state rule | `require currentStatus == "open"` where the caller sends `currentStatus` | the caller decides its own permission | D (major) | read the stored state with `reads`; keep or introduce `reads <View>` + `require ... message` as stated intent, mark it NOT enforced in the slice `description`, name the target (`[ProtectedDecision]` + `DecisionRead<T>`, Chronicle DCB, or a constraint where it fits); checklist E3 |
@@ -180,7 +180,7 @@ Nebulit (`provenance.md`).
180
180
  | Id | Check | Evidence | Tier |
181
181
  |---|---|---|---|
182
182
  | H1 | Query shape follows the business view (list where people scan; lookup where they open one) | queries, screens | D |
183
- | H2 | Executable scope: a keyed `=> RM optional` query with `by` named like a read-model property, or a collection (`=> RM[]`, observable too) with caller-supplied `by` and/or equality filters (ESM v14 since 4.143.0). `from`, single-result filters, opaque `scoped to`/`performer` and composite `by` remain PLAY0268. The projection routes by the same identity (a `from` key or an event property, or `$eventSourceId`; `$eventSourceId` is not mandated). Filtered models: CLI 3.56.0 / Stage 4.83.0 admit through v13, not v14. Renderable scope only: Stage-specific identity limits (Stage 4.83.0 renders a keyed optional snapshot lookup and observable collection queries; any other query is `STAGE-ESM-010`) | queries, projections | C (executable); C (render admission, renderable only) |
183
+ | H2 | Executable scope: a keyed `=> RM optional` query with `by` named like a read-model property, or a collection (`=> RM[]`, observable too) with caller-supplied `by` and/or equality filters (ESM v14 since 4.143.0). `from`, single-result filters, opaque `scoped to`/`performer` and composite `by` remain PLAY0268. The projection routes by the same identity (a `from` key or an event property, or `$eventSourceId`; `$eventSourceId` is not mandated). Filtered models: CLI 3.57.0 / Stage 4.89.1 admit through v15, including supported v14 equality filters. Renderable scope only: Stage-specific identity/filter limits (Stage 4.89.1 renders a keyed optional snapshot lookup and observable collection queries; any other query is `STAGE-ESM-010`) | queries, projections | C (executable); C (render admission, renderable only) |
184
184
  | H3 | One builder per read model; projection `key` only on `from` | projections | C |
185
185
  | H4 | Screens show one actor's point of view; a form submits one command | screens, forms | D |
186
186
 
@@ -43,7 +43,7 @@ an unproven pass.
43
43
  | An accepted model covers the scope | **Model** | Change the `.play`, verify V1-V3, review, then render or gap-fill |
44
44
  | Opted in, but this scope has no model yet | **Model** | New behavior starts in discovery, then slice design |
45
45
  | A computed rule inside a modeled slice | **Model + code attachment** | `csharp`/`file` block; it binds only as the construct allows (`cratis-screenplay-model-authoring`) |
46
- | Scope Stage cannot render yet (Stage 4.83.0 renders supported event-triggered Automation; Translate/captures and refused reactions remain gap-fill. Mixed effects stay one reaction, `STAGE-ESM-037`; a hand-written realization must prove retry safety) | **Gap-fill code** | Hand-written; the `.play` slice and specs are the contract. `cratis-screenplay-render-and-gap-fill` separates an authorized existing generated base from fully hand-written delivery |
46
+ | Scope Stage cannot render yet (Stage 4.89.1 renders supported event-triggered Automation; Translate/captures and refused reactions remain gap-fill. Mixed effects stay one reaction, `STAGE-ESM-037`; a hand-written realization must prove retry safety) | **Gap-fill code** | Hand-written; the `.play` slice and specs are the contract. `cratis-screenplay-render-and-gap-fill` separates an authorized existing generated base from fully hand-written delivery |
47
47
  | Outside call, transport or credentials | **Adapter code** | `Customizations/` or the host, applying `cratis-engineering-effect-boundaries` |
48
48
  | Infrastructure, clients, framework-profile repositories, brownfield not opted in | **Code** | Arc, Chronicle, spec and React skills; trivial changes keep the proportional-delegation policy |
49
49
 
@@ -221,7 +221,7 @@ the packet opens with `Outcome:`; STATE.md is current.
221
221
  ## Verified product sources
222
222
  Model notes: Screenplay `v4.144.0:Documentation/screenplay/model-notes.md:12-77`,
223
223
  `decisions/0045-model-notes-sidecar.md:40-79`; exact tool sources in model-authoring
224
- `references/model-notes.md`. Full pin table: `cratis-screenplay-toolchain/references/versions.md`. Read `cratis-screenplay-toolchain/references/versions.md` when selecting or reverifying tool versions. Current pins (Stage 4.83.0, cratis CLI 3.56.0 and the rest) are in that file. Older source reads used here: Screenplay
224
+ `references/model-notes.md`. Full pin table: `cratis-screenplay-toolchain/references/versions.md`. Read `cratis-screenplay-toolchain/references/versions.md` when selecting or reverifying tool versions. Current pins (Stage 4.89.1, cratis CLI 3.57.0 and the rest) are in that file. Older source reads used here: Screenplay
225
225
  `v4.66.0` (`c89198b`): `Source/DotNET/Tool/Program.cs` (`--warnaserror`, folder mode),
226
226
  `Source/DotNET/Screenplay/Semantics/SemanticModelBinder.cs:209-216` (personas are report-only),
227
227
  `Documentation/screenplay/{constraints,specifications}.md`, `mcp/reference.md` (`modelRevision`);
@@ -127,7 +127,7 @@ phase, a decision important enough that a later reader could misread the model (
127
127
  - **Input**: the accepted identity.
128
128
  - **Carry-forward**: the admission result; render output and named gaps in `Customizations/`;
129
129
  non-renderable scope handed to a code agent with the model as contract, plus a fallback record
130
- naming the blocking codes. Stage 4.83.0 renders supported event-triggered Automation; Translate/captures and refused reactions remain gap-fill (mixed effects keep one modeled reaction; `STAGE-ESM-037` is a redelivery-safety refusal, not a reason to split it). Three cases stay distinct: admission failure (nothing rendered); an
130
+ naming the blocking codes. Stage 4.89.1 renders supported event-triggered Automation; Translate/captures and refused reactions remain gap-fill (mixed effects keep one modeled reaction; `STAGE-ESM-037` is a redelivery-safety refusal, not a reason to split it). Three cases stay distinct: admission failure (nothing rendered); an
131
131
  existing generated base plus separately authorized gap-fill; fully hand-written delivery.
132
132
  - **Gate**: V5 sub-results, or a fallback entry per non-renderable scope. A customization never
133
133
  makes a rejected model renderable; no whole-application V5 from a subset.
@@ -42,7 +42,7 @@ Screenplay meaning, and when you meet the older usage, translate it and say so.
42
42
  - Screenplay **`reaction`**: the construct that models it (`when` trigger, optional `where`,
43
43
  `invokes` a command or `produces` events).
44
44
  - Chronicle **reactor**: C# observer, usually for side effects; it does not by itself define
45
- business decisions. Stage 4.83.0 renders supported event-triggered Automation as Chronicle reactors.
45
+ business decisions. Stage 4.89.1 renders supported event-triggered Automation as Chronicle reactors.
46
46
  Translate/captures and refused reactions remain gap-fill. Mixed events and commands
47
47
  in one handler remain `STAGE-ESM-037`: Arc supports the return shape, but redelivery
48
48
  after a failed command duplicates events. Keep the reaction whole and prove retry safety.
@@ -178,7 +178,7 @@ on the header line is a declaration error, not a shorthand.
178
178
 
179
179
  ### What runs
180
180
 
181
- These bind on standalone 4.145.0: keyed `=> RM optional`, unfiltered collections,
181
+ These bind on standalone 4.148.0: keyed `=> RM optional`, unfiltered collections,
182
182
  collections narrowed by caller-supplied `by`, and their `observable` forms.
183
183
  Caller-supplied equality filters on collections select ESM v14: same-named scalar
184
184
  primitive/concept/enum properties, same nominal type ignoring optionality, no
@@ -11,7 +11,7 @@
11
11
  - Rendering is a different verdict
12
12
  - Verified product sources
13
13
 
14
- Screenplay **4.143.0 and later**, including the standalone **4.145.0** pin,
14
+ Screenplay **4.143.0 and later**, including the standalone **4.148.0** pin,
15
15
  binds `filter <name> <Type> [optional]` on a collection query when:
16
16
 
17
17
  - there is no `from` source;
@@ -189,11 +189,14 @@ module FilteringExamples
189
189
 
190
190
  ## Rendering is a different verdict
191
191
 
192
- **CLI 3.56.0** bundles **Screenplay 4.145.1 / Stage 4.83.0**. Its compiler
193
- binds v14 filters, but rendering admits through **ESM v13**, not v14:
194
- `CLI-RENDER-004` before planning (direct Stage: `STAGE-ESM-016`).
195
- Standalone V3/V4 success therefore does not prove rendering. A consumer must
196
- explicitly admit v14 and preserve filter arguments and equality selection;
192
+ **CLI 3.57.0** bundles **Screenplay 4.147.1 / Stage 4.89.1**, admitting through
193
+ **ESM v15**. Equality filters render on observable collections, with or without
194
+ `by`, combined by AND. Optional omission is preserved. Snapshot lists, DateTime
195
+ filters and required filter parameters after optional ones refuse `STAGE-ESM-010`;
196
+ parameter name collisions refuse `-012`. Generated query specifications pass named
197
+ arguments and check result counts. The semantic Host executes filters, but the
198
+ independent specification executor refuses filtered assertions with `-010`
199
+ (and retains the GivenReadModel gap). V3/V4 is still not a render/build/test result;
197
200
  never erase filters to obtain a render.
198
201
 
199
202
  ## Verified product sources
@@ -202,7 +205,9 @@ never erase filters to obtain a render.
202
205
  `decisions/0069-admit-equality-query-filters-as-esm-v14.md`;
203
206
  `Documentation/screenplay/queries.md` (Executable equality filters),
204
207
  `specifications.md:145,307-319,409-428`; admission shipped in v4.143.0.
205
- - Stage **v4.83.0**: `Source/Rendering.Cratis/Semantics/SemanticVersionFeatures.cs:100`
206
- uses `EsmSchemaV13Support`; `Directory.Packages.props` pins Screenplay 4.141.0.
207
- - CLI **v3.56.0**: `Directory.Packages.props:8-10` pins Screenplay 4.145.1 / Stage
208
- 4.83.0; `Source/Cli/Commands/Render/RenderedSemanticVersions.cs:33-47` admits v1-v13.
208
+ - Stage **v4.89.1**: `Source/Rendering.Cratis/Semantics/SemanticVersionFeatures.cs:105`
209
+ uses `EsmSchemaV15Support`; `SemanticCratisAdmission.StateView.cs:139-178`
210
+ checks filters/order; `Documentation/docker/index.md:143-153`, `docker/spec-runner.md:35-43`
211
+ distinguish Host and independent executor.
212
+ - CLI **v3.57.0**: `Directory.Packages.props:8-10` pins Screenplay 4.147.1 / Stage
213
+ 4.89.1; `Source/Cli/Commands/Render/RenderedSemanticVersions.cs:34-47` admits v1-v15.
@@ -26,8 +26,8 @@ Version pins live once in `cratis-screenplay-toolchain` `references/versions.md`
26
26
  selecting the compiler and renderer for delivery: the CLI bundles its own Screenplay and Stage;
27
27
  its compiler version differs from the standalone pin. Render options (`--scope`,
28
28
  `--check`, `--package-set`) and exit codes were read at cli `v3.53.1` `Documentation/reference/screenplay.md`
29
- and `cratis render --help`; admission at Stage `v4.83.0` (`SemanticVersionFeatures.cs:100`,
30
- `SemanticVersionFeatureAdmission.cs:25-45`, `SemanticCratisAdmission.Automation.cs:15-123`). Stage's scaffold pins Arc and
29
+ and `cratis render --help`; admission at Stage `v4.89.1` (`SemanticVersionFeatures.cs:105`,
30
+ `SemanticVersionFeatureAdmission.cs:25-46`, `SemanticCratisAdmission.Automation.cs:15-123`). Stage's scaffold pins Arc and
31
31
  Chronicle releases, which are not the latest (`cratis-stage-rendering-and-sandbox`
32
32
  `references/rendered-application.md`). Source reading is not a new render run.
33
33
 
@@ -71,10 +71,10 @@ assume an answer to 4, and record it as `blocked` for the user.
71
71
  | **B. Generated base plus authorized gap-fill** | an admitted render (whole, or a `--scope` of the admitted slices) exists and the user separately authorized hand-written scope, or a seam the model names needs an adapter | the generated output stays managed and untouched; hand-written code lives in `Customizations/` or a separate project (seam adapters by this skill, business gap-fill by `slice-implementer`), serves named model elements only, never claims render admission, and V5 is reported for the generated base **with its scope stated** |
72
72
  | **C. Fully hand-written delivery** | the scope cannot render and no generated base is wanted | `slice-implementer` delivers it with the model as the contract (`references/gap-fill-handoff.md`); V5 is `not run: no render` |
73
73
 
74
- Evolved events are gap-fill too: Stage still refuses (4.83.0) any evolved event and its dependent scope with `STAGE-ESM-026`, because it cannot render Chronicle event-type migrations yet (Stage#204). Events at their initial revision still render. Hand-write the evolved events and their migrations per `cratis-chronicle-event-type-migration`, with the model as the contract.
74
+ Evolved events are gap-fill too: Stage still refuses (4.89.1) any evolved event and its dependent scope with `STAGE-ESM-026`, because it cannot render Chronicle event-type migrations yet (Stage#204). Events at their initial revision still render. Hand-write the evolved events and their migrations per `cratis-chronicle-event-type-migration`, with the model as the contract.
75
75
 
76
- Generated UUID-concept values and scalar/named `returns` responses (ESM v7), including
77
- fixtures and `then returns`, now render with CLI 3.56.0 / Stage 4.83.0. Unsupported generated
76
+ Supported UUID/String generation strategies, v15 freshness and scalar/named `returns`
77
+ responses, fixtures and `then returns` render with CLI 3.57.0 / Stage 4.89.1. Unsupported generated
78
78
  types (`STAGE-ESM-028`) and result combinations (`-038`) still require case A or C:
79
79
  preserve the model and its specifications. See Stage's `references/admission.md`.
80
80
  Supported event-triggered Automation slices also render as managed Chronicle reactors;
@@ -83,9 +83,9 @@ refused reactions, captures and Translate slices remain gap-fill.
83
83
  Models with event sources, streams or command routes bind and reference-execute as ESM v8 on the standalone
84
84
  tool, so report V3 and V4 from that tool. The pinned CLI/Stage pair
85
85
  (`cratis-screenplay-toolchain/references/versions.md`) reaches v8 route checks
86
- and construct admission through v13. Public publication,
87
- foreign events/event captures and v10 reaction identity/filters/production overrides
88
- still receive typed refusals; reducer filters render. Keep refused scope as case A/C,
86
+ and construct admission through v15. Public/foreign events and production overrides
87
+ still refuse; semantic reaction/reducer filters and role/authenticated `runs as` render.
88
+ Claim-reading/opaque system gates, legacy actor/filter paths and mixed effects still refuse. Keep refused scope as case A/C,
89
89
  never infer target support from binding. Read Stage's `references/admission.md` and
90
90
  toolchain `references/sources-and-streams.md`.
91
91
 
@@ -96,7 +96,7 @@ transaction; a retry can repeat the events). The scaffold now includes the mixed
96
96
  but Stage still refuses it because redelivery can duplicate events. `[OnceOnly]` excludes replay,
97
97
  not retries. Keep the modeled reaction whole; gap-fill needs a proven retry-safe realization,
98
98
  not splitting or dropping effects to get a render. Source: Stage
99
- `v4.83.0:Documentation/reference/reaction-rendering.md:50-88`.
99
+ `v4.89.1:Documentation/reference/reaction-rendering.md:53-98`.
100
100
 
101
101
  Two rules hold in every case: a customization never makes a rejected model renderable, and
102
102
  a whole-application V5 is never claimed from a subset. `--scope` renders an admitted part (the whole
@@ -110,7 +110,7 @@ model still compiles and binds) and its V5 states the scope.
110
110
  `--project-name`, `--root-namespace` and target `cratis`. Take V1 and V3 from
111
111
  `cratis-screenplay-toolchain`; report each with tool and version. V3 from a different
112
112
  compiler version does not prove the cratis-bundled binder admits the model (the bundle is
113
- 4.145.1, the standalone tool 4.145.0). `cratis screenplay validate --executable <root>` binds with
113
+ 4.147.1, the standalone tool 4.148.0). `cratis screenplay validate --executable <root>` binds with
114
114
  the bundled compiler and writes nothing: use it as the bundled-binder check (toolchain `references/verdicts.md`).
115
115
  2. **Probe.** `cratis render <model-root> --name <App> --destination <probe-dir> -o json`
116
116
  (exit 0 published, 5 refused with nothing published, 1 missing input); add `--check` to plan
@@ -157,7 +157,7 @@ Adapters and non-renderable scope follow the contract rules of `cratis-applicati
157
157
  (`cratis-application-slice-conformance` `references/build-prompts.md`).
158
158
  - One ledger scope per `slice-implementer` brief; the brief carries addresses and paths, not contents.
159
159
  - Model-enforced rules realized in code (state-dependent rules) need a protected read or
160
- concurrency scope; never claim them from prose. Stage 4.83.0 rendered apps scaffold
160
+ concurrency scope; never claim them from prose. Stage 4.89.1 rendered apps scaffold
161
161
  the Arc/Chronicle set in `cratis-stage-rendering-and-sandbox` `references/rendered-application.md`; API availability alone is not verified enforcement.
162
162
  - Adapters that call outside systems follow `cratis-engineering-effect-boundaries`; slice
163
163
  specifications follow `cratis-application-slice-specifications`.
@@ -30,7 +30,7 @@ per tool call and read each result from its exit status, never from a grep of th
30
30
  | --- | --- | --- |
31
31
  | Admission and publication | `cratis render <root> --name <App> --destination <dir> [--project-name <P>] [--root-namespace <N>] -o json` (forward every option recorded in section 1) | exit 0 published (receipt on stdout), 5 refused (diagnostics, nothing published), 1 missing input |
32
32
  | Drift or pending-change check | the same command plus `--check` (and `--scope`, `--force` as used) | no write, no recovery: exit 0 current, 6 `changes_pending`, 5 planning failure, refusal or pending recovery |
33
- | Bundled-binder check | `cratis screenplay validate --executable <root>` | exit 5 with "does not bind into an executable semantic model" when it does not; never renders or writes. Uses the bundled compiler (CLI 3.56.0 = Screenplay 4.145.1), not standalone 4.145.0 |
33
+ | Bundled-binder check | `cratis screenplay validate --executable <root>` | exit 5 with "does not bind into an executable semantic model" when it does not; never renders or writes. Uses the bundled compiler (CLI 3.57.0 = Screenplay 4.147.1), not standalone 4.148.0 |
34
34
  | Debug build | `dotnet build <dir>/<Project>.csproj -c Debug` | the build's exit status |
35
35
  | Debug tests | `dotnet test <dir>/<Project>.csproj -c Debug --no-build` | the test runner's exit status plus per-test results |
36
36
  | List the generated classes | `dotnet test <dir>/<Project>.csproj -c Debug --no-build --list-tests` | the names to map to specifications |
@@ -74,7 +74,7 @@ are available to gap-fill, with projection/key admission and active enrollment),
74
74
  a caller-supplied status is not enforcement.
75
75
 
76
76
  ## Automation and Translate scope
77
- Stage 4.83.0 renders supported event-triggered Automation as Chronicle reactors.
77
+ Stage 4.89.1 renders supported event-triggered Automation as Chronicle reactors.
78
78
  Translate/captures and refused reactions are gap-fill against the slice and its specifications;
79
79
  see Stage's `references/admission.md` for precise limits. The realization follows the actual construct and
80
80
  trigger, not the slice label: a capture is an ingestion adapter, an event reaction (including a
@@ -87,14 +87,14 @@ composition conventions (`rules/vertical-slices.md`, `cratis-chronicle-reactor`)
87
87
  Declare the trusted actor with reaction `runs as system role "<Role>"`
88
88
  (standalone 4.125.0, ESM v10); `given caller` is not an invocation actor.
89
89
  Historical CLI 3.41.0's older compiler rejected the syntax. The pinned CLI/Stage pair
90
- (`cratis-screenplay-toolchain/references/versions.md`) reaches v10 construct admission but still refuses reaction identity
91
- (STAGE-ESM-034). Gap-fill retains the declared role and uses Arc
90
+ (`cratis-screenplay-toolchain/references/versions.md`) renders role/authenticated reaction identity; claim-reading/opaque system gates still
91
+ refuse STAGE-ESM-034. Gap-fill retains the declared role and uses Arc
92
92
  `[ExecuteCommandsAsSystem]` for returned commands. Checked model and diagnostics:
93
93
  captures-and-reactions `references/invocation-identity.md`.
94
94
 
95
95
  A reaction that both produces events and invokes commands keeps its single modeled form
96
96
  (`STAGE-ESM-037` is Stage's refusal, not a model defect). Hand-write one reactor returning the events
97
- and the commands: on Arc 22.72.0 or later (the Stage 4.83.0 scaffold includes the handler, but mixed reactions remain refused because redelivery can duplicate events) the runtime appends the events first as one batch, then
97
+ and the commands: on Arc 22.72.0 or later (the Stage 4.89.1 scaffold includes the handler, but mixed reactions remain refused because redelivery can duplicate events) the runtime appends the events first as one batch, then
98
98
  runs the commands in order, with no transaction across the two effects; a failing command stops the
99
99
  later ones but keeps the committed events, and a retry can append the events again, so make the
100
100
  handler idempotent independently of `[OnceOnly]`, which excludes replay only, not recovery
@@ -7,16 +7,16 @@ The admitted subset itself (what Stage renders, member by member) is owned by
7
7
  probe reports and choosing what to do. Do not copy the code table here.
8
8
 
9
9
  ## Pipeline that produces the codes
10
- 1. The CLI compiles and binds the **whole** model with its **bundled** Screenplay (4.145.1 in
11
- cratis 3.56.0, ESM up to v13 for rendering; older bundles bound less). Binding is never scoped:
10
+ 1. The CLI compiles and binds the **whole** model with its **bundled** Screenplay (4.147.1 in
11
+ cratis 3.57.0, ESM up to v15 for rendering; older bundles bound less). Binding is never scoped:
12
12
  any binding error blocks even a `--scope` render. Binding errors are `PLAY0268` (outside the admitted vertical), `PLAY0269`
13
13
  (deferred), `PLAY0270` (report-only information), `PLAY0271` (legacy semantics) and `PLAY0273`
14
14
  (a specification shape).
15
15
  2. Execution planning builds the plan and can emit `PLAN-*` diagnostics before Stage runs.
16
16
  3. Stage plans the target and admits or rejects each member: `STAGE-ESM-0xx`; profile and path
17
17
  problems `STAGE-CRATIS-0xx`. An evolved event is reported with Stage's own `STAGE-ESM-026`
18
- (still refused at Stage 4.83.0); the CLI adds nothing. Stage admits ESM v1 to v13 by version and
19
- refuses each construct it does not render with its own code (see Stage's current code table, including `-024`, `-027`, `-028`, `-030` to `-040`).
18
+ (still refused at Stage 4.89.1); the CLI adds nothing. Stage admits ESM v1 to v15 by version and
19
+ refuses each construct it does not render with its own code (see Stage's current code table, including `-024`, `-027`, `-028`, `-030` to `-041`).
20
20
  4. Any error in the selected scope publishes nothing: the run ends with exit 5 and the diagnostics.
21
21
  Without `--scope` the scope is the whole application. With `--scope`, `PLAN-*` problems in
22
22
  unselected slices are warnings and `STAGE-ESM-*` refusals in unselected slices do not block;
@@ -30,7 +30,7 @@ ESM). Only the probe answers renderability. `PLAY0270` entries are information,
30
30
  | Class | Meaning | Typical examples (each verified in `admission.md`) | Action |
31
31
  | --- | --- | --- | --- |
32
32
  | **Model fix (in mode)** | the model is in, or the user chose, renderable mode and breaks its own subset in a way that has a renderable equivalent with the same meaning | a `produces` whose `for` is not the command identifier; one `StateChange` slice with two commands (`STAGE-ESM-004`); two projections for one read model (`-007`); a policy Stage cannot express portably (`-015`; role-only and opaque pure policies render at 4.73.1) | edit request to the modeler session with address, change and rationale |
33
- | **Capability gap** | the intended meaning needs a construct Stage does not render yet | a snapshot list query (`-010`; observable lists and keyed or unkeyed lists bind and observable lists render), caller-supplied collection equality filters bind as v14 since 4.143.0 but exceed CLI 3.56.0 / Stage 4.83.0's v13 ceiling; context/single-result filters, opaque `scoped to`/`performer` and composite `by` remain PLAY0268; Translate, clocks, captures, non-event triggers and opaque reaction bodies (`-024`); reaction `runs as`/`from` (`-034`/`-035`), mixed effects in one handler (`-037`, retries can duplicate events; keep it whole), unsupported reaction mappings (`-039`); unsupported generated types/result combinations (`-028`/`-038`); `then no readmodel` (`-027`); evolved events (`STAGE-ESM-026`); conditional `produces when` (`-006`); `reads` (`PLAY0271`); code validation (`-005`); protected identities/enums (`-040`) or unadmitted explicit subject lineage (`PLAY0268`); a command `handler` (`PLAY0268`) | keep the model; ledger entry; options a to c in `SKILL.md`; link the Stage issue |
33
+ | **Capability gap** | the intended meaning needs a construct Stage does not render yet | a snapshot list query (`-010`; observable lists and keyed or unkeyed lists bind and observable lists render), DateTime equality filters and required parameters after optional filters (`-010`); context/single-result filters, opaque `scoped to`/`performer` and composite `by` remain PLAY0268; Translate, clocks, captures, non-event triggers and opaque reaction bodies (`-024`); claim-reading/opaque `runs as` gates (`-034`), legacy `from` (`-035`), mixed effects in one handler (`-037`, retries can duplicate events; keep it whole), unsupported reaction mappings (`-039`); unsupported generated types/result combinations (`-028`/`-038`); `then no readmodel` (`-027`); evolved events (`STAGE-ESM-026`); conditional `produces when` (`-006`); `reads` (`PLAY0271`); code validation (`-005`); protected identities/enums (`-040`), non-text secrets (`-041`) or unadmitted explicit subject lineage (`PLAY0268`); a command `handler` (`PLAY0268`) | keep the model; ledger entry; options a to c in `SKILL.md`; link the Stage issue |
34
34
  | **Tool skew** | the bundled compiler disagrees with documented semantics | the false `PLAY0285` on reaction cascades from a cratis before 3.28.2 bundle (cli#242); codes the standalone compiler does not raise | record in the session state and the ledger; never "fix" a correct model |
35
35
  | **Environment** | not the model | restore failures, missing SDK, a destination that is not writable | fix the environment or report blocked |
36
36
 
@@ -44,7 +44,7 @@
44
44
  "kind": "skill-contains",
45
45
  "value": "STAGE-ESM-026"
46
46
  },
47
- { "kind": "skill-contains", "value": "now render with CLI 3.56.0 / Stage 4.83.0" },
47
+ { "kind": "skill-contains", "value": "render with CLI 3.57.0 / Stage 4.89.1" },
48
48
  { "kind": "skill-contains", "value": "Unsupported generated\ntypes (`STAGE-ESM-028`) and result combinations (`-038`)" },
49
49
  { "kind": "skill-contains", "value": "authored-UI parity" },
50
50
  { "kind": "skill-contains", "value": "responsible tool version" }
@@ -14,18 +14,19 @@ Typed example/override forms: `cratis-screenplay-specifications`
14
14
  | `when <Cmd>` -> `then <Event>` / `then error` / `then denied` | yes | yes | yes |
15
15
  | `given <Event>` with `for` | yes | yes (needed for keyed views) | yes |
16
16
  | `given readmodel` | yes | yes (complete instance with key) | only as the query-only lookup below |
17
- | `when append <Event>` | yes | yes | no |
17
+ | `when append <Event>` | yes | yes | supported single-hop reaction effects/invocation only; fan-out, deeper cascades and other refused assertions retain STAGE-ESM-011 |
18
18
  | `then readmodel` / `then query` (keyed `ById`, `arguments`, `result`) | yes | yes | yes |
19
19
  | `then query` on an unfiltered list or a list narrowed by one `by` key (observable too) | yes | yes since 4.105.0: no `arguments` for an unkeyed list, one `result` per row stating the read-model identifier, no `result` = empty list | observable lists render, a non-observable list is `STAGE-ESM-010` (Stage 4.73.1) |
20
- | Collection query with caller-supplied equality `filter`, including observable | yes | yes since 4.143.0, ESM v14: same-named scalar property/type, AND with `by`; optional omission allowed, supplied null refused; PLAY0468 checks arguments; row order does not matter | no on CLI 3.56.0 / Stage 4.83.0 (v13 ceiling; CLI-RENDER-004 / direct STAGE-ESM-016) |
20
+ | Collection query with caller-supplied equality `filter`, including observable | yes | yes since 4.143.0, ESM v14: same-named scalar property/type, AND with `by`; optional omission allowed, supplied null refused; PLAY0468 checks arguments; row order does not matter | yes on supported observable collections in CLI 3.57.0 / Stage 4.89.1; DateTime/filter parameter order and snapshot lists refuse -010; independent Stage executor still refuses filtered assertions (-010) |
21
21
  | Context `from`, single-result filters, `scoped to`, `performer` or composite `by` | yes | PLAY0268: query context, collection-only filtering, opaque scope/implementation or multipart lookup are unadmitted | no |
22
22
  | `then no readmodel <RM> for "<key>"` | yes | yes | no |
23
23
  | `when query` -> `then result` / `then no result` | yes | yes | same as `then query`: only the query-only cases below |
24
24
  | `given clock` / `when clock`, `when trigger`, `given`/`when capture` | yes | yes (standalone and any current cratis; history: a cratis before 3.28.2 bundle no, see versions.md) | no |
25
- | Command spec listing reaction cascade events | yes (v6 semantics) | false PLAY0285 on a cratis before 3.28.2 bundle only; see SKILL.md "Version skew" | no: STAGE-ESM-011; generated CommandScenario does not settle reactions (Stage 4.83.0) |
26
- | `generated <name> = <value>` under `when`, `then returns` (ESM v7) | yes | yes on standalone Screenplay 4.68.0 or later and the current cratis bundle (history: PLAY0268 on the 4.66.0 bundled in cratis 3.28.x) | yes on Stage 4.83.0 for required scalar UUID-concept generation and scalar/named responses; unsupported types/combinations remain -028/-038 |
25
+ | Command spec listing reaction cascade events | yes (v6 semantics) | false PLAY0285 on a cratis before 3.28.2 bundle only; see SKILL.md "Version skew" | no: STAGE-ESM-011; generated CommandScenario does not settle reactions (Stage 4.89.1) |
26
+ | `generated <name> = <value>` under `when`, `then returns` (ESM v7) | yes | yes on standalone Screenplay 4.68.0 or later and the current cratis bundle (history: PLAY0268 on the 4.66.0 bundled in cratis 3.28.x) | yes on Stage 4.89.1 for supported UUID/String strategies and v15 freshness and scalar/named responses; unsupported types/combinations remain -028/-038 |
27
+ | v15 generation strategy fixtures and used-source rejection | yes | strict encoding/size/case/version/variant; Contract for invalid pins, Concurrency for reused source | supported strategies/freshness render; invalid pins refuse -011, unpinned unordered/projected assertions -038; source: command-surface `references/generated-values-and-responses.md` |
27
28
  | `then events in any order` | yes | yes | yes |
28
- | Event `stream` / `no stream`, typed `for` and stream ids | yes | ESM v8 at 4.125.0 | The pinned CLI reaches Stage route checks (toolchain `references/versions.md`); routed read-model/query replay now renders (Stage 4.83.0); reserved names/unformattable fixtures remain STAGE-ESM-030 |
29
+ | Event `stream` / `no stream`, typed `for` and stream ids | yes | ESM v8 at 4.125.0 | The pinned CLI reaches Stage route checks (toolchain `references/versions.md`); routed read-model/query replay now renders (Stage 4.89.1); reserved names/unformattable fixtures remain STAGE-ESM-030 |
29
30
  | Typed examples and overrides | yes | expanded and type-checked before binding; required fields remain required | depends on expanded contract, not fixture reuse |
30
31
  | `given operation ... fails`, `then operation`, `then compensated` | yes | unadmitted PLAY0268 | gap-fill |
31
32
  | Refusal branches, `when redelivered`, `then no events` | yes | unadmitted PLAY0268 | gap-fill |
@@ -21,7 +21,7 @@ event field goes nowhere, ask why it is recorded (audit and history are valid an
21
21
  | the user types or picks it | screen `action`, form or dialog input | default for business decisions |
22
22
  | shown before the user acts | form `populate via query` from a read model | the read model must exist and be traced |
23
23
  | the instance being acted on | the `identifier` property, carried from the screen row or route | |
24
- | allocated by the runtime | `Type generated` on a required `Uuid`-backed concept (ESM v7: binds and runs on standalone Screenplay 4.68.0 and later, including the 4.145.1 bundled in CLI 3.56.0 (`PLAY0268` on the 4.66.0 bundled in cratis 3.28.x); Stage 4.83.0 renders it; unsupported types/combinations remain -028/-038; no concept rules) | never a request input or form field; no policy, rule or requirement may read it (`PLAY0273`); return it with `returns`; where a tool cannot bind it, executable scope needs explicit allocation |
24
+ | allocated by the runtime | `Type generated` on a required scalar generatable Uuid/String concept (implicit UUID is v7; explicit serialized strategy selects v15, Screenplay 4.147.0+ with strict fixtures and whole-source freshness). CLI 3.57.0 / Stage 4.89.1 render supported strategies; types/combinations retain -028/-038; no concept rules. See command-surface `references/generated-values-and-responses.md` | never a request input or form field; no policy, rule or requirement may read it (`PLAY0273`); return it with `returns`; where a tool cannot bind it, executable scope needs explicit allocation |
25
25
  | an outside party | capture field `$.x` or a reaction trigger value | `cratis-screenplay-automations-and-translations` |
26
26
  | the caller | not an input: `$context.identity.*` in `produces`; who may act in `authorize`; "acting on own X" is a claim policy matched to the identifier or a command property | never trust a caller-supplied "who am I" |
27
27
 
@@ -1,7 +1,7 @@
1
- ## Generated fixtures and return expectations (ESM v7)
1
+ ## Generated fixtures and return expectations (ESM v7 and v15)
2
2
 
3
3
  Standalone `screenplay` 4.68.0 or later binds and runs these, and so does the current cratis bundle (the
4
- cratis 3.28.3 bundle, 4.66.0, did not); CLI 3.56.0 / Stage 4.83.0 render UUID-concept generated values,
4
+ cratis 3.28.3 bundle, 4.66.0, did not); CLI 3.57.0 / Stage 4.89.1 render supported UUID/String generation strategies,
5
5
  scalar/named responses, fixtures and `then returns`. Unsupported types/result combinations
6
6
  remain `STAGE-ESM-028`/`-038`; preserve refused specifications as gap-fill contracts. The model and rules are in `cratis-screenplay-command-surface`; the
7
7
  complete example is `cratis-screenplay-toolchain` `references/generated-responses-example.md`. Read that file when writing generated-value fixtures or scalar and record return expectations and needing a complete reference-executable model.
@@ -35,6 +35,13 @@ specification RegisteringReturnsIdentifiers
35
35
  keeps its own outcome.
36
36
  - For a generated identifier `for` is the generation fixture, not a destination assertion: expected events state their
37
37
  own destinations. For commands without a generated identifier `when ... for` keeps the destination assertion.
38
- UUID spellings on generated values normalize to lowercase hyphenated form.
38
+ UUID fixtures require canonical lowercase hyphenated form. From v15, pins must also match
39
+ exact strategy size, case, UUID version/variant and zero trailing encoding bits; invalid pins are
40
+ Contract rejections. Earlier models check canonical UUID type, not its version.
41
+ - A serialized concept generation strategy selects v15 and Guarded whole-source freshness for all
42
+ generated destinations, including implicit UUIDs. Reusing a generated source with existing facts
43
+ rejects the entire command with Concurrency, without append, response or silent retry. Below v15
44
+ fixtures retain legacy reuse. See the complete [strategy example](../../cratis-screenplay-toolchain/references/generation-strategies-example.md)
45
+ and command-surface `references/generated-values-and-responses.md` for tagged sources.
39
46
  - A reaction-invoked command that reaches generation is `Unsupported(IdentityAllocation)` (no fixture channel); a
40
47
  response-only command runs and its response is discarded.
@@ -53,11 +53,11 @@ module Collections
53
53
  - A reached reaction with a code body (`file` or inline) returns unsupported, as
54
54
  does a reaction that never settles. The reference stops at 1,000 new facts per
55
55
  scenario and 10,000 due occurrences per clock advance.
56
- - A model that uses these forms selects ESM v6 (`schemaVersion: 6`). Stage 4.83.0
57
- admits ESM v1-v13 and renders supported event-triggered Automation, but not Translate,
58
- captures, non-event triggers or opaque bodies (`-024`), `runsAs` (`-034`), `from` (`-035`)
59
- or mixed effects (`-037`). Direct-append specs and command specs cascading into reactions
60
- remain `-011`. Keep refused scope as gap-fill against this contract: `cratis-screenplay-render-and-gap-fill`.
56
+ - A model that uses these forms selects ESM v6 (`schemaVersion: 6`). Stage 4.89.1
57
+ admits ESM v1-v15 and renders supported event-triggered Automation, but not Translate,
58
+ captures, non-event triggers or opaque bodies (`-024`), claim-reading/opaque `runs as` gates (`-034`), legacy filters (`-035`)
59
+ or mixed effects (`-037`). Single-hop reaction append specs render; deeper appends and
60
+ command specs cascading into reactions remain `-011`. Keep refused scope as gap-fill against this contract: `cratis-screenplay-render-and-gap-fill`.
61
61
 
62
62
  ### Version skew: cascades and the false `PLAY0285` (cratis before 3.28.2)
63
63
 
@@ -38,7 +38,7 @@ the CLI bundle's Chronicle is in `cratis-screenplay-toolchain` `references/versi
38
38
  | Screenplay | v4.68.0 (`79801bf`) | ESM v7 generated values (`generated identifier`, decision 0026) and decision 0025's numbering; the diagnostics below were read at v4.66.0 (`c89198b`): `identifier`, `for`, constraints, generations, `id` pins, diagnostics PLAY0019/0135/0268/0271/0273/0391-0393/0446-0449/0469/0471 |
39
39
  | Chronicle | v19.50.0 (read; first read at v19.32.0 `f17a2ff`) | CHR0012, CHR0034; open defects #3744, #4123, #4131 (still open) |
40
40
  | Arc | v22.72.0 | `[ProtectedDecision]` and `DecisionRead<T>` (since v22.39.0) |
41
- | Stage | v4.83.0 | rendered apps pin the Arc and Chronicle client/kernel listed in the Stage skill's `references/rendered-application.md`; protected-read APIs available to gap-fill. Historical 4.24.2 admission probe: ESM v4, evolved events refused with `STAGE-ESM-026` |
41
+ | Stage | v4.89.1 | rendered apps pin the Arc and Chronicle client/kernel listed in the Stage skill's `references/rendered-application.md`; protected-read APIs available to gap-fill. Historical 4.24.2 admission probe: ESM v4, evolved events refused with `STAGE-ESM-026` |
42
42
 
43
43
  Full pin table: `references/versions.md` in `cratis-screenplay-toolchain`. Re-check the three
44
44
  Chronicle issues before relying on a constraint in a later release.
@@ -88,9 +88,9 @@ option, mark it `ASSUMED` in the slice or module `documentation` and in the sess
88
88
  namespace, process-stream routing and concurrency scope apart
89
89
  (`references/chronicle-boundaries.md`). Declared `eventsource`/`stream`/`streamId` and
90
90
  command/specification routes bind and reference-execute as ESM v8 on 4.125.0.
91
- The pinned CLI (toolchain `references/versions.md`) reaches Stage construct checks through v13; keep the routing
91
+ The pinned CLI (toolchain `references/versions.md`) reaches Stage construct checks through v15; keep the routing
92
92
  contract when target admission requires gap-fill. Forms/boundaries:
93
- toolchain `references/sources-and-streams.md`. A `generated identifier` (ESM v7, standalone 4.68.0 and later; Stage 4.83.0 renders required scalar UUID concepts; unsupported types/results still refuse -028/-038) is
93
+ toolchain `references/sources-and-streams.md`. A `generated identifier` (ESM v7, standalone 4.68.0 and later; Stage 4.89.1 renders supported UUID/String strategies and v15 freshness; unsupported types/results still refuse -028/-038) is
94
94
  generated fresh on every acceptance: it is not a retry identity, and generated values give no
95
95
  idempotency, retry or deduplication guarantee. When a retry must find the same stream, the caller
96
96
  supplies the identifier before the first attempt.
@@ -156,7 +156,7 @@ option, mark it `ASSUMED` in the slice or module `documentation` and in the sess
156
156
  block compiles but is PLAY0271 at binding. Keep both when they state real intent; they are not
157
157
  protection. `description` text never reaches rendered code: a rule that lives only in prose is
158
158
  unenforced there.
159
- - `pii` and `secret` bind as ESM v13 on standalone 4.142.0 (since 4.141.0), not the pinned CLI;
159
+ - `pii` and `secret` bind as ESM v13 on standalone 4.142.0 (since 4.141.0) and the pinned CLI;
160
160
  enum/identity compliance and protected events with explicit subject marks still
161
161
  refuse PLAY0268 (command-surface `references/compliance.md`). Legacy markers are
162
162
  deprecated (PLAY0565). Never remove protection to pass a tool. PLAY0515 also refuses
@@ -178,7 +178,7 @@ integration support.
178
178
 
179
179
  Never let an external system's ids, codes or shapes become our domain vocabulary: translate at
180
180
  the edge, keep the external reference as a property when it is needed for correlation or dedup.
181
- Stage 4.83.0 renders supported internal event-triggered Automation, but Translate,
181
+ Stage 4.89.1 renders supported internal event-triggered Automation, but Translate,
182
182
  captures and foreign/public event boundaries remain refused. The translation is gap-fill
183
183
  with the model as its contract (`cratis-screenplay-render-and-gap-fill`).
184
184
 
@@ -38,8 +38,8 @@ number. Removing a member still needs replay and mixed-reader compatibility deci
38
38
 
39
39
  Numbered members may have sparse or negative unique int32 values, all or none per
40
40
  enum. Source authoring shipped in 4.137.0; non-positional numbers bind as ESM v12
41
- in 4.139.0. Positional pins retain older executable bytes/version. CLI 3.56.0 bundles Screenplay 4.145.1 /
42
- Stage 4.83.0, admitting v12 and rendering explicit member numbers; keep the pins.
41
+ in 4.139.0. Positional pins retain older executable bytes/version. CLI 3.57.0 bundles Screenplay 4.147.1 /
42
+ Stage 4.89.1, admitting v12 and rendering explicit member numbers; keep the pins.
43
43
  Short-lived input/view-only enums may remain positional. Use opt-in
44
44
  `--check enum-pinning` (PLAY0671) to find unnumbered enums used by event properties.
45
45
  Syntax/example and source evidence: command-surface [enum numbers](../../cratis-screenplay-command-surface/references/enum-numbers.md).
@@ -16,6 +16,6 @@
16
16
  { "kind": "skill-contains", "value": "bind and reference-execute as ESM v8" },
17
17
  { "kind": "skill-contains", "value": "STAGE-ESM-026" },
18
18
  { "kind": "skill-contains", "value": "generated values give no\n idempotency, retry or deduplication guarantee" },
19
- { "kind": "skill-contains", "value": "Stage construct checks through v13" }
19
+ { "kind": "skill-contains", "value": "Stage construct checks through v15" }
20
20
  ]
21
21
  }