@cratis/pi 7.167.2 → 7.168.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-code-review/SKILL.md +7 -1
- package/package/corpus/skills/cratis-documentation-writing/SKILL.md +5 -0
- package/package/corpus/skills/cratis-screenplay-model-authoring/SKILL.md +1 -0
- package/package/corpus/skills/cratis-screenplay-model-authoring/references/free-screens-proposals.md +36 -0
- package/package/corpus/skills/cratis-screenplay-model-authoring/references/storylines.md +1 -0
- package/package/corpus/skills/cratis-screenplay-model-authoring/verification.json +6 -1
- package/package/corpus/skills/cratis-screenplay-read-surface/SKILL.md +2 -1
- package/package/corpus/skills/cratis-screenplay-slice-design/SKILL.md +2 -1
- package/package/corpus/skills/cratis-screenplay-slice-design/references/screens-before-slices.md +37 -0
- package/package/corpus/skills/cratis-screenplay-slice-design/verification.json +5 -1
- package/package/corpus/skills/cratis-screenplay-toolchain/references/diagnostics.md +24 -0
- package/package/corpus/skills/cratis-screenplay-toolchain/references/screenplay-contract-exceptions.json +476 -0
- package/package/corpus/skills/cratis-screenplay-ui-composition/SKILL.md +17 -19
- package/package/corpus/skills/cratis-screenplay-ui-composition/references/design-system-and-themes.md +15 -0
- package/package/corpus/skills/cratis-screenplay-ui-composition/references/free-screens.md +237 -0
- package/package/corpus/skills/cratis-screenplay-ui-composition/references/scene-design.md +138 -0
- package/package/corpus/skills/cratis-screenplay-ui-composition/verification.json +17 -1
- package/package/corpus/skills/cratis-technical-examples/SKILL.md +8 -0
- package/package/corpus/skills/cratis-technical-examples/verification.json +2 -0
- package/package/corpus/skills/cratis-writing-voice-and-cadence/SKILL.md +2 -0
- package/package.json +1 -1
|
@@ -26,5 +26,481 @@
|
|
|
26
26
|
"kind": "diagnostic",
|
|
27
27
|
"value": "PLAY0686",
|
|
28
28
|
"reason": "Explicit retirement notice, not an active diagnostic or repair recommendation. The published contract marks PLAY0686 retired. Remove when this notice is removed or replaced."
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
"file": ".cratis/ai/skills/cratis-screenplay-model-authoring/references/free-screens-proposals.md",
|
|
32
|
+
"text": "2. **Propose the whole change together:** the shape, the screen with its needs, the adoption with its provisions. A reviewer cannot judge a need without the provision that supplies it, and a half-proposal reports `PLAY1155` for the missing part.",
|
|
33
|
+
"kind": "diagnostic",
|
|
34
|
+
"value": "PLAY1155",
|
|
35
|
+
"reason": "Free screens are not in the pinned Screenplay contract yet; the diagnostic is documented ahead of the pin bump that carries it. Remove with the bump."
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
"file": ".cratis/ai/skills/cratis-screenplay-model-authoring/references/free-screens-proposals.md",
|
|
39
|
+
"text": "- A proposal that adopts a screen without providing every need is **accepted with warning** `PLAY1155`, as it is on disk. Report it as unfinished, not as done; only the executable-model export refuses it, with a reason naming the screen and the shape.",
|
|
40
|
+
"kind": "diagnostic",
|
|
41
|
+
"value": "PLAY1155",
|
|
42
|
+
"reason": "Free screens are not in the pinned Screenplay contract yet; the diagnostic is documented ahead of the pin bump that carries it. Remove with the bump."
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
"file": ".cratis/ai/skills/cratis-screenplay-model-authoring/references/free-screens-proposals.md",
|
|
46
|
+
"text": "- A proposal that provides a need wrongly (an unknown need, a query of the wrong cardinality, a field the read model lacks, a type that differs from the explicit shape, a `by` the query does not declare) reports `PLAY1156` to `PLAY1163` and **cannot be applied** under `Authoring` validation. Repair the slice (read model, query, mapping), not the shape.",
|
|
47
|
+
"kind": "diagnostic",
|
|
48
|
+
"value": "PLAY1156",
|
|
49
|
+
"reason": "Free screens are not in the pinned Screenplay contract yet; the diagnostic is documented ahead of the pin bump that carries it. Remove with the bump."
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
"file": ".cratis/ai/skills/cratis-screenplay-model-authoring/references/free-screens-proposals.md",
|
|
53
|
+
"text": "- A proposal that provides a need wrongly (an unknown need, a query of the wrong cardinality, a field the read model lacks, a type that differs from the explicit shape, a `by` the query does not declare) reports `PLAY1156` to `PLAY1163` and **cannot be applied** under `Authoring` validation. Repair the slice (read model, query, mapping), not the shape.",
|
|
54
|
+
"kind": "diagnostic",
|
|
55
|
+
"value": "PLAY1157",
|
|
56
|
+
"reason": "Free screens are not in the pinned Screenplay contract yet; the diagnostic is documented ahead of the pin bump that carries it. Remove with the bump."
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
"file": ".cratis/ai/skills/cratis-screenplay-model-authoring/references/free-screens-proposals.md",
|
|
60
|
+
"text": "- A proposal that provides a need wrongly (an unknown need, a query of the wrong cardinality, a field the read model lacks, a type that differs from the explicit shape, a `by` the query does not declare) reports `PLAY1156` to `PLAY1163` and **cannot be applied** under `Authoring` validation. Repair the slice (read model, query, mapping), not the shape.",
|
|
61
|
+
"kind": "diagnostic",
|
|
62
|
+
"value": "PLAY1158",
|
|
63
|
+
"reason": "Free screens are not in the pinned Screenplay contract yet; the diagnostic is documented ahead of the pin bump that carries it. Remove with the bump."
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
"file": ".cratis/ai/skills/cratis-screenplay-model-authoring/references/free-screens-proposals.md",
|
|
67
|
+
"text": "- A proposal that provides a need wrongly (an unknown need, a query of the wrong cardinality, a field the read model lacks, a type that differs from the explicit shape, a `by` the query does not declare) reports `PLAY1156` to `PLAY1163` and **cannot be applied** under `Authoring` validation. Repair the slice (read model, query, mapping), not the shape.",
|
|
68
|
+
"kind": "diagnostic",
|
|
69
|
+
"value": "PLAY1159",
|
|
70
|
+
"reason": "Free screens are not in the pinned Screenplay contract yet; the diagnostic is documented ahead of the pin bump that carries it. Remove with the bump."
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
"file": ".cratis/ai/skills/cratis-screenplay-model-authoring/references/free-screens-proposals.md",
|
|
74
|
+
"text": "- A proposal that provides a need wrongly (an unknown need, a query of the wrong cardinality, a field the read model lacks, a type that differs from the explicit shape, a `by` the query does not declare) reports `PLAY1156` to `PLAY1163` and **cannot be applied** under `Authoring` validation. Repair the slice (read model, query, mapping), not the shape.",
|
|
75
|
+
"kind": "diagnostic",
|
|
76
|
+
"value": "PLAY1160",
|
|
77
|
+
"reason": "Free screens are not in the pinned Screenplay contract yet; the diagnostic is documented ahead of the pin bump that carries it. Remove with the bump."
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
"file": ".cratis/ai/skills/cratis-screenplay-model-authoring/references/free-screens-proposals.md",
|
|
81
|
+
"text": "- A proposal that provides a need wrongly (an unknown need, a query of the wrong cardinality, a field the read model lacks, a type that differs from the explicit shape, a `by` the query does not declare) reports `PLAY1156` to `PLAY1163` and **cannot be applied** under `Authoring` validation. Repair the slice (read model, query, mapping), not the shape.",
|
|
82
|
+
"kind": "diagnostic",
|
|
83
|
+
"value": "PLAY1161",
|
|
84
|
+
"reason": "Free screens are not in the pinned Screenplay contract yet; the diagnostic is documented ahead of the pin bump that carries it. Remove with the bump."
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
"file": ".cratis/ai/skills/cratis-screenplay-model-authoring/references/free-screens-proposals.md",
|
|
88
|
+
"text": "- A proposal that provides a need wrongly (an unknown need, a query of the wrong cardinality, a field the read model lacks, a type that differs from the explicit shape, a `by` the query does not declare) reports `PLAY1156` to `PLAY1163` and **cannot be applied** under `Authoring` validation. Repair the slice (read model, query, mapping), not the shape.",
|
|
89
|
+
"kind": "diagnostic",
|
|
90
|
+
"value": "PLAY1162",
|
|
91
|
+
"reason": "Free screens are not in the pinned Screenplay contract yet; the diagnostic is documented ahead of the pin bump that carries it. Remove with the bump."
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
"file": ".cratis/ai/skills/cratis-screenplay-model-authoring/references/free-screens-proposals.md",
|
|
95
|
+
"text": "- A proposal that provides a need wrongly (an unknown need, a query of the wrong cardinality, a field the read model lacks, a type that differs from the explicit shape, a `by` the query does not declare) reports `PLAY1156` to `PLAY1163` and **cannot be applied** under `Authoring` validation. Repair the slice (read model, query, mapping), not the shape.",
|
|
96
|
+
"kind": "diagnostic",
|
|
97
|
+
"value": "PLAY1163",
|
|
98
|
+
"reason": "Free screens are not in the pinned Screenplay contract yet; the diagnostic is documented ahead of the pin bump that carries it. Remove with the bump."
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
"file": ".cratis/ai/skills/cratis-screenplay-model-authoring/references/free-screens-proposals.md",
|
|
102
|
+
"text": "- A screen no slice adopts reports information `PLAY1164`: design-only, never an error and never in the executable model.",
|
|
103
|
+
"kind": "diagnostic",
|
|
104
|
+
"value": "PLAY1164",
|
|
105
|
+
"reason": "Free screens are not in the pinned Screenplay contract yet; the diagnostic is documented ahead of the pin bump that carries it. Remove with the bump."
|
|
106
|
+
},
|
|
107
|
+
{
|
|
108
|
+
"file": ".cratis/ai/skills/cratis-screenplay-slice-design/references/screens-before-slices.md",
|
|
109
|
+
"text": "Every field a screen reads still needs an origin ([field lineage](field-lineage.md)): a shape field resolves to a read model property, which resolves to the event property or state that fills it. The compiler checks the first hop (`PLAY1160`, `PLAY1161`); the rest is the lineage pass.",
|
|
110
|
+
"kind": "diagnostic",
|
|
111
|
+
"value": "PLAY1160",
|
|
112
|
+
"reason": "Free screens are not in the pinned Screenplay contract yet; the diagnostic is documented ahead of the pin bump that carries it. Remove with the bump."
|
|
113
|
+
},
|
|
114
|
+
{
|
|
115
|
+
"file": ".cratis/ai/skills/cratis-screenplay-slice-design/references/screens-before-slices.md",
|
|
116
|
+
"text": "Every field a screen reads still needs an origin ([field lineage](field-lineage.md)): a shape field resolves to a read model property, which resolves to the event property or state that fills it. The compiler checks the first hop (`PLAY1160`, `PLAY1161`); the rest is the lineage pass.",
|
|
117
|
+
"kind": "diagnostic",
|
|
118
|
+
"value": "PLAY1161",
|
|
119
|
+
"reason": "Free screens are not in the pinned Screenplay contract yet; the diagnostic is documented ahead of the pin bump that carries it. Remove with the bump."
|
|
120
|
+
},
|
|
121
|
+
{
|
|
122
|
+
"file": ".cratis/ai/skills/cratis-screenplay-slice-design/references/screens-before-slices.md",
|
|
123
|
+
"text": "PLAY1160: Read model 'InvoiceRow' of query 'ListInvoices' has no 'dueDate' to provide 'dueDate' of 'Invoice'",
|
|
124
|
+
"kind": "diagnostic",
|
|
125
|
+
"value": "PLAY1160",
|
|
126
|
+
"reason": "Free screens are not in the pinned Screenplay contract yet; the diagnostic is documented ahead of the pin bump that carries it. Remove with the bump."
|
|
127
|
+
},
|
|
128
|
+
{
|
|
129
|
+
"file": ".cratis/ai/skills/cratis-screenplay-toolchain/references/diagnostics.md",
|
|
130
|
+
"text": "| `PLAY1149` | E | A `shape` is malformed, sits anywhere but the top level of a document, or has a field with a key, identifier, subject or generated modifier. Write `shape <Name>` with `<name> <Type>` fields at the top level. |",
|
|
131
|
+
"kind": "diagnostic",
|
|
132
|
+
"value": "PLAY1149",
|
|
133
|
+
"reason": "Free screens are not in the pinned Screenplay contract yet; the diagnostic is documented ahead of the pin bump that carries it. Remove with the bump."
|
|
134
|
+
},
|
|
135
|
+
{
|
|
136
|
+
"file": ".cratis/ai/skills/cratis-screenplay-toolchain/references/diagnostics.md",
|
|
137
|
+
"text": "| `PLAY1150` | E | A `uses screen`, a provision or a mapping is malformed: `uses screen <Name>` directly in a slice, `data <Need> via query <Query> [by <param>]`, `<field> from <path>`. |",
|
|
138
|
+
"kind": "diagnostic",
|
|
139
|
+
"value": "PLAY1150",
|
|
140
|
+
"reason": "Free screens are not in the pinned Screenplay contract yet; the diagnostic is documented ahead of the pin bump that carries it. Remove with the bump."
|
|
141
|
+
},
|
|
142
|
+
{
|
|
143
|
+
"file": ".cratis/ai/skills/cratis-screenplay-toolchain/references/diagnostics.md",
|
|
144
|
+
"text": "| `PLAY1151` | E | A `shape` is declared twice; declare it once at the top level. |",
|
|
145
|
+
"kind": "diagnostic",
|
|
146
|
+
"value": "PLAY1151",
|
|
147
|
+
"reason": "Free screens are not in the pinned Screenplay contract yet; the diagnostic is documented ahead of the pin bump that carries it. Remove with the bump."
|
|
148
|
+
},
|
|
149
|
+
{
|
|
150
|
+
"file": ".cratis/ai/skills/cratis-screenplay-toolchain/references/diagnostics.md",
|
|
151
|
+
"text": "| `PLAY1152` | E | A screen is declared twice in one scope (document, module or feature); rename or remove one. |",
|
|
152
|
+
"kind": "diagnostic",
|
|
153
|
+
"value": "PLAY1152",
|
|
154
|
+
"reason": "Free screens are not in the pinned Screenplay contract yet; the diagnostic is documented ahead of the pin bump that carries it. Remove with the bump."
|
|
155
|
+
},
|
|
156
|
+
{
|
|
157
|
+
"file": ".cratis/ai/skills/cratis-screenplay-toolchain/references/diagnostics.md",
|
|
158
|
+
"text": "| `PLAY1153` | E | A screen needs one shape twice or two needs share a name; tell them apart with `as <alias>` and provide each by its alias. |",
|
|
159
|
+
"kind": "diagnostic",
|
|
160
|
+
"value": "PLAY1153",
|
|
161
|
+
"reason": "Free screens are not in the pinned Screenplay contract yet; the diagnostic is documented ahead of the pin bump that carries it. Remove with the bump."
|
|
162
|
+
},
|
|
163
|
+
{
|
|
164
|
+
"file": ".cratis/ai/skills/cratis-screenplay-toolchain/references/diagnostics.md",
|
|
165
|
+
"text": "| `PLAY1154` | E | A slice adopts one screen twice; keep one `uses screen` and put every provision under it. |",
|
|
166
|
+
"kind": "diagnostic",
|
|
167
|
+
"value": "PLAY1154",
|
|
168
|
+
"reason": "Free screens are not in the pinned Screenplay contract yet; the diagnostic is documented ahead of the pin bump that carries it. Remove with the bump."
|
|
169
|
+
},
|
|
170
|
+
{
|
|
171
|
+
"file": ".cratis/ai/skills/cratis-screenplay-toolchain/references/diagnostics.md",
|
|
172
|
+
"text": "| `PLAY1155` | W | An adopted screen has a need the slice does not provide. Fails any warnings-as-errors gate and executable screen admission; add `data <Need> via query <Query>` under `uses screen`. |",
|
|
173
|
+
"kind": "diagnostic",
|
|
174
|
+
"value": "PLAY1155",
|
|
175
|
+
"reason": "Free screens are not in the pinned Screenplay contract yet; the diagnostic is documented ahead of the pin bump that carries it. Remove with the bump."
|
|
176
|
+
},
|
|
177
|
+
{
|
|
178
|
+
"file": ".cratis/ai/skills/cratis-screenplay-toolchain/references/diagnostics.md",
|
|
179
|
+
"text": "| `PLAY1156` | E | A provision names a need the screen does not have; the message lists what it needs. |",
|
|
180
|
+
"kind": "diagnostic",
|
|
181
|
+
"value": "PLAY1156",
|
|
182
|
+
"reason": "Free screens are not in the pinned Screenplay contract yet; the diagnostic is documented ahead of the pin bump that carries it. Remove with the bump."
|
|
183
|
+
},
|
|
184
|
+
{
|
|
185
|
+
"file": ".cratis/ai/skills/cratis-screenplay-toolchain/references/diagnostics.md",
|
|
186
|
+
"text": "| `PLAY1157` | E | A provision names data the screen already sources with its own `data <ReadModel> via query`; remove the provision. |",
|
|
187
|
+
"kind": "diagnostic",
|
|
188
|
+
"value": "PLAY1157",
|
|
189
|
+
"reason": "Free screens are not in the pinned Screenplay contract yet; the diagnostic is documented ahead of the pin bump that carries it. Remove with the bump."
|
|
190
|
+
},
|
|
191
|
+
{
|
|
192
|
+
"file": ".cratis/ai/skills/cratis-screenplay-toolchain/references/diagnostics.md",
|
|
193
|
+
"text": "| `PLAY1158` | E | One need is provided twice in one adoption. |",
|
|
194
|
+
"kind": "diagnostic",
|
|
195
|
+
"value": "PLAY1158",
|
|
196
|
+
"reason": "Free screens are not in the pinned Screenplay contract yet; the diagnostic is documented ahead of the pin bump that carries it. Remove with the bump."
|
|
197
|
+
},
|
|
198
|
+
{
|
|
199
|
+
"file": ".cratis/ai/skills/cratis-screenplay-toolchain/references/diagnostics.md",
|
|
200
|
+
"text": "| `PLAY1159` | E | A list query provides a single need, or a single-value query a list need; pick the query of the right cardinality. |",
|
|
201
|
+
"kind": "diagnostic",
|
|
202
|
+
"value": "PLAY1159",
|
|
203
|
+
"reason": "Free screens are not in the pinned Screenplay contract yet; the diagnostic is documented ahead of the pin bump that carries it. Remove with the bump."
|
|
204
|
+
},
|
|
205
|
+
{
|
|
206
|
+
"file": ".cratis/ai/skills/cratis-screenplay-toolchain/references/diagnostics.md",
|
|
207
|
+
"text": "| `PLAY1160` | E | A field the screen reads, or the shape declares, is not on the providing read model, by name or through `from`; fix the read model or the mapping. |",
|
|
208
|
+
"kind": "diagnostic",
|
|
209
|
+
"value": "PLAY1160",
|
|
210
|
+
"reason": "Free screens are not in the pinned Screenplay contract yet; the diagnostic is documented ahead of the pin bump that carries it. Remove with the bump."
|
|
211
|
+
},
|
|
212
|
+
{
|
|
213
|
+
"file": ".cratis/ai/skills/cratis-screenplay-toolchain/references/diagnostics.md",
|
|
214
|
+
"text": "| `PLAY1161` | E | A read model property has another type than the explicit shape declares (a concept stands for its primitive); fix the read model, not the shape. |",
|
|
215
|
+
"kind": "diagnostic",
|
|
216
|
+
"value": "PLAY1161",
|
|
217
|
+
"reason": "Free screens are not in the pinned Screenplay contract yet; the diagnostic is documented ahead of the pin bump that carries it. Remove with the bump."
|
|
218
|
+
},
|
|
219
|
+
{
|
|
220
|
+
"file": ".cratis/ai/skills/cratis-screenplay-toolchain/references/diagnostics.md",
|
|
221
|
+
"text": "| `PLAY1162` | E | A provision's `by` is not a parameter of the query; use a declared parameter. |",
|
|
222
|
+
"kind": "diagnostic",
|
|
223
|
+
"value": "PLAY1162",
|
|
224
|
+
"reason": "Free screens are not in the pinned Screenplay contract yet; the diagnostic is documented ahead of the pin bump that carries it. Remove with the bump."
|
|
225
|
+
},
|
|
226
|
+
{
|
|
227
|
+
"file": ".cratis/ai/skills/cratis-screenplay-toolchain/references/diagnostics.md",
|
|
228
|
+
"text": "| `PLAY1163` | E | A mapping names a field the screen does not read and the shape does not declare; remove or correct it. |",
|
|
229
|
+
"kind": "diagnostic",
|
|
230
|
+
"value": "PLAY1163",
|
|
231
|
+
"reason": "Free screens are not in the pinned Screenplay contract yet; the diagnostic is documented ahead of the pin bump that carries it. Remove with the bump."
|
|
232
|
+
},
|
|
233
|
+
{
|
|
234
|
+
"file": ".cratis/ai/skills/cratis-screenplay-toolchain/references/diagnostics.md",
|
|
235
|
+
"text": "| `PLAY1164` | I | A screen no slice adopts is design-only: never fails any gate, and is absent from the executable model and the UI contract. Adopt it with `uses screen` when it must render. |",
|
|
236
|
+
"kind": "diagnostic",
|
|
237
|
+
"value": "PLAY1164",
|
|
238
|
+
"reason": "Free screens are not in the pinned Screenplay contract yet; the diagnostic is documented ahead of the pin bump that carries it. Remove with the bump."
|
|
239
|
+
},
|
|
240
|
+
{
|
|
241
|
+
"file": ".cratis/ai/skills/cratis-screenplay-ui-composition/SKILL.md",
|
|
242
|
+
"text": "- [ ] Every adopted free screen provides every need (no `PLAY1155`); unadopted screens are reported as design-only.",
|
|
243
|
+
"kind": "diagnostic",
|
|
244
|
+
"value": "PLAY1155",
|
|
245
|
+
"reason": "Free screens are not in the pinned Screenplay contract yet; the diagnostic is documented ahead of the pin bump that carries it. Remove with the bump."
|
|
246
|
+
},
|
|
247
|
+
{
|
|
248
|
+
"file": ".cratis/ai/skills/cratis-screenplay-ui-composition/references/free-screens.md",
|
|
249
|
+
"text": "Declare the screen outside a slice when it exists before the slice that serves it (a designer's screen, a storyline step), when two slices share it, or when it is a navigation target nothing implements yet. Keep it in the slice when exactly one slice serves it. A screen is declared once per scope (`PLAY1152`); two scopes may each declare a screen of the same name, and a reference then resolves from where it is written, then by unique match.",
|
|
250
|
+
"kind": "diagnostic",
|
|
251
|
+
"value": "PLAY1152",
|
|
252
|
+
"reason": "Free screens are not in the pinned Screenplay contract yet; the diagnostic is documented ahead of the pin bump that carries it. Remove with the bump."
|
|
253
|
+
},
|
|
254
|
+
{
|
|
255
|
+
"file": ".cratis/ai/skills/cratis-screenplay-ui-composition/references/free-screens.md",
|
|
256
|
+
"text": "- **Explicit.** A top-level `shape <Name>` tightens it with typed fields, written like a read model's properties: `<name> <Type> [optional]`, plus an optional `description`. A shape has **no key, identifier, subject or generated modifier** (it is a contract on data, not stored state), is declared once, and only at the top level of a document (`PLAY1149`, `PLAY1151`).",
|
|
257
|
+
"kind": "diagnostic",
|
|
258
|
+
"value": "PLAY1149",
|
|
259
|
+
"reason": "Free screens are not in the pinned Screenplay contract yet; the diagnostic is documented ahead of the pin bump that carries it. Remove with the bump."
|
|
260
|
+
},
|
|
261
|
+
{
|
|
262
|
+
"file": ".cratis/ai/skills/cratis-screenplay-ui-composition/references/free-screens.md",
|
|
263
|
+
"text": "- **Explicit.** A top-level `shape <Name>` tightens it with typed fields, written like a read model's properties: `<name> <Type> [optional]`, plus an optional `description`. A shape has **no key, identifier, subject or generated modifier** (it is a contract on data, not stored state), is declared once, and only at the top level of a document (`PLAY1149`, `PLAY1151`).",
|
|
264
|
+
"kind": "diagnostic",
|
|
265
|
+
"value": "PLAY1151",
|
|
266
|
+
"reason": "Free screens are not in the pinned Screenplay contract yet; the diagnostic is documented ahead of the pin bump that carries it. Remove with the bump."
|
|
267
|
+
},
|
|
268
|
+
{
|
|
269
|
+
"file": ".cratis/ai/skills/cratis-screenplay-ui-composition/references/free-screens.md",
|
|
270
|
+
"text": "The provision names the need without `[]`; the need's cardinality decides which query fits. The adoption is **many to many**: a slice adopts several screens and a screen is adopted by several slices. Every provision goes under the one `uses screen` line (`PLAY1154`). Hooks (`button ... slice X`) and \"the slice's screen\" for a State Change input work on an adopted screen exactly as on one declared inline.",
|
|
271
|
+
"kind": "diagnostic",
|
|
272
|
+
"value": "PLAY1154",
|
|
273
|
+
"reason": "Free screens are not in the pinned Screenplay contract yet; the diagnostic is documented ahead of the pin bump that carries it. Remove with the bump."
|
|
274
|
+
},
|
|
275
|
+
{
|
|
276
|
+
"file": ".cratis/ai/skills/cratis-screenplay-ui-composition/references/free-screens.md",
|
|
277
|
+
"text": "- the query exists and returns a list for a list need, a single value for a single one (`PLAY1159`);",
|
|
278
|
+
"kind": "diagnostic",
|
|
279
|
+
"value": "PLAY1159",
|
|
280
|
+
"reason": "Free screens are not in the pinned Screenplay contract yet; the diagnostic is documented ahead of the pin bump that carries it. Remove with the bump."
|
|
281
|
+
},
|
|
282
|
+
{
|
|
283
|
+
"file": ".cratis/ai/skills/cratis-screenplay-ui-composition/references/free-screens.md",
|
|
284
|
+
"text": "- every field the screen reads, and every field its explicit `shape` declares, is a property of the query's read model, by name or through `from` (`PLAY1160`), with the type the shape declares (`PLAY1161`);",
|
|
285
|
+
"kind": "diagnostic",
|
|
286
|
+
"value": "PLAY1160",
|
|
287
|
+
"reason": "Free screens are not in the pinned Screenplay contract yet; the diagnostic is documented ahead of the pin bump that carries it. Remove with the bump."
|
|
288
|
+
},
|
|
289
|
+
{
|
|
290
|
+
"file": ".cratis/ai/skills/cratis-screenplay-ui-composition/references/free-screens.md",
|
|
291
|
+
"text": "- every field the screen reads, and every field its explicit `shape` declares, is a property of the query's read model, by name or through `from` (`PLAY1160`), with the type the shape declares (`PLAY1161`);",
|
|
292
|
+
"kind": "diagnostic",
|
|
293
|
+
"value": "PLAY1161",
|
|
294
|
+
"reason": "Free screens are not in the pinned Screenplay contract yet; the diagnostic is documented ahead of the pin bump that carries it. Remove with the bump."
|
|
295
|
+
},
|
|
296
|
+
{
|
|
297
|
+
"file": ".cratis/ai/skills/cratis-screenplay-ui-composition/references/free-screens.md",
|
|
298
|
+
"text": "- `by` names a parameter the query declares (`PLAY1162`);",
|
|
299
|
+
"kind": "diagnostic",
|
|
300
|
+
"value": "PLAY1162",
|
|
301
|
+
"reason": "Free screens are not in the pinned Screenplay contract yet; the diagnostic is documented ahead of the pin bump that carries it. Remove with the bump."
|
|
302
|
+
},
|
|
303
|
+
{
|
|
304
|
+
"file": ".cratis/ai/skills/cratis-screenplay-ui-composition/references/free-screens.md",
|
|
305
|
+
"text": "- a `from` mapping names a field the screen reads or the shape declares (`PLAY1163`);",
|
|
306
|
+
"kind": "diagnostic",
|
|
307
|
+
"value": "PLAY1163",
|
|
308
|
+
"reason": "Free screens are not in the pinned Screenplay contract yet; the diagnostic is documented ahead of the pin bump that carries it. Remove with the bump."
|
|
309
|
+
},
|
|
310
|
+
{
|
|
311
|
+
"file": ".cratis/ai/skills/cratis-screenplay-ui-composition/references/free-screens.md",
|
|
312
|
+
"text": "- the provision targets a need the screen has (`PLAY1156`), never data the screen already sources with its own `data <ReadModel> via query` (`PLAY1157`), and provides it once (`PLAY1158`).",
|
|
313
|
+
"kind": "diagnostic",
|
|
314
|
+
"value": "PLAY1156",
|
|
315
|
+
"reason": "Free screens are not in the pinned Screenplay contract yet; the diagnostic is documented ahead of the pin bump that carries it. Remove with the bump."
|
|
316
|
+
},
|
|
317
|
+
{
|
|
318
|
+
"file": ".cratis/ai/skills/cratis-screenplay-ui-composition/references/free-screens.md",
|
|
319
|
+
"text": "- the provision targets a need the screen has (`PLAY1156`), never data the screen already sources with its own `data <ReadModel> via query` (`PLAY1157`), and provides it once (`PLAY1158`).",
|
|
320
|
+
"kind": "diagnostic",
|
|
321
|
+
"value": "PLAY1157",
|
|
322
|
+
"reason": "Free screens are not in the pinned Screenplay contract yet; the diagnostic is documented ahead of the pin bump that carries it. Remove with the bump."
|
|
323
|
+
},
|
|
324
|
+
{
|
|
325
|
+
"file": ".cratis/ai/skills/cratis-screenplay-ui-composition/references/free-screens.md",
|
|
326
|
+
"text": "- the provision targets a need the screen has (`PLAY1156`), never data the screen already sources with its own `data <ReadModel> via query` (`PLAY1157`), and provides it once (`PLAY1158`).",
|
|
327
|
+
"kind": "diagnostic",
|
|
328
|
+
"value": "PLAY1158",
|
|
329
|
+
"reason": "Free screens are not in the pinned Screenplay contract yet; the diagnostic is documented ahead of the pin bump that carries it. Remove with the bump."
|
|
330
|
+
},
|
|
331
|
+
{
|
|
332
|
+
"file": ".cratis/ai/skills/cratis-screenplay-ui-composition/references/free-screens.md",
|
|
333
|
+
"text": "A screen that needs the same shape twice tells the needs apart with `as <alias>`. The alias is the need's name in the screen's directives and in the provision. Two needs with one name are `PLAY1153`.",
|
|
334
|
+
"kind": "diagnostic",
|
|
335
|
+
"value": "PLAY1153",
|
|
336
|
+
"reason": "Free screens are not in the pinned Screenplay contract yet; the diagnostic is documented ahead of the pin bump that carries it. Remove with the bump."
|
|
337
|
+
},
|
|
338
|
+
{
|
|
339
|
+
"file": ".cratis/ai/skills/cratis-screenplay-ui-composition/references/free-screens.md",
|
|
340
|
+
"text": "| An adopted screen has a need no provision supplies | Warning `PLAY1155` while the model is being built |",
|
|
341
|
+
"kind": "diagnostic",
|
|
342
|
+
"value": "PLAY1155",
|
|
343
|
+
"reason": "Free screens are not in the pinned Screenplay contract yet; the diagnostic is documented ahead of the pin bump that carries it. Remove with the bump."
|
|
344
|
+
},
|
|
345
|
+
{
|
|
346
|
+
"file": ".cratis/ai/skills/cratis-screenplay-ui-composition/references/free-screens.md",
|
|
347
|
+
"text": "| A screen no slice adopts | Information `PLAY1164`; never fails any gate |",
|
|
348
|
+
"kind": "diagnostic",
|
|
349
|
+
"value": "PLAY1164",
|
|
350
|
+
"reason": "Free screens are not in the pinned Screenplay contract yet; the diagnostic is documented ahead of the pin bump that carries it. Remove with the bump."
|
|
351
|
+
},
|
|
352
|
+
{
|
|
353
|
+
"file": ".cratis/ai/skills/cratis-screenplay-ui-composition/references/free-screens.md",
|
|
354
|
+
"text": "There is no separate release flag: the release gate is the warnings-as-errors gate every Screenplay model already runs. A work-in-progress model keeps compiling with `PLAY1155`; a release does not.",
|
|
355
|
+
"kind": "diagnostic",
|
|
356
|
+
"value": "PLAY1155",
|
|
357
|
+
"reason": "Free screens are not in the pinned Screenplay contract yet; the diagnostic is documented ahead of the pin bump that carries it. Remove with the bump."
|
|
358
|
+
},
|
|
359
|
+
{
|
|
360
|
+
"file": ".cratis/ai/skills/cratis-screenplay-ui-composition/references/free-screens.md",
|
|
361
|
+
"text": "| `PLAY1149` | Error | A `shape` is malformed or not at the top level of a document, or a field carries a key, identifier, subject or generated modifier. |",
|
|
362
|
+
"kind": "diagnostic",
|
|
363
|
+
"value": "PLAY1149",
|
|
364
|
+
"reason": "Free screens are not in the pinned Screenplay contract yet; the diagnostic is documented ahead of the pin bump that carries it. Remove with the bump."
|
|
365
|
+
},
|
|
366
|
+
{
|
|
367
|
+
"file": ".cratis/ai/skills/cratis-screenplay-ui-composition/references/free-screens.md",
|
|
368
|
+
"text": "| `PLAY1150` | Error | A `uses screen`, provision or mapping is malformed. |",
|
|
369
|
+
"kind": "diagnostic",
|
|
370
|
+
"value": "PLAY1150",
|
|
371
|
+
"reason": "Free screens are not in the pinned Screenplay contract yet; the diagnostic is documented ahead of the pin bump that carries it. Remove with the bump."
|
|
372
|
+
},
|
|
373
|
+
{
|
|
374
|
+
"file": ".cratis/ai/skills/cratis-screenplay-ui-composition/references/free-screens.md",
|
|
375
|
+
"text": "| `PLAY1151` | Error | A `shape` is declared more than once. |",
|
|
376
|
+
"kind": "diagnostic",
|
|
377
|
+
"value": "PLAY1151",
|
|
378
|
+
"reason": "Free screens are not in the pinned Screenplay contract yet; the diagnostic is documented ahead of the pin bump that carries it. Remove with the bump."
|
|
379
|
+
},
|
|
380
|
+
{
|
|
381
|
+
"file": ".cratis/ai/skills/cratis-screenplay-ui-composition/references/free-screens.md",
|
|
382
|
+
"text": "| `PLAY1152` | Error | A screen is declared more than once in one scope. |",
|
|
383
|
+
"kind": "diagnostic",
|
|
384
|
+
"value": "PLAY1152",
|
|
385
|
+
"reason": "Free screens are not in the pinned Screenplay contract yet; the diagnostic is documented ahead of the pin bump that carries it. Remove with the bump."
|
|
386
|
+
},
|
|
387
|
+
{
|
|
388
|
+
"file": ".cratis/ai/skills/cratis-screenplay-ui-composition/references/free-screens.md",
|
|
389
|
+
"text": "| `PLAY1153` | Error | Two needs of a screen share a name; add `as <alias>`. |",
|
|
390
|
+
"kind": "diagnostic",
|
|
391
|
+
"value": "PLAY1153",
|
|
392
|
+
"reason": "Free screens are not in the pinned Screenplay contract yet; the diagnostic is documented ahead of the pin bump that carries it. Remove with the bump."
|
|
393
|
+
},
|
|
394
|
+
{
|
|
395
|
+
"file": ".cratis/ai/skills/cratis-screenplay-ui-composition/references/free-screens.md",
|
|
396
|
+
"text": "| `PLAY1154` | Error | A slice adopts the same screen twice. |",
|
|
397
|
+
"kind": "diagnostic",
|
|
398
|
+
"value": "PLAY1154",
|
|
399
|
+
"reason": "Free screens are not in the pinned Screenplay contract yet; the diagnostic is documented ahead of the pin bump that carries it. Remove with the bump."
|
|
400
|
+
},
|
|
401
|
+
{
|
|
402
|
+
"file": ".cratis/ai/skills/cratis-screenplay-ui-composition/references/free-screens.md",
|
|
403
|
+
"text": "| `PLAY1155` | Warning | An adopted screen has a need the slice does not provide. |",
|
|
404
|
+
"kind": "diagnostic",
|
|
405
|
+
"value": "PLAY1155",
|
|
406
|
+
"reason": "Free screens are not in the pinned Screenplay contract yet; the diagnostic is documented ahead of the pin bump that carries it. Remove with the bump."
|
|
407
|
+
},
|
|
408
|
+
{
|
|
409
|
+
"file": ".cratis/ai/skills/cratis-screenplay-ui-composition/references/free-screens.md",
|
|
410
|
+
"text": "| `PLAY1156` | Error | A provision names a need the screen does not have. |",
|
|
411
|
+
"kind": "diagnostic",
|
|
412
|
+
"value": "PLAY1156",
|
|
413
|
+
"reason": "Free screens are not in the pinned Screenplay contract yet; the diagnostic is documented ahead of the pin bump that carries it. Remove with the bump."
|
|
414
|
+
},
|
|
415
|
+
{
|
|
416
|
+
"file": ".cratis/ai/skills/cratis-screenplay-ui-composition/references/free-screens.md",
|
|
417
|
+
"text": "| `PLAY1157` | Error | A provision overrides data the screen already sources. |",
|
|
418
|
+
"kind": "diagnostic",
|
|
419
|
+
"value": "PLAY1157",
|
|
420
|
+
"reason": "Free screens are not in the pinned Screenplay contract yet; the diagnostic is documented ahead of the pin bump that carries it. Remove with the bump."
|
|
421
|
+
},
|
|
422
|
+
{
|
|
423
|
+
"file": ".cratis/ai/skills/cratis-screenplay-ui-composition/references/free-screens.md",
|
|
424
|
+
"text": "| `PLAY1158` | Error | A need is provided more than once. |",
|
|
425
|
+
"kind": "diagnostic",
|
|
426
|
+
"value": "PLAY1158",
|
|
427
|
+
"reason": "Free screens are not in the pinned Screenplay contract yet; the diagnostic is documented ahead of the pin bump that carries it. Remove with the bump."
|
|
428
|
+
},
|
|
429
|
+
{
|
|
430
|
+
"file": ".cratis/ai/skills/cratis-screenplay-ui-composition/references/free-screens.md",
|
|
431
|
+
"text": "| `PLAY1159` | Error | A list query provides a single need, or the reverse. |",
|
|
432
|
+
"kind": "diagnostic",
|
|
433
|
+
"value": "PLAY1159",
|
|
434
|
+
"reason": "Free screens are not in the pinned Screenplay contract yet; the diagnostic is documented ahead of the pin bump that carries it. Remove with the bump."
|
|
435
|
+
},
|
|
436
|
+
{
|
|
437
|
+
"file": ".cratis/ai/skills/cratis-screenplay-ui-composition/references/free-screens.md",
|
|
438
|
+
"text": "| `PLAY1160` | Error | A field the screen reads is not a property of the providing read model. |",
|
|
439
|
+
"kind": "diagnostic",
|
|
440
|
+
"value": "PLAY1160",
|
|
441
|
+
"reason": "Free screens are not in the pinned Screenplay contract yet; the diagnostic is documented ahead of the pin bump that carries it. Remove with the bump."
|
|
442
|
+
},
|
|
443
|
+
{
|
|
444
|
+
"file": ".cratis/ai/skills/cratis-screenplay-ui-composition/references/free-screens.md",
|
|
445
|
+
"text": "| `PLAY1161` | Error | A read model property has another type than the explicit shape declares. |",
|
|
446
|
+
"kind": "diagnostic",
|
|
447
|
+
"value": "PLAY1161",
|
|
448
|
+
"reason": "Free screens are not in the pinned Screenplay contract yet; the diagnostic is documented ahead of the pin bump that carries it. Remove with the bump."
|
|
449
|
+
},
|
|
450
|
+
{
|
|
451
|
+
"file": ".cratis/ai/skills/cratis-screenplay-ui-composition/references/free-screens.md",
|
|
452
|
+
"text": "| `PLAY1162` | Error | A provision's `by` is not a parameter of the query. |",
|
|
453
|
+
"kind": "diagnostic",
|
|
454
|
+
"value": "PLAY1162",
|
|
455
|
+
"reason": "Free screens are not in the pinned Screenplay contract yet; the diagnostic is documented ahead of the pin bump that carries it. Remove with the bump."
|
|
456
|
+
},
|
|
457
|
+
{
|
|
458
|
+
"file": ".cratis/ai/skills/cratis-screenplay-ui-composition/references/free-screens.md",
|
|
459
|
+
"text": "| `PLAY1163` | Error | A mapping names a field the screen does not read and the shape does not declare. |",
|
|
460
|
+
"kind": "diagnostic",
|
|
461
|
+
"value": "PLAY1163",
|
|
462
|
+
"reason": "Free screens are not in the pinned Screenplay contract yet; the diagnostic is documented ahead of the pin bump that carries it. Remove with the bump."
|
|
463
|
+
},
|
|
464
|
+
{
|
|
465
|
+
"file": ".cratis/ai/skills/cratis-screenplay-ui-composition/references/free-screens.md",
|
|
466
|
+
"text": "| `PLAY1164` | Information | A screen no slice adopts is design-only. |",
|
|
467
|
+
"kind": "diagnostic",
|
|
468
|
+
"value": "PLAY1164",
|
|
469
|
+
"reason": "Free screens are not in the pinned Screenplay contract yet; the diagnostic is documented ahead of the pin bump that carries it. Remove with the bump."
|
|
470
|
+
},
|
|
471
|
+
{
|
|
472
|
+
"file": ".cratis/ai/skills/cratis-screenplay-ui-composition/references/free-screens.md",
|
|
473
|
+
"text": "- **Shape inside a module.** A `shape` is a top-level declaration; nested in a module, feature or imported file it is `PLAY1149`.",
|
|
474
|
+
"kind": "diagnostic",
|
|
475
|
+
"value": "PLAY1149",
|
|
476
|
+
"reason": "Free screens are not in the pinned Screenplay contract yet; the diagnostic is documented ahead of the pin bump that carries it. Remove with the bump."
|
|
477
|
+
},
|
|
478
|
+
{
|
|
479
|
+
"file": ".cratis/ai/skills/cratis-screenplay-ui-composition/references/free-screens.md",
|
|
480
|
+
"text": "- **Provision for data the screen sources itself.** `data <ReadModel> via query` on the screen already binds it; a provision of it is `PLAY1157`. Drop the provision or make the screen's line a need.",
|
|
481
|
+
"kind": "diagnostic",
|
|
482
|
+
"value": "PLAY1157",
|
|
483
|
+
"reason": "Free screens are not in the pinned Screenplay contract yet; the diagnostic is documented ahead of the pin bump that carries it. Remove with the bump."
|
|
484
|
+
},
|
|
485
|
+
{
|
|
486
|
+
"file": ".cratis/ai/skills/cratis-screenplay-ui-composition/references/free-screens.md",
|
|
487
|
+
"text": "- **Adopting without providing.** `uses screen X` with no provision compiles with `PLAY1155` and fails a warnings-as-errors gate; it is never a finished adoption.",
|
|
488
|
+
"kind": "diagnostic",
|
|
489
|
+
"value": "PLAY1155",
|
|
490
|
+
"reason": "Free screens are not in the pinned Screenplay contract yet; the diagnostic is documented ahead of the pin bump that carries it. Remove with the bump."
|
|
491
|
+
},
|
|
492
|
+
{
|
|
493
|
+
"file": ".cratis/ai/skills/cratis-screenplay-ui-composition/references/free-screens.md",
|
|
494
|
+
"text": "- [ ] `screenplay <model> --warnaserror` reports no `PLAY1155`; remaining `PLAY1164` screens are deliberately unadopted.",
|
|
495
|
+
"kind": "diagnostic",
|
|
496
|
+
"value": "PLAY1155",
|
|
497
|
+
"reason": "Free screens are not in the pinned Screenplay contract yet; the diagnostic is documented ahead of the pin bump that carries it. Remove with the bump."
|
|
498
|
+
},
|
|
499
|
+
{
|
|
500
|
+
"file": ".cratis/ai/skills/cratis-screenplay-ui-composition/references/free-screens.md",
|
|
501
|
+
"text": "- [ ] `screenplay <model> --warnaserror` reports no `PLAY1155`; remaining `PLAY1164` screens are deliberately unadopted.",
|
|
502
|
+
"kind": "diagnostic",
|
|
503
|
+
"value": "PLAY1164",
|
|
504
|
+
"reason": "Free screens are not in the pinned Screenplay contract yet; the diagnostic is documented ahead of the pin bump that carries it. Remove with the bump."
|
|
29
505
|
}
|
|
30
506
|
]
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: cratis-screenplay-ui-composition
|
|
3
|
-
description: Use when declaring Screenplay shells, reusable templates, forms, navigation, interaction wiring, design systems or
|
|
3
|
+
description: Use when declaring Screenplay shells, reusable templates, forms, navigation, interaction wiring, design systems, themes or free screens a slice adopts. Not for a screen's own query data and action contract; use cratis-screenplay-read-surface.
|
|
4
4
|
license: MIT
|
|
5
5
|
---
|
|
6
6
|
|
|
@@ -19,11 +19,9 @@ a trigger value named `file` is written `@file`.
|
|
|
19
19
|
|
|
20
20
|
## Locate the model
|
|
21
21
|
|
|
22
|
-
Look first for the project's existing `.play` files: their folder is the model
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
`cratis ai install` manages `.cratis/ai/`, never model files. Keep explanatory
|
|
26
|
-
Markdown in project documentation; `.play` is the single flow model.
|
|
22
|
+
Look first for the project's existing `.play` files: their folder is the model;
|
|
23
|
+
code-only `Source/` or `src/` does not qualify. Otherwise use repository-root `Screenplay/` ([discovery/version gates](../cratis-screenplay-event-modeling/references/file-layout.md#locate-the-model)). Never put a model under `.cratis/` or hand-copy it between repositories;
|
|
24
|
+
`cratis ai install` manages `.cratis/ai/`, never model files. Keep explanatory Markdown in project documentation.
|
|
27
25
|
|
|
28
26
|
## Product sources
|
|
29
27
|
|
|
@@ -34,7 +32,7 @@ Tool versions: toolchain `SKILL.md`. UI statements come from Screenplay
|
|
|
34
32
|
runtime sources: scaffold Scene tag, `Source/JavaScript/**`. See
|
|
35
33
|
[Scene v4.82.0 runtime boundaries](references/scene-runtime-boundaries.md) for
|
|
36
34
|
exact query registration/submission, root-profile serialization and interaction
|
|
37
|
-
limits.
|
|
35
|
+
limits.
|
|
38
36
|
|
|
39
37
|
Every construct on this page is deferred from the executable model with
|
|
40
38
|
information `PLAY0269`: it never blocks binding, and it is not evidence that a
|
|
@@ -45,9 +43,8 @@ exposed template configuration, package/icon catalogs, manual form columns, hier
|
|
|
45
43
|
routes, toolbars and dialog destinations, each with a separate support level
|
|
46
44
|
(authoring accepted, executable admitted, runtime implemented). Discover the
|
|
47
45
|
installed shape through MCP `syntax-schema`; details:
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
Absent editor highlighting is never evidence that a construct is wrong: check `screenplay`, not the editor (see [references/screen-composition-contract.md](references/screen-composition-contract.md)).
|
|
46
|
+
[references/screen-composition-contract.md](references/screen-composition-contract.md).
|
|
47
|
+
Absent editor highlighting is never evidence that a construct is wrong: check `screenplay`, not the editor.
|
|
51
48
|
|
|
52
49
|
|
|
53
50
|
## Compose in this order
|
|
@@ -79,7 +76,11 @@ work on a screen whose purpose is unsettled is rework.
|
|
|
79
76
|
6. **Report each screen in two or three sentences**: what it shows and what the
|
|
80
77
|
user can do. Not everyone reviewing can see a board.
|
|
81
78
|
|
|
82
|
-
Read `references/worked-flow.md`
|
|
79
|
+
Read `references/worked-flow.md` for a complete example: two Level-1 screens, their command, read model and form, with the field trace.
|
|
80
|
+
|
|
81
|
+
## Free screens and Scene Design
|
|
82
|
+
|
|
83
|
+
A `screen` may be declared at the top level, in a module, a feature or a slice. A free screen states the data it needs (`data <Shape>[]`); a slice adopts it with `uses screen` and provides each need from a query. Read [references/free-screens.md](references/free-screens.md) before declaring, adopting or reviewing one: shapes, aliases, provisions, severities, design-only screens and their diagnostics. Read [references/scene-design.md](references/scene-design.md) when an agent designs screens through the Scene Design catalogue and operations or must refuse free styling.
|
|
83
84
|
|
|
84
85
|
## `layout` — the application shell
|
|
85
86
|
|
|
@@ -222,17 +223,13 @@ MCP editing and the review checklist.
|
|
|
222
223
|
|
|
223
224
|
An interaction wires an `on <thing>` trigger to actions, inline or through named
|
|
224
225
|
`behavior` + `uses`. This is closed UI wiring, not scripting; validation stays on
|
|
225
|
-
the command. Trigger/action syntax
|
|
226
|
+
the command. Trigger/action syntax, including a named confirmation behavior with an inline
|
|
227
|
+
refresh, is in [interaction example](references/interaction-example.md)
|
|
226
228
|
and [guarded interactions](references/guarded-interactions.md).
|
|
227
229
|
|
|
228
|
-
Guarded alternatives and `where` deprecation:
|
|
229
|
-
[guarded interactions](references/guarded-interactions.md).
|
|
230
230
|
Read [change alternatives](references/change-alternatives.md) when a component's
|
|
231
231
|
`on change` should choose an action list by the changed item, such as a kanban move.
|
|
232
232
|
|
|
233
|
-
Read [interaction example](references/interaction-example.md) when wiring a
|
|
234
|
-
named confirmation behavior and an inline refresh to the same screen.
|
|
235
|
-
|
|
236
233
|
State every plain and toolbar `action`'s subject: `for item` (the chosen record fills its
|
|
237
234
|
inputs) or `for screen` (no row does). Omitted, the compiler infers it from types, and a
|
|
238
235
|
create action on a list can bind the selected row's id. Read
|
|
@@ -241,7 +238,7 @@ PLAY0817-PLAY0821 appear.
|
|
|
241
238
|
Scalar/named `returns` bind and reference-execute (ESM v7).
|
|
242
239
|
Renderer generation/response limits: command-surface `references/generated-values-and-responses.md`.
|
|
243
240
|
Screenplay resolves response names in form submit and execute success (Requires Screenplay 4.148.0 or later);
|
|
244
|
-
own failure use is PLAY0685. No ESM change
|
|
241
|
+
own failure use is PLAY0685. No ESM change.
|
|
245
242
|
An existing success continuation does not imply a response contract.
|
|
246
243
|
Read [response continuations](references/response-continuations.md) for scope,
|
|
247
244
|
precedence, PLAY0485 and examples.
|
|
@@ -267,7 +264,7 @@ Extension components: [reference](references/extension-components.md).
|
|
|
267
264
|
|
|
268
265
|
## `design system`, `theme` and `ui profile`
|
|
269
266
|
|
|
270
|
-
The `design system` is the per-application contract; a `theme` implements it with values; a `ui profile` picks a theme, and `appearance` keeps only `color scheme` (`accent`, `corners`, `font`: `PLAY0929`). Read [references/design-system-and-themes.md](references/design-system-and-themes.md) first.
|
|
267
|
+
The `design system` is the per-application contract; a `theme` implements it with values; a `ui profile` picks a theme, and `appearance` keeps only `color scheme` (`accent`, `corners`, `font`: `PLAY0929`). Read [references/design-system-and-themes.md](references/design-system-and-themes.md) first; components are the rendering contract (anatomy and link conventions).
|
|
271
268
|
|
|
272
269
|
A quoted theme name such as `theme "Scene Default Light"` needs Screenplay 4.227.0 (rules in the reference below).
|
|
273
270
|
|
|
@@ -302,6 +299,7 @@ A screen can also keep `sketch`, `mockup` and `image` lines: authoring metadata,
|
|
|
302
299
|
no Screenplay 5 form (`navigation topbar|sidebar`, `contributes`, feature `toolbar`, region `outlet`) remains.
|
|
303
300
|
- [ ] Every State Change screen says what it `fits`; a hook names a place only when the automatic choice is wrong.
|
|
304
301
|
- [ ] No `dialog template` declares `fits slot`.
|
|
302
|
+
- [ ] Every adopted free screen provides every need (no `PLAY1155`); unadopted screens are reported as design-only.
|
|
305
303
|
- [ ] Each `ui profile` names its shell with `root template`, not the legacy `layout` line (`PLAY0791`); a blueprint shell is listed under `packages` and its `version` pin is deliberate.
|
|
306
304
|
- [ ] `packages` are ordered deliberately — later shadows earlier.
|
|
307
305
|
- [ ] Every theme a profile selects is `compatible with` one of its packages.
|
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
- The split: design system, theme, profile
|
|
6
6
|
- A design system and its default theme
|
|
7
7
|
- Tokens, components, words and rules
|
|
8
|
+
- Components are the rendering contract
|
|
8
9
|
- A second theme and a profile that selects it
|
|
9
10
|
- Which theme and mode a profile gets
|
|
10
11
|
- Deprecated `appearance` members
|
|
@@ -103,6 +104,19 @@ theme Daylight
|
|
|
103
104
|
- The one rule form is `contrast <part> on <part> at least <ratio>`. The compiler checks it for every theme, mode, variant and state except `disabled`, and warns `PLAY0928` naming the pair. Only hex and `rgb(...)` colors are measured; a named color is not checked.
|
|
104
105
|
- Modes belong to the design system, never to a theme; a mode block for an undeclared mode is `PLAY0918`.
|
|
105
106
|
|
|
107
|
+
## Components are the rendering contract
|
|
108
|
+
|
|
109
|
+
A renderer never reads a token by name. A component reads its look from its **anatomy**: "my `primary` variant's `background` in `hover`". The design system's `components` section is therefore what a renderer draws from, and the token names are the product's own: the categories are closed, the names inside them are free, and no renderer expects `color.primary` or any other name to exist.
|
|
110
|
+
|
|
111
|
+
- Declare, for each component, exactly the `parts`, `variant`s and `state`s it really has; a part, variant or state is a promise that a renderer can draw it. Shell and chrome (page, shell, sidebar, menu, card, text, button, input, status chip) are components like any other, so surfaces and text come from anatomy as well.
|
|
112
|
+
- **Link by name.** A design-system component finds the component that renders it by its name, through the profile's packages (the last package wins), compared without regard to case or separators: `StatusChip` finds `statusChip`. Name design-system components after the component they stand for and no override is needed.
|
|
113
|
+
- **Override with a mapping.** When names differ, Scene's component mapping states the target explicitly (`maps to <Package.Component>`). It is a Scene design-system mapping, not a `.play` line: the Screenplay `design system` has no `maps to`, so never write one in a model.
|
|
114
|
+
- **Variant to property.** The chosen variant reaches the component through its `variant` property, else `emphasis`, or through the property its anatomy names; a mapping may also state the property and the value each variant takes when the names differ (`variantProperty`, `variantValues`).
|
|
115
|
+
- **Mismatches are reported, never hidden.** Linking reports a component no package renders (`componentUnbound`), one that declares no anatomy (`componentWithoutAnatomy`), and a part, variant or state it does not support (`partUnsupported`, `variantUnsupported`, `stateUnsupported`), or several variants with no property to choose by (`variantPropertyMissing`). A component that does not restyle is diagnosed from these, not by adding raw values to a screen.
|
|
116
|
+
- **What the renderer emits.** Each part becomes a custom property per mode, `--ds-<component>-<variant>-<part>` and, for a state, `--ds-<component>-<variant>-<part>-<state>` (kebab-cased); raw token roles are `--ds-token-<category>-<name>` and are for blueprints authored against one design system. A package component reads only anatomy.
|
|
117
|
+
|
|
118
|
+
Scene Design grounds an agent's choices in these components and refuses what they do not declare: [scene-design.md](scene-design.md).
|
|
119
|
+
|
|
106
120
|
## A second theme and a profile that selects it
|
|
107
121
|
|
|
108
122
|
```screenplay
|
|
@@ -255,3 +269,4 @@ Source: [Design system](https://github.com/Cratis/Screenplay/blob/main/Documenta
|
|
|
255
269
|
## Checklist
|
|
256
270
|
|
|
257
271
|
- [ ] One `design system` with a `default theme`; each selected theme implements it and sets every `color` token in each mode; no profile carries `accent`, `corners` or `font`.
|
|
272
|
+
- [ ] Each component declares only the parts, variants and states a renderer draws, and is named after the component that renders it; a name that differs is a Scene mapping, not a `.play` line.
|