Retire the section-headers decision, reject an interrupt without a question, and name file_writes by what it does
This commit is contained in:
@@ -12,7 +12,6 @@ Decisions live in `docs/decisions.md`:
|
||||
- bin/: the Python floor is README's Install prerequisite
|
||||
- bin/: host python, no container
|
||||
- comprehension floor: every dimension and the overall at 7.0 or above, and 0.1.0 waits on it
|
||||
- loop-claude: the section headers stay
|
||||
- vocabulary: the concept words are defined under `CLAUDE.md` → "Vocabulary" and cited by a bare link
|
||||
- larv-review: a re-entered loop takes a fresh round cap
|
||||
- loop-claude: a reload into an older file is unsupported
|
||||
|
||||
@@ -6,7 +6,7 @@ from loop_claude.checkout import project_name
|
||||
from loop_claude.interrupt import interrupt
|
||||
from loop_claude.judge import judge
|
||||
from loop_claude.outcome import Continue, Failure, Retry, Stop
|
||||
from loop_claude.private_file import make_private
|
||||
from loop_claude.file_writes import make_private
|
||||
from loop_claude.session import delete_session, session_for, transcript_file
|
||||
from loop_claude.transcript import read, render
|
||||
from loop_claude.worker import run_worker, worker_args
|
||||
|
||||
@@ -27,5 +27,5 @@ def interrupt(root, session_id, model, path, question, paths):
|
||||
if isinstance(entries, Failure):
|
||||
return Stop(1, f"could not tell whether you typed anything: {entries.reason}")
|
||||
if human_turns(entries) <= before:
|
||||
return human.needed(TO, "the interrupt ended without you typing anything")
|
||||
return human.needed(TO, "the interrupt ended with nothing typed")
|
||||
return None
|
||||
|
||||
@@ -85,9 +85,10 @@ def judge_prompt(task, premises, transcript):
|
||||
|
||||
|
||||
def complete(verdict):
|
||||
return isinstance(verdict, dict) and all(
|
||||
typed = isinstance(verdict, dict) and all(
|
||||
isinstance(verdict.get(name), bool if JUDGE_SCHEMA["properties"][name]["type"] == "boolean" else str) for name in JUDGE_SCHEMA["required"]
|
||||
)
|
||||
return typed and not (verdict["interrupt"] and not verdict["question"].strip())
|
||||
|
||||
|
||||
def grounded(verdict, transcript):
|
||||
|
||||
@@ -14,9 +14,10 @@ Exit 1: no task, not inside a checkout, no premises, a models file it cannot rea
|
||||
leaves no transcript or one it cannot read, claude cannot start for an interrupt, a reload with
|
||||
unreadable state, or the worker or the judge fails three times running. A worker fails when claude
|
||||
cannot start, exits non-zero, is killed, or ends without a result event; a judge when claude cannot
|
||||
start or exits non-zero, or its verdict misses a field or quotes nothing in the transcript.
|
||||
start or exits non-zero, or its verdict misses or mistypes a field, interrupts without a question,
|
||||
or quotes nothing in the transcript.
|
||||
Exit 2: the human is needed, to pick the model or answer an interrupt, and stdin or stdout is not a
|
||||
terminal, the input ends, or the interrupt ended without them typing anything. Rerunning resumes any
|
||||
terminal, the input ends, or the interrupt ended with nothing typed. Rerunning resumes any
|
||||
open session.
|
||||
|
||||
Each project has one session, "A <path> loop-claude", <path> being the checkout relative to ~/code,
|
||||
|
||||
@@ -5,7 +5,7 @@ import sys
|
||||
from loop_claude import human
|
||||
from loop_claude.checkout import project_name
|
||||
from loop_claude.outcome import Stop
|
||||
from loop_claude.private_file import replace_json
|
||||
from loop_claude.file_writes import replace_json
|
||||
|
||||
|
||||
@dataclasses.dataclass(frozen=True)
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import json
|
||||
import sys
|
||||
|
||||
from loop_claude.private_file import replace_json
|
||||
from loop_claude.file_writes import replace_json
|
||||
|
||||
|
||||
def trust(config, roots):
|
||||
@@ -15,7 +15,7 @@ def trust(config, roots):
|
||||
if not isinstance(projects, dict):
|
||||
print(f"could not read {config}: not an object whose \"projects\" is an object", file=sys.stderr)
|
||||
return
|
||||
if wrong := next((path for path, record in projects.items() if not isinstance(record, dict)), None):
|
||||
if (wrong := next((path for path, record in projects.items() if not isinstance(record, dict)), None)) is not None:
|
||||
print(f"could not read {config}: projects[{json.dumps(wrong)}] is not an object", file=sys.stderr)
|
||||
return
|
||||
untrusted = [path for path in roots if not projects.get(path, {}).get("hasTrustDialogAccepted")]
|
||||
|
||||
@@ -32,10 +32,6 @@
|
||||
|
||||
2026-09-27, lilleman, restating the 2026-09-24 target and extending it to the overall. Serves goal 4. The 2026-09-28 run, Junior A, Mid A, the maintainability senior and the inherited architect at depth 1 over every non-test file, blind to `todo.md` and this log, scored Navigation 7.25, Locality 6.0, Shape 6.5, Self-sufficiency 6.25, overall 6.25; on 2026-09-26 they were 7.75, 6.25, 7.0, 6.75, 6.75. Every seat scored Locality 6, and three of four named `run_cycle`'s three-way return and larv-review's re-entry rules, split across the passes on 2026-09-28. The rebuild planned in `todo.md` under 0.1.0 answers the places named, and a later chunk may not lower any dimension. Valid until the next scoring run, which uses the same four seats.
|
||||
|
||||
## loop-claude: the section headers stay
|
||||
|
||||
2026-09-26, larv-review, declining a prose-pass deletion under `CLAUDE.md` → "Comments and documentation". Serves goal 4. Two seats of the 2026-09-26 panel credit Navigation 8 to the headers in what is now `bin/loop_claude/cycle.py`, which index it by the file or format each group touches. Valid while `cycle.py` holds more than one group; a header leaves with its group, as `# The transcript file` did into `transcript.py`.
|
||||
|
||||
## vocabulary: the concept words are defined under `CLAUDE.md` → "Vocabulary" and cited by a bare link
|
||||
|
||||
2026-09-24, larv-review. Serves goal 4. Three seats of the 2026-09-24 panel found the words only in the changelog; a definition at each rule lands one reader and misses the next, so the section is the one landing place and each file using the words links it once, and `bin/test_citations.py` fails on a citation no heading or bold lead answers, so the pointer's rot is visible. `loop-claude --help` restates chunk, cycle, interrupt and premises, since a terminal reader has no link to follow. Valid until the next scoring run.
|
||||
|
||||
Reference in New Issue
Block a user