@cratis/pi 7.138.1 → 7.139.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/skills/cratis-application-slice-conformance/references/worked-example.md +2 -0
- package/package/corpus/skills/cratis-screenplay-automations-and-translations/references/public-events-and-direction.md +2 -0
- package/package/corpus/skills/cratis-screenplay-automations-and-translations/references/statemachines-and-workflows.md +12 -1
- package/package/corpus/skills/cratis-screenplay-automations-and-translations/references/todo-list-example.md +2 -0
- package/package/corpus/skills/cratis-screenplay-automations-and-translations/references/translate-example.md +2 -0
- package/package/corpus/skills/cratis-screenplay-captures-and-reactions/references/complete-examples.md +4 -0
- package/package/corpus/skills/cratis-screenplay-command-surface/references/compliance.md +2 -0
- package/package/corpus/skills/cratis-screenplay-command-surface/references/constraints-produces-concurrency.md +2 -0
- package/package/corpus/skills/cratis-screenplay-command-surface/references/date-comparisons.md +2 -0
- package/package/corpus/skills/cratis-screenplay-command-surface/references/described-handlers.md +2 -0
- package/package/corpus/skills/cratis-screenplay-command-surface/references/enum-numbers.md +2 -0
- package/package/corpus/skills/cratis-screenplay-command-surface/references/inline-events.md +2 -0
- package/package/corpus/skills/cratis-screenplay-command-surface/references/operations.md +2 -0
- package/package/corpus/skills/cratis-screenplay-command-surface/references/policy-persona-seed.md +2 -0
- package/package/corpus/skills/cratis-screenplay-command-surface/references/protected-reads.md +2 -0
- package/package/corpus/skills/cratis-screenplay-command-surface/references/shop-generation.md +4 -0
- package/package/corpus/skills/cratis-screenplay-command-surface/references/uuid-equality.md +6 -0
- package/package/corpus/skills/cratis-screenplay-discovery/references/event-naming.md +2 -0
- package/package/corpus/skills/cratis-screenplay-discovery/references/personas-and-causes.md +2 -0
- package/package/corpus/skills/cratis-screenplay-event-modeling/references/invoicing-example.md +2 -0
- package/package/corpus/skills/cratis-screenplay-legacy-extraction/references/intent-example.md +4 -0
- package/package/corpus/skills/cratis-screenplay-legacy-extraction/references/re-entry-and-passes.md +4 -0
- package/package/corpus/skills/cratis-screenplay-model-authoring/SKILL.md +2 -2
- package/package/corpus/skills/cratis-screenplay-model-authoring/references/language-reference.md +2 -0
- package/package/corpus/skills/cratis-screenplay-model-authoring/references/mcp-tools.md +2 -1
- package/package/corpus/skills/cratis-screenplay-model-authoring/references/screen-authoring-workflow.md +28 -25
- package/package/corpus/skills/cratis-screenplay-model-review/references/walkthrough.md +2 -0
- package/package/corpus/skills/cratis-screenplay-model-review/references/worked-example.md +8 -0
- package/package/corpus/skills/cratis-screenplay-modeling-lifecycle/SKILL.md +5 -1
- package/package/corpus/skills/cratis-screenplay-modeling-lifecycle/references/version-migration.md +50 -0
- package/package/corpus/skills/cratis-screenplay-modeling-lifecycle/references/worked-example.md +2 -0
- package/package/corpus/skills/cratis-screenplay-modeling-lifecycle/verification.json +2 -0
- package/package/corpus/skills/cratis-screenplay-projections/references/reducer-identity.md +4 -0
- package/package/corpus/skills/cratis-screenplay-read-surface/SKILL.md +5 -4
- package/package/corpus/skills/cratis-screenplay-render-and-gap-fill/SKILL.md +2 -2
- package/package/corpus/skills/cratis-screenplay-render-and-gap-fill/references/worked-example.md +2 -0
- package/package/corpus/skills/cratis-screenplay-scenario-coverage/references/berth-reservations.md +6 -0
- package/package/corpus/skills/cratis-screenplay-scenario-coverage/references/invoicing-dues-design.md +7 -0
- package/package/corpus/skills/cratis-screenplay-scenario-coverage/references/invoicing-dues-example.md +9 -0
- package/package/corpus/skills/cratis-screenplay-slice-design/SKILL.md +8 -0
- package/package/corpus/skills/cratis-screenplay-slice-design/references/command-inventory.md +2 -0
- package/package/corpus/skills/cratis-screenplay-slice-design/references/field-lineage.md +2 -1
- package/package/corpus/skills/cratis-screenplay-slice-design/references/model-reasoning.md +2 -0
- package/package/corpus/skills/cratis-screenplay-slice-design/references/read-model-design.md +2 -0
- package/package/corpus/skills/cratis-screenplay-slice-design/references/slicing.md +2 -0
- package/package/corpus/skills/cratis-screenplay-specifications/references/concept-rules.md +2 -0
- package/package/corpus/skills/cratis-screenplay-specifications/references/examples-and-routes.md +2 -0
- package/package/corpus/skills/cratis-screenplay-specifications/references/persona-callers-and-cases.md +2 -0
- package/package/corpus/skills/cratis-screenplay-specifications/references/reactions-and-cascades.md +2 -0
- package/package/corpus/skills/cratis-screenplay-specifications/references/whitespace-rules.md +4 -0
- package/package/corpus/skills/cratis-screenplay-specifications/references/worked-example.md +2 -0
- package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/evolution-example.md +6 -0
- package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/multi-service-models.md +2 -0
- package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/streams-example.md +8 -0
- package/package/corpus/skills/cratis-screenplay-toolchain/SKILL.md +1 -0
- package/package/corpus/skills/cratis-screenplay-toolchain/references/automation-translate-example.md +2 -0
- package/package/corpus/skills/cratis-screenplay-toolchain/references/cheat-sheet-example.md +6 -0
- package/package/corpus/skills/cratis-screenplay-toolchain/references/diagnostic-arguments.md +1 -1
- package/package/corpus/skills/cratis-screenplay-toolchain/references/diagnostics.md +1 -1
- package/package/corpus/skills/cratis-screenplay-toolchain/references/executable-example.md +2 -0
- package/package/corpus/skills/cratis-screenplay-toolchain/references/generated-responses-example.md +4 -0
- package/package/corpus/skills/cratis-screenplay-toolchain/references/generation-strategies-example.md +4 -0
- package/package/corpus/skills/cratis-screenplay-toolchain/references/language-admission.md +1 -1
- package/package/corpus/skills/cratis-screenplay-toolchain/references/pdl-example.md +16 -0
- package/package/corpus/skills/cratis-screenplay-toolchain/references/production-routes-and-filters.md +2 -0
- package/package/corpus/skills/cratis-screenplay-toolchain/references/screenplay-contract.json +6993 -2979
- 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 +2 -0
- package/package/corpus/skills/cratis-screenplay-ui-composition/SKILL.md +55 -70
- package/package/corpus/skills/cratis-screenplay-ui-composition/references/action-subjects.md +4 -1
- package/package/corpus/skills/cratis-screenplay-ui-composition/references/application-shell.md +304 -136
- package/package/corpus/skills/cratis-screenplay-ui-composition/references/screen-composition-contract.md +46 -31
- package/package/corpus/skills/cratis-screenplay-ui-composition/references/ui-profile-and-theme.md +2 -2
- package/package/corpus/skills/cratis-screenplay-ui-composition/verification.json +9 -9
- package/package/corpus/skills/cratis-specification-by-example/SKILL.md +2 -0
- package/package/corpus/skills/cratis-stage-rendering-and-sandbox/references/case-tables-and-whole-numbers.md +4 -0
- package/package/corpus/skills/cratis-stage-rendering-and-sandbox/references/render-example.md +4 -0
- package/package.json +1 -1
|
@@ -141,7 +141,7 @@ model still compiles and binds) and its V5 states the scope.
|
|
|
141
141
|
with no business decisions, rebuild, retest. Never edit a managed file; never add behaviour the
|
|
142
142
|
model does not state. Detail: `references/delivery-protocol.md` section 4.
|
|
143
143
|
7. **Report authored-UI parity.** Require explicit plan/runtime evidence for each authored screen,
|
|
144
|
-
form, layout, template, toolbar, component, outlet, route, package/icon use, theme and persona view,
|
|
144
|
+
form, layout, template, slot, toolbar, hook, component, outlet, route, package/icon use, theme and persona view,
|
|
145
145
|
or a blocking diagnostic or "not rendered" with the responsible tool version; silent fallback to
|
|
146
146
|
default composition is a failure (Stage 4.24 rendered the default composition only).
|
|
147
147
|
8. **Drift:** `cratis render ... --check` (exit 6 pending); also compare the manifest's `semanticRevision`
|
|
@@ -224,7 +224,7 @@ Before reporting done:
|
|
|
224
224
|
- A passing test does not claim runtime guarantees (namespace, subject, constraint scope, guarded
|
|
225
225
|
reads, migrations, replay) or omitted UI were delivered.
|
|
226
226
|
- Re-render: drift line present. `Customizations/` changes name the seam and the model element served.
|
|
227
|
-
- Screen delivery: every authored screen/template/form/toolbar/component/outlet/route/package-icon use is either present in generated/runtime evidence or listed as not rendered/unsupported with the responsible tool version.
|
|
227
|
+
- Screen delivery: every authored screen/template/slot/form/toolbar/hook/component/outlet/route/package-icon use is either present in generated/runtime evidence or listed as not rendered/unsupported with the responsible tool version.
|
|
228
228
|
|
|
229
229
|
## Route near misses
|
|
230
230
|
|
package/package/corpus/skills/cratis-screenplay-scenario-coverage/references/berth-reservations.md
CHANGED
|
@@ -57,6 +57,8 @@ module Berths
|
|
|
57
57
|
released by ReservationCancelled
|
|
58
58
|
constraint ReserveOnce
|
|
59
59
|
unique event BerthReserved
|
|
60
|
+
screen ReserveBerth
|
|
61
|
+
action ReserveBerth for screen
|
|
60
62
|
|
|
61
63
|
specification ReservingAGuestBerth
|
|
62
64
|
given caller
|
|
@@ -231,6 +233,8 @@ module Berths
|
|
|
231
233
|
constraint CancelOrDepart
|
|
232
234
|
unique event ReservationCancelled
|
|
233
235
|
unique event BoatDeparted
|
|
236
|
+
screen CancelReservation
|
|
237
|
+
action CancelReservation for screen
|
|
234
238
|
|
|
235
239
|
specification CancellingAReservation
|
|
236
240
|
given caller
|
|
@@ -353,6 +357,8 @@ module Berths
|
|
|
353
357
|
BerthDamageReported
|
|
354
358
|
for reservationId
|
|
355
359
|
event BerthDamageReported
|
|
360
|
+
screen RecordDeparture
|
|
361
|
+
action RecordDeparture for screen
|
|
356
362
|
|
|
357
363
|
specification RecordingACleanDeparture
|
|
358
364
|
given caller
|
|
@@ -58,6 +58,8 @@ module Invoicing
|
|
|
58
58
|
amount Decimal = amount
|
|
59
59
|
constraint IssueOnce
|
|
60
60
|
unique event InvoiceIssued
|
|
61
|
+
screen IssueInvoice
|
|
62
|
+
action IssueInvoice for screen
|
|
61
63
|
|
|
62
64
|
slice StateView OpenInvoices
|
|
63
65
|
description "Todo list: membership means 'still to collect'. The rules below read it (it lags: an unguarded read is not protection)."
|
|
@@ -138,6 +140,9 @@ module Invoicing
|
|
|
138
140
|
constraint SettleOrVoid
|
|
139
141
|
unique event InvoiceSettled
|
|
140
142
|
unique event InvoiceVoided
|
|
143
|
+
screen SettleOrVoidInvoice
|
|
144
|
+
action SettleInvoice for screen
|
|
145
|
+
action VoidInvoice for screen
|
|
141
146
|
|
|
142
147
|
specification SettlingAnOpenInvoice
|
|
143
148
|
given caller
|
|
@@ -186,6 +191,8 @@ module Invoicing
|
|
|
186
191
|
message "Only a received, not yet reversed payment can be reversed" // NOT enforced: the view lags (PLAY0268 at binding)
|
|
187
192
|
produces event PaymentReversed
|
|
188
193
|
amount Decimal = amount
|
|
194
|
+
screen ReversePayment
|
|
195
|
+
action ReversePayment for screen
|
|
189
196
|
|
|
190
197
|
specification ReversingAReceivedPayment
|
|
191
198
|
given caller
|
|
@@ -55,6 +55,8 @@ module Invoicing
|
|
|
55
55
|
amount Decimal = amount
|
|
56
56
|
constraint IssueOnce
|
|
57
57
|
unique event InvoiceIssued
|
|
58
|
+
screen IssueInvoice
|
|
59
|
+
action IssueInvoice for screen
|
|
58
60
|
|
|
59
61
|
specification IssuingAnInvoice
|
|
60
62
|
given caller
|
|
@@ -101,6 +103,9 @@ module Invoicing
|
|
|
101
103
|
constraint SettleOrVoid
|
|
102
104
|
unique event InvoiceSettled
|
|
103
105
|
unique event InvoiceVoided
|
|
106
|
+
screen SettleOrVoidInvoice
|
|
107
|
+
action SettleInvoice for screen
|
|
108
|
+
action VoidInvoice for screen
|
|
104
109
|
|
|
105
110
|
specification SettlingAnInvoice
|
|
106
111
|
given caller
|
|
@@ -164,6 +169,8 @@ module Invoicing
|
|
|
164
169
|
command RequestPayment
|
|
165
170
|
invoiceId InvoiceId identifier
|
|
166
171
|
produces event PaymentRequested
|
|
172
|
+
screen RequestPayment
|
|
173
|
+
action RequestPayment for screen
|
|
167
174
|
|
|
168
175
|
specification RequestingPayment
|
|
169
176
|
given caller
|
|
@@ -378,6 +385,8 @@ module Invoicing
|
|
|
378
385
|
amount > 0 message "A top-up needs an amount above zero"
|
|
379
386
|
produces event CreditToppedUp
|
|
380
387
|
amount Decimal = amount
|
|
388
|
+
screen TopUpCredit
|
|
389
|
+
action TopUpCredit for screen
|
|
381
390
|
|
|
382
391
|
specification ToppingUpCredit
|
|
383
392
|
given caller
|
|
@@ -101,6 +101,14 @@ Ask the batch below only for what the request leaves open: (1) origin of each ac
|
|
|
101
101
|
(`references/read-model-design.md`). One actor's point of view
|
|
102
102
|
per screen, at a real beat of the story, not one per persona for symmetry; know where the
|
|
103
103
|
actor sees each state change's result. Beyond Level 1: `cratis-screenplay-ui-composition`.
|
|
104
|
+
**Placement** (Screenplay 6): a State Change slice's screen says what it fits, in order of
|
|
105
|
+
preference (`fits dialog, drawer, pane`); the hook that starts it (a `button` naming the slice
|
|
106
|
+
in a template's actions outlet) picks the first fit the page has free, and names a place
|
|
107
|
+
(`opens dialog|drawer|in slot <name>`) only when it needs another one. A command whose inputs
|
|
108
|
+
all resolve from the selected row or generated values can be issued by a `runs` hook and needs
|
|
109
|
+
no screen. Every State Change command needs an issuer (a screen action, a hook, an attached
|
|
110
|
+
behavior `execute` or a reaction; a form alone is not one), or `PLAY0533` warns on every check. Once the application
|
|
111
|
+
declares navigation, a screen nothing reaches (no hook, navigation or action leads to it) issues nothing.
|
|
104
112
|
8. **Lineage pass.** After each field edit run `--check field-origins,input-surfaces`. Build the matrix in `references/field-lineage.md` from the `.play` files
|
|
105
113
|
(read them), not from memory or an earlier summary. For each read model, write one line per
|
|
106
114
|
contributing event in its StateView slice `documentation`: which fields it sets and why. An
|
package/package/corpus/skills/cratis-screenplay-slice-design/references/command-inventory.md
CHANGED
|
@@ -114,6 +114,8 @@ module Rentals
|
|
|
114
114
|
bikeId BikeId = bikeId
|
|
115
115
|
startTime DateTime = startTime
|
|
116
116
|
reservedAt DateTime = $context.occurred
|
|
117
|
+
screen ReserveBike
|
|
118
|
+
action ReserveBike for screen
|
|
117
119
|
|
|
118
120
|
specification RejectingAStartTimeInThePast
|
|
119
121
|
given clock "2026-06-01T09:00:00Z"
|
|
@@ -58,7 +58,8 @@ implication rule. Never leave it implicit.
|
|
|
58
58
|
|
|
59
59
|
After every edit that adds, renames or removes a field, run the opt-in structural checks on
|
|
60
60
|
the model root rather than waiting for the audit: `field-origins` (a read-model field with no
|
|
61
|
-
origin), `input-surfaces` (a command nothing issues
|
|
61
|
+
origin), `input-surfaces` (an action with no issuing screen or form; a command nothing issues is
|
|
62
|
+
`PLAY0533` on every check since Screenplay 6), `data-bindings`, `query-keys` and
|
|
62
63
|
`event-consumers`. Use `--check` on the standalone tool or the MCP `diagnostics` `checks`;
|
|
63
64
|
flags and versions are in `cratis-screenplay-toolchain`. They run only when the whole model
|
|
64
65
|
has no source errors, so fix those first and never read a skipped check as clean.
|
|
@@ -39,6 +39,8 @@ module Billing
|
|
|
39
39
|
amount Int
|
|
40
40
|
produces event AmountRecorded
|
|
41
41
|
amount Int = amount
|
|
42
|
+
screen RecordAmount
|
|
43
|
+
action RecordAmount for screen
|
|
42
44
|
specification RecordingAnAmount
|
|
43
45
|
description "Witnesses that the agreed amount is retained"
|
|
44
46
|
when RecordAmount amount = 10
|
|
@@ -45,6 +45,8 @@ module Invoicing
|
|
|
45
45
|
discount DiscountPercentage
|
|
46
46
|
produces event DiscountGranted
|
|
47
47
|
discount DiscountPercentage = discount
|
|
48
|
+
screen GrantDiscount
|
|
49
|
+
action GrantDiscount for screen
|
|
48
50
|
specification GrantingAValidDiscount
|
|
49
51
|
when GrantDiscount
|
|
50
52
|
invoiceId = "9c858901-8a57-4791-81fe-4c455b099bc9"
|
package/package/corpus/skills/cratis-screenplay-specifications/references/examples-and-routes.md
CHANGED
|
@@ -37,6 +37,8 @@ module Projects
|
|
|
37
37
|
name String
|
|
38
38
|
produces event ProjectRegistered
|
|
39
39
|
name String = name
|
|
40
|
+
screen Register
|
|
41
|
+
action RegisterProject for screen
|
|
40
42
|
specification RegisteringTheDefault
|
|
41
43
|
when DefaultProject
|
|
42
44
|
projectId = "3fa85f64-5717-4562-b3fc-2c963f66afa6"
|
|
@@ -65,6 +65,8 @@ module Billing
|
|
|
65
65
|
message "The amount must be positive"
|
|
66
66
|
produces event AmountRecorded
|
|
67
67
|
amount Int = amount
|
|
68
|
+
screen RecordAmount
|
|
69
|
+
action RecordAmount for screen
|
|
68
70
|
specification RecordingAmounts
|
|
69
71
|
description "An accountant can record a positive amount"
|
|
70
72
|
parameter amount Int
|
package/package/corpus/skills/cratis-screenplay-specifications/references/whitespace-rules.md
CHANGED
|
@@ -53,6 +53,8 @@ module Names
|
|
|
53
53
|
name = name
|
|
54
54
|
event NameRegistered
|
|
55
55
|
name Name
|
|
56
|
+
screen RegisterConcept
|
|
57
|
+
action RegisterConcept for screen
|
|
56
58
|
specification RejectingWhitespaceOnAConcept
|
|
57
59
|
when RegisterConcept
|
|
58
60
|
id = "name-1"
|
|
@@ -90,6 +92,8 @@ module Names
|
|
|
90
92
|
name = name
|
|
91
93
|
event TextRegistered
|
|
92
94
|
name String
|
|
95
|
+
screen RegisterProperty
|
|
96
|
+
action RegisterProperty for screen
|
|
93
97
|
specification RejectingWhitespaceOnAProperty
|
|
94
98
|
when RegisterProperty
|
|
95
99
|
id = "name-1"
|
|
@@ -25,6 +25,8 @@ module Invoicing
|
|
|
25
25
|
invoiceNumber InvoiceNumber = invoiceNumber
|
|
26
26
|
constraint UniqueInvoiceNumber
|
|
27
27
|
unique invoiceNumber on InvoiceRegistered
|
|
28
|
+
screen RegisterInvoice
|
|
29
|
+
action RegisterInvoice for screen
|
|
28
30
|
specification RegisteringAnInvoice
|
|
29
31
|
given caller
|
|
30
32
|
authenticated
|
|
@@ -36,6 +36,8 @@ module Membership
|
|
|
36
36
|
event MembershipRenewed generation 1
|
|
37
37
|
event MembershipRenewed generation 2
|
|
38
38
|
months Int
|
|
39
|
+
screen RenewMembership
|
|
40
|
+
action RenewMembership for screen
|
|
39
41
|
specification RenewingForSixMonths
|
|
40
42
|
when RenewMembership
|
|
41
43
|
membershipId = "5b0f4c3e-2d1a-4e6b-8f7c-9a1b2c3d4e05"
|
|
@@ -51,6 +53,8 @@ module Membership
|
|
|
51
53
|
for membershipId
|
|
52
54
|
event MembershipPaused
|
|
53
55
|
id "MembershipSuspended"
|
|
56
|
+
screen PauseMembership
|
|
57
|
+
action PauseMembership for screen
|
|
54
58
|
|
|
55
59
|
slice StateChange EndMembership
|
|
56
60
|
description "Ending by the member and termination for breach are different facts"
|
|
@@ -65,6 +69,8 @@ module Membership
|
|
|
65
69
|
for membershipId
|
|
66
70
|
event MembershipEnded
|
|
67
71
|
event MembershipTerminatedForBreach
|
|
72
|
+
screen EndMembership
|
|
73
|
+
action EndMembership for screen
|
|
68
74
|
specification EndingByChoice
|
|
69
75
|
when EndMembership
|
|
70
76
|
membershipId = "5b0f4c3e-2d1a-4e6b-8f7c-9a1b2c3d4e05"
|
|
@@ -62,6 +62,8 @@ module Membership
|
|
|
62
62
|
constraint UniqueMemberEmail
|
|
63
63
|
unique email on MemberRegistered
|
|
64
64
|
ignore casing
|
|
65
|
+
screen RegisterMember
|
|
66
|
+
action RegisterMember for screen
|
|
65
67
|
specification RegisteringAMember
|
|
66
68
|
given caller
|
|
67
69
|
authenticated
|
|
@@ -107,6 +109,8 @@ module Courses
|
|
|
107
109
|
seats Int
|
|
108
110
|
produces event CourseOpened
|
|
109
111
|
seats Int = seats
|
|
112
|
+
screen OpenCourse
|
|
113
|
+
action OpenCourse for screen
|
|
110
114
|
specification OpeningACourse
|
|
111
115
|
given caller
|
|
112
116
|
authenticated
|
|
@@ -184,6 +188,8 @@ module Courses
|
|
|
184
188
|
released by EnrolmentWithdrawn
|
|
185
189
|
constraint EnrolOnce
|
|
186
190
|
unique event MemberEnrolled
|
|
191
|
+
screen EnrolMember
|
|
192
|
+
action EnrolMember for screen
|
|
187
193
|
specification EnrollingAMember
|
|
188
194
|
given caller
|
|
189
195
|
authenticated
|
|
@@ -276,6 +282,8 @@ module Courses
|
|
|
276
282
|
courseId CourseId = courseId
|
|
277
283
|
constraint WithdrawOnce
|
|
278
284
|
unique event EnrolmentWithdrawn
|
|
285
|
+
screen WithdrawEnrolment
|
|
286
|
+
action WithdrawEnrolment for screen
|
|
279
287
|
specification WithdrawingAnEnrolment
|
|
280
288
|
given caller
|
|
281
289
|
authenticated
|
|
@@ -70,6 +70,7 @@ superseded statement needs context; exceptions do not change the contract.
|
|
|
70
70
|
| Scope/checks | `--scope <address>`, `--check <names>`; a scoped pass is not whole-application success | `validate --executable` (bundled binder, no write), `--check <names>`, `--scope`; `render --scope`/`--check`; `cratis screenplay conform`, `cratis screenplay conform-namespace` |
|
|
71
71
|
| Declared gate | `screenplay <root> --print-gate`, `--format json`, `--no-gate-file` | `validate <root> --print-gate`, `--no-gate-file`; the same `screenplay.json` |
|
|
72
72
|
| Reference execution | `screenplay test <root>` or MCP `run-specifications` | Discover bundled MCP capability; target tests are not V4 |
|
|
73
|
+
| Version migration | `screenplay migrate <root> --from <major> [--to <major>] [--dry-run] [--report <file>]` or MCP `migrate` (read-only); exit 2 means review | Use the standalone tool; see `cratis-screenplay-modeling-lifecycle` |
|
|
73
74
|
| MCP | `screenplay mcp <root>`; discover schemas | `cratis screenplay mcp [root]`; registered by `cratis ai install` |
|
|
74
75
|
| Render boundary | Binder admission is not Stage admission | The CLI renders only ESM versions it knows; a newer bound model gets `CLI-RENDER-004` |
|
|
75
76
|
|
package/package/corpus/skills/cratis-screenplay-toolchain/references/automation-translate-example.md
CHANGED
|
@@ -19,6 +19,8 @@ module Membership
|
|
|
19
19
|
memberId MemberId identifier
|
|
20
20
|
produces event MemberSubscribed
|
|
21
21
|
subscribedAt DateTime = $context.occurred
|
|
22
|
+
screen Subscribe
|
|
23
|
+
action Subscribe for screen
|
|
22
24
|
specification SubscribingAMember
|
|
23
25
|
given clock "2026-10-05T09:00:00Z"
|
|
24
26
|
when Subscribe
|
|
@@ -138,6 +138,8 @@ module Billing
|
|
|
138
138
|
invoiceId InvoiceId identifier
|
|
139
139
|
authorize CanManage
|
|
140
140
|
produces event InvoiceCancelled
|
|
141
|
+
screen CancelInvoice
|
|
142
|
+
action CancelInvoice for screen
|
|
141
143
|
specification CancellingAnInvoice
|
|
142
144
|
given caller
|
|
143
145
|
authenticated
|
|
@@ -218,6 +220,8 @@ module Billing
|
|
|
218
220
|
produces event PaymentRecorded
|
|
219
221
|
invoiceId InvoiceId = invoiceId // cross-stream reference is payload
|
|
220
222
|
amount Decimal = amount
|
|
223
|
+
screen RecordPayment
|
|
224
|
+
action RecordPayment for screen
|
|
221
225
|
specification RecordingAPayment
|
|
222
226
|
given caller
|
|
223
227
|
authenticated
|
|
@@ -252,6 +256,8 @@ module Housekeeping // no gates: this reaction
|
|
|
252
256
|
// No command spec here: under ESM v6 it must list the ReminderSent cascade. The file is
|
|
253
257
|
// RecordingAPayment's cascade: an older bundled compiler reported a false PLAY0285 here.
|
|
254
258
|
// The cascade form: automation-translate-example.md (SubscribingAMember).
|
|
259
|
+
screen MarkOverdue
|
|
260
|
+
action MarkOverdue for screen
|
|
255
261
|
|
|
256
262
|
slice Automation RemindOverdue
|
|
257
263
|
reaction Reminder
|
package/package/corpus/skills/cratis-screenplay-toolchain/references/diagnostic-arguments.md
CHANGED
|
@@ -57,7 +57,7 @@ a separate `case` names an expansion. Argument order is immaterial.
|
|
|
57
57
|
| PLAY0791 | `profile`, `template` (the layout name) |
|
|
58
58
|
| PLAY0792 | `profile`, `template`, `blueprint` |
|
|
59
59
|
| PLAY0793 | `profile`, `template`, `blueprint`, `version` |
|
|
60
|
-
| PLAY0795 | `profile`, `template`, `blueprint?`, `
|
|
60
|
+
| PLAY0795 | `profile`, `template`, `blueprint?`, `slot` |
|
|
61
61
|
| PLAY0796 | `profile`, `template`, `blueprint?`, `option` |
|
|
62
62
|
| PLAY0797 | `profile`, `value` |
|
|
63
63
|
| PLAY0800 | `subject` (required declaration: command) |
|
|
@@ -335,7 +335,7 @@ as errors if gating. Ordinary compile success does not imply these ran:
|
|
|
335
335
|
| Family | Codes | Checks |
|
|
336
336
|
| --- | --- | --- |
|
|
337
337
|
| data-bindings | PLAY0530/0531 | Conflicting visible bindings; binding/query read-model or cardinality mismatch |
|
|
338
|
-
| input-surfaces | PLAY0532
|
|
338
|
+
| input-surfaces | PLAY0532 | Missing command input form/issuing screen. Since Screenplay 6, PLAY0533 (no reachable issuer) runs on every check and is no longer selected here |
|
|
339
339
|
| field-origins | PLAY0534 | Missing read-model builder or top-level field origin (AutoMap, identity and variants considered) |
|
|
340
340
|
| query-keys | PLAY0535 | Query argument not representable by known identity/fields |
|
|
341
341
|
| event-consumers | PLAY0536 | Latest local event generation lacks an operational consumer; a terminal fact can legitimately be reported |
|
package/package/corpus/skills/cratis-screenplay-toolchain/references/generated-responses-example.md
CHANGED
|
@@ -24,6 +24,8 @@ module Projects
|
|
|
24
24
|
returns
|
|
25
25
|
projectId = projectId
|
|
26
26
|
receiptId ReceiptId = receiptId
|
|
27
|
+
screen Register
|
|
28
|
+
action RegisterProject for screen
|
|
27
29
|
specification RegisteringReturnsIdentifiers
|
|
28
30
|
when RegisterProject
|
|
29
31
|
for "11111111-1111-1111-1111-111111111111"
|
|
@@ -41,6 +43,8 @@ module Projects
|
|
|
41
43
|
produces event ProjectRenamed
|
|
42
44
|
name ProjectName = name
|
|
43
45
|
returns projectId
|
|
46
|
+
screen Rename
|
|
47
|
+
action RenameProject for screen
|
|
44
48
|
specification RenamingReturnsIdentifier
|
|
45
49
|
when RenameProject
|
|
46
50
|
projectId = "11111111-1111-1111-1111-111111111111"
|
|
@@ -52,6 +52,8 @@ module Shop
|
|
|
52
52
|
invoiceNumber InvoiceNumber = invoiceNumber
|
|
53
53
|
pickupTicket TicketNumber = pickupTicket
|
|
54
54
|
returns orderId
|
|
55
|
+
screen Place
|
|
56
|
+
action PlaceOrder for screen
|
|
55
57
|
specification PlacesWithPinnedValues
|
|
56
58
|
given clock "2026-10-02T09:00:00Z"
|
|
57
59
|
when PlaceOrder
|
|
@@ -103,6 +105,8 @@ module Shop
|
|
|
103
105
|
command ReserveReference
|
|
104
106
|
reference TenantOrderReference generated
|
|
105
107
|
returns reference
|
|
108
|
+
screen ReserveReference
|
|
109
|
+
action ReserveReference for screen
|
|
106
110
|
specification UsesThePinnedReference
|
|
107
111
|
when ReserveReference
|
|
108
112
|
generated reference = "shop-eu:order_example"
|
|
@@ -34,7 +34,7 @@ exact language/semantic pairs; binding, reference execution and rendering are se
|
|
|
34
34
|
| v35 | Reserved for handler result contract v2 (decision 0119); no construct selects it | | |
|
|
35
35
|
| v36 | `statemachine` and `workflow` declarations (decision 0124; PLAY0834-PLAY0851) | Serializes `stateMachines` and `workflows`; specifications run them; earlier models keep their version and bytes | Stage refuses v36 models with `STAGE-ESM-016` |
|
|
36
36
|
|
|
37
|
-
Constructs of decision 0098 with no executable-model content need no version: application-level
|
|
37
|
+
Constructs of decision 0098 with no executable-model content need no version: application-level hooks in a layout's actions outlet (`default <id> title "..." slice <Slice>` with an optional indented `authorize <Policy>`), and a capture over events that copies a list (`lines = $.lines`) or fans out with `children lines identified by sku`. Check `screenplay --version` against the release that admitted v29 and v30 before relying on them. Decision 0115 withdrew 0098's command specification that states the public event its outbound Translate slice publishes: a specification runs only its own slice, so the Translate slice states the public event in its own `when append` specification.
|
|
38
38
|
|
|
39
39
|
## Compiler and target minimums
|
|
40
40
|
|
|
@@ -31,6 +31,8 @@ module Shop
|
|
|
31
31
|
produces event LineAdded
|
|
32
32
|
lineNumber Int = 1
|
|
33
33
|
sku String = "A-1"
|
|
34
|
+
screen PlaceOrder
|
|
35
|
+
action PlaceOrder for screen
|
|
34
36
|
specification PlacingAnOrder
|
|
35
37
|
when PlaceOrder
|
|
36
38
|
orderId = "7a1c2e30-4b5d-4e6f-8a9b-0c1d2e3f4a5b"
|
|
@@ -58,6 +60,8 @@ module Shop
|
|
|
58
60
|
lineNumber Int
|
|
59
61
|
produces event LineRemoved
|
|
60
62
|
lineNumber Int = lineNumber
|
|
63
|
+
screen RemoveLine
|
|
64
|
+
action RemoveLine for screen
|
|
61
65
|
slice StateChange ShipOrder
|
|
62
66
|
command ShipOrder
|
|
63
67
|
orderId OrderId identifier
|
|
@@ -65,10 +69,14 @@ module Shop
|
|
|
65
69
|
produces event Shipped
|
|
66
70
|
carrier String = carrier
|
|
67
71
|
produces event ShippingCleared
|
|
72
|
+
screen ShipOrder
|
|
73
|
+
action ShipOrder for screen
|
|
68
74
|
slice StateChange CancelOrder
|
|
69
75
|
command CancelOrder
|
|
70
76
|
orderId OrderId identifier
|
|
71
77
|
produces event OrderCancelled
|
|
78
|
+
screen CancelOrder
|
|
79
|
+
action CancelOrder for screen
|
|
72
80
|
specification CancellingAnOrder
|
|
73
81
|
given OrderPlaced
|
|
74
82
|
for "7a1c2e30-4b5d-4e6f-8a9b-0c1d2e3f4a5b"
|
|
@@ -86,6 +94,8 @@ module Shop
|
|
|
86
94
|
produces event CustomerRenamed
|
|
87
95
|
name String = name
|
|
88
96
|
produces event CustomerDeleted
|
|
97
|
+
screen RenameCustomer
|
|
98
|
+
action RenameCustomer for screen
|
|
89
99
|
slice StateView OrderOverview
|
|
90
100
|
readmodel OrderView
|
|
91
101
|
orderId OrderId
|
|
@@ -137,6 +147,8 @@ module Work
|
|
|
137
147
|
title String = title
|
|
138
148
|
produces event IssueTitleCorrected
|
|
139
149
|
title String = title
|
|
150
|
+
screen OpenIssue
|
|
151
|
+
action OpenIssue for screen
|
|
140
152
|
slice StateChange OpenPullRequest
|
|
141
153
|
command OpenPullRequest
|
|
142
154
|
issueId IssueId identifier
|
|
@@ -144,6 +156,8 @@ module Work
|
|
|
144
156
|
produces event PullRequestCreated
|
|
145
157
|
produces event BuildCompleted
|
|
146
158
|
status String = status
|
|
159
|
+
screen OpenPullRequest
|
|
160
|
+
action OpenPullRequest for screen
|
|
147
161
|
slice StateView WorkItems
|
|
148
162
|
readmodel BacklogItem
|
|
149
163
|
issueId IssueId
|
|
@@ -178,6 +192,8 @@ module Bank
|
|
|
178
192
|
produces event Withdrawn
|
|
179
193
|
amount Decimal = amount
|
|
180
194
|
produces event Frozen
|
|
195
|
+
screen Deposit
|
|
196
|
+
action Deposit for screen
|
|
181
197
|
specification Depositing
|
|
182
198
|
when Deposit
|
|
183
199
|
accountId = "5d1f0c2e-8a47-4c1b-9b3e-6f2a7c9d1e10"
|