@cratis/pi 7.48.0 → 7.48.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (97) hide show
  1. package/package/corpus/harnesses/copilot/instructions/local-work-artifacts.instructions.md +6 -2
  2. package/package/corpus/harnesses/copilot/instructions/profiles.instructions.md +1 -1
  3. package/package/corpus/hooks/README.md +11 -5
  4. package/package/corpus/hooks/scripts/cratis-cleanup-worktrees.sh +44 -4
  5. package/package/corpus/prompts/ship-changes.prompt.md +4 -1
  6. package/package/corpus/rules/local-work-artifacts.md +6 -2
  7. package/package/corpus/rules/profiles.md +1 -1
  8. package/package/corpus/skills/cratis-application-slice-conformance/SKILL.md +2 -2
  9. package/package/corpus/skills/cratis-chronicle-event-modeling/SKILL.md +1 -1
  10. package/package/corpus/skills/cratis-event-model-diagram/SKILL.md +1 -1
  11. package/package/corpus/skills/cratis-screenplay-automations-and-translations/SKILL.md +4 -4
  12. package/package/corpus/skills/cratis-screenplay-automations-and-translations/references/audit-format.md +1 -1
  13. package/package/corpus/skills/cratis-screenplay-automations-and-translations/references/automation-patterns.md +3 -3
  14. package/package/corpus/skills/cratis-screenplay-automations-and-translations/references/cases-to-specify.md +1 -1
  15. package/package/corpus/skills/cratis-screenplay-automations-and-translations/references/provenance.md +2 -2
  16. package/package/corpus/skills/cratis-screenplay-automations-and-translations/references/public-events-and-direction.md +2 -2
  17. package/package/corpus/skills/cratis-screenplay-automations-and-translations/references/todo-list-example.md +1 -1
  18. package/package/corpus/skills/cratis-screenplay-captures-and-reactions/SKILL.md +6 -6
  19. package/package/corpus/skills/cratis-screenplay-captures-and-reactions/references/invocation-identity.md +3 -3
  20. package/package/corpus/skills/cratis-screenplay-captures-and-reactions/references/product-sources.md +1 -1
  21. package/package/corpus/skills/cratis-screenplay-captures-and-reactions/references/specifying-triggers-and-clock.md +1 -1
  22. package/package/corpus/skills/cratis-screenplay-command-surface/SKILL.md +3 -3
  23. package/package/corpus/skills/cratis-screenplay-command-surface/references/compliance.md +1 -1
  24. package/package/corpus/skills/cratis-screenplay-command-surface/references/context.md +1 -1
  25. package/package/corpus/skills/cratis-screenplay-command-surface/references/enum-numbers.md +1 -1
  26. package/package/corpus/skills/cratis-screenplay-delivery-planning/SKILL.md +1 -1
  27. package/package/corpus/skills/cratis-screenplay-delivery-planning/references/slice-counting.md +1 -1
  28. package/package/corpus/skills/cratis-screenplay-discovery/SKILL.md +1 -1
  29. package/package/corpus/skills/cratis-screenplay-event-modeling/SKILL.md +3 -3
  30. package/package/corpus/skills/cratis-screenplay-event-modeling/references/parsed-not-runnable.md +2 -2
  31. package/package/corpus/skills/cratis-screenplay-legacy-extraction/SKILL.md +1 -1
  32. package/package/corpus/skills/cratis-screenplay-legacy-extraction/references/chronicle-observations.md +1 -1
  33. package/package/corpus/skills/cratis-screenplay-legacy-extraction/references/generate-notes.md +4 -5
  34. package/package/corpus/skills/cratis-screenplay-legacy-extraction/references/generated-recovery.md +1 -1
  35. package/package/corpus/skills/cratis-screenplay-legacy-extraction/references/prologue-safety.md +1 -1
  36. package/package/corpus/skills/cratis-screenplay-model-authoring/SKILL.md +1 -1
  37. package/package/corpus/skills/cratis-screenplay-model-authoring/references/language-reference.md +4 -4
  38. package/package/corpus/skills/cratis-screenplay-model-authoring/references/mcp-tools.md +3 -3
  39. package/package/corpus/skills/cratis-screenplay-model-authoring/references/model-notes.md +1 -1
  40. package/package/corpus/skills/cratis-screenplay-model-authoring/references/screen-authoring-workflow.md +1 -1
  41. package/package/corpus/skills/cratis-screenplay-model-review/SKILL.md +1 -1
  42. package/package/corpus/skills/cratis-screenplay-modeling-lifecycle/SKILL.md +1 -1
  43. package/package/corpus/skills/cratis-screenplay-modeling-lifecycle/references/stop-or-assume.md +1 -1
  44. package/package/corpus/skills/cratis-screenplay-modeling-lifecycle/references/verdicts-and-modes.md +1 -1
  45. package/package/corpus/skills/cratis-screenplay-projections/SKILL.md +1 -1
  46. package/package/corpus/skills/cratis-screenplay-read-surface/SKILL.md +1 -1
  47. package/package/corpus/skills/cratis-screenplay-read-surface/references/provenance.md +2 -2
  48. package/package/corpus/skills/cratis-screenplay-render-and-gap-fill/SKILL.md +3 -3
  49. package/package/corpus/skills/cratis-screenplay-render-and-gap-fill/references/drift-and-ledger.md +1 -1
  50. package/package/corpus/skills/cratis-screenplay-render-and-gap-fill/references/gap-fill-handoff.md +2 -2
  51. package/package/corpus/skills/cratis-screenplay-render-and-gap-fill/references/renderability-gate.md +2 -2
  52. package/package/corpus/skills/cratis-screenplay-scenario-coverage/SKILL.md +2 -2
  53. package/package/corpus/skills/cratis-screenplay-scenario-coverage/references/provenance.md +2 -2
  54. package/package/corpus/skills/cratis-screenplay-scenario-coverage/references/scenario-catalogue.md +1 -1
  55. package/package/corpus/skills/cratis-screenplay-scenario-coverage/references/spec-forms-by-mode.md +5 -5
  56. package/package/corpus/skills/cratis-screenplay-slice-design/SKILL.md +2 -2
  57. package/package/corpus/skills/cratis-screenplay-slice-design/references/worked-example.md +1 -1
  58. package/package/corpus/skills/cratis-screenplay-specifications/SKILL.md +3 -3
  59. package/package/corpus/skills/cratis-screenplay-specifications/references/examples-and-routes.md +2 -2
  60. package/package/corpus/skills/cratis-screenplay-streams-and-consistency/SKILL.md +4 -4
  61. package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/boundaries.md +1 -1
  62. package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/chronicle-boundaries.md +1 -1
  63. package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/consistency-and-concurrency.md +2 -2
  64. package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/evolution.md +1 -1
  65. package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/stream-patterns.md +2 -2
  66. package/package/corpus/skills/cratis-screenplay-toolchain/SKILL.md +42 -61
  67. package/package/corpus/skills/cratis-screenplay-toolchain/references/automation-translate-example.md +1 -1
  68. package/package/corpus/skills/cratis-screenplay-toolchain/references/cheat-sheet-example.md +7 -9
  69. package/package/corpus/skills/cratis-screenplay-toolchain/references/cheat-sheet.md +15 -18
  70. package/package/corpus/skills/cratis-screenplay-toolchain/references/diagnostics.md +33 -53
  71. package/package/corpus/skills/cratis-screenplay-toolchain/references/executable-example.md +1 -1
  72. package/package/corpus/skills/cratis-screenplay-toolchain/references/executable-subset.md +82 -93
  73. package/package/corpus/skills/cratis-screenplay-toolchain/references/generated-responses-example.md +4 -5
  74. package/package/corpus/skills/cratis-screenplay-toolchain/references/generation-strategies-example.md +1 -2
  75. package/package/corpus/skills/cratis-screenplay-toolchain/references/preferred-syntax.md +5 -9
  76. package/package/corpus/skills/cratis-screenplay-toolchain/references/production-routes-and-filters.md +7 -16
  77. package/package/corpus/skills/cratis-screenplay-toolchain/references/renderable-subset.md +38 -92
  78. package/package/corpus/skills/cratis-screenplay-toolchain/references/screenplay-contract-exceptions.json +4 -11
  79. package/package/corpus/skills/cratis-screenplay-toolchain/references/sources-and-streams.md +14 -19
  80. package/package/corpus/skills/cratis-screenplay-toolchain/references/traps.md +32 -35
  81. package/package/corpus/skills/cratis-screenplay-toolchain/references/verdicts.md +119 -52
  82. package/package/corpus/skills/cratis-screenplay-toolchain/verification.json +18 -24
  83. package/package/corpus/skills/cratis-screenplay-ui-composition/SKILL.md +3 -3
  84. package/package/corpus/skills/cratis-screenplay-ui-composition/references/screen-composition-contract.md +2 -2
  85. package/package/corpus/skills/cratis-stage-rendering-and-sandbox/SKILL.md +110 -167
  86. package/package/corpus/skills/cratis-stage-rendering-and-sandbox/references/admission.md +74 -170
  87. package/package/corpus/skills/cratis-stage-rendering-and-sandbox/references/case-tables-and-whole-numbers.md +15 -35
  88. package/package/corpus/skills/cratis-stage-rendering-and-sandbox/references/choosing-generation.md +4 -6
  89. package/package/corpus/skills/cratis-stage-rendering-and-sandbox/references/render-example.md +23 -27
  90. package/package/corpus/skills/cratis-stage-rendering-and-sandbox/references/rendered-application.md +21 -33
  91. package/package/corpus/skills/cratis-stage-rendering-and-sandbox/references/sandbox-and-specrunner.md +61 -92
  92. package/package/corpus/skills/cratis-stage-rendering-and-sandbox/references/scene-runtime.md +4 -12
  93. package/package/corpus/skills/cratis-stage-rendering-and-sandbox/verification.json +10 -14
  94. package/package.json +1 -1
  95. package/package/corpus/skills/cratis-screenplay-toolchain/references/doc-contradictions.md +0 -72
  96. package/package/corpus/skills/cratis-screenplay-toolchain/references/provenance.md +0 -81
  97. package/package/corpus/skills/cratis-screenplay-toolchain/references/versions.md +0 -341
@@ -2,53 +2,41 @@
2
2
 
3
3
  ## Contents
4
4
 
5
- - Scaffold pins
5
+ - Scaffold
6
6
  - What is managed
7
7
  - `Customizations/` (unmanaged)
8
8
  - Re-render checklist
9
9
 
10
- Read at Stage `v4.24.0`, with the scaffold pins re-read at `v4.89.1` (`Scaffolding/CratisBackendApplicationScaffold*.cs`,
11
- `CratisFrontendApplicationScaffold.cs`, `README.md`,
12
- `Documentation/guides/customize-rendered-application.md`) and checked against a real
13
- render (see [render-example.md](render-example.md)).
10
+ ## Scaffold
14
11
 
15
- ## Scaffold pins
16
-
17
- The pin rows below are source-checked at Stage `v4.89.1` (the Stage in CLI 3.57.0),
18
- `Source/Rendering.Cratis/Scaffolding/CratisBackendApplicationScaffoldProfile.cs:59-71`
19
- (`Current`) and `CratisFrontendPackageSet.cs:208-229` (`Current`; read the argument
20
- list, not the class summary). The scaffold pins an exact release per package;
21
- moving them is a Stage change, so a re-render under a newer Stage is how they change. Earlier runtime/customization
22
- probes above keep their original labels.
12
+ The scaffold pins an exact release of every dependency (Arc, Chronicle client and kernel
13
+ image, Cratis Components, Scene, Fundamentals, Vite and React). The pins belong to the
14
+ renderer: read them from the rendered `.csproj`, `docker-compose.yml` and `package.json`, never
15
+ from this skill. Moving them is a renderer change, so a re-render
16
+ under a newer Stage is how they change; never bump a managed file.
23
17
 
24
18
  | Item | Value |
25
19
  | --- | --- |
26
20
  | Target framework | .NET 10 (`net10.0`), `Microsoft.NET.Sdk.Web` |
27
- | Arc packages (`Cratis`, `Cratis.Arc.MongoDB`, `Cratis.Arc.Chronicle.Testing`) | `22.83.0` (includes Arc's events-and-commands reactor result handler; Stage still refuses mixed reactions because redelivery can duplicate the appended events) |
28
- | Chronicle client | `Cratis.Chronicle`, `.AspNetCore` and `.Testing` `19.54.0`, matched to the `cratis/chronicle:19.54.0-development` image in the compose file |
21
+ | Chronicle image | The compose file runs the `cratis/chronicle` development image matching the pinned client |
29
22
  | Embedded reverse extraction | `CratisEmbeddedScreenplayEnabled=false`: the source `.play` is authoritative |
30
- | Test packages | `Cratis.Specifications` and `.XUnit` 4.1.1, Microsoft.NET.Test.Sdk 18.10.1, NSubstitute 6.2.0, xunit 2.9.3, xunit runner 4.0.0; **Debug configuration only** (`IsTestProject` when Debug) |
31
- | Frontend | Vite 8.3.0 and React 19.3.0; `@cratis/arc`, `arc.react`, `arc.vite` 22.58.2; `@cratis/components` 4.26.2; `@cratis/scene.*` 4.22.1; `@cratis/fundamentals` 7.22.8 |
23
+ | Test packages | Cratis specifications, xunit and test SDK; **Debug configuration only** (`IsTestProject` when Debug) |
32
24
  | Package management | central package management **off**; `Directory.Packages.props` is managed, do not edit it |
33
25
 
34
- The Scene family pin above applies to six scaffold dependencies:
35
- `@cratis/scene.blueprint.default`, `@cratis/scene.components`, `@cratis/scene.engine`,
36
- `@cratis/scene.model`, `@cratis/scene.primereact`, and `@cratis/scene.react`.
37
- Source: Stage `v4.89.1:Source/Rendering.Cratis/Scaffolding/CratisFrontendApplicationScaffold.cs`, `Dependencies`,
38
- and `CratisFrontendPackageSet.cs`, `Current`. `@cratis/scene` is **not** a package
39
- in this family. Read [Scene runtime](scene-runtime.md) when distinguishing the
40
- runtime from a hand-built Components page. The latest Components verification
41
- in this corpus is 4.26.4; it does not change the scaffold's 4.26.2 pin.
26
+ The Scene family in the frontend is six packages: `@cratis/scene.blueprint.default`,
27
+ `@cratis/scene.components`, `@cratis/scene.engine`, `@cratis/scene.model`,
28
+ `@cratis/scene.primereact` and `@cratis/scene.react`. `@cratis/scene` is **not** a package
29
+ in this family. Read [Scene runtime](scene-runtime.md) when distinguishing the runtime
30
+ from a hand-built Components page. The scaffold's Components pin is independent of the
31
+ newest Components release.
42
32
 
43
33
  Consequences: `[ProtectedDecision]` (`Cratis.Arc.Chronicle.ReadModels`) and
44
34
  `DecisionRead<T>` / `IDecisionReads` (`Cratis.Chronicle.ReadModels`) are available
45
- in this scaffold's package set, as is `[ExecuteCommandsAsSystem]`. This is API
35
+ in the scaffold's package set, as is `[ExecuteCommandsAsSystem]`. This is API
46
36
  availability, not Stage emission or runtime protection: gap-fill must opt into
47
37
  the protected command profile and enroll an admitted projection/key read in the
48
- active unit of work. Source-checked at Arc v22.72.0 `ProtectedDecisionAttribute.cs`
49
- and `CommandDecisionReads.cs`, Chronicle v19.50.0 `DecisionRead.cs`/`IDecisionReads.cs`.
50
- Stage does not turn `.play` `reads`/`require` into protected decisions. Upgrading Arc or Chronicle inside a rendered application is a re-render under a newer
51
- Stage, not an edit of the managed files. Hand-written scope that needs a newer dependency can raise its version through
38
+ active unit of work. Stage does not turn `.play` `reads`/`require` into protected decisions.
39
+ Hand-written scope that needs a newer dependency can raise its version through
52
40
  `Customizations/Dependencies.props` (explicit `Version`, imported last; central management
53
41
  is off), but any override must be proven with a restore and build. The compose file binds local ports `27017` and
54
42
  `35000`, keeps data in the named volumes `chronicle-data` and `chronicle-config`, and
@@ -66,9 +54,9 @@ Chronicle event-store name in `appsettings.json` and the default project name an
66
54
  namespace.
67
55
 
68
56
  Whether modeled `screen` declarations become faithful screens is a runtime question, not a
69
- publication result: the Stage 4.89.1 scaffold emits Arc `CommandForm` shells over Scene typed
57
+ publication result: the scaffold emits Arc `CommandForm` shells over Scene typed
70
58
  bindings and navigation contributions, but claim UI fidelity only from a browser run
71
- (`SKILL.md`, UI parity). Screens stay managed.
59
+ (SKILL.md, "UI parity"). Screens stay managed.
72
60
 
73
61
  ## `Customizations/` (unmanaged)
74
62
 
@@ -102,7 +90,7 @@ Every file is optional. Rules that bite:
102
90
  modeled authorization covers only what Stage renders.
103
91
 
104
92
  What the seam does **not** do: it repairs no rejected model and renders nothing.
105
- Stage 4.89.1 renders supported event-triggered Automation slices as managed Chronicle
93
+ Stage renders supported event-triggered Automation slices as managed Chronicle
106
94
  reactors; refused reactions, captures and Translate slices remain hand-written gap-fill
107
95
  with the model as their contract. See [admission.md](admission.md). Keep `Customizations/` under version control: whether a re-render keeps
108
96
  it depends on the publisher, and `cratis render` writes only the planned paths and
@@ -2,70 +2,13 @@
2
2
 
3
3
  ## Contents
4
4
 
5
- - Current behavior at Stage 4.89.1 (source reading; Docker not run)
6
- - Specification engine selection at Stage 4.78.0 and CLI 3.53.1
7
5
  - The sandbox: a partial, disposable runtime
6
+ - Refusals shared by both engines
8
7
  - The specification runner
9
8
  - Choosing between them
10
9
 
11
- Read at Stage `v4.24.0`, then re-read for the current paragraph below at `v4.89.1` (`README.md`, `Documentation/docker/index.md`,
12
- `Documentation/docker/spec-runner.md`, `Documentation/reference/urls.md`) and cli
13
- `v3.28.2` (`Commands/Run/*`, unchanged since `v3.27.1`). Docker was **not run** for this skill: every behaviour here
14
- is documented behaviour, not an observed result. Both images are still shipped.
15
-
16
- ## Current behavior at Stage 4.89.1 (source reading; Docker not run)
17
-
18
- Read from `Documentation/docker/index.md:127-166,273-309` and `docker/spec-runner.md:11-43` at
19
- `v4.89.1`, the Stage that CLI 3.57.0 bundles and `cratis run` starts. The default EventModel engine refuses
20
- named event sources, streams and routes with `STAGE-ESM-030` (`/stage/status` reports
21
- `state: "unsupported"` and `/api/**` answers 501), so the default `cratis run` does not run a routed model.
22
- Both engines refuse public events (`-032`), foreign or source-event captures (`-033`), directed Translate
23
- slices (`-024`) and reducer observer filters (`-035`); the legacy engine also refuses reaction identity and
24
- reaction observer filters (`-034`, `-035`), and per-production route overrides fail `-036` on the semantic
25
- engine. The semantic engine (`Stage__Runtime__Engine=semantic`, Screenplay 4.147.1) admits exact ESM v1 to v15 version pairs,
26
- executes routes and runs event-triggered reactions (including `where`, `runs as`, `from`, productions,
27
- invocations and cascades), settling them with the initiating command in one batch; clock, application,
28
- startup and shutdown triggers and opaque reaction bodies still fail `-024`.
29
- The semantic Host now encrypts personal-data/secret concepts at rest through Chronicle and releases
30
- values on read; erasure deletes event-source keys. Existing stores retain earlier plaintext events;
31
- explicit subject lineage is not supplied. Non-text `secret` concepts refuse `STAGE-ESM-041`
32
- (`pii secret` uses PII only). It executes v14 equality filters, but the independent semantic
33
- specification executor refuses filtered query assertions with `STAGE-ESM-010`; seeded read-model
34
- specifications retain the GivenReadModel gap. v15 supplies strategies and whole-source freshness.
35
- Renderer support for reaction `from` and role/authenticated `runs as` does not relax legacy-engine
36
- 034/035 refusals. The structural specification runner is deprecated: it prints a deprecation
37
- notice, refuses routes with exit 1 and writes no results file. Exit codes `0`/`1`/`2` are as in `SKILL.md`.
38
- The semantic Host exposes `POST /stage/semantic/specifications/run`, running fresh isolated
39
- scenarios in a child process, never the live world/log. Read every report outcome: HTTP 200
40
- is not a specification pass. Cancellation kills the child tree; timeout is 504, launch/nonzero/invalid
41
- report is 502. Timeout defaults to 120 seconds (1–600, including queue); specifications remain
42
- available after a later world-rebuild/registration failure if the model was admitted.
43
- The sections below describe the 4.24-era behavior and remain the engine comparison.
44
-
45
- ## Specification engine selection at Stage 4.78.0 and CLI 3.53.1
46
-
47
- Re-verified from Stage `v4.78.0`, `Source/SpecRunner/SpecRunnerArguments.cs:18,76`,
48
- `Program.cs:46–78,86–113`, and
49
- `Source/Specifications/SemanticSpecificationExecutor.cs:115–136,183–197`:
50
-
51
- - The runner still defaults to deprecated `structural`, which executes no slice.
52
- Pass `--engine semantic` to the **Stage specification runner**, not to `cratis run`.
53
- - Semantic execution creates a fresh Chronicle in-memory event log per
54
- specification and dispatches admitted commands through Arc's in-memory
55
- pipeline. The `stage-spec-run/1` report carries `Passed`, `Failed`, `Unsupported`
56
- or `Cancelled`; exit `0` only proves the report was written, not that specs passed
57
- (`Documentation/docker/spec-runner.md:150–174`).
58
- - CLI `v3.53.1` does **not** expose `--engine` or a Stage specification-runner
59
- command. Its `run` command starts the **sandbox**, with path, tag, port,
60
- workbench-port and verbose settings only (`Source/Cli/Commands/Run/RunSettings.cs:9–52`,
61
- `RunCommand.cs:10–23,100–105`). Changing `--tag` does not select an engine.
62
- For semantic specifications use the runner directly, for example
63
- `cratis/stage-specrunner:4.78.0 --engine semantic`; for the sandbox, engine
64
- selection is the separate `Stage__Runtime__Engine=semantic` environment setting.
65
-
66
- This is source verification, not an executed Docker run. It updates engine
67
- selection only; the historical capability lists below are not a complete
68
- admission inventory for Stage `v4.78.0`.
10
+ Docker is required for both. Each image runs the Stage host or runner on a mounted model;
11
+ neither is a generated application.
69
12
 
70
13
  ## The sandbox: a partial, disposable runtime
71
14
 
@@ -74,7 +17,7 @@ empty and leaves nothing behind. It is for playing a model, not a generated appl
74
17
  and not a test of one.
75
18
 
76
19
  ```bash
77
- cratis run ./model # folder or a single .play file; Docker required
20
+ cratis run ./model # folder or a single .play file
78
21
  cratis run --port 9191 --workbench-port 35001
79
22
  docker run --rm -p 127.0.0.1:9090:9090 -p 127.0.0.1:35000:35000 \
80
23
  -v "$PWD":/eventmodel:ro cratis/stage:latest
@@ -87,21 +30,44 @@ port `35000` (a plain `http://` request gets no reply; the certificate is self-s
87
30
  The entrypoint takes a model file or folder, default `/eventmodel`. Deployment settings
88
31
  come from `cratis-stage.json` (path override `STAGE_CONFIG`), not `appsettings.json`.
89
32
  Implementation `file` references stay symbolic: the sandbox never opens them.
33
+ `cratis run` has no `--engine` option; engine selection is the environment setting below.
90
34
 
91
35
  Two engines:
92
36
 
93
37
  | Engine | Selected by | Behaviour |
94
38
  | --- | --- | --- |
95
- | EventModel (default) | nothing | Commands evaluate their modeled `produces` mappings, append the facts to Chronicle and echo the payload. **Modeled validation, authorization and query authorization are not enforced.** It registers Chronicle projections |
96
- | Semantic | `Stage__Runtime__Engine=semantic` | Evaluates validation, requirements, authorization, conditional production and constraints before accepting a command; appends one batch; denied is HTTP 403, validation or constraint failure HTTP 400, an unsupported command HTTP 501. `GET /stage/semantic/admission` lists what is admitted. Refuses a model it cannot execute (`state: "unsupported"`, `/api/**` returns 501). Read models are in-process, not Chronicle projections in the Workbench; the history is unbounded, so use it for short sessions |
39
+ | EventModel (default) | nothing | Commands evaluate their modeled `produces` mappings, append the facts to Chronicle and echo the payload. **Modeled validation, authorization and query authorization are not enforced.** It registers Chronicle projections. Named event sources, streams and routes are refused with `STAGE-ESM-030` (`/stage/status` reports `state: "unsupported"` and `/api/**` answers 501), so a routed model does not run here |
40
+ | Semantic | `Stage__Runtime__Engine=semantic` | Evaluates validation, requirements, authorization, conditional production and constraints before accepting a command; appends one batch; denied is HTTP 403, validation or constraint failure HTTP 400, an unsupported command HTTP 501. `GET /stage/semantic/admission` lists what is admitted. Executes routes and event-triggered reactions (including `where`, `runs as`, `from`, productions, invocations and cascades), settling them with the initiating command in one batch. Refuses a model it cannot execute (`state: "unsupported"`, `/api/**` returns 501). Read models are in-process, not Chronicle projections in the Workbench; the history is unbounded, so use it for short sessions |
97
41
 
98
42
  Do not read an answering sandbox as evidence of correct authorization. Callers are
99
43
  built from unsigned `x-ms-client-principal` headers that anyone who can reach the host can
100
- forge, the default engine enforces nothing, and Stage's documentation says to keep the
101
- session private (loopback ports or an authenticated proxy). The semantic engine does not
102
- execute modeled specifications; use the runner for those. Rendered applications use the
103
- renderer's admitted Arc authorization instead, which is the thing to test for production
104
- behaviour (Debug tests of a render, `render-example.md`).
44
+ forge, the default engine enforces nothing, and the session should stay private (loopback
45
+ ports or an authenticated proxy). Rendered applications use the renderer's admitted Arc
46
+ authorization instead, which is the thing to test for production behavior (Debug tests
47
+ of a render, [render-example.md](render-example.md)).
48
+
49
+ The semantic Host encrypts personal-data and secret concepts at rest through Chronicle and
50
+ releases values on read; erasure deletes event-source keys. Encryption applies to new
51
+ writes only: events already stored in plaintext in an existing Play store are not
52
+ retroactively encrypted, and key deletion is not erasure of those earlier plaintext events.
53
+ It does not supply explicit subject lineage. Non-text `secret` concepts refuse `STAGE-ESM-041` (`pii secret` uses
54
+ PII only). It executes equality filters, but its specification executor refuses filtered
55
+ query assertions with `STAGE-ESM-010`.
56
+
57
+ The semantic Host exposes `POST /stage/semantic/specifications/run`, running fresh isolated
58
+ scenarios in a child process, never the live world or log. Read every report outcome: HTTP
59
+ 200 is not a specification pass. Cancellation kills the child tree; a timeout is 504, a
60
+ launch failure, nonzero exit or invalid report is 502. The timeout defaults to 120 seconds
61
+ (1–600, including queue); specifications stay available after a later world-rebuild or
62
+ registration failure if the model was admitted.
63
+
64
+ ## Refusals shared by both engines
65
+
66
+ Both engines refuse public events (`STAGE-ESM-032`), foreign or source-event captures
67
+ (`-033`), directed Translate slices (`-024`) and reducer observer filters (`-035`). The
68
+ legacy engine also refuses reaction identity and reaction observer filters (`-034`,
69
+ `-035`); per-production route overrides fail `-036` on the semantic engine. Clock,
70
+ application, startup and shutdown triggers and opaque reaction bodies fail `-024`.
105
71
 
106
72
  ## The specification runner
107
73
 
@@ -123,30 +89,33 @@ docker run --rm -v /path/to/model:/model:ro -v /path/to/results:/output \
123
89
  | `--engine semantic` | `structural` | Opt in to executable specifications |
124
90
  | `--specification`, `--scope`, `--catalog`, `--application` | | Semantic engine only |
125
91
 
126
- See "Specification runner exit codes" in SKILL.md.
127
-
128
- - **Structural** (default and deprecated at Stage v4.24.2, with removal planned for the following major release): verifies that the
129
- events and commands a specification names resolve to its slice and that modeled rules
130
- agree. Outcomes `Passed`, `Failed`, `Inconclusive` (not verifiable for that slice type
131
- yet; not a failure). It does not execute any slice.
132
- - **Semantic**: runs admitted commands through Arc's in-memory command pipeline with a
133
- fresh in-memory Chronicle log per specification; supports explicit-source given events,
134
- unconditional production, event assertions, caller and authorization, command rules,
135
- unique constraints, flat and event-source-keyed scoped projections, and unprotected
136
- optional snapshot queries. Report schema `stage-spec-run/1` with outcomes `Passed`,
137
- `Failed`, `Unsupported` (carrying kind, construct id and reason) or `Cancelled`.
138
- Not supported: given read models, conditional production, implicit identity allocation,
139
- external effects, composite values, protected queries, queries other than optional
140
- snapshots. Unsupported is never a pass. Do not feed the file to a legacy reader.
141
-
142
- How the runner relates to the verdicts: a structural pass is not a behavioural result. The
143
- semantic engine is Stage's own `SemanticSpecificationExecutor` (verified at Stage `v4.24.0`,
144
- `Source/SpecRunner/Program.cs`), running through Arc's in-memory pipeline. It is not the
145
- Screenplay reference route, so a semantic pass is never V4 (V4 is reference execution only;
146
- `cratis-screenplay-toolchain` `references/verdicts.md`) and it is not a rendered Debug test run
147
- (V5.tests). Report its outcomes as a separate line, "Stage semantic engine (target-engine
148
- evidence)", with the report schema counts, next to the V5 results and labelled as such. How the runner behaves on ESM v4 to v6 specifications was not
149
- verified: record it as "not run" rather than assuming.
92
+ Exit codes: `0` the results file was written (read the outcomes: a failed specification
93
+ still exits `0`), `1` a missing or uncompilable input, `2` a missing required argument or an
94
+ invalid semantic option.
95
+
96
+ - **Structural** (default, deprecated, removal planned for a future major release; it
97
+ prints a deprecation notice): verifies that the events and commands a specification
98
+ names resolve to its slice and that modeled rules agree. Outcomes `Passed`, `Failed`,
99
+ `Inconclusive` (not verifiable for that slice type; not a failure). It does not execute
100
+ any slice and refuses routed models with exit `1`, writing no results file.
101
+ - **Semantic**: creates a fresh in-memory Chronicle log per specification and dispatches
102
+ admitted commands through Arc's in-memory pipeline; supports explicit-source and routed
103
+ given events, unconditional production, event assertions, caller and authorization,
104
+ command rules, unique constraints, flat and event-source-keyed scoped projections, and
105
+ optional snapshot queries, including protected ones: portable authorization is evaluated
106
+ with the fixture caller, query arguments and key, and an expected denial matches only
107
+ `then denied`. Report schema `stage-spec-run/1` with outcomes
108
+ `Passed`, `Failed`, `Unsupported` (carrying kind, construct id and reason) or
109
+ `Cancelled`. Not supported: given read models, conditional production, implicit identity
110
+ allocation, external effects, composite values, queries other than optional snapshots, and
111
+ a reached opaque authorization policy (reported as `Unsupported`). Unsupported is never a pass. Do not feed the file to a legacy reader.
112
+
113
+ How the runner relates to the verdicts: a structural pass is not a behavioral result. The
114
+ semantic engine is Stage's own executor running through Arc's in-memory pipeline. It is
115
+ not the Screenplay reference route, so a semantic pass is never V4 (V4 is reference
116
+ execution only; `cratis-screenplay-toolchain` `references/verdicts.md`) and it is not a
117
+ rendered Debug test run (V5.tests). Report its outcomes as a separate line, "Stage semantic
118
+ engine (target-engine evidence)", with the report schema counts, next to the V5 results.
150
119
 
151
120
  ## Choosing between them
152
121
 
@@ -9,17 +9,9 @@
9
9
  - Packages and ownership
10
10
  - Runtime capabilities
11
11
 
12
- Runtime source evidence retained at Scene v4.21.0 (not reverified at the newer
13
- Scene release now listed in [scaffold pins](rendered-application.md)):
14
- Scene `README.md`, `Documentation/package-hosting.md`, and
15
- `Source/JavaScript/{model,engine,react,components}/**`. Stage package selection
16
- was re-read at Stage `v4.89.1:Source/Rendering.Cratis/Scaffolding/CratisFrontendPackageSet.cs:208-229`
17
- (`Current`); dependency names are in `CratisFrontendApplicationScaffold.cs` (`Dependencies`). This is not a render
18
- or browser test.
19
-
20
12
  ## What Scene is
21
13
 
22
- Scene is the **experimental**, platform-neutral UI object model and runtime of
14
+ Scene is the platform-neutral UI object model and runtime of
23
15
  the model-first stack: Screenplay describes the application; Stage emits it;
24
16
  Scene represents and renders its UI. Studio's design-time tools edit this model.
25
17
  `Cratis.Scene.Model` / `@cratis/scene.model` hold screens, layouts, forms,
@@ -36,10 +28,10 @@ The npm family is `@cratis/scene.model`, `@cratis/scene.engine`,
36
28
  `@cratis/scene.react`, `@cratis/scene.components`, `@cratis/scene.primereact`,
37
29
  `@cratis/scene.blueprint.default`, `@cratis/scene.blueprint.components`, and
38
30
  `@cratis/scene.tailwind`. `@cratis/scene` is not this product's package id.
39
- Stage pins six members at the shared version in the scaffold table; it does not
31
+ Stage installs six members at one shared version (see the rendered `package.json`); it does not
40
32
  install every family member. `@cratis/scene.components` maps Components onto
41
33
  Scene and offers a runtime-only `/runtime` entry (no design-time bundle).
42
- Its Components peer range is `^4.13.0`, not Stage's exact scaffold pin.
34
+ Its Components peer range is a range, not Stage's exact scaffold pin.
43
35
 
44
36
  Stage manages `scene.json`, `src/bindings.ts`, the generated host and runtime
45
37
  files through `.cratis-render.json`. Change the accepted `.play` model and render
@@ -49,7 +41,7 @@ release is not a Stage release and does not prove Stage emits a new capability.
49
41
 
50
42
  ## Runtime capabilities
51
43
 
52
- At the current scaffold Scene release (4.21):
44
+ The scaffold's Scene runtime provides:
53
45
 
54
46
  - `Screen.path` and `NavigationItem.hierarchy` describe module/feature paths,
55
47
  outermost first. Nested `core:outlet` composition keeps parent screens visible.
@@ -3,10 +3,9 @@
3
3
  "input": "Can Stage render this Screenplay model, and how do I re-render it safely after someone edited Program.cs?",
4
4
  "fixtures": [],
5
5
  "assertions": [
6
- { "kind": "skill-contains", "value": "pinned Stage default applies both rules" },
7
6
  { "kind": "skill-contains", "value": "reducer `from` filters" },
8
7
  { "kind": "skill-contains", "value": "references/scene-runtime.md" },
9
- { "kind": "skill-contains", "value": "`@cratis/scene.*`", "file": "references/rendered-application.md" },
8
+ { "kind": "skill-contains", "value": "`@cratis/scene` is **not** a package", "file": "references/rendered-application.md" },
10
9
  { "kind": "skill-contains", "value": "`@cratis/scene` is not this product's package id", "file": "references/scene-runtime.md" },
11
10
  { "kind": "skill-contains", "value": "A Scene\nrelease is not a Stage release", "file": "references/scene-runtime.md" },
12
11
  { "kind": "skill-contains", "value": "ApprovedPackageSet", "file": "references/scene-runtime.md" },
@@ -18,29 +17,22 @@
18
17
  { "kind": "skill-contains", "value": "means stop and reconcile" },
19
18
  { "kind": "skill-contains", "value": "STAGE-ESM-016" },
20
19
  { "kind": "skill-contains", "value": "**Render never builds, tests or runs**" },
21
- { "kind": "skill-contains", "value": "scaffold pins Arc, Chronicle, Components, Scene and" },
22
20
  { "kind": "skill-contains", "value": "`[ProtectedDecision]`" },
23
21
  { "kind": "skill-contains", "value": "`Customizations/`" },
24
22
  { "kind": "skill-contains", "value": "`Stage__Runtime__Engine=semantic`" },
25
23
  { "kind": "skill-contains", "value": "`--engine semantic`" },
26
- { "kind": "skill-contains", "value": "Stage `v4.78.0`", "file": "references/sandbox-and-specrunner.md" },
27
- { "kind": "skill-contains", "value": "does **not** expose `--engine`", "file": "references/sandbox-and-specrunner.md" },
28
- { "kind": "skill-contains", "value": "fresh Chronicle in-memory event log per", "file": "references/sandbox-and-specrunner.md" },
24
+ { "kind": "skill-contains", "value": "`cratis run` has no `--engine` option", "file": "references/sandbox-and-specrunner.md" },
25
+ { "kind": "skill-contains", "value": "the environment setting below", "file": "references/sandbox-and-specrunner.md" },
26
+ { "kind": "skill-contains", "value": "fresh in-memory Chronicle log per specification", "file": "references/sandbox-and-specrunner.md" },
29
27
  { "kind": "skill-contains", "value": "Through v15" },
30
28
  { "kind": "skill-contains", "value": "CLI-RENDER-004" },
31
29
  { "kind": "skill-contains", "value": "STAGE-ESM-024" },
32
- { "kind": "skill-contains", "value": "`v4.24.2`" },
33
30
  { "kind": "skill-contains", "value": "STAGE-ESM-026" },
34
- { "kind": "skill-contains", "value": "Stage 4.24.2 admits ESM v4", "file": "references/admission.md" },
35
- { "kind": "skill-contains", "value": "`v4.24.2`" },
36
- { "kind": "skill-contains", "value": "Cratis/cli#253" },
31
+ { "kind": "skill-contains", "value": "STAGE-ESM-026", "file": "references/admission.md" },
37
32
  { "kind": "skill-contains", "value": "Silent fallback to a default screen is a failure" },
38
33
  { "kind": "skill-contains", "value": "package/image versions" },
39
34
  { "kind": "skill-contains", "value": "dropped authored UI" },
40
35
  { "kind": "skill-contains", "value": "references/case-tables-and-whole-numbers.md" },
41
- { "kind": "skill-contains", "value": "STAGE-CRATIS-004" },
42
- { "kind": "skill-contains", "value": "STAGE-ESM-031" },
43
- { "kind": "skill-contains", "value": "Stage 4.52.0 renderer applies neither new rule" },
44
36
  { "kind": "skill-contains", "value": "STAGE-ESM-037" },
45
37
  { "kind": "skill-contains", "value": "`STAGE-ESM-041`", "file": "references/sandbox-and-specrunner.md" },
46
38
  { "kind": "skill-contains", "value": "claim-reading or opaque authorization", "file": "references/admission.md" },
@@ -48,6 +40,10 @@
48
40
  { "kind": "skill-contains", "value": "`--scope <ADDRESS>`" },
49
41
  { "kind": "skill-contains", "value": "`--check`" },
50
42
  { "kind": "skill-contains", "value": "XML documentation comments" },
51
- { "kind": "skill-contains", "value": "Do not split the modeled reaction", "file": "references/admission.md" }
43
+ { "kind": "skill-contains", "value": "Do not split the modeled reaction", "file": "references/admission.md" },
44
+ { "kind": "skill-contains", "value": "The scaffold pins an exact release of every dependency", "file": "references/rendered-application.md" },
45
+ { "kind": "skill-contains", "value": "STAGE-CRATIS-004", "file": "references/case-tables-and-whole-numbers.md" },
46
+ { "kind": "skill-contains", "value": "STAGE-ESM-031", "file": "references/case-tables-and-whole-numbers.md" },
47
+ { "kind": "skill-contains", "value": "Requires cratis CLI" }
52
48
  ]
53
49
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cratis/pi",
3
- "version": "7.48.0",
3
+ "version": "7.48.3",
4
4
  "description": "Configuration-aware Cratis AI integration for Pi",
5
5
  "type": "module",
6
6
  "files": [
@@ -1,72 +0,0 @@
1
- # Documentation contradictions and which side to trust
2
-
3
- Current pins: `versions.md`. This is a
4
- **historical** contradiction inventory, not a claim that all listed defects still
5
- exist. Current grammar documents exact numbers and free description placement;
6
- sources/routes bind as ESM v8; PLAY0515 is a source error; CLI admits through
7
- v10 to Stage construct checks. At `v4.135.0:Documentation/screenplay/interoperability.md:133–137`
8
- v11 is still labeled "claimed, unreleased"; Versions.cs admits it and decision
9
- 0066 freezes it on package publication. The corpus follows source and 0066.
10
-
11
- At v4.127.0 `concepts.md` links the shipped purpose declarations/checks/record
12
- but its final identifier section still calls them later phases. `purposes.md`,
13
- the released grammar/tool and successful purpose probes take precedence. The same
14
- page's legacy `@pii` mentions do not change bare `pii`/`secret` canonical syntax;
15
- legacy forms compile with PLAY0565 information, duplicates with PLAY0653 warning.
16
- Event `subject` remains report-only, despite accepted future lineage work.
17
- Rechecked at 4.142.0: concept `pii`/`personal` and `secret` bind as v13, while
18
- reasons stay PLAY0270 report-only. PLAY0268 at binding only rejects enum/identity
19
- compliance and events mixing personal or explicitly subject-scoped secret values
20
- with an explicit `subject` mark. CLI 3.57.0 bundles Screenplay 4.147.1 / Stage 4.89.1 and
21
- renders v13 concept protection; protected identities/enums remain refused. These are distinct boundaries,
22
- not a reason to remove protection.
23
-
24
- `D/` is Screenplay `Documentation/screenplay/` at **v4.66.0**; line numbers were re-read at
25
- that tag. Rule: the compiler you ran decides what the tool accepts today; the documentation
26
- and the domain decide what the model should mean. When they disagree, follow the compiler
27
- for syntax, keep the intended semantics in the model, and record the gap (an issue).
28
- Tool names mean the standalone `screenplay` 4.68.0 and `cratis` 3.28.2 (bundled Screenplay
29
- 4.66.0; before 3.28.2 bundled 4.60.1); see `versions.md`. [probed] marks a row re-checked by running a tool; the rest are
30
- read from source or documentation.
31
-
32
- | # | Topic | Conflict | Trust |
33
- | --- | --- | --- | --- |
34
- | 0 | ESM v6 | `D/specifications.md` and `D/reactions.md` describe clocks, triggers, captures and reactions as admitted and executed | both tools admit them (ESM v6) since cratis 3.28.2; cratis 3.27.1 (4.60.1) rejected them with PLAY0268 [probed] |
35
- | 1 | `#` comments | PDL docs use `#` (`D/projections/auto-map.mdx:125,147,153`, `D/forms.md:10`) | compiler: PLAY0058 in a projection; use `//` [probed] |
36
- | 2 | projection `automap` | `D/projections/grammar.md:70,77` now allow `automap` for children and nested; the projection-level `ProjDirective` (`:38`) still lists only `no automap` | compiler accepts bare `automap`; keep `no automap` at projection level |
37
- | 3 | AutoMap inside `from` | `D/projections/auto-map.mdx:49` "cannot be toggled" vs `:226` "apply `no automap` per event" | ambiguous; use `no automap` at the projection, children or nested level |
38
- | 4 | child id syntax | `D/projections/keys.md:110` says `id userId` | `identified by` (compiled) |
39
- | 5 | root `remove via join` | `D/projections/removal.md` promises instance removal | `D/projections/semantic-model.md:59,94`: the engine wires it as a child pull and the evaluator does not execute it. Unverified at runtime |
40
- | 6 | `$strings` in authentication | `D/internationalization.md:30` allows it wherever a value expression is accepted | PLAY0183: no provider configuration lines |
41
- | 7 | interaction examples | `D/interactions.md:33` uses `button` | PLAY0103; `on double click` on `table` compiles though not in the EBNF |
42
- | 8 | where screens live | `D/screens.md:3` "inside `StateView` slices" | samples also put dialogs in `StateChange` |
43
- | 9 | where reducers live | `D/slices.md:74` and `D/glossary.md:21` call a reducer an `Automation` thing vs `D/slices.md:87` (`StateView`) | `StateView` (samples) |
44
- | Query rows | Older specification guidance promises authored result-row order | Screenplay v4.145.0 `specifications.md:307-319,426`: compare collections without regard to order, by read-model/key and exact count. Event ordering and collection-valued property ordering are separate |
45
- | 10 | `then` after `when append` | `D/specifications.md:67` "must match exactly the appended fact" vs `:232` and `:282` (v6: what followed it) | v6 text on the standalone tool; before v6, `:67` |
46
- | 11 | constraint collision across sources | `D/constraints.md:118` "cannot yet show" vs `D/specifications.md:77` (`for` lets a spec claim a value on another source) | `specifications.md` (newer) |
47
- | 12 | capture backtick `when` | opaque (`D/captures/grammar.md:321`) vs small portable grammar (`D/captures.md:94`) | both: storage versus binder |
48
- | 13 | clock boundary | resolved: an occurrence fires if due **after** the given clock and **at or before** the when clock (`D/specifications.md:282-284`; `Semantics/Execution/SemanticClock.cs`, `at > from && at <= to`). Given equal to when fires nothing, so the Screenplay sample `Samples/Commerce/Fulfillment/Shipping/ReleasePickingWave.play:20-22` (06:00 to 06:00, expecting `PickingWaveReleased`) is wrong | the code; never write given equal to when. A Screenplay issue for the sample is a candidate |
49
- | 14 | `$causedBy` | not evaluable (#4119), not ESM | showcase only |
50
- | 15 | literal keys | `key literal "global"` vs `key "global"` | both compile; prefer `literal` |
51
- | 16 | query admission | Older `D/queries.md:74` and historical binder probes rejected live/collection/filter queries | Current v4.145.0 `queries.md` admits collection/observable queries and caller-supplied equality filters (ESM v14 since 4.143.0). Context `from`, single-result filters, opaque scope/performer and composite `by` remain PLAY0268 with specific reasons; source/refusal details: read-surface `references/equality-filters.md` |
52
- | 17 | `@pii` | `D/concepts.md:3,33` "Chronicle applies `@pii` and `@sensitive` rules automatically" | the historical binder rejected any compliance attribute (PLAY0268); standalone 4.142.0 admits concept compliance as v13 (since 4.141.0) with narrower enum/identity/subject-lineage refusals (command-surface `references/compliance.md`). Keep protection; the historical pre-v13 CLI reported V3 blocked. `@sensitive` means an operational secret (`[Encrypted]` + `[NotAudited]`; Screenplay decision 0034); the historically probed tools (standalone 4.68.0, bundle 4.66.0) do **not** report `PLAY0515` (`@pii` from 4.69.1, `@sensitive` from 4.84.1): there only Chronicle catches either attribute on an event-source identifier, at build time of the generated code (CHR0034 for `@pii`, CHR0052 for `@sensitive`) |
53
- | 18 | read-model identity | `D/readmodels.md:32` "from the keyed query" | at 4.135.0 explicit `key` wins; else single-instance queries agree on one read-model `by` property; only with none and an admitted list query does conventional `*Id` inference run (collection-key exclusions: read-surface `references/named-keys.md`). Queryless views need explicit `key` |
54
- | 19 | `$strings` constraint messages | `D/constraints.md:31` vs `D/internationalization.md:55` | the compiler keeps the key; realization localizes |
55
- | 20 | composite key braces | optional in the EBNF; both forms in docs | both fine |
56
- | 21 | counters list | `D/projections/index.md:54` lists only increment and decrement | `count` exists too [probed] |
57
- | 22 | ESM version allocation | older text and decisions 0023 and 0024 give exact numbers, operations, streams and reads fixed numbers (v7 to v11) | use actual released binder selection: v7 responses, v8 routing, v9 public boundaries, v10 identity/routes/filters, v11 qualifying retained non-route Double literals at 4.135.0; operations and `numbers exact` source mode remain unadmitted. Never infer current admission from older proposed allocations |
58
- | 23 | claim conditions | the condition grammar lists `==` | claims need `matches` (PLAY0120) [probed] |
59
- | 24 | `numbers exact` | released in 4.64.0 as syntax only, but absent from `D/grammar.md`; documented only in `D/diagnostics.md` (PLAY0508 to PLAY0513) | the compiler: it parses, never binds (PLAY0268, "not admitted by any supported executable model (ESM) version yet"), PLAY0001 on older compilers [probed] |
60
- | 25 | command `concurrency` | `D/commands.md:609` says the executable model "does not bind the `concurrency` block yet" | the binder reports PLAY0271 as an **error**, not a silent skip (`SemanticModelBinder.Commands.cs:32-38`) |
61
- | 26 | MCP approval policy | `D/mcp/reference.md:37` "Keep client approval enabled for both" vs the server instructions (`McpConnection.cs:14`) "hosts need not confirm them each time" | keep approval on; this skill's rule is explicit user approval before `apply` |
62
- | 27 | decision index | `decisions/README.md` row 0020 shows stage `none` while v5 is implemented | the code: v5 `then no readmodel` binds |
63
- | 28 | `visualize-model` kind | the tool filters on the kind "Reactor" (`McpVisualization.cs:21`) although the construct is a Reaction; its added/removed summary never counts reactions (Screenplay#379, open) | the model, not the summary |
64
- | 29 | bodied reducers in Stage | cli `Documentation/reference/screenplay.md:38` says bodied reducers are unsupported (STAGE-ESM-019) | Stage 4.24 code admits pure allowlisted reducer bodies (`PureTransitionAdmission.cs`); trust the code |
65
- | 30 | `cratis screenplay validate <file>` | the command reads as a document validator | file mode ignored the file's imports and reported false unknown-name warnings on CLI 3.28.2 (cli#244, closed by PR #258: later releases compile the file with its imports); validate the folder anyway [probed on 3.28.2] |
66
- | 31 | cli false PLAY0285 | `D/diagnostics.md:640` defines PLAY0285 as a contradiction against every possible producer | cratis before 3.28.2 reported it falsely on reaction cascades (cli#242); not reproduced on cratis 3.28.2 [probed] |
67
- | 32 | competing-claim specification | `D/constraints.md` says a specification "cannot yet show a collision between two event sources" | `D/specifications.md`: `for` on `given` events establishes a claim on one source and attempts the same value on another; the specification page and the tool decide (checked at v4.139.0) |
68
- | 33 | descriptions in rendered code | Stage `Documentation/reference/render-plans.md` says the cratis CLI does not yet call `WithAuthoringMetadata` | the CLI calls it since 3.51.0 (`CratisRenderTarget.cs`): descriptions and documentation render as XML doc comments; `CLI-RENDER-006` when skipped (checked at cli v3.53.1) |
69
-
70
- Rows 0 to 12, 14 to 21 and 23 were re-read at the v4.66.0 line numbers above; rows 14, 15,
71
- 19, 20 and 23 are properties of the language rather than documentation defects and were
72
- not re-probed on 4.66.0.
@@ -1,81 +0,0 @@
1
- # Provenance
2
-
3
- ## Origin
4
-
5
- This skill is an original Cratis work, condensed from verified research on the Screenplay
6
- language, the standalone tool, the cratis CLI and Stage, then re-verified against product
7
- source at the tags in `versions.md` and probed on the installed tools (Screenplay 4.66.0 and
8
- cratis 3.28.2). Every version, diagnostic and exit-code row cites its evidence there or in
9
- the file that holds it.
10
-
11
- ## External material
12
-
13
- | Source | Use | Licence handling |
14
- | --- | --- | --- |
15
- | TrogonStack/agentskills `7b249d3ee42d8b7e11fa564141ebd5fbc37aadf1` (MIT, Copyright (c) 2025 Straw Hat, LLC) | none: no passage of this skill is adapted from it | no third-party notice needed in `LICENSE` |
16
-
17
- ## Adapted closely (Martin Dilger and Nebulit GmbH)
18
-
19
- Source: https://github.com/Nebulit-GmbH/agentic-engineer at commit `07b0f30648d663cb588d7e2c7aa031af9dfc21f2`,
20
- by Martin Dilger and Nebulit GmbH (https://nebulit.de), used with the explicit consent of Martin Dilger and Nebulit GmbH.
21
-
22
- | Source file | Used in | How |
23
- |---|---|---|
24
- | `.claude/skills/connect/SKILL.md`: resolve the connection once per session, reuse it, re-resolve only when a value actually needs to change | `SKILL.md` "Ground rules" 8, `references/verdicts.md` V2 start-up | Now adapted closely; board token/config prompts not adopted, translated to tool, version and model root |
25
- | `.claude/skills/load-slice/SKILL.md`: scoped, identity-first reads instead of loading everything | `SKILL.md` "Edit strategy" | Idea; our own wording kept |
26
- | `.claude/skills/learn-eventmodelers-api/SKILL.md`: load the tool reference on demand; prefer the typed tool over raw calls | `SKILL.md` "Ground rules" 8, "Edit strategy" | Idea; our own wording kept; the 934-line API catalog has no Screenplay equivalent to adopt |
27
-
28
- ## Sources read for facts
29
-
30
- - Historical public/keys/routes/version source check: Screenplay `v4.135.0` (`b4e46130`),
31
- unchanged release contract, `Semantics/Versions.cs`, `Documentation/screenplay/{events,slices,captures,readmodels,queries,event-sources,diagnostics,interoperability}.md`,
32
- decisions 0049–0051 and 0060–0066. Composite view keys remain PLAY0268 (#599);
33
- v11 literal lowering is admitted despite interoperability's unreleased label.
34
- CLI `v3.50.0` (`546dea12`) pins Stage 4.67.0 and Screenplay 4.131.0;
35
- `RenderedSemanticVersions.cs` and Stage's version-feature admission were read,
36
- not executed as a new render/browser vector.
37
- - Previous pin update: Screenplay `v4.131.0` (`71f3ef37`), published
38
- `screenplay-contract.json`, `Source/DotNET/Screenplay.Mcp/{McpRevisionDiff,McpWorkspaces.Comparison,McpToolSchemas}.cs`
39
- and `Documentation/screenplay/mcp/reference.md`; CLI `v3.46.1` (`73578fbf`)
40
- `Directory.Packages.props`, `RenderedSemanticVersions.cs`, `RenderSettings.cs`,
41
- `CratisRenderTarget.cs`, `RunSettings.cs` and `StageContainer.cs`. The CLI
42
- source checks are not a new render/browser probe.
43
- - Identity/compliance/route-literal guidance: Screenplay `v4.127.0` (`e70435a4`)
44
- `identity.md`, `context.md`, `concepts.md`, `purposes.md`, `events.md`,
45
- `event-sources.md`, `reactions.md`, `completeness.md`, `diagnostics.md`,
46
- `editor-diagnostics.md`, MCP reference/authoring tools and `Semantics/Versions.cs`.
47
- Installed 4.127.0 version and changed examples were checked separately. Historical
48
- execution and renderer probes retain their labels, including CLI 3.41.0.
49
- - Earlier baseline: Screenplay `v4.125.0` `Documentation/screenplay/{tool,diagnostics,editor-diagnostics,grammar,event-sources,specifications,policies}.md`, MCP reference/authoring guides and `Semantics/Versions.cs`; CLI `v3.41.0` dependency pins, `RenderedSemanticVersions.cs` and its v7 planning specification. Installed versions/CLI help and changed examples were checked separately. Pins are in `versions.md`; the older probes below retain their original labels.
50
- - Screenplay `v4.66.0` (`c89198b`): `Documentation/screenplay/` (grammar, commands, queries,
51
- specifications, reactions, diagnostics, mcp), `decisions/0017`, `0020`, `0022` to `0024`,
52
- `Source/DotNET/Screenplay/Semantics/` (binder, versions, execution),
53
- `Source/DotNET/Screenplay.Mcp/` (connection, catalog, schemas, workspaces, visualization),
54
- `Source/DotNET/Tool/Program.cs`. Also `v4.60.1` and `v4.63.1` for the differences from the compiler bundled in cratis 3.27.1
55
- and earlier.
56
- - Stage `v4.24.0` (`fa48546`, unchanged in `Rendering.Cratis` admission at `v4.24.1`): `Source/Rendering.Cratis/` (surface ledger, planner, pure
57
- transition admission, scaffold), `Documentation/guides/customize-rendered-application.md`.
58
- - cratis `v3.28.2` (`141c499`; `Render/`, `Run/`, `Prologue/` and `Screenplay/Generate*` are unchanged since `v3.27.1`, `a327e89`): `Source/Cli/Commands/Render/`, `ScreenplayMcpRoot.cs`,
59
- `Documentation/reference/screenplay.md`.
60
- - Arc `v22.50.5` and Chronicle `v19.32.0` for the code-level facts cited in `versions.md`.
61
- - Historical issue inventory at the old probes: cli#242, #243, #244, #245;
62
- Stage#79, #165, #178; Chronicle#3744, #4123, #4131. Current invocation actor and
63
- reference-execution availability are verified against v4.125.0, not old open-issue status.
64
-
65
- ## Changes from the earlier toolkit
66
-
67
- - Folded the version facts into one `versions.md` (the only version table in the corpus).
68
- - Moved the pin to Screenplay 4.68.0 (ESM v7: generated values and responses, decision 0026, `generated-responses-example.md`); re-ran the example compile and reference-runner gates unchanged; replaced every fixed number for unadmitted features with "not admitted by any supported ESM version" (decision 0025).
69
- - Replaced the readiness script with the MCP view and field that carry the same result; no
70
- script ships.
71
- - Moved the MCP loop to `cratis-screenplay-model-authoring`; this skill keeps only the facts
72
- needed to run a verdict and the edit strategy summary.
73
- - Re-checked every documentation contradiction at v4.66.0; resolved the clock boundary and the
74
- ESM v7 and v11 allocations; added numbers-exact, concurrency, approval-policy, visualization,
75
- bodied-reducer, file-mode and cascade rows.
76
- - Corrected the code-attachment rule (a handler never binds, with or without `hint`), the
77
- historical automation rendering rule (Stage 4.24 rendered no Automation or Translate slices; current admission is in `renderable-subset.md`) and the
78
- Stage output description (a React/Vite scaffold is emitted too).
79
- - Verdict names follow the frozen V1 to V5 (V2 is executable diagnostics, V3 binding-ready);
80
- the earlier "authoring accepted" meaning of V2 was dropped because it proves only that the
81
- source compiled.