@cratis/pi 7.48.2 → 7.48.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/harnesses/copilot/instructions/profiles.instructions.md +1 -1
- package/package/corpus/rules/profiles.md +1 -1
- package/package/corpus/skills/cratis-application-slice-conformance/SKILL.md +2 -2
- package/package/corpus/skills/cratis-chronicle-event-modeling/SKILL.md +1 -1
- package/package/corpus/skills/cratis-event-model-diagram/SKILL.md +1 -1
- package/package/corpus/skills/cratis-screenplay-automations-and-translations/SKILL.md +4 -4
- package/package/corpus/skills/cratis-screenplay-automations-and-translations/references/audit-format.md +1 -1
- package/package/corpus/skills/cratis-screenplay-automations-and-translations/references/automation-patterns.md +3 -3
- package/package/corpus/skills/cratis-screenplay-automations-and-translations/references/cases-to-specify.md +1 -1
- package/package/corpus/skills/cratis-screenplay-automations-and-translations/references/provenance.md +2 -2
- package/package/corpus/skills/cratis-screenplay-automations-and-translations/references/public-events-and-direction.md +2 -2
- package/package/corpus/skills/cratis-screenplay-automations-and-translations/references/todo-list-example.md +1 -1
- package/package/corpus/skills/cratis-screenplay-captures-and-reactions/SKILL.md +6 -6
- package/package/corpus/skills/cratis-screenplay-captures-and-reactions/references/invocation-identity.md +3 -3
- package/package/corpus/skills/cratis-screenplay-captures-and-reactions/references/product-sources.md +1 -1
- package/package/corpus/skills/cratis-screenplay-captures-and-reactions/references/specifying-triggers-and-clock.md +1 -1
- package/package/corpus/skills/cratis-screenplay-command-surface/SKILL.md +3 -3
- package/package/corpus/skills/cratis-screenplay-command-surface/references/compliance.md +1 -1
- package/package/corpus/skills/cratis-screenplay-command-surface/references/context.md +1 -1
- package/package/corpus/skills/cratis-screenplay-command-surface/references/enum-numbers.md +1 -1
- package/package/corpus/skills/cratis-screenplay-delivery-planning/SKILL.md +1 -1
- package/package/corpus/skills/cratis-screenplay-delivery-planning/references/slice-counting.md +1 -1
- package/package/corpus/skills/cratis-screenplay-discovery/SKILL.md +1 -1
- package/package/corpus/skills/cratis-screenplay-event-modeling/SKILL.md +3 -3
- package/package/corpus/skills/cratis-screenplay-event-modeling/references/parsed-not-runnable.md +2 -2
- package/package/corpus/skills/cratis-screenplay-legacy-extraction/SKILL.md +1 -1
- package/package/corpus/skills/cratis-screenplay-legacy-extraction/references/chronicle-observations.md +1 -1
- package/package/corpus/skills/cratis-screenplay-legacy-extraction/references/generate-notes.md +4 -5
- package/package/corpus/skills/cratis-screenplay-legacy-extraction/references/generated-recovery.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 +1 -1
- package/package/corpus/skills/cratis-screenplay-model-authoring/references/language-reference.md +4 -4
- package/package/corpus/skills/cratis-screenplay-model-authoring/references/mcp-tools.md +3 -3
- package/package/corpus/skills/cratis-screenplay-model-authoring/references/model-notes.md +1 -1
- package/package/corpus/skills/cratis-screenplay-model-authoring/references/screen-authoring-workflow.md +1 -1
- package/package/corpus/skills/cratis-screenplay-model-review/SKILL.md +1 -1
- package/package/corpus/skills/cratis-screenplay-modeling-lifecycle/SKILL.md +1 -1
- package/package/corpus/skills/cratis-screenplay-modeling-lifecycle/references/stop-or-assume.md +1 -1
- package/package/corpus/skills/cratis-screenplay-modeling-lifecycle/references/verdicts-and-modes.md +1 -1
- package/package/corpus/skills/cratis-screenplay-projections/SKILL.md +1 -1
- package/package/corpus/skills/cratis-screenplay-read-surface/SKILL.md +1 -1
- package/package/corpus/skills/cratis-screenplay-read-surface/references/provenance.md +2 -2
- package/package/corpus/skills/cratis-screenplay-render-and-gap-fill/SKILL.md +3 -3
- 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/gap-fill-handoff.md +2 -2
- package/package/corpus/skills/cratis-screenplay-render-and-gap-fill/references/renderability-gate.md +2 -2
- package/package/corpus/skills/cratis-screenplay-scenario-coverage/SKILL.md +2 -2
- 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 +1 -1
- package/package/corpus/skills/cratis-screenplay-scenario-coverage/references/spec-forms-by-mode.md +5 -5
- package/package/corpus/skills/cratis-screenplay-slice-design/SKILL.md +2 -2
- package/package/corpus/skills/cratis-screenplay-slice-design/references/worked-example.md +1 -1
- package/package/corpus/skills/cratis-screenplay-specifications/SKILL.md +3 -3
- package/package/corpus/skills/cratis-screenplay-specifications/references/examples-and-routes.md +2 -2
- package/package/corpus/skills/cratis-screenplay-streams-and-consistency/SKILL.md +4 -4
- package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/boundaries.md +1 -1
- package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/chronicle-boundaries.md +1 -1
- package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/consistency-and-concurrency.md +2 -2
- package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/evolution.md +1 -1
- package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/stream-patterns.md +2 -2
- package/package/corpus/skills/cratis-screenplay-toolchain/SKILL.md +42 -61
- package/package/corpus/skills/cratis-screenplay-toolchain/references/automation-translate-example.md +1 -1
- package/package/corpus/skills/cratis-screenplay-toolchain/references/cheat-sheet-example.md +7 -9
- package/package/corpus/skills/cratis-screenplay-toolchain/references/cheat-sheet.md +15 -18
- package/package/corpus/skills/cratis-screenplay-toolchain/references/diagnostics.md +33 -53
- package/package/corpus/skills/cratis-screenplay-toolchain/references/executable-example.md +1 -1
- package/package/corpus/skills/cratis-screenplay-toolchain/references/executable-subset.md +82 -93
- package/package/corpus/skills/cratis-screenplay-toolchain/references/generated-responses-example.md +4 -5
- package/package/corpus/skills/cratis-screenplay-toolchain/references/generation-strategies-example.md +1 -2
- package/package/corpus/skills/cratis-screenplay-toolchain/references/preferred-syntax.md +5 -9
- package/package/corpus/skills/cratis-screenplay-toolchain/references/production-routes-and-filters.md +7 -16
- package/package/corpus/skills/cratis-screenplay-toolchain/references/renderable-subset.md +38 -92
- package/package/corpus/skills/cratis-screenplay-toolchain/references/screenplay-contract-exceptions.json +4 -11
- package/package/corpus/skills/cratis-screenplay-toolchain/references/sources-and-streams.md +14 -19
- package/package/corpus/skills/cratis-screenplay-toolchain/references/traps.md +32 -35
- package/package/corpus/skills/cratis-screenplay-toolchain/references/verdicts.md +119 -52
- package/package/corpus/skills/cratis-screenplay-toolchain/verification.json +18 -24
- package/package/corpus/skills/cratis-screenplay-ui-composition/SKILL.md +3 -3
- package/package/corpus/skills/cratis-screenplay-ui-composition/references/screen-composition-contract.md +2 -2
- package/package.json +1 -1
- package/package/corpus/skills/cratis-screenplay-toolchain/references/doc-contradictions.md +0 -72
- package/package/corpus/skills/cratis-screenplay-toolchain/references/provenance.md +0 -81
- package/package/corpus/skills/cratis-screenplay-toolchain/references/versions.md +0 -341
|
@@ -22,7 +22,7 @@ rule is in `cratis-screenplay-modeling-lifecycle` ("Decide the level first"); it
|
|
|
22
22
|
|
|
23
23
|
## Verified product sources
|
|
24
24
|
|
|
25
|
-
|
|
25
|
+
Tool versions are covered in `cratis-screenplay-toolchain` `SKILL.md`; read it before
|
|
26
26
|
selecting the compiler and renderer for delivery: the CLI bundles its own Screenplay and Stage;
|
|
27
27
|
its compiler version differs from the standalone pin. Render options (`--scope`,
|
|
28
28
|
`--check`, `--package-set`) and exit codes were read at cli `v3.53.1` `Documentation/reference/screenplay.md`
|
|
@@ -81,8 +81,8 @@ Supported event-triggered Automation slices also render as managed Chronicle rea
|
|
|
81
81
|
refused reactions, captures and Translate slices remain gap-fill.
|
|
82
82
|
|
|
83
83
|
Models with event sources, streams or command routes bind and reference-execute as ESM v8 on the standalone
|
|
84
|
-
tool, so report V3 and V4 from that tool. The
|
|
85
|
-
(`cratis-screenplay-toolchain/references/
|
|
84
|
+
tool, so report V3 and V4 from that tool. The CLI/Stage pair
|
|
85
|
+
(`cratis-screenplay-toolchain/references/renderable-subset.md`) reaches v8 route checks
|
|
86
86
|
and construct admission through v15. Public/foreign events and production overrides
|
|
87
87
|
still refuse; semantic reaction/reducer filters and role/authenticated `runs as` render.
|
|
88
88
|
Claim-reading/opaque system gates, legacy actor/filter paths and mixed effects still refuse. Keep refused scope as case A/C,
|
package/package/corpus/skills/cratis-screenplay-render-and-gap-fill/references/drift-and-ledger.md
CHANGED
|
@@ -34,7 +34,7 @@ Compare in this order:
|
|
|
34
34
|
never V4 or V5; it needs the same generation options (`--domain`, `--feature-root`, `--module`,
|
|
35
35
|
`--skip-segments`, `--modules-from-namespace-roots`) that reproduce the authored placement, or
|
|
36
36
|
everything looks missing. MSBuild evaluates the project (use a trusted clone) and the bundle's
|
|
37
|
-
`Cratis.Arc.Screenplay` is
|
|
37
|
+
`Cratis.Arc.Screenplay` is whichever version the CLI bundles (check `cratis --version` against the generator package loaded), so recovery behaves like that adapter. It does not replace
|
|
38
38
|
`cratis-application-slice-conformance`, which reconciles specifications, rules and behavior.
|
|
39
39
|
Whether it is meaningful on a Stage-rendered application is unverified.
|
|
40
40
|
|
package/package/corpus/skills/cratis-screenplay-render-and-gap-fill/references/gap-fill-handoff.md
CHANGED
|
@@ -86,8 +86,8 @@ not bind a modeled reaction or capture. Case C (no generated application): there
|
|
|
86
86
|
composition conventions (`rules/vertical-slices.md`, `cratis-chronicle-reactor`).
|
|
87
87
|
Declare the trusted actor with reaction `runs as system role "<Role>"`
|
|
88
88
|
(standalone 4.125.0, ESM v10); `given caller` is not an invocation actor.
|
|
89
|
-
Historical CLI 3.41.0's older compiler rejected the syntax. The
|
|
90
|
-
(`cratis-screenplay-toolchain/references/
|
|
89
|
+
Historical CLI 3.41.0's older compiler rejected the syntax. The CLI/Stage pair
|
|
90
|
+
(`cratis-screenplay-toolchain/references/renderable-subset.md`) renders role/authenticated reaction identity; claim-reading/opaque system gates still
|
|
91
91
|
refuse STAGE-ESM-034. Gap-fill retains the declared role and uses Arc
|
|
92
92
|
`[ExecuteCommandsAsSystem]` for returned commands. Checked model and diagnostics:
|
|
93
93
|
captures-and-reactions `references/invocation-identity.md`.
|
package/package/corpus/skills/cratis-screenplay-render-and-gap-fill/references/renderability-gate.md
CHANGED
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
The admitted subset itself (what Stage renders, member by member) is owned by
|
|
4
4
|
`cratis-stage-rendering-and-sandbox` (`references/admission.md`, the code table) and
|
|
5
|
-
`cratis-screenplay-toolchain` (`references/renderable-subset.md`);
|
|
6
|
-
`cratis-screenplay-toolchain` `
|
|
5
|
+
`cratis-screenplay-toolchain` (`references/renderable-subset.md`); reading installed versions is in
|
|
6
|
+
`cratis-screenplay-toolchain` `SKILL.md`. This file is about **classifying** what the
|
|
7
7
|
probe reports and choosing what to do. Do not copy the code table here.
|
|
8
8
|
|
|
9
9
|
## Pipeline that produces the codes
|
|
@@ -26,8 +26,8 @@ language cannot express today are recorded, not faked. Grammar and outcome compa
|
|
|
26
26
|
## Verified product sources
|
|
27
27
|
Screenplay v4.66.0 (`c89198b`) and v4.68.0 (`79801bf`, ESM v7 fixtures and `then returns`) were the
|
|
28
28
|
original sources; released behavior was re-read at v4.139.0 (`Documentation/screenplay/specifications.md`,
|
|
29
|
-
`queries.md`, the standalone compiler).
|
|
30
|
-
`cratis-screenplay-toolchain` `
|
|
29
|
+
`queries.md`, the standalone compiler). Reading the installed tool and bundle versions is covered in
|
|
30
|
+
`cratis-screenplay-toolchain` `SKILL.md`. At Screenplay v4.127.0,
|
|
31
31
|
MCP `find-specification-obligations` derives SPEC001–SPEC008 from declarations;
|
|
32
32
|
met means matching authored presence, not full coverage or passing execution.
|
|
33
33
|
Use it to seed, never replace, the matrix. Multi-step storylines remain unavailable;
|
|
@@ -41,8 +41,8 @@ the berth reservations example.
|
|
|
41
41
|
## Product facts checked
|
|
42
42
|
- Screenplay v4.66.0 (`c89198b`): `Documentation/screenplay/specifications.md` (actions, outcomes,
|
|
43
43
|
`then denied`, `then no readmodel`, `then query`, `then events in any order`, PLAY0352,
|
|
44
|
-
PLAY0389) and the
|
|
45
|
-
`references/
|
|
44
|
+
PLAY0389) and the capability notes in `cratis-screenplay-toolchain`
|
|
45
|
+
`references/executable-subset.md`.
|
|
46
46
|
- Screenplay#390 (specification obligations in MCP) and #394 (multi-step specifications) were
|
|
47
47
|
open when written: cited as not available.
|
|
48
48
|
- Stage v4.24.0: `STAGE-ESM-015` and `STAGE-ESM-011` admission diagnostics for policies and
|
package/package/corpus/skills/cratis-screenplay-scenario-coverage/references/scenario-catalogue.md
CHANGED
|
@@ -166,7 +166,7 @@ name them as unfinished.
|
|
|
166
166
|
capture, a reaction) the view or translation must cope with any order.
|
|
167
167
|
- Shape: view family whose givens are in a different order; translation specs where the
|
|
168
168
|
external record arrives before our own fact; `given clock`/`when clock` for deadlines
|
|
169
|
-
(binds on Screenplay 4.61 or later, so not on a cratis before 3.28.2 bundle: `cratis-screenplay-toolchain` `
|
|
169
|
+
(binds on Screenplay 4.61 or later, so not on a cratis before 3.28.2 bundle: `cratis-screenplay-toolchain` `SKILL.md`; see
|
|
170
170
|
`cratis-screenplay-automations-and-translations`).
|
|
171
171
|
- n/a: a single event source, with no external or cross-source input.
|
|
172
172
|
|
package/package/corpus/skills/cratis-screenplay-scenario-coverage/references/spec-forms-by-mode.md
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
# Specification forms by mode
|
|
2
2
|
|
|
3
3
|
The subsets themselves (what binds, what renders) are owned by `cratis-screenplay-toolchain`
|
|
4
|
-
(its executable and renderable subset references);
|
|
4
|
+
(its executable and renderable subset references); installed versions by its `SKILL.md`. This file
|
|
5
5
|
says what that means for writing specs. A form outside the chosen mode is never deleted from a
|
|
6
6
|
design model: keep it and record the gap. The detailed Stage 4.24.x rows below
|
|
7
|
-
retain historical admission evidence;
|
|
8
|
-
`cratis-screenplay-toolchain/
|
|
7
|
+
retain historical admission evidence; tool versions are covered in
|
|
8
|
+
`cratis-screenplay-toolchain/SKILL.md`. Run actual target admission instead of assuming old restrictions carry over.
|
|
9
9
|
Typed example/override forms: `cratis-screenplay-specifications`
|
|
10
10
|
`references/examples-and-routes.md`.
|
|
11
11
|
|
|
@@ -21,12 +21,12 @@ Typed example/override forms: `cratis-screenplay-specifications`
|
|
|
21
21
|
| Context `from`, single-result filters, `scoped to`, `performer` or composite `by` | yes | PLAY0268: query context, collection-only filtering, opaque scope/implementation or multipart lookup are unadmitted | no |
|
|
22
22
|
| `then no readmodel <RM> for "<key>"` | yes | yes | no |
|
|
23
23
|
| `when query` -> `then result` / `then no result` | yes | yes | same as `then query`: only the query-only cases below |
|
|
24
|
-
| `given clock` / `when clock`, `when trigger`, `given`/`when capture` | yes | yes (standalone and any current cratis; history: a cratis before 3.28.2 bundle no, see
|
|
24
|
+
| `given clock` / `when clock`, `when trigger`, `given`/`when capture` | yes | yes (standalone and any current cratis; history: a cratis before 3.28.2 bundle no, see toolchain `references/executable-subset.md`) | no |
|
|
25
25
|
| 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: STAGE-ESM-011; generated CommandScenario does not settle reactions (Stage 4.89.1) |
|
|
26
26
|
| `generated <name> = <value>` under `when`, `then returns` (ESM v7) | yes | yes on standalone Screenplay 4.68.0 or later and the current cratis bundle (history: PLAY0268 on the 4.66.0 bundled in cratis 3.28.x) | yes on Stage 4.89.1 for supported UUID/String strategies and v15 freshness and scalar/named responses; unsupported types/combinations remain -028/-038 |
|
|
27
27
|
| v15 generation strategy fixtures and used-source rejection | yes | strict encoding/size/case/version/variant; Contract for invalid pins, Concurrency for reused source | supported strategies/freshness render; invalid pins refuse -011, unpinned unordered/projected assertions -038; source: command-surface `references/generated-values-and-responses.md` |
|
|
28
28
|
| `then events in any order` | yes | yes | yes |
|
|
29
|
-
| Event `stream` / `no stream`, typed `for` and stream ids | yes | ESM v8 at 4.125.0 | The
|
|
29
|
+
| Event `stream` / `no stream`, typed `for` and stream ids | yes | ESM v8 at 4.125.0 | The CLI reaches Stage route checks (toolchain `references/renderable-subset.md`); routed read-model/query replay now renders (Stage 4.89.1); reserved names/unformattable fixtures remain STAGE-ESM-030 |
|
|
30
30
|
| Typed examples and overrides | yes | expanded and type-checked before binding; required fields remain required | depends on expanded contract, not fixture reuse |
|
|
31
31
|
| `given operation ... fails`, `then operation`, `then compensated` | yes | unadmitted PLAY0268 | gap-fill |
|
|
32
32
|
| Refusal branches, `when redelivered`, `then no events` | yes | unadmitted PLAY0268 | gap-fill |
|
|
@@ -245,8 +245,8 @@ Slice design is done when these hold; otherwise report what is open.
|
|
|
245
245
|
| Screenplay | `v4.66.0` (`c89198b`) | `commands.md`, `constraints.md`, `specifications.md`, `diagnostics.md` (`PLAY0191`, `PLAY0268`, `PLAY0271`, `PLAY0350`, `PLAY0381`, `PLAY0397`), `projections/keys.md` |
|
|
246
246
|
|
|
247
247
|
Examples compile with `screenplay` 4.68.0 `--warnaserror` and `cratis screenplay validate
|
|
248
|
-
--warnings-as-errors` (cratis 3.28.2 or later); other
|
|
249
|
-
`
|
|
248
|
+
--warnings-as-errors` (cratis 3.28.2 or later); other tool versions: `cratis-screenplay-toolchain`
|
|
249
|
+
`SKILL.md`. Compiling proves syntax, not that the model is executable or renders.
|
|
250
250
|
|
|
251
251
|
## Verify
|
|
252
252
|
|
|
@@ -3,7 +3,7 @@
|
|
|
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
5
|
(`PLAY0268` at binding); `given clock` also failed binding on a cratis before 3.28.2 bundle (3.28.2 binds it)
|
|
6
|
-
(`cratis-screenplay-toolchain` `
|
|
6
|
+
(`cratis-screenplay-toolchain` `SKILL.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
|
|
9
9
|
`require` operands (`locker.assigned`, `request.state`) must be command properties. So this
|
|
@@ -27,8 +27,8 @@ Retained inline-fact update evidence: [source notes](references/source-notes.md)
|
|
|
27
27
|
The historical parser/binder/reference-runner version table is in the source notes.
|
|
28
28
|
|
|
29
29
|
Specification syntax was checked against Screenplay v4.127.0 `specifications.md`;
|
|
30
|
-
older probes in the table remain historical.
|
|
31
|
-
`
|
|
30
|
+
older probes in the table remain historical. Tool versions: `cratis-screenplay-toolchain`
|
|
31
|
+
`SKILL.md`. Compile commands check source, not reference execution.
|
|
32
32
|
Use `screenplay test` or MCP `run-specifications` for V4; Stage/target tests are
|
|
33
33
|
separate evidence. On Screenplay **4.145.0 and later**, propose → review →
|
|
34
34
|
`run-specifications` with `proposalId` → apply.
|
|
@@ -287,7 +287,7 @@ For view specifications:
|
|
|
287
287
|
## Verify
|
|
288
288
|
|
|
289
289
|
- [ ] Validate the complete root with warnings as errors, naming tool/version.
|
|
290
|
-
Standalone
|
|
290
|
+
Standalone tool version: `cratis-screenplay-toolchain/SKILL.md`. Run specification examples through
|
|
291
291
|
`screenplay test`; expected unadmitted syntax reports unbound, not passed.
|
|
292
292
|
- [ ] Executable diagnostics are clean too: `PLAY0350`, `PLAY0352`, `PLAY0388`,
|
|
293
293
|
`PLAY0389` and `PLAY0273` are only reported at binding.
|
package/package/corpus/skills/cratis-screenplay-specifications/references/examples-and-routes.md
CHANGED
|
@@ -143,8 +143,8 @@ so UUID casing is immaterial. Composite mappings supply each named part once,
|
|
|
143
143
|
using literals only; encoding escapes `%`/`|` and preserves declaration order.
|
|
144
144
|
Source: v4.127.0 `event-sources.md`, `specifications.md`, `diagnostics.md`.
|
|
145
145
|
|
|
146
|
-
Previous CLI 3.46.1 refused above v7; the
|
|
147
|
-
(`cratis-screenplay-toolchain/references/
|
|
146
|
+
Previous CLI 3.46.1 refused above v7; the CLI/Stage pair
|
|
147
|
+
(`cratis-screenplay-toolchain/references/renderable-subset.md`) reaches route checks through v10. Routed read-model/query replay can still refuse
|
|
148
148
|
STAGE-ESM-030. Source/reference success never establishes target parity.
|
|
149
149
|
|
|
150
150
|
Command and read-model examples refuse routes (PLAY0526). Effective role and
|
|
@@ -29,7 +29,7 @@ Chronicle, asserting one append wins, one is rejected, and `IAppendResult.Concur
|
|
|
29
29
|
is `true` (a skipped check and a passing one look identical otherwise; a current client against
|
|
30
30
|
an older kernel always reads `false`). This was source- and documentation-inspected, not
|
|
31
31
|
concurrency-tested here. The Stage scaffold pins Chronicle client/kernel and Arc releases (see `cratis-stage-rendering-and-sandbox` `references/rendered-application.md`;
|
|
32
|
-
the CLI bundle's Chronicle
|
|
32
|
+
the CLI bundle's Chronicle follows the installed CLI: `cratis --version`); the APIs exist for gap-fill, not as automatically rendered enforcement.
|
|
33
33
|
|
|
34
34
|
## Verified product sources
|
|
35
35
|
|
|
@@ -40,7 +40,7 @@ the CLI bundle's Chronicle is in `cratis-screenplay-toolchain` `references/versi
|
|
|
40
40
|
| Arc | v22.72.0 | `[ProtectedDecision]` and `DecisionRead<T>` (since v22.39.0) |
|
|
41
41
|
| Stage | v4.89.1 | rendered apps pin the Arc and Chronicle client/kernel listed in the Stage skill's `references/rendered-application.md`; protected-read APIs available to gap-fill. Historical 4.24.2 admission probe: ESM v4, evolved events refused with `STAGE-ESM-026` |
|
|
42
42
|
|
|
43
|
-
|
|
43
|
+
Tool versions: `cratis-screenplay-toolchain` `SKILL.md`. Re-check the three
|
|
44
44
|
Chronicle issues before relying on a constraint in a later release.
|
|
45
45
|
|
|
46
46
|
## When / when not
|
|
@@ -88,7 +88,7 @@ option, mark it `ASSUMED` in the slice or module `documentation` and in the sess
|
|
|
88
88
|
namespace, process-stream routing and concurrency scope apart
|
|
89
89
|
(`references/chronicle-boundaries.md`). Declared `eventsource`/`stream`/`streamId` and
|
|
90
90
|
command/specification routes bind and reference-execute as ESM v8 on 4.125.0.
|
|
91
|
-
The
|
|
91
|
+
The CLI (toolchain `references/renderable-subset.md`) reaches Stage construct checks through v15; keep the routing
|
|
92
92
|
contract when target admission requires gap-fill. Forms/boundaries:
|
|
93
93
|
toolchain `references/sources-and-streams.md`. A `generated identifier` (ESM v7, standalone 4.68.0 and later; Stage 4.89.1 renders supported UUID/String strategies and v15 freshness; unsupported types/results still refuse -028/-038) is
|
|
94
94
|
generated fresh on every acceptance: it is not a retry identity, and generated values give no
|
|
@@ -144,7 +144,7 @@ option, mark it `ASSUMED` in the slice or module `documentation` and in the sess
|
|
|
144
144
|
decisions and capability gaps in `STATE.md`. Then the gate below.
|
|
145
145
|
|
|
146
146
|
## Rules
|
|
147
|
-
**Compiler contracts** (diagnostics at Screenplay v4.66.0 and v4.68.0; capability per tool in `
|
|
147
|
+
**Compiler contracts** (diagnostics at Screenplay v4.66.0 and v4.68.0; capability per tool in the toolchain `references/executable-subset.md`)
|
|
148
148
|
- `identifier` on an event property is PLAY0019; the source id is never payload by declaration.
|
|
149
149
|
Copying it as a payload value is PLAY0469 (information, warning for inline events).
|
|
150
150
|
- In the executable model a production's `for` must resolve to the command's scalar identifier:
|
package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/boundaries.md
CHANGED
|
@@ -171,7 +171,7 @@ integration support.
|
|
|
171
171
|
| Situation | Construct |
|
|
172
172
|
|---|---|
|
|
173
173
|
| another module in the same application | reference the event by name (cross-module resolution works within one application) |
|
|
174
|
-
| another bounded context's contract | `event X from "store"` (shape declared locally, ESM v9); an unquoted `import Context.Event` or `import Q.X from "store"` has no local shape and stays PLAY0268 (see `
|
|
174
|
+
| another bounded context's contract | `event X from "store"` (shape declared locally, ESM v9); an unquoted `import Context.Event` or `import Q.X from "store"` has no local shape and stays PLAY0268 (see toolchain `references/executable-subset.md`) |
|
|
175
175
|
| my own files | quoted `import "glob"` |
|
|
176
176
|
| outside data entering | `Translate` slice: `capture`, or a translator `reaction` over an imported event (`cratis-screenplay-automations-and-translations`) |
|
|
177
177
|
| our fact another context needs | a public summary event; the other side translates it into its own language |
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# Chronicle boundaries
|
|
2
2
|
|
|
3
3
|
Read when consistency, tenancy or personal data decides where a boundary falls. These are
|
|
4
|
-
target facts; the `.play` model declares only part of them (`
|
|
4
|
+
target facts; the `.play` model declares only part of them (`references/executable-subset.md` in
|
|
5
5
|
`cratis-screenplay-toolchain`).
|
|
6
6
|
|
|
7
7
|
## Pins
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
- 9. Corrections and backdated facts
|
|
14
14
|
- 10. Specification limits (no local spec engine)
|
|
15
15
|
|
|
16
|
-
Historical checks: Screenplay v4.66.0, Chronicle v19.32.0, Arc v22.50.5, Stage v4.24.2 (
|
|
16
|
+
Historical checks: Screenplay v4.66.0, Chronicle v19.32.0, Arc v22.50.5, Stage v4.24.2 (for installed tool versions see `SKILL.md` of
|
|
17
17
|
`cratis-screenplay-toolchain`).
|
|
18
18
|
|
|
19
19
|
Routing identity checks verified at 4.127.0: PLAY0515 refuses personal/secret
|
|
@@ -198,7 +198,7 @@ behaviour. Write the answer in the slice `documentation`.
|
|
|
198
198
|
between two different sources: `for` on `given` events (ESM v2) establishes a claim on one source
|
|
199
199
|
and attempts the same value on another (`specifications.md`; `streams-example.md` uses it). It is a
|
|
200
200
|
sequential history, not a race proof. The `constraints.md` sentence that it "cannot yet show a
|
|
201
|
-
collision between two event sources" is stale (`
|
|
201
|
+
collision between two event sources" is stale (Screenplay `constraints.md` versus `specifications.md`).
|
|
202
202
|
Spec outcomes come only from a reference run (V4) or rendered tests. See `cratis-screenplay-scenario-coverage`.
|
|
203
203
|
- Constraint violation messages are fixed strings: copy them exactly into `then error`.
|
|
204
204
|
- For every value constraint write a competing-claim spec (one source owns the value, a
|
package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/evolution.md
CHANGED
|
@@ -74,7 +74,7 @@ Sources: Cratis/Screenplay `v4.152.0`, `Documentation/screenplay/events.md:116-1
|
|
|
74
74
|
`Source/DotNET/Screenplay/Semantics/SemanticModelBinder.StoredEventNames.cs:15-35`,
|
|
75
75
|
`SemanticModelBinder.Structure.cs:16-17,215` in the same folder, and
|
|
76
76
|
`Source/DotNET/Screenplay.Mcp/McpWorkspaces.Refactoring.cs:82`.
|
|
77
|
-
Target evidence: toolchain `references/
|
|
77
|
+
Target evidence: toolchain `references/diagnostics.md` (Reserved stored names and event pins).
|
|
78
78
|
Source/stream stored names already travel in ESM v8; stream `All` remains reserved
|
|
79
79
|
regardless of a pin (toolchain `sources-and-streams.md`).
|
|
80
80
|
|
|
@@ -216,8 +216,8 @@ Some event stores decide consistency by a query over tagged events instead of on
|
|
|
216
216
|
check to event types, source type or stream (`concurrency` block, Screenplay
|
|
217
217
|
`commands.md`). Legacy concurrency metadata still fails binding (PLAY0271),
|
|
218
218
|
but sources/streams/routes bind and reference-execute as ESM v8 on 4.125.0.
|
|
219
|
-
Route admission does not make a view read protected. The
|
|
220
|
-
through v10
|
|
219
|
+
Route admission does not make a view read protected. The CLI (toolchain `references/renderable-subset.md`) reaches Stage construct checks
|
|
220
|
+
through v10. Model the stream by business
|
|
221
221
|
identity; when a rule truly needs a cross-stream decision, record it (see
|
|
222
222
|
`consistency-and-concurrency.md`) rather than inventing a construct.
|
|
223
223
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: cratis-screenplay-toolchain
|
|
3
|
-
description: "
|
|
3
|
+
description: "How to run and check Cratis Screenplay `.play` models: locating the model, choosing the standalone `screenplay` tool or the `cratis` CLI, the exact command behind each verdict V1 to V5 and what a pass looks like, the executable and renderable subsets, reading PLAY, STAGE and CLI-RENDER diagnostics, traps, and a compiled cheat-sheet. Use when choosing a compiler, running or reading a verdict, fixing a diagnostic, or deciding whether syntax binds or renders. Not for: what to model or the phase workflow (use `cratis-screenplay-modeling-lifecycle`), the MCP editing loop (use `cratis-screenplay-model-authoring`), rendering workflow (use `cratis-screenplay-render-and-gap-fill`)."
|
|
4
4
|
license: MIT
|
|
5
5
|
---
|
|
6
6
|
|
|
@@ -20,20 +20,15 @@ skill answers "does it compile, bind, render, and which compiler said so". The m
|
|
|
20
20
|
Look first in the model root: the folder holding the project's `.play` files (else `Source/` or `src/`, else `Screenplay/`), or the root the project set with `mcpServers.screenplay.root` in `.cratis/ai.json`. A folder of `.play`
|
|
21
21
|
files is one application: always check the folder, never one file of it.
|
|
22
22
|
|
|
23
|
-
##
|
|
23
|
+
## Tool versions and the contract
|
|
24
24
|
|
|
25
|
-
|
|
25
|
+
Read the installed versions first: `screenplay --version`, `cratis --version`, and `which -a cratis`
|
|
26
|
+
(an older copy earlier on `PATH` shadows a newer install). The standalone tool and the compiler
|
|
27
|
+
bundled in the CLI are different releases, and the bundled one can be older; a construct the
|
|
28
|
+
standalone tool binds may be refused or unrendered through the CLI. Capabilities that need a
|
|
29
|
+
minimum release carry a one-line `Requires ...` note in the reference that teaches them.
|
|
26
30
|
|
|
27
|
-
|
|
28
|
-
CLI and bundled package pins: `references/versions.md`. The single version table records
|
|
29
|
-
released source evidence and historical probes separately; do not relabel an old
|
|
30
|
-
render/browser result as a probe of the current packages.
|
|
31
|
-
|
|
32
|
-
Historical screens-release evidence: CLI 3.40.7 / Stage 4.51.1 / bundled
|
|
33
|
-
Screenplay 4.114.0 opened the canonical corpus with `executableReady true`
|
|
34
|
-
and the stdio transcript exposed 37 tools; standalone language 4.122.0 was
|
|
35
|
-
recorded in that vector. These retained results are not a rerun on CLI 3.53.1
|
|
36
|
-
or the current standalone pin.
|
|
31
|
+
For exact diagnostic codes, MCP names/parameters and standalone CLI options, search the large published [references/screenplay-contract.json](references/screenplay-contract.json), named by [references/screenplay-contract.version](references/screenplay-contract.version), rather than loading it in full. Locate a diagnostic by its exact `code` (for example `"code": "PLAY0029"`), a tool by its exact `name` (for example `"name": "read-workspace"`), or a command in `cliCommands`; read the matched object for retirement, parameters or options. [references/screenplay-contract-exceptions.json](references/screenplay-contract-exceptions.json) records reasoned exceptions for superseded statements; it does not change the current contract.
|
|
37
32
|
|
|
38
33
|
## Ground rules
|
|
39
34
|
|
|
@@ -44,12 +39,11 @@ or the current standalone pin.
|
|
|
44
39
|
`cratis screenplay validate <folder> --warnings-as-errors`. Warnings hide defects:
|
|
45
40
|
PLAY0029 (a misspelt keyword or a `type` inside a slice) drops a construct silently.
|
|
46
41
|
3. **Pick the compiler deliberately and name it.** Standalone `screenplay` for
|
|
47
|
-
|
|
48
|
-
and generation.
|
|
49
|
-
|
|
50
|
-
version, rather than transferring a verdict across releases.
|
|
42
|
+
language checks and reference specifications; `cratis` for rendering
|
|
43
|
+
and generation. Report both tool and version, rather than transferring a verdict across
|
|
44
|
+
releases.
|
|
51
45
|
4. **Know the mode** (design, executable, renderable) and write from its subset.
|
|
52
|
-
5. **Capability is not correctness.** The tool you ran decides what is accepted
|
|
46
|
+
5. **Capability is not correctness.** The tool you ran decides what is accepted; the
|
|
53
47
|
domain and the documented semantics decide what is correct. On conflict keep the correct
|
|
54
48
|
model and record a tool gap; never reshape a model to silence a tool.
|
|
55
49
|
6. **Never remove `pii`, `secret`, authorization, list queries, automations or rules
|
|
@@ -70,9 +64,11 @@ or the current standalone pin.
|
|
|
70
64
|
| Scope/checks | `--scope <address>`, `--check <names>`; a scoped pass is not whole-application success | `validate --executable` (bundled binder, no write), `--check <names>`, `--scope`; `render --scope`/`--check`; `cratis screenplay conform` |
|
|
71
65
|
| Reference execution | `screenplay test <root>` or MCP `run-specifications` | Discover bundled MCP capability; target tests are not V4 |
|
|
72
66
|
| MCP | `screenplay mcp <root>`; discover schemas | `cratis screenplay mcp [root]`; registered by `cratis ai install` |
|
|
73
|
-
| Render
|
|
67
|
+
| Render boundary | Binder admission is not Stage admission | The CLI renders only ESM versions it knows; a newer bound model gets `CLI-RENDER-004` |
|
|
68
|
+
|
|
69
|
+
Read `references/verdicts.md` for exact commands, exit codes, the MCP roots caveat and the model notes gate.
|
|
74
70
|
|
|
75
|
-
|
|
71
|
+
Requires Cratis CLI 3.57.0 or later (`cratis --version`) to render models that use equality filters or concept generation strategies (ESM v14 and v15); an older CLI answers `CLI-RENDER-004`.
|
|
76
72
|
|
|
77
73
|
MCP calls below use the `screenplay` server declared in `.cratis/ai/mcp-servers.json`, for example `screenplay` → `read-workspace`.
|
|
78
74
|
|
|
@@ -89,10 +85,9 @@ Independent results, not a ladder. Read `references/verdicts.md` for the command
|
|
|
89
85
|
| V5 | rendered and target-verified | `cratis render`, then Debug build and tests; report admission, publication, build and tests separately |
|
|
90
86
|
|
|
91
87
|
V2 and V3 need MCP (V3 alone can also be read from `cratis screenplay validate --executable <root>`, labeled as the bundled compiler): send `initialize`, then `notifications/initialized`, and start the
|
|
92
|
-
server with a fixed root
|
|
93
|
-
4.60.1 bundled by cratis before 3.28.2; 4.66.0 and later and cratis 3.28.2 are fine). A subagent without MCP reports "V2 not run: no MCP in this agent".
|
|
88
|
+
server with a fixed root. A subagent without MCP reports "V2 not run: no MCP in this agent".
|
|
94
89
|
|
|
95
|
-
One line per verdict, tool first, for example `V1 pass (screenplay
|
|
90
|
+
One line per verdict, tool first, for example `V1 pass (screenplay <version>, 3 files)` and
|
|
96
91
|
`V3 blocked: PLAY0268 x3 (context filter, enum compliance)`. Name the source identity (commit plus the digest from
|
|
97
92
|
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
|
|
98
93
|
`modelRevision`, which is semantic and, without `.screenplay/identities.json`,
|
|
@@ -103,46 +98,36 @@ changes with the root folder name.
|
|
|
103
98
|
- **Design**: every construct family parses; use it to model first. Compiled shapes:
|
|
104
99
|
`references/cheat-sheet.md`. Read [references/cheat-sheet-example.md](references/cheat-sheet-example.md) when you need one complete design-mode document with every construct family.
|
|
105
100
|
- **Executable** (binds, V3): `references/executable-subset.md`. Optional keyed lookups, unfiltered
|
|
106
|
-
lists and lists narrowed by one `by` key (observable too); caller-supplied equality
|
|
107
|
-
filters on collections bind as v14
|
|
101
|
+
lists and lists narrowed by one `by` key (observable too) bind; caller-supplied equality
|
|
102
|
+
filters on collections bind as ESM v14. Context `from`, single-result
|
|
108
103
|
filters, opaque `scoped to`/`performer` and composite `by` remain PLAY0268. Read
|
|
109
104
|
read-surface [equality filters](../cratis-screenplay-read-surface/references/equality-filters.md). No handler (PLAY0268, with or without `implementation`/`hint`); `reads` and
|
|
110
|
-
`concurrency` do not bind (PLAY0271); concept compliance binds as v13
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
from Screenplay 4.68.0 (also in the current CLI bundle) (`references/generated-responses-example.md`). Read [references/executable-example.md](references/executable-example.md) when you need a small StateChange and StateView model that binds executable, [references/pdl-example.md](references/pdl-example.md) when writing projection forms that bind and run, and [references/automation-translate-example.md](references/automation-translate-example.md) when writing Automation and Translate slices (ESM v6).
|
|
115
|
-
- **Renderable** (V5): `references/renderable-subset.md` has the current Stage 4.89.1 table and
|
|
116
|
-
explicitly labeled older probes. CLI 3.57.0 admits through v15; supported UUID/String
|
|
105
|
+
`concurrency` do not bind (PLAY0271); concept compliance binds as v13 (precise refusals: command-surface `references/compliance.md`);
|
|
106
|
+
generated values and `returns` responses bind (ESM v7, `references/generated-responses-example.md`). Read [references/executable-example.md](references/executable-example.md) when you need a small StateChange and StateView model that binds executable, [references/pdl-example.md](references/pdl-example.md) when writing projection forms that bind and run, and [references/automation-translate-example.md](references/automation-translate-example.md) when writing Automation and Translate slices (ESM v6).
|
|
107
|
+
- **Renderable** (V5): `references/renderable-subset.md` has the admission table. The CLI admits through
|
|
108
|
+
its newest known ESM version to construct checks; supported UUID/String
|
|
117
109
|
generation/responses, enum numbers, compliance, equality filters and event reactions render.
|
|
118
110
|
Unsupported generated types still get `STAGE-ESM-028`; result combinations get `-038`.
|
|
119
111
|
Newer versions refuse `CLI-RENDER-004`. Run admission
|
|
120
112
|
before claiming a particular model renders (`cratis render --scope` for an admitted part, `--check`
|
|
121
113
|
for no-write planning).
|
|
122
|
-
- **Event sources, streams and routes** bind as ESM v8
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
qualifying retained non-route Double literals select v11 at 4.135.0.
|
|
129
|
-
Composite view keys remain authoring-only (PLAY0268, #599), while one explicit
|
|
114
|
+
- **Event sources, streams and routes** bind as ESM v8. Operations and exact numeric source mode remain
|
|
115
|
+
unadmitted. Details: `references/sources-and-streams.md`.
|
|
116
|
+
- **Public contracts and routes (v9/v10/v11):** public contracts and direction select v9;
|
|
117
|
+
reaction identity, production overrides and observer filters select v10;
|
|
118
|
+
qualifying retained non-route Double literals select v11.
|
|
119
|
+
Composite view keys remain authoring-only (PLAY0268), while one explicit
|
|
130
120
|
`key` binds. Read `references/production-routes-and-filters.md` and read-surface
|
|
131
|
-
`references/named-keys.md
|
|
132
|
-
|
|
133
|
-
- **Published v12 (4.139.0):** non-positional enum numbers bind; canonical
|
|
121
|
+
`references/named-keys.md`.
|
|
122
|
+
- **Enum numbers (v12):** non-positional enum numbers bind; canonical
|
|
134
123
|
`numbers` parallels `values`. Positional pins preserve earlier executable
|
|
135
|
-
bytes/version. Specifications still use names.
|
|
136
|
-
non-positional numbers, and Stage 4.89.1 admits v12 and emits `Member = N`. Syntax:
|
|
124
|
+
bytes/version. Specifications still use names. Stage admits v12 and emits `Member = N`. Syntax:
|
|
137
125
|
command-surface `references/enum-numbers.md`; errors PLAY0667–0670 and opt-in
|
|
138
126
|
`enum-pinning` hint PLAY0671: `references/diagnostics.md`.
|
|
139
|
-
|
|
140
|
-
- **Published v15 (4.147.0):** concept strategies and Guarded freshness; strict fixture shapes,
|
|
127
|
+
- **Concept strategies (v15):** concept strategies and Guarded freshness; strict fixture shapes,
|
|
141
128
|
no silent retry. Read [references/generation-strategies-example.md](references/generation-strategies-example.md)
|
|
142
129
|
and command-surface `references/generated-values-and-responses.md` for supported strategies/refusals.
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
- **Caller/compliance metadata** at 4.127.0: `$identity` aliases caller built-ins;
|
|
130
|
+
- **Caller/compliance metadata:** `$identity` aliases caller built-ins;
|
|
146
131
|
additional identity details are metadata and executable reads still refuse.
|
|
147
132
|
Bare `pii`/`secret` replace legacy spellings; `pii personal` repeats one marker
|
|
148
133
|
(PLAY0653). Purposes/checks/processing records and event `subject` are report-only,
|
|
@@ -173,14 +158,14 @@ changes with the root folder name.
|
|
|
173
158
|
|
|
174
159
|
## Top traps
|
|
175
160
|
|
|
176
|
-
All 44, with fixes: `references/traps.md`. Read `references/traps.md` when diagnosing an unexpected compile, binding, rendering or MCP result.
|
|
161
|
+
All 44 traps, with fixes: `references/traps.md`. Read `references/traps.md` when diagnosing an unexpected compile, binding, rendering or MCP result.
|
|
177
162
|
|
|
178
|
-
Read [references/diagnostics.md](references/diagnostics.md) when a PLAY, STAGE or CLI-RENDER diagnostic needs its meaning and fix.
|
|
163
|
+
Read [references/diagnostics.md](references/diagnostics.md) when a PLAY, STAGE or CLI-RENDER diagnostic needs its meaning and fix. When the Screenplay documentation and the compiler disagree, follow the compiler for what is accepted, keep the intended semantics in the model, and record the gap.
|
|
179
164
|
|
|
180
165
|
1. Clean V1 is not executable: only MCP (V2) or `render` binds.
|
|
181
166
|
2. Prefer inline `produces event` for a command-owned event; plain command productions need explicit `for <identifier>`.
|
|
182
167
|
3. PLAY0029 is a warning: validate with warnings as errors.
|
|
183
|
-
4. Validate the folder; name the compiler
|
|
168
|
+
4. Validate the folder; name the compiler.
|
|
184
169
|
5. V1 warns on undeclared projection targets (`PLAY0514`) and removal/capture
|
|
185
170
|
event references (`PLAY0166`). Unmapped declared fields can be reported by
|
|
186
171
|
opt-in `--check field-origins` (`PLAY0534`); unknown coverage is skipped, so
|
|
@@ -190,7 +175,7 @@ Read [references/diagnostics.md](references/diagnostics.md) when a PLAY, STAGE o
|
|
|
190
175
|
7. Mark read-model identity with trailing `key`, not `identifier`. Otherwise single-instance
|
|
191
176
|
queries must agree on `by`; only with none and an admitted list query can `*Id`
|
|
192
177
|
inference run. Queryless views need `key` (read-surface `references/named-keys.md`).
|
|
193
|
-
Align projection keys. Multipart keys remain PLAY0268
|
|
178
|
+
Align projection keys. Multipart keys remain PLAY0268.
|
|
194
179
|
8. Projection `key` routes only on `from`; joins never create; `all` is per source.
|
|
195
180
|
9. `null` only for optional read-model properties in specifications.
|
|
196
181
|
10. `then` events are exhaustive and ordered; after `when append` they list only what followed.
|
|
@@ -216,9 +201,9 @@ reason; blocked verdicts list codes and keep the protection they blocked on.
|
|
|
216
201
|
- [ ] Any new example fence compiles with the standalone tool; unmarked fences also pass
|
|
217
202
|
`cratis screenplay validate --warnings-as-errors`.
|
|
218
203
|
|
|
219
|
-
Read [model notes gate](references/
|
|
220
|
-
unresolved questions: standalone
|
|
221
|
-
|
|
204
|
+
Read [model notes gate](references/verdicts.md#model-notes-gate) when checking
|
|
205
|
+
unresolved questions: the standalone tool has `--open-questions fail`; `cratis screenplay validate`
|
|
206
|
+
does not. It is separate from compilation and `--warnaserror`.
|
|
222
207
|
|
|
223
208
|
## Route near misses
|
|
224
209
|
|
|
@@ -230,7 +215,3 @@ unresolved questions: standalone 4.144.0 has `--open-questions fail`; Cratis CLI
|
|
|
230
215
|
- Rendering and gap-fill: `cratis-screenplay-render-and-gap-fill`,
|
|
231
216
|
`cratis-stage-rendering-and-sandbox`.
|
|
232
217
|
- Running systems (Chronicle server operations through the `cratis` CLI, with its authorization boundaries): `cratis-chronicle-cli-operations`.
|
|
233
|
-
|
|
234
|
-
## Lineage
|
|
235
|
-
|
|
236
|
-
Read `references/provenance.md` when checking attribution or the sources behind this guidance.
|
package/package/corpus/skills/cratis-screenplay-toolchain/references/automation-translate-example.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Automation and Translate example (ESM v6)
|
|
2
2
|
|
|
3
|
-
Executable Automation and Translate slices. Binds
|
|
3
|
+
Executable Automation and Translate slices. Binds as `executableReady` on the standalone tool and on the compiler bundled in the CLI; see [executable-subset.md](executable-subset.md) for what renders. 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
|
|
|
@@ -1,13 +1,11 @@
|
|
|
1
1
|
# Cheat-sheet example (design mode)
|
|
2
2
|
|
|
3
|
-
One complete document with every construct family. Design mode, not executable. Prose rules: [cheat-sheet.md](cheat-sheet.md);
|
|
3
|
+
One complete document with every construct family. Design mode, not executable. Prose rules: [cheat-sheet.md](cheat-sheet.md); what binds: [executable-subset.md](executable-subset.md).
|
|
4
4
|
|
|
5
|
-
Binding blockers: unquoted import, `reads` (PLAY0271), `starts with`. Caller-supplied collection equality filters bind as ESM v14
|
|
5
|
+
Binding blockers: unquoted import, `reads` (PLAY0271), `starts with`. Caller-supplied collection equality filters bind as ESM v14; context and single-result filters remain blocked. Executable shapes are in the sibling examples. `RecordingAPayment` lists the `InvoiceClosed` cascade; an older bundled compiler rejected it with a false PLAY0285 ("outcome cannot be produced by 'RecordPayment'").
|
|
6
6
|
|
|
7
|
-
Concept compliance itself binds as ESM v13
|
|
8
|
-
|
|
9
|
-
4.147.1 / Stage 4.89.1 and renders v13 concept protection. Binder-only PLAY0268
|
|
10
|
-
refusals and subject-lineage limits: command-surface `references/compliance.md`.
|
|
7
|
+
Concept compliance itself binds as ESM v13; reasons remain report-only PLAY0270. Stage renders v13 concept
|
|
8
|
+
protection. Binder-only PLAY0268 refusals and subject-lineage limits: command-surface `references/compliance.md`.
|
|
11
9
|
|
|
12
10
|
```screenplay test=unbound
|
|
13
11
|
// Design-mode cheat-sheet: every construct family; compiles warning-free on the standalone tool.
|
|
@@ -17,7 +15,7 @@ import Customers.CustomerRegistered // unquoted = another bounded context
|
|
|
17
15
|
|
|
18
16
|
concept InvoiceId : Uuid // primitives: Uuid String Int Decimal Bool Date DateTime Enum
|
|
19
17
|
concept PaymentId : Uuid
|
|
20
|
-
concept Email : String pii //
|
|
18
|
+
concept Email : String pii // concept compliance binds as ESM v13
|
|
21
19
|
pii reason "Identifies a person"
|
|
22
20
|
validate
|
|
23
21
|
not empty message "An email is required"
|
|
@@ -158,7 +156,7 @@ module Billing
|
|
|
158
156
|
number String
|
|
159
157
|
query InvoiceById => InvoiceRow optional // keyed optional lookup (unfiltered lists bind too)
|
|
160
158
|
by invoiceId InvoiceId
|
|
161
|
-
query ListInvoices => observable InvoiceRow[] // caller-supplied equality filter: ESM v14
|
|
159
|
+
query ListInvoices => observable InvoiceRow[] // caller-supplied equality filter: ESM v14
|
|
162
160
|
filter number String optional
|
|
163
161
|
projection InvoiceList => InvoiceRow
|
|
164
162
|
from InvoiceRegistered
|
|
@@ -248,7 +246,7 @@ module Housekeeping // no gates: this reaction
|
|
|
248
246
|
produces event InvoiceMarkedOverdue
|
|
249
247
|
overdueAt DateTime = $context.occurred
|
|
250
248
|
// No command spec here: under ESM v6 it must list the ReminderSent cascade. The file is
|
|
251
|
-
// RecordingAPayment's cascade
|
|
249
|
+
// RecordingAPayment's cascade: an older bundled compiler reported a false PLAY0285 here.
|
|
252
250
|
// The cascade form: automation-translate-example.md (SubscribingAMember).
|
|
253
251
|
|
|
254
252
|
slice Automation RemindOverdue
|