@cratis/pi 7.38.3 → 7.40.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/agents/screenplay-modeler.md +1 -1
- package/package/corpus/agents/screenplay-reviewer.md +1 -1
- package/package/corpus/product-sync.json +11 -11
- package/package/corpus/skills/cratis-chronicle-reactor/SKILL.md +2 -2
- package/package/corpus/skills/cratis-screenplay-automations-and-translations/SKILL.md +4 -2
- package/package/corpus/skills/cratis-screenplay-automations-and-translations/references/audit-format.md +1 -1
- package/package/corpus/skills/cratis-screenplay-automations-and-translations/references/automation-patterns.md +1 -1
- package/package/corpus/skills/cratis-screenplay-automations-and-translations/references/public-events-and-direction.md +3 -6
- package/package/corpus/skills/cratis-screenplay-automations-and-translations/references/realization-and-gap-fill.md +12 -7
- package/package/corpus/skills/cratis-screenplay-automations-and-translations/references/todo-list-example.md +5 -6
- package/package/corpus/skills/cratis-screenplay-automations-and-translations/references/translate-example.md +2 -5
- package/package/corpus/skills/cratis-screenplay-captures-and-reactions/SKILL.md +12 -15
- package/package/corpus/skills/cratis-screenplay-captures-and-reactions/references/complete-examples.md +6 -15
- package/package/corpus/skills/cratis-screenplay-captures-and-reactions/references/specifying-triggers-and-clock.md +1 -1
- package/package/corpus/skills/cratis-screenplay-command-surface/SKILL.md +14 -15
- package/package/corpus/skills/cratis-screenplay-command-surface/references/compliance.md +14 -4
- package/package/corpus/skills/cratis-screenplay-command-surface/references/enum-numbers.md +11 -13
- package/package/corpus/skills/cratis-screenplay-command-surface/references/generated-values-and-responses.md +10 -6
- package/package/corpus/skills/cratis-screenplay-command-surface/references/inline-events.md +23 -1
- package/package/corpus/skills/cratis-screenplay-command-surface/verification.json +2 -2
- package/package/corpus/skills/cratis-screenplay-discovery/references/provenance.md +1 -1
- package/package/corpus/skills/cratis-screenplay-event-modeling/SKILL.md +13 -13
- package/package/corpus/skills/cratis-screenplay-event-modeling/references/invoicing-example.md +3 -7
- package/package/corpus/skills/cratis-screenplay-event-modeling/references/nine-steps.md +9 -12
- package/package/corpus/skills/cratis-screenplay-event-modeling/references/parsed-not-runnable.md +4 -4
- package/package/corpus/skills/cratis-screenplay-legacy-extraction/references/generate-notes.md +1 -1
- package/package/corpus/skills/cratis-screenplay-legacy-extraction/references/intent-example.md +3 -8
- package/package/corpus/skills/cratis-screenplay-model-authoring/SKILL.md +9 -4
- package/package/corpus/skills/cratis-screenplay-model-authoring/references/language-reference.md +9 -7
- package/package/corpus/skills/cratis-screenplay-model-authoring/references/mcp-loop.md +26 -6
- package/package/corpus/skills/cratis-screenplay-model-authoring/references/mcp-tools.md +40 -0
- package/package/corpus/skills/cratis-screenplay-model-authoring/references/property-links.md +3 -1
- package/package/corpus/skills/cratis-screenplay-model-review/references/anti-patterns.md +1 -1
- package/package/corpus/skills/cratis-screenplay-model-review/references/checklist.md +1 -1
- package/package/corpus/skills/cratis-screenplay-model-review/references/report-template.md +1 -1
- package/package/corpus/skills/cratis-screenplay-modeling-lifecycle/SKILL.md +2 -2
- package/package/corpus/skills/cratis-screenplay-modeling-lifecycle/references/phases.md +1 -1
- package/package/corpus/skills/cratis-screenplay-modeling-lifecycle/references/verdicts-and-modes.md +3 -2
- package/package/corpus/skills/cratis-screenplay-modeling-lifecycle/references/vocabulary-map.md +5 -3
- package/package/corpus/skills/cratis-screenplay-modeling-lifecycle/references/worked-example.md +2 -6
- package/package/corpus/skills/cratis-screenplay-projections/SKILL.md +2 -0
- package/package/corpus/skills/cratis-screenplay-read-surface/SKILL.md +26 -18
- package/package/corpus/skills/cratis-screenplay-read-surface/references/equality-filters.md +208 -0
- package/package/corpus/skills/cratis-screenplay-read-surface/references/screen-patterns.md +2 -5
- package/package/corpus/skills/cratis-screenplay-read-surface/verification.json +4 -0
- package/package/corpus/skills/cratis-screenplay-render-and-gap-fill/SKILL.md +20 -16
- 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/gap-fill-handoff.md +4 -3
- package/package/corpus/skills/cratis-screenplay-render-and-gap-fill/references/renderability-gate.md +8 -8
- package/package/corpus/skills/cratis-screenplay-render-and-gap-fill/references/worked-example.md +2 -5
- package/package/corpus/skills/cratis-screenplay-render-and-gap-fill/verification.json +2 -2
- package/package/corpus/skills/cratis-screenplay-scenario-coverage/SKILL.md +4 -1
- package/package/corpus/skills/cratis-screenplay-scenario-coverage/references/berth-reservations.md +8 -19
- package/package/corpus/skills/cratis-screenplay-scenario-coverage/references/invoicing-dues-design.md +8 -20
- package/package/corpus/skills/cratis-screenplay-scenario-coverage/references/invoicing-dues-example.md +9 -23
- package/package/corpus/skills/cratis-screenplay-scenario-coverage/references/scenario-examples.md +9 -3
- package/package/corpus/skills/cratis-screenplay-scenario-coverage/references/spec-forms-by-mode.md +6 -5
- package/package/corpus/skills/cratis-screenplay-scenario-coverage/references/view-and-story-specs.md +2 -1
- package/package/corpus/skills/cratis-screenplay-slice-design/SKILL.md +7 -4
- package/package/corpus/skills/cratis-screenplay-slice-design/references/field-lineage.md +1 -1
- package/package/corpus/skills/cratis-screenplay-slice-design/references/model-reasoning.md +2 -5
- package/package/corpus/skills/cratis-screenplay-slice-design/references/read-model-design.md +5 -10
- package/package/corpus/skills/cratis-screenplay-slice-design/references/worked-example.md +8 -19
- package/package/corpus/skills/cratis-screenplay-specifications/SKILL.md +17 -25
- package/package/corpus/skills/cratis-screenplay-specifications/references/actions-beyond-commands.md +2 -1
- package/package/corpus/skills/cratis-screenplay-specifications/references/generated-fixtures.md +3 -3
- package/package/corpus/skills/cratis-screenplay-specifications/references/persona-callers-and-cases.md +2 -5
- package/package/corpus/skills/cratis-screenplay-specifications/references/reactions-and-cascades.md +5 -4
- package/package/corpus/skills/cratis-screenplay-specifications/references/source-notes.md +10 -0
- package/package/corpus/skills/cratis-screenplay-streams-and-consistency/SKILL.md +3 -3
- package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/boundaries.md +2 -1
- package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/evolution.md +2 -2
- package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/streams-example.md +10 -24
- package/package/corpus/skills/cratis-screenplay-streams-and-consistency/verification.json +1 -1
- package/package/corpus/skills/cratis-screenplay-toolchain/SKILL.md +23 -17
- package/package/corpus/skills/cratis-screenplay-toolchain/references/automation-translate-example.md +4 -10
- package/package/corpus/skills/cratis-screenplay-toolchain/references/cheat-sheet-example.md +11 -23
- package/package/corpus/skills/cratis-screenplay-toolchain/references/cheat-sheet.md +1 -1
- package/package/corpus/skills/cratis-screenplay-toolchain/references/diagnostics.md +3 -3
- package/package/corpus/skills/cratis-screenplay-toolchain/references/doc-contradictions.md +4 -3
- package/package/corpus/skills/cratis-screenplay-toolchain/references/executable-example.md +3 -7
- package/package/corpus/skills/cratis-screenplay-toolchain/references/executable-subset.md +40 -24
- package/package/corpus/skills/cratis-screenplay-toolchain/references/pdl-example.md +27 -69
- package/package/corpus/skills/cratis-screenplay-toolchain/references/preferred-syntax.md +73 -0
- package/package/corpus/skills/cratis-screenplay-toolchain/references/production-routes-and-filters.md +1 -1
- package/package/corpus/skills/cratis-screenplay-toolchain/references/provenance.md +1 -1
- package/package/corpus/skills/cratis-screenplay-toolchain/references/renderable-subset.md +34 -31
- package/package/corpus/skills/cratis-screenplay-toolchain/references/screenplay-contract-exceptions.json +21 -0
- package/package/corpus/skills/cratis-screenplay-toolchain/references/screenplay-contract.json +7 -1
- 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 +4 -3
- package/package/corpus/skills/cratis-screenplay-toolchain/references/traps.md +4 -4
- package/package/corpus/skills/cratis-screenplay-toolchain/references/verdicts.md +17 -5
- package/package/corpus/skills/cratis-screenplay-toolchain/references/versions.md +50 -34
- package/package/corpus/skills/cratis-screenplay-toolchain/verification.json +7 -2
- package/package/corpus/skills/cratis-screenplay-ui-composition/SKILL.md +13 -18
- package/package/corpus/skills/cratis-screenplay-ui-composition/references/screen-composition-contract.md +4 -3
- package/package/corpus/skills/cratis-screenplay-ui-composition/references/worked-flow.md +3 -2
- package/package/corpus/skills/cratis-stage-rendering-and-sandbox/SKILL.md +32 -32
- package/package/corpus/skills/cratis-stage-rendering-and-sandbox/references/admission.md +58 -26
- package/package/corpus/skills/cratis-stage-rendering-and-sandbox/references/rendered-application.md +17 -20
- package/package/corpus/skills/cratis-stage-rendering-and-sandbox/references/sandbox-and-specrunner.md +18 -14
- package/package/corpus/skills/cratis-stage-rendering-and-sandbox/references/scene-runtime.md +4 -3
- package/package/corpus/skills/cratis-stage-rendering-and-sandbox/verification.json +2 -2
- package/package.json +1 -1
|
@@ -6,6 +6,8 @@ license: MIT
|
|
|
6
6
|
|
|
7
7
|
# The Screenplay read surface
|
|
8
8
|
|
|
9
|
+
Read [preferred syntax](../cratis-screenplay-toolchain/references/preferred-syntax.md) when writing or reviewing `.play`.
|
|
10
|
+
|
|
9
11
|
What the system can be asked, and what a user sees. The `readmodel` declares the
|
|
10
12
|
shape, the `query` is the entry point, and the `screen` renders it.
|
|
11
13
|
|
|
@@ -32,7 +34,9 @@ source is the single flow model.
|
|
|
32
34
|
| `Cratis.Screenplay` | `4.66.0` (`c89198b`) | Which query shapes bind and render (`Semantics/`, `Documentation/screenplay/queries.md`) |
|
|
33
35
|
|
|
34
36
|
The update follows `types.md`, `queries.md` and `vscode.md` at that main commit
|
|
35
|
-
(after v4.52.0). Compilation does not establish query execution.
|
|
37
|
+
(after v4.52.0). Compilation does not establish query execution. Current equality-filter evidence:
|
|
38
|
+
Screenplay v4.145.0 (admitted in 4.143.0, decision 0069); read
|
|
39
|
+
[the verified sources and compiled example](references/equality-filters.md).
|
|
36
40
|
|
|
37
41
|
Checked against the Screenplay repository at tag `v4.31.0` (commit `355dffb`):
|
|
38
42
|
`Documentation/screenplay/{queries,readmodels,screens,policies,specifications,interactions}.md`
|
|
@@ -82,12 +86,12 @@ query ListInvoices => InvoiceListReadModel[]
|
|
|
82
86
|
authorize IsAuthenticated
|
|
83
87
|
```
|
|
84
88
|
|
|
85
|
-
**Name the compiler and renderer.**
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
89
|
+
**Name the compiler and renderer.** Optional keyed queries and collection queries
|
|
90
|
+
bind, including `observable`. Since Screenplay 4.143.0, caller-supplied equality
|
|
91
|
+
filters on collections bind as ESM v14; `from`, single-result filters, `scoped to`,
|
|
92
|
+
`performer` and composite `by` remain PLAY0268, each with its reason. Read
|
|
93
|
+
[equality filters](references/equality-filters.md) for the admitted shape, a complete
|
|
94
|
+
compiled specification model and the Stage/CLI ceilings. Keep a list the domain needs.
|
|
91
95
|
|
|
92
96
|
Return-type forms after `=>`: `ReadModel`, `ReadModel optional`, `ReadModel[]`,
|
|
93
97
|
each optionally prefixed `observable`. `ReadModel[] optional` permits an absent
|
|
@@ -104,7 +108,7 @@ scalar type named `observable`. It is the canonical exception and has no
|
|
|
104
108
|
| Clause | Meaning |
|
|
105
109
|
| --- | --- |
|
|
106
110
|
| `by` | the **identifying** parameter — the query returns the instance it identifies |
|
|
107
|
-
| `filter` |
|
|
111
|
+
| `filter` | a caller-supplied equality parameter narrowing the result set; required unless typed `optional` |
|
|
108
112
|
| `from <source>` | fills the parameter **from the context** instead of from the caller |
|
|
109
113
|
|
|
110
114
|
⚠️ **Anything the caller must not be able to choose — the tenant, the caller's own
|
|
@@ -151,7 +155,7 @@ most reads are. The marker qualifies only *how* the result arrives, so it compos
|
|
|
151
155
|
with `[]`, `optional`, `by`, `filter`, `authorize` and a `performer`, and a screen binds
|
|
152
156
|
to a live query exactly as it binds to a one-shot one. The delivery itself is the
|
|
153
157
|
target runtime's: the executable model binds `observable` queries (delivery `live`) that
|
|
154
|
-
have no
|
|
158
|
+
have no opaque scope/performer and, when filtered, only admitted caller-supplied equality filters (ESM v14).
|
|
155
159
|
|
|
156
160
|
Paging, sorting and change-set delivery for queries are accepted as Screenplay
|
|
157
161
|
decision 0010 but **not in the language yet**. Do not invent syntax for them.
|
|
@@ -174,15 +178,19 @@ on the header line is a declaration error, not a shorthand.
|
|
|
174
178
|
|
|
175
179
|
### What runs
|
|
176
180
|
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
`
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
`
|
|
185
|
-
|
|
181
|
+
These bind on standalone 4.145.0: keyed `=> RM optional`, unfiltered collections,
|
|
182
|
+
collections narrowed by caller-supplied `by`, and their `observable` forms.
|
|
183
|
+
Caller-supplied equality filters on collections select ESM v14: same-named scalar
|
|
184
|
+
primitive/concept/enum properties, same nominal type ignoring optionality, no
|
|
185
|
+
`from`, distinct names not repeating `by`. `by` and supplied filters AND together;
|
|
186
|
+
optional filters may be omitted, but supplied null is refused. PLAY0268 still
|
|
187
|
+
rejects context sources, single-result filters, opaque scope/performer and
|
|
188
|
+
composite `by` (#599); a single non-optional result remains unadmitted too.
|
|
189
|
+
Authorization runs before lookup, ANDed with module/feature gates; policies see
|
|
190
|
+
only `by`, never filters. Pin denial with `given caller` and `then denied`.
|
|
191
|
+
Specs pass `by` and filters by name (PLAY0468 for unknown, repeated or missing
|
|
192
|
+
required arguments); collection results match by read model/key regardless of
|
|
193
|
+
row order. Details and renderer limits: [equality filters](references/equality-filters.md).
|
|
186
194
|
|
|
187
195
|
## `screen` — three levels
|
|
188
196
|
|
|
@@ -0,0 +1,208 @@
|
|
|
1
|
+
<!-- Copyright (c) Cratis. All rights reserved. -->
|
|
2
|
+
<!-- Licensed under the MIT license. See LICENSE file in the project root for full license information. -->
|
|
3
|
+
|
|
4
|
+
# Caller-supplied equality query filters (ESM v14)
|
|
5
|
+
|
|
6
|
+
## Contents
|
|
7
|
+
|
|
8
|
+
- Refusals kept intact
|
|
9
|
+
- Specifications that run
|
|
10
|
+
- Argument diagnostics
|
|
11
|
+
- Rendering is a different verdict
|
|
12
|
+
- Verified product sources
|
|
13
|
+
|
|
14
|
+
Screenplay **4.143.0 and later**, including the standalone **4.145.0** pin,
|
|
15
|
+
binds `filter <name> <Type> [optional]` on a collection query when:
|
|
16
|
+
|
|
17
|
+
- there is no `from` source;
|
|
18
|
+
- the read model has a same-named non-collection primitive, concept or enum property;
|
|
19
|
+
- the filter has the same nominal type as that property, ignoring optionality;
|
|
20
|
+
- filter names are distinct and none repeats the `by` name.
|
|
21
|
+
|
|
22
|
+
Each supplied value matches that property by equality. `by` and all supplied
|
|
23
|
+
filters combine with AND; a row missing the property does not match. A required
|
|
24
|
+
filter must be supplied. An optional filter may be omitted, in which case it
|
|
25
|
+
adds no restriction. **Supplied `null` is refused**, even for an optional filter;
|
|
26
|
+
it is not omission or a request to match null properties.
|
|
27
|
+
|
|
28
|
+
Filters select ESM v14. Models without filters retain their bytes, version and
|
|
29
|
+
revision. `observable` collections may use filters too, but the reference runner
|
|
30
|
+
answers a snapshot; change sets, paging, sorting and non-equality predicates
|
|
31
|
+
are not admitted by this increment. Query policies still see only `by`, not filters.
|
|
32
|
+
A caller-supplied filter is not a trusted tenant or authorization boundary.
|
|
33
|
+
|
|
34
|
+
## Refusals kept intact
|
|
35
|
+
|
|
36
|
+
Each binding refusal reports PLAY0268 with its query/filter and reason:
|
|
37
|
+
|
|
38
|
+
| Shape | Why it remains unadmitted |
|
|
39
|
+
| --- | --- |
|
|
40
|
+
| `filter ... from ...` or context-derived `by` | Typed query context sources are not admitted; a caller argument must not stand in for trusted context |
|
|
41
|
+
| Filter on a single-result query | Equality filters are admitted only for collections |
|
|
42
|
+
| `scoped to` | The named scope has no portable executable scope contract |
|
|
43
|
+
| `performer` | Query implementation code is opaque, not a portable declarative lookup |
|
|
44
|
+
| Composite `by` block | Multipart lookup admission remains deferred (Screenplay#599) |
|
|
45
|
+
| Filter on a collection/composite property, missing property or mismatched nominal type | The v14 filter contract requires a same-named scalar primitive, concept or enum property with the same type |
|
|
46
|
+
|
|
47
|
+
Keep those intents when the domain needs them; never drop a context source or
|
|
48
|
+
scope to make a query bind.
|
|
49
|
+
|
|
50
|
+
## Specifications that run
|
|
51
|
+
|
|
52
|
+
Both `then query … arguments` and `when query` name `by` and filter arguments.
|
|
53
|
+
Unknown, repeated or missing required arguments report **PLAY0468** in either
|
|
54
|
+
form. The query, its key and supplied filter values identify a call, so one
|
|
55
|
+
specification may assert two calls with different filters.
|
|
56
|
+
|
|
57
|
+
Collection results compare **without regard to row order**, matched by read
|
|
58
|
+
model and instance key. Row count is exact; asserted properties use subset
|
|
59
|
+
matching unless `exactly` is requested. This does not relax ordering of event
|
|
60
|
+
expectations or collection-valued properties inside one row.
|
|
61
|
+
|
|
62
|
+
This complete model checks omission, supplied filters, AND with `by`, both query
|
|
63
|
+
specification forms and reversed result rows:
|
|
64
|
+
|
|
65
|
+
```screenplay
|
|
66
|
+
concept InvoiceId : String
|
|
67
|
+
concept CustomerId : String
|
|
68
|
+
concept InvoiceStatus : Enum
|
|
69
|
+
issued
|
|
70
|
+
paid
|
|
71
|
+
module Invoicing
|
|
72
|
+
feature Overview
|
|
73
|
+
slice StateView Invoices
|
|
74
|
+
readmodel InvoiceRow
|
|
75
|
+
invoiceId InvoiceId key
|
|
76
|
+
customerId CustomerId
|
|
77
|
+
status InvoiceStatus
|
|
78
|
+
query ListInvoices => InvoiceRow[]
|
|
79
|
+
filter status InvoiceStatus
|
|
80
|
+
filter customerId CustomerId optional
|
|
81
|
+
query InvoicesById => observable InvoiceRow[]
|
|
82
|
+
by invoiceId InvoiceId
|
|
83
|
+
filter status InvoiceStatus optional
|
|
84
|
+
example FirstIssued : InvoiceRow
|
|
85
|
+
invoiceId = "inv-1"
|
|
86
|
+
customerId = "customer-a"
|
|
87
|
+
status = issued
|
|
88
|
+
example SecondIssued : InvoiceRow
|
|
89
|
+
invoiceId = "inv-2"
|
|
90
|
+
customerId = "customer-b"
|
|
91
|
+
status = issued
|
|
92
|
+
example PaidInvoice : InvoiceRow
|
|
93
|
+
invoiceId = "inv-3"
|
|
94
|
+
customerId = "customer-a"
|
|
95
|
+
status = paid
|
|
96
|
+
specification OmittingAnOptionalFilter
|
|
97
|
+
given readmodel FirstIssued
|
|
98
|
+
given readmodel SecondIssued
|
|
99
|
+
given readmodel PaidInvoice
|
|
100
|
+
then query ListInvoices
|
|
101
|
+
arguments
|
|
102
|
+
status = issued
|
|
103
|
+
result
|
|
104
|
+
invoiceId = "inv-2"
|
|
105
|
+
result
|
|
106
|
+
invoiceId = "inv-1"
|
|
107
|
+
specification SupplyingBothFilters
|
|
108
|
+
given readmodel FirstIssued
|
|
109
|
+
given readmodel SecondIssued
|
|
110
|
+
then query ListInvoices
|
|
111
|
+
arguments
|
|
112
|
+
status = issued
|
|
113
|
+
customerId = "customer-a"
|
|
114
|
+
result
|
|
115
|
+
invoiceId = "inv-1"
|
|
116
|
+
specification CombiningByAndFilter
|
|
117
|
+
given readmodel FirstIssued
|
|
118
|
+
given readmodel SecondIssued
|
|
119
|
+
given readmodel PaidInvoice
|
|
120
|
+
when query InvoicesById
|
|
121
|
+
invoiceId = "inv-3"
|
|
122
|
+
status = issued
|
|
123
|
+
then no result
|
|
124
|
+
specification OmittingTheFilterBesideBy
|
|
125
|
+
given readmodel FirstIssued
|
|
126
|
+
given readmodel SecondIssued
|
|
127
|
+
given readmodel PaidInvoice
|
|
128
|
+
when query InvoicesById
|
|
129
|
+
invoiceId = "inv-3"
|
|
130
|
+
then result
|
|
131
|
+
invoiceId = "inv-3"
|
|
132
|
+
specification DistinguishingCallsByFilterValues
|
|
133
|
+
given readmodel FirstIssued
|
|
134
|
+
given readmodel PaidInvoice
|
|
135
|
+
then query ListInvoices
|
|
136
|
+
arguments
|
|
137
|
+
status = issued
|
|
138
|
+
result
|
|
139
|
+
invoiceId = "inv-1"
|
|
140
|
+
then query ListInvoices
|
|
141
|
+
arguments
|
|
142
|
+
status = paid
|
|
143
|
+
result
|
|
144
|
+
invoiceId = "inv-3"
|
|
145
|
+
```
|
|
146
|
+
|
|
147
|
+
## Argument diagnostics
|
|
148
|
+
|
|
149
|
+
This deliberately invalid fence pins PLAY0468 for missing, unknown and repeated
|
|
150
|
+
arguments in both specification forms. These are source errors, not passing
|
|
151
|
+
reference scenarios or empty-result assertions.
|
|
152
|
+
|
|
153
|
+
```screenplay expect PLAY0468
|
|
154
|
+
concept ItemId : String
|
|
155
|
+
module FilteringExamples
|
|
156
|
+
feature Arguments
|
|
157
|
+
slice StateView Items
|
|
158
|
+
readmodel Item
|
|
159
|
+
itemId ItemId key
|
|
160
|
+
status String
|
|
161
|
+
query ListItems => Item[]
|
|
162
|
+
filter status String
|
|
163
|
+
specification MissingThenArgument
|
|
164
|
+
then query ListItems
|
|
165
|
+
specification MissingWhenArgument
|
|
166
|
+
when query ListItems
|
|
167
|
+
then no result
|
|
168
|
+
specification UnknownThenArgument
|
|
169
|
+
then query ListItems
|
|
170
|
+
arguments
|
|
171
|
+
status = "open"
|
|
172
|
+
search = "anything"
|
|
173
|
+
specification UnknownWhenArgument
|
|
174
|
+
when query ListItems
|
|
175
|
+
status = "open"
|
|
176
|
+
search = "anything"
|
|
177
|
+
then no result
|
|
178
|
+
specification RepeatedThenArgument
|
|
179
|
+
then query ListItems
|
|
180
|
+
arguments
|
|
181
|
+
status = "open"
|
|
182
|
+
status = "open"
|
|
183
|
+
specification RepeatedWhenArgument
|
|
184
|
+
when query ListItems
|
|
185
|
+
status = "open"
|
|
186
|
+
status = "open"
|
|
187
|
+
then no result
|
|
188
|
+
```
|
|
189
|
+
|
|
190
|
+
## Rendering is a different verdict
|
|
191
|
+
|
|
192
|
+
**CLI 3.56.0** bundles **Screenplay 4.145.1 / Stage 4.83.0**. Its compiler
|
|
193
|
+
binds v14 filters, but rendering admits through **ESM v13**, not v14:
|
|
194
|
+
`CLI-RENDER-004` before planning (direct Stage: `STAGE-ESM-016`).
|
|
195
|
+
Standalone V3/V4 success therefore does not prove rendering. A consumer must
|
|
196
|
+
explicitly admit v14 and preserve filter arguments and equality selection;
|
|
197
|
+
never erase filters to obtain a render.
|
|
198
|
+
|
|
199
|
+
## Verified product sources
|
|
200
|
+
|
|
201
|
+
- Screenplay **v4.145.0**: accepted/implemented decision
|
|
202
|
+
`decisions/0069-admit-equality-query-filters-as-esm-v14.md`;
|
|
203
|
+
`Documentation/screenplay/queries.md` (Executable equality filters),
|
|
204
|
+
`specifications.md:145,307-319,409-428`; admission shipped in v4.143.0.
|
|
205
|
+
- Stage **v4.83.0**: `Source/Rendering.Cratis/Semantics/SemanticVersionFeatures.cs:100`
|
|
206
|
+
uses `EsmSchemaV13Support`; `Directory.Packages.props` pins Screenplay 4.141.0.
|
|
207
|
+
- CLI **v3.56.0**: `Directory.Packages.props:8-10` pins Screenplay 4.145.1 / Stage
|
|
208
|
+
4.83.0; `Source/Cli/Commands/Render/RenderedSemanticVersions.cs:33-47` admits v1-v13.
|
|
@@ -77,11 +77,8 @@ module Berths
|
|
|
77
77
|
command BookBerth
|
|
78
78
|
bookingId BookingId identifier
|
|
79
79
|
berth BerthName
|
|
80
|
-
produces BerthBooked
|
|
81
|
-
|
|
82
|
-
berth = berth
|
|
83
|
-
event BerthBooked
|
|
84
|
-
berth BerthName
|
|
80
|
+
produces event BerthBooked
|
|
81
|
+
berth BerthName = berth
|
|
85
82
|
screen BookBerthScreen
|
|
86
83
|
title "Book a berth"
|
|
87
84
|
action BookBerth
|
|
@@ -7,6 +7,10 @@
|
|
|
7
7
|
{ "kind": "skill-contains", "value": "command reads only", "file": "references/named-keys.md" },
|
|
8
8
|
{ "kind": "skill-contains", "value": "remain authoring-only", "file": "references/named-keys.md" },
|
|
9
9
|
{ "kind": "play-compiles" },
|
|
10
|
+
{ "kind": "skill-contains", "value": "Caller-supplied equality query filters (ESM v14)", "file": "references/equality-filters.md" },
|
|
11
|
+
{ "kind": "skill-contains", "value": "Supplied `null` is refused", "file": "references/equality-filters.md" },
|
|
12
|
+
{ "kind": "skill-contains", "value": "PLAY0468", "file": "references/equality-filters.md" },
|
|
13
|
+
{ "kind": "skill-contains", "value": "without regard to row order", "file": "references/equality-filters.md" },
|
|
10
14
|
{ "kind": "skill-contains", "value": "main `fd18129`" },
|
|
11
15
|
{ "kind": "skill-contains", "value": "filter status InvoiceStatus optional" },
|
|
12
16
|
{ "kind": "skill-contains", "value": "query Q => observable?" },
|
|
@@ -23,10 +23,11 @@ rule is in `cratis-screenplay-modeling-lifecycle` ("Decide the level first"); it
|
|
|
23
23
|
## Verified product sources
|
|
24
24
|
|
|
25
25
|
Version pins live once in `cratis-screenplay-toolchain` `references/versions.md`; read it before
|
|
26
|
-
selecting the compiler and renderer for delivery: the CLI bundles its own Screenplay and Stage
|
|
27
|
-
|
|
26
|
+
selecting the compiler and renderer for delivery: the CLI bundles its own Screenplay and Stage;
|
|
27
|
+
its compiler version differs from the standalone pin. Render options (`--scope`,
|
|
28
28
|
`--check`, `--package-set`) and exit codes were read at cli `v3.53.1` `Documentation/reference/screenplay.md`
|
|
29
|
-
and `cratis render --help`; admission at Stage `v4.
|
|
29
|
+
and `cratis render --help`; admission at Stage `v4.83.0` (`SemanticVersionFeatures.cs:100`,
|
|
30
|
+
`SemanticVersionFeatureAdmission.cs:25-45`, `SemanticCratisAdmission.Automation.cs:15-123`). Stage's scaffold pins Arc and
|
|
30
31
|
Chronicle releases, which are not the latest (`cratis-stage-rendering-and-sandbox`
|
|
31
32
|
`references/rendered-application.md`). Source reading is not a new render run.
|
|
32
33
|
|
|
@@ -70,17 +71,19 @@ assume an answer to 4, and record it as `blocked` for the user.
|
|
|
70
71
|
| **B. Generated base plus authorized gap-fill** | an admitted render (whole, or a `--scope` of the admitted slices) exists and the user separately authorized hand-written scope, or a seam the model names needs an adapter | the generated output stays managed and untouched; hand-written code lives in `Customizations/` or a separate project (seam adapters by this skill, business gap-fill by `slice-implementer`), serves named model elements only, never claims render admission, and V5 is reported for the generated base **with its scope stated** |
|
|
71
72
|
| **C. Fully hand-written delivery** | the scope cannot render and no generated base is wanted | `slice-implementer` delivers it with the model as the contract (`references/gap-fill-handoff.md`); V5 is `not run: no render` |
|
|
72
73
|
|
|
73
|
-
Evolved events are gap-fill too: Stage still refuses (4.
|
|
74
|
+
Evolved events are gap-fill too: Stage still refuses (4.83.0) any evolved event and its dependent scope with `STAGE-ESM-026`, because it cannot render Chronicle event-type migrations yet (Stage#204). Events at their initial revision still render. Hand-write the evolved events and their migrations per `cratis-chronicle-event-type-migration`, with the model as the contract.
|
|
74
75
|
|
|
75
|
-
Generated
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
76
|
+
Generated UUID-concept values and scalar/named `returns` responses (ESM v7), including
|
|
77
|
+
fixtures and `then returns`, now render with CLI 3.56.0 / Stage 4.83.0. Unsupported generated
|
|
78
|
+
types (`STAGE-ESM-028`) and result combinations (`-038`) still require case A or C:
|
|
79
|
+
preserve the model and its specifications. See Stage's `references/admission.md`.
|
|
80
|
+
Supported event-triggered Automation slices also render as managed Chronicle reactors;
|
|
81
|
+
refused reactions, captures and Translate slices remain gap-fill.
|
|
79
82
|
|
|
80
83
|
Models with event sources, streams or command routes bind and reference-execute as ESM v8 on the standalone
|
|
81
84
|
tool, so report V3 and V4 from that tool. The pinned CLI/Stage pair
|
|
82
85
|
(`cratis-screenplay-toolchain/references/versions.md`) reaches v8 route checks
|
|
83
|
-
and construct admission through
|
|
86
|
+
and construct admission through v13. Public publication,
|
|
84
87
|
foreign events/event captures and v10 reaction identity/filters/production overrides
|
|
85
88
|
still receive typed refusals; reducer filters render. Keep refused scope as case A/C,
|
|
86
89
|
never infer target support from binding. Read Stage's `references/admission.md` and
|
|
@@ -89,10 +92,11 @@ toolchain `references/sources-and-streams.md`.
|
|
|
89
92
|
**Mixed reaction effects.** A reaction that both `produces` events and `invokes` commands is refused by
|
|
90
93
|
Stage (`STAGE-ESM-037`, Stage#207) although Arc 22.72.0 and later run one reactor returning events
|
|
91
94
|
and commands (events appended first as one batch, then commands in order, no cross-effect
|
|
92
|
-
transaction; a retry can repeat the events
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
95
|
+
transaction; a retry can repeat the events). The scaffold now includes the mixed-result handler,
|
|
96
|
+
but Stage still refuses it because redelivery can duplicate events. `[OnceOnly]` excludes replay,
|
|
97
|
+
not retries. Keep the modeled reaction whole; gap-fill needs a proven retry-safe realization,
|
|
98
|
+
not splitting or dropping effects to get a render. Source: Stage
|
|
99
|
+
`v4.83.0:Documentation/reference/reaction-rendering.md:50-88`.
|
|
96
100
|
|
|
97
101
|
Two rules hold in every case: a customization never makes a rejected model renderable, and
|
|
98
102
|
a whole-application V5 is never claimed from a subset. `--scope` renders an admitted part (the whole
|
|
@@ -106,7 +110,7 @@ model still compiles and binds) and its V5 states the scope.
|
|
|
106
110
|
`--project-name`, `--root-namespace` and target `cratis`. Take V1 and V3 from
|
|
107
111
|
`cratis-screenplay-toolchain`; report each with tool and version. V3 from a different
|
|
108
112
|
compiler version does not prove the cratis-bundled binder admits the model (the bundle is
|
|
109
|
-
4.
|
|
113
|
+
4.145.1, the standalone tool 4.145.0). `cratis screenplay validate --executable <root>` binds with
|
|
110
114
|
the bundled compiler and writes nothing: use it as the bundled-binder check (toolchain `references/verdicts.md`).
|
|
111
115
|
2. **Probe.** `cratis render <model-root> --name <App> --destination <probe-dir> -o json`
|
|
112
116
|
(exit 0 published, 5 refused with nothing published, 1 missing input); add `--check` to plan
|
|
@@ -153,7 +157,7 @@ Adapters and non-renderable scope follow the contract rules of `cratis-applicati
|
|
|
153
157
|
(`cratis-application-slice-conformance` `references/build-prompts.md`).
|
|
154
158
|
- One ledger scope per `slice-implementer` brief; the brief carries addresses and paths, not contents.
|
|
155
159
|
- Model-enforced rules realized in code (state-dependent rules) need a protected read or
|
|
156
|
-
concurrency scope; never claim them from prose. Stage 4.
|
|
160
|
+
concurrency scope; never claim them from prose. Stage 4.83.0 rendered apps scaffold
|
|
157
161
|
the Arc/Chronicle set in `cratis-stage-rendering-and-sandbox` `references/rendered-application.md`; API availability alone is not verified enforcement.
|
|
158
162
|
- Adapters that call outside systems follow `cratis-engineering-effect-boundaries`; slice
|
|
159
163
|
specifications follow `cratis-application-slice-specifications`.
|
|
@@ -205,7 +209,7 @@ Before reporting done:
|
|
|
205
209
|
- Which specification forms Stage accepts: `cratis-screenplay-scenario-coverage`, `cratis-screenplay-specifications`.
|
|
206
210
|
- Verdict commands, subsets, versions: `cratis-screenplay-toolchain`.
|
|
207
211
|
- Renderer facts, publication recovery, sandbox: `cratis-stage-rendering-and-sandbox`.
|
|
208
|
-
-
|
|
212
|
+
- Refused automation or translation scope (the refused behavior is gap-fill): `cratis-screenplay-automations-and-translations`.
|
|
209
213
|
- Hand-written code against its contract: `cratis-application-slice-conformance`.
|
|
210
214
|
- Code review of delivered code: `cratis-code-review`.
|
|
211
215
|
|
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.
|
|
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.56.0 = Screenplay 4.145.1), not standalone 4.145.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 |
|
package/package/corpus/skills/cratis-screenplay-render-and-gap-fill/references/gap-fill-handoff.md
CHANGED
|
@@ -74,8 +74,9 @@ are available to gap-fill, with projection/key admission and active enrollment),
|
|
|
74
74
|
a caller-supplied status is not enforcement.
|
|
75
75
|
|
|
76
76
|
## Automation and Translate scope
|
|
77
|
-
Stage
|
|
78
|
-
|
|
77
|
+
Stage 4.83.0 renders supported event-triggered Automation as Chronicle reactors.
|
|
78
|
+
Translate/captures and refused reactions are gap-fill against the slice and its specifications;
|
|
79
|
+
see Stage's `references/admission.md` for precise limits. The realization follows the actual construct and
|
|
79
80
|
trigger, not the slice label: a capture is an ingestion adapter, an event reaction (including a
|
|
80
81
|
translator reaction) is a reactor, a clock or application trigger is a scheduler or host signal. Where they are
|
|
81
82
|
registered depends on the case. Case B (a generated base exists, and the user authorized the
|
|
@@ -93,7 +94,7 @@ captures-and-reactions `references/invocation-identity.md`.
|
|
|
93
94
|
|
|
94
95
|
A reaction that both produces events and invokes commands keeps its single modeled form
|
|
95
96
|
(`STAGE-ESM-037` is Stage's refusal, not a model defect). Hand-write one reactor returning the events
|
|
96
|
-
and the commands: on Arc 22.72.0 or later (the
|
|
97
|
+
and the commands: on Arc 22.72.0 or later (the Stage 4.83.0 scaffold includes the handler, but mixed reactions remain refused because redelivery can duplicate events) the runtime appends the events first as one batch, then
|
|
97
98
|
runs the commands in order, with no transaction across the two effects; a failing command stops the
|
|
98
99
|
later ones but keeps the committed events, and a retry can append the events again, so make the
|
|
99
100
|
handler idempotent independently of `[OnceOnly]`, which excludes replay only, not recovery
|
package/package/corpus/skills/cratis-screenplay-render-and-gap-fill/references/renderability-gate.md
CHANGED
|
@@ -7,16 +7,16 @@ The admitted subset itself (what Stage renders, member by member) is owned by
|
|
|
7
7
|
probe reports and choosing what to do. Do not copy the code table here.
|
|
8
8
|
|
|
9
9
|
## Pipeline that produces the codes
|
|
10
|
-
1. The CLI compiles and binds the **whole** model with its **bundled** Screenplay (4.
|
|
11
|
-
cratis 3.
|
|
10
|
+
1. The CLI compiles and binds the **whole** model with its **bundled** Screenplay (4.145.1 in
|
|
11
|
+
cratis 3.56.0, ESM up to v13 for rendering; older bundles bound less). Binding is never scoped:
|
|
12
12
|
any binding error blocks even a `--scope` render. Binding errors are `PLAY0268` (outside the admitted vertical), `PLAY0269`
|
|
13
13
|
(deferred), `PLAY0270` (report-only information), `PLAY0271` (legacy semantics) and `PLAY0273`
|
|
14
14
|
(a specification shape).
|
|
15
15
|
2. Execution planning builds the plan and can emit `PLAN-*` diagnostics before Stage runs.
|
|
16
16
|
3. Stage plans the target and admits or rejects each member: `STAGE-ESM-0xx`; profile and path
|
|
17
17
|
problems `STAGE-CRATIS-0xx`. An evolved event is reported with Stage's own `STAGE-ESM-026`
|
|
18
|
-
(still refused at Stage 4.
|
|
19
|
-
refuses each construct it does not render with its own code (`-024`, `-027` to `-
|
|
18
|
+
(still refused at Stage 4.83.0); the CLI adds nothing. Stage admits ESM v1 to v13 by version and
|
|
19
|
+
refuses each construct it does not render with its own code (see Stage's current code table, including `-024`, `-027`, `-028`, `-030` to `-040`).
|
|
20
20
|
4. Any error in the selected scope publishes nothing: the run ends with exit 5 and the diagnostics.
|
|
21
21
|
Without `--scope` the scope is the whole application. With `--scope`, `PLAN-*` problems in
|
|
22
22
|
unselected slices are warnings and `STAGE-ESM-*` refusals in unselected slices do not block;
|
|
@@ -30,7 +30,7 @@ ESM). Only the probe answers renderability. `PLAY0270` entries are information,
|
|
|
30
30
|
| Class | Meaning | Typical examples (each verified in `admission.md`) | Action |
|
|
31
31
|
| --- | --- | --- | --- |
|
|
32
32
|
| **Model fix (in mode)** | the model is in, or the user chose, renderable mode and breaks its own subset in a way that has a renderable equivalent with the same meaning | a `produces` whose `for` is not the command identifier; one `StateChange` slice with two commands (`STAGE-ESM-004`); two projections for one read model (`-007`); a policy Stage cannot express portably (`-015`; role-only and opaque pure policies render at 4.73.1) | edit request to the modeler session with address, change and rationale |
|
|
33
|
-
| **Capability gap** | the intended meaning needs a construct Stage does not render yet | a snapshot list query (`-010`; observable lists and keyed or unkeyed lists bind and observable lists render),
|
|
33
|
+
| **Capability gap** | the intended meaning needs a construct Stage does not render yet | a snapshot list query (`-010`; observable lists and keyed or unkeyed lists bind and observable lists render), caller-supplied collection equality filters bind as v14 since 4.143.0 but exceed CLI 3.56.0 / Stage 4.83.0's v13 ceiling; context/single-result filters, opaque `scoped to`/`performer` and composite `by` remain PLAY0268; Translate, clocks, captures, non-event triggers and opaque reaction bodies (`-024`); reaction `runs as`/`from` (`-034`/`-035`), mixed effects in one handler (`-037`, retries can duplicate events; keep it whole), unsupported reaction mappings (`-039`); unsupported generated types/result combinations (`-028`/`-038`); `then no readmodel` (`-027`); evolved events (`STAGE-ESM-026`); conditional `produces when` (`-006`); `reads` (`PLAY0271`); code validation (`-005`); protected identities/enums (`-040`) or unadmitted explicit subject lineage (`PLAY0268`); a command `handler` (`PLAY0268`) | keep the model; ledger entry; options a to c in `SKILL.md`; link the Stage issue |
|
|
34
34
|
| **Tool skew** | the bundled compiler disagrees with documented semantics | the false `PLAY0285` on reaction cascades from a cratis before 3.28.2 bundle (cli#242); codes the standalone compiler does not raise | record in the session state and the ledger; never "fix" a correct model |
|
|
35
35
|
| **Environment** | not the model | restore failures, missing SDK, a destination that is not writable | fix the environment or report blocked |
|
|
36
36
|
|
|
@@ -49,10 +49,10 @@ ESM). Only the probe answers renderability. `PLAY0270` entries are information,
|
|
|
49
49
|
`cratis-stage-rendering-and-sandbox` `references/render-example.md`.
|
|
50
50
|
|
|
51
51
|
## Stage issues to cite in ledger entries
|
|
52
|
-
|
|
53
|
-
|
|
52
|
+
Historical issue pointers (not a fresh issue-state check): portable query semantics Stage#58;
|
|
53
|
+
Translate and unsupported automation forms Stage#79; mapping expressions and projection blocks Stage#117; modeled authentication
|
|
54
54
|
Stage#120; per-persona screens Stage#194; evolved events Stage#204; mixed reaction effects Stage#207;
|
|
55
|
-
generated values
|
|
55
|
+
generated values/responses Stage#175 (now render on the pinned bundle). Closed: event generation Stage#165, descriptions as code docs
|
|
56
56
|
Stage#178, ESM v7 Stage#201. Check that an issue is still open before citing
|
|
57
57
|
it, and cite only numbers you have just read. A closed issue is a trigger to probe again.
|
|
58
58
|
|
package/package/corpus/skills/cratis-screenplay-render-and-gap-fill/references/worked-example.md
CHANGED
|
@@ -37,11 +37,8 @@ module Berths
|
|
|
37
37
|
berthId BerthId identifier
|
|
38
38
|
boatName BoatName
|
|
39
39
|
authorize IsHarbourMaster
|
|
40
|
-
produces BerthReserved
|
|
41
|
-
|
|
42
|
-
boatName = boatName
|
|
43
|
-
event BerthReserved
|
|
44
|
-
boatName BoatName
|
|
40
|
+
produces event BerthReserved
|
|
41
|
+
boatName BoatName = boatName
|
|
45
42
|
specification ReservingABerth
|
|
46
43
|
given caller
|
|
47
44
|
authenticated
|
|
@@ -44,8 +44,8 @@
|
|
|
44
44
|
"kind": "skill-contains",
|
|
45
45
|
"value": "STAGE-ESM-026"
|
|
46
46
|
},
|
|
47
|
-
{ "kind": "skill-contains", "value": "
|
|
48
|
-
{ "kind": "skill-contains", "value": "STAGE-ESM-028
|
|
47
|
+
{ "kind": "skill-contains", "value": "now render with CLI 3.56.0 / Stage 4.83.0" },
|
|
48
|
+
{ "kind": "skill-contains", "value": "Unsupported generated\ntypes (`STAGE-ESM-028`) and result combinations (`-038`)" },
|
|
49
49
|
{ "kind": "skill-contains", "value": "authored-UI parity" },
|
|
50
50
|
{ "kind": "skill-contains", "value": "responsible tool version" }
|
|
51
51
|
]
|
|
@@ -141,7 +141,7 @@ target requirements.
|
|
|
141
141
|
- Every slice has at least one specification at the application boundary.
|
|
142
142
|
- One behaviour per spec; names read as sentences: `Reserving...`, `Rejecting...`, `Refusing...`
|
|
143
143
|
(denial), `<View>LifecycleN<State>` for families.
|
|
144
|
-
- `for` on every given, appended and expected event, and on the `when` command where the
|
|
144
|
+
- `for` on every given, appended and expected event (plain `produces <Name>` too; inline `produces event` omits it), and on the `when` command where the
|
|
145
145
|
destination matters. A competing-claim given needs a *different* `for`.
|
|
146
146
|
- Format rules belong on a `concept`: give each concept rule representative acceptance,
|
|
147
147
|
rejection and boundary specs once (through one command that carries it), not on every use;
|
|
@@ -214,6 +214,9 @@ scope is reported as explicitly incomplete); V1 passes with the tool named in
|
|
|
214
214
|
- V1 passes (standalone `screenplay` required when cascades are specified); report tool and
|
|
215
215
|
version.
|
|
216
216
|
- Run V4 through standalone `screenplay test` or MCP `run-specifications`;
|
|
217
|
+
on **Screenplay 4.145.0 and later**, propose → review → run with `proposalId` →
|
|
218
|
+
apply. PLAY0285 (impossible `then`) unbinds
|
|
219
|
+
the whole model; no spec runs.
|
|
217
220
|
if not executed, report the actual host/input reason, not a blanket no-route
|
|
218
221
|
claim. Stage's runner is target-engine evidence, never V4; V1/V3 do not prove pass. V5 is "not run" unless rendering was attempted; report admission, publication, build and
|
|
219
222
|
tests separately.
|
package/package/corpus/skills/cratis-screenplay-scenario-coverage/references/berth-reservations.md
CHANGED
|
@@ -41,17 +41,11 @@ module Berths
|
|
|
41
41
|
boatLength > 0 message "Boat length must be positive"
|
|
42
42
|
boatLength <= 24 message "Guest berths take boats up to 24 metres"
|
|
43
43
|
night >= today message "The night must not be in the past"
|
|
44
|
-
produces BerthReserved
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
boatLength = boatLength
|
|
50
|
-
event BerthReserved
|
|
51
|
-
berth BerthCode
|
|
52
|
-
night Date
|
|
53
|
-
boatName String
|
|
54
|
-
boatLength Decimal
|
|
44
|
+
produces event BerthReserved
|
|
45
|
+
berth BerthCode = berth
|
|
46
|
+
night Date = night
|
|
47
|
+
boatName String = boatName
|
|
48
|
+
boatLength Decimal = boatLength
|
|
55
49
|
constraint OneBoatPerBerthNight
|
|
56
50
|
unique berth, night on BerthReserved
|
|
57
51
|
released by ReservationCancelled
|
|
@@ -226,11 +220,8 @@ module Berths
|
|
|
226
220
|
reason not empty message "Say why the reservation is cancelled"
|
|
227
221
|
require booking.status == "reserved"
|
|
228
222
|
message "Only a live reservation can be cancelled"
|
|
229
|
-
produces ReservationCancelled
|
|
230
|
-
|
|
231
|
-
reason = reason
|
|
232
|
-
event ReservationCancelled
|
|
233
|
-
reason String
|
|
223
|
+
produces event ReservationCancelled
|
|
224
|
+
reason String = reason
|
|
234
225
|
constraint CancelOrDepart
|
|
235
226
|
unique event ReservationCancelled
|
|
236
227
|
unique event BoatDeparted
|
|
@@ -351,12 +342,10 @@ module Berths
|
|
|
351
342
|
validate
|
|
352
343
|
require booking.status == "reserved"
|
|
353
344
|
message "Only a live reservation can record a departure"
|
|
354
|
-
produces BoatDeparted
|
|
355
|
-
for reservationId
|
|
345
|
+
produces event BoatDeparted
|
|
356
346
|
produces when damageObserved == true
|
|
357
347
|
BerthDamageReported
|
|
358
348
|
for reservationId
|
|
359
|
-
event BoatDeparted
|
|
360
349
|
event BerthDamageReported
|
|
361
350
|
|
|
362
351
|
specification RecordingACleanDeparture
|