@cratis/pi 7.39.0 → 7.41.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (72) hide show
  1. package/package/corpus/product-sync.json +12 -12
  2. package/package/corpus/skills/cratis-arc-command/references/generated-values.md +3 -2
  3. package/package/corpus/skills/cratis-chronicle-reactor/SKILL.md +2 -2
  4. package/package/corpus/skills/cratis-screenplay-automations-and-translations/SKILL.md +4 -2
  5. package/package/corpus/skills/cratis-screenplay-automations-and-translations/references/audit-format.md +2 -2
  6. package/package/corpus/skills/cratis-screenplay-automations-and-translations/references/automation-patterns.md +1 -1
  7. package/package/corpus/skills/cratis-screenplay-automations-and-translations/references/provenance.md +2 -2
  8. package/package/corpus/skills/cratis-screenplay-automations-and-translations/references/public-events-and-direction.md +1 -1
  9. package/package/corpus/skills/cratis-screenplay-automations-and-translations/references/realization-and-gap-fill.md +13 -7
  10. package/package/corpus/skills/cratis-screenplay-automations-and-translations/references/todo-list-example.md +3 -1
  11. package/package/corpus/skills/cratis-screenplay-captures-and-reactions/SKILL.md +7 -6
  12. package/package/corpus/skills/cratis-screenplay-captures-and-reactions/references/invocation-identity.md +4 -2
  13. package/package/corpus/skills/cratis-screenplay-command-surface/SKILL.md +10 -8
  14. package/package/corpus/skills/cratis-screenplay-command-surface/references/compliance.md +13 -2
  15. package/package/corpus/skills/cratis-screenplay-command-surface/references/enum-numbers.md +9 -8
  16. package/package/corpus/skills/cratis-screenplay-command-surface/references/generated-values-and-responses.md +137 -46
  17. package/package/corpus/skills/cratis-screenplay-command-surface/verification.json +13 -8
  18. package/package/corpus/skills/cratis-screenplay-event-modeling/SKILL.md +13 -13
  19. package/package/corpus/skills/cratis-screenplay-event-modeling/references/nine-steps.md +2 -2
  20. package/package/corpus/skills/cratis-screenplay-event-modeling/references/parsed-not-runnable.md +4 -4
  21. package/package/corpus/skills/cratis-screenplay-model-authoring/SKILL.md +1 -1
  22. package/package/corpus/skills/cratis-screenplay-model-authoring/references/language-reference.md +6 -4
  23. package/package/corpus/skills/cratis-screenplay-model-authoring/references/mcp-tools.md +3 -1
  24. package/package/corpus/skills/cratis-screenplay-model-review/references/anti-patterns.md +1 -1
  25. package/package/corpus/skills/cratis-screenplay-model-review/references/checklist.md +1 -1
  26. package/package/corpus/skills/cratis-screenplay-modeling-lifecycle/SKILL.md +2 -2
  27. package/package/corpus/skills/cratis-screenplay-modeling-lifecycle/references/phases.md +1 -1
  28. package/package/corpus/skills/cratis-screenplay-modeling-lifecycle/references/vocabulary-map.md +5 -3
  29. package/package/corpus/skills/cratis-screenplay-read-surface/SKILL.md +1 -1
  30. package/package/corpus/skills/cratis-screenplay-read-surface/references/equality-filters.md +15 -13
  31. package/package/corpus/skills/cratis-screenplay-render-and-gap-fill/SKILL.md +22 -18
  32. package/package/corpus/skills/cratis-screenplay-render-and-gap-fill/references/delivery-protocol.md +1 -1
  33. package/package/corpus/skills/cratis-screenplay-render-and-gap-fill/references/gap-fill-handoff.md +6 -5
  34. package/package/corpus/skills/cratis-screenplay-render-and-gap-fill/references/renderability-gate.md +8 -8
  35. package/package/corpus/skills/cratis-screenplay-render-and-gap-fill/verification.json +2 -2
  36. package/package/corpus/skills/cratis-screenplay-scenario-coverage/references/spec-forms-by-mode.md +6 -5
  37. package/package/corpus/skills/cratis-screenplay-slice-design/references/field-lineage.md +1 -1
  38. package/package/corpus/skills/cratis-screenplay-specifications/references/generated-fixtures.md +12 -5
  39. package/package/corpus/skills/cratis-screenplay-specifications/references/reactions-and-cascades.md +5 -4
  40. package/package/corpus/skills/cratis-screenplay-streams-and-consistency/SKILL.md +4 -4
  41. package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/boundaries.md +2 -1
  42. package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/evolution.md +2 -2
  43. package/package/corpus/skills/cratis-screenplay-streams-and-consistency/verification.json +1 -1
  44. package/package/corpus/skills/cratis-screenplay-toolchain/SKILL.md +19 -14
  45. package/package/corpus/skills/cratis-screenplay-toolchain/references/cheat-sheet-example.md +2 -3
  46. package/package/corpus/skills/cratis-screenplay-toolchain/references/cheat-sheet.md +1 -1
  47. package/package/corpus/skills/cratis-screenplay-toolchain/references/diagnostics.md +7 -4
  48. package/package/corpus/skills/cratis-screenplay-toolchain/references/doc-contradictions.md +3 -3
  49. package/package/corpus/skills/cratis-screenplay-toolchain/references/executable-subset.md +30 -25
  50. package/package/corpus/skills/cratis-screenplay-toolchain/references/generation-strategies-example.md +43 -0
  51. package/package/corpus/skills/cratis-screenplay-toolchain/references/production-routes-and-filters.md +5 -2
  52. package/package/corpus/skills/cratis-screenplay-toolchain/references/provenance.md +1 -1
  53. package/package/corpus/skills/cratis-screenplay-toolchain/references/renderable-subset.md +37 -34
  54. package/package/corpus/skills/cratis-screenplay-toolchain/references/screenplay-contract.json +1499 -46
  55. package/package/corpus/skills/cratis-screenplay-toolchain/references/screenplay-contract.version +1 -1
  56. package/package/corpus/skills/cratis-screenplay-toolchain/references/sources-and-streams.md +3 -2
  57. package/package/corpus/skills/cratis-screenplay-toolchain/references/traps.md +3 -3
  58. package/package/corpus/skills/cratis-screenplay-toolchain/references/verdicts.md +3 -3
  59. package/package/corpus/skills/cratis-screenplay-toolchain/references/versions.md +56 -48
  60. package/package/corpus/skills/cratis-screenplay-toolchain/verification.json +9 -2
  61. package/package/corpus/skills/cratis-screenplay-ui-composition/SKILL.md +7 -7
  62. package/package/corpus/skills/cratis-screenplay-ui-composition/references/response-continuations.md +109 -0
  63. package/package/corpus/skills/cratis-screenplay-ui-composition/references/screen-composition-contract.md +4 -3
  64. package/package/corpus/skills/cratis-screenplay-ui-composition/references/worked-flow.md +3 -2
  65. package/package/corpus/skills/cratis-screenplay-ui-composition/verification.json +5 -0
  66. package/package/corpus/skills/cratis-stage-rendering-and-sandbox/SKILL.md +31 -32
  67. package/package/corpus/skills/cratis-stage-rendering-and-sandbox/references/admission.md +71 -27
  68. package/package/corpus/skills/cratis-stage-rendering-and-sandbox/references/rendered-application.md +18 -21
  69. package/package/corpus/skills/cratis-stage-rendering-and-sandbox/references/sandbox-and-specrunner.md +30 -14
  70. package/package/corpus/skills/cratis-stage-rendering-and-sandbox/references/scene-runtime.md +4 -3
  71. package/package/corpus/skills/cratis-stage-rendering-and-sandbox/verification.json +5 -2
  72. package/package.json +1 -1
@@ -2,26 +2,26 @@
2
2
 
3
3
  ## Contents
4
4
 
5
- - Current admission (Stage 4.73.1)
5
+ - Current admission (Stage 4.89.1)
6
6
  - Historical: what Stage 4.24 admitted
7
7
  - Authoring consequences in renderable mode
8
8
  - Ownership, publication and recovery
9
9
  - Reading V5
10
10
 
11
- Current compiler/CLI/Stage pins: `versions.md`. CLI/Stage admit through v10 to construct
12
- checks, not blanket rendering; above v10 is CLI-RENDER-004 (direct Stage:
13
- STAGE-ESM-016). v9 publication/foreign facts and v10 reaction identity,
14
- reaction filters and production overrides still refuse STAGE-ESM-032–036;
15
- reducer filters render. v8 routes reach specific checks (including routed
16
- read-model/query replay refusal STAGE-ESM-030). Case tables and v8+ `long`
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`
17
18
  whole numbers apply to the current default. Previous CLI 3.46.1/Stage 4.52.0
18
19
  admitted only through v7 and applied neither newer rule. The historical v7 canonical-corpus check got
19
20
  STAGE-ESM-028/029 for generated values/responses
20
21
  (`v3.41.0:Source/Cli.Specs/for_ScreenplayPlanning/when_planning_an_esm_v7_model.cs`).
21
22
  The following detailed Stage 4.24.x results are **historical**, not reverified
22
- 4.73.1 claims. Non-positional enum numbers select v12 on standalone 4.139.0,
23
- but the CLI's 4.137.0 compiler does not bind them and Stage does not admit v12.
24
- Keep the pins and report the consumer gap. Run the bundled renderer before asserting current renderability.
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
25
 
26
26
  Historical sources, all read at tags: Stage v4.24.1 `Source/Rendering.Cratis/Semantics/SemanticSurfaceLedger.cs`
27
27
  (an exhaustive map of every ESM member to Rendered, Rejected(code) or Ignored),
@@ -31,34 +31,38 @@ render itself before claiming renderability: this table is a reading of the sour
31
31
  render result.
32
32
 
33
33
  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.137.0 in cratis
35
- 3.53.1, so PLAY0268 and friends appear first, even with `--scope`), then Stage admits or rejects
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
36
  members of the selected scope. (Historical, cratis 3.28.2: an ESM v6 model bound but Stage refused it
37
37
  whole with `STAGE-ESM-016`.)
38
38
 
39
- ## Current admission (Stage 4.73.1)
39
+ ## Current admission (Stage 4.89.1)
40
40
 
41
- Read at Stage `v4.73.1` (`Documentation/guides/build-renderer-target.md`, `SemanticVersionFeatures.cs`,
42
- `SemanticCratisAdmission*.cs`) and cli `v3.53.1`; source reading, not a render run (the worked
43
- example in `cratis-screenplay-render-and-gap-fill` was probed). Stage admits ESM v1 to v10 by
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
44
46
  version; each construct it does not render refuses with its own code before any artifact is planned.
45
47
 
46
- | Area | Renders at 4.73.1 | Refused (code) |
48
+ | Area | Renders at 4.89.1 | Refused (code) |
47
49
  | --- | --- | --- |
48
- | Slice kinds | `StateChange`, `StateView` | `Automation`, `Translate`, every reaction, capture, application trigger and clock specification (`STAGE-ESM-001`/`-024`); a reaction that both produces and invokes (`-037`, Stage#207; Arc 22.72.0+ can run it, and the Arc the scaffold pins needs a proven override; hand-write one reactor, never split the reaction) |
49
- | Queries | optional keyed snapshot lookups; observable collections, keyed or unkeyed (since 4.49.0) | a snapshot list: `STAGE-ESM-010`; context/single-result filters, opaque `scoped to`/`performer` and composite `by`: PLAY0268. Caller-supplied collection equality filters bind since 4.143.0 as v14, above this bundle's v10 admission ceiling |
50
+ | 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
+ | 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` |
50
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) |
51
- | Event sources, streams, routes (ESM v8) | rendered, with routed specifications | reserved stored names, unformattable routed fixtures, unsupported routed replay (`STAGE-ESM-030`) |
53
+ | Event sources, streams, routes (ESM v8) | rendered, including routed read-model/query companion replay | reserved stored names, unformattable routed fixtures (`STAGE-ESM-030`) |
52
54
  | Numbers, case tables | whole numbers as `long` from ESM v8; case tables | out-of-`int` literals below v8 (`STAGE-ESM-031`) |
53
- | Generated values and responses (v7) | not rendered by Stage 4.73.1 (cli 3.53.1); rendered from standalone Stage 4.74.0 (UUID concepts, scalar and named responses) | `STAGE-ESM-028`/`-029` at 4.73.1 (Stage#175); `STAGE-ESM-038` for combinations the target cannot preserve |
54
- | Specifications | as in Stage's `admission.md` | `then no readmodel` (`-027`); an unauthenticated caller carrying roles or claims, `$context.occurred`-derived fixed values asserted (`-011`) |
55
- | v9 and v10 | reducer observer `from` filters | public events and event-target projections (`-032`); foreign origins and event-source captures (`-033`); directed Translate (`-024`); reaction `runsAs` (`-034`); reaction `from` filters (`-035`); per-production route overrides (`-036`) |
55
+ | 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
+ | 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
+ | 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
+ | 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`) |
56
59
  | Evolved events | initial revisions only | `STAGE-ESM-026` (Stage#204) |
57
60
  | Descriptions, documentation | XML `<summary>`/`<remarks>` doc comments only (Stage#178 closed) | characters invalid in XML: `CLI-RENDER-005`; never behavior |
58
61
 
59
- CLI 3.53.1 bundles Screenplay 4.137.0. That compiler refuses `reads` and
60
- `concurrency` (PLAY0271), command `handler`s and concept `pii`/`secret` markers
61
- (PLAY0268) at binding, before Stage admission. Rows below naming Stage 4.24
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
62
66
  behavior are historical.
63
67
 
64
68
  ## Historical: what Stage 4.24 admitted
@@ -92,9 +96,8 @@ whole automation is hand-written (gap-fill).
92
96
  At standalone 4.127.0, compliance uses bare `pii`/`secret` (legacy markers are
93
97
  accepted with PLAY0565 information); either still refuses binding on that compiler.
94
98
  Standalone 4.142.0 admits concept compliance as v13 (from 4.141.0) with narrower refusals
95
- (command-surface `references/compliance.md`). CLI 3.53.1 bundles Screenplay
96
- 4.137.0, which refuses markers; standalone Stage 4.76.0 admits only through v12
97
- (Stage#345). Identity blocks,
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,
98
101
  purposes and event `subject` are authoring metadata, not provider realization;
99
102
  executing identity detail reads still refuses PLAY0268. Current source/stream
100
103
  routes are admitted as v8, including composite ids, not the historical binding
@@ -105,14 +108,14 @@ legacy ids or drop protected ids into routing to fit a renderer (PLAY0515).
105
108
 
106
109
  - `produces when` is STAGE-ESM-006: split conditional outcomes into separate commands, or
107
110
  record the slice as non-renderable (gap-fill) without distorting a design-mode model.
108
- - No `when append` specifications and no when-less event-replay proofs: prove a projection
111
+ - Only supported single-hop reaction `when append` specifications render; no general when-less event-replay proofs. Prove a projection
109
112
  with a command-action scenario (given events, `when <Command>`, `then query` or `then
110
113
  readmodel`). The seeded when-less `then query` only checks a lookup over a given read-model
111
114
  state; it proves no projection (Stage `SemanticSpecificationAdmission.Callers.cs`).
112
115
  - Use `$context.occurred` only; no `$context.identity.*` mappings.
113
- - A list query binds (unfiltered, or narrowed by one `by` key); Stage 4.73.1 renders it only as an
114
- `observable` collection, and refuses a snapshot list with `STAGE-ESM-010`. `filter`, `scoped to` and
115
- `performer` queries block binding of the whole application. Keep a list the domain needs and report
116
+ - A list query binds (unfiltered, or narrowed by one `by` key); Stage 4.89.1 renders it only as an
117
+ `observable` collection, including supported equality filters, and refuses a snapshot list with `STAGE-ESM-010`;
118
+ context/single-result filters, opaque `scoped to` and `performer` block binding. Keep a list the domain needs and report
116
119
  the capability gap; marking it `observable` or keying it is a modeling decision for the user.
117
120
  - A `handler` (with or without `implementation` or `hint`) never binds; the slice is
118
121
  gap-fill, never "customized into" rendering.
@@ -137,7 +140,7 @@ legacy ids or drop protected ids into routing to fit a renderer (PLAY0515).
137
140
  `Customizations/styles.css`. The planner never reads it, and it never binds a modeled
138
141
  reaction or capture. A customization never makes a rejected model renderable.
139
142
  - `cratis render` does **not** build, test or run the application.
140
- - Stage 4.73.1's scaffold pins .NET 10 and Arc and Chronicle client/kernel releases
143
+ - Stage 4.89.1's scaffold pins .NET 10 and Arc and Chronicle client/kernel releases
141
144
  and emits a `.frontend/` React/Vite app (Components and Scene releases pinned too); these are not the latest
142
145
  releases (`cratis-stage-rendering-and-sandbox` `references/rendered-application.md`).
143
146
  `CratisEmbeddedScreenplayEnabled=false`; `Directory.Packages.props` is managed,