@cratis/pi 7.159.0 → 7.159.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -145,7 +145,7 @@ Sources: `Arc.Core/Queries/ObservableQueryHttp.cs`,
145
145
  ### Local `cratis` template ports
146
146
 
147
147
  The `cratis` template still publishes MongoDB on host port `27017` and configures
148
- `mongodb://localhost:27017` for the app (`Templates/Cratis/docker-compose.yml`,
148
+ the MongoDB connection string for host `localhost`, port `27017` for the app (`Templates/Cratis/docker-compose.yml`,
149
149
  `appsettings.json`). Its Vite dev server runs on `9000` and proxies `/api`,
150
150
  `/.cratis` and `/swagger` to `http://localhost:5000`
151
151
  (`Templates/Cratis/.frontend/vite.config.ts`). A backend started on another
@@ -4,7 +4,7 @@
4
4
  "fixtures": [],
5
5
  "assertions": [
6
6
  { "kind": "skill-contains", "value": "The `cratis` template still publishes MongoDB" },
7
- { "kind": "skill-contains", "value": "mongodb://localhost:27017" },
7
+ { "kind": "skill-contains", "value": "for host `localhost`, port `27017`" },
8
8
  { "kind": "skill-contains", "value": "http://localhost:5000" },
9
9
  { "kind": "skill-contains", "value": "does not change the advertised member" },
10
10
  { "kind": "skill-contains", "value": "local template defaults, not Arc" }
@@ -80,7 +80,7 @@ Sinks, per-namespace storage and encryption certificates are covered by
80
80
  development image and `BlockLocalAddresses` in the production image (compile
81
81
  time). `AllowInsecureHttp` and the loopback exemption follow the runtime
82
82
  environment (`Development`), not the image.
83
- - The development image uses MongoDB at `mongodb://localhost:27017` and a
83
+ - The development image uses MongoDB at host `localhost`, port `27017` and a
84
84
  `chronicle.json` with a 5 second subscriber timeout and replay on definition
85
85
  change.
86
86
  - The development client application created by a development kernel persists
@@ -46,13 +46,15 @@ client marks `[Sink("reporting")]` go to PostgreSQL:
46
46
  "sinks": {
47
47
  "readModels": "primary",
48
48
  "configurations": {
49
- "primary": { "type": "MongoDB", "connectionDetails": "mongodb://mongo:27017" },
49
+ "primary": { "type": "MongoDB", "connectionDetails": "<mongodb-connection-string>" },
50
50
  "reporting": { "type": "SQL", "connectionDetails": "Host=pg;Database=reporting;Username=chronicle" }
51
51
  }
52
52
  }
53
53
  }
54
54
  ```
55
55
 
56
+ In these examples `<mongodb-connection-string>` stands for the MongoDB connection string for host `mongo`, port `27017`; write it in your own configuration.
57
+
56
58
  Keep credentials out of the file: supply them through approved configuration, or let
57
59
  [storage resolution](storage-resolution.md) resolve the connection. A named SQL or Neo4j sink
58
60
  resolves its connection through `storage.connectionResolution` when that is configured; a named
@@ -69,7 +71,7 @@ MongoDB, and a Kernel on MongoDB can keep some in PostgreSQL:
69
71
  "sinks": {
70
72
  "readModels": "documents",
71
73
  "configurations": {
72
- "documents": { "type": "MongoDB", "connectionDetails": "mongodb://mongo:27017" }
74
+ "documents": { "type": "MongoDB", "connectionDetails": "<mongodb-connection-string>" }
73
75
  }
74
76
  }
75
77
  }
@@ -99,7 +101,7 @@ The same keys under the `Cratis__Chronicle__` prefix:
99
101
  ```bash
100
102
  Cratis__Chronicle__Sinks__ReadModels=primary
101
103
  Cratis__Chronicle__Sinks__Configurations__primary__Type=MongoDB
102
- Cratis__Chronicle__Sinks__Configurations__primary__ConnectionDetails=mongodb://mongo:27017
104
+ Cratis__Chronicle__Sinks__Configurations__primary__ConnectionDetails='<mongodb-connection-string>'
103
105
  Cratis__Chronicle__Sinks__Configurations__reporting__Type=SQL
104
106
  Cratis__Chronicle__Sinks__Configurations__reporting__ConnectionDetails=Host=pg;Database=reporting;Username=chronicle
105
107
  ```
@@ -11,7 +11,7 @@
11
11
  { "kind": "skill-contains", "file": "references/operations.md", "value": "single globally ordered job step" },
12
12
  { "kind": "skill-contains", "file": "references/operations.md", "value": "GetSequenceNumberError.NotFound" },
13
13
  { "kind": "skill-contains", "file": "references/sinks.md", "value": "\"reporting\": { \"type\": \"SQL\", \"connectionDetails\": \"Host=pg;Database=reporting;Username=chronicle\" }" },
14
- { "kind": "skill-contains", "file": "references/sinks.md", "value": "\"primary\": { \"type\": \"MongoDB\", \"connectionDetails\": \"mongodb://mongo:27017\" }" },
14
+ { "kind": "skill-contains", "file": "references/sinks.md", "value": "\"primary\": { \"type\": \"MongoDB\", \"connectionDetails\": \"<mongodb-connection-string>\" }" },
15
15
  { "kind": "skill-contains", "file": "references/sinks.md", "value": "Cratis__Chronicle__Sinks__Configurations__reporting__Type=SQL" },
16
16
  { "kind": "skill-contains", "value": "[named sinks](references/sinks.md) before adding or changing the section." }
17
17
  ]
@@ -4,6 +4,7 @@
4
4
  "fixtures": [],
5
5
  "assertions": [
6
6
  { "kind": "skill-contains", "value": "proof of approval" },
7
+ { "kind": "skill-contains", "value": "never pick the newest" },
7
8
  { "kind": "skill-contains", "value": "git merge-base --is-ancestor <base> origin/<target>" },
8
9
  { "kind": "skill-contains", "value": "never writes to" },
9
10
  { "kind": "skill-contains", "value": "gh api -X PATCH repos/OWNER/REPO/issues/comments/<id>" }
@@ -86,7 +86,10 @@ Stage admits v23 but refuses described handlers with STAGE-IMPL-002 in the rende
86
86
  Host and specification executor, including Stub mode: it emits no stubs. Hand-write
87
87
  the body against the declared contract as authorized gap-fill; do not claim that a
88
88
  pending requirement is implementation evidence. Moving the body into `handler file`
89
- keeps its RequirementId but does not admit that attached handler alongside `produces`.
89
+ keeps its RequirementId; beside unconditional `produces` it binds like any resolved
90
+ attached handler (above), while with no `produces`, `produces ... when`, or an empty
91
+ or unresolved body it still fails PLAY0800. Stage renders a body resolved in C#, but
92
+ still refuses a pending body or one resolved in another language with STAGE-IMPL-002.
90
93
 
91
94
  Validate the model root with `screenplay <root> --warnaserror`; expect no errors or
92
95
  warnings and PLAY0695 information. Run `screenplay test <root>` separately: body-reaching
@@ -11,6 +11,9 @@
11
11
  { "kind": "skill-contains", "value": "STAGE-ESM-016", "file": "references/date-comparisons.md" },
12
12
  { "kind": "skill-contains", "value": "Unsupported (`ImplementationBody`)", "file": "references/described-handlers.md" },
13
13
  { "kind": "skill-contains", "value": "including Stub mode", "file": "references/described-handlers.md" },
14
+ { "kind": "skill-contains", "value": "it binds like any resolved\nattached handler (above)", "file": "references/described-handlers.md" },
15
+ { "kind": "skill-contains", "value": "Stage renders a body resolved in C#", "file": "references/described-handlers.md" },
16
+ { "kind": "skill-contains", "value": "A pending `implementation` has no `file` or fence.", "file": "references/described-handlers.md" },
14
17
  { "kind": "skill-contains", "value": "DecisionStateChanged", "file": "references/protected-reads.md" },
15
18
  { "kind": "skill-contains", "value": "checkPortableMatchPattern", "file": "references/text-and-match-rules.md" },
16
19
  { "kind": "skill-contains", "value": "U+00A0", "file": "references/text-and-match-rules.md" },
@@ -164,7 +164,8 @@ Others send an edit request ([MCP loop](references/mcp-loop.md)).
164
164
  on disk while open, so after an apply do not re-request it; just say what changed.
165
165
 
166
166
  Handles are revision-bound, not durable IDs. Modules/features span fragments;
167
- after apply fetch fresh handles/revisions.
167
+ after apply fetch fresh handles/revisions. Repeated identical advisories (such as
168
+ PLAY0818/PLAY0819) are repaired occurrence by occurrence, never by message text or in bulk.
168
169
 
169
170
  On refusal, use `failureKind`, never message text ([failures/limits](references/mcp-loop.md#failures-use-failurekind-never-message-text)).
170
171
  After revision/disk/identity drift, reopen and re-propose. For `ApplyOutcomeUnknown`
@@ -265,6 +265,7 @@
265
265
  },
266
266
  { "kind": "skill-contains", "value": "`sink`, `module`, `seed`", "file": "references/language-reference.md" },
267
267
  { "kind": "skill-contains", "value": "| `PLAY0937` | Warning | A repeated identical `sink` line |", "file": "references/language-reference.md" },
268
- { "kind": "skill-contains", "value": "`ReadModelSyntax.sink` and `GraphSyntax.sink` hold the chosen name", "file": "references/language-reference.md" }
268
+ { "kind": "skill-contains", "value": "`ReadModelSyntax.sink` and `GraphSyntax.sink` hold the chosen name", "file": "references/language-reference.md" },
269
+ { "kind": "skill-contains", "value": "repaired occurrence by occurrence, never by message text or in bulk" }
269
270
  ]
270
271
  }
@@ -74,3 +74,15 @@ A model written before 4.248.0 can report PLAY0818/PLAY0819 on every list-screen
74
74
  each one against what the action means; a create action is `for screen` even when the row has a
75
75
  matching identifier. Compiler inference is authoring evidence only: Scene owns the runtime
76
76
  selection and form-input behavior.
77
+
78
+ ### Repair repeated advisories one occurrence at a time
79
+
80
+ PLAY0818 and PLAY0819 repeat with identical text for every action on a list screen. Never
81
+ repair by message text, by code or in bulk. For each occurrence:
82
+
83
+ 1. Read that diagnostic's own location and occurrence handle from `read-ast` or the repairs
84
+ view. Handles are revision-bound: refetch them after every apply.
85
+ 2. Decide what that action means: a create action is `for screen`; a row action is `for item`,
86
+ with explicit `with <input> from item.<field>` when several keys could bind.
87
+ 3. Propose one edit for that occurrence, apply it, and re-read.
88
+ 4. Confirm only that occurrence's diagnostic cleared and the others remain until decided.
@@ -3,6 +3,10 @@
3
3
  "input": "Declare the application shell, a screen template and a command form.",
4
4
  "fixtures": [],
5
5
  "assertions": [
6
+ { "kind": "skill-contains", "value": "PLAY0819", "file": "references/action-subjects.md" },
7
+ { "kind": "skill-contains", "value": "never bulk-accept", "file": "references/action-subjects.md" },
8
+ { "kind": "skill-contains", "value": "Repair repeated advisories one occurrence at a time", "file": "references/action-subjects.md" },
9
+ { "kind": "skill-contains", "value": "Handles are revision-bound: refetch them after every apply.", "file": "references/action-subjects.md" },
6
10
  { "kind": "skill-contains", "value": "registerQueryIdentity", "file": "references/scene-runtime-boundaries.md" },
7
11
  { "kind": "skill-contains", "value": "legacy plus identity registration", "file": "references/scene-runtime-boundaries.md" },
8
12
  { "kind": "skill-contains", "value": "Optional empty strings remain present", "file": "references/scene-runtime-boundaries.md" },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cratis/pi",
3
- "version": "7.159.0",
3
+ "version": "7.159.1",
4
4
  "description": "Configuration-aware Cratis AI integration for Pi",
5
5
  "type": "module",
6
6
  "files": [