@cratis/pi 7.180.0 → 7.182.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/README.md +38 -2
- package/package/corpus/hooks/scripts/cratis-cleanup-worktrees.sh +3 -0
- package/package/corpus/hooks/scripts/cratis-guard-writes.sh +95 -18
- 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
|
@@ -553,14 +553,50 @@ and Pi:
|
|
|
553
553
|
```
|
|
554
554
|
|
|
555
555
|
`false` re-enables the manifest block in a Cratis repository; `true` allows manifest writes
|
|
556
|
-
in any repository, for targets that do not themselves block (see above). Merge this property into the existing configuration. An absent
|
|
557
|
-
or non-boolean setting uses the origin-based default. This setting never permits `.env` writes.
|
|
556
|
+
in any repository, for targets that do not themselves block (see above). Merge this property into the existing configuration. An absent
|
|
557
|
+
or non-boolean setting uses the origin-based default (an unparsable file protects the whole repository; see below). This setting never permits `.env` writes.
|
|
558
558
|
The protected basename list is unchanged; `package.json` is not part of this guard's manifest category.
|
|
559
559
|
|
|
560
560
|
This allowance is not authorization for unrelated upgrades: keep changes task-focused and
|
|
561
561
|
call out version bumps in the PR description. Other repositories retain the rule requiring
|
|
562
562
|
an explicit request; their setting is a mechanical opt-out, not a change to that rule.
|
|
563
563
|
|
|
564
|
+
#### Repository-declared protected paths
|
|
565
|
+
|
|
566
|
+
A repository can add its own agent-control paths with `protectedPaths` in its `.cratis/ai.json`:
|
|
567
|
+
|
|
568
|
+
```json
|
|
569
|
+
{ "protectedPaths": ["docs/release/*", "RELEASE.md", "deploy/"] }
|
|
570
|
+
```
|
|
571
|
+
|
|
572
|
+
Both the Write/Edit guard and the shell-write guard treat these exactly like the built-in controls:
|
|
573
|
+
same case-insensitive matching, same symlink and `..` normalisation, same
|
|
574
|
+
deny message and the same `CRATIS_HOOKS_ALLOW_PROTECTED_WRITES=1` override. The file read is the
|
|
575
|
+
`.cratis/ai.json` at the root of the repository that owns the target path, not the session's; globs are
|
|
576
|
+
relative to that root.
|
|
577
|
+
The list is additive: it cannot remove or weaken a built-in control, and `.cratis/ai.json` stays protected.
|
|
578
|
+
|
|
579
|
+
A declared entry takes one of three shapes, so exactly the same literal-prefix machinery as the built-in controls
|
|
580
|
+
(`.pi/extensions/*`, `.claude/settings.json`) protects it for every command shape, folder operands included (`rm -rf`,
|
|
581
|
+
`mv`, `rsync --delete`, `cp -r`, `tar -C`, `unzip -d`, `ln -sfn`, `find -delete`, `cd dir && …`):
|
|
582
|
+
|
|
583
|
+
- a literal **file** path: `tools/guard.sh` (a folder operand that contains it is protected too);
|
|
584
|
+
- a literal **folder** with a trailing `/`: `hooks/` (everything under it);
|
|
585
|
+
- a literal folder followed by a whole final segment `*`: `hooks/*` (the same as `hooks/`).
|
|
586
|
+
|
|
587
|
+
Segments use only `A-Z a-z 0-9 . _ - /`; a leading `./` is ignored. A `*` anywhere else is **not accepted**: inside a name
|
|
588
|
+
(`*.sh`, `settings*.json`, `src/*.ts`, `a*/b`), in a leading or middle segment, `**`, or alone. A name wildcard
|
|
589
|
+
crosses `/` for single files but cannot be matched against a folder operand, so it would be enforced for `Write` yet
|
|
590
|
+
missed by `rm -rf src/tests`. Also refused: `..`, `.` segments, empty segments, absolute paths and any other
|
|
591
|
+
character (`( ) | ! @ + ? [ ] { } \`, spaces, quotes, `$`, control or non-ASCII). Declare the folder, or the exact files.
|
|
592
|
+
Every enclosing repository's list applies, so a nested `.git` file or directory never hides the policy of an
|
|
593
|
+
ancestor repository (this holds for the built-in controls too).
|
|
594
|
+
|
|
595
|
+
Fail closed: if `.cratis/ai.json` cannot be read as one JSON object, or `protectedPaths` is not an array of at most 256
|
|
596
|
+
entries of the accepted shapes, the declared intent is unknowable, so **every** path in that repository is protected. The
|
|
597
|
+
deny message names `protectedPaths`, the first offending entry (when it can be found) and the accepted shapes; the
|
|
598
|
+
declaration is rejected rather than ignored so a mistake is noticed. An absent or `null` `protectedPaths` declares nothing.
|
|
599
|
+
|
|
564
600
|
**Blocked outright** (`PreToolUse` on `Bash`, exit 2): a `cratis chronicle` command that is not
|
|
565
601
|
read-only. The **cratis-chronicle-cli-operations** skill makes `--yes` the authorization boundary for
|
|
566
602
|
a live store and says a request to diagnose does not authorize a mutation; this guard enforces that.
|
|
@@ -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.
|
|
@@ -371,6 +372,8 @@ lsof_matches() {
|
|
|
371
372
|
# Anonymous-inode names are kernel objects whatever the reported type (for example a
|
|
372
373
|
# memory-mapped `anon_inode:[io_uring]` is type REG), so the name alone exempts them.
|
|
373
374
|
if (path ~ /^(anon_inode:)?\[[[:alnum:]_]+(:[0-9]+(,[0-9]+)*)?\]$/) next
|
|
375
|
+
# lsof truncates long names, leaving a digit/comma list ending in `...` with no closing bracket.
|
|
376
|
+
if (path ~ /^(anon_inode:)?\[[[:alnum:]_]+:[0-9,]*\.\.\.$/) next
|
|
374
377
|
if (type == "a_inode" && path ~ /^(anon_inode:)?[[:alnum:]_]+$/) next
|
|
375
378
|
if (type == "unix" && path ~ /^type=[[:upper:]]+( \([[:upper:]]+\))?$/) next
|
|
376
379
|
if (type == "netlink" && path ~ /^[[:upper:]_]+$/) next
|
|
@@ -389,29 +389,75 @@ authored_corpus_repository() {
|
|
|
389
389
|
return "$authored_cache_status"
|
|
390
390
|
}
|
|
391
391
|
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
392
|
+
# protectedPaths of one repository's .cratis/ai.json: globs relative to that root, additive to the built-ins.
|
|
393
|
+
# A declared entry is only (a) a literal file path (tools/guard.sh), (b) a literal folder with a trailing '/' (hooks/),
|
|
394
|
+
# or (c) a literal folder followed by a whole final segment '*' (hooks/*). A '*' anywhere else (inside a name such as
|
|
395
|
+
# *.sh or Source/*.ts, in a leading or middle segment, '**') would need a "could this folder hold a match" rule that
|
|
396
|
+
# folder operands (rm -rf, mv, rsync --delete, tar -C, unzip -d ...) cannot be given, so it is refused. The same literal-prefix
|
|
397
|
+
# machinery as the built-in controls then protects folders for every command shape. Characters: only A-Z a-z 0-9 . _ - /
|
|
398
|
+
# and that '*'. Anything else is refused.
|
|
399
|
+
protected_cache_root=""
|
|
400
|
+
protected_paths=()
|
|
401
|
+
protected_invalid=0
|
|
402
|
+
protected_config_root=""
|
|
403
|
+
protected_bad_entry=""
|
|
404
|
+
# The jq definition of a valid declared glob: the three accepted shapes (see above). Leading './' is
|
|
405
|
+
# dropped first, so the shape is judged on what is matched.
|
|
406
|
+
# shellcheck disable=SC2016
|
|
407
|
+
protected_glob_jq='
|
|
408
|
+
def norm: until(startswith("./") | not; .[2:]);
|
|
409
|
+
def shape: norm | split("/") as $s | ($s | length) as $n | ($s[-1]) as $last
|
|
410
|
+
| all($s[]; . != "." and . != "..") and all($s[:-1][]; length > 0 and (contains("*") | not))
|
|
411
|
+
and (($last | contains("*") | not) or ($last == "*" and $n > 1));
|
|
412
|
+
def valid: type == "string" and length > 0 and (startswith("/") | not)
|
|
413
|
+
and (explode | all(.[]; (. >= 48 and . <= 57) or (. >= 65 and . <= 90) or (. >= 97 and . <= 122) or . == 46 or . == 95 or . == 45 or . == 47 or . == 42))
|
|
414
|
+
and shape;
|
|
415
|
+
'
|
|
416
|
+
load_protected_paths() {
|
|
417
|
+
local root="$1" item index glob config="$1/.cratis/ai.json" items=() last
|
|
418
|
+
[ "$protected_cache_root" != "$root" ] || return 0
|
|
419
|
+
protected_cache_root="$root"
|
|
420
|
+
protected_paths=()
|
|
421
|
+
protected_invalid=0
|
|
422
|
+
protected_bad_entry=""
|
|
423
|
+
[ -e "$config" ] || [ -L "$config" ] || return 0
|
|
424
|
+
if [ -f "$config" ]; then
|
|
425
|
+
while IFS= read -r -d '' item; do items[${#items[@]}]="$item"; done < <(
|
|
426
|
+
jq -j -s "$protected_glob_jq"'
|
|
427
|
+
if length == 1 then .[0] else error("expected one JSON document") end
|
|
428
|
+
| (if type == "object" then .protectedPaths else error("expected an object") end)
|
|
429
|
+
| if . == null then []
|
|
430
|
+
elif type == "array" and length <= 256 and all(.[]; valid) then .
|
|
431
|
+
else error("invalid protectedPaths") end
|
|
432
|
+
| (.[], "ok") | ., "\u0000"' "$config" 2>/dev/null
|
|
433
|
+
)
|
|
402
434
|
fi
|
|
403
|
-
#
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
435
|
+
last=$((${#items[@]} - 1))
|
|
436
|
+
if [ "$last" -lt 0 ] || [ "${items[$last]}" != ok ]; then
|
|
437
|
+
protected_invalid=1
|
|
438
|
+
# Best effort: name the first offending entry, when the file is readable enough to find one.
|
|
439
|
+
protected_bad_entry="$(jq -r -s "$protected_glob_jq"'
|
|
440
|
+
first(.[0].protectedPaths[]? | select(valid | not) | tojson | gsub("[^ -~]"; "?")) // empty' "$config" 2>/dev/null | head -c 200)" || protected_bad_entry=""
|
|
441
|
+
return 0
|
|
442
|
+
fi
|
|
443
|
+
for ((index = 0; index < last; index++)); do
|
|
444
|
+
glob="${items[$index]}"
|
|
445
|
+
while [[ "$glob" == ./* ]]; do glob="${glob#./}"; done
|
|
446
|
+
case "$glob" in */) glob="$glob*" ;; esac
|
|
447
|
+
protected_paths[${#protected_paths[@]}]="$glob"
|
|
409
448
|
done
|
|
410
|
-
|
|
449
|
+
}
|
|
450
|
+
|
|
451
|
+
# Whether the repository at policy_root treats target (absolute) as a control, by its own policy only.
|
|
452
|
+
agent_control_in_root() {
|
|
453
|
+
local target="$1" policy_root="$2" target_rel managed pattern
|
|
411
454
|
if [[ "$destructive_mode" == 1 && ( "$target" == / || "$policy_root" == "$target" || "$policy_root" == "$target"/* ) ]]; then target_rel='.'
|
|
412
455
|
else relative_to "$target" "$policy_root"; target_rel="$REPLY"; fi
|
|
413
456
|
# Policy files remain controls even in the authored corpus repository.
|
|
414
457
|
if control_match "$target_rel" '.cratis/ai.manifest.json' '.cratis/ai.json'; then return 0; fi
|
|
458
|
+
load_protected_paths "$policy_root"
|
|
459
|
+
if [ "$protected_invalid" = 1 ]; then protected_config_root="$policy_root"; return 0; fi
|
|
460
|
+
if [ "${#protected_paths[@]}" -gt 0 ] && control_match "$target_rel" "${protected_paths[@]}"; then return 0; fi
|
|
415
461
|
if [ ! -f "$policy_root/.cratis/ai.manifest.json" ] && authored_corpus_repository "$policy_root"; then
|
|
416
462
|
return 1
|
|
417
463
|
fi
|
|
@@ -435,6 +481,33 @@ agent_control_target() {
|
|
|
435
481
|
control_match "$target_rel" "${control_patterns[@]}"
|
|
436
482
|
}
|
|
437
483
|
|
|
484
|
+
# The target is judged by the policy of every enclosing repository, innermost first: a nested .git (a directory in a
|
|
485
|
+
# checkout, a file in a linked worktree) never hides an ancestor's controls. Keep the addressed spelling here, even
|
|
486
|
+
# when an adapter directory is a symlink.
|
|
487
|
+
agent_control_target() {
|
|
488
|
+
local target="$1" directory
|
|
489
|
+
dir_of "$target"
|
|
490
|
+
directory="$REPLY"
|
|
491
|
+
if [ "$destructive_mode" = 1 ]; then
|
|
492
|
+
[ ! -d "$target" ] || directory="$target"
|
|
493
|
+
# A mutation of the repository or any containing directory reaches its controls too.
|
|
494
|
+
if [[ -n "$reference_root" && ( "$target" == / || "$reference_root" == "$target" || "$reference_root" == "$target"/* ) ]]; then
|
|
495
|
+
directory="$reference_root"
|
|
496
|
+
fi
|
|
497
|
+
fi
|
|
498
|
+
while :; do
|
|
499
|
+
while [ ! -e "$directory/.git" ]; do
|
|
500
|
+
[ "$directory" != "/" ] || return 1
|
|
501
|
+
dir_of "$directory"
|
|
502
|
+
directory="$REPLY"
|
|
503
|
+
done
|
|
504
|
+
if agent_control_in_root "$target" "$directory"; then return 0; fi
|
|
505
|
+
[ "$directory" != "/" ] || return 1
|
|
506
|
+
dir_of "$directory"
|
|
507
|
+
directory="$REPLY"
|
|
508
|
+
done
|
|
509
|
+
}
|
|
510
|
+
|
|
438
511
|
# ── Dependency manifests, lockfiles, SDK and NuGet configuration ──────────────
|
|
439
512
|
# Policy of one repository root: a boolean allowDependencyManifestWrites wins, else a github.com/Cratis origin.
|
|
440
513
|
repository_manifest_policy() {
|
|
@@ -571,7 +644,11 @@ fi
|
|
|
571
644
|
[ -n "$new_content" ] || new_content="$new_string"
|
|
572
645
|
if ! classify_file "$file"; then exit 0; fi
|
|
573
646
|
case "$classification" in
|
|
574
|
-
controls)
|
|
647
|
+
controls)
|
|
648
|
+
if [ -n "$protected_config_root" ]; then block \
|
|
649
|
+
"The repository's .cratis/ai.json is malformed${protected_bad_entry:+ at protectedPaths entry $protected_bad_entry} (protectedPaths must be an array of relative globs of letters, digits, . _ - and /, as a file 'tools/guard.sh', a folder 'locked/', or a folder with a whole final segment 'hooks/*'; a * inside a name is not accepted), so every path in this repository is treated as protected until a person fixes it." \
|
|
650
|
+
"Instead: report the problem; a person must repair .cratis/ai.json. An explicitly authorized protected write requires CRATIS_HOOKS_ALLOW_PROTECTED_WRITES=1 in the harness environment. Do not retry through a shell write."; fi
|
|
651
|
+
block \
|
|
575
652
|
"This target controls the agent's permissions or extensions, or belongs to an installed managed corpus/adapter tree. Agent Write/Edit calls may not alter their own controls or managed instructions." \
|
|
576
653
|
"Instead: report the intended change. Use 'cratis ai update' for managed files, or let a person change settings. An explicitly authorized protected write requires CRATIS_HOOKS_ALLOW_PROTECTED_WRITES=1 in the harness environment. Do not retry through a shell write." ;;
|
|
577
654
|
manifest) block \
|
|
@@ -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
|
|