Launch comprehension seats as an agent type of their own, without CLAUDE.md
CI / tests (pull_request) Successful in 4m45s
CI / tests (pull_request) Successful in 4m45s
This commit is contained in:
@@ -23,13 +23,13 @@ Hold all of these or the comparison doesn't prove anything.
|
||||
one. Seats that read different amounts produce numbers nothing can compare.
|
||||
- **Blind.** Deny the project's own conclusions — the plan, a decision log, prior review
|
||||
output — and never show a panelist the metric under test. An anchored reader is a wasted one.
|
||||
- **Check what the harness pre-loads, before launching.** `CLAUDE.md` may hold only
|
||||
`@AGENTS.md`, and an `@file` import lands in a subagent's context ahead of its first tool call.
|
||||
That is harmless for a reader who was going to read the charter anyway, and fatal to the
|
||||
architects' README-and-tree-only step. Read the project's `CLAUDE.md` and resolve its imports
|
||||
first; name every pre-loaded file in the architects' brief and require them to mark each map
|
||||
entry that file could have fed, so the contaminated entries are discountable instead of
|
||||
invisible.
|
||||
- **Check what the harness pre-loads, before launching.** The scoring run and the paired ruling
|
||||
launch every seat as the `comprehension-seat` agent, which starts without `CLAUDE.md`, so nothing
|
||||
is pre-loaded. Any other launch: `CLAUDE.md` may hold only `@AGENTS.md`, and an `@file` import
|
||||
lands in a subagent's context ahead of its first tool call. That is harmless for a reader who was
|
||||
going to read the charter anyway, and fatal to the architects' README-and-tree-only step. Resolve
|
||||
the project's imports, name every pre-loaded file in the architects' brief, and require them to
|
||||
mark each map entry that file could have fed.
|
||||
- **Isolated and read-only.** Launch each with `isolation: "worktree"`, and forbid edits, test
|
||||
runs and builds. Entering a worktree yourself mid-run strands a non-isolated subagent.
|
||||
- **Parallel.** Launch them in one message. Nine agents reading a few thousand lines is minutes,
|
||||
@@ -97,7 +97,8 @@ A scoring run needs four seats — Junior A, Mid A, the maintainability senior a
|
||||
architect — plus the calibration seat ("The score") when more than one project is in play. `~/.claude/bin/larv-review prepare-scoring`
|
||||
builds the four seats' prompts from `seat-prompts.md`, filled in from the project's `AGENTS.md` →
|
||||
"Scoring run". Change neither between runs, or the scores are not comparable. A project without that
|
||||
section gets it at its first scoring run or paired ruling.
|
||||
section gets it at its first scoring run or paired ruling. Each seat runs as the `comprehension-seat`
|
||||
agent under `agents/`, which starts without `CLAUDE.md`.
|
||||
|
||||
## The paired ruling
|
||||
|
||||
|
||||
@@ -1,13 +1,12 @@
|
||||
# The comprehension seats' prompts
|
||||
|
||||
A scoring-run seat's prompt is the opening, the seat's background, the shared brief, and the report for its kind of seat, in that order. Copy the text verbatim and replace each `{placeholder}`:
|
||||
A scoring-run seat's prompt is the opening, the seat's background, the shared brief, and the report for its kind of seat, in that order. Launch each seat as the `comprehension-seat` agent, `agents/comprehension-seat.md`, which starts without `CLAUDE.md` and the rule files, so a seat holds only what its prompt and its reads give it. Copy the text verbatim and replace each `{placeholder}`:
|
||||
|
||||
- `{checkout}` and `{branch}`: the worktree the seats read, and its branch.
|
||||
- `{main}`: the project's main checkout.
|
||||
- `{forbidden}`: the plan, the decision log, past panels' records and past chunks' reading cost, each where the project's config puts it in the checkout. Where it puts all four at their usual paths: `todo.md, docs/decisions.md, docs/comprehension-history.md or docs/reading-cost.md (the plan, the decision log, past panels' records and past chunks' reading cost)`. A file the config puts outside the checkout is left out, since the seats' worktree doesn't hold it.
|
||||
- `{git}`: `git -C {checkout} ls-files`, and for a paired seat also `git -C {base checkout} ls-files`, each in backticks.
|
||||
- `{files}`: every tracked file in `git -C {checkout} ls-files`, except test files and those `{forbidden}` names. Give one recursive glob per top-level source directory, say which test files it leaves out, and list each file no glob matches. Example: `bin/**/*.py` except `test_*.py`, plus launchers such as `bin/loop-claude`.
|
||||
- `{preloaded}`: the files the harness pre-loads into a seat, found per `SKILL.md` → "What makes the result trustworthy".
|
||||
- `{anchors}` and `{dimensions}`: the six anchor bullets and the four dimension bullets in `SKILL.md` → "The score", verbatim, without bold and each on one line.
|
||||
- `{language}`, `{kind}`, `{domain}`, `{domain docs}` and `{3am question}`: the project's `AGENTS.md` → "Scoring run".
|
||||
|
||||
@@ -31,8 +30,6 @@ Target: the project checked out at {checkout} (branch `{branch}`). Read ONLY the
|
||||
|
||||
Depth 1, the whole project: read README.md, AGENTS.md and CLAUDE.md (the charter), then every non-test tracked file: {files}. Do NOT open {forbidden}, nor any review output. You may open a test file when the code does not answer a question; say when you did.
|
||||
|
||||
Your harness pre-loads these files into your context before your first tool call, from a DIFFERENT version (main): {preloaded}. Treat the worktree's own copies as the ones under review. A pre-loaded AGENTS.md may list decision titles; do not use them as evidence.
|
||||
|
||||
No running anything, no builds, no tests, no edits of any kind. Do not manufacture confusion.
|
||||
|
||||
Scale (verbatim anchors):
|
||||
@@ -60,7 +57,7 @@ Report, in this shape:
|
||||
```
|
||||
Standard: Code That Fits in Your Head — at each level a bounded number of areas, few enough to hold at once. Guidelines, not rules; a justified break is a finding too.
|
||||
Enforce this order:
|
||||
1. README.md and the file tree only (`git -C {checkout} ls-files`). No other file yet. Write down the top-level areas you believe exist and what each does, what you expect inside each source directory, anything whose purpose the name does not give, anything the README led you to expect that is not there. Mark each map entry the pre-loaded files could have fed. This map goes in your report verbatim.
|
||||
1. README.md and the file tree only (`git -C {checkout} ls-files`). No other file yet. Write down the top-level areas you believe exist and what each does, what you expect inside each source directory, anything whose purpose the name does not give, anything the README led you to expect that is not there. This map goes in your report verbatim.
|
||||
2. Descend breadth-first, forming an expectation before opening each directory; record how many distinct things each level demanded.
|
||||
3. Read enough implementation to check the map (depth 1: every non-test file is in scope, but your job is shape).
|
||||
Report: the verbatim map; where it was wrong and how costly each correction was; level-by-level fan-out with the worst level named; names that mislead, concepts with two names, one name over two concepts, areas you could not name; what you would restructure, ranked, with files and costs; what the structure gets right. The 3am question: {3am question} — walking in cold, how long to the right file and unit? Where does it rot first, and where would the next two features land? Close with Navigation, Locality, Shape, Self-sufficiency and overall, each with one sentence naming its anchor and the concrete thing holding it there.
|
||||
@@ -80,8 +77,6 @@ Depth 1, the whole project in both versions: read README.md, AGENTS.md and CLAUD
|
||||
{changed}
|
||||
Do NOT open {forbidden}, nor any review output. You may open a test file when the code does not answer a question; say when you did.
|
||||
|
||||
Your harness pre-loads these files into your context before your first tool call, from main, which may match either version or neither: {preloaded}. Treat the two worktrees' own copies as the ones under review. A pre-loaded AGENTS.md may list decision titles; do not use them as evidence.
|
||||
|
||||
No running anything, no builds, no tests, no edits of any kind.
|
||||
|
||||
Rule whether the project reads better, the same or worse at {head} than at {base} on each of these four dimensions, and as a whole:
|
||||
|
||||
Reference in New Issue
Block a user