@cratis/pi 7.180.0 → 7.181.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/hooks/scripts/cratis-cleanup-worktrees.sh +1 -0
- package/package/corpus/skills/cratis-screenplay-availability/SKILL.md +4 -2
- package/package/corpus/skills/cratis-screenplay-availability/references/review-checks.md +1 -1
- package/package/corpus/skills/cratis-screenplay-model-authoring/references/mcp-tools.md +2 -2
- package/package/corpus/skills/cratis-screenplay-model-authoring/verification.json +1 -1
- package/package/corpus/skills/cratis-screenplay-toolchain/SKILL.md +1 -1
- package/package/corpus/skills/cratis-screenplay-toolchain/references/diagnostics.md +2 -1
- package/package/corpus/skills/cratis-screenplay-toolchain/references/language-admission.md +1 -0
- package/package/corpus/skills/cratis-screenplay-toolchain/references/model-export-diff-rename.md +2 -2
- package/package/corpus/skills/cratis-screenplay-toolchain/references/screenplay-contract.json +1558 -42
- package/package/corpus/skills/cratis-screenplay-toolchain/references/screenplay-contract.version +1 -1
- package/package/corpus/skills/cratis-screenplay-toolchain/verification.json +1 -1
- package/package/corpus/skills/cratis-screenplay-ui-composition/references/action-subjects.md +17 -0
- package/package.json +1 -1
|
@@ -361,6 +361,7 @@ lsof_matches() {
|
|
|
361
361
|
} else if (path !~ /^\//) {
|
|
362
362
|
# Kernel/network object names are not filesystem paths. Unix sockets may have paths,
|
|
363
363
|
# so only their non-path addresses are exempt; unknown names may hide a target file.
|
|
364
|
+
if (kind != "" && kind != "cwd" && type ~ /^(rte|ndrv)$/) next
|
|
364
365
|
if (kind != "cwd" && type ~ /^(PIPE|NPOLICY|NEXUS|KQUEUE|IPv4|IPv6|systm|CHAN)$/) next
|
|
365
366
|
if (kind != "cwd" && type == "unix" && path ~ /^(->0x[[:xdigit:]]+|->\(none\)|@.*|[[:alnum:]_.-]*)$/) next
|
|
366
367
|
# Linux anonymous objects have typed pseudo-names, not filesystem paths.
|
|
@@ -121,8 +121,10 @@ module Fleet
|
|
|
121
121
|
- Code reads `context.Values.<Name>` or `ValuesAs<T>()` on `CommandContext`, `QueryContext`, `RuleContext`,
|
|
122
122
|
`PolicyContext` and `ProvideContext`.
|
|
123
123
|
- `host`, inline code and `file` sources are opaque: the reference evaluator reports a gate that reads one as
|
|
124
|
-
unsupported, never allowed or denied.
|
|
125
|
-
|
|
124
|
+
unsupported, never allowed or denied. A `provide` from `file <path>` or an inline `csharp` block is admitted from ESM v57
|
|
125
|
+
as an opaque implementation attachment (role `ProvideValue`); older models refuse it with PLAY0268. The evaluator never
|
|
126
|
+
runs it and treats every gate as available, so specifications run unchanged but cannot assert allowed or denied outcomes
|
|
127
|
+
that depend on a code `provide`; the host decides at run time.
|
|
126
128
|
- **Identity stays out of rules by default.** `RuleContext` sees `CausedBy`, not `Identity`; roles and claims belong in a
|
|
127
129
|
`policy`. A `provide` derived from `$context.identity` makes that value readable in a rule, so write it
|
|
128
130
|
only deliberately and say why.
|
|
@@ -41,7 +41,7 @@ with the construct address and the change to ask for; do not edit the model in a
|
|
|
41
41
|
sources mean the reference evaluator cannot decide a gate that reads them.
|
|
42
42
|
5. **Required versus optional.** Optional means "can be absent and the gate denies"; required means "absence refuses
|
|
43
43
|
the request". Check each value matches the intent for its readers.
|
|
44
|
-
6. **Executable claims.**
|
|
44
|
+
6. **Executable claims.** A `file` or inline-code `provide` (ESM v57) is an opaque attachment the reference evaluator never runs; do not claim a specification proved allowed or denied through it.
|
|
45
45
|
7. **Unprovided reads.** An `available when` reading a value nothing provides at that place (PLAY1138) stays closed.
|
|
46
46
|
|
|
47
47
|
## Verdict wording
|
|
@@ -415,11 +415,11 @@ Requires Screenplay 4.153.0 or later (`screenplay --version`) for `propose-renam
|
|
|
415
415
|
|
|
416
416
|
`screenplay rename` is the scriptable alternative to `propose-rename` plus `apply`, preserving identity for identity-bearing declarations (Screenplay 6.1.0 or later; see [export, compare and rename](../../cratis-screenplay-toolchain/references/model-export-diff-rename.md)).
|
|
417
417
|
|
|
418
|
-
Requires Screenplay 6.35.0 or later (`screenplay --version`) for provided-value rename
|
|
418
|
+
Requires Screenplay 6.35.0 or later (`screenplay --version`) for provided-value rename. A `provide` has no semantic identity to preserve. Resolve its declaration handle through the syntax index, supply current expected revisions and names to `propose-rename`, review the source diff and refusals, then `apply` only with the proposal's expected revisions. Address the CLI equivalent by declaring module/feature/slice plus the name, or the name alone at application scope.
|
|
419
419
|
|
|
420
420
|
Choose the outermost `provide` in the override chain: the planner rewrites it and overrides below it, and only the first path segment of `$context.<name>` reads proven to resolve to that chain. For example `$context.vessel.code` becomes `$context.ship.code`; the `.code` member, unrelated chains and plain strings are not renamed. Renaming an override, using a built-in context name, an overlapping provided name or a new name already read in scope refuses. So do opaque/unsupported reads and ambiguous reusable availability reads across separate chains. Inspect the refusal and coordinate typed repairs; never force a global replacement or fabricate an identity migration for `provide`.
|
|
421
421
|
|
|
422
|
-
Below the required version, upgrade the actual CLI/MCP or defer. Use CLI/MCP, not VS Code/Monaco or a TypeScript rename operation.
|
|
422
|
+
Below the required version, upgrade the actual CLI/MCP or defer. Use CLI/MCP, not VS Code/Monaco or a TypeScript rename operation. Check the installed version before proposing or applying the rename; this guidance promises no editor or TypeScript support.
|
|
423
423
|
|
|
424
424
|
`propose-rename` consults release-baseline mutability: without a
|
|
425
425
|
baseline it conservatively pins the previous effective name; an unadmitted event
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
{ "kind": "skill-contains", "value": "Requires Screenplay 6.35.0", "file": "references/mcp-tools.md" },
|
|
8
8
|
{ "kind": "skill-contains", "value": "first path segment", "file": "references/mcp-tools.md" },
|
|
9
9
|
{ "kind": "skill-contains", "value": "no semantic identity", "file": "references/mcp-tools.md" },
|
|
10
|
-
{ "kind": "skill-contains", "value": "6.
|
|
10
|
+
{ "kind": "skill-contains", "value": "Requires Screenplay 6.35.0 or later", "file": "references/mcp-tools.md" },
|
|
11
11
|
{ "kind": "skill-contains", "value": "view: \"typed-contexts\"", "file": "references/mcp-tools.md" },
|
|
12
12
|
{ "kind": "skill-contains", "value": "result.entries", "file": "references/mcp-tools.md" },
|
|
13
13
|
{ "kind": "skill-contains", "value": "destinationType", "file": "references/mcp-tools.md" },
|
|
@@ -178,7 +178,7 @@ with ordered imports means future files need explicit imports.
|
|
|
178
178
|
not legal compliance, retention or runtime subject realization. See
|
|
179
179
|
command-surface `references/context.md` and `references/compliance.md`.
|
|
180
180
|
|
|
181
|
-
`audience`, `availability`, `available` and `provide` diagnostics are PLAY1119-PLAY1141;
|
|
181
|
+
`audience`, `availability`, `available` and `provide` diagnostics are PLAY1119-PLAY1141; a `file` or inline-code `provide` needs ESM v57 (older: PLAY0268). Specifications treat every gate as available; opaque sources are unsupported, never allowed or denied. See `cratis-screenplay-availability`.
|
|
182
182
|
|
|
183
183
|
## Edit strategy
|
|
184
184
|
|
|
@@ -282,6 +282,7 @@ migration. Preview every repair; legal notes never move automatically.
|
|
|
282
282
|
| Code | Severity | Meaning / fix |
|
|
283
283
|
| --- | --- | --- |
|
|
284
284
|
| PLAY1148 | E | Invalid tag expectation: only `then` events accept literal `tag` or a single childless `no tags`; never combine them. See [then-event tags](../../cratis-screenplay-specifications/references/event-tags.md) (Requires Screenplay 6.31.0, ESM v55) |
|
|
285
|
+
| PLAY1166 | E | Invalid action presentation: `presentation` hints need a plain action with explicit `for item`; keys unique and nonempty, `placement` nonempty. Add `for item`, use a plain action or remove the hint. See [advisory row-menu placement](../../cratis-screenplay-ui-composition/references/action-subjects.md#advisory-row-menu-placement) |
|
|
285
286
|
| PLAY0558 | E | Module/feature/slice/command/read-model/reaction documentation must be one nonempty fenced Markdown block; remove repeats or fix the fence. Events retain PLAY0477. |
|
|
286
287
|
| PLAY0559 | W | Conflicting module/feature documentation across files; first wins. Choose one owning text; identical copies are accepted. |
|
|
287
288
|
| PLAY0572 | E | Malformed/unknown persona caller or body lines; use a declared top-level persona with no body. |
|
|
@@ -366,7 +367,7 @@ Requires a Screenplay release that carries design systems (next minor after 6.2.
|
|
|
366
367
|
|
|
367
368
|
## Provided values (PLAY1119-PLAY1129)
|
|
368
369
|
|
|
369
|
-
`provide` needs Screenplay 6.25.0. Fix by changing the model;
|
|
370
|
+
`provide` needs Screenplay 6.25.0. Fix by changing the model; a `file` or inline-code source needs ESM v57; older models refuse it with PLAY0268.
|
|
370
371
|
|
|
371
372
|
| Code | Fix |
|
|
372
373
|
| --- | --- |
|
|
@@ -40,6 +40,7 @@ exact language/semantic pairs; binding, reference execution and rendering are se
|
|
|
40
40
|
| v53 | `audience`, `availability` and `available` gates (decision 0162; PLAY1130-PLAY1141) | Serializes the gates; specifications and the reference evaluator treat every gate as available and report opaque `provide` sources as unsupported; earlier models keep their version and bytes | Admission by Stage is separate: a refusal such as `STAGE-ESM-016` means the model is not renderable yet, never a reason to drop the gate. See `../../cratis-screenplay-availability/SKILL.md` |
|
|
41
41
|
| v54 | A graph query `collect` (decision 0163; PLAY1144-PLAY1147) | Serializes the collects on the query; earlier models keep their version and bytes | Admission by Stage is separate: a refusal means the model is not renderable yet, never a reason to drop the collect. Check `cratis render` |
|
|
42
42
|
| v55 | `then` event `tag` lines or `no tags` | Exact ordered tag comparison, including duplicates; `expectedTags` absent/null means unchecked, `[]` means explicitly empty | Reference admission is not renderer admission; inspect bundled Stage support separately |
|
|
43
|
+
| v57 | `provide` from a `file` or inline code block (decision 0167) | Carries the body as an opaque `ProvideValue` implementation attachment; readers and writers below v57 refuse it with PLAY0268, and models without one keep their version and bytes | The reference evaluator never runs it and never yields allowed or denied; a runtime that lacks the attachment reports it unsupported |
|
|
43
44
|
|
|
44
45
|
Constructs of decision 0098 with no executable-model content need no version: application-level hooks in a layout's actions outlet (`default <id> title "..." slice <Slice>` with an optional indented `authorize <Policy>`), and a capture over events that copies a list (`lines = $.lines`) or fans out with `children lines identified by sku`. Check `screenplay --version` against the release that admitted v29 and v30 before relying on them. Decision 0115 withdrew 0098's command specification that states the public event its outbound Translate slice publishes: a specification runs only its own slice, so the Translate slice states the public event in its own `when append` specification.
|
|
45
46
|
|
package/package/corpus/skills/cratis-screenplay-toolchain/references/model-export-diff-rename.md
CHANGED
|
@@ -54,11 +54,11 @@ A reference the executable model does not hold refuses admission: CLI exit 1 wit
|
|
|
54
54
|
|
|
55
55
|
`screenplay rename <address> <new-name> [<folder>] [--kind <Command|EventContract|ReadModel|...>]` is the scriptable form of MCP `propose-rename` plus `apply`: for identity-bearing declarations, it repairs references across files, keeps the element's semantic identity, pins a renamed event's stored type name with `id`, and writes (creating on the first rename) `.screenplay/identities.json`. Exit 0 renamed, 1 refused, 2 could not run.
|
|
56
56
|
|
|
57
|
-
Requires Screenplay 6.35.0 or later (`screenplay --version`) to rename a provided value through this CLI or MCP `propose-rename
|
|
57
|
+
Requires Screenplay 6.35.0 or later (`screenplay --version`) to rename a provided value through this CLI or MCP `propose-rename`. A `provide` has no semantic identity to preserve. Address it by its declaring module/feature/slice plus its name, or just its name at application scope, for example `screenplay rename Billing.Invoices.vessel ship path/to/screenplays`.
|
|
58
58
|
|
|
59
59
|
Target the outermost declaration of the override chain. The planner renames it and its nested overrides, rewriting only the first path segment of each `$context.<name>` read proven to resolve to that chain; `$context.vessel.code` becomes `$context.ship.code`, not a payload-property rename. Unrelated chains and strings stay unchanged. Renaming an override, using a built-in context name, colliding with a provided name in an overlapping scope or capturing an existing read of the new name is refused. Unprovable opaque/unsupported reads, including ambiguous reusable availability reads across separate chains, also refuse: inspect the refusal and coordinate explicit typed edits where needed, never global replacement.
|
|
60
60
|
|
|
61
|
-
Below the required version, upgrade the actual CLI/MCP or defer the rename. Use CLI/MCP, not VS Code/Monaco or a TypeScript rename operation.
|
|
61
|
+
Below the required version, upgrade the actual CLI/MCP or defer the rename. Use CLI/MCP, not VS Code/Monaco or a TypeScript rename operation. Do not infer editor or TypeScript support. MCP proposal review/apply details: [model authoring](../../cratis-screenplay-model-authoring/references/mcp-tools.md).
|
|
62
62
|
|
|
63
63
|
## Trace a value's lineage
|
|
64
64
|
|