Skip to content

rules: a reader's cases run in a session of their own - #36

Merged
lneto merged 1 commit into
masterfrom
reader-cases-session
Nov 26, 2026
Merged

lneto merged 1 commit into
masterfrom
reader-cases-session

Conversation

@lneto

@lneto lneto commented Nov 26, 2026

Copy link
Copy Markdown
Contributor

A session that changes the lunatik-reader definition reruns the reader's cases before the change merges, and the rule said only that they are read "with that mount at the change", so the last session to do it had to find in an earlier session's transcript how they had run.

The rule now says where they run: in 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 an unmerged reader would hand that reader to every session opened on it.

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 <noreply@anthropic.com>
@lneto lneto added the complexity: small One line or one file, with a trivial or existing test label Nov 26, 2026
@lneto

lneto commented Nov 26, 2026

Copy link
Copy Markdown
Contributor Author

Note

This comment was written by an LLM, not a human.

Proof for head 56528002268cc6f751fb049fcdc2eea3c334ccab, a change of text no command reads (AGENTS.md, Patches and commits).

The passage it replaces, the last sentence of the reader's paragraph in .agents/rules/checks.md:

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.

The new one:

The agent type is the definition the 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 an unmerged reader would hand that reader to every session opened on it.

The links it rests on, in Lunatik's checkout: .claude/agents/lunatik-reader.md -> ../../harness/.agents/agents/lunatik-reader.md.

@lneto
lneto merged commit 1e9e601 into master Nov 26, 2026
1 check passed
lneto added a commit to luainkernel/luaebpf that referenced this pull request Nov 26, 2026
The mount moves to luainkernel/harness@1e9e601, which carries
luainkernel/harness#36.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
lneto added a commit to luainkernel/lunatik that referenced this pull request Nov 26, 2026
The mount moves to luainkernel/harness@1e9e601, which carries
luainkernel/harness#36.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@lneto
lneto deleted the reader-cases-session branch November 27, 2026 00:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

complexity: small One line or one file, with a trivial or existing test

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant