Run a preflight before each fresh worker and put its facts in the worker's prompt
This commit is contained in:
@@ -5,7 +5,9 @@ usage: loop-claude <task>
|
||||
Run it anywhere inside a project checkout whose README.md has ## Goals and ## Audience, the
|
||||
premises; the task runs at the checkout root. Each cycle a worker runs the task. A chunk's first
|
||||
worker prompt also quotes the premises, which 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,
|
||||
items, or else the task, and never widen them. Before that first worker, loop-claude runs
|
||||
bin/chunk-preflight at the checkout root, which finds the chunk's mechanical facts and makes its
|
||||
worktree; the prompt quotes what it printed, or why it could not run. 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
|
||||
@@ -52,7 +54,8 @@ for a low L; without such an item, or with its L, E or I unscored, the chunk run
|
||||
cheapest rung. The
|
||||
item's E + I picks the reviewers' rung, stepping up from the cheapest rung by REVIEW_STEPS there,
|
||||
never below the worker's rung. The worker's first prompt names the rung and the item, and asks the
|
||||
worker to name each item the chunk takes, with its L and E + I. The prompt names the rung of each
|
||||
worker to name each item the chunk takes, with its L and E + I, and to count the item's size again
|
||||
once it has read the code: a re-score whose L picks a higher rung is an escalation trigger. The prompt names the rung of each
|
||||
review that runs on a rung other than the worker's: the reviewers' rung for the reviewers, and the
|
||||
cheapest rung for each comprehension seat and the security pass. It also names the reviewers' rung
|
||||
each higher E + I picks, so the worker reviews an item it takes in on that rung in the same run.
|
||||
|
||||
Reference in New Issue
Block a user