Parse each transcript entry once into a typed value naming its kind #441

Merged
lilleman merged 5 commits from item-221 into main 2026-11-09 00:53:29 +01:00
Owner

Parse each transcript entry once, in claude_code.entries, into a typed value naming its kind: HumanTurn, LoopPrompt, InjectedText, AssistantTurn, ToolResults or CostState. Every consumer under bin/ now reads those types, so none works out an entry's kind from a raw dict. Also renames since_step to after_mark in the escalation mark and the judge's grounds.

Tool results that Claude Code logs again on api-request-blob lines still count, as on main.

Not fixed: the hard-to-read place bin/loop_claude/cycle/judge.py quotes_checked. This change only renames a field in its table. Splitting the misquote rule differently between judge.py and escalation_mark.py is beyond the item, which asked to make Grounds and judge_prompt easier to read.

Parse each transcript entry once, in `claude_code.entries`, into a typed value naming its kind: HumanTurn, LoopPrompt, InjectedText, AssistantTurn, ToolResults or CostState. Every consumer under `bin/` now reads those types, so none works out an entry's kind from a raw dict. Also renames `since_step` to `after_mark` in the escalation mark and the judge's grounds. Tool results that Claude Code logs again on `api-request-blob` lines still count, as on main. Not fixed: the hard-to-read place `bin/loop_claude/cycle/judge.py` `quotes_checked`. This change only renames a field in its table. Splitting the misquote rule differently between `judge.py` and `escalation_mark.py` is beyond the item, which asked to make `Grounds` and `judge_prompt` easier to read.
lilleman added 2 commits 2026-11-09 00:13:08 +01:00
lilleman marked the pull request as ready for review 2026-11-09 00:53:28 +01:00
lilleman merged commit 09159d7158 into main 2026-11-09 00:53:29 +01:00
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: lilleman/claude-config#441