@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.
- package/package/corpus/harnesses/copilot/instructions/local-work-artifacts.instructions.md +6 -2
- package/package/corpus/harnesses/copilot/instructions/profiles.instructions.md +1 -1
- package/package/corpus/hooks/README.md +11 -5
- package/package/corpus/hooks/scripts/cratis-cleanup-worktrees.sh +44 -4
- package/package/corpus/prompts/ship-changes.prompt.md +4 -1
- package/package/corpus/rules/local-work-artifacts.md +6 -2
- package/package/corpus/rules/profiles.md +1 -1
- package/package/corpus/skills/cratis-application-slice-conformance/SKILL.md +2 -2
- package/package/corpus/skills/cratis-chronicle-event-modeling/SKILL.md +1 -1
- package/package/corpus/skills/cratis-event-model-diagram/SKILL.md +1 -1
- package/package/corpus/skills/cratis-screenplay-automations-and-translations/SKILL.md +4 -4
- package/package/corpus/skills/cratis-screenplay-automations-and-translations/references/audit-format.md +1 -1
- package/package/corpus/skills/cratis-screenplay-automations-and-translations/references/automation-patterns.md +3 -3
- package/package/corpus/skills/cratis-screenplay-automations-and-translations/references/cases-to-specify.md +1 -1
- package/package/corpus/skills/cratis-screenplay-automations-and-translations/references/provenance.md +2 -2
- package/package/corpus/skills/cratis-screenplay-automations-and-translations/references/public-events-and-direction.md +2 -2
- package/package/corpus/skills/cratis-screenplay-automations-and-translations/references/todo-list-example.md +1 -1
- package/package/corpus/skills/cratis-screenplay-captures-and-reactions/SKILL.md +6 -6
- package/package/corpus/skills/cratis-screenplay-captures-and-reactions/references/invocation-identity.md +3 -3
- package/package/corpus/skills/cratis-screenplay-captures-and-reactions/references/product-sources.md +1 -1
- package/package/corpus/skills/cratis-screenplay-captures-and-reactions/references/specifying-triggers-and-clock.md +1 -1
- package/package/corpus/skills/cratis-screenplay-command-surface/SKILL.md +3 -3
- package/package/corpus/skills/cratis-screenplay-command-surface/references/compliance.md +1 -1
- package/package/corpus/skills/cratis-screenplay-command-surface/references/context.md +1 -1
- package/package/corpus/skills/cratis-screenplay-command-surface/references/enum-numbers.md +1 -1
- package/package/corpus/skills/cratis-screenplay-delivery-planning/SKILL.md +1 -1
- package/package/corpus/skills/cratis-screenplay-delivery-planning/references/slice-counting.md +1 -1
- package/package/corpus/skills/cratis-screenplay-discovery/SKILL.md +1 -1
- package/package/corpus/skills/cratis-screenplay-event-modeling/SKILL.md +3 -3
- package/package/corpus/skills/cratis-screenplay-event-modeling/references/parsed-not-runnable.md +2 -2
- package/package/corpus/skills/cratis-screenplay-legacy-extraction/SKILL.md +1 -1
- package/package/corpus/skills/cratis-screenplay-legacy-extraction/references/chronicle-observations.md +1 -1
- package/package/corpus/skills/cratis-screenplay-legacy-extraction/references/generate-notes.md +4 -5
- package/package/corpus/skills/cratis-screenplay-legacy-extraction/references/generated-recovery.md +1 -1
- package/package/corpus/skills/cratis-screenplay-legacy-extraction/references/prologue-safety.md +1 -1
- package/package/corpus/skills/cratis-screenplay-model-authoring/SKILL.md +1 -1
- package/package/corpus/skills/cratis-screenplay-model-authoring/references/language-reference.md +4 -4
- package/package/corpus/skills/cratis-screenplay-model-authoring/references/mcp-tools.md +3 -3
- package/package/corpus/skills/cratis-screenplay-model-authoring/references/model-notes.md +1 -1
- package/package/corpus/skills/cratis-screenplay-model-authoring/references/screen-authoring-workflow.md +1 -1
- package/package/corpus/skills/cratis-screenplay-model-review/SKILL.md +1 -1
- package/package/corpus/skills/cratis-screenplay-modeling-lifecycle/SKILL.md +1 -1
- package/package/corpus/skills/cratis-screenplay-modeling-lifecycle/references/stop-or-assume.md +1 -1
- package/package/corpus/skills/cratis-screenplay-modeling-lifecycle/references/verdicts-and-modes.md +1 -1
- package/package/corpus/skills/cratis-screenplay-projections/SKILL.md +1 -1
- package/package/corpus/skills/cratis-screenplay-read-surface/SKILL.md +1 -1
- package/package/corpus/skills/cratis-screenplay-read-surface/references/provenance.md +2 -2
- package/package/corpus/skills/cratis-screenplay-render-and-gap-fill/SKILL.md +3 -3
- package/package/corpus/skills/cratis-screenplay-render-and-gap-fill/references/drift-and-ledger.md +1 -1
- package/package/corpus/skills/cratis-screenplay-render-and-gap-fill/references/gap-fill-handoff.md +2 -2
- package/package/corpus/skills/cratis-screenplay-render-and-gap-fill/references/renderability-gate.md +2 -2
- package/package/corpus/skills/cratis-screenplay-scenario-coverage/SKILL.md +2 -2
- package/package/corpus/skills/cratis-screenplay-scenario-coverage/references/provenance.md +2 -2
- package/package/corpus/skills/cratis-screenplay-scenario-coverage/references/scenario-catalogue.md +1 -1
- package/package/corpus/skills/cratis-screenplay-scenario-coverage/references/spec-forms-by-mode.md +5 -5
- package/package/corpus/skills/cratis-screenplay-slice-design/SKILL.md +2 -2
- package/package/corpus/skills/cratis-screenplay-slice-design/references/worked-example.md +1 -1
- package/package/corpus/skills/cratis-screenplay-specifications/SKILL.md +3 -3
- package/package/corpus/skills/cratis-screenplay-specifications/references/examples-and-routes.md +2 -2
- package/package/corpus/skills/cratis-screenplay-streams-and-consistency/SKILL.md +4 -4
- package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/boundaries.md +1 -1
- package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/chronicle-boundaries.md +1 -1
- package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/consistency-and-concurrency.md +2 -2
- package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/evolution.md +1 -1
- package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/stream-patterns.md +2 -2
- package/package/corpus/skills/cratis-screenplay-toolchain/SKILL.md +42 -61
- package/package/corpus/skills/cratis-screenplay-toolchain/references/automation-translate-example.md +1 -1
- package/package/corpus/skills/cratis-screenplay-toolchain/references/cheat-sheet-example.md +7 -9
- package/package/corpus/skills/cratis-screenplay-toolchain/references/cheat-sheet.md +15 -18
- package/package/corpus/skills/cratis-screenplay-toolchain/references/diagnostics.md +33 -53
- package/package/corpus/skills/cratis-screenplay-toolchain/references/executable-example.md +1 -1
- package/package/corpus/skills/cratis-screenplay-toolchain/references/executable-subset.md +82 -93
- package/package/corpus/skills/cratis-screenplay-toolchain/references/generated-responses-example.md +4 -5
- package/package/corpus/skills/cratis-screenplay-toolchain/references/generation-strategies-example.md +1 -2
- package/package/corpus/skills/cratis-screenplay-toolchain/references/preferred-syntax.md +5 -9
- package/package/corpus/skills/cratis-screenplay-toolchain/references/production-routes-and-filters.md +7 -16
- package/package/corpus/skills/cratis-screenplay-toolchain/references/renderable-subset.md +38 -92
- package/package/corpus/skills/cratis-screenplay-toolchain/references/screenplay-contract-exceptions.json +4 -11
- package/package/corpus/skills/cratis-screenplay-toolchain/references/sources-and-streams.md +14 -19
- package/package/corpus/skills/cratis-screenplay-toolchain/references/traps.md +32 -35
- package/package/corpus/skills/cratis-screenplay-toolchain/references/verdicts.md +119 -52
- package/package/corpus/skills/cratis-screenplay-toolchain/verification.json +18 -24
- package/package/corpus/skills/cratis-screenplay-ui-composition/SKILL.md +3 -3
- package/package/corpus/skills/cratis-screenplay-ui-composition/references/screen-composition-contract.md +2 -2
- package/package/corpus/skills/cratis-stage-rendering-and-sandbox/SKILL.md +110 -167
- package/package/corpus/skills/cratis-stage-rendering-and-sandbox/references/admission.md +74 -170
- package/package/corpus/skills/cratis-stage-rendering-and-sandbox/references/case-tables-and-whole-numbers.md +15 -35
- package/package/corpus/skills/cratis-stage-rendering-and-sandbox/references/choosing-generation.md +4 -6
- package/package/corpus/skills/cratis-stage-rendering-and-sandbox/references/render-example.md +23 -27
- package/package/corpus/skills/cratis-stage-rendering-and-sandbox/references/rendered-application.md +21 -33
- package/package/corpus/skills/cratis-stage-rendering-and-sandbox/references/sandbox-and-specrunner.md +61 -92
- package/package/corpus/skills/cratis-stage-rendering-and-sandbox/references/scene-runtime.md +4 -12
- package/package/corpus/skills/cratis-stage-rendering-and-sandbox/verification.json +10 -14
- package/package.json +1 -1
- package/package/corpus/skills/cratis-screenplay-toolchain/references/doc-contradictions.md +0 -72
- package/package/corpus/skills/cratis-screenplay-toolchain/references/provenance.md +0 -81
- 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
|
|
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** (
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
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
|
|
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`
|
|
60
|
-
| Descriptions, documentation | XML `<summary>`/`<remarks>` doc comments only
|
|
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
|
-
|
|
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
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
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
|
|
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
|
|
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
|
|
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
|
|
144
|
-
and emits a `.frontend/` React/Vite app (Components and Scene releases pinned too); these
|
|
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` (
|
|
159
|
-
`semanticRevision` values from renders with the same `--name` and inputs (see `
|
|
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
|
|
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
|
|
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 |
|
|
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.
|
|
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
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
The
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
58
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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.
|
|
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
|
|
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
|
|
13
|
-
5. PLAY0029 is a warning: a misspelled keyword (or `type` inside a slice) drops the construct silently. Use `--warnings-as-errors`.
|
|
14
|
-
6. Validate the folder: `cratis screenplay validate file.play`
|
|
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.
|
|
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
|
|
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.
|
|
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
|
|
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
|
|
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).
|
|
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
|
|
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.
|
|
39
|
-
31. One `every`/`all` block per projection level for V3; `$eventContext.occurred.Week` does not bind.
|
|
40
|
-
32. Concept rules: `min`/`max`/`length ==`, not `length 3 to 10` (PLAY0141).
|
|
41
|
-
33. Which compiler matters:
|
|
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.
|
|
44
|
-
35. `description`/`documentation` are authoring metadata: board, MCP and Prologue show them; `cratis render` emits them only as XML doc comments (
|
|
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
|
|
46
|
-
37. Personas remain outside ESM bytes, but
|
|
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
|
|
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
|
|
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
|
-
|
|
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
|
|
68
|
-
40. `numbers exact` (the source mode) parses but never binds
|
|
69
|
-
41. MCP roots bug
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
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.
|