@cratis/pi 7.49.0 → 7.50.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (86) hide show
  1. package/package/corpus/agents/screenplay-modeler.md +5 -2
  2. package/package/corpus/agents/screenplay-reviewer.md +1 -0
  3. package/package/corpus/harnesses/copilot/instructions/react.instructions.md +1 -0
  4. package/package/corpus/hooks/README.md +23 -0
  5. package/package/corpus/hooks/scripts/cratis-pattern-scan.sh +1 -1
  6. package/package/corpus/hooks/scripts/cratis-patterns.json +8 -0
  7. package/package/corpus/hooks/scripts/cratis-quality-gate.sh +6 -0
  8. package/package/corpus/hooks/scripts/cratis-slice-scope-report.sh +54 -0
  9. package/package/corpus/rules/react.md +1 -0
  10. package/package/corpus/skills/cratis-application-slice-conformance/references/build-prompts.md +9 -1
  11. package/package/corpus/skills/cratis-application-slice-conformance/references/checklists.md +4 -1
  12. package/package/corpus/skills/cratis-application-slice-conformance/references/provenance.md +3 -0
  13. package/package/corpus/skills/cratis-application-slice-specifications/LICENSE +4 -0
  14. package/package/corpus/skills/cratis-application-slice-specifications/references/provenance.md +9 -0
  15. package/package/corpus/skills/cratis-application-slice-specifications/references/query-and-decision-scenarios.md +8 -0
  16. package/package/corpus/skills/cratis-arc-react-page/LICENSE +4 -0
  17. package/package/corpus/skills/cratis-arc-react-page/references/from-screenplay.md +6 -0
  18. package/package/corpus/skills/cratis-arc-react-page/references/provenance.md +9 -0
  19. package/package/corpus/skills/cratis-chronicle-event-modeling/SKILL.md +12 -1
  20. package/package/corpus/skills/cratis-chronicle-reactor/LICENSE +4 -0
  21. package/package/corpus/skills/cratis-chronicle-reactor/references/provenance.md +10 -0
  22. package/package/corpus/skills/cratis-chronicle-reactor/references/slice-delivery-checklist.md +33 -0
  23. package/package/corpus/skills/cratis-chronicle-reactor/references/specifications.md +17 -1
  24. package/package/corpus/skills/cratis-event-model-diagram/LICENSE +5 -0
  25. package/package/corpus/skills/cratis-event-model-diagram/SKILL.md +6 -1
  26. package/package/corpus/skills/cratis-event-model-diagram/references/provenance.md +9 -0
  27. package/package/corpus/skills/cratis-screenplay-automations-and-translations/LICENSE +5 -0
  28. package/package/corpus/skills/cratis-screenplay-automations-and-translations/SKILL.md +2 -2
  29. package/package/corpus/skills/cratis-screenplay-automations-and-translations/references/automation-patterns.md +24 -0
  30. package/package/corpus/skills/cratis-screenplay-automations-and-translations/references/integration-contracts.md +19 -0
  31. package/package/corpus/skills/cratis-screenplay-automations-and-translations/references/provenance.md +10 -0
  32. package/package/corpus/skills/cratis-screenplay-automations-and-translations/references/realization-and-gap-fill.md +1 -1
  33. package/package/corpus/skills/cratis-screenplay-discovery/SKILL.md +10 -12
  34. package/package/corpus/skills/cratis-screenplay-discovery/references/divergent-sweep.md +9 -0
  35. package/package/corpus/skills/cratis-screenplay-discovery/references/document-intake.md +123 -0
  36. package/package/corpus/skills/cratis-screenplay-discovery/references/domain-analysis-template.md +1 -12
  37. package/package/corpus/skills/cratis-screenplay-discovery/references/event-naming.md +49 -0
  38. package/package/corpus/skills/cratis-screenplay-discovery/references/facilitation.md +2 -0
  39. package/package/corpus/skills/cratis-screenplay-discovery/references/human-workshop.md +26 -1
  40. package/package/corpus/skills/cratis-screenplay-discovery/references/plotting-and-handoff.md +17 -0
  41. package/package/corpus/skills/cratis-screenplay-discovery/references/provenance.md +5 -1
  42. package/package/corpus/skills/cratis-screenplay-event-modeling/references/nine-steps.md +7 -3
  43. package/package/corpus/skills/cratis-screenplay-event-modeling/references/provenance.md +2 -0
  44. package/package/corpus/skills/cratis-screenplay-legacy-extraction/SKILL.md +50 -79
  45. package/package/corpus/skills/cratis-screenplay-legacy-extraction/references/evidence-table-template.md +39 -4
  46. package/package/corpus/skills/cratis-screenplay-legacy-extraction/references/expert-verification.md +15 -1
  47. package/package/corpus/skills/cratis-screenplay-legacy-extraction/references/intent-example.md +31 -7
  48. package/package/corpus/skills/cratis-screenplay-legacy-extraction/references/interview-findings.md +8 -2
  49. package/package/corpus/skills/cratis-screenplay-legacy-extraction/references/loss-report-template.md +4 -0
  50. package/package/corpus/skills/cratis-screenplay-legacy-extraction/references/provenance.md +8 -2
  51. package/package/corpus/skills/cratis-screenplay-legacy-extraction/references/re-entry-and-passes.md +102 -3
  52. package/package/corpus/skills/cratis-screenplay-legacy-extraction/references/side-car-migration.md +3 -1
  53. package/package/corpus/skills/cratis-screenplay-legacy-extraction/references/signal-to-intent.md +29 -0
  54. package/package/corpus/skills/cratis-screenplay-legacy-extraction/references/ui-observation.md +2 -1
  55. package/package/corpus/skills/cratis-screenplay-legacy-extraction/references/verified-sources.md +20 -0
  56. package/package/corpus/skills/cratis-screenplay-model-review/SKILL.md +27 -54
  57. package/package/corpus/skills/cratis-screenplay-model-review/references/baseline-comparison.md +9 -0
  58. package/package/corpus/skills/cratis-screenplay-model-review/references/business-questions.md +6 -1
  59. package/package/corpus/skills/cratis-screenplay-model-review/references/checklist.md +1 -1
  60. package/package/corpus/skills/cratis-screenplay-model-review/references/mode-compliance.md +5 -0
  61. package/package/corpus/skills/cratis-screenplay-model-review/references/model-inventory-report.md +48 -11
  62. package/package/corpus/skills/cratis-screenplay-model-review/references/provenance.md +5 -2
  63. package/package/corpus/skills/cratis-screenplay-model-review/references/quick-self-check.md +20 -0
  64. package/package/corpus/skills/cratis-screenplay-model-review/references/stressor-analysis.md +22 -10
  65. package/package/corpus/skills/cratis-screenplay-model-review/references/verified-sources.md +15 -0
  66. package/package/corpus/skills/cratis-screenplay-model-review/references/walkthrough.md +135 -0
  67. package/package/corpus/skills/cratis-screenplay-modeling-lifecycle/LICENSE +5 -0
  68. package/package/corpus/skills/cratis-screenplay-modeling-lifecycle/references/core-rules-digest.md +7 -0
  69. package/package/corpus/skills/cratis-screenplay-modeling-lifecycle/references/per-turn-protocol.md +6 -2
  70. package/package/corpus/skills/cratis-screenplay-modeling-lifecycle/references/phases.md +16 -1
  71. package/package/corpus/skills/cratis-screenplay-modeling-lifecycle/references/provenance.md +21 -0
  72. package/package/corpus/skills/cratis-screenplay-render-and-gap-fill/SKILL.md +1 -0
  73. package/package/corpus/skills/cratis-screenplay-render-and-gap-fill/references/drift-and-fallback-record.md +7 -30
  74. package/package/corpus/skills/cratis-screenplay-render-and-gap-fill/references/hand-written-changes.md +150 -0
  75. package/package/corpus/skills/cratis-screenplay-render-and-gap-fill/references/provenance.md +2 -2
  76. package/package/corpus/skills/cratis-screenplay-scenario-coverage/references/provenance.md +1 -0
  77. package/package/corpus/skills/cratis-screenplay-scenario-coverage/references/scenario-catalogue.md +17 -0
  78. package/package/corpus/skills/cratis-screenplay-slice-design/references/command-inventory.md +6 -0
  79. package/package/corpus/skills/cratis-screenplay-slice-design/references/field-lineage.md +9 -1
  80. package/package/corpus/skills/cratis-screenplay-slice-design/references/provenance.md +6 -0
  81. package/package/corpus/skills/cratis-screenplay-slice-design/references/read-model-design.md +23 -6
  82. package/package/corpus/skills/cratis-screenplay-slice-design/references/review-questions.md +4 -0
  83. package/package/corpus/skills/cratis-screenplay-slice-design/references/slicing.md +69 -0
  84. package/package/corpus/skills/cratis-screenplay-slice-design/references/worked-example.md +4 -1
  85. package/package/corpus/skills/cratis-screenplay-toolchain/references/screenplay-contract-exceptions.json +0 -7
  86. package/package.json +1 -1
@@ -28,7 +28,10 @@ You author and change the `.play` model, the source of truth for behavior. Code
28
28
 
29
29
  ## Method
30
30
 
31
- - Load `cratis-screenplay-modeling-lifecycle`, then exactly one phase skill per step: discovery, slice design, streams and consistency, automations and translations, scenario coverage. A legacy system enters through `cratis-screenplay-legacy-extraction` instead of discovery and modeling; later runs re-enter by recorded source identity and widen the candidate in layered passes (`references/re-entry-and-passes.md` there). Syntax, versions and verdict commands: `cratis-screenplay-toolchain`. Load the phase skill before authoring a construct family.
31
+ - Load `cratis-screenplay-modeling-lifecycle`, then exactly one phase skill per step: discovery, slice design, streams and consistency, automations and translations, scenario coverage. A legacy system enters through `cratis-screenplay-legacy-extraction` instead of discovery and modeling; later runs re-enter by recorded source identity, widen the candidate in layered passes, and promote locators, decisions and open questions into notes and `documentation` before acceptance (`references/re-entry-and-passes.md` there). Syntax, versions and verdict commands: `cratis-screenplay-toolchain`. Load the phase skill before authoring a construct family.
32
+ - For a change to an existing model, start from an impact walkthrough (`cratis-screenplay-model-review` `references/walkthrough.md`) so the brief names every affected slice.
33
+ - Write declarations in story order, one slice after another, never batched by kind. After each batch read `PLAY0516` and `PLAY0517` and repair, or record why the order stays (`cratis-screenplay-slice-design` `references/slicing.md`).
34
+ - Slices under delivery: where a delivery plan exists (`cratis-screenplay-delivery-planning`), a slice that is `in progress`, `blocked` or `done` is read-only unless the request names it; naming it approves exactly those declarations. Do the rest of the request, return an edit request naming the slice, its status and the intended change, and open the report with that part as NOT done. Changing a `done` slice reopens its delivery: tell the plan owner (`cratis-screenplay-modeling-lifecycle` `references/phases.md`).
32
35
  - First line of every reply: `Outcome: done | partial (...) | blocked (Qn) | out-of-scope (why)`, then the mode, the model root and the source identity. The handoff packet carries exactly one `Outcome:` line and five verdict lines (`not run: <reason>` counts, a missing line does not).
33
36
  - Stance: keep moving, assume visibly, record each assumption against a declaration address; switch to critic stance for the self-check (P4) and never mix them in one pass. Ask the one question that changes the model most when attended.
34
37
  - Never shrink the model, and never remove authorization, `pii` or rules to pass a tool or save effort; report a capability gap instead. A decided rejection is a specification (`then denied`, `then error`), never a note.
@@ -63,4 +66,4 @@ Write `.ai-work/screenplay/<model-slug>/STATE.md` (overwrite, untracked) only wh
63
66
 
64
67
  ## Lineage
65
68
 
66
- The per-run protocol and the corner-cutting self-check (both by pointer to the lifecycle skill) adapt agentic-engineer by Martin Dilger and Nebulit GmbH (https://github.com/Nebulit-GmbH/agentic-engineer, commit `07b0f30648d663cb588d7e2c7aa031af9dfc21f2`; https://nebulit.de), used with their explicit consent.
69
+ The per-run protocol and the corner-cutting self-check (both by pointer to the lifecycle skill) adapt agentic-engineer by Martin Dilger and Nebulit GmbH (https://github.com/Nebulit-GmbH/agentic-engineer and https://github.com/Nebulit-GmbH/Eventmodelers-Build-Kits, the latter for the impact walkthrough, story order and slices-under-delivery rules; commit `07b0f30648d663cb588d7e2c7aa031af9dfc21f2`; https://nebulit.de), used with their explicit consent.
@@ -27,6 +27,7 @@ If `cratis-screenplay-model-review` is not installed, say that the `cratis/scree
27
27
  The brief selects one; `critic` is the default.
28
28
 
29
29
  - **critic**: load `cratis-screenplay-modeling-lifecycle` (modes, verdicts, principles), then `cratis-screenplay-model-review` and apply its checklist, element sweep and entity walk. Strict stance, report first. Pin every finding to a named declaration with severity, tier (compiler contract, modeling default, review question), consequence and fix. Never invent findings; zero is valid.
30
+ - **walkthrough**: an explain or impact walkthrough, slice by slice (`cratis-screenplay-model-review` `references/walkthrough.md`). Read-only, no findings.
30
31
  - **explain**: the business-question pass of the same skill. Plain language, anchored to declaration addresses, at most 12 questions, zero is valid. Questions only; no fixes.
31
32
 
32
33
  ## Business-question lens
@@ -190,6 +190,7 @@ Top-level provider for microservice name and API base path. Config props (with d
190
190
  - Single responsibility — if you write a `// Section` comment inside a component, that section is its own component. Parent owns state; children receive props.
191
191
  - Single-file component → in the slice folder; multi-file → a folder named after the component with an `index.ts` re-export.
192
192
  - A `.tsx` belongs in the slice folder it implements — never one level up. A feature's pass-through layout renders only `<Outlet />`.
193
+ - **Composition point and slice isolation.** A page is the one place that composes slices, through their exported components; slice internals never import another slice's internals; identity, tenant and theme providers belong to the application; deleting a slice folder and its page registration removes the feature. Detail: the `cratis-arc-react-page` skill, `references/from-screenplay.md`.
193
194
 
194
195
  ## Styling default
195
196
 
@@ -252,6 +252,29 @@ The two `within_type_attribute` patterns are not line greps — the scanner trac
252
252
  blocks and type scope (positional record, multi-line declaration, or braced body), so a nullable
253
253
  property is only reported when it really sits inside an `[EventType]`.
254
254
 
255
+ ### Advisory slice scope and migration review
256
+
257
+ The quality gate calls `scripts/cratis-slice-scope-report.sh` with its changed paths on stdin.
258
+ It recognizes only `Source/<Module>/<Feature>/<Slice>/<Slice>.cs` carrying a model-bound
259
+ `[Command]` or `[ReadModel]` attribute. For each recognized slice it lists changed paths outside
260
+ that folder as **seam or out of scope**; use that list for the delivery record's shared seams.
261
+ For a changed anchor it notes a missing `when_*` specification under the slice. It does not
262
+ judge whether a seam is authorized or whether existing specifications cover the contract.
263
+ Unrecognized layouts are skipped silently; report failures never fail or bypass the real gates.
264
+ The output is advisory in normal and dry-run modes, never verification evidence.
265
+
266
+ The PostToolUse `cratis-append-only-migration` reminder likewise only asks for review of
267
+ `Source/**/Migrations/*.cs` carrying `[Migration(`, excluding model snapshots. It cannot tell
268
+ whether a migration is committed or applied, so it never blocks a legitimate uncommitted edit.
269
+ Read `cratis-arc-ef-core-migration` for migration generation and application.
270
+
271
+ The slice-scope and specification-presence report takes the idea of node Build-Kits
272
+ `check-commit-scope` checks, with original wording. The migration reminder is copied and
273
+ translated from classic `build-state-change` and node `append-only-migrations` to EF Core.
274
+ Both credit Martin Dilger and Nebulit GmbH's
275
+ [Eventmodelers Build-Kits](https://github.com/Nebulit-GmbH/Eventmodelers-Build-Kits), used with
276
+ their explicit consent. Slice-only scope checks do not replace the repository's completion gate.
277
+
255
278
  ### Project-specific gate configuration
256
279
 
257
280
  The shipped gates discover the repository's own solution and package, so most repositories need no
@@ -188,7 +188,7 @@ EOF
188
188
 
189
189
  context="Cratis rule check on the file you just edited (deterministic pattern pass, not a build):
190
190
  ${findings}
191
- These are framework contracts from .cratis/ai/rules/general.md. Fix them now rather than at the quality gate."
191
+ Framework-contract reminders come from .cratis/ai/rules/general.md: fix them now rather than at the quality gate. Reminders explicitly marked advisory require review only; they are not gate failures."
192
192
 
193
193
  jq -n --arg ctx "$context" '{
194
194
  systemMessage: "cratis-hooks: rule reminder appended to context",
@@ -27,6 +27,14 @@
27
27
  "re-scopes the \"paths\" globs there instead."
28
28
  ],
29
29
  "patterns": [
30
+ {
31
+ "id": "cratis-append-only-migration",
32
+ "rule": "cratis-arc-ef-core-migration — Write the migration",
33
+ "pattern": "\\[Migration[[:space:]]*\\(",
34
+ "paths": ["Source/**/Migrations/*.cs"],
35
+ "exclude_paths": ["**/*ModelSnapshot.cs", "**/obj/**", "**/bin/**"],
36
+ "message": "Migration review (advisory): if this migration is committed or applied anywhere, correct it with a new migration (`dotnet ef migrations add`), not an edit. An unapplied, uncommitted migration may be removed (`dotnet ef migrations remove`) and regenerated. This scan does not determine commit or database state."
37
+ },
30
38
  {
31
39
  "id": "cratis-automap-call",
32
40
  "rule": "general.md rule 10 [contract]",
@@ -97,6 +97,12 @@ changed="$(
97
97
  )"
98
98
  [ -n "$changed" ] || exit 0
99
99
 
100
+ # Scope hints are advisory, never product verification or a gate failure.
101
+ if [ -f "$here/cratis-slice-scope-report.sh" ]; then
102
+ printf '%s\n' "$changed" | bash "$here/cratis-slice-scope-report.sh" "$root" ||
103
+ printf 'cratis-quality-gate: ADVISORY slice scope report unavailable; gates continue unchanged.\n' >&2
104
+ fi
105
+
100
106
  # ── Project discovery ────────────────────────────────────────────────────────
101
107
  # A gate names *what kind of project* it builds, never a product's file. The repository's
102
108
  # own solution or package is discovered here, so the shipped gates activate unchanged in an
@@ -0,0 +1,54 @@
1
+ #!/usr/bin/env bash
2
+ # Copyright (c) Cratis. All rights reserved.
3
+ # Licensed under the MIT license. See LICENSE file in the project root for full license information.
4
+ # Advisory only: read repo-relative changed paths on stdin, report conventional application slices.
5
+ # Usage: bash cratis-slice-scope-report.sh <repository-root>
6
+ set -euo pipefail
7
+
8
+ root="$1"
9
+ changed="$(cat)"
10
+ [ -n "$changed" ] || exit 0
11
+
12
+ # Require a same-name, model-bound C# anchor; a four-segment directory alone proves no slice.
13
+ # Unrecognized layouts stay silent rather than guessing a feature root or a framework profile.
14
+ candidates="$(printf '%s\n' "$changed" | awk -F/ '
15
+ $1 == "Source" && NF >= 5 && $2 != "" && $3 != "" && $4 != "" {
16
+ path = $1 "/" $2 "/" $3 "/" $4
17
+ if (!seen[path]++) print path
18
+ }
19
+ ')"
20
+ [ -n "$candidates" ] || exit 0
21
+ paths="$(git -C "$root" ls-files && git -C "$root" ls-files --others --exclude-standard)"
22
+ while IFS= read -r slice; do
23
+ anchor="$slice/${slice##*/}.cs"
24
+ [ -f "$root/$anchor" ] || continue
25
+ LC_ALL=C grep -Eq '^[[:space:]]*\[(Command|ReadModel)(Attribute)?([[:space:]]*\(|[[:space:]]*\])' "$root/$anchor" || continue
26
+ printf 'cratis-quality-gate: ADVISORY slice scope %s\n' "$slice" >&2
27
+ while IFS= read -r path; do
28
+ case "$path" in
29
+ "$slice"/*) ;;
30
+ *) printf ' seam or out of scope: %s\n' "$path" >&2 ;;
31
+ esac
32
+ done <<EOF
33
+ $changed
34
+ EOF
35
+ if printf '%s\n' "$changed" | LC_ALL=C grep -Fxq "$anchor"; then
36
+ spec_paths="$(printf '%s\n' "$paths" | CRATIS_SLICE="$slice/" awk '
37
+ index($0, ENVIRON["CRATIS_SLICE"]) == 1 && /\/when_[^\/]+(\/|\.cs$)/ { print }
38
+ ')"
39
+ has_specs=0
40
+ while IFS= read -r path; do
41
+ if [ -n "$path" ] && [ -f "$root/$path" ]; then
42
+ has_specs=1
43
+ fi
44
+ done <<EOF
45
+ $spec_paths
46
+ EOF
47
+ if [ "$has_specs" -eq 0 ]; then
48
+ printf ' specification folder not found for changed %s (expected when_* under this slice)\n' "$anchor" >&2
49
+ fi
50
+ fi
51
+ done <<EOF
52
+ $candidates
53
+ EOF
54
+ exit 0
@@ -189,6 +189,7 @@ Top-level provider for microservice name and API base path. Config props (with d
189
189
  - Single responsibility — if you write a `// Section` comment inside a component, that section is its own component. Parent owns state; children receive props.
190
190
  - Single-file component → in the slice folder; multi-file → a folder named after the component with an `index.ts` re-export.
191
191
  - A `.tsx` belongs in the slice folder it implements — never one level up. A feature's pass-through layout renders only `<Outlet />`.
192
+ - **Composition point and slice isolation.** A page is the one place that composes slices, through their exported components; slice internals never import another slice's internals; identity, tenant and theme providers belong to the application; deleting a slice folder and its page registration removes the feature. Detail: the `cratis-arc-react-page` skill, `references/from-screenplay.md`.
192
193
 
193
194
  ## Styling default
194
195
 
@@ -44,7 +44,12 @@ event names, command names and business rules come exclusively from the contract
44
44
  invent, assume or guess a field or a rule that is not in it.
45
45
 
46
46
  1. Read the slice from the contract in full: description, realization notes, specifications,
47
- concepts, inherited authorization, referenced events and views.
47
+ concepts, inherited authorization, referenced events and views. An outline or summary is not
48
+ the declarations; never infer that a slice has no elements or specifications from it.
49
+ Before writing the decision, line up all the command's specifications and read them together:
50
+ what their `given` facts share identifies decision state; what makes their `then` differ
51
+ identifies branches. Each error expectation pins the stated rule to its given situation;
52
+ read the rules too, because examples do not authorize invented rejection conditions.
48
53
  2. Search case-insensitively for the qualified slice folder and its command, event, read-model
49
54
  and reactor names before writing. If a realization exists, diff it against the contract and
50
55
  update it in place within owned paths; never build a second realization. Reuse referenced
@@ -136,6 +141,9 @@ command/property name, isolation may need fresh test identifiers, and file place
136
141
  slice, invalid spec-name conversion or an unspecified layout may follow local conventions.
137
142
  Return each assumption with its address and consequence if wrong in the fallback record.
138
143
  `blocked` means progress needs a person, not that confirmation seemed safer.
144
+ Write the question so someone reading it cold understands it: name the slice, the exact field,
145
+ rule or specification, what is missing or contradictory, and the concrete choice needed.
146
+ "Please clarify" alone gives the owner nothing answerable.
139
147
 
140
148
  Stop conditions: after one slice, stop regardless of what else is assigned (under a scoped brief,
141
149
  after one slice, or when the assigned scope is done or blocked, and never continue into another
@@ -36,7 +36,10 @@ the renderer no right to browse managed output or implement rejected semantics.
36
36
  success and external-effect delivery are different guarantees.
37
37
  - Verify command registration, transport mapping and inherited authorization against
38
38
  repository conventions, not a copied route template.
39
- - No business rule in code that the contract does not state.
39
+ - A command with no refusal in its contract (property requirements, concept rules, command
40
+ rules, authorization, constraints or specifications) refuses nothing for business reasons.
41
+ Do not add "not empty", range or format validators the contract does not state: they introduce
42
+ new rejection behavior. Propose them to the model owner instead.
40
43
  - Every property of the command has a field in the code's command and nothing else does: none
41
44
  invented, none missing. Every event keeps its modeled name and every payload field.
42
45
  - Every contract specification maps to a spec. Explicit realization requirements bind
@@ -31,6 +31,9 @@ Source: https://github.com/Nebulit-GmbH/Eventmodelers-Build-Kits, by Martin Dilg
31
31
  |---|---|---|
32
32
  | `record-evidence` (classic stack) | `build-prompts.md` result pointer; Slice Implementer output, using the fallback record in `cratis-screenplay-render-and-gap-fill` | adapted closely: one row per element, field and specification, files created and modified, shared seams, assumptions and checks, with no code excerpts; the board note dropped |
33
33
 
34
+ | modeling-kit `prototype` decision scenarios; shared `load-slice` and build prompt summary warning | `build-prompts.md` mandatory flow; `checklists.md` State Change | adapted closely: read all specifications together, read declarations rather than summaries, and refuse only for contracted rules |
35
+ | shared `request-feedback` question form | `build-prompts.md` Escalation | adapted closely: name the slice, field/rule/specification and missing choice so the owner can answer without prior context |
36
+
34
37
  ## Method lineage
35
38
 
36
39
  | Idea | Used in | Credit |
@@ -7,3 +7,7 @@ This skill adapts material from agentic-engineer by Martin Dilger and Nebulit Gm
7
7
  (https://github.com/Nebulit-GmbH/agentic-engineer, commit 07b0f30648d663cb588d7e2c7aa031af9dfc21f2;
8
8
  https://nebulit.de), used with the explicit consent of Martin Dilger and Nebulit GmbH. The adapted
9
9
  material remains credited to Martin Dilger and Nebulit GmbH.
10
+
11
+ This skill also adapts Eventmodelers Build-Kits by Martin Dilger and Nebulit GmbH
12
+ (https://github.com/Nebulit-GmbH/Eventmodelers-Build-Kits; https://nebulit.de), used with their
13
+ explicit consent. The adapted material remains credited to Martin Dilger and Nebulit GmbH.
@@ -12,6 +12,15 @@ by Martin Dilger and Nebulit GmbH (https://nebulit.de), used with the explicit c
12
12
  | `.claude/skills/build-automation/SKILL.md`: checklist question "what happens if the command fires twice" | `SKILL.md` Step 3 item 5 | idea; our own wording kept |
13
13
  | `.claude/skills/build-automation/SKILL.md`: one error specification per rule; build from the slice definition first | `SKILL.md` Step 0 and Step 6 | idea; our own wording kept |
14
14
 
15
+ ## Eventmodelers Build-Kits
16
+
17
+ Source: https://github.com/Nebulit-GmbH/Eventmodelers-Build-Kits, by Martin Dilger and Nebulit GmbH
18
+ (https://nebulit.de), used with their explicit consent.
19
+
20
+ | Source skill | Used in | How |
21
+ |---|---|---|
22
+ | axon/kurrent `build-state-view` query tests | `query-and-decision-scenarios.md` | copied and translated: isolate query results by key/filter/caller scope and assert complete items where fully contracted; provider integration remains separate |
23
+
15
24
  ## Method lineage
16
25
 
17
26
  | Idea | Used in | Credit |
@@ -36,6 +36,14 @@ With `Cratis.Arc.Chronicle.Testing` and its Queries namespace, use
36
36
  The query must read that source via injected `IReadModels`; seeding does not
37
37
  replace arbitrary stores or produce later observable emissions after appends.
38
38
 
39
+ For a query with `by`, `filter` or `scoped to`, seed instances for two keys, two filter values
40
+ or two tenants with distinct callers, as applicable, and assert that each call returns only its
41
+ own instances, plus the empty case. This pins the caller-isolation decision in
42
+ `cratis-screenplay-read-surface` ("by vs filter"); caller scope must come from trusted context,
43
+ not a caller-supplied tenant filter. Compare whole returned items when the contract states every
44
+ value; otherwise assert each named value. A query backed by a database still needs that provider's
45
+ integration setup: scenario pins do not replace arbitrary stores.
46
+
39
47
  ## Guarded decisions
40
48
 
41
49
  Call `new CommandScenario<TCommand>().UseDecisionReads()` before seeding. This
@@ -7,3 +7,7 @@ This skill adapts material from agentic-engineer by Martin Dilger and Nebulit Gm
7
7
  (https://github.com/Nebulit-GmbH/agentic-engineer, commit 07b0f30648d663cb588d7e2c7aa031af9dfc21f2;
8
8
  https://nebulit.de), used with the explicit consent of Martin Dilger and Nebulit GmbH. The adapted
9
9
  material remains credited to Martin Dilger and Nebulit GmbH.
10
+
11
+ This skill also adapts Eventmodelers Build-Kits by Martin Dilger and Nebulit GmbH
12
+ (https://github.com/Nebulit-GmbH/Eventmodelers-Build-Kits; https://nebulit.de), used with their
13
+ explicit consent. The adapted material remains credited to Martin Dilger and Nebulit GmbH.
@@ -130,6 +130,12 @@ field because `berthId` is the identifier, not something the user types.
130
130
  | A Level 3 `react` block | The block is already the implementation, with typed `Props`. Port it into a component that honors those `Props` | Convention |
131
131
  | `file Screens/X.tsx` | That file is the page. The model keeps the contract; the file must still show the declared data and actions | Stage's handling of the file reference is not verified |
132
132
 
133
+ A screen hosting actions from several slices has one page composition point. The page may import
134
+ those slices' exported dialogs or components and pass props; a slice's React internals do not
135
+ import another slice's internals, because that couples their removal. Identity, tenant and theme
136
+ state belongs in application-level providers. Removing a slice folder and its page registration
137
+ should remove the feature without edits inside another slice.
138
+
133
139
  ## `form` and `field`
134
140
 
135
141
  | In the model | In the page | Status |
@@ -7,6 +7,15 @@ No TrogonStack text is adapted in this skill. Nebulit material is credited in th
7
7
  | Component APIs, props and hooks | Cratis Components 4.26.4 and Arc, see *Verified product sources* | MIT | original | SKILL.md, references/ |
8
8
  | Screenplay and Stage facts in the screen mapping | Cratis/Screenplay v4.66.0 and Cratis/Stage v4.24.0 documentation and source | MIT | original | references/from-screenplay.md |
9
9
 
10
+ ## Eventmodelers Build-Kits
11
+
12
+ Source: https://github.com/Nebulit-GmbH/Eventmodelers-Build-Kits, by Martin Dilger and Nebulit GmbH
13
+ (https://nebulit.de), used with their explicit consent.
14
+
15
+ | Source skill | Used in | How |
16
+ |---|---|---|
17
+ | supabase-react `build-state-change`, `build-state-view` and build-kit composition guideline | `from-screenplay.md`, Level 1 and 2 | copied and translated: page composition through exported dialogs/components, no cross-slice internals, deletability and application-level providers |
18
+
10
19
  ## Adapted closely (Martin Dilger and Nebulit GmbH)
11
20
 
12
21
  Source: https://github.com/Nebulit-GmbH/agentic-engineer at commit `07b0f30648d663cb588d7e2c7aa031af9dfc21f2`,
@@ -76,8 +76,16 @@ these are the `Automation` and `Translate` slice types.
76
76
  as input, read state or context (time, caller, tenant). Context comes from the
77
77
  command pipeline or an injected time source, never from the wall clock inside
78
78
  the decision, so a specification can fix it.
79
+ - **Who issues each command**: a named role or an automation, never a generic
80
+ user. Each role's "cannot" becomes authorization plus a denial specification.
81
+ - **Story order**: the flow from its first trigger to every ending, with
82
+ branches and terminal facts named.
83
+ - **Refused transitions**: per state, which commands are refused and by which
84
+ rule (a state-by-command table).
79
85
  - **Events** — past-tense, one-purpose facts. Names must be self-describing:
80
- `<Entity><PastTenseVerb>`, never a bare `Created`.
86
+ `<Entity><PastTenseVerb>`, never a bare `Created`. Name them for one real
87
+ flow with real values. On a generic platform, model a case it handles
88
+ (`HullDamageReported`), not its machinery (`FormSubmitted` with `content`).
81
89
  - **The event-source id for every event.** Events never carry their own
82
90
  event-source id as a payload property; it lives in the event context. Deciding
83
91
  the id *is* deciding the stream boundary.
@@ -221,6 +229,9 @@ remain separately authorized; a ready model authorizes none of them.
221
229
  missing event.
222
230
  - Personal data has a decided subject, and the subject is person-level or the
223
231
  trade-off is surfaced.
232
+ - No data-loading command (`LoadOrders`), UI event (`ButtonClicked`), technical
233
+ event (`ApiCalled`) or recomputed event.
234
+ - Every state has its refusals listed.
224
235
  - The specification outline names the failures, not only the happy path.
225
236
 
226
237
  ## Route near misses
@@ -7,3 +7,7 @@ This skill adapts material from agentic-engineer by Martin Dilger and Nebulit Gm
7
7
  (https://github.com/Nebulit-GmbH/agentic-engineer, commit 07b0f30648d663cb588d7e2c7aa031af9dfc21f2;
8
8
  https://nebulit.de), used with the explicit consent of Martin Dilger and Nebulit GmbH. The adapted
9
9
  material remains credited to Martin Dilger and Nebulit GmbH.
10
+
11
+ This skill also adapts Eventmodelers Build-Kits by Martin Dilger and Nebulit GmbH
12
+ (https://github.com/Nebulit-GmbH/Eventmodelers-Build-Kits; https://nebulit.de), used with their
13
+ explicit consent. The adapted material remains credited to Martin Dilger and Nebulit GmbH.
@@ -6,6 +6,16 @@
6
6
  | --- | --- | --- |
7
7
  | Successful work is removed from its pending-work view and removal is specified | `slice-delivery-checklist.md`, Checklist and Specifications | Martin Dilger / Nebulit GmbH, Eventmodelers build kits (`prototype`), used with their explicit consent; idea, our own wording |
8
8
 
9
+ ## Eventmodelers Build-Kits
10
+
11
+ Source: https://github.com/Nebulit-GmbH/Eventmodelers-Build-Kits, by Martin Dilger and Nebulit GmbH
12
+ (https://nebulit.de), used with their explicit consent.
13
+
14
+ | Source skill | Used in | How |
15
+ |---|---|---|
16
+ | kurrent `build-automation` and `idempotent-dispatch-patterns`; opencqrs/umadb `build-automation` | `slice-delivery-checklist.md`, `specifications.md` | copied and translated: contract-authorized duplicate-refusal handling per dispatch, narrow result matching, independent fan-out; command exceptions replaced by Arc pipeline results |
17
+ | axon/kurrent `build-automation` test cases | `specifications.md` | copied and translated: matching/non-matching state, temporal cases and per-item fan-out; independent Chronicle observers replace subscription-group ordering, and passive reads are not claimed as as-of snapshots |
18
+
9
19
  ## Adapted closely (Martin Dilger and Nebulit GmbH)
10
20
 
11
21
  Source: https://github.com/Nebulit-GmbH/agentic-engineer at commit `07b0f30648d663cb588d7e2c7aa031af9dfc21f2`,
@@ -5,6 +5,7 @@
5
5
  - Start from the contract
6
6
  - Build order
7
7
  - Handler patterns
8
+ - Redelivery against a refusing command
8
9
  - What no longer applies
9
10
  - Checklist
10
11
  - Specifications
@@ -61,10 +62,40 @@ give the reactor `[ExecuteCommandsAsSystem]` naming that role.
61
62
  | A condition narrows the trigger | Realize exactly the stated `where`. Show it with one specification where it skips and one for the neighboring case where it acts |
62
63
  | A fact on another event source | `EventForEventSourceId` with the stated target id |
63
64
  | The trigger's fields are not enough | Inject the read model the contract names; do not widen the mapping |
65
+ | The invoked command refuses an exact repeat | Apply the contract's redelivery disposition to that refusal only; see below |
64
66
 
65
67
  Which return shape expresses "do nothing" for a given handler is established by a scenario that
66
68
  runs it, not assumed. Use only the return shapes listed in `SKILL.md`.
67
69
 
70
+ ## Redelivery against a refusing command
71
+ Recovery can redeliver the trigger even with `[OnceOnly]`. If the invoked command's own
72
+ "already done" rule refuses the repeat, returning that command without a refusal disposition
73
+ fails the partition. Decide from the contract, in this order:
74
+
75
+ 1. A redelivery specification says the repeat is harmless (`then no events`). If the command's
76
+ own contract says an exact repeat succeeds without new facts, realize that no-op in the
77
+ command. Otherwise execute through the imperative pipeline (`cratis-arc-command-execution`)
78
+ and acknowledge only the exact already-done validation result or named constraint authorized
79
+ by the contract. Identify it from the command's rule and result, never by guessing an exception
80
+ type or treating every validation failure as a duplicate. Preserve the modeled system identity
81
+ when using the pipeline; a returned command's role handling is not implicit in an imperative call.
82
+ 2. A refusal branch states the disposition: realize its exact selector and its acknowledgment
83
+ or produced fact. Screenplay refusal branches are authoring-only; hand-written delivery keeps
84
+ the model as the contract, not a claim of reference execution or render admission.
85
+ 3. The redelivery specification expects an error, or no redelivery disposition is stated: do not
86
+ acknowledge on your own, because that changes failure behavior. Report the possibility of a
87
+ paused partition on recovery as an edit request to the model owner.
88
+
89
+ Every other refusal, denial or exception still fails the handler. Never catch broadly: it hides
90
+ mapping bugs and real validation failures. Authorization denial needs an explicit authorization
91
+ selector; concurrency conflicts are not refusals and must fail for retry.
92
+
93
+ For fan-out where the contract requires independent item progress, execute each item through the
94
+ pipeline and apply the disposition at that call, not around the loop. A returned collection stops
95
+ at the first failure, and even an acknowledged refusal can end that collection's execution; it
96
+ cannot prove later items ran. Unexpected failures still fail the handler, so completed items need
97
+ retry-safe behavior too.
98
+
68
99
  ## What no longer applies
69
100
  Processor identity strings, consumer instance ids, lock and retry configuration, a dead-letter
70
101
  store, `schema.migrate()` and a hand-written start and stop call belong to a different runtime.
@@ -82,6 +113,8 @@ fact, not handled (`references/domain-failures.md`).
82
113
  - [ ] Handlers that return events or commands carry `[OnceOnly]`; the effect is idempotent regardless
83
114
  - [ ] A gated command has `[ExecuteCommandsAsSystem]` naming the role the command requires
84
115
  - [ ] Repeated delivery of the same trigger is specified (what happens when it fires twice)
116
+ - [ ] If the invoked command refuses a repeat, its disposition comes from the contract and is
117
+ realized for exactly that rule; nothing is caught broadly
85
118
  - [ ] For a pending-work read model, the successful effect records the event that removes the
86
119
  selected item, directly or through the invoked command; success leaves no completed work pending
87
120
  - [ ] A modeled slice matches its `.play` contract; the model was not edited to fit the code
@@ -129,7 +129,23 @@ Specify the contract, not only the happy path:
129
129
  every event it delivers its own sequence number, so firing the same event twice
130
130
  through `Given` is two deliveries, not a re-delivery; to prove the
131
131
  re-delivery guard, call the handler twice with the same `ReactorDelivery`, or
132
- assert it on the collaborator that holds the receipt.
132
+ assert it on the collaborator that holds the receipt. Map a contract redelivery specification
133
+ one to one: deliver the same trigger with the same delivery identity, or call directly with the
134
+ command already applied, and assert its disposition (no new events, the named fact, or refusal
135
+ surfaced as failure). The refusing-command procedure is in `slice-delivery-checklist.md`.
136
+ - **Read-model timing.** An injected materialized model has its own observer; resolving it does
137
+ not pin its state to the trigger's sequence number. It can lag the trigger or include later
138
+ events. Seed the state the contract means with `Given.ForEventSourceId(id).ReadModel(instance)`:
139
+ matching state dispatches, non-matching state does not, and a separate specification uses the
140
+ state before the setup event (or declared absence). These are decision specifications, not
141
+ proof of production ordering. For a decision exactly as of the trigger, prefer values carried
142
+ on that event. A `[Passive]` model computes on demand but is not an as-of snapshot; a
143
+ state-dependent invariant requiring atomic protection belongs in the invoked command through
144
+ `cratis-chronicle-decision-reads`.
145
+ - **Per-item fan-out.** Seed two matching entries and one non-matching entry; assert exactly two
146
+ effects, each with its entry's values. When the contract requires independent progress,
147
+ specify an acknowledged duplicate refusal for one entry and prove the other entry still
148
+ completes. Unexpected refusals remain failures; successful entries must tolerate retry.
133
149
  - **Unrelated events.** `WithStrictEventSubscription()` belongs to
134
150
  `ReadModelScenario<T>` and only fails a specification that *seeds* an event the
135
151
  projection does not subscribe to; it does not prove a subscription set, and
@@ -7,3 +7,8 @@ This skill adapts material from agentic-engineer by Martin Dilger and Nebulit Gm
7
7
  (https://github.com/Nebulit-GmbH/agentic-engineer, commit 07b0f30648d663cb588d7e2c7aa031af9dfc21f2;
8
8
  https://nebulit.de), used with the explicit consent of Martin Dilger and Nebulit GmbH. The adapted
9
9
  material remains credited to Martin Dilger and Nebulit GmbH. See references/provenance.md.
10
+
11
+ This skill also adapts an idea from the Eventmodelers Build-Kits skills by Martin Dilger and
12
+ Nebulit GmbH (https://github.com/Nebulit-GmbH/Eventmodelers-Build-Kits; https://nebulit.de), used
13
+ with the explicit consent of Martin Dilger and Nebulit GmbH. The adapted material remains credited
14
+ to Martin Dilger and Nebulit GmbH.
@@ -153,7 +153,12 @@ language. Include commands that emit no event.
153
153
  every behavior appears, classified by the type the authority gives it. A clean
154
154
  render proves valid Mermaid, not completeness — close the gaps against the
155
155
  authority, never from memory. List model/code drift in the report instead of
156
- resolving it in the diagram.
156
+ resolving it in the diagram. When the code is the authority, also find what changed since
157
+ the diagram was last updated: the last commit touching the diagram file is the baseline; list
158
+ the behavior commits in the module's folders since then
159
+ (`git log --reverse <baseline>..HEAD -- <module folders>`), oldest first, and check each against
160
+ the diagram. When an accepted model is the authority, report code that disagrees with it through
161
+ `cratis-screenplay-render-and-gap-fill` (hand-written changes), not in the diagram.
157
162
 
158
163
  ## Common mistakes
159
164
 
@@ -17,3 +17,12 @@ carry no such rule, and Screenplay commands may have several origins).
17
17
 
18
18
  - Mermaid `eventmodeling` diagram type: https://mermaid.js.org/syntax/eventmodeling.html.
19
19
  - Event Modeling (Adam Dymitruk) and Martin Dilger, *Understanding Eventsourcing*: the timeline as left-to-right business flow.
20
+
21
+ ### Eventmodelers Build-Kits
22
+
23
+ Source: https://github.com/Nebulit-GmbH/Eventmodelers-Build-Kits, by Martin Dilger and Nebulit GmbH
24
+ (https://nebulit.de), used with the explicit consent of Martin Dilger and Nebulit GmbH.
25
+
26
+ | Source skill | Used in | How |
27
+ |---|---|---|
28
+ | `detect-model-drift` | `SKILL.md` step 4 | idea, own wording: the last commit touching the artifact is the baseline, and behavior commits since then are walked oldest first |
@@ -31,3 +31,8 @@ This skill also adapts material from agentic-engineer by Martin Dilger and Nebul
31
31
  (https://github.com/Nebulit-GmbH/agentic-engineer, commit 07b0f30648d663cb588d7e2c7aa031af9dfc21f2;
32
32
  https://nebulit.de), used with the explicit consent of Martin Dilger and Nebulit GmbH. The adapted
33
33
  material remains credited to Martin Dilger and Nebulit GmbH.
34
+
35
+ This skill also adapts material from the Eventmodelers Build-Kits skills by Martin Dilger and
36
+ Nebulit GmbH (https://github.com/Nebulit-GmbH/Eventmodelers-Build-Kits; https://nebulit.de), used
37
+ with the explicit consent of Martin Dilger and Nebulit GmbH. The adapted material remains credited
38
+ to Martin Dilger and Nebulit GmbH.
@@ -126,7 +126,7 @@ or actor that nobody confirmed. Read `references/worked-integration.md` when you
126
126
  (`references/integration-contracts.md`).
127
127
  2. **Is it an automation?** Write four lines: occurrence (event, clock, application trigger), state
128
128
  consulted, condition, effect. Always fires, consults nothing, cannot fail, touches nothing outside:
129
- co-production, the command produces both facts. Otherwise continue (`references/automation-patterns.md`).
129
+ co-production, the command produces both facts. Otherwise continue (`references/automation-patterns.md`; a process with waits, approvals, compensation or fan-out: its §10).
130
130
  3. **Queue or direct?** A todo list (a read model whose membership is the pending work) when work can
131
131
  wait, retry, fail or need people. Name each opening and closing fact (result, cancellation,
132
132
  supersession), the work-item key and the recovery path. Direct reaction only for an immediate,
@@ -210,7 +210,7 @@ Never report a verdict without the tool and version that produced it.
210
210
  target-field completeness as well as source-field dispositions.
211
211
  - One happy path is not coverage: cite the spec or the missing case for each branch, denial, competing
212
212
  claim and closing event.
213
- - Every complete example compiles. Read `references/todo-list-example.md` when modeling a pending-work automation, and `references/translate-example.md` when modeling capture plus translator reactions.
213
+ - Every complete example compiles. Read `references/todo-list-example.md` when modeling a pending-work automation (its design-only excerpts insert into `assets/pending-certificates.play` and `assets/retry-sweep.play`), and `references/translate-example.md` when modeling capture plus translator reactions.
214
214
 
215
215
  ## Route near misses
216
216
  - Grammar: `cratis-screenplay-captures-and-reactions`; invoked commands: `cratis-screenplay-command-surface`;
@@ -11,6 +11,7 @@
11
11
  - 7. Shapes to question in review
12
12
  - 8. Chain completion checkpoint
13
13
  - 9. Fan-out
14
+ - 10. Long-running process shapes
14
15
 
15
16
  Complete compiled example: `todo-list-example.md` (binds on Screenplay 4.66.0 and later; the list query
16
17
  excerpt binds too, and the retry sweep that needs code is shown as a marked excerpt).
@@ -163,3 +164,26 @@ ambiguous. Historical event generations are exempt.
163
164
  Record one outcome fact per item. Never record a batch completion fact while some items
164
165
  failed or are unknown; partial success is failure at an effect boundary
165
166
  (`cratis-engineering-effect-boundaries`).
167
+
168
+ ## 10. Long-running process shapes
169
+ A durable workflow engine does not exist in the language. A process that waits, escalates,
170
+ compensates or fans out is modeled as chained Automation slices over facts and pending-work
171
+ views, never as a hidden engine. Start from the signal, take the shape, then check the shape's
172
+ specifications.
173
+
174
+ | Signal in the process | Screenplay shape |
175
+ |---|---|
176
+ | One trigger, one command | One Automation slice (§1) |
177
+ | Trigger, command, wait for a fact, command | Two Automation slices chained by facts, each with its pending-work view |
178
+ | Wait for human approval or outside confirmation | A pending view the person's screen reads, with the approval command on it; a clock reaction over the same view escalates on timeout |
179
+ | Compensate when step N fails | A failure fact and a compensating command for every completed step, each with its own view (`effects-and-idempotency.md`, option 2) |
180
+ | Timer or delay | A clock reaction over a due-items view (§6) |
181
+ | Fan out, then wait for all | One fact per item plus a completion view that counts outstanding items (§9). Durable fan-out is outside the language: say so in the verdict |
182
+ | Parent and child | The child has its own stream and completion fact; the parent's view waits for it |
183
+ | Scatter and gather | One translation per reply into a fact, and a view that decides when enough replies have arrived |
184
+
185
+ One trigger and one command is a plain automation. Anything else in the table is a process:
186
+ every step has a recorded fact, so a restart resumes from state and never from memory.
187
+ Specify two paths for each process shape: the timeout path (nothing arrives in time) and the
188
+ compensation order (undoing completed steps in reverse). A shape with no timeout path can wait
189
+ forever, which is a completion defect (§8).
@@ -1,5 +1,16 @@
1
1
  # Integration contracts
2
2
 
3
+ ## Contents
4
+
5
+ - Resolve only the unknowns
6
+ - Trust and meaning
7
+ - Trace both directions
8
+ - Separate the identities
9
+ - Publish the inbound contract
10
+ - Recoverable failure
11
+ - Faithful realization
12
+ - Per-record-type contract
13
+
3
14
  Use before completing a new or changed translation. Keep accepted decisions in the relevant
4
15
  `.play` `documentation` and specs; open questions and target requirements go to `STATE.md`. Do
5
16
  not create a second canonical model.
@@ -49,6 +60,14 @@ unsolicited record gets one; cover a record that arrives before the bridge. Defi
49
60
  by business occurrence, not by provider object id alone; state dedup scope, retention and
50
61
  atomic enforcement (a preliminary lookup is not a concurrency guarantee).
51
62
 
63
+ ## Publish the inbound contract
64
+ An external integrator cannot read this codebase, so publish the inbound endpoint's contract for
65
+ the provider's integrator: the path, the payload fields mapped from the capture, the
66
+ authentication header (the provider's signature or shared secret, not an application user
67
+ token), and the responses for a duplicate delivery and for each refusal. Answer a duplicate
68
+ as already handled, and keep the provider's delivery or occurrence id as the retry identity
69
+ rather than generating a new id per delivery, which would defeat deduplication.
70
+
52
71
  ## Recoverable failure
53
72
  Per failure class choose: ignore, reject, defer, terminal failure or reconcile; say what is
54
73
  visible, who acts, how processing resumes. Cover unknown correlation, unavailable enrichment,
@@ -48,3 +48,13 @@ Previous CLI 3.46.1 refused v10 at its version gate. The CLI/Stage pair
48
48
  STAGE-ESM-034 (Stage `v4.89.1:Documentation/reference/reaction-rendering.md:57-59`).
49
49
  Public/direction forms and routes/filters follow Screenplay v4.135.0 decisions
50
50
  0049–0051 and 0060–0066, not the older inbound-only translation scope.
51
+
52
+ ## Eventmodelers Build-Kits
53
+
54
+ Source: https://github.com/Nebulit-GmbH/Eventmodelers-Build-Kits, by Martin Dilger and Nebulit GmbH
55
+ (https://nebulit.de), used with the explicit consent of Martin Dilger and Nebulit GmbH.
56
+
57
+ | Source skill | Used in | How |
58
+ |---|---|---|
59
+ | `build-automation-workflow` (axon stack): the decision table of signals that call for a workflow | `references/automation-patterns.md` §10 | copied and translated: the signal rows are kept, each answered with a Screenplay shape (chained Automation slices, pending-work views, clock reactions); the engine, step-handler and test mechanics are not adopted; the timeout and compensation-order checks follow its workflow tests |
60
+ | `build-webhook` (supabase stack): inbound webhooks verify the provider's own signature, and the endpoint contract is written for an integrator who cannot read the code | `references/realization-and-gap-fill.md` (capture row), `references/integration-contracts.md` "Publish the inbound contract" | copied and translated: provider-signature authentication and the integrator-facing contract are kept; the function-registration and local-serve mechanics are dropped; "generate the aggregate id when the caller omits it" is not adopted because it breaks retry identity |