@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.
Files changed (21) hide show
  1. package/package/corpus/skills/cratis-code-review/SKILL.md +7 -1
  2. package/package/corpus/skills/cratis-documentation-writing/SKILL.md +5 -0
  3. package/package/corpus/skills/cratis-screenplay-model-authoring/SKILL.md +1 -0
  4. package/package/corpus/skills/cratis-screenplay-model-authoring/references/free-screens-proposals.md +36 -0
  5. package/package/corpus/skills/cratis-screenplay-model-authoring/references/storylines.md +1 -0
  6. package/package/corpus/skills/cratis-screenplay-model-authoring/verification.json +6 -1
  7. package/package/corpus/skills/cratis-screenplay-read-surface/SKILL.md +2 -1
  8. package/package/corpus/skills/cratis-screenplay-slice-design/SKILL.md +2 -1
  9. package/package/corpus/skills/cratis-screenplay-slice-design/references/screens-before-slices.md +37 -0
  10. package/package/corpus/skills/cratis-screenplay-slice-design/verification.json +5 -1
  11. package/package/corpus/skills/cratis-screenplay-toolchain/references/diagnostics.md +24 -0
  12. package/package/corpus/skills/cratis-screenplay-toolchain/references/screenplay-contract-exceptions.json +476 -0
  13. package/package/corpus/skills/cratis-screenplay-ui-composition/SKILL.md +17 -19
  14. package/package/corpus/skills/cratis-screenplay-ui-composition/references/design-system-and-themes.md +15 -0
  15. package/package/corpus/skills/cratis-screenplay-ui-composition/references/free-screens.md +237 -0
  16. package/package/corpus/skills/cratis-screenplay-ui-composition/references/scene-design.md +138 -0
  17. package/package/corpus/skills/cratis-screenplay-ui-composition/verification.json +17 -1
  18. package/package/corpus/skills/cratis-technical-examples/SKILL.md +8 -0
  19. package/package/corpus/skills/cratis-technical-examples/verification.json +2 -0
  20. package/package/corpus/skills/cratis-writing-voice-and-cadence/SKILL.md +2 -0
  21. package/package.json +1 -1
@@ -0,0 +1,237 @@
1
+ # Free screens: declare a screen first, let a slice adopt it
2
+
3
+ ## Contents
4
+
5
+ - When a screen is free
6
+ - Declare a free screen and its needs
7
+ - Shapes: inferred and explicit
8
+ - Adopt the screen and provide each need
9
+ - Two needs of one shape: aliases
10
+ - Names, navigation, storylines and sample data
11
+ - Severities and the release gate
12
+ - Design-only screens
13
+ - Diagnostics
14
+ - Traps
15
+ - Checklist
16
+
17
+ Requires a Screenplay release later than 6.31.0 whose contract lists the free-screen diagnostics (check `screenplay --version` and the toolchain skill's `screenplay-contract.json`). An older compiler rejects a top-level `shape` or `screen` with `PLAY0001`. Syntax the installed compiler rejects is never papered over with a stub: report the missing release.
18
+
19
+ ## When a screen is free
20
+
21
+ A `screen` is one construct that may be declared at the **top level of a document, in a module, in a feature or in a slice**. A screen declared inside a slice is simply a free screen declared in that slice's scope and adopted by it, so an existing model reads, prints and binds exactly as before.
22
+
23
+ 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.
24
+
25
+ Which slice should serve a screen, and what its read model must supply: [screens before slices](../../cratis-screenplay-slice-design/references/screens-before-slices.md). Editing these constructs through MCP proposals: [free screens through typed proposals](../../cratis-screenplay-model-authoring/references/free-screens-proposals.md).
26
+
27
+ ## Declare a free screen and its needs
28
+
29
+ `data <Shape>[]` (a list) or `data <Shape>` (one value) with **no `via query`** is a **need**: data the screen reads and an adopting slice provides. A screen that names where its data comes from (`data <ReadModel> via query <Query>`) is an ordinary screen.
30
+
31
+ ```screenplay excerpt
32
+ shape Invoice
33
+ number String
34
+ customer String
35
+ amount Decimal
36
+ dueDate Date
37
+
38
+ screen InvoiceList
39
+ title "Invoices"
40
+ data Invoice[]
41
+ table Invoice
42
+ column number label "#"
43
+ column amount
44
+ on row-click navigate to InvoiceDetails by number
45
+
46
+ screen InvoiceDetails
47
+ title "Invoice"
48
+ data Invoice
49
+ summary Invoice
50
+ field number label "Number"
51
+ field customer label "Customer"
52
+ field amount label "Amount"
53
+ ```
54
+
55
+ A title is the `title` directive, never a quoted name after `screen` (`screen InvoiceList "Invoices"` is `PLAY0102`). The screen's other directives, its template, forms and interactions are written exactly as for a slice screen ([screen-composition-contract.md](screen-composition-contract.md)).
56
+
57
+ ## Shapes: inferred and explicit
58
+
59
+ The shape of a need is a contract with two sources:
60
+
61
+ - **Inferred.** The fields the screen reads of the need (table columns, summary fields, the key of a row click, bound paths) are the contract the compiler derives. Nothing else is required, so a screen can be drawn first.
62
+ - **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`).
63
+
64
+ Declare the shape explicitly when the types matter: several adopters, sample data to check, or a reviewer who needs the contract written down. A concept (`InvoiceNumber`) stands for its underlying primitive when a provision's types are compared.
65
+
66
+ ## Adopt the screen and provide each need
67
+
68
+ A slice adopts a screen with `uses screen <Name>` and provides each need from one of its queries with `data <Need> via query <Query> [by <param>]`. Where the read model's property name differs from the shape's field, a nested `<field> from <path>` maps it; a name that matches needs no line.
69
+
70
+ ```screenplay excerpt
71
+ shape Invoice
72
+ number String
73
+ customer String
74
+ amount Decimal
75
+
76
+ screen InvoiceList
77
+ title "Invoices"
78
+ data Invoice[]
79
+ table Invoice
80
+ column number label "#"
81
+ column amount
82
+
83
+ screen InvoiceDetails
84
+ title "Invoice"
85
+ data Invoice
86
+ summary Invoice
87
+ field number label "Number"
88
+ field amount label "Amount"
89
+
90
+ module Invoicing
91
+ feature Paying
92
+ slice StateView ListInvoices
93
+ readmodel InvoiceRow
94
+ invoiceNumber String
95
+ customer String
96
+ amount Decimal
97
+ query ListInvoices => InvoiceRow[]
98
+ query GetInvoice => InvoiceRow optional
99
+ by invoiceNumber String
100
+ uses screen InvoiceList
101
+ data Invoice via query ListInvoices
102
+ number from invoiceNumber
103
+ uses screen InvoiceDetails
104
+ data Invoice via query GetInvoice by invoiceNumber
105
+ number from invoiceNumber
106
+ ```
107
+
108
+ 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.
109
+
110
+ What the compiler checks in a provision:
111
+
112
+ - the query exists and returns a list for a list need, a single value for a single one (`PLAY1159`);
113
+ - 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`);
114
+ - `by` names a parameter the query declares (`PLAY1162`);
115
+ - a `from` mapping names a field the screen reads or the shape declares (`PLAY1163`);
116
+ - 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`).
117
+
118
+ Fix a failure in the slice (the read model, the query, the mapping), not by loosening the shape until it passes. A field with no origin is a missing read model property, never a value invented in the screen.
119
+
120
+ ## Two needs of one shape: aliases
121
+
122
+ 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`.
123
+
124
+ ```screenplay excerpt
125
+ shape Invoice
126
+ number String
127
+ amount Decimal
128
+
129
+ screen Overview
130
+ title "Overview"
131
+ data Invoice[] as overdue
132
+ data Invoice[] as open
133
+ table overdue
134
+ column number
135
+ table open
136
+ column number
137
+
138
+ module Invoicing
139
+ feature Paying
140
+ slice StateView ListOverdue
141
+ readmodel Row
142
+ number String
143
+ amount Decimal
144
+ query ListOverdue => Row[]
145
+ query ListOpen => Row[]
146
+ uses screen Overview
147
+ data overdue via query ListOverdue
148
+ data open via query ListOpen
149
+ ```
150
+
151
+ ## Names, navigation, storylines and sample data
152
+
153
+ - **Names resolve from the declaration site.** A query, command or screen a free screen names resolves inside-out from where the screen is declared, then by unique match anywhere in the model. An adopting slice never changes what a name means. Ambiguous or unresolved names stay warnings, as for a slice screen; commands and screens a free screen names have no contract beyond that.
154
+ - **Navigation reaches every screen.** `navigate to`, `show` and a storyline `screen` step resolve to a free screen or a slice screen alike, adopted or not.
155
+ - **Sample data may name a shape.** `sample data ... shape <Name>` checks its rows against the declared `shape`'s typed fields (`PLAY0710`, `PLAY0711`), as it does against a read model; rows for a screen nobody has adopted can exist before any read model does.
156
+
157
+ ```screenplay excerpt
158
+ shape Invoice
159
+ number String
160
+ amount Decimal
161
+
162
+ screen InvoiceList
163
+ title "Invoices"
164
+ data Invoice[]
165
+ table Invoice
166
+ column number
167
+
168
+ screen InvoiceDetails
169
+ title "Invoice"
170
+ data Invoice
171
+ summary Invoice
172
+ field number label "Number"
173
+
174
+ storyline PayAnInvoice "A clerk pays an invoice"
175
+ screen InvoiceList "Pick the invoice"
176
+ screen InvoiceDetails "Check what is owed"
177
+
178
+ sample data Demo
179
+ shape Invoice
180
+ row
181
+ number = "INV-1001"
182
+ amount = 12.5
183
+ ```
184
+
185
+ ## Severities and the release gate
186
+
187
+ | Situation | Result |
188
+ | --- | --- |
189
+ | An adopted screen has a need no provision supplies | Warning `PLAY1155` while the model is being built |
190
+ | Warnings are errors (`screenplay <model> --warnaserror`, `cratis screenplay validate --warnings-as-errors`, a gate file's `warningsAsErrors`) | The same need fails the gate; exit 1 |
191
+ | Executable screen admission (the executable export that carries screens) | Refused with a reason naming the screen and the shape |
192
+ | A screen no slice adopts | Information `PLAY1164`; never fails any gate |
193
+ | A provision that does not hold, a malformed form, a duplicate shape, screen, need or adoption | Error (see Diagnostics) |
194
+
195
+ 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.
196
+
197
+ ## Design-only screens
198
+
199
+ A free screen no slice adopts is **design-only**. It never blocks the rest of the model, never enters the executable model, and is not part of the `screenplay-ui/1` contract, so the renderer does not draw it. A screen an adopting slice carries reaches the UI contract once per adopting slice, with the data that slice's provisions resolve mapped back to the screen's fields. Report design-only screens as design intent, not as delivered screens; adopt them before claiming a flow renders.
200
+
201
+ ## Diagnostics
202
+
203
+ | Code | Severity | Meaning |
204
+ | --- | --- | --- |
205
+ | `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. |
206
+ | `PLAY1150` | Error | A `uses screen`, provision or mapping is malformed. |
207
+ | `PLAY1151` | Error | A `shape` is declared more than once. |
208
+ | `PLAY1152` | Error | A screen is declared more than once in one scope. |
209
+ | `PLAY1153` | Error | Two needs of a screen share a name; add `as <alias>`. |
210
+ | `PLAY1154` | Error | A slice adopts the same screen twice. |
211
+ | `PLAY1155` | Warning | An adopted screen has a need the slice does not provide. |
212
+ | `PLAY1156` | Error | A provision names a need the screen does not have. |
213
+ | `PLAY1157` | Error | A provision overrides data the screen already sources. |
214
+ | `PLAY1158` | Error | A need is provided more than once. |
215
+ | `PLAY1159` | Error | A list query provides a single need, or the reverse. |
216
+ | `PLAY1160` | Error | A field the screen reads is not a property of the providing read model. |
217
+ | `PLAY1161` | Error | A read model property has another type than the explicit shape declares. |
218
+ | `PLAY1162` | Error | A provision's `by` is not a parameter of the query. |
219
+ | `PLAY1163` | Error | A mapping names a field the screen does not read and the shape does not declare. |
220
+ | `PLAY1164` | Information | A screen no slice adopts is design-only. |
221
+
222
+ ## Traps
223
+
224
+ - **A quoted name after `screen`.** Write `title "..."`; `screen InvoiceList "Invoices"` is `PLAY0102`.
225
+ - **Shape inside a module.** A `shape` is a top-level declaration; nested in a module, feature or imported file it is `PLAY1149`.
226
+ - **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.
227
+ - **One query for a list need and a single need.** Provide a list need from a list query and a single need from a single-value query.
228
+ - **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.
229
+ - **Counting a design-only screen as delivered.** It is not in the UI contract or the executable model.
230
+
231
+ ## Checklist
232
+
233
+ - [ ] Every free screen is declared once per scope, with a `title`; a shape is declared once at the top level.
234
+ - [ ] Every need has a shape; a screen that needs a shape twice uses aliases.
235
+ - [ ] Every adopted screen provides every need from a query of the right cardinality; names that differ are mapped with `from`.
236
+ - [ ] `screenplay <model> --warnaserror` reports no `PLAY1155`; remaining `PLAY1164` screens are deliberately unadopted.
237
+ - [ ] Storylines, `navigate to` and `show` name screens that exist, free or slice-declared.
@@ -0,0 +1,138 @@
1
+ # Scene Design: designing screens as an agent
2
+
3
+ ## Contents
4
+
5
+ - What Scene Design is and what it never does
6
+ - The loop
7
+ - Ground every choice in the catalogue
8
+ - Design operations
9
+ - Checks and refusals
10
+ - Free styling is refused
11
+ - Proposals into the design-system draft
12
+ - Screens, free screens and the session
13
+ - A worked turn
14
+ - Checklist
15
+
16
+ Requires the Scene Design packages, `@cratis/scene.design` (TypeScript) and `Cratis.Scene.Design` (C#), which share one catalogue, one operation vocabulary and one set of fixtures. The tools an agent calls are whatever the host registers: resolve their native names from the connected tool list and read their schemas instead of assuming the names below. This page describes the contract every host's tools follow.
17
+
18
+ ## What Scene Design is and what it never does
19
+
20
+ Scene Design sits between a designer (a person on a canvas or an agent with tools) and the Scene document, so that a design is always **made of what the design system and the component packages offer**. Screenplay text stays the source of truth: a designed screen is a [free screen](free-screens.md), and each revision of it is stored as Screenplay text.
21
+
22
+ - It never reads or writes Screenplay itself; the host converts text to a Scene document and back.
23
+ - It never owns commands, authorization or event streams; the host does.
24
+ - It never lets a design invent a component, variant, token, template, property or value.
25
+
26
+ Syntax for the screens a design produces: [free-screens.md](free-screens.md). The design system that grounds them: [design-system-and-themes.md](design-system-and-themes.md).
27
+
28
+ ## The loop
29
+
30
+ A design turn is a tool loop run by the host, not a single answer:
31
+
32
+ 1. **Read.** Ask the catalogue what exists instead of recalling it. Questions are answered from the catalogue and never contain anything it does not list.
33
+ 2. **Write.** Create a screen as whole Screenplay text, or change one with typed design operations, or ask for variations or tweaks.
34
+ 3. **Take the diagnostics.** Every write runs in a scratch session through the Screenplay compiler and the catalogue checks. The diagnostics or the refusal are the tool result.
35
+ 4. **Repair inside the loop.** Read the refusal, take one of its alternatives or fix the text, and write again. A refused operation changes nothing, and the operations after it still run against the design as it then is.
36
+ 5. **Finish.** End the turn with a short reply for the person. The host applies the result as a new revision of each touched screen (one turn id) and a revert is one action.
37
+
38
+ Do not finish with a design that still carries error diagnostics, and do not report an operation as applied unless its outcome says `applied`.
39
+
40
+ ## Ground every choice in the catalogue
41
+
42
+ The catalogue is built once, deterministically, from the resolved design system, its themes, the UI profile, the packages' component descriptors, the screen templates and, when the host supplies them, shapes, queries, commands and sample data. Read it on demand, one question at a time:
43
+
44
+ | Ask about | Answers |
45
+ | --- | --- |
46
+ | components (filtered by category, by the outlet or template they fit, or searched) and one component | properties with kinds and choices, placement, the variants and states the design system also declares |
47
+ | templates and one template | outlets and what each takes |
48
+ | tokens and one token | the value per theme and mode |
49
+ | the design system's components, themes, the profile, words | what the product declares |
50
+ | shapes, queries, commands | what a screen may bind to |
51
+
52
+ A component offers only the variants **both** its package and the design system declare. A session may be restricted to a **template set** (a story's chosen templates): the catalogue then lists only those, and a screen on any other template is refused with alternatives from the set.
53
+
54
+ ## Design operations
55
+
56
+ An operation is plain data with an `op` discriminator naming one change.
57
+
58
+ | `op` | Does |
59
+ | --- | --- |
60
+ | `addScreen` | Adds a screen on a catalogue template and appends it to the screen set. |
61
+ | `removeScreen`, `moveScreen` | Removes (warning `linkDangling` for links to it) or reorders; the default storyline follows. |
62
+ | `insert` | Puts a component in an outlet of a screen; its id is generated unless given. |
63
+ | `set`, `remove`, `move` | Changes, deletes or relocates an element. |
64
+ | `link` | Makes an element navigate to another screen of the design. |
65
+ | `profile` | Changes `theme`, `colorScheme`, `accent`, `corners`, `font`, `rootTemplate` or `newScreenTemplate`. |
66
+ | `variations` | Offers up to three layouts of a screen on other templates, saying what did not fit; changes nothing until one is chosen. |
67
+ | `tweaks` | Offers up to five controls (a hue or a choice) bound to a profile key, an element property or a token. |
68
+ | `refuse` | Says no, with a code, a reason and alternatives. |
69
+
70
+ Template mode adds `addTemplate`, `addSlot`, `removeSlot` and `arrange`, and `insert`, `set`, `remove`, `move` and `link` then name a `template` instead of a `screen`. Prefer operations for every change to an existing screen: they are deterministic, checked and one revision each. Write a whole screen as text only to create it.
71
+
72
+ ## Checks and refusals
73
+
74
+ | Check | Refusal code |
75
+ | --- | --- |
76
+ | The component, template, screen, element or outlet exists | `componentNotInCatalogue`, `templateNotInCatalogue`, `screenUnknown`, `elementUnknown`, `outletUnknown` |
77
+ | The outlet takes the component and has room | `outletDoesNotAccept`, `outletFull`, `overlayNeedsAction`, `shellComponent` |
78
+ | The property exists and takes the value | `propertyUnknown`, `valueNotAllowed`, `queryUnknown` |
79
+ | The variant is declared by the design system | `variantNotInDesignSystem` |
80
+ | No free styling | `freeStylingNotAllowed` |
81
+ | No value of its own | `offSystemValue` |
82
+ | Profile keys and values | `profileKeyUnknown`, `profileValueNotAllowed`, `noProfile` |
83
+ | The template set is respected | `templateNotInSet` |
84
+ | The engine accepts the Scene edit | `sceneRefused` |
85
+
86
+ A refusal carries `code`, `reason`, `alternatives` (the nearest accepted operations, and design-system proposals) and `diagnostics`. Alternatives are the outlets that do take the component, the variants it has, the queries that exist, the values a profile key takes, the templates of the set. Take an alternative when one fits the person's intent; otherwise tell them what was refused and why.
87
+
88
+ ## Free styling is refused
89
+
90
+ A design says *which* component, *which* variant and *where*; the design system says what it looks like. These are refused, never worked around:
91
+
92
+ - style properties (`background`, `color`, `padding`, `className`, `style`, ...): `freeStylingNotAllowed`;
93
+ - a value of its own (a hex colour, `linear-gradient(...)`, markup, an `accent` the design system has no colour for): `offSystemValue`.
94
+
95
+ Never retry a refused change under another property name, as raw markup or as text in a label. "Make the button red" is answered with a variant the design system declares, or with a proposal for one.
96
+
97
+ ## Proposals into the design-system draft
98
+
99
+ The canvas edits **screens only**. When a design needs something the design system lacks (a token, a variant, a word, a component), the agent does not edit the design system: a refusal carries, or the agent files, a design-system **proposal**, which the host routes into the product's design-system **draft**. The draft follows the product's review and activation; nothing reaches the screens until it is active. A tweak bound to a token is the same: it lowers to a proposal, not to a screen edit. Screen templates designed in template mode are saved into the draft the same way.
100
+
101
+ ```json
102
+ {
103
+ "applied": false,
104
+ "code": "variantNotInDesignSystem",
105
+ "reason": "The design system has no 'danger' variant of Button. Variants: primary, secondary.",
106
+ "alternatives": [
107
+ { "label": "Use primary", "operations": [{ "op": "set", "screen": "InvoiceDetails", "element": "pay", "prop": "variant", "value": "primary" }] },
108
+ { "label": "Propose it to the design system", "proposal": { "kind": "variant", "component": "Button", "variant": "danger", "summary": "Add the danger variant of Button" } }
109
+ ]
110
+ }
111
+ ```
112
+
113
+ A proposal names the need and the reason and applies nothing. Say plainly that it is a proposal and that the screen keeps its current look until the draft is activated.
114
+
115
+ ## Screens, free screens and the session
116
+
117
+ - **A new screen is a free screen.** It needs no slice and no event model. Its data needs are shapes ([free-screens.md](free-screens.md)); a slice adopts it later, in the model, with `uses screen` and its provisions, which is not part of the design turn.
118
+ - **Screens, links and storylines.** `link` sets a navigation destination on an element. The screen set keeps a default storyline that always lists every screen in order; write another storyline for an alternative path.
119
+ - **The session remembers, the model decides.** A session records revisions per screen (the text, the operations, the prompt, the author, the turn id, the design-system version), variation groups, tweak controls and comments. Only each screen's current revision is written into the model. A revert is a new revision, nothing is deleted.
120
+ - **Comments are addressed by element.** Read comments by the element's stable Screenplay `id` and answer them as operations on that element.
121
+ - **Variations and tweaks change nothing until chosen.** Offer them; do not apply one on the person's behalf.
122
+
123
+ ## A worked turn
124
+
125
+ The person asks for a red "Pay" button on `InvoiceDetails`.
126
+
127
+ 1. Read the design system's `Button` component: variants `primary` and `secondary`.
128
+ 2. A `set` of a colour property is refused (`freeStylingNotAllowed`); a `set` of `variant` to `danger` is refused (`variantNotInDesignSystem`) with the alternatives above.
129
+ 3. The alternative `primary` does not fit the intent, so apply nothing. Reply that the design system has no destructive variant, and offer to keep `primary` or to propose a `danger` variant to the design-system draft.
130
+ 4. If they want the proposal, file it. The screen keeps `primary` until the draft is activated.
131
+
132
+ ## Checklist
133
+
134
+ - [ ] Every component, template, token and variant came from a catalogue answer.
135
+ - [ ] Existing screens changed through operations, not rewritten; every outcome was read.
136
+ - [ ] No free styling, hex value or markup in any write; refusals were answered with an alternative or a proposal.
137
+ - [ ] A missing token, variant, word or component is a draft proposal, never a screen edit.
138
+ - [ ] New screens are free screens; adoption by a slice is left to the model, and a design-only screen is not reported as delivered.
@@ -269,6 +269,22 @@
269
269
  { "kind": "skill-contains", "value": "action-subjects.md#table-narrowing", "file": "references/guarded-interactions.md" },
270
270
  { "kind": "skill-contains", "value": "references/screen-visuals.md" },
271
271
  { "kind": "skill-contains", "value": "Requires Screenplay 6.7.0 or later", "file": "references/screen-visuals.md" },
272
- { "kind": "skill-contains", "value": "`PLAY0951` | Warning", "file": "references/screen-visuals.md" }
272
+ { "kind": "skill-contains", "value": "`PLAY0951` | Warning", "file": "references/screen-visuals.md" },
273
+ { "kind": "skill-contains", "value": "references/free-screens.md" },
274
+ { "kind": "skill-contains", "value": "references/scene-design.md" },
275
+ { "kind": "skill-contains", "value": "Requires a Screenplay release later than 6.31.0 whose contract lists", "file": "references/free-screens.md" },
276
+ { "kind": "skill-contains", "value": "with **no `via query`** is a **need**", "file": "references/free-screens.md" },
277
+ { "kind": "skill-contains", "value": "data overdue via query ListOverdue", "file": "references/free-screens.md" },
278
+ { "kind": "skill-contains", "value": "There is no separate release flag", "file": "references/free-screens.md" },
279
+ { "kind": "skill-contains", "value": "A free screen no slice adopts is **design-only**", "file": "references/free-screens.md" },
280
+ { "kind": "skill-contains", "value": "`PLAY1155` | Warning", "file": "references/free-screens.md" },
281
+ { "kind": "skill-contains", "value": "`PLAY1164` | Information", "file": "references/free-screens.md" },
282
+ { "kind": "skill-contains", "value": "A renderer never reads a token by name.", "file": "references/design-system-and-themes.md" },
283
+ { "kind": "skill-contains", "value": "the Screenplay `design system` has no `maps to`", "file": "references/design-system-and-themes.md" },
284
+ { "kind": "skill-contains", "value": "`variantProperty`, `variantValues`", "file": "references/design-system-and-themes.md" },
285
+ { "kind": "skill-contains", "value": "`freeStylingNotAllowed`", "file": "references/scene-design.md" },
286
+ { "kind": "skill-contains", "value": "The canvas edits **screens only**.", "file": "references/scene-design.md" },
287
+ { "kind": "skill-contains", "value": "design-system **draft**", "file": "references/scene-design.md" },
288
+ { "kind": "skill-contains", "value": "Repair inside the loop.", "file": "references/scene-design.md" }
273
289
  ]
274
290
  }
@@ -61,6 +61,14 @@ reader review must not be claimed as completed.
61
61
  and command-response wire type (for example `Guid` versus `string`) and keep
62
62
  one id type per concept across every page of a series. Shared frontend code
63
63
  that depends on those types must be backend-neutral or tabbed per backend.
64
+ Read the prose before and after every tab group as a claim about each tab:
65
+ scope a client-specific sentence to its tab, and fix any sentence a tab
66
+ contradicts. A note inside a tab ("not supported", "no equivalent") is also a
67
+ claim: check that client's source and show the real shape. Before changing a
68
+ repeated fact, grep the whole series for it and update every occurrence.
69
+ Check every snippet against the [concepts rule](../../rules/concepts.md)
70
+ even when copied from client docs; a primitive for a domain value is a defect
71
+ there too.
64
72
  - **Sample application:** one realistic domain, explicit prerequisites and
65
73
  relevant version constraints, a documented run command, a reproducible state to start
66
74
  from, and a visible result. Keep it minimal enough for a new reader to finish.
@@ -10,6 +10,8 @@
10
10
  { "kind": "skill-contains", "value": "A compiling tab is not a working tab." },
11
11
  { "kind": "skill-contains", "value": "one id type per concept across every page of a series" },
12
12
  { "kind": "skill-contains", "value": "Use the same domain type names in every tab" },
13
+ { "kind": "skill-contains", "value": "grep the whole series" },
14
+ { "kind": "skill-contains", "value": "(../../rules/concepts.md)" },
13
15
  { "kind": "skill-contains", "value": "## Explain the evidence and the handoff" },
14
16
  { "kind": "skill-contains", "value": "expected output is not observed output" },
15
17
  { "kind": "skill-contains", "value": "(../cratis-documentation-writing/references/reader-review.md)" },
@@ -63,6 +63,8 @@ Before accepting any rewrite, confirm that:
63
63
  - the propositions, polarity, quantities and necessary identifiers retain their meaning;
64
64
  - qualifiers such as not, never, only, may, unless and until survive in substance;
65
65
  - consequential limitations remain clear, even when their wording is awkward;
66
+ - a trim for length keeps every limit, hedge and warning: cut examples and
67
+ repetition first, and re-read the shortened text for a widened claim;
66
68
  - important warnings precede the affected action and limits stay beside the behavior they
67
69
  qualify. A closing caveat can move there without weakening its scope. Internal proof notes
68
70
  and verification provenance belong in the private change or review record, not a public
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cratis/pi",
3
- "version": "7.167.2",
3
+ "version": "7.168.0",
4
4
  "description": "Configuration-aware Cratis AI integration for Pi",
5
5
  "type": "module",
6
6
  "files": [