From 56528002268cc6f751fb049fcdc2eea3c334ccab Mon Sep 17 00:00:00 2001 From: Lourival Vieira Neto Date: Thu, 26 Nov 2026 19:38:39 -0300 Subject: [PATCH] rules: a reader's cases run in a session of their own The agent type a workflow names resolves against the `.claude/agents/` of the checkout its session runs in, which links the definition in that checkout's mount. The rule said the cases are read "with that mount at the change" and stopped there, so the session that wrote the reader's next change had to find in an earlier session's transcript how its cases had run: a worktree of the project with its mount at the change, and a session started there. The sentence now says so, and why not the shared checkout: it follows master, and its mount moved to an unmerged reader hands that reader to every session opened on it. Claude Code picks up an edited definition in `.claude/agents/` without a restart (code.claude.com/docs/en/sub-agents), so the reason is the shared checkout and not when a session reads it. Co-Authored-By: Claude Opus 5.5 --- .agents/rules/checks.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.agents/rules/checks.md b/.agents/rules/checks.md index a4794fe..c0f216a 100644 --- a/.agents/rules/checks.md +++ b/.agents/rules/checks.md @@ -194,8 +194,10 @@ that no writer rewrites a body the case fails, `branch` a name that says neither the case's number nor its verdict, since the reader's prompt carries it, `body` the text under its front matter, `title` its title and `repo` a checkout of the change, and a case whose verdict differs is the change's to fix. The agent type is the definition the -session's checkout links under `.claude/agents/`, the one in its mount, so a change to the definition is -read with that mount at the change. +session's checkout links under `.claude/agents/`, the one in its mount, so the cases of a change to the +definition run from a session started for them in a worktree of the project whose mount is at the change: +the checkout the sessions start in follows master, and its mount moved to the change would hand every +session opened on it a reader no review passed. `title.sh` holds a pull request title or a commit subject to the shape AGENTS.md, *Patches and commits*, gives a subject, `: ` in one plain clause, which the