@cratis/pi 7.48.0 → 7.48.3

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 (97) hide show
  1. package/package/corpus/harnesses/copilot/instructions/local-work-artifacts.instructions.md +6 -2
  2. package/package/corpus/harnesses/copilot/instructions/profiles.instructions.md +1 -1
  3. package/package/corpus/hooks/README.md +11 -5
  4. package/package/corpus/hooks/scripts/cratis-cleanup-worktrees.sh +44 -4
  5. package/package/corpus/prompts/ship-changes.prompt.md +4 -1
  6. package/package/corpus/rules/local-work-artifacts.md +6 -2
  7. package/package/corpus/rules/profiles.md +1 -1
  8. package/package/corpus/skills/cratis-application-slice-conformance/SKILL.md +2 -2
  9. package/package/corpus/skills/cratis-chronicle-event-modeling/SKILL.md +1 -1
  10. package/package/corpus/skills/cratis-event-model-diagram/SKILL.md +1 -1
  11. package/package/corpus/skills/cratis-screenplay-automations-and-translations/SKILL.md +4 -4
  12. package/package/corpus/skills/cratis-screenplay-automations-and-translations/references/audit-format.md +1 -1
  13. package/package/corpus/skills/cratis-screenplay-automations-and-translations/references/automation-patterns.md +3 -3
  14. package/package/corpus/skills/cratis-screenplay-automations-and-translations/references/cases-to-specify.md +1 -1
  15. package/package/corpus/skills/cratis-screenplay-automations-and-translations/references/provenance.md +2 -2
  16. package/package/corpus/skills/cratis-screenplay-automations-and-translations/references/public-events-and-direction.md +2 -2
  17. package/package/corpus/skills/cratis-screenplay-automations-and-translations/references/todo-list-example.md +1 -1
  18. package/package/corpus/skills/cratis-screenplay-captures-and-reactions/SKILL.md +6 -6
  19. package/package/corpus/skills/cratis-screenplay-captures-and-reactions/references/invocation-identity.md +3 -3
  20. package/package/corpus/skills/cratis-screenplay-captures-and-reactions/references/product-sources.md +1 -1
  21. package/package/corpus/skills/cratis-screenplay-captures-and-reactions/references/specifying-triggers-and-clock.md +1 -1
  22. package/package/corpus/skills/cratis-screenplay-command-surface/SKILL.md +3 -3
  23. package/package/corpus/skills/cratis-screenplay-command-surface/references/compliance.md +1 -1
  24. package/package/corpus/skills/cratis-screenplay-command-surface/references/context.md +1 -1
  25. package/package/corpus/skills/cratis-screenplay-command-surface/references/enum-numbers.md +1 -1
  26. package/package/corpus/skills/cratis-screenplay-delivery-planning/SKILL.md +1 -1
  27. package/package/corpus/skills/cratis-screenplay-delivery-planning/references/slice-counting.md +1 -1
  28. package/package/corpus/skills/cratis-screenplay-discovery/SKILL.md +1 -1
  29. package/package/corpus/skills/cratis-screenplay-event-modeling/SKILL.md +3 -3
  30. package/package/corpus/skills/cratis-screenplay-event-modeling/references/parsed-not-runnable.md +2 -2
  31. package/package/corpus/skills/cratis-screenplay-legacy-extraction/SKILL.md +1 -1
  32. package/package/corpus/skills/cratis-screenplay-legacy-extraction/references/chronicle-observations.md +1 -1
  33. package/package/corpus/skills/cratis-screenplay-legacy-extraction/references/generate-notes.md +4 -5
  34. package/package/corpus/skills/cratis-screenplay-legacy-extraction/references/generated-recovery.md +1 -1
  35. package/package/corpus/skills/cratis-screenplay-legacy-extraction/references/prologue-safety.md +1 -1
  36. package/package/corpus/skills/cratis-screenplay-model-authoring/SKILL.md +1 -1
  37. package/package/corpus/skills/cratis-screenplay-model-authoring/references/language-reference.md +4 -4
  38. package/package/corpus/skills/cratis-screenplay-model-authoring/references/mcp-tools.md +3 -3
  39. package/package/corpus/skills/cratis-screenplay-model-authoring/references/model-notes.md +1 -1
  40. package/package/corpus/skills/cratis-screenplay-model-authoring/references/screen-authoring-workflow.md +1 -1
  41. package/package/corpus/skills/cratis-screenplay-model-review/SKILL.md +1 -1
  42. package/package/corpus/skills/cratis-screenplay-modeling-lifecycle/SKILL.md +1 -1
  43. package/package/corpus/skills/cratis-screenplay-modeling-lifecycle/references/stop-or-assume.md +1 -1
  44. package/package/corpus/skills/cratis-screenplay-modeling-lifecycle/references/verdicts-and-modes.md +1 -1
  45. package/package/corpus/skills/cratis-screenplay-projections/SKILL.md +1 -1
  46. package/package/corpus/skills/cratis-screenplay-read-surface/SKILL.md +1 -1
  47. package/package/corpus/skills/cratis-screenplay-read-surface/references/provenance.md +2 -2
  48. package/package/corpus/skills/cratis-screenplay-render-and-gap-fill/SKILL.md +3 -3
  49. package/package/corpus/skills/cratis-screenplay-render-and-gap-fill/references/drift-and-ledger.md +1 -1
  50. package/package/corpus/skills/cratis-screenplay-render-and-gap-fill/references/gap-fill-handoff.md +2 -2
  51. package/package/corpus/skills/cratis-screenplay-render-and-gap-fill/references/renderability-gate.md +2 -2
  52. package/package/corpus/skills/cratis-screenplay-scenario-coverage/SKILL.md +2 -2
  53. package/package/corpus/skills/cratis-screenplay-scenario-coverage/references/provenance.md +2 -2
  54. package/package/corpus/skills/cratis-screenplay-scenario-coverage/references/scenario-catalogue.md +1 -1
  55. package/package/corpus/skills/cratis-screenplay-scenario-coverage/references/spec-forms-by-mode.md +5 -5
  56. package/package/corpus/skills/cratis-screenplay-slice-design/SKILL.md +2 -2
  57. package/package/corpus/skills/cratis-screenplay-slice-design/references/worked-example.md +1 -1
  58. package/package/corpus/skills/cratis-screenplay-specifications/SKILL.md +3 -3
  59. package/package/corpus/skills/cratis-screenplay-specifications/references/examples-and-routes.md +2 -2
  60. package/package/corpus/skills/cratis-screenplay-streams-and-consistency/SKILL.md +4 -4
  61. package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/boundaries.md +1 -1
  62. package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/chronicle-boundaries.md +1 -1
  63. package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/consistency-and-concurrency.md +2 -2
  64. package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/evolution.md +1 -1
  65. package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/stream-patterns.md +2 -2
  66. package/package/corpus/skills/cratis-screenplay-toolchain/SKILL.md +42 -61
  67. package/package/corpus/skills/cratis-screenplay-toolchain/references/automation-translate-example.md +1 -1
  68. package/package/corpus/skills/cratis-screenplay-toolchain/references/cheat-sheet-example.md +7 -9
  69. package/package/corpus/skills/cratis-screenplay-toolchain/references/cheat-sheet.md +15 -18
  70. package/package/corpus/skills/cratis-screenplay-toolchain/references/diagnostics.md +33 -53
  71. package/package/corpus/skills/cratis-screenplay-toolchain/references/executable-example.md +1 -1
  72. package/package/corpus/skills/cratis-screenplay-toolchain/references/executable-subset.md +82 -93
  73. package/package/corpus/skills/cratis-screenplay-toolchain/references/generated-responses-example.md +4 -5
  74. package/package/corpus/skills/cratis-screenplay-toolchain/references/generation-strategies-example.md +1 -2
  75. package/package/corpus/skills/cratis-screenplay-toolchain/references/preferred-syntax.md +5 -9
  76. package/package/corpus/skills/cratis-screenplay-toolchain/references/production-routes-and-filters.md +7 -16
  77. package/package/corpus/skills/cratis-screenplay-toolchain/references/renderable-subset.md +38 -92
  78. package/package/corpus/skills/cratis-screenplay-toolchain/references/screenplay-contract-exceptions.json +4 -11
  79. package/package/corpus/skills/cratis-screenplay-toolchain/references/sources-and-streams.md +14 -19
  80. package/package/corpus/skills/cratis-screenplay-toolchain/references/traps.md +32 -35
  81. package/package/corpus/skills/cratis-screenplay-toolchain/references/verdicts.md +119 -52
  82. package/package/corpus/skills/cratis-screenplay-toolchain/verification.json +18 -24
  83. package/package/corpus/skills/cratis-screenplay-ui-composition/SKILL.md +3 -3
  84. package/package/corpus/skills/cratis-screenplay-ui-composition/references/screen-composition-contract.md +2 -2
  85. package/package/corpus/skills/cratis-stage-rendering-and-sandbox/SKILL.md +110 -167
  86. package/package/corpus/skills/cratis-stage-rendering-and-sandbox/references/admission.md +74 -170
  87. package/package/corpus/skills/cratis-stage-rendering-and-sandbox/references/case-tables-and-whole-numbers.md +15 -35
  88. package/package/corpus/skills/cratis-stage-rendering-and-sandbox/references/choosing-generation.md +4 -6
  89. package/package/corpus/skills/cratis-stage-rendering-and-sandbox/references/render-example.md +23 -27
  90. package/package/corpus/skills/cratis-stage-rendering-and-sandbox/references/rendered-application.md +21 -33
  91. package/package/corpus/skills/cratis-stage-rendering-and-sandbox/references/sandbox-and-specrunner.md +61 -92
  92. package/package/corpus/skills/cratis-stage-rendering-and-sandbox/references/scene-runtime.md +4 -12
  93. package/package/corpus/skills/cratis-stage-rendering-and-sandbox/verification.json +10 -14
  94. package/package.json +1 -1
  95. package/package/corpus/skills/cratis-screenplay-toolchain/references/doc-contradictions.md +0 -72
  96. package/package/corpus/skills/cratis-screenplay-toolchain/references/provenance.md +0 -81
  97. package/package/corpus/skills/cratis-screenplay-toolchain/references/versions.md +0 -341
@@ -8,14 +8,19 @@
8
8
  - V3: binding-ready
9
9
  - V4: reference specifications run
10
10
  - V5: rendered and target-verified
11
+ - Exit codes at a glance
12
+ - Model notes gate
13
+ - Revisions and descriptions
11
14
  - Report format
12
15
  - Example gate (for skill and documentation authors)
13
16
 
14
17
  The five verdicts are independent results, not a ladder: each proves only its own layer,
15
18
  and each is either a result or "not run" with the reason. The verdict names are frozen
16
19
  (`cratis-screenplay-modeling-lifecycle` owns when each is required; this file owns how to
17
- obtain it). Tool and version facts: `versions.md`. No script ships with this skill: V2 and
18
- V3 are read from the MCP server or from a render, V1 and V5 from the CLIs.
20
+ obtain it). No script ships with this skill: V2 and V3 are read from the MCP server or from a
21
+ render, V1 and V5 from the CLIs. Read installed versions with `screenplay --version` and
22
+ `cratis --version`; an older executable earlier on `PATH` shadows a newer install, so check
23
+ `which -a cratis` too.
19
24
 
20
25
  | Verdict | Meaning |
21
26
  | --- | --- |
@@ -29,12 +34,11 @@ V3 are read from the MCP server or from a render, V1 and V5 from the CLIs.
29
34
 
30
35
  | Tool | Command | Pass | Fail |
31
36
  | --- | --- | --- | --- |
32
- | Standalone (preferred; pin: `versions.md`) | `screenplay <model-root> --warnaserror --no-color` | exit 0 and a nonzero compiled file count | exit 1 defects; exit 2 could not run/invalid arguments or input |
37
+ | Standalone (preferred) | `screenplay <model-root> --warnaserror --no-color` | exit 0 and a nonzero compiled file count | exit 1 defects; exit 2 could not run/invalid arguments or input |
33
38
  | cratis (fallback) | `cratis screenplay validate <model-folder> --warnings-as-errors -o json-compact` | exit 0 | exit 5; exit 1 means missing path or no files |
34
39
 
35
40
  - Validate the complete application root, not an independently selected fragment.
36
- Standalone file mode follows imports; folder mode includes all files. The CLI
37
- file-import limitation below was a 3.28.2 probe, not a current tool claim.
41
+ Standalone file mode follows imports; folder mode includes all files.
38
42
  - Require a nonzero file count; empty input is not a model-validation pass.
39
43
  - Optional `--scope <Module.Feature.Slice>` compiles the whole application but
40
44
  reports descendants and direct dependent declarations, not transitive impact.
@@ -47,31 +51,36 @@ V3 are read from the MCP server or from a render, V1 and V5 from the CLIs.
47
51
  - Warnings are failures here. PLAY0029 (a construct dropped silently) and the unresolved-name
48
52
  warnings are the defects this verdict exists to catch.
49
53
  - Syntax and consistency checks (PLAY0282 to PLAY0294) run; binding does not.
50
- - Report: `V1 pass (screenplay 4.139.0, 3 files)`, `V1 fail: PLAY0029 a.play:12 ...`.
54
+ - Report: `V1 pass (screenplay <version>, 3 files)`, `V1 fail: PLAY0029 in a.play, line 12`.
51
55
 
52
56
  ## Release-baseline gate (independent of V1–V5)
53
57
 
54
- On standalone **4.153.0**, run `screenplay baseline check <model-root>` before
55
- accepting edits to released event contracts: 0 matching, 1 changed/missing revision,
56
- 2 cannot check/unreadable. An absent baseline is not proof of release admission.
57
- In the release job, `screenplay baseline admit <model-root> --release <label>`
58
- records revisions; commit the sidecar. Neither command changes canonical ESM or
59
- substitutes for migration/target tests. Preconditions, MCP review and tagged
60
- sources: model-authoring [release baseline](../../cratis-screenplay-model-authoring/references/release-baseline.md).
58
+ Run `screenplay baseline check <model-root>` before accepting edits to released event
59
+ contracts: exit 0 matching, 1 changed or missing revision, 2 cannot check or unreadable. An
60
+ absent baseline is not proof of release admission. In the release job,
61
+ `screenplay baseline admit <model-root> --release <label>` records revisions; commit the
62
+ sidecar. Neither command changes canonical ESM or substitutes for migration or target tests.
63
+ Without a baseline an explicit event mode is still required: unadmitted revisions default to
64
+ in-place edits, admitted revisions accept only an explicit `newGeneration`. Never hand-edit the
65
+ sidecar except for a reviewed correction.
66
+ Preconditions and MCP review: model-authoring
67
+ [release baseline](../../cratis-screenplay-model-authoring/references/release-baseline.md).
68
+
69
+ Requires Screenplay 4.153.0 or later (`screenplay --version`) for `baseline`; with an older tool, report the gate as not run.
61
70
 
62
71
  ## V2: executable diagnostics
63
72
 
64
73
  Needs an MCP connection (V2 and V3 belong to the session that owns MCP; a subagent without
65
74
  MCP reports `V2 not run: no MCP in this agent` unless the brief supplies fresh output). Without
66
75
  MCP, a binding check exists: `cratis screenplay validate --executable <root>` binds with the
67
- **bundled** compiler (CLI 3.57.0 bundles Screenplay 4.147.1, not standalone 4.153.0), never
68
- renders or writes files, and exits 5 with "The model does not bind into an executable semantic
69
- model" when it does not. Report it as `V3 (bundled 4.137.0 via cratis validate --executable)`; it
70
- gives binding errors, not the V2 `executable-diagnostics` view, so V2 stays MCP-only.
76
+ **bundled** compiler, never renders or writes files, and exits 5 with "The model does not bind
77
+ into an executable semantic model" when it does not. Report it as
78
+ `V3 (bundled compiler via cratis validate --executable)`; it gives binding errors, not the V2
79
+ `executable-diagnostics` view, so V2 stays MCP-only.
71
80
 
72
81
  1. Start the server with a fixed root: `screenplay mcp <model-folder>` or `cratis screenplay
73
- mcp` in a project with `.cratis/ai.json` (see `versions.md`, roots bug). Send
74
- `initialize`, then `notifications/initialized`.
82
+ mcp` in a project with `.cratis/ai.json`. Send `initialize`, then
83
+ `notifications/initialized`.
75
84
  2. `open-workspace`. The result carries `readiness` (`authoringAccepted`, `executableReady`)
76
85
  and `executableDiagnosticsCount`.
77
86
  3. Read the diagnostics: `read-workspace` with `view: "executable-diagnostics"` and the
@@ -83,6 +92,10 @@ gives binding errors, not the V2 `executable-diagnostics` view, so V2 stays MCP-
83
92
  information-severity diagnostics (PLAY0269 deferred UI, PLAY0270 authoring metadata such as
84
93
  descriptions, personas and screens) on models that bind; they do not block.
85
94
 
95
+ Requires Cratis CLI 3.46.1 or later (`cratis --version`) to start `cratis screenplay mcp --project-root <project>` without creating a model folder; older CLIs create the resolved root at startup.
96
+
97
+ Requires Screenplay 4.63.2 or later (`screenplay --version`) to initialize an MCP server without a fixed root; with an older tool, always pass the root as an argument.
98
+
86
99
  `authoringAccepted: true` only says the source compiled (or the root is empty). It says
87
100
  nothing about print or parse fidelity or identity continuity.
88
101
 
@@ -95,27 +108,24 @@ do not block. The ESM then binds (and `read-workspace view=executable-model` rep
95
108
  comparison needs it). Binding is what makes a model renderable at all. V3 means "binds",
96
109
  never "specifications pass".
97
110
 
98
- - Report the ESM version the model needs: `V3 ready (screenplay 4.139.0, ESM v6)`,
111
+ - Report the ESM version the model needs: `V3 ready (screenplay <version>, ESM v6)`,
99
112
  `V3 blocked: PLAY0268 (enum compliance) - design scope kept`.
100
- Bare `pii`/`personal` and `secret` bind as v13 on standalone 4.142.0; reasons
101
- remain report-only PLAY0270. Enum/identity compliance and personal or explicitly
113
+ Bare `pii`/`personal` and `secret` bind as concept compliance; reasons remain
114
+ report-only PLAY0270. Enum/identity compliance and personal or explicitly
102
115
  subject-scoped secret event values with an explicit `subject` mark still refuse
103
- PLAY0268 at binding only. CLI 3.57.0 bundles Screenplay 4.147.1 / Stage 4.89.1 and renders v13
104
- concept protection (not protected identities/enums or explicit subject lineage).
105
- V3 does not prove rendering.
116
+ PLAY0268 at binding only. V3 does not prove rendering.
106
117
  - A blocked V3 is not repaired by deleting protection or domain rules. Never remove `pii`,
107
118
  `secret`, authorization, list queries, automations or rules to reach V3; record the
108
119
  slice and the code in the gap list.
109
- - A model is executable only on the compiler that bound it. V3 does not carry
110
- to render admission: the pinned CLI (`versions.md`) passes through ESM v10 to Stage construct
111
- checks; newer models receive CLI-RENDER-004. Public publication and reaction
112
- identity/filters/production overrides still receive typed Stage refusals.
113
- The old 3.28.x/Stage 4.24.x probes remain historical in the subset references.
120
+ - A model is executable only on the compiler that bound it. V3 does not carry to render
121
+ admission: the bundled renderer admits only ESM versions it knows and answers newer models
122
+ with CLI-RENDER-004. Public publication and reaction identity, filters and production
123
+ overrides still receive typed Stage refusals (`renderable-subset.md`).
114
124
 
115
125
  ## V4: reference specifications run
116
126
 
117
127
  Run `screenplay test <root> [--filter <exact-address>] [--format text|json]` on
118
- the standalone pin, or MCP `run-specifications`. The compile command alone still does not
128
+ the standalone tool, or MCP `run-specifications`. The compile command alone does not
119
129
  execute scenarios. Reference execution is in-memory: no external services or
120
130
  opaque code run. Record route, expected versus discovered/selected counts,
121
131
  passed, failed and unsupported outcomes. Exit 0 means all selected passed; 1
@@ -125,26 +135,26 @@ is not proof of coverage. `test` rejects `--no-color` (exit 2).
125
135
 
126
136
  MCP selectors are `specification` (exact address/id) and `scope` (prefix);
127
137
  both supplied mean intersection. `offset`/`limit` page results; continuation
128
- requires `expectedSourceRevision`. On **Screenplay 4.145.0 and later**, pass
129
- `proposalId` between proposal review and `apply` to run the retained candidate
130
- read-only. Without that argument it runs the workspace. A candidate
131
- V4 belongs only to its returned source revision, not to the disk model.
138
+ requires `expectedSourceRevision`. Pass `proposalId` between proposal review and `apply`
139
+ to run the retained candidate read-only; without that argument the call runs the workspace.
140
+ A candidate V4 belongs only to its returned source revision, not to the disk model.
132
141
  Unknown/applied/discarded/reopened proposals give `UnknownProposal`.
133
142
  A statically impossible `then` reports PLAY0285: the whole model is unbound,
134
- exit 3, and no specifications run. Details and source evidence:
143
+ exit 3, and no specifications run. Details:
135
144
  [reference execution](../../cratis-screenplay-model-authoring/references/mcp-tools.md#run-reference-specifications).
136
145
 
146
+ Requires Screenplay 4.145.0 or later (`screenplay --version`) for `proposalId` on `run-specifications`; with an older tool, apply the proposal before running specifications.
147
+
137
148
  The reference runner returns unsupported for a specification that reads a reducer-built read
138
149
  model and for any construct whose evaluation needs an opaque body.
139
150
 
140
151
  **Rendered Debug tests are never V4.** A rendered application is a different engine: Stage
141
- 4.24 admits pure reducer bodies and generates reducer replay and assertions in its Debug
152
+ admits pure reducer bodies and generates reducer replay and assertions in its Debug
142
153
  tests, so the two engines can differ (a pure reducer body is a concrete case). Report those
143
154
  outcomes only under V5.tests, labelled target-test evidence. The `cratis/stage-specrunner` job
144
- (Docker, opt-in; behaviour on ESM v4 to v6 unverified) runs Stage's own semantic executor
145
- (`SemanticSpecificationExecutor`, Stage `v4.24.0` `Source/SpecRunner/Program.cs`), not the
146
- reference route: report its outcomes on a separate line, "Stage semantic engine (target-engine
147
- evidence)", never as V4 and not as V5.tests.
155
+ (Docker, opt-in) runs Stage's own semantic executor, not the reference route: report its
156
+ outcomes on a separate line, "Stage semantic engine (target-engine evidence)", never as V4
157
+ and not as V5.tests.
148
158
  Without a reference route: `V4 not run: no route`.
149
159
 
150
160
  ## V5: rendered and target-verified
@@ -166,6 +176,67 @@ Never claim a whole-application V5 from a rendered subset. Render workflow, owne
166
176
  and gap-fill: `cratis-screenplay-render-and-gap-fill` and `cratis-stage-rendering-and-sandbox`.
167
177
  What Stage admits: `renderable-subset.md`.
168
178
 
179
+ ## Exit codes at a glance
180
+
181
+ | Layer | Route | Result |
182
+ | --- | --- | --- |
183
+ | Source validation | `screenplay <root> --warnaserror --no-color` | 0 clean; 1 reported defects; 2 could not run or invalid arguments or input. `--scope` limits the reported set, not compilation |
184
+ | Completeness | add `--check <name>[,<name>]` (repeatable) or `--check all` | Opt-in warnings; whole-source errors skip checks, not pass them |
185
+ | CLI source validation | `cratis screenplay validate <root> --warnings-as-errors -o json-compact` | Read the producer exit and the JSON errors, warnings and file count |
186
+ | Binding | MCP workspace readiness and `executable-diagnostics` | V2 reads diagnostics; V3 requires binding with no blocking diagnostics |
187
+ | Reference specifications | `screenplay test <root> [--filter <address>] [--format text\|json]`, or MCP `run-specifications` (`specification`, `scope`, `offset`, `limit`, `expectedSourceRevision`, `proposalId`) | 0 all selected passed; 1 failed; 2 invalid arguments, input, selection or IO; 3 unsupported or unbound. Counts of zero do not prove coverage |
188
+ | Release baseline | `screenplay baseline admit <root> --release <label>`; `screenplay baseline check <root>` | 0 success; 1 changed or missing revision; 2 unavailable, unreadable or invalid input or write failure |
189
+ | Rendering | `cratis render` | Separate admission, publication, target build and target tests (V5) |
190
+
191
+ Source validation does not bind or run attached code. Reference execution is in-memory and
192
+ does not run opaque attachments or external services. CLI-derived specification IDs need not
193
+ match persisted MCP identities after renames; use MCP for identity-stable selection. A folder
194
+ compiles as one application: a standalone file includes its imports, not unimported siblings,
195
+ so keep the application root as the input for scoped checks and never treat a clean fragment
196
+ or scoped result as whole-application success.
197
+
198
+ MCP server launch: `screenplay mcp <model-root>` or `cratis screenplay mcp <model-root>`.
199
+ Discover `tools/list`, views and schemas rather than counting tools. Connection, worktree
200
+ switching and root-state conflicts: `cratis-screenplay-model-authoring`. The standalone tool
201
+ and the compiler bundled in the CLI can differ in release, so name the tool with every
202
+ verdict and never transfer a verdict between them without rerunning the same inputs.
203
+
204
+ ## Model notes gate
205
+
206
+ ```shell
207
+ screenplay <model-folder> --open-questions report --no-color
208
+ screenplay <model-folder> --scope Library.Loans.CheckIn --open-questions fail --no-color
209
+ ```
210
+
211
+ `report` emits info `model-note.open-question` findings without failing for questions.
212
+ `fail` exits **1** when the selected set has an open question; unreadable notes exit **2**
213
+ when the flag is given. Compilation still runs with its own verdict; question findings are
214
+ MCP/CLI only, **no PLAY code**. With no flag the sidecar is ignored, and `--warnaserror` does
215
+ not gate questions. Tasks and ordinary notes do not fail this gate.
216
+
217
+ Scope includes descendants and ancestor notes (application notes too). An unscoped report
218
+ includes orphaned open questions. Absent identity state reports all open questions unscoped as
219
+ orphaned with `identity-state-absent`, rather than hiding them behind a scope. Notes never
220
+ change ESM or V1–V5 verdicts. Read model-authoring
221
+ [model notes](../../cratis-screenplay-model-authoring/references/model-notes.md) when
222
+ recording, resolving, paging or reviewing orphan impact.
223
+
224
+ Requires Screenplay 4.144.0 or later (`screenplay --version`) for `--open-questions`; `cratis screenplay validate` has no such option, so use the standalone tool for this gate.
225
+
226
+ ## Revisions and descriptions
227
+
228
+ `modelRevision` exists only when binding succeeds; it is canonical semantic
229
+ identity, not source identity. Source positions and report-only metadata can
230
+ change source/workspace revisions without changing it. Persisted catalogs
231
+ preserve assigned identities; do not reconstruct them from names.
232
+
233
+ A render manifest's `semanticRevision` is a different provenance value, made
234
+ with the render name and bundled compiler. Do not compare it directly to MCP
235
+ `modelRevision`. Compare successive renders with the same identity and inputs, or use
236
+ `cratis render ... --check`. Descriptions and event documentation render as XML
237
+ doc comments, so editing them changes managed-file hashes (a `--check` exit 6) but not the
238
+ executable model revision.
239
+
169
240
  ## Report format
170
241
 
171
242
  One line per verdict, tool and version first, evidence second:
@@ -184,16 +255,12 @@ source change makes earlier verdicts stale.
184
255
 
185
256
  ## Example gate (for skill and documentation authors)
186
257
 
187
- Historical corpus fences were checked with standalone 4.68.0 and CLI 3.28.2.
188
- Do not promote those results to current pins without rerunning. Check each changed
189
- complete fence with the pinned standalone tool (`versions.md`) `--warnaserror`; run `screenplay test` for
190
- specification examples, and verify expected-diagnostic examples against their
191
- claimed codes. Where bundle compatibility matters, also check the pinned CLI (`versions.md`).
192
- The `// Needs the standalone screenplay compiler (ESM v6)` first-line marker belonged to cratis
193
- before 3.28.2, which could not validate those fences; no fence carries it now, and a
194
- checker that still skips marked fences under `cratis` skips nothing. Examples meant to execute are also opened through MCP and
195
- must be `executableReady`. No example uses `numbers exact`.
258
+ Check each changed complete fence with the standalone tool and `--warnaserror`; run
259
+ `screenplay test` for specification examples, and verify expected-diagnostic examples against
260
+ their claimed codes. Where bundle compatibility matters, also check the CLI. Examples meant to
261
+ execute are also opened through MCP and must be `executableReady`. No example uses
262
+ `numbers exact`.
196
263
 
197
264
  Edit strategy for `.play` changes (typed identity-preserving operations preferred, bounded text
198
- edits for address-preserving changes) is in
199
- `SKILL.md`; the MCP edit procedure is in `cratis-screenplay-model-authoring`.
265
+ edits for address-preserving changes) is in `SKILL.md`; the MCP edit procedure is in
266
+ `cratis-screenplay-model-authoring`.
@@ -4,57 +4,51 @@
4
4
  "fixtures": [],
5
5
  "assertions": [
6
6
  { "kind": "skill-contains", "value": "screenplay baseline check", "file": "references/verdicts.md" },
7
- { "kind": "skill-contains", "value": "Independent of V1–V5", "file": "references/versions.md" },
7
+ { "kind": "skill-contains", "value": "independent of V1–V5", "file": "references/verdicts.md" },
8
8
  { "kind": "skill-contains", "value": "Specifications that relied on whitespace being accepted now fail.", "file": "references/executable-subset.md" },
9
9
  { "kind": "skill-contains", "value": "PLAY0686", "file": "references/diagnostics.md" },
10
10
  { "kind": "skill-contains", "value": "streams `all`, `ALL` and `Default`", "file": "references/sources-and-streams.md" },
11
11
  { "kind": "skill-contains", "value": "PLAY0614", "file": "references/diagnostics.md" },
12
12
  { "kind": "skill-contains", "value": "PLAY0666", "file": "references/diagnostics.md" },
13
- { "kind": "skill-contains", "value": "Published v11", "file": "references/versions.md" },
14
- { "kind": "skill-contains", "value": "Decision 0066 freezes", "file": "references/versions.md" },
15
- { "kind": "skill-contains", "value": "Composite read-model keys/query blocks are also still PLAY0268", "file": "references/versions.md" },
13
+ { "kind": "skill-contains", "value": "bind/reference-execute as v11", "file": "references/executable-subset.md" },
14
+ { "kind": "skill-contains", "value": "A consumer admitting v10 must include all three", "file": "references/production-routes-and-filters.md" },
15
+ { "kind": "skill-contains", "value": "Composite view keys remain authoring-only (PLAY0268)" },
16
16
  { "kind": "skill-contains", "value": "the **whole source, stream and stream id**", "file": "references/production-routes-and-filters.md" },
17
17
  { "kind": "play-compiles" },
18
- { "kind": "skill-contains", "value": "Standalone Screenplay 4.144.0", "file": "references/versions.md" },
19
- { "kind": "skill-contains", "value": "Cratis CLI 3.53.1 does not have this gate", "file": "references/versions.md" },
20
- { "kind": "skill-contains", "value": "--open-questions fail", "file": "references/versions.md" },
21
- { "kind": "skill-contains", "value": "unreadable notes exit **2**", "file": "references/versions.md" },
22
- { "kind": "skill-contains", "value": "MCP/CLI only, **no PLAY code**", "file": "references/versions.md" },
23
- { "kind": "skill-contains", "value": "identity-state-absent", "file": "references/versions.md" },
24
- { "kind": "skill-contains", "value": "4.141.0" },
25
- { "kind": "skill-contains", "value": "Published v12" },
18
+ { "kind": "skill-contains", "value": "Requires Screenplay 4.144.0", "file": "references/verdicts.md" },
19
+ { "kind": "skill-contains", "value": "`cratis screenplay validate` has no such option", "file": "references/verdicts.md" },
20
+ { "kind": "skill-contains", "value": "--open-questions fail", "file": "references/verdicts.md" },
21
+ { "kind": "skill-contains", "value": "unreadable notes exit **2**", "file": "references/verdicts.md" },
22
+ { "kind": "skill-contains", "value": "MCP/CLI only, **no PLAY code**", "file": "references/verdicts.md" },
23
+ { "kind": "skill-contains", "value": "identity-state-absent", "file": "references/verdicts.md" },
24
+ { "kind": "skill-contains", "value": "Requires Screenplay 4.141.0", "file": "references/executable-subset.md" },
25
+ { "kind": "skill-contains", "value": "Enum numbers (v12)" },
26
26
  { "kind": "skill-contains", "value": "PLAY0671", "file": "references/diagnostics.md" },
27
27
  { "kind": "skill-contains", "value": "PLAY0653", "file": "references/diagnostics.md" },
28
28
  { "kind": "skill-contains", "value": "PLAY0646", "file": "references/diagnostics.md" },
29
29
  { "kind": "skill-contains", "value": "PLAY0595", "file": "references/diagnostics.md" },
30
30
  { "kind": "skill-contains", "value": "PLAY0652", "file": "references/diagnostics.md" },
31
31
  { "kind": "skill-contains", "value": "PLAY0504 | E", "file": "references/diagnostics.md" },
32
- { "kind": "skill-contains", "value": "references/versions.md" },
32
+ { "kind": "skill-contains", "value": "references/verdicts.md" },
33
33
  { "kind": "skill-contains", "value": "PLAY0029" },
34
34
  { "kind": "skill-contains", "value": "--warnaserror" },
35
- { "kind": "skill-contains", "value": "4.68.0" },
36
- { "kind": "skill-contains", "value": "4.66.0" },
35
+ { "kind": "skill-contains", "value": "Requires Screenplay 4.68.0", "file": "references/generated-responses-example.md" },
37
36
  { "kind": "skill-contains", "value": "references/generated-responses-example.md" },
38
37
  { "kind": "skill-contains", "value": "Operations and exact numeric" },
39
38
  { "kind": "skill-contains", "value": "generation/responses, enum numbers, compliance, equality filters and event reactions render" },
40
39
  { "kind": "skill-contains", "value": "cratis screenplay validate --executable" },
41
40
  { "kind": "skill-contains", "value": "XML doc comments" },
42
- { "kind": "skill-contains", "value": "Stage 4.89.1 rendered backend", "file": "references/versions.md" },
43
41
  { "kind": "skill-contains", "value": "cratis screenplay validate" },
44
- { "kind": "skill-contains", "value": "cli#244" },
42
+ { "kind": "skill-contains", "value": "validating one file with `cratis screenplay validate file.play`", "file": "references/traps.md" },
45
43
  { "kind": "skill-contains", "value": "`notifications/initialized`" },
46
44
  { "kind": "skill-contains", "value": "A handler never binds" },
47
45
  { "kind": "skill-contains", "value": "references/sources-and-streams.md" },
48
46
  { "kind": "skill-contains", "value": "CLI-RENDER-004" },
49
- { "kind": "skill-contains", "value": "**3.57.0**", "file": "references/versions.md" },
50
- { "kind": "skill-contains", "value": "**4.147.1**", "file": "references/versions.md" },
51
- { "kind": "skill-contains", "value": "**4.89.1**", "file": "references/versions.md" },
52
- { "kind": "skill-contains", "value": "**Published v15 in 4.147.0:**", "file": "references/versions.md" },
47
+ { "kind": "skill-contains", "value": "Concept strategies (v15)" },
53
48
  { "kind": "skill-contains", "value": "protected identities/enums (`-040`)", "file": "references/renderable-subset.md" },
54
49
  { "kind": "skill-contains", "value": "PLAY0514" },
55
- { "kind": "skill-contains", "value": "**4.153.0**", "file": "references/versions.md" },
56
- { "kind": "skill-contains", "value": "**Published v16 in 4.152.0:**", "file": "references/versions.md" },
57
- { "kind": "skill-contains", "value": "Neither released consumer admits v16", "file": "references/versions.md" },
50
+ { "kind": "skill-contains", "value": "Differing event pins travel as `storedName` in ESM v16", "file": "references/diagnostics.md" },
51
+ { "kind": "skill-contains", "value": "must refuse the model rather than render it under the new name", "file": "references/diagnostics.md" },
58
52
  { "kind": "skill-contains", "value": "RejectsAUsedGeneratedSource", "file": "references/generation-strategies-example.md" },
59
53
  { "kind": "skill-contains", "value": "bind as ESM v8" },
60
54
  { "kind": "skill-contains", "value": "PLAY0530/0531", "file": "references/diagnostics.md" },
@@ -27,7 +27,7 @@ Markdown in project documentation; `.play` is the single flow model.
27
27
 
28
28
  ## Verified product sources
29
29
 
30
- Current pins: toolchain `references/versions.md`; UI statements were re-read at Screenplay v4.139.0
30
+ Tool versions: toolchain `SKILL.md`; UI statements were re-read at Screenplay v4.139.0
31
31
  (`screens.md`, `contributions.md`, `forms.md`, `templates.md`, `ui-profile.md`, `fixtures/screen-release-ui.play`). Older provenance:
32
32
  `4.31.0` (original parser evidence), main `fd18129` (cancellation routing, `optional`), `4.66.0` (`c89198b`: `PLAY0269`).
33
33
 
@@ -41,7 +41,7 @@ Checked against the Screenplay repository at tag `v4.31.0` (commit `355dffb`):
41
41
  Those checks established the original baseline. The changed cancellation
42
42
  example uses the newer main commit above, not the old tag.
43
43
 
44
- Read `references/versions.md` in `cratis-screenplay-toolchain` when choosing or checking tool versions for these examples.
44
+ Read `SKILL.md` in `cratis-screenplay-toolchain` when reading installed tool versions for these examples.
45
45
 
46
46
  Every construct on this page is deferred from the executable model with
47
47
  information `PLAY0269`: it never blocks binding, and it is not evidence that a
@@ -392,7 +392,7 @@ The rules:
392
392
  - [ ] `screenplay <model> --warnaserror` (standalone) reports zero errors and zero
393
393
  warnings; `cratis screenplay validate --warnings-as-errors` says the same on
394
394
  cratis 3.28.2 or later, which bundles the same compiler (versions: `cratis-screenplay-toolchain`
395
- `references/versions.md`).
395
+ `SKILL.md`).
396
396
  - [ ] Every screen in the flow has Level 1 reviewed before any layout, and every
397
397
  form field and screen field traces to a command or read-model property.
398
398
  - [ ] Every slot a `contribute` targets is declared `contributes <Point>` somewhere
@@ -40,8 +40,8 @@ the executed vector renders on Scene 4.15.0. Packages published since are newer
40
40
  that vector and are not claimed browser-verified. Scene 4.17.0 was the earlier
41
41
  source-checked runtime summary, not a new executed vector. Scene runtime capabilities
42
42
  below were source-checked at the current scaffold's Scene tag; this does not
43
- re-label the historical execution result. Current pins:
44
- `cratis-screenplay-toolchain/references/versions.md`.
43
+ re-label the historical execution result. Tool versions:
44
+ `cratis-screenplay-toolchain/SKILL.md`.
45
45
  All three levels hold for the canonical `ScreenComposition` corpus on the historical vector:
46
46
 
47
47
  - authoring and executable admission: MCP opens it with `sourceSuccess true`,