@cratis/pi 7.160.0 → 7.160.2
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-screenplay-captures-and-reactions/SKILL.md +1 -1
- package/package/corpus/skills/cratis-screenplay-captures-and-reactions/references/reaction-forms.md +23 -0
- package/package/corpus/skills/cratis-screenplay-captures-and-reactions/verification.json +4 -1
- package/package/corpus/skills/cratis-screenplay-command-surface/references/validate-rules.md +14 -0
- package/package/corpus/skills/cratis-screenplay-command-surface/verification.json +2 -1
- package/package/corpus/skills/cratis-screenplay-model-authoring/references/language-reference.md +2 -2
- package/package/corpus/skills/cratis-screenplay-model-authoring/references/model-notes.md +28 -1
- package/package/corpus/skills/cratis-screenplay-model-authoring/verification.json +2 -0
- package/package/corpus/skills/cratis-screenplay-model-review/references/mode-compliance.md +4 -0
- package/package/corpus/skills/cratis-screenplay-model-review/references/quick-self-check.md +1 -0
- package/package/corpus/skills/cratis-screenplay-model-review/verification.json +2 -1
- package/package/corpus/skills/cratis-screenplay-projections/SKILL.md +15 -4
- package/package/corpus/skills/cratis-screenplay-projections/references/graphs.md +112 -0
- package/package/corpus/skills/cratis-screenplay-projections/references/secret-concepts.md +23 -0
- package/package/corpus/skills/cratis-screenplay-projections/verification.json +9 -1
- package/package/corpus/skills/cratis-screenplay-read-surface/SKILL.md +2 -0
- package/package/corpus/skills/cratis-screenplay-read-surface/references/graph-queries.md +22 -0
- package/package/corpus/skills/cratis-screenplay-read-surface/references/screen-patterns.md +11 -2
- package/package/corpus/skills/cratis-screenplay-read-surface/verification.json +4 -1
- package/package/corpus/skills/cratis-screenplay-render-and-gap-fill/SKILL.md +3 -1
- package/package/corpus/skills/cratis-screenplay-render-and-gap-fill/references/renderability-gate.md +4 -1
- package/package/corpus/skills/cratis-screenplay-render-and-gap-fill/verification.json +3 -1
- package/package/corpus/skills/cratis-screenplay-scenario-coverage/references/spec-forms-by-mode.md +1 -1
- package/package/corpus/skills/cratis-screenplay-scenario-coverage/verification.json +2 -1
- package/package/corpus/skills/cratis-screenplay-slice-design/references/slicing.md +38 -0
- package/package/corpus/skills/cratis-screenplay-slice-design/verification.json +2 -0
- package/package/corpus/skills/cratis-screenplay-specifications/SKILL.md +9 -12
- package/package/corpus/skills/cratis-screenplay-specifications/references/date-comparisons.md +21 -0
- package/package/corpus/skills/cratis-screenplay-specifications/references/graph-steps.md +85 -2
- package/package/corpus/skills/cratis-screenplay-specifications/references/host-body-execution.md +29 -0
- package/package/corpus/skills/cratis-screenplay-specifications/references/producerless-events.md +63 -0
- package/package/corpus/skills/cratis-screenplay-specifications/references/worked-example.md +2 -1
- package/package/corpus/skills/cratis-screenplay-specifications/verification.json +9 -1
- package/package/corpus/skills/cratis-screenplay-toolchain/SKILL.md +2 -0
- package/package/corpus/skills/cratis-screenplay-toolchain/references/diagnostics.md +39 -0
- package/package/corpus/skills/cratis-screenplay-toolchain/references/executable-subset.md +14 -8
- package/package/corpus/skills/cratis-screenplay-toolchain/references/language-admission.md +5 -0
- package/package/corpus/skills/cratis-screenplay-toolchain/references/read-model-property-order.md +26 -0
- package/package/corpus/skills/cratis-screenplay-toolchain/references/screenplay-contract.json +22 -0
- package/package/corpus/skills/cratis-screenplay-toolchain/references/screenplay-contract.version +1 -1
- package/package/corpus/skills/cratis-screenplay-toolchain/references/unknown-preserving-reader.md +57 -0
- package/package/corpus/skills/cratis-screenplay-toolchain/verification.json +16 -1
- package/package/corpus/skills/cratis-screenplay-ui-composition/SKILL.md +5 -34
- package/package/corpus/skills/cratis-screenplay-ui-composition/references/action-subjects.md +27 -1
- package/package/corpus/skills/cratis-screenplay-ui-composition/references/deliverable-identity.md +41 -0
- package/package/corpus/skills/cratis-screenplay-ui-composition/references/guarded-interactions.md +2 -1
- package/package/corpus/skills/cratis-screenplay-ui-composition/references/screen-visuals.md +43 -0
- package/package/corpus/skills/cratis-screenplay-ui-composition/verification.json +8 -1
- package/package/corpus/skills/cratis-stage-rendering-and-sandbox/SKILL.md +3 -1
- package/package/corpus/skills/cratis-stage-rendering-and-sandbox/verification.json +2 -1
- package/package.json +1 -1
|
@@ -28,7 +28,7 @@ reference execution. Use `screenplay test` or MCP `run-specifications` for V4; S
|
|
|
28
28
|
tests are separate evidence. Propose → review → `run-specifications` with `proposalId` → apply.
|
|
29
29
|
PLAY0285 (an impossible `then`) unbinds the whole model and blocks every spec.
|
|
30
30
|
Unsupported/unbound is never a pass. Typed examples and
|
|
31
|
-
|
|
31
|
+
routes: [examples](references/examples-and-routes.md); [producerless events](references/producerless-events.md).
|
|
32
32
|
|
|
33
33
|
Requires Screenplay 4.145.0 or later (`screenplay --version`) for `run-specifications` with `proposalId`.
|
|
34
34
|
|
|
@@ -98,21 +98,18 @@ or target tests; name engine, version and expected/discovered selection.
|
|
|
98
98
|
UnsupportedValidation, not a successful check. Read
|
|
99
99
|
[text and match rules](../cratis-screenplay-command-surface/references/text-and-match-rules.md)
|
|
100
100
|
for boundary values and PLAY0699/0787. Reference success is not Stage admission.
|
|
101
|
+
- Opaque rule, validation and reducer bodies run only when a host supplies a body execution
|
|
102
|
+
provider; the standalone tool never does. Read
|
|
103
|
+
[host body execution](references/host-body-execution.md).
|
|
101
104
|
|
|
102
105
|
## Chronological command date comparisons
|
|
103
106
|
|
|
104
107
|
Requires Screenplay 4.199.0 (ESM v26; `screenplay --version`); older binders refuse
|
|
105
|
-
these comparisons with PLAY0268.
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
`then` matching stays ordinal: expected event values keep the exact produced text,
|
|
111
|
-
not an equivalent offset. Read the complete [retention-window specifications](../cratis-screenplay-command-surface/references/date-comparisons.md)
|
|
112
|
-
for `require to >= from`, PLAY0268/0273 and Stage's v26 refusal. The missing-offset
|
|
113
|
-
runtime case needs an evaluator-request or target input test: putting the invalid
|
|
114
|
-
value in a typed `.play` fixture instead fails binding with PLAY0273; `then error`
|
|
115
|
-
does not exercise runtime validation.
|
|
108
|
+
these comparisons with PLAY0268.
|
|
109
|
+
|
|
110
|
+
DateTime conditions compare UTC instants at tick precision, and an input without an
|
|
111
|
+
offset rejects with Validation before rules. Read [date comparisons](references/date-comparisons.md)
|
|
112
|
+
for the cases to cover, ordinal `then` matching and the runtime-validation test.
|
|
116
113
|
|
|
117
114
|
## Descriptions, persona callers and case tables
|
|
118
115
|
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# Chronological command date comparisons
|
|
2
|
+
|
|
3
|
+
Requires Screenplay 4.199.0 (ESM v26; `screenplay --version`); older binders refuse
|
|
4
|
+
these comparisons with PLAY0268.
|
|
5
|
+
|
|
6
|
+
## What to cover
|
|
7
|
+
|
|
8
|
+
DateTime conditions compare UTC instants at tick precision: cover equal instants with
|
|
9
|
+
different offsets, increasing endpoints, an inverted interval and a one-tick boundary.
|
|
10
|
+
Every participating DateTime input without an offset or `Z` rejects with Validation
|
|
11
|
+
before rules, even when its comparison is skipped; add a missing-offset rejection, not
|
|
12
|
+
a clock fixture workaround.
|
|
13
|
+
|
|
14
|
+
## Matching and runtime cases
|
|
15
|
+
|
|
16
|
+
`then` matching stays ordinal: expected event values keep the exact produced text,
|
|
17
|
+
not an equivalent offset. Read the complete [retention-window specifications](../../cratis-screenplay-command-surface/references/date-comparisons.md)
|
|
18
|
+
for `require to >= from`, PLAY0268/0273 and Stage's v26 refusal. The missing-offset
|
|
19
|
+
runtime case needs an evaluator-request or target input test: putting the invalid
|
|
20
|
+
value in a typed `.play` fixture instead fails binding with PLAY0273; `then error`
|
|
21
|
+
does not exercise runtime validation.
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
- Steps
|
|
6
6
|
- Example
|
|
7
|
+
- Asserting a graph query
|
|
7
8
|
- Rules
|
|
8
9
|
|
|
9
10
|
## Steps
|
|
@@ -14,6 +15,8 @@
|
|
|
14
15
|
| `has edge <TYPE> from <source> to <target> [identified by <value>]` | The edge exists and the properties listed under it hold the given values. |
|
|
15
16
|
| `no node <Label> <key>` | The node does not exist. `then graph` only. |
|
|
16
17
|
| `no edge <TYPE> from <source> to <target> [identified by <value>]` | The edge does not exist. `then graph` only. |
|
|
18
|
+
| `then query <Name>` | Runs a graph query and compares its `result` rows; see below. |
|
|
19
|
+
| `given clock "<instant>"` | Fixes `$eventContext.occurred` for the events the specification appends. |
|
|
17
20
|
|
|
18
21
|
## Example
|
|
19
22
|
|
|
@@ -79,6 +82,85 @@ module Organization
|
|
|
79
82
|
The specification sits in the slice that declares the graph and its projection; they give
|
|
80
83
|
the steps their labels and keys. Check with `screenplay --warnaserror` and `screenplay test`.
|
|
81
84
|
|
|
85
|
+
## Asserting a graph query
|
|
86
|
+
|
|
87
|
+
Requires Screenplay 5.8.0 or later (`screenplay --version`). A query that ends in `graph <Graph>`
|
|
88
|
+
(see [reading a graph](../../cratis-screenplay-projections/references/graphs.md#reading-a-graph-with-a-query))
|
|
89
|
+
is asserted with `then query <Name>`, after `given graph` or after events a projection turns into
|
|
90
|
+
nodes and edges. `given clock` is stated once, before the events:
|
|
91
|
+
|
|
92
|
+
```screenplay
|
|
93
|
+
concept PersonId : Uuid
|
|
94
|
+
concept GroupId : Uuid
|
|
95
|
+
concept Name : String
|
|
96
|
+
|
|
97
|
+
module Organization
|
|
98
|
+
feature Chart
|
|
99
|
+
slice StateView OrganizationChart
|
|
100
|
+
event PersonRegistered
|
|
101
|
+
name Name
|
|
102
|
+
|
|
103
|
+
event GroupCreated
|
|
104
|
+
title Name
|
|
105
|
+
|
|
106
|
+
event MemberAdded
|
|
107
|
+
groupId GroupId
|
|
108
|
+
|
|
109
|
+
graph Organization
|
|
110
|
+
node Person
|
|
111
|
+
personId PersonId key
|
|
112
|
+
name Name
|
|
113
|
+
node Group
|
|
114
|
+
groupId GroupId key
|
|
115
|
+
title Name
|
|
116
|
+
edge MEMBER_OF source Person target Group
|
|
117
|
+
since DateTime optional
|
|
118
|
+
|
|
119
|
+
projection OrganizationChart => graph Organization
|
|
120
|
+
node Person
|
|
121
|
+
from PersonRegistered key $eventSourceId
|
|
122
|
+
name = name
|
|
123
|
+
node Group
|
|
124
|
+
from GroupCreated key $eventSourceId
|
|
125
|
+
title = title
|
|
126
|
+
edge MEMBER_OF
|
|
127
|
+
from MemberAdded source $eventSourceId target groupId
|
|
128
|
+
since = $eventContext.occurred
|
|
129
|
+
|
|
130
|
+
readmodel Membership
|
|
131
|
+
personId PersonId key
|
|
132
|
+
person Name
|
|
133
|
+
since DateTime optional
|
|
134
|
+
|
|
135
|
+
query MembersOf => Membership[] graph Organization
|
|
136
|
+
filter groupId GroupId
|
|
137
|
+
match person:Person -link:MEMBER_OF-> group:Group
|
|
138
|
+
where group.groupId = $groupId
|
|
139
|
+
return
|
|
140
|
+
personId = person.personId
|
|
141
|
+
person = person.name
|
|
142
|
+
since = link.since
|
|
143
|
+
|
|
144
|
+
specification MembersAreListed
|
|
145
|
+
given clock "2026-10-05T07:00:00Z"
|
|
146
|
+
given PersonRegistered
|
|
147
|
+
name = "Ada Lovelace"
|
|
148
|
+
for "6fa459ea-ee8a-4ca4-894e-db77e160355e"
|
|
149
|
+
given GroupCreated
|
|
150
|
+
title = "Analysts"
|
|
151
|
+
for "0f8fad5b-d9cb-469f-a165-70867728950e"
|
|
152
|
+
given MemberAdded
|
|
153
|
+
groupId = "0f8fad5b-d9cb-469f-a165-70867728950e"
|
|
154
|
+
for "6fa459ea-ee8a-4ca4-894e-db77e160355e"
|
|
155
|
+
then query MembersOf
|
|
156
|
+
arguments
|
|
157
|
+
groupId = "0f8fad5b-d9cb-469f-a165-70867728950e"
|
|
158
|
+
result
|
|
159
|
+
personId = "6fa459ea-ee8a-4ca4-894e-db77e160355e"
|
|
160
|
+
person = "Ada Lovelace"
|
|
161
|
+
since = "2026-10-05T07:00:00Z"
|
|
162
|
+
```
|
|
163
|
+
|
|
82
164
|
## Rules
|
|
83
165
|
|
|
84
166
|
- Keys are the values of the node's `key` property, written as literals.
|
|
@@ -86,5 +168,6 @@ the steps their labels and keys. Check with `screenplay --warnaserror` and `scre
|
|
|
86
168
|
- A malformed step is `PLAY0875`; an undeclared graph, node label or edge type is
|
|
87
169
|
`PLAY0876`; a property the node or edge does not declare is `PLAY0868`.
|
|
88
170
|
- The reference runner keeps an in-memory graph and applies the five operations of the
|
|
89
|
-
projection.
|
|
90
|
-
|
|
171
|
+
projection.
|
|
172
|
+
- `$eventContext.occurred` is materialized. Without `given clock` the runner uses a fixed
|
|
173
|
+
instant, so state the clock whenever an asserted node or edge property is mapped from it.
|
package/package/corpus/skills/cratis-screenplay-specifications/references/host-body-execution.md
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
# Host execution of validation and reducer bodies
|
|
2
|
+
|
|
3
|
+
Rule, `validate` and reducer bodies are opaque code. The standalone `screenplay` tool supplies no
|
|
4
|
+
provider, so a specification that reaches one is Unsupported, never passing. A host program can opt
|
|
5
|
+
in to running them. Reaction bodies are covered in
|
|
6
|
+
[reaction bodies](../../cratis-screenplay-captures-and-reactions/references/reaction-forms.md#reaction-bodies-run-through-a-host-provider);
|
|
7
|
+
this page does not repeat them.
|
|
8
|
+
|
|
9
|
+
- **Seam.** The host supplies an `ISemanticBodyExecutionProviderFactory` and resolved bodies to
|
|
10
|
+
`SemanticEvaluator` or `SemanticSpecificationRunner`, or runs the MCP server with
|
|
11
|
+
`ScreenplayMcpServer.RunConfigured(new ScreenplayMcpRun(root, factory, cancellationToken), input, output)`.
|
|
12
|
+
One isolated provider is created per execution or selected specification run and disposed before
|
|
13
|
+
it returns.
|
|
14
|
+
- **Validation bodies.** `ValidateAsync` returns `Valid()`, `Invalid(params string[] messages)` or
|
|
15
|
+
`Unsupported(diagnostic)`. Every rejection message is kept, in order, one error-severity failure
|
|
16
|
+
per message. Command blocks and concept blocks both run, in the documented order, and every
|
|
17
|
+
reached block runs once; the first Unsupported block stops execution. Execution the host cannot
|
|
18
|
+
perform stays Unsupported, never a rejection.
|
|
19
|
+
- **Reducers.** `ReduceAsync` receives the prior state, the event and `Occurred` from the fact (the
|
|
20
|
+
clock is never read) and returns `Next(composite)` or `Delete()`. History folds in order, per
|
|
21
|
+
read model and event-source identity; any Unsupported reducer returns the original world.
|
|
22
|
+
Requires Screenplay 4.255.0 or later (`screenplay --version`).
|
|
23
|
+
- **Without a provider** nothing changes: opaque bodies are Unsupported and a specification that
|
|
24
|
+
needs one never passes.
|
|
25
|
+
- **Limits.** Screenplay ships no C# executor; the host enforces API admission, isolation and
|
|
26
|
+
resource limits, and capability `pure` is not a sandbox. Do not claim a target such as Stage
|
|
27
|
+
executes these bodies: what Stage renders is stated in `cratis-stage-rendering-and-sandbox`.
|
|
28
|
+
|
|
29
|
+
Source: released `commands.md` (named rule bodies) and `readmodels.md` (reducer transitions).
|
package/package/corpus/skills/cratis-screenplay-specifications/references/producerless-events.md
ADDED
|
@@ -0,0 +1,63 @@
|
|
|
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
|
+
# Events without a producing command
|
|
5
|
+
|
|
6
|
+
Requires Screenplay 6.15.0 or later (`screenplay --version`). Source: Screenplay
|
|
7
|
+
`Documentation/screenplay/specifications.md`, "Event sources without one producing command".
|
|
8
|
+
|
|
9
|
+
A `given <Event> for <literal>`, a `when append <Event> for <literal>`, a named event example and
|
|
10
|
+
`for case.<parameter>` need an event-source identity type. A single producing command, or an
|
|
11
|
+
explicit route, supplies it and wins first. When no single producer supplies one distinct
|
|
12
|
+
destination type, a root read-model projection that consumes the event can supply it instead. Never
|
|
13
|
+
add a producer command only to make a specification compile: the model would then claim a
|
|
14
|
+
behavior nobody asked for.
|
|
15
|
+
|
|
16
|
+
The projection supplies the identity type when:
|
|
17
|
+
|
|
18
|
+
- it consumes the event by the event's own event source (the default key or `$eventSourceId`),
|
|
19
|
+
never by an event payload property;
|
|
20
|
+
- every matching root projection has exactly one required scalar read-model key, and all those keys
|
|
21
|
+
have the same type;
|
|
22
|
+
- the `for` value is a literal that fits that type.
|
|
23
|
+
|
|
24
|
+
Protected (`pii` or `secret`), optional, collection, structured, missing or conflicting identity
|
|
25
|
+
types stay refused, and an optional `for case.<parameter>` cannot supply a required identity even
|
|
26
|
+
when one row holds non-null text. When no identity type can be determined, `PLAY0273` names the
|
|
27
|
+
event and asks for a projection keyed on the event source or a producing command with a required
|
|
28
|
+
scalar destination. The `for` syntax and the selected ESM version do not change.
|
|
29
|
+
|
|
30
|
+
A view that counts slots per day, specified with `then readmodel`; a `then query` over `DayById`
|
|
31
|
+
asserts the same row. Both facts fold into one instance, so initialize required counters in the
|
|
32
|
+
projection that establishes the row:
|
|
33
|
+
|
|
34
|
+
```screenplay
|
|
35
|
+
module Demo
|
|
36
|
+
feature Days
|
|
37
|
+
slice StateView Calendar
|
|
38
|
+
event DayOpened
|
|
39
|
+
dayId String
|
|
40
|
+
event SlotTaken
|
|
41
|
+
dayId String
|
|
42
|
+
readmodel DayView
|
|
43
|
+
dayId String
|
|
44
|
+
slots Int
|
|
45
|
+
query DayById => DayView optional
|
|
46
|
+
by dayId String
|
|
47
|
+
projection DayProjection => DayView
|
|
48
|
+
from DayOpened
|
|
49
|
+
dayId = dayId
|
|
50
|
+
slots = 0
|
|
51
|
+
from SlotTaken
|
|
52
|
+
increment slots
|
|
53
|
+
specification CountingSlots
|
|
54
|
+
given DayOpened
|
|
55
|
+
for "2026-11-10"
|
|
56
|
+
dayId = "2026-11-10"
|
|
57
|
+
given SlotTaken
|
|
58
|
+
for "2026-11-10"
|
|
59
|
+
dayId = "2026-11-10"
|
|
60
|
+
then readmodel DayView
|
|
61
|
+
dayId = "2026-11-10"
|
|
62
|
+
slots = 1
|
|
63
|
+
```
|
|
@@ -105,7 +105,8 @@ module Invoicing
|
|
|
105
105
|
command. A `when append` specification may sit in a `StateView` slice, even for an
|
|
106
106
|
event another slice declares, as long as the event's producer gives it one
|
|
107
107
|
unambiguous destination type (binding resolves it from commands in other slices);
|
|
108
|
-
otherwise `for` fails with `PLAY0273
|
|
108
|
+
otherwise `for` fails with `PLAY0273` unless a root projection supplies the identity
|
|
109
|
+
([producerless events](producerless-events.md)). Only `when <Command>` needs the command's
|
|
109
110
|
own slice.
|
|
110
111
|
- `LookingUpAnExistingInvoice` performs the query as its action. It binds to
|
|
111
112
|
exactly what `then query` with `arguments` and `result` would, so on a version
|
|
@@ -84,6 +84,14 @@
|
|
|
84
84
|
"value": "never delete the reaction", "file": "references/reactions-and-cascades.md"
|
|
85
85
|
},
|
|
86
86
|
{ "kind": "skill-contains", "value": "Examples typed from another document", "file": "references/examples-and-routes.md" },
|
|
87
|
-
{ "kind": "skill-contains", "value": "`PLAY0520`", "file": "references/examples-and-routes.md" }
|
|
87
|
+
{ "kind": "skill-contains", "value": "`PLAY0520`", "file": "references/examples-and-routes.md" },
|
|
88
|
+
{ "kind": "skill-contains", "value": "Requires Screenplay 6.15.0", "file": "references/producerless-events.md" },
|
|
89
|
+
{ "kind": "skill-contains", "value": "Never\nadd a producer command only to make a specification compile", "file": "references/producerless-events.md" },
|
|
90
|
+
{ "kind": "skill-contains", "value": "references/producerless-events.md" },
|
|
91
|
+
{ "kind": "skill-contains", "value": "`$eventContext.occurred` is materialized", "file": "references/graph-steps.md" },
|
|
92
|
+
{ "kind": "skill-contains", "value": "given clock \"2026-10-05T07:00:00Z\"", "file": "references/graph-steps.md" },
|
|
93
|
+
{ "kind": "skill-contains", "value": "references/host-body-execution.md" },
|
|
94
|
+
{ "kind": "skill-contains", "value": "ScreenplayMcpRun", "file": "references/host-body-execution.md" },
|
|
95
|
+
{ "kind": "skill-contains", "value": "Requires Screenplay 4.255.0 or later", "file": "references/host-body-execution.md" }
|
|
88
96
|
]
|
|
89
97
|
}
|
|
@@ -140,6 +140,8 @@ with ordered imports means future files need explicit imports.
|
|
|
140
140
|
report PLAY0268); one explicit `key` keeps its earlier version. Read
|
|
141
141
|
`references/production-routes-and-filters.md`, [language admission](references/language-admission.md)
|
|
142
142
|
and read-surface `references/named-keys.md`.
|
|
143
|
+
- **Minor versions:** read [unknown-preserving reader](references/unknown-preserving-reader.md) and
|
|
144
|
+
[read-model property order](references/read-model-property-order.md).
|
|
143
145
|
- **Enum numbers (v12):** read command-surface `references/enum-numbers.md` for
|
|
144
146
|
pins, stored numbers and Stage output; `references/diagnostics.md` owns PLAY0667–0671.
|
|
145
147
|
- **Concept strategies (v15):** read
|
|
@@ -21,6 +21,8 @@
|
|
|
21
21
|
- Audiences and availability (PLAY1130-PLAY1141)
|
|
22
22
|
- Sinks (PLAY0931-PLAY0939)
|
|
23
23
|
- Passive read models (PLAY0858-PLAY0860)
|
|
24
|
+
- Graph queries and `foreach` (PLAY0878-PLAY0886)
|
|
25
|
+
- Screen visuals and slice placements (PLAY0950-PLAY0955)
|
|
24
26
|
- Structural completeness and timeline checks
|
|
25
27
|
- Editor versus C# verdicts
|
|
26
28
|
- Consistency errors (V1: the model contradicts itself)
|
|
@@ -51,6 +53,7 @@ then STAGE (V5 admission). Tool differences: `../SKILL.md` ("Tool versions and t
|
|
|
51
53
|
| PLAY0381 | projection-level `key` routes nothing | put `key` on each `from` |
|
|
52
54
|
| PLAY0455 | quoted import glob matches no file | fix the glob |
|
|
53
55
|
| PLAY0196/0197/0198 | unknown query/screen; ambiguous bare name | declare or qualify `Slice.Name` |
|
|
56
|
+
| PLAY1142 | a projection mapping, AutoMap or reducer copies a `secret` concept into a read model (Screenplay 6.28.0+) | leave it out or map a non-secret derived value |
|
|
54
57
|
|
|
55
58
|
## Source reference and identifier checks
|
|
56
59
|
|
|
@@ -60,6 +63,7 @@ These are V1 source checks, not binding-only gaps:
|
|
|
60
63
|
| --- | --- | --- |
|
|
61
64
|
| PLAY0514 | W | Projection mapping, children or nested target absent from the declared read-model/element shape; unknown/imported shapes are not guessed |
|
|
62
65
|
| PLAY0166 | W | Unknown event, including `remove with`, `remove via join on` and capture `append` |
|
|
66
|
+
| PLAY1142 | W | Projection or reducer copies a `secret` (incl. `pii secret`) concept into a read-model property; no automatic repair (Screenplay 6.28.0+) |
|
|
63
67
|
| PLAY0515 | E | Personal/secret concept in a command identifier, typed `for` destination, event-source identity, stream-id type/part or route mapping source (including nested paths); keep a surrogate identity and protected data in payload |
|
|
64
68
|
|
|
65
69
|
Legacy compliance spellings (`@pii`/`@sensitive`) do not evade PLAY0515.
|
|
@@ -416,6 +420,41 @@ marks one that only informs command decisions. The fixes are in
|
|
|
416
420
|
|
|
417
421
|
Only the C# compiler reports PLAY0859 and PLAY0860; the TypeScript compiler reports PLAY0858 only.
|
|
418
422
|
|
|
423
|
+
## Graph queries and `foreach` (PLAY0878-PLAY0886)
|
|
424
|
+
|
|
425
|
+
Requires Screenplay 5.8.0 or later (`screenplay --version`); `foreach` (PLAY0886) needs 5.10.0. A
|
|
426
|
+
`query` ending in `graph <Graph>` follows a path with `match` and `return`. The complete model and
|
|
427
|
+
fixes are in
|
|
428
|
+
`../../cratis-screenplay-projections/references/graphs.md`; the graph declaration and projection
|
|
429
|
+
codes PLAY0862-PLAY0877 are listed there too.
|
|
430
|
+
|
|
431
|
+
| Code | Severity | Meaning / fix |
|
|
432
|
+
| --- | --- | --- |
|
|
433
|
+
| PLAY0878 | E | A graph query is malformed: header, `match` pattern, `where` condition or `return` block. |
|
|
434
|
+
| PLAY0879 | E | It names an undeclared graph, node label, edge type, alias or property. |
|
|
435
|
+
| PLAY0880 | E | A hop uses an edge that does not connect those two labels in that direction. |
|
|
436
|
+
| PLAY0881 | E | It does not return exactly the properties its read model requires, or returns the wrong type. |
|
|
437
|
+
| PLAY0882 | E | A condition uses an undeclared argument or compares values of different types. |
|
|
438
|
+
| PLAY0883 | E | An `optional match` value goes to a read-model property that is not optional. Make it optional. |
|
|
439
|
+
| PLAY0884 | E | The same alias is used twice. |
|
|
440
|
+
| PLAY0885 | E | It uses variable-length paths, `or`, ranges, functions or aggregates; none exist. |
|
|
441
|
+
| PLAY0886 | E | A graph handler's `foreach` names a collection inside another, or something that is not a list of a composite type of the event. |
|
|
442
|
+
|
|
443
|
+
## Screen visuals and slice placements (PLAY0950-PLAY0955)
|
|
444
|
+
|
|
445
|
+
Requires Screenplay 6.7.0 or later (`screenplay --version`). Both are presentation-only; neither
|
|
446
|
+
changes the executable model. Details: `../../cratis-screenplay-ui-composition/references/screen-visuals.md`
|
|
447
|
+
and `../../cratis-screenplay-slice-design/references/slicing.md`.
|
|
448
|
+
|
|
449
|
+
| Code | Severity | Meaning / fix |
|
|
450
|
+
| --- | --- | --- |
|
|
451
|
+
| PLAY0950 | E | A screen `sketch`, `mockup` or `image` line names no file. |
|
|
452
|
+
| PLAY0951 | W | An `image` is not PNG, JPG, GIF, SVG or WebP, or a `mockup` is not an HTML page. |
|
|
453
|
+
| PLAY0952 | W | The file does not exist beside the model, or its path leaves the model root. |
|
|
454
|
+
| PLAY0953 | E | A slice `shows` line is not `shows event <Name>` or `shows readmodel <Name>`. |
|
|
455
|
+
| PLAY0954 | W | A `shows` line names no declared event or read model. |
|
|
456
|
+
| PLAY0955 | W | A slice shows an element it declares itself, or shows the same element twice. |
|
|
457
|
+
|
|
419
458
|
## Structural completeness and timeline checks
|
|
420
459
|
|
|
421
460
|
Opt in with `--check <names>` or MCP diagnostics `checks`, then treat warnings
|
|
@@ -344,7 +344,9 @@ query with PLAY0268 and leave the whole model unbound. Everything else binds as
|
|
|
344
344
|
execute: reducer transitions, rule predicates, command and concept code validation, policy
|
|
345
345
|
predicates and reaction effects. Reaction effects bind only when the trigger has no
|
|
346
346
|
`reads`; a trigger with `reads` plus a `file` or inline effect fails binding. Reaction
|
|
347
|
-
bodies still leave their owner non-executable
|
|
347
|
+
bodies still leave their owner non-executable, unless the host supplies a body execution provider for a
|
|
348
|
+
standalone single-event reaction body (Requires Screenplay 4.258.0; see
|
|
349
|
+
[reaction bodies](../../cratis-screenplay-captures-and-reactions/references/reaction-forms.md#reaction-bodies-run-through-a-host-provider)).
|
|
348
350
|
|
|
349
351
|
- A `file` constraint **never binds**: PLAY0268 "file implementation is not admitted by
|
|
350
352
|
the executable model". Chronicle file constraints
|
|
@@ -371,13 +373,17 @@ bodies still leave their owner non-executable.
|
|
|
371
373
|
- Stage admits only pure reducer bodies (Roslyn allowlist, STAGE-ESM-019 and 022);
|
|
372
374
|
code validation is refused (STAGE-ESM-005). Opaque pure policies render.
|
|
373
375
|
- The reference runner returns Unsupported for the opaque bodies that do bind (rule and
|
|
374
|
-
policy predicates, code validation, reducer transitions)
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
376
|
+
policy predicates, code validation, reducer transitions) when no host body execution provider
|
|
377
|
+
is supplied (the standalone tool supplies none); a specification that needs one never passes.
|
|
378
|
+
A host can opt in: [host body execution](../../cratis-screenplay-specifications/references/host-body-execution.md). Attached handlers and file constraints (and reaction effects on a trigger with
|
|
379
|
+
`reads`) are different: under strict binding (`ISemanticModelCompiler.Compile`, which the standalone
|
|
380
|
+
tool uses) they leave the whole model unbound, so no specification runs at all.
|
|
381
|
+
- **Admissible compilation is narrower than that.** `CompileAdmissible` (the opt-in host API
|
|
382
|
+
`IAdmissibleSemanticModelCompiler`; Requires Screenplay 4.254.0 or later) binds the supported
|
|
383
|
+
subset of a source-valid application and lists what it removed in `Exclusions`: refused
|
|
384
|
+
specifications, slices, imports and policies, each with a typed `Cause` (`Root` or `Dependent`)
|
|
385
|
+
and `DependsOn`. Security dependencies fail closed: a refused policy or protected read removes
|
|
386
|
+
everything it protects. It does not establish runtime identity safety. A top-level `trigger` that fails to bind is excluded
|
|
381
387
|
(kind `Trigger`, cause `Root`, carrying the original binder diagnostic; it has no code of its own).
|
|
382
388
|
The reactions and specifications it sets off stop binding and are excluded on later passes as
|
|
383
389
|
`Dependent` exclusions whose `DependsOn` names the trigger. Independent slices stay in the
|
|
@@ -37,6 +37,9 @@ exact language/semantic pairs; binding, reference execution and rendering are se
|
|
|
37
37
|
|
|
38
38
|
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.
|
|
39
39
|
|
|
40
|
+
Read-model property order is opt-in ESM 37.1 metadata: see
|
|
41
|
+
[read-model property order](read-model-property-order.md).
|
|
42
|
+
|
|
40
43
|
## Compiler and target minimums
|
|
41
44
|
|
|
42
45
|
Requires Screenplay 4.181.0 or later (`screenplay --version`) for atomic batches; older compilers cannot admit the preamble.
|
|
@@ -131,3 +134,5 @@ Requires Stage 4.145.0 for reach-scoped reducer/validation-body refusals
|
|
|
131
134
|
handlers retain STAGE-IMPL-002; renderer implementation admission is unchanged.
|
|
132
135
|
Read [sandbox boundaries](../../cratis-stage-rendering-and-sandbox/references/sandbox-and-specrunner.md)
|
|
133
136
|
when a semantic run reaches a body or uses an authored reaction clock.
|
|
137
|
+
Read [unknown-preserving reader](unknown-preserving-reader.md) when a consumer
|
|
138
|
+
must retain unknown additions of a minor it does not register, without executing them.
|
package/package/corpus/skills/cratis-screenplay-toolchain/references/read-model-property-order.md
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
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
|
+
# Read-model property order (ESM 37.1)
|
|
5
|
+
|
|
6
|
+
Requires Screenplay 5.6.0 or later (`screenplay --version`). Read-model declaration order is optional,
|
|
7
|
+
ignorable metadata and is **not** preserved by default: the CLI, MCP, TypeScript compiler and editors
|
|
8
|
+
never request it, and it adds no `.play` syntax or diagnostic. A C# host opts in with
|
|
9
|
+
`SemanticModelBinder.Bind(name, document, documents, new SemanticBindingOptions(PreserveReadModelPropertyOrder: true))`,
|
|
10
|
+
which returns a `SemanticBindingOptionsResult` (`Compilation`, `Refusal`, `Success`).
|
|
11
|
+
|
|
12
|
+
- Only when the option is used and removing the metadata leaves a valid 37.0 model that reads the
|
|
13
|
+
application calendar or a clock does the model select language/semantic **37.1**. `schemaVersion`
|
|
14
|
+
stays 37 and each read model gains an optional `propertyOrder` after `properties`: a permutation of
|
|
15
|
+
every property identity, key included. `properties` stays id-sorted.
|
|
16
|
+
- A model that emits no metadata (no read models, or every read model already in canonical property
|
|
17
|
+
order) keeps its version and binds successfully. Any other model that is not a 37.0 candidate gets
|
|
18
|
+
`PropertyOrderMetadataRefusal` with no executable value. Default `Bind` and default options keep existing versions, bytes and
|
|
19
|
+
revisions.
|
|
20
|
+
- The golden is `full-esm-v37.1.json`, reached with `EsmGoldenVectors.GetMinor(SemanticVersion.V37_1)`;
|
|
21
|
+
`Get(int)` and `Versions` describe only `.0` goldens.
|
|
22
|
+
- A 37.0 consumer that reads through the [unknown-preserving reader](unknown-preserving-reader.md)
|
|
23
|
+
keeps the member as opaque bytes with the same revision.
|
|
24
|
+
|
|
25
|
+
Do not tell modelers that declaration order controls a generated constructor's parameter order: that
|
|
26
|
+
rendering is a Stage change; confirm it shipped before claiming otherwise.
|
package/package/corpus/skills/cratis-screenplay-toolchain/references/screenplay-contract.json
CHANGED
|
@@ -79426,6 +79426,28 @@
|
|
|
79426
79426
|
"title": "A parenthesis in an available line is never closed.",
|
|
79427
79427
|
"reserved": false,
|
|
79428
79428
|
"retired": false
|
|
79429
|
+
},
|
|
79430
|
+
{
|
|
79431
|
+
"code": "PLAY1142",
|
|
79432
|
+
"name": "SecretConceptProjected",
|
|
79433
|
+
"severity": "warning",
|
|
79434
|
+
"severities": [
|
|
79435
|
+
"warning"
|
|
79436
|
+
],
|
|
79437
|
+
"title": "A projection mapping, an auto-mapped property or a reducer copies a value whose concept is marked secret into a read-model property, so the value becomes part of the read model and its query results.",
|
|
79438
|
+
"reserved": false,
|
|
79439
|
+
"retired": false
|
|
79440
|
+
},
|
|
79441
|
+
{
|
|
79442
|
+
"code": "PLAY1143",
|
|
79443
|
+
"name": "ScreenWithoutPersona",
|
|
79444
|
+
"severity": "warning",
|
|
79445
|
+
"severities": [
|
|
79446
|
+
"warning"
|
|
79447
|
+
],
|
|
79448
|
+
"title": "An opt-in check found a screen whose bound commands and queries are definitely denied to every declared persona.",
|
|
79449
|
+
"reserved": false,
|
|
79450
|
+
"retired": false
|
|
79429
79451
|
}
|
|
79430
79452
|
],
|
|
79431
79453
|
"mcpTools": [
|
package/package/corpus/skills/cratis-screenplay-toolchain/references/screenplay-contract.version
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
6.
|
|
1
|
+
6.28.0
|
package/package/corpus/skills/cratis-screenplay-toolchain/references/unknown-preserving-reader.md
ADDED
|
@@ -0,0 +1,57 @@
|
|
|
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
|
+
# Unknown-preserving semantic model reader
|
|
5
|
+
|
|
6
|
+
Requires Screenplay 4.256.0 or later (`screenplay --version`). Source: Screenplay
|
|
7
|
+
`Documentation/screenplay/interoperability.md` ("Minor versions and unknown-preserving
|
|
8
|
+
admission").
|
|
9
|
+
|
|
10
|
+
A consumer that must retain unknown additions without executing them reads a model with
|
|
11
|
+
`UnknownPreservingSemanticModelReader.Read(bytes, EsmAdmissionRange)`. It is an opt-in reader beside
|
|
12
|
+
the strict reader, which is unchanged and still refuses every unknown member and unregistered
|
|
13
|
+
version. Reading carries no producer trust and no execution, rendering or reverse-recovery
|
|
14
|
+
authority; those admissions stay separate decisions.
|
|
15
|
+
|
|
16
|
+
## Admission
|
|
17
|
+
|
|
18
|
+
- The caller supplies one major with inclusive minimum and maximum minor. Both wire versions must
|
|
19
|
+
lie in that range, and the package must ship a frozen baseline descriptor for that major. The
|
|
20
|
+
reader is not limited to the latest major.
|
|
21
|
+
- Unknowns are admitted only above the major's highest registered minor. An exact registered pair
|
|
22
|
+
admits none.
|
|
23
|
+
- Classify admission from the document's own wire pair, not from the pair of the validated known
|
|
24
|
+
projection, which uses the highest registered pair of the major.
|
|
25
|
+
|
|
26
|
+
## What the reader keeps
|
|
27
|
+
|
|
28
|
+
- The original bytes, wire versions and full revision; a validated known projection; and
|
|
29
|
+
owner-addressable diagnostics for each unknown.
|
|
30
|
+
- Known or unknown is decided from the document's own major against the frozen baseline field set,
|
|
31
|
+
which holds what the published writer emits (for example `predecessor` and `priorRevisions` only
|
|
32
|
+
from major 4). Members after the baseline sit in an ordinal extension region.
|
|
33
|
+
- An unknown is security flagged only through a known structural position: authorization, policies,
|
|
34
|
+
callers and claims; identity mapping; compliance, personal and secret data; event-stream routing.
|
|
35
|
+
Every other unknown is Unclassified, not automatically unsafe. Never infer meaning inside an opaque
|
|
36
|
+
unknown subtree; consumers decide degradation and whether to disable an owner.
|
|
37
|
+
- Preserved unknowns are re-emitted byte-identically and never executed.
|
|
38
|
+
|
|
39
|
+
## Refusal boundary
|
|
40
|
+
|
|
41
|
+
A breach refuses the whole document with `InvalidSemanticContract`; nothing is truncated:
|
|
42
|
+
|
|
43
|
+
- a malformed or missing wire version, a version outside the range, or a language and semantic pair
|
|
44
|
+
that does not match;
|
|
45
|
+
- no frozen baseline descriptor for the major;
|
|
46
|
+
- duplicate members, non-NFC text or bytes that are not canonical, and a revision that does not match
|
|
47
|
+
the canonical bytes;
|
|
48
|
+
- container depth over 64, input over 8,388,608 bytes, more than 64 unknown boundaries per owner or
|
|
49
|
+
1,024 per document, more than 1,048,576 unknown value bytes, or an unknown name outside
|
|
50
|
+
`[a-z][A-Za-z0-9]*` of at most 64 characters (nested names included);
|
|
51
|
+
- an unknown discriminator value, or a known dangling reference.
|
|
52
|
+
|
|
53
|
+
Inside an opaque extension, object names are ordinal at every depth, arrays keep received order,
|
|
54
|
+
and absent stays distinct from null.
|
|
55
|
+
|
|
56
|
+
Renderer admission of an unknown-bearing model is separate work: this reader proves the bytes
|
|
57
|
+
were preserved, not that a Stage renderer accepts them.
|
|
@@ -89,6 +89,21 @@
|
|
|
89
89
|
{ "kind": "skill-contains", "value": "| PLAY0935 | E | A `passive` read model names a sink", "file": "references/diagnostics.md" },
|
|
90
90
|
{ "kind": "skill-contains", "value": "| PLAY0859 | E | A `query` returns a passive read model", "file": "references/diagnostics.md" },
|
|
91
91
|
{ "kind": "skill-contains", "value": "| PLAY0939 | W | A read-model property `sink`", "file": "references/diagnostics.md" },
|
|
92
|
-
{ "kind": "skill-contains", "value": "`ApplicationSyntax.sinks` (`SinkSyntax` with `name`, `stores`)", "file": "references/executable-subset.md" }
|
|
92
|
+
{ "kind": "skill-contains", "value": "`ApplicationSyntax.sinks` (`SinkSyntax` with `name`, `stores`)", "file": "references/executable-subset.md" },
|
|
93
|
+
{ "kind": "skill-contains", "value": "reaction-forms.md#reaction-bodies-run-through-a-host-provider", "file": "references/executable-subset.md" },
|
|
94
|
+
{ "kind": "skill-contains", "value": "UnknownPreservingSemanticModelReader.Read(bytes, EsmAdmissionRange)", "file": "references/unknown-preserving-reader.md" },
|
|
95
|
+
{ "kind": "skill-contains", "value": "Requires Screenplay 4.256.0", "file": "references/unknown-preserving-reader.md" },
|
|
96
|
+
{ "kind": "skill-contains", "value": "InvalidSemanticContract", "file": "references/unknown-preserving-reader.md" },
|
|
97
|
+
{ "kind": "skill-contains", "value": "unknown-preserving-reader.md", "file": "references/language-admission.md" },
|
|
98
|
+
{ "kind": "skill-contains", "value": "# Read-model property order (ESM 37.1)", "file": "references/read-model-property-order.md" },
|
|
99
|
+
{ "kind": "skill-contains", "value": "PropertyOrderMetadataRefusal", "file": "references/read-model-property-order.md" },
|
|
100
|
+
{ "kind": "skill-contains", "value": "is **not** preserved by default", "file": "references/read-model-property-order.md" },
|
|
101
|
+
{ "kind": "skill-contains", "value": "references/read-model-property-order.md" },
|
|
102
|
+
{ "kind": "skill-contains", "value": "references/unknown-preserving-reader.md" },
|
|
103
|
+
{ "kind": "skill-contains", "value": "| PLAY0885 | E |", "file": "references/diagnostics.md" },
|
|
104
|
+
{ "kind": "skill-contains", "value": "| PLAY0886 | E |", "file": "references/diagnostics.md" },
|
|
105
|
+
{ "kind": "skill-contains", "value": "| PLAY0955 | W |", "file": "references/diagnostics.md" },
|
|
106
|
+
{ "kind": "skill-contains", "value": "does not establish runtime identity safety", "file": "references/executable-subset.md" },
|
|
107
|
+
{ "kind": "skill-contains", "value": "| PLAY1142 | W |", "file": "references/diagnostics.md" }
|
|
93
108
|
]
|
|
94
109
|
}
|
|
@@ -276,40 +276,9 @@ A `ui profile` selects the application shell with `root template` (an own layout
|
|
|
276
276
|
## A deliverable app declares its identity, titles and labels
|
|
277
277
|
|
|
278
278
|
Symptom: a rendered app titled "Cratis Stage" whose buttons and dialogs show raw command names. The renderer
|
|
279
|
-
defaults to those when the model is silent, so declare,
|
|
280
|
-
|
|
281
|
-
- the
|
|
282
|
-
application title the shell shows; `logo initials` is only valid in a profile's `identity`);
|
|
283
|
-
- a `ui profile` with `root template`, shell `option` lines such as `option showFooter false`, and an `identity`
|
|
284
|
-
block (`name`, `logo initials`);
|
|
285
|
-
- a `title "<text>"` in each screen and a navigation item `<id> title "<text>" target <Module.Feature>` per screen;
|
|
286
|
-
- `label "<text>"` on **every** `action`.
|
|
287
|
-
|
|
288
|
-
```screenplay excerpt
|
|
289
|
-
layout AppShell
|
|
290
|
-
category application
|
|
291
|
-
content page routed primary
|
|
292
|
-
|
|
293
|
-
outlet sidebar of navigation
|
|
294
|
-
logo image "/assets/shop.svg" title "Shopfront"
|
|
295
|
-
default organizations title "Organizations" target Crm.Organizations
|
|
296
|
-
|
|
297
|
-
ui profile Desktop
|
|
298
|
-
target platform web
|
|
299
|
-
root template AppShell
|
|
300
|
-
option showFooter false
|
|
301
|
-
identity
|
|
302
|
-
name "Shopfront"
|
|
303
|
-
logo initials "SF"
|
|
304
|
-
```
|
|
305
|
-
|
|
306
|
-
```screenplay excerpt
|
|
307
|
-
screen Organizations
|
|
308
|
-
data OrganizationOverview[] via query AllOrganizations
|
|
309
|
-
title "Organizations"
|
|
310
|
-
action RegisterOrganization
|
|
311
|
-
label "New organization"
|
|
312
|
-
```
|
|
279
|
+
defaults to those when the model is silent, so declare the layout logo and title, a `ui profile` with `identity`,
|
|
280
|
+
a `title` per screen and navigation item, and a `label` on **every** `action`. Read
|
|
281
|
+
[references/deliverable-identity.md](references/deliverable-identity.md) for the full list and an example.
|
|
313
282
|
|
|
314
283
|
## Localized strings
|
|
315
284
|
|
|
@@ -319,6 +288,8 @@ Localized text lives in companion `.strings` files and is referenced unquoted as
|
|
|
319
288
|
|
|
320
289
|
`file` is a backend attachment, a screen realization file or declaration provenance; use repository-relative paths (`PLAY0264`) and never let it replace the declaration. **Loaded is not run.** Read [references/file-references.md](references/file-references.md) when attaching or checking a `file`, or diagnosing `PLAY0430`–`PLAY0434`.
|
|
321
290
|
|
|
291
|
+
A screen can also keep `sketch`, `mockup` and `image` lines: authoring metadata, never part of the executable model. Read [references/screen-visuals.md](references/screen-visuals.md) for the lines and `PLAY0950`–`PLAY0952`.
|
|
292
|
+
|
|
322
293
|
## Verify
|
|
323
294
|
|
|
324
295
|
- [ ] `screenplay <model> --warnaserror` (standalone) reports zero errors and zero
|