Answer stability round 1: 0 🔴, 2 🟡 (0 misread); inject home into the goals file lookup and rename readme in ranking
This commit is contained in:
@@ -72,7 +72,7 @@ def run_loop(argv: list[str], env: typing.Mapping[str, str], paths: Paths, launc
|
||||
|
||||
def next_cycle(loop_run: LoopRun, loop: Loop) -> Cycle | Stop:
|
||||
"""The cycle loop_run runs next, from the premises, the records and the project's models read afresh, and the route the chunk runs on; the stop where one of them cannot be read."""
|
||||
premises = read_premises(loop.root)
|
||||
premises = read_premises(loop.root, loop.paths.home)
|
||||
if isinstance(premises, Failure):
|
||||
return Stop(1, premises.reason)
|
||||
records = read_records(loop.root, loop.paths.claude_dir)
|
||||
|
||||
@@ -3,13 +3,13 @@ HELP = """Run a task as headless claude cycles; a judge interrupts only when a d
|
||||
usage: loop-claude <task>
|
||||
|
||||
Run it anywhere inside a project checkout whose goals file has ## Goals and ## Audience, the
|
||||
premises: the file its config, ~/.claude-projects/<key>/config.toml, sets as goals-and-audience,
|
||||
which `project-config goals-and-audience` prints. The task runs at the checkout root. Each cycle a
|
||||
worker runs the task. A chunk's first worker prompt also quotes the premises. They, with code health
|
||||
(~/.claude/CLAUDE.md → "Shared goal") ranked first unless the goals file voids it, choose between
|
||||
ways to deliver the chunk's todo.md items, or else the task, and never widen them. A judge then
|
||||
reads the transcript's end, the premises, and the records: the project's AGENTS.md and
|
||||
docs/decisions.md, and the human's ~/.claude/CLAUDE.md, ~/.claude/rules/*.md and
|
||||
premises. The goals file is the one the project's config, ~/.claude-projects/<key>/config.toml, sets
|
||||
as goals-and-audience; `project-config goals-and-audience` prints it. The task runs at the checkout
|
||||
root. Each cycle a worker runs the task. A chunk's first worker prompt also quotes the premises.
|
||||
They, with code health (~/.claude/CLAUDE.md → "Shared goal") ranked first unless the goals file
|
||||
voids it, choose between ways to deliver the chunk's todo.md items, or else the task, and never
|
||||
widen them. A judge then reads the transcript's end, the premises, and the records: the project's
|
||||
AGENTS.md and docs/decisions.md, and the human's ~/.claude/CLAUDE.md, ~/.claude/rules/*.md and
|
||||
~/.claude/skills/larv-review/standards/*.md, where they exist. It rules whether the chunk, the work
|
||||
of one PR, is finished. A chunk stays unfinished until each answer the human typed in it that a
|
||||
later chunk could need is recorded: the premises or the records hold it, or the transcript shows the
|
||||
@@ -100,7 +100,7 @@ Exit 1, saying why, when:
|
||||
- git cannot start or finds no checkout
|
||||
- the goals file, or AGENTS.md, docs/decisions.md, ~/.claude/CLAUDE.md, ~/.claude/rules/*.md or
|
||||
~/.claude/skills/larv-review/standards/*.md where they exist, cannot be read or is not UTF-8
|
||||
- no config names the checkout, or the goals file holds no premises
|
||||
- no config names the checkout, its config cannot be read, or the goals file holds no premises
|
||||
- the models file cannot be read or written
|
||||
- claude leaves no transcript
|
||||
- a transcript cannot be read or archived
|
||||
|
||||
Reference in New Issue
Block a user