@cratis/pi 7.51.5 → 7.52.0
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/glossary.instructions.md +2 -1
- package/package/corpus/harnesses/copilot/instructions/profiles.instructions.md +15 -0
- package/package/corpus/product-sync.json +26 -20
- package/package/corpus/rules/glossary.md +2 -1
- package/package/corpus/rules/profiles.md +15 -0
- package/package/corpus/skills/cratis-application-slice-specifications/references/query-and-decision-scenarios.md +14 -3
- package/package/corpus/skills/cratis-arc-command/SKILL.md +4 -0
- package/package/corpus/skills/cratis-arc-command/references/decisions-and-routing.md +22 -3
- package/package/corpus/skills/cratis-arc-command/references/fresh-identifiers.md +52 -0
- package/package/corpus/skills/cratis-arc-command/references/generated-values.md +7 -7
- package/package/corpus/skills/cratis-arc-command/references/handler-shapes.md +9 -0
- package/package/corpus/skills/cratis-arc-command/references/proxy-generation.md +5 -0
- package/package/corpus/skills/cratis-arc-command/references/read-model-injection.md +11 -0
- package/package/corpus/skills/cratis-arc-command-execution/SKILL.md +12 -1
- package/package/corpus/skills/cratis-arc-command-execution/references/command-refusals.md +65 -0
- package/package/corpus/skills/cratis-arc-command-validation/SKILL.md +5 -0
- package/package/corpus/skills/cratis-arc-hosting/SKILL.md +1 -0
- package/package/corpus/skills/cratis-arc-observable-query-http/SKILL.md +6 -0
- package/package/corpus/skills/cratis-chronicle-client-dotnet/references/additional-surfaces.md +18 -0
- package/package/corpus/skills/cratis-chronicle-client-dotnet/references/discovery.md +33 -1
- package/package/corpus/skills/cratis-chronicle-client-dotnet/references/lifecycle.md +7 -1
- package/package/corpus/skills/cratis-chronicle-compliance/SKILL.md +5 -0
- package/package/corpus/skills/cratis-chronicle-decision-reads/SKILL.md +17 -0
- package/package/corpus/skills/cratis-chronicle-decision-reads/references/choosing-how-a-rule-holds.md +3 -3
- package/package/corpus/skills/cratis-chronicle-event-constraints/SKILL.md +4 -0
- package/package/corpus/skills/cratis-chronicle-event-constraints/references/storage-uniqueness.md +28 -0
- package/package/corpus/skills/cratis-chronicle-event-modeling/SKILL.md +5 -3
- package/package/corpus/skills/cratis-chronicle-event-specifications/SKILL.md +7 -0
- package/package/corpus/skills/cratis-chronicle-event-type-migration/SKILL.md +18 -0
- package/package/corpus/skills/cratis-chronicle-event-type-migration/references/explicit-migrations.md +46 -0
- package/package/corpus/skills/cratis-chronicle-hosting/SKILL.md +8 -0
- package/package/corpus/skills/cratis-chronicle-hosting/references/operations.md +42 -0
- package/package/corpus/skills/cratis-chronicle-multi-tenancy/SKILL.md +1 -0
- package/package/corpus/skills/cratis-chronicle-projection/references/model-bound-attributes.md +6 -0
- package/package/corpus/skills/cratis-chronicle-projection/references/variants.md +7 -0
- package/package/corpus/skills/cratis-chronicle-reactor/SKILL.md +13 -7
- package/package/corpus/skills/cratis-chronicle-reactor/references/cross-service-events.md +9 -2
- package/package/corpus/skills/cratis-chronicle-reactor/references/return-event-metadata.md +7 -0
- package/package/corpus/skills/cratis-chronicle-reactor/references/slice-delivery-checklist.md +3 -3
- package/package/corpus/skills/cratis-chronicle-reactor/references/specifications.md +11 -5
- package/package/corpus/skills/cratis-chronicle-read-model/SKILL.md +8 -4
- package/package/corpus/skills/cratis-chronicle-read-model/references/collection-observation.md +49 -0
- package/package/corpus/skills/cratis-chronicle-read-model/references/queries.md +13 -2
- package/package/corpus/skills/cratis-chronicle-read-model-specifications/SKILL.md +8 -0
- package/package/corpus/skills/cratis-chronicle-web-workbench/SKILL.md +15 -0
- package/package/corpus/skills/cratis-multi-service-architecture/SKILL.md +204 -0
- package/package/corpus/skills/cratis-multi-service-architecture/references/publish-and-consume.md +229 -0
- package/package/corpus/skills/cratis-multi-service-local-orchestration/SKILL.md +172 -0
- package/package/corpus/skills/cratis-multi-service-local-orchestration/references/docker-compose.md +144 -0
- package/package/corpus/skills/cratis-screenplay-automations-and-translations/SKILL.md +4 -0
- package/package/corpus/skills/cratis-screenplay-automations-and-translations/references/automation-patterns.md +1 -1
- package/package/corpus/skills/cratis-screenplay-automations-and-translations/references/effects-and-idempotency.md +24 -5
- package/package/corpus/skills/cratis-screenplay-automations-and-translations/references/public-events-and-direction.md +1 -1
- package/package/corpus/skills/cratis-screenplay-captures-and-reactions/SKILL.md +11 -6
- package/package/corpus/skills/cratis-screenplay-captures-and-reactions/references/invocation-identity.md +3 -1
- package/package/corpus/skills/cratis-screenplay-captures-and-reactions/references/refusals-and-redelivery.md +97 -26
- package/package/corpus/skills/cratis-screenplay-command-surface/references/compliance.md +2 -1
- package/package/corpus/skills/cratis-screenplay-command-surface/references/generated-values-and-responses.md +45 -10
- package/package/corpus/skills/cratis-screenplay-command-surface/verification.json +3 -1
- package/package/corpus/skills/cratis-screenplay-event-modeling/SKILL.md +1 -0
- package/package/corpus/skills/cratis-screenplay-event-modeling/references/parsed-not-runnable.md +10 -6
- package/package/corpus/skills/cratis-screenplay-model-authoring/SKILL.md +5 -1
- package/package/corpus/skills/cratis-screenplay-model-authoring/references/language-reference.md +7 -3
- package/package/corpus/skills/cratis-screenplay-model-authoring/references/mcp-loop.md +28 -12
- package/package/corpus/skills/cratis-screenplay-model-authoring/references/mcp-tools.md +29 -6
- package/package/corpus/skills/cratis-screenplay-model-authoring/references/screen-authoring-workflow.md +15 -3
- package/package/corpus/skills/cratis-screenplay-model-authoring/verification.json +4 -1
- package/package/corpus/skills/cratis-screenplay-model-review/references/checklist.md +1 -1
- package/package/corpus/skills/cratis-screenplay-read-surface/SKILL.md +4 -0
- package/package/corpus/skills/cratis-screenplay-render-and-gap-fill/SKILL.md +5 -1
- package/package/corpus/skills/cratis-screenplay-render-and-gap-fill/references/delivery-protocol.md +1 -1
- package/package/corpus/skills/cratis-screenplay-render-and-gap-fill/references/renderability-gate.md +1 -1
- package/package/corpus/skills/cratis-screenplay-scenario-coverage/SKILL.md +9 -1
- package/package/corpus/skills/cratis-screenplay-scenario-coverage/references/scenario-catalogue.md +12 -10
- package/package/corpus/skills/cratis-screenplay-scenario-coverage/references/spec-forms-by-mode.md +11 -6
- package/package/corpus/skills/cratis-screenplay-slice-design/references/field-lineage.md +1 -1
- package/package/corpus/skills/cratis-screenplay-specifications/SKILL.md +18 -10
- package/package/corpus/skills/cratis-screenplay-specifications/references/examples-and-routes.md +14 -13
- package/package/corpus/skills/cratis-screenplay-specifications/references/query-rejections.md +44 -0
- package/package/corpus/skills/cratis-screenplay-streams-and-consistency/SKILL.md +2 -1
- package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/multi-service-models.md +188 -0
- package/package/corpus/skills/cratis-screenplay-streams-and-consistency/verification.json +1 -1
- package/package/corpus/skills/cratis-screenplay-toolchain/SKILL.md +6 -1
- package/package/corpus/skills/cratis-screenplay-toolchain/references/diagnostics.md +12 -4
- package/package/corpus/skills/cratis-screenplay-toolchain/references/executable-subset.md +10 -6
- package/package/corpus/skills/cratis-screenplay-toolchain/references/renderable-subset.md +28 -9
- package/package/corpus/skills/cratis-screenplay-toolchain/references/screenplay-contract.json +4658 -230
- package/package/corpus/skills/cratis-screenplay-toolchain/references/screenplay-contract.version +1 -1
- package/package/corpus/skills/cratis-screenplay-toolchain/references/traps.md +1 -1
- package/package/corpus/skills/cratis-specifications-csharp/SKILL.md +5 -0
- package/package/corpus/skills/cratis-specifications-csharp/references/application-scenarios.md +1 -1
- package/package/corpus/skills/cratis-stage-rendering-and-sandbox/SKILL.md +1 -1
- package/package/corpus/skills/cratis-stage-rendering-and-sandbox/references/admission.md +63 -15
- package/package/corpus/skills/cratis-stage-rendering-and-sandbox/references/sandbox-and-specrunner.md +2 -2
- package/package/profile-catalog.json +3 -1
- package/package.json +1 -1
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
- When not to
|
|
7
7
|
- The concept declares how; the property declares that
|
|
8
8
|
- Inspect and edit generation through MCP
|
|
9
|
+
- Generated-concept rules (ESM v20)
|
|
9
10
|
- Version and freshness
|
|
10
11
|
- Responses and pre-generation boundaries
|
|
11
12
|
- What the CLI and Stage realize
|
|
@@ -67,12 +68,12 @@ NanoID's alphabet with 2–256 distinct printable ASCII characters (the repertoi
|
|
|
67
68
|
has only 95). TypeID has its own prefix and accepts none of these modifiers.
|
|
68
69
|
Time and prefixes add no entropy. Below 64 random bits is PLAY0684 (error) for an
|
|
69
70
|
identifier; non-identifiers warn PLAY0683 unless a single-property unique
|
|
70
|
-
constraint covers the mapped event property. That suppression
|
|
71
|
-
|
|
71
|
+
constraint covers the mapped event property. That suppression is not a runtime collision guarantee; use the constraint when
|
|
72
|
+
collisions must reject the command.
|
|
72
73
|
|
|
73
74
|
`pattern`, `random`, `rule` and checksum syntax parse/print but refuse PLAY0268;
|
|
74
|
-
`generate sequence` is reserved (PLAY0682). Generated-concept validation rules
|
|
75
|
-
|
|
75
|
+
`generate sequence` is reserved (PLAY0682). Generated-concept validation rules select ESM v20; compliance markers, including
|
|
76
|
+
generated secrets, remain refused. Do not
|
|
76
77
|
remove classification or pretend a random String is a credential contract.
|
|
77
78
|
|
|
78
79
|
## Inspect and edit generation through MCP
|
|
@@ -90,7 +91,7 @@ Set/change/remove `generate` through `screenplay_propose_ast` (replace the conce
|
|
|
90
91
|
`GenerationSyntax`, omit/null `generation` to remove) or reviewed
|
|
91
92
|
`screenplay_propose_source`; do not hand-edit the text. Inspect executable
|
|
92
93
|
diagnostics independently of authoring acceptance: sequence PLAY0682;
|
|
93
|
-
pattern/random/rule
|
|
94
|
+
pattern/random/rule PLAY0268; generated-rule proofs PLAY0688/0689. Review, run candidate
|
|
94
95
|
specifications where executable, then apply with revisions.
|
|
95
96
|
|
|
96
97
|
`screenplay_repair_capabilities` advertises PLAY0683/0684; workspace repairs supply
|
|
@@ -101,7 +102,9 @@ also offers uniqueness for a non-identifier command-property subject only when
|
|
|
101
102
|
exactly one production maps it to exactly one event property. Both require
|
|
102
103
|
individual review and `CanonicalizeTouchedDocuments`, with no pinned evidence.
|
|
103
104
|
Length changes affect all concept uses; uniqueness changes append-time behavior.
|
|
104
|
-
|
|
105
|
+
PLAY0688 repair replaces a refuted rule with the strategy-derived `matches`
|
|
106
|
+
pattern. Review input/stored-value uses because this changes their validation,
|
|
107
|
+
not just generation. Checksum repairs remain unadmitted.
|
|
105
108
|
A CLI-bundled MCP can lack this summary and these repairs; it still
|
|
106
109
|
supports existing typed concept proposals.
|
|
107
110
|
|
|
@@ -111,6 +114,30 @@ Sources: Cratis/Screenplay `Documentation/screenplay/generated-values.md`,
|
|
|
111
114
|
`Source/DotNET/Screenplay.Mcp/McpGenerationDetails.cs`,
|
|
112
115
|
`Source/DotNET/Screenplay/Workspaces/WorkspaceGenerationRepairs.cs`.
|
|
113
116
|
|
|
117
|
+
## Generated-concept rules (ESM v20)
|
|
118
|
+
|
|
119
|
+
Requires Screenplay 4.164.0 or later (`screenplay --version`) for generated-concept rules; older compilers report PLAY0268.
|
|
120
|
+
|
|
121
|
+
```screenplay
|
|
122
|
+
concept InviteCode : String
|
|
123
|
+
generate nanoid
|
|
124
|
+
validate
|
|
125
|
+
matches "^[A-Za-z0-9_-]{21}$"
|
|
126
|
+
```
|
|
127
|
+
|
|
128
|
+
The compiler proves `not empty`, text length/min/max, equality/inequality and
|
|
129
|
+
`matches` against the exact strategy shape. Proven rules bind silently; Refuted
|
|
130
|
+
rules fail with PLAY0688 and a violating example; Unproven rules warn PLAY0689
|
|
131
|
+
with a reason. A warning is not proof. Regex proof uses a bounded ASCII regular
|
|
132
|
+
subset (classes, groups, alternation, repetition and end anchors, not lookaround,
|
|
133
|
+
backreferences or flags) and proves containment only for unambiguous patterns
|
|
134
|
+
that cannot backtrack on generated values. Passing samples alone prove nothing.
|
|
135
|
+
Providers validate generated values too: a failing fixture is a Contract violation,
|
|
136
|
+
not client rejection or a reason to redraw. Opaque rules need a target.
|
|
137
|
+
|
|
138
|
+
Rules select v20 even on implicit UUID generation. No proof status is serialized;
|
|
139
|
+
strategy changes do not silently change rules on stored/input values.
|
|
140
|
+
|
|
114
141
|
## Version and freshness
|
|
115
142
|
|
|
116
143
|
A serialized concept `generation` member selects **v15**. Implicit Uuid generation
|
|
@@ -167,18 +194,26 @@ checks atomically at append: a batch's scopes are checked once against the state
|
|
|
167
194
|
the batch, all or nothing, and a storage retry that renumbers the append checks them again. Generated rejection specs assert
|
|
168
195
|
`ValidationResultReason.ConcurrencyViolation`, not Arc's message text. This is
|
|
169
196
|
Stage's explicit realization, not a claim that Arc delivers the same guard.
|
|
170
|
-
Time-based factories use
|
|
197
|
+
Time-based factories use the command's receipt time through `IGeneratableInContext<T>`
|
|
198
|
+
and `GenerationContext`, the same instant as `$context.occurred`.
|
|
199
|
+
|
|
200
|
+
Requires Stage 4.94.0 or later for receipt-time generation; older factories use wall clock.
|
|
171
201
|
|
|
172
202
|
| Refusal | Still unsupported |
|
|
173
203
|
| --- | --- |
|
|
174
204
|
| STAGE-ESM-028 | Unknown strategies, non-concepts, optional/collection generation; every explicit strategy on the legacy syntax engine |
|
|
175
205
|
| STAGE-ESM-011 | A v15 fixture that does not match its strategy shape |
|
|
176
|
-
| STAGE-ESM-038 | Routing combined with generation/responses; generated-property rules/requirements or concept rules; occurrence parameter/response/factory name collisions; unsupported response sources/composites/collections; generated
|
|
206
|
+
| STAGE-ESM-038 | Routing combined with generation/responses; generated-property rules/requirements or concept rules; occurrence parameter/response/factory name collisions; unsupported response sources/composites/collections; generated identifier plus destination-less plain production |
|
|
177
207
|
| STAGE-ESM-038 | Unpinned generation with unordered event, read-model or query expectations |
|
|
178
|
-
| STAGE-ESM-004 / -006 |
|
|
208
|
+
| STAGE-ESM-004 / -006 | StateChange slices without commands / expression or enum production conditions |
|
|
179
209
|
|
|
180
210
|
Sequence generation is refused at binding (PLAY0682) and never reaches Stage;
|
|
181
|
-
clock fixtures
|
|
211
|
+
command `given clock` fixtures render when whole milliseconds at or after 1970;
|
|
212
|
+
`when clock` and reaction/query/direct-append clocks remain refused.
|
|
213
|
+
|
|
214
|
+
Requires Stage 4.95.0 for command clock fixtures, 4.98.0 for multiple commands and
|
|
215
|
+
conditional productions, and 4.100.0 for generated text unique constraints; older
|
|
216
|
+
renderers refuse those shapes. ESM v20 still needs a renderer that admits v20.
|
|
182
217
|
|
|
183
218
|
Missing pins in generated Debug specs use `AllowGeneration()` with relational
|
|
184
219
|
assertions against captured values; v15 captures also check strategy shape.
|
|
@@ -94,7 +94,9 @@
|
|
|
94
94
|
},
|
|
95
95
|
{ "kind": "skill-contains", "value": "Generated values and responses (ESM v7 and v15)" },
|
|
96
96
|
{ "kind": "skill-contains", "value": "Generated values are not request inputs", "file": "references/generated-values-and-responses.md" },
|
|
97
|
-
{ "kind": "skill-contains", "value": "Generated-concept validation rules
|
|
97
|
+
{ "kind": "skill-contains", "value": "Generated-concept validation rules select ESM v20", "file": "references/generated-values-and-responses.md" },
|
|
98
|
+
{ "kind": "skill-contains", "value": "PLAY0688 and a violating example", "file": "references/generated-values-and-responses.md" },
|
|
99
|
+
{ "kind": "skill-contains", "value": "Unproven rules warn PLAY0689", "file": "references/generated-values-and-responses.md" },
|
|
98
100
|
{ "kind": "skill-contains", "value": "Only acceptance has a response", "file": "references/generated-values-and-responses.md" },
|
|
99
101
|
{ "kind": "skill-contains", "value": "whole source", "file": "references/generated-values-and-responses.md" },
|
|
100
102
|
{ "kind": "skill-contains", "value": "`Concurrency`", "file": "references/generated-values-and-responses.md" },
|
|
@@ -221,6 +221,7 @@ The full critic pass (evidence, severity, business-question review) is
|
|
|
221
221
|
|
|
222
222
|
Choose the coarsest layout that keeps source and diffs readable; compile the folder, or its root file, as one application, because compiling files individually reports false unknown-type errors (`PLAY0165`, `PLAY0166`, `PLAY0167`).
|
|
223
223
|
Read [references/file-layout.md](references/file-layout.md) when choosing or changing the file layout, writing `import` barrels, or compiling a split model.
|
|
224
|
+
Read [multi-service models](../cratis-screenplay-streams-and-consistency/references/multi-service-models.md) when the system is several services with their own event stores: one model folder per service, never one folder over all of them.
|
|
224
225
|
|
|
225
226
|
## Route near misses
|
|
226
227
|
|
package/package/corpus/skills/cratis-screenplay-event-modeling/references/parsed-not-runnable.md
CHANGED
|
@@ -21,8 +21,10 @@ Tool versions and consumer boundaries: toolchain `SKILL.md`.
|
|
|
21
21
|
enum member numbers (`cratis-screenplay-command-surface` `references/enum-numbers.md`).
|
|
22
22
|
- v13 for concept `pii`/`personal` and `secret`, personal qualifiers and secret scopes.
|
|
23
23
|
Reasons remain report-only PLAY0270; binding proves neither encryption nor erasure.
|
|
24
|
-
-
|
|
25
|
-
|
|
24
|
+
- v17 for `when redelivered` and `then no events`; v19 for reaction
|
|
25
|
+
refusal branches and `$refusal` values. Older compilers report PLAY0268.
|
|
26
|
+
- Operations/systems and the exact numeric **source mode** (`numbers exact`) remain unadmitted
|
|
27
|
+
(PLAY0268). Version allocation is not inferred from an older planning decision.
|
|
26
28
|
|
|
27
29
|
## Dispositions to keep apart
|
|
28
30
|
|
|
@@ -35,9 +37,11 @@ Tool versions and consumer boundaries: toolchain `SKILL.md`.
|
|
|
35
37
|
| Command reads/concurrency | Legacy unprotected decisions, PLAY0271 |
|
|
36
38
|
| Invokes-only trigger reads | Report-only, not protected state; direct production with reads refuses |
|
|
37
39
|
| Generated values/responses | v7 binding/reference execution; v15 strategies/strict fixtures/freshness. Stage renders supported UUID/String strategies, responses and fixtures; unsupported types/combinations remain -028/-038 |
|
|
38
|
-
| Sources/streams and command/specification routes | v8 binding/reference execution; the CLI (toolchain `references/renderable-subset.md`) reaches Stage checks through
|
|
40
|
+
| Sources/streams and command/specification routes | v8 binding/reference execution; the CLI (toolchain `references/renderable-subset.md`) reaches Stage checks through its bundled ceiling (v16 without v17 support) |
|
|
39
41
|
| Declared reaction invocation actor | v10 binding/reference execution; older CLI parser PLAY0137; Stage renders role/authenticated reaction identity; claim-reading/opaque gates retain STAGE-ESM-034, not a v10 version refusal |
|
|
40
|
-
|
|
|
42
|
+
| Redelivery and `then no events` | v17 binding/reference execution; older compilers refuse PLAY0268 |
|
|
43
|
+
| Reaction refusal branches and `$refusal` | v19 binding/reference execution; older compilers refuse PLAY0268 |
|
|
44
|
+
| Operations/systems, `numbers exact` source mode | Source accepted; whole binding refuses PLAY0268 |
|
|
41
45
|
| UI | Authoring/deferred metadata; runtime support is a separate consumer contract |
|
|
42
46
|
|
|
43
47
|
Run standalone `screenplay test` or MCP `run-specifications` for V4. Compile
|
|
@@ -77,8 +81,8 @@ accepted proposal or parsed node with a running application.
|
|
|
77
81
|
and command/specification routes as v8; reaction `runs as` identity as v10;
|
|
78
82
|
qualifying Double literals lower exactly as v11 and non-positional enum numbers
|
|
79
83
|
as v12. Use `screenplay test` or MCP `run-specifications` for V4.
|
|
80
|
-
Operations/systems
|
|
81
|
-
|
|
84
|
+
Operations/systems and the `numbers exact` **source mode** remain unadmitted
|
|
85
|
+
(PLAY0268); redelivery/no-event assertions execute as v17 and refusals as v19. The CLI and Stage render supported generation strategies and v15 freshness,
|
|
82
86
|
scalar/named responses, enum numbers, compliance and supported event reactions.
|
|
83
87
|
The pair reaches construct checks through the ESM version it bundles, not blanket rendering; supported v14 filters
|
|
84
88
|
render. Current boundaries and source evidence:
|
|
@@ -149,10 +149,14 @@ Others send an edit request ([MCP loop](references/mcp-loop.md)).
|
|
|
149
149
|
`propose-ast` batches. Inspect the chain and never guess past a refusal:
|
|
150
150
|
[property links](references/property-links.md). Otherwise use `propose-source`
|
|
151
151
|
(whole text) or `propose-ast` (typed edits); `propose` is executable-only.
|
|
152
|
+
Default hand-written source to `PreserveExactSource` (Requires Screenplay 4.158.0,
|
|
153
|
+
`screenplay --version`); read `references/mcp-loop.md` when choosing formatting.
|
|
152
154
|
5. Keep reference policy `Safe`. Use `Draft` only for deliberately requested
|
|
153
155
|
unresolved model debt and report that debt; it does not waive structural,
|
|
154
156
|
identity or binding-protection checks.
|
|
155
|
-
6.
|
|
157
|
+
6. Report `summary`, inspect severity errors/codes rather than counts
|
|
158
|
+
(Requires Screenplay 4.156.0, `screenplay --version`); read `references/mcp-loop.md`
|
|
159
|
+
when reviewing PLAY0288, comment loss or introduced executable errors. Inspect `read-proposal` before/after bytes and diagnostics, including the
|
|
156
160
|
identity-state change through `workspace-state`. Review `orphanedNotes` on
|
|
157
161
|
source proposals; reanchor or resolve affected questions before applying
|
|
158
162
|
([notes and orphan impact](references/model-notes.md#source-proposals-can-orphan-notes)).
|
package/package/corpus/skills/cratis-screenplay-model-authoring/references/language-reference.md
CHANGED
|
@@ -258,11 +258,15 @@ See read-surface `references/named-keys.md` for the collection-key exclusion alg
|
|
|
258
258
|
| Reaction with trigger `reads` | Direct-producing (or code-bodied) reaction with `reads`: `PLAY0268` ("ESM v6 cannot protect that decision dependency"), non-executable. Invokes-only reaction with `reads`: information only; the invoked command must declare and protect its own decision reads. Keep the `reads`; never remove them to obtain binding |
|
|
259
259
|
| Binds as opaque code (v3); reference runner reports unsupported | Bodied reducers, bodied named rules, fenced `validate` blocks, code or file policies. A pure reducer body is the only attachment Stage admits |
|
|
260
260
|
| Information only, never blocks | `persona` (report-only: `PLAY0270`, the policies it lists must exist), `authentication`, `domain`, `seed`, descriptions and `file` provenance. A persona does not block binding and does not change behavior, so state persona scope in a description or a policy the model uses |
|
|
261
|
-
| Binds as ESM v7 (`PLAY0268` on a compiler that stops before v7) | `generated` properties and `returns` responses, generated fixtures and `then returns`: bound and executed by the reference runner; a policy, rule or requirement that references a generated value is `PLAY0273`, and
|
|
262
|
-
| Authorable, not executable (PLAY0268) | Systems/operations, the `numbers exact` source mode (PLAY0268; exact lowering of qualifying Double literals is the admitted v11)
|
|
263
|
-
| Concept generation strategies (ESM v15) | Required scalar generatable Uuid/String concepts; concept-owned uuid/uuidv7/ulid/typeid/nanoid/bytes strategies and admitted modifiers. Strict fixture encoding; Guarded whole-source freshness rejects Concurrency with no append/retry.
|
|
261
|
+
| Binds as ESM v7 (`PLAY0268` on a compiler that stops before v7) | `generated` properties and `returns` responses, generated fixtures and `then returns`: bound and executed by the reference runner; a policy, rule or requirement that references a generated value is `PLAY0273`, and generated-concept rules select v20 with PLAY0688/0689 proof diagnostics. Stage renders supported UUID/String strategies, scalar/named responses and fixtures; unsupported types/result combinations remain `-028`/`-038` |
|
|
262
|
+
| Authorable, not executable (PLAY0268) | Systems/operations, the `numbers exact` source mode (PLAY0268; exact lowering of qualifying Double literals is the admitted v11) remain unadmitted |
|
|
263
|
+
| Concept generation strategies (ESM v15) | Required scalar generatable Uuid/String concepts; concept-owned uuid/uuidv7/ulid/typeid/nanoid/bytes strategies and admitted modifiers. Strict fixture encoding; Guarded whole-source freshness rejects Concurrency with no append/retry. Generated secrets, pattern/random/rule and sequence remain refused; generated-concept rules select v20. Stage renders supported strategies: command-surface `references/generated-values-and-responses.md` |
|
|
264
264
|
| Response-name UI continuations (no ESM change) | Form submit and execute-success scopes, own failure PLAY0685, nested shadowing and outer success in inner failure; field/parameter precedence. An older bundled compiler lacks resolution; Scene runtime binding remains downstream. UI composition `references/response-continuations.md` |
|
|
265
265
|
| Collection equality filters (ESM v14) | Caller-supplied `filter name Type [optional]`, no `from`, matching a same-named scalar primitive/concept/enum read-model property with the same nominal type. AND with `by`; optional omission does not narrow, supplied null is refused. PLAY0468 covers unknown/repeated/missing required spec arguments; result rows compare by read-model/key regardless of order. Read read-surface `references/equality-filters.md` for the compiled example and renderer ceilings |
|
|
266
|
+
| Recovery and no-event assertions (ESM v17) | `when redelivered` delivers one given occurrence to one reaction without append; `then no events` checks no new facts, excluding append input. Requires Screenplay 4.157.0 or later (`screenplay --version`); older compilers report PLAY0268. |
|
|
267
|
+
| Query Validation rejection (ESM v18) | Exactly one queried call plus one `then error`, no other action/result/denial. Concept key/supplied filters validate after authorization in every version. Requires Screenplay 4.161.0 or later (`screenplay --version`); older runners may answer absence. |
|
|
268
|
+
| Invocation refusal branches (ESM v19) | Ordered first-match `on refused` productions or acknowledgement, `$refusal` values; bare refusal excludes authorization. Requires Screenplay 4.160.0 or later (`screenplay --version`); older compilers report PLAY0268. |
|
|
269
|
+
| Generated-concept rules (ESM v20) | Proven rules bind, Refuted PLAY0688 errors, Unproven PLAY0689 warnings; fixtures obey shape and rules. Requires Screenplay 4.164.0 or later (`screenplay --version`); older compilers report PLAY0268. |
|
|
266
270
|
| Current routing and actor admission | Sources/streams and command/specification routes bind and reference-execute as v8; reaction `runs as system role` supplies the invocation actor as v10. Whole-workspace binding determines executable availability; CLI/Stage realization remains separate |
|
|
267
271
|
| Blocks binding (`PLAY0268`) | enum/identity compliance and events combining personal or explicitly subject-scoped secret values with explicit subject marks; a compiler that stops before v13 refuses all `pii`/`secret` concepts ("compliance attributes require portable data-subject semantics"), while v13 binds them and Stage renders protection; command `handler` (never binds; a command cannot declare both `produces` and `handler`, `PLAY0035`), bare `rule <Name>`, `require` or conditions over read-model paths, dates and `today` in comparisons, `$context.tenant`/claims/roles/causation in `produces`, `$env` conditions, `file` constraints, unquoted `import` of an external contract, a read model with neither explicit `key` nor unambiguous query-based identity as described above (composite keys remain unadmitted), queries with context `from` sources (typed query context is unadmitted), single-result filters (collections only), `scoped to` (opaque scope), `performer` (opaque implementation) or composite `by` blocks; optional keyed and collection queries, including caller-supplied equality filters and observable delivery, bind, `$causedBy` and templates in projections |
|
|
268
272
|
| Blocks binding (`PLAY0271`, legacy meaning) | Command `reads` and `concurrency` |
|
|
@@ -128,16 +128,24 @@ connection. Passing `open-workspace.path` does **not** avoid it, because the err
|
|
|
128
128
|
Otherwise propose one coherent change (a slice works best): `propose-source` for whole
|
|
129
129
|
`.play` text, `propose-ast` for focused typed edits, with
|
|
130
130
|
`validation: "Authoring"`, `referencePolicy: "Safe"` (`Draft` only for
|
|
131
|
-
deliberate, reported gaps)
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
`
|
|
131
|
+
deliberate, reported gaps). For hand-written source use `propose-source` with
|
|
132
|
+
`formatting: "PreserveExactSource"` to keep supplied text, even structural edits.
|
|
133
|
+
For typed AST value/mapping patches use `PreserveTrivia`; structural AST edits
|
|
134
|
+
need `CanonicalizeTouchedDocuments` (reprints the touched files).
|
|
135
|
+
6. Report the proposal from its one-paragraph `summary` (also the second text
|
|
136
|
+
block after JSON), rather than inventing a summary from counts. Review
|
|
137
|
+
`authoringDiagnosticSeverities.errors` and `codes`: nonzero
|
|
138
|
+
`authoringDiagnosticCount` counts proposal checks, including PLAY0288 canonical
|
|
139
|
+
printing even with no dropped comments; `after.readiness` counts resulting-source
|
|
140
|
+
diagnostics only. Page `read-proposal view=diagnostics`, then changes,
|
|
141
|
+
before/after per document and `dropped-comments`; keep checking
|
|
142
|
+
`introducedExecutableErrors` and `droppedCommentCount`. On
|
|
135
143
|
MCP-Apps hosts `visualize-model` with the `proposalId` shows Current and
|
|
136
144
|
Proposed, and its `sketch` argument previews a what-if of whole documents
|
|
137
145
|
without writing. An
|
|
138
146
|
unintended executable regression is discarded (`discard-proposal`) and
|
|
139
147
|
re-proposed. Intent the user has accepted that does not run yet (operations,
|
|
140
|
-
the `numbers exact` source mode
|
|
148
|
+
the `numbers exact` source mode; PLAY0268 by design)
|
|
141
149
|
may be applied from a reviewed `Authoring` proposal: disclose the new
|
|
142
150
|
diagnostics, report V3 as not binding-ready, and never drop or stub the
|
|
143
151
|
construct. The server's own guidance is to apply such a proposal only when
|
|
@@ -202,11 +210,11 @@ connection. Passing `open-workspace.path` does **not** avoid it, because the err
|
|
|
202
210
|
| --- | --- | --- |
|
|
203
211
|
| Address-preserving | descriptions; bodies of rules and expressions; mappings between members that already exist; any edit that adds, removes or renames no addressed element. Also every edit in a model with no `.screenplay/identities.json` except persisted names | bounded text edit of the `.play` file, then compile the folder; or `propose-ast` |
|
|
204
212
|
| Catalog-changing (identity file present) | add, remove or rename a declaration (slice, command, event, read model, projection, ...), a property of a command, event, read model, composite type or trigger, a query, a query argument or a specification; create, delete, rename or move a mapped `.play` document (McpState refuses reopening with `IdentityMappingConflict`; use document operations in `propose-ast`); rename, remove or move an event, command, read model, constraint, module, feature or slice; move declarations between files (slices and features across logical parents: `propose-move`); contract evolution of a persisted event (new generation, property added, removed or retyped) | `propose-rename` or a reviewed `propose-ast`; never a blind text rename. Renaming a constraint resets its uniqueness index: ask first unless the request names it, then report the reset. A persisted event rename needs `id "OldName"` (added by default) |
|
|
205
|
-
| Concept `generate` | set/change/remove strategy and modifiers | `propose-ast` replaces `ConceptSyntax.generation` (`GenerationSyntax`; omit/null to remove), or reviewed `propose-source`; never hand-edit `generate` text. Preserve other concept members and inspect executable diagnostics: sequence PLAY0682, preview strategies
|
|
213
|
+
| Concept `generate` | set/change/remove strategy and modifiers | `propose-ast` replaces `ConceptSyntax.generation` (`GenerationSyntax`; omit/null to remove), or reviewed `propose-source`; never hand-edit `generate` text. Preserve other concept members and inspect executable diagnostics: sequence PLAY0682, preview strategies PLAY0268, generated-rule proofs PLAY0688/0689. |
|
|
206
214
|
| Repair | `PLAY0166`, `0478`, `0469`, `0471`, `0479`, `0516`, `0563`, `0564`, `0565`, `0614`, `0653`, `0683`, `0684` (and recipe-only `0397`) | `propose-repair` with `formatting`; PLAY0166/0478 may pin attachment evidence (`pinRepairEvidence` and `expectedRepairEvidenceRevision`), never fix-all PLAY0478 |
|
|
207
215
|
| Inline event extraction | `produces event ...` to a declared event | `propose-extract-inline-event` |
|
|
208
216
|
| Parser-invalid document | no editable handles | `propose-source` `replace-document` with corrected source, or typed `propose-ast` document replacement |
|
|
209
|
-
| Unadmitted constructs | systems/operations, the `numbers exact` source mode
|
|
217
|
+
| Unadmitted constructs | systems/operations, the `numbers exact` source mode | reviewed Authoring `propose-source` (whole documents) or `propose-ast` (typed edits); preserve intent and report PLAY0268 |
|
|
210
218
|
| Admitted source/stream routing | ESM v8 | typed `propose-ast`; `propose-rename` repairs proven route references; target admission separate |
|
|
211
219
|
|
|
212
220
|
PLAY0683/PLAY0684 repairs raise NanoID size or bytes count to at least 64 random
|
|
@@ -308,11 +316,19 @@ per page. Excluded directories: `.git`, `.ai-work`, `.screenplay`, `bin`, `obj`,
|
|
|
308
316
|
|
|
309
317
|
## Formatting and limits
|
|
310
318
|
|
|
311
|
-
Formatting is explicit.
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
319
|
+
Formatting is explicit. Default hand-written `propose-source` edits to
|
|
320
|
+
`PreserveExactSource`: supplied comments, alignment, blank lines and line endings
|
|
321
|
+
(including CRLF) survive structural edits; replacements retain the original BOM
|
|
322
|
+
policy. The same parsing, identity, reference and compilation checks run, without
|
|
323
|
+
PLAY0288. Choose `CanonicalizeTouchedDocuments` only when canonical output is
|
|
324
|
+
wanted. `propose-ast` exact mode is unchanged: `PreserveTrivia` rewrites supported
|
|
325
|
+
value/mapping spans and refuses structural changes; structural AST edits need
|
|
326
|
+
canonical printing. Its refusal points source authors to `PreserveExactSource`.
|
|
327
|
+
|
|
328
|
+
Requires Screenplay 4.158.0 or later (`screenplay --version`) for exact structural source proposals; older servers refuse that mode.
|
|
329
|
+
Requires Screenplay 4.156.0 or later (`screenplay --version`) for proposal `summary` and `authoringDiagnosticSeverities`; older servers lack these review fields.
|
|
330
|
+
|
|
331
|
+
Before applying, check the proposal's `droppedCommentCount`; when it
|
|
316
332
|
is not zero, read `read-proposal` with `view: "dropped-comments"` and disclose
|
|
317
333
|
each lost comment (`PLAY0288` also reports their count and lines). Untouched
|
|
318
334
|
documents retain exact bytes. A printer that loses requested structural fields
|
|
@@ -121,6 +121,14 @@ A folder is one application; a file selects only itself and its imports.
|
|
|
121
121
|
models; `"Executable"` requires binding and never falls back. Default
|
|
122
122
|
`referencePolicy: "Safe"` and identity migrations/retirements work as for
|
|
123
123
|
`propose-ast`. Whole-file authoring needs neither base64 nor typed node JSON.
|
|
124
|
+
Default hand-written document edits to `formatting: "PreserveExactSource"`: even
|
|
125
|
+
added imports/features keep supplied comments, alignment, blank lines and CRLF;
|
|
126
|
+
replacements retain the original BOM policy, with the same validation and no
|
|
127
|
+
PLAY0288. Choose `CanonicalizeTouchedDocuments` only for canonical output;
|
|
128
|
+
`PreserveTrivia` still refuses structural changes and points to exact source mode.
|
|
129
|
+
`propose-ast` exact mode is unchanged.
|
|
130
|
+
|
|
131
|
+
Requires Screenplay 4.158.0 or later (`screenplay --version`); older source proposals refuse exact structural edits.
|
|
124
132
|
|
|
125
133
|
| Document operation | Shape members besides `operation` |
|
|
126
134
|
| --- | --- |
|
|
@@ -135,7 +143,17 @@ is parsed in final-set import placement before the typed transaction. Parse/impo
|
|
|
135
143
|
errors return `SourceParseFailed` with located `authoringDiagnostics`, no proposal
|
|
136
144
|
ID. Other validation failures use ordinary authoring rejection. Inspect exact bytes,
|
|
137
145
|
dropped comments, identity changes and introduced executable errors through
|
|
138
|
-
`read-proposal`, then `apply` with before revisions.
|
|
146
|
+
`read-proposal`, then `apply` with before revisions. Report the returned `summary`
|
|
147
|
+
(one paragraph, also the second text block after JSON). Nonzero
|
|
148
|
+
`authoringDiagnosticCount` counts checks during proposing, not just resulting-source
|
|
149
|
+
faults: inspect `authoringDiagnosticSeverities` (`errors`, `warnings`, `information`,
|
|
150
|
+
`codes`) and page `read-proposal view=diagnostics`. PLAY0288 alone reports canonical
|
|
151
|
+
printing even with zero dropped comments; `after.readiness` counts the source's own
|
|
152
|
+
diagnostics. Keep checking `droppedCommentCount` and `introducedExecutableErrors`.
|
|
153
|
+
|
|
154
|
+
Requires Screenplay 4.156.0 or later (`screenplay --version`) for summary/severity fields; older servers lack them.
|
|
155
|
+
|
|
156
|
+
Accepted authoring source with
|
|
139
157
|
`executableReady: false` is not running behavior.
|
|
140
158
|
|
|
141
159
|
## Concept generation
|
|
@@ -154,10 +172,10 @@ exists only for authored `generate`; an implicit UUID default has no block.
|
|
|
154
172
|
| `valuesAtOnePercentCollision` | JSON number estimating the 1% birthday collision count, or null; scientific notation can exceed client floating-point range |
|
|
155
173
|
| `executable` | `status`, `diagnosticCodes`, and `reason` only for `notAssessed` |
|
|
156
174
|
|
|
157
|
-
`executable.status` is `refused` when compiler **errors** target the concept
|
|
158
|
-
`generation
|
|
175
|
+
`executable.status` is `refused` when compiler **errors** target the concept, its
|
|
176
|
+
`generation` or its rules; `admitted` only when the whole model produced an executable model
|
|
159
177
|
and no such error exists; otherwise `notAssessed`, with a reason that whole-model
|
|
160
|
-
binding failed. `diagnosticCodes` contains only errors at these
|
|
178
|
+
binding failed. `diagnosticCodes` contains only errors at these declaration locations.
|
|
161
179
|
An empty list is not admission; low-entropy property diagnostics require workspace
|
|
162
180
|
inspection. Invalid alphabets/non-positive sizes or counts yield null estimates
|
|
163
181
|
with `entropyUnknownReason`, preserving compiler diagnostics. Time, prefixes,
|
|
@@ -193,8 +211,12 @@ concept; uniqueness changes append-time behavior. Review every changed document
|
|
|
193
211
|
before applying; discovery/proposal write nothing. The saved-file VS Code repair
|
|
194
212
|
picker does not expose these entropy actions.
|
|
195
213
|
|
|
196
|
-
|
|
197
|
-
|
|
214
|
+
PLAY0688 repair replaces a refuted generated-concept rule with the strategy-derived
|
|
215
|
+
`matches` pattern. Review it as a validation change for input/stored values too.
|
|
216
|
+
PLAY0689 is an unproven warning, not proof; checksum repairs remain unadmitted.
|
|
217
|
+
MCP does not generate values.
|
|
218
|
+
|
|
219
|
+
Requires Screenplay 4.164.0 or later (`screenplay --version`) for generated-rule proofs and PLAY0688 repair; older servers lack this action. The CLI-bundled MCP can lack
|
|
198
220
|
this generation summary and the entropy repairs. Existing typed concept proposals predate the
|
|
199
221
|
new summary; discover installed schemas rather than assuming the standalone surface.
|
|
200
222
|
|
|
@@ -217,6 +239,7 @@ with `view: "diagnostics"`, then `view: "repairs"` at the current revision.
|
|
|
217
239
|
| `PLAY0563/0564` | Expand a one-line interaction alternative / turn a strict item `where` into one block-form `when`. Individual review, canonical formatting, no pinned evidence; refuse comment loss. Opaque non-item-condition text has no PLAY0564 repair. |
|
|
218
240
|
| `PLAY0614` | Declare Translate direction only when exactly one inbound/outbound interpretation fits public metadata; never change event visibility to make a repair fit. |
|
|
219
241
|
| `PLAY0661` | Complete command reads only when each missing part has one same-named compatible source; preserve authored parts and refuse ambiguity. Queries and trigger reads have no repair. |
|
|
242
|
+
| `PLAY0688` | Replace a refuted generated-concept rule with the strategy-derived `matches`; review every concept use affected by the changed rule. |
|
|
220
243
|
| `PLAY0683/0684` | Raise NanoID size/bytes count using the concept subject; PLAY0683 also offers uniqueness using the command-property subject. Individual review, canonical formatting, no pinned evidence; see [concept generation](#concept-generation). |
|
|
221
244
|
| `PLAY0664` | Remove an override identical to the command's complete source/stream/id route. |
|
|
222
245
|
| `PLAY0516` | Move a producing sibling declaration/import before its consumer, or pin an already placed file before a retained glob. Preserve catalogs, comments, placement and executable readiness; introduce no timeline findings. Own-sub-feature edges, cycles, unranked members and mixed/different-parent boundaries have no repair. Rediscover after each move; pinned evidence is unsupported. |
|
|
@@ -64,20 +64,32 @@ For a new canonical application this usually creates or changes:
|
|
|
64
64
|
- localized `$strings` keys referenced by labels.
|
|
65
65
|
|
|
66
66
|
Use `referencePolicy: "Safe"` unless unresolved debt is explicitly part of the
|
|
67
|
-
accepted model. Structural edits use `CanonicalizeTouchedDocuments`; literal
|
|
68
|
-
mapping-only changes may use `PreserveTrivia`.
|
|
67
|
+
accepted model. Structural AST edits use `CanonicalizeTouchedDocuments`; literal
|
|
68
|
+
or mapping-only AST changes may use `PreserveTrivia`. For hand-written whole
|
|
69
|
+
source documents, use `propose-source` with `PreserveExactSource` so structural
|
|
70
|
+
edits keep supplied comments and layout (including line endings and BOM policy).
|
|
71
|
+
Choose canonical printing only when that output is wanted.
|
|
72
|
+
|
|
73
|
+
Requires Screenplay 4.158.0 or later (`screenplay --version`) for exact structural source edits; older servers refuse them.
|
|
69
74
|
|
|
70
75
|
## 3. Review and apply with revision checks
|
|
71
76
|
|
|
72
77
|
Before applying:
|
|
73
78
|
|
|
74
79
|
- `read-proposal view=changes` and document before/after views;
|
|
75
|
-
-
|
|
80
|
+
- report the proposal's `summary`, not an invented count-based recap;
|
|
81
|
+
- inspect `authoringDiagnosticSeverities.errors` and `codes`, not merely a nonzero
|
|
82
|
+
`authoringDiagnosticCount`: PLAY0288 alone reports canonical printing even
|
|
83
|
+
without comment loss. Proposal checks and `after.readiness` source diagnostics
|
|
84
|
+
are different counts; page `read-proposal view=diagnostics`;
|
|
85
|
+
- keep checking `introducedExecutableErrors` and `droppedCommentCount`;
|
|
76
86
|
- compare every screen/form/toolbar binding against field lineage;
|
|
77
87
|
- reject proposals that silently drop a requested screen directive or package
|
|
78
88
|
setting;
|
|
79
89
|
- apply only with the before revisions returned by `open-workspace` / proposal.
|
|
80
90
|
|
|
91
|
+
Requires Screenplay 4.156.0 or later (`screenplay --version`) for proposal summaries and severity counts; older servers lack these fields.
|
|
92
|
+
|
|
81
93
|
After `apply`, discard old handles and revisions. Reopen/read the workspace and
|
|
82
94
|
verify the source and identity state changed as expected.
|
|
83
95
|
|
|
@@ -30,7 +30,10 @@
|
|
|
30
30
|
{ "kind": "skill-contains", "value": "screenplay_propose_repair", "file": "references/mcp-tools.md" },
|
|
31
31
|
{ "kind": "skill-contains", "value": "Subject is the **concept**", "file": "references/mcp-tools.md" },
|
|
32
32
|
{ "kind": "skill-contains", "value": "Subject is the **command property**", "file": "references/mcp-tools.md" },
|
|
33
|
-
{ "kind": "skill-contains", "value": "
|
|
33
|
+
{ "kind": "skill-contains", "value": "PLAY0688 repair replaces a refuted generated-concept rule", "file": "references/mcp-tools.md" },
|
|
34
|
+
{ "kind": "skill-contains", "value": "authoringDiagnosticSeverities", "file": "references/mcp-tools.md" },
|
|
35
|
+
{ "kind": "skill-contains", "value": "`formatting: \"PreserveExactSource\"`", "file": "references/mcp-tools.md" },
|
|
36
|
+
{ "kind": "skill-contains", "value": "Report the returned `summary`", "file": "references/mcp-tools.md" },
|
|
34
37
|
{ "kind": "skill-contains", "value": "never hand-edit `generate` text", "file": "references/mcp-loop.md" },
|
|
35
38
|
{ "kind": "skill-contains", "value": "Record open modeling questions as `question` notes" },
|
|
36
39
|
{ "kind": "skill-contains", "value": "list-model-notes", "file": "references/model-notes.md" },
|
|
@@ -180,7 +180,7 @@ Nebulit (`provenance.md`).
|
|
|
180
180
|
| Id | Check | Evidence | Tier |
|
|
181
181
|
|---|---|---|---|
|
|
182
182
|
| H1 | Query shape follows the business view (list where people scan; lookup where they open one) | queries, screens | D |
|
|
183
|
-
| H2 | Executable scope: a keyed `=> RM optional` query with `by` named like a read-model property, or a collection (`=> RM[]`, observable too) with caller-supplied `by` and/or equality filters. `from`, single-result filters, opaque `scoped to`/`performer` and composite `by` remain PLAY0268. The projection routes by the same identity (a `from` key or an event property, or `$eventSourceId`; `$eventSourceId` is not mandated). Filtered models:
|
|
183
|
+
| H2 | Executable scope: a keyed `=> RM optional` query with `by` named like a read-model property, or a collection (`=> RM[]`, observable too) with caller-supplied `by` and/or equality filters. `from`, single-result filters, opaque `scoped to`/`performer` and composite `by` remain PLAY0268. The projection routes by the same identity (a `from` key or an event property, or `$eventSourceId`; `$eventSourceId` is not mandated). Filtered models: supported v14 equality filters render within the CLI bundle's ESM ceiling. Renderable scope only: Stage-specific identity/filter limits; keyed optional snapshot lookups and snapshot/observable collections render (Requires Stage 4.90.0 for snapshot lists; older renderers report `STAGE-ESM-010`). Check query concept-validation parity separately; primitive-argument targets answer absence instead of Validation | queries, projections | C (executable); C (render admission, renderable only) |
|
|
184
184
|
| H3 | One builder per read model; projection `key` only on `from` | projections | C |
|
|
185
185
|
| H4 | Screens show one actor's point of view; a form submits one command | screens, forms | D |
|
|
186
186
|
|
|
@@ -82,6 +82,10 @@ filters on collections bind as ESM v14; `from`, single-result filters, `scoped t
|
|
|
82
82
|
[equality filters](references/equality-filters.md) for the admitted shape, a complete
|
|
83
83
|
compiled specification model and the Stage/CLI ceilings. Keep a list the domain needs.
|
|
84
84
|
|
|
85
|
+
Concept keys/supplied filters validate after authorization: invalid means Validation,
|
|
86
|
+
not absence; omitted optional filters are unchecked. Read [query rejections](../cratis-screenplay-specifications/references/query-rejections.md) when specifying this.
|
|
87
|
+
Requires Screenplay 4.161.0 (`screenplay --version`); older runners may answer absence.
|
|
88
|
+
|
|
85
89
|
Return-type forms after `=>`: `ReadModel`, `ReadModel optional`, `ReadModel[]`,
|
|
86
90
|
each optionally prefixed `observable`. `ReadModel[] optional` permits an absent
|
|
87
91
|
collection, not absent items. Legacy `Type?` reports information `PLAY0479`,
|
|
@@ -60,7 +60,7 @@ refused reactions, captures and Translate slices remain gap-fill.
|
|
|
60
60
|
Models with event sources, streams or command routes bind and reference-execute as ESM v8 on the standalone
|
|
61
61
|
tool, so report V3 and V4 from that tool. The CLI/Stage pair
|
|
62
62
|
(`cratis-screenplay-toolchain/references/renderable-subset.md`) reaches v8 route checks
|
|
63
|
-
and construct admission through
|
|
63
|
+
and construct admission through v16. Public/foreign events and production overrides
|
|
64
64
|
still refuse; semantic reaction/reducer filters and role/authenticated `runs as` render.
|
|
65
65
|
Claim-reading/opaque system gates, legacy actor/filter paths and mixed effects still refuse. Keep refused scope as case A/C,
|
|
66
66
|
never infer target support from binding. Read Stage's `references/admission.md` and
|
|
@@ -75,6 +75,10 @@ not retries. Keep the modeled reaction whole; gap-fill needs a proven retry-safe
|
|
|
75
75
|
not splitting or dropping effects to get a render. Source: Stage
|
|
76
76
|
`Documentation/reference/reaction-rendering.md`.
|
|
77
77
|
|
|
78
|
+
Read Stage's `references/admission.md` when checking v17/v19 or query validation:
|
|
79
|
+
primitive query arguments still answer absence, not Screenplay's Validation.
|
|
80
|
+
Query errors need v18 admission; do not delete rules or claim parity.
|
|
81
|
+
|
|
78
82
|
Two rules hold in every case: a customization never makes a rejected model renderable, and
|
|
79
83
|
a whole-application V5 is never claimed from a subset. `--scope` renders an admitted part (the whole
|
|
80
84
|
model still compiles and binds) and its V5 states the scope.
|
package/package/corpus/skills/cratis-screenplay-render-and-gap-fill/references/delivery-protocol.md
CHANGED
|
@@ -31,7 +31,7 @@ per tool call and read each result from its exit status, never from a grep of th
|
|
|
31
31
|
| --- | --- | --- |
|
|
32
32
|
| Admission and publication | `cratis render <root> --name <App> --destination <dir> [--project-name <P>] [--root-namespace <N>] -o json` (forward every option recorded in section 1) | exit 0 published (receipt on stdout), 5 refused (diagnostics, nothing published), 1 missing input |
|
|
33
33
|
| Drift or pending-change check | the same command plus `--check` (and `--scope`, `--force` as used) | no write, no recovery: exit 0 current, 6 `changes_pending`, 5 planning failure, refusal or pending recovery |
|
|
34
|
-
| Bundled-binder check | `cratis screenplay validate --executable <root>` | exit 5 with "does not bind into an executable semantic model" when it does not; never renders or writes. Uses the bundled compiler, not standalone
|
|
34
|
+
| Bundled-binder check | `cratis screenplay validate --executable <root>` | exit 5 with "does not bind into an executable semantic model" when it does not; never renders or writes. Uses the bundled compiler, not the standalone pin |
|
|
35
35
|
| Debug build | `dotnet build <dir>/<Project>.csproj -c Debug` | the build's exit status |
|
|
36
36
|
| Debug tests | `dotnet test <dir>/<Project>.csproj -c Debug --no-build` | the test runner's exit status plus per-test results |
|
|
37
37
|
| List the generated classes | `dotnet test <dir>/<Project>.csproj -c Debug --no-build --list-tests` | the names to map to specifications |
|
package/package/corpus/skills/cratis-screenplay-render-and-gap-fill/references/renderability-gate.md
CHANGED
|
@@ -14,7 +14,7 @@ probe reports and choosing what to do. Do not copy the code table here.
|
|
|
14
14
|
2. Execution planning builds the plan and can emit `PLAN-*` diagnostics before Stage runs.
|
|
15
15
|
3. Stage plans the target and admits or rejects each member: `STAGE-ESM-0xx`; profile and path
|
|
16
16
|
problems `STAGE-CRATIS-0xx`. An evolved event is reported with Stage's own `STAGE-ESM-026`
|
|
17
|
-
(still refused); the CLI adds nothing. Stage admits ESM v1
|
|
17
|
+
(still refused); the CLI adds nothing. Stage admits exact ESM v1–v17 and v19 pairs, not v18/v20; CLI admission remains bounded by its bundled renderer and
|
|
18
18
|
refuses each construct it does not render with its own code (see Stage's current code table, including `-024`, `-027`, `-028`, `-030` to `-041`).
|
|
19
19
|
4. Any error in the selected scope publishes nothing: the run ends with exit 5 and the diagnostics.
|
|
20
20
|
Without `--scope` the scope is the whole application. With `--scope`, `PLAN-*` problems in
|
|
@@ -91,7 +91,15 @@ Ask only what is missing: depth, known rules and edge cases (one allowed and the
|
|
|
91
91
|
## Scenario types (decide each per command; detail in `references/scenario-catalogue.md`)
|
|
92
92
|
Decide each of these per command: happy path; rule rejection (one spec per rule, exact pinned `then error`); denial (`given caller` without the policy, `then denied`, one per gated command and query); state violation; duplicate or retry; competing claim; alternative path; ordering; external failure; compensation; evolution; and the view pass. Read [references/scenario-catalogue.md](references/scenario-catalogue.md) ("Scenario types at a glance") for each type's question and usual shape.
|
|
93
93
|
|
|
94
|
-
For recovery
|
|
94
|
+
For recovery, `when redelivered <Event> to <Reaction>` must select one definitely
|
|
95
|
+
matching effective given and no undecided candidate. It delivers only to the named
|
|
96
|
+
reaction without re-appending the input; `then no events` explicitly checks no
|
|
97
|
+
new facts from the settled cascade (ESM v17). Read `references/scenario-catalogue.md`
|
|
98
|
+
("Redelivery selectors") when choosing retry/no-effect cases or `stream`/`no stream`.
|
|
99
|
+
Read [query rejection examples](../cratis-screenplay-specifications/references/query-rejections.md)
|
|
100
|
+
when specifying malformed keys/filters versus valid absence (ESM v18).
|
|
101
|
+
Requires Screenplay 4.157.0 (`screenplay --version`) for v17, 4.161.0 for query
|
|
102
|
+
validation/error assertions; older tools do not execute these contracts.
|
|
95
103
|
|
|
96
104
|
**Once, idempotent, exactly once are different claims.** A `unique event` constraint proves the
|
|
97
105
|
*fact* occurs once per event source; it does not make *command handling* idempotent (a retry is
|
package/package/corpus/skills/cratis-screenplay-scenario-coverage/references/scenario-catalogue.md
CHANGED
|
@@ -163,13 +163,13 @@ name them as unfinished.
|
|
|
163
163
|
all conditions are false the unconditional productions still occur. See
|
|
164
164
|
`RecordingACleanDeparture` (only `BoatDeparted`) and `RecordingADepartureWithDamage` (both).
|
|
165
165
|
- Zero new facts: a command whose productions are all conditional may be accepted with no
|
|
166
|
-
facts. `then no events`
|
|
167
|
-
|
|
168
|
-
view
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
166
|
+
facts. Use `then no events` (ESM v17) to assert the action and its cascade added
|
|
167
|
+
nothing; after `when append` it asserts nothing followed the input. Keep a
|
|
168
|
+
view/query assertion too when visible state matters. Omission is not an explicit
|
|
169
|
+
no-event assertion, and an action with no outcome does not bind. Do not combine
|
|
170
|
+
it with events, event-order expectations, an error or denial (PLAY0545).
|
|
171
|
+
|
|
172
|
+
Requires Screenplay 4.157.0 or later (`screenplay --version`); older compilers refuse no-event assertions with PLAY0268.
|
|
173
173
|
|
|
174
174
|
## 8. Ordering and timing
|
|
175
175
|
- Ask: "Can these facts arrive late, early or out of order? What happens at the boundary of a
|
|
@@ -278,9 +278,11 @@ rules, gates, mappings or contracts to make an example pass.
|
|
|
278
278
|
For recovery intent, `when redelivered <Event> to <Reaction>` must select one
|
|
279
279
|
definitely matching effective given and no undecided candidate. Name `stream`
|
|
280
280
|
(with a complete id) or `no stream` when givens differ only by route; omitting it
|
|
281
|
-
is a wildcard, not an unrouted selector. Redelivery
|
|
282
|
-
|
|
283
|
-
|
|
281
|
+
is a wildcard, not an unrouted selector. Redelivery reference-executes as ESM v17:
|
|
282
|
+
it fires only the named reaction, never re-appends the input, then settles new
|
|
283
|
+
facts. Use it for retry/idempotent reaction/recovery cases, not command resubmission,
|
|
284
|
+
clock repetition, replay exclusion or proof of external exactly-once effects.
|
|
285
|
+
Details: `cratis-screenplay-specifications` `references/examples-and-routes.md`.
|
|
284
286
|
|
|
285
287
|
## Scenario types at a glance
|
|
286
288
|
|
package/package/corpus/skills/cratis-screenplay-scenario-coverage/references/spec-forms-by-mode.md
CHANGED
|
@@ -16,8 +16,8 @@ Typed example/override forms: `cratis-screenplay-specifications`
|
|
|
16
16
|
| `given readmodel` | yes | yes (complete instance with key) | only as the query-only lookup below |
|
|
17
17
|
| `when append <Event>` | yes | yes | supported single-hop reaction effects/invocation only; fan-out, deeper cascades and other refused assertions retain STAGE-ESM-011 |
|
|
18
18
|
| `then readmodel` / `then query` (keyed `ById`, `arguments`, `result`) | yes | yes | yes |
|
|
19
|
-
| `then query` on an unfiltered list or a list narrowed by one `by` key (observable too) | yes | yes: no `arguments` for an unkeyed list, one `result` per row stating the read-model identifier, no `result` = empty list | observable lists render
|
|
20
|
-
| Collection query with caller-supplied equality `filter`, including observable | yes | yes, ESM v14: same-named scalar property/type, AND with `by`; optional omission allowed, supplied null refused; PLAY0468 checks arguments; row order does not matter | yes on supported observable collections
|
|
19
|
+
| `then query` on an unfiltered list or a list narrowed by one `by` key (observable too) | yes | yes: no `arguments` for an unkeyed list, one `result` per row stating the read-model identifier, no `result` = empty list | snapshot and observable lists render |
|
|
20
|
+
| Collection query with caller-supplied equality `filter`, including observable | yes | yes, ESM v14: same-named scalar property/type, AND with `by`; optional omission allowed, supplied null refused; PLAY0468 checks arguments; row order does not matter | yes on supported snapshot/observable collections; DateTime/filter parameter order refuse -010; independent Stage executor still refuses filtered assertions (-010) |
|
|
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 |
|
|
@@ -29,7 +29,9 @@ Typed example/override forms: `cratis-screenplay-specifications`
|
|
|
29
29
|
| Event `stream` / `no stream`, typed `for` and stream ids | yes | ESM v8 | The CLI reaches Stage route checks (toolchain `references/renderable-subset.md`); routed read-model/query replay now renders; 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
|
+
| `then no events`, `when redelivered` | yes | ESM v17; no new facts, input not re-appended | Stage no-event/redelivery subset; fan-out/cascades/constraints/read expectations/refusal redelivery retain -011 |
|
|
33
|
+
| Refusal branches, `$refusal` | yes | ESM v19; first matching branch wins | Stage supported subset; -039 for unfaithful refusal details/trigger groups, -011 for specification limits |
|
|
34
|
+
| Query `then error` | yes | ESM v18; one query/one error, no result/denial | requires target v18 admission; a v19-capable renderer does not necessarily admit v18 |
|
|
33
35
|
| Composite (JSON) values in specs | yes | yes | no |
|
|
34
36
|
| Rules over dates or `today`, nested paths | spec them in design | rule does not bind: `recorded` | `recorded` |
|
|
35
37
|
| Bodied rules, code policies | spec them | spec reported **unsupported**, never passed | no |
|
|
@@ -37,6 +39,9 @@ Typed example/override forms: `cratis-screenplay-specifications`
|
|
|
37
39
|
|
|
38
40
|
Requires Screenplay 4.105.0 or later (`screenplay --version`) for list-query specifications, and 4.143.0 or later for collection equality filters (ESM v14).
|
|
39
41
|
|
|
42
|
+
Requires Screenplay 4.157.0 for v17, 4.160.0 for v19 and 4.161.0 for query validation/error assertions (`screenplay --version`); older compilers refuse those forms.
|
|
43
|
+
Requires Stage 4.90.0 for snapshot/live lists, 4.101.0 for no-event specifications, 4.102.0 for refusal branches and 4.103.0 for rendered redelivery; older renderers refuse those shapes.
|
|
44
|
+
|
|
40
45
|
## Design mode
|
|
41
46
|
Write the full intended behaviour, including scenarios the executable subset cannot run
|
|
42
47
|
(filtered, scoped and performer-backed views; clock, trigger and capture scenarios when only a
|
|
@@ -51,12 +56,12 @@ older cratis bundle is available). Mark each such spec in the coverage matrix as
|
|
|
51
56
|
- Run V3 (binding-ready, per `cratis-screenplay-toolchain`); binding-only codes (PLAY0273/0350/0352/0388/0389) appear only there.
|
|
52
57
|
- V4 runs through `screenplay test` or MCP `run-specifications`; record expected,
|
|
53
58
|
discovered/selected and passed/failed/unsupported counts. Unbound/unsupported
|
|
54
|
-
is not passed.
|
|
55
|
-
|
|
59
|
+
is not passed. Operation specs remain authoring-only recorded contracts; refusal/redelivery
|
|
60
|
+
reference execution is independent of the owning target's admission.
|
|
56
61
|
|
|
57
62
|
## Renderable mode
|
|
58
63
|
- Specs use given events, a command `when`, and then events / readmodel / query / error /
|
|
59
|
-
denied.
|
|
64
|
+
denied. Only supported single-hop `when append` or located redelivery; no `then no readmodel`. `given readmodel` appears only in the
|
|
60
65
|
query-only lookup below.
|
|
61
66
|
- Query-only specs (no command `when`) are admitted by Stage in exactly two cases, and
|
|
62
67
|
`when query` and `then query` are the same case: Screenplay normalises `when query` to the
|