@cratis/pi 7.48.2 → 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 (83) hide show
  1. package/package/corpus/harnesses/copilot/instructions/profiles.instructions.md +1 -1
  2. package/package/corpus/rules/profiles.md +1 -1
  3. package/package/corpus/skills/cratis-application-slice-conformance/SKILL.md +2 -2
  4. package/package/corpus/skills/cratis-chronicle-event-modeling/SKILL.md +1 -1
  5. package/package/corpus/skills/cratis-event-model-diagram/SKILL.md +1 -1
  6. package/package/corpus/skills/cratis-screenplay-automations-and-translations/SKILL.md +4 -4
  7. package/package/corpus/skills/cratis-screenplay-automations-and-translations/references/audit-format.md +1 -1
  8. package/package/corpus/skills/cratis-screenplay-automations-and-translations/references/automation-patterns.md +3 -3
  9. package/package/corpus/skills/cratis-screenplay-automations-and-translations/references/cases-to-specify.md +1 -1
  10. package/package/corpus/skills/cratis-screenplay-automations-and-translations/references/provenance.md +2 -2
  11. package/package/corpus/skills/cratis-screenplay-automations-and-translations/references/public-events-and-direction.md +2 -2
  12. package/package/corpus/skills/cratis-screenplay-automations-and-translations/references/todo-list-example.md +1 -1
  13. package/package/corpus/skills/cratis-screenplay-captures-and-reactions/SKILL.md +6 -6
  14. package/package/corpus/skills/cratis-screenplay-captures-and-reactions/references/invocation-identity.md +3 -3
  15. package/package/corpus/skills/cratis-screenplay-captures-and-reactions/references/product-sources.md +1 -1
  16. package/package/corpus/skills/cratis-screenplay-captures-and-reactions/references/specifying-triggers-and-clock.md +1 -1
  17. package/package/corpus/skills/cratis-screenplay-command-surface/SKILL.md +3 -3
  18. package/package/corpus/skills/cratis-screenplay-command-surface/references/compliance.md +1 -1
  19. package/package/corpus/skills/cratis-screenplay-command-surface/references/context.md +1 -1
  20. package/package/corpus/skills/cratis-screenplay-command-surface/references/enum-numbers.md +1 -1
  21. package/package/corpus/skills/cratis-screenplay-delivery-planning/SKILL.md +1 -1
  22. package/package/corpus/skills/cratis-screenplay-delivery-planning/references/slice-counting.md +1 -1
  23. package/package/corpus/skills/cratis-screenplay-discovery/SKILL.md +1 -1
  24. package/package/corpus/skills/cratis-screenplay-event-modeling/SKILL.md +3 -3
  25. package/package/corpus/skills/cratis-screenplay-event-modeling/references/parsed-not-runnable.md +2 -2
  26. package/package/corpus/skills/cratis-screenplay-legacy-extraction/SKILL.md +1 -1
  27. package/package/corpus/skills/cratis-screenplay-legacy-extraction/references/chronicle-observations.md +1 -1
  28. package/package/corpus/skills/cratis-screenplay-legacy-extraction/references/generate-notes.md +4 -5
  29. package/package/corpus/skills/cratis-screenplay-legacy-extraction/references/generated-recovery.md +1 -1
  30. package/package/corpus/skills/cratis-screenplay-legacy-extraction/references/prologue-safety.md +1 -1
  31. package/package/corpus/skills/cratis-screenplay-model-authoring/SKILL.md +1 -1
  32. package/package/corpus/skills/cratis-screenplay-model-authoring/references/language-reference.md +4 -4
  33. package/package/corpus/skills/cratis-screenplay-model-authoring/references/mcp-tools.md +3 -3
  34. package/package/corpus/skills/cratis-screenplay-model-authoring/references/model-notes.md +1 -1
  35. package/package/corpus/skills/cratis-screenplay-model-authoring/references/screen-authoring-workflow.md +1 -1
  36. package/package/corpus/skills/cratis-screenplay-model-review/SKILL.md +1 -1
  37. package/package/corpus/skills/cratis-screenplay-modeling-lifecycle/SKILL.md +1 -1
  38. package/package/corpus/skills/cratis-screenplay-modeling-lifecycle/references/stop-or-assume.md +1 -1
  39. package/package/corpus/skills/cratis-screenplay-modeling-lifecycle/references/verdicts-and-modes.md +1 -1
  40. package/package/corpus/skills/cratis-screenplay-projections/SKILL.md +1 -1
  41. package/package/corpus/skills/cratis-screenplay-read-surface/SKILL.md +1 -1
  42. package/package/corpus/skills/cratis-screenplay-read-surface/references/provenance.md +2 -2
  43. package/package/corpus/skills/cratis-screenplay-render-and-gap-fill/SKILL.md +3 -3
  44. package/package/corpus/skills/cratis-screenplay-render-and-gap-fill/references/drift-and-ledger.md +1 -1
  45. package/package/corpus/skills/cratis-screenplay-render-and-gap-fill/references/gap-fill-handoff.md +2 -2
  46. package/package/corpus/skills/cratis-screenplay-render-and-gap-fill/references/renderability-gate.md +2 -2
  47. package/package/corpus/skills/cratis-screenplay-scenario-coverage/SKILL.md +2 -2
  48. package/package/corpus/skills/cratis-screenplay-scenario-coverage/references/provenance.md +2 -2
  49. package/package/corpus/skills/cratis-screenplay-scenario-coverage/references/scenario-catalogue.md +1 -1
  50. package/package/corpus/skills/cratis-screenplay-scenario-coverage/references/spec-forms-by-mode.md +5 -5
  51. package/package/corpus/skills/cratis-screenplay-slice-design/SKILL.md +2 -2
  52. package/package/corpus/skills/cratis-screenplay-slice-design/references/worked-example.md +1 -1
  53. package/package/corpus/skills/cratis-screenplay-specifications/SKILL.md +3 -3
  54. package/package/corpus/skills/cratis-screenplay-specifications/references/examples-and-routes.md +2 -2
  55. package/package/corpus/skills/cratis-screenplay-streams-and-consistency/SKILL.md +4 -4
  56. package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/boundaries.md +1 -1
  57. package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/chronicle-boundaries.md +1 -1
  58. package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/consistency-and-concurrency.md +2 -2
  59. package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/evolution.md +1 -1
  60. package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/stream-patterns.md +2 -2
  61. package/package/corpus/skills/cratis-screenplay-toolchain/SKILL.md +42 -61
  62. package/package/corpus/skills/cratis-screenplay-toolchain/references/automation-translate-example.md +1 -1
  63. package/package/corpus/skills/cratis-screenplay-toolchain/references/cheat-sheet-example.md +7 -9
  64. package/package/corpus/skills/cratis-screenplay-toolchain/references/cheat-sheet.md +15 -18
  65. package/package/corpus/skills/cratis-screenplay-toolchain/references/diagnostics.md +33 -53
  66. package/package/corpus/skills/cratis-screenplay-toolchain/references/executable-example.md +1 -1
  67. package/package/corpus/skills/cratis-screenplay-toolchain/references/executable-subset.md +82 -93
  68. package/package/corpus/skills/cratis-screenplay-toolchain/references/generated-responses-example.md +4 -5
  69. package/package/corpus/skills/cratis-screenplay-toolchain/references/generation-strategies-example.md +1 -2
  70. package/package/corpus/skills/cratis-screenplay-toolchain/references/preferred-syntax.md +5 -9
  71. package/package/corpus/skills/cratis-screenplay-toolchain/references/production-routes-and-filters.md +7 -16
  72. package/package/corpus/skills/cratis-screenplay-toolchain/references/renderable-subset.md +38 -92
  73. package/package/corpus/skills/cratis-screenplay-toolchain/references/screenplay-contract-exceptions.json +4 -11
  74. package/package/corpus/skills/cratis-screenplay-toolchain/references/sources-and-streams.md +14 -19
  75. package/package/corpus/skills/cratis-screenplay-toolchain/references/traps.md +32 -35
  76. package/package/corpus/skills/cratis-screenplay-toolchain/references/verdicts.md +119 -52
  77. package/package/corpus/skills/cratis-screenplay-toolchain/verification.json +18 -24
  78. package/package/corpus/skills/cratis-screenplay-ui-composition/SKILL.md +3 -3
  79. package/package/corpus/skills/cratis-screenplay-ui-composition/references/screen-composition-contract.md +2 -2
  80. package/package.json +1 -1
  81. package/package/corpus/skills/cratis-screenplay-toolchain/references/doc-contradictions.md +0 -72
  82. package/package/corpus/skills/cratis-screenplay-toolchain/references/provenance.md +0 -81
  83. package/package/corpus/skills/cratis-screenplay-toolchain/references/versions.md +0 -341
@@ -2,107 +2,51 @@
2
2
 
3
3
  ## Contents
4
4
 
5
- - Current admission (Stage 4.89.1)
6
- - Historical: what Stage 4.24 admitted
5
+ - Current admission
7
6
  - Authoring consequences in renderable mode
8
7
  - Ownership, publication and recovery
9
8
  - Reading V5
10
9
 
11
- Current compiler/CLI/Stage pins: `versions.md`. CLI 3.57.0 / Stage 4.89.1 admit through v15 to construct
12
- checks, not blanket rendering; above v15 is CLI-RENDER-004 (direct Stage:
13
- STAGE-ESM-016). Public/foreign facts and production overrides retain 032/033/036.
14
- Reaction identity renders role/authenticated gates, not claim-reading/opaque gates (034).
15
- Reaction and reducer filters render on the semantic path; legacy paths retain 034/035. v8 routed read-model/query companion replay now renders; reserved names and
16
- unformattable fixtures remain STAGE-ESM-030 (Stage
17
- `v4.89.1:Documentation/reference/event-source-routing.md:62-72`). Case tables and v8+ `long`
18
- whole numbers apply to the current default. Previous CLI 3.46.1/Stage 4.52.0
19
- admitted only through v7 and applied neither newer rule. The historical v7 canonical-corpus check got
20
- STAGE-ESM-028/029 for generated values/responses
21
- (`v3.41.0:Source/Cli.Specs/for_ScreenplayPlanning/when_planning_an_esm_v7_model.cs`).
22
- The following detailed Stage 4.24.x results are **historical**, not reverified
23
- 4.89.1 claims. Non-positional enum numbers select v12 and now render through
24
- the CLI bundle; concept compliance selects v13 and also renders. Run the bundled renderer before asserting current renderability.
25
-
26
- Historical sources, all read at tags: Stage v4.24.1 `Source/Rendering.Cratis/Semantics/SemanticSurfaceLedger.cs`
27
- (an exhaustive map of every ESM member to Rendered, Rejected(code) or Ignored),
28
- `CratisArtifactRenderPlanner.cs`, `PureTransitionAdmission.cs`; cli v3.28.2
29
- `Commands/Render/RenderSettings.cs` and `Documentation/reference/screenplay.md`. Re-run the
30
- render itself before claiming renderability: this table is a reading of the source, not a
31
- render result.
32
-
33
10
  Renderable is a strict subset of executable (`executable-subset.md`). Order of events in
34
- `cratis render`: the CLI binds the **whole** model with its **bundled Screenplay** (4.147.1 in cratis
35
- 3.57.0, so PLAY0268 and friends appear first, even with `--scope`), then Stage admits or rejects
36
- members of the selected scope. (Historical, cratis 3.28.2: an ESM v6 model bound but Stage refused it
37
- whole with `STAGE-ESM-016`.)
38
-
39
- ## Current admission (Stage 4.89.1)
40
-
41
- Read at Stage `v4.89.1` (`Source/Rendering.Cratis/Semantics/SemanticVersionFeatures.cs:105`,
42
- `SemanticVersionFeatureAdmission.cs:25-46`, `SemanticCratisAdmission.StateView.cs:139-199`,
43
- `Documentation/reference/reaction-rendering.md:57-98`, `generated-values-rendering.md:62-146`)
44
- and CLI `v3.57.0:Source/Cli/Commands/Render/RenderedSemanticVersions.cs:34-47`.
45
- Source reading, not a render run. Stage admits ESM v1 to v15 by
46
- version; each construct it does not render refuses with its own code before any artifact is planned.
47
-
48
- | Area | Renders at 4.89.1 | Refused (code) |
11
+ `cratis render`: the CLI binds the **whole** model with its **bundled Screenplay** (so PLAY0268
12
+ and friends appear first, even with `--scope`), then Stage admits or rejects members of the
13
+ selected scope. Admission is by construct, not blanket: a model above the newest version the
14
+ CLI renders receives CLI-RENDER-004 (direct Stage: STAGE-ESM-016). Public/foreign facts and
15
+ production overrides retain 032/033/036. Reaction identity renders role/authenticated gates,
16
+ not claim-reading/opaque gates (034). Reaction and reducer filters render on the semantic path;
17
+ legacy paths retain 034/035. v8 routed read-model/query companion replay renders; reserved
18
+ names and unformattable fixtures remain STAGE-ESM-030. Case tables and v8+ `long` whole numbers
19
+ apply: below v8 an out-of-`int` literal is STAGE-ESM-031. Non-positional enum numbers (v12)
20
+ and concept compliance (v13) render.
21
+
22
+ ## Current admission
23
+
24
+ Stage admits ESM versions up to the one the bundled CLI renders; each construct it does not render refuses with its own code before any artifact is planned. This table is a reading of the renderer's admission, not a render result: run the bundled renderer before asserting renderability.
25
+
26
+ | Area | Renders | Refused (code) |
49
27
  | --- | --- | --- |
50
28
  | Slice kinds | `StateChange`, `StateView`, supported event-triggered `Automation` with Chronicle reactors | Translate, captures, non-event triggers, opaque bodies, clock/trigger/capture specs (`-024`); claim-reading/opaque `runs as` gates (`-034`), mixed effects from one handler (`-037`, redelivery can duplicate events), unsupported conditions/destinations/mappings (`-039`). Keep refused reactions whole |
51
29
  | Queries | optional keyed snapshot lookups; observable collections, keyed or unkeyed, with v14 equality filters | a snapshot list: `STAGE-ESM-010`; context/single-result filters, opaque `scoped to`/`performer` and composite `by`: PLAY0268. DateTime filters and required parameters after optional filters refuse `-010`; filter-name collisions refuse `-012`; validated scalar keys render as primitives and convert inside the query (an out-of-rule key finds no instance), nested validated keys still refuse `-010` |
52
- | Authorization | role-only, authenticated, opaque pure policies, claim conditions with Uuid, Date, DateTime or text targets (numeric and Boolean claim matches render as always false; Stage 4.73.1 `IsSupportedClaimPath`), `not`/and/or; roles read through the identity's `RoleClaimType` | role-claim URIs, nested opaque policies, unresolved or non-portable policies, no single identifier, opaque-policy subjects that are not text, Uuid, Date or DateTime (`STAGE-ESM-015`; Stage 4.73.1 `IsTextualSubject`, a restriction separate from declarative claim targets) |
30
+ | Authorization | role-only, authenticated, opaque pure policies, claim conditions with Uuid, Date, DateTime or text targets (numeric and Boolean claim matches render as always false), `not`/and/or; roles read through the identity's `RoleClaimType` | role-claim URIs, nested opaque policies, unresolved or non-portable policies, no single identifier, opaque-policy subjects that are not text, Uuid, Date or DateTime (`STAGE-ESM-015`, a restriction separate from declarative claim targets) |
53
31
  | Event sources, streams, routes (ESM v8) | rendered, including routed read-model/query companion replay | reserved stored names, unformattable routed fixtures (`STAGE-ESM-030`) |
54
32
  | Numbers, case tables | whole numbers as `long` from ESM v8; case tables | out-of-`int` literals below v8 (`STAGE-ESM-031`) |
55
33
  | Generated values and responses (v7/v15) | required scalar UUID/String strategies, Guarded v15 freshness, scalar/named responses, generation fixtures and `then returns` | unsupported generated types (`-028`); routed/generated-rule/legacy-allocation/unique-constraint/name-collision or unsupported response combinations, unpinned unordered/projected expectations (`-038`); no blanket `-029` refusal |
56
34
  | Enum numbers / compliance | explicit enum numbers (v12); concept `[PII]` or scoped `[Encrypted]` + `[NotAudited]` (v13), property-level `[NotAudited]` for protected command inputs | protected identities/enums (`-040`); non-text secrets (`-041`, not `pii secret`); explicit subject lineage remains unadmitted |
57
35
  | Specifications | command scenarios and supported single-hop reaction appends; Stage's `admission.md` | appends outside the single-hop subset and commands cascading into reactions (`-011`); `then no readmodel` (`-027`); an unauthenticated caller carrying roles or claims, `$context.occurred`-derived fixed values asserted (`-011`) |
58
36
  | v9 and v10 | reaction/reducer `from` filters; role/authenticated `runs as` | public events and event-target projections (`-032`); foreign origins and event-source captures (`-033`); directed Translate (`-024`); claim-reading/opaque `runs as` gates (`-034`); legacy `from` (`-035`); per-production route overrides (`-036`) |
59
- | Evolved events | initial revisions only | `STAGE-ESM-026` (Stage#204) |
60
- | Descriptions, documentation | XML `<summary>`/`<remarks>` doc comments only (Stage#178 closed) | characters invalid in XML: `CLI-RENDER-005`; never behavior |
61
-
62
- CLI 3.57.0 bundles Screenplay 4.147.1. That compiler still refuses `reads` and
63
- `concurrency` (PLAY0271), command `handler`s (PLAY0268) at binding, before Stage
64
- admission. It binds through v15; supported filters and strategies render.
65
- Response-name authoring scopes are in standalone 4.148.0, not this bundle or Scene runtime. Rows below naming Stage 4.24
66
- behavior are historical.
37
+ | Evolved events | initial revisions only (migrations are not rendered) | `STAGE-ESM-026` |
38
+ | Descriptions, documentation | XML `<summary>`/`<remarks>` doc comments only | characters invalid in XML: `CLI-RENDER-005`; never behavior |
67
39
 
68
- ## Historical: what Stage 4.24 admitted
40
+ The CLI's bundled compiler still refuses `reads` and `concurrency` (PLAY0271) and command
41
+ `handler`s (PLAY0268) at binding, before Stage admission. Supported filters and strategies render.
42
+ Response-name authoring scopes are not rendered and Scene runtime does not supply them.
69
43
 
70
- Models using `eventsource`, `stream` or command routes are not renderable: they fail
71
- binding (`PLAY0268`) and Stage refuses their ESM version (`STAGE-ESM-016`); rendered
72
- appends never carry event source type, event stream type or event stream id, so
73
- Chronicle's defaults apply (Stage#177, #200, #201). See `sources-and-streams.md`.
74
-
75
- Whole-model admission requires ESM schema v1 to v4 on Stage 4.24.2 (v1 to v3 on the 4.24.1 that cratis 3.28.2 bundled, where a v4 model was STAGE-ESM-016 and also failed the CLI pre-check CLI-RENDER-003; cratis 3.28.3 bundles 4.24.2); v5 and v6 are STAGE-ESM-016. On 4.24.2 a selected event above its initial revision, or any scope depending on it, is STAGE-ESM-026 (migrations are not rendered, Stage#204), and a historical typed-context reference is STAGE-ESM-025. The admitted vertical is concepts,
76
- composite types, one command to its events, a one-instance projection, an optional keyed
77
- snapshot query, declarative authorization (including query authorization) and modeled
78
- specifications. **Automation and Translate slices are not rendered** (Stage#79, open): the
79
- whole automation is hand-written (gap-fill).
80
-
81
- | Area | Renders | Rejected (code) |
82
- | --- | --- | --- |
83
- | ESM version | schema v1 to v4 (4.24.2; initial-revision events only) | evolved events: STAGE-ESM-026 (4.24.2); historical references: STAGE-ESM-025; v5 `then no readmodel`, v6 constructs, v7 generated values and responses: STAGE-ESM-016 for the whole model (Stage 4.24.1 also ledgers the v6 members as `STAGE-ESM-024`; users still see STAGE-ESM-016) |
84
- | Slice kinds | `StateChange`, `StateView` | `Automation`, `Translate`: STAGE-ESM-001 |
85
- | Types | concepts over Uuid, String, Int, Decimal, Bool, Date, DateTime; composite types; collections; optional | unknown types: 002 and 003 |
86
- | Validation | not empty, min, max, equal, not equal, comparisons, length, `all >`/`all >=`, matches, `$strings` keys (missing default keys: 018) | code rules and code validation: 005 |
87
- | State change | exactly one command per `StateChange` (004); unconditional `produces` with property mappings; typed `for`; tags; requirements; portable authorization; `$context.occurred` | `produces when` (006); value or literal expressions (006); other `$context` and event-context values (013); `reads` (PLAY0271) |
88
- | State view | one projection per read model (007); `from`, `join`, `children`, `nested`, `every`, removals; set, add, subtract, increment, decrement, clear | composite keys, `all` (FromAll), event-context values, join keys, literal mappings in `every`/`all`, derived event-property names (017); Many or ZeroOrOne affected-instance cardinality (009); root join removal and nested shapes are blocked by Chronicle#4125 and #4166 |
89
- | Queries | only the ZeroOrOne snapshot lookup by the read-model identifier, plus authorization | lists, `One`, observable, live, filters, paging: 010 or PLAY0268 |
90
- | Reducers | bodies that pass the pure-transition allowlist (Roslyn; 023 is information) | impure bodies: 019 to 022 |
91
- | Constraints | unique property value, unique event occurrence; admitted even though Chronicle#4123 means index updates run after commit | intra-command multi-event change to one constraint; multi-claim in one command: 014 |
92
- | Authorization | authenticated, role, claim and logical policies; caller fixtures; ownership claims against text-backed targets | opaque policy code, role-claim URIs, a claim matched against a Uuid-backed subject or path: 015 |
93
- | Specifications | command-action scenarios: given events, `when <Command>`, `then` events (ordered or any order), `then readmodel`, `then query`, `then error` (naming a rendered constraint or message), `then denied`, `given caller`. Two narrow when-less routes: an unprotected single `then query` seeded by exactly one `given readmodel` whose key and values match (no given events, no caller), and a query-only denial (`given caller`, one `then query` with no results, `then denied`, a protected query, no role claims) | `then no readmodel`, `when append`, composite values, error codes not naming a rendered constraint: 011. Any other when-less specification (for example given events with `then query`) fails 011 |
94
- | Compliance | none | any `pii` or `secret` already fails binding (PLAY0268) on the pinned CLI. The C# provider mapping (Stage v4.29.0, Stage#197) is personal data to `[PII]`, operational secrets to `[Encrypted]` + `[NotAudited]`, both to `[PII]` only |
95
-
96
- At standalone 4.127.0, compliance uses bare `pii`/`secret` (legacy markers are
97
- accepted with PLAY0565 information); either still refuses binding on that compiler.
98
- Standalone 4.142.0 admits concept compliance as v13 (from 4.141.0) with narrower refusals
99
- (command-surface `references/compliance.md`). CLI 3.57.0 bundles Screenplay
100
- 4.147.1 / Stage 4.89.1 and renders concept protection as v13. Identity blocks,
101
- purposes and event `subject` are authoring metadata, not provider realization;
102
- executing identity detail reads still refuses PLAY0268. Current source/stream
103
- routes are admitted as v8, including composite ids, not the historical binding
104
- refusal above; the pinned CLI (`versions.md`) reaches Stage's v8 route checks. Never split hand-joined
105
- legacy ids or drop protected ids into routing to fit a renderer (PLAY0515).
44
+ Compliance mapping in the generated C#: personal data to `[PII]`, operational secrets to
45
+ `[Encrypted]` + `[NotAudited]`, both to `[PII]` only. Identity blocks, purposes and event
46
+ `subject` are authoring metadata, not provider realization; executing identity detail reads
47
+ still refuses PLAY0268. Source/stream routes are admitted as v8, including composite ids, and
48
+ the CLI reaches Stage's v8 route checks. Never split hand-joined legacy ids or drop protected
49
+ ids into routing to fit a renderer (PLAY0515).
106
50
 
107
51
  ## Authoring consequences in renderable mode
108
52
 
@@ -111,15 +55,15 @@ legacy ids or drop protected ids into routing to fit a renderer (PLAY0515).
111
55
  - Only supported single-hop reaction `when append` specifications render; no general when-less event-replay proofs. Prove a projection
112
56
  with a command-action scenario (given events, `when <Command>`, `then query` or `then
113
57
  readmodel`). The seeded when-less `then query` only checks a lookup over a given read-model
114
- state; it proves no projection (Stage `SemanticSpecificationAdmission.Callers.cs`).
58
+ state; it proves no projection.
115
59
  - Use `$context.occurred` only; no `$context.identity.*` mappings.
116
- - A list query binds (unfiltered, or narrowed by one `by` key); Stage 4.89.1 renders it only as an
60
+ - A list query binds (unfiltered, or narrowed by one `by` key); Stage renders it only as an
117
61
  `observable` collection, including supported equality filters, and refuses a snapshot list with `STAGE-ESM-010`;
118
62
  context/single-result filters, opaque `scoped to` and `performer` block binding. Keep a list the domain needs and report
119
63
  the capability gap; marking it `observable` or keying it is a modeling decision for the user.
120
64
  - A `handler` (with or without `implementation` or `hint`) never binds; the slice is
121
65
  gap-fill, never "customized into" rendering.
122
- - Descriptions and documentation render only as XML doc comments (Stage#178 closed), never as
66
+ - Descriptions and documentation render only as XML doc comments, never as
123
67
  behavior: a rule that exists only in prose is unenforced in rendered code.
124
68
 
125
69
  ## Ownership, publication and recovery
@@ -140,8 +84,8 @@ legacy ids or drop protected ids into routing to fit a renderer (PLAY0515).
140
84
  `Customizations/styles.css`. The planner never reads it, and it never binds a modeled
141
85
  reaction or capture. A customization never makes a rejected model renderable.
142
86
  - `cratis render` does **not** build, test or run the application.
143
- - Stage 4.89.1's scaffold pins .NET 10 and Arc and Chronicle client/kernel releases
144
- and emits a `.frontend/` React/Vite app (Components and Scene releases pinned too); these are not the latest
87
+ - Stage's scaffold pins .NET and the Arc and Chronicle client/kernel releases
88
+ and emits a `.frontend/` React/Vite app (Components and Scene releases pinned too); these need not be the latest
145
89
  releases (`cratis-stage-rendering-and-sandbox` `references/rendered-application.md`).
146
90
  `CratisEmbeddedScreenplayEnabled=false`; `Directory.Packages.props` is managed,
147
91
  never edit it. `[ProtectedDecision]` / `DecisionRead<T>` are available to gap-fill,
@@ -155,10 +99,12 @@ was exercised; formats and the Debug-only spec classes are in `verdicts.md`. Thr
155
99
  stay distinct: admission failure (nothing rendered); an existing generated base plus
156
100
  separately authorized hand-written gap-fill; and a fully hand-written delivery. Never claim a
157
101
  whole-application V5 from a subset (`cratis render --scope` renders an admitted part; state the scope).
158
- Drift: `cratis render ... --check` (CLI 3.44.0+; exit 6 means pending changes), or compare successive `.cratis-render.json`
159
- `semanticRevision` values from renders with the same `--name` and inputs (see `versions.md`,
102
+ Drift: `cratis render ... --check` (exit 6 means pending changes), or compare successive `.cratis-render.json`
103
+ `semanticRevision` values from renders with the same `--name` and inputs (see `verdicts.md`,
160
104
  "Revisions and descriptions"); not the MCP `modelRevision`, not `open-workspace.revision`.
161
105
 
162
106
  Workflow, gap-fill boundaries and recovery: `cratis-screenplay-render-and-gap-fill` and
163
107
  `cratis-stage-rendering-and-sandbox`. The `cratis/stage` sandbox and the
164
108
  `cratis/stage-specrunner` job are still shipped.
109
+
110
+ Requires Cratis CLI 3.44.0 or later (`cratis --version`) for `cratis render --check`.
@@ -18,7 +18,7 @@
18
18
  "text": "is not proof of coverage. `test` rejects `--no-color` (exit 2).",
19
19
  "kind": "cliOption",
20
20
  "value": "--no-color",
21
- "reason": "Negative option guidance, not a command recommendation; Screenplay v4.145.0 ModelTest.cs:22-26. Remove with the warning."
21
+ "reason": "Negative option guidance, not a command recommendation: `screenplay test` rejects the option. Remove with the warning."
22
22
  },
23
23
  {
24
24
  "file": ".cratis/ai/skills/cratis-screenplay-model-authoring/references/mcp-loop.md",
@@ -46,7 +46,7 @@
46
46
  "text": " remains on disk. On CLI 3.43.0: 9 requests and 9 responses, 37 tools,",
47
47
  "kind": "toolCount",
48
48
  "value": "37",
49
- "reason": "Measured historical CLI 3.43.0 transcript, whose bundled Screenplay 4.127.0 exposes 37 tools. Current compiler and bundle pins are in references/versions.md; this count describes only that transcript. Remove when the transcript is removed or replaced."
49
+ "reason": "Measured historical CLI 3.43.0 transcript, whose bundled Screenplay 4.127.0 exposes 37 tools. Current compiler and bundle versions are in Documentation/compatibility.md; this count describes only that transcript. Remove when the transcript is removed or replaced."
50
50
  },
51
51
  {
52
52
  "file": ".cratis/ai/skills/cratis-screenplay-model-review/SKILL.md",
@@ -55,18 +55,11 @@
55
55
  "value": "29",
56
56
  "reason": "Source evidence explicitly pinned to v4.66.0. Remove when this older source vector is removed or replaced."
57
57
  },
58
- {
59
- "file": ".cratis/ai/skills/cratis-screenplay-toolchain/SKILL.md",
60
- "text": "and the stdio transcript exposed 37 tools; standalone language 4.122.0 was",
61
- "kind": "toolCount",
62
- "value": "37",
63
- "reason": "Historical CLI 3.40.7 / standalone 4.122.0 transcript (version vector in preceding lines). Remove when this probe is removed or replaced."
64
- },
65
58
  {
66
59
  "file": ".cratis/ai/skills/cratis-screenplay-toolchain/references/diagnostics.md",
67
- "text": "| PLAY0686 | Retired | Screenplay 4.152.0 carries differing event pins as `storedName` in ESM v16. MCP's compatibility `eventPinWarnings` array is empty. Renderer admission remains separate; released Stage 4.92.0 and CLI 3.59.0 do not admit v16. |",
60
+ "text": "| PLAY0686 | Retired | Differing event pins travel as `storedName` in ESM v16. MCP's compatibility `eventPinWarnings` array is empty. Renderer admission is separate: a renderer that does not admit v16 must refuse the model rather than render it under the new name. |",
68
61
  "kind": "diagnostic",
69
62
  "value": "PLAY0686",
70
- "reason": "Explicit retirement notice, not an active diagnostic or repair recommendation. Screenplay v4.152.0 published contract marks PLAY0686 retired; Documentation/screenplay/events.md:124 confirms retirement and empty compatibility warnings. Remove when this notice is removed or replaced."
63
+ "reason": "Explicit retirement notice, not an active diagnostic or repair recommendation. The published contract marks PLAY0686 retired. Remove when this notice is removed or replaced."
71
64
  }
72
65
  ]
@@ -11,20 +11,18 @@
11
11
  ## Admission
12
12
 
13
13
  Sources, streams and command/specification routes bind and reference-execute as
14
- **ESM v8** since Screenplay 4.125.0. Current evidence: released `event-sources.md`,
15
- `specifications.md`, `Versions.cs`; the complete example below compiled with
16
- `--warnaserror` and passed `screenplay test` on 4.125.0.
17
-
18
- The pinned CLI/Stage pair (`versions.md`) admits through v15 to construct checks, including v8
19
- routes. Stage 4.89.1 renders routed read-model/query companion replay; reserved names and
20
- unformattable fixtures remain STAGE-ESM-030 (`Documentation/reference/event-source-routing.md:62-72`);
21
- run admission before promising parity. Previous CLI 3.46.1/Stage 4.52.0 refused
22
- above v7 with CLI-RENDER-004. Keep routing intact when a target refuses it;
23
- never remove routing to obtain a render. Pins: `versions.md`. Per-production
14
+ **ESM v8**. The complete example below compiles with `--warnaserror` and passes `screenplay test`.
15
+
16
+ Requires Screenplay 4.125.0 or later (`screenplay --version`) for sources, streams and routes; older compilers refuse them with PLAY0268.
17
+
18
+ The CLI/Stage pair admits v8 routes to construct checks. Stage renders routed read-model/query
19
+ companion replay; reserved names and unformattable fixtures remain STAGE-ESM-030;
20
+ run admission before promising parity. A CLI that renders only older versions answers
21
+ with CLI-RENDER-004. Keep routing intact when a target refuses it;
22
+ never remove routing to obtain a render. Per-production
24
23
  v10 overrides and observer filters: `production-routes-and-filters.md`.
25
24
 
26
- The 4.68.0 historical binder refusal (`PLAY0268`, no admitted version then) is
27
- not the current disposition. Systems/operations and `numbers exact` source mode still report
25
+ Systems/operations and `numbers exact` source mode still report
28
26
  PLAY0268; they are separate capabilities, not evidence against v8 routing.
29
27
 
30
28
  ## Declare and route
@@ -39,7 +37,7 @@ use a bare nested `streamId` followed by all named part mappings exactly once.
39
37
  A property literally named `stream` is written `@stream` where the command clause
40
38
  would otherwise consume it. Do not invent source-only route syntax.
41
39
 
42
- On Screenplay **4.150.0 and later**, exactly `All` is reserved as a stored stream
40
+ Exactly `All` is reserved as a stored stream
43
41
  name (declaration name or `id "All"` pin), just as `Default` is reserved for a
44
42
  stored source name. Comparison is ordinal: streams `all`, `ALL` and `Default`
45
43
  remain valid. Authoring parses/prints these names; executable binding and MCP
@@ -54,10 +52,8 @@ must change the stored stream name. Chronicle uses `All` for appends without a
54
52
  stream, so existing history stored under `All` reads as source-only appends
55
53
  (or unrouted facts), not as the newly named stream. Moving that history needs
56
54
  an explicit Chronicle data migration, not a language repair or invented route.
57
- Sources: Cratis/Screenplay `v4.150.0`,
58
- `Source/DotNET/Screenplay/Semantics/SemanticModelBinder.EventSources.cs:17-52`,
59
- `Documentation/screenplay/event-sources.md:7,132-134`, and
60
- `decisions/0073-reserve-the-stored-event-stream-name-all.md:25-51,63`.
55
+
56
+ Requires Screenplay 4.150.0 or later (`screenplay --version`) for the reserved stream name `All`; earlier compilers accept it silently.
61
57
 
62
58
  ```screenplay
63
59
  concept AccountId : Uuid
@@ -108,7 +104,7 @@ a route. See `cratis-screenplay-specifications` for fixture provenance.
108
104
 
109
105
  ## Canonical keys and evolution
110
106
 
111
- At Screenplay 4.127.0, stream-id literals on command routes (PLAY0504) and
107
+ Stream-id literals on command routes (PLAY0504) and
112
108
  specification routes (PLAY0549) must be nonempty, well-formed Unicode NFC text;
113
109
  invalid text is refused, never normalized. In Double numeric mode integer ids
114
110
  are within ±(2^53−1); Exact mode has no such bound but still refuses binding.
@@ -124,7 +120,6 @@ Format each part by the portable scalar rules, escape `%` to `%25` and `|` to
124
120
  route contradictions compare canonical values part by part (UUID case variants
125
121
  are equal). Changing a stored stream's key schema needs a new stream identity
126
122
  or migration. Keep hand-joined legacy ids as scalar text: never split by guesswork.
127
- Authority: v4.127.0 `event-sources.md`, `diagnostics.md`, decision 0033.
128
123
 
129
124
  ## Boundaries
130
125
 
@@ -1,53 +1,49 @@
1
1
  # Traps (one line each, with the fix)
2
2
 
3
- Current pins: `versions.md`. Unless explicitly
4
- updated below, [probed]/[source] rows retain their historical v4.66.0/CLI 3.28.2
5
- scope; negative capability claims there are not current verdicts. Current routes
6
- bind as v8, v7 reaches Stage planning, reference tests have CLI/MCP routes, and
7
- exact numbers are documented in the grammar. Compiler syntax: `cheat-sheet.md`.
3
+ Compiler syntax: `cheat-sheet.md`. Negative capability claims depend on the tool you ran; name it in every verdict.
8
4
 
9
- 1. Clean V1 is not executable: binding errors appear through MCP (V2), `render` or `cratis screenplay validate --executable` (bundled compiler, writes nothing). Neither `screenplay <folder>` nor plain `cratis screenplay validate` binds. [probed]
10
- 2. The Screenplay samples validate clean but are not all executable; copying their idioms (context-filtered queries, enum/identity compliance, `today`, `reads`, `$causedBy`, templates, performers) can block V3. Caller-supplied collection equality filters bind since 4.143.0 (ESM v14); read read-surface `references/equality-filters.md`. [historical probes; current filter source checked]
5
+ 1. Clean V1 is not executable: binding errors appear through MCP (V2), `render` or `cratis screenplay validate --executable` (bundled compiler, writes nothing). Neither `screenplay <folder>` nor plain `cratis screenplay validate` binds.
6
+ 2. The Screenplay samples validate clean but are not all executable; copying their idioms (context-filtered queries, enum/identity compliance, `today`, `reads`, `$causedBy`, templates, performers) can block V3. Caller-supplied collection equality filters bind; read read-surface `references/equality-filters.md`.
11
7
  3. Know the target mode (design/executable/renderable) before writing; state it.
12
- 4. Plain `produces` without `for` means allocation in the ESM but "the identifier" in rendered code. Always write `for <identifier>` on a plain `produces <Name>`; inline `produces event <Name>` omits `for` and defaults to the identifier. [PLAY0478 probed]
13
- 5. PLAY0029 is a warning: a misspelled keyword (or `type` inside a slice) drops the construct silently. Use `--warnings-as-errors`. [probed]
14
- 6. Validate the folder: `cratis screenplay validate file.play` ignores imports and reports false unknown-name warnings (cli#244, open); the standalone tool follows them. [probed on 3.28.2 and 4.66.0]
8
+ 4. Plain `produces` without `for` means allocation in the ESM but "the identifier" in rendered code. Always write `for <identifier>` on a plain `produces <Name>`; inline `produces event <Name>` omits `for` and defaults to the identifier (PLAY0478).
9
+ 5. PLAY0029 is a warning: a misspelled keyword (or `type` inside a slice) drops the construct silently. Use `--warnings-as-errors`.
10
+ 6. Validate the folder: validating one file with `cratis screenplay validate file.play` can report false unknown-name warnings when the file's siblings are not imported; the standalone tool follows imports.
15
11
  7. Current V1 warns on absent projection/children/nested targets (PLAY0514) and unknown removal/capture events (PLAY0166). Opt-in field-origins checks find unmapped declared fields (PLAY0534) where coverage is known; still walk lineage for skipped/opaque shapes.
16
12
  8. Severity does not soften a rule: `severity warning` still rejects the command.
17
13
  9. Authorization (module AND feature AND construct) runs before validation; unauthorized is `then denied`, never `then error`.
18
- 10. Without a declared actor an invocation is caller-less. At 4.125.0 declare reaction `runs as system role "<Role>"` (ESM v10), keep its gate, and reference-test the trusted path. The historical CLI 3.41.0/4.114.0 parser rejected this syntax (PLAY0137); previous CLI 3.46.1 refused v10 at its version gate; the pinned CLI/Stage pair (`versions.md`) renders role/authenticated reaction identity; claim-reading/opaque system gates still refuse STAGE-ESM-034. Arc gap-fill uses `[ExecuteCommandsAsSystem]` for returned commands, not a fictional `given caller`.
14
+ 10. Without a declared actor an invocation is caller-less. Declare reaction `runs as system role "<Role>"` (ESM v10), keep its gate, and reference-test the trusted path. Stage renders role and authenticated reaction identity; claim-reading or opaque system gates refuse STAGE-ESM-034. Arc gap-fill uses `[ExecuteCommandsAsSystem]` for returned commands, not a fictional `given caller`.
19
15
  11. A reaction `produces` without `for` lands on the trigger's event source; clock and application triggers need an explicit `for`.
20
- 12. Explicit trailing `key` marks replace inference (never `identifier`); multipart read-model keys remain PLAY0268 (#599). Without marks, single-instance queries in the owning slice must agree on `by xId XId`, where `xId` is a read-model property. Only with no such identifier and an admitted list query does `*Id` inference run (collection-key exclusions: read-surface `references/named-keys.md`); queryless views need explicit `key`. The identifier equals the projection's effective key (table in slice-design `references/read-model-design.md`; full rule, including Stage's narrower admission and `STAGE-ESM-017`, in `cratis-stage-rendering-and-sandbox` `references/admission.md`). Never mark a read-model property `identifier`. (Without explicit `key`, PLAY0268 when identity inference is ambiguous or absent; PLAY0351 when a `given`/`then` readmodel block omits that property.)
21
- 13. Projection `key` routes only on `from` (projection-level: PLAY0381). `all` is per event source. Joins never create instances and match the joined event's source id. [probed]
16
+ 12. Explicit trailing `key` marks replace inference (never `identifier`); multipart read-model keys remain PLAY0268. Without marks, single-instance queries in the owning slice must agree on `by xId XId`, where `xId` is a read-model property. Only with no such identifier and an admitted list query does `*Id` inference run (collection-key exclusions: read-surface `references/named-keys.md`); queryless views need explicit `key`. The identifier equals the projection's effective key (table in slice-design `references/read-model-design.md`; full rule, including Stage's narrower admission and `STAGE-ESM-017`, in `cratis-stage-rendering-and-sandbox` `references/admission.md`). Never mark a read-model property `identifier`. (Without explicit `key`, PLAY0268 when identity inference is ambiguous or absent; PLAY0351 when a `given`/`then` readmodel block omits that property.)
17
+ 13. Projection `key` routes only on `from` (projection-level: PLAY0381). `all` is per event source. Joins never create instances and match the joined event's source id.
22
18
  14. AutoMap is on by default: same-named event properties fill read-model properties silently (scoped: case-insensitive, same type only; flat-bound: exact name, no type check, so a type mismatch invalidates the model). Use `no automap` for control.
23
19
  15. `given readmodel` bypasses the projection; prove a projection with `given` events + `when append`/command + `then readmodel`/`then query`.
24
- 16. PLAY0285/0286/0287 are static spec checks: do not edit expectations blindly; PLAY0285 had a cascade false positive on the compiler bundled in cratis before 3.28.2 (4.60.1, cli#242); gone in 4.66.0 and cratis 3.28.2. [probed]
20
+ 16. PLAY0285/0286/0287 are static spec checks: do not edit expectations blindly. An older bundled compiler can report PLAY0285 falsely on reaction cascades; confirm with the standalone tool before changing a `then`.
25
21
  17. `null` in specs only for optional read-model properties (PLAY0350); omit the property or record a gap; whether an optional detail is really a separate fact is a review question, not the fix for this code.
26
22
  18. `then` events are exhaustive and ordered (use `then events in any order` for order only). From ESM v6 they include reaction cascades; after `when append` they list only what followed the append.
27
- 19. `reads` without `by` means a singleton view at Screenplay 4.66.0 (decision 0017 will change it); `reads` never binds (PLAY0271), and neither does a command `concurrency` block (PLAY0271, error). [probed, source]
23
+ 19. `reads` without `by` means a singleton view; `reads` never binds (PLAY0271), and neither does a command `concurrency` block (PLAY0271, error).
28
24
  20. Declare each event once, in its producing slice; renaming a persisted event needs `id "OldName"`; renaming a constraint discards its index.
29
- 21. Quoted `import "x/*.play"` = my files; unquoted `import Ctx.Event` = another context's contract (does not bind: PLAY0268). [probed]
25
+ 21. Quoted `import "x/*.play"` = my files; unquoted `import Ctx.Event` = another context's contract (does not bind: PLAY0268).
30
26
  22. Construct keywords are closed (`aggregate`, `saga`, `workflow` do not exist): PLAY0029 or PLAY0001/0022/0024.
31
27
  23. `@` escapes are mandatory for `tag`, `authorize`, `produces`, `reads`, `file`, `validate`, `sequence`, `occurred`, `causedBy`, `namespace`, `correlation`, `causation`, and projection `key`/`parent`/`with` as names.
32
28
  24. Canonicalizing edits can drop unplaceable comments (PLAY0288; inspect `droppedCommentCount`); keep durable rationale in fenced Markdown `documentation`, not `//`, and summaries in `description`. Documentation survives canonical printing but changes neither executable bytes nor `modelRevision`; it is not rendered code.
33
29
  25. MCP writes: propose, review, approval, apply by the identity owner (the session that owns the MCP connection); other subagents return edit requests; proposals are connection-local, at most 16 (`cratis-screenplay-model-authoring`).
34
- 26. Operations/systems and `numbers exact` source mode remain unadmitted. Qualifying retained non-route Double literals instead select published v11 at 4.135.0. Sources/streams/routes bind as v8, public/direction forms v9, identity/overrides/filters v10. The pinned CLI (`versions.md`) reaches Stage construct checks through v15; supported equality filters and strategies render. See `versions.md`.
30
+ 26. Operations/systems and `numbers exact` source mode remain unadmitted. Qualifying retained non-route Double literals select ESM v11. Sources/streams/routes bind as v8, public/direction forms v9, identity/overrides/filters v10. Stage construct checks run through the CLI's newest admitted version; supported equality filters and strategies render (`renderable-subset.md`).
35
31
  27. Translate crosses the public boundary: inbound foreign/data to private local facts; outbound private facts to one local public type. Public metadata needs explicit direction; a quoted origin is an unverified store name, not a path. Commands never publish public events. In-app private follow-up is Automation; see public-events-and-direction in the method skill.
36
32
  28. Personas drive the board: a persona must list every policy on the path, including module-level `IsAuthenticated`.
37
33
  29. A sample's source check is not execution. Run selected admitted specifications through `screenplay test`/MCP; given==when clock still fires no scheduled occurrence.
38
- 30. Claims compare with `matches` (`claim "dept" matches "Finance"`); `==` is PLAY0120. Conditions with `contains`/`starts with` compile but do not bind. [probed]
39
- 31. One `every`/`all` block per projection level for V3; `$eventContext.occurred.Week` does not bind. [probed]
40
- 32. Concept rules: `min`/`max`/`length ==`, not `length 3 to 10` (PLAY0141). [probed]
41
- 33. Which compiler matters: cratis before 3.28.2 bundle Screenplay 4.60.1, which rejects ESM v6 (Automation/Translate) and reports a false PLAY0285 on cascades; cratis 3.28.2 bundles 4.66.0 and behaves like the standalone tool. Check `cratis --version` and name the tool in every verdict. [probed on both tools]
34
+ 30. Claims compare with `matches` (`claim "dept" matches "Finance"`); `==` is PLAY0120. Conditions with `contains`/`starts with` compile but do not bind.
35
+ 31. One `every`/`all` block per projection level for V3; `$eventContext.occurred.Week` does not bind.
36
+ 32. Concept rules: `min`/`max`/`length ==`, not `length 3 to 10` (PLAY0141).
37
+ 33. Which compiler matters: an older cratis bundle can reject constructs the standalone tool binds (ESM v6 Automation/Translate) and report a false PLAY0285 on cascades. Check `cratis --version` and name the tool in every verdict.
42
38
 
43
- 34. A `from <Event> key <property>` routes only if every such event carries that property: an event that frees or updates a row keyed by another stream's id must carry that id in its payload, or the row never changes. Whether the compiler reports a missing key property is unverified [to probe]; check by hand.
44
- 35. `description`/`documentation` are authoring metadata: board, MCP and Prologue show them; `cratis render` emits them only as XML doc comments (Stage#178 closed; invalid XML characters are CLI-RENDER-005), never as behavior. A rule only in prose is unenforced in rendered code; make it a rule layer, a spec or a recorded target requirement.
45
- 36. One unadmitted construct (operations, `numbers exact`, composite view keys, refusal/redelivery) blocks whole-model binding. Routing is admitted v8, unlike composite view keys (#599); current CLI admits through v15 to construct checks. Overrides replace the whole route, filters never match unrouted facts. Do not remove routing or authorization to render a model.
46
- 37. Personas remain outside ESM bytes, but 4.127.0 specifications accept `given caller as <Persona>`: one authenticated deterministic policy witness, not every matching caller. Inspect the chosen `or` branch; use explicit callers when synthesis is refused.
47
- 38. A rule that depends on stored state is `reads <View>` + `require <expr> message "..."` (stated intent; PLAY0268/0271 at binding are expected in design mode). The slice `description` must mark it NOT enforced in the model today (Screenplay#129) and name the target: Arc `[ProtectedDecision]` + `DecisionRead<T>` (Arc v22.39.0 and later; available to gap-fill on Stage 4.51.3's Arc 22.50.5/Chronicle 19.32.0, not emitted protection), Chronicle DCB (`concurrency` scope), or a constraint where one fits. Forbidden: caller-supplied copies of state in `require`, boolean attestation inputs (`confirmsX == true`), rules hidden in `handler`/implementation-hint prose. An unguarded materialized read is unsafe for a protected decision.
39
+ 34. A `from <Event> key <property>` routes only if every such event carries that property: an event that frees or updates a row keyed by another stream's id must carry that id in its payload, or the row never changes. The compiler may not report a missing key property; check by hand.
40
+ 35. `description`/`documentation` are authoring metadata: board, MCP and Prologue show them; `cratis render` emits them only as XML doc comments (invalid XML characters are CLI-RENDER-005), never as behavior. A rule only in prose is unenforced in rendered code; make it a rule layer, a spec or a recorded target requirement.
41
+ 36. One unadmitted construct (operations, `numbers exact`, composite view keys, refusal/redelivery) blocks whole-model binding. Routing is admitted (v8), unlike composite view keys. Overrides replace the whole route, filters never match unrouted facts. Do not remove routing or authorization to render a model.
42
+ 37. Personas remain outside ESM bytes, but specifications accept `given caller as <Persona>`: one authenticated deterministic policy witness, not every matching caller. Inspect the chosen `or` branch; use explicit callers when synthesis is refused.
43
+ 38. A rule that depends on stored state is `reads <View>` + `require <expr> message "..."` (stated intent; PLAY0268/0271 at binding are expected in design mode). The slice `description` must mark it NOT enforced in the model today and name the target: Arc `[ProtectedDecision]` + `DecisionRead<T>` (available to gap-fill, not emitted protection), Chronicle DCB (`concurrency` scope), or a constraint where one fits. Forbidden: caller-supplied copies of state in `require`, boolean attestation inputs (`confirmsX == true`), rules hidden in `handler`/implementation-hint prose. An unguarded materialized read is unsafe for a protected decision.
44
+ Requires Arc 22.39.0 or later for `[ProtectedDecision]`.
48
45
 
49
- Identity/compliance traps checked at v4.127.0 (`identity.md`, `concepts.md`, `events.md`,
50
- `purposes.md`, `diagnostics.md`):
46
+ Identity and compliance traps (`identity.md`, `concepts.md`, `events.md`, `purposes.md`, `diagnostics.md` in the Screenplay documentation):
51
47
  - `$identity` built-ins alias `$context.identity`; declared detail reads are PLAY0268,
52
48
  while an identity block alone does not block readiness. `scoped to` is opaque,
53
49
  not a detail reference. Query sources need keyed single compatible results and
@@ -63,10 +59,11 @@ Identity/compliance traps checked at v4.127.0 (`identity.md`, `concepts.md`, `ev
63
59
  - Run `--check privilege` on elevated event-trigger paths; opaque producers are
64
60
  unknown, not safe. Arc needs `[ExecuteCommandsAsSystem]` to supply a principal.
65
61
 
66
- The SKILL.md top 12: 1, 4, 5, 6, 7, 10, 12, 13, 17, 18, 20, 21 (+ mode/version notes there). Traps 39 to 44 are tool traps added at the 4.66.0 pin.
67
- 39. A handler never binds: PLAY0268 "Command '<n>' handler requires a constrained implementation attachment", with a file, a fence, `implementation` or `hint` alike. `implementation` and `hint` are accepted on a command handler, an operation execute/compensate phase and (from 4.65.0) a command property named rule, and are rejected on concept rules, built-in property rules and whole-command `require`/`validate` bodies; on a handler they are authoring intent only (no execution, lock or confirmation). A handler slice is gap-fill, not a customization of a rendered slice. [source, probed]
68
- 40. `numbers exact` (the source mode) parses but never binds at any release through 4.139.0 (exact lowering of qualifying Double-mode literals is separate: v11) (PLAY0268; "not admitted by any supported executable model (ESM) version yet") and is PLAY0001 on older compilers; it is absent from `grammar.md`. Never use it in a model or example meant to execute. [probed]
69
- 41. MCP roots bug (4.63.1 and earlier, including the 4.60.1 bundled by cratis before 3.28.2; not present in 4.66.0 or cratis 3.28.2, probed): a dynamic-root server answers the roots request with an `id: null` error right after `notifications/initialized`; hosts treat it as fatal. `open-workspace.path` does not help. Start with a fixed root (`screenplay mcp <folder>`, `cratis screenplay mcp` in a project with `.cratis/ai.json`) or use 4.63.2 or later (cratis 3.28.2 or later). [source, probed]
70
- 42. A symlinked model path is refused by the MCP server (macOS `/tmp` is a symlink); pass the physical path. Proposals are connection-local (at most 16); `apply` persists identities to `.screenplay/identities.json` and is not crash-atomic across files; never retry `apply` after `ApplyOutcomeUnknown`. [source]
71
- 43. `modelRevision` is canonical semantic (line positions and descriptions do not change it; a file move only if it changes logical placement or application identity) and, without `identities.json`, changes with the root folder name; it is not comparable with a render's `semanticRevision`. Source identity for verdicts is the commit plus the digest from the source-identity helper (`cratis-screenplay-modeling-lifecycle` `references/verdicts-and-modes.md` "Source identity"). [probed]
72
- 44. `cratis render` neither builds nor tests; `--name` is required for plain source; `.cratis-render/` is control state and is never staged; Stage 4.51.3 rendered apps pin Arc 22.50.5/Chronicle 19.32.0 (`[ProtectedDecision]` available to gap-fill, not automatically emitted). `cratis` file mode versus folder mode (trap 6) and a stale `cratis` on `PATH` (`which -a cratis`) both silently change what a verdict means. [source]
62
+ Traps 39 to 44 are tool traps.
63
+ 39. A handler never binds: PLAY0268 "Command '<n>' handler requires a constrained implementation attachment", with a file, a fence, `implementation` or `hint` alike. `implementation` and `hint` are accepted on a command handler, an operation execute/compensate phase and a command property named rule, and are rejected on concept rules, built-in property rules and whole-command `require`/`validate` bodies; on a handler they are authoring intent only (no execution, lock or confirmation). A handler slice is gap-fill, not a customization of a rendered slice.
64
+ 40. `numbers exact` (the source mode) parses but never binds (PLAY0268; "not admitted by any supported executable model (ESM) version yet") and is PLAY0001 on older compilers; it is absent from `grammar.md`. Exact lowering of qualifying Double-mode literals is separate (v11). Never use it in a model or example meant to execute.
65
+ 41. MCP roots bug: a dynamic-root server on an old tool answers the roots request with an `id: null` error right after `notifications/initialized`; hosts treat it as fatal, and `open-workspace.path` does not help. Start with a fixed root (`screenplay mcp <folder>`, `cratis screenplay mcp` in a project with `.cratis/ai.json`).
66
+ Requires Screenplay 4.63.2 or later (`screenplay --version`) for a dynamic-root server; the compiler bundled in older cratis releases lacks it.
67
+ 42. A symlinked model path is refused by the MCP server (macOS `/tmp` is a symlink); pass the physical path. Proposals are connection-local (at most 16); `apply` persists identities to `.screenplay/identities.json` and is not crash-atomic across files; never retry `apply` after `ApplyOutcomeUnknown`.
68
+ 43. `modelRevision` is canonical semantic (line positions and descriptions do not change it; a file move only if it changes logical placement or application identity) and, without `identities.json`, changes with the root folder name; it is not comparable with a render's `semanticRevision`. Source identity for verdicts is the commit plus the digest from the source-identity helper (`cratis-screenplay-modeling-lifecycle` `references/verdicts-and-modes.md` "Source identity").
69
+ 44. `cratis render` neither builds nor tests; `--name` is required for plain source; `.cratis-render/` is control state and is never staged; rendered apps pin their own Arc and Chronicle versions (`[ProtectedDecision]` is available to gap-fill, not automatically emitted). `cratis` file mode versus folder mode (trap 6) and a stale `cratis` on `PATH` (`which -a cratis`) both silently change what a verdict means.