@cratis/pi 7.11.1 → 7.11.2
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 +6 -6
- 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 +7 -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 +4 -4
- package/package/corpus/skills/cratis-screenplay-render-and-gap-fill/references/worked-example.md +5 -5
- 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 +30 -29
- 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/provenance.md +1 -1
- package/package/corpus/skills/cratis-screenplay-toolchain/SKILL.md +18 -17
- 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 +4 -3
- 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 +7 -6
- package/package/corpus/skills/cratis-screenplay-toolchain/references/sources-and-streams.md +2 -2
- 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 +2 -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 +12 -9
- package/package/corpus/skills/cratis-stage-rendering-and-sandbox/references/admission.md +8 -7
- 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 +4 -1
- package/package.json +1 -1
|
@@ -36,7 +36,7 @@ to these tags; when the Screenplay skills are installed their `references/versio
|
|
|
36
36
|
| --- | --- |
|
|
37
37
|
| Where each rule lives (validator, `Provide()`, handler result, constraint, exception) | `rules/vertical-slices.md` "The decision matrix" (Arc `v22.50.5` behaviour verified there) |
|
|
38
38
|
| A customization never makes a rejected model renderable; managed output is never hand-edited | Stage `v4.24.0` (`Customizations/` is the unmanaged seam; managed output is regenerated) |
|
|
39
|
-
| A command `handler` never binds (PLAY0268), so that slice is gap-fill with the model as contract | Screenplay `v4.
|
|
39
|
+
| A command `handler` never binds (PLAY0268), so that slice is gap-fill with the model as contract | Screenplay `v4.66.0` (diagnostic PLAY0268) |
|
|
40
40
|
|
|
41
41
|
## Procedure
|
|
42
42
|
|
|
@@ -13,7 +13,7 @@ Three different claims are mixed in any "screen to page" mapping. Keep them apar
|
|
|
13
13
|
|
|
14
14
|
| Claim | Status | Evidence |
|
|
15
15
|
| --- | --- | --- |
|
|
16
|
-
| What each `screen`, `form` and interaction construct means | Verified | Screenplay `v4.
|
|
16
|
+
| What each `screen`, `form` and interaction construct means | Verified | Screenplay `v4.66.0`: `Documentation/screenplay/{screens,forms,interactions}.md` |
|
|
17
17
|
| What Stage does with a screen | Verified: it draws it through Scene, it does not write a React page | Stage `v4.24.0`: `Documentation/reference/stage-rendering.md` ("It does not generate screens for it"), `Documentation/reference/default-scene-composition.md` ("does not ... generate per-screen TypeScript components"), `Source/Contracts/Scene/ScreenDirectiveConverter.cs` (`data`, `action`, `section`, `title`, `table`, `summary` become Scene elements) |
|
|
18
18
|
| Which Components and Arc API gives a page the same behavior | Verified API; the pairing is this skill's convention | `@cratis/components` `v4.6.0` (`DataPage`, `DataTables`, `CommandDialog`, `CommandForm`) and the sibling references |
|
|
19
19
|
|
|
@@ -110,7 +110,7 @@ field because `berthId` is the identifier, not something the user types.
|
|
|
110
110
|
| `action X` with `navigate to S [by p]` | Navigate to the page for `S` after the command succeeds, in `onSuccess`; pass `p` from the response or the row | Assumption: `screens.md` does not say when it navigates. The form's `on submit` is defined as "after a successful submit"; confirm with the model owner |
|
|
111
111
|
| `on row-click navigate to S by p` | `DataPage` and `DataTableForQuery` forward no row-click prop at `4.6.0` (only `DataTableCore` has `onRowClick`, and it takes rows, not a query). Use controlled `selection` and `onSelectionChange` to navigate, or a link in a `Column` `body` | Gap: selection is not a click; report which you chose |
|
|
112
112
|
| `section`, `sidebar`, `main`, `template MasterDetail` | Page layout. Keep the section names as component names so the page can be compared to the model. `MasterDetail` over a list is `detailsComponent` | Convention: Components has no screen-template concept |
|
|
113
|
-
| `title`, `label`, `message` written as `$strings.key` | The text of that key in the `.strings` file for the locale, never retyped from memory | Verified token ([internationalization.md](https://github.com/Cratis/Screenplay/blob/v4.
|
|
113
|
+
| `title`, `label`, `message` written as `$strings.key` | The text of that key in the `.strings` file for the locale, never retyped from memory | Verified token ([internationalization.md](https://github.com/Cratis/Screenplay/blob/v4.66.0/Documentation/screenplay/internationalization.md)); the runtime mechanism is application-owned |
|
|
114
114
|
| `ui profile`, `theme`, `layout`, `arrangement` | Not page code. Theming is `cratis-components-styling`; the shell is the application's | Design-only |
|
|
115
115
|
| A Level 3 `react` block | The block is already the implementation, with typed `Props`. Port it into a component that honors those `Props` | Convention |
|
|
116
116
|
| `file Screens/X.tsx` | That file is the page. The model keeps the contract; the file must still show the declared data and actions | Stage's handling of the file reference is not verified |
|
|
@@ -138,7 +138,7 @@ restate a rule ([queries-and-commands.md](queries-and-commands.md)).
|
|
|
138
138
|
|
|
139
139
|
## Interactions: `on`, `uses`, `behavior`
|
|
140
140
|
|
|
141
|
-
The action set is closed ([interactions.md](https://github.com/Cratis/Screenplay/blob/v4.
|
|
141
|
+
The action set is closed ([interactions.md](https://github.com/Cratis/Screenplay/blob/v4.66.0/Documentation/screenplay/interactions.md)).
|
|
142
142
|
|
|
143
143
|
| Model action | Page |
|
|
144
144
|
| --- | --- |
|
|
@@ -5,7 +5,7 @@ No TrogonStack text is adapted in this skill. Nebulit material is credited in th
|
|
|
5
5
|
| Item | Source | Licence | Treatment | Where in this skill |
|
|
6
6
|
|---|---|---|---|---|
|
|
7
7
|
| Component APIs, props and hooks | Cratis Components 4.6.0 and Arc, see *Verified product sources* | MIT | original | SKILL.md, references/ |
|
|
8
|
-
| Screenplay and Stage facts in the screen mapping | Cratis/Screenplay v4.
|
|
8
|
+
| Screenplay and Stage facts in the screen mapping | Cratis/Screenplay v4.66.0 and Cratis/Stage v4.24.0 documentation and source | MIT | original | references/from-screenplay.md |
|
|
9
9
|
|
|
10
10
|
## Adapted closely (Martin Dilger and Nebulit GmbH, with agreement)
|
|
11
11
|
|
|
@@ -23,20 +23,22 @@ verdict discipline: `cratis-screenplay-modeling-lifecycle`; tools, versions and
|
|
|
23
23
|
identity, effect and pending-work contract at that point; do not postpone it to the final review.
|
|
24
24
|
|
|
25
25
|
## Tool and realization facts (read before promising anything)
|
|
26
|
-
- Reactions, clocks, triggers, captures and Automation/Translate slices compile (V1)
|
|
27
|
-
|
|
28
|
-
|
|
26
|
+
- Reactions, clocks, triggers, captures and Automation/Translate slices compile (V1) and bind (V3)
|
|
27
|
+
on Screenplay 4.61 or later: the standalone tool and the cratis CLI 3.28.2 or later (bundled
|
|
28
|
+
4.66.0). Probed on 3.28.2: the complete examples are `executableReady`. A cratis bundle before 3.28.2
|
|
29
|
+
(4.60.1) reports PLAY0268 at binding: report "V3 blocked: PLAY0268 (ESM v6)" and
|
|
30
|
+
name the tool, never remove them.
|
|
29
31
|
- No MCP tool, `validate` or render runs Automation or Translate specs. V4 is "not run: no route".
|
|
30
|
-
- Stage 4.24.
|
|
32
|
+
- Stage 4.24.1 (bundled in cratis 3.28.2) renders no Automation or Translate slice (Stage#79); `cratis render` refuses the whole v6 model with STAGE-ESM-016: the whole automation is
|
|
31
33
|
gap-fill or hand-written delivery with the model as contract (`references/realization-and-gap-fill.md`).
|
|
32
34
|
- Invoked commands run with no caller; `.play` cannot name an actor (Screenplay#383).
|
|
33
35
|
|
|
34
36
|
## Verified product sources
|
|
35
37
|
| Package | Version | Used for |
|
|
36
38
|
| --- | --- | --- |
|
|
37
|
-
| Screenplay | v4.
|
|
38
|
-
| cratis CLI | v3.
|
|
39
|
-
| Stage | v4.24.
|
|
39
|
+
| Screenplay | v4.66.0 (`c89198b`) | `Documentation/screenplay/{reactions,captures,triggers,specifications,diagnostics}.md`; examples compiled with the standalone tool |
|
|
40
|
+
| cratis CLI | v3.28.2 | bundles Screenplay 4.66.0 and Stage 4.24.1 (before 3.28.2: 4.60.1, which gave PLAY0268 on v6 constructs and a false PLAY0285 on cascades, cli#242) |
|
|
41
|
+
| Stage | v4.24.1 | admits ESM v1 to v3; renders no Automation or Translate slice |
|
|
40
42
|
| Arc | v22.50.5 | `ExecuteCommandsAsSystemAttribute` (since v20.56.0) |
|
|
41
43
|
| Chronicle | v19.32.0 | `OnceOnlyAttribute`, `ReactorDelivery` and `Documentation/reactors/delivery-identity.mdx` |
|
|
42
44
|
|
|
@@ -106,7 +108,7 @@ or actor that nobody confirmed. Transcript-shaped worked example: `references/wo
|
|
|
106
108
|
named cases to `cratis-screenplay-scenario-coverage`. Produce the audit in `references/audit-format.md`.
|
|
107
109
|
|
|
108
110
|
## Rules
|
|
109
|
-
**Compiler contracts** (diagnostics at 4.
|
|
111
|
+
**Compiler contracts** (diagnostics at 4.66.0)
|
|
110
112
|
- No inline `produces event` in a reaction (PLAY0474); declare reaction-produced events in the slice.
|
|
111
113
|
- Effects sit under a trigger; only `description` and `where` are reaction-level; one `where` per
|
|
112
114
|
reaction (PLAY0252); a trigger may not repeat (PLAY0253).
|
|
@@ -147,8 +149,8 @@ direct effect states "not applicable: no queue" with its reason (per-chain quest
|
|
|
147
149
|
Never report a verdict without the tool and version that produced it.
|
|
148
150
|
|
|
149
151
|
## Verify
|
|
150
|
-
- V1 and V3 per `cratis-screenplay-toolchain`, each with tool and version. On
|
|
151
|
-
|
|
152
|
+
- V1 and V3 per `cratis-screenplay-toolchain`, each with tool and version. On a cratis before 3.28.2
|
|
153
|
+
bundle report "V3 blocked: PLAY0268 (ESM v6)"; on 4.66.0 (standalone or cratis 3.28.2) these slices bind. V4 is "not run: no route" for these slices.
|
|
152
154
|
- For each external source and type: its translation, or an explicit out-of-scope reason; check
|
|
153
155
|
target-field completeness as well as source-field dispositions.
|
|
154
156
|
- One happy path is not coverage: cite the spec or the missing case for each branch, denial, competing
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Automation patterns
|
|
2
2
|
|
|
3
|
-
Complete compiled example: `todo-list-example.md` (binds on Screenplay 4.
|
|
3
|
+
Complete compiled example: `todo-list-example.md` (binds on Screenplay 4.66.0; the list query
|
|
4
4
|
and retry sweep that do not bind are shown there as marked excerpts).
|
|
5
5
|
|
|
6
6
|
## 1. Deciding whether it is an automation
|
|
@@ -32,7 +32,7 @@ Outcomes:
|
|
|
32
32
|
- A projection that adds an item `from <OpeningFact>` and removes it with
|
|
33
33
|
`remove with <ClosingFact>`. Several facts may open or close; they need not match one to one.
|
|
34
34
|
- A keyed query (`…ById => Item optional` + `by itemId`) for specs and executable scope; a
|
|
35
|
-
list query for the visible queue (design-only: a list query reports PLAY0268 at binding on 4.
|
|
35
|
+
list query for the visible queue (design-only: a list query reports PLAY0268 at binding on 4.66.0).
|
|
36
36
|
- A reaction `when <OpeningFact>` that invokes the command producing the closing fact.
|
|
37
37
|
The trigger may `reads` the item view to document its input; that is not protection.
|
|
38
38
|
- A retry sweep on a clock reads the whole view (no `by` on clock reads). Iterating its items
|
|
@@ -58,12 +58,12 @@ One spec in the slice does not cover the others.
|
|
|
58
58
|
The decision must not depend on it (it is not protected).
|
|
59
59
|
|
|
60
60
|
## Spec limits (tool differences: `cratis-screenplay-toolchain` `references/versions.md`)
|
|
61
|
-
- These Automation/Translate specs parse and bind (V3) on Screenplay 4.
|
|
61
|
+
- These Automation/Translate specs parse and bind (V3) on Screenplay 4.66.0, but no MCP tool,
|
|
62
62
|
`validate` or Stage render runs them (Stage renders no Automation or Translate slice). Report
|
|
63
63
|
V4 as "not run: no route"; never as passed.
|
|
64
|
-
- With
|
|
65
|
-
`when <Command>`, `then` lists every new fact, including reaction appends). Only when
|
|
66
|
-
cratis
|
|
64
|
+
- With Screenplay 4.66.0 (standalone or cratis 3.28.2), a command spec lists the cascade (v6 semantics: after
|
|
65
|
+
`when <Command>`, `then` lists every new fact, including reaction appends). Only when a
|
|
66
|
+
cratis before 3.28.2 bundle (4.60.1) is the V1 tool does it report a false PLAY0285 on a cascade (cli#242):
|
|
67
67
|
then keep the cascade out of the command spec, specify it in the Automation slice
|
|
68
68
|
(`when append <Trigger>`) and record the expectation. See `cratis-screenplay-scenario-coverage`.
|
|
69
69
|
- `given capture` never persists between specs: state the baseline in each spec that needs it.
|
|
@@ -5,9 +5,10 @@ the automation-and-translation addendum to `cratis-screenplay-render-and-gap-fil
|
|
|
5
5
|
skill for the admission, publication and ownership rules.
|
|
6
6
|
|
|
7
7
|
## What Stage does not do
|
|
8
|
-
Stage 4.24.
|
|
9
|
-
admitted: it needs ESM v6, Stage admits ESM v1 to v3 (STAGE-ESM-016 for the whole model
|
|
10
|
-
cratis 3.
|
|
8
|
+
Stage 4.24.1 renders no Automation or Translate slice (Stage#79). A model that contains one is not
|
|
9
|
+
admitted: it needs ESM v6, and Stage admits ESM v1 to v3 (STAGE-ESM-016 for the whole model; probed
|
|
10
|
+
with `cratis render` 3.28.2, whose bundled compiler binds these slices, where 3.27.1 stopped earlier
|
|
11
|
+
with PLAY0268). So the automation or translation is
|
|
11
12
|
hand-written delivery with the model as its contract. A `Customizations/` file never makes a
|
|
12
13
|
rejected model renderable, and never claim a whole-application V5 from a subset. Choose the route
|
|
13
14
|
with `cratis-screenplay-render-and-gap-fill`.
|
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
# Example: a todo-list automation
|
|
2
2
|
|
|
3
3
|
A complete model: a result opens a work item, a reaction invokes a command, the command's fact
|
|
4
|
-
closes the item. It binds on Screenplay 4.
|
|
5
|
-
|
|
4
|
+
closes the item. It binds on Screenplay 4.66.0 (`executableReady: true`), standalone and through `cratis screenplay mcp`
|
|
5
|
+
3.28.2; `cratis render` 3.28.2 refuses it whole (`STAGE-ESM-016`). The cratis 3.27.1 bundle (4.60.1)
|
|
6
|
+
rejected the Automation slice at binding with PLAY0268. Versions: `cratis-screenplay-toolchain` `references/versions.md`.
|
|
6
7
|
|
|
7
8
|
The first spec lists the whole cascade (`then` names every new fact: `CoursePassed`, and
|
|
8
9
|
`CertificateSent` through the reaction), and `given clock` supplies the instant that
|
|
9
|
-
`$context.occurred` needs.
|
|
10
|
-
|
|
11
|
-
run (V4: not run, no route); the expectations follow the v4.
|
|
10
|
+
`$context.occurred` needs. Both 4.66.0 tools accept that cascade; the cratis 3.27.1 bundle reported a false PLAY0285 on it
|
|
11
|
+
(cli#242). These specs were not
|
|
12
|
+
run (V4: not run, no route); the expectations follow the v4.66.0 reference semantics.
|
|
12
13
|
|
|
13
14
|
What the model proves and what it does not:
|
|
14
15
|
|
|
@@ -21,7 +22,6 @@ What the model proves and what it does not:
|
|
|
21
22
|
- No local engine runs Automation specifications: report them as authored, not as run.
|
|
22
23
|
|
|
23
24
|
```screenplay
|
|
24
|
-
// Needs the standalone screenplay compiler (ESM v6)
|
|
25
25
|
// Todo-list automation. Shape: CoursePassed opens an item -> CertificateSender invokes
|
|
26
26
|
// SendCertificate -> CertificateSent closes the item. The once-only FACT is
|
|
27
27
|
// `unique event CertificateSent`; the external send is NOT proven once-only by this model.
|
|
@@ -183,7 +183,7 @@ module Certification
|
|
|
183
183
|
|
|
184
184
|
## Design-only additions
|
|
185
185
|
|
|
186
|
-
Two things a real queue often wants do not bind on 4.
|
|
186
|
+
Two things a real queue often wants do not bind on 4.66.0 and stay out of the complete model
|
|
187
187
|
above: a list query (the visible queue) and a retry sweep that reads the whole view. Both parse
|
|
188
188
|
(V1) and report PLAY0268 at binding; durable per-item fan-out is outside the language
|
|
189
189
|
(Screenplay#286). Keep them in the model only when the document is the deliverable and say so
|
|
@@ -2,8 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
A complete model: a webhook record from an outside proctoring service is captured, kept as an
|
|
4
4
|
external fact in the provider's vocabulary, then translated by reactions into our facts. It
|
|
5
|
-
binds on Screenplay 4.
|
|
6
|
-
(Screenplay 4.60.1)
|
|
5
|
+
binds on Screenplay 4.66.0 (`executableReady: true`), standalone and through `cratis screenplay mcp`
|
|
6
|
+
3.28.2; the cratis 3.27.1 bundle (Screenplay 4.60.1) compiled it (V1) but rejected the Translate
|
|
7
|
+
slice at binding (PLAY0268). `cratis render` 3.28.2 refuses it whole (`STAGE-ESM-016`).
|
|
7
8
|
|
|
8
9
|
Read the slice `description`: it is the per-field disposition (map, translate, ignore) and it
|
|
9
10
|
states what this example does not do. Examples never show the whole integration contract; use
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# Translation patterns
|
|
2
2
|
|
|
3
|
-
Complete compiled example: `translate-example.md` (binds on Screenplay 4.
|
|
4
|
-
|
|
3
|
+
Complete compiled example: `translate-example.md` (binds on Screenplay 4.66.0, also in cratis 3.28.2; the cratis 3.27.1
|
|
4
|
+
bundle compiled it but rejected the slice at binding).
|
|
5
5
|
|
|
6
6
|
## 1. Where outside facts may enter
|
|
7
7
|
Only two routes, both in a `Translate` slice:
|
|
@@ -30,7 +30,7 @@ source is the single flow model.
|
|
|
30
30
|
| --- | --- | --- |
|
|
31
31
|
| `Cratis.Screenplay` | `4.31.0` | CDL parser, reaction and trigger parsers, diagnostics, semantic binder |
|
|
32
32
|
| `Cratis.Screenplay` | main `fd18129` | Command-only inline event boundary |
|
|
33
|
-
| `Cratis.Screenplay` | `4.
|
|
33
|
+
| `Cratis.Screenplay` | `4.66.0` (`c89198b`) | ESM v6: reactions, clock, trigger and capture specifications bind; `invokes` caller rule; probed with the standalone tool and its MCP server |
|
|
34
34
|
|
|
35
35
|
The update follows `commands.md`, `events.md` and `diagnostics.md` at that main
|
|
36
36
|
commit (after v4.52.0).
|
|
@@ -39,24 +39,26 @@ Historical baseline evidence: the original examples were checked against the Scr
|
|
|
39
39
|
`Documentation/screenplay/{captures,captures/grammar,reactions,triggers,interactions,file-references,grammar,diagnostics}.md`
|
|
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
|
-
`v4.
|
|
43
|
-
`references/complete-examples.md` compile with the standalone 4.
|
|
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.66.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.66.0 (ESM v1-v6, from 4.61.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`.
|
|
53
|
-
- **`cratis` 3.
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
53
|
+
- **`cratis` 3.28.2 (bundles Screenplay 4.66.0, ESM v1-v6):** the same as the standalone
|
|
54
|
+
tool. Probed: the complete examples validate with warnings as errors and are
|
|
55
|
+
`executableReady` over `cratis screenplay mcp`. `cratis` before 3.28.2 (Screenplay
|
|
56
|
+
4.60.1, ESM v1-v5) failed an `Automation` or `Translate` slice at binding with `PLAY0268`
|
|
57
|
+
(*Slice '<name>' of type '<type>' is not admitted by ESM v1*), reported reactions as
|
|
58
|
+
*requires portable occurrence and effect semantics* and captures as *require a portable
|
|
59
|
+
compiled CDL plan*, and gave a false `PLAY0285` on a specification that follows a reaction
|
|
60
|
+
cascade (Cratis/cli#242).
|
|
61
|
+
- **Stage 4.24.1** admits ESM v1-v3 and renders no `Automation` or `Translate`
|
|
60
62
|
slice. The automation is gap-fill, with the `.play` slice and its specifications
|
|
61
63
|
as the contract: `cratis-screenplay-render-and-gap-fill`.
|
|
62
64
|
|
|
@@ -66,7 +68,7 @@ Method (the four-part automation test, loops, translations versus automations):
|
|
|
66
68
|
`cratis-screenplay-automations-and-translations`.
|
|
67
69
|
|
|
68
70
|
**Specify what sets them off** (v4.48.0, checked at tag `v4.48.0`, commit
|
|
69
|
-
`3baf4a4`; execution from ESM v6, checked at `v4.
|
|
71
|
+
`3baf4a4`; execution from ESM v6, checked at `v4.66.0`): `when clock "<instant>"`
|
|
70
72
|
for a reaction on `every` or `at`, `when trigger <Trigger>` with its values for one
|
|
71
73
|
on an application trigger, and `given capture` / `when capture <Capture>` with the
|
|
72
74
|
source record's fields for a capture, then the events that should follow.
|
|
@@ -82,9 +84,9 @@ specification IssuingTheWeeklyDigest
|
|
|
82
84
|
issuedAt = "2026-10-05T07:30:00Z"
|
|
83
85
|
```
|
|
84
86
|
|
|
85
|
-
Under `cratis` 3.
|
|
86
|
-
but
|
|
87
|
-
specification as
|
|
87
|
+
Under `cratis` before 3.28.2 these actions parsed and were checked against the application
|
|
88
|
+
but bound to nothing (`PLAY0268` names ESM v6, decision 0022); on 3.28.2 they bind. Either way
|
|
89
|
+
no command runs them: report such a specification as authored, not executed. Clock rules: the clock is UTC and exact; an
|
|
88
90
|
occurrence fires once when it is **due after `given clock` and at or before
|
|
89
91
|
`when clock`**, in time order; intervals count from the Unix epoch; `when clock`
|
|
90
92
|
needs `given clock`, so equal instants fire nothing. Limits: 10,000 occurrences per
|
|
@@ -99,7 +101,6 @@ a capture with its specifications. The excerpts later in this skill have their o
|
|
|
99
101
|
complete parent documents in `references/complete-examples.md`.
|
|
100
102
|
|
|
101
103
|
```screenplay
|
|
102
|
-
// Needs the standalone screenplay compiler (ESM v6)
|
|
103
104
|
concept InvoiceId : Uuid
|
|
104
105
|
trigger PaymentFileArrived
|
|
105
106
|
description "The bank's payment file listed a payment for an invoice"
|
|
@@ -471,8 +472,8 @@ command's own reads. Command `reads` give none yet either (`PLAY0271`, #129).
|
|
|
471
472
|
Decision 0006 leaves `where` over read paths out of scope, and `where` needs
|
|
472
473
|
every operand to resolve from the trigger's declared scalar occurrence shape (listed in
|
|
473
474
|
the input selection or not; nested paths and read aliases fail binding): keep the logic that uses the state in
|
|
474
|
-
the invoked command or the implementation. Under `cratis` 3.
|
|
475
|
-
|
|
475
|
+
the invoked command or the implementation. Under `cratis` before 3.28.2 none of this
|
|
476
|
+
bound at all (`PLAY0268`); `cratis` 3.28.2 binds it like the standalone tool.
|
|
476
477
|
|
|
477
478
|
## `trigger`
|
|
478
479
|
|
|
@@ -533,10 +534,11 @@ something is reported. `Startup` and `Shutdown` are registered the second way.
|
|
|
533
534
|
## Verify
|
|
534
535
|
|
|
535
536
|
- [ ] `screenplay <model> --warnaserror` reports zero errors and zero warnings
|
|
536
|
-
(standalone 4.
|
|
537
|
-
false `PLAY0285` on cascade specifications, and report them
|
|
538
|
-
|
|
539
|
-
|
|
537
|
+
(standalone 4.66.0, or `cratis` 3.28.2 or later). Under `cratis` before 3.28.2 expect
|
|
538
|
+
`PLAY0268` at binding and a false `PLAY0285` on cascade specifications, and report them
|
|
539
|
+
as tool skew.
|
|
540
|
+
- [ ] The tool that bound the model is named (Screenplay 4.61 or later, so standalone or
|
|
541
|
+
`cratis` 3.28.2 or later, for ESM v6 constructs); no tool runs the specifications.
|
|
540
542
|
- [ ] Each automation has all four components — occurrence, state consulted,
|
|
541
543
|
conditional logic, resulting command or event. If it always fires
|
|
542
544
|
unconditionally it is co-production, not an automation.
|
|
@@ -1,9 +1,10 @@
|
|
|
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.66.0
|
|
4
4
|
(`--warnaserror`). The SKILL.md excerpts show the reaction, capture or trigger part of
|
|
5
|
-
these documents. Documents marked ESM v6 need the standalone
|
|
6
|
-
(
|
|
5
|
+
these documents. Documents marked ESM v6 need Screenplay 4.61 or later: the standalone tool and `cratis` 3.28.2
|
|
6
|
+
(bundled 4.66.0) validate and bind them (probed); `cratis` 3.27.1 (Screenplay 4.60.1) reported
|
|
7
|
+
`PLAY0268` when it bound them.
|
|
7
8
|
|
|
8
9
|
## Capture with `source`, `map`, `append` and `children`
|
|
9
10
|
|
|
@@ -61,7 +62,6 @@ Parent of the `NotifyOnBuildFailure` excerpt. A trigger value needs a type to be
|
|
|
61
62
|
executable (`PLAY0268` otherwise).
|
|
62
63
|
|
|
63
64
|
```screenplay
|
|
64
|
-
// Needs the standalone screenplay compiler (ESM v6)
|
|
65
65
|
concept Repository : String
|
|
66
66
|
trigger BuildFinished
|
|
67
67
|
description "CI reported a finished build on a watched repository"
|
|
@@ -93,7 +93,6 @@ Parent of the `Provisioner` excerpt. The invoked command runs with no caller in
|
|
|
93
93
|
reference execution.
|
|
94
94
|
|
|
95
95
|
```screenplay
|
|
96
|
-
// Needs the standalone screenplay compiler (ESM v6)
|
|
97
96
|
concept WorkspaceId : Uuid
|
|
98
97
|
module Onboarding
|
|
99
98
|
feature Workspaces
|
|
@@ -129,13 +128,12 @@ module Onboarding
|
|
|
129
128
|
## Trigger `reads` on an event and on the clock
|
|
130
129
|
|
|
131
130
|
Parent of the `ChaseOverdueInvoices` excerpt. This document is authoring-valid but does
|
|
132
|
-
**not** bind at ESM v6: the standalone
|
|
131
|
+
**not** bind at ESM v6: the MCP server of Screenplay 4.66.0 (standalone and `cratis screenplay mcp` 3.28.2, probed) reports `PLAY0268` "reads
|
|
133
132
|
'InvoiceBalance' before producing directly, but ESM v6 cannot protect that decision
|
|
134
133
|
dependency (decision 0006)" because a `file` body is an opaque effect. Drop the `file`
|
|
135
134
|
lines and keep only `invokes` for an executable reaction.
|
|
136
135
|
|
|
137
136
|
```screenplay
|
|
138
|
-
// Needs the standalone screenplay compiler (ESM v6)
|
|
139
137
|
concept InvoiceId : Uuid
|
|
140
138
|
module Collections
|
|
141
139
|
feature Overdue
|
|
@@ -30,7 +30,7 @@ source is the single flow model.
|
|
|
30
30
|
| --- | --- | --- |
|
|
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
|
-
| `Cratis.Screenplay` | `4.
|
|
33
|
+
| `Cratis.Screenplay` | `4.66.0` (`c89198b`) | Binding behaviour of `handler`, code attachments, `persona` and compliance attributes: `Semantics/SemanticModelBinder*.cs`, `Diagnostics/DiagnosticCodes.cs` |
|
|
34
34
|
|
|
35
35
|
The update follows `commands.md`, `events.md`, `types.md`, `diagnostics.md`,
|
|
36
36
|
`mcp/authoring-tools.md` and decision 0023 at that main commit (after v4.52.0).
|
|
@@ -319,7 +319,7 @@ An empty block or an unknown dimension is an error. Omitting `concurrency` does
|
|
|
319
319
|
not mean unchecked appends: Chronicle's default optimistic concurrency applies
|
|
320
320
|
to the routed scope. This does not make command `reads` protected.
|
|
321
321
|
|
|
322
|
-
Decision 0023's constructs differ in availability. **Authorable at 4.
|
|
322
|
+
Decision 0023's constructs differ in availability. **Authorable at 4.66.0, never
|
|
323
323
|
executable yet** (binding reports `PLAY0268`, so they stop a model at V1): generated
|
|
324
324
|
values and `returns` responses, operations, and named event sources and streams with
|
|
325
325
|
command routes (`eventsource`, `stream`, `streamId`). Their ESM versions are allocated,
|
|
@@ -466,10 +466,10 @@ Four contexts, and **what each omits is load-bearing** — read
|
|
|
466
466
|
|
|
467
467
|
## Verify
|
|
468
468
|
|
|
469
|
-
- [ ] Standalone `screenplay <model> --warnaserror` (4.
|
|
470
|
-
warnings;
|
|
471
|
-
|
|
472
|
-
lower). Name which tool produced the result.
|
|
469
|
+
- [ ] Standalone `screenplay <model> --warnaserror` (4.66.0) reports zero errors and zero
|
|
470
|
+
warnings; or `cratis screenplay validate --warnings-as-errors` on the model folder
|
|
471
|
+
(3.28.2 bundles the same Screenplay 4.66.0; before 3.28.2 bundled 4.60.1, ESM v5
|
|
472
|
+
or lower). Name which tool produced the result.
|
|
473
473
|
- [ ] No unintended `PLAY0478` or `PLAY0479` information remains.
|
|
474
474
|
- [ ] At most one command property carries `identifier`, and no event property does.
|
|
475
475
|
- [ ] Format rules live on the `concept`; state-dependent rules are specifications.
|
|
@@ -35,21 +35,21 @@ syntax and tool commands in `cratis-screenplay-toolchain`.
|
|
|
35
35
|
|
|
36
36
|
## Verified product sources
|
|
37
37
|
|
|
38
|
-
Pins (Screenplay v4.
|
|
38
|
+
Pins (Screenplay v4.66.0 `c89198b`, cratis CLI v3.28.2, Stage v4.24.1, Arc v22.50.5, Chronicle
|
|
39
39
|
v19.32.0) are listed once in `cratis-screenplay-toolchain` `references/versions.md`.
|
|
40
40
|
Statements here were checked at those tags:
|
|
41
41
|
|
|
42
42
|
| Fact used here | Source |
|
|
43
43
|
| --- | --- |
|
|
44
|
-
| Persona syntax, report-only, policies must be declared, `description` first and once | Screenplay `v4.
|
|
45
|
-
| Single-line and fenced `description` (`FencedText`) | `v4.
|
|
46
|
-
| `<Type>[]`, shapes must be declared; `@pii` and `reason` on concepts | `v4.
|
|
47
|
-
| `then denied`, `given caller`, `then error` | `v4.
|
|
44
|
+
| Persona syntax, report-only, policies must be declared, `description` first and once | Screenplay `v4.66.0:Documentation/screenplay/personas.md` |
|
|
45
|
+
| Single-line and fenced `description` (`FencedText`) | `v4.66.0:Documentation/screenplay/slices.md#descriptions`, `grammar.md:1084-1088` |
|
|
46
|
+
| `<Type>[]`, shapes must be declared; `@pii` and `reason` on concepts | `v4.66.0:Documentation/screenplay/events.md`, `concepts.md` |
|
|
47
|
+
| `then denied`, `given caller`, `then error` | `v4.66.0:Documentation/screenplay/specifications.md` |
|
|
48
48
|
| PII on an event-source id is rejected by Chronicle (CHR0034); nullable event properties warn (CHR0012) | Chronicle `v19.32.0:Source/Clients/DotNET.CodeAnalysis/DiagnosticIds.cs` |
|
|
49
|
-
| Any `@pii` or `@sensitive` on a concept fails binding (PLAY0268) | `v4.
|
|
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.66.0 (`--warnaserror`) and with `cratis screenplay validate --warnings-as-errors` 3.28.2.
|
|
53
53
|
|
|
54
54
|
## Interview phase
|
|
55
55
|
|
|
@@ -115,7 +115,7 @@ decided apart from what you assumed. Never guess silently.
|
|
|
115
115
|
two business facts that make it meaningful. A simple state transition may carry no payload
|
|
116
116
|
beyond its identity: do not pad events with fields just to reach a count. Domain names; `<Type>[]` for collections (declare the `type`); a
|
|
117
117
|
`concept` for a value with its own meaning; classify personal data on the concept with
|
|
118
|
-
`@pii` and a reason now. `@pii` compiles but does not bind (PLAY0268 at 4.
|
|
118
|
+
`@pii` and a reason now. `@pii` compiles but does not bind (PLAY0268 at 4.66.0): record it
|
|
119
119
|
as a known target gap; never drop it to get a clean result.
|
|
120
120
|
7. **Validate, gate, hand off.** After a coherent batch of edits (not every sentence) run V1
|
|
121
121
|
with the tool and version named (`cratis-screenplay-toolchain`). Stop storming a workflow
|
|
@@ -133,7 +133,7 @@ decided apart from what you assumed. Never guess silently.
|
|
|
133
133
|
first body line and appears once.
|
|
134
134
|
- Declare each event once in the whole application; other slices refer to it by name.
|
|
135
135
|
- Folder-layout round-trips re-sort modules, features and slices by name (a single document
|
|
136
|
-
keeps authored order at v4.
|
|
136
|
+
keeps authored order at v4.66.0): story order is documentation (feature `description`,
|
|
137
137
|
STATE.md), never structure.
|
|
138
138
|
- A misspelt keyword inside a slice is only warning PLAY0029 and the block disappears: always
|
|
139
139
|
validate with warnings as errors.
|
|
@@ -59,4 +59,4 @@ that decision. If not, note the need as a view and move on.
|
|
|
59
59
|
6. Propose the next step: the next workflow, or `cratis-screenplay-slice-design` for this one.
|
|
60
60
|
7. Update STATE.md (phase, status, carry-forward); keep durable rationale in model
|
|
61
61
|
`description` text, which is rendered and queryable; `//` comments survive printing at
|
|
62
|
-
Screenplay v4.
|
|
62
|
+
Screenplay v4.66.0, but check the dropped-comments report after any edit that cannot retain them.
|
|
@@ -60,7 +60,7 @@ open, start the sweep (`divergent-sweep.md`).
|
|
|
60
60
|
What a model looks like after the first workflow has been stormed: no commands, read models
|
|
61
61
|
or screens yet. Slices are named after the command expected to produce each event and are
|
|
62
62
|
sorted by name when a folder layout is written back (a single document keeps authored order
|
|
63
|
-
at v4.
|
|
63
|
+
at v4.66.0), so the order of the story lives in the feature `description`, not in position. Persona
|
|
64
64
|
`description` text holds Does / Reads / Cannot on one quoted line here; the multi-line fenced
|
|
65
65
|
form is in `personas-and-causes.md`.
|
|
66
66
|
|
|
@@ -76,7 +76,7 @@ Rules: AssignBerth only if a free berth is at least as long as the boat (i
|
|
|
76
76
|
Denial candidates: BoatOwner cannot assign berths -> gate IsHarbourmaster + denial spec
|
|
77
77
|
Competition: last free berth wanted by two owners
|
|
78
78
|
Open: forfeit rule; season fee fixed or recalculated; office staff on behalf
|
|
79
|
-
Verdicts: V1 passed (screenplay 4.
|
|
79
|
+
Verdicts: V1 passed (screenplay 4.66.0, --warnaserror, exit 0); V2 to V5 not run (discovery)
|
|
80
80
|
```
|
|
81
81
|
|
|
82
82
|
## Resulting model
|
|
@@ -106,7 +106,7 @@ 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.66.0` (`c89198b`) | Current pin: the Step 7 clock example compiles and binds; persona, generated, operation and stream dispositions below were read at this tag |
|
|
110
110
|
|
|
111
111
|
The pin set for the whole Screenplay family, and which tool reports what, lives only in
|
|
112
112
|
`cratis-screenplay-toolchain` `references/versions.md`. The `fd18129` update follows
|
|
@@ -114,7 +114,7 @@ The pin set for the whole Screenplay family, and which tool reports what, lives
|
|
|
114
114
|
compilation does not establish reference execution. The original baseline was checked at
|
|
115
115
|
tag `v4.31.0` (commit `355dffb`): `Documentation/screenplay/{slices,commands,folders,printing,interactions,specifications}.md`,
|
|
116
116
|
`projections/keys.md`, and decisions 0001 to 0014. Changed [nine-step examples](references/nine-steps.md)
|
|
117
|
-
use the newer commit and the 4.
|
|
117
|
+
use the newer commit and the 4.66.0 tool; do not attribute them to the old tag.
|
|
118
118
|
|
|
119
119
|
> **Method lineage.** The two-phase process, the nine steps, the four patterns and
|
|
120
120
|
> the GWT discipline follow **Event Modeling** (Adam Dymitruk; Martin Dilger,
|
|
@@ -342,7 +342,7 @@ is the fallback, and neither names the other's verdict. Versions and commands:
|
|
|
342
342
|
- [ ] Personal data is classified on the `concept`, with a reason.
|
|
343
343
|
- [ ] Specifications name the rejections, not only the happy path.
|
|
344
344
|
- [ ] If the model must reach a runtime, check it binds with the tool that will
|
|
345
|
-
consume it. The standalone 4.
|
|
345
|
+
consume it. The standalone 4.66.0 binder admits Automation and Translate slices
|
|
346
346
|
(ESM v6); Stage 4.24.0 admits ESM v1 to v3 and renders only `StateChange` and
|
|
347
347
|
`StateView` slices, so automations and translations are gap-fill there.
|
|
348
348
|
|
|
@@ -360,9 +360,9 @@ The independent verdicts V1 to V5 that report them are in
|
|
|
360
360
|
What binds depends on **which tool** you ask, so name the tool and its version:
|
|
361
361
|
|
|
362
362
|
- `Automation` and `Translate` slices, reactions, captures and triggers: the
|
|
363
|
-
standalone `screenplay` 4.
|
|
364
|
-
(Screenplay 4.60.1)
|
|
365
|
-
is not admitted by ESM v1.* Stage 4.24.
|
|
363
|
+
standalone `screenplay` 4.66.0 and the `cratis` 3.28.2 bundle (same compiler) bind them (ESM v6).
|
|
364
|
+
The `cratis` 3.27.1 bundle (Screenplay 4.60.1) reported *Slice '<name>' of type '<type>'
|
|
365
|
+
is not admitted by ESM v1.* Stage 4.24.1 admits only ESM v1 to v3 and renders none of them.
|
|
366
366
|
- `reads` and `concurrency` on a command do not bind (`PLAY0271`), so no decision is
|
|
367
367
|
protected against stale state. A reaction trigger's `reads` that only `invokes` is
|
|
368
368
|
report-only intent (`PLAY0270`); one that `produces` directly fails binding (`PLAY0268`).
|
|
@@ -184,8 +184,8 @@ system state?"* If no, it is co-production — one `StateChange` slice with seve
|
|
|
184
184
|
`produces` blocks, not an `Automation` slice.
|
|
185
185
|
|
|
186
186
|
**Output:** the `reaction`, in an `Automation` slice. It binds on the standalone
|
|
187
|
-
`screenplay` 4.
|
|
188
|
-
Stage 4.24.
|
|
187
|
+
`screenplay` 4.66.0 and the `cratis` 3.28.2 bundle (ESM v6; the 3.27.1 bundle rejected the slice
|
|
188
|
+
at binding) and Stage 4.24.1 renders none, so the automation is gap-fill there (versions:
|
|
189
189
|
`cratis-screenplay-toolchain`). When the automation decides from a view, declare it under
|
|
190
190
|
the trigger with `reads` (see `cratis-screenplay-captures-and-reactions`).
|
|
191
191
|
|
|
@@ -197,7 +197,7 @@ event source, so the invoked command binds its own identifier (`weekly`).
|
|
|
197
197
|
|
|
198
198
|
**What the model does and does not do.** The view stores the deadline (`dueDate`), never an
|
|
199
199
|
"overdue" flag: overdue is a comparison with the clock, not a fact to materialize. The
|
|
200
|
-
reaction's `reads UnpaidInvoice` is report-only metadata at 4.
|
|
200
|
+
reaction's `reads UnpaidInvoice` is report-only metadata at 4.66.0 (information `PLAY0270`);
|
|
201
201
|
it does not make the model consult the view. Binding therefore admits only a scheduled
|
|
202
202
|
invocation that records a timestamp. Choosing which invoices are overdue (due date before the
|
|
203
203
|
clock instant) is a target-side decision: record it as gap-fill with the model as the
|
|
@@ -205,7 +205,6 @@ contract (`cratis-screenplay-render-and-gap-fill`), and say so in the slice desc
|
|
|
205
205
|
the example does. Do not claim the specification proves the overdue decision.
|
|
206
206
|
|
|
207
207
|
```screenplay
|
|
208
|
-
// Needs the standalone screenplay compiler (ESM v6)
|
|
209
208
|
domain Acme.Invoicing
|
|
210
209
|
|
|
211
210
|
concept InvoiceId : Uuid
|
package/package/corpus/skills/cratis-screenplay-event-modeling/references/parsed-not-runnable.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Parsed is not runnable: ESM versions and dispositions
|
|
2
2
|
|
|
3
|
-
Facts read at Screenplay `v4.
|
|
3
|
+
Facts read at Screenplay `v4.66.0` (`c89198b`): `Source/DotNET/Screenplay/Semantics/Versions.cs`,
|
|
4
4
|
`SemanticModelBinder.cs` (`ReportTopLevelDispositions`), `SemanticModelBinder.CommandProductions.cs`,
|
|
5
5
|
`Documentation/screenplay/{commands,operations,event-sources}.md`. Tool versions and which tool
|
|
6
6
|
reports what: `cratis-screenplay-toolchain` `references/versions.md`.
|
|
@@ -22,7 +22,7 @@ reports what: `cratis-screenplay-toolchain` `references/versions.md`.
|
|
|
22
22
|
|
|
23
23
|
## Dispositions to keep apart
|
|
24
24
|
|
|
25
|
-
| Construct | Authoring | Binding at 4.
|
|
25
|
+
| Construct | Authoring | Binding at 4.66.0 |
|
|
26
26
|
| --- | --- | --- |
|
|
27
27
|
| `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
28
|
| `domain`, `authentication` | accepted | report-only information (`PLAY0270`) |
|
|
@@ -42,9 +42,9 @@ the construct to make a tool pass; record the gap against its address
|
|
|
42
42
|
## The Step 7 clock example
|
|
43
43
|
|
|
44
44
|
The complete example in [nine-steps.md](nine-steps.md) (Step 7) compiled with
|
|
45
|
-
`screenplay <folder> --warnaserror` 4.
|
|
45
|
+
`screenplay <folder> --warnaserror` 4.66.0 (0 errors, 0 warnings) and opened through
|
|
46
46
|
`screenplay mcp <folder>` with `executableReady: true` and five `PLAY0270` information
|
|
47
47
|
diagnostics. It binds as a scheduled invocation; its `reads` is intent only, so the overdue
|
|
48
|
-
decision is not executed by the model. The `cratis` 3.
|
|
49
|
-
to v5)
|
|
48
|
+
decision is not executed by the model. The `cratis` 3.28.2 bundle (Screenplay 4.66.0) binds it the same way (probed); the 3.27.1 bundle
|
|
49
|
+
(Screenplay 4.60.1, ESM v1 to v5) compiled it but rejected the Automation slice at binding. Report reaction
|
|
50
50
|
specifications as authored, not as run, unless a V4 run says otherwise.
|