@cratis/pi 7.40.0 → 7.42.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 (76) hide show
  1. package/package/corpus/harnesses/copilot/instructions/local-work-artifacts.instructions.md +12 -6
  2. package/package/corpus/harnesses/pi/extensions/cratis-hooks/index.ts +35 -2
  3. package/package/corpus/hooks/README.md +24 -0
  4. package/package/corpus/hooks/scripts/cratis-cleanup-worktrees.sh +184 -0
  5. package/package/corpus/hooks/settings.template.json +21 -0
  6. package/package/corpus/product-sync.json +10 -10
  7. package/package/corpus/prompts/ship-changes.prompt.md +15 -0
  8. package/package/corpus/rules/local-work-artifacts.md +12 -6
  9. package/package/corpus/skills/cratis-arc-command/references/generated-values.md +3 -2
  10. package/package/corpus/skills/cratis-chronicle-reactor/SKILL.md +1 -1
  11. package/package/corpus/skills/cratis-screenplay-automations-and-translations/SKILL.md +3 -3
  12. package/package/corpus/skills/cratis-screenplay-automations-and-translations/references/audit-format.md +2 -2
  13. package/package/corpus/skills/cratis-screenplay-automations-and-translations/references/automation-patterns.md +1 -1
  14. package/package/corpus/skills/cratis-screenplay-automations-and-translations/references/provenance.md +2 -2
  15. package/package/corpus/skills/cratis-screenplay-automations-and-translations/references/public-events-and-direction.md +1 -1
  16. package/package/corpus/skills/cratis-screenplay-automations-and-translations/references/realization-and-gap-fill.md +5 -4
  17. package/package/corpus/skills/cratis-screenplay-automations-and-translations/references/todo-list-example.md +1 -1
  18. package/package/corpus/skills/cratis-screenplay-captures-and-reactions/SKILL.md +5 -5
  19. package/package/corpus/skills/cratis-screenplay-captures-and-reactions/references/invocation-identity.md +4 -2
  20. package/package/corpus/skills/cratis-screenplay-command-surface/SKILL.md +10 -8
  21. package/package/corpus/skills/cratis-screenplay-command-surface/references/compliance.md +7 -6
  22. package/package/corpus/skills/cratis-screenplay-command-surface/references/enum-numbers.md +4 -4
  23. package/package/corpus/skills/cratis-screenplay-command-surface/references/generated-values-and-responses.md +137 -50
  24. package/package/corpus/skills/cratis-screenplay-command-surface/verification.json +12 -7
  25. package/package/corpus/skills/cratis-screenplay-event-modeling/SKILL.md +7 -7
  26. package/package/corpus/skills/cratis-screenplay-event-modeling/references/nine-steps.md +1 -1
  27. package/package/corpus/skills/cratis-screenplay-event-modeling/references/parsed-not-runnable.md +4 -4
  28. package/package/corpus/skills/cratis-screenplay-model-authoring/SKILL.md +1 -1
  29. package/package/corpus/skills/cratis-screenplay-model-authoring/references/language-reference.md +6 -4
  30. package/package/corpus/skills/cratis-screenplay-model-authoring/references/mcp-tools.md +3 -1
  31. package/package/corpus/skills/cratis-screenplay-model-review/references/anti-patterns.md +1 -1
  32. package/package/corpus/skills/cratis-screenplay-model-review/references/checklist.md +1 -1
  33. package/package/corpus/skills/cratis-screenplay-modeling-lifecycle/SKILL.md +2 -2
  34. package/package/corpus/skills/cratis-screenplay-modeling-lifecycle/references/phases.md +1 -1
  35. package/package/corpus/skills/cratis-screenplay-modeling-lifecycle/references/vocabulary-map.md +1 -1
  36. package/package/corpus/skills/cratis-screenplay-read-surface/SKILL.md +1 -1
  37. package/package/corpus/skills/cratis-screenplay-read-surface/references/equality-filters.md +15 -10
  38. package/package/corpus/skills/cratis-screenplay-render-and-gap-fill/SKILL.md +11 -11
  39. package/package/corpus/skills/cratis-screenplay-render-and-gap-fill/references/delivery-protocol.md +1 -1
  40. package/package/corpus/skills/cratis-screenplay-render-and-gap-fill/references/gap-fill-handoff.md +4 -4
  41. package/package/corpus/skills/cratis-screenplay-render-and-gap-fill/references/renderability-gate.md +5 -5
  42. package/package/corpus/skills/cratis-screenplay-render-and-gap-fill/verification.json +1 -1
  43. package/package/corpus/skills/cratis-screenplay-scenario-coverage/references/spec-forms-by-mode.md +6 -5
  44. package/package/corpus/skills/cratis-screenplay-slice-design/references/field-lineage.md +1 -1
  45. package/package/corpus/skills/cratis-screenplay-specifications/references/generated-fixtures.md +10 -3
  46. package/package/corpus/skills/cratis-screenplay-specifications/references/reactions-and-cascades.md +5 -5
  47. package/package/corpus/skills/cratis-screenplay-streams-and-consistency/SKILL.md +4 -4
  48. package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/boundaries.md +1 -1
  49. package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/evolution.md +2 -2
  50. package/package/corpus/skills/cratis-screenplay-streams-and-consistency/verification.json +1 -1
  51. package/package/corpus/skills/cratis-screenplay-toolchain/SKILL.md +17 -13
  52. package/package/corpus/skills/cratis-screenplay-toolchain/references/cheat-sheet-example.md +2 -2
  53. package/package/corpus/skills/cratis-screenplay-toolchain/references/diagnostics.md +6 -3
  54. package/package/corpus/skills/cratis-screenplay-toolchain/references/doc-contradictions.md +2 -2
  55. package/package/corpus/skills/cratis-screenplay-toolchain/references/executable-subset.md +26 -21
  56. package/package/corpus/skills/cratis-screenplay-toolchain/references/generation-strategies-example.md +43 -0
  57. package/package/corpus/skills/cratis-screenplay-toolchain/references/production-routes-and-filters.md +5 -2
  58. package/package/corpus/skills/cratis-screenplay-toolchain/references/renderable-subset.md +32 -32
  59. package/package/corpus/skills/cratis-screenplay-toolchain/references/screenplay-contract.json +1499 -46
  60. package/package/corpus/skills/cratis-screenplay-toolchain/references/screenplay-contract.version +1 -1
  61. package/package/corpus/skills/cratis-screenplay-toolchain/references/sources-and-streams.md +2 -2
  62. package/package/corpus/skills/cratis-screenplay-toolchain/references/traps.md +3 -3
  63. package/package/corpus/skills/cratis-screenplay-toolchain/references/verdicts.md +2 -2
  64. package/package/corpus/skills/cratis-screenplay-toolchain/references/versions.md +50 -38
  65. package/package/corpus/skills/cratis-screenplay-toolchain/verification.json +8 -6
  66. package/package/corpus/skills/cratis-screenplay-ui-composition/SKILL.md +5 -4
  67. package/package/corpus/skills/cratis-screenplay-ui-composition/references/response-continuations.md +109 -0
  68. package/package/corpus/skills/cratis-screenplay-ui-composition/references/worked-flow.md +1 -1
  69. package/package/corpus/skills/cratis-screenplay-ui-composition/verification.json +5 -0
  70. package/package/corpus/skills/cratis-stage-rendering-and-sandbox/SKILL.md +17 -18
  71. package/package/corpus/skills/cratis-stage-rendering-and-sandbox/references/admission.md +47 -35
  72. package/package/corpus/skills/cratis-stage-rendering-and-sandbox/references/rendered-application.md +7 -7
  73. package/package/corpus/skills/cratis-stage-rendering-and-sandbox/references/sandbox-and-specrunner.md +20 -8
  74. package/package/corpus/skills/cratis-stage-rendering-and-sandbox/references/scene-runtime.md +1 -1
  75. package/package/corpus/skills/cratis-stage-rendering-and-sandbox/verification.json +4 -1
  76. package/package.json +1 -1
@@ -72,8 +72,10 @@ module Work
72
72
  Historical CLI 3.41.0 bundled Screenplay 4.114.0, which did not parse `runs as`:
73
73
  the example's `cratis screenplay validate --executable --warnings-as-errors`
74
74
  returned PLAY0137, exit 5. This is not a current parser claim. The pinned CLI/Stage pair
75
- (`cratis-screenplay-toolchain/references/versions.md`) reaches v10 construct admission, but
76
- reaction identity still refuses STAGE-ESM-034. Previous CLI 3.46.1/Stage 4.52.0
75
+ (`cratis-screenplay-toolchain/references/versions.md`) renders role-only/authenticated-only reaction invocation gates with `[ExecuteCommandsAsSystem]`;
76
+ claim-reading or opaque gates still refuse STAGE-ESM-034 (including claim reads under `not`/`or`).
77
+ Source: Stage `v4.89.1:Source/Rendering.Cratis/Semantics/SemanticCratisAdmission.ReactionIdentity.cs:11-28`;
78
+ `Documentation/reference/reaction-rendering.md:57-59`. Previous CLI 3.46.1/Stage 4.52.0
77
79
  audited through v7 only (`references/versions.md` in toolchain).
78
80
  Clock/application-trigger identities have no Stage Arc realization either.
79
81
  Use authorized gap-fill with the model as contract; returned-command Arc identity
@@ -29,6 +29,7 @@ Pins: toolchain `references/versions.md`; sources below. Compilation is not exec
29
29
  - `4.68.0` (`79801bf`): generated-value/response rule probes (ESM v7).
30
30
  - `4.127.0`: identity and compliance syntax (`identity.md`, `context.md`, `concepts.md`, `purposes.md`, `events.md`, `diagnostics.md`).
31
31
  - `4.141.0`: v13 compliance admission; rechecked at `4.142.0`: `references/compliance.md`.
32
+ - `4.148.0`: v15 generation strategies/strict fixtures/freshness; Stage `4.89.1` realization: `references/generated-values-and-responses.md`.
32
33
 
33
34
  "Parses" and "runs" are different claims. The executable profile, and what
34
35
  each construct binds to, is in the `cratis-screenplay-model-authoring` language
@@ -290,15 +291,16 @@ An empty block or an unknown dimension is an error. Omitting `concurrency` does
290
291
  not mean unchecked appends: Chronicle's default optimistic concurrency applies
291
292
  to the routed scope. This does not make command `reads` protected.
292
293
 
293
- ## Generated values and responses (ESM v7)
294
+ ## Generated values and responses (ESM v7 and v15)
294
295
 
295
- Generated values/responses bind as ESM v7, including in the current CLI bundle.
296
- The historical CLI 3.41.0 check admitted v7 to Stage planning; its canonical corpus got generated-value
297
- and response refusals STAGE-ESM-028/029. Binding is not a render claim.
298
- Read [references/generated-values-and-responses.md](references/generated-values-and-responses.md) when adding or
299
- reviewing `generated` properties, `returns` responses, or decision 0023 constructs.
300
- Read `cratis-screenplay-toolchain/references/generated-responses-example.md` when adding generated command values or response assertions and you need a complete compiled example.
301
- Read `cratis-screenplay-toolchain/references/sources-and-streams.md` when authoring named event sources, streams or command routes that require hand-written realization.
296
+ UUID generation/responses bind as v7; serialized concept `generate` selects v15:
297
+ UUIDv7/ULID/TypeID/NanoID/bytes, strict fixtures and whole-source freshness.
298
+ Reuse rejects Concurrency, no append/retry. Generated rules/secrets and pattern/random/rule
299
+ remain refused. Historical CLI 3.41.0 refusals: STAGE-ESM-028/029.
300
+ Read [references/generated-values-and-responses.md](references/generated-values-and-responses.md)
301
+ for `generated`, `generate`, `returns`, strict fixtures/freshness and renderer limits.
302
+ Complete example: `cratis-screenplay-toolchain/references/generated-responses-example.md`.
303
+ Routes and realization: `cratis-screenplay-toolchain/references/sources-and-streams.md`.
302
304
 
303
305
  ## `constraint` — uniqueness at append time
304
306
 
@@ -71,18 +71,19 @@ wins and no secret scope is stored; reasons stay report-only PLAY0270.
71
71
  Unmarked models keep their exact executable bytes and revision. The reference
72
72
  evaluator runs marked models with unchanged outcomes but tests neither encryption
73
73
  nor erasure. Consumers must explicitly admit v13 and realize the protection;
74
- CLI 3.56.0 bundles Screenplay 4.145.1 / Stage 4.83.0 and admits v13. Stage
74
+ CLI 3.57.0 bundles Screenplay 4.147.1 / Stage 4.89.1 and admits v13. Stage
75
75
  renders `[PII]` or `[Encrypted]` + `[NotAudited]` on the concept, honoring secret
76
76
  namespace/global scope; personal classification wins. Every protected command input,
77
77
  including personal data and nested/collection uses, also gets property-level
78
78
  `[NotAudited]`. Qualifiers do not alter the generated attribute; reasons remain metadata.
79
79
  Protected identity uses and enum concepts refuse `STAGE-ESM-040` (the source binder
80
- already refuses the enum/identity shapes below). No explicit subject lineage renders.
80
+ already refuses the enum/identity shapes below). Non-text `secret` concepts (Int/Decimal/Bool/Date/DateTime/Uuid)
81
+ refuse `STAGE-ESM-041`; `pii secret` uses PII and is exempt. No explicit subject lineage renders.
82
+ The semantic Host now protects values at rest and releases them on read, but existing stores keep
83
+ earlier plaintext events. Reference/specification success does not prove storage protection.
81
84
  Never remove protection to fit a tool. Sources: CLI
82
- `v3.56.0:Directory.Packages.props:8-10`; Stage `v4.83.0`,
83
- `Documentation/reference/compliance-rendering.md:16-54`,
84
- `Source/Rendering.Cratis/Semantics/SemanticCratisAdmission.Compliance.cs:12-33`,
85
- `SemanticCommandCompliance.cs:14-28`.
85
+ `v3.57.0:Directory.Packages.props:8-10`; Stage `v4.89.1`,
86
+ `Documentation/reference/compliance-rendering.md:16-70`.
86
87
 
87
88
  Enum and identity concepts still refuse PLAY0268 at binding only (identity means
88
89
  event-source/stream identity); source validation alone cannot report this binder diagnostic.
@@ -77,8 +77,8 @@ length mismatch, duplicates, non-int32 entries or a positional array (non-canoni
77
77
  Programmatic validation enforces the same contract. Specifications still compare
78
78
  names; numbers are neither alternative fixture values nor flags.
79
79
 
80
- Consumers must **explicitly admit v12**. CLI 3.56.0 (Screenplay 4.145.1 / Stage
81
- 4.83.0) admits through v13 and renders explicit numbers as `Member = N` (sparse
80
+ Consumers must **explicitly admit v12**. CLI 3.57.0 (Screenplay 4.147.1 / Stage
81
+ 4.89.1) admits through v15 and renders explicit numbers as `Member = N` (sparse
82
82
  and negative, `-0` as 0; unnumbered enums keep declaration order). Stage first
83
83
  admitted v12 in 4.76.0. Do not remove enum pins to fit an older consumer;
84
84
  report its admission gap. See toolchain `references/versions.md`.
@@ -87,7 +87,7 @@ Sources checked at `v4.139.0`: `Documentation/screenplay/concepts.md`,
87
87
  `interoperability.md`, `diagnostics.md`, `mcp/authoring-tools.md`, decision 0065,
88
88
  `Semantics/Versions.cs`, `SemanticModelValidator.EnumMemberNumbers.cs` and the
89
89
  source-backed `EnumMemberNumbersCorpus.V12` (under `Source/DotNET/`). Consumer
90
- pins: CLI `v3.56.0:Directory.Packages.props:8-10` and
91
- `Source/Cli/Commands/Render/RenderedSemanticVersions.cs:33`; Stage `v4.83.0`,
90
+ pins: CLI `v3.57.0:Directory.Packages.props:8-10` and
91
+ `Source/Cli/Commands/Render/RenderedSemanticVersions.cs:34`; Stage `v4.89.1`,
92
92
  `Source/Rendering.Cratis/Semantics/SemanticVersionFeatures.cs:100`,
93
93
  `SemanticEnumMembers.cs:15-26`, `SemanticCommonArtifactRenderer.cs:56-65`.
@@ -1,59 +1,146 @@
1
- ## Generated values and responses (ESM v7)
2
-
3
- A `generated` command property and `returns` response bind and reference-execute
4
- as ESM v7 (checked at 4.68.0). Current pins:
5
- `cratis-screenplay-toolchain/references/versions.md`. CLI#261 is closed: CLI now admits v7
6
- to Stage planning. CLI 3.56.0 bundles Screenplay 4.145.1 and Stage 4.83.0, which renders
7
- required scalar UUID-concept generated values, scalar/named responses, generation fixtures and
8
- `then returns`. The historical CLI 3.41.0 STAGE-ESM-028/029 probe no longer describes this bundle.
9
- Unsupported generated types still refuse STAGE-ESM-028; routed results, generated-concept rules,
10
- legacy destination allocation, generated unique-constraint mappings and response/name collisions
11
- refuse STAGE-ESM-038. Binding alone never proves rendering.
12
- Sources: CLI `v3.56.0:Directory.Packages.props:8-10`; Stage `v4.83.0`,
13
- `Source/Rendering.Cratis/Semantics/SemanticVersionFeatures.cs:287-305,380-399,454-493`,
14
- `SemanticCratisAdmission.CommandResults.cs:12-55`, `SemanticSurfaceLedger.cs:112-116`. Screenplay 4.139.0 has only `generated` / `generated identifier`; no `generate` strategy form exists. Do not turn this into a blanket compiler
15
- refusal or promise a render from binding alone. Preserve the contract for gap-fill
16
- where admission refuses. Historical rules below were read at 4.68.0. Complete compiled example:
17
- `cratis-screenplay-toolchain` `references/generated-responses-example.md`.
1
+ # Generated values and responses (ESM v7 and v15)
2
+
3
+ ## Contents
4
+
5
+ - The concept declares how; the property declares that
6
+ - Version and freshness
7
+ - Responses and pre-generation boundaries
8
+ - What CLI 3.57.0 / Stage 4.89.1 realizes
9
+
10
+ `generated` properties and `returns` bind/reference-execute since 4.68.0 (ESM v7).
11
+ Concept generation strategies and whole-source freshness shipped in Screenplay
12
+ 4.147.0 (ESM v15); standalone pin **4.148.0** includes them. CLI **3.57.0** bundles
13
+ Screenplay **4.147.1** / Stage **4.89.1**, rendering the supported strategies,
14
+ scalar/named responses, fixtures and `then returns`. Binding is not rendering.
15
+ Historical CLI 3.41.0 STAGE-ESM-028/029 probes do not describe this bundle.
16
+
17
+ Sources: Cratis/Screenplay `v4.148.0:Documentation/screenplay/generated-values.md:6-60`,
18
+ `generated-values/strategies.md:6-111`,
19
+ `Source/DotNET/Screenplay/Semantics/SemanticModelBinder.Generation.cs:14-88`;
20
+ Cratis/cli `v3.57.0:Directory.Packages.props:8-10`; Cratis/Stage
21
+ `v4.89.1:Documentation/reference/generated-values-rendering.md:6-146`.
22
+ Decision 0054 describes later phases too; only its shipped phase 2b-1 is taught here.
23
+
24
+ ## The concept declares how; the property declares that
18
25
 
19
26
  ```screenplay excerpt
27
+ concept ProjectId : Uuid
28
+ generate uuidv7
29
+ concept ReceiptCode : String
30
+ generate nanoid
20
31
  command RegisterProject
21
32
  projectId ProjectId generated identifier
22
- receiptId ReceiptId generated
23
- name ProjectName
33
+ receipt ReceiptCode generated
34
+ name String
35
+ produces event ProjectRegistered
36
+ name String = name
37
+ receipt ReceiptCode = receipt
24
38
  returns
25
39
  projectId = projectId
26
- receiptId ReceiptId = receiptId
40
+ receipt ReceiptCode = receipt
27
41
  ```
28
42
 
29
- Rules (all read at `v4.68.0`):
30
-
31
- - `generated` is command-only and needs a required, scalar concept backed by `Uuid` (not bare `Uuid`, not
32
- optional, not a collection). Modifier order is `Type optional generated identifier`.
33
- - A generated value is not a request input, form field, invocation argument or ordinary specification value.
34
- The command runs authorization and validation first, then generates, then productions and the response, so
35
- authorization policies (also inherited and the implicit `subject` of a generated identifier), property rules
36
- and requirements cannot reference one (`PLAY0273`), and a concept with any validation rule cannot back a
37
- generated property (`PLAY0268`). Reactions map request inputs only.
38
- - `returns <property>` is a scalar response; bare `returns` opens an ordered record of `<name> [<Type>] = <property>`
39
- fields over direct properties of this command. A type annotation must equal the source's type and
40
- optionality. Collections, read aliases, arithmetic and whole read models are not supported. At most one
41
- unconditional response, as a command sibling.
42
- - A two-token `returns name` is a response when `name` is another property of this command; otherwise it is a
43
- property named `returns`. `returns @name` forces a response, `@returns Type` a property.
44
- - A response exists only on acceptance. Rejection, denial or an unsupported outcome has none; a later reaction or
45
- scenario-query failure keeps the accepted facts and clears the response. A response-only command records no
46
- facts. Field names are an external contract: renaming one changes the revision.
47
- - A generated identifier is the implicit destination of inline productions. A plain `produces` without `for` keeps
48
- its own allocation channel and a generation fixture never satisfies it.
49
- - Generated values give no idempotency, retry or deduplication guarantee. Specifications supply fixtures and assert
50
- the response: `cratis-screenplay-specifications`.
51
-
52
- Operations remain authorable/unadmitted (PLAY0268). Named event sources,
53
- streams and command/specification routes instead bind and reference-execute as
54
- ESM v8 at 4.125.0; the pinned CLI (toolchain `references/versions.md`) reaches Stage admission through v13,
55
- not blanket target support. Syntax/MCP acceptance alone is not execution. Source/stream
56
- forms and realization boundary: `cratis-screenplay-toolchain`
57
- `references/sources-and-streams.md`. Do not infer further syntax or provider
58
- admission from decision numbers.
43
+ A generated property must be a required scalar **concept**, not a bare primitive,
44
+ optional value or collection. Only Uuid and String generation are executable.
45
+ A Uuid concept implicitly generates `uuid`; String needs an explicit strategy.
46
+ Each concept owns at most one `generate` line; there is no per-property override.
47
+ Generated identifiers need Uuid or String backing and at least 64 random bits.
48
+
49
+ | Strategy | Backing | Exact default shape / options |
50
+ | --- | --- | --- |
51
+ | `uuid` | Uuid, String | UUID v4, RFC variant, lowercase canonical D text; 122 random bits |
52
+ | `uuidv7` | Uuid, String | UUID v7, RFC variant; 74 random bits; reveals time, not monotonic within a millisecond |
53
+ | `ulid` | String | 26 uppercase Crockford symbols, first 0–7; 80 random bits; reveals time, not strict millisecond ordering |
54
+ | `typeid "user"` | String | TypeID 0.3, lowercase Crockford UUIDv7 suffix; 74 random bits; prefix 1–63 lowercase letters/underscores, no leading/trailing underscore; empty prefix omits separator |
55
+ | `nanoid [size]` | String | Default 21 symbols from `A-Za-z0-9_-`; size 1–256; entropy is size × log2(alphabet size) |
56
+ | `bytes <count> base64url` / `hex` / `base32` | String | Count 1–512; 8 × count random bits; RFC 4648 without padding; hex lowercase, base32 uppercase; unused trailing bits zero |
57
+
58
+ Modifiers occur once each, in any authored order. `prefix "text"` is printable
59
+ ASCII, at most 32 characters, on uuid/uuidv7/ulid/nanoid/bytes; UUID prefixes need
60
+ String backing. `case lower|upper` applies only to String uuid/uuidv7, ulid and
61
+ hex/base32 bytes; it never changes the prefix. `alphabet "chars"` replaces
62
+ NanoID's alphabet with 2–256 distinct printable ASCII characters (the repertoire
63
+ has only 95). TypeID has its own prefix and accepts none of these modifiers.
64
+ Time and prefixes add no entropy. Below 64 random bits is PLAY0684 (error) for an
65
+ identifier; non-identifiers warn PLAY0683 unless a single-property unique
66
+ constraint covers the mapped event property. That suppression does not make
67
+ Stage render generated unique-constraint mappings.
68
+
69
+ `pattern`, `random`, `rule` and checksum syntax parse/print but refuse PLAY0268;
70
+ `generate sequence` is reserved (PLAY0682). Generated-concept validation rules
71
+ and compliance markers, including generated secrets, remain refused. Do not
72
+ remove classification or pretend a random String is a credential contract.
73
+
74
+ ## Version and freshness
75
+
76
+ A serialized concept `generation` member selects **v15**. Implicit Uuid generation
77
+ and explicit unmodified Uuid `generate uuid` omit it and preserve earlier executable
78
+ bytes/revision. A v15 model guards **all** generated destinations, including its
79
+ implicit UUIDs. An append whose destination equals any value generated in that
80
+ invocation requires the **whole source** to have no existing facts, regardless
81
+ of stream or event type. Multiple initial facts in one invocation are allowed;
82
+ a skipped production makes no freshness claim. Reuse rejects the whole command
83
+ with `Concurrency`, appends nothing and does not silently regenerate or retry.
84
+ Older models are Unguarded and retain legacy fixture reuse.
85
+
86
+ Freshness is neither authorization nor idempotency. Client-minted identifiers
87
+ remain inputs; protect their invariants with constraints. Never use generation
88
+ as a deduplication key, a gapless sequence, or proof that a projection is ready.
89
+
90
+ Specifications pin values, not seeds: `for` pins a generated identifier;
91
+ `generated <name> = <value>` pins another generated property. The reference
92
+ evaluator draws no randomness. From v15 every pin must match exact strategy
93
+ encoding, size, case, UUID version/variant and zero trailing bits. Invalid pins
94
+ are Contract rejections, not client validation failures. Older models retain
95
+ canonical UUID checks without a version check. Complete executable examples:
96
+ [generated responses](../../cratis-screenplay-toolchain/references/generated-responses-example.md)
97
+ and [generation strategies](../../cratis-screenplay-toolchain/references/generation-strategies-example.md).
98
+
99
+ ## Responses and pre-generation boundaries
100
+
101
+ - Generated values are not request inputs, form fields, invocation arguments or
102
+ ordinary specification values. Authorization/validation precede generation:
103
+ policies (including a generated identifier's implicit `subject`), rules and
104
+ requirements cannot read them (PLAY0273). Reactions map request inputs only.
105
+ - `returns <property>` exposes a scalar; a `returns` block has ordered
106
+ `<name> [<Type>] = <property>` fields over direct command properties. An
107
+ annotation must match source type/optionality. Collections, read aliases,
108
+ arithmetic and whole read models are unsupported. One unconditional response,
109
+ as a command sibling. `returns @name` forces a response; `@returns Type` is a property.
110
+ - Only acceptance has a response. Rejection, denial or unsupported outcomes have
111
+ none; later settlement/query failure clears it. Response-only commands record
112
+ no facts. Field names are an external contract: renaming changes revision.
113
+ - A generated identifier is the implicit inline production destination; a plain
114
+ destination-less `produces` retains a separate allocation channel. A fixture
115
+ never satisfies that channel.
116
+ - Screenplay **4.148.0** resolves response names in form submit and execute-success
117
+ continuations without changing ESM. The CLI's **4.147.1** compiler lacks that
118
+ resolution, and Stage **4.89.1** does not provide Scene runtime continuation
119
+ binding. See UI composition [response continuations](../../cratis-screenplay-ui-composition/references/response-continuations.md).
120
+
121
+ ## What CLI 3.57.0 / Stage 4.89.1 realizes
122
+
123
+ Stage emits strategy-specific `IGeneratable<T>.New()` factories over Fundamentals
124
+ 7.24.0 (via the Arc scaffold pin in Stage's `references/rendered-application.md`). v15 generated destinations use explicit
125
+ `EventsWithConcurrencyScopes` with `BeforeFirst` whole-source scopes; Chronicle
126
+ checks atomically at append. Generated rejection specs assert
127
+ `ValidationResultReason.ConcurrencyViolation`, not Arc's message text. This is
128
+ Stage's explicit realization, not a claim that Arc #3129 is delivered.
129
+ Time-based factories use wall clock, not command-receipt timestamps.
130
+
131
+ | Refusal | Still unsupported |
132
+ | --- | --- |
133
+ | STAGE-ESM-028 | Unknown strategies, non-concepts, optional/collection generation; every explicit strategy on the legacy syntax engine |
134
+ | STAGE-ESM-011 | A v15 fixture that does not match its strategy shape |
135
+ | STAGE-ESM-038 | Routing combined with generation/responses; generated-property rules/requirements or concept rules; occurrence parameter/response/factory name collisions; unsupported response sources/composites/collections; generated unique-constraint mappings; generated identifier plus destination-less plain production |
136
+ | STAGE-ESM-038 | Unpinned generation with unordered event, read-model or query expectations |
137
+ | STAGE-ESM-004 / -006 | Multi-command StateChange slices / conditional productions |
138
+
139
+ Sequence generation is refused at binding (PLAY0682) and never reaches Stage;
140
+ clock fixtures remain unsupported.
59
141
 
142
+ Missing pins in generated Debug specs use `AllowGeneration()` with relational
143
+ assertions against captured values; v15 captures also check strategy shape.
144
+ The in-memory Stage executor instead requires deterministic fixtures and returns
145
+ Unsupported(IdentityAllocation) when missing. Build and run generated Debug
146
+ specifications separately; source reading is not a render or runtime result.
@@ -8,7 +8,7 @@
8
8
  { "kind": "skill-contains", "value": "PLAY0268 at binding only", "file": "references/compliance.md" },
9
9
  { "kind": "skill-contains", "value": "reasons stay report-only PLAY0270", "file": "references/compliance.md" },
10
10
  { "kind": "skill-contains", "value": "`STAGE-ESM-040`", "file": "references/compliance.md" },
11
- { "kind": "skill-contains", "value": "CLI 3.56.0 bundles Screenplay 4.145.1 / Stage 4.83.0", "file": "references/compliance.md" },
11
+ { "kind": "skill-contains", "value": "CLI 3.57.0 bundles Screenplay 4.147.1 / Stage 4.89.1", "file": "references/compliance.md" },
12
12
  { "kind": "skill-contains", "value": "Enum and identity", "file": "references/compliance.md" },
13
13
  { "kind": "skill-contains", "value": "PLAY0653", "file": "references/compliance.md" },
14
14
  { "kind": "skill-contains", "value": "personal` is an alias of `pii", "file": "references/compliance.md" },
@@ -88,13 +88,18 @@
88
88
  },
89
89
  {
90
90
  "kind": "skill-contains",
91
- "value": "streams and command/specification routes instead bind and reference-execute as", "file": "references/generated-values-and-responses.md"
91
+ "value": "Generated identifiers need Uuid or String backing and at least 64 random bits.", "file": "references/generated-values-and-responses.md"
92
92
  },
93
- { "kind": "skill-contains", "value": "Generated values and responses (ESM v7)" },
94
- { "kind": "skill-contains", "value": "A generated value is not a request input", "file": "references/generated-values-and-responses.md" },
95
- { "kind": "skill-contains", "value": "(`PLAY0273`), and a concept with any validation rule cannot back a\n generated property (`PLAY0268`)", "file": "references/generated-values-and-responses.md" },
96
- { "kind": "skill-contains", "value": "A response exists only on acceptance", "file": "references/generated-values-and-responses.md" },
93
+ { "kind": "skill-contains", "value": "Generated values and responses (ESM v7 and v15)" },
94
+ { "kind": "skill-contains", "value": "Generated values are not request inputs", "file": "references/generated-values-and-responses.md" },
95
+ { "kind": "skill-contains", "value": "Generated-concept validation rules\nand compliance markers, including generated secrets, remain refused.", "file": "references/generated-values-and-responses.md" },
96
+ { "kind": "skill-contains", "value": "Only acceptance has a response", "file": "references/generated-values-and-responses.md" },
97
97
  { "kind": "skill-contains", "value": "STAGE-ESM-028/029", "file": "references/generated-values-and-responses.md" },
98
- { "kind": "skill-contains", "value": "4.68.0" }
98
+ { "kind": "skill-contains", "value": "4.68.0" },
99
+ { "kind": "skill-contains", "value": "whole source", "file": "references/generated-values-and-responses.md" },
100
+ { "kind": "skill-contains", "value": "`Concurrency`", "file": "references/generated-values-and-responses.md" },
101
+ { "kind": "skill-contains", "value": "PLAY0682", "file": "references/generated-values-and-responses.md" },
102
+ { "kind": "skill-contains", "value": "zero trailing bits", "file": "references/generated-values-and-responses.md" },
103
+ { "kind": "skill-contains", "value": "STAGE-ESM-038", "file": "references/generated-values-and-responses.md" }
99
104
  ]
100
105
  }
@@ -108,9 +108,9 @@ is the fallback, and neither names the other's verdict. Versions and commands:
108
108
  - [ ] Personal data is classified on the `concept`, with a reason.
109
109
  - [ ] Specifications name the rejections, not only the happy path.
110
110
  - [ ] Bind with the runtime's compiler; pins: toolchain `references/versions.md`.
111
- CLI 3.56.0 / Stage 4.83.0 admit through v13, including supported event Automation,
112
- UUID generation/responses, enum numbers and compliance. Translate/captures,
113
- refused reactions and v14 filters remain gaps (Stage `references/admission.md`).
111
+ CLI 3.57.0 / Stage 4.89.1 admit through v15, including supported event Automation,
112
+ generation strategies/responses, equality filters, enum numbers and compliance. Translate/captures
113
+ and refused reactions remain gaps (Stage `references/admission.md`).
114
114
  Mixed effects remain `STAGE-ESM-037`: retries can duplicate events. Keep the reaction
115
115
  whole and prove retry-safe gap-fill; never split or drop effects.
116
116
 
@@ -129,7 +129,7 @@ What binds depends on **which tool** you ask, so name the tool and its version:
129
129
 
130
130
  - `Automation` and `Translate` slices, reactions, captures and triggers bind (ESM v6) on the
131
131
  standalone tool and the CLI bundle. (Historical: the cratis 3.27.1 bundle, Screenplay 4.60.1,
132
- reported *Slice '<name>' of type '<type>' is not admitted by ESM v1.*) Stage 4.83.0 renders supported event-triggered Automation, not Translate/captures or non-event triggers.
132
+ reported *Slice '<name>' of type '<type>' is not admitted by ESM v1.*) Stage 4.89.1 renders supported event-triggered Automation, not Translate/captures or non-event triggers.
133
133
  - `reads` and `concurrency` on a command do not bind (`PLAY0271`), so no decision is
134
134
  protected against stale state. A reaction trigger's `reads` that only `invokes` is
135
135
  report-only intent (`PLAY0270`); one that `produces` directly fails binding (`PLAY0268`).
@@ -142,10 +142,10 @@ What binds depends on **which tool** you ask, so name the tool and its version:
142
142
  qualifying Double literals lower exactly as v11 and non-positional enum numbers
143
143
  as v12. Use `screenplay test` or MCP `run-specifications` for V4.
144
144
  Operations/systems, the `numbers exact` **source mode** (PLAY0268) and
145
- refusal/redelivery remain unadmitted. CLI 3.56.0 / Stage 4.83.0 render UUID-concept generated values,
145
+ refusal/redelivery remain unadmitted. CLI 3.57.0 / Stage 4.89.1 render supported generation strategies and v15 freshness,
146
146
  scalar/named responses, enum numbers, compliance and supported event reactions.
147
- The pair reaches construct checks through v13, not blanket rendering; v14 filters
148
- bind but remain refused. Current boundaries and source evidence:
147
+ The pair reaches construct checks through v15, not blanket rendering; supported v14 filters
148
+ now render. Current boundaries and source evidence:
149
149
  `cratis-screenplay-toolchain/references/renderable-subset.md`.
150
150
  Source/binding admission and target realization are separate gates.
151
151
 
@@ -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