diff --git a/CHANGELOG.md b/CHANGELOG.md index f76f6faa..cbf28c8b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,7 +8,7 @@ - `loop-claude` exits 2 when an interrupt gets no answer, saying why: stdin or stdout is not a terminal, or nothing was typed. Rerunning resumes the session. - `loop-claude` archives each session's transcript under `~/.claude/loop-claude-transcripts/`, one folder per project; `LOOP_CLAUDE_TRANSCRIPTS` overrides the root. - `loop-claude` runs at the checkout root wherever inside the checkout it is started. -- `loop-claude` says why when it cannot read `~/.claude.json` before an interrupt, which then lands in the trust dialog. +- `loop-claude` says why when it cannot read `~/.claude.json` before an interrupt, and the interrupt then lands in Claude Code's trust dialog. - `loop-claude --help` names the Claude Code version its transcript, session and trust handling were observed on; check it first when an upgrade breaks a cycle. - `loop-claude` runs the model each project's settings pick; `LOOP_CLAUDE_WORKER_MODEL` and `LOOP_CLAUDE_JUDGE_MODEL` override it. This repo runs on Fable 5.1. - Reviewers share one protocol for verdicts, severities, rounds and declines: `agents/review-protocol.md`. diff --git a/bin/loop-claude b/bin/loop-claude index 18b7f9c0..50748e4f 100755 --- a/bin/loop-claude +++ b/bin/loop-claude @@ -236,7 +236,7 @@ def trust(paths): json.dump(data, handle, indent=2) os.replace(staged, config) except OSError as failure: - print(f"could not record trust: {failure}", file=sys.stderr) + print(f"could not write {config}: {failure.strerror}", file=sys.stderr) return print("trusted for the interrupt: " + ", ".join(granted), file=sys.stderr) diff --git a/docs/decisions.md b/docs/decisions.md index f12744c9..11748e2c 100644 --- a/docs/decisions.md +++ b/docs/decisions.md @@ -14,7 +14,7 @@ ## loop-claude: the trust file is rewritten before an interrupt -2026-09-21, lilleman; the lost-write risk accepted 2026-09-24 by larv-review. Serves goal 4. No CLI flag skips the trust dialog, so `~/.claude.json` gets `hasTrustDialogAccepted` for every checkout before `claude --resume`. A write by another claude inside that read-modify-write window is lost. Valid while no flag skips the dialog. +2026-09-21, lilleman; the lost-write risk accepted 2026-09-24 by larv-review. Serves goal 4. No CLI flag skips the trust dialog. A write by another claude inside `trust`'s read-modify-write window is lost. Valid while no flag skips the dialog. ## bin/: host python, no container diff --git a/todo.md b/todo.md index 5e83a381..680c616a 100644 --- a/todo.md +++ b/todo.md @@ -22,3 +22,4 @@ Ordered by how many seats of the 2026-09-25 scoring panel (`docs/decisions.md`) - Group `bin/loop-claude` by the Claude Code internals it rests on, in the docstring's order, with `main` and `run_cycle` above what they call, today 36 flat names with the adapter scattered. - Exit `loop-claude` with a message, today a traceback, when `README.md` is not UTF-8. - Say under `CLAUDE.md` → "One spelling per goal" that one spelling in two places is the same case, and what its rejection names. +- Say `could not read` when `~/.claude.json` parses but `projects` is not an object, today a traceback before the interrupt.