@cratis/pi 7.11.3 → 7.11.5
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/planner.md +1 -1
- package/package/corpus/agents/slice-implementer.md +3 -3
- package/package/corpus/agents/spec-writer.md +10 -8
- package/package/corpus/prompts/add-reactor.prompt.md +1 -1
- package/package/corpus/prompts/new-vertical-slice.prompt.md +1 -1
- package/package/corpus/prompts/write-specs.prompt.md +2 -2
- package/package/corpus/rules/application-profile.md +1 -1
- package/package/corpus/rules/framework.md +1 -1
- package/package/corpus/rules/local-work-artifacts.md +13 -0
- package/package/corpus/rules/reactors.md +2 -2
- package/package/corpus/rules/specs.csharp.md +1 -1
- package/package/corpus/rules/specs.scenarios.csharp.md +34 -14
- package/package/corpus/rules/vertical-slices.md +1 -1
- package/package/corpus/skills/cratis-application-slice-conformance/references/checklists.md +4 -2
- package/package/corpus/skills/cratis-application-slice-specifications/SKILL.md +24 -15
- package/package/corpus/skills/cratis-arc-command-operation/references/testing.md +4 -2
- package/package/corpus/skills/cratis-arc-command-typescript/SKILL.md +10 -2
- package/package/corpus/skills/cratis-arc-command-validation/SKILL.md +4 -2
- package/package/corpus/skills/cratis-arc-validation-typescript/SKILL.md +5 -2
- package/package/corpus/skills/cratis-chronicle-event-constraints/SKILL.md +8 -3
- package/package/corpus/skills/cratis-chronicle-event-specifications/SKILL.md +5 -3
- package/package/corpus/skills/cratis-chronicle-reactor/SKILL.md +8 -5
- package/package/corpus/skills/cratis-chronicle-read-model-specifications/SKILL.md +12 -6
- package/package/corpus/skills/cratis-chronicle-reducer/SKILL.md +5 -2
- package/package/corpus/skills/cratis-code-review/SKILL.md +7 -2
- package/package/corpus/skills/cratis-screenplay-captures-and-reactions/SKILL.md +3 -3
- package/package/corpus/skills/cratis-screenplay-captures-and-reactions/references/complete-examples.md +1 -1
- package/package/corpus/skills/cratis-screenplay-command-surface/SKILL.md +49 -7
- package/package/corpus/skills/cratis-screenplay-command-surface/verification.json +8 -2
- package/package/corpus/skills/cratis-screenplay-discovery/SKILL.md +1 -1
- package/package/corpus/skills/cratis-screenplay-event-modeling/SKILL.md +11 -7
- package/package/corpus/skills/cratis-screenplay-event-modeling/references/parsed-not-runnable.md +11 -6
- package/package/corpus/skills/cratis-screenplay-legacy-extraction/SKILL.md +1 -1
- package/package/corpus/skills/cratis-screenplay-model-authoring/SKILL.md +7 -5
- package/package/corpus/skills/cratis-screenplay-model-authoring/references/language-reference.md +19 -12
- package/package/corpus/skills/cratis-screenplay-model-authoring/references/mcp-loop.md +3 -3
- package/package/corpus/skills/cratis-screenplay-model-authoring/references/mcp-tools.md +12 -4
- package/package/corpus/skills/cratis-screenplay-model-authoring/references/provenance.md +1 -1
- package/package/corpus/skills/cratis-screenplay-projections/SKILL.md +1 -1
- package/package/corpus/skills/cratis-screenplay-read-surface/SKILL.md +1 -1
- package/package/corpus/skills/cratis-screenplay-render-and-gap-fill/SKILL.md +8 -2
- package/package/corpus/skills/cratis-screenplay-render-and-gap-fill/references/renderability-gate.md +1 -1
- package/package/corpus/skills/cratis-screenplay-render-and-gap-fill/verification.json +3 -1
- package/package/corpus/skills/cratis-screenplay-scenario-coverage/SKILL.md +3 -2
- package/package/corpus/skills/cratis-screenplay-scenario-coverage/references/scenario-catalogue.md +8 -0
- package/package/corpus/skills/cratis-screenplay-scenario-coverage/references/spec-forms-by-mode.md +1 -0
- package/package/corpus/skills/cratis-screenplay-scenario-coverage/verification.json +1 -0
- package/package/corpus/skills/cratis-screenplay-slice-design/SKILL.md +1 -1
- package/package/corpus/skills/cratis-screenplay-slice-design/references/field-lineage.md +1 -1
- package/package/corpus/skills/cratis-screenplay-specifications/SKILL.md +47 -4
- package/package/corpus/skills/cratis-screenplay-specifications/verification.json +4 -0
- package/package/corpus/skills/cratis-screenplay-streams-and-consistency/SKILL.md +7 -3
- package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/stream-patterns.md +2 -2
- package/package/corpus/skills/cratis-screenplay-streams-and-consistency/verification.json +3 -1
- package/package/corpus/skills/cratis-screenplay-toolchain/SKILL.md +13 -12
- package/package/corpus/skills/cratis-screenplay-toolchain/references/cheat-sheet.md +1 -1
- package/package/corpus/skills/cratis-screenplay-toolchain/references/doc-contradictions.md +3 -3
- package/package/corpus/skills/cratis-screenplay-toolchain/references/executable-subset.md +41 -4
- package/package/corpus/skills/cratis-screenplay-toolchain/references/generated-responses-example.md +59 -0
- package/package/corpus/skills/cratis-screenplay-toolchain/references/provenance.md +1 -0
- package/package/corpus/skills/cratis-screenplay-toolchain/references/renderable-subset.md +2 -2
- package/package/corpus/skills/cratis-screenplay-toolchain/references/sources-and-streams.md +6 -6
- package/package/corpus/skills/cratis-screenplay-toolchain/references/traps.md +3 -3
- package/package/corpus/skills/cratis-screenplay-toolchain/references/verdicts.md +2 -2
- package/package/corpus/skills/cratis-screenplay-toolchain/references/versions.md +17 -15
- package/package/corpus/skills/cratis-screenplay-toolchain/verification.json +4 -0
- package/package/corpus/skills/cratis-screenplay-ui-composition/SKILL.md +4 -3
- package/package/corpus/skills/cratis-screenplay-ui-composition/references/worked-flow.md +3 -3
- package/package/corpus/skills/cratis-specification-by-example/SKILL.md +13 -7
- package/package/corpus/skills/cratis-specifications-csharp/SKILL.md +7 -4
- package/package/corpus/skills/cratis-specifications-csharp/references/application-scenarios.md +14 -7
- package/package/corpus/skills/cratis-specifications-csharp/references/csharp-patterns.md +3 -2
- package/package/corpus/skills/cratis-specifications-typescript/references/typescript-patterns.md +3 -1
- package/package/corpus/skills/cratis-stage-rendering-and-sandbox/references/admission.md +1 -1
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: cratis-chronicle-read-model-specifications
|
|
3
|
-
description: Specify
|
|
3
|
+
description: Specify declarative projections and reducer wiring with ReadModelScenario from Cratis.Chronicle.Testing — seeding events through Given and asserting on the materialized instance; start with Specification plus a direct call for pure reducer decisions. Use when the behavior under specification is how events become read-model state. Do not use to create a read model and do not use for raw event append behavior.
|
|
4
4
|
license: MIT
|
|
5
5
|
---
|
|
6
6
|
|
|
@@ -10,8 +10,13 @@ license: MIT
|
|
|
10
10
|
against a sequence of events. No Chronicle server, no database, no network — the
|
|
11
11
|
events go in, the materialized instance comes out.
|
|
12
12
|
|
|
13
|
-
|
|
14
|
-
|
|
13
|
+
Pure reducer decisions use `Specification` plus a direct method call by
|
|
14
|
+
default, with the event and current state supplied explicitly. Add
|
|
15
|
+
`ReadModelScenario<TReadModel>` only where declarative projection behavior,
|
|
16
|
+
event dispatch, filtering, metadata or read-model wiring contribute proof.
|
|
17
|
+
|
|
18
|
+
For a read-model scenario specification the **`Given` *is* the act**. There
|
|
19
|
+
is no separate `When`: seeding the events is what makes the projection run.
|
|
15
20
|
|
|
16
21
|
## Verified product sources
|
|
17
22
|
|
|
@@ -56,7 +61,7 @@ version.
|
|
|
56
61
|
|
|
57
62
|
## When you need this
|
|
58
63
|
|
|
59
|
-
- A reducer
|
|
64
|
+
- A reducer's event dispatch, filtering or read-model wiring needs proof.
|
|
60
65
|
- A fluent `IProjectionFor<T>` maps event properties onto read-model properties.
|
|
61
66
|
- A model-bound projection — `[FromEvent<T>]`, `[SetFrom<T>]`, `[Key]` — maps
|
|
62
67
|
correctly.
|
|
@@ -167,8 +172,9 @@ public class and_two_items_are_priced : Specification
|
|
|
167
172
|
#endif
|
|
168
173
|
```
|
|
169
174
|
|
|
170
|
-
Wrap
|
|
171
|
-
|
|
175
|
+
Wrap files in `#if DEBUG … #endif` only when they compile into the application
|
|
176
|
+
assembly, so specification code ships only in Debug. Dedicated spec projects
|
|
177
|
+
need no wrapper. Keep one outcome per `should_` fact.
|
|
172
178
|
|
|
173
179
|
## Step 6 — Cover the read model, not just one event
|
|
174
180
|
|
|
@@ -166,8 +166,11 @@ Mind the parameter order on `Append`: `eventStreamType` comes before
|
|
|
166
166
|
|
|
167
167
|
## Specifications
|
|
168
168
|
|
|
169
|
-
|
|
170
|
-
|
|
169
|
+
Start with `Specification` plus a direct call for pure reducer decisions:
|
|
170
|
+
pass the event and current state explicitly and assert the returned next state.
|
|
171
|
+
Add `ReadModelScenario<TReadModel>` only where event dispatch, filtering,
|
|
172
|
+
metadata or read-model wiring contribute proof; drive the event sequence and
|
|
173
|
+
assert on the resulting instance there. Cover, at minimum:
|
|
171
174
|
|
|
172
175
|
- the first event, where `current` is `null`;
|
|
173
176
|
- accumulation across several events on one event source;
|
|
@@ -129,13 +129,18 @@ degradations a reviewer can see without measuring:
|
|
|
129
129
|
|
|
130
130
|
## Step 6 — Specification coverage
|
|
131
131
|
|
|
132
|
+
- Pure command, reducer and reactor decisions have plain-call specifications
|
|
133
|
+
(`Specification` plus a direct call); scenarios are added where pipelines,
|
|
134
|
+
validation, constraints, projections or wiring contribute proof.
|
|
132
135
|
- Every State Change command has a happy-path specification.
|
|
133
136
|
- Every validation rule has a failure specification asserting **both**
|
|
134
137
|
`ShouldNotBeSuccessful()` and `ShouldHaveValidationErrors()`.
|
|
135
138
|
- Every business-rule rejection has a specification.
|
|
136
139
|
- Every constraint has an `EventScenario` specification asserting the constraint
|
|
137
|
-
**name
|
|
138
|
-
-
|
|
140
|
+
**name** by default.
|
|
141
|
+
- Presentation message strings are not asserted by default. Exact wording is
|
|
142
|
+
asserted only when it is the specified behavior, and the fact names that
|
|
143
|
+
requirement.
|
|
139
144
|
- Nothing trivial is specified — a property getter, a constructor pass-through,
|
|
140
145
|
a delegation.
|
|
141
146
|
- No specification sleeps to let the system catch up.
|
|
@@ -40,13 +40,13 @@ Historical baseline evidence: the original examples were checked against the Scr
|
|
|
40
40
|
and decisions 0003, 0006 and 0009; those original examples compiled with that
|
|
41
41
|
version's compiler. The specification actions and ESM v6 text were checked at
|
|
42
42
|
`v4.66.0` (see its row above), and the complete examples here and in
|
|
43
|
-
`references/complete-examples.md` compile with the standalone 4.
|
|
43
|
+
`references/complete-examples.md` compile with the standalone 4.68.0 compiler.
|
|
44
44
|
Reverify before claiming another version behaves the same.
|
|
45
45
|
|
|
46
46
|
⚠️ **Which tool admits them depends on its Screenplay version.** The ESM level
|
|
47
47
|
decides, not the slice type:
|
|
48
48
|
|
|
49
|
-
- **Standalone `screenplay` 4.
|
|
49
|
+
- **Standalone `screenplay` 4.61.0 or later (ESM v6 from 4.61.0, v7 from 4.68.0; probed on 4.66.0, examples recompiled on 4.68.0):** `Automation` and
|
|
50
50
|
`Translate` slices, reactions, declared triggers and captures bind, and the
|
|
51
51
|
reference runner executes them. Probed: the complete example below is
|
|
52
52
|
`executableReady` over `screenplay mcp`.
|
|
@@ -534,7 +534,7 @@ something is reported. `Startup` and `Shutdown` are registered the second way.
|
|
|
534
534
|
## Verify
|
|
535
535
|
|
|
536
536
|
- [ ] `screenplay <model> --warnaserror` reports zero errors and zero warnings
|
|
537
|
-
(standalone 4.
|
|
537
|
+
(standalone 4.68.0, or `cratis` 3.28.2 or later). Under `cratis` before 3.28.2 expect
|
|
538
538
|
`PLAY0268` at binding and a false `PLAY0285` on cascade specifications, and report them
|
|
539
539
|
as tool skew.
|
|
540
540
|
- [ ] The tool that bound the model is named (Screenplay 4.61 or later, so standalone or
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Complete examples for the excerpts in SKILL.md
|
|
2
2
|
|
|
3
|
-
Each document below is complete and compiles with the standalone `screenplay` 4.
|
|
3
|
+
Each document below is complete and compiles with the standalone `screenplay` 4.68.0
|
|
4
4
|
(`--warnaserror`). The SKILL.md excerpts show the reaction, capture or trigger part of
|
|
5
5
|
these documents. Documents marked ESM v6 need Screenplay 4.61 or later: the standalone tool and `cratis` 3.28.2
|
|
6
6
|
(bundled 4.66.0) validate and bind them (probed); `cratis` 3.27.1 (Screenplay 4.60.1) reported
|
|
@@ -31,6 +31,7 @@ source is the single flow model.
|
|
|
31
31
|
| `Cratis.Screenplay` | `4.31.0` | Original examples and executable boundaries |
|
|
32
32
|
| `Cratis.Screenplay` | main `fd18129` | Inline events, repairs and canonical `optional`; changed examples compiled |
|
|
33
33
|
| `Cratis.Screenplay` | `4.66.0` (`c89198b`) | Binding behaviour of `handler`, code attachments, `persona` and compliance attributes: `Semantics/SemanticModelBinder*.cs`, `Diagnostics/DiagnosticCodes.cs` |
|
|
34
|
+
| `Cratis.Screenplay` | `4.68.0` (`79801bf`) | Current pin: generated values and responses (ESM v7): decisions 0025 and 0026, `commands.md`, `Semantics/Versions.cs`, `SemanticModelBinder.CommandProductions.cs` |
|
|
34
35
|
|
|
35
36
|
The update follows `commands.md`, `events.md`, `types.md`, `diagnostics.md`,
|
|
36
37
|
`mcp/authoring-tools.md` and decision 0023 at that main commit (after v4.52.0).
|
|
@@ -319,11 +320,52 @@ An empty block or an unknown dimension is an error. Omitting `concurrency` does
|
|
|
319
320
|
not mean unchecked appends: Chronicle's default optimistic concurrency applies
|
|
320
321
|
to the routed scope. This does not make command `reads` protected.
|
|
321
322
|
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
323
|
+
## Generated values and responses (ESM v7)
|
|
324
|
+
|
|
325
|
+
A `generated` command property and a `returns` response bind and execute from the standalone
|
|
326
|
+
`screenplay` 4.68.0 (ESM v7, decision 0026; `commands.md` "Generated values and responses" at
|
|
327
|
+
`v4.68.0`). The cratis CLI 3.28.3 bundles 4.66.0 and reports `PLAY0268` for them, and Stage 4.24.2
|
|
328
|
+
refuses ESM v7 with `STAGE-ESM-016` (tracked in Stage#201), so a command that uses them is
|
|
329
|
+
**not rendered yet**: hand-write it (gap-fill) with the model as the contract. Complete compiled example:
|
|
330
|
+
`cratis-screenplay-toolchain` `references/generated-responses-example.md`.
|
|
331
|
+
|
|
332
|
+
```screenplay excerpt
|
|
333
|
+
command RegisterProject
|
|
334
|
+
projectId ProjectId generated identifier
|
|
335
|
+
receiptId ReceiptId generated
|
|
336
|
+
name ProjectName
|
|
337
|
+
returns
|
|
338
|
+
projectId = projectId
|
|
339
|
+
receiptId ReceiptId = receiptId
|
|
340
|
+
```
|
|
341
|
+
|
|
342
|
+
Rules (all read at `v4.68.0`):
|
|
343
|
+
|
|
344
|
+
- `generated` is command-only and needs a required, scalar concept backed by `Uuid` (not bare `Uuid`, not
|
|
345
|
+
optional, not a collection). Modifier order is `Type optional generated identifier`.
|
|
346
|
+
- A generated value is not a request input, form field, invocation argument or ordinary specification value.
|
|
347
|
+
The command runs authorization and validation first, then generates, then productions and the response, so
|
|
348
|
+
authorization policies (also inherited and the implicit `subject` of a generated identifier), property rules
|
|
349
|
+
and requirements cannot reference one (`PLAY0273`), and a concept with any validation rule cannot back a
|
|
350
|
+
generated property (`PLAY0268`). Reactions map request inputs only.
|
|
351
|
+
- `returns <property>` is a scalar response; bare `returns` opens an ordered record of `<name> [<Type>] = <property>`
|
|
352
|
+
fields over direct properties of this command. A type annotation must equal the source's type and
|
|
353
|
+
optionality. Collections, read aliases, arithmetic and whole read models are not supported. At most one
|
|
354
|
+
unconditional response, as a command sibling.
|
|
355
|
+
- A two-token `returns name` is a response when `name` is another property of this command; otherwise it is a
|
|
356
|
+
property named `returns`. `returns @name` forces a response, `@returns Type` a property.
|
|
357
|
+
- A response exists only on acceptance. Rejection, denial or an unsupported outcome has none; a later reaction or
|
|
358
|
+
scenario-query failure keeps the accepted facts and clears the response. A response-only command records no
|
|
359
|
+
facts. Field names are an external contract: renaming one changes the revision.
|
|
360
|
+
- A generated identifier is the implicit destination of inline productions. A plain `produces` without `for` keeps
|
|
361
|
+
its own allocation channel and a generation fixture never satisfies it.
|
|
362
|
+
- Generated values give no idempotency, retry or deduplication guarantee. Specifications supply fixtures and assert
|
|
363
|
+
the response: `cratis-screenplay-specifications`.
|
|
364
|
+
|
|
365
|
+
Other decision 0023 constructs are still **authorable, never executable** (binding reports `PLAY0268`, so
|
|
366
|
+
they stop a model at V1): operations, and named event sources and streams with command routes
|
|
367
|
+
(`eventsource`, `stream`, `streamId`). **No supported ESM version admits them**, and they have no version number
|
|
368
|
+
yet (decision 0025 numbers a version only at its release-ready admission). Syntax or MCP acceptance is not proof of
|
|
327
369
|
execution. A model using sources, streams or routes can be authored and validated, but
|
|
328
370
|
not bound, run or rendered; hand-write the code with the model as contract
|
|
329
371
|
(`cratis-screenplay-toolchain` `references/sources-and-streams.md`). `derive` and `provide` have no documented syntax at that tag; treat them as
|
|
@@ -466,9 +508,9 @@ Four contexts, and **what each omits is load-bearing** — read
|
|
|
466
508
|
|
|
467
509
|
## Verify
|
|
468
510
|
|
|
469
|
-
- [ ] Standalone `screenplay <model> --warnaserror` (4.
|
|
511
|
+
- [ ] Standalone `screenplay <model> --warnaserror` (4.68.0) reports zero errors and zero
|
|
470
512
|
warnings; or `cratis screenplay validate --warnings-as-errors` on the model folder
|
|
471
|
-
(3.28.2
|
|
513
|
+
(3.28.2 and 3.28.3 bundle Screenplay 4.66.0, ESM v6 at most; before 3.28.2 bundled 4.60.1, ESM v5
|
|
472
514
|
or lower). Name which tool produced the result.
|
|
473
515
|
- [ ] No unintended `PLAY0478` or `PLAY0479` information remains.
|
|
474
516
|
- [ ] At most one command property carries `identifier`, and no event property does.
|
|
@@ -75,7 +75,13 @@
|
|
|
75
75
|
},
|
|
76
76
|
{
|
|
77
77
|
"kind": "skill-contains",
|
|
78
|
-
"value": "
|
|
79
|
-
}
|
|
78
|
+
"value": "No supported ESM version admits them"
|
|
79
|
+
},
|
|
80
|
+
{ "kind": "skill-contains", "value": "Generated values and responses (ESM v7)" },
|
|
81
|
+
{ "kind": "skill-contains", "value": "A generated value is not a request input" },
|
|
82
|
+
{ "kind": "skill-contains", "value": "(`PLAY0273`), and a concept with any validation rule cannot back a\n generated property (`PLAY0268`)" },
|
|
83
|
+
{ "kind": "skill-contains", "value": "A response exists only on acceptance" },
|
|
84
|
+
{ "kind": "skill-contains", "value": "**not rendered yet**" },
|
|
85
|
+
{ "kind": "skill-contains", "value": "4.68.0" }
|
|
80
86
|
]
|
|
81
87
|
}
|
|
@@ -49,7 +49,7 @@ Statements here were checked at those tags:
|
|
|
49
49
|
| Any `@pii` or `@sensitive` on a concept fails binding (PLAY0268) | `v4.66.0:Source/DotNET/Screenplay/Semantics/SemanticModelBinder.Concepts.cs:21-24` |
|
|
50
50
|
|
|
51
51
|
Every complete `screenplay` fence in this skill compiles with the standalone compiler
|
|
52
|
-
4.
|
|
52
|
+
4.68.0 (`--warnaserror`) and with `cratis screenplay validate --warnings-as-errors` 3.28.2.
|
|
53
53
|
|
|
54
54
|
## Interview phase
|
|
55
55
|
|
|
@@ -106,7 +106,8 @@ source is the single flow model.
|
|
|
106
106
|
| `Cratis.Screenplay` | `4.31.0` | Compiler: parser, validator, diagnostics, folder merge, semantic binder |
|
|
107
107
|
| `Cratis.Screenplay.Tool` | `4.31.0` | The `screenplay` dotnet tool |
|
|
108
108
|
| `Cratis.Screenplay` | main `fd18129` | Inline contracts and event context; changed nine-step examples compiled |
|
|
109
|
-
| `Cratis.Screenplay.Tool` | `4.
|
|
109
|
+
| `Cratis.Screenplay.Tool` | `4.68.0` (`79801bf`) | Current pin: the nine-step examples compile and their specifications run in the reference runner; generated values and responses (ESM v7) were read at this tag |
|
|
110
|
+
| `Cratis.Screenplay.Tool` | `4.66.0` (`c89198b`) | Persona, operation and stream dispositions below were read at this tag, and the Step 7 clock example was probed through MCP on it |
|
|
110
111
|
|
|
111
112
|
The pin set for the whole Screenplay family, and which tool reports what, lives only in
|
|
112
113
|
`cratis-screenplay-toolchain` `references/versions.md`. The `fd18129` update follows
|
|
@@ -114,7 +115,7 @@ The pin set for the whole Screenplay family, and which tool reports what, lives
|
|
|
114
115
|
compilation does not establish reference execution. The original baseline was checked at
|
|
115
116
|
tag `v4.31.0` (commit `355dffb`): `Documentation/screenplay/{slices,commands,folders,printing,interactions,specifications}.md`,
|
|
116
117
|
`projections/keys.md`, and decisions 0001 to 0014. Changed [nine-step examples](references/nine-steps.md)
|
|
117
|
-
use the newer commit and the 4.66.0
|
|
118
|
+
use the newer commit and the 4.66.0 and 4.68.0 tools; do not attribute them to the old tag.
|
|
118
119
|
|
|
119
120
|
> **Method lineage.** The two-phase process, the nine steps, the four patterns and
|
|
120
121
|
> the GWT discipline follow **Event Modeling** (Adam Dymitruk; Martin Dilger,
|
|
@@ -342,8 +343,8 @@ is the fallback, and neither names the other's verdict. Versions and commands:
|
|
|
342
343
|
- [ ] Personal data is classified on the `concept`, with a reason.
|
|
343
344
|
- [ ] Specifications name the rejections, not only the happy path.
|
|
344
345
|
- [ ] If the model must reach a runtime, check it binds with the tool that will
|
|
345
|
-
consume it. The standalone 4.
|
|
346
|
-
(ESM v6); Stage 4.24.0 admits ESM v1 to v3 (4.24.2: v1 to v4, evolved events refused with `STAGE-ESM-026`) and renders only `StateChange` and
|
|
346
|
+
consume it. The standalone 4.68.0 binder admits Automation and Translate slices
|
|
347
|
+
(ESM v6) and generated values and responses (ESM v7); Stage 4.24.0 admits ESM v1 to v3 (4.24.2: v1 to v4, evolved events refused with `STAGE-ESM-026`) and renders only `StateChange` and
|
|
347
348
|
`StateView` slices, so automations and translations are gap-fill there.
|
|
348
349
|
|
|
349
350
|
## Parsed is not runnable
|
|
@@ -360,7 +361,7 @@ The independent verdicts V1 to V5 that report them are in
|
|
|
360
361
|
What binds depends on **which tool** you ask, so name the tool and its version:
|
|
361
362
|
|
|
362
363
|
- `Automation` and `Translate` slices, reactions, captures and triggers: the
|
|
363
|
-
standalone `screenplay` 4.66.0 and the `cratis` 3.28.2 bundle (
|
|
364
|
+
standalone `screenplay` 4.66.0 or later and the `cratis` 3.28.2 bundle (4.66.0) bind them (ESM v6).
|
|
364
365
|
The `cratis` 3.27.1 bundle (Screenplay 4.60.1) reported *Slice '<name>' of type '<type>'
|
|
365
366
|
is not admitted by ESM v1.* Stage 4.24.2 admits only ESM v1 to v4 and renders none of them.
|
|
366
367
|
- `reads` and `concurrency` on a command do not bind (`PLAY0271`), so no decision is
|
|
@@ -369,8 +370,11 @@ What binds depends on **which tool** you ask, so name the tool and its version:
|
|
|
369
370
|
- `persona` declarations are report-only and never block; `@pii` and `@sensitive`
|
|
370
371
|
concepts do block binding (`PLAY0268`). Keep them anyway: the classification is
|
|
371
372
|
part of the model. Report the block.
|
|
372
|
-
- Generated values and responses
|
|
373
|
-
|
|
373
|
+
- Generated values and `returns` responses bind and execute from standalone 4.68.0 (ESM v7) but fail binding
|
|
374
|
+
with `PLAY0268` on the 4.66.0 bundled in `cratis` 3.28.x, and Stage 4.24.2 does not render them
|
|
375
|
+
(`STAGE-ESM-016`, tracked in Stage#201): gap-fill. Operations and systems, and event sources and
|
|
376
|
+
streams, are authorable but non-executable (`PLAY0268`; not admitted by any supported ESM version);
|
|
377
|
+
a command `handler` never binds.
|
|
374
378
|
|
|
375
379
|
The ESM versions, the full disposition table and the Step 7 clock example's binding
|
|
376
380
|
result are in [references/parsed-not-runnable.md](references/parsed-not-runnable.md)
|
package/package/corpus/skills/cratis-screenplay-event-modeling/references/parsed-not-runnable.md
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
# Parsed is not runnable: ESM versions and dispositions
|
|
2
2
|
|
|
3
|
-
Facts read at Screenplay `v4.
|
|
3
|
+
Facts read at Screenplay `v4.68.0` (`79801bf`; the persona, operation and stream rows were first read at `v4.66.0`): `Source/DotNET/Screenplay/Semantics/Versions.cs`,
|
|
4
4
|
`SemanticModelBinder.cs` (`ReportTopLevelDispositions`), `SemanticModelBinder.CommandProductions.cs`,
|
|
5
|
-
`Documentation/screenplay/{commands,operations,event-sources}.md
|
|
5
|
+
`Documentation/screenplay/{commands,operations,event-sources}.md` and decisions 0025 and 0026. Tool versions and which tool
|
|
6
6
|
reports what: `cratis-screenplay-toolchain` `references/versions.md`.
|
|
7
7
|
|
|
8
8
|
## Which ESM version a model needs
|
|
@@ -19,10 +19,14 @@ reports what: `cratis-screenplay-toolchain` `references/versions.md`.
|
|
|
19
19
|
absence assertions (`then no readmodel`).
|
|
20
20
|
- **v6** for reactions, captures, application triggers and the clock (and so `Automation` and
|
|
21
21
|
`Translate` slices).
|
|
22
|
+
- **v7** for generated command properties, `returns` responses, generated fixtures and `then returns`
|
|
23
|
+
expectations, and only when one is used (standalone 4.68.0 or later; decision 0026).
|
|
24
|
+
- Operations, event sources and streams, decision reads and exact numbers are **not admitted by any
|
|
25
|
+
supported ESM version**; they have no number until a release-ready admission (decision 0025).
|
|
22
26
|
|
|
23
27
|
## Dispositions to keep apart
|
|
24
28
|
|
|
25
|
-
| Construct | Authoring | Binding at 4.
|
|
29
|
+
| Construct | Authoring | Binding at 4.68.0 |
|
|
26
30
|
| --- | --- | --- |
|
|
27
31
|
| `persona` | accepted | information `PLAY0270` ("authoring metadata and is not part of ESM v1 behavior"). Never blocks; an unknown policy on a persona is an error |
|
|
28
32
|
| `domain`, `authentication` | accepted | report-only information (`PLAY0270`) |
|
|
@@ -30,9 +34,10 @@ reports what: `cratis-screenplay-toolchain` `references/versions.md`.
|
|
|
30
34
|
| `reads`, `concurrency` on a command | accepted | `PLAY0271` |
|
|
31
35
|
| `reads` under a reaction trigger that only `invokes` | accepted | information `PLAY0270`: report-only intent, the model does not consult the view |
|
|
32
36
|
| `reads` under a reaction trigger that `produces` directly | accepted | `PLAY0268` |
|
|
33
|
-
| Generated properties, `returns` responses | authorable
|
|
34
|
-
|
|
|
35
|
-
| `
|
|
37
|
+
| Generated properties, `returns` responses | authorable | binds and runs as ESM v7 on standalone 4.68.0; `PLAY0268` on the 4.66.0 in `cratis` 3.28.x; not rendered (Stage 4.24.2: `STAGE-ESM-016`, tracked in Stage#201) |
|
|
38
|
+
| A policy, rule or requirement that references a generated value | accepted | `PLAY0273`; a generated property on a concept with validation rules: `PLAY0268` |
|
|
39
|
+
| `system`, `operation` | authorable, syntax-only | `PLAY0268`; not admitted by any supported ESM version |
|
|
40
|
+
| `eventsource`, `stream` | authorable, authoring-only | `PLAY0268`; not admitted by any supported ESM version (`cratis-screenplay-toolchain` `references/sources-and-streams.md`) |
|
|
36
41
|
| UI constructs | accepted | information `PLAY0269` |
|
|
37
42
|
|
|
38
43
|
A model that carries one of the blocked constructs is still a valid design model. Never remove
|
|
@@ -43,7 +43,7 @@ v19.32.0): `cratis-screenplay-toolchain` `references/versions.md`. Checked at th
|
|
|
43
43
|
| `then error`, `then denied`, `unique ... released by` | Screenplay `v4.66.0:Documentation/screenplay/{specifications,constraints}.md` |
|
|
44
44
|
| No semantic diff or equivalence check exists (Screenplay#387 open) | `gh issue view 387 --repo Cratis/Screenplay` |
|
|
45
45
|
|
|
46
|
-
Every complete `screenplay` fence here compiles with the standalone compiler 4.
|
|
46
|
+
Every complete `screenplay` fence here compiles with the standalone compiler 4.68.0 (`--warnaserror`) and
|
|
47
47
|
`cratis screenplay validate --warnings-as-errors` 3.28.2.
|
|
48
48
|
|
|
49
49
|
## Interview phase
|
|
@@ -19,10 +19,11 @@ the executable profile and a complete compiled model.
|
|
|
19
19
|
|
|
20
20
|
| Package | Version | Purpose |
|
|
21
21
|
| --- | --- | --- |
|
|
22
|
-
| `Cratis.Screenplay` / `Cratis.Screenplay.Tool` | `4.
|
|
22
|
+
| `Cratis.Screenplay` / `Cratis.Screenplay.Tool` | `4.68.0` (`79801bf`) | Current compiler; admits ESM v7 (generated values and responses, decision 0026); examples compiled with `--warnaserror` and their specifications run |
|
|
23
|
+
| `Cratis.Screenplay` / `Cratis.Screenplay.Tool` | `4.66.0` (`c89198b`) | MCP (29/30 tools), roots fix; the MCP behaviour below was probed on it |
|
|
23
24
|
| `Cratis.Screenplay` | main `fd18129` | Inline events, repairs, rename/extraction and `optional` |
|
|
24
25
|
| `Cratis.Screenplay` | `4.31.0` | Original compiler, ESM and workspace evidence |
|
|
25
|
-
| `cratis` CLI | `3.28.3` | Bundles Screenplay 4.66.0 and Stage 4.24.2 (3.28.2 bundled 4.24.1; before 3.28.2: 4.60.1, ESM v5 at most, roots bug) |
|
|
26
|
+
| `cratis` CLI | `3.28.3` | Bundles Screenplay 4.66.0 (no ESM v7) and Stage 4.24.2 (3.28.2 bundled 4.24.1; before 3.28.2: 4.60.1, ESM v5 at most, roots bug) |
|
|
26
27
|
|
|
27
28
|
Facts about the MCP connection, source-map, `whenAppendedEvent`, identity
|
|
28
29
|
persistence and the syntax-only constructs were read at tag `v4.66.0`
|
|
@@ -245,9 +246,10 @@ that the code compiles or behaves. Path resolution and `PLAY0430`-`PLAY0434`:
|
|
|
245
246
|
defines them and maps them onto V1 to V5. `screenplay --warnaserror` checks
|
|
246
247
|
syntax plus the consistency rules (`PLAY0282`-`PLAY0294`) but never binds, so a
|
|
247
248
|
clean run is not a bound or executable result.
|
|
248
|
-
- Personas are report-only and
|
|
249
|
-
|
|
250
|
-
|
|
249
|
+
- Personas are report-only, operations and event sources/streams are authorable but
|
|
250
|
+
not executable (not admitted by any supported ESM version), and `generated`/`returns`
|
|
251
|
+
bind only from standalone 4.68.0 (ESM v7; not on the cratis 3.28.x bundle, not rendered by
|
|
252
|
+
Stage 4.24.2): none is a reason to drop or stub the construct.
|
|
251
253
|
- Distinguish authoring acceptance from `executableReady`; unsupported backend
|
|
252
254
|
capabilities are not a reason to drop source constructs or invent stubs.
|
|
253
255
|
- If execution is intended, validate with the owning downstream runtime as well.
|
package/package/corpus/skills/cratis-screenplay-model-authoring/references/language-reference.md
CHANGED
|
@@ -61,7 +61,7 @@ members or translating names from memory.
|
|
|
61
61
|
|
|
62
62
|
This registration model uses an inline event and context identity rather than
|
|
63
63
|
copying the identifier into payload. It was compiled at main `fd18129` with zero
|
|
64
|
-
source diagnostics and recompiled with standalone 4.
|
|
64
|
+
source diagnostics and recompiled with standalone 4.68.0 `--warnaserror`; neither
|
|
65
65
|
check runs its specifications. Inline lowering
|
|
66
66
|
and `optional` spelling do not themselves select a newer ESM version.
|
|
67
67
|
|
|
@@ -152,6 +152,11 @@ The ESM version is selected by what a model uses, never by the author:
|
|
|
152
152
|
binding with `PLAY0268`. Name the tool
|
|
153
153
|
with every bound result; `cratis-screenplay-toolchain` (`references/versions.md`)
|
|
154
154
|
holds the per-tool table.
|
|
155
|
+
- **v7** (Screenplay 4.68.0 and later; `Versions.cs`) admits generated command properties, `returns`
|
|
156
|
+
responses, generated fixtures and `then returns` expectations, and is selected only by a model that
|
|
157
|
+
uses one (decision 0026). The Cratis CLI 3.28.3 bundles 4.66.0 and reports `PLAY0268`; Stage 4.24.2
|
|
158
|
+
refuses v7 with `STAGE-ESM-016` (tracked in Stage#201). Details:
|
|
159
|
+
`cratis-screenplay-command-surface`.
|
|
155
160
|
|
|
156
161
|
Inline events lower to slice-owned standalone contracts and preserve equivalent
|
|
157
162
|
canonical bytes. Event `description`, `documentation` and rename-only `id` are
|
|
@@ -164,9 +169,9 @@ the model runs, including specifications that never touch it.
|
|
|
164
169
|
|
|
165
170
|
What binds today, what the reference execution plan refuses, what is opaque, what is
|
|
166
171
|
authorable but not executable, and what blocks binding. The snapshot comes from the
|
|
167
|
-
v4.31.0 table, re-read against v4.66.0 documentation and probed through the MCP of
|
|
168
|
-
the standalone 4.66.0 tool for the rows marked "probed"; Cratis CLI 3.28.2
|
|
169
|
-
|
|
172
|
+
v4.31.0 table, re-read against v4.66.0 and v4.68.0 documentation and probed through the MCP of
|
|
173
|
+
the standalone 4.66.0 tool for the rows marked "probed"; Cratis CLI 3.28.2 and 3.28.3 bundle
|
|
174
|
+
Screenplay 4.66.0 (before 3.28.2, Screenplay 4.60.1, differ where stated).
|
|
170
175
|
|
|
171
176
|
| Disposition | Constructs |
|
|
172
177
|
| --- | --- |
|
|
@@ -176,7 +181,8 @@ same Screenplay 4.66.0 (before 3.28.2, Screenplay 4.60.1, differ where stated).
|
|
|
176
181
|
| Reaction with trigger `reads` | Direct-producing (or code-bodied) reaction with `reads`: `PLAY0268` ("ESM v6 cannot protect that decision dependency", decision 0006), non-executable. Invokes-only reaction with `reads`: information only; the invoked command must declare and protect its own decision reads. Keep the `reads`; never remove them to obtain binding |
|
|
177
182
|
| Binds as opaque code (v3); reference runner reports unsupported | Bodied reducers, bodied named rules, fenced `validate` blocks, code or file policies. A pure reducer body is the only attachment Stage 4.24.0 admits |
|
|
178
183
|
| Information only, never blocks (probed) | `persona` (report-only: `PLAY0270`, the policies it lists must exist), `authentication`, `domain`, `seed`, descriptions and `file` provenance. A persona does not block binding and does not change behavior, so state persona scope in a description or a policy the model uses |
|
|
179
|
-
|
|
|
184
|
+
| Binds as ESM v7 on standalone Screenplay 4.68.0 (source and release notes; `PLAY0268` on the 4.66.0 in Cratis CLI 3.28.x, probed) | `generated` properties and `returns` responses, generated fixtures and `then returns`: bound and executed by the reference runner; a policy, rule or requirement that references a generated value is `PLAY0273`, and a generated property on a concept with validation rules is `PLAY0268`. Stage 4.24.2 does not render them (`STAGE-ESM-016`, tracked in Stage#201): gap-fill |
|
|
185
|
+
| Authorable, not executable (`PLAY0268`, probed) | `system` and `operation`, `eventsource` and `stream` (not admitted by any supported ESM version; see `cratis-screenplay-toolchain` `references/sources-and-streams.md`). The MCP reads and edits them (`declaration-details`, `find-fixtures`, `read-workspace` views `event-sources`/`event-streams`/`command-routes`) with `executionAvailable: false`. Keep them in the model as intent; do not strip them to make the model bind, and do not call the model executable |
|
|
180
186
|
| Blocks binding (`PLAY0268`) | `@pii`/`@sensitive` concepts (probed: "compliance attributes require portable data-subject semantics"), command `handler` (never binds; a command cannot declare both `produces` and `handler`, `PLAY0035`), bare `rule <Name>`, `require` or conditions over read-model paths, dates and `today` in comparisons, `$context.tenant`/claims/roles/causation in `produces`, `$env` conditions, `file` constraints, unquoted `import` of an external contract, a read model whose keyed queries in its own slice do not share one `by` property (none, or two different properties; several queries over the same property bind), any query other than `=> <ReadModel> optional` with one caller-supplied `by` argument (so also observable, filtered, scoped and performer-backed queries), `$causedBy` and templates in projections |
|
|
181
187
|
| Blocks binding (`PLAY0271`, legacy meaning) | Command `reads` and `concurrency` |
|
|
182
188
|
| Deferred (`PLAY0269`, information) | Screens, layouts, templates, forms, contributions, UI profiles, themes, behaviors and `on`/`uses` |
|
|
@@ -206,13 +212,14 @@ full historical shapes, not deployed-schema immutability or a working migrator.
|
|
|
206
212
|
Code attachment/source-map support likewise does not prove code round-trip
|
|
207
213
|
execution equivalence.
|
|
208
214
|
|
|
209
|
-
Decision 0023's
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
215
|
+
Decision 0023's operations and named event sources/streams are **authorable** at
|
|
216
|
+
v4.68.0 (syntax only, see the table above and `operations.md`, `event-sources.md` in
|
|
217
|
+
the Screenplay documentation): write them, but binding reports `PLAY0268` and nothing
|
|
218
|
+
executes them, because no supported ESM version admits them (a number is assigned only
|
|
219
|
+
at a release-ready admission, decision 0025). Do not drop them for the sake of a green bind.
|
|
220
|
+
Generated values and `returns` are no longer in this group: they bind from 4.68.0 (ESM v7).
|
|
221
|
+
Protected reads and `derive`/`provide` (not admitted by any supported ESM version) have no documented
|
|
222
|
+
syntax at v4.68.0: do not teach or invent one. Affected-instance declarations, per-event data
|
|
216
223
|
subjects, external event origin and query paging/sorting/change-set delivery also
|
|
217
224
|
remain unavailable here.
|
|
218
225
|
|
|
@@ -100,8 +100,8 @@ the server sends `roots/list` and serves `tools/list` after the reply).
|
|
|
100
100
|
Proposed, and its `sketch` argument previews a what-if of whole documents
|
|
101
101
|
without writing. An
|
|
102
102
|
unintended executable regression is discarded (`discard-proposal`) and
|
|
103
|
-
re-proposed. Intent the user has accepted that does not run yet (`generated`/
|
|
104
|
-
`returns
|
|
103
|
+
re-proposed. Intent the user has accepted that does not run yet (`system`/`operation`, `eventsource`/`stream`, and `generated`/
|
|
104
|
+
`returns` on a tool older than 4.68.0; `PLAY0268` by design)
|
|
105
105
|
may be applied from a reviewed `Authoring` proposal: disclose the new
|
|
106
106
|
diagnostics, report V3 as not binding-ready, and never drop or stub the
|
|
107
107
|
construct. The server's own guidance is to apply such a proposal only when
|
|
@@ -146,7 +146,7 @@ the server sends `roots/list` and serves `tools/list` after the reply).
|
|
|
146
146
|
| Repair | `PLAY0166`, `0478`, `0469`, `0471`, `0479` (and recipe-only `0397`) | `propose-repair` with `formatting` |
|
|
147
147
|
| Inline event extraction | `produces event ...` to a declared event | `propose-extract-inline-event` |
|
|
148
148
|
| Parser-invalid document | no editable handles | `propose-ast` `replace-document` with a whole typed document, or fix the text |
|
|
149
|
-
| Syntax-only constructs | `
|
|
149
|
+
| Syntax-only constructs | `system`/`operation`, `eventsource`/`stream` (and `generated`/`returns` before 4.68.0) | typed `propose-ast` edits; no automatic rename or routing repair exists |
|
|
150
150
|
|
|
151
151
|
## Identity state (`.screenplay/identities.json`)
|
|
152
152
|
|
|
@@ -92,10 +92,10 @@ not host these production-repair transactions. Use MCP for production repairs.
|
|
|
92
92
|
|
|
93
93
|
## Syntax-only constructs through the MCP
|
|
94
94
|
|
|
95
|
-
`
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
`
|
|
95
|
+
`system`/`operation` and `eventsource`/`stream` are authorable but not executable (`PLAY0268`; not admitted
|
|
96
|
+
by any supported ESM version: `cratis-screenplay-toolchain` `references/sources-and-streams.md`).
|
|
97
|
+
`generated` properties and `returns` responses are admitted as ESM v7 by Screenplay 4.68.0 and bind
|
|
98
|
+
there (`PLAY0268` on the 4.66.0 in the cratis 3.28.x bundle). The server reads and edits them: `declaration-details` exposes `isGenerated`
|
|
99
99
|
and a command `response` view, `route` and `streams` views; `read-workspace` offers
|
|
100
100
|
the views `event-sources`, `event-streams`, `event-source-details`,
|
|
101
101
|
`event-stream-details`, `command-routes` and `event-source-diagnostics` (detail
|
|
@@ -104,6 +104,14 @@ views need the exact `authoringKey` from the inventory). Each discloses
|
|
|
104
104
|
through typed `propose-ast`; there is no automatic source or stream rename and no
|
|
105
105
|
routing repair. Inline-event extraction refuses response-bearing commands.
|
|
106
106
|
|
|
107
|
+
For `generated`/`returns` on 4.68.0 (`mcp/reference.md` at `v4.68.0`): `propose-ast` accepts
|
|
108
|
+
`validation: "Executable"` for the admitted subset (use `"Authoring"` for full-language syntax); a
|
|
109
|
+
response-only command reports `syntaxOnly: false` and a null `executionReadiness`, while a command that
|
|
110
|
+
also uses operations, streams, handlers or exact numeric mode keeps a readiness string naming each
|
|
111
|
+
unadmitted feature. Null readiness does not prove the whole application binds or that every generation
|
|
112
|
+
fixture exists. Canonical `executable-model` pages include `generated`, `response`, `generatedValues`
|
|
113
|
+
and `thenReturns` when present. Form response scopes and a renderer response type remain downstream work.
|
|
114
|
+
|
|
107
115
|
## Source map and appended-event fixtures
|
|
108
116
|
|
|
109
117
|
`read-workspace` `view: "source-map"` pages the compiler's semantic entries (ordered
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
| --- | --- | --- |
|
|
8
8
|
| `mcp-loop.md` (ownership, edit-request shape, edit routes, failure handling) | The project's own earlier event-modeling toolkit draft (MCP loop reference) | Restructured and re-verified against Screenplay v4.66.0 source and documentation; the roots-bug workaround and the identity rule (`id` pins are not enough when `identities.json` exists) were corrected or tightened |
|
|
9
9
|
| Connection facts (29/30 tools, `notifications/initialized`, 16 connection-local proposals, fixed root) | Screenplay `v4.66.0` `Source/DotNET/Screenplay.Mcp/McpToolCatalog.cs`, `McpConnection.cs`, `McpWorkspaces.cs`, `Documentation/screenplay/mcp/reference.md`, `install.md` | Read at the tag and probed against the standalone 4.66.0 tool (4.63.1 for the roots behavior) |
|
|
10
|
-
| Disposition table (personas, generated values, operations, streams, automation) | Screenplay `v4.66.0` `SemanticModelBinder.cs`, `commands.md`, `operations.md`, `event-sources.md`, `Versions.cs` | Probed through the MCP `executable-diagnostics` view of the 4.66.0 tool |
|
|
10
|
+
| Disposition table (personas, generated values, operations, streams, automation) | Screenplay `v4.66.0` and `v4.68.0` (decisions 0025 and 0026) `SemanticModelBinder.cs`, `commands.md`, `operations.md`, `event-sources.md`, `Versions.cs` | Probed through the MCP `executable-diagnostics` view of the 4.66.0 tool |
|
|
11
11
|
|
|
12
12
|
No TrogonStack or Nebulit text is reproduced here: neither covers the Screenplay
|
|
13
13
|
MCP surface.
|
|
@@ -328,7 +328,7 @@ projection diagnostic codes, and worked examples.
|
|
|
328
328
|
|
|
329
329
|
## Verify
|
|
330
330
|
|
|
331
|
-
- [ ] Standalone `screenplay <model> --warnaserror` (4.
|
|
331
|
+
- [ ] Standalone `screenplay <model> --warnaserror` (4.68.0) reports zero errors and zero
|
|
332
332
|
warnings; or `cratis screenplay validate --warnings-as-errors` on the model folder
|
|
333
333
|
(3.28.2 bundles the same Screenplay 4.66.0; before 3.28.2 bundled 4.60.1, ESM v5
|
|
334
334
|
or lower). Name which tool produced the result.
|
|
@@ -258,7 +258,7 @@ binding failures are errors.
|
|
|
258
258
|
|
|
259
259
|
## Verify
|
|
260
260
|
|
|
261
|
-
- [ ] Standalone `screenplay <model> --warnaserror` (4.
|
|
261
|
+
- [ ] Standalone `screenplay <model> --warnaserror` (4.68.0) reports zero errors and zero
|
|
262
262
|
warnings; or `cratis screenplay validate --warnings-as-errors` on the model folder
|
|
263
263
|
(3.28.2 bundles the same Screenplay 4.66.0; before 3.28.2 bundled 4.60.1, ESM v5
|
|
264
264
|
or lower). Name which tool produced the result.
|
|
@@ -27,7 +27,7 @@ Version pins live once in `cratis-screenplay-toolchain` `references/versions.md`
|
|
|
27
27
|
| --- | --- | --- |
|
|
28
28
|
| cratis CLI | `v3.28.3` (`8b43fef`) | `cratis render` options, exit codes, publication receipt, bundled Screenplay 4.66.0 and Stage 4.24.2 (3.28.2 bundled Stage 4.24.1; before 3.28.2: 4.60.1 and 4.24.0) |
|
|
29
29
|
| Stage | `v4.24.2` (`32dcac4`) | admission (`STAGE-ESM-*`), ownership manifest, `Customizations/` seams, Debug-only specifications |
|
|
30
|
-
| Screenplay | `v4.
|
|
30
|
+
| Screenplay | `v4.68.0` (`79801bf`) | standalone compiler for V1 to V3 (admits ESM v7); binding codes `PLAY0268` and the code-attachment rules, read at `v4.66.0` |
|
|
31
31
|
| Rendered apps | Arc `22.25.0`, Chronicle `19.8.1` | `[ProtectedDecision]` (Arc 22.39.0 and later) is not available in code written into one |
|
|
32
32
|
|
|
33
33
|
Facts were read at those tags and `cratis render` was run at 3.28.2 and 3.28.3 for the worked example
|
|
@@ -64,8 +64,14 @@ assume an answer to 4, and record it as `blocked` for the user.
|
|
|
64
64
|
|
|
65
65
|
Evolved events (a model that selects ESM v4) are gap-fill too: Stage 4.24.2 admits the v4 model but refuses any evolved event and its dependent scope with `STAGE-ESM-026`, because it cannot render Chronicle event-type migrations yet (Stage#204). Events at their initial revision still render. Hand-write the evolved events and their migrations per `cratis-chronicle-event-type-migration`, with the model as the contract. The cratis CLI bundles Stage 4.24.2 since 3.28.3 and reports an evolved event with `STAGE-ESM-026` (probed); 3.28.2 bundled Stage 4.24.1 (3.28.1 and earlier: 4.24.0) and refused a v4 model with `STAGE-ESM-016`.
|
|
66
66
|
|
|
67
|
+
Generated command values and `returns` responses (ESM v7) bind and run in the reference runner on standalone
|
|
68
|
+
Screenplay 4.68.0 but are not rendered: the cratis CLI 3.28.3 bundles 4.66.0 and reports `PLAY0268`, and Stage
|
|
69
|
+
4.24.2 refuses ESM v7 with `STAGE-ESM-016` (tracked in Stage#201). A command that uses them is case A or C: keep
|
|
70
|
+
the model, hand-write the command and its response with the model (and its fixtures and `then returns`
|
|
71
|
+
specifications) as the contract, and report V3 from the standalone tool and V5 as `not run: no render`.
|
|
72
|
+
|
|
67
73
|
Models with event sources, streams or command routes are case A or C today: they cannot
|
|
68
|
-
bind or render (`PLAY0268
|
|
74
|
+
bind or render (`PLAY0268`: not admitted by any supported ESM version, so also `STAGE-ESM-016`), so hand-write the code with the model as the
|
|
69
75
|
contract (`cratis-screenplay-toolchain` `references/sources-and-streams.md`).
|
|
70
76
|
|
|
71
77
|
Two rules hold in every case: a customization never makes a rejected model renderable, and
|
package/package/corpus/skills/cratis-screenplay-render-and-gap-fill/references/renderability-gate.md
CHANGED
|
@@ -27,7 +27,7 @@ ESM). Only the probe answers renderability. `PLAY0270` entries are information,
|
|
|
27
27
|
| Class | Meaning | Typical examples (each verified in `admission.md`) | Action |
|
|
28
28
|
| --- | --- | --- | --- |
|
|
29
29
|
| **Model fix (in mode)** | the model is in, or the user chose, renderable mode and breaks its own subset in a way that has a renderable equivalent with the same meaning | a `produces` whose `for` is not the command identifier; one `StateChange` slice with two commands (`STAGE-ESM-004`); two projections for one read model (`-007`); a policy without `authenticated` (`-015`) | edit request to the modeler session with address, change and rationale |
|
|
30
|
-
| **Capability gap** | the intended meaning needs a construct Stage does not render yet | list, observable and filtered queries (`PLAY0268` "must declare one caller-supplied 'by'", `-010`); Automation and Translate slices (`PLAY0268` "not admitted by ESM v1", `-001`, Stage#79); reactions, clocks, captures and triggers (v6, `-016`); evolved events (`STAGE-ESM-026`); conditional `produces when` (`-006`); `reads` (`PLAY0271`); code validation (`-005`); opaque policies (`-015`); compliance attributes (`PLAY0268` "require portable data-subject semantics"); a command `handler` (`PLAY0268`) | keep the model; ledger entry; options a to c in `SKILL.md`; link the Stage issue |
|
|
30
|
+
| **Capability gap** | the intended meaning needs a construct Stage does not render yet | list, observable and filtered queries (`PLAY0268` "must declare one caller-supplied 'by'", `-010`); Automation and Translate slices (`PLAY0268` "not admitted by ESM v1", `-001`, Stage#79); reactions, clocks, captures and triggers (v6, `-016`); generated values and responses (v7: `-016`, and `PLAY0268` on the bundled 4.66.0; tracked in Stage#201); evolved events (`STAGE-ESM-026`); conditional `produces when` (`-006`); `reads` (`PLAY0271`); code validation (`-005`); opaque policies (`-015`); compliance attributes (`PLAY0268` "require portable data-subject semantics"); a command `handler` (`PLAY0268`) | keep the model; ledger entry; options a to c in `SKILL.md`; link the Stage issue |
|
|
31
31
|
| **Tool skew** | the bundled compiler disagrees with documented semantics | the false `PLAY0285` on reaction cascades from a cratis before 3.28.2 bundle (cli#242); codes the standalone compiler does not raise | record in the session state and the ledger; never "fix" a correct model |
|
|
32
32
|
| **Environment** | not the model | restore failures, missing SDK, a destination that is not writable | fix the environment or report blocked |
|
|
33
33
|
|
|
@@ -42,6 +42,8 @@
|
|
|
42
42
|
{
|
|
43
43
|
"kind": "skill-contains",
|
|
44
44
|
"value": "STAGE-ESM-026"
|
|
45
|
-
}
|
|
45
|
+
},
|
|
46
|
+
{ "kind": "skill-contains", "value": "Generated command values and `returns` responses (ESM v7) bind and run" },
|
|
47
|
+
{ "kind": "skill-contains", "value": "tracked in Stage#201" }
|
|
46
48
|
]
|
|
47
49
|
}
|
|
@@ -24,8 +24,9 @@ language cannot express today are recorded, not faked. Grammar and outcome compa
|
|
|
24
24
|
`cratis-specification-by-example`); a full audit (`cratis-screenplay-model-review`).
|
|
25
25
|
|
|
26
26
|
## Verified product sources
|
|
27
|
-
Screenplay v4.66.0 (`c89198b`)
|
|
28
|
-
|
|
27
|
+
Screenplay v4.66.0 (`c89198b`) and v4.68.0 (`79801bf`, ESM v7 fixtures and `then returns`):
|
|
28
|
+
`Documentation/screenplay/specifications.md` and the standalone compiler; `cratis` 3.28.2 and
|
|
29
|
+
3.28.3 bundle Screenplay 4.66.0 (before 3.28.2 it bundled 4.60.1). The full pin table and the probes are in
|
|
29
30
|
`cratis-screenplay-toolchain` `references/versions.md`. Specification obligations reported by
|
|
30
31
|
the MCP (Screenplay#390) and multi-step storylines (Screenplay#394) are **not available**: the
|
|
31
32
|
coverage matrix is built by hand and lifecycle families emulate storylines.
|
package/package/corpus/skills/cratis-screenplay-scenario-coverage/references/scenario-catalogue.md
CHANGED
|
@@ -28,6 +28,14 @@ name them as unfinished.
|
|
|
28
28
|
order, with full payloads and `for`. See `ReservingAGuestBerth`.
|
|
29
29
|
- Traps: asserting a subset of events (lists are exact); leaving out `given caller` on a gated
|
|
30
30
|
command; omitting `for` so the event lands on an allocated source.
|
|
31
|
+
- Generated values and responses (ESM v7, standalone Screenplay 4.68.0; syntax in `cratis-screenplay-specifications`):
|
|
32
|
+
when the command has a `generated` property, the happy path supplies its fixtures (`for` on the generated
|
|
33
|
+
identifier, `generated <name> = <value>`); only when the command declares a response does it assert
|
|
34
|
+
`then returns` (a return expectation without a response is rejected at compile time). Add the failing
|
|
35
|
+
counterparts as separate specs: a rule rejection or denial (which happens before generation and has no
|
|
36
|
+
response). A reached generated value without a fixture is `Unsupported(IdentityAllocation)`: the runner
|
|
37
|
+
reports it as not passed, so it is a known capability limit to record, not a specification to write.
|
|
38
|
+
A generated identifier is no retry identity (section 5).
|
|
31
39
|
|
|
32
40
|
## 2. Rule rejection (one per rule)
|
|
33
41
|
- Ask: "Which values would you refuse, and what would you tell the person?"
|