feat(ws5): memory/handbook injection seams (context-provider pattern) #43

Merged
amoussa1229 merged 3 commits from feat/ws5-memory-handbook-seams into main 2026-06-23 19:48:14 +00:00
Showing only changes of commit 47d7a81b6b - Show all commits

View file

@ -69,7 +69,9 @@ def load_handbook_conventions(path: Optional[Path | str] = None) -> str:
sections: list[str] = []
for fpath in files:
try:
raw = fpath.read_bytes()[:_MAX_FILE_BYTES].decode("utf-8", errors="replace")
raw = fpath.read_bytes()[:_MAX_FILE_BYTES].decode(
"utf-8", errors="replace"
)
sections.append(f"### {fpath.stem}\n{raw.strip()}")
except Exception: # noqa: BLE001 - safe no-op
continue