Build premises.sections without filling found through an alias #132

Manually merged
lilleman merged 2 commits from premises-sections into rebuild 2026-09-29 11:39:02 +02:00
2 changed files with 10 additions and 8 deletions
+10 -7
View File
@@ -23,14 +23,17 @@ def read_premises(root):
def sections(text):
found, current, fenced = {}, None, False
blocks, fenced = [], False
for line in text.splitlines():
fenced ^= line.startswith("```")
if not fenced and line.startswith("## "):
current = []
found.setdefault(line.strip()[3:], []).append(current)
blocks.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()}
blocks.append((None, []))
elif blocks and line.strip():
blocks[-1][1].append(line)
found = {}
for name, body in blocks:
if name is not None:
found.setdefault(name, []).append("\n".join(body))
return found
-1
View File
@@ -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.