@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
|
@@ -24,8 +24,8 @@ 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.
|
|
28
|
-
compiler; `cratis` 3.
|
|
27
|
+
Screenplay v4.66.0 (`c89198b`): `Documentation/screenplay/specifications.md` and the standalone
|
|
28
|
+
compiler; `cratis` 3.28.2 bundles the same Screenplay 4.66.0 (before 3.28.2 it bundled 4.60.1). The full pin table and the probes are in
|
|
29
29
|
`cratis-screenplay-toolchain` `references/versions.md`. Specification obligations reported by
|
|
30
30
|
the MCP (Screenplay#390) and multi-step storylines (Screenplay#394) are **not available**: the
|
|
31
31
|
coverage matrix is built by hand and lifecycle families emulate storylines.
|
|
@@ -159,13 +159,14 @@ target requirements.
|
|
|
159
159
|
- Cross-context views: are the real source contracts resolved, or is missing evidence a gap?
|
|
160
160
|
|
|
161
161
|
## Version skew: reaction cascades and false PLAY0285
|
|
162
|
-
Under ESM v6 a command spec's `then` lists the events reactions cascade from it. The
|
|
163
|
-
|
|
164
|
-
standalone `screenplay`
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
162
|
+
Under ESM v6 a command spec's `then` lists the events reactions cascade from it. The compiler
|
|
163
|
+
bundled in `cratis` before 3.28.2 (Screenplay 4.60.1) reported a **false PLAY0285** for such
|
|
164
|
+
a spec (cli#242); the standalone `screenplay` 4.66.0 and `cratis` 3.28.2 accept it (probed).
|
|
165
|
+
Neither checks that a cascade event is *missing*.
|
|
166
|
+
- Screenplay 4.61 or later (standalone, or `cratis` 3.28.2 or later): write the v6-correct spec
|
|
167
|
+
(own productions plus cascade); validate with `screenplay <folder> --warnaserror --no-color`
|
|
168
|
+
or `cratis screenplay validate <folder> --warnings-as-errors`.
|
|
169
|
+
- Only a `cratis` before 3.28.2 bundle and no standalone tool: keep the command spec to its own productions, specify the reaction in its
|
|
169
170
|
Automation slice (`when append <Trigger>` -> `then <Produced>`), record the pending cascade
|
|
170
171
|
expectation in `STATE.md` as known-incomplete. Never delete the reaction.
|
|
171
172
|
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
**Design mode, not binding-ready by design.** This document states the stored-state rules of the
|
|
4
4
|
invoicing example as the skill requires (`reads <View>` + `require ... message`, marked NOT
|
|
5
5
|
enforced in the slice `description`, target named). It compiles (V1, warnings as errors) but
|
|
6
|
-
does not bind at Screenplay 4.
|
|
6
|
+
does not bind at Screenplay 4.66.0, and the only blockers are `reads` (PLAY0271) and `require` over
|
|
7
7
|
a view (PLAY0268), so no specification here runs (V3 blocked). `PaymentReceived` has its producer
|
|
8
8
|
here (the capture and `ReceivedTranslator`), so nothing else blocks: with every `reads` and
|
|
9
9
|
`require` line removed the document binds. The rules cover an unknown invoice, voiding a paid
|
|
@@ -14,7 +14,6 @@ replaced by prose. The runnable counterpart, which holds no stored-state rule, i
|
|
|
14
14
|
`invoicing-dues-example.md`; `scenario-examples.md` copies `ReversingAReceivedPayment` from here.
|
|
15
15
|
|
|
16
16
|
```screenplay
|
|
17
|
-
// Needs the standalone screenplay compiler (ESM v6)
|
|
18
17
|
// Scenario coverage design-mode example: stored-state rules of invoicing club dues (complete document).
|
|
19
18
|
// Design mode: `reads` is PLAY0271 and `require` over a view is PLAY0268 at binding (the only
|
|
20
19
|
// blockers), so this model compiles but is not executable; the specifications below do not run. The runnable counterpart
|
|
@@ -10,11 +10,10 @@ destination-type information; a reaction can also consume events from a capture
|
|
|
10
10
|
**Scope.** This document is the runnable demonstration only. It deliberately holds no rule that
|
|
11
11
|
depends on stored state (the invoice must exist, only an open invoice may be voided, a reversal
|
|
12
12
|
needs a received payment, `reads` + `require`): those rules cannot bind or run at Screenplay
|
|
13
|
-
4.
|
|
13
|
+
4.66.0 (PLAY0271, PLAY0268) and are stated in the design-mode document `invoicing-dues-design.md`,
|
|
14
14
|
never in prose here. It shows the category shapes; for a coverage example see `berth-reservations.md`.
|
|
15
15
|
|
|
16
16
|
```screenplay
|
|
17
|
-
// Needs the standalone screenplay compiler (ESM v6)
|
|
18
17
|
// Scenario coverage worked example: invoicing club dues (complete document).
|
|
19
18
|
// Backs the excerpts in scenario-examples.md and view-and-story-specs.md: issue an invoice,
|
|
20
19
|
// request payment, an external gateway result captured and translated, an open-invoices todo list family and an accumulating credit balance.
|
|
@@ -411,4 +410,4 @@ module Invoicing
|
|
|
411
410
|
`invoicing-dues-design.md`, because the command needs a stored-state rule.
|
|
412
411
|
- The query answers "absent" with no `result` block; the whole-list query and the `OpenInvoices`
|
|
413
412
|
list view in the excerpts are design-mode expectations (list queries compile but do not bind at
|
|
414
|
-
4.
|
|
413
|
+
4.66.0, PLAY0268, `cratis-screenplay-toolchain`, so they are retained as design-mode expectations): see `view-and-story-specs.md`.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# Provenance
|
|
2
2
|
|
|
3
3
|
Lineage of `cratis-screenplay-scenario-coverage`. The method was first drafted for the Cratis
|
|
4
|
-
corpus from Screenplay specification semantics (verified at tag v4.
|
|
4
|
+
corpus from Screenplay specification semantics (verified at tag v4.66.0) and refined against two
|
|
5
5
|
external event-modeling skill sets.
|
|
6
6
|
|
|
7
7
|
## Adapted closely (MIT)
|
|
@@ -40,7 +40,7 @@ Chronicle verification obligations, version skew for reaction cascades, spec for
|
|
|
40
40
|
the berth reservations example.
|
|
41
41
|
|
|
42
42
|
## Product facts checked
|
|
43
|
-
- Screenplay v4.
|
|
43
|
+
- Screenplay v4.66.0 (`c89198b`): `Documentation/screenplay/specifications.md` (actions, outcomes,
|
|
44
44
|
`then denied`, `then no readmodel`, `then query`, `then events in any order`, PLAY0352,
|
|
45
45
|
PLAY0389) and the probes recorded in the version table of `cratis-screenplay-toolchain`
|
|
46
46
|
`references/versions.md`.
|
package/package/corpus/skills/cratis-screenplay-scenario-coverage/references/scenario-catalogue.md
CHANGED
|
@@ -126,7 +126,7 @@ name them as unfinished.
|
|
|
126
126
|
facts. There is no `then no events` syntax. A command spec with no `then` events but with a
|
|
127
127
|
view or query assertion is still executable as a zero-fact check: the runner compares the
|
|
128
128
|
command's facts with the (empty) expected list by exact count, so any fact produced fails it
|
|
129
|
-
(Screenplay v4.
|
|
129
|
+
(Screenplay v4.66.0). Write it that way, name it for the zero-fact outcome, and keep the view
|
|
130
130
|
assertion for the visible state. Record the obligation as unasserted only where the runner is
|
|
131
131
|
not available.
|
|
132
132
|
|
|
@@ -137,7 +137,7 @@ name them as unfinished.
|
|
|
137
137
|
capture, a reaction) the view or translation must cope with any order.
|
|
138
138
|
- Shape: view family whose givens are in a different order; translation specs where the
|
|
139
139
|
external record arrives before our own fact; `given clock`/`when clock` for deadlines
|
|
140
|
-
(binds on
|
|
140
|
+
(binds on Screenplay 4.61 or later, so not on a cratis before 3.28.2 bundle: `cratis-screenplay-toolchain` `references/versions.md`; see
|
|
141
141
|
`cratis-screenplay-automations-and-translations`).
|
|
142
142
|
- n/a: a single event source, with no external or cross-source input.
|
|
143
143
|
|
package/package/corpus/skills/cratis-screenplay-scenario-coverage/references/scenario-examples.md
CHANGED
|
@@ -138,7 +138,7 @@ A reversal needs a paid history, the reversal action and the exact consequence.
|
|
|
138
138
|
lists the declared consequence (`RefundRequested`); the reaction is also specified on its own.
|
|
139
139
|
`RefundRequested` is a recorded request, not proof that money moved, and there is no
|
|
140
140
|
`then <Command>` form. What the target must do to deliver the refund is a requirement, not a spec.
|
|
141
|
-
From `invoicing-dues-design.md` (design mode; the specs do not run at 4.
|
|
141
|
+
From `invoicing-dues-design.md` (design mode; the specs do not run at 4.66.0):
|
|
142
142
|
```screenplay excerpt
|
|
143
143
|
specification ReversingAReceivedPayment
|
|
144
144
|
given caller
|
package/package/corpus/skills/cratis-screenplay-scenario-coverage/references/spec-forms-by-mode.md
CHANGED
|
@@ -15,8 +15,8 @@ design model: keep it and record the gap.
|
|
|
15
15
|
| `then query` on list, filtered or observable queries | yes | no (query does not bind) | no |
|
|
16
16
|
| `then no readmodel <RM> for "<key>"` | yes | yes | no |
|
|
17
17
|
| `when query` -> `then result` / `then no result` | yes | yes | same as `then query`: only the query-only cases below |
|
|
18
|
-
| `given clock` / `when clock`, `when trigger`, `given`/`when capture` | yes |
|
|
19
|
-
| Command spec listing reaction cascade events | yes (v6 semantics) | false PLAY0285 on
|
|
18
|
+
| `given clock` / `when clock`, `when trigger`, `given`/`when capture` | yes | Screenplay 4.61 or later yes (standalone, cratis 3.28.2 or later); a cratis before 3.28.2 bundle no (see versions.md) | no |
|
|
19
|
+
| Command spec listing reaction cascade events | yes (v6 semantics) | false PLAY0285 on a cratis before 3.28.2 bundle only; see SKILL.md "Version skew" | no (no reactions) |
|
|
20
20
|
| `then events in any order` | yes | yes | yes |
|
|
21
21
|
| Composite (JSON) values in specs | yes | yes | no |
|
|
22
22
|
| Rules over dates or `today`, nested paths | spec them in design | rule does not bind: `recorded` | `recorded` |
|
|
@@ -25,8 +25,8 @@ design model: keep it and record the gap.
|
|
|
25
25
|
|
|
26
26
|
## Design mode
|
|
27
27
|
Write the full intended behaviour, including scenarios the executable subset cannot run
|
|
28
|
-
(list views; clock, trigger and capture scenarios when only
|
|
29
|
-
available). Mark each such spec in the coverage matrix as
|
|
28
|
+
(list views; clock, trigger and capture scenarios when only a cratis before 3.28.2
|
|
29
|
+
bundle is available). Mark each such spec in the coverage matrix as
|
|
30
30
|
`gap: <reason>` for the narrower modes so the verification and render phases know what will not execute.
|
|
31
31
|
|
|
32
32
|
## Executable mode
|
package/package/corpus/skills/cratis-screenplay-scenario-coverage/references/view-and-story-specs.md
CHANGED
|
@@ -117,7 +117,7 @@ execution/rendering limit.
|
|
|
117
117
|
being current (a booking screen that must not offer a taken berth), that is not protection:
|
|
118
118
|
the command needs its own constraint, or the rule is `recorded` as target-enforced.
|
|
119
119
|
- **Rebuild**: a view rebuilt from all facts must give the same rows. Mappings from
|
|
120
|
-
`$eventContext.occurred` or other occurrence data cannot be executed at Screenplay v4.
|
|
120
|
+
`$eventContext.occurred` or other occurrence data cannot be executed at Screenplay v4.66.0:
|
|
121
121
|
the plan blocks every event-context path except the event source id
|
|
122
122
|
(`UnsupportedEventContext`). `given clock` does not change that; it supplies `$context.occurred`
|
|
123
123
|
to command productions only. Record such projection cases as capability gaps (keep the
|
|
@@ -201,10 +201,10 @@ Slice design is done when these hold; otherwise report what is open.
|
|
|
201
201
|
|
|
202
202
|
| Source | Pin | Used for |
|
|
203
203
|
| --- | --- | --- |
|
|
204
|
-
| Screenplay | `v4.
|
|
204
|
+
| Screenplay | `v4.66.0` (`c89198b`) | `commands.md`, `constraints.md`, `specifications.md`, `diagnostics.md` (`PLAY0191`, `PLAY0268`, `PLAY0271`, `PLAY0350`, `PLAY0381`, `PLAY0397`), `projections/keys.md` |
|
|
205
205
|
|
|
206
|
-
Examples compile with `screenplay` 4.
|
|
207
|
-
--warnings-as-errors` (cratis 3.
|
|
206
|
+
Examples compile with `screenplay` 4.66.0 `--warnaserror` and `cratis screenplay validate
|
|
207
|
+
--warnings-as-errors` (cratis 3.28.2 or later); other pins: `cratis-screenplay-toolchain`
|
|
208
208
|
`references/versions.md`. Compiling proves syntax, not that the model is executable or renders.
|
|
209
209
|
|
|
210
210
|
## Verify
|
package/package/corpus/skills/cratis-screenplay-slice-design/references/read-model-design.md
CHANGED
|
@@ -150,7 +150,7 @@ has children, not a single value.
|
|
|
150
150
|
|
|
151
151
|
- Event properties fill read-model properties of the same name automatically (AutoMap), but the
|
|
152
152
|
match differs by binding: a scoped projection matches names case-insensitively and only for
|
|
153
|
-
the same type (Screenplay v4.
|
|
153
|
+
the same type (Screenplay v4.66.0 `ProjectionValues.cs` `AutoMapped`); a flat-bound projection
|
|
154
154
|
matches exact names only and does not check the type, so a same-named property of another
|
|
155
155
|
type makes the model invalid (`Projections.cs` `BindFlatTransition`). Do not rely on AutoMap
|
|
156
156
|
where it matters: map explicitly when names or types differ, and use `no automap` where an
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
One complete model for `cratis-screenplay-slice-design`. It is in **design mode**: V1 clean
|
|
4
4
|
(compiles with warnings as errors); V3 is blocked on purpose by the `ListLockers` list query
|
|
5
|
-
(`PLAY0268` at binding); `given clock` also
|
|
5
|
+
(`PLAY0268` at binding); `given clock` also failed binding on a cratis before 3.28.2 bundle (3.28.2 binds it)
|
|
6
6
|
(`cratis-screenplay-toolchain` `references/versions.md`). Personas and screens are informational.
|
|
7
7
|
The stored-state rules in `AssignLocker` (`reads` + `require`) are intent, not enforced today,
|
|
8
8
|
and they also fail binding on their own: `PLAY0271` on each `reads`, and `PLAY0268` because the
|
|
@@ -30,17 +30,17 @@ source is the single flow model.
|
|
|
30
30
|
| --- | --- | --- |
|
|
31
31
|
| `Cratis.Screenplay` | `4.31.0` | Original parser, binder and reference execution evidence |
|
|
32
32
|
| `Cratis.Screenplay` | main `fd18129` | Inline facts, `optional` and clock spelling; changed examples compiled |
|
|
33
|
-
| `Cratis.Screenplay` | `4.
|
|
33
|
+
| `Cratis.Screenplay` | `4.66.0` (`c89198b`) | ESM v6 specification actions and reaction cascades, `then no readmodel`, `$strings` rejections, `invokes` caller rule; probed with the standalone tool and its MCP server |
|
|
34
34
|
|
|
35
35
|
The update follows `commands.md`, `events.md`, `types.md` and
|
|
36
36
|
`specifications.md` at that main commit (after v4.52.0). This pass compiles the
|
|
37
37
|
changed examples; it does not rerun the reference runner.
|
|
38
38
|
|
|
39
|
-
**Which tool says what.** The standalone `screenplay` tool 4.
|
|
40
|
-
The `cratis` CLI 3.
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
39
|
+
**Which tool says what.** The standalone `screenplay` tool 4.66.0 admits ESM v1-v6.
|
|
40
|
+
The `cratis` CLI 3.28.2 bundles the same Screenplay 4.66.0. Before `cratis` 3.28.2 the
|
|
41
|
+
bundle was Screenplay 4.60.1, which admitted ESM v1-v5 only and reported a false
|
|
42
|
+
`PLAY0285` on reaction cascades (see "Version skew"). Facts below marked **ESM v6**
|
|
43
|
+
hold for Screenplay 4.61.0 and later: the standalone tool and `cratis` 3.28.2 or later. The full table is in `cratis-screenplay-toolchain`
|
|
44
44
|
(`references/versions.md`). Neither tool runs specifications: `screenplay` and
|
|
45
45
|
`cratis screenplay validate` parse and check consistency, the MCP server also binds,
|
|
46
46
|
and spec outcomes come only from the reference runner as a library, Stage's
|
|
@@ -77,7 +77,7 @@ decision 0022. They do not exist before v4.48.0.
|
|
|
77
77
|
| `then <EventType>` | an expected new event |
|
|
78
78
|
| `then events in any order` | compare the new events without regard to order |
|
|
79
79
|
| `then readmodel <ReadModelType> [exactly]` | read-model state afterwards — must state the identifier |
|
|
80
|
-
| `then no readmodel <ReadModelType> for <key>` | exactly that keyed instance is absent (v4.
|
|
80
|
+
| `then no readmodel <ReadModelType> for <key>` | exactly that keyed instance is absent (v4.66.0); the key is concrete and typed |
|
|
81
81
|
| `then query <Query> [exactly]` | query results for explicit `arguments`; one `result` per row; none means empty |
|
|
82
82
|
| `then error "<message>"` | a validation or constraint rejection, for that reason; a localized rule is pinned by its quoted key, `then error "$strings.<key>"` |
|
|
83
83
|
| `then error` | a validation or constraint rejection, reason unnamed |
|
|
@@ -257,21 +257,21 @@ assert a value mapped from `$context.occurred`. In a command's `produces`, that
|
|
|
257
257
|
mapping executes when the scenario has `given clock`. It is not the same as
|
|
258
258
|
`$eventContext.occurred` in a projection, which the execution plan refuses (below).
|
|
259
259
|
|
|
260
|
-
**Which tools bind these actions** (probed:
|
|
261
|
-
|
|
260
|
+
**Which tools bind these actions** (probed: `screenplay mcp` 4.66.0 and `cratis screenplay mcp` 3.28.2
|
|
261
|
+
report the complete example below `executableReady` with no executable error, in
|
|
262
262
|
`open-workspace` readiness and `read-workspace` view `executable-diagnostics`;
|
|
263
|
-
`cratis` 3.
|
|
263
|
+
`cratis` before 3.28.2 bundled 4.60.1 and did not):
|
|
264
264
|
|
|
265
|
-
- **
|
|
265
|
+
- **Screenplay 4.66.0 (ESM v6, from 4.61.0), standalone and `cratis` 3.28.2:** the clock, trigger
|
|
266
266
|
and capture actions, and the `Automation` and `Translate` slices, reactions and
|
|
267
267
|
captures they drive, bind. The reference runner executes them as library code, with
|
|
268
268
|
the semantics in "Reactions and cascades" below.
|
|
269
|
-
- **`cratis` 3.
|
|
270
|
-
**`when query`
|
|
271
|
-
checked against the application, but binding
|
|
272
|
-
proposed ESM v6 (decision 0022), and an `Automation` or `Translate` slice
|
|
273
|
-
*is not admitted by ESM v1*. Only binding
|
|
274
|
-
does not bind, so it
|
|
269
|
+
- **`cratis` before 3.28.2 (Screenplay 4.60.1, ESM v1-v5):**
|
|
270
|
+
**`when query` executed. The clock, trigger and capture actions did not.** They parsed, printed and were
|
|
271
|
+
checked against the application, but binding reported `PLAY0268` naming the
|
|
272
|
+
proposed ESM v6 (decision 0022), and an `Automation` or `Translate` slice reported
|
|
273
|
+
*is not admitted by ESM v1*. Only binding showed this: `cratis screenplay validate`
|
|
274
|
+
does not bind, so it stayed green.
|
|
275
275
|
|
|
276
276
|
Write the actions either way - they state what sets the slice off. Report each as
|
|
277
277
|
bound and not executed, or as parsed only, naming the tool that said so.
|
|
@@ -284,7 +284,6 @@ and what those append or invoke runs more, until nothing is left. `then` events
|
|
|
284
284
|
compare every new fact, the action's and the reactions'.
|
|
285
285
|
|
|
286
286
|
```screenplay
|
|
287
|
-
// Needs the standalone screenplay compiler (ESM v6)
|
|
288
287
|
concept InvoiceId : Uuid
|
|
289
288
|
module Collections
|
|
290
289
|
feature Invoices
|
|
@@ -333,21 +332,22 @@ module Collections
|
|
|
333
332
|
- A reached reaction with a code body (`file` or inline) returns unsupported, as
|
|
334
333
|
does a reaction that never settles. The reference stops at 1,000 new facts per
|
|
335
334
|
scenario and 10,000 due occurrences per clock advance.
|
|
336
|
-
- A model that uses these forms selects ESM v6 (`schemaVersion: 6`). Stage 4.24.
|
|
337
|
-
admits ESM v1-
|
|
335
|
+
- A model that uses these forms selects ESM v6 (`schemaVersion: 6`). Stage 4.24.2
|
|
336
|
+
admits ESM v1-v4 and renders no `Automation` or `Translate` slice, so the whole
|
|
338
337
|
automation is gap-fill against this contract: `cratis-screenplay-render-and-gap-fill`.
|
|
339
338
|
|
|
340
|
-
### Version skew: cascades and the false `PLAY0285`
|
|
339
|
+
### Version skew: cascades and the false `PLAY0285` (cratis before 3.28.2)
|
|
341
340
|
|
|
342
341
|
`PLAY0285` (a specification's expected event contradicts every producer of its
|
|
343
342
|
`when` command) runs in the syntax pass, with no binding. Reachability through
|
|
344
343
|
reactions and `invokes` was added after Screenplay 4.60.1. So the example above
|
|
345
|
-
passes `screenplay` 4.
|
|
346
|
-
validate` 3.
|
|
347
|
-
|
|
344
|
+
passes `screenplay` 4.66.0 (and is executable-ready over its MCP server) and also passes
|
|
345
|
+
`cratis screenplay validate` 3.28.2 (probed); it failed `cratis screenplay validate` 3.27.1 with
|
|
346
|
+
`PLAY0285` "Specification outcome 'ReminderScheduled' cannot be produced by 'SendInvoice'",
|
|
347
|
+
exit 5 (Cratis/cli#242). If an older bundle still reports it, it is a tool skew, not a
|
|
348
348
|
modeling error: do not delete the `then` line or move the event to make `cratis`
|
|
349
|
-
green. Validate with the standalone tool
|
|
350
|
-
see `cratis-screenplay-toolchain`.
|
|
349
|
+
green. Validate with the standalone tool or a current `cratis`, record which tool gave which
|
|
350
|
+
verdict, and see `cratis-screenplay-toolchain`.
|
|
351
351
|
|
|
352
352
|
## Rejections and denials say different things
|
|
353
353
|
|
|
@@ -474,8 +474,9 @@ target has one normalized behavior to match.
|
|
|
474
474
|
the ones that never touch the refused construct.
|
|
475
475
|
- Reactions: before ESM v6 they never run, not even after `when append`. From ESM
|
|
476
476
|
v6 (standalone tool from 4.61.0) they run after every action, as in "Reactions and
|
|
477
|
-
cascades". Under `cratis` 3.
|
|
478
|
-
and `when capture`
|
|
477
|
+
cascades". Under `cratis` before 3.28.2 (Screenplay 4.60.1) `when clock`, `when trigger`
|
|
478
|
+
and `when capture` failed binding with `PLAY0268`, and so did reactions and captures; they
|
|
479
|
+
bind on 4.66.0 and `cratis` 3.28.2.
|
|
479
480
|
- A rejected individual command or append leaves the world unchanged; an accepted
|
|
480
481
|
one commits once, then the read models and queries are compared. There is no
|
|
481
482
|
scenario-wide transaction in v6: when a later effect of a cascade or capture
|
|
@@ -517,8 +518,8 @@ For view specifications:
|
|
|
517
518
|
## Verify
|
|
518
519
|
|
|
519
520
|
- [ ] `screenplay <model> --warnaserror` reports zero errors and zero warnings
|
|
520
|
-
(standalone 4.
|
|
521
|
-
reaction cascades and record that it is skew).
|
|
521
|
+
(standalone 4.66.0 or `cratis` 3.28.2; under `cratis` before 3.28.2 expect the false
|
|
522
|
+
`PLAY0285` on reaction cascades and record that it is skew).
|
|
522
523
|
- [ ] Executable diagnostics are clean too: `PLAY0350`, `PLAY0352`, `PLAY0388`,
|
|
523
524
|
`PLAY0389` and `PLAY0273` are only reported at binding.
|
|
524
525
|
- [ ] Every slice has at least one boundary specification.
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
},
|
|
54
54
|
{
|
|
55
55
|
"kind": "skill-contains",
|
|
56
|
-
"value": "**`when query`
|
|
56
|
+
"value": "**`when query` executed. The clock, trigger and capture actions did not.**"
|
|
57
57
|
},
|
|
58
58
|
{
|
|
59
59
|
"kind": "skill-contains",
|
|
@@ -69,7 +69,7 @@
|
|
|
69
69
|
},
|
|
70
70
|
{
|
|
71
71
|
"kind": "skill-contains",
|
|
72
|
-
"value": "Version skew: cascades and the false `PLAY0285`"
|
|
72
|
+
"value": "Version skew: cascades and the false `PLAY0285` (cratis before 3.28.2)"
|
|
73
73
|
},
|
|
74
74
|
{
|
|
75
75
|
"kind": "skill-contains",
|
|
@@ -16,10 +16,10 @@ lives only in code, or only in a description, is a finding, not a solution.
|
|
|
16
16
|
|
|
17
17
|
| Product | Pin | Used for |
|
|
18
18
|
| --- | --- | --- |
|
|
19
|
-
| Screenplay | v4.
|
|
19
|
+
| Screenplay | v4.66.0 (`c89198b`) | `identifier`, `for`, constraints, generations, `id` pins, diagnostics PLAY0019/0135/0268/0271/0273/0391-0393/0446-0449/0469/0471 |
|
|
20
20
|
| Chronicle | v19.32.0 (`f17a2ff`) | CHR0012, CHR0034; open defects #3744, #4123, #4131 |
|
|
21
21
|
| Arc | v22.50.5 | `[ProtectedDecision]` and `DecisionRead<T>` (since v22.39.0) |
|
|
22
|
-
| Stage | v4.24.
|
|
22
|
+
| Stage | v4.24.2 | rendered apps pin Arc 22.25.0 and Chronicle client 19.8.1 (unchanged from 4.24.0); admits ESM v4 but refuses evolved events with `STAGE-ESM-026` (migrations not rendered, Stage#204) |
|
|
23
23
|
|
|
24
24
|
Full pin table: `references/versions.md` in `cratis-screenplay-toolchain`. Re-check the three
|
|
25
25
|
Chronicle issues before relying on a constraint in a later release.
|
|
@@ -110,7 +110,7 @@ option, mark it `ASSUMED` in the slice or module `description` and in the sessio
|
|
|
110
110
|
decisions and capability gaps in `STATE.md`. Then the gate below.
|
|
111
111
|
|
|
112
112
|
## Rules
|
|
113
|
-
**Compiler contracts** (diagnostics at Screenplay v4.
|
|
113
|
+
**Compiler contracts** (diagnostics at Screenplay v4.66.0; capability per tool in `versions.md`)
|
|
114
114
|
- `identifier` on an event property is PLAY0019; the source id is never payload by declaration.
|
|
115
115
|
Copying it as a payload value is PLAY0469 (information, warning for inline events).
|
|
116
116
|
- In the executable model a production's `for` must resolve to the command's scalar identifier:
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Consistency and concurrency
|
|
2
2
|
|
|
3
|
-
Pins: Screenplay v4.
|
|
3
|
+
Pins: Screenplay v4.66.0, Chronicle v19.32.0, Arc v22.50.5, Stage v4.24.2 (table in `versions.md` of
|
|
4
4
|
`cratis-screenplay-toolchain`).
|
|
5
5
|
|
|
6
6
|
## 1. Invariant table (fill before writing constraints)
|
package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/evolution.md
CHANGED
|
@@ -60,6 +60,9 @@ Procedure and ownership: the identity procedure in `cratis-screenplay-modeling-l
|
|
|
60
60
|
owning session, or a brief that asks for the rename, applies it; a subagent without MCP returns
|
|
61
61
|
the catalog-changing request to the owner; never leave a requested change silently unapplied).
|
|
62
62
|
- Several generations select ESM v4; that binds executably on both tools (compiled
|
|
63
|
-
with `evolution-example.md`).
|
|
63
|
+
with `evolution-example.md`). Stage 4.24.2 admits v4 but refuses any evolved event and its
|
|
64
|
+
dependent scope with `STAGE-ESM-026` (it cannot render event-type migrations yet, Stage#204,
|
|
65
|
+
which depends on Screenplay#71), and its runtime still refuses evolved events: the evolved
|
|
66
|
+
events are gap-fill, with migrations hand-written per `cratis-chronicle-event-type-migration`.
|
|
64
67
|
|
|
65
68
|
Complete compiled example: `evolution-example.md` (generation, rename pin, meaning change).
|
package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/provenance.md
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
| Event-by-event stream identity check, decision per identity, "design first, snapshot second" | TrogonStack/agentskills@7b249d3:plugins/trogonstack-eventmodeling/skills/eventmodeling-optimizing-stream-design/SKILL.md and its patterns reference | MIT | ADAPT (arbitrary length thresholds and mandatory archival splits dropped) | `stream-patterns.md` |
|
|
8
8
|
| Growth-estimate interview and the order "redesign, then read model, then measure, then snapshot" | same skill | MIT | ADAPT | SKILL.md "Interview phase", `stream-patterns.md` "Growth and snapshots" |
|
|
9
9
|
| Invariant table, state-dependent rule recording, race/retry/duplicate scenarios, evolution classes, Chronicle boundaries | Cratis corpus drafts for #493 | MIT | ORIGINAL | `consistency-and-concurrency.md`, `evolution.md`, `chronicle-boundaries.md` |
|
|
10
|
-
| Worked examples (courses and enrolment, memberships, marina berths) | written for this skill, compiled with Screenplay 4.
|
|
10
|
+
| Worked examples (courses and enrolment, memberships, marina berths) | written for this skill, compiled with Screenplay 4.66.0 | MIT | ORIGINAL | `streams-example.md`, `evolution-example.md`, `boundaries.md` |
|
|
11
11
|
|
|
12
12
|
Event Modeling practice is by Adam Dymitruk and Martin Dilger, cited as practice; no text taken.
|
|
13
13
|
|
|
@@ -12,6 +12,7 @@
|
|
|
12
12
|
{ "kind": "skill-contains", "value": "CHR0034" },
|
|
13
13
|
{ "kind": "skill-contains", "value": "No calculated events" },
|
|
14
14
|
{ "kind": "skill-contains", "value": "decision tree and red flags" },
|
|
15
|
-
{ "kind": "skill-contains", "value": "not bound, run or rendered" }
|
|
15
|
+
{ "kind": "skill-contains", "value": "not bound, run or rendered" },
|
|
16
|
+
{ "kind": "skill-contains", "value": "STAGE-ESM-026" }
|
|
16
17
|
]
|
|
17
18
|
}
|
|
@@ -24,13 +24,13 @@ The only version table is `references/versions.md`; other skills point to it.
|
|
|
24
24
|
|
|
25
25
|
| Package | Version | Purpose |
|
|
26
26
|
| --- | --- | --- |
|
|
27
|
-
| `Cratis.Screenplay.Tool` | `4.
|
|
28
|
-
| cratis CLI | `3.
|
|
29
|
-
| Stage | `4.24.
|
|
27
|
+
| `Cratis.Screenplay.Tool` | `4.66.0` (`c89198b`) | standalone compiler, binder and MCP server |
|
|
28
|
+
| cratis CLI | `3.28.3` (`8b43fef`) | bundles Screenplay 4.66.0 and Stage 4.24.2 (3.28.2: Stage 4.24.1; 3.28.1 and earlier bundled 4.60.1 and 4.24.0); `render`, `generate`, `prologue`, and the same compiler for `screenplay validate` and `screenplay mcp` |
|
|
29
|
+
| Stage | `4.24.2` (`32dcac4`) | renders ESM v1 to v4 (C# backend plus a React/Vite scaffold on Arc 22.25.0); an evolved event is refused with `STAGE-ESM-026`; the cratis CLI bundles it since 3.28.3 |
|
|
30
30
|
| Arc / Chronicle | `22.50.5` / `19.32.0` | code-level facts cited here |
|
|
31
31
|
|
|
32
32
|
Facts were read with `git show <tag>:<path>` and probed on the installed tools. Behaviour
|
|
33
|
-
was probed on 4.63.1
|
|
33
|
+
was probed on 4.63.1 and re-checked on 4.66.0. 4.65.0 adds command named-rule `implementation` blocks (handlers and operation phases already had the wrapper; it is rejected on concept rules, built-in property rules and whole-command `require`/`validate` bodies); 4.66.0 is editor tooling only. Neither changes execution.
|
|
34
34
|
Re-verify before claiming another version behaves the same.
|
|
35
35
|
|
|
36
36
|
## Ground rules
|
|
@@ -41,10 +41,10 @@ Re-verify before claiming another version behaves the same.
|
|
|
41
41
|
2. **Check the folder, warnings as errors.** `screenplay <folder> --warnaserror` or
|
|
42
42
|
`cratis screenplay validate <folder> --warnings-as-errors`. Warnings hide defects:
|
|
43
43
|
PLAY0029 (a misspelt keyword or a `type` inside a slice) drops a construct silently.
|
|
44
|
-
3. **Pick the compiler deliberately and name it.** Standalone `screenplay` for V1 to V3
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
version with every verdict.
|
|
44
|
+
3. **Pick the compiler deliberately and name it.** Standalone `screenplay` for V1 to V3 (file
|
|
45
|
+
mode follows imports); `cratis` 3.28.2 or later bundles the same 4.66.0 compiler and is the
|
|
46
|
+
route for `render`. A cratis before 3.28.2 bundle (4.60.1) rejects ESM v6 and reports a
|
|
47
|
+
false PLAY0285 on cascades (cli#242). Report tool and version with every verdict.
|
|
48
48
|
4. **Know the mode** (design, executable, renderable) and write from its subset.
|
|
49
49
|
5. **Capability is not correctness.** The tool you ran decides what is accepted today; the
|
|
50
50
|
domain and the documented semantics decide what is correct. On conflict keep the correct
|
|
@@ -61,13 +61,13 @@ Re-verify before claiming another version behaves the same.
|
|
|
61
61
|
|
|
62
62
|
## The two compilers
|
|
63
63
|
|
|
64
|
-
| | Standalone `screenplay` 4.
|
|
64
|
+
| | Standalone `screenplay` 4.66.0 | `cratis screenplay ...` 3.28.2 (bundles Screenplay 4.66.0) |
|
|
65
65
|
| --- | --- | --- |
|
|
66
66
|
| Check a folder | `screenplay <folder> --warnaserror --no-color` (exit 0 pass, 1 fail; an empty folder also exits 0, so read "N file(s) compiled") | `cratis screenplay validate <folder> --warnings-as-errors -o json-compact` (0 pass, 5 fail, 1 missing path or no files) |
|
|
67
|
-
| ESM admitted | v1 to v6 | v1 to
|
|
68
|
-
| Automation, Translate, reactions, captures, clocks, triggers | bind |
|
|
69
|
-
| Cascade specs | compile | false PLAY0285
|
|
70
|
-
| File argument | follows imports | ignores imports, false PLAY0165 warnings (cli#244): validate the folder |
|
|
67
|
+
| ESM admitted | v1 to v6 | v1 to v6 (the same compiler; before 3.28.2 bundled 4.60.1: v1 to v5) |
|
|
68
|
+
| Automation, Translate, reactions, captures, clocks, triggers | bind | bind (before 3.28.2: PLAY0268 "Slice '<name>' of type '<type>' is not admitted by ESM v1.") |
|
|
69
|
+
| Cascade specs | compile | compile (before 3.28.2: false PLAY0285, cli#242) |
|
|
70
|
+
| File argument | follows imports | ignores imports, false PLAY0165 warnings (cli#244, probed on 3.28.2): validate the folder |
|
|
71
71
|
| MCP | `screenplay mcp <folder>`; 29 tools | `cratis screenplay mcp [root]`; 29 tools; registered by `cratis ai install` |
|
|
72
72
|
|
|
73
73
|
Exact messages, exit codes and the MCP roots bug: `references/versions.md`.
|
|
@@ -85,10 +85,10 @@ Independent results, not a ladder. Commands and report format: `references/verdi
|
|
|
85
85
|
| V5 | rendered and target-verified | `cratis render`, then Debug build and tests; report admission, publication, build and tests separately |
|
|
86
86
|
|
|
87
87
|
V2 and V3 need MCP: send `initialize`, then `notifications/initialized`, and start the
|
|
88
|
-
server with a fixed root
|
|
89
|
-
4.60.1). A subagent without MCP reports "V2 not run: no MCP in this agent".
|
|
88
|
+
server with a fixed root when the tool is older than 4.63.2 (the roots bug hit 4.63.1 and the
|
|
89
|
+
4.60.1 bundled by cratis before 3.28.2; 4.66.0 and cratis 3.28.2 are fine). A subagent without MCP reports "V2 not run: no MCP in this agent".
|
|
90
90
|
|
|
91
|
-
One line per verdict, tool first, for example `V1 pass (screenplay 4.
|
|
91
|
+
One line per verdict, tool first, for example `V1 pass (screenplay 4.66.0, 3 files)` and
|
|
92
92
|
`V3 blocked: PLAY0268 x3 (list query, @pii)`. Name the source identity (commit plus the digest from
|
|
93
93
|
the source-identity helper (`cratis-screenplay-modeling-lifecycle` `references/verdicts-and-modes.md` "Source identity")) the verdict ran on; keep it apart from the MCP
|
|
94
94
|
`modelRevision`, which is semantic and, without `.screenplay/identities.json`,
|
|
@@ -100,8 +100,9 @@ changes with the root folder name.
|
|
|
100
100
|
`references/cheat-sheet.md`.
|
|
101
101
|
- **Executable** (binds, V3): `references/executable-subset.md`. Keyed optional queries
|
|
102
102
|
only; no handler (PLAY0268, with or without `implementation`/`hint`); `reads` and
|
|
103
|
-
`concurrency` do not bind (PLAY0271); no `@pii`; v6 constructs
|
|
104
|
-
|
|
103
|
+
`concurrency` do not bind (PLAY0271); no `@pii`; v6 constructs bind on Screenplay 4.61 or
|
|
104
|
+
later (standalone, and cratis 3.28.2 or later).
|
|
105
|
+
- **Renderable** (V5): `references/renderable-subset.md`. Stage 4.24.2 renders ESM v1 to v4 (evolved events refused, `STAGE-ESM-026`)
|
|
105
106
|
`StateChange`/`StateView` slices; Automation and Translate are gap-fill (Stage#79).
|
|
106
107
|
- **Event sources, streams and command routes**: authorable and validatable, but never
|
|
107
108
|
bound (`PLAY0268`: allocated, not implemented ESM version), run or rendered
|
package/package/corpus/skills/cratis-screenplay-toolchain/references/automation-translate-example.md
CHANGED
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
# Automation and Translate example (ESM v6)
|
|
2
2
|
|
|
3
|
-
Executable Automation and Translate slices.
|
|
3
|
+
Executable Automation and Translate slices. Binds on Screenplay 4.66.0, standalone and bundled in cratis 3.28.2 (probed: `executableReady`; `cratis render` refuses it whole with `STAGE-ESM-016`). The compiler bundled in cratis before 3.28.2 rejected it (PLAY0268 at binding, false PLAY0285 at compile on the cascade spec in `SubscribingAMember`); see [versions.md](versions.md). Shows a reaction `produces` cascade, `invokes`, `where`, clock `at`, an application trigger, a capture with translate and a transition `when`, and v6 specifications.
|
|
4
4
|
|
|
5
5
|
The `Renew` command is ungated so that the reaction can invoke it: this is a syntax demonstration, not a safe production design. Reactions invoke with no caller, so a real model needs a trusted path (see [cratis-screenplay-automations-and-translations](../../cratis-screenplay-automations-and-translations/SKILL.md)).
|
|
6
6
|
|
|
7
7
|
```screenplay
|
|
8
|
-
// Needs the standalone screenplay compiler (ESM v6)
|
|
9
8
|
// Automation and Translate: ESM v6 forms.
|
|
10
9
|
concept MemberId : Uuid
|
|
11
10
|
|
|
@@ -2,10 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
One complete document with every construct family. Design mode, not executable. Prose rules: [cheat-sheet.md](cheat-sheet.md); tool versions: [versions.md](versions.md); what binds: [executable-subset.md](executable-subset.md).
|
|
4
4
|
|
|
5
|
-
Blocking on every compiler: unquoted import, `@pii`, `reads` (PLAY0271), `starts with`, observable/list/filter query.
|
|
5
|
+
Blocking on every compiler: unquoted import, `@pii`, `reads` (PLAY0271), `starts with`, observable/list/filter query. Executable shapes are in the sibling examples. The fence compiles warning-free on the standalone 4.66.0 tool and on `cratis screenplay validate` 3.28.2. `RecordingAPayment` lists the `InvoiceClosed` cascade, which the cratis 3.27.1 bundle (4.60.1) rejected with a false PLAY0285 ("outcome cannot be produced by 'RecordPayment'"); 3.28.2 accepts it.
|
|
6
6
|
|
|
7
7
|
```screenplay
|
|
8
|
-
// Needs the standalone screenplay compiler (ESM v6)
|
|
9
8
|
// Design-mode cheat-sheet: every construct family; compiles warning-free on the standalone tool.
|
|
10
9
|
domain Acme.Invoicing // optional; first line when present
|
|
11
10
|
import Customers.CustomerRegistered // unquoted = another bounded context's contract
|
|
@@ -255,7 +254,7 @@ module Housekeeping // no gates: a reaction's
|
|
|
255
254
|
event InvoiceMarkedOverdue
|
|
256
255
|
overdueAt DateTime
|
|
257
256
|
// No command spec here: under ESM v6 it must list the ReminderSent cascade. The file is
|
|
258
|
-
//
|
|
257
|
+
// RecordingAPayment's cascade got a false PLAY0285 on cratis before 3.28.2; 3.28.2 accepts it.
|
|
259
258
|
// The cascade form: automation-translate-example.md (SubscribingAMember).
|
|
260
259
|
|
|
261
260
|
slice Automation RemindOverdue
|
|
@@ -7,16 +7,16 @@ examples belong to `cheat-sheet-example.md` and its siblings.
|
|
|
7
7
|
|
|
8
8
|
| File | Mode | V1, warnings as errors | V3 (binds) |
|
|
9
9
|
| --- | --- | --- | --- |
|
|
10
|
-
| `cheat-sheet-example.md` | design: every construct family | 0 diagnostics
|
|
10
|
+
| `cheat-sheet-example.md` | design: every construct family | 0 diagnostics, both tools (cratis before 3.28.2 reported a false PLAY0285 on the `RecordingAPayment` cascade spec) | not ready by design (its header lists why; fewer blockers on the standalone tool) |
|
|
11
11
|
| `executable-example.md` | executable, StateChange and StateView | 0 diagnostics, both tools | ready, both tools |
|
|
12
12
|
| `pdl-example.md` | executable projections | 0 diagnostics, both tools | ready, both tools |
|
|
13
|
-
| `automation-translate-example.md` | executable Automation and Translate (ESM v6) |
|
|
13
|
+
| `automation-translate-example.md` | executable Automation and Translate (ESM v6) | 0 diagnostics, both tools (cratis before 3.28.2 could not bind it) | ready, both tools (cratis 3.28.2 or later) |
|
|
14
14
|
|
|
15
15
|
Screenplay sources: `Documentation/screenplay/grammar.md` (EBNF; checked against the parsers
|
|
16
16
|
by `for_Documentation/when_comparing_the_grammar_against_the_parsers.cs`),
|
|
17
17
|
`projections/grammar.md`, `captures/grammar.md`. Documentation examples compile in
|
|
18
18
|
Screenplay CI (`when_compiling_every_example.cs`) against repository main: the standalone
|
|
19
|
-
compiler,
|
|
19
|
+
compiler (4.66.0), which `cratis` 3.28.2 or later bundles; older cratis bundles differ (`versions.md`).
|
|
20
20
|
|
|
21
21
|
## Lexical and structural rules
|
|
22
22
|
- Spaces only, 2 per level (tabs: PLAY0006 W). Offside rule.
|
|
@@ -53,7 +53,7 @@ description, properties, `reads`, `authorize`, `validate`, `produces`/`handler`,
|
|
|
53
53
|
## `$context.` paths (command `produces`)
|
|
54
54
|
`occurred`, `tenant`, `command.<p>`, `arguments.<p>`, `causedBy.subject|name|userName`,
|
|
55
55
|
`causation.type`, `identity.id|name|userName|isAuthenticated|roles|claims.<n>`.
|
|
56
|
-
Binder-supported (`BindOccurrence`, v4.
|
|
56
|
+
Binder-supported (`BindOccurrence`, v4.66.0): `occurred`, `identity.id` (= `causedBy.subject`),
|
|
57
57
|
`identity.name` (= `causedBy.name`), `identity.userName` (= `causedBy.userName`). `tenant`,
|
|
58
58
|
roles, claims, causation, `command.<p>`, `arguments.<p>`: PLAY0268. Binding is not execution:
|
|
59
59
|
a reference scenario that supplies only a clock carries no caller audit identity, so check the
|