@cratis/pi 7.11.1 → 7.11.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/skills/cratis-application-slice-conformance/SKILL.md +1 -1
- package/package/corpus/skills/cratis-arc-react-page/references/from-screenplay.md +3 -3
- package/package/corpus/skills/cratis-arc-react-page/references/provenance.md +1 -1
- package/package/corpus/skills/cratis-screenplay-automations-and-translations/SKILL.md +12 -10
- package/package/corpus/skills/cratis-screenplay-automations-and-translations/references/automation-patterns.md +2 -2
- package/package/corpus/skills/cratis-screenplay-automations-and-translations/references/cases-to-specify.md +4 -4
- package/package/corpus/skills/cratis-screenplay-automations-and-translations/references/realization-and-gap-fill.md +4 -3
- package/package/corpus/skills/cratis-screenplay-automations-and-translations/references/todo-list-example.md +7 -7
- package/package/corpus/skills/cratis-screenplay-automations-and-translations/references/translate-example.md +3 -2
- package/package/corpus/skills/cratis-screenplay-automations-and-translations/references/translation-patterns.md +2 -2
- package/package/corpus/skills/cratis-screenplay-captures-and-reactions/SKILL.md +24 -22
- package/package/corpus/skills/cratis-screenplay-captures-and-reactions/references/complete-examples.md +5 -7
- package/package/corpus/skills/cratis-screenplay-command-surface/SKILL.md +6 -6
- package/package/corpus/skills/cratis-screenplay-discovery/SKILL.md +9 -9
- package/package/corpus/skills/cratis-screenplay-discovery/references/facilitation.md +1 -1
- package/package/corpus/skills/cratis-screenplay-discovery/references/storming-loop.md +1 -1
- package/package/corpus/skills/cratis-screenplay-discovery/references/worked-session.md +1 -1
- package/package/corpus/skills/cratis-screenplay-event-modeling/SKILL.md +7 -7
- package/package/corpus/skills/cratis-screenplay-event-modeling/references/nine-steps.md +3 -4
- package/package/corpus/skills/cratis-screenplay-event-modeling/references/parsed-not-runnable.md +5 -5
- package/package/corpus/skills/cratis-screenplay-legacy-extraction/SKILL.md +6 -6
- package/package/corpus/skills/cratis-screenplay-legacy-extraction/references/generate-notes.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 +6 -5
- package/package/corpus/skills/cratis-screenplay-model-authoring/references/language-reference.md +14 -13
- package/package/corpus/skills/cratis-screenplay-model-authoring/references/mcp-loop.md +8 -7
- package/package/corpus/skills/cratis-screenplay-model-authoring/references/provenance.md +3 -3
- package/package/corpus/skills/cratis-screenplay-model-review/SKILL.md +3 -3
- package/package/corpus/skills/cratis-screenplay-model-review/references/checklist.md +1 -1
- package/package/corpus/skills/cratis-screenplay-model-review/references/provenance.md +1 -1
- package/package/corpus/skills/cratis-screenplay-model-review/references/report-template.md +1 -1
- package/package/corpus/skills/cratis-screenplay-model-review/references/worked-example.md +1 -1
- package/package/corpus/skills/cratis-screenplay-modeling-lifecycle/SKILL.md +4 -4
- package/package/corpus/skills/cratis-screenplay-modeling-lifecycle/references/identity-and-edits.md +2 -2
- package/package/corpus/skills/cratis-screenplay-modeling-lifecycle/references/opt-in.md +25 -11
- package/package/corpus/skills/cratis-screenplay-modeling-lifecycle/references/verdicts-and-modes.md +1 -1
- package/package/corpus/skills/cratis-screenplay-modeling-lifecycle/references/vocabulary-map.md +1 -1
- package/package/corpus/skills/cratis-screenplay-projections/SKILL.md +5 -5
- package/package/corpus/skills/cratis-screenplay-read-surface/SKILL.md +5 -5
- package/package/corpus/skills/cratis-screenplay-render-and-gap-fill/SKILL.md +9 -6
- 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/provenance.md +1 -1
- package/package/corpus/skills/cratis-screenplay-render-and-gap-fill/references/renderability-gate.md +9 -8
- package/package/corpus/skills/cratis-screenplay-render-and-gap-fill/references/worked-example.md +5 -5
- package/package/corpus/skills/cratis-screenplay-render-and-gap-fill/verification.json +4 -0
- package/package/corpus/skills/cratis-screenplay-scenario-coverage/SKILL.md +10 -9
- package/package/corpus/skills/cratis-screenplay-scenario-coverage/references/invoicing-dues-design.md +1 -2
- package/package/corpus/skills/cratis-screenplay-scenario-coverage/references/invoicing-dues-example.md +2 -3
- 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 +2 -2
- package/package/corpus/skills/cratis-screenplay-scenario-coverage/references/scenario-examples.md +1 -1
- package/package/corpus/skills/cratis-screenplay-scenario-coverage/references/spec-forms-by-mode.md +4 -4
- package/package/corpus/skills/cratis-screenplay-scenario-coverage/references/view-and-story-specs.md +1 -1
- package/package/corpus/skills/cratis-screenplay-slice-design/SKILL.md +3 -3
- package/package/corpus/skills/cratis-screenplay-slice-design/references/read-model-design.md +1 -1
- package/package/corpus/skills/cratis-screenplay-slice-design/references/worked-example.md +1 -1
- package/package/corpus/skills/cratis-screenplay-specifications/SKILL.md +31 -30
- package/package/corpus/skills/cratis-screenplay-specifications/verification.json +2 -2
- package/package/corpus/skills/cratis-screenplay-streams-and-consistency/SKILL.md +3 -3
- package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/consistency-and-concurrency.md +1 -1
- package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/evolution.md +4 -1
- package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/provenance.md +1 -1
- package/package/corpus/skills/cratis-screenplay-streams-and-consistency/verification.json +2 -1
- package/package/corpus/skills/cratis-screenplay-toolchain/SKILL.md +19 -18
- package/package/corpus/skills/cratis-screenplay-toolchain/references/automation-translate-example.md +1 -2
- package/package/corpus/skills/cratis-screenplay-toolchain/references/cheat-sheet-example.md +2 -3
- package/package/corpus/skills/cratis-screenplay-toolchain/references/cheat-sheet.md +4 -4
- package/package/corpus/skills/cratis-screenplay-toolchain/references/diagnostics.md +8 -5
- package/package/corpus/skills/cratis-screenplay-toolchain/references/doc-contradictions.md +7 -7
- package/package/corpus/skills/cratis-screenplay-toolchain/references/executable-subset.md +14 -10
- package/package/corpus/skills/cratis-screenplay-toolchain/references/pdl-example.md +1 -1
- package/package/corpus/skills/cratis-screenplay-toolchain/references/provenance.md +8 -8
- package/package/corpus/skills/cratis-screenplay-toolchain/references/renderable-subset.md +8 -8
- package/package/corpus/skills/cratis-screenplay-toolchain/references/sources-and-streams.md +3 -3
- package/package/corpus/skills/cratis-screenplay-toolchain/references/traps.md +8 -8
- package/package/corpus/skills/cratis-screenplay-toolchain/references/verdicts.md +12 -10
- package/package/corpus/skills/cratis-screenplay-toolchain/references/versions.md +46 -36
- package/package/corpus/skills/cratis-screenplay-toolchain/verification.json +3 -2
- package/package/corpus/skills/cratis-screenplay-ui-composition/SKILL.md +4 -4
- package/package/corpus/skills/cratis-screenplay-ui-composition/references/provenance.md +1 -1
- package/package/corpus/skills/cratis-screenplay-ui-composition/references/worked-flow.md +3 -3
- package/package/corpus/skills/cratis-stage-rendering-and-sandbox/SKILL.md +13 -10
- package/package/corpus/skills/cratis-stage-rendering-and-sandbox/references/admission.md +12 -9
- package/package/corpus/skills/cratis-stage-rendering-and-sandbox/references/render-example.md +3 -3
- package/package/corpus/skills/cratis-stage-rendering-and-sandbox/references/sandbox-and-specrunner.md +1 -1
- package/package/corpus/skills/cratis-stage-rendering-and-sandbox/verification.json +7 -1
- package/package.json +1 -1
|
@@ -26,7 +26,7 @@ then STAGE (V5 admission). Tool differences: `versions.md`.
|
|
|
26
26
|
## Not caught at V1 (fail binding: V2/V3, PLAY0273)
|
|
27
27
|
- Projection mapping to a property the read model does not declare.
|
|
28
28
|
- Undeclared event in `remove with` or in a capture `append`.
|
|
29
|
-
(Screenplay v4.
|
|
29
|
+
(Screenplay v4.66.0 `SemanticModelBinder` `BindMapping`, `LevelEvent`, `BindCaptureAppends`.)
|
|
30
30
|
|
|
31
31
|
## Silent at every level
|
|
32
32
|
- A declared read-model property that nothing maps (it stays empty): walk field lineage by hand.
|
|
@@ -37,7 +37,7 @@ then STAGE (V5 admission). Tool differences: `versions.md`.
|
|
|
37
37
|
| PLAY0282 | `validate` rule targets a field absent from the command |
|
|
38
38
|
| PLAY0283 | `reads View by field` type matches no `by` param of the view's queries |
|
|
39
39
|
| PLAY0284 | `children`/`nested` never populates a declared element field |
|
|
40
|
-
| 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 the
|
|
40
|
+
| 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 the compiler bundled in cratis before 3.28.2 (4.60.1; cli#242; reachability through reactions and `invokes` was added later); gone in 4.66.0 and cratis 3.28.2 (probed). On an older bundle confirm with the standalone tool, record a tool gap, do not "fix" a correct model |
|
|
41
41
|
| PLAY0286 | spec value is not a member of the enum |
|
|
42
42
|
| PLAY0287 | producer/capture/spec assigns a field the event lacks |
|
|
43
43
|
| PLAY0291-0294 | bad single-line JSON / unknown key / wrong shape / duplicate key |
|
|
@@ -45,7 +45,7 @@ then STAGE (V5 admission). Tool differences: `versions.md`.
|
|
|
45
45
|
## Binding (V2 and V3) - see `executable-subset.md` for the full table
|
|
46
46
|
| Code | Meaning | Fix |
|
|
47
47
|
|---|---|---|
|
|
48
|
-
| 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 cratis 3.
|
|
48
|
+
| 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 cratis before 3.28.2) | stay in design mode, or change the construct if the domain allows; never strip `@pii`/authorization |
|
|
49
49
|
| PLAY0269 / 0270 | UI deferred / authoring metadata (I) | none |
|
|
50
50
|
| 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 |
|
|
51
51
|
| PLAY0273 | incoherent: ambiguous `for`, property not on event revision, operand type mismatch, derived `$eventContext` path | fix the reference |
|
|
@@ -92,8 +92,11 @@ Report each as `code file:line one-line meaning`; never paste more than about 30
|
|
|
92
92
|
Full table with causes: `renderable-subset.md`. Codes you meet most:
|
|
93
93
|
| Code | Meaning |
|
|
94
94
|
|---|---|
|
|
95
|
-
| STAGE-ESM-016 | model above ESM schema
|
|
96
|
-
|
|
|
95
|
+
| STAGE-ESM-016 | model above the admitted ESM schema (v4 on Stage 4.24.2: v5 absence and v6 constructs; 4.24.1 admitted v3, so a v4 model with generations was refused): whole model refused |
|
|
96
|
+
| STAGE-ESM-025 | Stage 4.24.2: a typed-context member references a historical event revision or property identity; only the current revision renders |
|
|
97
|
+
| STAGE-ESM-026 | Stage 4.24.2: a selected event, or an event a selected scope depends on, is above its initial revision; Stage cannot render event-type migrations yet (Stage#204, needs Screenplay#71); gap-fill and hand-write the migrations |
|
|
98
|
+
| STAGE-ESM-024 | ledger-only (Stage 4.24.1 and later): the ESM v6 members are dispositioned Rejected; a v6 model is still refused whole by STAGE-ESM-016, so this is not the code a user sees |
|
|
99
|
+
| CLI-RENDER-003 | historical: reported by cratis 3.28.2 for an ESM v4 model with generations; not emitted since 3.28.3, which reports an evolved event with `STAGE-ESM-026` |
|
|
97
100
|
| STAGE-ESM-001 | slice kind is not `StateChange`/`StateView` (Automation, Translate: Stage#79) |
|
|
98
101
|
| STAGE-ESM-004 / 006 / 013 | more than one command per `StateChange`; conditional or value-expression production; other context value |
|
|
99
102
|
| STAGE-ESM-005 / 015 | code rule or code validation; opaque policy or an ownership claim against a Uuid-backed target |
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
# Documentation contradictions and which side to trust
|
|
2
2
|
|
|
3
|
-
`D/` is Screenplay `Documentation/screenplay/` at **v4.
|
|
3
|
+
`D/` is Screenplay `Documentation/screenplay/` at **v4.66.0**; line numbers were re-read at
|
|
4
4
|
that tag. Rule: the compiler you ran decides what the tool accepts today; the documentation
|
|
5
5
|
and the domain decide what the model should mean. When they disagree, follow the compiler
|
|
6
6
|
for syntax, keep the intended semantics in the model, and record the gap (an issue).
|
|
7
|
-
Tool names mean the standalone `screenplay` 4.
|
|
8
|
-
4.60.1); see `versions.md`. [probed] marks a row re-checked by running a tool; the rest are
|
|
7
|
+
Tool names mean the standalone `screenplay` 4.66.0 and `cratis` 3.28.2 (bundled Screenplay
|
|
8
|
+
4.66.0; before 3.28.2 bundled 4.60.1); see `versions.md`. [probed] marks a row re-checked by running a tool; the rest are
|
|
9
9
|
read from source or documentation.
|
|
10
10
|
|
|
11
11
|
| # | Topic | Conflict | Trust |
|
|
12
12
|
| --- | --- | --- | --- |
|
|
13
|
-
| 0 | ESM v6 | `D/specifications.md` and `D/reactions.md` describe clocks, triggers, captures and reactions as admitted and executed |
|
|
13
|
+
| 0 | ESM v6 | `D/specifications.md` and `D/reactions.md` describe clocks, triggers, captures and reactions as admitted and executed | both tools admit them (ESM v6) since cratis 3.28.2; cratis 3.27.1 (4.60.1) rejected them with PLAY0268 [probed] |
|
|
14
14
|
| 1 | `#` comments | PDL docs use `#` (`D/projections/auto-map.mdx:125,147,153`, `D/forms.md:10`) | compiler: PLAY0058 in a projection; use `//` [probed] |
|
|
15
15
|
| 2 | projection `automap` | `D/projections/grammar.md:70,77` now allow `automap` for children and nested; the projection-level `ProjDirective` (`:38`) still lists only `no automap` | compiler accepts bare `automap`; keep `no automap` at projection level |
|
|
16
16
|
| 3 | AutoMap inside `from` | `D/projections/auto-map.mdx:49` "cannot be toggled" vs `:226` "apply `no automap` per event" | ambiguous; use `no automap` at the projection, children or nested level |
|
|
@@ -41,8 +41,8 @@ read from source or documentation.
|
|
|
41
41
|
| 28 | `visualize-model` kind | the tool filters on the kind "Reactor" (`McpVisualization.cs:21`) although the construct is a Reaction; its added/removed summary never counts reactions (Screenplay#379, open) | the model, not the summary |
|
|
42
42
|
| 29 | bodied reducers in Stage | cli `Documentation/reference/screenplay.md:38` says bodied reducers are unsupported (STAGE-ESM-019) | Stage 4.24 code admits pure allowlisted reducer bodies (`PureTransitionAdmission.cs`); trust the code |
|
|
43
43
|
| 30 | `cratis screenplay validate <file>` | the command reads as a document validator | file mode ignores the file's imports and reports false unknown-name warnings (cli#244, open): validate the folder [probed] |
|
|
44
|
-
| 31 | cli false PLAY0285 | `D/diagnostics.md:640` defines PLAY0285 as a contradiction against every possible producer | cratis 3.
|
|
44
|
+
| 31 | cli false PLAY0285 | `D/diagnostics.md:640` defines PLAY0285 as a contradiction against every possible producer | cratis before 3.28.2 reported it falsely on reaction cascades (cli#242); not reproduced on cratis 3.28.2 [probed] |
|
|
45
45
|
|
|
46
|
-
Rows 0 to 12, 14 to 21 and 23 were re-read at the v4.
|
|
46
|
+
Rows 0 to 12, 14 to 21 and 23 were re-read at the v4.66.0 line numbers above; rows 14, 15,
|
|
47
47
|
19, 20 and 23 are properties of the language rather than documentation defects and were
|
|
48
|
-
not re-probed on 4.
|
|
48
|
+
not re-probed on 4.66.0.
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
# Executable subset (what binds: V2 and V3)
|
|
2
2
|
|
|
3
3
|
What the binder admits, and what it refuses with which code. The answer depends on the
|
|
4
|
-
compiler:
|
|
5
|
-
|
|
4
|
+
compiler version: Screenplay 4.66.0, standalone or bundled in cratis 3.28.2, admits ESM v1 to
|
|
5
|
+
v6; the 4.60.1 compiler bundled in cratis before 3.28.2 admits v1 to v5. Tool facts and the exact v6 messages: `versions.md`. Always name
|
|
6
6
|
the tool with a V2 or V3 result. When tool and documentation disagree, the tool decides
|
|
7
7
|
current capability; the documentation and the domain decide intended correctness. Record
|
|
8
8
|
the gap, never strip the model to pass.
|
|
@@ -12,7 +12,7 @@ render. `screenplay <folder>` and `cratis screenplay validate` never bind (`verd
|
|
|
12
12
|
|
|
13
13
|
Complete examples that bind live in `executable-example.md` (both compilers),
|
|
14
14
|
`pdl-example.md` (projections, both compilers) and `automation-translate-example.md`
|
|
15
|
-
(ESM v6
|
|
15
|
+
(ESM v6; standalone tool and cratis 3.28.2 or later).
|
|
16
16
|
|
|
17
17
|
## Admitted on both compilers
|
|
18
18
|
|
|
@@ -47,7 +47,7 @@ Complete examples that bind live in `executable-example.md` (both compilers),
|
|
|
47
47
|
- `seed`. Personas, screens and descriptions are PLAY0270/PLAY0269 information, not
|
|
48
48
|
blocking.
|
|
49
49
|
|
|
50
|
-
## Admitted
|
|
50
|
+
## Admitted from Screenplay 4.61 (ESM v6): standalone tool and cratis 3.28.2 or later
|
|
51
51
|
|
|
52
52
|
- `slice Automation` with `reaction`: `when <Event>` (with values) then `produces` (no
|
|
53
53
|
`for` means the trigger's event source) or `invokes <Command>`; `where`; clock `at ... on
|
|
@@ -83,9 +83,13 @@ bodies still leave their owner non-executable.
|
|
|
83
83
|
|
|
84
84
|
- A command `handler` **never binds**: PLAY0268 "Command '<n>' handler requires a
|
|
85
85
|
constrained implementation attachment." This holds with a `file`, with a fence, and with
|
|
86
|
-
`implementation` or `hint` (including a pending intent with no payload).
|
|
87
|
-
and `hint` are
|
|
88
|
-
|
|
86
|
+
`implementation` or `hint` (including a pending intent with no payload). On a handler,
|
|
87
|
+
`implementation` and `hint` are authoring intent: no execution, lock or confirmation.
|
|
88
|
+
- From 4.65.0 a command property named rule also accepts an `implementation` block (ordered
|
|
89
|
+
`hint` lines, at most one `file` or tagged fence). With a source attached it binds like a
|
|
90
|
+
direct source; hints-only or empty is pending intent: valid source, PLAY0268 at binding.
|
|
91
|
+
The block is rejected on concept rules, built-in property rules and whole-command
|
|
92
|
+
`require`/`validate` bodies (`v4.66.0:Documentation/screenplay/commands.md`, `context.md`).
|
|
89
93
|
- A handler therefore makes the slice non-executable and non-renderable: it is gap-fill
|
|
90
94
|
with the model as the contract.
|
|
91
95
|
- Stage 4.24 admits only pure reducer bodies (Roslyn allowlist, STAGE-ESM-019 and 022);
|
|
@@ -100,9 +104,9 @@ bodies still leave their owner non-executable.
|
|
|
100
104
|
|
|
101
105
|
| Construct | Code | Note |
|
|
102
106
|
| --- | --- | --- |
|
|
103
|
-
| `Automation` or `Translate` slice, `reaction`, `capture`, `trigger`; `given clock`, `when clock`, `when trigger`, `when capture` | PLAY0268 | **cratis
|
|
107
|
+
| `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` |
|
|
104
108
|
| Unquoted `import Other.Contract` | PLAY0268 | external contract import is not bound |
|
|
105
|
-
| `@pii` or `@sensitive` on any concept | PLAY0268 | "Concept '<n>' compliance attributes require portable data-subject semantics." Same message at 4.60.1 and 4.
|
|
109
|
+
| `@pii` or `@sensitive` on any concept | PLAY0268 | "Concept '<n>' compliance attributes require portable data-subject semantics." Same message at 4.60.1 and 4.66.0. `@sensitive` has no verified portable meaning (Screenplay#384, open) |
|
|
106
110
|
| `query` returning a collection (`RM[]`), or without exactly one caller-supplied `by` | PLAY0268 | "must declare one caller-supplied 'by' argument" or "must return one optional read model" |
|
|
107
111
|
| `observable`, `filter`, `scoped to`, `performer` queries | PLAY0268 | "uses delivery, filtering, scope, or implementation behavior outside the first ESM v1 vertical." `observable` goes in the return position (`=> observable RM optional`); as a body line it is PLAY0048 |
|
|
108
112
|
| `contains` or `starts with` in conditions | PLAY0268 | equality and numeric ordering only |
|
|
@@ -136,7 +140,7 @@ bodies still leave their owner non-executable.
|
|
|
136
140
|
- 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.
|
|
137
141
|
- A projection mapping to a property the read model does not declare, and an undeclared
|
|
138
142
|
event in `remove with` or a capture `append`: V1 does not report them; binding (V3) does,
|
|
139
|
-
with PLAY0273 (Screenplay v4.
|
|
143
|
+
with PLAY0273 (Screenplay v4.66.0 `BindMapping`, `LevelEvent`, `BindCaptureAppends`). A
|
|
140
144
|
declared read-model property that nothing maps is different: no tool reports it, so check
|
|
141
145
|
field lineage by hand.
|
|
142
146
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Projection (PDL) example
|
|
2
2
|
|
|
3
|
-
Projection forms that compile warning-free, bind on both tools and run in the reference runner without Unsupported results (`PlacingAnOrder`, `CancellingAnOrder`, `Depositing` and `RejectingAnEmptyCode` pass). The specifications exercise every, from, `set`, increment, remove with, all + count, add/subtract by, `clear` and the concept rules; `PlacingAnOrder` also runs the `children lines` block (through `LineAdded`) without asserting it; join, nested and variant groups bind but no specification drives them. Forms in this example: every, join, children, nested, clear with, remove with, increment/decrement, all + count, add/subtract by, set to, clear, no automap, literal mapping, variant group (no `=> RM`), concept rules not empty/max/length ==. `lineCount` is initialized in `OrderPlaced` and `shipping` is optional, because the reference runner requires every non-optional read-model property to be set after each fact. Rejected by the binder: more than one every/all block on one level (PLAY0268); `$eventContext.occurred.Week` (PLAY0273, derived value). Not in this example because they block the whole execution plan in the reference runner (Screenplay v4.
|
|
3
|
+
Projection forms that compile warning-free, bind on both tools and run in the reference runner without Unsupported results (`PlacingAnOrder`, `CancellingAnOrder`, `Depositing` and `RejectingAnEmptyCode` pass). The specifications exercise every, from, `set`, increment, remove with, all + count, add/subtract by, `clear` and the concept rules; `PlacingAnOrder` also runs the `children lines` block (through `LineAdded`) without asserting it; join, nested and variant groups bind but no specification drives them. Forms in this example: every, join, children, nested, clear with, remove with, increment/decrement, all + count, add/subtract by, set to, clear, no automap, literal mapping, variant group (no `=> RM`), concept rules not empty/max/length ==. `lineCount` is initialized in `OrderPlaced` and `shipping` is optional, because the reference runner requires every non-optional read-model property to be set after each fact. Rejected by the binder: more than one every/all block on one level (PLAY0268); `$eventContext.occurred.Week` (PLAY0273, derived value). Not in this example because they block the whole execution plan in the reference runner (Screenplay v4.66.0): a `remove via join` on a projection's own (root) level (`UnsupportedProjectionBlock`; it binds, but on Chronicle v19.32.0 it creates no removal subscription, so `CustomerDeleted` would not remove an `OrderView`), and any event-context value other than the event source identity in a projection, such as `$eventContext.occurred` (`UnsupportedEventContext`). Quick reference: [cheat-sheet.md](cheat-sheet.md). The `every` block here maps a literal to show the form. Carry a timestamp on the event with `$context.occurred` in the producing command when a view must show it.
|
|
4
4
|
|
|
5
5
|
```screenplay
|
|
6
6
|
// PDL forms that bind executable on both tools.
|
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
|
|
5
5
|
This skill is an original Cratis work, condensed from verified research on the Screenplay
|
|
6
6
|
language, the standalone tool, the cratis CLI and Stage, then re-verified against product
|
|
7
|
-
source at the tags in `versions.md` and probed on the installed tools (Screenplay 4.
|
|
8
|
-
cratis 3.
|
|
7
|
+
source at the tags in `versions.md` and probed on the installed tools (Screenplay 4.66.0 and
|
|
8
|
+
cratis 3.28.2). Every version, diagnostic and exit-code row cites its evidence there or in
|
|
9
9
|
the file that holds it.
|
|
10
10
|
|
|
11
11
|
## External material
|
|
@@ -28,15 +28,15 @@ is adapted with the agreement of Martin Dilger and Nebulit GmbH.
|
|
|
28
28
|
|
|
29
29
|
## Sources read for facts
|
|
30
30
|
|
|
31
|
-
- Screenplay `v4.
|
|
31
|
+
- Screenplay `v4.66.0` (`c89198b`): `Documentation/screenplay/` (grammar, commands, queries,
|
|
32
32
|
specifications, reactions, diagnostics, mcp), `decisions/0017`, `0020`, `0022` to `0024`,
|
|
33
33
|
`Source/DotNET/Screenplay/Semantics/` (binder, versions, execution),
|
|
34
34
|
`Source/DotNET/Screenplay.Mcp/` (connection, catalog, schemas, workspaces, visualization),
|
|
35
|
-
`Source/DotNET/Tool/Program.cs`. Also `v4.60.1` and `v4.63.1` for the
|
|
36
|
-
|
|
37
|
-
- Stage `v4.24.0` (`fa48546`): `Source/Rendering.Cratis/` (surface ledger, planner, pure
|
|
35
|
+
`Source/DotNET/Tool/Program.cs`. Also `v4.60.1` and `v4.63.1` for the differences from the compiler bundled in cratis 3.27.1
|
|
36
|
+
and earlier.
|
|
37
|
+
- Stage `v4.24.0` (`fa48546`, unchanged in `Rendering.Cratis` admission at `v4.24.1`): `Source/Rendering.Cratis/` (surface ledger, planner, pure
|
|
38
38
|
transition admission, scaffold), `Documentation/guides/customize-rendered-application.md`.
|
|
39
|
-
- cratis `v3.
|
|
39
|
+
- cratis `v3.28.2` (`141c499`; `Render/`, `Run/`, `Prologue/` and `Screenplay/Generate*` are unchanged since `v3.27.1`, `a327e89`): `Source/Cli/Commands/Render/`, `ScreenplayMcpRoot.cs`,
|
|
40
40
|
`Documentation/reference/screenplay.md`.
|
|
41
41
|
- Arc `v22.50.5` and Chronicle `v19.32.0` for the code-level facts cited in `versions.md`.
|
|
42
42
|
- Open issues cited as limits: cli#242, #243, #244, #245; Screenplay#377, #379, #383, #384,
|
|
@@ -49,7 +49,7 @@ is adapted with the agreement of Martin Dilger and Nebulit GmbH.
|
|
|
49
49
|
script ships.
|
|
50
50
|
- Moved the MCP loop to `cratis-screenplay-model-authoring`; this skill keeps only the facts
|
|
51
51
|
needed to run a verdict and the edit strategy summary.
|
|
52
|
-
- Re-checked every documentation contradiction at v4.
|
|
52
|
+
- Re-checked every documentation contradiction at v4.66.0; resolved the clock boundary and the
|
|
53
53
|
ESM v7 and v11 allocations; added numbers-exact, concurrency, approval-policy, visualization,
|
|
54
54
|
bodied-reducer, file-mode and cascade rows.
|
|
55
55
|
- Corrected the code-attachment rule (a handler never binds, with or without `hint`), the
|
|
@@ -1,16 +1,17 @@
|
|
|
1
1
|
# Renderable subset (V5): what `cratis render` admits
|
|
2
2
|
|
|
3
|
-
Sources, all read at tags: Stage v4.24.
|
|
3
|
+
Sources, all read at tags: Stage v4.24.1 `Source/Rendering.Cratis/Semantics/SemanticSurfaceLedger.cs`
|
|
4
4
|
(an exhaustive map of every ESM member to Rendered, Rejected(code) or Ignored),
|
|
5
|
-
`CratisArtifactRenderPlanner.cs`, `PureTransitionAdmission.cs`; cli v3.
|
|
5
|
+
`CratisArtifactRenderPlanner.cs`, `PureTransitionAdmission.cs`; cli v3.28.2
|
|
6
6
|
`Commands/Render/RenderSettings.cs` and `Documentation/reference/screenplay.md`. Re-run the
|
|
7
7
|
render itself before claiming renderability: this table is a reading of the source, not a
|
|
8
8
|
render result.
|
|
9
9
|
|
|
10
10
|
Renderable is a strict subset of executable (`executable-subset.md`). Order of events in
|
|
11
|
-
`cratis render`: the CLI binds the model with its **bundled Screenplay 4.
|
|
12
|
-
and friends appear first
|
|
13
|
-
rejects members.
|
|
11
|
+
`cratis render`: the CLI binds the model with its **bundled Screenplay** (4.66.0 in cratis 3.28.2, so PLAY0268
|
|
12
|
+
and friends appear first), then Stage admits or
|
|
13
|
+
rejects members. An ESM v6 model binds but Stage refuses it whole with `STAGE-ESM-016`
|
|
14
|
+
(probed on 3.28.2; on before 3.28.2 it failed binding first, with PLAY0268).
|
|
14
15
|
|
|
15
16
|
## What Stage 4.24 admits
|
|
16
17
|
|
|
@@ -19,8 +20,7 @@ binding (`PLAY0268`) and Stage refuses their ESM version (`STAGE-ESM-016`); rend
|
|
|
19
20
|
appends never carry event source type, event stream type or event stream id, so
|
|
20
21
|
Chronicle's defaults apply (Stage#177, #200, #201). See `sources-and-streams.md`.
|
|
21
22
|
|
|
22
|
-
Whole-model admission requires ESM schema v1 to v3;
|
|
23
|
-
generations also fail the CLI pre-check CLI-RENDER-003). The admitted vertical is concepts,
|
|
23
|
+
Whole-model admission requires ESM schema v1 to v4 on Stage 4.24.2 (v1 to v3 on the 4.24.1 that cratis 3.28.2 bundled, where a v4 model was STAGE-ESM-016 and also failed the CLI pre-check CLI-RENDER-003; cratis 3.28.3 bundles 4.24.2); v5 and v6 are STAGE-ESM-016. On 4.24.2 a selected event above its initial revision, or any scope depending on it, is STAGE-ESM-026 (migrations are not rendered, Stage#204), and a historical typed-context reference is STAGE-ESM-025. The admitted vertical is concepts,
|
|
24
24
|
composite types, one command to its events, a one-instance projection, an optional keyed
|
|
25
25
|
snapshot query, declarative authorization (including query authorization) and modeled
|
|
26
26
|
specifications. **Automation and Translate slices are not rendered** (Stage#79, open): the
|
|
@@ -28,7 +28,7 @@ whole automation is hand-written (gap-fill).
|
|
|
28
28
|
|
|
29
29
|
| Area | Renders | Rejected (code) |
|
|
30
30
|
| --- | --- | --- |
|
|
31
|
-
| ESM version | schema v1 to
|
|
31
|
+
| ESM version | schema v1 to v4 (4.24.2; initial-revision events only) | evolved events: STAGE-ESM-026 (4.24.2); historical references: STAGE-ESM-025; v5 `then no readmodel`, v6 constructs: STAGE-ESM-016 for the whole model (Stage 4.24.1 also ledgers the v6 members as `STAGE-ESM-024`; users still see STAGE-ESM-016) |
|
|
32
32
|
| Slice kinds | `StateChange`, `StateView` | `Automation`, `Translate`: STAGE-ESM-001 |
|
|
33
33
|
| Types | concepts over Uuid, String, Int, Decimal, Bool, Date, DateTime; composite types; collections; optional | unknown types: 002 and 003 |
|
|
34
34
|
| Validation | not empty, min, max, equal, not equal, comparisons, length, `all >`/`all >=`, matches, `$strings` keys (missing default keys: 018) | code rules and code validation: 005 |
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# Event sources, streams and command routes
|
|
2
2
|
|
|
3
3
|
What a model that uses `eventsource`, `stream`, `streamId` or a command route can and
|
|
4
|
-
cannot do today. Facts read at Screenplay v4.
|
|
4
|
+
cannot do today. Facts read at Screenplay v4.66.0 (`SemanticModelBinder.CommandProductions.cs`),
|
|
5
5
|
Stage v4.24.0 (`SemanticCratisAdmission.cs`) and Chronicle v19.30.0 / Arc v22.49.0.
|
|
6
6
|
|
|
7
7
|
| Activity | Today |
|
|
@@ -9,11 +9,11 @@ Stage v4.24.0 (`SemanticCratisAdmission.cs`) and Chronicle v19.30.0 / Arc v22.49
|
|
|
9
9
|
| Author in `.play` (syntax, MCP views `event-sources`, `event-streams`, `command-routes`) | yes, since Screenplay v4.62.0 |
|
|
10
10
|
| Validate (V1: authorable) | yes |
|
|
11
11
|
| Bind (V3) and run specifications | no: binding reports `PLAY0268`; the whole application then has no executable model. V2 (executable diagnostics) shows that blocking `PLAY0268` as the evidence for the blocked V3 |
|
|
12
|
-
| Render (V5) | no: Stage admits ESM v1 to
|
|
12
|
+
| Render (V5) | no: Stage admits ESM v1 to v4 only, so a v5 or v6 model is refused with `STAGE-ESM-016` and an evolved event with `STAGE-ESM-026` |
|
|
13
13
|
| Deliver as code | gap-fill by hand with the model as the contract (`cratis-screenplay-render-and-gap-fill`, case C) |
|
|
14
14
|
|
|
15
15
|
Why binding refuses: the constructs need an ESM version that is **allocated** but **not
|
|
16
|
-
implemented**. The highest **implemented** ESM version is v6. At 4.
|
|
16
|
+
implemented**. The highest **implemented** ESM version is v6. At 4.66.0 the `PLAY0268`
|
|
17
17
|
message names the allocated version; do not copy a number into a model, a skill or a
|
|
18
18
|
decision, because the numbering is under decision (Cratis/Screenplay PR #401). Tracked in
|
|
19
19
|
Cratis/Screenplay#407 (increment 2 of #302).
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
# Traps (one line each, with the fix)
|
|
2
2
|
|
|
3
|
-
Re-checked against Screenplay v4.
|
|
3
|
+
Re-checked against Screenplay v4.66.0 and cli v3.28.2 where marked [probed] or [source]. Tool and version facts: `versions.md`. Compiler-verified syntax: `cheat-sheet.md`.
|
|
4
4
|
|
|
5
5
|
1. Clean V1 is not executable: binding errors appear only through MCP (V2) or `render`. Neither `screenplay <folder>` nor `cratis screenplay validate` binds. [probed]
|
|
6
6
|
2. The Screenplay samples validate clean but are not all executable; copying their idioms (list queries, `@pii`, `today`, `reads`, `$causedBy`, templates, performers) breaks V3. [probed]
|
|
7
7
|
3. Know the target mode (design/executable/renderable) before writing; state it.
|
|
8
8
|
4. Plain `produces` without `for` means allocation in the ESM but "the identifier" in rendered code. Always write `for <identifier>`. [PLAY0478 probed]
|
|
9
9
|
5. PLAY0029 is a warning: a misspelled keyword (or `type` inside a slice) drops the construct silently. Use `--warnings-as-errors`. [probed]
|
|
10
|
-
6. Validate the folder: `cratis screenplay validate file.play` ignores imports and reports false unknown-name warnings (cli#244, open); the standalone tool follows them. [probed on 3.
|
|
10
|
+
6. Validate the folder: `cratis screenplay validate file.play` ignores imports and reports false unknown-name warnings (cli#244, open); the standalone tool follows them. [probed on 3.28.2 and 4.66.0]
|
|
11
11
|
7. Unresolved names are warnings by design. Mappings to undeclared projection targets and undeclared events in `remove with`/capture `append` pass V1 and fail binding (V3, PLAY0273); a declared read-model property that nothing maps is reported by no tool. Run V3 and check field lineage by hand.
|
|
12
12
|
8. Severity does not soften a rule: `severity warning` still rejects the command.
|
|
13
13
|
9. Authorization (module AND feature AND construct) runs before validation; unauthorized is `then denied`, never `then error`.
|
|
@@ -17,7 +17,7 @@ Re-checked against Screenplay v4.64.0 and cli v3.27.1 where marked [probed] or [
|
|
|
17
17
|
13. Projection `key` routes only on `from` (projection-level: PLAY0381). `all` is per event source. Joins never create instances and match the joined event's source id. [probed]
|
|
18
18
|
14. AutoMap is on by default: same-named event properties fill read-model properties silently (scoped: case-insensitive, same type only; flat-bound: exact name, no type check, so a type mismatch invalidates the model). Use `no automap` for control.
|
|
19
19
|
15. `given readmodel` bypasses the projection; prove a projection with `given` events + `when append`/command + `then readmodel`/`then query`.
|
|
20
|
-
16. PLAY0285/0286/0287 are static spec checks: do not edit expectations blindly; PLAY0285
|
|
20
|
+
16. PLAY0285/0286/0287 are static spec checks: do not edit expectations blindly; PLAY0285 had a cascade false positive on the compiler bundled in cratis before 3.28.2 (4.60.1, cli#242); gone in 4.66.0 and cratis 3.28.2. [probed]
|
|
21
21
|
17. `null` in specs only for optional read-model properties (PLAY0350); omit the property or record a gap; whether an optional detail is really a separate fact is a review question, not the fix for this code.
|
|
22
22
|
18. `then` events are exhaustive and ordered (use `then events in any order` for order only). From ESM v6 they include reaction cascades; after `when append` they list only what followed the append.
|
|
23
23
|
19. `reads` without `by` means a singleton view today (decision 0017 will change it); `reads` never binds (PLAY0271), and neither does a command `concurrency` block (PLAY0271, error). [probed, source]
|
|
@@ -34,7 +34,7 @@ Re-checked against Screenplay v4.64.0 and cli v3.27.1 where marked [probed] or [
|
|
|
34
34
|
30. Claims compare with `matches` (`claim "dept" matches "Finance"`); `==` is PLAY0120. Conditions with `contains`/`starts with` compile but do not bind. [probed]
|
|
35
35
|
31. One `every`/`all` block per projection level for V3; `$eventContext.occurred.Week` does not bind. [probed]
|
|
36
36
|
32. Concept rules: `min`/`max`/`length ==`, not `length 3 to 10` (PLAY0141). [probed]
|
|
37
|
-
33. Which compiler matters:
|
|
37
|
+
33. Which compiler matters: cratis before 3.28.2 bundle Screenplay 4.60.1, which rejects ESM v6 (Automation/Translate) and reports a false PLAY0285 on cascades; cratis 3.28.2 bundles 4.66.0 and behaves like the standalone tool. Check `cratis --version` and name the tool in every verdict. [probed on both tools]
|
|
38
38
|
|
|
39
39
|
34. A `from <Event> key <property>` routes only if every such event carries that property: an event that frees or updates a row keyed by another stream's id must carry that id in its payload, or the row never changes. Whether the compiler reports a missing key property is unverified [to probe]; check by hand.
|
|
40
40
|
35. `description`/`documentation` are authoring metadata: board, MCP and Prologue show them; `cratis render` never does (Stage#178). A rule only in prose is unenforced in rendered code; make it a rule layer, a spec or a recorded target requirement.
|
|
@@ -42,10 +42,10 @@ Re-checked against Screenplay v4.64.0 and cli v3.27.1 where marked [probed] or [
|
|
|
42
42
|
37. Personas are not in the ESM (Screenplay#254); specs cannot reference them. Write `given caller` as the roles/claims that stand for the persona.
|
|
43
43
|
38. A rule that depends on stored state is `reads <View>` + `require <expr> message "..."` (stated intent; PLAY0268/0271 at binding are expected in design mode). The slice `description` must mark it NOT enforced in the model today (Screenplay#129/#209) and name the target: Arc `[ProtectedDecision]` + `DecisionRead<T>` (Arc v22.39.0 and later; not available in a Stage-rendered app on Arc 22.25.0), Chronicle DCB (`concurrency` scope), or a constraint where one fits. Forbidden: caller-supplied copies of state in `require`, boolean attestation inputs (`confirmsX == true`), rules hidden in `handler`/implementation-hint prose. An unguarded materialized read is unsafe for a protected decision.
|
|
44
44
|
|
|
45
|
-
The SKILL.md top 12: 1, 4, 5, 6, 7, 10, 12, 13, 17, 18, 20, 21 (+ mode/version notes there). Traps 39 to 44 are tool traps added at the 4.
|
|
46
|
-
39. A handler never binds: PLAY0268 "Command '<n>' handler requires a constrained implementation attachment", with a file, a fence, `implementation` or `hint` alike. `hint`
|
|
47
|
-
40. `numbers exact` parses on 4.
|
|
48
|
-
41. MCP roots bug (4.63.1 and earlier, including
|
|
45
|
+
The SKILL.md top 12: 1, 4, 5, 6, 7, 10, 12, 13, 17, 18, 20, 21 (+ mode/version notes there). Traps 39 to 44 are tool traps added at the 4.66.0 pin.
|
|
46
|
+
39. A handler never binds: PLAY0268 "Command '<n>' handler requires a constrained implementation attachment", with a file, a fence, `implementation` or `hint` alike. `implementation` and `hint` are accepted on a command handler, an operation execute/compensate phase and (from 4.65.0) a command property named rule, and are rejected on concept rules, built-in property rules and whole-command `require`/`validate` bodies; on a handler they are authoring intent only (no execution, lock or confirmation). A handler slice is gap-fill, not a customization of a rendered slice. [source, probed]
|
|
47
|
+
40. `numbers exact` parses on 4.66.0 but never binds (PLAY0268; ESM v7 is not admitted) and is PLAY0001 on older compilers; it is absent from `grammar.md`. Never use it in a model or example meant to execute. [probed]
|
|
48
|
+
41. MCP roots bug (4.63.1 and earlier, including the 4.60.1 bundled by cratis before 3.28.2; not present in 4.66.0 or cratis 3.28.2, probed): a dynamic-root server answers the roots request with an `id: null` error right after `notifications/initialized`; hosts treat it as fatal. `open-workspace.path` does not help. Start with a fixed root (`screenplay mcp <folder>`, `cratis screenplay mcp` in a project with `.cratis/ai.json`) or use 4.63.2 or later (cratis 3.28.2 or later). [source, probed]
|
|
49
49
|
42. A symlinked model path is refused by the MCP server (macOS `/tmp` is a symlink); pass the physical path. Proposals are connection-local (at most 16); `apply` persists identities to `.screenplay/identities.json` and is not crash-atomic across files; never retry `apply` after `ApplyOutcomeUnknown`. [source]
|
|
50
50
|
43. `modelRevision` is canonical semantic (line positions and descriptions do not change it; a file move only if it changes logical placement or application identity) and, without `identities.json`, changes with the root folder name; it is not comparable with a render's `semanticRevision`. Source identity for verdicts is the commit plus the digest from the source-identity helper (`cratis-screenplay-modeling-lifecycle` `references/verdicts-and-modes.md` "Source identity"). [probed]
|
|
51
51
|
44. `cratis render` neither builds nor tests; `--name` is required for plain source; `.cratis-render/` is control state and is never staged; Stage-rendered apps are on Arc 22.25.0 (no `[ProtectedDecision]`). `cratis` file mode versus folder mode (trap 6) and a stale `cratis` on `PATH` (`which -a cratis`) both silently change what a verdict means. [source]
|
|
@@ -27,7 +27,7 @@ V3 are read from the MCP server or from a render, V1 and V5 from the CLIs.
|
|
|
27
27
|
- Warnings are failures here. PLAY0029 (a construct dropped silently) and the unresolved-name
|
|
28
28
|
warnings are the defects this verdict exists to catch.
|
|
29
29
|
- Syntax and consistency checks (PLAY0282 to PLAY0294) run; binding does not.
|
|
30
|
-
- Report: `V1 pass (screenplay 4.
|
|
30
|
+
- Report: `V1 pass (screenplay 4.66.0, 3 files)`, `V1 fail: PLAY0029 a.play:12 ...`.
|
|
31
31
|
|
|
32
32
|
## V2: executable diagnostics
|
|
33
33
|
|
|
@@ -60,13 +60,13 @@ do not block. The ESM then binds (and `read-workspace view=executable-model` rep
|
|
|
60
60
|
comparison needs it). Binding is what makes a model renderable at all. V3 means "binds",
|
|
61
61
|
never "specifications pass".
|
|
62
62
|
|
|
63
|
-
- Report the ESM version the model needs: `V3 ready (screenplay 4.
|
|
63
|
+
- Report the ESM version the model needs: `V3 ready (screenplay 4.66.0, ESM v6)`,
|
|
64
64
|
`V3 blocked: PLAY0268 x3 (list query, @pii) - design scope kept`.
|
|
65
65
|
- A blocked V3 is not repaired by deleting protection or domain rules. Never remove `@pii`,
|
|
66
66
|
`@sensitive`, authorization, list queries, automations or rules to reach V3; record the
|
|
67
67
|
slice and the code in the gap list.
|
|
68
68
|
- A model is "executable" only on the compiler that bound it. A V3 from the standalone tool
|
|
69
|
-
does not carry to `cratis render
|
|
69
|
+
does not carry to `cratis render`: Stage admits ESM v1 to v4 only on 4.24.2 (v1 to v3 on 4.24.1, bundled by cratis 3.28.2; cratis 3.28.3 bundles 4.24.2; evolved events are STAGE-ESM-026) (and on cratis before 3.28.2 the bundled 4.60.1 binder, ESM v1 to v5, refused v6 first).
|
|
70
70
|
|
|
71
71
|
## V4: reference specifications run
|
|
72
72
|
|
|
@@ -110,11 +110,11 @@ What Stage admits: `renderable-subset.md`.
|
|
|
110
110
|
One line per verdict, tool and version first, evidence second:
|
|
111
111
|
|
|
112
112
|
```text
|
|
113
|
-
V1 pass (screenplay 4.
|
|
114
|
-
V2 read (screenplay 4.
|
|
115
|
-
V3 ready (screenplay 4.
|
|
113
|
+
V1 pass (screenplay 4.66.0, 3 files)
|
|
114
|
+
V2 read (screenplay 4.66.0 via MCP): 0 blocking, 3 informational (PLAY0270)
|
|
115
|
+
V3 ready (screenplay 4.66.0, ESM v3)
|
|
116
116
|
V4 not run: no route
|
|
117
|
-
V5 admission pass (cratis 3.
|
|
117
|
+
V5 admission pass (cratis 3.28.3, Stage 4.24.2); publication written 14 files; build not run; tests not run
|
|
118
118
|
```
|
|
119
119
|
|
|
120
120
|
Rules: a clean verdict never implies a later one; a verdict names the **source identity** it
|
|
@@ -124,9 +124,11 @@ source change makes earlier verdicts stale.
|
|
|
124
124
|
## Example gate (for skill and documentation authors)
|
|
125
125
|
|
|
126
126
|
Every complete `screenplay` fence in this corpus compiles with the standalone tool at the
|
|
127
|
-
pin and `--warnaserror`. Every fence
|
|
128
|
-
|
|
129
|
-
|
|
127
|
+
pin and `--warnaserror`. Every such fence also passes `cratis screenplay validate
|
|
128
|
+
--warnings-as-errors` (3.28.2, bundling the same compiler) on a folder holding that one file.
|
|
129
|
+
The `// Needs the standalone screenplay compiler (ESM v6)` first-line marker belonged to cratis
|
|
130
|
+
before 3.28.2, which could not validate those fences; no fence carries it now, and a
|
|
131
|
+
checker that still skips marked fences under `cratis` skips nothing. Examples meant to execute are also opened through MCP and
|
|
130
132
|
must be `executableReady`. No example uses `numbers exact`.
|
|
131
133
|
|
|
132
134
|
Edit strategy for `.play` changes (typed identity-preserving operations preferred, bounded text
|
|
@@ -4,17 +4,18 @@ Every other Screenplay skill and reference points here instead of repeating a ve
|
|
|
4
4
|
or a tool capability. When a tool changes, update this file first, then re-run the
|
|
5
5
|
example compile gate with both tools (see `verdicts.md`, "Example gate").
|
|
6
6
|
|
|
7
|
-
Pinned and re-verified against product source on 2026-10-05
|
|
8
|
-
|
|
9
|
-
|
|
7
|
+
Pinned and re-verified against product source on 2026-10-05; the cratis CLI rows were
|
|
8
|
+
re-probed on cratis 3.28.2 and 3.28.3 (Screenplay 4.66.0 bundled in both). Facts marked
|
|
9
|
+
*source* were read with `git show <tag>:<path>`; facts marked *probed* were run against the
|
|
10
|
+
installed tool.
|
|
10
11
|
|
|
11
12
|
## Pin set
|
|
12
13
|
|
|
13
14
|
| Source | Pin | Notes |
|
|
14
15
|
| --- | --- | --- |
|
|
15
|
-
| Screenplay (language, compiler, standalone tool, MCP server) | **v4.
|
|
16
|
-
| cratis CLI | **v3.
|
|
17
|
-
| Stage | **v4.24.
|
|
16
|
+
| Screenplay (language, compiler, standalone tool, MCP server) | **v4.66.0** (`c89198b`), published as `Cratis.Screenplay.Tool` 4.66.0 | Most behaviour below was probed on 4.63.1 (`7769dc4`) and re-checked on 4.66.0. 4.63.1 to 4.64.0 added only the `numbers exact` syntax (binding refuses it), the MCP roots fix from 4.63.2 and fence-registry plumbing. 4.65.0 adds the command named-rule `implementation` block and rejects `implementation` on concept rules, built-in property rules and whole-command `require`/`validate` bodies (a hints-only block binds as PLAY0268). 4.66.0 adds only an experimental VS Code repair bridge. `Semantics/Execution` is unchanged since 4.63.1. Example compile and the toolchain commands in this skill were run on 4.66.0 |
|
|
17
|
+
| cratis CLI | **v3.28.3** (`8b43fef`, Cratis/cli#260) | Bundles **Screenplay 4.66.0** (ESM v1 to v6), **Stage 4.24.2**, `Cratis.Arc.Screenplay` 22.50.5, Chronicle 19.32.0, Fundamentals 7.22.8, Generation 0.18.0 (`Directory.Packages.props` at the tag): otherwise as v3.28.2, so Screenplay behaviour is identical. `cratis render` no longer emits `CLI-RENDER-003`; an evolved event is reported with Stage's `STAGE-ESM-026` (`ScreenplayPlanning.cs` at the tag; probed). v3.28.2 (`141c499`, Cratis/cli#257, closes #253) bundled Stage 4.24.1 and the same Screenplay. Same compiler as the standalone tool, so the two agree on binding and diagnostics; they still differ on file-mode imports. v3.28.1 and earlier (including v3.28.0 and the probed v3.27.1) bundled Screenplay 4.60.1 and Stage 4.24.0 (ESM v1 to v5, MCP roots bug, false PLAY0285, Automation/Translate refused at binding) |
|
|
18
|
+
| Stage | **v4.24.2** (`32dcac4`, Cratis/Stage#205, closes #165) | Admits ESM v4: initial-revision events render as before, any evolved event and its dependent scope is refused with `STAGE-ESM-026`, historical typed-context references with `STAGE-ESM-025`; migration rendering is Stage#204 (needs Screenplay#71); v5 and v6 stay `STAGE-ESM-016`; the Host runtime still refuses evolved events. The cratis CLI bundles it since 3.28.3; 3.28.2 bundled 4.24.1 (v4.24.1, `2cadf59`: below). Pins Screenplay 4.66.0, Arc 22.50.5 and Chronicle 19.32.0 for its own build and the sandbox host image (`cratis/chronicle:19.32.0-development`); admits ESM schema v1 to v3 at 4.24.1 (v4.24.0, `fa48546`, pinned Screenplay 4.60.0); bundled by cratis 3.28.2. 4.24.1 adds `STAGE-ESM-024` to the surface ledger only; no admission change. The scaffold profile is unchanged at 4.24.1: rendered apps use .NET 10, **Arc 22.25.0**, **Chronicle 19.8.1** and a React/Vite frontend scaffold (Components 4.14.0, Scene 4.2.0) |
|
|
18
19
|
| Arc | **v22.50.5** (`eefd098`) | `[ExecuteCommandsAsSystem]` since v20.56.0; `[ProtectedDecision]` and `DecisionRead<T>` since v22.39.0. A Stage-rendered application is on 22.25.0, so `[ProtectedDecision]` is **not** available there |
|
|
19
20
|
| Chronicle | **v19.32.0** (`f17a2ff`) | CHR0012 (`EventTypeShouldAvoidNullableProperties`) and CHR0034 (`PiiOnEventSourceId`) exist. Open runtime defects at v19.32.0: #3744 (unique claims not settled by the store on SQL and InMemory), #4123 (constraint index updates run after commit and fail silently), #4131 (composite unique constraints collide when a component contains the separator) |
|
|
20
21
|
|
|
@@ -28,18 +29,20 @@ global `dotnet` tool) shadows a newer one; confirm with `which -a cratis`.
|
|
|
28
29
|
|
|
29
30
|
| | Standalone `screenplay` | `cratis screenplay ...` |
|
|
30
31
|
| --- | --- | --- |
|
|
31
|
-
| Version | 4.
|
|
32
|
-
| ESM admitted by the binder | v1 to v6 (v6: clocks, application triggers, captures, reactions, Automation and Translate slices) | v1 to
|
|
33
|
-
| `numbers exact` | syntax parses; binding refuses (PLAY0268). Absent from the grammar page; documented only in `diagnostics.md` (PLAY0508 to PLAY0513) | PLAY0001 "Unexpected 'numbers'" |
|
|
34
|
-
| Cascade specs (a command spec listing events a reaction appends) | compiles | **false PLAY0285** (cli#242, open) |
|
|
35
|
-
| Imports in file mode | follows imports | ignores imports, reports false unknown-name warnings (PLAY0165, cli#244, open): validate the folder |
|
|
36
|
-
| Used for | V1, V2, V3
|
|
37
|
-
|
|
38
|
-
**Routing rule.**
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
32
|
+
| Version | 4.66.0 (this pin) | 3.28.3 or 3.28.2, bundling Screenplay 4.66.0 (3.28.1 and earlier bundled 4.60.1) |
|
|
33
|
+
| ESM admitted by the binder | v1 to v6 (v6: clocks, application triggers, captures, reactions, Automation and Translate slices) | v1 to v6, the same binder (probed on 3.28.2: the Automation, Translate and capture examples of this corpus are `executableReady` over `cratis screenplay mcp`) |
|
|
34
|
+
| `numbers exact` | syntax parses; binding refuses (PLAY0268, `executableReady: false`). Absent from the grammar page; documented only in `diagnostics.md` (PLAY0508 to PLAY0513) | same (probed on 3.28.2; 3.27.1 reported PLAY0001 "Unexpected 'numbers'") |
|
|
35
|
+
| Cascade specs (a command spec listing events a reaction appends) | compiles | compiles on 3.28.2 (probed); before 3.28.2 reported a **false PLAY0285** (cli#242, still open on GitHub at the time of writing) |
|
|
36
|
+
| Imports in file mode | follows imports | still ignores imports, reports false unknown-name warnings (PLAY0165, cli#244, open; probed on 3.28.2): validate the folder |
|
|
37
|
+
| Used for | V1, V2, V3; MCP | `render`, `screenplay generate`, `prologue`, `run`; V1, V2 and V3 as well, since it bundles the same compiler |
|
|
38
|
+
|
|
39
|
+
**Routing rule.** With cratis 3.28.2 or later both tools compile and bind with Screenplay
|
|
40
|
+
4.66.0, so either gives V1 to V3. Prefer the standalone tool when it is installed (file mode
|
|
41
|
+
follows imports); `cratis` is the route for rendering (V5), generation and Prologue. Projects
|
|
42
|
+
set up by `cratis ai install` register `cratis screenplay mcp`, which runs the bundled
|
|
43
|
+
compiler: on cratis 3.28.1 or earlier (all releases before 3.28.2) that is 4.60.1 and lags (ESM v5, false PLAY0285,
|
|
44
|
+
roots bug), so read `cratis --version` first. **Name the tool and its version with every
|
|
45
|
+
verdict**; a verdict from one tool does not carry to the other when their versions differ.
|
|
43
46
|
|
|
44
47
|
### Exact messages that tell the tools apart
|
|
45
48
|
|
|
@@ -48,18 +51,20 @@ Only binding (MCP or `render`) prints these; neither `screenplay <folder>` nor
|
|
|
48
51
|
`SemanticModelBinder.Structure.cs`, `SemanticModelBinder.SliceMembers.cs`,
|
|
49
52
|
`SemanticModelBinder.Specifications.cs`.
|
|
50
53
|
|
|
51
|
-
| Construct | cratis 3.
|
|
54
|
+
| Construct | cratis before 3.28.2 (Screenplay 4.60.1) reported (PLAY0268) | 4.66.0, standalone and cratis 3.28.2 |
|
|
52
55
|
| --- | --- | --- |
|
|
53
56
|
| Automation or Translate slice | `Slice '<name>' of type '<type>' is not admitted by ESM v1.` | binds as ESM v6 |
|
|
54
57
|
| Reaction | `Reaction '<n>' requires portable occurrence and effect semantics.` | binds |
|
|
55
58
|
| Capture | `Capture '<n>' requires a portable compiled CDL plan.` | binds |
|
|
56
59
|
| Clock, trigger or capture specification | `... which the executable model does not admit yet - clocks, application triggers and capture records are proposed for ESM v6 in decision 0022.` | binds |
|
|
57
60
|
|
|
58
|
-
The substring "is not admitted by ESM v1" still appears on 4.
|
|
61
|
+
The substring "is not admitted by ESM v1" still appears on 4.66.0 for constraints,
|
|
59
62
|
expressions and projection blocks that the binder cannot represent, so that text alone does
|
|
60
|
-
not prove
|
|
63
|
+
not prove an older compiler: read the construct it names. A v6 model that still fails binding
|
|
64
|
+
on 4.66.0 names a different construct, for example a reaction that reads a view before
|
|
65
|
+
producing directly (decision 0006).
|
|
61
66
|
|
|
62
|
-
## Standalone `screenplay` 4.
|
|
67
|
+
## Standalone `screenplay` 4.66.0
|
|
63
68
|
|
|
64
69
|
| Fact | Value | Evidence |
|
|
65
70
|
| --- | --- | --- |
|
|
@@ -71,25 +76,25 @@ not prove the older compiler: read the construct it names.
|
|
|
71
76
|
| Empty root | `state: "empty"`, `authoringAccepted: true`, PLAY0289 | probed |
|
|
72
77
|
| Pin of the roots bug | fixed (from 4.63.2); see "MCP roots bug" below | source `McpConnection.cs` |
|
|
73
78
|
|
|
74
|
-
## cratis 3.
|
|
79
|
+
## cratis 3.28.3 and 3.28.2 (Screenplay 4.66.0)
|
|
75
80
|
|
|
76
81
|
| Fact | Value | Evidence |
|
|
77
82
|
| --- | --- | --- |
|
|
78
83
|
| V1 command | `cratis screenplay validate <folder> --warnings-as-errors -o json-compact` | `--help`, probed |
|
|
79
84
|
| Exit codes | 0 pass; 5 errors (or warnings with `--warnings-as-errors`); 1 path missing **or no `.play` files**. Information never fails | probed |
|
|
80
|
-
| Output | JSON lines: a `diagnostics` array with `severity`, `code`, `message`, `location`, then either `{"path","files","diagnostics":
|
|
85
|
+
| Output | JSON lines: a `diagnostics` array with `severity`, `code`, `message`, `location`, then either `{"path","files","diagnostics":N}` (N counts information too) or an error object. A passing folder run prints the file count | probed on 3.28.2 |
|
|
81
86
|
| File versus folder | file mode compiles one document and **ignores imports** (cli#244). Validate the folder | probed |
|
|
82
|
-
| MCP | `cratis screenplay mcp <root>`, or no argument inside a project: the server locates the model itself (existing `.play` files, else `Source/`/`src/`, else a new `Screenplay/` folder) unless `.cratis/ai.json` sets `mcpServers.screenplay.root`; 29 tools,
|
|
83
|
-
| Render | `cratis render` binds with the bundled compiler first, then Stage 4.24.
|
|
84
|
-
| `prologue interpret` | no `--no-llm` flag; LLM resolution and `screenplay generate` flags were checked on 3.27.0 | source |
|
|
87
|
+
| MCP | `cratis screenplay mcp <root>`, or no argument inside a project: the server locates the model itself (existing `.play` files, else `Source/`/`src/`, else a new `Screenplay/` folder) unless `.cratis/ai.json` sets `mcpServers.screenplay.root`; 29 tools and the same `read-workspace` views as the standalone tool, including `event-sources`, `event-streams` and `command-routes` (probed on 3.28.2; the 4.60.1 bundle had no such views). Fails fast only when an explicitly configured root does not exist | source `ScreenplayMcpRoot.cs:20-37` |
|
|
88
|
+
| Render | `cratis render` binds with the bundled compiler first, then the bundled Stage (4.24.2 since 3.28.3; 4.24.1 in 3.28.2) admits; a v6 model reaches Stage and is refused whole with `STAGE-ESM-016` (probed on 3.28.2), and an evolved event is `STAGE-ESM-026` with no `CLI-RENDER-003` (probed on 3.28.3). See `renderable-subset.md` | source, probed |
|
|
89
|
+
| `prologue interpret` | no `--no-llm` flag; LLM resolution and `screenplay generate` flags were checked on 3.27.0 and are unchanged in 3.28.2 (`--help` shows no `--no-llm`; the Prologue and Screenplay generate sources have no diff between the tags) | source, probed |
|
|
85
90
|
|
|
86
91
|
## Event sources and streams
|
|
87
92
|
|
|
88
93
|
Declared since Screenplay v4.62.0 but not bound: PLAY0268, allocated-not-implemented ESM
|
|
89
|
-
version (highest implemented: v6). Stage 4.24.0
|
|
90
|
-
STAGE-ESM-016. Details and trackers: `sources-and-streams.md`.
|
|
94
|
+
version (highest implemented: v6). Stage 4.24.0 and 4.24.1 admit ESM v1 to v3 and refuse with
|
|
95
|
+
STAGE-ESM-016; Stage 4.24.2 admits v4 and refuses v5 and v6 with STAGE-ESM-016 (4.24.1 also records the v6 members as rejected `STAGE-ESM-024` in its ledger; users still see STAGE-ESM-016). Details and trackers: `sources-and-streams.md`.
|
|
91
96
|
|
|
92
|
-
## MCP roots bug (4.63.1 and earlier; fixed in 4.63.2)
|
|
97
|
+
## MCP roots bug (4.63.1 and earlier; fixed in 4.63.2; not present in cratis 3.28.2)
|
|
93
98
|
|
|
94
99
|
A dynamic-root server (`screenplay mcp` with no folder) asks a roots-capable client for
|
|
95
100
|
`roots`, reads the wrong field and replies with an error whose `id` is `null`; real hosts
|
|
@@ -97,7 +102,11 @@ treat that as fatal. It happens right after `notifications/initialized`, before
|
|
|
97
102
|
call, and only when the root is dynamic. **Passing `open-workspace.path` does not avoid
|
|
98
103
|
it.** Avoid it with a fixed root: `screenplay mcp <model-folder>`, `cratis screenplay mcp
|
|
99
104
|
<path>`, or `cratis screenplay mcp` inside a project with `.cratis/ai.json`; or use 4.63.2
|
|
100
|
-
or later.
|
|
105
|
+
or later. cratis before 3.28.2 bundled 4.60.1, which has the bug, so only the fixed-root
|
|
106
|
+
forms were safe there. Probed on cratis 3.28.2 (Screenplay 4.66.0): with a roots-capable
|
|
107
|
+
client and no fixed root, `cratis screenplay mcp` answers `initialize`, sends a well-formed
|
|
108
|
+
`roots/list` request, and serves `tools/list` (29 tools) after the client replies; no `id: null`
|
|
109
|
+
error appears. A fixed root is still the simplest way to avoid any host differences.
|
|
101
110
|
MCP loop procedure and proposals: `cratis-screenplay-model-authoring`.
|
|
102
111
|
|
|
103
112
|
## Revisions and descriptions
|
|
@@ -110,10 +119,11 @@ MCP loop procedure and proposals: `cratis-screenplay-model-authoring`.
|
|
|
110
119
|
in the separate source map), so line positions and description edits do not change it. A
|
|
111
120
|
workspace or source revision can change without a `modelRevision` change. Re-read after every edit.
|
|
112
121
|
- `cratis render` records its own `semanticRevision` in `.cratis-render.json`, computed with
|
|
113
|
-
the `--name` identity and the
|
|
122
|
+
the `--name` identity and the bundled compiler. **Never compare the MCP `modelRevision`
|
|
114
123
|
with a render manifest.** Drift is detected by comparing successive `semanticRevision`
|
|
115
|
-
values from renders made with the same name and inputs
|
|
116
|
-
|
|
124
|
+
values from renders made with the same name and inputs (probed on 3.28.2: the same model
|
|
125
|
+
rendered as `Marina` and as `Harbour` gives different values). Unverified: whether 4.60.1
|
|
126
|
+
and 4.66.0 produce byte-identical `rev1` values for the same v1 to v3 model.
|
|
117
127
|
- Source identity for a verdict is the commit plus the digest from
|
|
118
128
|
the source-identity helper (`cratis-screenplay-modeling-lifecycle` `references/verdicts-and-modes.md` "Source identity"). Keep it apart from the MCP `modelRevision`.
|
|
119
129
|
- `description` and `documentation` never reach rendered code (Stage#178, open).
|
|
@@ -124,9 +134,9 @@ Screenplay#377 (run specifications from MCP or the tool), #388 (completeness and
|
|
|
124
134
|
report), #383 (identity for an `invokes` caller), #384 (`@pii` on identifiers, `@sensitive`
|
|
125
135
|
meaning), #379 (`visualize-model` counts reactions); Stage#79 (render Automation and
|
|
126
136
|
Translate slices), Stage#165 (admit ESM v4), Stage#197 (`@pii` identifier renders as
|
|
127
|
-
`[PII]` event source id); cli#242 (false PLAY0285), cli#243 (`validate --executable`),
|
|
137
|
+
`[PII]` event source id); cli#242 (false PLAY0285 on the 4.60.1 bundle; fixed in effect by the 4.66.0 bundle but still open on GitHub), cli#243 (`validate --executable`),
|
|
128
138
|
cli#244 (file mode ignores imports), cli#245 (`render --check`). The standalone tool at
|
|
129
|
-
4.
|
|
139
|
+
4.66.0 has only the compile command and `mcp` (no `test`); the reference runner is library
|
|
130
140
|
only. Until these land, "specifications written" or "bound" is never "specifications
|
|
131
141
|
pass".
|
|
132
142
|
|
|
@@ -1,18 +1,19 @@
|
|
|
1
1
|
{
|
|
2
2
|
"skill": "cratis-screenplay-toolchain",
|
|
3
|
-
"input": "Check a Screenplay model folder: which compiler should I run, what do V1 to V3 mean, and
|
|
3
|
+
"input": "Check a Screenplay model folder: which compiler should I run, what do V1 to V3 mean, and what does the cratis CLI do with my Automation slice?",
|
|
4
4
|
"fixtures": [],
|
|
5
5
|
"assertions": [
|
|
6
6
|
{ "kind": "skill-contains", "value": "references/versions.md" },
|
|
7
7
|
{ "kind": "skill-contains", "value": "PLAY0029" },
|
|
8
8
|
{ "kind": "skill-contains", "value": "--warnaserror" },
|
|
9
|
-
{ "kind": "skill-contains", "value": "4.
|
|
9
|
+
{ "kind": "skill-contains", "value": "4.66.0" },
|
|
10
10
|
{ "kind": "skill-contains", "value": "cratis screenplay validate" },
|
|
11
11
|
{ "kind": "skill-contains", "value": "cli#244" },
|
|
12
12
|
{ "kind": "skill-contains", "value": "`notifications/initialized`" },
|
|
13
13
|
{ "kind": "skill-contains", "value": "A handler never binds" },
|
|
14
14
|
{ "kind": "skill-contains", "value": "references/sources-and-streams.md" },
|
|
15
15
|
{ "kind": "skill-contains", "value": "STAGE-ESM-016" },
|
|
16
|
+
{ "kind": "skill-contains", "value": "STAGE-ESM-026" },
|
|
16
17
|
{ "kind": "skill-contains", "value": "authorable and validatable" }
|
|
17
18
|
]
|
|
18
19
|
}
|