From d38b354538b38cc139ec9cf1817f96e274a4b496 Mon Sep 17 00:00:00 2001 From: Lilleman auf Larv Date: Tue, 29 Sep 2026 12:08:50 +0200 Subject: [PATCH] Say why a leading < marks Claude Code's entry and why a trust failure only warns --- bin/loop_claude/claude_code/formats.py | 1 + bin/loop_claude/claude_code/trust.py | 1 + todo.md | 1 - 3 files changed, 2 insertions(+), 1 deletion(-) diff --git a/bin/loop_claude/claude_code/formats.py b/bin/loop_claude/claude_code/formats.py index a274b6dc..c25362a1 100644 --- a/bin/loop_claude/claude_code/formats.py +++ b/bin/loop_claude/claude_code/formats.py @@ -36,6 +36,7 @@ def written_by_human(entry): # {"type": "user", "message": {"content": "/model\n..."}} # {"type": "user", "promptSource": "system", "message": {"content": "..."}} # {"type": "user", "promptSource": "typed", "message": {"content": "merge it"}} + # Claude Code tags what it injects, and an entry without promptSource carries no other mark, so a leading < is its own. if isinstance(text := content(entry), str): source = entry.get("promptSource") return source != "system" and (source == "typed" or not text.startswith("<")) diff --git a/bin/loop_claude/claude_code/trust.py b/bin/loop_claude/claude_code/trust.py index bec5ac16..df71ce96 100644 --- a/bin/loop_claude/claude_code/trust.py +++ b/bin/loop_claude/claude_code/trust.py @@ -6,6 +6,7 @@ from loop_claude.file_writes import replace_json from loop_claude.outcome import Failure +# A failure only warns: the interrupt still runs, and the human answers Claude Code's trust dialog. def trust(config, roots): try: with open(config, encoding="utf-8") as handle: diff --git a/todo.md b/todo.md index 2a57e63d..bdd22e27 100644 --- a/todo.md +++ b/todo.md @@ -8,7 +8,6 @@ The rebuild lifts every dimension, one chunk per item, until the last item opens The places the panel on `rebuild` at 2f9ab2f named (`docs/decisions.md`), capping dimension first: -- **Say at `written_by_human` why a `<` prefix marks Claude Code's own entry, and at `trust` why a failure only warns.** Three seats found either only in `CHANGELOG.md`. - **Say in the README why the tests run on the host and need `uv`.** Two seats: `CLAUDE.md` says never run a runtime on the host, and only `test_python_floor.py` says what `uv` is for. - **Score `rebuild` with the four-seat panel at 7.0 or above on every dimension and the overall, none below the last run, and open its PR into main for the human.** ⚠️ Leave that PR ready and unmerged: only the human merges it, after approving the whole rebuild. A dimension under the floor gets its places filed above this item. -- 2.52.0