@cratis/pi 7.179.2 → 7.180.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.
Files changed (34) hide show
  1. package/package/corpus/harnesses/copilot/instructions/local-work-artifacts.instructions.md +3 -4
  2. package/package/corpus/hooks/README.md +18 -7
  3. package/package/corpus/hooks/scripts/cratis-cleanup-worktrees.sh +215 -23
  4. package/package/corpus/prompts/ship-changes.prompt.md +9 -2
  5. package/package/corpus/rules/local-work-artifacts.md +3 -4
  6. package/package/corpus/skills/cratis-engineering-inherited-work/SKILL.md +2 -2
  7. package/package/corpus/skills/cratis-engineering-issue-design-note/SKILL.md +42 -23
  8. package/package/corpus/skills/cratis-engineering-issue-design-note/verification.json +8 -1
  9. package/package/corpus/skills/cratis-engineering-issue-hygiene/SKILL.md +56 -85
  10. package/package/corpus/skills/cratis-engineering-issue-hygiene/verification.json +12 -1
  11. package/package/corpus/skills/cratis-screenplay-command-surface/SKILL.md +1 -1
  12. package/package/corpus/skills/cratis-screenplay-command-surface/references/constraints-produces-concurrency.md +1 -0
  13. package/package/corpus/skills/cratis-screenplay-command-surface/verification.json +2 -0
  14. package/package/corpus/skills/cratis-screenplay-delivery-planning/SKILL.md +15 -10
  15. package/package/corpus/skills/cratis-screenplay-delivery-planning/references/parallel-delivery.md +3 -2
  16. package/package/corpus/skills/cratis-screenplay-delivery-planning/verification.json +6 -0
  17. package/package/corpus/skills/cratis-screenplay-model-authoring/SKILL.md +1 -0
  18. package/package/corpus/skills/cratis-screenplay-model-authoring/references/mcp-tools.md +7 -1
  19. package/package/corpus/skills/cratis-screenplay-model-authoring/verification.json +5 -0
  20. package/package/corpus/skills/cratis-screenplay-modeling-lifecycle/references/phases.md +3 -2
  21. package/package/corpus/skills/cratis-screenplay-scenario-coverage/SKILL.md +2 -0
  22. package/package/corpus/skills/cratis-screenplay-scenario-coverage/references/quality-checklist.md +3 -0
  23. package/package/corpus/skills/cratis-screenplay-scenario-coverage/verification.json +3 -0
  24. package/package/corpus/skills/cratis-screenplay-specifications/SKILL.md +1 -0
  25. package/package/corpus/skills/cratis-screenplay-specifications/references/event-tags.md +54 -0
  26. package/package/corpus/skills/cratis-screenplay-specifications/references/outcome-comparison.md +1 -0
  27. package/package/corpus/skills/cratis-screenplay-specifications/verification.json +10 -0
  28. package/package/corpus/skills/cratis-screenplay-toolchain/SKILL.md +2 -1
  29. package/package/corpus/skills/cratis-screenplay-toolchain/references/diagnostics.md +1 -0
  30. package/package/corpus/skills/cratis-screenplay-toolchain/references/language-admission.md +3 -0
  31. package/package/corpus/skills/cratis-screenplay-toolchain/references/model-export-diff-rename.md +7 -1
  32. package/package/corpus/skills/cratis-screenplay-toolchain/references/verdicts.md +1 -0
  33. package/package/corpus/skills/cratis-screenplay-toolchain/verification.json +10 -0
  34. package/package.json +1 -1
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: cratis-engineering-issue-hygiene
3
- description: Use when claiming an issue, maintaining its status block or deciding an authorized closure or necessary follow-up. Not for delivery grouping, review rounds or CI operations.
3
+ description: Use when claiming an issue, posting a meaningful issue event or deciding an authorized closure or necessary follow-up. Not for delivery grouping, review rounds or CI operations.
4
4
  license: LICENSE
5
5
  compatibility: Requires git and the GitHub CLI (gh).
6
6
  ---
@@ -8,20 +8,25 @@ compatibility: Requires git and the GitHub CLI (gh).
8
8
  <!-- Copyright (c) Cratis. All rights reserved. -->
9
9
  <!-- Licensed under the MIT license. See LICENSE file in the project root for full license information. -->
10
10
 
11
- # Leave fewer issues, with a truthful description
11
+ # Leave fewer issues, with a truthful timeline
12
12
 
13
- An issue must make sense to a reader outside the session. Keep its present state
14
- in the description and meaningful events in the timeline. Before any mutation,
15
- read [capability-is-not-authority.md](../../rules/capability-is-not-authority.md).
13
+ An issue must make sense to a reader outside the session. Issues are append-only:
14
+ never edit an issue's title, description or any existing comment, including the
15
+ agent's own comments. Leave legacy status blocks in issue bodies untouched.
16
+ Labels, assignees, milestones and opening or closing issues remain allowed when
17
+ authorized. PR descriptions stay editable: they are the release notes, governed
18
+ by [pull-requests.md](../../rules/pull-requests.md).
19
+
20
+ Before any mutation, read
21
+ [capability-is-not-authority.md](../../rules/capability-is-not-authority.md).
16
22
  The request authorizes its named effects, not arbitrary filing or closing.
17
23
 
18
24
  ## One writer and a clear claim
19
25
 
20
- One person or session owns all body edits, comments and disposition for a named
21
- issue. Delegated workers report findings to that owner. An explicit handoff can
22
- transfer the named issue, but the previous writer must stop editing it. GitHub
23
- body edits are not conditional writes; a last-minute reread alone cannot prevent
24
- two writers from overwriting each other.
26
+ One person or session owns public comments and disposition for a named issue.
27
+ Delegated workers report findings to that owner. An explicit handoff can transfer
28
+ the named issue, but the previous writer must stop publishing to it. Append-only
29
+ comments preserve traceability and avoid concurrent overwrites of issue text.
25
30
 
26
31
  Before starting, read the issue, comments, assignees and any status block. Follow
27
32
  [issue-assignment.md](../../rules/issue-assignment.md) and this claiming procedure:
@@ -43,80 +48,43 @@ Assign each PR you open the same way: `gh pr create --assignee @me`, or
43
48
 
44
49
  The request to work on the issue authorizes this assignment only, not comments,
45
50
  labels or closure. If another writer is active, coordinate rather than starting
46
- a parallel edit. Delegated workers do not claim or mutate the issue.
47
-
48
- When the request covers maintaining the issue, set the status block to
49
- **In progress** before coding. Keep it true as work moves: **In review** for the
50
- open PR, **Blocked** with the dependency, **Paused** when no active work remains,
51
- and **Done** only when delivery is confirmed. Never leave In progress behind
52
- when the writer stops.
53
-
54
- ## Put the status block in the description
55
-
56
- Preserve the original problem statement and all text outside the managed block.
57
- Append the block if absent. Stop for coordination if markers are malformed,
58
- duplicated or already managed by another active writer. A minimal template is:
59
-
60
- ```markdown
61
- <!-- agent-status:start -->
62
- ## Status
63
- **State:** In progress
64
- **Scope:** Deliver the agreed behavior and its regression specification.
65
- **Approach:** Fix the shared decision and exercise it through the public API.
66
- **PR:** Not opened.
67
- **Delivered:** Nothing yet.
68
- **Remaining:** Implement, verify, review and deliver.
69
- **Follow-ups:** None.
70
- <!-- agent-status:end -->
71
- ```
72
-
73
- Replace the example with the real scope and remaining work. Use public PR or
74
- issue URLs when they exist. Summarize a local plan; never link its file path.
75
- Do not put local paths, harness commands, credentials or private context in
76
- public issue or PR text. Never name a customer or a customer's customer in an
77
- issue, comment or PR; describe the situation generically ("a large enterprise
78
- tenant") and strip identifying products, systems and people. Read [secrets.md](../../rules/secrets.md) before handling
79
- output, and [local-work-artifacts.md](../../rules/local-work-artifacts.md) before
80
- creating the private working copy.
51
+ parallel publication. Delegated workers do not claim or mutate the issue.
81
52
 
82
- For example, read the body into an ignored local working file:
53
+ ## Append meaningful events, not progress chatter
83
54
 
84
- ```bash
85
- gh issue view <n> --repo OWNER/REPO --json body --jq .body > .ai-work/issue-body.md
86
- ```
55
+ When comments are authorized, post a NEW self-contained comment only at an event
56
+ a reader needs:
87
57
 
88
- Edit only the managed block in that file. Immediately before writing, re-read
89
- both the issue and any linked PR. Read the remote body again:
58
+ - **Started or claimed:** optional and minimal; prefer assignment instead.
59
+ - **Pull request opened:** link the public PR and state what it delivers.
60
+ - **Blocked or paused:** explain the reason, what remains and what must happen
61
+ before work can resume.
62
+ - **Done or closing:** state what shipped, link the delivery and name any
63
+ necessary follow-ups. Pending release is not Done.
90
64
 
91
- ```bash
92
- gh issue view <n> --repo OWNER/REPO --json body
93
- ```
65
+ Each comment stands alone: what happened, why it matters, what comes next.
66
+ Correct outdated information with a new comment linking the earlier one, never
67
+ by editing it. A design decision is a new comment; a changed decision is a new
68
+ comment superseding the earlier one by link. There is no design-note exception;
69
+ read **cratis-engineering-issue-design-note** for that format and trust checks.
70
+ Do not post routine progress, repeated status, tool output, test counts, receipts
71
+ or model/session chatter. Do not create, refresh or remove a status block.
94
72
 
95
- Compare it with the body used to prepare the edit. If anything changed, preserve
96
- those changes and recompose from the fresh body. If concurrent edits continue,
97
- stop and coordinate with the other writer. Do not write a stale whole body.
98
- After a clean comparison, write the complete preserved body back, for example:
73
+ Use absolute public URLs. Summarize a local plan; never link its file path.
74
+ Do not put local paths, harness commands, credentials or private context in
75
+ public issue or PR text. Never name a customer or a customer's customer in an
76
+ issue, comment or PR; describe the situation generically ("a large enterprise
77
+ tenant") and strip identifying products, systems and people. Read
78
+ [secrets.md](../../rules/secrets.md) before handling output, and
79
+ [local-work-artifacts.md](../../rules/local-work-artifacts.md) before creating a
80
+ private comment draft. For an authorized PR-opened event, for example:
99
81
 
100
82
  ```bash
101
- gh issue edit <n> --repo OWNER/REPO --body-file .ai-work/issue-body.md
102
- gh issue view <n> --repo OWNER/REPO --json body
83
+ gh issue comment <n> --repo OWNER/REPO --body-file .ai-work/issue-comment.md
84
+ gh issue view <n> --repo OWNER/REPO --comments
103
85
  ```
104
86
 
105
- Verify the block changed as intended and the surrounding content stayed intact.
106
- Do not paste the private working-file path into the issue.
107
-
108
- ## Description versus comment
109
-
110
- Edit the status block for current scope, decisions, approach, checklist, linked
111
- PRs, dependencies and what remains. The description alone should explain the
112
- present state. Do not rewrite other people's text or replace the original report.
113
- The one design comment linked from the block is the edited-in-place exception; see **cratis-engineering-issue-design-note**.
114
-
115
- Comment only for an event worth notifying readers about: a decision or scope
116
- change with its reason, a human blocker, a delivery milestone or a closing
117
- summary. Each comment stands alone: what happened, why it matters, what comes
118
- next. Use absolute public URLs. Do not repeat the block as a comment or post
119
- "working on it", tool output, test counts, receipts or model/session chatter.
87
+ Verify the new comment says what was intended; existing issue text stays intact.
120
88
 
121
89
  Re-read the issue and PR before every key step: starting, changing scope,
122
90
  updating public state, filing follow-ups, merging or disposing of the issue.
@@ -157,7 +125,8 @@ intent and repository workflow; a merged PR is not proof of a published release.
157
125
  - **Manual completion:** only for a `no-release` PR or a repository without
158
126
  release-action, and only when the request includes closing. Confirm all scope
159
127
  is delivered and no required PR is open, unmerged, reverted or failing. Set
160
- Done and close with reason `completed` and a public delivery link.
128
+ Done in a new closing comment and close with reason `completed` and a public
129
+ delivery link.
161
130
  - **Duplicate or obsolete:** only with clear evidence and authority. Use reason
162
131
  `not planned`, explain why, and link the canonical issue or superseding work.
163
132
  If uncertain, leave it open and report the question.
@@ -183,23 +152,25 @@ Check merged PRs for completed work still open; distinguish pending release-acti
183
152
  closure from an authorized manual disposition. Verify closure through the issue's
184
153
  actual state, not an assumption about merging.
185
154
 
186
- Leave no issue In progress without an active writer. For unfinished work, set
187
- Paused or Blocked with what remains and what it waits for. Reconcile follow-ups
155
+ Leave no issue appearing actively worked without an active writer. For unfinished
156
+ work, post an authorized new Paused or Blocked comment with what remains and what
157
+ it waits for; leave any legacy body status untouched. Reconcile follow-ups
188
158
  with existing issues. Perform only authorized mutations; otherwise report the
189
159
  proposed changes and the blocker. Summarize completed issues, pending release
190
160
  closures and unfinished scope without publishing local paths or harness details.
191
161
 
192
162
  ## How it is proven
193
163
 
194
- Read the final body and state, for example with
195
- `gh issue view <n> --repo OWNER/REPO --json body,state`. The original report is
196
- intact, the status block matches the actual PR and release, and any authorized
197
- closure is observable. Until release-action runs, pending closure is not Done.
164
+ Read the final title, body, comments and state, for example with
165
+ `gh issue view <n> --repo OWNER/REPO --json title,body,comments,state`. The title,
166
+ description and pre-existing comments are unchanged; new comments match the
167
+ actual PR and release, and any authorized closure is observable. Until
168
+ release-action runs, pending closure is not Done.
198
169
 
199
170
  ## What breaks
200
171
 
201
- - Two body writers lose each other's updates even if both reread first.
202
- - A status comment buries current state and needlessly notifies subscribers.
172
+ - Editing existing issue text loses traceability and risks concurrent overwrites.
173
+ - Routine progress comments needlessly notify subscribers; meaningful events do not.
203
174
  - Manual closure before release bypasses release-action's delivery contract.
204
175
  - Filing every advisory grows the backlog without a necessary delivery.
205
- - Stale In progress blocks the next person without anyone doing the work.
176
+ - Stopping without a paused or blocked event leaves readers expecting active work.
@@ -6,6 +6,17 @@
6
6
  { "kind": "skill-contains", "value": "gh issue view <n> --repo <owner>/<repo> --json assignees,state" },
7
7
  { "kind": "skill-contains", "value": "gh issue edit <n> --repo <owner>/<repo> --add-assignee @me" },
8
8
  { "kind": "skill-contains", "value": "Never replace or add to an existing assignment" },
9
- { "kind": "skill-contains", "value": "authorizes this assignment only" }
9
+ { "kind": "skill-contains", "value": "authorizes this assignment only" },
10
+ { "kind": "skill-contains", "value": "never edit an issue's title, description or any existing comment" },
11
+ { "kind": "skill-contains", "value": "agent's own comments" },
12
+ { "kind": "skill-contains", "value": "Leave legacy status blocks in issue bodies untouched." },
13
+ { "kind": "skill-contains", "value": "Labels, assignees, milestones and opening or closing issues remain allowed when" },
14
+ { "kind": "skill-contains", "value": "PR descriptions stay editable" },
15
+ { "kind": "skill-contains", "value": "post a NEW self-contained comment only at an event" },
16
+ { "kind": "skill-contains", "value": "**Started or claimed:** optional and minimal; prefer assignment instead." },
17
+ { "kind": "skill-contains", "value": "**Pull request opened:** link the public PR" },
18
+ { "kind": "skill-contains", "value": "**Blocked or paused:** explain the reason, what remains" },
19
+ { "kind": "skill-contains", "value": "**Done or closing:** state what shipped" },
20
+ { "kind": "skill-contains", "value": "Do not post routine progress" }
10
21
  ]
11
22
  }
@@ -207,7 +207,7 @@ choosing or omitting `for` on a production, or fixing `PLAY0469`-`PLAY0478`.
207
207
 
208
208
  ## `produces`
209
209
 
210
- Mapping sources that bind: a command property, a literal, `$context.occurred` and `$identity.*`; `for` must name the command `identifier` (`PLAY0273`); several unconditional `produces` are co-production. Read [references/constraints-produces-concurrency.md](references/constraints-produces-concurrency.md) when writing mappings, `tag`, or `produces when`.
210
+ Mapping sources that bind: a command property, a literal, `$context.occurred` and `$identity.*`; `for` must name the command `identifier` (`PLAY0273`); several unconditional `produces` are co-production. Read [references/constraints-produces-concurrency.md](references/constraints-produces-concurrency.md) when writing mappings, `tag`, or `produces when`. Producer/declaration tags are not assertions: for exact ordered `then` tags, explicit `no tags` and unchecked omission, read [then-event tags](../cratis-screenplay-specifications/references/event-tags.md), including the compiler prerequisite and ESM v55 boundary.
211
211
 
212
212
  ## Routes and external operations
213
213
 
@@ -124,6 +124,7 @@ to the routed scope. This does not make command `reads` protected.
124
124
  together. Optional and collection properties still cannot be destinations. A model using it selects v30; state each destination with `for` on the matching `then` event.
125
125
  - **`tag`** lines apply literal tags to this append. Tags also exist on the
126
126
  `event` declaration, where they apply to every append of that type.
127
+ Production/declaration tags are not specification assertions. Requires Screenplay 6.31.0 for ESM v55 `then` tag assertions: [then-event tags](../../cratis-screenplay-specifications/references/event-tags.md) owns exact ordered lists, `no tags` versus omission, literal-only expectations and PLAY1148 refusals. Keep payload fields, `for` and routing assertions; binding/reference support does not prove renderer admission.
127
128
  - **Several unconditional `produces` blocks** are allowed — that is co-production,
128
129
  and it is what an automation is *not*.
129
130
  - **`produces when <condition>`** takes the event name on the next indented line.
@@ -3,6 +3,8 @@
3
3
  "input": "Declare a Screenplay command with validation, authorization, a uniqueness constraint and a state-dependent rule.",
4
4
  "fixtures": [],
5
5
  "assertions": [
6
+ { "kind": "skill-contains", "value": "event-tags.md" },
7
+ { "kind": "skill-contains", "value": "Production/declaration tags are not specification assertions", "file": "references/constraints-produces-concurrency.md" },
6
8
  { "kind": "skill-contains", "value": "result v2, ESM v35", "file": "references/described-handlers.md" },
7
9
  { "kind": "skill-contains", "value": "for one of parcelIds", "file": "references/described-handlers.md" },
8
10
  { "kind": "skill-contains", "value": "source binding requires 5.4.0", "file": "references/described-handlers.md" },
@@ -56,18 +56,22 @@ it is not planned work yet.
56
56
  type and realization, divide by measured throughput, and report a range with its basis. Add
57
57
  separate lines for what is not slice work: modeling and review gates, integration with
58
58
  outside systems, environment and deployment, specifications that need new infrastructure.
59
- 7. **Track.** One GitHub issue per slice group, in the repository's own issue practice
60
- (assign the issue, keep an in-progress status in the issue body, check for an existing claim
61
- before starting): the status block lists the slices, their
62
- type, the wave, the blockers and each slice's planning status below. The issue's own state
63
- follows the repository's hygiene (in progress, in review when the PR opens, paused, blocked,
64
- done only when delivered). Keep the working plan in
65
- `.ai-work/<task>/delivery-plan.md`.
59
+ 7. **Track.** One GitHub issue per slice group. Read
60
+ **cratis-engineering-issue-hygiene** before claiming or publishing: assign instead of
61
+ posting routine progress, and check assignees and comments for an existing claim before
62
+ starting. Put the slices, type, wave and initial blockers in a new issue's description;
63
+ never edit an existing issue's title, description or comments, even the agent's own.
64
+ Leave legacy status blocks untouched. Keep per-slice planning status and the working plan
65
+ in `.ai-work/<task>/delivery-plan.md`. Report meaningful events only in new self-contained
66
+ comments: PR opened with its link, blocked or paused with the reason and what remains,
67
+ done or closing with what shipped and follow-ups. Started or claimed is optional and
68
+ minimal; prefer assignment. No progress chatter. The issue is done only when delivered.
66
69
  8. **Re-plan after each completed group.** Update throughput, recount if the model changed,
67
70
  restate the range. Record the retrospective metrics from `references/velocity-and-capacity.md`.
68
71
 
69
72
  ## Status vocabulary
70
- Per-slice planning status, a closed set recorded inside the plan and the issue's status block.
73
+ Per-slice planning status, a closed set recorded inside the working plan. Issue comments
74
+ carry snapshots only at meaningful events, not every per-slice transition.
71
75
  It is not the issue's state: the enclosing issue keeps the repository's own states (for example
72
76
  in progress, in review, paused, blocked, done), and is done only when its slices are
73
77
  delivered (merged and released where the repository releases).
@@ -82,8 +86,9 @@ delivered (merged and released where the repository releases).
82
86
  Before claiming a slice, check its current status. If it is already `in progress`, someone else
83
87
  holds it: pick another slice, do not take it over and do not report an error. Move a status only
84
88
  to a different value; a repeated update is a signal that another worker got there first.
85
- Check for an existing claim (assignee and in-progress status) before starting; where the harness
86
- provides a claim tool such as `issue_work`, its claim step is that guard.
89
+ Check for an existing claim (assignees, the plan and issue comments, not a legacy body status
90
+ alone) before starting; where the harness provides a claim tool such as `issue_work`, use it
91
+ only if it preserves existing issue text. Assignment and plan updates must not edit issue text.
87
92
 
88
93
  ## What a plan states
89
94
  - Scope: the modules and slices counted, and what was excluded and why.
@@ -35,8 +35,9 @@ Because consumers can build against synthetic events, a wave boundary is an inte
35
35
 
36
36
  ## Slice groups and issues
37
37
  - One GitHub issue per slice group: slices that share a view, a stream or an owner, small enough for one person to finish.
38
- - Status block lists the slices (name, type, realization), the wave, blockers and each slice's planning status (todo, in progress, blocked, done). That vocabulary is per slice; the issue's own state follows the repository's hygiene (in progress, in review, paused, blocked, done when delivered). Update the block rather than adding progress comments.
39
- - Claim before starting: assign the issue, keep an in-progress status in its body and check for an existing claim (for example `issue_work` where the harness provides it). If the group is already in progress, choose another; do not take over.
38
+ - A new issue's description lists the slices (name, type, realization), wave and initial blockers. Keep each slice's planning status (todo, in progress, blocked, done) in the working plan. Never edit an existing issue's title, description or comments, including the agent's own; leave legacy status blocks untouched. Follow **cratis-engineering-issue-hygiene**.
39
+ - Use new self-contained comments only for meaningful events: PR opened (link), blocked or paused (reason and what remains), done or closing (what shipped and follow-ups). A started or claimed comment is optional and minimal; prefer assignment. No routine progress comments or per-slice status chatter. The issue is done only when delivered.
40
+ - Claim before starting: check assignees, the plan and issue comments, then assign under issue hygiene. Use a harness claim tool such as `issue_work` only if it preserves existing issue text. If the group is already in progress, choose another; do not take over.
40
41
  - Mark `blocked` only with the named producer, decision or outside party.
41
42
 
42
43
  ## Parallelism that does not pay
@@ -7,6 +7,12 @@
7
7
  { "kind": "skill-contains", "value": "Count slices, not features." },
8
8
  { "kind": "skill-contains", "value": "`dependency-graph`" },
9
9
  { "kind": "skill-contains", "value": "already `in progress`" },
10
+ { "kind": "skill-contains", "value": "never edit an existing issue's title, description or comments, even the agent's own." },
11
+ { "kind": "skill-contains", "value": "Leave legacy status blocks untouched." },
12
+ { "kind": "skill-contains", "value": "Report meaningful events only in new self-contained" },
13
+ { "kind": "skill-contains", "value": "No progress chatter." },
14
+ { "kind": "skill-contains", "value": "Never edit an existing issue's title, description or comments", "file": "references/parallel-delivery.md" },
15
+ { "kind": "skill-contains", "value": "No routine progress comments", "file": "references/parallel-delivery.md" },
10
16
  { "kind": "skill-contains", "value": "Automation` and `Translate` are hand-written" },
11
17
  { "kind": "skill-contains", "value": "Never quote an accuracy", "file": "SKILL.md" },
12
18
  { "kind": "skill-contains", "value": "Estimate fit", "file": "references/velocity-and-capacity.md" },
@@ -145,6 +145,7 @@ Others send an edit request ([MCP loop](references/mcp-loop.md)).
145
145
  even on unbound models. Manual `propose-ast` / `propose-source` renames need
146
146
  `semanticRenames`; removal needs retirement and reports `orphanedNotes`.
147
147
  Never substitute global string replacement for an explicit refusal.
148
+ For the outermost `provide` and its override chain, read [MCP tools](references/mcp-tools.md): the version-gated planner repairs proven `$context` reads with no semantic identity to preserve. Do not assume the corpus pin or editor/TypeScript support covers it.
148
149
  4. Prefer `propose-property` for property add/rename/remove, not hand-composed
149
150
  `propose-ast` batches. Inspect the chain and never guess past a refusal:
150
151
  [property links](references/property-links.md). Otherwise use `propose-source`
@@ -413,7 +413,13 @@ Requires Screenplay 4.153.0 or later (`screenplay --version`) for `propose-renam
413
413
 
414
414
  `syntax-schema` exposes graph query collects as `GraphQuerySyntax.collects` (`GraphCollectSyntax` with `property`, `from`, `hop`, `returns`; Screenplay 6.29.0 or later, `screenplay --version`); `propose-ast` adds, replaces and removes them through the ordinary typed operations, and the member is omitted when a query collects nothing.
415
415
 
416
- `screenplay rename` is the scriptable, identity-preserving alternative to `propose-rename` plus `apply` (Screenplay 6.1.0 or later; see [export, compare and rename](../../cratis-screenplay-toolchain/references/model-export-diff-rename.md)).
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
+
418
+ Requires Screenplay 6.35.0 or later (`screenplay --version`) for provided-value rename; the 6.32.0 corpus pin does not verify it. 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
+
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
+
422
+ Below the required version, upgrade the actual CLI/MCP or defer. Use CLI/MCP, not VS Code/Monaco or a TypeScript rename operation. This version-gated guidance is not local execution evidence or a promise of editor/TypeScript support. Keep the corpus pin unchanged; check the installed version before proposing or applying the rename.
417
423
 
418
424
  `propose-rename` consults release-baseline mutability: without a
419
425
  baseline it conservatively pins the previous effective name; an unadmitted event
@@ -3,6 +3,11 @@
3
3
  "input": "Author and organize a Screenplay model in a repository.",
4
4
  "fixtures": [],
5
5
  "assertions": [
6
+ { "kind": "skill-contains", "value": "outermost `provide`" },
7
+ { "kind": "skill-contains", "value": "Requires Screenplay 6.35.0", "file": "references/mcp-tools.md" },
8
+ { "kind": "skill-contains", "value": "first path segment", "file": "references/mcp-tools.md" },
9
+ { "kind": "skill-contains", "value": "no semantic identity", "file": "references/mcp-tools.md" },
10
+ { "kind": "skill-contains", "value": "6.32.0 corpus pin does not verify", "file": "references/mcp-tools.md" },
6
11
  { "kind": "skill-contains", "value": "view: \"typed-contexts\"", "file": "references/mcp-tools.md" },
7
12
  { "kind": "skill-contains", "value": "result.entries", "file": "references/mcp-tools.md" },
8
13
  { "kind": "skill-contains", "value": "destinationType", "file": "references/mcp-tools.md" },
@@ -157,8 +157,9 @@ No other phase is skipped. P3-P5 scale to the change but always run for semantic
157
157
  | Executable or render request on an accepted model | P7 / P8 | P9 |
158
158
  | Question from a running Chronicle system | read-only `cratis-chronicle-cli-operations` | update the model at P2 if needed |
159
159
 
160
- **Slices under delivery.** Where a delivery plan exists (the `cratis-screenplay-delivery-planning`
161
- status block), check a slice's planning status before changing it. A `todo` slice changes through
160
+ **Slices under delivery.** Where a delivery plan exists (`cratis-screenplay-delivery-planning`),
161
+ check a slice's planning status in the working plan and meaningful issue comments before changing
162
+ it. Leave legacy issue-body status blocks untouched; issue tracking is append-only. A `todo` slice changes through
162
163
  the entry points above. A slice that is `in progress`, `blocked` or `done` is read-only for
163
164
  modeling unless the request names it. Naming it is the approval for exactly those declarations
164
165
  and nothing wider. Otherwise do the rest of the request, return an edit request naming the slice,
@@ -178,6 +178,8 @@ prerequisite and runnable cases. Include first, changed and unchanged rows in th
178
178
  ## Reaction chains: one slice per specification
179
179
  A specification runs only its own slice. Prove a chain across slices link by link: the command's spec states its own events, the Automation's `when append` spec states what it appends, and `then invokes <Command>` (ESM v34) states a command it invokes in another slice. Another slice's event in a spec is PLAY0285. Never delete the reaction. Read [references/version-skew.md](references/version-skew.md) when a spec reports PLAY0285 or the bundled compiler is older than the standalone tool.
180
180
 
181
+ For tag-sensitive behavior, include an exact ordered tag list or explicit `no tags` in the matrix's outcome evidence; omitted tags are unchecked. Read [then-event tags](../cratis-screenplay-specifications/references/event-tags.md) for ESM v55 syntax and the compiler prerequisite and why fixture/board views cannot prove tag coverage.
182
+
181
183
  ## Gate
182
184
  A scope is spec-complete only when: the matrix has no `open`, `question` or `gap` cell (or the
183
185
  scope is reported as explicitly incomplete); V1 passes with the tool named in
@@ -5,6 +5,9 @@ The scenario quality checklist.
5
5
  - Every command has a success spec, a spec per rule, and state-violation specs where a lifecycle
6
6
  exists; every gated command and query has its own denial.
7
7
  - Givens state the facts and their sources; outcomes list the exact events or the exact message.
8
+ - Tag-sensitive outcomes assert the exact ordered list (duplicates included) or `no tags`; omission means unchecked, not empty. Syntax and compiler prerequisite: [then-event tags](../../cratis-screenplay-specifications/references/event-tags.md).
9
+ - Include missing, extra, reordered and duplicate-tag boundary cases wherever routing or classification depends on tags.
10
+ - Missing tag expectations in a board or fixture view are not proof of coverage: those views omit them. Inspect source or executable `expectedTags` and record reference execution evidence.
8
11
  - Every read model has population, update and (where it removes) removal specs.
9
12
  - Alternative paths, compensation and external failure are specified or carry a reason.
10
13
  - Each matrix cell holds a value; each `n/a` is a domain reason.
@@ -3,6 +3,9 @@
3
3
  "input": "Write the specifications for a ReserveBerth command and its read model, and tell me what coverage is missing.",
4
4
  "fixtures": [],
5
5
  "assertions": [
6
+ { "kind": "skill-contains", "value": "event-tags.md" },
7
+ { "kind": "skill-contains", "value": "Tag-sensitive outcomes", "file": "references/quality-checklist.md" },
8
+ { "kind": "skill-contains", "value": "Missing tag expectations in a board or fixture view are not proof of coverage", "file": "references/quality-checklist.md" },
6
9
  { "kind": "play-compiles" },
7
10
  { "kind": "skill-contains", "value": "a whitespace-only rejection" },
8
11
  { "kind": "skill-contains", "value": "parent never arrives" },
@@ -164,6 +164,7 @@ Screenplay 5.7.0 (`screenplay --version`). Read
164
164
 
165
165
  Events compare as the complete new set in authored order (exact count). Read models and query rows: only the asserted properties must match (add `exactly` for all). Rejections: `then error "<message>"` matches the message, never severity. Bare `then error` never matches
166
166
  a denial. Read [references/outcome-comparison.md](references/outcome-comparison.md) for events, rows, ordering or a localized rejection key.
167
+ For exact ordered event tags, `no tags` versus unchecked tags, and fixture/board visibility, read [then-event tags](references/event-tags.md), including the compiler prerequisite and ESM v55 boundary.
167
168
 
168
169
  ## Worked example
169
170
 
@@ -0,0 +1,54 @@
1
+ <!-- Copyright (c) Cratis. All rights reserved. -->
2
+ <!-- Licensed under the MIT license. See LICENSE file in the project root for full license information. -->
3
+
4
+ # Assert tags on a then event
5
+
6
+ Requires Screenplay 6.31.0 or later (`screenplay --version`); tag expectations select ESM v55.
7
+
8
+ Under a `then` event, `tag <identifier-or-string>` asserts the exact tag list in order, duplicates included, with the same count. `no tags` asserts an empty list. Omitting both leaves tags unspecified, not empty. Event order (`then events in any order`) does not relax the order within a tag list.
9
+
10
+ ```screenplay
11
+ concept InvoiceId : Uuid
12
+ module Billing
13
+ feature Invoices
14
+ slice StateChange Register
15
+ event InvoiceRegistered
16
+ tag invoicing
17
+ tag "billing"
18
+ tag invoicing
19
+ event InvoiceRecorded
20
+ command RegisterInvoice
21
+ invoiceId InvoiceId identifier
22
+ produces InvoiceRegistered
23
+ for invoiceId
24
+ produces InvoiceRecorded
25
+ for invoiceId
26
+ screen Register
27
+ action RegisterInvoice for screen
28
+ specification RegisteringWithExactTags
29
+ when RegisterInvoice
30
+ invoiceId = "9c858901-8a57-4791-81fe-4c455b099bc9"
31
+ then InvoiceRegistered
32
+ for "9c858901-8a57-4791-81fe-4c455b099bc9"
33
+ tag invoicing
34
+ tag "billing"
35
+ tag invoicing
36
+ then InvoiceRecorded
37
+ for "9c858901-8a57-4791-81fe-4c455b099bc9"
38
+ no tags
39
+ specification RegisteringWithoutCheckingTags
40
+ when RegisterInvoice
41
+ invoiceId = "9c858901-8a57-4791-81fe-4c455b099bc9"
42
+ then InvoiceRegistered
43
+ for "9c858901-8a57-4791-81fe-4c455b099bc9"
44
+ then InvoiceRecorded
45
+ for "9c858901-8a57-4791-81fe-4c455b099bc9"
46
+ ```
47
+
48
+ Declaration and production tags describe what is appended; only the `then` lines above assert it. Keep payload properties, `for` and route expectations as well: tags do not replace any of them. Payload assignments such as `tag = "payload"` and `tags = "payload"` remain ordinary property assertions, not tag metadata. A tag-sensitive success needs an explicit list or `no tags`, not merely a passing payload comparison.
49
+
50
+ `PLAY1148` rejects tag expectations outside a `then` event: `given`, any `when` (including `when append`), redelivery locators and event examples cannot carry them. `no tags` cannot repeat or combine with `tag`; neither form takes children. Values must be identifiers or strings, never `$context` and `$env` expressions: dynamic production tags resolve at append time, so assert the resulting concrete values.
51
+
52
+ The MCP fixture-occurrence view and event-model board do not expose tag expectations; this is display-only, not lost execution semantics. Inspect the authored specification or ESM v55 `expectedTags`, and run `screenplay test` or MCP `run-specifications` for V4 evidence. A compiler pass or an absent field in a view is not a passing tag assertion. Failure output is described in [verdicts](../../cratis-screenplay-toolchain/references/verdicts.md#v4-reference-specifications-run).
53
+
54
+ Earlier models without these expectations keep their semantics; reference admission does not prove Stage or CLI rendering support.
@@ -8,6 +8,7 @@ This reference holds the comparison rules for events, read models, query rows an
8
8
  `then events in any order` is stated. The count is always exact. After
9
9
  `when append`, a model before ESM v6 expects the appended fact itself; from
10
10
  ESM v6 the appended event is the action and `then` lists only what followed it.
11
+ From ESM v55 (Requires Screenplay 6.31.0), a `then` event's `tag` lines compare the exact ordered list, including duplicates; `no tags` asserts empty, while neither leaves tags unchecked. See [then-event tags](event-tags.md) for syntax, refusals and the fixture/board display boundary.
11
12
  - **Read models and query rows:** only the asserted properties must match
12
13
  (subset); add `exactly` to require every property. Query row count is exact;
13
14
  collection rows match by read model/key regardless of order. Ordering within a
@@ -3,6 +3,16 @@
3
3
  "input": "Write given/when/then specifications for a Screenplay slice.",
4
4
  "fixtures": [],
5
5
  "assertions": [
6
+ { "kind": "skill-contains", "value": "references/event-tags.md" },
7
+ { "kind": "skill-contains", "value": "Requires Screenplay 6.31.0", "file": "references/event-tags.md" },
8
+ { "kind": "skill-contains", "value": "in order, duplicates included", "file": "references/event-tags.md" },
9
+ { "kind": "skill-contains", "value": "leaves tags unspecified", "file": "references/event-tags.md" },
10
+ { "kind": "skill-contains", "value": "PLAY1148", "file": "references/event-tags.md" },
11
+ { "kind": "skill-contains", "value": "`$context` and `$env`", "file": "references/event-tags.md" },
12
+ { "kind": "skill-contains", "value": "ESM v55 `expectedTags`", "file": "references/event-tags.md" },
13
+ { "kind": "skill-contains", "value": "do not expose tag expectations", "file": "references/event-tags.md" },
14
+ { "kind": "skill-contains", "value": "`tag = \"payload\"`", "file": "references/event-tags.md" },
15
+ { "kind": "skill-contains", "value": "`tags = \"payload\"`", "file": "references/event-tags.md" },
6
16
  { "kind": "skill-contains", "value": "AuthorizeAsync", "file": "references/host-body-execution.md" },
7
17
  { "kind": "skill-contains", "value": "Validate the whole result before any append", "file": "references/host-body-execution.md" },
8
18
  { "kind": "skill-contains", "value": "SemanticCommandBodyFaultException", "file": "references/host-body-execution.md" },
@@ -149,6 +149,7 @@ with ordered imports means future files need explicit imports.
149
149
  [generation strategies](references/generation-strategies-example.md) for Guarded
150
150
  freshness and strict fixtures, and command-surface
151
151
  `references/generated-values-and-responses.md` for strategy/refusal depth.
152
+ - **v55 tag assertions:** exact ordered `then` tags, explicit `no tags`, and unchecked omission have a separate compiler prerequisite. Read [then-event tags](../cratis-screenplay-specifications/references/event-tags.md), [language admission](references/language-admission.md) and [V4 verdicts](references/verdicts.md#v4-reference-specifications-run); fixture/board visibility and reference support do not prove rendering.
152
153
  - **v17–v21:** recovery/no-events (v17), query Validation errors (v18), refusal
153
154
  branches (v19), generated-concept proofs (v20), pattern/random/rule/checksum (v21).
154
155
  Read `references/executable-subset.md` for version prerequisites and
@@ -239,7 +240,7 @@ Requires Cratis CLI 3.60.0 or later (`cratis --version`) for that option; older
239
240
 
240
241
  Read [language admission](references/language-admission.md#esm-json-schemas) for the published ESM JSON Schemas (shape, not admission).
241
242
 
242
- Read [export, compare and rename](references/model-export-diff-rename.md) for `screenplay export`, `diff` and `rename` and persisted identities.
243
+ Read [export, compare and rename](references/model-export-diff-rename.md) for `screenplay export`, `diff` and `rename`, persisted identities, and the separate prerequisite/refusals for outermost `provide` rename.
243
244
 
244
245
  Read [fast path](references/fast-path.md) for the ordered requirements-to-running-app checklist (validate, `render --check`, render, build, run, check in a browser, run the specs).
245
246
 
@@ -281,6 +281,7 @@ migration. Preview every repair; legal notes never move automatically.
281
281
 
282
282
  | Code | Severity | Meaning / fix |
283
283
  | --- | --- | --- |
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) |
284
285
  | 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. |
285
286
  | PLAY0559 | W | Conflicting module/feature documentation across files; first wins. Choose one owning text; identical copies are accepted. |
286
287
  | PLAY0572 | E | Malformed/unknown persona caller or body lines; use a declared top-level persona with no body. |
@@ -39,6 +39,7 @@ exact language/semantic pairs; binding, reference execution and rendering are se
39
39
  | v43 | `set once` or a `children` ordering line (PLAY0956-PLAY0963) | Serializes the `setOnce` operation and `ordering`; earlier models keep their version and bytes | Admission by Stage is separate; a refusal means the model is not renderable yet |
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
+ | 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 |
42
43
 
43
44
  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.
44
45
 
@@ -51,6 +52,8 @@ Requires Screenplay 6.2.0 or later (`screenplay --version`). A JSON Schema (draf
51
52
 
52
53
  ## Compiler and target minimums
53
54
 
55
+ Requires Screenplay 6.31.0 or later (`screenplay --version`) for `then` event tag expectations (v55). See [then-event tags](../../cratis-screenplay-specifications/references/event-tags.md) for syntax and PLAY1148; older models without expectations keep their semantics.
56
+
54
57
  Requires Screenplay 4.181.0 or later (`screenplay --version`) for atomic batches; older compilers cannot admit the preamble.
55
58
 
56
59
  Requires Screenplay 4.182.0 or later (`screenplay --version`) for described handlers; older binders report PLAY0268.
@@ -52,7 +52,13 @@ A reference the executable model does not hold refuses admission: CLI exit 1 wit
52
52
 
53
53
  ## Rename
54
54
 
55
- `screenplay rename <address> <new-name> [<folder>] [--kind <Command|EventContract|ReadModel|...>]` is the scriptable form of MCP `propose-rename` plus `apply`: 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.
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
+
57
+ Requires Screenplay 6.35.0 or later (`screenplay --version`) to rename a provided value through this CLI or MCP `propose-rename`; the 6.32.0 corpus pin does not verify this rename capability. 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
+
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
+
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. This version-gated guidance is not local rename execution evidence. Do not infer editor or TypeScript support, change the corpus pin, or promise this capability on the pinned tool. MCP proposal review/apply details: [model authoring](../../cratis-screenplay-model-authoring/references/mcp-tools.md).
56
62
 
57
63
  ## Trace a value's lineage
58
64
 
@@ -198,6 +198,7 @@ both supplied mean intersection. `offset`/`limit` page results; continuation
198
198
  requires `expectedSourceRevision`. Pass `proposalId` between proposal review and `apply`
199
199
  to run the retained candidate read-only; without that argument the call runs the workspace.
200
200
  A candidate V4 belongs only to its returned source revision, not to the disk model.
201
+ For ESM v55 tag assertions (Requires Screenplay 6.31.0), compare the exact ordered tags, including duplicates. CLI and MCP failure details show `Expected fact tags (null = unchecked):` and `Actual fact tags:` with JSON arrays: `null` for unchecked events, `[]` for explicit `no tags`. The MCP fixture-occurrence view and event-model board omit expectations, so inspect source/ESM `expectedTags` and execute the specifications; display absence is not semantic absence. See [then-event tags](../../cratis-screenplay-specifications/references/event-tags.md).
201
202
  Unknown/applied/discarded/reopened proposals give `UnknownProposal`.
202
203
  A statically impossible `then` reports PLAY0285: the whole model is unbound,
203
204
  exit 3, and no specifications run. Details: