@cratis/pi 7.11.0 → 7.11.2

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 (89) hide show
  1. package/package/corpus/harnesses/pi/extensions/cratis-hooks/index.ts +6 -5
  2. package/package/corpus/harnesses/pi/extensions/cratis-hooks/quality-gate.ts +25 -4
  3. package/package/corpus/hooks/README.md +33 -7
  4. package/package/corpus/hooks/scripts/cratis-quality-gate.sh +246 -79
  5. package/package/corpus/hooks/scripts/quality-gates.json +17 -3
  6. package/package/corpus/skills/cratis-application-slice-conformance/SKILL.md +1 -1
  7. package/package/corpus/skills/cratis-arc-react-page/references/from-screenplay.md +3 -3
  8. package/package/corpus/skills/cratis-arc-react-page/references/provenance.md +1 -1
  9. package/package/corpus/skills/cratis-screenplay-automations-and-translations/SKILL.md +12 -10
  10. package/package/corpus/skills/cratis-screenplay-automations-and-translations/references/automation-patterns.md +2 -2
  11. package/package/corpus/skills/cratis-screenplay-automations-and-translations/references/cases-to-specify.md +4 -4
  12. package/package/corpus/skills/cratis-screenplay-automations-and-translations/references/realization-and-gap-fill.md +4 -3
  13. package/package/corpus/skills/cratis-screenplay-automations-and-translations/references/todo-list-example.md +7 -7
  14. package/package/corpus/skills/cratis-screenplay-automations-and-translations/references/translate-example.md +3 -2
  15. package/package/corpus/skills/cratis-screenplay-automations-and-translations/references/translation-patterns.md +2 -2
  16. package/package/corpus/skills/cratis-screenplay-captures-and-reactions/SKILL.md +24 -22
  17. package/package/corpus/skills/cratis-screenplay-captures-and-reactions/references/complete-examples.md +5 -7
  18. package/package/corpus/skills/cratis-screenplay-command-surface/SKILL.md +6 -6
  19. package/package/corpus/skills/cratis-screenplay-discovery/SKILL.md +9 -9
  20. package/package/corpus/skills/cratis-screenplay-discovery/references/facilitation.md +1 -1
  21. package/package/corpus/skills/cratis-screenplay-discovery/references/storming-loop.md +1 -1
  22. package/package/corpus/skills/cratis-screenplay-discovery/references/worked-session.md +1 -1
  23. package/package/corpus/skills/cratis-screenplay-event-modeling/SKILL.md +6 -6
  24. package/package/corpus/skills/cratis-screenplay-event-modeling/references/nine-steps.md +3 -4
  25. package/package/corpus/skills/cratis-screenplay-event-modeling/references/parsed-not-runnable.md +5 -5
  26. package/package/corpus/skills/cratis-screenplay-legacy-extraction/SKILL.md +6 -6
  27. package/package/corpus/skills/cratis-screenplay-legacy-extraction/references/generate-notes.md +1 -1
  28. package/package/corpus/skills/cratis-screenplay-legacy-extraction/references/prologue-safety.md +1 -1
  29. package/package/corpus/skills/cratis-screenplay-model-authoring/SKILL.md +6 -5
  30. package/package/corpus/skills/cratis-screenplay-model-authoring/references/language-reference.md +14 -13
  31. package/package/corpus/skills/cratis-screenplay-model-authoring/references/mcp-loop.md +8 -7
  32. package/package/corpus/skills/cratis-screenplay-model-authoring/references/provenance.md +3 -3
  33. package/package/corpus/skills/cratis-screenplay-model-review/SKILL.md +3 -3
  34. package/package/corpus/skills/cratis-screenplay-model-review/references/checklist.md +1 -1
  35. package/package/corpus/skills/cratis-screenplay-model-review/references/provenance.md +1 -1
  36. package/package/corpus/skills/cratis-screenplay-model-review/references/report-template.md +1 -1
  37. package/package/corpus/skills/cratis-screenplay-model-review/references/worked-example.md +1 -1
  38. package/package/corpus/skills/cratis-screenplay-modeling-lifecycle/SKILL.md +4 -4
  39. package/package/corpus/skills/cratis-screenplay-modeling-lifecycle/references/identity-and-edits.md +2 -2
  40. package/package/corpus/skills/cratis-screenplay-modeling-lifecycle/references/opt-in.md +25 -11
  41. package/package/corpus/skills/cratis-screenplay-modeling-lifecycle/references/verdicts-and-modes.md +1 -1
  42. package/package/corpus/skills/cratis-screenplay-modeling-lifecycle/references/vocabulary-map.md +1 -1
  43. package/package/corpus/skills/cratis-screenplay-projections/SKILL.md +5 -5
  44. package/package/corpus/skills/cratis-screenplay-read-surface/SKILL.md +5 -5
  45. package/package/corpus/skills/cratis-screenplay-render-and-gap-fill/SKILL.md +7 -6
  46. package/package/corpus/skills/cratis-screenplay-render-and-gap-fill/references/drift-and-ledger.md +1 -1
  47. package/package/corpus/skills/cratis-screenplay-render-and-gap-fill/references/provenance.md +1 -1
  48. package/package/corpus/skills/cratis-screenplay-render-and-gap-fill/references/renderability-gate.md +4 -4
  49. package/package/corpus/skills/cratis-screenplay-render-and-gap-fill/references/worked-example.md +5 -5
  50. package/package/corpus/skills/cratis-screenplay-scenario-coverage/SKILL.md +10 -9
  51. package/package/corpus/skills/cratis-screenplay-scenario-coverage/references/invoicing-dues-design.md +1 -2
  52. package/package/corpus/skills/cratis-screenplay-scenario-coverage/references/invoicing-dues-example.md +2 -3
  53. package/package/corpus/skills/cratis-screenplay-scenario-coverage/references/provenance.md +2 -2
  54. package/package/corpus/skills/cratis-screenplay-scenario-coverage/references/scenario-catalogue.md +2 -2
  55. package/package/corpus/skills/cratis-screenplay-scenario-coverage/references/scenario-examples.md +1 -1
  56. package/package/corpus/skills/cratis-screenplay-scenario-coverage/references/spec-forms-by-mode.md +4 -4
  57. package/package/corpus/skills/cratis-screenplay-scenario-coverage/references/view-and-story-specs.md +1 -1
  58. package/package/corpus/skills/cratis-screenplay-slice-design/SKILL.md +3 -3
  59. package/package/corpus/skills/cratis-screenplay-slice-design/references/read-model-design.md +1 -1
  60. package/package/corpus/skills/cratis-screenplay-slice-design/references/worked-example.md +1 -1
  61. package/package/corpus/skills/cratis-screenplay-specifications/SKILL.md +30 -29
  62. package/package/corpus/skills/cratis-screenplay-specifications/verification.json +2 -2
  63. package/package/corpus/skills/cratis-screenplay-streams-and-consistency/SKILL.md +3 -3
  64. package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/consistency-and-concurrency.md +1 -1
  65. package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/provenance.md +1 -1
  66. package/package/corpus/skills/cratis-screenplay-toolchain/SKILL.md +18 -17
  67. package/package/corpus/skills/cratis-screenplay-toolchain/references/automation-translate-example.md +1 -2
  68. package/package/corpus/skills/cratis-screenplay-toolchain/references/cheat-sheet-example.md +2 -3
  69. package/package/corpus/skills/cratis-screenplay-toolchain/references/cheat-sheet.md +4 -4
  70. package/package/corpus/skills/cratis-screenplay-toolchain/references/diagnostics.md +4 -3
  71. package/package/corpus/skills/cratis-screenplay-toolchain/references/doc-contradictions.md +7 -7
  72. package/package/corpus/skills/cratis-screenplay-toolchain/references/executable-subset.md +14 -10
  73. package/package/corpus/skills/cratis-screenplay-toolchain/references/pdl-example.md +1 -1
  74. package/package/corpus/skills/cratis-screenplay-toolchain/references/provenance.md +8 -8
  75. package/package/corpus/skills/cratis-screenplay-toolchain/references/renderable-subset.md +7 -6
  76. package/package/corpus/skills/cratis-screenplay-toolchain/references/sources-and-streams.md +2 -2
  77. package/package/corpus/skills/cratis-screenplay-toolchain/references/traps.md +8 -8
  78. package/package/corpus/skills/cratis-screenplay-toolchain/references/verdicts.md +12 -10
  79. package/package/corpus/skills/cratis-screenplay-toolchain/references/versions.md +46 -36
  80. package/package/corpus/skills/cratis-screenplay-toolchain/verification.json +2 -2
  81. package/package/corpus/skills/cratis-screenplay-ui-composition/SKILL.md +4 -4
  82. package/package/corpus/skills/cratis-screenplay-ui-composition/references/provenance.md +1 -1
  83. package/package/corpus/skills/cratis-screenplay-ui-composition/references/worked-flow.md +3 -3
  84. package/package/corpus/skills/cratis-stage-rendering-and-sandbox/SKILL.md +12 -9
  85. package/package/corpus/skills/cratis-stage-rendering-and-sandbox/references/admission.md +8 -7
  86. package/package/corpus/skills/cratis-stage-rendering-and-sandbox/references/render-example.md +3 -3
  87. package/package/corpus/skills/cratis-stage-rendering-and-sandbox/references/sandbox-and-specrunner.md +1 -1
  88. package/package/corpus/skills/cratis-stage-rendering-and-sandbox/verification.json +4 -1
  89. package/package.json +1 -1
@@ -1,9 +1,9 @@
1
1
  # Stage 4.24 admission: codes, specification rules and observed refusals
2
2
 
3
- Read at Stage `v4.24.0` (`Source/Rendering.Cratis/CratisArtifactRenderPlanner.cs`,
3
+ Read at Stage `v4.24.0`, re-read at `v4.24.1` (`Source/Rendering.Cratis/Semantics/SemanticSurfaceLedger.cs`, `Documentation/guides/build-renderer-target.md`; 4.24.1 changed only the ledger, dependency pins and the Dockerfile) (`Source/Rendering.Cratis/CratisArtifactRenderPlanner.cs`,
4
4
  `Semantics/SemanticCratisAdmission*.cs`, `SemanticSpecificationAdmission*.cs`,
5
- `PureTransitionAdmission.cs`, `SemanticImplementationAdmission.cs`) and cli `v3.27.1`
6
- (`Commands/Render/ScreenplayPlanning.cs`). Items marked *observed* were reproduced with
5
+ `PureTransitionAdmission.cs`, `SemanticImplementationAdmission.cs`) and cli `v3.28.2`
6
+ (`Commands/Render/ScreenplayPlanning.cs`, unchanged since `v3.27.1`). Items marked *observed* were reproduced with
7
7
  `cratis render` 3.27.1 while building [render-example.md](render-example.md). Anything else
8
8
  is a reading of source: render the model before claiming it.
9
9
 
@@ -11,7 +11,7 @@ One blocking diagnostic fails the **whole** plan and nothing is published (exit
11
11
  Informational diagnostics (`PLAY0270` authoring metadata, `PLAY0469`, `STAGE-ESM-023`) do not.
12
12
 
13
13
  A refusal can come from four layers, and the code tells you which: compilation and binding
14
- (`PLAY*`, from the CLI's bundled Screenplay 4.60.1), execution planning (`PLAN-*`), Stage
14
+ (`PLAY*`, from the CLI's bundled Screenplay: 4.66.0 in cratis 3.28.2), execution planning (`PLAN-*`), Stage
15
15
  admission (`STAGE-*`) and the CLI itself (`CLI-RENDER-*`). A publication conflict (a
16
16
  modified managed file, an unmanaged file at a planned path, a manifest from another
17
17
  target or renderer) is a plain ownership error with no code. Keep the actual diagnostic or
@@ -46,6 +46,7 @@ model owner's decision.
46
46
  | `STAGE-ESM-019` | Reducer structure or body not admitted (outside a `StateView`, impure, does not compile) | An equivalent pure body, or gap-fill |
47
47
  | `STAGE-ESM-020` | Implementation body missing, changed (hash differs) or refused by the loader | Provide the body inside the model root |
48
48
  | `STAGE-ESM-021`, `-022` | Reducer typed-context or analysis failure; a construct outside the pure allowlist, or a generated name shadowing a reducer type | An equivalent pure body, or gap-fill |
49
+ | `STAGE-ESM-024` | Ledger-only (4.24.1): every ESM v6 surface member is dispositioned Rejected. Not emitted on its own: the version gate raises `STAGE-ESM-016` first and refuses the whole v6 model | As `STAGE-ESM-016`: keep the model, record the gap, gap-fill |
49
50
  | `STAGE-ESM-023` | Information: transition bodies analysed | none |
50
51
  | `STAGE-CRATIS-001` to `-005` | Profile or `scene.json` not the package-owned shape; unrecognized or missing scaffold input; artifact path collision; a modeled module or feature that would render into the reserved `Customizations/` | Rename the module or feature (005) |
51
52
  | `STAGE-AUTH-001` | Authorization cannot be rendered faithfully | As `STAGE-ESM-015` |
@@ -73,7 +74,7 @@ Stage renders two projection forms; the restrictions differ.
73
74
  key makes it that key. Stage refuses a literal key (`STAGE-ESM-017`; scoped keys are an
74
75
  event property or the event source, `SemanticScopedProjectionSupport.KeySupported`). Never map `$eventSourceId` onto the identifier when the key is
75
76
  something else (`from PaymentRecorded key invoiceId`): the runtime fails with "affected key
76
- disagrees with read-model identifier" (Screenplay v4.64.0
77
+ disagrees with read-model identifier" (Screenplay v4.66.0
77
78
  `SemanticScopedProjection.State.cs:182-184`, `SemanticEvaluator.cs:733-736`).
78
79
  2. Executable model. A flat-bound projection must map the identifier like any required
79
80
  property (the flat evaluator does not seed it): `xId = <keyProperty>`. A scoped projection
@@ -159,7 +160,7 @@ From `SemanticSpecificationAdmission*.cs`; the first rule was also observed.
159
160
 
160
161
  ## Observed refusals
161
162
 
162
- Each came from the first draft of the example model, rendered with cratis 3.27.1:
163
+ Each came from the first draft of the example model, rendered with cratis 3.27.1 (the marina model still renders on 3.28.2 with 30 artifacts):
163
164
 
164
165
  | Draft | Diagnostic | Fix that rendered |
165
166
  | --- | --- | --- |
@@ -173,5 +174,5 @@ Each came from the first draft of the example model, rendered with cratis 3.27.1
173
174
  | --- | --- |
174
175
  | Stage README: application scope adds "exactly eight" backend files | The scaffold creates nine (adds `GeneratedPolicyRegistration.cs`), plus the frontend scaffold |
175
176
  | cli reference: bodied reducers are unsupported (`STAGE-ESM-019`) | `PureTransitionAdmission` admits pure allowlisted bodies |
176
- | Stage customization guide: an Automation slice blocks with `STAGE-ESM-001`; Stage pins Screenplay 4.35.0 | With cli 3.27.1 an Automation or Translate slice fails binding (`PLAY0268`) first; Stage pins Screenplay 4.60.0 |
177
+ | Stage customization guide: an Automation slice blocks with `STAGE-ESM-001`; Stage pins Screenplay 4.35.0 | With cli 3.27.1 an Automation or Translate slice failed binding (`PLAY0268`) first; with cli 3.28.2 it binds and Stage refuses the whole model with `STAGE-ESM-016` (probed). Stage 4.24.0 pinned Screenplay 4.60.0 (4.24.1: 4.66.0) |
177
178
  | An earlier version of this skill: Stage has no authorization contract for queries | Query authorization is admitted and rendered; an unauthorized query renders `[AllowAnonymous]` (observed) |
@@ -1,6 +1,6 @@
1
1
  # Example: a model inside the Stage 4.24 renderable subset
2
2
 
3
- A complete marina-berth model that `cratis render` 3.27.1 accepts, followed by what the
3
+ A complete marina-berth model that `cratis render` 3.28.2 accepts, followed by what the
4
4
  render produced and how each claim was checked. Use it as a shape to stay inside when a
5
5
  model must be renderable; it is not a template for richer slices (see `admission.md`).
6
6
 
@@ -105,11 +105,11 @@ Why it is shaped this way:
105
105
 
106
106
  ## What was run
107
107
 
108
- All with cratis 3.27.1 on a folder holding only `berths.play`:
108
+ All with cratis 3.28.2 (re-run end to end from 3.27.1: same counts) on a folder holding only `berths.play`:
109
109
 
110
110
  | Step | Command | Result |
111
111
  | --- | --- | --- |
112
- | Compile | `screenplay <folder> --warnaserror` (4.64.0) and `cratis screenplay validate <folder> --warnings-as-errors` | 0 errors, 0 warnings |
112
+ | Compile | `screenplay <folder> --warnaserror` (4.66.0) and `cratis screenplay validate <folder> --warnings-as-errors` | 0 errors, 0 warnings |
113
113
  | Admission and publication | `cratis render <folder> --name Marina --destination out -o json` | exit 0, 30 artifacts written, `recovered: false` |
114
114
  | Re-render | the same command | `written: 0`, `unchanged: 30` |
115
115
  | Local edit | append a line to `out/Program.cs`, render again | exit 5: `Managed artifact 'Program.cs' was modified by the user; pass --force to replace it.` |
@@ -2,7 +2,7 @@
2
2
 
3
3
  Read at Stage `v4.24.0` (`README.md`, `Documentation/docker/index.md`,
4
4
  `Documentation/docker/spec-runner.md`, `Documentation/reference/urls.md`) and cli
5
- `v3.27.1` (`Commands/Run/*`). Docker was **not run** for this skill: every behaviour here
5
+ `v3.28.2` (`Commands/Run/*`, unchanged since `v3.27.1`). Docker was **not run** for this skill: every behaviour here
6
6
  is documented behaviour, not an observed result. Both images are still shipped.
7
7
 
8
8
  ## The sandbox: a partial, disposable runtime
@@ -16,6 +16,9 @@
16
16
  { "kind": "skill-contains", "value": "`Stage__Runtime__Engine=semantic`" },
17
17
  { "kind": "skill-contains", "value": "`--engine semantic`" },
18
18
  { "kind": "skill-contains", "value": "Stage#177" },
19
- { "kind": "skill-contains", "value": "never carry event source type" }
19
+ { "kind": "skill-contains", "value": "never carry event source type" },
20
+ { "kind": "skill-contains", "value": "STAGE-ESM-024" },
21
+ { "kind": "skill-contains", "value": "`v4.24.1`" },
22
+ { "kind": "skill-contains", "value": "Cratis/cli#253" }
20
23
  ]
21
24
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cratis/pi",
3
- "version": "7.11.0",
3
+ "version": "7.11.2",
4
4
  "description": "Configuration-aware Cratis AI integration for Pi",
5
5
  "type": "module",
6
6
  "files": [