@cratis/pi 7.42.0 → 7.44.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/product-sync.json +3 -3
- package/package/corpus/skills/cratis-screenplay-command-surface/SKILL.md +2 -0
- package/package/corpus/skills/cratis-screenplay-command-surface/references/generated-values-and-responses.md +36 -1
- package/package/corpus/skills/cratis-screenplay-command-surface/references/validate-rules.md +29 -0
- package/package/corpus/skills/cratis-screenplay-command-surface/verification.json +3 -0
- package/package/corpus/skills/cratis-screenplay-model-authoring/SKILL.md +29 -23
- package/package/corpus/skills/cratis-screenplay-model-authoring/references/language-reference.md +1 -1
- package/package/corpus/skills/cratis-screenplay-model-authoring/references/mcp-loop.md +23 -3
- package/package/corpus/skills/cratis-screenplay-model-authoring/references/mcp-tools.md +96 -0
- package/package/corpus/skills/cratis-screenplay-model-authoring/verification.json +15 -0
- package/package/corpus/skills/cratis-screenplay-read-surface/SKILL.md +1 -1
- package/package/corpus/skills/cratis-screenplay-read-surface/references/equality-filters.md +1 -1
- package/package/corpus/skills/cratis-screenplay-render-and-gap-fill/SKILL.md +1 -1
- package/package/corpus/skills/cratis-screenplay-render-and-gap-fill/references/delivery-protocol.md +1 -1
- package/package/corpus/skills/cratis-screenplay-scenario-coverage/SKILL.md +8 -2
- package/package/corpus/skills/cratis-screenplay-scenario-coverage/references/view-and-story-specs.md +11 -0
- package/package/corpus/skills/cratis-screenplay-scenario-coverage/verification.json +2 -0
- package/package/corpus/skills/cratis-screenplay-specifications/SKILL.md +5 -0
- package/package/corpus/skills/cratis-screenplay-specifications/references/child-ordering.md +116 -0
- package/package/corpus/skills/cratis-screenplay-specifications/references/whitespace-rules.md +119 -0
- package/package/corpus/skills/cratis-screenplay-specifications/verification.json +8 -0
- package/package/corpus/skills/cratis-screenplay-streams-and-consistency/SKILL.md +9 -1
- package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/consistency-and-concurrency.md +10 -1
- package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/evolution-example.md +6 -3
- package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/evolution.md +30 -1
- package/package/corpus/skills/cratis-screenplay-streams-and-consistency/verification.json +3 -0
- package/package/corpus/skills/cratis-screenplay-toolchain/SKILL.md +2 -2
- package/package/corpus/skills/cratis-screenplay-toolchain/references/diagnostics.md +19 -0
- package/package/corpus/skills/cratis-screenplay-toolchain/references/executable-subset.md +35 -2
- package/package/corpus/skills/cratis-screenplay-toolchain/references/screenplay-contract.json +13 -2
- package/package/corpus/skills/cratis-screenplay-toolchain/references/screenplay-contract.version +1 -1
- package/package/corpus/skills/cratis-screenplay-toolchain/references/sources-and-streams.md +20 -0
- package/package/corpus/skills/cratis-screenplay-toolchain/references/verdicts.md +1 -1
- package/package/corpus/skills/cratis-screenplay-toolchain/references/versions.md +16 -5
- package/package/corpus/skills/cratis-screenplay-toolchain/verification.json +4 -1
- package/package.json +1 -1
|
@@ -166,9 +166,9 @@
|
|
|
166
166
|
}
|
|
167
167
|
],
|
|
168
168
|
"synced": {
|
|
169
|
-
"version": "4.
|
|
169
|
+
"version": "4.151.0",
|
|
170
170
|
"date": "2026-10-13",
|
|
171
|
-
"by": "Cratis/AI#
|
|
171
|
+
"by": "Cratis/AI#652"
|
|
172
172
|
},
|
|
173
173
|
"covers": {
|
|
174
174
|
"skills": [
|
|
@@ -196,7 +196,7 @@
|
|
|
196
196
|
],
|
|
197
197
|
"rules": []
|
|
198
198
|
},
|
|
199
|
-
"notes": "Standalone 4.
|
|
199
|
+
"notes": "Standalone 4.151.0 and byte-identical published/Golden contract pinned for Cratis/AI#648, #650 and #652. Text not empty rejects Unicode White_Space-only values in every ESM version without changing canonical bytes; collections and identity text remain unchanged. Stored stream All is reserved at binding (PLAY0273), including id pins; event pins warn PLAY0686 because their stored names do not yet reach renderers. Child-before-parent reference deferral is executable across given/when and accepted commits; parent absence leaves children out, ambiguous parents fail, and decision 0007's creation-event routing difference remains. Adds the concept generation MCP summary, typed strategy editing guidance and PLAY0683/PLAY0684 entropy/uniqueness repairs; derived regex, matches/checksum repair and rule-proof status remain unshipped. Retains ESM v15 strategies, strict fixtures, whole-source freshness and 4.148.0 response-name resolution. Historical evidence stays qualified. CLI 3.57.0 / MCP 4.147.1 lacks the new summary and repairs; this pin does not upgrade CLI or Scene runtime."
|
|
200
200
|
},
|
|
201
201
|
{
|
|
202
202
|
"id": "scene",
|
|
@@ -261,6 +261,8 @@ produces when isProForma == true
|
|
|
261
261
|
Routes bind as ESM v8; production `stream Source.Stream` overrides
|
|
262
262
|
select v10. Read toolchain [routes](../cratis-screenplay-toolchain/references/production-routes-and-filters.md)
|
|
263
263
|
and [source/stream declarations](../cratis-screenplay-toolchain/references/sources-and-streams.md).
|
|
264
|
+
Since **4.150.0**, stored stream `All` / `id "All"` refuses PLAY0273;
|
|
265
|
+
rename and history-migration guidance is in that reference.
|
|
264
266
|
`public event X` is a local export; `event X from "store"` is a locally declared,
|
|
265
267
|
unverified foreign shape. Commands never produce public events. Read
|
|
266
268
|
[translation direction](../cratis-screenplay-automations-and-translations/references/public-events-and-direction.md)
|
|
@@ -3,13 +3,14 @@
|
|
|
3
3
|
## Contents
|
|
4
4
|
|
|
5
5
|
- The concept declares how; the property declares that
|
|
6
|
+
- Inspect and edit generation through MCP
|
|
6
7
|
- Version and freshness
|
|
7
8
|
- Responses and pre-generation boundaries
|
|
8
9
|
- What CLI 3.57.0 / Stage 4.89.1 realizes
|
|
9
10
|
|
|
10
11
|
`generated` properties and `returns` bind/reference-execute since 4.68.0 (ESM v7).
|
|
11
12
|
Concept generation strategies and whole-source freshness shipped in Screenplay
|
|
12
|
-
4.147.0 (ESM v15); standalone pin **4.
|
|
13
|
+
4.147.0 (ESM v15); standalone pin **4.151.0** includes them. CLI **3.57.0** bundles
|
|
13
14
|
Screenplay **4.147.1** / Stage **4.89.1**, rendering the supported strategies,
|
|
14
15
|
scalar/named responses, fixtures and `then returns`. Binding is not rendering.
|
|
15
16
|
Historical CLI 3.41.0 STAGE-ESM-028/029 probes do not describe this bundle.
|
|
@@ -71,6 +72,40 @@ Stage render generated unique-constraint mappings.
|
|
|
71
72
|
and compliance markers, including generated secrets, remain refused. Do not
|
|
72
73
|
remove classification or pretend a random String is a credential contract.
|
|
73
74
|
|
|
75
|
+
## Inspect and edit generation through MCP
|
|
76
|
+
|
|
77
|
+
Screenplay **4.149.0** adds a concept `generation` summary and entropy repairs.
|
|
78
|
+
Use `screenplay_declaration_details` with `kind: "Concept"`, `view: "summary"`:
|
|
79
|
+
only authored `generate` gets a block, with strategy, set modifiers,
|
|
80
|
+
preview-only arguments, `entropyBits`, `entropyUnknownReason` when null,
|
|
81
|
+
`valuesAtOnePercentCollision` and `executable.status`. Status is `admitted` only
|
|
82
|
+
after whole-model binding, `refused` for errors at this concept/generation, or
|
|
83
|
+
`notAssessed` with a reason for unrelated binding failures. Empty local codes do
|
|
84
|
+
not prove admission; large collision counts may exceed client numeric range.
|
|
85
|
+
|
|
86
|
+
Set/change/remove `generate` through `screenplay_propose_ast` (replace the concept's
|
|
87
|
+
`GenerationSyntax`, omit/null `generation` to remove) or reviewed
|
|
88
|
+
`screenplay_propose_source`; do not hand-edit the text. Inspect executable
|
|
89
|
+
diagnostics independently of authoring acceptance: sequence PLAY0682;
|
|
90
|
+
pattern/random/rule and generated-concept rules PLAY0268. Review, run candidate
|
|
91
|
+
specifications where executable, then apply with revisions.
|
|
92
|
+
|
|
93
|
+
`screenplay_repair_capabilities` advertises PLAY0683/0684; workspace repairs supply
|
|
94
|
+
the selected `diagnosticCode` and `subject` for `screenplay_propose_repair`.
|
|
95
|
+
The concept subject raises NanoID to the smallest size reaching 64 random bits
|
|
96
|
+
for its alphabet, or bytes count to 8 (possibly in another document). PLAY0683
|
|
97
|
+
also offers uniqueness for a non-identifier command-property subject only when
|
|
98
|
+
exactly one production maps it to exactly one event property. Both require
|
|
99
|
+
individual review and `CanonicalizeTouchedDocuments`, with no pinned evidence.
|
|
100
|
+
Length changes affect all concept uses; uniqueness changes append-time behavior.
|
|
101
|
+
Derived regex, matches/checksum repairs and rule-proof status are not shipped.
|
|
102
|
+
CLI **3.57.0** / MCP **4.147.1** lacks this summary and these repairs; it still
|
|
103
|
+
supports existing typed concept proposals. Full fields, mapping limits and tagged
|
|
104
|
+
source evidence: [MCP generation guide](../../cratis-screenplay-model-authoring/references/mcp-tools.md#concept-generation-41490).
|
|
105
|
+
Sources: Cratis/Screenplay `v4.149.0:Documentation/screenplay/generated-values.md:62-70`,
|
|
106
|
+
`Source/DotNET/Screenplay.Mcp/McpGenerationDetails.cs:13-83`,
|
|
107
|
+
`Source/DotNET/Screenplay/Workspaces/WorkspaceGenerationRepairs.cs:29-134`.
|
|
108
|
+
|
|
74
109
|
## Version and freshness
|
|
75
110
|
|
|
76
111
|
A serialized concept `generation` member selects **v15**. Implicit Uuid generation
|
package/package/corpus/skills/cratis-screenplay-command-surface/references/validate-rules.md
CHANGED
|
@@ -14,6 +14,35 @@
|
|
|
14
14
|
| `all > <v>` / `all >= <v>` | `lines.quantity all > 0` |
|
|
15
15
|
| `rule <Name>` | `orgNumber rule BeAValidOrganizationNumber` |
|
|
16
16
|
|
|
17
|
+
## `not empty` means non-blank text (4.151.0)
|
|
18
|
+
|
|
19
|
+
On text, `not empty` rejects null, empty text and whitespace-only text; at least
|
|
20
|
+
one non-whitespace character is required. Concept and command property rules
|
|
21
|
+
have the same meaning in **every ESM version** from Screenplay **4.151.0**.
|
|
22
|
+
The rule does not trim or normalize the value: `" a "` passes unchanged.
|
|
23
|
+
Whitespace is Unicode `White_Space` (.NET `char.IsWhiteSpace`): U+0009–U+000D,
|
|
24
|
+
U+0020, U+0085, U+00A0, U+1680, U+2000–U+200A, U+2028, U+2029, U+202F,
|
|
25
|
+
U+205F and U+3000. U+0085 and U+00A0 fail; a lone U+FEFF passes. JavaScript
|
|
26
|
+
`trim()` is not equivalent (it misses U+0085 and removes U+FEFF).
|
|
27
|
+
|
|
28
|
+
On a collection, `not empty` still means **at least one element**, regardless
|
|
29
|
+
of that element's value: a collection containing empty or whitespace text is
|
|
30
|
+
nonempty. Identity text is separate and unchanged: event-source identities and
|
|
31
|
+
stream-id parts treat whitespace as a value, and only exact empty text is empty.
|
|
32
|
+
Do not apply this validation correction as identity normalization.
|
|
33
|
+
|
|
34
|
+
Add a whitespace-only rule rejection with the exact message; existing reference
|
|
35
|
+
specifications that expected acceptance now fail, even on an older ESM version.
|
|
36
|
+
The release changes reference outcomes, not canonical bytes or the ESM version.
|
|
37
|
+
A standalone pass is not proof that a bundled compiler or renderer has adopted
|
|
38
|
+
this correction. Complete exercised model:
|
|
39
|
+
[whitespace rule specifications](../../cratis-screenplay-specifications/references/whitespace-rules.md).
|
|
40
|
+
|
|
41
|
+
Sources: Cratis/Screenplay `v4.151.0`,
|
|
42
|
+
`Source/DotNET/Screenplay/Semantics/Execution/SemanticEvaluator.cs:102-110`,
|
|
43
|
+
`Documentation/screenplay/commands.md:404-407`, `concepts.md:190` in the same
|
|
44
|
+
folder, and `decisions/0071-whitespace-only-text-does-not-satisfy-not-empty.md:37-41,79`.
|
|
45
|
+
|
|
17
46
|
## Rules whose logic is code
|
|
18
47
|
|
|
19
48
|
**Rules whose logic is code.** A bare `rule <Name>` records that a rule exists but
|
|
@@ -4,6 +4,9 @@
|
|
|
4
4
|
"fixtures": [],
|
|
5
5
|
"assertions": [
|
|
6
6
|
{ "kind": "play-compiles" },
|
|
7
|
+
{ "kind": "skill-contains", "value": "screenplay_declaration_details", "file": "references/generated-values-and-responses.md" },
|
|
8
|
+
{ "kind": "skill-contains", "value": "do not hand-edit the text", "file": "references/generated-values-and-responses.md" },
|
|
9
|
+
{ "kind": "skill-contains", "value": "CLI **3.57.0** / MCP **4.147.1** lacks this summary", "file": "references/generated-values-and-responses.md" },
|
|
7
10
|
{ "kind": "skill-contains", "value": "optional concept `compliance` as ESM v13", "file": "references/compliance.md" },
|
|
8
11
|
{ "kind": "skill-contains", "value": "PLAY0268 at binding only", "file": "references/compliance.md" },
|
|
9
12
|
{ "kind": "skill-contains", "value": "reasons stay report-only PLAY0270", "file": "references/compliance.md" },
|
|
@@ -25,7 +25,8 @@ same model root or workspace export to all checks. Workflow:
|
|
|
25
25
|
|
|
26
26
|
Screenplay v4.144.0: model notes sources/lines in `references/model-notes.md`;
|
|
27
27
|
v4.142.0 add/rename/remove planner in `references/property-links.md`;
|
|
28
|
-
compliance in command-surface `references/compliance.md`.
|
|
28
|
+
compliance in command-surface `references/compliance.md`. Generation MCP: v4.149.0,
|
|
29
|
+
[fields/repairs/sources](references/mcp-tools.md#concept-generation-41490). Other MCP evidence:
|
|
29
30
|
v4.139.0 `Documentation/screenplay/mcp/`.
|
|
30
31
|
Discover installed tools and schemas; CLI bundles can differ from the standalone
|
|
31
32
|
tool. Pins are in `cratis-screenplay-toolchain` `references/versions.md`.
|
|
@@ -73,10 +74,10 @@ The CLI entry point is:
|
|
|
73
74
|
cratis screenplay mcp <model-folder>
|
|
74
75
|
```
|
|
75
76
|
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
77
|
+
CLI 3.57.0 bundles MCP 4.147.1, lacking the generation summary/entropy repairs.
|
|
78
|
+
Discover installed capabilities. Do not ask for a second global .NET tool, Docker
|
|
79
|
+
or hand-copied managed MCP configuration. Installation/status must confirm adapter
|
|
80
|
+
support and no conflicts.
|
|
80
81
|
|
|
81
82
|
If the MCP is unavailable, report that gap. Do not claim compiler-validated AST
|
|
82
83
|
editing while falling back to regex. Existing standalone `screenplay mcp` users
|
|
@@ -91,6 +92,8 @@ can keep that entry point; use the project's supported installation channel.
|
|
|
91
92
|
Before a property change, read [property links](references/property-links.md):
|
|
92
93
|
`kind: "Property"`, `Owner.member` / `Owner.generationN.member`, direct mappings.
|
|
93
94
|
`complete: false` is incomplete evidence, never a successful empty list.
|
|
95
|
+
For `generate`, inspect Concept `summary`: entropy and admission are separate.
|
|
96
|
+
Edit through MCP proposals, not hand-edited text; [generation guide](references/mcp-tools.md#concept-generation-41490).
|
|
94
97
|
3. Read diagnostics and coverage limitations. Use `dependency-graph` for container
|
|
95
98
|
edges, declared-dependency coverage, cycles and advisory order; the board's
|
|
96
99
|
dependency-map toggle exposes this evidence visually. Unknown or ambiguous
|
|
@@ -127,8 +130,8 @@ query argument or specification goes through MCP, and an `id` pin is not enough
|
|
|
127
130
|
a rename, move or removal is the approval: do not ask again at `apply`. Without MCP, text-rename
|
|
128
131
|
with `id "<Old>"` pins and an identity note; only with `identities.json` and no MCP, return the
|
|
129
132
|
request to the owning session, saying first it is NOT done.
|
|
130
|
-
Proposals are connection-local (
|
|
131
|
-
|
|
133
|
+
Proposals are connection-local (16 cap); only the owner proposes/applies.
|
|
134
|
+
Others send an edit request ([MCP loop](references/mcp-loop.md)).
|
|
132
135
|
|
|
133
136
|
- Apply is not crash-atomic across files: it journals its inverse first. The model
|
|
134
137
|
root must be trusted and exclusively writable during effects.
|
|
@@ -156,25 +159,22 @@ and applies; others send an edit request ([MCP loop](references/mcp-loop.md)).
|
|
|
156
159
|
model. Paging and read-only candidate semantics: [MCP tool guide](references/mcp-tools.md#run-reference-specifications).
|
|
157
160
|
8. `apply` only the reviewed server-produced proposal within the user's requested
|
|
158
161
|
change. The proposal ID and before revisions are required; stale state rejects.
|
|
159
|
-
When the user
|
|
160
|
-
"apply each change"), apply once the proposal checks out instead of asking again;
|
|
162
|
+
When the user already requested apply, do it after checks without asking again;
|
|
161
163
|
otherwise show the proposal and ask once.
|
|
162
164
|
9. When the host draws views, `visualize-model` shows the board. It follows the files
|
|
163
165
|
on disk while open, so after an apply do not re-request it; just say what changed.
|
|
164
166
|
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
assume every fragment changed. After apply, fetch fresh handles/revisions.
|
|
167
|
+
Handles are revision-bound occurrences, not durable IDs. Modules/features can
|
|
168
|
+
span fragments; one header edit may not change all. After apply, fetch fresh handles/revisions.
|
|
168
169
|
|
|
169
|
-
|
|
170
|
-
when a call refuses or paging hits a limit; use `failureKind`, never message text.
|
|
170
|
+
On refusal, use `failureKind`, never message text ([failures/limits](references/mcp-loop.md#failures-use-failurekind-never-message-text)).
|
|
171
171
|
After revision/disk/identity drift, reopen and re-propose. For `ApplyOutcomeUnknown`
|
|
172
172
|
or EOF during `apply`, **never retry apply**: reconnect, inspect `workspace-state`
|
|
173
173
|
and ask. Never delete `.screenplay/pending.json`. Limits reject, never truncate.
|
|
174
174
|
|
|
175
|
-
Choose formatting
|
|
176
|
-
|
|
177
|
-
`PreserveTrivia`, canonical consent
|
|
175
|
+
Choose formatting and disclose dropped comments before apply:
|
|
176
|
+
[formatting/limits](references/mcp-loop.md#formatting-and-limits) covers
|
|
177
|
+
`PreserveTrivia`, canonical consent and byte preservation.
|
|
178
178
|
|
|
179
179
|
`identityMigrationIssues`: read the [MCP loop](references/mcp-loop.md).
|
|
180
180
|
|
|
@@ -199,6 +199,9 @@ from silently changing the reviewed candidate.
|
|
|
199
199
|
No automatic generation-evolution repair ships.
|
|
200
200
|
- `PLAY0479`: migrate optionality spelling with `PreserveTrivia`; document scope
|
|
201
201
|
migrates all occurrences together. Keep the `query Q => observable?` exception.
|
|
202
|
+
- PLAY0683/PLAY0684: raise entropy (concept subject) or PLAY0683 uniqueness
|
|
203
|
+
(command-property subject). Individual review, canonical formatting, no pinned
|
|
204
|
+
evidence; [limits](references/mcp-tools.md#concept-generation-41490).
|
|
202
205
|
- Compliance repairs PLAY0565/0653: [MCP tool guide](references/mcp-tools.md).
|
|
203
206
|
|
|
204
207
|
`propose-number-enum-members` pins an unnumbered enum to current positions.
|
|
@@ -208,7 +211,11 @@ stored enums, not correctness repairs. Arguments/review: `references/mcp-tools.m
|
|
|
208
211
|
Use `propose-extract-inline-event` on the inline `EventSyntax` handle before adding
|
|
209
212
|
a generation (canonical formatting consent; refuses comment loss; no reverse
|
|
210
213
|
operation). Event `propose-rename` pins `id "<old name>"` by default; use
|
|
211
|
-
`eventNeverPersisted: true` only when
|
|
214
|
+
`eventNeverPersisted: true` only when known. Since **4.150.0**, PLAY0686 and
|
|
215
|
+
event rename output warn: pins do not reach renderers, which use the new name.
|
|
216
|
+
Do not promise rendered stored-history compatibility. Stored stream `All` (even
|
|
217
|
+
`id "All"`) refuses PLAY0273; rename it without retaining that pin.
|
|
218
|
+
Read `references/mcp-tools.md` for repair/rename limits, migration and evidence:
|
|
212
219
|
[MCP tool guide](references/mcp-tools.md).
|
|
213
220
|
|
|
214
221
|
## Choose a readable layout
|
|
@@ -240,11 +247,10 @@ the edited fragment.
|
|
|
240
247
|
|
|
241
248
|
## Preserve state and recover explicitly
|
|
242
249
|
|
|
243
|
-
|
|
244
|
-
`
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
not text-rename identity-affecting declarations in a model that has it.
|
|
250
|
+
Commit `.screenplay/identities.json` with the model. Only `apply` writes it;
|
|
251
|
+
`open-workspace` never creates it; text-only models have none. Never delete or
|
|
252
|
+
overwrite conflicting identity state, silently mint IDs on restart, or text-rename
|
|
253
|
+
identity-affecting declarations in a model that has it.
|
|
248
254
|
|
|
249
255
|
Default root discovery preserves ancestor identity state and journals. Inspect
|
|
250
256
|
`rootBindingConflict` in `open-workspace`/`workspace-state` when several state roots
|
package/package/corpus/skills/cratis-screenplay-model-authoring/references/language-reference.md
CHANGED
|
@@ -250,7 +250,7 @@ the standalone 4.66.0 tool for the rows marked "probed"; Cratis CLI 3.28.2 and 3
|
|
|
250
250
|
Screenplay 4.66.0 (before 3.28.2, Screenplay 4.60.1, differ where stated).
|
|
251
251
|
|
|
252
252
|
Read-model identity below is corrected to 4.135.0; equality query filters are
|
|
253
|
-
updated to standalone 4.
|
|
253
|
+
updated to standalone 4.151.0 (admitted in 4.143.0, ESM v14):
|
|
254
254
|
explicit trailing `key` wins; otherwise single-instance queries in the owning slice
|
|
255
255
|
must agree on `by`. Only with no single-instance identifier and an admitted list
|
|
256
256
|
query does conventional `*Id` inference run. Queryless views need explicit `key`.
|
|
@@ -112,6 +112,11 @@ the server sends `roots/list` and serves `tools/list` after the reply).
|
|
|
112
112
|
`Owner.generationN.member`. Follow direct mapping counterparts one query at a
|
|
113
113
|
time; inspect incomplete/ambiguous evidence and `reasons`. `complete: false`
|
|
114
114
|
is not an empty successful result. Shapes/roles: [property links](property-links.md).
|
|
115
|
+
On Screenplay 4.149.0, inspect concept `generate` with `declaration-details`
|
|
116
|
+
`kind: "Concept"`, `view: "summary"`: `generation.executable.status` distinguishes
|
|
117
|
+
`admitted`, `refused`, `notAssessed`; empty local error codes do not prove binding.
|
|
118
|
+
The CLI 3.57.0 / MCP 4.147.1 bundle lacks this summary and entropy repairs.
|
|
119
|
+
Fields and tagged evidence: [concept generation](mcp-tools.md#concept-generation-41490).
|
|
115
120
|
3. `open-workspace` and keep `revision` and `catalogRevision`. Opening writes
|
|
116
121
|
nothing. With `identityPersistence: "root-local-on-apply"` the identities file
|
|
117
122
|
is written only by `apply`.
|
|
@@ -183,9 +188,12 @@ the server sends `roots/list` and serves `tools/list` after the reply).
|
|
|
183
188
|
A text edit is **never** a way around a refusal: if a typed operation refused,
|
|
184
189
|
change the request or ask, do not retype the file.
|
|
185
190
|
4. **`id` pins alone are not enough when `.screenplay/identities.json` exists.**
|
|
186
|
-
A text rename plus an `id "<old name>"` pin
|
|
187
|
-
|
|
191
|
+
A text rename plus an `id "<old name>"` pin preserves authored stored-name intent
|
|
192
|
+
but leaves the identity catalog pointing at the old declaration; the next
|
|
188
193
|
`apply` can mint new identities silently. Use the identity-preserving operation.
|
|
194
|
+
At Screenplay 4.150.0, PLAY0686 and event rename output warn that the pin is
|
|
195
|
+
not carried to renderers: generated code uses the new name. Do not rely on it
|
|
196
|
+
for rendered stored-history compatibility; evidence and limits: `mcp-tools.md`.
|
|
189
197
|
5. **A session without MCP** (a subagent, or a harness with no server) carries out a
|
|
190
198
|
requested rename by text with `id "<Old>"` pins and an identity note when no
|
|
191
199
|
`.screenplay/identities.json` exists. When it exists, it does not edit
|
|
@@ -196,12 +204,24 @@ the server sends `roots/list` and serves `tools/list` after the reply).
|
|
|
196
204
|
| --- | --- | --- |
|
|
197
205
|
| 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` |
|
|
198
206
|
| 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) |
|
|
199
|
-
|
|
|
207
|
+
| 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/generated-concept rules PLAY0268. |
|
|
208
|
+
| 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 |
|
|
200
209
|
| Inline event extraction | `produces event ...` to a declared event | `propose-extract-inline-event` |
|
|
201
210
|
| Parser-invalid document | no editable handles | `propose-source` `replace-document` with corrected source, or typed `propose-ast` document replacement |
|
|
202
211
|
| Unadmitted constructs | systems/operations, the `numbers exact` source mode, refusal/redelivery | reviewed Authoring `propose-source` (whole documents) or `propose-ast` (typed edits); preserve intent and report PLAY0268 |
|
|
203
212
|
| Admitted source/stream routing | ESM v8 at 4.125.0 | typed `propose-ast`; `propose-rename` repairs proven route references; target admission separate |
|
|
204
213
|
|
|
214
|
+
PLAY0683/PLAY0684 repairs raise NanoID size or bytes count to at least 64 random
|
|
215
|
+
bits using the concept subject (possibly across documents). PLAY0683 can instead
|
|
216
|
+
add uniqueness when exactly one production maps the command property to exactly
|
|
217
|
+
one event property: use the command-property subject. Discover `repair-capabilities`
|
|
218
|
+
and `read-workspace view: "repairs"`, then `propose-repair` with both revisions and
|
|
219
|
+
`CanonicalizeTouchedDocuments`; review every changed document before apply.
|
|
220
|
+
Neither action supports fix-all or pinned evidence. A concept change affects all
|
|
221
|
+
uses; uniqueness changes append-time behavior. Derived regex, matches/checksum
|
|
222
|
+
repairs and rule-proof status await phase 2b-2; details and source citations are in
|
|
223
|
+
[concept generation](mcp-tools.md#concept-generation-41490).
|
|
224
|
+
|
|
205
225
|
## Self-describing identity migration refusals
|
|
206
226
|
|
|
207
227
|
At Screenplay 4.127.0, read `identityMigrationIssues` on rejected proposals
|
|
@@ -8,6 +8,7 @@
|
|
|
8
8
|
- Tool groups
|
|
9
9
|
- Run reference specifications
|
|
10
10
|
- Whole-source authoring
|
|
11
|
+
- Concept generation (4.149.0)
|
|
11
12
|
- Diagnostic repairs and refactorings
|
|
12
13
|
- Syntax-only constructs through the MCP
|
|
13
14
|
- Descriptions and specification views
|
|
@@ -135,6 +136,80 @@ dropped comments, identity changes and introduced executable errors through
|
|
|
135
136
|
`read-proposal`, then `apply` with before revisions. Accepted authoring source with
|
|
136
137
|
`executableReady: false` is not running behavior.
|
|
137
138
|
|
|
139
|
+
## Concept generation (4.149.0)
|
|
140
|
+
|
|
141
|
+
Inspect `screenplay_declaration_details` (`declaration-details`) with
|
|
142
|
+
`kind: "Concept"`, `view: "summary"` and the concept's address. Its `details.generation`
|
|
143
|
+
exists only for authored `generate`; an implicit UUID default has no block.
|
|
144
|
+
|
|
145
|
+
| Field | Meaning |
|
|
146
|
+
| --- | --- |
|
|
147
|
+
| `strategy` | Authored strategy name |
|
|
148
|
+
| `modifiers` | Only set `prefix`, `case`, `size`, `alphabet`, `count`, `encoding`; omitted defaults are not filled in |
|
|
149
|
+
| `previewArguments` | Present only for authored `pattern`, `checksum`, `range`, `rule`; each is `{value, executable: false}` |
|
|
150
|
+
| `entropyBits` | Exact random bits, or null for unknown strategy/invalid entropy inputs |
|
|
151
|
+
| `entropyUnknownReason` | Present only when entropy is unknown |
|
|
152
|
+
| `valuesAtOnePercentCollision` | JSON number estimating the 1% birthday collision count, or null; scientific notation can exceed client floating-point range |
|
|
153
|
+
| `executable` | `status`, `diagnosticCodes`, and `reason` only for `notAssessed` |
|
|
154
|
+
|
|
155
|
+
`executable.status` is `refused` when compiler **errors** target the concept or its
|
|
156
|
+
`generation`; `admitted` only when the whole model produced an executable model
|
|
157
|
+
and no such error exists; otherwise `notAssessed`, with a reason that whole-model
|
|
158
|
+
binding failed. `diagnosticCodes` contains only errors at these two locations.
|
|
159
|
+
An empty list is not admission; low-entropy property diagnostics require workspace
|
|
160
|
+
inspection. Invalid alphabets/non-positive sizes or counts yield null estimates
|
|
161
|
+
with `entropyUnknownReason`, preserving compiler diagnostics. Time, prefixes,
|
|
162
|
+
case and encoding add no randomness; the compiler, details and repairs share
|
|
163
|
+
`GenerationEntropy`, not an agent's parallel estimate.
|
|
164
|
+
|
|
165
|
+
Use MCP proposals, not hand-edited `generate` text. Discover `syntax-schema` and
|
|
166
|
+
read the `ConceptSyntax` handle, then `screenplay_propose_ast` (`propose-ast`)
|
|
167
|
+
`replace` that concept while preserving its other members: set/change its typed
|
|
168
|
+
`generation` (`kind: "GenerationSyntax"`), or omit/null it to remove the strategy.
|
|
169
|
+
`screenplay_propose_source` (`propose-source`) accepts the equivalent complete
|
|
170
|
+
source document under the same revision/review contract. Canonical printing
|
|
171
|
+
retains `generate`. Review `read-proposal` changes and `view: "executable-diagnostics"`,
|
|
172
|
+
run candidate specifications where executable, then explicitly `apply`.
|
|
173
|
+
Authoring acceptance does not imply executable readiness: `sequence` reports
|
|
174
|
+
PLAY0682; `pattern`/`random`/`rule` and generated-concept validation rules report
|
|
175
|
+
PLAY0268. Do not retype a refused proposal to bypass those diagnostics.
|
|
176
|
+
|
|
177
|
+
`screenplay_repair_capabilities` advertises PLAY0683/PLAY0684. Discover concrete
|
|
178
|
+
verified actions with `read-workspace view: "repairs"` at the diagnostic revision:
|
|
179
|
+
|
|
180
|
+
| Code | Selected action and subject |
|
|
181
|
+
| --- | --- |
|
|
182
|
+
| PLAY0683/PLAY0684 | Raise generation to at least 64 random bits: smallest NanoID size for its alphabet, or bytes count 8. Subject is the **concept**, possibly in another document. |
|
|
183
|
+
| PLAY0683 | Add a unique constraint for the generated property: exactly one production maps it to exactly one non-nested event property. Subject is the **command property**; add to its slice. Not offered for identifiers or a colliding constraint name. |
|
|
184
|
+
|
|
185
|
+
Send the returned `diagnosticCode` and `subject` to `screenplay_propose_repair`
|
|
186
|
+
(`propose-repair`) with both revisions and
|
|
187
|
+
`formatting: "CanonicalizeTouchedDocuments"`. Subjects distinguish the two PLAY0683
|
|
188
|
+
actions; there is no extra selector. Both require individual review (`canFixAll: false`),
|
|
189
|
+
with no pinned attachment evidence. A length change affects every use of the
|
|
190
|
+
concept; uniqueness changes append-time behavior. Review every changed document
|
|
191
|
+
before applying; discovery/proposal write nothing. The saved-file VS Code repair
|
|
192
|
+
picker does not expose these entropy actions.
|
|
193
|
+
|
|
194
|
+
Derived regexes, derived `matches`/checksum repairs and rule-proof status are
|
|
195
|
+
**not shipped** in this view (Screenplay#616 phase 2b-2); MCP does not generate values.
|
|
196
|
+
CLI **3.57.0** bundles MCP **4.147.1**: `cratis screenplay mcp` lacks this generation
|
|
197
|
+
summary and entropy repairs. Existing typed concept proposals predate the new
|
|
198
|
+
summary; discover installed schemas rather than assuming the standalone surface.
|
|
199
|
+
|
|
200
|
+
Sources: Cratis/Screenplay **v4.149.0**,
|
|
201
|
+
`Source/DotNET/Screenplay.Mcp/McpGenerationDetails.cs:13-83`,
|
|
202
|
+
`McpDeclarationDetails.cs:160`, `McpRepairCapabilities.cs:10-24`,
|
|
203
|
+
`Source/DotNET/Screenplay/Workspaces/WorkspaceGenerationRepairs.cs:29-134`,
|
|
204
|
+
`Source/DotNET/Screenplay/Semantics/GenerationEntropy.cs:15-60`,
|
|
205
|
+
`Source/DotNET/Screenplay.Mcp/for_McpAuthoringWorkflow/when_authoring_generation.cs:10-97`,
|
|
206
|
+
`when_describing_generation.cs:10-118`, `when_repairing_generation.cs:10-50`;
|
|
207
|
+
`Documentation/screenplay/mcp/reference.md:103-128` and
|
|
208
|
+
`generated-values.md:62-70`. Bundle evidence: Cratis/cli
|
|
209
|
+
`v3.57.0:Directory.Packages.props:8,35-37`; Cratis/Screenplay **v4.147.1**,
|
|
210
|
+
`Source/DotNET/Screenplay.Mcp/McpDeclarationDetails.cs:153-160` and
|
|
211
|
+
`McpRepairCapabilities.cs:10-24`.
|
|
212
|
+
|
|
138
213
|
## Diagnostic repairs and refactorings
|
|
139
214
|
|
|
140
215
|
Check installed `tools/list` before using these capabilities. Read `read-workspace`
|
|
@@ -151,6 +226,7 @@ with `view: "diagnostics"`, then `view: "repairs"` at the current revision.
|
|
|
151
226
|
| `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. |
|
|
152
227
|
| `PLAY0614` | Declare Translate direction only when exactly one inbound/outbound interpretation fits public metadata; never change event visibility to make a repair fit. |
|
|
153
228
|
| `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. |
|
|
229
|
+
| `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-41490). |
|
|
154
230
|
| `PLAY0664` | Remove an override identical to the command's complete source/stream/id route. |
|
|
155
231
|
| `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. |
|
|
156
232
|
|
|
@@ -189,6 +265,26 @@ pin, but retains a pin for a different earlier name. Contradictory generation pi
|
|
|
189
265
|
refuse the rename. Do not promise a generation-2 payload-removal repair or a
|
|
190
266
|
`PLAY0470` repair: neither is available.
|
|
191
267
|
|
|
268
|
+
On Screenplay **4.150.0**, event pins warn **PLAY0686** at binding. Event
|
|
269
|
+
`propose-rename` output includes the same warning even when unrelated authoring
|
|
270
|
+
errors prevent binding. The pin is not yet carried to renderers: generated code
|
|
271
|
+
uses the new name. Do not rely on it to keep old stored events readable in rendered
|
|
272
|
+
apps; retain intended pins and report the target compatibility gap. Decision 0075's
|
|
273
|
+
future `storedName` ESM admission is not delivered by this warning.
|
|
274
|
+
Sources: Cratis/Screenplay `v4.150.0`,
|
|
275
|
+
`Source/DotNET/Screenplay/Semantics/SemanticModelBinder.Structure.cs:157-168`,
|
|
276
|
+
`Source/DotNET/Screenplay.Mcp/McpWorkspaces.Refactoring.cs:82-90`, and
|
|
277
|
+
`decisions/0075-carry-the-stored-event-type-name-in-the-executable-model.md:23-46`.
|
|
278
|
+
|
|
279
|
+
A stream whose stored name is exactly `All`, from its name or `id "All"`,
|
|
280
|
+
refuses executable binding/readiness with PLAY0273. Use discovered `propose-rename`
|
|
281
|
+
to change that stored stream name; pinning it back to `All` is not a repair.
|
|
282
|
+
There is no typed PLAY0273 repair for this case. Existing `All` history reads as
|
|
283
|
+
source-only appends. Source/stream pins otherwise travel as ESM v8 stored names,
|
|
284
|
+
unlike event pins. Source: Cratis/Screenplay `v4.150.0`,
|
|
285
|
+
`Source/DotNET/Screenplay/Semantics/SemanticModelBinder.EventSources.cs:17-52` and
|
|
286
|
+
`decisions/0073-reserve-the-stored-event-stream-name-all.md:35-63`.
|
|
287
|
+
|
|
192
288
|
VS Code and Monaco provide local PLAY0479 optionality and PLAY0471 redundant-id
|
|
193
289
|
fixes without .NET. PLAY0471 removes the whole id line; a trailing comment blocks
|
|
194
290
|
it. VS Code also has an experimental opt-in trusted C# bridge for PLAY0166/PLAY0478:
|
|
@@ -3,7 +3,22 @@
|
|
|
3
3
|
"input": "Author and organize a Screenplay model in a repository.",
|
|
4
4
|
"fixtures": [],
|
|
5
5
|
"assertions": [
|
|
6
|
+
{ "kind": "skill-contains", "value": "PLAY0686" },
|
|
7
|
+
{ "kind": "skill-contains", "value": "uses the new name", "file": "references/mcp-tools.md" },
|
|
8
|
+
{ "kind": "skill-contains", "value": "Existing `All` history reads as", "file": "references/mcp-tools.md" },
|
|
6
9
|
{ "kind": "play-compiles" },
|
|
10
|
+
{ "kind": "skill-contains", "value": "Edit through MCP proposals, not hand-edited text" },
|
|
11
|
+
{ "kind": "skill-contains", "value": "CLI 3.57.0 bundles MCP 4.147.1" },
|
|
12
|
+
{ "kind": "skill-contains", "value": "`previewArguments`", "file": "references/mcp-tools.md" },
|
|
13
|
+
{ "kind": "skill-contains", "value": "`entropyUnknownReason`", "file": "references/mcp-tools.md" },
|
|
14
|
+
{ "kind": "skill-contains", "value": "`valuesAtOnePercentCollision`", "file": "references/mcp-tools.md" },
|
|
15
|
+
{ "kind": "skill-contains", "value": "`notAssessed`", "file": "references/mcp-tools.md" },
|
|
16
|
+
{ "kind": "skill-contains", "value": "omit/null it to remove", "file": "references/mcp-tools.md" },
|
|
17
|
+
{ "kind": "skill-contains", "value": "screenplay_propose_repair", "file": "references/mcp-tools.md" },
|
|
18
|
+
{ "kind": "skill-contains", "value": "Subject is the **concept**", "file": "references/mcp-tools.md" },
|
|
19
|
+
{ "kind": "skill-contains", "value": "Subject is the **command property**", "file": "references/mcp-tools.md" },
|
|
20
|
+
{ "kind": "skill-contains", "value": "**not shipped**", "file": "references/mcp-tools.md" },
|
|
21
|
+
{ "kind": "skill-contains", "value": "never hand-edit `generate` text", "file": "references/mcp-loop.md" },
|
|
7
22
|
{ "kind": "skill-contains", "value": "Record open modeling questions as `question` notes" },
|
|
8
23
|
{ "kind": "skill-contains", "value": "list-model-notes", "file": "references/model-notes.md" },
|
|
9
24
|
{ "kind": "skill-contains", "value": "`anchor`", "file": "references/model-notes.md" },
|
|
@@ -178,7 +178,7 @@ on the header line is a declaration error, not a shorthand.
|
|
|
178
178
|
|
|
179
179
|
### What runs
|
|
180
180
|
|
|
181
|
-
These bind on standalone 4.
|
|
181
|
+
These bind on standalone 4.151.0: keyed `=> RM optional`, unfiltered collections,
|
|
182
182
|
collections narrowed by caller-supplied `by`, and their `observable` forms.
|
|
183
183
|
Caller-supplied equality filters on collections select ESM v14: same-named scalar
|
|
184
184
|
primitive/concept/enum properties, same nominal type ignoring optionality, no
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
- Rendering is a different verdict
|
|
12
12
|
- Verified product sources
|
|
13
13
|
|
|
14
|
-
Screenplay **4.143.0 and later**, including the standalone **4.
|
|
14
|
+
Screenplay **4.143.0 and later**, including the standalone **4.151.0** pin,
|
|
15
15
|
binds `filter <name> <Type> [optional]` on a collection query when:
|
|
16
16
|
|
|
17
17
|
- there is no `from` source;
|
|
@@ -110,7 +110,7 @@ model still compiles and binds) and its V5 states the scope.
|
|
|
110
110
|
`--project-name`, `--root-namespace` and target `cratis`. Take V1 and V3 from
|
|
111
111
|
`cratis-screenplay-toolchain`; report each with tool and version. V3 from a different
|
|
112
112
|
compiler version does not prove the cratis-bundled binder admits the model (the bundle is
|
|
113
|
-
4.147.1, the standalone tool 4.
|
|
113
|
+
4.147.1, the standalone tool 4.151.0). `cratis screenplay validate --executable <root>` binds with
|
|
114
114
|
the bundled compiler and writes nothing: use it as the bundled-binder check (toolchain `references/verdicts.md`).
|
|
115
115
|
2. **Probe.** `cratis render <model-root> --name <App> --destination <probe-dir> -o json`
|
|
116
116
|
(exit 0 published, 5 refused with nothing published, 1 missing input); add `--check` to plan
|
package/package/corpus/skills/cratis-screenplay-render-and-gap-fill/references/delivery-protocol.md
CHANGED
|
@@ -30,7 +30,7 @@ per tool call and read each result from its exit status, never from a grep of th
|
|
|
30
30
|
| --- | --- | --- |
|
|
31
31
|
| 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 |
|
|
32
32
|
| 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 |
|
|
33
|
-
| 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 (CLI 3.57.0 = Screenplay 4.147.1), not standalone 4.
|
|
33
|
+
| 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 (CLI 3.57.0 = Screenplay 4.147.1), not standalone 4.151.0 |
|
|
34
34
|
| Debug build | `dotnet build <dir>/<Project>.csproj -c Debug` | the build's exit status |
|
|
35
35
|
| Debug tests | `dotnet test <dir>/<Project>.csproj -c Debug --no-build` | the test runner's exit status plus per-test results |
|
|
36
36
|
| List the generated classes | `dotnet test <dir>/<Project>.csproj -c Debug --no-build --list-tests` | the names to map to specifications |
|
|
@@ -83,7 +83,10 @@ question is not four approvals.
|
|
|
83
83
|
anonymous/ownership or unsynthesizable personas. Syntax and complete model:
|
|
84
84
|
`cratis-screenplay-specifications` `references/persona-callers-and-cases.md`.
|
|
85
85
|
8. **Separate view pass**: population, each update, accumulation, removal (with a surviving
|
|
86
|
-
row), absence, ordering. Mark lifecycle branches
|
|
86
|
+
row), absence, ordering. Mark lifecycle branches. Views combining sources must
|
|
87
|
+
tolerate any arrival order. Since **4.149.1**, pin a child before its parent:
|
|
88
|
+
given child, then parent, then read model; "parent never arrives" leaves the
|
|
89
|
+
child absent. Evidence/example: `references/view-and-story-specs.md`.
|
|
87
90
|
9. **State-dependent rules**: `reads <View>` + `require <expr> message "..."` as stated intent,
|
|
88
91
|
marked **NOT enforced in the model today** in the slice `description` (binding reports
|
|
89
92
|
PLAY0268/0271: expected in design mode; Screenplay#129), target named (Arc
|
|
@@ -145,7 +148,10 @@ target requirements.
|
|
|
145
148
|
destination matters. A competing-claim given needs a *different* `for`.
|
|
146
149
|
- Format rules belong on a `concept`: give each concept rule representative acceptance,
|
|
147
150
|
rejection and boundary specs once (through one command that carries it), not on every use;
|
|
148
|
-
never `n/a` automatically.
|
|
151
|
+
never `n/a` automatically. Include a whitespace-only rejection for text `not empty`:
|
|
152
|
+
**4.151.0** changes outcomes in every ESM version. Unicode/identity boundaries
|
|
153
|
+
and evidence: command-surface `references/validate-rules.md`.
|
|
154
|
+
This matches `cratis-screenplay-specifications`, which also
|
|
149
155
|
requires one rejection spec per concept rule. Business rules get one rejection spec each.
|
|
150
156
|
- Persona Cannot lines are intent: each needs an executable gate plus a `then denied` spec whose
|
|
151
157
|
caller is a synthesized persona witness or an explicit gate fixture, else record a gap.
|
package/package/corpus/skills/cratis-screenplay-scenario-coverage/references/view-and-story-specs.md
CHANGED
|
@@ -128,6 +128,17 @@ not prove an entire list is empty: assert the unkeyed list query itself (an unke
|
|
|
128
128
|
## Ordering, lag and rebuild
|
|
129
129
|
- **Out of order across sources**: if a joined or cross-context fact can arrive first, add a
|
|
130
130
|
family member with that order and say what the view shows meanwhile (joins never create rows).
|
|
131
|
+
For a child before its parent, standalone Screenplay **4.149.1 and later** defers the
|
|
132
|
+
original child event and retries it when the parent exists, at any nesting depth.
|
|
133
|
+
Pin `given <ChildEvent>`, then `given <ParentEvent>`, then `then readmodel`; also cover
|
|
134
|
+
a given child followed by `when append <ParentEvent>` and "parent never arrives"
|
|
135
|
+
(child stays absent). An ambiguous parent still fails closed. Pending children survive
|
|
136
|
+
given/when and accepted command commits; this does not prove runtime ordering or races.
|
|
137
|
+
Complete passing example and creation-event routing caveat:
|
|
138
|
+
[child ordering](../../cratis-screenplay-specifications/references/child-ordering.md).
|
|
139
|
+
Sources: Cratis/Screenplay `v4.149.1`,
|
|
140
|
+
`Documentation/screenplay/projections/semantic-model.md:77-81` and
|
|
141
|
+
`Source/DotNET/Screenplay/Semantics/Execution/SemanticScopedProjection.Deferred.cs:11-96`.
|
|
131
142
|
- **Projection lag**: a spec asserts the settled state. If a screen decision depends on the view
|
|
132
143
|
being current (a booking screen that must not offer a taken berth), that is not protection:
|
|
133
144
|
the command needs its own constraint, or the rule is `recorded` as target-enforced.
|
|
@@ -4,6 +4,8 @@
|
|
|
4
4
|
"fixtures": [],
|
|
5
5
|
"assertions": [
|
|
6
6
|
{ "kind": "play-compiles" },
|
|
7
|
+
{ "kind": "skill-contains", "value": "a whitespace-only rejection" },
|
|
8
|
+
{ "kind": "skill-contains", "value": "parent never arrives" },
|
|
7
9
|
{ "kind": "skill-contains", "value": "Coverage matrix before any spec" },
|
|
8
10
|
{ "kind": "skill-contains", "value": "Once, idempotent, exactly once are different claims" },
|
|
9
11
|
{ "kind": "skill-contains", "value": "Unauthorized is never `then error`" },
|
|
@@ -70,6 +70,8 @@ target has one normalized behavior to match.
|
|
|
70
70
|
cascades" ([references/reactions-and-cascades.md](references/reactions-and-cascades.md)). Under `cratis` before 3.28.2 (Screenplay 4.60.1) `when clock`, `when trigger`
|
|
71
71
|
and `when capture` failed binding with `PLAY0268`, and so did reactions and captures; they
|
|
72
72
|
bind on 4.66.0 and `cratis` 3.28.2.
|
|
73
|
+
- Since **4.149.1**, children defer; an ambiguous parent still fails closed.
|
|
74
|
+
[Child ordering](references/child-ordering.md): specs and decision 0007 caveat.
|
|
73
75
|
- A rejected individual command or append leaves the world unchanged; an accepted
|
|
74
76
|
one commits once, then the read models and queries are compared. There is no
|
|
75
77
|
scenario-wide transaction in v6: when a later effect of a cascade or capture
|
|
@@ -235,6 +237,9 @@ constraint — that is the constraint speaking, not the view.)
|
|
|
235
237
|
Write an error specification for a rule that depends on existing system state or that another business could plausibly set differently. A format, range or presence rule on one value belongs on the concept with its own `validate` block, with **one rejection specification per concept rule**, through one command that uses the concept, not one per use.
|
|
236
238
|
Read [references/concept-rules.md](references/concept-rules.md) when deciding whether a rule needs an error specification or a concept `validate`, or when you need the complete concept-rule example with boundary acceptances and rejections.
|
|
237
239
|
|
|
240
|
+
**4.151.0** text `not empty`: [whitespace rejection specs and boundaries](references/whitespace-rules.md).
|
|
241
|
+
Old whitespace-acceptance specs now fail. This applies to every ESM version.
|
|
242
|
+
|
|
238
243
|
## Application-boundary coverage
|
|
239
244
|
|
|
240
245
|
Every slice should carry at least one specification whose action is what a real
|