Say why a leading < marks Claude Code's entry and why a trust failure only warns #137
@@ -36,6 +36,7 @@ def written_by_human(entry):
|
||||
# {"type": "user", "message": {"content": "<command-name>/model</command-name>\n..."}}
|
||||
# {"type": "user", "promptSource": "system", "message": {"content": "<task-notification>..."}}
|
||||
# {"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("<"))
|
||||
|
||||
@@ -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:
|
||||
|
||||
@@ -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.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user