@cratis/pi 7.48.4 → 7.49.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.
- package/package/corpus/agents/screenplay-modeler.md +2 -1
- package/package/corpus/agents/screenplay-renderer.md +2 -2
- package/package/corpus/agents/screenplay-reviewer.md +1 -1
- package/package/corpus/agents/slice-implementer.md +13 -3
- package/package/corpus/hooks/README.md +28 -1
- package/package/corpus/hooks/scripts/cratis-guard-writes.sh +75 -0
- package/package/corpus/skills/cratis-application-slice-conformance/LICENSE +5 -0
- package/package/corpus/skills/cratis-application-slice-conformance/references/build-prompts.md +38 -19
- package/package/corpus/skills/cratis-application-slice-conformance/references/checklists.md +4 -0
- package/package/corpus/skills/cratis-application-slice-conformance/references/provenance.md +17 -0
- package/package/corpus/skills/cratis-application-slice-specifications/SKILL.md +27 -0
- package/package/corpus/skills/cratis-application-slice-specifications/references/provenance.md +6 -0
- package/package/corpus/skills/cratis-chronicle-event-modeling/LICENSE +5 -0
- package/package/corpus/skills/cratis-chronicle-event-modeling/SKILL.md +4 -1
- package/package/corpus/skills/cratis-chronicle-reactor/references/provenance.md +6 -0
- package/package/corpus/skills/cratis-chronicle-reactor/references/slice-delivery-checklist.md +5 -0
- package/package/corpus/skills/cratis-chronicle-read-model-specifications/SKILL.md +2 -0
- package/package/corpus/skills/cratis-screenplay-discovery/LICENSE +5 -0
- package/package/corpus/skills/cratis-screenplay-discovery/SKILL.md +3 -0
- package/package/corpus/skills/cratis-screenplay-discovery/references/domain-analysis-template.md +26 -1
- package/package/corpus/skills/cratis-screenplay-discovery/references/provenance.md +9 -0
- package/package/corpus/skills/cratis-screenplay-event-modeling/LICENSE +5 -0
- package/package/corpus/skills/cratis-screenplay-event-modeling/SKILL.md +7 -5
- package/package/corpus/skills/cratis-screenplay-event-modeling/references/provenance.md +10 -0
- package/package/corpus/skills/cratis-screenplay-legacy-extraction/LICENSE +5 -0
- package/package/corpus/skills/cratis-screenplay-legacy-extraction/SKILL.md +31 -34
- package/package/corpus/skills/cratis-screenplay-legacy-extraction/references/evidence-table-template.md +64 -2
- package/package/corpus/skills/cratis-screenplay-legacy-extraction/references/expert-verification.md +18 -1
- package/package/corpus/skills/cratis-screenplay-legacy-extraction/references/interview-findings.md +5 -2
- package/package/corpus/skills/cratis-screenplay-legacy-extraction/references/loss-report-template.md +5 -0
- package/package/corpus/skills/cratis-screenplay-legacy-extraction/references/provenance.md +20 -0
- package/package/corpus/skills/cratis-screenplay-legacy-extraction/references/re-entry-and-passes.md +89 -0
- package/package/corpus/skills/cratis-screenplay-legacy-extraction/references/rule-modeling.md +9 -0
- package/package/corpus/skills/cratis-screenplay-legacy-extraction/references/signal-to-intent.md +28 -1
- package/package/corpus/skills/cratis-screenplay-legacy-extraction/references/ui-observation.md +4 -0
- package/package/corpus/skills/cratis-screenplay-legacy-extraction/verification.json +4 -0
- package/package/corpus/skills/cratis-screenplay-model-review/LICENSE +5 -0
- package/package/corpus/skills/cratis-screenplay-model-review/SKILL.md +5 -0
- package/package/corpus/skills/cratis-screenplay-model-review/references/checklist.md +1 -1
- package/package/corpus/skills/cratis-screenplay-model-review/references/model-inventory-report.md +11 -0
- package/package/corpus/skills/cratis-screenplay-model-review/references/provenance.md +10 -0
- package/package/corpus/skills/cratis-screenplay-model-review/references/stressor-analysis.md +74 -0
- package/package/corpus/skills/cratis-screenplay-render-and-gap-fill/LICENSE +5 -0
- package/package/corpus/skills/cratis-screenplay-render-and-gap-fill/SKILL.md +12 -11
- package/package/corpus/skills/cratis-screenplay-render-and-gap-fill/references/delivery-protocol.md +2 -2
- package/package/corpus/skills/cratis-screenplay-render-and-gap-fill/references/{drift-and-ledger.md → drift-and-fallback-record.md} +53 -6
- package/package/corpus/skills/cratis-screenplay-render-and-gap-fill/references/gap-fill-handoff.md +12 -11
- package/package/corpus/skills/cratis-screenplay-render-and-gap-fill/references/provenance.md +11 -1
- package/package/corpus/skills/cratis-screenplay-render-and-gap-fill/references/renderability-gate.md +3 -3
- package/package/corpus/skills/cratis-screenplay-render-and-gap-fill/references/worked-example.md +2 -2
- package/package/corpus/skills/cratis-screenplay-scenario-coverage/LICENSE +5 -0
- package/package/corpus/skills/cratis-screenplay-scenario-coverage/SKILL.md +6 -6
- package/package/corpus/skills/cratis-screenplay-scenario-coverage/references/coverage-matrix.md +7 -0
- package/package/corpus/skills/cratis-screenplay-scenario-coverage/references/provenance.md +9 -0
- package/package/corpus/skills/cratis-screenplay-scenario-coverage/references/scenario-catalogue.md +29 -3
- package/package/corpus/skills/cratis-screenplay-scenario-coverage/references/scenario-examples.md +2 -0
- package/package/corpus/skills/cratis-screenplay-slice-design/LICENSE +5 -0
- package/package/corpus/skills/cratis-screenplay-slice-design/SKILL.md +5 -4
- package/package/corpus/skills/cratis-screenplay-slice-design/references/command-inventory.md +64 -0
- package/package/corpus/skills/cratis-screenplay-slice-design/references/field-lineage.md +24 -0
- package/package/corpus/skills/cratis-screenplay-slice-design/references/provenance.md +10 -0
- package/package/corpus/skills/cratis-screenplay-specifications/SKILL.md +1 -0
- package/package.json +1 -1
|
@@ -12,14 +12,14 @@ an automation that runs off it, or a translation of outside data. Screenplay is
|
|
|
12
12
|
the **artifact**: one language that holds that whole model - concepts, commands,
|
|
13
13
|
events, read models, queries, screens, specifications - in files that compile.
|
|
14
14
|
|
|
15
|
-
You are a **facilitator, not a stenographer.** Ask probing questions
|
|
16
|
-
assumptions
|
|
15
|
+
You are a **facilitator, not a stenographer.** Ask probing questions, challenge
|
|
16
|
+
assumptions, keep asking *"and then what happens?"* after every event, every
|
|
17
17
|
command, every answer. Use business language. Do not discuss databases, APIs, or
|
|
18
18
|
frameworks during modeling.
|
|
19
19
|
|
|
20
|
-
**Ask only what the step needs.** Missing or ambiguous information: ask
|
|
20
|
+
**Ask only what the step needs.** Missing or ambiguous information: ask the one question that
|
|
21
21
|
changes the model most, and follow a vague answer ("it depends", "usually") with "what decides
|
|
22
|
-
it?". Already known: do not ask. Told not to stop
|
|
22
|
+
it?". Already known: do not ask. Told not to stop (unattended run): assume the
|
|
23
23
|
most reasonable answer, say so visibly where it can be corrected, never guess silently. Assume
|
|
24
24
|
visibly during modeling; delivery blocks any guess that could encode a wrong rule, authorization,
|
|
25
25
|
money or time behavior. Contradictions, a third review round, a gate only the user can accept,
|
|
@@ -209,7 +209,9 @@ belongs to their slice. Syntax, merge rules and diagnostics:
|
|
|
209
209
|
Store what happened (events), not just current state. Events are immutable
|
|
210
210
|
past-tense facts in business language. **Every read-model field must trace back to
|
|
211
211
|
an event.** If a field has no source event, something is missing from the model -
|
|
212
|
-
it is not an optional column.
|
|
212
|
+
it is not an optional column. Every value starts somewhere specific (a person's input, the
|
|
213
|
+
runtime's context, an allocated id, a view's calculation) and is carried by name from there
|
|
214
|
+
(slice-design `references/field-lineage.md`).
|
|
213
215
|
|
|
214
216
|
## The four patterns -> the four slice types
|
|
215
217
|
|
|
@@ -17,6 +17,16 @@ by Martin Dilger and Nebulit GmbH (https://nebulit.de), used with the explicit c
|
|
|
17
17
|
| `.claude/skills/eventmodeling-orchestrating-event-modeling/SKILL.md`: "Do not cut corners to save tokens or effort" | `SKILL.md` paragraph "Do not cut corners to save tokens or effort" (short form; full text in the lifecycle skill) | Adapted closely; restored from #493; translated to Screenplay |
|
|
18
18
|
| `.claude/skills/eventmodeling-interview-protocol/SKILL.md`: when to ask, unless told not to ask | `SKILL.md` paragraph "Ask only what the step needs" (short form; full text in the lifecycle skill) | Adapted closely; restored from #493; recording moved to STATE.md |
|
|
19
19
|
|
|
20
|
+
### Eventmodelers Build-Kits
|
|
21
|
+
|
|
22
|
+
Source: https://github.com/Nebulit-GmbH/Eventmodelers-Build-Kits, by Martin Dilger and Nebulit GmbH
|
|
23
|
+
(https://nebulit.de), used with the explicit consent of Martin Dilger and Nebulit GmbH.
|
|
24
|
+
|
|
25
|
+
| Source skill | Used in | How |
|
|
26
|
+
|---|---|---|
|
|
27
|
+
| `eventmodeling-information-completeness` | `SKILL.md` *The prime directive* | adapted closely: every value starts at one specific place and is carried by name; an unknown origin is a gap, never a default |
|
|
28
|
+
| `eventmodeling-identifying-inputs` | `cratis-chronicle-event-modeling` `SKILL.md` *Decide before implementing* | adapted closely: a rule's decision values classified as input, state or context; context supplied by the pipeline or a time source, never read inside the decision |
|
|
29
|
+
|
|
20
30
|
## Method lineage in SKILL.md
|
|
21
31
|
|
|
22
32
|
> **Method lineage.** The two-phase process, the nine steps, the four patterns and
|
|
@@ -34,3 +34,8 @@ This skill also adapts material from agentic-engineer by Martin Dilger and Nebul
|
|
|
34
34
|
(https://github.com/Nebulit-GmbH/agentic-engineer, commit 07b0f30648d663cb588d7e2c7aa031af9dfc21f2;
|
|
35
35
|
https://nebulit.de), used with the explicit consent of Martin Dilger and Nebulit GmbH. The adapted
|
|
36
36
|
material remains credited to Martin Dilger and Nebulit GmbH.
|
|
37
|
+
|
|
38
|
+
This skill also adapts material from the Eventmodelers Build-Kits skills by Martin Dilger and
|
|
39
|
+
Nebulit GmbH (https://github.com/Nebulit-GmbH/Eventmodelers-Build-Kits; https://nebulit.de), used
|
|
40
|
+
with the explicit consent of Martin Dilger and Nebulit GmbH. The adapted material remains credited
|
|
41
|
+
to Martin Dilger and Nebulit GmbH.
|
|
@@ -87,7 +87,7 @@ Critical questions (full wording, why they matter and follow-up triggers:
|
|
|
87
87
|
|
|
88
88
|
**Unattended:** do not stop. Assume the most restrictive answer (clone only, no capture, no
|
|
89
89
|
hosted-model disclosure, freeze unknown), record each assumption visibly in `INTERVIEW.md`, and
|
|
90
|
-
produce only what that allows. A missing freeze
|
|
90
|
+
produce only what that allows. A missing freeze blocks side-car work, not documentation.
|
|
91
91
|
|
|
92
92
|
## Procedure
|
|
93
93
|
|
|
@@ -99,11 +99,15 @@ candidate into the model root only when the brief says so; otherwise
|
|
|
99
99
|
**L0 Inventory and coverage.** List every way behaviour enters or leaves the system: HTTP routes,
|
|
100
100
|
UI form posts, message consumers, scheduled jobs, database triggers, stored procedures,
|
|
101
101
|
batch/ETL, admin scripts, inbound and outbound integrations, existing event stores. For each
|
|
102
|
-
family record which evidence source covers it (`generate` provider, Prologue, UI walk, or none).
|
|
102
|
+
family record which evidence source covers it (`generate` provider, Prologue, UI walk, tests, or none).
|
|
103
103
|
Uncovered families go to targeted reading. Before treating a generated `.play` as a substitute
|
|
104
104
|
for code, write down what the provider omits (`references/generate-notes.md`) and what Prologue
|
|
105
|
-
cannot see (`references/prologue-safety.md`). Delegate sweeps over about three files to a
|
|
106
|
-
|
|
105
|
+
cannot see (`references/prologue-safety.md`). Delegate sweeps over about three files to a read-only subagent where the harness has one.
|
|
106
|
+
|
|
107
|
+
**Re-entry and passes** (`references/re-entry-and-passes.md`). A later run first checks each
|
|
108
|
+
feature's recorded source identity with read-only git, rereads only what changed and verifies the
|
|
109
|
+
freeze. Go broad first (Pass 0: features and milestone events), then deepen one feature per pass;
|
|
110
|
+
passes are scope stages, orthogonal to L0-L4.
|
|
107
111
|
|
|
108
112
|
**L1 Static evidence.** Where a provider fits (.NET Arc, Marten, Critter Stack):
|
|
109
113
|
`cratis screenplay generate <solution> --file .ai-work/screenplay/<model-slug>/legacy/static/static.play [--provider ...]`.
|
|
@@ -113,7 +117,7 @@ written under `obj/`. Run it only on source the user trusts, in a clone or workt
|
|
|
113
117
|
write to, never in the user's live legacy checkout, and name the target in the approval
|
|
114
118
|
(`references/generate-notes.md`).
|
|
115
119
|
Every diagnostic is a loss row; every non-lowered fact is resolved or waived. Validate the
|
|
116
|
-
generated file as-is and record the result; never
|
|
120
|
+
generated file as-is and record the result; never edit it in place. For a running
|
|
117
121
|
Chronicle source add bounded live-store evidence (`references/chronicle-observations.md`).
|
|
118
122
|
|
|
119
123
|
**L2 Dynamic evidence (approval-gated).** Prologue capture changes target databases and routes
|
|
@@ -141,13 +145,14 @@ not the server rule or event behind it. Screens and real query usage are the sou
|
|
|
141
145
|
models, not table mirrors.
|
|
142
146
|
|
|
143
147
|
**L3 Evidence table.** One row per observed fact (`references/evidence-table-template.md`):
|
|
144
|
-
source, locator, fact, strength, classification (intent / consequence /
|
|
145
|
-
unknown), generator disposition, candidate element, target decision.
|
|
148
|
+
source (tests included), locator, fact, strength, classification (intent / consequence /
|
|
149
|
+
infrastructure / noise / unknown), generator disposition, candidate element, target decision. Keep
|
|
150
|
+
decisions, terms and where each feature lives there too. A write with no user command
|
|
146
151
|
behind it is maintenance, correction, integration, scheduled business process (only with an
|
|
147
152
|
evidenced trigger) or unexplained; never assume an automation. Log each code read with `file:line`.
|
|
148
153
|
Resolve open rows with targeted reads in this order: generated `.play` and diagnostics, Prologue
|
|
149
154
|
output, code. Reread when a source changed or rows conflict. Translation rules from technical
|
|
150
|
-
signal to candidate meaning: `references/signal-to-intent.md`.
|
|
155
|
+
signal to candidate meaning (tests, generic engines, reference data, order): `references/signal-to-intent.md`.
|
|
151
156
|
|
|
152
157
|
**Traceability checkpoint.** Every repository-backed code or schema claim resolves through its
|
|
153
158
|
evidence id to an inspected `path:start-end` (file name exactly as given, `CheckinService.cs:40-54`)
|
|
@@ -165,9 +170,8 @@ chain per slice before handoff (evidence template); never manufacture references
|
|
|
165
170
|
the MCP `propose-move` tool (identity-preserving; it refuses identity loss, collisions and
|
|
166
171
|
captures) rather than retyping the declarations (`cratis-screenplay-model-authoring`):
|
|
167
172
|
- one StateChange per decision a person or system makes; events are facts experts recognise;
|
|
168
|
-
consequences (
|
|
169
|
-
|
|
170
|
-
`<Noun>Updated`): split by intent;
|
|
173
|
+
consequences (counters, denormalised copies) become projections; an automation only when
|
|
174
|
+
evidence shows a separate decision; no generic names (`Update/Edit/Save<Noun>`, `<Noun>Updated`): split by intent;
|
|
171
175
|
- refusals: input or constraint rejection is `validate` / `require` / constraint plus
|
|
172
176
|
`then error` with the exact message from code; authorization refusal is `authorize` plus
|
|
173
177
|
`then denied`. Legacy HTTP codes and check order go in the slice `documentation`;
|
|
@@ -175,17 +179,10 @@ chain per slice before handoff (evidence template); never manufacture references
|
|
|
175
179
|
in the model today**, target named; a unique index with business meaning becomes
|
|
176
180
|
`unique ... on <every event that sets it>` with `released by`
|
|
177
181
|
(`references/rule-modeling.md`);
|
|
178
|
-
- preserve personal-data/secret protection and authorization found in code
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
declarations only from evidence or expert decisions; run `--check purposes`
|
|
183
|
-
and inspect the processing record as prompts, not a legal verdict. Keep
|
|
184
|
-
hand-joined legacy ids scalar; never infer composite parts by splitting text.
|
|
185
|
-
Event `subject` is report-only; distinguish observed lineage from runtime
|
|
186
|
-
realization. See command-surface `references/compliance.md`.
|
|
187
|
-
Every role gate has `authorize`
|
|
188
|
-
plus a `then denied` spec, else a recorded gap; rules you cannot express truthfully are
|
|
182
|
+
- preserve personal-data/secret protection and authorization found in code (`pii` / `secret`,
|
|
183
|
+
evidenced scope); derive purpose, use and retention only from evidence or expert decisions
|
|
184
|
+
(`references/rule-modeling.md`, "Personal data and secrets").
|
|
185
|
+
- Every role gate has `authorize` plus a `then denied` spec, else a recorded gap; rules you cannot express truthfully are
|
|
189
186
|
recorded one by one, never fabricated.
|
|
190
187
|
3. Cite evidence ids in each slice `description` ("Evidence: E3, E7"). Read `references/intent-example.md` when authoring the intentional candidate to check the complete example of evidence citations, re-slicing, constraints, authorization and recorded state-dependent rules.
|
|
191
188
|
4. **Scenario reconciliation** with `cratis-screenplay-scenario-coverage` before review: success
|
|
@@ -198,14 +195,14 @@ chain per slice before handoff (evidence template); never manufacture references
|
|
|
198
195
|
source errors, run `--check field-origins,event-consumers,personas,purposes` and treat each
|
|
199
196
|
finding as an inventory row, never a verdict.
|
|
200
197
|
6. Write the loss report (`references/loss-report-template.md`) and the expert question list
|
|
201
|
-
(`references/expert-verification.md
|
|
198
|
+
(`references/expert-verification.md`, with a plain-language retelling and keep / change / new / remove view per feature).
|
|
202
199
|
|
|
203
200
|
**The final report itself carries exact locators.** Every evidence-backed claim in it gives an
|
|
204
201
|
exact `file:line` locator (or `file:start-end`) inline, file name exactly as given. An evidence id
|
|
205
202
|
or a pointer to another file is not enough. A claim without a locator is `unknown`.
|
|
206
203
|
|
|
207
204
|
Report in the final message when the brief says so (locators, mapping, assumptions, questions),
|
|
208
|
-
handoff packet appended, first line `Outcome:`; no prose reports in the model root. Then hand off
|
|
205
|
+
handoff packet appended, first line `Outcome:`; no prose reports in the model root. Then hand off to independent review (`cratis-screenplay-model-review`), expert verification and acceptance (P6).
|
|
209
206
|
|
|
210
207
|
## Rules
|
|
211
208
|
|
|
@@ -225,9 +222,8 @@ handoff packet appended, first line `Outcome:`; no prose reports in the model ro
|
|
|
225
222
|
re-routing, load or scenario runs that write data, cleanup DDL, hosted language-model use.
|
|
226
223
|
Production needs DBA sign-off (`rules/capability-is-not-authority.md`).
|
|
227
224
|
- No claims of execution equivalence from structure. MCP `semantic-diff` compares
|
|
228
|
-
same-application canonical exports
|
|
229
|
-
|
|
230
|
-
incomplete sections and exclusions before using the result in the loss report.
|
|
225
|
+
same-application canonical exports; it does not guess renames, run specifications or prove
|
|
226
|
+
recovered behavior. Inspect its incomplete sections before using it in the loss report.
|
|
231
227
|
- Never weaken protection (authorization, `pii`, rules) to make the candidate compile.
|
|
232
228
|
|
|
233
229
|
## Gate
|
|
@@ -238,8 +234,9 @@ The candidate may go to review only when all hold, each a result or "not run: <r
|
|
|
238
234
|
- Every generator diagnostic and Prologue blind spot is a row or a loss-report line; every slice
|
|
239
235
|
cites evidence ids or an expert statement; every row has a classification and a target decision
|
|
240
236
|
or open question.
|
|
241
|
-
-
|
|
242
|
-
|
|
237
|
+
- Features not yet extracted are listed in the loss report; the rest of this gate applies to the extracted scope.
|
|
238
|
+
- Evidence ids resolve to inspected `path:start-end` at the recorded source identity, shown as
|
|
239
|
+
compact locators in the report (a UI-only extraction says it has none).
|
|
243
240
|
- Scenario applicability was reconciled (missing denials, competing claims, branches, removals
|
|
244
241
|
named); V1 clean on the candidate folder, warnings as errors; inventory report produced.
|
|
245
242
|
- Capture: approvals, snapshot and cleanup confirmation, or "no capture"; interpret: effective
|
|
@@ -251,7 +248,7 @@ The candidate may go to review only when all hold, each a result or "not run: <r
|
|
|
251
248
|
"automatic" and "equivalent"; every unknown has a question, an owner and an interim assumption.
|
|
252
249
|
- `prologue start`, Extractor runs, interpret and cleanup appear only as proposals or with a
|
|
253
250
|
recorded approval.
|
|
254
|
-
- The candidate compiles and matches
|
|
251
|
+
- The candidate compiles and matches `references/intent-example.md`.
|
|
255
252
|
|
|
256
253
|
## Route near misses
|
|
257
254
|
|
|
@@ -266,7 +263,7 @@ The candidate may go to review only when all hold, each a result or "not run: <r
|
|
|
266
263
|
|
|
267
264
|
## Lineage
|
|
268
265
|
|
|
269
|
-
Sources, licences and adaptation notes: `references/provenance.md
|
|
270
|
-
|
|
271
|
-
inventory adapt Martin Dilger and Nebulit GmbH's
|
|
272
|
-
agreement; the
|
|
266
|
+
Sources, licences and adaptation notes: `references/provenance.md` (read it when checking attribution
|
|
267
|
+
or the origin of an adapted workflow). Interview and side-car planning adapt TrogonStack agentskills
|
|
268
|
+
(MIT); the UI walk and candidate inventory adapt Martin Dilger and Nebulit GmbH's work, with their
|
|
269
|
+
agreement; the method ideas are credited there; the rest is Cratis.
|
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# Evidence table template
|
|
2
2
|
|
|
3
|
+
## Contents
|
|
4
|
+
|
|
5
|
+
- 1. Coverage (from L0)
|
|
6
|
+
- 2. Evidence rows
|
|
7
|
+
- Traceability reconciliation
|
|
8
|
+
- 3. Read log
|
|
9
|
+
- 4. Unknowns and questions
|
|
10
|
+
- 5. Sign-off
|
|
11
|
+
- 6. Where each feature lives
|
|
12
|
+
- 7. Analysis history
|
|
13
|
+
- 8. Decisions
|
|
14
|
+
- 9. Terms
|
|
15
|
+
- 10. Realization convention
|
|
16
|
+
|
|
3
17
|
Keep one file per model: `.ai-work/screenplay/<model-slug>/legacy/EVIDENCE.md`. It is the single place
|
|
4
18
|
where as-is facts, their sources and the proposed target decisions meet. Agents and reviewers
|
|
5
19
|
cite row ids (`E12`) instead of pasting code or captures.
|
|
@@ -20,8 +34,8 @@ templates, table and column names, and path:line, not values.
|
|
|
20
34
|
| Column | Content |
|
|
21
35
|
|---|---|
|
|
22
36
|
| `id` | `E<n>`, stable; never renumber |
|
|
23
|
-
| `source` | static (generate) / dynamic (Prologue) / code / UI / runtime (Chronicle) / doc / expert |
|
|
24
|
-
| `locator` | Repository-backed code
|
|
37
|
+
| `source` | static (generate) / dynamic (Prologue) / code / test / UI / runtime (Chronicle) / doc / expert |
|
|
38
|
+
| `locator` | Repository-backed code, test and schema claims: the inspected repository-relative `path:start-end`, with the file name exactly as given (`CheckinService.cs:40-54`, never shortened; for a test, the test method's range), bound to the source identity. A locator that cannot be found is recorded as `not found` and the claim stays `unknown`; it is never rewritten as "to build". Runtime (Chronicle): target, event store, namespace, schema identity + generation or bounded event range, observation time. Other sources: capture file + record, redacted UI route + observation id, document section/version, generated declaration address + diagnostic, or person + date. Never substitute one source type's locator for another's |
|
|
25
39
|
| `observed fact` | what was seen, in neutral words ("POST /checkins inserts Checkins and updates Hooks") |
|
|
26
40
|
| `technical shape` | method + route, tables (op, columns), status-code mix, frequency, span names |
|
|
27
41
|
| `strength` | Exact / Configured / Conventional / Heuristic (generator ladder), Observed (capture), Read (code), Stated (person) |
|
|
@@ -77,3 +91,51 @@ answer, and what the candidate assumes meanwhile. Unknowns are kept, not dropped
|
|
|
77
91
|
## 5. Sign-off
|
|
78
92
|
Per slice: expert, date, verdict, open items. Capture cleanup confirmation (who ran which
|
|
79
93
|
statements, verification query output summary) or "no capture run".
|
|
94
|
+
|
|
95
|
+
## 6. Where each feature lives
|
|
96
|
+
One table per feature, written at Pass 0; re-entry refreshes it (`re-entry-and-passes.md`).
|
|
97
|
+
|
|
98
|
+
| Area | Folder or package | Key symbols |
|
|
99
|
+
|---|---|---|
|
|
100
|
+
| API | `src/Checkins/` | `CheckinService`, `CheckinsController` |
|
|
101
|
+
| Persistence | `db/checkins/` | `Checkins` table, `Hooks` table |
|
|
102
|
+
| Tests | `tests/Checkins/` | `CheckinServiceTests` |
|
|
103
|
+
| UI | `web/checkins/` | check-in form |
|
|
104
|
+
|
|
105
|
+
## 7. Analysis history
|
|
106
|
+
Per feature, append-only; a re-entry that finds nothing new still gets a row.
|
|
107
|
+
|
|
108
|
+
| # | Date | Source identity | Pass | Scope (folders) | Result |
|
|
109
|
+
|---|---|---|---|---|---|
|
|
110
|
+
| 1 | 2025-03-02 | commit and digest (helper) | 0 | whole system | 4 features, milestone events only |
|
|
111
|
+
| 2 | 2025-03-09 | same commit | 1 | `src/Checkins/` | 6 slices, 2 questions open |
|
|
112
|
+
| 3 | 2025-03-30 | newer commit | re-entry | `CheckinService.cs`, `db/checkins/` | one rule changed, rows E8 and E9 reread |
|
|
113
|
+
|
|
114
|
+
## 8. Decisions
|
|
115
|
+
One row per decision, written in the same batch as the model edit that applies it.
|
|
116
|
+
|
|
117
|
+
| # | Kind | Declaration address | Why | Evidence ids | Confirmed by |
|
|
118
|
+
|---|---|---|---|---|---|
|
|
119
|
+
| D1 | merge | `Cloakroom/Intake/TakeInCoat` | the insert and the hook update are one decision | E1 | code |
|
|
120
|
+
| D2 | order | `BookingAVisit` | a visit needs a registered pet | E2 | expert |
|
|
121
|
+
| D3 | not modeled | none | nightly hook reset has no known owner | E4 | assumed |
|
|
122
|
+
|
|
123
|
+
Kinds: element mapping, order, term, override (an expert outranks the code), merge or split, not
|
|
124
|
+
modeled, reference data, assumption. `Confirmed by` is `code`, `expert` or `assumed`; an assumed row
|
|
125
|
+
also has a question in section 4. Decisions about the target (keep, change, remove) stay in the
|
|
126
|
+
evidence rows, not here.
|
|
127
|
+
|
|
128
|
+
## 9. Terms
|
|
129
|
+
The model carries the business word; this table carries the code word, so code readers and business
|
|
130
|
+
readers find each other.
|
|
131
|
+
|
|
132
|
+
| Code term | Business term | Where used | Confirmed by |
|
|
133
|
+
|---|---|---|---|
|
|
134
|
+
| `PetType` | Species | `Pets` table, `PetService` | expert |
|
|
135
|
+
|
|
136
|
+
## 10. Realization convention
|
|
137
|
+
After the first few features are evidenced, write down how this system realizes each kind of
|
|
138
|
+
behavior, citing evidence ids: creation is an insert into the entity table, a transition is a status
|
|
139
|
+
column update, a read is a repository method plus DTO, background work is the named scheduler. Use
|
|
140
|
+
it to speed up later passes. A feature that deviates from it is a question, because deviations are
|
|
141
|
+
where hidden rules live.
|
package/package/corpus/skills/cratis-screenplay-legacy-extraction/references/expert-verification.md
CHANGED
|
@@ -16,12 +16,29 @@ asked for each become a row or a question.
|
|
|
16
16
|
|
|
17
17
|
## Preparing the session
|
|
18
18
|
- One page per workflow: the candidate slices as a short story in business words (no
|
|
19
|
-
Screenplay syntax, no table names unless the experts use them), with evidence ids.
|
|
19
|
+
Screenplay syntax, no table names unless the experts use them), with evidence ids. Use the
|
|
20
|
+
retelling and impact views below.
|
|
20
21
|
- At most about 12 questions per session, ordered by risk. Each question names the slice, the
|
|
21
22
|
evidence row and what changes depending on the answer.
|
|
22
23
|
- Mark which items are proposals (`decided by: proposed`) so experts know what to challenge.
|
|
23
24
|
- Redact production values; ask before showing captures or code to anyone outside the team.
|
|
24
25
|
|
|
26
|
+
## Retelling and impact views
|
|
27
|
+
Both are generated from the candidate and the evidence table for the session and never edited
|
|
28
|
+
afterwards; a correction goes into the model, then the view is regenerated. They are reading aids,
|
|
29
|
+
not a second source of truth.
|
|
30
|
+
|
|
31
|
+
**Story retelling** (per feature). Numbered sentences of the form "<who> <does what> <to which work
|
|
32
|
+
object> (for whom)", 3 to 15 per feature. Actors are personas or named systems; work objects are
|
|
33
|
+
business nouns the experts use, never declaration or table names. A step the evidence does not
|
|
34
|
+
show is written as an explicit gap sentence ("Gap: who approves the refund?"), not smoothed over.
|
|
35
|
+
Experts correct wording, order and missing steps directly on the retelling. The form follows Domain
|
|
36
|
+
Storytelling (Stefan Hofer and Henning Schwentner).
|
|
37
|
+
|
|
38
|
+
**Impact view** (per feature, for target decisions). One line per slice marked keep, change, new or
|
|
39
|
+
remove, with the one-line change and the evidence row. It makes the keep / change / remove decision
|
|
40
|
+
visible per feature and names who relies on anything removed.
|
|
41
|
+
|
|
25
42
|
## Questions per slice
|
|
26
43
|
- Is this event something you would say happened, in these words? Is it one fact or several?
|
|
27
44
|
- Who decides this, and can anyone act on someone else's behalf?
|
package/package/corpus/skills/cratis-screenplay-legacy-extraction/references/interview-findings.md
CHANGED
|
@@ -22,7 +22,10 @@ Ask only what is missing, one per turn.
|
|
|
22
22
|
3. **Observation and extraction feasibility.** "Which environment may be observed (a clone or
|
|
23
23
|
staging by default)? Can you query the database, is there an audit log or change tracking,
|
|
24
24
|
who can grant change data capture or replication, is OpenTelemetry available, what workload
|
|
25
|
-
exists (test suite, scripted scenarios, mirrored traffic)?"
|
|
25
|
+
exists (test suite, scripted scenarios, mirrored traffic)?" Ask once whether a running
|
|
26
|
+
instance and a test account exist; the answer never blocks. Continue with static evidence, record
|
|
27
|
+
"running instance: not answered yet", and when access arrives let the walk confirm or correct the
|
|
28
|
+
order and screens already derived. Follow-ups: direct query, ask
|
|
26
29
|
for access and schema knowledge; CDC, name the DBA; changes to the legacy system are not
|
|
27
30
|
allowed under a freeze.
|
|
28
31
|
4. **Data sensitivity and disclosure.** "Which data is personal or sensitive, and which hosted
|
|
@@ -48,7 +51,7 @@ Ask only what is missing, one per turn.
|
|
|
48
51
|
- Documentation and audit trails that exist:
|
|
49
52
|
|
|
50
53
|
## Freeze agreement (gate)
|
|
51
|
-
- Status: agreed / pending / blocked
|
|
54
|
+
- Status: agreed / pending / blocked (a later run checks it: `re-entry-and-passes.md`)
|
|
52
55
|
- Boundaries: what is frozen (features, schema, APIs), what is allowed (bug fixes)
|
|
53
56
|
- Stakeholders who agreed: names, or "none yet"
|
|
54
57
|
- Not applicable? Say why (for example documentation-only extraction, no side-car planned)
|
package/package/corpus/skills/cratis-screenplay-legacy-extraction/references/loss-report-template.md
CHANGED
|
@@ -22,6 +22,11 @@ short; cite evidence rows (`E12`) and questions (`Q3`) instead of repeating cont
|
|
|
22
22
|
status codes (ignored), time-only correlation, PostgreSQL column over-reporting.
|
|
23
23
|
- Generator lag that applies here: generations, appended-event specs, reactions, triggers.
|
|
24
24
|
|
|
25
|
+
## Not yet extracted
|
|
26
|
+
Features still at Pass 0 (`re-entry-and-passes.md`), each with the reason and what would trigger its
|
|
27
|
+
next pass. They are never counted as done. Features whose evidence is `stale` after re-entry are
|
|
28
|
+
listed too.
|
|
29
|
+
|
|
25
30
|
## Behaviour not observed
|
|
26
31
|
Routes, jobs or tables the inventory found but no evidence exercised. Each is `unknown`,
|
|
27
32
|
with the bounded check done (for example "searched for callers: none found in 3 files")
|
|
@@ -23,3 +23,23 @@ by Martin Dilger and Nebulit GmbH (https://nebulit.de), used with the explicit c
|
|
|
23
23
|
| `.claude/skills/eventmodeling-core-rules/SKILL.md` lines 175-182: Structural Shapes (bed, left chair, right chair, shelf; thresholds and what to ask) | `references/candidate-inventory.md` section 7 | Adapted closely; the bed softened to Screenplay's several-actions-per-screen semantics, shorthand names kept internal |
|
|
24
24
|
| `.claude/skills/discover-storyboard/SKILL.md`: chapters, grid cells, `create_screen`, HTML reconstruction as default, screenshots storage, credentials from URL | not used | Board transport dropped; HTML reconstruction is not evidence; credentials never guessed |
|
|
25
25
|
| `.claude/skills/analyze-existing-model/SKILL.md`: Steps 5a-5f (element inventory, status breakdown, spec coverage, structural gaps per slice type, orphans, structural shapes) and Step 6 report format | `references/candidate-inventory.md`, `SKILL.md` "L4" step 5 and "Gate" | Translated to `.play` constructs and the evidence table; read-only rule kept; board API, `validate_model` and status values dropped |
|
|
26
|
+
|
|
27
|
+
### Eventmodelers Build-Kits
|
|
28
|
+
|
|
29
|
+
Source: https://github.com/Nebulit-GmbH/Eventmodelers-Build-Kits, by Martin Dilger and Nebulit GmbH
|
|
30
|
+
(https://nebulit.de), used with the explicit consent of Martin Dilger and Nebulit GmbH.
|
|
31
|
+
|
|
32
|
+
| Source skill | Used in | How |
|
|
33
|
+
|---|---|---|
|
|
34
|
+
| `analyze-code-base` | `references/re-entry-and-passes.md` sections 1 and 2; `references/evidence-table-template.md` sections 6-9 | adapted closely: re-entry by recorded commit with incremental rereading, breadth first then one feature per pass with a detail budget, one feature per user journey, "deeper means more business"; the history, where-it-lives, decision and term tables; board, lane and chat mechanics dropped, the evidence table is the record |
|
|
35
|
+
| `analyze-code-base` | `references/signal-to-intent.md` (tests, reference data, generic engines, order, outbound outcomes); `references/interview-findings.md`, `references/ui-observation.md` | adapted closely: tests as hypotheses, a table read but never written is outside data, generic engines modeled by real cases, order taken from a walk or an expert, the running instance asked once and never a gate; restated as Screenplay evidence rules |
|
|
36
|
+
| `learn-architecture` | `references/evidence-table-template.md` section 10; `references/signal-to-intent.md` | adapted closely: record how the system realizes each kind of behavior and treat deviations as questions; a section of the evidence table, not a separate file |
|
|
37
|
+
| `domain-story` | `references/expert-verification.md` *Story retelling* | adapted closely: numbered "who does what to which work object" sentences, 3 to 15 per feature, gaps stated as sentences; picture and board links dropped; the form is Domain Storytelling by Stefan Hofer and Henning Schwentner |
|
|
38
|
+
|
|
39
|
+
## Method lineage
|
|
40
|
+
|
|
41
|
+
The idea below is in our own wording; no upstream text, table or template is reused for it.
|
|
42
|
+
|
|
43
|
+
| Idea | Where used | Credit |
|
|
44
|
+
|---|---|---|
|
|
45
|
+
| Keep / change / new / remove impact view | `references/expert-verification.md` | Martin Dilger / Nebulit GmbH, Eventmodelers build kits (`walkthrough`), used with their explicit consent; idea, our own wording |
|
package/package/corpus/skills/cratis-screenplay-legacy-extraction/references/re-entry-and-passes.md
ADDED
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
# Re-entry and layered passes
|
|
2
|
+
|
|
3
|
+
Legacy extraction runs over many sessions on a system that keeps changing. Two habits keep it
|
|
4
|
+
bounded and honest: come back by recorded source identity instead of rereading everything, and
|
|
5
|
+
widen the candidate in layers instead of producing one huge shallow-everywhere model. Both live in
|
|
6
|
+
`EVIDENCE.md` (`evidence-table-template.md`) and sit beside the evidence stages L0-L4: L0-L4 say
|
|
7
|
+
*how strong* the evidence is, passes say *how much of the system* is in scope.
|
|
8
|
+
|
|
9
|
+
## 1. Re-entry (first step of every run after the first)
|
|
10
|
+
|
|
11
|
+
Reuse the source identity defined in `cratis-screenplay-modeling-lifecycle`
|
|
12
|
+
(`references/verdicts-and-modes.md`, "Source identity"): the commit plus the digest of the examined
|
|
13
|
+
inputs. Do not invent a second definition. Git is used read-only: `git -C <legacy-repo>` queries
|
|
14
|
+
only, never a checkout, reset or stash, and never in the live checkout when the brief forbids
|
|
15
|
+
touching it.
|
|
16
|
+
|
|
17
|
+
Per feature, take the identity from the last row of its analysis history (evidence template,
|
|
18
|
+
section "Analysis history"), then:
|
|
19
|
+
|
|
20
|
+
1. `git -C <repo> merge-base --is-ancestor <commit> HEAD` : is the recorded commit still an ancestor?
|
|
21
|
+
2. `git -C <repo> log --reverse --oneline <commit>..HEAD -- <feature folders>` : what touched the
|
|
22
|
+
feature since, oldest first. The folders come from the feature's "Where each feature lives"
|
|
23
|
+
table (evidence template, section 6).
|
|
24
|
+
3. `git -C <repo> status --porcelain -- <feature folders>` : uncommitted changes count too.
|
|
25
|
+
|
|
26
|
+
Then decide per feature:
|
|
27
|
+
|
|
28
|
+
| Finding | Action |
|
|
29
|
+
|---|---|
|
|
30
|
+
| Nothing touched the feature folders | Leave the feature alone. Say "unchanged since the recorded identity". |
|
|
31
|
+
| Files changed | Reread only those files. Refresh the `path:start-end` locators that point into them. Mark every evidence row whose locator moved or vanished `stale` until reread, then update or retire it. Re-apply the decisions that depended on those rows and ask about what the diff cannot explain. |
|
|
32
|
+
| Files changed outside every feature's folders | Candidates for a new feature or a missing "Where each feature lives" entry. Ask before adding. |
|
|
33
|
+
| Commit no longer reachable (rewritten history), no git at all, or the recorded identity was dirty | Reread that feature in full (for a dirty identity, at least the files the diff names plus the files that were dirty then). Say so in the history row. |
|
|
34
|
+
|
|
35
|
+
Every run appends a row to each feature's analysis history, also when nothing changed (format and
|
|
36
|
+
rules: evidence template, section 7).
|
|
37
|
+
|
|
38
|
+
### Freeze verification
|
|
39
|
+
|
|
40
|
+
When the interview recorded a freeze agreement, the same commands over the legacy repository
|
|
41
|
+
*check* it: any behavior change since the recorded identity is reported against the freeze boundary
|
|
42
|
+
(`interview-findings.md`) before more evidence is gathered. A broken freeze makes the candidate
|
|
43
|
+
stale for the affected features; it never silently passes. A documentation-only extraction that
|
|
44
|
+
recorded "freeze not applicable" skips this.
|
|
45
|
+
|
|
46
|
+
### Relation to the model
|
|
47
|
+
|
|
48
|
+
Re-entry refreshes *evidence*. It never edits an accepted model on its own: a changed behavior that
|
|
49
|
+
affects an accepted model is a model edit request through the modeler, review and acceptance
|
|
50
|
+
(`cratis-screenplay-modeling-lifecycle`). Evidence for a model that does not exist yet is the only
|
|
51
|
+
place where "update the candidate to match what was reread" is the default.
|
|
52
|
+
|
|
53
|
+
## 2. Breadth first, then one feature per pass
|
|
54
|
+
|
|
55
|
+
| Pass | Scope | Contents |
|
|
56
|
+
|---|---|---|
|
|
57
|
+
| 0 | whole system | Modules and features only, one feature per user journey, with the milestone events in story order. No properties, no specifications. Each ordering claim names its source. |
|
|
58
|
+
| 1 | one feature | Slices with identity and the business-critical properties, the success specification, the one or two rules that matter, screens only where a person decides. |
|
|
59
|
+
| 2 and later | the same feature | Full properties, rejection and denial specifications from code and tests, reactions, translations, alternate paths. |
|
|
60
|
+
|
|
61
|
+
"Deeper" means more business: decisions, rules, failure modes. It never means more technical detail.
|
|
62
|
+
Every pass still cites evidence; passes widen the scope, they do not relax the evidence rules.
|
|
63
|
+
|
|
64
|
+
Grouping rule: code is split by operation (create, find, show and update endpoints); a feature is
|
|
65
|
+
the journey that uses them, so register, find, view and update of one thing are one feature. When in
|
|
66
|
+
doubt, merge. A pass that finds sub-journeys offers them as new features instead of growing the
|
|
67
|
+
current one.
|
|
68
|
+
|
|
69
|
+
Pass 0 order: ask which feature to deepen next. Unattended, choose by risk and available evidence,
|
|
70
|
+
and say that you chose. Features still at Pass 0 go to the loss report's "Not yet extracted"
|
|
71
|
+
section (`loss-report-template.md`); a partial candidate may go to review with them listed.
|
|
72
|
+
|
|
73
|
+
End every pass with: what changed, the sub-journeys found, the open questions, and the choice
|
|
74
|
+
"which feature next, deeper here, or stop".
|
|
75
|
+
|
|
76
|
+
A Pass 0 skeleton compiles as a normal candidate:
|
|
77
|
+
|
|
78
|
+
```screenplay
|
|
79
|
+
domain Clinic.Visits
|
|
80
|
+
|
|
81
|
+
module Visits
|
|
82
|
+
description "Pass 0 skeleton. Lives in: src/Visits (API), db/visits (schema). Evidence: E1, E2"
|
|
83
|
+
feature BookingAVisit
|
|
84
|
+
description "Story: PetRegistered, then VisitBooked, then VisitCompleted or VisitCancelled. Order source: UI walk E2, confirmed by the clinic expert; VisitCancelled after VisitBooked is assumed (Q3). Not yet extracted: properties, rules, specifications"
|
|
85
|
+
slice StateChange BookVisit
|
|
86
|
+
description "Pass 0. Evidence: E1"
|
|
87
|
+
command BookVisit
|
|
88
|
+
produces event VisitBooked
|
|
89
|
+
```
|
package/package/corpus/skills/cratis-screenplay-legacy-extraction/references/rule-modeling.md
CHANGED
|
@@ -34,3 +34,12 @@ when no constraint form fits, and record that as a loss. Purely technical keys s
|
|
|
34
34
|
- Never PII on the event-source id; one data subject per event or stream.
|
|
35
35
|
- Tokens, magic links and signed URLs are not facts (a keyed hash or reference at most).
|
|
36
36
|
- Do not store clock-relative state (`IsOverdue`) in views; store the deadline.
|
|
37
|
+
|
|
38
|
+
## Personal data and secrets
|
|
39
|
+
Preserve the protection found in code with `pii` and `secret` and evidenced secret scope. Arc
|
|
40
|
+
recovery losses (SP0061-SP0063) need review (`generate-notes.md`). Deprecated marker repairs keep
|
|
41
|
+
legal notes intact and never guess a purpose or basis. Derive purpose, use and retention
|
|
42
|
+
declarations only from evidence or expert decisions; run `--check purposes` and read the processing
|
|
43
|
+
record as prompts, not a legal verdict. Keep hand-joined legacy ids scalar and never infer composite
|
|
44
|
+
parts by splitting text. Event `subject` is report-only; distinguish observed lineage from runtime
|
|
45
|
+
realization. See command-surface `references/compliance.md`.
|
package/package/corpus/skills/cratis-screenplay-legacy-extraction/references/signal-to-intent.md
CHANGED
|
@@ -22,13 +22,35 @@ who decided it?* If nobody can answer, classify the row `unknown` and ask.
|
|
|
22
22
|
| Status/enum column changes | a lifecycle; each transition is a candidate event | one `StatusChanged` event | one event per meaningful transition |
|
|
23
23
|
| Write with no user command | job, trigger, stored procedure, integration, manual fix | assumed to be an automation | classify: maintenance / correction / integration / scheduled business process (trigger evidenced) / unexplained |
|
|
24
24
|
| Inbound integration write (feed, webhook, file import) | an outside fact entering the system | modeled as our own decision | Translate candidate with correlation and dedup (cratis-screenplay-automations-and-translations) |
|
|
25
|
-
| Outbound call after a write (mail, payment, partner API) | a side effect of a decision | an event per call | reaction candidate; note what "once" must mean |
|
|
25
|
+
| Outbound call after a write (mail, payment, partner API) | a side effect of a decision | an event per call, or the outcome never recorded | reaction candidate; note what "once" must mean. When the business must know the result (sent, failed, refused), that outcome is a fact recorded by the command the reaction invokes (cratis-screenplay-automations-and-translations) |
|
|
26
|
+
| Table read but never written by this system | reference data owned elsewhere | an invented event that "loads" it | ask where it comes from and who maintains it; a Translate candidate or a `seed`, never a made-up event |
|
|
27
|
+
| Generic engine (template- or schema-driven records, EAV tables, configurable workflow definitions) | infrastructure that serves several real cases | modeling the engine (`Entity`, `Attribute`, `Value`) | model the real cases it is configured for as named events with real properties; configuration rows are evidence (`doc` or config locator) |
|
|
28
|
+
| Sequence between steps | code rarely shows order | an order guessed from file or method order | take it from the UI click path, a document or an expert; record the source in the feature `description` story line; an unconfirmed order is an assumption with a question |
|
|
26
29
|
| Health, simulation, test or admin routes | infrastructure or tooling | become domain modules | exclude, list in the loss report |
|
|
27
30
|
| Custom span or handler named for an operation (`TakeInCoat`) | the best available intent signal | ignored in favour of route names | prefer it for command names |
|
|
28
31
|
| Concrete ids or codes in paths (`/coats/T-551/handback`) | identifiers leaked into names | `T551` module or slice | normalise to route templates; allowlist `http.route` |
|
|
29
32
|
| Computed value stored (price, score, total) | a calculation | dropped as "derived" | keep as a fact when it matters historically (a quoted price); otherwise a projection |
|
|
30
33
|
| Soft delete flag | cancellation, archiving, or GDPR erasure | `XDeleted` | name the business reason; erasure is a PII question |
|
|
31
34
|
|
|
35
|
+
## Tests
|
|
36
|
+
Tests are often the densest statement of rules and messages in a legacy code base, and the
|
|
37
|
+
likeliest to encode accidental behavior. They are hypotheses at `Read` strength, with
|
|
38
|
+
classification kept separate and the expert verdict still required.
|
|
39
|
+
|
|
40
|
+
| Signal in a test | Default reading | Do this |
|
|
41
|
+
|---|---|---|
|
|
42
|
+
| Test or fixture names | business vocabulary | candidate event and command names, still `proposed` |
|
|
43
|
+
| Failing-path test with an asserted message | a rule with its exact message | `validate` or `require` plus `then error` with that message |
|
|
44
|
+
| Role or permission test | an authorization gate | `authorize` plus a `then denied` specification |
|
|
45
|
+
| Fixture data | realistic example shapes | shapes for specification values; invent values when fixtures hold personal data |
|
|
46
|
+
| Assert-only trivial input check (format, required) | a value rule | a concept `validate`, not one specification per case |
|
|
47
|
+
| Test of removed behavior, or a test with no production caller | unclear | an `unknown` row and a question; never modeled |
|
|
48
|
+
|
|
49
|
+
Arrange, act and assert is a hint, not the shape of a scenario. Repository seeding, mocks and setup
|
|
50
|
+
calls are never `given` events; derive `given` from the prior facts the rule depends on
|
|
51
|
+
(`cratis-screenplay-scenario-coverage`). Reading tests is allowed; running them stays
|
|
52
|
+
approval-gated.
|
|
53
|
+
|
|
32
54
|
## Generator facts (static evidence)
|
|
33
55
|
- Exact or Configured evidence (bound symbols, attributes, registrations) is strong for
|
|
34
56
|
*structure*: command and event types, properties, validators, authorization, constraints.
|
|
@@ -55,3 +77,8 @@ who decided it?* If nobody can answer, classify the row `unknown` and ask.
|
|
|
55
77
|
## Read models
|
|
56
78
|
Source read models from screens, exports and real query usage (code, UI walk), not from table
|
|
57
79
|
mirrors (`All{Table}s`). Prologue never sees reads.
|
|
80
|
+
|
|
81
|
+
## Realization convention
|
|
82
|
+
Once a few features are evidenced, record how this system realizes each kind of behavior
|
|
83
|
+
(`evidence-table-template.md` section 10) and check later passes against it; deviations are
|
|
84
|
+
questions.
|
package/package/corpus/skills/cratis-screenplay-legacy-extraction/references/ui-observation.md
CHANGED
|
@@ -10,6 +10,10 @@ discover-storyboard (see provenance), with the board and HTML-reconstruction ste
|
|
|
10
10
|
plan uses. No tools or no access blocks only this evidence source: say so in one message
|
|
11
11
|
(what is missing, which source it blocks), record the gap and continue with source,
|
|
12
12
|
document and expert evidence. Never install tools to fill the gap.
|
|
13
|
+
- **Never a gate.** Ask once at the start whether a running instance and a test account exist,
|
|
14
|
+
then carry on with static evidence. Until the answer arrives, record "running instance: not
|
|
15
|
+
answered yet". When access arrives later, the walk confirms or corrects the order and screens
|
|
16
|
+
already derived from the code.
|
|
13
17
|
- **Discovery parameters.** Reuse answers already in the brief. Ask only for what is missing,
|
|
14
18
|
in two questions at most:
|
|
15
19
|
1. "What URL should I open to start?" (start URL, actor or role, permitted environment)
|
|
@@ -37,3 +37,8 @@ This skill also adapts material from agentic-engineer by Martin Dilger and Nebul
|
|
|
37
37
|
(https://github.com/Nebulit-GmbH/agentic-engineer, commit 07b0f30648d663cb588d7e2c7aa031af9dfc21f2;
|
|
38
38
|
https://nebulit.de), used with the explicit consent of Martin Dilger and Nebulit GmbH. The adapted
|
|
39
39
|
material remains credited to Martin Dilger and Nebulit GmbH.
|
|
40
|
+
|
|
41
|
+
This skill also adapts material from the Eventmodelers Build-Kits skills by Martin Dilger and
|
|
42
|
+
Nebulit GmbH (https://github.com/Nebulit-GmbH/Eventmodelers-Build-Kits; https://nebulit.de), used
|
|
43
|
+
with the explicit consent of Martin Dilger and Nebulit GmbH. The adapted material remains credited
|
|
44
|
+
to Martin Dilger and Nebulit GmbH.
|
|
@@ -156,6 +156,10 @@ intentional; judge the rest against the slice title. End with a 2-4 sentence sum
|
|
|
156
156
|
most important gap or risk, one concrete suggestion). For an extracted candidate (`cratis-screenplay-legacy-extraction`) also check R9:
|
|
157
157
|
every candidate has an accepted, corrected or rejected state and its evidence.
|
|
158
158
|
|
|
159
|
+
Optional, on request: one subject's information journey (`references/model-inventory-report.md`)
|
|
160
|
+
and a resilience pass over business-critical scope, after the critic review and before
|
|
161
|
+
acceptance (`references/stressor-analysis.md`). Both are read-only and yield edit requests.
|
|
162
|
+
|
|
159
163
|
## Quick self-check (modeler, P4; about ten minutes)
|
|
160
164
|
1. V1 clean with warnings as errors (folder), and V3 when executable or renderable.
|
|
161
165
|
2. No PLAY0029 ever (a dropped construct); no unresolved-name warnings.
|
|
@@ -242,6 +246,7 @@ verdict follows the rules in `references/report-template.md`.
|
|
|
242
246
|
- Read `references/worked-example.md` when an example of the sweep, lineage or report is needed, or when checking the complete examples: seeded model, filled report, fixed model.
|
|
243
247
|
- Read `references/review-questions.md` when gathering evidence for subject-specific checks or distinguishing facts from views; it contains questions per subject and domain examples.
|
|
244
248
|
- Read `references/model-inventory-report.md` when asked for a read-only inventory of an existing model.
|
|
249
|
+
- Read `references/stressor-analysis.md` for the optional resilience pass: wide stressors, residues, an incidence matrix and edit requests; run on request or for business-critical scope.
|
|
245
250
|
- Read `references/business-questions.md` when conducting the business-question pass; it contains the explainer journey method, prompts and word translation.
|
|
246
251
|
|
|
247
252
|
## Lineage
|
|
@@ -192,7 +192,7 @@ artifact is `N/A: <reason>`.
|
|
|
192
192
|
|
|
193
193
|
| Id | Check (the rejected pattern) | Signal to look for | Severity |
|
|
194
194
|
|---|---|---|---|
|
|
195
|
-
| R1 | Code-first change that silently outranks accepted model intent | behaviour added in code with no `.play` counterpart; the model edited to match existing code; the model left stale after a code change; optional structural evidence: `cratis screenplay conform <model-root> --project <path>` (CLI 3.42.0+, exit 0/1/2, exact structural addresses only, never a behavioral or V4 verdict; MSBuild runs, so a trusted clone) | major (critical when the code contradicts a protection) |
|
|
195
|
+
| R1 | Code-first change that silently outranks accepted model intent | behaviour added in code with no `.play` counterpart (for hand-written code changed since it was last checked, use `cratis-screenplay-render-and-gap-fill/references/drift-and-fallback-record.md`, section "Hand-written code changed since it was last verified"); the model edited to match existing code; the model left stale after a code change; optional structural evidence: `cratis screenplay conform <model-root> --project <path>` (CLI 3.42.0+, exit 0/1/2, exact structural addresses only, never a behavioral or V4 verdict; MSBuild runs, so a trusted clone) | major (critical when the code contradicts a protection) |
|
|
196
196
|
| R2 | A diagram, board or document in place of executable semantics | a rule only in a board note, a description or a wiki page; no property, validation, constraint or spec behind it (E8) | major |
|
|
197
197
|
| R3 | Claims of universal low-code, lossless recovery or target parity | words like "fully generated", "lossless", "any target" in a report or description | minor; major when it hides a gap |
|
|
198
198
|
| R4 | Framework machinery in the domain vocabulary (saga, aggregate, passive objects, HTTP or broker detail) or syntax wanted because a framework API is common | declarations named after saga, handler classes, topics, endpoints; a request to add language syntax to mirror a framework API | minor; major when it shapes the model |
|