You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Config contract gaps: a dead documented option, an undocumented one, mismatched defaults #176
Audit of the README config table against what the code reads.
1. debug is dead. Documented (default false, "Verbose logging for cooldowns and locks") and shipped in config.example.json, but .debug is passed to config()nowhere. The actual verbose logging is gated on the REMEMBER_DEBUG env var. Setting "debug": true does nothing. Same class as #159.
2. git_backup.allow_remote_change is undocumented — in neither README nor config.example.json, though the code reads it. It is security-relevant: true bypasses the changed-remote abort, letting memory push to a remote that changed under you. Discoverable only by reading source.
3. REMEMBER_DEBUG means different things in different scripts.save-session.sh uses ${REMEMBER_DEBUG:-1} (verbose by default); 50-git-backup.sh uses ${REMEMBER_DEBUG:-0} (quiet). The README documents a single default of 1, which git-backup contradicts.
4. thresholds.consolidate_max_bytes is read by run-consolidation.sh and explained in config.example.json, but missing from the README table (its sibling extract_max_bytes is there).
Worth a test that walks the README table and asserts each key is read somewhere — the #159 class is "documented option that does nothing", and it has now happened twice.
Activity
docs(config): document git_backup.allow_remote_change