@cratis/pi 7.48.0 → 7.48.3

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 (97) hide show
  1. package/package/corpus/harnesses/copilot/instructions/local-work-artifacts.instructions.md +6 -2
  2. package/package/corpus/harnesses/copilot/instructions/profiles.instructions.md +1 -1
  3. package/package/corpus/hooks/README.md +11 -5
  4. package/package/corpus/hooks/scripts/cratis-cleanup-worktrees.sh +44 -4
  5. package/package/corpus/prompts/ship-changes.prompt.md +4 -1
  6. package/package/corpus/rules/local-work-artifacts.md +6 -2
  7. package/package/corpus/rules/profiles.md +1 -1
  8. package/package/corpus/skills/cratis-application-slice-conformance/SKILL.md +2 -2
  9. package/package/corpus/skills/cratis-chronicle-event-modeling/SKILL.md +1 -1
  10. package/package/corpus/skills/cratis-event-model-diagram/SKILL.md +1 -1
  11. package/package/corpus/skills/cratis-screenplay-automations-and-translations/SKILL.md +4 -4
  12. package/package/corpus/skills/cratis-screenplay-automations-and-translations/references/audit-format.md +1 -1
  13. package/package/corpus/skills/cratis-screenplay-automations-and-translations/references/automation-patterns.md +3 -3
  14. package/package/corpus/skills/cratis-screenplay-automations-and-translations/references/cases-to-specify.md +1 -1
  15. package/package/corpus/skills/cratis-screenplay-automations-and-translations/references/provenance.md +2 -2
  16. package/package/corpus/skills/cratis-screenplay-automations-and-translations/references/public-events-and-direction.md +2 -2
  17. package/package/corpus/skills/cratis-screenplay-automations-and-translations/references/todo-list-example.md +1 -1
  18. package/package/corpus/skills/cratis-screenplay-captures-and-reactions/SKILL.md +6 -6
  19. package/package/corpus/skills/cratis-screenplay-captures-and-reactions/references/invocation-identity.md +3 -3
  20. package/package/corpus/skills/cratis-screenplay-captures-and-reactions/references/product-sources.md +1 -1
  21. package/package/corpus/skills/cratis-screenplay-captures-and-reactions/references/specifying-triggers-and-clock.md +1 -1
  22. package/package/corpus/skills/cratis-screenplay-command-surface/SKILL.md +3 -3
  23. package/package/corpus/skills/cratis-screenplay-command-surface/references/compliance.md +1 -1
  24. package/package/corpus/skills/cratis-screenplay-command-surface/references/context.md +1 -1
  25. package/package/corpus/skills/cratis-screenplay-command-surface/references/enum-numbers.md +1 -1
  26. package/package/corpus/skills/cratis-screenplay-delivery-planning/SKILL.md +1 -1
  27. package/package/corpus/skills/cratis-screenplay-delivery-planning/references/slice-counting.md +1 -1
  28. package/package/corpus/skills/cratis-screenplay-discovery/SKILL.md +1 -1
  29. package/package/corpus/skills/cratis-screenplay-event-modeling/SKILL.md +3 -3
  30. package/package/corpus/skills/cratis-screenplay-event-modeling/references/parsed-not-runnable.md +2 -2
  31. package/package/corpus/skills/cratis-screenplay-legacy-extraction/SKILL.md +1 -1
  32. package/package/corpus/skills/cratis-screenplay-legacy-extraction/references/chronicle-observations.md +1 -1
  33. package/package/corpus/skills/cratis-screenplay-legacy-extraction/references/generate-notes.md +4 -5
  34. package/package/corpus/skills/cratis-screenplay-legacy-extraction/references/generated-recovery.md +1 -1
  35. package/package/corpus/skills/cratis-screenplay-legacy-extraction/references/prologue-safety.md +1 -1
  36. package/package/corpus/skills/cratis-screenplay-model-authoring/SKILL.md +1 -1
  37. package/package/corpus/skills/cratis-screenplay-model-authoring/references/language-reference.md +4 -4
  38. package/package/corpus/skills/cratis-screenplay-model-authoring/references/mcp-tools.md +3 -3
  39. package/package/corpus/skills/cratis-screenplay-model-authoring/references/model-notes.md +1 -1
  40. package/package/corpus/skills/cratis-screenplay-model-authoring/references/screen-authoring-workflow.md +1 -1
  41. package/package/corpus/skills/cratis-screenplay-model-review/SKILL.md +1 -1
  42. package/package/corpus/skills/cratis-screenplay-modeling-lifecycle/SKILL.md +1 -1
  43. package/package/corpus/skills/cratis-screenplay-modeling-lifecycle/references/stop-or-assume.md +1 -1
  44. package/package/corpus/skills/cratis-screenplay-modeling-lifecycle/references/verdicts-and-modes.md +1 -1
  45. package/package/corpus/skills/cratis-screenplay-projections/SKILL.md +1 -1
  46. package/package/corpus/skills/cratis-screenplay-read-surface/SKILL.md +1 -1
  47. package/package/corpus/skills/cratis-screenplay-read-surface/references/provenance.md +2 -2
  48. package/package/corpus/skills/cratis-screenplay-render-and-gap-fill/SKILL.md +3 -3
  49. package/package/corpus/skills/cratis-screenplay-render-and-gap-fill/references/drift-and-ledger.md +1 -1
  50. package/package/corpus/skills/cratis-screenplay-render-and-gap-fill/references/gap-fill-handoff.md +2 -2
  51. package/package/corpus/skills/cratis-screenplay-render-and-gap-fill/references/renderability-gate.md +2 -2
  52. package/package/corpus/skills/cratis-screenplay-scenario-coverage/SKILL.md +2 -2
  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 +1 -1
  55. package/package/corpus/skills/cratis-screenplay-scenario-coverage/references/spec-forms-by-mode.md +5 -5
  56. package/package/corpus/skills/cratis-screenplay-slice-design/SKILL.md +2 -2
  57. package/package/corpus/skills/cratis-screenplay-slice-design/references/worked-example.md +1 -1
  58. package/package/corpus/skills/cratis-screenplay-specifications/SKILL.md +3 -3
  59. package/package/corpus/skills/cratis-screenplay-specifications/references/examples-and-routes.md +2 -2
  60. package/package/corpus/skills/cratis-screenplay-streams-and-consistency/SKILL.md +4 -4
  61. package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/boundaries.md +1 -1
  62. package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/chronicle-boundaries.md +1 -1
  63. package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/consistency-and-concurrency.md +2 -2
  64. package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/evolution.md +1 -1
  65. package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/stream-patterns.md +2 -2
  66. package/package/corpus/skills/cratis-screenplay-toolchain/SKILL.md +42 -61
  67. package/package/corpus/skills/cratis-screenplay-toolchain/references/automation-translate-example.md +1 -1
  68. package/package/corpus/skills/cratis-screenplay-toolchain/references/cheat-sheet-example.md +7 -9
  69. package/package/corpus/skills/cratis-screenplay-toolchain/references/cheat-sheet.md +15 -18
  70. package/package/corpus/skills/cratis-screenplay-toolchain/references/diagnostics.md +33 -53
  71. package/package/corpus/skills/cratis-screenplay-toolchain/references/executable-example.md +1 -1
  72. package/package/corpus/skills/cratis-screenplay-toolchain/references/executable-subset.md +82 -93
  73. package/package/corpus/skills/cratis-screenplay-toolchain/references/generated-responses-example.md +4 -5
  74. package/package/corpus/skills/cratis-screenplay-toolchain/references/generation-strategies-example.md +1 -2
  75. package/package/corpus/skills/cratis-screenplay-toolchain/references/preferred-syntax.md +5 -9
  76. package/package/corpus/skills/cratis-screenplay-toolchain/references/production-routes-and-filters.md +7 -16
  77. package/package/corpus/skills/cratis-screenplay-toolchain/references/renderable-subset.md +38 -92
  78. package/package/corpus/skills/cratis-screenplay-toolchain/references/screenplay-contract-exceptions.json +4 -11
  79. package/package/corpus/skills/cratis-screenplay-toolchain/references/sources-and-streams.md +14 -19
  80. package/package/corpus/skills/cratis-screenplay-toolchain/references/traps.md +32 -35
  81. package/package/corpus/skills/cratis-screenplay-toolchain/references/verdicts.md +119 -52
  82. package/package/corpus/skills/cratis-screenplay-toolchain/verification.json +18 -24
  83. package/package/corpus/skills/cratis-screenplay-ui-composition/SKILL.md +3 -3
  84. package/package/corpus/skills/cratis-screenplay-ui-composition/references/screen-composition-contract.md +2 -2
  85. package/package/corpus/skills/cratis-stage-rendering-and-sandbox/SKILL.md +110 -167
  86. package/package/corpus/skills/cratis-stage-rendering-and-sandbox/references/admission.md +74 -170
  87. package/package/corpus/skills/cratis-stage-rendering-and-sandbox/references/case-tables-and-whole-numbers.md +15 -35
  88. package/package/corpus/skills/cratis-stage-rendering-and-sandbox/references/choosing-generation.md +4 -6
  89. package/package/corpus/skills/cratis-stage-rendering-and-sandbox/references/render-example.md +23 -27
  90. package/package/corpus/skills/cratis-stage-rendering-and-sandbox/references/rendered-application.md +21 -33
  91. package/package/corpus/skills/cratis-stage-rendering-and-sandbox/references/sandbox-and-specrunner.md +61 -92
  92. package/package/corpus/skills/cratis-stage-rendering-and-sandbox/references/scene-runtime.md +4 -12
  93. package/package/corpus/skills/cratis-stage-rendering-and-sandbox/verification.json +10 -14
  94. package/package.json +1 -1
  95. package/package/corpus/skills/cratis-screenplay-toolchain/references/doc-contradictions.md +0 -72
  96. package/package/corpus/skills/cratis-screenplay-toolchain/references/provenance.md +0 -81
  97. package/package/corpus/skills/cratis-screenplay-toolchain/references/versions.md +0 -341
@@ -43,8 +43,12 @@ dumps, and similar coordination files. These are **work records, not documentati
43
43
  main checkout when a pull request merges or you finish a task (hooks also run it after
44
44
  `gh pr merge` and at session start where the harness supports them, and **ship-changes**
45
45
  ends with it). It removes a worktree and its branch only on evidence the work reached the
46
- default branch — pushed is not merged — and never forces; ignored files such as a nested
47
- `.ai-work/`, `.env` files and local databases are deleted with it, so move anything you
46
+ default branch — pushed is not merged — and never forces. Worktrees with non-empty `.ai-work/`
47
+ directories are kept by default as "has untracked work records (.ai-work/)". Manual
48
+ `--include-work-records` permits deleting those records after you preserve what you need;
49
+ automatic hooks never opt in. Pin a long-lived worktree with `git worktree lock <path>`;
50
+ locked worktrees are always kept, even with opt-in. Other ignored files such as `.env` files
51
+ and local databases can still be deleted with a removed worktree, so move anything you
48
52
  still need out first. Do not hand-remove worktrees or `git branch -D` a delivered branch
49
53
  when the script can; and `gh pr merge --delete-branch` from inside a worktree leaves the
50
54
  worktree and branch behind, which is why the script exists. If the branch must outlive the
@@ -280,7 +280,7 @@ the first `apply` write creates it. `cratis ai install` also creates no model
280
280
  folder unless the project configured a root. Older CLIs create the resolved model root at
281
281
  server startup (`Screenplay/` when no `.play` files, `Source/` or `src/` exist); upgrade before using the automatically selected MCP server in a
282
282
  repository without a model. In Pi, when every selected path to Screenplay goes through an application profile and no root is configured, a missing, older or unavailable CLI leaves its MCP tools inactive with one informational UI notice (none in headless mode); an independent non-application path to Screenplay or a configured root still surfaces startup errors. See the toolchain skill's
283
- [version reference](../../../skills/cratis-screenplay-toolchain/references/versions.md).
283
+ [tool versions](../../../skills/cratis-screenplay-toolchain/SKILL.md).
284
284
 
285
285
  ## How to Use Profiles
286
286
 
@@ -70,8 +70,9 @@ It removes only on **evidence of delivery**, never on a guess: the tip is merged
70
70
  and was integrated rather than merely sitting on the default branch's first-parent history (where a
71
71
  brand-new empty branch sits), or it is merged and its upstream is gone, or GitHub reports a merged pull
72
72
  request whose head is exactly that tip. It never forces: a dirty, locked or current worktree is kept, as
73
- is anything undelivered, and every kept item is reported with its reason. Ignored files (`node_modules`,
74
- build output, `.ai-work/`) go with a delivered worktree; they are the disk being reclaimed.
73
+ is anything undelivered, and every kept item is reported with its reason. Worktrees with non-empty
74
+ `.ai-work/` directories are kept as "has untracked work records (.ai-work/)" by default, including
75
+ ignored records. Other ignored files (`node_modules`, build output) go with a delivered worktree.
75
76
 
76
77
  - **When it runs.** After a Bash command that delivers or integrates work, and at the start of every
77
78
  session, so orphans left by any earlier session, crash or harness are collected too.
@@ -79,9 +80,14 @@ build output, `.ai-work/`) go with a delivered worktree; they are the disk being
79
80
  Harnesses with no hook wiring (Copilot, Cursor, OpenCode) rely on the **ship-changes** prompt, whose
80
81
  final step runs the same script, and on running it by hand.
81
82
  - **By hand.** `bash .cratis/ai/hooks/scripts/cratis-cleanup-worktrees.sh [--dry-run]` from any worktree;
82
- run from the main checkout to also collect the worktree you are standing in.
83
- - **Self-test.** `--self-test` plants delivered, dirty, unmerged and brand-new cases and fails if any is
84
- handled wrongly.
83
+ run from the main checkout to also collect the worktree you are standing in. Add
84
+ `--include-work-records` only after preserving any records you still need: it permits deleting
85
+ `.ai-work/` content, but never overrides locks or other safety checks. Hook mode ignores this flag;
86
+ automatic hooks never opt in.
87
+ - **Pin a long-lived worktree.** Use `git worktree lock <path>` to keep it out of cleanup; release the
88
+ pin with `git worktree unlock <path>` when ready.
89
+ - **Self-test.** `--self-test` plants delivered, dirty, unmerged, brand-new, work-record and locked cases
90
+ (including detached locks), checks manual opt-in and hook protection, and fails if any is handled wrongly.
85
91
  - **Opt out.** `CRATIS_HOOKS_SKIP_CLEANUP=1`.
86
92
 
87
93
  ## What is enforced
@@ -12,10 +12,14 @@
12
12
  # 2. its tip is merged into origin/<default> and its upstream is gone (the PR branch was deleted), or
13
13
  # 3. GitHub reports a merged pull request whose head commit is exactly this tip.
14
14
  # Anything else is KEPT and reported with the reason. Nothing is ever forced: a dirty, locked or
15
- # current worktree is kept, and `git worktree remove` is never given --force.
15
+ # current worktree is kept, as is one holding .ai-work/ records unless explicitly opted in.
16
+ # `git worktree remove` is never given --force.
16
17
  #
17
18
  # Usage:
18
- # cratis-cleanup-worktrees.sh [--dry-run] [--quiet] [--no-fetch] run in the repository (any worktree)
19
+ # cratis-cleanup-worktrees.sh [--dry-run] [--quiet] [--no-fetch] [--include-work-records]
20
+ # run in the repository (any worktree)
21
+ # --include-work-records allow deletion of .ai-work/ records
22
+ # by hand only; ignored in hook mode
19
23
  # cratis-cleanup-worktrees.sh --hook Claude hook mode: reads the hook JSON
20
24
  # on stdin, acts only when relevant
21
25
  # cratis-cleanup-worktrees.sh --self-test plants cases and fails if any is wrong
@@ -25,11 +29,12 @@
25
29
  # shellcheck disable=SC2016 # the self-test checks are single-quoted on purpose: they are eval-ed later
26
30
  set -uo pipefail
27
31
 
28
- DRY=0; QUIET=0; FETCH=1; HOOK=0; SELFTEST=0
32
+ DRY=0; QUIET=0; FETCH=1; HOOK=0; SELFTEST=0; INCLUDE_WORK_RECORDS=0
29
33
  for a in "$@"; do
30
34
  case "$a" in
31
35
  --dry-run) DRY=1 ;; --quiet) QUIET=1 ;; --no-fetch) FETCH=0 ;;
32
36
  --hook) HOOK=1; QUIET=1 ;; --self-test) SELFTEST=1 ;;
37
+ --include-work-records) INCLUDE_WORK_RECORDS=1 ;;
33
38
  *) echo "cratis-cleanup-worktrees: unknown argument '$a'" >&2; exit 2 ;;
34
39
  esac
35
40
  done
@@ -37,6 +42,7 @@ done
37
42
  # ── Hook mode: decide whether this event is worth a sweep ─────────────────────
38
43
  EVENT="PostToolUse"
39
44
  if [ "$HOOK" = 1 ]; then
45
+ INCLUDE_WORK_RECORDS=0
40
46
  payload=''; IFS= read -r -d '' payload || true
41
47
  [ "${CRATIS_HOOKS_SKIP_CLEANUP:-}" = 1 ] && exit 0
42
48
  case "$payload" in *'"SessionStart"'*) EVENT="SessionStart" ;; esac
@@ -57,6 +63,7 @@ fi
57
63
  if [ "$SELFTEST" = 1 ]; then
58
64
  self=$(cd "$(dirname "$0")" && pwd)/$(basename "$0")
59
65
  t=$(mktemp -d "${TMPDIR:-/tmp}/cleanup-selftest.XXXXXX"); trap 'rm -rf "$t"' EXIT
66
+ t=$(cd "$t" && pwd -P)
60
67
  export GIT_AUTHOR_NAME=t GIT_AUTHOR_EMAIL=t@t GIT_COMMITTER_NAME=t GIT_COMMITTER_EMAIL=t@t CRATIS_CLEANUP_NO_GH=1
61
68
  git init -q --bare -b main "$t/origin.git"
62
69
  git clone -q "$t/origin.git" "$t/repo" 2>/dev/null; cd "$t/repo" || exit 2
@@ -66,6 +73,16 @@ if [ "$SELFTEST" = 1 ]; then
66
73
  mk dirty; (cd "$t/wt-dirty" && echo x > x && git add x && git commit -qm x)
67
74
  mk unmerged; (cd "$t/wt-unmerged" && echo u > u && git add u && git commit -qm u)
68
75
  mk fresh # brand new, no commits: must survive
76
+ for b in records empty-records locked locked-detached; do
77
+ mk "$b"; (cd "$t/wt-$b" && echo "$b" > "$b" && git add "$b" && git commit -qm "$b")
78
+ git merge -q --no-ff "$b" -m "merge $b"
79
+ done
80
+ mkdir "$t/wt-records/.ai-work" "$t/wt-empty-records/.ai-work"
81
+ echo '.ai-work/' >> "$t/repo/.git/info/exclude"
82
+ echo handoff > "$t/wt-records/.ai-work/.handoff"
83
+ git -C "$t/wt-locked-detached" checkout -q --detach
84
+ git worktree lock "$t/wt-locked"
85
+ git worktree lock --reason pinned "$t/wt-locked-detached"
69
86
  git branch loose-delivered main; (git checkout -q loose-delivered && echo l > l && git add l && git commit -qm l && git checkout -q main)
70
87
  git merge -q --no-ff delivered -m "merge delivered" && git merge -q --no-ff dirty -m "merge dirty" && git merge -q --no-ff loose-delivered -m "merge loose"
71
88
  git push -q origin main
@@ -82,7 +99,23 @@ if [ "$SELFTEST" = 1 ]; then
82
99
  chk "fresh branch kept" 'git rev-parse -q --verify refs/heads/fresh >/dev/null'
83
100
  chk "main kept" 'git rev-parse -q --verify refs/heads/main >/dev/null'
84
101
  chk "report names the removal" 'printf "%s" "$out" | grep -q "removed worktree"'
85
- [ "$fail" = 0 ] && echo "cratis-cleanup-worktrees self-test: 10 checks passed" && exit 0
102
+ chk "work records kept" '[ -f "$t/wt-records/.ai-work/.handoff" ]'
103
+ chk "work records branch kept" 'git rev-parse -q --verify refs/heads/records >/dev/null'
104
+ chk "work records reason reported" 'printf "%s" "$out" | grep -Fq "has untracked work records (.ai-work/)"'
105
+ chk "empty work records removed" '[ ! -d "$t/wt-empty-records" ]'
106
+ chk "locked worktree kept" '[ -d "$t/wt-locked" ]'
107
+ chk "locked branch kept" 'git rev-parse -q --verify refs/heads/locked >/dev/null'
108
+ chk "locked reason reported" 'printf "%s" "$out" | grep -Fq "worktree $t/wt-locked (locked): locked"'
109
+ chk "locked detached kept" '[ -d "$t/wt-locked-detached" ]'
110
+ chk "locked detached reported" 'printf "%s" "$out" | grep -Fq "worktree $t/wt-locked-detached (detached): locked"'
111
+ out=$(printf '%s' '{"hook_event_name":"SessionStart"}' | "$self" --no-fetch --include-work-records --hook 2>&1) || { echo "FAIL: hook exit $?"; echo "$out"; exit 1; }
112
+ chk "hook ignores opt-in" '[ -f "$t/wt-records/.ai-work/.handoff" ]'
113
+ out=$("$self" --no-fetch --include-work-records 2>&1) || { echo "FAIL: opt-in exit $?"; echo "$out"; exit 1; }
114
+ chk "opt-in removes work records" '[ ! -d "$t/wt-records" ]'
115
+ chk "opt-in removes branch" '! git rev-parse -q --verify refs/heads/records >/dev/null'
116
+ chk "opt-in keeps locked" '[ -d "$t/wt-locked" ]'
117
+ chk "opt-in keeps locked detached" '[ -d "$t/wt-locked-detached" ]'
118
+ [ "$fail" = 0 ] && echo "cratis-cleanup-worktrees self-test: 24 checks passed" && exit 0
86
119
  echo "$out"; exit 1
87
120
  fi
88
121
 
@@ -134,6 +167,13 @@ process_worktree() {
134
167
  if ! ev=$(delivered "$sha" "$br" "$([ -n "$br" ] && track_of "$br")"); then
135
168
  note_kept "worktree $wt ($name): work not delivered to $default"; return 0
136
169
  fi
170
+ if [ "$INCLUDE_WORK_RECORDS" = 0 ] && [ -d "$wt/.ai-work" ]; then
171
+ local records
172
+ if ! records=$(find "$wt/.ai-work/." -mindepth 1 -maxdepth 1 -print -quit); then
173
+ note_kept "worktree $wt ($name): could not inspect work records (.ai-work/)"; return 0
174
+ fi
175
+ if [ -n "$records" ]; then note_kept "worktree $wt ($name): has untracked work records (.ai-work/)"; return 0; fi
176
+ fi
137
177
  if [ -n "$(git -C "$wt" status --porcelain 2>/dev/null)" ]; then note_kept "worktree $wt ($name): delivered but has uncommitted changes"; return 0; fi
138
178
  local kb; kb=$(du -sk "$wt" 2>/dev/null | awk '{print $1}')
139
179
  if [ "$DRY" = 1 ]; then note_removed "worktree $wt ($name): would remove, $ev"; return 0; fi
@@ -61,7 +61,10 @@ cost real disk and accumulate across sessions. After the merge succeeds:
61
61
  1. Leave the worktree you worked in: `cd` to the main checkout (`git worktree list` shows it first).
62
62
  2. Run `bash .cratis/ai/hooks/scripts/cratis-cleanup-worktrees.sh` and report its summary line.
63
63
  It fetches, checks out nothing, and removes only worktrees and local branches whose work is
64
- verifiably on the default branch (this one included); it never forces and reports what it kept and why.
64
+ verifiably on the default branch; it never forces and reports what it kept and why. Worktrees holding
65
+ non-empty `.ai-work/` directories are kept by default. Preserve any needed records before a manual
66
+ `--include-work-records` opt-in; automatic hooks never opt in. Use `git worktree lock <path>` to pin a
67
+ long-lived worktree; locked worktrees remain kept even with opt-in.
65
68
  3. `git switch main && git pull --ff-only` in the main checkout so it matches the merged result.
66
69
 
67
70
  Claude Code and Pi also run the script from a hook after `gh pr merge` and at session start; running it
@@ -42,8 +42,12 @@ dumps, and similar coordination files. These are **work records, not documentati
42
42
  main checkout when a pull request merges or you finish a task (hooks also run it after
43
43
  `gh pr merge` and at session start where the harness supports them, and **ship-changes**
44
44
  ends with it). It removes a worktree and its branch only on evidence the work reached the
45
- default branch — pushed is not merged — and never forces; ignored files such as a nested
46
- `.ai-work/`, `.env` files and local databases are deleted with it, so move anything you
45
+ default branch — pushed is not merged — and never forces. Worktrees with non-empty `.ai-work/`
46
+ directories are kept by default as "has untracked work records (.ai-work/)". Manual
47
+ `--include-work-records` permits deleting those records after you preserve what you need;
48
+ automatic hooks never opt in. Pin a long-lived worktree with `git worktree lock <path>`;
49
+ locked worktrees are always kept, even with opt-in. Other ignored files such as `.env` files
50
+ and local databases can still be deleted with a removed worktree, so move anything you
47
51
  still need out first. Do not hand-remove worktrees or `git branch -D` a delivered branch
48
52
  when the script can; and `gh pr merge --delete-branch` from inside a worktree leaves the
49
53
  worktree and branch behind, which is why the script exists. If the branch must outlive the
@@ -279,7 +279,7 @@ the first `apply` write creates it. `cratis ai install` also creates no model
279
279
  folder unless the project configured a root. Older CLIs create the resolved model root at
280
280
  server startup (`Screenplay/` when no `.play` files, `Source/` or `src/` exist); upgrade before using the automatically selected MCP server in a
281
281
  repository without a model. In Pi, when every selected path to Screenplay goes through an application profile and no root is configured, a missing, older or unavailable CLI leaves its MCP tools inactive with one informational UI notice (none in headless mode); an independent non-application path to Screenplay or a configured root still surfaces startup errors. See the toolchain skill's
282
- [version reference](../skills/cratis-screenplay-toolchain/references/versions.md).
282
+ [tool versions](../skills/cratis-screenplay-toolchain/SKILL.md).
283
283
 
284
284
  ## How to Use Profiles
285
285
 
@@ -38,8 +38,8 @@ other infrastructure. Change behaviour in the model first, never in managed outp
38
38
  ## Verified product sources
39
39
 
40
40
  This skill is a method: it names no API of its own. Product facts it relies on are pinned
41
- to these tags; when the Screenplay skills are installed their `references/versions.md`
42
- (in `cratis-screenplay-toolchain`) holds the full table.
41
+ to these tags; when the Screenplay skills are installed their `SKILL.md`
42
+ (in `cratis-screenplay-toolchain`) explains how to read the installed tool versions.
43
43
 
44
44
  | Fact used here | Source |
45
45
  | --- | --- |
@@ -42,7 +42,7 @@ Verified against **Cratis/Chronicle v19.50.1**:
42
42
  `ProtectedValues/EncryptedAttribute.cs`, `EventSources/`, `Events/PublicAttribute.cs`,
43
43
  `Sinks/PublishToAttribute.cs`, and `Events/Constraints/ClosesStreamAttribute.cs`
44
44
  (paths under `Source/Clients/DotNET/` unless otherwise stated).
45
- Current version pins: `cratis-screenplay-toolchain` `references/versions.md`.
45
+ Tool versions: `cratis-screenplay-toolchain` `SKILL.md`.
46
46
 
47
47
  | Package | Purpose |
48
48
  | --- | --- |
@@ -21,7 +21,7 @@ before relying on a construct.
21
21
 
22
22
  The Cratis artifacts a diagram refers to were originally checked against `Cratis.Chronicle`
23
23
  18.3.0 and re-read against Chronicle 19.50.0 and the Arc query and command surface it is used with
24
- (current pins: `cratis-screenplay-toolchain` `references/versions.md`). The Mermaid claim above is
24
+ (tool versions: `cratis-screenplay-toolchain` `SKILL.md`). The Mermaid claim above is
25
25
  external and was not re-verified here.
26
26
 
27
27
  ## What an event model is
@@ -40,8 +40,8 @@ identity, effect and pending-work contract at that point; do not postpone it to
40
40
  - Reaction `runs as system role "<Role>"` declares an invocation actor (ESM v10).
41
41
  Without it the invoke has no caller. Historical CLI 3.41.0's 4.114.0 compiler
42
42
  rejected the syntax (PLAY0137); previous CLI 3.46.1 refused ESM v10
43
- at render admission (CLI-RENDER-004). The pinned CLI/Stage pair (toolchain
44
- `references/versions.md`) renders role/authenticated reaction identity; claim-reading/opaque gates retain STAGE-ESM-034. Checked model/diagnostics: captures-and-reactions
43
+ at render admission (CLI-RENDER-004). The CLI/Stage pair (toolchain
44
+ `references/renderable-subset.md`) renders role/authenticated reaction identity; claim-reading/opaque gates retain STAGE-ESM-034. Checked model/diagnostics: captures-and-reactions
45
45
  `references/invocation-identity.md`.
46
46
 
47
47
  ## Effect guarantees and recovery traps
@@ -72,7 +72,7 @@ even when it blocks binding. Never record bearer tokens, magic links or signed U
72
72
  (a keyed hash or reference at most), and never put PII on the event-source id.
73
73
 
74
74
  ## Verified product sources
75
- Current pins: toolchain `references/versions.md`. Language claims were re-read at Screenplay v4.139.0,
75
+ Tool versions: toolchain `SKILL.md`. Language claims were re-read at Screenplay v4.139.0,
76
76
  renderer claims at Stage v4.89.1 (`Documentation/reference/reaction-rendering.md:6-98`,
77
77
  `Source/Rendering.Cratis/Semantics/SemanticVersionFeatureAdmission.cs:25-46`): supported
78
78
  event-triggered Automation renders; Translate/captures and refused reactions stay gap-fill. The
@@ -86,7 +86,7 @@ runtime facts at Arc v22.72.0 and Chronicle v19.50.1. Older reads kept as histor
86
86
  | Arc | v22.72.0 (read; v22.50.5 earlier) | `ExecuteCommandsAsSystemAttribute` (since v20.56.0); mixed events-and-commands reactor returns (since v22.72.0) |
87
87
  | Chronicle | v19.50.1 (read; v19.32.0 earlier) | `OnceOnlyAttribute`, `ReactorDelivery`, `Documentation/code-analysis/CHR0022.mdx` and `Documentation/reactors/delivery-identity.mdx` |
88
88
 
89
- Read `references/versions.md` in `cratis-screenplay-toolchain` when selecting a tool or checking the full version and capability pins. Reverify before claiming
89
+ Read `SKILL.md` in `cratis-screenplay-toolchain` when selecting a tool; read the installed versions with `screenplay --version` and `cratis --version`. Reverify before claiming
90
90
  another version behaves the same.
91
91
 
92
92
  ## When / when not
@@ -12,7 +12,7 @@ technique: partial work stays visible and nothing is skipped because it looked r
12
12
  Result is `complete` only when every column is filled or says why it does not apply (for example
13
13
  "direct effect: immediate, internal, cannot fail"). `open` names the unresolved decision and who
14
14
  answers. `blocked` names the actual capability gap with intended behavior. For example,
15
- the pinned CLI/Stage pair (toolchain `references/versions.md`) admits through ESM v15 to construct checks; role/authenticated reaction identity
15
+ the CLI/Stage pair (toolchain `references/renderable-subset.md`) admits through ESM v15 to construct checks; role/authenticated reaction identity
16
16
  renders, while claim-reading/opaque system gates still refuse STAGE-ESM-034. Previous CLI 3.46.1 refused v10 at the version gate
17
17
  with CLI-RENDER-004; do not report that historical refusal as the current gap.
18
18
 
@@ -72,9 +72,9 @@ Screenplay 4.125.0 declares the actor with reaction-level `runs as system role
72
72
  "<Role>"` (ESM v10); without it a gated invocation has no caller and denies.
73
73
  `given caller` is not an invocation actor. Role requirements remain enforced;
74
74
  claim conditions for this system principal remain unknown. Historical CLI 3.41.0's
75
- older compiler rejected the syntax (PLAY0137). The pinned CLI/Stage pair (toolchain
76
- `references/versions.md`) renders role/authenticated reaction identity; claim-reading/opaque gates retain STAGE-ESM-034.
77
- Previous CLI 3.46.1 refused v10 at its version gate; see toolchain `references/versions.md`.
75
+ older compiler rejected the syntax (PLAY0137). The CLI/Stage pair (toolchain
76
+ `references/renderable-subset.md`) renders role/authenticated reaction identity; claim-reading/opaque gates retain STAGE-ESM-034.
77
+ Previous CLI 3.46.1 refused v10 at its version gate.
78
78
  Use the checked model in captures-and-reactions `references/invocation-identity.md`.
79
79
  Arc gap-fill uses `[ExecuteCommandsAsSystem("<role>")]` for returned commands,
80
80
  not identity inferred from prose or an imperative pipeline call.
@@ -57,7 +57,7 @@ One spec in the slice does not cover the others.
57
57
  - Projection lag: the reaction's `reads` sees the queue before or after the closing fact?
58
58
  The decision must not depend on it (it is not protected).
59
59
 
60
- ## Spec limits (tool differences: `cratis-screenplay-toolchain` `references/versions.md`)
60
+ ## Spec limits (tool differences: `cratis-screenplay-toolchain` `SKILL.md`)
61
61
  - Current admitted Automation/Translate specifications run through standalone
62
62
  `screenplay test` or MCP `run-specifications`. Validate/render alone is not V4;
63
63
  report unsupported/unbound separately from passing scenarios.
@@ -43,8 +43,8 @@ binds); tool-qualified verdict text; the trusted-actor text now names `[ExecuteC
43
43
  `reactions.md`, `ReactionIdentityParser.cs`, `ReactionRefusalValidator.cs` and the
44
44
  binder's v10 selection; the checked scenario passed reference execution. CLI
45
45
  3.41.0's older parser and Stage 4.51.3's v7 planner were historical target limits.
46
- Previous CLI 3.46.1 refused v10 at its version gate. The pinned CLI/Stage pair
47
- (toolchain `references/versions.md`) renders role/authenticated reaction identity; claim-reading/opaque gates retain
46
+ Previous CLI 3.46.1 refused v10 at its version gate. The CLI/Stage pair
47
+ (toolchain `references/renderable-subset.md`) renders role/authenticated reaction identity; claim-reading/opaque gates retain
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.
@@ -120,7 +120,7 @@ Keep correlation and resulting private events in the model and report the runtim
120
120
  ESM v9 shipped in Screenplay 4.117.0 and is selected only by use of public events,
121
121
  origins, direction, event-target builders or events-source captures. At 4.135.0,
122
122
  publication reference scenarios execute; imported shapes still refuse binding.
123
- Stage 4.52.0 (previous CLI 3.46.1, history) audited only through v7. The pinned CLI/Stage pair (toolchain `references/versions.md`)
123
+ Stage 4.52.0 (previous CLI 3.46.1, history) audited only through v7. The CLI/Stage pair (toolchain `references/renderable-subset.md`)
124
124
  reaches construct admission through v15 but still refuses publication (STAGE-ESM-032), foreign
125
125
  events/events-source captures (STAGE-ESM-033); source admission is not rendering.
126
126
 
@@ -130,4 +130,4 @@ Source: Screenplay `v4.135.0:Documentation/screenplay/fixtures/public-events.pla
130
130
  Renderer source: Stage `v4.52.0:Source/Rendering.Cratis/Semantics/SemanticCratisAdmission.cs`
131
131
  and `v4.67.0:Source/Rendering.Cratis/Semantics/SemanticVersionFeatures.cs`.
132
132
  Diagnostics and repairs: toolchain `references/diagnostics.md`; version allocation:
133
- toolchain `references/versions.md`.
133
+ toolchain `references/executable-subset.md`.
@@ -9,7 +9,7 @@ closes the item. It binds on Screenplay 4.66.0 (`executableReady: true`), standa
9
9
  3.28.2. Historical rendering: 3.28.2 refused the whole model (`STAGE-ESM-016`),
10
10
  Stage 4.73.1 the reaction (`-024`). Stage 4.89.1 renders supported event reactions,
11
11
  but this model's clock/cascade specs remain refused (`-024`/`-011`); keep them intact. The cratis 3.27.1 bundle (4.60.1)
12
- rejected the Automation slice at binding with PLAY0268. Versions: `cratis-screenplay-toolchain` `references/versions.md`.
12
+ rejected the Automation slice at binding with PLAY0268. Versions: `cratis-screenplay-toolchain` `SKILL.md`.
13
13
 
14
14
  The first spec lists the whole cascade (`then` names every new fact: `CoursePassed`, and
15
15
  `CertificateSent` through the reaction), and `given clock` supplies the instant that
@@ -22,8 +22,8 @@ Markdown in project documentation; `.play` is the single flow model.
22
22
  ## Verified product sources
23
23
 
24
24
  Read [product sources](references/product-sources.md) for retained historical
25
- parser/binder probes and refusal/redelivery evidence. Current pins are in toolchain
26
- `references/versions.md`; historical examples are not current execution evidence.
25
+ parser/binder probes and refusal/redelivery evidence. Tool versions are covered in toolchain
26
+ `SKILL.md`; historical examples are not current execution evidence.
27
27
 
28
28
  ⚠️ **Which tool admits them depends on its Screenplay version.** The ESM level
29
29
  decides, not the slice type:
@@ -33,7 +33,7 @@ decides, not the slice type:
33
33
  reference runner executes them. Probed: the complete example below is
34
34
  `executableReady` over `screenplay mcp`.
35
35
  - **History:** the CLI 3.28.2 bundle (Screenplay 4.66.0) bound v6; the earlier 4.60.1 bundles
36
- refused it and falsely reported PLAY0285 (`references/versions.md`).
36
+ refused it and falsely reported PLAY0285 (toolchain `references/diagnostics.md`).
37
37
  - **CLI 3.57.0 / Stage 4.89.1** render supported event-triggered Automation, not
38
38
  Translate/captures, non-event triggers or opaque bodies (`-024`). Role/authenticated `runs as`
39
39
  and semantic `from` render; claim/opaque gates, mixed effects and unsupported mappings remain refused;
@@ -41,7 +41,7 @@ decides, not the slice type:
41
41
  citations: `cratis-stage-rendering-and-sandbox` `references/admission.md`.
42
42
 
43
43
  Model them whenever the `.play` file is the deliverable, and say which tool bound
44
- them (`cratis-screenplay-toolchain` `references/versions.md` for versions and messages).
44
+ them (`cratis-screenplay-toolchain` `references/diagnostics.md` for messages).
45
45
  Method (the four-part automation test, loops, translations versus automations):
46
46
  `cratis-screenplay-automations-and-translations`.
47
47
 
@@ -71,8 +71,8 @@ Read [invocation identity](references/invocation-identity.md) for the checked
71
71
  scenario, claim/unknown semantics and PLAY0647–0652/0557 diagnostics.
72
72
 
73
73
  Historical CLI 3.41.0's 4.114.0 compiler rejected this source with PLAY0137.
74
- Previous CLI 3.46.1 refused v10 (CLI-RENDER-004); the pinned CLI/Stage pair (toolchain
75
- `references/versions.md`) renders supported identity, refusing claim-reading/opaque gates (STAGE-ESM-034).
74
+ Previous CLI 3.46.1 refused v10 (CLI-RENDER-004); the CLI/Stage pair (toolchain
75
+ `references/renderable-subset.md`) renders supported identity, refusing claim-reading/opaque gates (STAGE-ESM-034).
76
76
  Stage emits Arc `[ExecuteCommandsAsSystem]`; refused scope uses authorized gap-fill. The attribute is for returned commands. Without that attribute
77
77
  Arc supplies no principal and `[Authorize]`/`[Roles]` deny. Each invoked command
78
78
  is atomic, not the whole cascade; earlier accepted facts remain after a later refusal.
@@ -71,12 +71,12 @@ module Work
71
71
 
72
72
  Historical CLI 3.41.0 bundled Screenplay 4.114.0, which did not parse `runs as`:
73
73
  the example's `cratis screenplay validate --executable --warnings-as-errors`
74
- returned PLAY0137, exit 5. This is not a current parser claim. The pinned CLI/Stage pair
75
- (`cratis-screenplay-toolchain/references/versions.md`) renders role-only/authenticated-only reaction invocation gates with `[ExecuteCommandsAsSystem]`;
74
+ returned PLAY0137, exit 5. This is not a current parser claim. The CLI/Stage pair
75
+ (`cratis-screenplay-toolchain/references/renderable-subset.md`) renders role-only/authenticated-only reaction invocation gates with `[ExecuteCommandsAsSystem]`;
76
76
  claim-reading or opaque gates still refuse STAGE-ESM-034 (including claim reads under `not`/`or`).
77
77
  Source: Stage `v4.89.1:Source/Rendering.Cratis/Semantics/SemanticCratisAdmission.ReactionIdentity.cs:11-28`;
78
78
  `Documentation/reference/reaction-rendering.md:57-59`. Previous CLI 3.46.1/Stage 4.52.0
79
- audited through v7 only (`references/versions.md` in toolchain).
79
+ audited through v7 only (toolchain `references/renderable-subset.md`).
80
80
  Clock/application-trigger identities have no Stage Arc realization either.
81
81
  Use authorized gap-fill with the model as contract; returned-command Arc identity
82
82
  uses `[ExecuteCommandsAsSystem]`, never permission inferred from a model header.
@@ -11,5 +11,5 @@
11
11
 
12
12
  The table records historical examples/probes, not current execution evidence.
13
13
  Refusal/redelivery guidance follows released v4.125.0 `reactions.md`/`specifications.md`.
14
- Current pins live in toolchain `references/versions.md`; reverify before promoting
14
+ Tool versions are covered in toolchain `SKILL.md`; reverify before promoting
15
15
  an old probe to that version.
@@ -19,7 +19,7 @@ specification IssuingTheWeeklyDigest
19
19
 
20
20
  Under `cratis` before 3.28.2 these actions parsed and were checked against the application
21
21
  but bound to nothing (`PLAY0268` names ESM v6, decision 0022); on 3.28.2 they bind.
22
- The pinned standalone tool (toolchain `versions.md`) executes admitted scenarios through `screenplay test`
22
+ The standalone tool (toolchain `SKILL.md`) executes admitted scenarios through `screenplay test`
23
23
  or MCP `run-specifications`; source compilation alone is authored evidence.
24
24
  Clock rules: the clock is UTC and exact; an
25
25
  occurrence fires once when it is **due after `given clock` and at or before
@@ -22,7 +22,7 @@ Markdown in project documentation; `.play` is the single flow model.
22
22
 
23
23
  ## Verified product sources
24
24
 
25
- Pins: toolchain `references/versions.md`; sources below. Compilation is not execution.
25
+ Tool versions: toolchain `SKILL.md`; sources below. Compilation is not execution.
26
26
 
27
27
  - `4.31.0`: original examples and executable boundaries; main `fd18129`: inline events, repairs, canonical `optional`.
28
28
  - `4.66.0` (`c89198b`): `handler`, code attachments, `persona` and compliance binding (`Semantics/SemanticModelBinder*.cs`, `Diagnostics/DiagnosticCodes.cs`).
@@ -370,7 +370,7 @@ Four contexts, and **what each omits is load-bearing** — when writing a code b
370
370
  ## Verify
371
371
 
372
372
  - [ ] Validate the complete model root with warnings as errors; name the tool,
373
- version and result. Pins: toolchain `references/versions.md`;
373
+ version and result. Tool versions: toolchain `SKILL.md`;
374
374
  bundle compatibility and execution are separate checks.
375
375
  - [ ] No unintended `PLAY0478` or `PLAY0479` information remains.
376
376
  - [ ] At most one command property carries `identifier`, and no event property does.
@@ -387,7 +387,7 @@ Four contexts, and **what each omits is load-bearing** — when writing a code b
387
387
  runnable or renderable without saying which tool admits it.
388
388
  - [ ] No event carries an optional property covering two situations.
389
389
 
390
- Compiler pins and admission: `cratis-screenplay-toolchain/references/versions.md`.
390
+ Compiler versions and admission: `cratis-screenplay-toolchain/SKILL.md`.
391
391
  Method: `cratis-screenplay-modeling-lifecycle` and `cratis-screenplay-slice-design`.
392
392
 
393
393
  ## Route near misses
@@ -100,7 +100,7 @@ Reverse generation is not the C# provider mapping above. Source authority: Arc
100
100
  secrets), `Source/DotNET/Screenplay/Emission/Concepts/ConceptSyntaxBuilder.cs`
101
101
  and `Source/DotNET/Screenplay/Analysis/Types/PersonalDataMarkings.cs`.
102
102
  SP0058 to SP0060 exist from Arc.Screenplay 22.61.0 (or earlier); SP0061 to SP0063 first ship in 22.70.0 (read at
103
- v22.70.0 and v22.72.0), so the full set described here needs 22.70.0 or later. CLI 3.53.1 bundles an Arc.Screenplay older than that (its version is in `cratis-screenplay-toolchain` `references/versions.md`), which has
103
+ v22.70.0 and v22.72.0), so the full set described here needs 22.70.0 or later. CLI 3.53.1 bundles an Arc.Screenplay older than that, which has
104
104
  none of SP0061 to SP0063, so the CLI shows none of them; check the generator package actually loaded.
105
105
 
106
106
  - Both `[Encrypted]` and `[NotAudited]` must be on the concept to recover
@@ -105,7 +105,7 @@ Checked at Screenplay 4.127.0: `$identity.<property>` is the same caller value a
105
105
  is supported, not deprecated. Historical `cratis` CLI 3.41.0 bundled Screenplay 4.114.0, which predated both:
106
106
  its parser rejected a top-level `identity` block (`PLAY0001`), and with `--executable` it read a
107
107
  `$identity.<property>` mapping as a raw expression (`PLAY0268`). Those checks used standalone 4.127.0;
108
- they are not current parser claims; compiler pins are in toolchain `references/versions.md`. Check current renderer
108
+ they are not current parser claims; compiler versions are covered in toolchain `SKILL.md`. Check current renderer
109
109
  admission separately before choosing caller mappings. Built-ins are `id`, `name`, `userName`,
110
110
  `isAuthenticated`, `roles`, `claims.<name>` (everything after `claims.` is opaque).
111
111
  Bare `$identity` reports PLAY0152; unknown properties report PLAY0155. Only
@@ -81,7 +81,7 @@ Consumers must **explicitly admit v12**. CLI 3.57.0 (Screenplay 4.147.1 / Stage
81
81
  4.89.1) admits through v15 and renders explicit numbers as `Member = N` (sparse
82
82
  and negative, `-0` as 0; unnumbered enums keep declaration order). Stage first
83
83
  admitted v12 in 4.76.0. Do not remove enum pins to fit an older consumer;
84
- report its admission gap. See toolchain `references/versions.md`.
84
+ report its admission gap. See toolchain `references/renderable-subset.md`.
85
85
 
86
86
  Sources checked at `v4.139.0`: `Documentation/screenplay/concepts.md`,
87
87
  `interoperability.md`, `diagnostics.md`, `mcp/authoring-tools.md`, decision 0065,
@@ -30,7 +30,7 @@ it is not planned work yet.
30
30
  - **Render is not free of effort, and gap-fill is not free of risk.** Stage renders
31
31
  `StateChange` and `StateView`; `Automation` and `Translate` are hand-written against the
32
32
  model as contract. Check admission per slice with `cratis-screenplay-render-and-gap-fill`
33
- (version pins: `cratis-screenplay-toolchain` `references/versions.md`) before pricing a slice as
33
+ (tool versions: `cratis-screenplay-toolchain` `SKILL.md`) before pricing a slice as
34
34
  rendered.
35
35
  - **Plans live in `.ai-work/`; tracking lives in GitHub issues** where the repository works
36
36
  that way. Never put a plan in the model, in `.cratis/`, or in a documentation folder.
@@ -25,7 +25,7 @@ Plan these as separate lines, not slice weight:
25
25
  - documentation and training.
26
26
 
27
27
  ## Realization check
28
- Before pricing a slice as rendered, run the admission probe in `cratis-screenplay-render-and-gap-fill` for the whole model. Do not restate version pins in a plan; cite `cratis-screenplay-toolchain` `references/versions.md` for the pair you used. A slice Stage refuses (an `STAGE-ESM-*` code) is hand-written work with the model as contract: price it as hand-written and record the refusal code.
28
+ Before pricing a slice as rendered, run the admission probe in `cratis-screenplay-render-and-gap-fill` for the whole model. Do not restate version pins in a plan; record the `screenplay --version` and `cratis --version` you used. A slice Stage refuses (an `STAGE-ESM-*` code) is hand-written work with the model as contract: price it as hand-written and record the refusal code.
29
29
 
30
30
  ## Weights
31
31
  Weights are the team's, calibrated from completed slices, not constants of the method. Start with a simple scale and let history replace it:
@@ -42,7 +42,7 @@ syntax and tool commands in `cratis-screenplay-toolchain`.
42
42
 
43
43
  ## Verified product sources
44
44
 
45
- Current pins are listed once in `cratis-screenplay-toolchain` `references/versions.md`. The
45
+ Tool versions are covered in `cratis-screenplay-toolchain` `SKILL.md`. The
46
46
  statements below were checked at these older tags (Screenplay v4.66.0 `c89198b`, cratis CLI v3.28.3,
47
47
  Stage v4.24.2, Arc v22.50.5, Chronicle v19.32.0), kept as provenance, not as current pins.
48
48
  Model notes use Screenplay `v4.144.0:Documentation/screenplay/model-notes.md:12-77`
@@ -107,7 +107,7 @@ is the fallback, and neither names the other's verdict. Versions and commands:
107
107
  - [ ] Every event is past tense, single-purpose, and carries no event-source id.
108
108
  - [ ] Personal data is classified on the `concept`, with a reason.
109
109
  - [ ] Specifications name the rejections, not only the happy path.
110
- - [ ] Bind with the runtime's compiler; pins: toolchain `references/versions.md`.
110
+ - [ ] Bind with the runtime's compiler; tool versions: toolchain `SKILL.md`.
111
111
  CLI 3.57.0 / Stage 4.89.1 admit through v15, including supported event Automation,
112
112
  generation strategies/responses, equality filters, enum numbers and compliance. Translate/captures
113
113
  and refused reactions remain gaps (Stage `references/admission.md`).
@@ -172,8 +172,8 @@ source is the single flow model.
172
172
 
173
173
  ## Verified product sources
174
174
 
175
- Current pins and which tool reports what live only in `cratis-screenplay-toolchain`
176
- `references/versions.md`; read it before choosing a tool or reporting a version-dependent verdict.
175
+ Which tool reports what, and how to read installed versions, live only in `cratis-screenplay-toolchain`
176
+ `SKILL.md`; read it before choosing a tool or reporting a version-dependent verdict.
177
177
  The nine-step examples compile with the standalone compiler 4.139.0 and their specifications run
178
178
  in the reference runner (compilation does not establish reference execution).
179
179
 
@@ -6,7 +6,7 @@ The binder selects v8 for event routes, v10 for declared reaction identity, v11
6
6
  exact-lowered Double-mode literals and v12 for non-positional enum numbers.
7
7
  Compliance checked against 4.142.0 `SemanticModelBinder.Compliance.cs` and
8
8
  `SemanticModelValidator.Compliance.cs`; it selects v13 (first released in 4.141.0).
9
- Pins and consumer boundaries: toolchain `references/versions.md`.
9
+ Tool versions and consumer boundaries: toolchain `SKILL.md`.
10
10
 
11
11
  ## Which ESM version a model needs
12
12
 
@@ -35,7 +35,7 @@ Pins and consumer boundaries: toolchain `references/versions.md`.
35
35
  | Command reads/concurrency | Legacy unprotected decisions, PLAY0271 |
36
36
  | Invokes-only trigger reads | Report-only, not protected state; direct production with reads refuses |
37
37
  | Generated values/responses | v7 binding/reference execution; v15 strategies/strict fixtures/freshness since Screenplay 4.147.0. Stage 4.89.1 renders supported UUID/String strategies, responses and fixtures; unsupported types/combinations remain -028/-038 |
38
- | Sources/streams and command/specification routes | v8 binding/reference execution; the pinned CLI (toolchain `references/versions.md`) reaches Stage checks through v15 |
38
+ | Sources/streams and command/specification routes | v8 binding/reference execution; the CLI (toolchain `references/renderable-subset.md`) reaches Stage checks through v15 |
39
39
  | Declared reaction invocation actor | v10 binding/reference execution; older CLI parser PLAY0137; Stage 4.89.1 renders role/authenticated reaction identity; claim-reading/opaque gates retain STAGE-ESM-034, not a v10 version refusal |
40
40
  | Operations/systems, `numbers exact` source mode, refusal/redelivery | Source accepted; whole binding refuses PLAY0268 |
41
41
  | UI | Authoring/deferred metadata; runtime support is a separate consumer contract |
@@ -36,7 +36,7 @@ then hands off to review (P5) and acceptance (P6).
36
36
 
37
37
  ## Verified product sources
38
38
 
39
- Current pins: `cratis-screenplay-toolchain` `references/versions.md`. The sources below were read
39
+ Tool versions: `cratis-screenplay-toolchain` `SKILL.md`. The sources below were read
40
40
  at the versions named in each row (CLI 3.53.1 bundles Prologue
41
41
  2.0.0; the Screenplay, Stage and Arc.Screenplay it bundles are in that pin set, and are not the latest releases). Checked at these sources:
42
42
 
@@ -5,7 +5,7 @@ read-only evidence, not authority to change anything.
5
5
 
6
6
  Confirm permission, server context, event store, namespace and data sensitivity first. Use
7
7
  the installed `cratis` CLI catalog for exact commands (`cratis-chronicle-cli-operations`, read-only; `cratis-chronicle-mcp-inspection` for MCP inspection) and scope every
8
- read by identity, type, range or page. Check `cratis-screenplay-toolchain` `references/versions.md` for what the installed tools
8
+ read by identity, type, range or page. Check `cratis-screenplay-toolchain` `SKILL.md` for what the installed tools
9
9
  support before relying on any inspection tool.
10
10
 
11
11
  For the extraction question at hand, inspect only what is relevant: event schemas and