From 69b093d1a76619ba952b4752ea72a34884b9fd1f Mon Sep 17 00:00:00 2001 From: Lilleman auf Larv Date: Tue, 29 Sep 2026 11:36:43 +0200 Subject: [PATCH 1/2] Build premises.sections without filling found through an alias --- bin/loop_claude/project/premises.py | 17 ++++++++++------- todo.md | 1 - 2 files changed, 10 insertions(+), 8 deletions(-) diff --git a/bin/loop_claude/project/premises.py b/bin/loop_claude/project/premises.py index a23fc24f..89e8b429 100644 --- a/bin/loop_claude/project/premises.py +++ b/bin/loop_claude/project/premises.py @@ -23,14 +23,17 @@ def read_premises(root): def sections(text): - found, current, fenced = {}, None, False + headings, fenced = [], False for line in text.splitlines(): fenced ^= line.startswith("```") if not fenced and line.startswith("## "): - current = [] - found.setdefault(line.strip()[3:], []).append(current) + headings.append((line.strip()[3:], [])) elif not fenced and line.startswith("# "): - current = None - elif current is not None and line.strip(): - current.append(line) - return {name: ["\n".join(body) for body in bodies] for name, bodies in found.items()} + headings.append((None, [])) + elif headings and line.strip(): + headings[-1][1].append(line) + found = {} + for name, body in headings: + if name is not None: + found.setdefault(name, []).append("\n".join(body)) + return found diff --git a/todo.md b/todo.md index f26afe02..4edfb126 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: -- **Build `premises.sections` without filling `found` through an alias.** Two seats traced `current` by hand. - **Route a fix through larv-review's Re-entry in one read.** All four seats reread "Re-entry" and "Round cap" against the pass table, reaching a round through `CLAUDE.md` → "Vocabulary" and `review-findings.md` → "Rounds". - **Keep in `UserEntryKind` only the kinds a caller tells apart.** Three seats: `human_text` compares only `HUMAN`, and they hunted for the caller of the other six. - **Keep `formats.py` to Claude Code's shapes: `locations` into `paths.py`, `catalog`'s file reads out.** Three seats found paths and I/O in a file named for formats. -- 2.52.0 From ea29be40464690db07b0e47bdc85d3aaf7cb59d2 Mon Sep 17 00:00:00 2001 From: Lilleman auf Larv Date: Tue, 29 Sep 2026 11:38:03 +0200 Subject: [PATCH 2/2] Name sections' list blocks --- bin/loop_claude/project/premises.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/bin/loop_claude/project/premises.py b/bin/loop_claude/project/premises.py index 89e8b429..fb266e25 100644 --- a/bin/loop_claude/project/premises.py +++ b/bin/loop_claude/project/premises.py @@ -23,17 +23,17 @@ def read_premises(root): def sections(text): - headings, fenced = [], False + blocks, fenced = [], False for line in text.splitlines(): fenced ^= line.startswith("```") if not fenced and line.startswith("## "): - headings.append((line.strip()[3:], [])) + blocks.append((line.strip()[3:], [])) elif not fenced and line.startswith("# "): - headings.append((None, [])) - elif headings and line.strip(): - headings[-1][1].append(line) + blocks.append((None, [])) + elif blocks and line.strip(): + blocks[-1][1].append(line) found = {} - for name, body in headings: + for name, body in blocks: if name is not None: found.setdefault(name, []).append("\n".join(body)) return found -- 2.52.0