@cratis/pi 7.38.3 → 7.40.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.
- package/package/corpus/agents/screenplay-modeler.md +1 -1
- package/package/corpus/agents/screenplay-reviewer.md +1 -1
- package/package/corpus/product-sync.json +11 -11
- package/package/corpus/skills/cratis-chronicle-reactor/SKILL.md +2 -2
- package/package/corpus/skills/cratis-screenplay-automations-and-translations/SKILL.md +4 -2
- 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 +1 -1
- package/package/corpus/skills/cratis-screenplay-automations-and-translations/references/public-events-and-direction.md +3 -6
- package/package/corpus/skills/cratis-screenplay-automations-and-translations/references/realization-and-gap-fill.md +12 -7
- package/package/corpus/skills/cratis-screenplay-automations-and-translations/references/todo-list-example.md +5 -6
- package/package/corpus/skills/cratis-screenplay-automations-and-translations/references/translate-example.md +2 -5
- package/package/corpus/skills/cratis-screenplay-captures-and-reactions/SKILL.md +12 -15
- package/package/corpus/skills/cratis-screenplay-captures-and-reactions/references/complete-examples.md +6 -15
- 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 +14 -15
- package/package/corpus/skills/cratis-screenplay-command-surface/references/compliance.md +14 -4
- package/package/corpus/skills/cratis-screenplay-command-surface/references/enum-numbers.md +11 -13
- package/package/corpus/skills/cratis-screenplay-command-surface/references/generated-values-and-responses.md +10 -6
- package/package/corpus/skills/cratis-screenplay-command-surface/references/inline-events.md +23 -1
- package/package/corpus/skills/cratis-screenplay-command-surface/verification.json +2 -2
- package/package/corpus/skills/cratis-screenplay-discovery/references/provenance.md +1 -1
- package/package/corpus/skills/cratis-screenplay-event-modeling/SKILL.md +13 -13
- package/package/corpus/skills/cratis-screenplay-event-modeling/references/invoicing-example.md +3 -7
- package/package/corpus/skills/cratis-screenplay-event-modeling/references/nine-steps.md +9 -12
- package/package/corpus/skills/cratis-screenplay-event-modeling/references/parsed-not-runnable.md +4 -4
- package/package/corpus/skills/cratis-screenplay-legacy-extraction/references/generate-notes.md +1 -1
- package/package/corpus/skills/cratis-screenplay-legacy-extraction/references/intent-example.md +3 -8
- package/package/corpus/skills/cratis-screenplay-model-authoring/SKILL.md +9 -4
- package/package/corpus/skills/cratis-screenplay-model-authoring/references/language-reference.md +9 -7
- package/package/corpus/skills/cratis-screenplay-model-authoring/references/mcp-loop.md +26 -6
- package/package/corpus/skills/cratis-screenplay-model-authoring/references/mcp-tools.md +40 -0
- package/package/corpus/skills/cratis-screenplay-model-authoring/references/property-links.md +3 -1
- package/package/corpus/skills/cratis-screenplay-model-review/references/anti-patterns.md +1 -1
- package/package/corpus/skills/cratis-screenplay-model-review/references/checklist.md +1 -1
- package/package/corpus/skills/cratis-screenplay-model-review/references/report-template.md +1 -1
- package/package/corpus/skills/cratis-screenplay-modeling-lifecycle/SKILL.md +2 -2
- package/package/corpus/skills/cratis-screenplay-modeling-lifecycle/references/phases.md +1 -1
- package/package/corpus/skills/cratis-screenplay-modeling-lifecycle/references/verdicts-and-modes.md +3 -2
- package/package/corpus/skills/cratis-screenplay-modeling-lifecycle/references/vocabulary-map.md +5 -3
- package/package/corpus/skills/cratis-screenplay-modeling-lifecycle/references/worked-example.md +2 -6
- package/package/corpus/skills/cratis-screenplay-projections/SKILL.md +2 -0
- package/package/corpus/skills/cratis-screenplay-read-surface/SKILL.md +26 -18
- package/package/corpus/skills/cratis-screenplay-read-surface/references/equality-filters.md +208 -0
- package/package/corpus/skills/cratis-screenplay-read-surface/references/screen-patterns.md +2 -5
- package/package/corpus/skills/cratis-screenplay-read-surface/verification.json +4 -0
- package/package/corpus/skills/cratis-screenplay-render-and-gap-fill/SKILL.md +20 -16
- package/package/corpus/skills/cratis-screenplay-render-and-gap-fill/references/delivery-protocol.md +1 -1
- package/package/corpus/skills/cratis-screenplay-render-and-gap-fill/references/gap-fill-handoff.md +4 -3
- package/package/corpus/skills/cratis-screenplay-render-and-gap-fill/references/renderability-gate.md +8 -8
- package/package/corpus/skills/cratis-screenplay-render-and-gap-fill/references/worked-example.md +2 -5
- package/package/corpus/skills/cratis-screenplay-render-and-gap-fill/verification.json +2 -2
- package/package/corpus/skills/cratis-screenplay-scenario-coverage/SKILL.md +4 -1
- package/package/corpus/skills/cratis-screenplay-scenario-coverage/references/berth-reservations.md +8 -19
- package/package/corpus/skills/cratis-screenplay-scenario-coverage/references/invoicing-dues-design.md +8 -20
- package/package/corpus/skills/cratis-screenplay-scenario-coverage/references/invoicing-dues-example.md +9 -23
- package/package/corpus/skills/cratis-screenplay-scenario-coverage/references/scenario-examples.md +9 -3
- package/package/corpus/skills/cratis-screenplay-scenario-coverage/references/spec-forms-by-mode.md +6 -5
- package/package/corpus/skills/cratis-screenplay-scenario-coverage/references/view-and-story-specs.md +2 -1
- package/package/corpus/skills/cratis-screenplay-slice-design/SKILL.md +7 -4
- package/package/corpus/skills/cratis-screenplay-slice-design/references/field-lineage.md +1 -1
- package/package/corpus/skills/cratis-screenplay-slice-design/references/model-reasoning.md +2 -5
- package/package/corpus/skills/cratis-screenplay-slice-design/references/read-model-design.md +5 -10
- package/package/corpus/skills/cratis-screenplay-slice-design/references/worked-example.md +8 -19
- package/package/corpus/skills/cratis-screenplay-specifications/SKILL.md +17 -25
- package/package/corpus/skills/cratis-screenplay-specifications/references/actions-beyond-commands.md +2 -1
- package/package/corpus/skills/cratis-screenplay-specifications/references/generated-fixtures.md +3 -3
- package/package/corpus/skills/cratis-screenplay-specifications/references/persona-callers-and-cases.md +2 -5
- package/package/corpus/skills/cratis-screenplay-specifications/references/reactions-and-cascades.md +5 -4
- package/package/corpus/skills/cratis-screenplay-specifications/references/source-notes.md +10 -0
- package/package/corpus/skills/cratis-screenplay-streams-and-consistency/SKILL.md +3 -3
- package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/boundaries.md +2 -1
- package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/evolution.md +2 -2
- package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/streams-example.md +10 -24
- package/package/corpus/skills/cratis-screenplay-streams-and-consistency/verification.json +1 -1
- package/package/corpus/skills/cratis-screenplay-toolchain/SKILL.md +23 -17
- package/package/corpus/skills/cratis-screenplay-toolchain/references/automation-translate-example.md +4 -10
- package/package/corpus/skills/cratis-screenplay-toolchain/references/cheat-sheet-example.md +11 -23
- package/package/corpus/skills/cratis-screenplay-toolchain/references/cheat-sheet.md +1 -1
- package/package/corpus/skills/cratis-screenplay-toolchain/references/diagnostics.md +3 -3
- package/package/corpus/skills/cratis-screenplay-toolchain/references/doc-contradictions.md +4 -3
- package/package/corpus/skills/cratis-screenplay-toolchain/references/executable-example.md +3 -7
- package/package/corpus/skills/cratis-screenplay-toolchain/references/executable-subset.md +40 -24
- package/package/corpus/skills/cratis-screenplay-toolchain/references/pdl-example.md +27 -69
- package/package/corpus/skills/cratis-screenplay-toolchain/references/preferred-syntax.md +73 -0
- package/package/corpus/skills/cratis-screenplay-toolchain/references/production-routes-and-filters.md +1 -1
- package/package/corpus/skills/cratis-screenplay-toolchain/references/provenance.md +1 -1
- package/package/corpus/skills/cratis-screenplay-toolchain/references/renderable-subset.md +34 -31
- package/package/corpus/skills/cratis-screenplay-toolchain/references/screenplay-contract-exceptions.json +21 -0
- package/package/corpus/skills/cratis-screenplay-toolchain/references/screenplay-contract.json +7 -1
- package/package/corpus/skills/cratis-screenplay-toolchain/references/screenplay-contract.version +1 -1
- package/package/corpus/skills/cratis-screenplay-toolchain/references/sources-and-streams.md +4 -3
- package/package/corpus/skills/cratis-screenplay-toolchain/references/traps.md +4 -4
- package/package/corpus/skills/cratis-screenplay-toolchain/references/verdicts.md +17 -5
- package/package/corpus/skills/cratis-screenplay-toolchain/references/versions.md +50 -34
- package/package/corpus/skills/cratis-screenplay-toolchain/verification.json +7 -2
- package/package/corpus/skills/cratis-screenplay-ui-composition/SKILL.md +13 -18
- package/package/corpus/skills/cratis-screenplay-ui-composition/references/screen-composition-contract.md +4 -3
- package/package/corpus/skills/cratis-screenplay-ui-composition/references/worked-flow.md +3 -2
- package/package/corpus/skills/cratis-stage-rendering-and-sandbox/SKILL.md +32 -32
- package/package/corpus/skills/cratis-stage-rendering-and-sandbox/references/admission.md +58 -26
- package/package/corpus/skills/cratis-stage-rendering-and-sandbox/references/rendered-application.md +17 -20
- package/package/corpus/skills/cratis-stage-rendering-and-sandbox/references/sandbox-and-specrunner.md +18 -14
- package/package/corpus/skills/cratis-stage-rendering-and-sandbox/references/scene-runtime.md +4 -3
- package/package/corpus/skills/cratis-stage-rendering-and-sandbox/verification.json +2 -2
- package/package.json +1 -1
|
@@ -6,6 +6,8 @@ license: MIT
|
|
|
6
6
|
|
|
7
7
|
# Screenplay toolchain
|
|
8
8
|
|
|
9
|
+
Read [preferred syntax](references/preferred-syntax.md) when writing or reviewing `.play`.
|
|
10
|
+
|
|
9
11
|
Which tool to run, what its result means, and what each tool can and cannot admit. This
|
|
10
12
|
skill answers "does it compile, bind, render, and which compiler said so". The method
|
|
11
13
|
(what to model, in which order, with which gates) lives in
|
|
@@ -22,7 +24,7 @@ files is one application: always check the folder, never one file of it.
|
|
|
22
24
|
|
|
23
25
|
When choosing or upgrading a tool, or checking version-specific capabilities, read `references/versions.md`; it is the only version table, and other skills point to it. For exact diagnostic codes, MCP names/parameters and standalone CLI options, search the large published [references/screenplay-contract.json](references/screenplay-contract.json), pinned by [references/screenplay-contract.version](references/screenplay-contract.version), rather than loading it in full. Locate a diagnostic by its exact `code` (for example `"code": "PLAY0029"`), a tool by its exact `name` (for example `"name": "read-workspace"`), or a command in `cliCommands`; read the matched object for retirement, parameters or options. [references/screenplay-contract-exceptions.json](references/screenplay-contract-exceptions.json) records reasoned exceptions for historical statements; it does not change the current contract.
|
|
24
26
|
|
|
25
|
-
The standalone pin is Screenplay 4.
|
|
27
|
+
The standalone pin is Screenplay 4.145.0.
|
|
26
28
|
CLI and bundled package pins: `references/versions.md`. The single version table records
|
|
27
29
|
released source evidence and historical probes separately; do not relabel an old
|
|
28
30
|
render/browser result as a probe of the current packages.
|
|
@@ -31,7 +33,7 @@ Historical screens-release evidence: CLI 3.40.7 / Stage 4.51.1 / bundled
|
|
|
31
33
|
Screenplay 4.114.0 opened the canonical corpus with `executableReady true`
|
|
32
34
|
and the stdio transcript exposed 37 tools; standalone language 4.122.0 was
|
|
33
35
|
recorded in that vector. These retained results are not a rerun on CLI 3.53.1
|
|
34
|
-
or Screenplay 4.
|
|
36
|
+
or Screenplay 4.145.0.
|
|
35
37
|
|
|
36
38
|
## Ground rules
|
|
37
39
|
|
|
@@ -43,8 +45,8 @@ or Screenplay 4.142.0.
|
|
|
43
45
|
PLAY0029 (a misspelt keyword or a `type` inside a slice) drops a construct silently.
|
|
44
46
|
3. **Pick the compiler deliberately and name it.** Standalone `screenplay` for
|
|
45
47
|
current language checks and reference specifications; `cratis` for rendering
|
|
46
|
-
and generation. Bundled and standalone versions differ (CLI 3.
|
|
47
|
-
the standalone pin is 4.
|
|
48
|
+
and generation. Bundled and standalone versions differ (CLI 3.56.0 bundles 4.145.1;
|
|
49
|
+
the standalone pin is 4.145.0). Report both tool and
|
|
48
50
|
version, rather than transferring a verdict across releases.
|
|
49
51
|
4. **Know the mode** (design, executable, renderable) and write from its subset.
|
|
50
52
|
5. **Capability is not correctness.** The tool you ran decides what is accepted today; the
|
|
@@ -68,7 +70,7 @@ or Screenplay 4.142.0.
|
|
|
68
70
|
| Scope/checks | `--scope <address>`, `--check <names>`; a scoped pass is not whole-application success | `validate --executable` (bundled binder, no write), `--check <names>`, `--scope`; `render --scope`/`--check`; `cratis screenplay conform` |
|
|
69
71
|
| Reference execution | `screenplay test <root>` or MCP `run-specifications` | Discover bundled MCP capability; target tests are not V4 |
|
|
70
72
|
| MCP | `screenplay mcp <root>`; discover schemas | `cratis screenplay mcp [root]`; registered by `cratis ai install` |
|
|
71
|
-
| Render version boundary | Binder admission is not Stage admission | Pinned CLI (`versions.md`) passes through ESM
|
|
73
|
+
| Render version boundary | Binder admission is not Stage admission | Pinned CLI (`versions.md`) passes through ESM v13 to Stage construct admission; bound newer models: `CLI-RENDER-004` |
|
|
72
74
|
|
|
73
75
|
Read `references/versions.md` when you need the exact messages, exit codes or the MCP roots bug.
|
|
74
76
|
|
|
@@ -91,7 +93,7 @@ server with a fixed root when the tool is older than 4.63.2 (the roots bug hit 4
|
|
|
91
93
|
4.60.1 bundled by cratis before 3.28.2; 4.66.0 and later and cratis 3.28.2 are fine). A subagent without MCP reports "V2 not run: no MCP in this agent".
|
|
92
94
|
|
|
93
95
|
One line per verdict, tool first, for example `V1 pass (screenplay 4.142.0, 3 files)` and
|
|
94
|
-
`V3 blocked: PLAY0268 x3 (filter
|
|
96
|
+
`V3 blocked: PLAY0268 x3 (context filter, enum compliance)`. Name the source identity (commit plus the digest from
|
|
95
97
|
the source-identity helper (`cratis-screenplay-modeling-lifecycle` `references/verdicts-and-modes.md` "Source identity")) the verdict ran on; keep it apart from the MCP
|
|
96
98
|
`modelRevision`, which is semantic and, without `.screenplay/identities.json`,
|
|
97
99
|
changes with the root folder name.
|
|
@@ -101,19 +103,24 @@ changes with the root folder name.
|
|
|
101
103
|
- **Design**: every construct family parses; use it to model first. Compiled shapes:
|
|
102
104
|
`references/cheat-sheet.md`. Read [references/cheat-sheet-example.md](references/cheat-sheet-example.md) when you need one complete design-mode document with every construct family.
|
|
103
105
|
- **Executable** (binds, V3): `references/executable-subset.md`. Optional keyed lookups, unfiltered
|
|
104
|
-
lists and lists narrowed by one `by` key (observable too);
|
|
106
|
+
lists and lists narrowed by one `by` key (observable too); caller-supplied equality
|
|
107
|
+
filters on collections bind as v14 since 4.143.0. Context `from`, single-result
|
|
108
|
+
filters, opaque `scoped to`/`performer` and composite `by` remain PLAY0268. Read
|
|
109
|
+
read-surface [equality filters](../cratis-screenplay-read-surface/references/equality-filters.md). No handler (PLAY0268, with or without `implementation`/`hint`); `reads` and
|
|
105
110
|
`concurrency` do not bind (PLAY0271); concept compliance binds as v13 on standalone
|
|
106
|
-
4.142.0 (since 4.141.0)
|
|
111
|
+
4.142.0 (since 4.141.0) and the pinned CLI (precise refusals: command-surface `references/compliance.md`);
|
|
107
112
|
v6 constructs bind on Screenplay 4.61 or
|
|
108
113
|
later (standalone, and cratis 3.28.2 or later); generated values and `returns` responses bind (ESM v7)
|
|
109
114
|
from Screenplay 4.68.0 (also in the current CLI bundle) (`references/generated-responses-example.md`). Read [references/executable-example.md](references/executable-example.md) when you need a small StateChange and StateView model that binds executable, [references/pdl-example.md](references/pdl-example.md) when writing projection forms that bind and run, and [references/automation-translate-example.md](references/automation-translate-example.md) when writing Automation and Translate slices (ESM v6).
|
|
110
|
-
- **Renderable** (V5): `references/renderable-subset.md` has the current Stage 4.
|
|
111
|
-
explicitly labeled older probes.
|
|
112
|
-
values
|
|
115
|
+
- **Renderable** (V5): `references/renderable-subset.md` has the current Stage 4.83.0 table and
|
|
116
|
+
explicitly labeled older probes. CLI 3.56.0 admits through v13; generated UUID-concept
|
|
117
|
+
values/responses, enum numbers, compliance and supported event reactions render.
|
|
118
|
+
Unsupported generated types still get `STAGE-ESM-028`; result combinations get `-038`.
|
|
119
|
+
v14 filters bind but rendering refuses `CLI-RENDER-004`. Run admission
|
|
113
120
|
before claiming a particular model renders (`cratis render --scope` for an admitted part, `--check`
|
|
114
121
|
for no-write planning).
|
|
115
122
|
- **Event sources, streams and routes** bind as ESM v8 at 4.125.0.
|
|
116
|
-
The pinned CLI/Stage pair (`references/versions.md`) reaches admission through
|
|
123
|
+
The pinned CLI/Stage pair (`references/versions.md`) reaches admission through v13, not blanket
|
|
117
124
|
rendering. Operations and exact numeric source mode remain unadmitted.
|
|
118
125
|
Details: `references/sources-and-streams.md` and `references/versions.md`.
|
|
119
126
|
- **Released v9/v10 and published v11:** public contracts and direction select v9;
|
|
@@ -125,10 +132,9 @@ changes with the root folder name.
|
|
|
125
132
|
|
|
126
133
|
- **Published v12 (4.139.0):** non-positional enum numbers bind; canonical
|
|
127
134
|
`numbers` parallels `values`. Positional pins preserve earlier executable
|
|
128
|
-
bytes/version. Specifications still use names.
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
only the compiler would not lift their v10 admission ceiling (`references/versions.md`). Syntax:
|
|
135
|
+
bytes/version. Specifications still use names. CLI 3.56.0's compiler binds
|
|
136
|
+
non-positional numbers, and Stage 4.83.0 admits v12 and emits `Member = N`.
|
|
137
|
+
v14 collection filters still exceed the renderer's v13 ceiling (`references/versions.md`). Syntax:
|
|
132
138
|
command-surface `references/enum-numbers.md`; errors PLAY0667–0670 and opt-in
|
|
133
139
|
`enum-pinning` hint PLAY0671: `references/diagnostics.md`.
|
|
134
140
|
|
|
@@ -168,7 +174,7 @@ All 44, with fixes: `references/traps.md`. Read `references/traps.md` when diagn
|
|
|
168
174
|
Read [references/diagnostics.md](references/diagnostics.md) when a PLAY, STAGE or CLI-RENDER diagnostic needs its meaning and fix. Read [references/doc-contradictions.md](references/doc-contradictions.md) when the Screenplay documentation and the compiler disagree and you must decide which to trust.
|
|
169
175
|
|
|
170
176
|
1. Clean V1 is not executable: only MCP (V2) or `render` binds.
|
|
171
|
-
2.
|
|
177
|
+
2. Prefer inline `produces event` for a command-owned event; plain command productions need explicit `for <identifier>`.
|
|
172
178
|
3. PLAY0029 is a warning: validate with warnings as errors.
|
|
173
179
|
4. Validate the folder; name the compiler (cli#244, cli#242).
|
|
174
180
|
5. V1 warns on undeclared projection targets (`PLAY0514`) and removal/capture
|
package/package/corpus/skills/cratis-screenplay-toolchain/references/automation-translate-example.md
CHANGED
|
@@ -17,11 +17,8 @@ module Membership
|
|
|
17
17
|
slice StateChange Subscribe
|
|
18
18
|
command Subscribe
|
|
19
19
|
memberId MemberId identifier
|
|
20
|
-
produces MemberSubscribed
|
|
21
|
-
|
|
22
|
-
subscribedAt = $context.occurred
|
|
23
|
-
event MemberSubscribed
|
|
24
|
-
subscribedAt DateTime
|
|
20
|
+
produces event MemberSubscribed
|
|
21
|
+
subscribedAt DateTime = $context.occurred
|
|
25
22
|
specification SubscribingAMember
|
|
26
23
|
given clock "2026-10-05T09:00:00Z"
|
|
27
24
|
when Subscribe
|
|
@@ -39,11 +36,8 @@ module Membership
|
|
|
39
36
|
months Int
|
|
40
37
|
validate
|
|
41
38
|
months > 0 message "Renew for at least one month"
|
|
42
|
-
produces MembershipRenewed
|
|
43
|
-
|
|
44
|
-
months = months
|
|
45
|
-
event MembershipRenewed
|
|
46
|
-
months Int
|
|
39
|
+
produces event MembershipRenewed
|
|
40
|
+
months Int = months
|
|
47
41
|
specification RejectingAZeroRenewal
|
|
48
42
|
when Renew
|
|
49
43
|
memberId = "5b6c1f7e-2d3a-4e8b-9c0d-1a2b3c4d5e6f"
|
|
@@ -2,12 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
One complete document with every construct family. Design mode, not executable. Prose rules: [cheat-sheet.md](cheat-sheet.md); tool versions: [versions.md](versions.md); what binds: [executable-subset.md](executable-subset.md).
|
|
4
4
|
|
|
5
|
-
Binding blockers: unquoted import, `reads` (PLAY0271), `starts with
|
|
5
|
+
Binding blockers: unquoted import, `reads` (PLAY0271), `starts with`. Caller-supplied collection equality filters bind as ESM v14 since 4.143.0; context/single-result filters remain blocked. Executable shapes are in the sibling examples. The bare-marker fence compiles warning-free on standalone 4.127.0; the earlier legacy-marker version compiled on 4.66.0 and CLI 3.28.2. `RecordingAPayment` lists the `InvoiceClosed` cascade, which the cratis 3.27.1 bundle (4.60.1) rejected with a false PLAY0285 ("outcome cannot be produced by 'RecordPayment'"); 3.28.2 accepts it.
|
|
6
6
|
|
|
7
7
|
Concept compliance itself binds as ESM v13 on standalone 4.142.0 (first released
|
|
8
|
-
in 4.141.0); reasons remain report-only PLAY0270. CLI 3.
|
|
9
|
-
4.
|
|
10
|
-
(Stage#345). Binder-only PLAY0268
|
|
8
|
+
in 4.141.0); reasons remain report-only PLAY0270. CLI 3.56.0 bundles Screenplay
|
|
9
|
+
4.145.1 / Stage 4.83.0 and renders v13 concept protection. Binder-only PLAY0268
|
|
11
10
|
refusals and subject-lineage limits: command-surface `references/compliance.md`.
|
|
12
11
|
|
|
13
12
|
```screenplay test=unbound
|
|
@@ -135,9 +134,7 @@ module Billing
|
|
|
135
134
|
command CancelInvoice
|
|
136
135
|
invoiceId InvoiceId identifier
|
|
137
136
|
authorize CanManage
|
|
138
|
-
produces InvoiceCancelled
|
|
139
|
-
for invoiceId
|
|
140
|
-
event InvoiceCancelled
|
|
137
|
+
produces event InvoiceCancelled
|
|
141
138
|
specification CancellingAnInvoice
|
|
142
139
|
given caller
|
|
143
140
|
authenticated
|
|
@@ -161,7 +158,7 @@ module Billing
|
|
|
161
158
|
number String
|
|
162
159
|
query InvoiceById => InvoiceRow optional // keyed optional lookup (unfiltered lists bind too)
|
|
163
160
|
by invoiceId InvoiceId
|
|
164
|
-
query ListInvoices => observable InvoiceRow[] //
|
|
161
|
+
query ListInvoices => observable InvoiceRow[] // caller-supplied equality filter: ESM v14 since 4.143.0
|
|
165
162
|
filter number String optional
|
|
166
163
|
projection InvoiceList => InvoiceRow
|
|
167
164
|
from InvoiceRegistered
|
|
@@ -214,13 +211,9 @@ module Billing
|
|
|
214
211
|
paymentId PaymentId identifier
|
|
215
212
|
invoiceId InvoiceId
|
|
216
213
|
amount Decimal
|
|
217
|
-
produces PaymentRecorded
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
amount = amount
|
|
221
|
-
event PaymentRecorded
|
|
222
|
-
invoiceId InvoiceId
|
|
223
|
-
amount Decimal
|
|
214
|
+
produces event PaymentRecorded
|
|
215
|
+
invoiceId InvoiceId = invoiceId // cross-stream reference is payload
|
|
216
|
+
amount Decimal = amount
|
|
224
217
|
specification RecordingAPayment
|
|
225
218
|
given caller
|
|
226
219
|
authenticated
|
|
@@ -242,9 +235,7 @@ module Housekeeping // no gates: this reaction
|
|
|
242
235
|
slice StateChange CloseInvoice
|
|
243
236
|
command CloseInvoice
|
|
244
237
|
invoiceId InvoiceId identifier
|
|
245
|
-
produces InvoiceClosed
|
|
246
|
-
for invoiceId
|
|
247
|
-
event InvoiceClosed
|
|
238
|
+
produces event InvoiceClosed
|
|
248
239
|
specification ClosingAnInvoice
|
|
249
240
|
when CloseInvoice
|
|
250
241
|
invoiceId = "9c858901-8a57-4791-81fe-4c455b099bc9"
|
|
@@ -254,11 +245,8 @@ module Housekeeping // no gates: this reaction
|
|
|
254
245
|
slice StateChange MarkOverdue
|
|
255
246
|
command MarkOverdue
|
|
256
247
|
invoiceId InvoiceId identifier
|
|
257
|
-
produces InvoiceMarkedOverdue
|
|
258
|
-
|
|
259
|
-
overdueAt = $context.occurred
|
|
260
|
-
event InvoiceMarkedOverdue
|
|
261
|
-
overdueAt DateTime
|
|
248
|
+
produces event InvoiceMarkedOverdue
|
|
249
|
+
overdueAt DateTime = $context.occurred
|
|
262
250
|
// No command spec here: under ESM v6 it must list the ReminderSent cascade. The file is
|
|
263
251
|
// RecordingAPayment's cascade got a false PLAY0285 on cratis before 3.28.2; 3.28.2 accepts it.
|
|
264
252
|
// The cascade form: automation-translate-example.md (SubscribingAMember).
|
|
@@ -23,7 +23,7 @@ select released v10: [routes and filters](production-routes-and-filters.md).
|
|
|
23
23
|
Qualifying non-route Double literals select published v11 at 4.135.0;
|
|
24
24
|
`numbers exact` does not bind. Non-positional enum member numbers (`draft = 1`)
|
|
25
25
|
select published v12 at 4.139.0; positional pins keep earlier bytes/version,
|
|
26
|
-
while specifications still use names. The pinned CLI/Stage pair (`versions.md`)
|
|
26
|
+
while specifications still use names. The pinned CLI/Stage pair (`versions.md`) admits v12 and renders explicit numbers.
|
|
27
27
|
Syntax/example: command-surface `references/enum-numbers.md`.
|
|
28
28
|
See `versions.md` for freeze and numeric boundaries.
|
|
29
29
|
|
|
@@ -174,8 +174,8 @@ Identity declarations and event `subject` are metadata; reading a declared
|
|
|
174
174
|
`$identity` detail in executable clauses is PLAY0268. `runs as` is admitted as
|
|
175
175
|
ESM v10 in the current standalone, not a current PLAY0268 gap. At standalone
|
|
176
176
|
4.142.0, concept compliance binds as v13 (since 4.141.0); enum/identity compliance and protected
|
|
177
|
-
events with explicit subject marks still refuse PLAY0268. CLI 3.
|
|
178
|
-
bundle
|
|
177
|
+
events with explicit subject marks still refuse PLAY0268. CLI 3.56.0's 4.145.1
|
|
178
|
+
bundle also binds concept compliance; purpose metadata is PLAY0270. See command-surface
|
|
179
179
|
`references/compliance.md` and `references/context.md` for syntax and limits.
|
|
180
180
|
|
|
181
181
|
`screenplay_repair_capabilities` and `propose-repair` advertise PLAY0653: a
|
|
@@ -334,7 +334,7 @@ Report each as `code file:line one-line meaning`; never paste more than about 30
|
|
|
334
334
|
## Render admission (V5): `STAGE-*`, `CLI-RENDER-*`, `STAGE-CRATIS-*`
|
|
335
335
|
Full table with causes: `renderable-subset.md`. The Stage 4.24.x rows below
|
|
336
336
|
retain historical source/probe evidence. The pinned CLI/Stage pair (`versions.md`) admits
|
|
337
|
-
through
|
|
337
|
+
through v13 to construct checks; above it is CLI-RENDER-004 (direct Stage:
|
|
338
338
|
STAGE-ESM-016). Publication STAGE-ESM-032, foreign facts/event captures 033,
|
|
339
339
|
reaction identity 034, reaction filters 035 and production overrides 036 remain
|
|
340
340
|
refused; reducer filters render. Previous CLI 3.46.1 admitted through v7; its
|
|
@@ -17,8 +17,8 @@ Event `subject` remains report-only, despite accepted future lineage work.
|
|
|
17
17
|
Rechecked at 4.142.0: concept `pii`/`personal` and `secret` bind as v13, while
|
|
18
18
|
reasons stay PLAY0270 report-only. PLAY0268 at binding only rejects enum/identity
|
|
19
19
|
compliance and events mixing personal or explicitly subject-scoped secret values
|
|
20
|
-
with an explicit `subject` mark. CLI 3.
|
|
21
|
-
|
|
20
|
+
with an explicit `subject` mark. CLI 3.56.0 bundles Screenplay 4.145.1 / Stage 4.83.0 and
|
|
21
|
+
renders v13 concept protection; protected identities/enums remain refused. These are distinct boundaries,
|
|
22
22
|
not a reason to remove protection.
|
|
23
23
|
|
|
24
24
|
`D/` is Screenplay `Documentation/screenplay/` at **v4.66.0**; line numbers were re-read at
|
|
@@ -41,13 +41,14 @@ read from source or documentation.
|
|
|
41
41
|
| 7 | interaction examples | `D/interactions.md:33` uses `button` | PLAY0103; `on double click` on `table` compiles though not in the EBNF |
|
|
42
42
|
| 8 | where screens live | `D/screens.md:3` "inside `StateView` slices" | samples also put dialogs in `StateChange` |
|
|
43
43
|
| 9 | where reducers live | `D/slices.md:74` and `D/glossary.md:21` call a reducer an `Automation` thing vs `D/slices.md:87` (`StateView`) | `StateView` (samples) |
|
|
44
|
+
| Query rows | Older specification guidance promises authored result-row order | Screenplay v4.145.0 `specifications.md:307-319,426`: compare collections without regard to order, by read-model/key and exact count. Event ordering and collection-valued property ordering are separate |
|
|
44
45
|
| 10 | `then` after `when append` | `D/specifications.md:67` "must match exactly the appended fact" vs `:232` and `:282` (v6: what followed it) | v6 text on the standalone tool; before v6, `:67` |
|
|
45
46
|
| 11 | constraint collision across sources | `D/constraints.md:118` "cannot yet show" vs `D/specifications.md:77` (`for` lets a spec claim a value on another source) | `specifications.md` (newer) |
|
|
46
47
|
| 12 | capture backtick `when` | opaque (`D/captures/grammar.md:321`) vs small portable grammar (`D/captures.md:94`) | both: storage versus binder |
|
|
47
48
|
| 13 | clock boundary | resolved: an occurrence fires if due **after** the given clock and **at or before** the when clock (`D/specifications.md:282-284`; `Semantics/Execution/SemanticClock.cs`, `at > from && at <= to`). Given equal to when fires nothing, so the Screenplay sample `Samples/Commerce/Fulfillment/Shipping/ReleasePickingWave.play:20-22` (06:00 to 06:00, expecting `PickingWaveReleased`) is wrong | the code; never write given equal to when. A Screenplay issue for the sample is a candidate |
|
|
48
49
|
| 14 | `$causedBy` | not evaluable (#4119), not ESM | showcase only |
|
|
49
50
|
| 15 | literal keys | `key literal "global"` vs `key "global"` | both compile; prefer `literal` |
|
|
50
|
-
| 16 | query admission | `D/queries.md:74`
|
|
51
|
+
| 16 | query admission | Older `D/queries.md:74` and historical binder probes rejected live/collection/filter queries | Current v4.145.0 `queries.md` admits collection/observable queries and caller-supplied equality filters (ESM v14 since 4.143.0). Context `from`, single-result filters, opaque scope/performer and composite `by` remain PLAY0268 with specific reasons; source/refusal details: read-surface `references/equality-filters.md` |
|
|
51
52
|
| 17 | `@pii` | `D/concepts.md:3,33` "Chronicle applies `@pii` and `@sensitive` rules automatically" | the historical binder rejected any compliance attribute (PLAY0268); standalone 4.142.0 admits concept compliance as v13 (since 4.141.0) with narrower enum/identity/subject-lineage refusals (command-surface `references/compliance.md`). Keep protection; the pinned CLI still reports V3 blocked. `@sensitive` means an operational secret (`[Encrypted]` + `[NotAudited]`; Screenplay decision 0034); the historically probed tools (standalone 4.68.0, bundle 4.66.0) do **not** report `PLAY0515` (`@pii` from 4.69.1, `@sensitive` from 4.84.1): there only Chronicle catches either attribute on an event-source identifier, at build time of the generated code (CHR0034 for `@pii`, CHR0052 for `@sensitive`) |
|
|
52
53
|
| 18 | read-model identity | `D/readmodels.md:32` "from the keyed query" | at 4.135.0 explicit `key` wins; else single-instance queries agree on one read-model `by` property; only with none and an admitted list query does conventional `*Id` inference run (collection-key exclusions: read-surface `references/named-keys.md`). Queryless views need explicit `key` |
|
|
53
54
|
| 19 | `$strings` constraint messages | `D/constraints.md:31` vs `D/internationalization.md:55` | the compiler keeps the key; realization localizes |
|
|
@@ -22,17 +22,13 @@ module Gallery
|
|
|
22
22
|
authorize IsCurator
|
|
23
23
|
validate
|
|
24
24
|
insuredValue > 0 message "An insured value must be positive"
|
|
25
|
-
produces ArtworkRegistered
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
insuredValue = insuredValue
|
|
25
|
+
produces event ArtworkRegistered
|
|
26
|
+
title ArtworkTitle = title
|
|
27
|
+
insuredValue Decimal = insuredValue
|
|
29
28
|
produces when insuredValue > 100000
|
|
30
29
|
HighValueArtworkFlagged
|
|
31
30
|
for artworkId
|
|
32
31
|
insuredValue = insuredValue
|
|
33
|
-
event ArtworkRegistered
|
|
34
|
-
title ArtworkTitle
|
|
35
|
-
insuredValue Decimal
|
|
36
32
|
event HighValueArtworkFlagged
|
|
37
33
|
insuredValue Decimal
|
|
38
34
|
constraint UniqueArtworkTitle
|
|
@@ -4,8 +4,9 @@
|
|
|
4
4
|
|
|
5
5
|
- Caller and compliance boundary (4.142.0)
|
|
6
6
|
- Admitted on both compilers
|
|
7
|
+
- Equality query filters (ESM v14, since 4.143.0)
|
|
7
8
|
- Admitted from Screenplay 4.61 (ESM v6): standalone tool and cratis 3.28.2 or later
|
|
8
|
-
- Generated values and responses (ESM v7): standalone 4.68.0 or later; the cratis 3.
|
|
9
|
+
- Generated values and responses (ESM v7): standalone 4.68.0 or later; the cratis 3.56.0 bundle binds them too
|
|
9
10
|
- Released public boundaries and observer routes
|
|
10
11
|
- Code attachments (what binds, what never does)
|
|
11
12
|
- Refused (code, reason): fix, or record as a mode gap
|
|
@@ -16,14 +17,14 @@ Current pins: `versions.md`. Detailed
|
|
|
16
17
|
4.66.0/4.68.0 binder probes below retain their historical labels. Current source
|
|
17
18
|
admits routes as ESM v8, public/direction constructs as v9, identity/overrides/filters
|
|
18
19
|
as v10, qualifying non-route Double literals as v11 (exact lowering of Double-mode literals)
|
|
19
|
-
and non-positional enum numbers as v12; concept compliance as v13
|
|
20
|
+
and non-positional enum numbers as v12; concept compliance as v13; caller-supplied
|
|
21
|
+
collection equality filters as v14 since 4.143.0. Operations, the `numbers exact` **source mode** (PLAY0268) and
|
|
20
22
|
reaction refusals/redelivery remain unadmitted. Use the actual
|
|
21
23
|
binder before promoting an older probe to a current capability claim.
|
|
22
24
|
|
|
23
25
|
What the binder admits, and what it refuses with which code. The answer depends on the
|
|
24
|
-
compiler version: the standalone tool (4.
|
|
25
|
-
3.
|
|
26
|
-
binding; older bundles (4.66.0 in cratis 3.28.x, admitting v1 to v6; 4.60.1 before 3.28.2, v1 to v5)
|
|
26
|
+
compiler version: the standalone tool (4.145.0) binds through v14; the compiler bundled in cratis
|
|
27
|
+
3.56.0 (4.145.1) binds through v14, while rendering admits through v13; older bundles (4.66.0 in cratis 3.28.x, admitting v1 to v6; 4.60.1 before 3.28.2, v1 to v5)
|
|
27
28
|
are history.
|
|
28
29
|
Tool facts and the exact v6 messages: `versions.md`. Always name
|
|
29
30
|
the tool with a V2 or V3 result. When tool and documentation disagree, the tool decides
|
|
@@ -38,7 +39,7 @@ never bind (`verdicts.md`).
|
|
|
38
39
|
Complete examples that bind live in `executable-example.md` (both compilers),
|
|
39
40
|
`pdl-example.md` (projections, both compilers) and `automation-translate-example.md`
|
|
40
41
|
(ESM v6; standalone tool and cratis 3.28.2 or later) and `generated-responses-example.md`
|
|
41
|
-
(ESM v7; standalone tool 4.68.0 or later, and the cratis 3.
|
|
42
|
+
(ESM v7; standalone tool 4.68.0 or later, and the cratis 3.56.0 bundle).
|
|
42
43
|
|
|
43
44
|
## Caller and compliance boundary (4.142.0)
|
|
44
45
|
|
|
@@ -50,7 +51,7 @@ readiness. Executable reads of declared `$identity.<detail>` do (PLAY0268);
|
|
|
50
51
|
`$context.identity` remains built-ins only. Purposes and event `subject` marks
|
|
51
52
|
are metadata (PLAY0270), not source resolution, retention or subject propagation.
|
|
52
53
|
Bare `pii`/`personal` and `secret` concepts, scopes and qualifiers bind as v13
|
|
53
|
-
on standalone 4.142.0; CLI 3.
|
|
54
|
+
on standalone 4.142.0; CLI 3.56.0 bundles Screenplay 4.145.1, which binds them too. Enum/identity
|
|
54
55
|
compliance and events mixing protected values with explicit subject marks remain
|
|
55
56
|
refused; see command-surface `references/compliance.md` for the precise boundary.
|
|
56
57
|
Legacy spellings compile with PLAY0565 information; duplicates warn PLAY0653.
|
|
@@ -61,8 +62,8 @@ caller and purpose guidance retains v4.127.0 `context.md`, `identity.md`, `purpo
|
|
|
61
62
|
## Admitted on both compilers
|
|
62
63
|
|
|
63
64
|
- `StateChange` and `StateView` slices.
|
|
64
|
-
- A command with one `identifier`; `produces <
|
|
65
|
-
|
|
65
|
+
- A command with one `identifier`; inline `produces event <Name>` (omit `for`) for a command-owned event, or
|
|
66
|
+
plain `produces <Event>` with explicit `for <identifier>` for a shared event.
|
|
66
67
|
- `produces when` with `==`/`!=` on scalar text, enum, number or boolean, and ordering on
|
|
67
68
|
numbers.
|
|
68
69
|
- Mappings from command properties, string and number literals, `$context.occurred`,
|
|
@@ -84,8 +85,9 @@ caller and purpose guidance retains v4.127.0 `context.md`, `identity.md`, `purpo
|
|
|
84
85
|
Queryless read models need an explicit `key`. Explicit single keys preserve
|
|
85
86
|
equivalent inferred ESM bytes. Composite read-model keys, query `by` blocks and
|
|
86
87
|
their fixtures remain PLAY0268 (#599), not the 4.129.0 authoring delivery's
|
|
87
|
-
executable admission. Collections and observable delivery bind
|
|
88
|
-
|
|
88
|
+
executable admission. Collections and observable delivery bind. Since 4.143.0,
|
|
89
|
+
caller-supplied equality filters on collections also bind as ESM v14; context
|
|
90
|
+
sources, single-result filters, scope, performer and composite `by` remain blocked.
|
|
89
91
|
- One projection per read model: `from`, `every`, `all` (one block per level), `join`,
|
|
90
92
|
`children`, `nested`, `remove with`, `remove via join` (binds; blocks the execution plan at the projection level, see below), `clear with`, counters, `add`,
|
|
91
93
|
`subtract`, `set`, `clear`, variants, and the identifier mapped from the projection's key (`xId = $eventSourceId` only for an event-source key).
|
|
@@ -96,6 +98,19 @@ caller and purpose guidance retains v4.127.0 `context.md`, `identity.md`, `purpo
|
|
|
96
98
|
- `seed`. Personas, screens and descriptions are PLAY0270/PLAY0269 information, not
|
|
97
99
|
blocking.
|
|
98
100
|
|
|
101
|
+
## Equality query filters (ESM v14, since 4.143.0)
|
|
102
|
+
|
|
103
|
+
`filter <name> <Type> [optional]` binds on collections with no `from`, targeting a
|
|
104
|
+
same-named scalar primitive/concept/enum property of the same nominal type
|
|
105
|
+
(ignoring optionality). Distinct filter names must not repeat `by`. All supplied
|
|
106
|
+
filters AND with `by`; optional omission does not narrow, supplied null is refused.
|
|
107
|
+
`then query … arguments` and `when query` accept both `by` and filters; PLAY0468
|
|
108
|
+
reports unknown/repeated/missing required arguments. Collection results match by
|
|
109
|
+
read model/key regardless of row order. The standalone 4.145.0 pin admits this;
|
|
110
|
+
CLI 3.56.0's 4.145.1 compiler also binds it. CLI rendering and Stage 4.83.0
|
|
111
|
+
admit through v13, not v14 (`CLI-RENDER-004` / direct `STAGE-ESM-016`). Complete compiled specs:
|
|
112
|
+
read-surface [equality filters](../../cratis-screenplay-read-surface/references/equality-filters.md).
|
|
113
|
+
|
|
99
114
|
## Admitted from Screenplay 4.61 (ESM v6): standalone tool and cratis 3.28.2 or later
|
|
100
115
|
|
|
101
116
|
- `slice Automation` with `reaction`: `when <Event>` (with values) then `produces` (no
|
|
@@ -115,15 +130,16 @@ caller and purpose guidance retains v4.127.0 `context.md`, `identity.md`, `purpo
|
|
|
115
130
|
- Command specifications that list reaction cascades (no false PLAY0285).
|
|
116
131
|
- In a `then` list after `when append`, only what followed the appended event.
|
|
117
132
|
|
|
118
|
-
## Generated values and responses (ESM v7): standalone 4.68.0 or later; the cratis 3.
|
|
133
|
+
## Generated values and responses (ESM v7): standalone 4.68.0 or later; the cratis 3.56.0 bundle binds them too
|
|
119
134
|
|
|
120
135
|
Facts read at `v4.68.0`: decision 0026 and `Documentation/screenplay/{commands,specifications,interoperability}.md`.
|
|
121
136
|
A model selects ESM v7 only when it uses a generated property, a response, a generated fixture or a `then returns`
|
|
122
137
|
expectation; every other model keeps its version, bytes and revision. The cratis CLI 3.28.3 (bundled 4.66.0)
|
|
123
|
-
reported `PLAY0268` for these constructs (history). The current CLI (3.
|
|
124
|
-
and
|
|
125
|
-
|
|
126
|
-
|
|
138
|
+
reported `PLAY0268` for these constructs (history). The current CLI (3.56.0, bundled 4.145.1) binds them
|
|
139
|
+
and Stage 4.83.0 renders required scalar UUID-concept generated values, scalar/named responses,
|
|
140
|
+
fixtures and `then returns`. Unsupported generated types (`-028`) and result combinations
|
|
141
|
+
(`-038`) remain refused; see `renderable-subset.md` and command-surface
|
|
142
|
+
`references/generated-values-and-responses.md`. Complete example:
|
|
127
143
|
`generated-responses-example.md`.
|
|
128
144
|
|
|
129
145
|
- A generated property is command-only, required, scalar and a concept backed by `Uuid`; bare `Uuid`, optional and collection
|
|
@@ -167,7 +183,7 @@ Qualifying retained non-route Double literals bind/reference-execute as v11 on
|
|
|
167
183
|
Non-positional enum member numbers bind as ESM v12 from 4.139.0; positional
|
|
168
184
|
pins preserve the earlier executable version/bytes. The optional canonical last
|
|
169
185
|
`numbers` array parallels `values`; specifications still use member names.
|
|
170
|
-
Consumers must admit v12 explicitly; CLI 3.
|
|
186
|
+
Consumers must admit v12 explicitly; CLI 3.56.0/Stage 4.83.0 do. Syntax:
|
|
171
187
|
command-surface `references/enum-numbers.md`; version contract: `versions.md`.
|
|
172
188
|
|
|
173
189
|
Concept `pii`/`personal` and `secret`, qualifiers and scopes bind as optional
|
|
@@ -175,8 +191,8 @@ Concept `pii`/`personal` and `secret`, qualifiers and scopes bind as optional
|
|
|
175
191
|
report-only PLAY0270; reference execution proves neither encryption nor erasure.
|
|
176
192
|
Enum/identity concepts and an event combining personal or explicitly subject-scoped
|
|
177
193
|
secret values with an explicit `subject` mark refuse PLAY0268 at binding only.
|
|
178
|
-
CLI 3.
|
|
179
|
-
|
|
194
|
+
CLI 3.56.0 bundles Screenplay 4.145.1 / Stage 4.83.0 and renders v13 concept
|
|
195
|
+
protection; protected identities/enums still refuse `STAGE-ESM-040`. Preserve protection, not a falsely green bind.
|
|
180
196
|
|
|
181
197
|
## Code attachments (what binds, what never does)
|
|
182
198
|
|
|
@@ -221,9 +237,9 @@ bodies still leave their owner non-executable.
|
|
|
221
237
|
| --- | --- | --- |
|
|
222
238
|
| `Automation` or `Translate` slice, `reaction`, `capture`, `trigger`; `given clock`, `when clock`, `when trigger`, `when capture` | PLAY0268 | **cratis before 3.28.2 bundles only** (4.60.1); messages in `versions.md` |
|
|
223
239
|
| Unquoted `import Other.Contract` | PLAY0268 | external contract import is not bound |
|
|
224
|
-
| `pii` or `secret` on a concept | PLAY0268 |
|
|
240
|
+
| `pii` or `secret` on a concept | PLAY0268 | Historical blanket refusal on CLI 3.53.1's 4.137.0 bundle only. CLI 3.56.0 and standalone 4.142.0+ 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 |
|
|
225
241
|
| `query` with a composite `by` block, or `by ... from` context-derived arguments | PLAY0268 | composite `by` blocks remain unadmitted (#599). 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 (since 4.105.0) |
|
|
226
|
-
| `
|
|
242
|
+
| 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 |
|
|
227
243
|
| `contains` or `starts with` in conditions | PLAY0268 | equality and numeric ordering only |
|
|
228
244
|
| Date or DateTime comparison, `today` | PLAY0268 | no runtime date value |
|
|
229
245
|
| Rule on a nested path (`lines.qty all > 0`) | PLAY0268 | put the rule on the nested value's concept |
|
|
@@ -252,7 +268,7 @@ bodies still leave their owner non-executable.
|
|
|
252
268
|
## Not refused, but do not rely on it
|
|
253
269
|
|
|
254
270
|
- Plain `produces` without `for` binds (PLAY0478, information) but means allocation in the
|
|
255
|
-
ESM and "the identifier" in rendered Arc code. Always write `for
|
|
271
|
+
ESM and "the identifier" in rendered Arc code. Always write `for` on a plain `produces <Name>`; inline `produces event` omits it.
|
|
256
272
|
- 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.
|
|
257
273
|
- At Screenplay 4.125.0, V1 reports absent projection/children/nested targets
|
|
258
274
|
with PLAY0514 and unknown removal/capture events with PLAY0166. An unmapped
|
|
@@ -264,8 +280,8 @@ bodies still leave their owner non-executable.
|
|
|
264
280
|
Do not remove `pii`, `secret`, `authorize` or policies, list queries, automations or
|
|
265
281
|
rules a domain needs just to make binding pass. Report `V3 blocked: <codes>` and record the
|
|
266
282
|
slice in the gap list. A `pii` or `secret` marker selects v13 on standalone
|
|
267
|
-
4.142.0 (since 4.141.0). CLI 3.
|
|
268
|
-
|
|
283
|
+
4.142.0 (since 4.141.0). CLI 3.56.0 bundles Screenplay 4.145.1 / Stage 4.83.0, which renders concept
|
|
284
|
+
protection; protected identities/enums still refuse `STAGE-ESM-040`. Either attribute on an identifier or typed destination is a source error
|
|
269
285
|
PLAY0515 on the current compiler (including stream-id parts and route mapping
|
|
270
286
|
sources). Chronicle also rejects `[PII]`/`[Encrypted]` on event-source identifiers
|
|
271
287
|
(CHR0034/CHR0052). Keep surrogate identity and protected payload separate.
|
|
@@ -25,20 +25,12 @@ module Shop
|
|
|
25
25
|
orderId OrderId identifier
|
|
26
26
|
customerId CustomerId
|
|
27
27
|
total Decimal
|
|
28
|
-
produces OrderPlaced
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
lineNumber = 1
|
|
35
|
-
sku = "A-1"
|
|
36
|
-
event OrderPlaced
|
|
37
|
-
customerId CustomerId
|
|
38
|
-
total Decimal
|
|
39
|
-
event LineAdded
|
|
40
|
-
lineNumber Int
|
|
41
|
-
sku String
|
|
28
|
+
produces event OrderPlaced
|
|
29
|
+
customerId CustomerId = customerId
|
|
30
|
+
total Decimal = total
|
|
31
|
+
produces event LineAdded
|
|
32
|
+
lineNumber Int = 1
|
|
33
|
+
sku String = "A-1"
|
|
42
34
|
specification PlacingAnOrder
|
|
43
35
|
when PlaceOrder
|
|
44
36
|
orderId = "7a1c2e30-4b5d-4e6f-8a9b-0c1d2e3f4a5b"
|
|
@@ -64,29 +56,19 @@ module Shop
|
|
|
64
56
|
command RemoveLine
|
|
65
57
|
orderId OrderId identifier
|
|
66
58
|
lineNumber Int
|
|
67
|
-
produces LineRemoved
|
|
68
|
-
|
|
69
|
-
lineNumber = lineNumber
|
|
70
|
-
event LineRemoved
|
|
71
|
-
lineNumber Int
|
|
59
|
+
produces event LineRemoved
|
|
60
|
+
lineNumber Int = lineNumber
|
|
72
61
|
slice StateChange ShipOrder
|
|
73
62
|
command ShipOrder
|
|
74
63
|
orderId OrderId identifier
|
|
75
64
|
carrier String
|
|
76
|
-
produces Shipped
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
produces ShippingCleared
|
|
80
|
-
for orderId
|
|
81
|
-
event Shipped
|
|
82
|
-
carrier String
|
|
83
|
-
event ShippingCleared
|
|
65
|
+
produces event Shipped
|
|
66
|
+
carrier String = carrier
|
|
67
|
+
produces event ShippingCleared
|
|
84
68
|
slice StateChange CancelOrder
|
|
85
69
|
command CancelOrder
|
|
86
70
|
orderId OrderId identifier
|
|
87
|
-
produces OrderCancelled
|
|
88
|
-
for orderId
|
|
89
|
-
event OrderCancelled
|
|
71
|
+
produces event OrderCancelled
|
|
90
72
|
specification CancellingAnOrder
|
|
91
73
|
given OrderPlaced
|
|
92
74
|
for "7a1c2e30-4b5d-4e6f-8a9b-0c1d2e3f4a5b"
|
|
@@ -101,14 +83,9 @@ module Shop
|
|
|
101
83
|
command RenameCustomer
|
|
102
84
|
customerId CustomerId identifier
|
|
103
85
|
name String
|
|
104
|
-
produces CustomerRenamed
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
produces CustomerDeleted
|
|
108
|
-
for customerId
|
|
109
|
-
event CustomerRenamed
|
|
110
|
-
name String
|
|
111
|
-
event CustomerDeleted
|
|
86
|
+
produces event CustomerRenamed
|
|
87
|
+
name String = name
|
|
88
|
+
produces event CustomerDeleted
|
|
112
89
|
slice StateView OrderOverview
|
|
113
90
|
readmodel OrderView
|
|
114
91
|
orderId OrderId
|
|
@@ -156,28 +133,17 @@ module Work
|
|
|
156
133
|
command OpenIssue
|
|
157
134
|
issueId IssueId identifier
|
|
158
135
|
title String
|
|
159
|
-
produces IssueCreated
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
for issueId
|
|
164
|
-
title = title
|
|
165
|
-
event IssueCreated
|
|
166
|
-
title String
|
|
167
|
-
event IssueTitleCorrected
|
|
168
|
-
title String
|
|
136
|
+
produces event IssueCreated
|
|
137
|
+
title String = title
|
|
138
|
+
produces event IssueTitleCorrected
|
|
139
|
+
title String = title
|
|
169
140
|
slice StateChange OpenPullRequest
|
|
170
141
|
command OpenPullRequest
|
|
171
142
|
issueId IssueId identifier
|
|
172
143
|
status String
|
|
173
|
-
produces PullRequestCreated
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
for issueId
|
|
177
|
-
status = status
|
|
178
|
-
event PullRequestCreated
|
|
179
|
-
event BuildCompleted
|
|
180
|
-
status String
|
|
144
|
+
produces event PullRequestCreated
|
|
145
|
+
produces event BuildCompleted
|
|
146
|
+
status String = status
|
|
181
147
|
slice StateView WorkItems
|
|
182
148
|
readmodel BacklogItem
|
|
183
149
|
issueId IssueId
|
|
@@ -207,19 +173,11 @@ module Bank
|
|
|
207
173
|
accountId AccountId identifier
|
|
208
174
|
amount Decimal
|
|
209
175
|
code Code
|
|
210
|
-
produces Deposited
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
amount = amount
|
|
216
|
-
produces Frozen
|
|
217
|
-
for accountId
|
|
218
|
-
event Deposited
|
|
219
|
-
amount Decimal
|
|
220
|
-
event Withdrawn
|
|
221
|
-
amount Decimal
|
|
222
|
-
event Frozen
|
|
176
|
+
produces event Deposited
|
|
177
|
+
amount Decimal = amount
|
|
178
|
+
produces event Withdrawn
|
|
179
|
+
amount Decimal = amount
|
|
180
|
+
produces event Frozen
|
|
223
181
|
specification Depositing
|
|
224
182
|
when Deposit
|
|
225
183
|
accountId = "5d1f0c2e-8a47-4c1b-9b3e-6f2a7c9d1e10"
|