@cratis/pi 7.14.6 → 7.15.1

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.
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: cratis-screenplay-model-authoring
3
- description: Author, inspect, refactor and verify a Cratis Screenplay .play model through its typed AST and MCP workspace tools. Use for creating or changing model elements, navigating large split models, reviewing references/specifications, or distinguishing source validity from executable readiness. Do not use for rendering a model into an application or hand-written Arc/Chronicle code.
3
+ description: Author, inspect, refactor and verify a Cratis Screenplay .play model through its typed AST and MCP workspace tools. Use for creating or changing model elements, navigating large split models, reviewing references/specifications, revision-checked screen/UI authoring proposals, or distinguishing source validity from executable/runtime readiness. Do not use for rendering a model into an application or hand-written Arc/Chronicle code.
4
4
  license: MIT
5
5
  ---
6
6
 
@@ -15,6 +15,12 @@ It does not generate or run an application; Stage owns rendering/runtime admissi
15
15
  When selecting construct syntax or distinguishing source validity from execution, read the [language reference](references/language-reference.md) for constructs,
16
16
  the executable profile and a complete compiled model.
17
17
 
18
+ For screen-heavy work, keep the parity contract explicit:
19
+ discover the installed UI node schemas, propose/apply with revisions, then pass the
20
+ same model root or workspace export to validate/render/runtime checks. The full
21
+ workflow is `references/screen-authoring-workflow.md`; the UI syntax/support-level
22
+ contract is in `cratis-screenplay-ui-composition`.
23
+
18
24
  ## Verified product sources
19
25
 
20
26
  | Package | Version | Purpose |
@@ -100,6 +106,9 @@ can keep that entry point; use the project's supported installation channel.
100
106
  assertion gaps. These tools do not execute specifications or prove coverage.
101
107
  5. Echo `sourceRevision` on subsequent pages. Restart the query after drift;
102
108
  never combine pages from different snapshots.
109
+ 6. For screens, also discover the template, form, toolbar, package/icon and
110
+ outlet declarations that provide context. A component binding with no traced
111
+ data source is not a shortcut; fix the model source.
103
112
 
104
113
  Keep reads scoped to the relevant module, feature, slice or document. Do not
105
114
  request a whole merged AST when a bounded declaration/property query answers the
@@ -285,6 +294,13 @@ The ordinary CLI remains useful for whole-folder validation:
285
294
  cratis screenplay validate <model-folder> --warnings-as-errors
286
295
  ```
287
296
 
297
+ For end-to-end screen changes, record the MCP transcript in `.ai-work/` and then
298
+ run the render/runtime checks with the exact same root or workspace export. A
299
+ transcript that applies one source and renders another is not evidence; neither is
300
+ a generated app that silently drops authored UI. Use the Screenplay-owned canonical
301
+ corpus fixture path when it exists instead of copying `.play` examples into this
302
+ repository.
303
+
288
304
  Repair and refactoring guidance follows Screenplay main `fd18129`. The Cratis
289
305
  CLI bundles its own Screenplay version, so check the installed `tools/list`
290
306
  schemas before relying on a view or argument named here (for example
@@ -299,7 +315,7 @@ parameter, syntax node or downstream capability.
299
315
  | Commands, events, validation and concurrency | `cratis-screenplay-command-surface` |
300
316
  | Projections and reducers | `cratis-screenplay-projections` |
301
317
  | Read models, queries and screens | `cratis-screenplay-read-surface` |
302
- | Layouts, forms, contributions, themes and localization | `cratis-screenplay-ui-composition` |
318
+ | Layouts, forms, contributions, component bindings, toolbars, outlets, themes and localization | `cratis-screenplay-ui-composition` |
303
319
  | Captures, reactions and triggers | `cratis-screenplay-captures-and-reactions` |
304
320
  | Behavioral examples and assertions | `cratis-screenplay-specifications` |
305
321
  | Rendering/running an admitted model | `cratis-stage-rendering-and-sandbox` |
@@ -0,0 +1,164 @@
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
+ # End-to-end screen authoring workflow
5
+
6
+ ## Contents
7
+
8
+ - Inputs to keep identical
9
+ - 1. Open and discover through MCP
10
+ - 2. Propose the multi-file application change
11
+ - 3. Review and apply with revision checks
12
+ - 4. Validate authoring and executable readiness
13
+ - 5. Run/render using the same configuration
14
+ - 6. Use Screenplay-owned fixtures
15
+ - Transcript checklist
16
+
17
+ Use this workflow when an agent must create or iteratively edit the canonical
18
+ multi-file Screenplay application and then prove the same source reaches the
19
+ runtime/render path. It relies on the existing MCP discovery/proposal/apply loop;
20
+ it does not define a parallel persistence or editing API.
21
+
22
+ ## Inputs to keep identical
23
+
24
+ Record these once and pass the same values to every step:
25
+
26
+ - model root, application name and source identity;
27
+ - selected Screenplay tool (`screenplay mcp` or `cratis screenplay mcp`) and its
28
+ reported version/tool schemas;
29
+ - package/catalog source and versions for component packages and icons;
30
+ - Stage/CLI render destination and runtime target;
31
+ - workspace export path if a host uses `export-workspace` rather than source files.
32
+
33
+ If any step uses a different root, workspace export, package set or application
34
+ name, it is not parity evidence.
35
+
36
+ ## 1. Open and discover through MCP
37
+
38
+ 1. Start the MCP with a fixed root and send `initialize` plus
39
+ `notifications/initialized`.
40
+ 2. Call `tools/list` and keep the schemas. Do not hard-code the screen node shape.
41
+ 3. `open-workspace` and keep both source and catalog revisions.
42
+ 4. Use `describe-application`, `read-workspace view=diagnostics`,
43
+ `search-declarations`, `declaration-details` and `dependencies` to locate the
44
+ target screen, template, form, toolbar and package references.
45
+ 5. Use `syntax-schema` for every node family you will write: screen directives,
46
+ forms, template configuration, package/icon declarations, toolbar/directive
47
+ nodes and navigation/dialog destinations.
48
+
49
+ When the node does not exist in the schema, stop at an edit request that names the
50
+ missing authoring capability; do not invent text syntax.
51
+
52
+ ## 2. Propose the multi-file application change
53
+
54
+ Use one coherent `propose-ast` transaction for the slice of UI being changed.
55
+ For a new canonical application this usually creates or changes:
56
+
57
+ - the application/barrel document and imports;
58
+ - module/feature/slice documents;
59
+ - read models and queries that supply screen data;
60
+ - screen declarations with Level 1 data/actions;
61
+ - templates, components, forms, toolbar items, outlets and navigation bindings;
62
+ - localized `$strings` keys referenced by labels.
63
+
64
+ Use `referencePolicy: "Safe"` unless unresolved debt is explicitly part of the
65
+ accepted model. Structural edits use `CanonicalizeTouchedDocuments`; literal or
66
+ mapping-only changes may use `PreserveTrivia`.
67
+
68
+ ## 3. Review and apply with revision checks
69
+
70
+ Before applying:
71
+
72
+ - `read-proposal view=changes` and document before/after views;
73
+ - check introduced diagnostics and `droppedCommentCount`;
74
+ - compare every screen/form/toolbar binding against field lineage;
75
+ - reject proposals that silently drop a requested screen directive or package
76
+ setting;
77
+ - apply only with the before revisions returned by `open-workspace` / proposal.
78
+
79
+ After `apply`, discard old handles and revisions. Reopen/read the workspace and
80
+ verify the source and identity state changed as expected.
81
+
82
+ ## 4. Validate authoring and executable readiness
83
+
84
+ Run the whole model folder, not a single file:
85
+
86
+ ```shell
87
+ cratis screenplay validate <model-folder> --warnings-as-errors
88
+ ```
89
+
90
+ Then read executable diagnostics through MCP. Report separately:
91
+
92
+ - authoring validation (parsed plus source rules);
93
+ - executable readiness (MCP `executableReady` and blocking diagnostics);
94
+ - unsupported design-only UI (`PLAY0269` or later equivalent) without treating it
95
+ as a source error.
96
+
97
+ ## 5. Run/render using the same configuration
98
+
99
+ Rendering and runtime smoke checks use the same root or workspace export from the
100
+ MCP step:
101
+
102
+ ```shell
103
+ cratis render <model-folder> --name <ApplicationName> --destination <render-dir> -o json
104
+ ```
105
+
106
+ When a workspace envelope is the source of truth for the host, use the Stage/CLI
107
+ contract for `--workspace` and keep its application identity equal to the source
108
+ name. Build/tests/runtime checks are then the V5 steps owned by
109
+ `cratis-screenplay-render-and-gap-fill` and `cratis-stage-rendering-and-sandbox`.
110
+
111
+ For screens-release parity, the smoke check must assert that every authored
112
+ screen, template, component, form, toolbar, outlet, route and package/icon use is
113
+ represented in the generated plan or runtime diagnostics. A consumer that cannot
114
+ implement one reports a blocking diagnostic. Silent fallback to the default screen
115
+ composition is a failure.
116
+
117
+ ## 6. Use Screenplay-owned fixtures
118
+
119
+ The canonical multi-file application belongs to the Screenplay/conformance corpus,
120
+ not to the AI corpus. Link to the fixture path and run its published checks; do not
121
+ copy those `.play` files into `.cratis/ai/` or into a skill reference as a
122
+ maintained duplicate.
123
+
124
+ Verified screens-release vector (executed 2026-10-09 against the released
125
+ checkout toolchain):
126
+
127
+ - fixture root: `Source/DotNET/Screenplay.CanonicalCorpus/Corpus/ScreenComposition/v1/source/folder`
128
+ in the Screenplay repository;
129
+ - Screenplay repo tool (4.105.0 query-shapes era): `dotnet run --project
130
+ Source/DotNET/Tool -- <corpus-folder> --warnaserror` → exit `0`, `10 file(s)
131
+ compiled - 0 error(s), 0 warning(s)`;
132
+ - MCP (`dotnet run --project cli/Source/Cli -- screenplay mcp <corpus-folder>`,
133
+ CLI 3.40.0 bundling Screenplay 4.105.0): `sourceSuccess true`, `semanticSuccess
134
+ true`, `executableReady true`, 10 documents; a scratch `propose-rename`
135
+ transcript proved revision/catalog checks but apply did not complete because
136
+ the target handle contract rejected the supplied target shape;
137
+ - render (`dotnet run --project cli/Source/Cli -- render <corpus-folder> --name
138
+ ScreenComposition --destination <dir> -o json`, CLI 3.40.0 / Stage 4.49.1):
139
+ exit `0`, status `published`, `.cratis-render.json`, backend files, `.frontend`,
140
+ `scene.json` and `src/bindings.ts` written. The generated Scene includes Arc
141
+ `commandForm` components and query registrations.
142
+
143
+ Report a corpus the released compiler or renderer refuses as a capability/version
144
+ pairing gap with the exact diagnostics; never soften it to a pass.
145
+
146
+ When the fixture is not yet published, report the parity checks as blocked by the
147
+ fixture contract and continue verifying the independently authored guidance and
148
+ routing in this repository.
149
+
150
+ ## Transcript checklist
151
+
152
+ An MCP transcript is acceptable evidence only when it contains:
153
+
154
+ - `tools/list` with the version/tool schemas used;
155
+ - `open-workspace` revisions;
156
+ - discovery calls that found the target declarations;
157
+ - `syntax-schema` calls for each new UI node family;
158
+ - proposal id, `read-proposal` diagnostics, comment-loss result and before/after
159
+ revisions;
160
+ - `apply` with matching revisions;
161
+ - post-apply `read-workspace` diagnostics;
162
+ - the same root/workspace passed to validate/render/runtime checks.
163
+
164
+ Store the transcript in `.ai-work/` while working. Do not commit it.
@@ -126,6 +126,26 @@
126
126
  {
127
127
  "kind": "skill-contains",
128
128
  "value": "`PLAY0282`-`PLAY0294`"
129
+ },
130
+ {
131
+ "kind": "skill-contains",
132
+ "value": "references/screen-authoring-workflow.md"
133
+ },
134
+ {
135
+ "kind": "skill-contains",
136
+ "value": "syntax-schema"
137
+ },
138
+ {
139
+ "kind": "skill-contains",
140
+ "value": "same model root or workspace export"
141
+ },
142
+ {
143
+ "kind": "skill-contains",
144
+ "value": "Use the Screenplay-owned canonical\ncorpus fixture path"
145
+ },
146
+ {
147
+ "kind": "skill-contains",
148
+ "value": "silently drops authored UI"
129
149
  }
130
150
  ]
131
151
  }
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: cratis-screenplay-read-surface
3
- description: Declare the read side of a Cratis Screenplay `.play` model — the `readmodel` shape, `query` with `by`/`filter`/`scoped to`/`observable`/`performer`, and `screen` at its three levels of detail, plus how a bare name resolves across slices. Use when adding or changing a query, a read-model shape, or a screen in a `.play` model, or when deciding what a caller may narrow a result by. Do not use for how events fill the read model, and do not use for layouts, templates or forms.
3
+ description: Declare the read side of a Cratis Screenplay `.play` model — the `readmodel` shape, `query` with `by`/`filter`/`scoped to`/`observable`/`performer`, and `screen` at its three levels of detail, including the data/action contract that later component bindings, templates, forms, toolbars, routes and outlets consume. Use when adding or changing a query, a read-model shape, or a screen in a `.play` model, or when deciding what a caller may narrow a result by. Do not use for how events fill the read model, and do not use for layouts, templates or forms.
4
4
  license: MIT
5
5
  ---
6
6
 
@@ -217,6 +217,13 @@ Constructs: `title`, `data … via query … [by <param>]`, `action <Command>` w
217
217
  `on row-click navigate to <Screen> [by <param>]`, `summary <ReadModel>` with
218
218
  `field <property> label`, and `template <Name>` with slot bodies.
219
219
 
220
+ The screen's `data` and `action` declarations are the typed context for later UI
221
+ composition. Component `context`, toolbar parameters, dialog inputs, outlet routes
222
+ and manual form columns must all trace back to this screen contract, a form's
223
+ command, a selected item, or `$context`. If a generated app shows a default list
224
+ or empty panel because it could not consume one of those directives, treat that as
225
+ a dropped UI construct, not as an acceptable Level 1 screen.
226
+
220
227
  `on row-click navigate to …` is the one-line table navigation form. What a click,
221
228
  selection, submit or screen entry *does* beyond that — confirm, execute, refresh,
222
229
  open a dialog, branch on success or failure — is an interaction: an inline `on`
@@ -270,6 +277,9 @@ binding failures are errors.
270
277
  `then denied` case.
271
278
  - [ ] Each read model has exactly one builder and every field traces to an event.
272
279
  - [ ] No screen reference is left ambiguous or unresolved.
280
+ - [ ] Every UI binding that consumes screen data (component context, toolbar
281
+ parameter, dialog input, outlet route) has a source in the screen contract
282
+ or an explicitly provided template/form context.
273
283
 
274
284
  Read `references/versions.md` in `cratis-screenplay-toolchain` when choosing a tool, checking versions, or assessing executable and renderable subsets. Where a construct sits in the
275
285
  method: `cratis-screenplay-modeling-lifecycle` and `cratis-screenplay-slice-design`.
@@ -277,6 +287,6 @@ method: `cratis-screenplay-modeling-lifecycle` and `cratis-screenplay-slice-desi
277
287
  ## Route near misses
278
288
 
279
289
  - How events fill the read model: `cratis-screenplay-projections`.
280
- - Layouts, templates, forms, contributions, themes: `cratis-screenplay-ui-composition`.
290
+ - Layouts, templates, forms, component bindings, toolbars, outlets, contributions, packages and themes: `cratis-screenplay-ui-composition`.
281
291
  - Asserting query results: `cratis-screenplay-specifications`.
282
292
  - Deciding which read models exist: `cratis-screenplay-event-modeling`.
@@ -25,13 +25,14 @@ Version pins live once in `cratis-screenplay-toolchain` `references/versions.md`
25
25
 
26
26
  | Source | Pin | Used for |
27
27
  | --- | --- | --- |
28
- | cratis CLI | `v3.28.3` (`8b43fef`) | `cratis render` options, exit codes, publication receipt, bundled Screenplay 4.66.0 and Stage 4.24.2 (3.28.2 bundled Stage 4.24.1; before 3.28.2: 4.60.1 and 4.24.0) |
29
- | Stage | `v4.24.2` (`32dcac4`) | admission (`STAGE-ESM-*`), ownership manifest, `Customizations/` seams, Debug-only specifications |
30
- | Screenplay | `v4.68.0` (`79801bf`) | standalone compiler for V1 to V3 (admits ESM v7); binding codes `PLAY0268` and the code-attachment rules, read at `v4.66.0` |
31
- | Rendered apps | Arc `22.25.0`, Chronicle `19.8.1` | `[ProtectedDecision]` (Arc 22.39.0 and later) is not available in code written into one |
28
+ | cratis CLI | `3.40.0` (checkout `082df13`) | `cratis render` options, exit codes, publication receipt; `Directory.Packages.props` pins Stage 4.49.1 and bundled Screenplay 4.105.0, `cratis/stage:4.49.1` as the default run image. Reading baselines: 3.39.0 (Stage 4.43.0 / Screenplay 4.93.0) and 3.28.3 (`8b43fef`) |
29
+ | Stage | `4.49.1` (worktree `f64c3da`) | admission (`STAGE-ESM-*`, and `PLAY0268` render refusals surfaced by the CLI), ownership manifest, `Customizations/` seams, Debug-only specifications, generated query specs and guarded-action safety. Reading baselines: 4.43.0 and `v4.24.2` (`32dcac4`) |
30
+ | Screenplay | `4.105.0` query-shapes release | standalone compiler for V1 to V3; binding codes `PLAY0268` and the code-attachment rules, read at `v4.66.0`; CLI 3.40.0 bundles 4.105.0 and renders the canonical screen corpus |
31
+ | Rendered apps | Arc `22.25.0`, Chronicle `19.8.1`, Scene packages | `[ProtectedDecision]` (Arc 22.39.0 and later) is not available in code written into one; verify the generated package set because the 4.49.1 corpus render observed Scene 4.10 packages even though the release vector names Scene 4.12.0 |
32
32
 
33
33
  Facts were read at those tags and `cratis render` was run at 3.28.2 and 3.28.3 for the worked example
34
- (`references/worked-example.md`). The renderer facts are owned by `cratis-stage-rendering-and-sandbox`;
34
+ (`references/worked-example.md`); at CLI 3.40.0 it was run over the canonical `ScreenComposition`
35
+ corpus and published successfully. The renderer facts are owned by `cratis-stage-rendering-and-sandbox`;
35
36
  this skill links them and never restates the admission table.
36
37
 
37
38
  ## When to use / when not
@@ -110,8 +111,11 @@ import-only root file.
110
111
  the generated types the adapter touches (bounded), write the adapter behind a small interface
111
112
  with no business decisions, rebuild, retest. Never edit a managed file; never add behaviour the
112
113
  model does not state. Detail: `references/delivery-protocol.md` section 4.
113
- 7. **Report authored-UI omissions.** Stage renders the default composition only; list each
114
- modeled screen, form, layout, theme and persona view as "not rendered".
114
+ 7. **Report authored-UI parity.** On Stage 4.24, Stage renders the default composition only;
115
+ list each modeled screen, form, layout, template, toolbar, component, outlet, route, package/icon
116
+ use, theme and persona view as "not rendered". On a newer screens-capable Stage/CLI, require
117
+ explicit plan/runtime evidence for each authored UI element or a blocking diagnostic; silent
118
+ fallback to default composition is a failure.
115
119
  8. **Drift:** compare the published manifest's `semanticRevision` with a fresh render of the
116
120
  current model under the same inputs (`references/drift-and-ledger.md`).
117
121
  9. **Hand off** the packet: verdict lines, spec mapping, edit requests for the modeler, ledger
@@ -169,6 +173,7 @@ Before reporting done:
169
173
  - A passing test does not claim runtime guarantees (namespace, subject, constraint scope, guarded
170
174
  reads, migrations, replay) or omitted UI were delivered.
171
175
  - Re-render: drift line present. `Customizations/` changes name the seam and the model element served.
176
+ - Screen delivery: every authored screen/template/form/toolbar/component/outlet/route/package-icon use is either present in generated/runtime evidence or listed as not rendered/unsupported with the responsible tool version.
172
177
 
173
178
  ## Route near misses
174
179
 
@@ -44,6 +44,8 @@
44
44
  "value": "STAGE-ESM-026"
45
45
  },
46
46
  { "kind": "skill-contains", "value": "Generated command values and `returns` responses (ESM v7) bind and run" },
47
- { "kind": "skill-contains", "value": "tracked in Stage#201" }
47
+ { "kind": "skill-contains", "value": "tracked in Stage#201" },
48
+ { "kind": "skill-contains", "value": "authored-UI parity" },
49
+ { "kind": "skill-contains", "value": "responsible tool version" }
48
50
  ]
49
51
  }
@@ -25,8 +25,9 @@ When choosing or upgrading a tool, or checking version-specific capabilities, re
25
25
  | Package | Version | Purpose |
26
26
  | --- | --- | --- |
27
27
  | `Cratis.Screenplay.Tool` | `4.68.0` (`79801bf`) | standalone compiler, binder and MCP server; admits ESM v7 (generated values and responses) |
28
- | cratis CLI | `3.28.3` (`8b43fef`) | bundles Screenplay 4.66.0 (ESM v1 to v6) and Stage 4.24.2 (3.28.2: Stage 4.24.1; 3.28.1 and earlier bundled 4.60.1 and 4.24.0); `render`, `generate`, `prologue`, and the same compiler for `screenplay validate` and `screenplay mcp` |
29
- | Stage | `4.24.2` (`32dcac4`) | renders ESM v1 to v4 (C# backend plus a React/Vite scaffold on Arc 22.25.0); an evolved event is refused with `STAGE-ESM-026`; the cratis CLI bundles it since 3.28.3 |
28
+ | cratis CLI | `3.40.0` (checkout `082df13`) | `Directory.Packages.props` pins `StageVersion` 4.49.1 and `ScreenplayVersion` 4.105.0; the `cratis run` container defaults to `cratis/stage` at the rendered Stage version (`cratis/stage:4.49.1`). Reading baselines: 3.39.0 with Stage 4.43.0 / Screenplay 4.93.0; 3.28.3 (`8b43fef`) with Screenplay 4.66.0 and Stage 4.24.2 |
29
+ | Screenplay | `4.105.0` query-shapes release | admits the canonical `ScreenComposition` corpus v1 with zero authoring diagnostics (`dotnet run --project Source/DotNET/Tool -- <corpus> --warnaserror` → `10 file(s) compiled - 0 error(s), 0 warning(s)`); the CLI 3.40.0 MCP reports `executableReady true` for the same corpus |
30
+ | Stage | `4.49.1` (worktree `f64c3da`) | renders the canonical screen corpus through CLI 3.40.0 and publishes Scene output with Arc `CommandForm` shells plus query bindings. The generated app observed locally still pins Scene 4.10 packages, so check the generated package set before claiming Scene 4.12 runtime parity. Reading baselines: 4.43.0 and 4.24.2 (`32dcac4`) |
30
31
  | Arc / Chronicle | `22.50.5` / `19.32.0` | code-level facts cited here |
31
32
 
32
33
  Facts were read with `git show <tag>:<path>` and probed on the installed tools. Behaviour
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: cratis-screenplay-ui-composition
3
- description: Compose the user interface of a Cratis Screenplay `.play` model — `layout` and its responsive `arrangement`, `screen template` and `dialog template`, command-bound `form` declarations, navigation `contribute` blocks, interaction `behavior`/`on`/`uses` wiring, `ui profile`, `theme`, localized `$strings`, and `file` references. Use when declaring the application shell, a reusable screen shape, a command form, a navigation entry, what a click or submit does, or theming in a `.play` model. Do not use for a screen's own data and actions.
3
+ description: Compose the user interface of a Cratis Screenplay `.play` model — `layout` and responsive `arrangement`, screen/dialog templates, component data-context bindings, exposed template configuration, command forms and columns, navigation contributions, hierarchical outlets/routes, toolbar dialogs, package/icon selection, interaction `behavior`/`on`/`uses` wiring, `ui profile`, `theme`, localized `$strings`, and `file` references. Use when declaring the application shell, reusable screen shapes, component/package configuration, command forms, navigation/toolbars, click or submit behavior, or theming. Do not use for a screen's own data and actions.
4
4
  license: MIT
5
5
  ---
6
6
 
@@ -51,6 +51,13 @@ Every construct on this page is deferred from the executable model with
51
51
  information `PLAY0269`: it never blocks binding, and it is not evidence that a
52
52
  target renders it.
53
53
 
54
+ The screens-release surface adds component data-context bindings, exposed template
55
+ configuration, package/icon catalogs, manual form columns, hierarchical outlets,
56
+ routes, toolbars and dialog destinations, each with a separate support level
57
+ (authoring accepted, executable admitted, runtime implemented). Discover the
58
+ installed shape through MCP `syntax-schema`; details:
59
+ `references/screen-composition-contract.md`.
60
+
54
61
  These constructs went unhighlighted and uncompleted by the Monaco and VS Code
55
62
  language service until `Cratis/Screenplay#199` gave every construct the parser
56
63
  dispatches on a keyword entry. On an older language-service version they still
@@ -192,7 +199,7 @@ directive tree the way a `table` or `summary` does — it is found by its
192
199
  `for <Command>` binding wherever that command is invoked. A form sits at module
193
200
  level, so it disambiguates by module rather than by feature or slice.
194
201
 
195
- ## `contribute` — navigation from elsewhere
202
+ ## `contribute`, toolbars, outlets and routes — navigation from elsewhere
196
203
 
197
204
  Excerpt, inside a `module` or `feature`; `Navigation` is the contribution point
198
205
  the layout above declares.
@@ -217,7 +224,11 @@ same typed navigate binding a screen action uses.
217
224
 
218
225
  ⚠️ The v4.31.0 baseline, re-verified at v4.66.0, ships `navigate`, `label` and `order` only. Grouping beyond a
219
226
  flat ordered list, and an explicit override for when nearest-enclosing is not the
220
- point you mean, are deliberately left for later.
227
+ point you mean, are deliberately left for later. The screens-release vector
228
+ (Screenplay 4.105.0, canonical `ScreenComposition` corpus v1) adds typed screen
229
+ composition; CLI 3.40.0 renders it through Stage 4.49.1. Report a refused form as
230
+ a capability gap, never a flat-list fallback, and keep browser/Studio production
231
+ proof separate from render publication.
221
232
 
222
233
  ## Interactions — what a click does
223
234
 
@@ -324,6 +335,8 @@ theme Nordic
324
335
  - `packages` are listed **in override-priority order** — a later package's `Button`
325
336
  shadows an earlier one's — and `core`, the built-in vocabulary, is always the
326
337
  final fallback.
338
+ - Component package metadata is owned by the package/runtime catalog; the model
339
+ selects packages and icons, never copying metadata into `.play`.
327
340
  - `compatible with` lists the packages a theme actually supports, each at most
328
341
  once. A profile selecting a theme not declared compatible with one of its own
329
342
  packages gets a compile-time **warning**.
@@ -394,13 +407,17 @@ The rules:
394
407
  - [ ] No `file` reference is doing work the declaration should be doing.
395
408
  - [ ] Every click, submit and screen entry that does something has an `on` or
396
409
  `uses`; continuations sit only on actions that can fail.
410
+ - [ ] Component bindings, exposed template values, manual form columns, toolbar items, outlets and routes all trace to typed data; no runtime fallback counts as delivery. Report authoring acceptance, executable admission and runtime
411
+ implementation separately.
397
412
 
398
413
  ## Route near misses
399
414
 
400
415
  - A screen's own data, actions and name resolution: `cratis-screenplay-read-surface`.
416
+ - Revision-checked MCP edits `cratis-screenplay-model-authoring` (`references/screen-authoring-workflow.md`).
401
417
  - Application triggers and reactions: `cratis-screenplay-captures-and-reactions`.
402
418
  - Reviewing the whole flow's design: `cratis-screenplay-model-review`.
403
419
  - Deriving wireframes from the model (step 4): `cratis-screenplay-event-modeling`.
420
+ - Rendering/omissions: `cratis-stage-rendering-and-sandbox`, `cratis-screenplay-render-and-gap-fill`.
404
421
  - Building the actual React application: `cratis-arc-react-page`, `cratis-components-styling`.
405
422
 
406
423
  ## Lineage
@@ -0,0 +1,205 @@
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
+ # Screen composition contract
5
+
6
+ ## Contents
7
+
8
+ - Support levels
9
+ - Data context and component bindings
10
+ - Exposed template configuration
11
+ - Forms and columns
12
+ - Packages, icons and template catalogs
13
+ - Routes, outlets, toolbars and dialogs
14
+ - Design-time generation results
15
+ - Canonical fixture ownership
16
+
17
+ This reference is the authoring checklist for the screens-release UI surface. It
18
+ records the contract an agent must look for in the installed Screenplay tool and
19
+ in peer runtime/render contracts; it is not a second language definition. When a
20
+ syntax form below is not present in `syntax-schema` or does not compile with the
21
+ project's selected Screenplay version, report the support level instead of
22
+ hand-writing an alternate shape.
23
+
24
+ ## Support levels
25
+
26
+ - **Authoring accepted**: the Screenplay parser, printer and MCP `syntax-schema`
27
+ know the node. It may still be deferred from executable admission.
28
+ - **Executable admitted**: MCP executable diagnostics report no blocking errors for
29
+ the construct in the current compiler.
30
+ - **Runtime implemented**: Stage, Studio or Scene consumes the authored construct
31
+ without dropping it, silently falling back or replacing it with a default.
32
+
33
+ Keep those three lines separate in reports. Correct an old limitation only when
34
+ the package/version you are using proves the new level. Verified against the
35
+ screens-release vector (2026-10-09): Screenplay 4.105.0 accepts the canonical
36
+ `ScreenComposition` corpus v1 with zero authoring diagnostics; CLI 3.40.0’s
37
+ bundled Screenplay 4.105.0 reports `executableReady true`; `cratis render` with
38
+ Stage 4.49.1 publishes Scene output with Arc `commandForm` shells and query
39
+ registrations. Runtime/browser behavior, Studio Play and production deploy are
40
+ separate checks; Studio 0.136.3 production deploy proof remains pending behind the
41
+ stale Pulumi lock. On Stage 4.24.2 or cratis 3.28.x renderers, authored screens
42
+ are still reported as omitted/default composition.
43
+
44
+ ## Data context and component bindings
45
+
46
+ A component instance is a presentation of a typed Screenplay data context. The
47
+ proposed syntax is:
48
+
49
+ ```screenplay
50
+ component <Package.Component> <instanceName>
51
+ context <binding>
52
+ property <property.path> from <binding>
53
+ property <property.path> = "literal"
54
+ icon <IconName>
55
+ presentation <key> "value"
56
+ exposes <name> from <binding>
57
+ outlet <name>
58
+ ...nested screen directives...
59
+ on click
60
+ open dialog <DialogTemplate>
61
+ with <name> from <binding>
62
+ ```
63
+
64
+ Rules for agents:
65
+
66
+ - Discover the exact node shape through `syntax-schema` before proposing it; do
67
+ not infer JSON members from this prose.
68
+ - Every `context` and every `from` binding must trace to a screen `data`, command
69
+ form value, route parameter, selected item, dialog input, `$context` value or an
70
+ exposed template value. An untraced binding is a model defect.
71
+ - `property ... = "literal"` is static presentation configuration. A dynamic value
72
+ uses `from` and keeps its source visible.
73
+ - `icon` names a package-qualified or profile-selected icon. Do not hard-code a
74
+ renderer-specific icon library when the UI profile has not selected it.
75
+ - `presentation` keys are renderer/package inputs. They are authoring data, not a
76
+ styling escape hatch; unknown keys must be surfaced by the consumer contract,
77
+ not ignored.
78
+ - An `outlet` is a nested replacement surface; it can hold screen directives and
79
+ can be targeted by navigation or a dialog route when the runtime contract
80
+ supports it.
81
+
82
+ ## Exposed template configuration
83
+
84
+ Reusable templates can expose configuration and typed outlets:
85
+
86
+ ```screenplay
87
+ screen template MasterDetail
88
+ category workflow
89
+ type master-detail
90
+ exposes selectedInvoice InvoiceId
91
+ outlet toolbar
92
+ sidebar
93
+ main
94
+ ```
95
+
96
+ - `category` is used for template discovery and scope-aware catalogs. Suggested
97
+ categories are stable product taxonomy, not renderer folders.
98
+ - `type` is the template kind a runtime/package recognizes.
99
+ - `exposes` declares values that slot bodies or nested components may bind to; a
100
+ use site must provide or derive each required exposed value.
101
+ - `outlet` declares an addressable child surface. It is different from a static
102
+ slot such as `sidebar` or `main`.
103
+
104
+ A module, feature or slice may select a default template for contained screens:
105
+
106
+ ```screenplay
107
+ module Sales
108
+ template MasterDetail
109
+ ```
110
+
111
+ Treat this as inherited UI structure, not as copied directives. Check the
112
+ installed parser/printer supports the scoped `template` directive before using it.
113
+
114
+ ## Forms and columns
115
+
116
+ A form remains bound to exactly one command. The screens-release additions make
117
+ its generated fields explicit when the automatic shape is not enough:
118
+
119
+ ```screenplay
120
+ form RegisterInvoiceForm for RegisterInvoice
121
+ columns auto
122
+ ```
123
+
124
+ or:
125
+
126
+ ```screenplay
127
+ form RegisterInvoiceForm for RegisterInvoice
128
+ columns manual
129
+ column invoiceNumber label "Invoice #"
130
+ column total label "Total"
131
+ ```
132
+
133
+ Use `auto` when the command shape is the form. Use `manual` when order, labels,
134
+ visibility or grouping matters. Every manual column is a command property; a
135
+ missing command property is fixed on the command, not by inventing a UI-only
136
+ field.
137
+
138
+ ## Packages, icons and template catalogs
139
+
140
+ `ui profile` owns package priority and icon sets:
141
+
142
+ ```screenplay
143
+ ui profile Desktop
144
+ target platform web
145
+ layout AppShell
146
+ packages
147
+ Product.DesignSystem
148
+ Cratis.Components
149
+ icons Product.Icons
150
+ ```
151
+
152
+ - Package order is still override-priority order. Later packages shadow earlier
153
+ ones only if the runtime contract says so; otherwise report an ambiguity.
154
+ - Component package metadata (kind, icon, scope, applicability and templates) is
155
+ owned by the Scene/runtime package catalog. In the model, refer to it by package
156
+ and component names; do not copy catalog JSON into `.play`.
157
+ - Template categories are scope-aware: application templates, module templates and
158
+ package templates can share labels. Qualify where the tool reports ambiguity.
159
+
160
+ ## Routes, outlets, toolbars and dialogs
161
+
162
+ Navigation and toolbar items target the same typed destination contract: screen,
163
+ named outlet, optional route parameters, and optionally a dialog.
164
+
165
+ ```screenplay
166
+ toolbar InvoiceToolbar
167
+ item register action RegisterInvoice
168
+ label "Register"
169
+ icon Add
170
+ item details navigate to InvoiceDetails
171
+ parameter invoiceId from selected.invoiceId
172
+ ```
173
+
174
+ Use a toolbar for reusable groups of actions; use inline `action` when a single
175
+ screen owns the button. Dialog opening stays an interaction (`on click open dialog
176
+ <DialogTemplate>`) unless the installed language exposes a dedicated toolbar-dialog
177
+ node. A dialog destination must state every input with a typed `with`/`parameter`
178
+ binding; a runtime default is not an authored contract.
179
+
180
+ ## Design-time generation results
181
+
182
+ Generated design-time output is evidence only when it is compared with the model:
183
+
184
+ - every screen, template, form, toolbar, component instance and outlet has an
185
+ entry in the generated plan/report;
186
+ - every unsupported construct is reported as a blocking diagnostic, not silently
187
+ dropped;
188
+ - the same model root, workspace export and package set are used by MCP, Studio,
189
+ Stage and the runtime smoke test;
190
+ - package versions and image tags are printed with the check.
191
+
192
+ A screenshot, Storybook story, or rendered app that omits a modeled directive is
193
+ not a partial pass. It is either an unsupported construct with a diagnostic, or a
194
+ bug in the consumer.
195
+
196
+ ## Canonical fixture ownership
197
+
198
+ Use the Screenplay-owned canonical corpus: the positive typed screen case lives
199
+ at `Source/DotNET/Screenplay.CanonicalCorpus/Corpus/ScreenComposition/v1/source/folder`
200
+ in the Screenplay repository. It demonstrates the released syntax for screens
201
+ with templates (`MasterDetail`), `data … via query` bindings, typed table
202
+ columns, `on row-click navigate to <Screen> by <param>`, sections, conditional
203
+ `when … execute … with … from …` actions and localized labels.
204
+ The AI corpus may link to that path and name the expected checks, but must not copy
205
+ the `.play` source into `.cratis/ai/` or maintain a second canonical application.
@@ -3,21 +3,105 @@
3
3
  "input": "Declare the application shell, a screen template and a command form.",
4
4
  "fixtures": [],
5
5
  "assertions": [
6
- { "kind": "skill-contains", "value": "main `fd18129`" },
7
- { "kind": "skill-contains", "value": "produces event InvoiceCancelled" },
8
- { "kind": "skill-contains", "value": "invoiceId = $eventSourceId" },
9
- { "kind": "skill-contains", "value": "InvoiceStatusView optional" },
10
- { "kind": "skill-contains", "value": "An existing success continuation does not imply a response contract" },
11
- { "kind": "skill-contains", "value": "Look first for the project's existing `.play` files" },
12
- { "kind": "skill-contains", "value": "`cratis ai install` manages `.cratis/ai/`, never model files" },
13
- { "kind": "skill-contains", "value": "A form is discovered, not referenced" },
14
- { "kind": "skill-contains", "value": "declares no\n`fits slot`" },
15
- { "kind": "skill-contains", "value": "override-priority order" },
16
- { "kind": "skill-contains", "value": "A declared `trigger` is not a UI event" },
17
- { "kind": "skill-contains", "value": "**Loaded is not run.**" },
18
- { "kind": "skill-contains", "value": "belong only on actions that can fail" },
19
- { "kind": "skill-contains", "value": "## Compose in this order" },
20
- { "kind": "skill-contains", "value": "**Level 1 for every screen in the flow first**" },
21
- { "kind": "skill-contains", "value": "**Read before editing.**" }
6
+ {
7
+ "kind": "skill-contains",
8
+ "value": "main `fd18129`"
9
+ },
10
+ {
11
+ "kind": "skill-contains",
12
+ "value": "produces event InvoiceCancelled"
13
+ },
14
+ {
15
+ "kind": "skill-contains",
16
+ "value": "invoiceId = $eventSourceId"
17
+ },
18
+ {
19
+ "kind": "skill-contains",
20
+ "value": "InvoiceStatusView optional"
21
+ },
22
+ {
23
+ "kind": "skill-contains",
24
+ "value": "An existing success continuation does not imply a response contract"
25
+ },
26
+ {
27
+ "kind": "skill-contains",
28
+ "value": "Look first for the project's existing `.play` files"
29
+ },
30
+ {
31
+ "kind": "skill-contains",
32
+ "value": "`cratis ai install` manages `.cratis/ai/`, never model files"
33
+ },
34
+ {
35
+ "kind": "skill-contains",
36
+ "value": "A form is discovered, not referenced"
37
+ },
38
+ {
39
+ "kind": "skill-contains",
40
+ "value": "declares no\n`fits slot`"
41
+ },
42
+ {
43
+ "kind": "skill-contains",
44
+ "value": "override-priority order"
45
+ },
46
+ {
47
+ "kind": "skill-contains",
48
+ "value": "A declared `trigger` is not a UI event"
49
+ },
50
+ {
51
+ "kind": "skill-contains",
52
+ "value": "**Loaded is not run.**"
53
+ },
54
+ {
55
+ "kind": "skill-contains",
56
+ "value": "belong only on actions that can fail"
57
+ },
58
+ {
59
+ "kind": "skill-contains",
60
+ "value": "## Compose in this order"
61
+ },
62
+ {
63
+ "kind": "skill-contains",
64
+ "value": "**Level 1 for every screen in the flow first**"
65
+ },
66
+ {
67
+ "kind": "skill-contains",
68
+ "value": "**Read before editing.**"
69
+ },
70
+ {
71
+ "kind": "skill-contains",
72
+ "value": "references/screen-composition-contract.md"
73
+ },
74
+ {
75
+ "kind": "skill-contains",
76
+ "value": "component data-context bindings"
77
+ },
78
+ {
79
+ "kind": "skill-contains",
80
+ "value": "exposed template configuration"
81
+ },
82
+ {
83
+ "kind": "skill-contains",
84
+ "value": "manual form columns"
85
+ },
86
+ {
87
+ "kind": "skill-contains",
88
+ "value": "package/icon catalogs"
89
+ },
90
+ {
91
+ "kind": "skill-contains",
92
+ "value": "hierarchical outlets"
93
+ },
94
+ {
95
+ "kind": "skill-contains",
96
+ "value": "toolbar"
97
+ },
98
+ {
99
+ "kind": "skill-contains",
100
+ "value": "runtime fallback"
101
+ },
102
+ {
103
+ "kind": "skill-contains",
104
+ "value": "authoring acceptance, executable admission and runtime\n implementation separately"
105
+ }
22
106
  ]
23
107
  }
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: cratis-stage-rendering-and-sandbox
3
- description: "What Cratis Stage and `cratis render` actually do with a Screenplay `.play` model today: the narrow model shape Stage 4.24 admits and refuses (STAGE-ESM-*), what it emits (C# Arc/Chronicle backend, React/Vite scaffold, Debug specifications), managed publication, `--force` and recovery, the unmanaged `Customizations/` seam, and the `cratis/stage` sandbox and `cratis/stage-specrunner` job. Use when deciding whether Stage can render a model, reading a blocked render, re-rendering safely, or running the sandbox. Not for: authoring the model (use `cratis-screenplay-model-authoring`) or the render and gap-fill workflow (use `cratis-screenplay-render-and-gap-fill`)."
3
+ description: "What Cratis Stage and `cratis render` actually do with a Screenplay `.play` model today: the narrow model shape Stage 4.49.1 admits and refuses (`STAGE-ESM-*`, `PLAY0268` render refusals), what it emits (C# Arc/Chronicle backend, React/Vite scaffold with Arc `CommandForm` shell emission over Scene 4.12 typed bindings, Debug specifications), managed publication, `--force` and recovery, authored-UI omission/parity checks, the unmanaged `Customizations/` seam, and the `cratis/stage` sandbox and `cratis/stage-specrunner` job. Use when deciding whether Stage can render a model, reading a blocked render, re-rendering safely, checking generated/runtime screen parity, or running the sandbox. Not for: authoring the model (use `cratis-screenplay-model-authoring`) or the render and gap-fill workflow (use `cratis-screenplay-render-and-gap-fill`)."
4
4
  license: MIT
5
5
  ---
6
6
 
@@ -16,19 +16,31 @@ exactly produces **no artifacts at all**, never thinner ones. Read the admission
16
16
  before promising that a model can be rendered, and render it to find out: the source
17
17
  reading in this skill is not a render result.
18
18
 
19
+ Authored UI has its own parity hazard. Stage 4.24 rendered a default React/Vite
20
+ scaffold and did not prove that modeled screens, templates, forms, toolbars,
21
+ components, outlets, package icons or routes were implemented. Stage 4.49.1 (via
22
+ CLI 3.40.0, bundling Screenplay 4.105.0) renders the canonical screen corpus and
23
+ publishes Scene 4.12 output with Arc `CommandForm` shells and query bindings;
24
+ the sandbox image is `cratis/stage:4.49.1`. Runtime/browser parity is still a
25
+ separate claim: require a generated plan or artifact entry for every authored UI
26
+ construct, and report every unsupported UI directive as a diagnostic.
27
+ Silent fallback to a default screen is a failure, not a partial render.
28
+
19
29
  ## Specification runner exit codes
20
30
 
21
31
  `cratis/stage-specrunner` exit `0` means the run completed and the results file was written **even when a specification
22
32
  failed**: read the outcomes. `1` is a missing or uncompilable input, `2` a missing required
23
33
  argument or an invalid semantic option.
24
34
 
35
+
25
36
  ## Verified product sources
26
37
 
27
38
  | Source | Pin | Notes |
28
39
  | --- | --- | --- |
29
- | Stage | `v4.24.2` (`32dcac4`) | Renderer, sandbox host, spec runner; pins Screenplay 4.66.0, Arc 22.50.5, Chronicle 19.32.0; 4.24.2 admits ESM v4 models and refuses evolved events (`STAGE-ESM-025`, `-026`) (`v4.24.1`, `2cadf59`, admitted ESM v1 to v3; v4.24.0, `fa48546`, pinned Screenplay 4.60.0) |
30
- | cratis CLI | `v3.28.3` (`8b43fef`) | `cratis render`, `cratis run`; bundles Stage 4.24.2 and Screenplay 4.66.0 (Cratis/cli#260; `Directory.Packages.props` at the tag). v3.28.2 (`141c499`, Cratis/cli#253, shipped in Cratis/cli#257) bundled Stage 4.24.1 and Screenplay 4.66.0. v3.28.1 and earlier (v3.28.0 and v3.28.1 verified in `Directory.Packages.props`) bundled Stage 4.24.0 and Screenplay 4.60.1 |
31
- | Rendered applications | Arc `22.25.0`, Chronicle `19.8.1`, .NET 10 | The scaffold profile (`CratisBackendApplicationScaffoldProfile.cs`), unchanged at 4.24.1 although Stage itself builds on Arc 22.50.5 and Chronicle 19.32.0; frontend Components 4.14.0, Scene 4.2.0 |
40
+ | Stage | `4.49.1` (worktree `f64c3da`) | Renderer, sandbox host, spec runner; Stage 4.49.0 generated query specs and 4.49.1 adds the guarded-action safety fix. It consumes Scene 4.12 in the released vector and renders Arc `CommandForm` shells plus query bindings for the canonical screen corpus. Earlier reading baselines: `4.43.0` (Scene 4.10, `b9a7c76`) and `v4.24.2` (`32dcac4`) |
41
+ | cratis CLI | `3.40.0` (checkout `082df13`) | `cratis render`, `cratis run`; `Directory.Packages.props` pins `StageVersion` **4.49.1** and `ScreenplayVersion` **4.105.0**, and the `cratis run` container defaults to `cratis/stage:4.49.1`. Earlier reading baselines: 3.39.0 (`6b2beb5`) with Stage 4.43.0 / Screenplay 4.93.0; `v3.28.3` (`8b43fef`) with Stage 4.24.2 / Screenplay 4.66.0; `v3.28.2` (`141c499`, Cratis/cli#253) |
42
+ | Screenplay | `4.105.0` query-shapes release | The canonical `ScreenComposition` corpus compiles `0 error(s), 0 warning(s)`, the MCP reports `sourceSuccess true`, `semanticSuccess true` and `executableReady true`, and CLI 3.40.0 renders it. Earlier baseline: 4.97.0 admitted what the CLI 3.39.0 bundle refused |
43
+ | Rendered applications | Arc, Chronicle, Scene 4.12.0, .NET 10 | The Stage 4.49.1 render of the canonical corpus published `.cratis-render.json`, backend artifacts, `.frontend/**`, `scene.json`, `src/bindings.ts`, and package pins including Scene 4.10 packages in the generated app observed locally; verify the generated package set for each render before claiming a newer frontend runtime |
32
44
 
33
45
  Everything below was read at those tags (`Source/Rendering.Cratis/**`, `README.md`,
34
46
  `Documentation/**` in Stage; `Source/Cli/Commands/Render/**` and
@@ -36,8 +48,11 @@ Everything below was read at those tags (`Source/Rendering.Cratis/**`, `README.m
36
48
  [references/render-example.md](references/render-example.md) was rendered, built and
37
49
  tested with cratis 3.28.2 (re-run on 3.28.3). Read `references/render-example.md` when you need a complete renderable model and the observed render, build, and test results. The full version table (Screenplay 4.66.0, Arc 22.50.5,
38
50
  Chronicle 19.32.0 and the tool split) is in the `cratis-screenplay-toolchain` skill,
39
- `references/versions.md`. Rendered apps are on Arc 22.25.0, so `[ProtectedDecision]`
40
- (Arc 22.39.0 and later) is not available in code written into one.
51
+ `references/versions.md`. Rendered apps are on Arc `22.25.0`, so `[ProtectedDecision]`
52
+ (Arc 22.39.0 and later) is not available in code written into one. Screen UI render parity for the canonical corpus is verified at CLI 3.40.0 / Stage
53
+ 4.49.1 for publication, command-form shell emission and query bindings. Browser
54
+ runtime behavior, Studio Play and production deploy remain separate checks; Studio 0.136.3
55
+ production deploy proof is pending the stale Pulumi lock.
41
56
 
42
57
  ## Model-first rule
43
58
 
@@ -166,6 +181,15 @@ Modeled specifications become xunit classes compiled in **Debug only**
166
181
  `<slice namespace>.when_<snake>` (so `when_x.when_x`), queries `when_<snake>_is_queried`,
167
182
  read models `when_<snake>_is_projected`.
168
183
 
184
+ For UI, record what the generated output claims separately from what the model
185
+ authored. On Stage 4.24 the generated scaffold is not screen parity evidence.
186
+ On Stage 4.49.1 the canonical corpus publishes and `scene.json` contains Arc
187
+ `commandForm` components while `src/bindings.ts` registers the modeled commands
188
+ and queries. That is render-output evidence, not browser or Studio production
189
+ proof. Require an explicit plan, manifest entry or generated artifact for each
190
+ screen/template/form/toolbar/component/outlet/route/package-icon use, or a
191
+ blocking diagnostic explaining why it was not generated.
192
+
169
193
  ## Sandbox and specification runner
170
194
 
171
195
  `cratis run [PATH]` (Docker required) starts `cratis/stage` on the folder or file: Stage
@@ -199,6 +223,9 @@ Read `references/sandbox-and-specrunner.md` before launching either container or
199
223
  (same input, same bytes and hashes), which is not a review.
200
224
  - Sandbox expectations account for unenforced validation, authorization and query
201
225
  authorization on the default engine.
226
+ - Runtime screen smoke coverage uses the same model root or workspace export as
227
+ `cratis render`, names package/image versions, and fails on dropped authored UI
228
+ or silent default composition.
202
229
 
203
230
  ## Route near misses
204
231
 
@@ -22,6 +22,9 @@
22
22
  { "kind": "skill-contains", "value": "STAGE-ESM-026" },
23
23
  { "kind": "skill-contains", "value": "Stage 4.24.2 admits ESM v4" },
24
24
  { "kind": "skill-contains", "value": "`v4.24.2`" },
25
- { "kind": "skill-contains", "value": "Cratis/cli#253" }
25
+ { "kind": "skill-contains", "value": "Cratis/cli#253" },
26
+ { "kind": "skill-contains", "value": "Silent fallback to a default screen is a failure" },
27
+ { "kind": "skill-contains", "value": "package/image versions" },
28
+ { "kind": "skill-contains", "value": "dropped authored UI" }
26
29
  ]
27
30
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cratis/pi",
3
- "version": "7.14.6",
3
+ "version": "7.15.1",
4
4
  "description": "Configuration-aware Cratis AI integration for Pi",
5
5
  "type": "module",
6
6
  "files": [