@cratis/pi 7.48.2 → 7.48.3
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/harnesses/copilot/instructions/profiles.instructions.md +1 -1
- package/package/corpus/rules/profiles.md +1 -1
- package/package/corpus/skills/cratis-application-slice-conformance/SKILL.md +2 -2
- package/package/corpus/skills/cratis-chronicle-event-modeling/SKILL.md +1 -1
- 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
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# Screenplay cheat-sheet
|
|
1
|
+
# Screenplay cheat-sheet
|
|
2
2
|
|
|
3
3
|
## Contents
|
|
4
4
|
|
|
@@ -17,17 +17,15 @@ Released boundary forms: `public event X`, `event X from "store"`, Translate
|
|
|
17
17
|
and capture `source events` with `from ForeignEvent` select v9. Read
|
|
18
18
|
[public contracts](../../cratis-screenplay-automations-and-translations/references/public-events-and-direction.md).
|
|
19
19
|
View properties use trailing `key`; multipart `by` query/read blocks remain
|
|
20
|
-
PLAY0268
|
|
20
|
+
PLAY0268, not v10. Read [named keys](../../cratis-screenplay-read-surface/references/named-keys.md).
|
|
21
21
|
Production `stream Source.Stream` overrides and reaction/reducer `from Source[.Stream]`
|
|
22
22
|
select released v10: [routes and filters](production-routes-and-filters.md).
|
|
23
|
-
Qualifying non-route Double literals select
|
|
23
|
+
Qualifying non-route Double literals select v11;
|
|
24
24
|
`numbers exact` does not bind. Non-positional enum member numbers (`draft = 1`)
|
|
25
|
-
select
|
|
26
|
-
while specifications still use names.
|
|
25
|
+
select v12; positional pins keep earlier bytes/version,
|
|
26
|
+
while specifications still use names. Stage admits v12 and renders explicit numbers.
|
|
27
27
|
Syntax/example: command-surface `references/enum-numbers.md`.
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
Current pins: `versions.md` (the single table). Compile evidence below keeps its historical tool labels.
|
|
28
|
+
Published ESM versions never change meaning; later byte-changing features take a new version.
|
|
31
29
|
|
|
32
30
|
The syntax lives in compiled example files next to this one (each is a Markdown file holding
|
|
33
31
|
one complete `screenplay` fence). Copy shapes from them; do not write a form that none of
|
|
@@ -36,16 +34,16 @@ examples belong to `cheat-sheet-example.md` and its siblings.
|
|
|
36
34
|
|
|
37
35
|
| File | Mode | V1, warnings as errors | V3 (binds) |
|
|
38
36
|
| --- | --- | --- | --- |
|
|
39
|
-
| `cheat-sheet-example.md` | design: every construct family | 0 diagnostics, both tools (
|
|
37
|
+
| `cheat-sheet-example.md` | design: every construct family | 0 diagnostics, both tools (an older bundled compiler reported a false PLAY0285 on the `RecordingAPayment` cascade spec) | not ready by design (its header lists why; fewer blockers on the standalone tool) |
|
|
40
38
|
| `executable-example.md` | executable, StateChange and StateView | 0 diagnostics, both tools | ready, both tools |
|
|
41
39
|
| `pdl-example.md` | executable projections | 0 diagnostics, both tools | ready, both tools |
|
|
42
|
-
| `automation-translate-example.md` | executable Automation and Translate (ESM v6) | 0 diagnostics, both tools (
|
|
40
|
+
| `automation-translate-example.md` | executable Automation and Translate (ESM v6) | 0 diagnostics, both tools (an older bundled compiler could not bind it) | ready, both tools |
|
|
43
41
|
|
|
44
42
|
Screenplay sources: `Documentation/screenplay/grammar.md` (EBNF; checked against the parsers
|
|
45
43
|
by `for_Documentation/when_comparing_the_grammar_against_the_parsers.cs`),
|
|
46
44
|
`projections/grammar.md`, `captures/grammar.md`. Documentation examples compile in
|
|
47
45
|
Screenplay CI (`when_compiling_every_example.cs`) against repository main: the standalone
|
|
48
|
-
compiler
|
|
46
|
+
compiler; the compiler bundled in `cratis` can be older and lack the newest ESM versions.
|
|
49
47
|
|
|
50
48
|
## Samples and preview fixtures
|
|
51
49
|
|
|
@@ -53,7 +51,7 @@ Invoicing is a warning-free syntax showcase, not a runnable whole-language proof
|
|
|
53
51
|
The released samples policy excepts these preview families and points to dedicated
|
|
54
52
|
fixtures; do not infer binder admission from the sample's coverage list:
|
|
55
53
|
|
|
56
|
-
| Family | Screenplay
|
|
54
|
+
| Family | Screenplay fixture |
|
|
57
55
|
| --- | --- |
|
|
58
56
|
| Exact numbers | `Source/Screenplay/Compiler/Conformance/exact-named-rule-intent.play` |
|
|
59
57
|
| Sources/streams/command routes | `Documentation/screenplay/fixtures/source-streams.play` |
|
|
@@ -61,9 +59,8 @@ fixtures; do not infer binder admission from the sample's coverage list:
|
|
|
61
59
|
| Systems/operations/specification steps | `Documentation/screenplay/fixtures/operations.play` |
|
|
62
60
|
| Refusals/redelivery/no-events | `Source/Screenplay/Compiler/Conformance/reaction-refusals-redelivery.play`, `no-events.play` in that directory |
|
|
63
61
|
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
its old blanket PLAY0268 wording is not the current route verdict. Other rows
|
|
62
|
+
The Screenplay samples policy lists these preview families. Sources and specification routes
|
|
63
|
+
are admitted as v8 by the binder and runner, so a blanket PLAY0268 is not their verdict. Other rows
|
|
67
64
|
remain unadmitted. Compile and test each relevant fixture with the chosen tool.
|
|
68
65
|
|
|
69
66
|
## Lexical and structural rules
|
|
@@ -87,7 +84,7 @@ remain unadmitted. Compile and test each relevant fixture with the chosen tool.
|
|
|
87
84
|
generated identifier` (PLAY0484); legacy `?` is PLAY0479 (information).
|
|
88
85
|
- Ownership policies: `require claim "ownerId" matches subject` (subject = command identifier
|
|
89
86
|
or keyed query argument) or `matches <commandProperty>`; executable; renderable only for
|
|
90
|
-
text-backed targets
|
|
87
|
+
text-backed targets, Uuid and Date claim targets (see `renderable-subset.md`; unsupported subjects: STAGE-ESM-015).
|
|
91
88
|
|
|
92
89
|
## Exact numeric source mode
|
|
93
90
|
|
|
@@ -112,14 +109,14 @@ description, properties, `reads`, `authorize`, `validate`, `produces`/`handler`,
|
|
|
112
109
|
## `$context.` paths (command `produces`)
|
|
113
110
|
`occurred`, `tenant`, `command.<p>`, `arguments.<p>`, `causedBy.subject|name|userName`,
|
|
114
111
|
`causation.type`, `identity.id|name|userName|isAuthenticated|roles|claims.<n>`.
|
|
115
|
-
Binder-supported
|
|
112
|
+
Binder-supported: `occurred`, `identity.id` (= `causedBy.subject`),
|
|
116
113
|
`identity.name` (= `causedBy.name`), `identity.userName` (= `causedBy.userName`). `tenant`,
|
|
117
114
|
roles, claims, causation, `command.<p>`, `arguments.<p>`: PLAY0268. Binding is not execution:
|
|
118
115
|
a reference scenario that supplies only a clock carries no caller audit identity, so check the
|
|
119
116
|
reference runner before relying on identity paths in a specification. Renderable:
|
|
120
117
|
`$context.occurred` only.
|
|
121
118
|
|
|
122
|
-
|
|
119
|
+
`$identity.id`/`.name`/`.userName` map to the same ESM kinds as
|
|
123
120
|
`$context.identity`; prefer the shorter root, but the older one stays supported.
|
|
124
121
|
Other built-ins parse but roles/claims/authentication status do not bind in
|
|
125
122
|
produces mappings. Identity details are metadata: executable detail reads report
|
|
@@ -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.
|