Build premises.sections without filling found through an alias
This commit is contained in:
@@ -23,14 +23,17 @@ def read_premises(root):
|
|||||||
|
|
||||||
|
|
||||||
def sections(text):
|
def sections(text):
|
||||||
found, current, fenced = {}, None, False
|
headings, fenced = [], False
|
||||||
for line in text.splitlines():
|
for line in text.splitlines():
|
||||||
fenced ^= line.startswith("```")
|
fenced ^= line.startswith("```")
|
||||||
if not fenced and line.startswith("## "):
|
if not fenced and line.startswith("## "):
|
||||||
current = []
|
headings.append((line.strip()[3:], []))
|
||||||
found.setdefault(line.strip()[3:], []).append(current)
|
|
||||||
elif not fenced and line.startswith("# "):
|
elif not fenced and line.startswith("# "):
|
||||||
current = None
|
headings.append((None, []))
|
||||||
elif current is not None and line.strip():
|
elif headings and line.strip():
|
||||||
current.append(line)
|
headings[-1][1].append(line)
|
||||||
return {name: ["\n".join(body) for body in bodies] for name, bodies in found.items()}
|
found = {}
|
||||||
|
for name, body in headings:
|
||||||
|
if name is not None:
|
||||||
|
found.setdefault(name, []).append("\n".join(body))
|
||||||
|
return found
|
||||||
|
|||||||
@@ -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:
|
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".
|
- **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 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.
|
- **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.
|
||||||
|
|||||||
Reference in New Issue
Block a user