review-fix(comments): restore lost #NNNN rationale comments across non-test source (mechanical sweep, condensed, code unchanged)

For each issue anchor present in BASE 63279301bc non-test .py and absent on HEAD, the BASE comment/docstring block was re-attached at the HEAD location of the code it explained (matched by the distinctive code line / enclosing def). Sentences already covered by an existing HEAD comment were deduped; the issue number always survives. Insert-only: no code lines changed.
This commit is contained in:
Teknium
2026-09-03 09:44:26 -07:00
parent ad62a15e94
commit e83816a4d1
586 changed files with 13883 additions and 829 deletions
+3
View File
@@ -117,6 +117,9 @@ def _open_session_db_at_path(db_path: Path, *, read_only: bool):
from hermes_state import SessionDB, is_malformed_schema_error
# Read-only file/sidecar preflight (port of kilocode#12508): repair-or-refuse BEFORE the first
# connection so users get an actionable message instead of an opaque "attempt to write a readonly
# database" from deep inside _init_schema.
if not read_only:
return SessionDB(db_path=db_path, read_only=False)