@cratis/pi 7.55.0 → 7.56.1
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/skills/cratis-screenplay-legacy-extraction/references/generate-notes.md +6 -0
- package/package/corpus/skills/cratis-screenplay-model-review/SKILL.md +1 -1
- package/package/corpus/skills/cratis-screenplay-modeling-lifecycle/references/phases.md +1 -0
- package/package/corpus/skills/cratis-screenplay-ui-composition/SKILL.md +2 -0
- package/package/corpus/skills/cratis-stage-rendering-and-sandbox/SKILL.md +17 -14
- package/package/corpus/skills/cratis-stage-rendering-and-sandbox/references/behavior-walk.md +77 -0
- package/package.json +1 -1
package/package/corpus/skills/cratis-screenplay-legacy-extraction/references/generate-notes.md
CHANGED
|
@@ -101,6 +101,12 @@ An unconditional `result.ShouldNotBeAuthorized()` on a scenario's command result
|
|
|
101
101
|
|
|
102
102
|
Requires Arc.Screenplay 22.98.0 or later for `then denied`; older releases withhold every denial specification with `SP0039`.
|
|
103
103
|
|
|
104
|
+
### Literal-case tables
|
|
105
|
+
|
|
106
|
+
When body-less concrete specification classes pass literal values to the primary constructor of one abstract scenario (`class Ada() : Registering("Ada")`), the generator states the scenario once with typed `parameter` lines and one `case` row per class. It folds the rows only when substituting each row's values into the base reproduces that row's steps, outcomes and caller exactly; textual similarity is not enough. Otherwise every row is stated individually and Information `SP0076` names why.
|
|
107
|
+
|
|
108
|
+
Requires Arc.Screenplay 22.99.0 or later for case tables; older releases state every row individually.
|
|
109
|
+
|
|
104
110
|
## Diagnostics are the loss list
|
|
105
111
|
- Families: `SP####` (Arc), `MARTEN####`, `WOLVERINE####`, `VOG####`, `GEN####`,
|
|
106
112
|
`DOTNETSP####` (placement), `CLI####` (host). Each one is an evidence row or a loss-report
|
|
@@ -134,7 +134,7 @@ origin, NOT-enforced rules marked, coverage matrix filled, personas with their d
|
|
|
134
134
|
fixed or explained before P5. The list: [quick self-check](references/quick-self-check.md).
|
|
135
135
|
|
|
136
136
|
## Business-question pass (explain brief)
|
|
137
|
-
Be a sharp business analyst seeing the domain fresh: walk each persona's journey and ask only what a domain person must decide, in plain language with no engineering words (could a non-technical product owner read it and immediately understand what is being asked?), anchored to a place in the model, at most 12 questions (zero is valid). Method, element prompts and the model-word translation table: `references/business-questions.md`.
|
|
137
|
+
Be a sharp business analyst seeing the domain fresh: walk each persona's journey and ask only what a domain person must decide, in plain language with no engineering words (could a non-technical product owner read it and immediately understand what is being asked?), anchored to a place in the model, at most 12 questions (zero is valid). Method, element prompts and the model-word translation table: `references/business-questions.md`. A behavior walk in the Stage sandbox (`cratis-stage-rendering-and-sandbox`) is a separate, optional check; its findings arrive here as review findings.
|
|
138
138
|
|
|
139
139
|
## Independent review
|
|
140
140
|
P5 uses a fresh reviewer who authored nothing in scope; record reviewer/author models or `model: not exposed`, label a same-model review and let the user decide sufficiency. Read lifecycle "Independent review" when arranging P5; the model-family rationale is in `references/report-template.md` ("Independent review").
|
|
@@ -122,6 +122,7 @@ phase, a decision important enough that a later reader could misread the model (
|
|
|
122
122
|
- **Input**: the accepted identity.
|
|
123
123
|
- **Carry-forward**: V3, and V4 where a route exists.
|
|
124
124
|
- **Gate**: V3 ready; V4 result or "V4 not run: no route". Specs written or bound is never "specs pass".
|
|
125
|
+
- **Optional after V3**: a behavior walk in the Stage sandbox (`cratis-stage-rendering-and-sandbox`); findings go to the model owner, and it is not V3, V4 or V5 evidence.
|
|
125
126
|
- **Skip when**: design mode.
|
|
126
127
|
|
|
127
128
|
## P8 Render or fall back (`cratis-screenplay-render-and-gap-fill`)
|
|
@@ -61,6 +61,8 @@ work on a screen whose purpose is unsettled is rework.
|
|
|
61
61
|
a board; that is optional, and the text review is enough. Do not
|
|
62
62
|
use the Stage sandbox as the review: it renders only part of a screen, and
|
|
63
63
|
nothing here establishes that Stage renders an authored screen faithfully.
|
|
64
|
+
A behavior walk of what commands change is a separate, optional check owned by
|
|
65
|
+
`cratis-stage-rendering-and-sandbox`.
|
|
64
66
|
3. **Add structure only to screens whose Level 1 is agreed**: template, sections,
|
|
65
67
|
forms, `on`/`uses`. Use Level 3 inline code last, only where Level 2 cannot
|
|
66
68
|
say it.
|
|
@@ -22,11 +22,10 @@ Requires cratis CLI ≥ 3.57 (`cratis --version`) to render ESM v14 and v15 mode
|
|
|
22
22
|
- Deciding whether a model can be rendered, or reading a blocked render.
|
|
23
23
|
- Re-rendering safely after the model or a managed file changed.
|
|
24
24
|
- Checking what the generated UI does and does not prove.
|
|
25
|
-
- Running the sandbox or the specification runner.
|
|
25
|
+
- Running the sandbox or the specification runner, or a behavior walk.
|
|
26
26
|
|
|
27
|
-
Not for authoring the model (`cratis-screenplay-model-authoring`), the
|
|
28
|
-
|
|
29
|
-
generated command or read model (`cratis-arc-command`, `cratis-chronicle-read-model`).
|
|
27
|
+
Not for authoring the model (`cratis-screenplay-model-authoring`), the render and gap-fill
|
|
28
|
+
workflow (`cratis-screenplay-render-and-gap-fill`), or generated C# (`cratis-arc-command`, `cratis-chronicle-read-model`).
|
|
30
29
|
|
|
31
30
|
## Model-first rule
|
|
32
31
|
|
|
@@ -60,8 +59,8 @@ cratis render --workspace ./application.workspace.json --destination ./out
|
|
|
60
59
|
| `--package-set <FILE>` | Approved package set (JSON) of custom runtime packages the `ui profile` may use; the frontend installs exactly these |
|
|
61
60
|
| `--force` | See "Publication and recovery" |
|
|
62
61
|
|
|
63
|
-
Order
|
|
64
|
-
|
|
62
|
+
Order: recover any interrupted publication, compile, bind, build the plan, plan the target
|
|
63
|
+
(Stage admission), validate artifacts, then publish.
|
|
65
64
|
Exit `0` is a published render, `5` is a refusal with nothing published (diagnostics are
|
|
66
65
|
printed), `1` is a missing input. Add `-o json` for the counts and the publication receipt.
|
|
67
66
|
|
|
@@ -104,8 +103,7 @@ backups). Never stage `.cratis-render/` in git; commit the manifest with the out
|
|
|
104
103
|
- Recovery runs before planning, even when planning then fails. **`recovered: true` in the
|
|
105
104
|
result means stop and reconcile**: the receipt does not describe what recovery changed.
|
|
106
105
|
- An unchanged re-render writes nothing (`unchanged` equals the artifact count).
|
|
107
|
-
- Use exclusive access to the destination; a receipt is a filesystem result, not a Git
|
|
108
|
-
commit, and the command creates no branch, commit or PR.
|
|
106
|
+
- Use exclusive access to the destination; a receipt is a filesystem result, not a Git commit, and the command creates no branch, commit or PR.
|
|
109
107
|
- Drift: `cratis render ... --check` is the first probe; exit `6` means pending changes.
|
|
110
108
|
Otherwise compare successive manifests' `semanticRevision` for renders with the same
|
|
111
109
|
`--name` and inputs. Do not compare the MCP `modelRevision` with the manifest: their
|
|
@@ -204,12 +202,18 @@ Specification runner exit codes: `0` means the run completed and the results fil
|
|
|
204
202
|
written **even when a specification failed**, so read the outcomes; `1` is a missing or
|
|
205
203
|
uncompilable input; `2` a missing required argument or an invalid semantic option.
|
|
206
204
|
|
|
205
|
+
## Behavior walk (optional, after V3)
|
|
206
|
+
|
|
207
|
+
Walk each persona's commands and screens in the sandbox's semantic engine and record what
|
|
208
|
+
changes, when a domain expert should check the model by using it. It yields findings for
|
|
209
|
+
the model owner only, changes nothing, is not UI review and is not V4 or V5 evidence.
|
|
210
|
+
Prerequisites, the walk, finding kinds, limits and hand-off:
|
|
211
|
+
Read [references/behavior-walk.md](references/behavior-walk.md) when planning or running it.
|
|
212
|
+
|
|
207
213
|
## Legacy direct-write rendering
|
|
208
214
|
|
|
209
|
-
The syntax-based `IRenderer` and
|
|
210
|
-
|
|
211
|
-
failure can leave the target unsafe and incomplete. Use `cratis render` (journaled,
|
|
212
|
-
recoverable publication) instead.
|
|
215
|
+
The syntax-based `IRenderer` and `Cratis.Stage.Rendering.Cratis.Scaffolding` write directly
|
|
216
|
+
to disk with no managed staging and no safe stale-file removal; a failure can leave the target unsafe and incomplete. Use `cratis render`.
|
|
213
217
|
|
|
214
218
|
## Verify
|
|
215
219
|
|
|
@@ -224,8 +228,7 @@ recoverable publication) instead.
|
|
|
224
228
|
file. The fix is an intent-preserving model change or a recorded gap, never an edit of
|
|
225
229
|
managed output and never a weakened model.
|
|
226
230
|
- No file under `.cratis-render/` is staged; managed files carry no local edits.
|
|
227
|
-
- Stage's plan is deterministic (same
|
|
228
|
-
and Stage never reviews, stages or approves anything.
|
|
231
|
+
- Stage's plan is deterministic (same bytes and hashes); that is not a review, and Stage never reviews, stages or approves anything.
|
|
229
232
|
- Sandbox expectations account for unenforced validation, authorization and query
|
|
230
233
|
authorization on the default engine.
|
|
231
234
|
- Runtime screen smoke coverage uses the same model root or workspace export as
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
# Behavior walk in the sandbox
|
|
2
|
+
|
|
3
|
+
An optional check after V3: use the model as each persona would and record what changes.
|
|
4
|
+
It produces **findings for the model owner and changes nothing**: no code fix, no model
|
|
5
|
+
edit, no Stage-managed edit by the walker. It is not a UI-faithfulness review
|
|
6
|
+
(`cratis-screenplay-ui-composition`), and it is not V3, V4 or
|
|
7
|
+
V5 evidence.
|
|
8
|
+
|
|
9
|
+
## Prerequisites
|
|
10
|
+
|
|
11
|
+
- V3 passed, and `cratis render` admits the model (a model Stage refuses cannot be walked
|
|
12
|
+
as the application it describes).
|
|
13
|
+
- Docker, and the `cratis/stage` image at the tag `cratis run` would use (by default the
|
|
14
|
+
Stage version the CLI renders with).
|
|
15
|
+
- The **semantic engine**. `cratis run` has no `--engine` option and passes no environment
|
|
16
|
+
to the container, so it starts the default EventModel engine, which enforces no
|
|
17
|
+
validation or authorization and refuses routed models. Start the same image directly:
|
|
18
|
+
|
|
19
|
+
```bash
|
|
20
|
+
docker run --rm -p 127.0.0.1:9090:9090 -p 127.0.0.1:35000:35000 \
|
|
21
|
+
-e Stage__Runtime__Engine=semantic \
|
|
22
|
+
-v "$PWD/model":/eventmodel:ro cratis/stage:<tag>
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
Wait until `GET /stage/status` reports `ready` and `engine: "semantic"`. `unsupported`
|
|
26
|
+
means the engine cannot execute the model and `/api/**` answers 501: stop, and record the
|
|
27
|
+
issues from `GET /stage/semantic/admission`; nothing was walked. `GET /stage/routes` lists
|
|
28
|
+
the command and query routes, and `/scalar/v1` is the API reference.
|
|
29
|
+
|
|
30
|
+
## The walk
|
|
31
|
+
|
|
32
|
+
For each persona, list the commands and screens that persona can reach (from the model's
|
|
33
|
+
`authorize`, `persona` and `screen` declarations), then for each one:
|
|
34
|
+
|
|
35
|
+
1. Note the state first: the persona's queries before acting.
|
|
36
|
+
2. Act: call the command as that persona with realistic input. Callers are built from the
|
|
37
|
+
unsigned `x-ms-client-principal` header, so set the persona's roles and claims there.
|
|
38
|
+
3. Look at what changed: the HTTP outcome (accepted; `403` denied; `400` validation or
|
|
39
|
+
constraint; `501` unsupported), the persona's queries again, and the queries of the
|
|
40
|
+
other personas the change should reach.
|
|
41
|
+
4. Repeat the action, then try the obvious refusals a person would expect (an empty value,
|
|
42
|
+
a repeat, the wrong persona, a step out of order).
|
|
43
|
+
|
|
44
|
+
Read models on the semantic engine live in the process and the history is unbounded, so
|
|
45
|
+
keep a session short and restart it for a clean state.
|
|
46
|
+
|
|
47
|
+
## Finding kinds
|
|
48
|
+
|
|
49
|
+
| Finding | Evidence to record |
|
|
50
|
+
| --- | --- |
|
|
51
|
+
| An action that changes nothing visible | Persona, command, input, outcome, and the queries before and after that stayed identical |
|
|
52
|
+
| A screen whose data stays empty because nothing feeds it | Screen, its read model and query, the events that should fill it, and that no walked command produces them |
|
|
53
|
+
| A pending-work or to-do view that never empties | The view, the item added, the action expected to clear it, and the unchanged view afterward |
|
|
54
|
+
| A refusal the person expected but the model lacks | The action tried, the accepted outcome, and the rule the person expected |
|
|
55
|
+
| An action the persona can take but should not, or cannot take but should | Persona, command, outcome, and the `authorize` line involved |
|
|
56
|
+
| A command or query the engine cannot execute | The `501` or admission entry with its reported reason |
|
|
57
|
+
|
|
58
|
+
Every finding names the persona, the steps in order, the observed outcome (status and
|
|
59
|
+
payload) and the model declaration it points at. Keep observations apart from opinions.
|
|
60
|
+
|
|
61
|
+
## What the walk cannot show
|
|
62
|
+
|
|
63
|
+
- A partial UI: the sandbox renders only part of a screen, so it says nothing about whether
|
|
64
|
+
an authored screen, template or form is rendered faithfully.
|
|
65
|
+
- Production authorization: callers come from forgeable headers, so a pass is not a
|
|
66
|
+
security result. Authorization on rendered applications is checked by their Debug tests.
|
|
67
|
+
- Anything the engine refuses: an unsupported model is not walked, and artifacts listed as
|
|
68
|
+
unsupported are blind spots, not passes.
|
|
69
|
+
- Chronicle projections in the Workbench: the semantic engine's read models are in-process.
|
|
70
|
+
- Rendered behavior: it is not a build, not Debug tests and not the specification runner.
|
|
71
|
+
|
|
72
|
+
## Hand-off
|
|
73
|
+
|
|
74
|
+
Give the findings to the model owner. A finding becomes an edit request
|
|
75
|
+
(`cratis-screenplay-model-authoring`) or a review finding (`cratis-screenplay-model-review`),
|
|
76
|
+
followed by the usual verdicts. Never turn a finding into a code fix, a change to
|
|
77
|
+
Stage-managed output or a weakened model, and never report the walk as an acceptance.
|