Skip to content

Config contract gaps: a dead documented option, an undocumented one, mismatched defaults #176

Closed

Description

@fdaviddpt

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions