@cratis/pi 7.48.2 → 7.48.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package/corpus/agents/backend-developer.md +1 -1
- package/package/corpus/agents/slice-implementer.md +2 -2
- package/package/corpus/harnesses/copilot/instructions/application-profile.instructions.md +3 -3
- package/package/corpus/harnesses/copilot/instructions/csharp.instructions.md +3 -1
- package/package/corpus/harnesses/copilot/instructions/glossary.instructions.md +3 -3
- package/package/corpus/harnesses/copilot/instructions/profiles.instructions.md +1 -1
- package/package/corpus/harnesses/copilot/instructions/vertical-slices.instructions.md +6 -3
- package/package/corpus/prompts/add-projection.prompt.md +2 -1
- package/package/corpus/prompts/add-reducer.prompt.md +6 -4
- package/package/corpus/rules/application-profile.md +3 -3
- package/package/corpus/rules/csharp.md +3 -1
- package/package/corpus/rules/glossary.md +3 -3
- package/package/corpus/rules/profiles.md +1 -1
- package/package/corpus/rules/vertical-slices.md +6 -3
- package/package/corpus/skills/cratis-application-slice-conformance/SKILL.md +2 -2
- package/package/corpus/skills/cratis-chronicle-client-dotnet/SKILL.md +16 -33
- package/package/corpus/skills/cratis-chronicle-client-dotnet/references/discovery.md +92 -7
- package/package/corpus/skills/cratis-chronicle-event-modeling/SKILL.md +1 -1
- package/package/corpus/skills/cratis-chronicle-projection/SKILL.md +18 -10
- package/package/corpus/skills/cratis-chronicle-read-model/SKILL.md +46 -18
- package/package/corpus/skills/cratis-chronicle-read-model-specifications/SKILL.md +32 -14
- package/package/corpus/skills/cratis-chronicle-reducer/SKILL.md +194 -38
- package/package/corpus/skills/cratis-event-model-diagram/SKILL.md +1 -1
- package/package/corpus/skills/cratis-screenplay-automations-and-translations/SKILL.md +4 -4
- package/package/corpus/skills/cratis-screenplay-automations-and-translations/references/audit-format.md +1 -1
- package/package/corpus/skills/cratis-screenplay-automations-and-translations/references/automation-patterns.md +3 -3
- package/package/corpus/skills/cratis-screenplay-automations-and-translations/references/cases-to-specify.md +1 -1
- package/package/corpus/skills/cratis-screenplay-automations-and-translations/references/provenance.md +2 -2
- package/package/corpus/skills/cratis-screenplay-automations-and-translations/references/public-events-and-direction.md +2 -2
- package/package/corpus/skills/cratis-screenplay-automations-and-translations/references/todo-list-example.md +1 -1
- package/package/corpus/skills/cratis-screenplay-captures-and-reactions/SKILL.md +6 -6
- package/package/corpus/skills/cratis-screenplay-captures-and-reactions/references/invocation-identity.md +3 -3
- package/package/corpus/skills/cratis-screenplay-captures-and-reactions/references/product-sources.md +1 -1
- package/package/corpus/skills/cratis-screenplay-captures-and-reactions/references/specifying-triggers-and-clock.md +1 -1
- package/package/corpus/skills/cratis-screenplay-command-surface/SKILL.md +3 -3
- package/package/corpus/skills/cratis-screenplay-command-surface/references/compliance.md +1 -1
- package/package/corpus/skills/cratis-screenplay-command-surface/references/context.md +1 -1
- package/package/corpus/skills/cratis-screenplay-command-surface/references/enum-numbers.md +1 -1
- package/package/corpus/skills/cratis-screenplay-delivery-planning/SKILL.md +1 -1
- package/package/corpus/skills/cratis-screenplay-delivery-planning/references/slice-counting.md +1 -1
- package/package/corpus/skills/cratis-screenplay-discovery/SKILL.md +1 -1
- package/package/corpus/skills/cratis-screenplay-event-modeling/SKILL.md +3 -3
- package/package/corpus/skills/cratis-screenplay-event-modeling/references/parsed-not-runnable.md +2 -2
- package/package/corpus/skills/cratis-screenplay-legacy-extraction/SKILL.md +1 -1
- package/package/corpus/skills/cratis-screenplay-legacy-extraction/references/chronicle-observations.md +1 -1
- package/package/corpus/skills/cratis-screenplay-legacy-extraction/references/generate-notes.md +4 -5
- package/package/corpus/skills/cratis-screenplay-legacy-extraction/references/generated-recovery.md +1 -1
- package/package/corpus/skills/cratis-screenplay-legacy-extraction/references/prologue-safety.md +1 -1
- package/package/corpus/skills/cratis-screenplay-model-authoring/SKILL.md +1 -1
- package/package/corpus/skills/cratis-screenplay-model-authoring/references/language-reference.md +4 -4
- package/package/corpus/skills/cratis-screenplay-model-authoring/references/mcp-tools.md +3 -3
- package/package/corpus/skills/cratis-screenplay-model-authoring/references/model-notes.md +1 -1
- package/package/corpus/skills/cratis-screenplay-model-authoring/references/screen-authoring-workflow.md +1 -1
- package/package/corpus/skills/cratis-screenplay-model-review/SKILL.md +1 -1
- package/package/corpus/skills/cratis-screenplay-modeling-lifecycle/SKILL.md +1 -1
- package/package/corpus/skills/cratis-screenplay-modeling-lifecycle/references/stop-or-assume.md +1 -1
- package/package/corpus/skills/cratis-screenplay-modeling-lifecycle/references/verdicts-and-modes.md +1 -1
- package/package/corpus/skills/cratis-screenplay-projections/SKILL.md +1 -1
- package/package/corpus/skills/cratis-screenplay-read-surface/SKILL.md +1 -1
- package/package/corpus/skills/cratis-screenplay-read-surface/references/provenance.md +2 -2
- package/package/corpus/skills/cratis-screenplay-render-and-gap-fill/SKILL.md +3 -3
- package/package/corpus/skills/cratis-screenplay-render-and-gap-fill/references/drift-and-ledger.md +1 -1
- package/package/corpus/skills/cratis-screenplay-render-and-gap-fill/references/gap-fill-handoff.md +2 -2
- package/package/corpus/skills/cratis-screenplay-render-and-gap-fill/references/renderability-gate.md +2 -2
- package/package/corpus/skills/cratis-screenplay-scenario-coverage/SKILL.md +2 -2
- package/package/corpus/skills/cratis-screenplay-scenario-coverage/references/provenance.md +2 -2
- package/package/corpus/skills/cratis-screenplay-scenario-coverage/references/scenario-catalogue.md +1 -1
- package/package/corpus/skills/cratis-screenplay-scenario-coverage/references/spec-forms-by-mode.md +5 -5
- package/package/corpus/skills/cratis-screenplay-slice-design/SKILL.md +2 -2
- package/package/corpus/skills/cratis-screenplay-slice-design/references/worked-example.md +1 -1
- package/package/corpus/skills/cratis-screenplay-specifications/SKILL.md +3 -3
- package/package/corpus/skills/cratis-screenplay-specifications/references/examples-and-routes.md +2 -2
- package/package/corpus/skills/cratis-screenplay-streams-and-consistency/SKILL.md +4 -4
- package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/boundaries.md +1 -1
- package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/chronicle-boundaries.md +1 -1
- package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/consistency-and-concurrency.md +2 -2
- package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/evolution.md +1 -1
- package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/stream-patterns.md +2 -2
- package/package/corpus/skills/cratis-screenplay-toolchain/SKILL.md +42 -61
- package/package/corpus/skills/cratis-screenplay-toolchain/references/automation-translate-example.md +1 -1
- package/package/corpus/skills/cratis-screenplay-toolchain/references/cheat-sheet-example.md +7 -9
- package/package/corpus/skills/cratis-screenplay-toolchain/references/cheat-sheet.md +15 -18
- package/package/corpus/skills/cratis-screenplay-toolchain/references/diagnostics.md +33 -53
- package/package/corpus/skills/cratis-screenplay-toolchain/references/executable-example.md +1 -1
- package/package/corpus/skills/cratis-screenplay-toolchain/references/executable-subset.md +82 -93
- package/package/corpus/skills/cratis-screenplay-toolchain/references/generated-responses-example.md +4 -5
- package/package/corpus/skills/cratis-screenplay-toolchain/references/generation-strategies-example.md +1 -2
- package/package/corpus/skills/cratis-screenplay-toolchain/references/preferred-syntax.md +5 -9
- package/package/corpus/skills/cratis-screenplay-toolchain/references/production-routes-and-filters.md +7 -16
- package/package/corpus/skills/cratis-screenplay-toolchain/references/renderable-subset.md +38 -92
- package/package/corpus/skills/cratis-screenplay-toolchain/references/screenplay-contract-exceptions.json +4 -11
- package/package/corpus/skills/cratis-screenplay-toolchain/references/sources-and-streams.md +14 -19
- package/package/corpus/skills/cratis-screenplay-toolchain/references/traps.md +32 -35
- package/package/corpus/skills/cratis-screenplay-toolchain/references/verdicts.md +119 -52
- package/package/corpus/skills/cratis-screenplay-toolchain/verification.json +18 -24
- package/package/corpus/skills/cratis-screenplay-ui-composition/SKILL.md +3 -3
- package/package/corpus/skills/cratis-screenplay-ui-composition/references/screen-composition-contract.md +2 -2
- package/package.json +1 -1
- package/package/corpus/skills/cratis-screenplay-toolchain/references/doc-contradictions.md +0 -72
- package/package/corpus/skills/cratis-screenplay-toolchain/references/provenance.md +0 -81
- package/package/corpus/skills/cratis-screenplay-toolchain/references/versions.md +0 -341
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
- Source reference and identifier checks
|
|
7
7
|
- Public events and translation direction
|
|
8
8
|
- Explicit enum member numbers
|
|
9
|
-
- Reserved stored names and event pins
|
|
9
|
+
- Reserved stored names and event pins
|
|
10
10
|
- Named keys, production routes and observer filters
|
|
11
11
|
- Caller identity, compliance and routes
|
|
12
12
|
- Specification metadata, callers, cases and locators
|
|
@@ -27,7 +27,7 @@ I (never fails, even with `--warnings-as-errors`). `PLAY` = compiler, `SP` = Arc
|
|
|
27
27
|
Where each layer appears: `screenplay <folder>` / `cratis screenplay validate` = syntax and
|
|
28
28
|
consistency (V1). MCP `executable-diagnostics` = binding (V2 reads them, V3 needs none:
|
|
29
29
|
PLAY0268-0274, 0350-0352, 0389, 0449). `cratis render` = binding with the bundled compiler,
|
|
30
|
-
then STAGE (V5 admission). Tool differences: `versions.
|
|
30
|
+
then STAGE (V5 admission). Tool differences: `../SKILL.md` ("Tool versions and the contract").
|
|
31
31
|
|
|
32
32
|
## Warnings that hide defects (always validate with `--warnings-as-errors`)
|
|
33
33
|
| Code | Meaning | Fix |
|
|
@@ -43,7 +43,7 @@ then STAGE (V5 admission). Tool differences: `versions.md`.
|
|
|
43
43
|
|
|
44
44
|
## Source reference and identifier checks
|
|
45
45
|
|
|
46
|
-
|
|
46
|
+
These are V1 source checks, not binding-only gaps:
|
|
47
47
|
|
|
48
48
|
| Code | Severity | Meaning |
|
|
49
49
|
| --- | --- | --- |
|
|
@@ -55,8 +55,7 @@ Legacy compliance spellings (`@pii`/`@sensitive`) do not evade PLAY0515.
|
|
|
55
55
|
|
|
56
56
|
## Public events and translation direction
|
|
57
57
|
|
|
58
|
-
|
|
59
|
-
ESM v9, except public/foreign imports without local shapes (PLAY0268).
|
|
58
|
+
All are errors. These constructs bind as ESM v9, except public/foreign imports without local shapes (PLAY0268).
|
|
60
59
|
|
|
61
60
|
| Code | Meaning / fix |
|
|
62
61
|
| --- | --- |
|
|
@@ -83,7 +82,7 @@ See automations-and-translations `references/public-events-and-direction.md`.
|
|
|
83
82
|
|
|
84
83
|
## Explicit enum member numbers
|
|
85
84
|
|
|
86
|
-
Source errors
|
|
85
|
+
Source errors; the pins bind as ESM v12:
|
|
87
86
|
|
|
88
87
|
| Code | Severity | Meaning / fix |
|
|
89
88
|
| --- | --- | --- |
|
|
@@ -96,28 +95,21 @@ Source errors from Screenplay 4.137.0; ESM v12 admission from 4.139.0:
|
|
|
96
95
|
Numbering errors have no automatic repair. PLAY0671 suggests the opt-in
|
|
97
96
|
`propose-number-enum-members` refactoring, not a correctness repair. Member names
|
|
98
97
|
remain specification values. Non-positional pins select v12; positional pins keep
|
|
99
|
-
older executable bytes/version. Consumer admission is separate
|
|
100
|
-
Source: `v4.139.0:Documentation/screenplay/diagnostics.md`, decision 0065.
|
|
98
|
+
older executable bytes/version. Consumer admission is separate.
|
|
101
99
|
|
|
102
|
-
## Reserved stored names and event pins
|
|
100
|
+
## Reserved stored names and event pins
|
|
103
101
|
|
|
104
102
|
| Code | Layer / severity | Meaning / fix |
|
|
105
103
|
| --- | --- | --- |
|
|
106
104
|
| PLAY0273 | Binding error | A stored source exactly `Default`, or stored stream exactly `All` (name or `id "All"` pin), is reserved. Authoring still parses/prints it. Rename the stream with discovered `propose-rename`; keeping `id "All"` cannot fix it. Comparison is ordinal: streams `all`, `ALL` and `Default` remain valid. Old `All` events read as source-only appends; moving history needs a Chronicle migration, not a language repair. |
|
|
107
105
|
| PLAY0472 | Binding error | An event pin is not a valid event-name identifier, effective stored names differ across generations, or two events share a stored name. Use a valid, application-unique stored name shared by all generations; never rename stored history merely to hide the error. |
|
|
108
|
-
| PLAY0686 | Retired |
|
|
106
|
+
| PLAY0686 | Retired | Differing event pins travel as `storedName` in ESM v16. MCP's compatibility `eventPinWarnings` array is empty. Renderer admission is separate: a renderer that does not admit v16 must refuse the model rather than render it under the new name. |
|
|
109
107
|
|
|
110
108
|
MCP readiness exposes the binding refusal. PLAY0273 is reused, not a new ESM
|
|
111
109
|
version; match its reserved-name message before choosing the rename.
|
|
112
110
|
Source/stream pins already travel in ESM v8; differing event pins require v16.
|
|
113
111
|
Equal-name event pins are no-ops; PLAY0471 removal preserves canonical bytes.
|
|
114
|
-
|
|
115
|
-
`Source/DotNET/Screenplay/Semantics/SemanticModelBinder.EventSources.cs:17-52` and
|
|
116
|
-
`decisions/0073-reserve-the-stored-event-stream-name-all.md:35-63`;
|
|
117
|
-
`v4.152.0:Documentation/screenplay/events.md:116-124`,
|
|
118
|
-
`Source/DotNET/Screenplay/Semantics/SemanticModelBinder.StoredEventNames.cs:15-35`,
|
|
119
|
-
`Source/DotNET/Screenplay.Mcp/McpWorkspaces.Refactoring.cs:82`.
|
|
120
|
-
Target evidence: `versions.md` (Stored-name rendering boundary).
|
|
112
|
+
Target evidence: a renderer must admit ESM v16 and preserve `storedName`, or refuse it.
|
|
121
113
|
|
|
122
114
|
## Named keys, production routes and observer filters
|
|
123
115
|
|
|
@@ -132,7 +124,7 @@ Target evidence: `versions.md` (Stored-name rendering boundary).
|
|
|
132
124
|
| PLAY0666 | W | Filter excludes all statically known effective producer routes; C# only, handlers/foreign origins suppress it |
|
|
133
125
|
|
|
134
126
|
Queries and trigger reads have no PLAY0661 repair. Composite view keys, query
|
|
135
|
-
blocks and their fixtures remain PLAY0268
|
|
127
|
+
blocks and their fixtures remain PLAY0268, while one explicit key binds
|
|
136
128
|
byte-identically to inference. Fixtures missing any part report PLAY0351.
|
|
137
129
|
Overrides/filters select released ESM v10; malformed routes also use PLAY0504.
|
|
138
130
|
Read read-surface `references/named-keys.md` and
|
|
@@ -140,9 +132,6 @@ Read read-surface `references/named-keys.md` and
|
|
|
140
132
|
|
|
141
133
|
## Caller identity, compliance and routes
|
|
142
134
|
|
|
143
|
-
Source authority: v4.127.0 `diagnostics.md`, `identity.md`, `concepts.md`,
|
|
144
|
-
`purposes.md`, `events.md`, `event-sources.md`, `reactions.md`.
|
|
145
|
-
|
|
146
135
|
| Code | Severity | Meaning / fix |
|
|
147
136
|
| --- | --- | --- |
|
|
148
137
|
| PLAY0152 | E | Bare `$identity` needs a property path |
|
|
@@ -193,10 +182,8 @@ escapes `%`/`|`, not an inferred split of legacy text.
|
|
|
193
182
|
|
|
194
183
|
Identity declarations and event `subject` are metadata; reading a declared
|
|
195
184
|
`$identity` detail in executable clauses is PLAY0268. `runs as` is admitted as
|
|
196
|
-
ESM v10
|
|
197
|
-
|
|
198
|
-
events with explicit subject marks still refuse PLAY0268. CLI 3.57.0's 4.147.1
|
|
199
|
-
bundle also binds concept compliance; purpose metadata is PLAY0270. See command-surface
|
|
185
|
+
ESM v10, not a PLAY0268 gap. Concept compliance binds as v13; enum/identity compliance and protected
|
|
186
|
+
events with explicit subject marks still refuse PLAY0268. Purpose metadata is PLAY0270. See command-surface
|
|
200
187
|
`references/compliance.md` and `references/context.md` for syntax and limits.
|
|
201
188
|
|
|
202
189
|
`screenplay_repair_capabilities` and `propose-repair` advertise PLAY0653: a
|
|
@@ -206,8 +193,6 @@ migration. Preview every repair; legal notes never move automatically.
|
|
|
206
193
|
|
|
207
194
|
## Specification metadata, callers, cases and locators
|
|
208
195
|
|
|
209
|
-
Authority: Screenplay v4.127.0 `diagnostics.md`, `specifications.md`, `slices.md`.
|
|
210
|
-
|
|
211
196
|
| Code | Severity | Meaning / fix |
|
|
212
197
|
| --- | --- | --- |
|
|
213
198
|
| PLAY0558 | E | Module/feature/slice/command/read-model/reaction documentation must be one nonempty fenced Markdown block; remove repeats or fix the fence. Events retain PLAY0477. |
|
|
@@ -292,8 +277,7 @@ C# CLI/MCP owns whole-application scoped diagnostics, opt-in completeness
|
|
|
292
277
|
checks PLAY0650/0651, semantic binding and PLAY0546 (a negated claim targets optional,
|
|
293
278
|
unavailable-subject or non-text data). The VS Code repair bridge is not a general
|
|
294
279
|
C# validator. A clean editor is not V1 for the complete application, V3 binding
|
|
295
|
-
or V4 execution. Run the CLI or MCP for those verdicts.
|
|
296
|
-
`v4.127.0:Documentation/screenplay/editor-diagnostics.md`, `diagnostics.md`.
|
|
280
|
+
or V4 execution. Run the CLI or MCP for those verdicts.
|
|
297
281
|
|
|
298
282
|
## Consistency errors (V1: the model contradicts itself)
|
|
299
283
|
| Code | Meaning |
|
|
@@ -301,7 +285,7 @@ or V4 execution. Run the CLI or MCP for those verdicts. Authority:
|
|
|
301
285
|
| PLAY0282 | `validate` rule targets a field absent from the command |
|
|
302
286
|
| PLAY0283 | `reads View by field` type matches no `by` param of the view's queries |
|
|
303
287
|
| PLAY0284 | `children`/`nested` never populates a declared element field |
|
|
304
|
-
| PLAY0285 | a spec's `then` event contradicts every possible declared producer of its `when` command (decidable literals, property copies, equality conditions). Fix the model or the spec deliberately. **False positive** on reaction cascades with
|
|
288
|
+
| PLAY0285 | a spec's `then` event contradicts every possible declared producer of its `when` command (decidable literals, property copies, equality conditions). Fix the model or the spec deliberately. **False positive** on reaction cascades with an older bundled compiler. On an older bundle confirm with the standalone tool, record a tool gap, do not "fix" a correct model |
|
|
305
289
|
| PLAY0286 | spec value is not a member of the enum |
|
|
306
290
|
| PLAY0287 | producer/capture/spec assigns a field the event lacks |
|
|
307
291
|
| PLAY0291-0294 | bad single-line JSON / unknown key / wrong shape / duplicate key |
|
|
@@ -309,7 +293,7 @@ or V4 execution. Run the CLI or MCP for those verdicts. Authority:
|
|
|
309
293
|
## Binding (V2 and V3) - see `executable-subset.md` for the full table
|
|
310
294
|
| Code | Meaning | Fix |
|
|
311
295
|
|---|---|---|
|
|
312
|
-
| PLAY0268 | construct the ESM cannot represent; read the message for the construct (`executable-subset.md` lists the common ones: handler, list or observable query, `pii`, `produces when` over read models, v6 constructs on
|
|
296
|
+
| PLAY0268 | construct the ESM cannot represent; read the message for the construct (`executable-subset.md` lists the common ones: handler, list or observable query, `pii`, `produces when` over read models, v6 constructs on an older bundled compiler) | stay in design mode, or change the construct if the domain allows; never strip `pii`/authorization |
|
|
313
297
|
| PLAY0269 / 0270 | UI deferred / authoring metadata (I) | none |
|
|
314
298
|
| PLAY0271 | legacy `reads` or a `concurrency` block keeps its legacy meaning and cannot bind (error) | design gap; a constraint for uniqueness; protected decisions are a target requirement |
|
|
315
299
|
| PLAY0273 | incoherent: ambiguous `for`, property not on event revision, operand type mismatch, derived `$eventContext` path | fix the reference |
|
|
@@ -321,7 +305,7 @@ or V4 execution. Run the CLI or MCP for those verdicts. Authority:
|
|
|
321
305
|
## Frequent errors
|
|
322
306
|
| Code | Meaning / fix |
|
|
323
307
|
|---|---|
|
|
324
|
-
| PLAY0001 | unknown top-level word (e.g. `slice` at top level of an un-imported file; `numbers` on
|
|
308
|
+
| PLAY0001 | unknown top-level word (e.g. `slice` at top level of an un-imported file; `numbers` on an older compiler) |
|
|
325
309
|
| PLAY0007 | a `concept` line is not `concept <Name> : <Type>` |
|
|
326
310
|
| PLAY0042 | a `produces` line is neither `produces <EventType>` nor `produces when <condition>` (the event goes on its own line and `for` on the line below) |
|
|
327
311
|
| PLAY0048 | a query body line opens with a word a query does not declare by (for example `observable` as a body line; it belongs in the return position) |
|
|
@@ -349,35 +333,31 @@ or V4 execution. Run the CLI or MCP for those verdicts. Authority:
|
|
|
349
333
|
| PLAY0480/0484 | modifier order `Type optional generated identifier` |
|
|
350
334
|
| PLAY0682 | `generate sequence` is reserved; keep the intended sequence as a capability gap |
|
|
351
335
|
| PLAY0683/0684 | PLAY0683: generated non-identifier below 64 random bits warns (a single-property unique constraint suppresses it); PLAY0684: generated identifier below 64 random bits is an error |
|
|
352
|
-
| PLAY0685 | own response name used under execute failure; outer successful responses remain available.
|
|
336
|
+
| PLAY0685 | own response name used under execute failure; outer successful responses remain available. UI composition `references/response-continuations.md` |
|
|
353
337
|
| PLAY0289 | (binding) no documents: empty root |
|
|
354
338
|
|
|
355
339
|
Fix order: E at V1 -> W at V1 -> silent-gap check -> V2 codes (if the mode needs V3).
|
|
356
340
|
Report each as `code file:line one-line meaning`; never paste more than about 30 lines.
|
|
357
341
|
|
|
358
342
|
## Render admission (V5): `STAGE-*`, `CLI-RENDER-*`, `STAGE-CRATIS-*`
|
|
359
|
-
Full table with causes: `renderable-subset.md`. The
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
refused; reducer filters render. Previous CLI 3.46.1 admitted through v7; its
|
|
365
|
-
v7 corpus received STAGE-ESM-028/029, not the older v7 version gate.
|
|
366
|
-
Codes in the historical snapshot:
|
|
343
|
+
Full table with causes: `renderable-subset.md`. The bundled renderer admits through a fixed
|
|
344
|
+
ESM version to construct checks; above it is CLI-RENDER-004 (direct Stage: STAGE-ESM-016).
|
|
345
|
+
Publication STAGE-ESM-032, foreign facts/event captures 033, claim-reading/opaque reaction gates
|
|
346
|
+
034, legacy filters 035 and production overrides 036 remain refused; reducer filters render.
|
|
347
|
+
|
|
367
348
|
| Code | Meaning |
|
|
368
349
|
|---|---|
|
|
369
|
-
| STAGE-ESM-016 | model above the admitted ESM schema
|
|
370
|
-
| STAGE-ESM-025 |
|
|
371
|
-
| STAGE-ESM-026 |
|
|
372
|
-
| STAGE-ESM-
|
|
373
|
-
|
|
|
374
|
-
| STAGE-ESM-
|
|
375
|
-
| STAGE-ESM-
|
|
376
|
-
| STAGE-ESM-
|
|
377
|
-
| STAGE-ESM-
|
|
378
|
-
| STAGE-ESM-
|
|
379
|
-
| STAGE-ESM-
|
|
380
|
-
| STAGE-ESM-019/022 | reducer body outside the pure allowlist |
|
|
350
|
+
| STAGE-ESM-016 | model above the admitted ESM schema: whole model refused |
|
|
351
|
+
| STAGE-ESM-025 | a typed-context member references a historical event revision or property identity; only the current revision renders |
|
|
352
|
+
| STAGE-ESM-026 | a selected event, or an event a selected scope depends on, is above its initial revision; Stage cannot render event-type migrations; gap-fill and hand-write the migrations |
|
|
353
|
+
| STAGE-ESM-001 | unsupported slice kind; `StateChange`, `StateView` and event-triggered `Automation` render, Translate is STAGE-ESM-024 |
|
|
354
|
+
| STAGE-ESM-004 / 006 / 013 | a `StateChange` without exactly one command; `produces` that cannot render (conditional, literal or computed mappings, duplicate tags); event-context value other than `$context.occurred` (reactions: `$context.causedBy.*`, `$context.eventSourceId`) |
|
|
355
|
+
| STAGE-ESM-005 / 015 | code rule or code validation bodies; authorization Stage cannot render exactly (role-claim URIs, nested or unresolved opaque policies, opaque-policy subjects that are not text, Uuid, Date or DateTime). Role-only, authenticated, opaque pure policies and Uuid/Date/DateTime/text claim targets render |
|
|
356
|
+
| STAGE-ESM-007 / 009 / 010 / 017 | projection shape (one projection or reducer per read model, affected-instance key, query delivery such as a snapshot list, keys, `all`, event-context values) |
|
|
357
|
+
| STAGE-ESM-011 | specification shape not rendered (`when append` outside the single-hop reaction subset, command specifications that cascade into reactions, composite values, an unauthenticated caller carrying roles or claims, v15 fixtures that do not match their strategy). Command scenarios and single-hop reaction appends render |
|
|
358
|
+
| STAGE-ESM-014 | constraint shape (multi-claim in one command, optional or composite targets) |
|
|
359
|
+
| STAGE-ESM-019/022 | reducer or opaque pure policy body outside the pure allowlist |
|
|
360
|
+
| STAGE-ESM-024 | interval, schedule, application, startup and shutdown triggers, opaque reaction bodies, captures, Translate, clock/trigger/capture specifications |
|
|
381
361
|
| STAGE-ESM-020 | a body the model requires is missing or changed (content hash check); blocks publication |
|
|
382
362
|
| STAGE-CRATIS-005 | a modeled artifact would render into `Customizations/` |
|
|
383
363
|
Fix by changing the model only where the domain allows it; otherwise the slice is gap-fill
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Executable example (StateChange and StateView)
|
|
2
2
|
|
|
3
|
-
A small model that compiles with 0 diagnostics and binds executable (`authoringAccepted` true, `executableReady` true, 0 executable diagnostics) on both tools when opened through MCP with a fixed root (see [mcp-loop.md](../../cratis-screenplay-model-authoring/references/mcp-loop.md) and [
|
|
3
|
+
A small model that compiles with 0 diagnostics and binds executable (`authoringAccepted` true, `executableReady` true, 0 executable diagnostics) on both tools when opened through MCP with a fixed root (see [mcp-loop.md](../../cratis-screenplay-model-authoring/references/mcp-loop.md) and [verdicts.md](verdicts.md)). Prose: [executable-subset.md](executable-subset.md).
|
|
4
4
|
|
|
5
5
|
```screenplay
|
|
6
6
|
// Executable example: StateChange + StateView, command and query protection, reference specifications.
|
|
@@ -2,49 +2,41 @@
|
|
|
2
2
|
|
|
3
3
|
## Contents
|
|
4
4
|
|
|
5
|
-
- Caller and compliance boundary
|
|
5
|
+
- Caller and compliance boundary
|
|
6
6
|
- Admitted on both compilers
|
|
7
|
-
- Text `not empty` reference correction
|
|
8
|
-
- Child-before-parent reference execution
|
|
9
|
-
- Equality query filters (ESM v14
|
|
10
|
-
-
|
|
11
|
-
- Generated values and responses (ESM v7
|
|
7
|
+
- Text `not empty` reference correction
|
|
8
|
+
- Child-before-parent reference execution
|
|
9
|
+
- Equality query filters (ESM v14)
|
|
10
|
+
- Time, reactions and captures (ESM v6)
|
|
11
|
+
- Generated values and responses (ESM v7)
|
|
12
12
|
- Released public boundaries and observer routes
|
|
13
13
|
- Code attachments (what binds, what never does)
|
|
14
14
|
- Refused (code, reason): fix, or record as a mode gap
|
|
15
15
|
- Not refused, but do not rely on it
|
|
16
16
|
- Never do this to reach V3
|
|
17
17
|
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
as
|
|
25
|
-
|
|
26
|
-
binder before promoting an older probe to a current capability claim.
|
|
27
|
-
|
|
28
|
-
What the binder admits, and what it refuses with which code. The answer depends on the
|
|
29
|
-
compiler version: the standalone tool (4.153.0) binds through v16; the compiler bundled in cratis
|
|
30
|
-
3.57.0 (4.147.1) and its renderer admit through v15; older bundles (4.66.0 in cratis 3.28.x, admitting v1 to v6; 4.60.1 before 3.28.2, v1 to v5)
|
|
31
|
-
are history.
|
|
32
|
-
Tool facts and the exact v6 messages: `versions.md`. Always name
|
|
18
|
+
What the binder admits, and what it refuses with which code, depends on the compiler: the
|
|
19
|
+
standalone tool binds the newest ESM versions, while the compiler bundled in the CLI (and the
|
|
20
|
+
renderer that uses it) admits through an older version. Operations, the `numbers exact`
|
|
21
|
+
**source mode** (PLAY0268) and reaction refusals/redelivery remain unadmitted. Routes bind as
|
|
22
|
+
ESM v8, public/direction constructs as v9, identity/overrides/filters as v10, qualifying
|
|
23
|
+
non-route Double literals (exact lowering of Double-mode literals) as v11, non-positional enum
|
|
24
|
+
numbers as v12, concept compliance as v13, caller-supplied collection equality filters as v14,
|
|
25
|
+
concept generation strategies and freshness as v15 and stored event names as v16. Always name
|
|
33
26
|
the tool with a V2 or V3 result. When tool and documentation disagree, the tool decides
|
|
34
27
|
current capability; the documentation and the domain decide intended correctness. Record
|
|
35
|
-
the gap, never strip the model to pass.
|
|
28
|
+
the gap, never strip the model to pass. Use the actual binder before promoting an older
|
|
29
|
+
observation to a capability claim.
|
|
36
30
|
|
|
37
31
|
Binding is observed through MCP (`read-workspace view=executable-diagnostics`), a render, or
|
|
38
32
|
`cratis screenplay validate --executable <root>` (bundled compiler; binding errors only, writes
|
|
39
33
|
nothing; exit 5 when it does not bind). `screenplay <folder>` and plain `cratis screenplay validate`
|
|
40
34
|
never bind (`verdicts.md`).
|
|
41
35
|
|
|
42
|
-
Complete examples that bind live in `executable-example.md` (
|
|
43
|
-
`
|
|
44
|
-
(ESM v6; standalone tool and cratis 3.28.2 or later) and `generated-responses-example.md`
|
|
45
|
-
(ESM v7; standalone tool 4.68.0 or later, and the cratis 3.57.0 bundle).
|
|
36
|
+
Complete examples that bind live in `executable-example.md`, `pdl-example.md` (projections),
|
|
37
|
+
`automation-translate-example.md` (ESM v6) and `generated-responses-example.md` (ESM v7).
|
|
46
38
|
|
|
47
|
-
## Caller and compliance boundary
|
|
39
|
+
## Caller and compliance boundary
|
|
48
40
|
|
|
49
41
|
`$identity.id`/`.name`/`.userName` are aliases of the admitted
|
|
50
42
|
`$context.identity` produces-mapping values. Authentication status, roles and
|
|
@@ -53,14 +45,13 @@ A top-level `identity` block alone is authoring metadata and does not block
|
|
|
53
45
|
readiness. Executable reads of declared `$identity.<detail>` do (PLAY0268);
|
|
54
46
|
`$context.identity` remains built-ins only. Purposes and event `subject` marks
|
|
55
47
|
are metadata (PLAY0270), not source resolution, retention or subject propagation.
|
|
56
|
-
Bare `pii`/`personal` and `secret` concepts, scopes and qualifiers bind as v13
|
|
57
|
-
on standalone 4.142.0; CLI 3.57.0 bundles Screenplay 4.147.1, which binds them too. Enum/identity
|
|
48
|
+
Bare `pii`/`personal` and `secret` concepts, scopes and qualifiers bind as v13. Enum/identity
|
|
58
49
|
compliance and events mixing protected values with explicit subject marks remain
|
|
59
50
|
refused; see command-surface `references/compliance.md` for the precise boundary.
|
|
60
51
|
Legacy spellings compile with PLAY0565 information; duplicates warn PLAY0653.
|
|
61
52
|
Never remove protection. Reference execution proves neither encryption nor erasure.
|
|
62
|
-
|
|
63
|
-
|
|
53
|
+
|
|
54
|
+
Requires Screenplay 4.141.0 or later (`screenplay --version`) to bind concept compliance (ESM v13); older compilers refuse it with PLAY0268.
|
|
64
55
|
|
|
65
56
|
## Admitted on both compilers
|
|
66
57
|
|
|
@@ -80,16 +71,15 @@ caller and purpose guidance retains v4.127.0 `context.md`, `identity.md`, `purpo
|
|
|
80
71
|
feature, command and query. Ownership policies `claim "x" matches subject` or `matches
|
|
81
72
|
<commandProperty>`.
|
|
82
73
|
- `constraint ... unique <prop> on <Event>`. Admission is separate from the open Chronicle
|
|
83
|
-
durability defects
|
|
74
|
+
durability defects: never treat admission as proof of uniqueness.
|
|
84
75
|
- A `readmodel` with one explicit trailing `key`, or an unambiguous inferred key:
|
|
85
76
|
single-instance queries in the owning slice agreeing on `by xId XId`; only if
|
|
86
77
|
none supplies identity and an admitted list query exists does conventional
|
|
87
78
|
`*Id` inference run (collection-key exclusions: read-surface `references/named-keys.md`).
|
|
88
79
|
Queryless read models need an explicit `key`. Explicit single keys preserve
|
|
89
80
|
equivalent inferred ESM bytes. Composite read-model keys, query `by` blocks and
|
|
90
|
-
their fixtures remain PLAY0268
|
|
91
|
-
|
|
92
|
-
caller-supplied equality filters on collections also bind as ESM v14; context
|
|
81
|
+
their fixtures remain PLAY0268. Collections and observable delivery bind.
|
|
82
|
+
Caller-supplied equality filters on collections also bind as ESM v14; context
|
|
93
83
|
sources, single-result filters, scope, performer and composite `by` remain blocked.
|
|
94
84
|
- One projection per read model: `from`, `every`, `all` (one block per level), `join`,
|
|
95
85
|
`children`, `nested`, `remove with`, `remove via join` (binds; blocks the execution plan at the projection level, see below), `clear with`, counters, `add`,
|
|
@@ -101,22 +91,20 @@ caller and purpose guidance retains v4.127.0 `context.md`, `identity.md`, `purpo
|
|
|
101
91
|
- `seed`. Personas, screens and descriptions are PLAY0270/PLAY0269 information, not
|
|
102
92
|
blocking.
|
|
103
93
|
|
|
104
|
-
## Text `not empty` reference correction
|
|
94
|
+
## Text `not empty` reference correction
|
|
105
95
|
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
text, using Unicode `White_Space` (.NET `char.IsWhiteSpace`). U+0085 and U+00A0
|
|
96
|
+
Concept and command property `not empty` reject null, empty and whitespace-only
|
|
97
|
+
text in reference execution, using Unicode `White_Space` (.NET `char.IsWhiteSpace`). U+0085 and U+00A0
|
|
109
98
|
count; U+FEFF does not. No trimming/normalization or canonical-byte/ESM-version
|
|
110
|
-
change. Specifications that relied on whitespace being accepted now fail.
|
|
99
|
+
change, in every ESM version. Specifications that relied on whitespace being accepted now fail.
|
|
111
100
|
Collections still require only one element, and event-source/stream-id identity
|
|
112
|
-
text still treats whitespace as a value.
|
|
113
|
-
|
|
114
|
-
Sources: Cratis/Screenplay `v4.151.0`,
|
|
115
|
-
`Source/DotNET/Screenplay/Semantics/Execution/SemanticEvaluator.cs:102-110` and
|
|
116
|
-
`Documentation/screenplay/commands.md:404-407`. Complete passing model:
|
|
101
|
+
text still treats whitespace as a value. Stage and Arc target behavior is separate; run
|
|
102
|
+
their own specs to establish parity. Complete passing model:
|
|
117
103
|
[whitespace rules](../../cratis-screenplay-specifications/references/whitespace-rules.md).
|
|
118
104
|
|
|
119
|
-
|
|
105
|
+
Requires Screenplay 4.151.0 or later (`screenplay --version`) for the whitespace-only rejection; earlier compilers accept whitespace-only text.
|
|
106
|
+
|
|
107
|
+
## Child-before-parent reference execution
|
|
120
108
|
|
|
121
109
|
An admitted child projection event before its parent is deferred, not Unsupported.
|
|
122
110
|
The reference evaluator retries pending children in arrival order with original event
|
|
@@ -124,15 +112,13 @@ values/context and parent keys, including grandchildren and across given/when an
|
|
|
124
112
|
accepted command commits. A parent that never arrives leaves the child absent;
|
|
125
113
|
an ambiguous parent still fails closed. Pin child-before-parent, parent-before-child
|
|
126
114
|
and absence with [child-ordering specifications](../../cratis-screenplay-specifications/references/child-ordering.md).
|
|
127
|
-
|
|
128
|
-
the evaluator uses the current root handler key for shared root/child events, not
|
|
115
|
+
For shared root/child events the evaluator uses the current root handler key, not
|
|
129
116
|
a child's location resolved through a different creation event. This is reference
|
|
130
|
-
semantics, not real Chronicle runtime conformance.
|
|
131
|
-
`v4.149.1:Documentation/screenplay/projections/semantic-model.md:77-81` and
|
|
132
|
-
`Source/DotNET/Screenplay/Semantics/Execution/SemanticScopedProjection.Deferred.cs:11-96`.
|
|
133
|
-
CLI 3.57.0's Screenplay 4.147.1 bundle predates this deferral.
|
|
117
|
+
semantics, not real Chronicle runtime conformance.
|
|
134
118
|
|
|
135
|
-
|
|
119
|
+
Requires Screenplay 4.149.1 or later (`screenplay --version`) for deferral; earlier compilers report such a child as Unsupported.
|
|
120
|
+
|
|
121
|
+
## Equality query filters (ESM v14)
|
|
136
122
|
|
|
137
123
|
`filter <name> <Type> [optional]` binds on collections with no `from`, targeting a
|
|
138
124
|
same-named scalar primitive/concept/enum property of the same nominal type
|
|
@@ -140,19 +126,19 @@ same-named scalar primitive/concept/enum property of the same nominal type
|
|
|
140
126
|
filters AND with `by`; optional omission does not narrow, supplied null is refused.
|
|
141
127
|
`then query … arguments` and `when query` accept both `by` and filters; PLAY0468
|
|
142
128
|
reports unknown/repeated/missing required arguments. Collection results match by
|
|
143
|
-
read model/key regardless of row order.
|
|
144
|
-
|
|
145
|
-
construct checks (snapshot lists/DateTime filters/parameter order still refuse). Complete compiled specs:
|
|
129
|
+
read model/key regardless of row order. Stage admits and renders these filters, subject to
|
|
130
|
+
construct checks (snapshot lists, DateTime filters and parameter order still refuse). Complete compiled specs:
|
|
146
131
|
read-surface [equality filters](../../cratis-screenplay-read-surface/references/equality-filters.md).
|
|
147
132
|
|
|
148
|
-
|
|
133
|
+
Requires Screenplay 4.143.0 or later (`screenplay --version`) for equality filters; earlier compilers refuse them.
|
|
134
|
+
|
|
135
|
+
## Time, reactions and captures (ESM v6)
|
|
149
136
|
|
|
150
137
|
- `slice Automation` with `reaction`: `when <Event>` (with values) then `produces` (no
|
|
151
138
|
`for` means the trigger's event source) or `invokes <Command>`; `where`; clock `at ... on
|
|
152
139
|
...` with an explicit `for`. Without a declared actor, a gated invocation denies.
|
|
153
|
-
|
|
154
|
-
selects ESM v10; keep the gate.
|
|
155
|
-
The pinned CLI bundle (`versions.md`) supports it, and Stage renders role/authenticated reaction identity; claim-reading/opaque gates retain STAGE-ESM-034.
|
|
140
|
+
Reaction `runs as system role "<Role>"` supplies the actor and
|
|
141
|
+
selects ESM v10; keep the gate. Stage renders role/authenticated reaction identity; claim-reading/opaque gates retain STAGE-ESM-034.
|
|
156
142
|
Standalone reference execution admits it.
|
|
157
143
|
- Application `trigger` declarations and `when trigger` specifications.
|
|
158
144
|
- `slice Translate` with `capture` (`key`, `map ... translate`, `append ... when x from "a"
|
|
@@ -161,20 +147,21 @@ read-surface [equality filters](../../cratis-screenplay-read-surface/references/
|
|
|
161
147
|
due **after** the given clock and **at or before** the when clock, once each, in time
|
|
162
148
|
order. `when clock` needs `given clock`. Limits: 10,000 occurrences per advance, 1,000
|
|
163
149
|
facts per scenario. A scenario with given equal to when fires nothing.
|
|
164
|
-
- Command specifications that list reaction cascades
|
|
150
|
+
- Command specifications that list reaction cascades.
|
|
165
151
|
- In a `then` list after `when append`, only what followed the appended event.
|
|
166
152
|
|
|
167
|
-
|
|
153
|
+
Requires Screenplay 4.61 or later (`screenplay --version`) for ESM v6 constructs, and Cratis CLI 3.28.2 or later for the bundled compiler; older compilers refuse them with PLAY0268 and report a false PLAY0285 on cascades.
|
|
154
|
+
|
|
155
|
+
Requires Screenplay 4.125.0 or later (`screenplay --version`) for reaction `runs as system`.
|
|
156
|
+
|
|
157
|
+
## Generated values and responses (ESM v7)
|
|
168
158
|
|
|
169
|
-
Facts read at `v4.68.0`: decision 0026 and `Documentation/screenplay/{commands,specifications,interoperability}.md`.
|
|
170
159
|
A model selects ESM v7 only when it uses a generated property, a response, a generated fixture or a `then returns`
|
|
171
|
-
expectation; every other model keeps its version, bytes and revision. The
|
|
172
|
-
|
|
173
|
-
and Stage 4.89.1 renders supported UUID/String strategies, v15 freshness, scalar/named responses,
|
|
160
|
+
expectation; every other model keeps its version, bytes and revision. The CLI bundle binds these constructs
|
|
161
|
+
and Stage renders supported UUID/String strategies, v15 freshness, scalar/named responses,
|
|
174
162
|
fixtures and `then returns`. Unsupported generated types (`-028`) and result combinations
|
|
175
163
|
(`-038`) remain refused; see `renderable-subset.md` and command-surface
|
|
176
|
-
`references/generated-values-and-responses.md`.
|
|
177
|
-
Screenplay `v4.148.0:Documentation/screenplay/generated-values.md:26-60`.
|
|
164
|
+
`references/generated-values-and-responses.md`.
|
|
178
165
|
Complete examples: `generated-responses-example.md`, `generation-strategies-example.md`.
|
|
179
166
|
|
|
180
167
|
- A generated property is command-only, required, scalar and a generatable concept backed by Uuid or String;
|
|
@@ -205,32 +192,36 @@ Complete examples: `generated-responses-example.md`, `generation-strategies-exam
|
|
|
205
192
|
- A reaction-invoked command that reaches generation is `Unsupported(IdentityAllocation)`; response-only commands run
|
|
206
193
|
and discard the response. Generated values give no idempotency, retry or deduplication guarantee.
|
|
207
194
|
|
|
195
|
+
Requires Screenplay 4.68.0 or later (`screenplay --version`) for generated values and responses (ESM v7), and 4.147.0 or later for concept generation strategies and freshness (ESM v15); older compilers refuse them with PLAY0268.
|
|
196
|
+
|
|
208
197
|
## Released public boundaries and observer routes
|
|
209
198
|
|
|
210
199
|
Public/origin events, explicit Translate direction, event-target builders and
|
|
211
|
-
`source events` captures bind as ESM v9
|
|
200
|
+
`source events` captures bind as ESM v9. Publication folds execute;
|
|
212
201
|
source-event captures and reached opaque event-target reducers return typed
|
|
213
202
|
Unsupported. Public/foreign imports still lack a local shape and refuse PLAY0268.
|
|
214
203
|
See automations-and-translations `references/public-events-and-direction.md`.
|
|
215
|
-
Production overrides and reaction/reducer filters bind and select
|
|
204
|
+
Production overrides and reaction/reducer filters bind and select v10;
|
|
216
205
|
filters match routed source/stream names only. Read
|
|
217
206
|
[production routes and filters](production-routes-and-filters.md).
|
|
218
|
-
Qualifying retained non-route Double literals bind/reference-execute as v11
|
|
219
|
-
|
|
207
|
+
Qualifying retained non-route Double literals bind/reference-execute as v11,
|
|
208
|
+
unlike `numbers exact`.
|
|
220
209
|
|
|
221
|
-
Non-positional enum member numbers bind as ESM v12
|
|
210
|
+
Non-positional enum member numbers bind as ESM v12; positional
|
|
222
211
|
pins preserve the earlier executable version/bytes. The optional canonical last
|
|
223
212
|
`numbers` array parallels `values`; specifications still use member names.
|
|
224
|
-
Consumers must admit v12 explicitly;
|
|
225
|
-
command-surface `references/enum-numbers.md
|
|
213
|
+
Consumers must admit v12 explicitly; Stage does. Syntax:
|
|
214
|
+
command-surface `references/enum-numbers.md`.
|
|
226
215
|
|
|
227
216
|
Concept `pii`/`personal` and `secret`, qualifiers and scopes bind as optional
|
|
228
|
-
`compliance` in ESM v13
|
|
217
|
+
`compliance` in ESM v13. Reasons remain
|
|
229
218
|
report-only PLAY0270; reference execution proves neither encryption nor erasure.
|
|
230
219
|
Enum/identity concepts and an event combining personal or explicitly subject-scoped
|
|
231
220
|
secret values with an explicit `subject` mark refuse PLAY0268 at binding only.
|
|
232
|
-
|
|
233
|
-
|
|
221
|
+
Stage renders v13 concept protection; protected identities/enums still refuse
|
|
222
|
+
`STAGE-ESM-040`. Preserve protection, not a falsely green bind.
|
|
223
|
+
|
|
224
|
+
Requires Screenplay 4.117.0 or later (`screenplay --version`) for ESM v9, 4.129.0 or later for production overrides and observer filters (v10), 4.135.0 or later for v11 and 4.139.0 or later for enum numbers (v12).
|
|
234
225
|
|
|
235
226
|
## Code attachments (what binds, what never does)
|
|
236
227
|
|
|
@@ -245,7 +236,7 @@ predicates and reaction effects. Reaction effects bind only when the trigger has
|
|
|
245
236
|
bodies still leave their owner non-executable.
|
|
246
237
|
|
|
247
238
|
- A `file` constraint **never binds**: PLAY0268 "file implementation is not admitted by
|
|
248
|
-
the executable model"
|
|
239
|
+
the executable model". Chronicle file constraints
|
|
249
240
|
can only declare uniqueness: declare it with `unique ...`, and put other rules in command
|
|
250
241
|
validation or a `require` condition.
|
|
251
242
|
|
|
@@ -253,16 +244,15 @@ bodies still leave their owner non-executable.
|
|
|
253
244
|
constrained implementation attachment." This holds with a `file`, with a fence, and with
|
|
254
245
|
`implementation` or `hint` (including a pending intent with no payload). On a handler,
|
|
255
246
|
`implementation` and `hint` are authoring intent: no execution, lock or confirmation.
|
|
256
|
-
-
|
|
247
|
+
- A command property named rule also accepts an `implementation` block (ordered
|
|
257
248
|
`hint` lines, at most one `file` or tagged fence). With a source attached it binds like a
|
|
258
249
|
direct source; hints-only or empty is pending intent: valid source, PLAY0268 at binding.
|
|
259
250
|
The block is rejected on concept rules, built-in property rules and whole-command
|
|
260
|
-
`require`/`validate` bodies
|
|
251
|
+
`require`/`validate` bodies.
|
|
261
252
|
- A handler therefore makes the slice non-executable and non-renderable: it is gap-fill
|
|
262
253
|
with the model as the contract.
|
|
263
254
|
- Stage admits only pure reducer bodies (Roslyn allowlist, STAGE-ESM-019 and 022);
|
|
264
|
-
code validation is refused (STAGE-ESM-005). Opaque pure policies render
|
|
265
|
-
refused them with STAGE-ESM-015).
|
|
255
|
+
code validation is refused (STAGE-ESM-005). Opaque pure policies render.
|
|
266
256
|
- The reference runner returns Unsupported for the opaque bodies that do bind (rule and
|
|
267
257
|
policy predicates, code validation, reducer transitions); a specification that needs one
|
|
268
258
|
never passes. Handlers, file constraints and query performers (and reaction effects on a trigger with
|
|
@@ -273,15 +263,15 @@ bodies still leave their owner non-executable.
|
|
|
273
263
|
|
|
274
264
|
| Construct | Code | Note |
|
|
275
265
|
| --- | --- | --- |
|
|
276
|
-
| `Automation` or `Translate` slice, `reaction`, `capture`, `trigger`; `given clock`, `when clock`, `when trigger`, `when capture` | PLAY0268 | **
|
|
266
|
+
| `Automation` or `Translate` slice, `reaction`, `capture`, `trigger`; `given clock`, `when clock`, `when trigger`, `when capture` | PLAY0268 | **older bundled compilers only**; current compilers bind them (ESM v6) |
|
|
277
267
|
| Unquoted `import Other.Contract` | PLAY0268 | external contract import is not bound |
|
|
278
|
-
| `pii` or `secret` on a concept | PLAY0268 |
|
|
279
|
-
| `query` with a composite `by` block, or `by ... from` context-derived arguments | PLAY0268 | composite `by` blocks remain unadmitted
|
|
268
|
+
| `pii` or `secret` on a concept | PLAY0268 | Older compilers refuse it outright. Current compilers admit v13 except enum/identity compliance and events mixing personal or explicitly subject-scoped secret values with explicit subject marks; see `compliance.md` in command-surface references |
|
|
269
|
+
| `query` with a composite `by` block, or `by ... from` context-derived arguments | PLAY0268 | composite `by` blocks remain unadmitted. An optional scalar snapshot lookup, an unfiltered list (`RM[]`) and a list narrowed by one caller-supplied `by` key bind, in their `observable` form too |
|
|
280
270
|
| Context `from`, single-result filters, `scoped to`, `performer` queries | PLAY0268 | Typed query context, filtering of single results, opaque scope and query implementation remain unadmitted; each refusal names its reason. Caller-supplied collection equality filters bind as v14. `observable` goes in the return position (`=> observable RM[]`); as a body line it is PLAY0048 |
|
|
281
271
|
| `contains` or `starts with` in conditions | PLAY0268 | equality and numeric ordering only |
|
|
282
272
|
| Date or DateTime comparison, `today` | PLAY0268 | no runtime date value |
|
|
283
273
|
| Rule on a nested path (`lines.qty all > 0`) | PLAY0268 | put the rule on the nested value's concept |
|
|
284
|
-
| `require` or `produces when` over a read-model path | PLAY0268 | needs decision-consistent reads
|
|
274
|
+
| `require` or `produces when` over a read-model path | PLAY0268 | needs decision-consistent reads |
|
|
285
275
|
| `reads <View> ...` on a command | PLAY0271 (error) | legacy, cannot imply decision consistency |
|
|
286
276
|
| `concurrency` block on a command | PLAY0271 (error) | "concurrency metadata keeps its legacy meaning and cannot bind to ESM v1" |
|
|
287
277
|
| `handler` (see above) | PLAY0268 | gap-fill |
|
|
@@ -295,10 +285,10 @@ bodies still leave their owner non-executable.
|
|
|
295
285
|
| `join`, `children` or `remove via join` inside `nested` | blocked plan | binds; `UnsupportedProjectionBlock` |
|
|
296
286
|
| `$eventContext.occurred.Week` | PLAY0273 | derived value |
|
|
297
287
|
| Projection `parent p` where `p` is not on the child event | PLAY0273 | "Event property not found" |
|
|
298
|
-
| `generated` or `returns` on
|
|
288
|
+
| `generated` or `returns` on an older compiler | PLAY0268 | admitted from ESM v7, see above |
|
|
299
289
|
| Operations or systems, `numbers exact` source mode, reaction refusals/redelivery | PLAY0268 | not admitted by any supported ESM version; one such construct leaves the **whole** application without an executable model. Event sources/streams/routes instead bind as ESM v8 on the current compiler (`sources-and-streams.md`) |
|
|
300
290
|
| Spec of a gated command or query without `given caller` | PLAY0389 | module and feature gates count |
|
|
301
|
-
| `given` or `then readmodel` missing key parts | PLAY0351 | explicit `key` marks replace inference; composite fixtures need every part but remain unadmitted
|
|
291
|
+
| `given` or `then readmodel` missing key parts | PLAY0351 | explicit `key` marks replace inference; composite fixtures need every part but remain unadmitted |
|
|
302
292
|
| When-less spec asserting events or errors | PLAY0352 | |
|
|
303
293
|
| `null` in command or event values | PLAY0350 | Chronicle semantics, not only a binder limit: an optional fact is a separate event (nullable event properties are CHR0012) |
|
|
304
294
|
| `for` with no unambiguous destination type | PLAY0273 | |
|
|
@@ -308,7 +298,7 @@ bodies still leave their owner non-executable.
|
|
|
308
298
|
- Plain `produces` without `for` binds (PLAY0478, information) but means allocation in the
|
|
309
299
|
ESM and "the identifier" in rendered Arc code. Always write `for` on a plain `produces <Name>`; inline `produces event` omits it.
|
|
310
300
|
- A projection-level (root) `remove via join` binds, but the reference execution plan refuses it (`UnsupportedProjectionBlock`), so no specification in the application runs; Chronicle wires it as a child pull. See the blocked-plan rows above.
|
|
311
|
-
-
|
|
301
|
+
- V1 reports absent projection/children/nested targets
|
|
312
302
|
with PLAY0514 and unknown removal/capture events with PLAY0166. An unmapped
|
|
313
303
|
declared field can be found by opt-in `--check field-origins` (PLAY0534);
|
|
314
304
|
unknown or opaque coverage is skipped, so still check lineage by hand.
|
|
@@ -317,9 +307,8 @@ bodies still leave their owner non-executable.
|
|
|
317
307
|
|
|
318
308
|
Do not remove `pii`, `secret`, `authorize` or policies, list queries, automations or
|
|
319
309
|
rules a domain needs just to make binding pass. Report `V3 blocked: <codes>` and record the
|
|
320
|
-
slice in the gap list. A `pii` or `secret` marker selects v13
|
|
321
|
-
4.142.0 (since 4.141.0). CLI 3.57.0 bundles Screenplay 4.147.1 / Stage 4.89.1, which renders concept
|
|
310
|
+
slice in the gap list. A `pii` or `secret` marker selects v13. Stage renders concept
|
|
322
311
|
protection; protected identities/enums still refuse `STAGE-ESM-040`. Either attribute on an identifier or typed destination is a source error
|
|
323
|
-
PLAY0515
|
|
312
|
+
PLAY0515 (including stream-id parts and route mapping
|
|
324
313
|
sources). Chronicle also rejects `[PII]`/`[Encrypted]` on event-source identifiers
|
|
325
314
|
(CHR0034/CHR0052). Keep surrogate identity and protected payload separate.
|
package/package/corpus/skills/cratis-screenplay-toolchain/references/generated-responses-example.md
CHANGED
|
@@ -2,11 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
A small model with a generated identifier, a second generated value, an ordered record response, a scalar
|
|
4
4
|
response, and specifications that pin both the emitted events and the response. It compiles with 0
|
|
5
|
-
diagnostics, binds, and its two specifications pass in the reference runner
|
|
6
|
-
(
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
Cratis/tracked in Stage#201). Rules and refusals: [executable-subset.md](executable-subset.md#generated-values-and-responses-esm-v7-standalone-4680-or-later-only).
|
|
5
|
+
diagnostics, binds, and its two specifications pass in the reference runner. Rules and refusals:
|
|
6
|
+
[executable-subset.md](executable-subset.md#generated-values-and-responses-esm-v7).
|
|
7
|
+
|
|
8
|
+
Requires Screenplay 4.68.0 or later (`screenplay --version`); older compilers refuse these constructs with `PLAY0268`.
|
|
10
9
|
|
|
11
10
|
```screenplay
|
|
12
11
|
// ESM v7 reference-executable example: deterministic generated fixtures, events and command responses.
|
|
@@ -2,8 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
A deterministic UUIDv7 identifier and NanoID receipt, with an accepted response
|
|
4
4
|
and a reused-source rejection. Fixtures, not random seeds, make this executable.
|
|
5
|
-
|
|
6
|
-
strategy encodings: `generated-values/strategies.md:34-89`.
|
|
5
|
+
Contract: the Screenplay documentation pages `generated-values.md` and `generated-values/strategies.md`.
|
|
7
6
|
|
|
8
7
|
```screenplay
|
|
9
8
|
concept InvoiceId : Uuid
|