Skip to content

CLI: --readonly does not gate writes (remember persists under --readonly) #102

Closed

Description

@16692219182pang-cmyk

Repro

mnemon --data-dir

--readonly remember "x" --cat fact succeeds: action added and the insight is persisted (status total increments, recall finds it).

Expected

The flag help says "open database in read-only mode (no WAL files, safe for read-only mounts)". Read-only mounts imply no writes should be possible; the flag currently gates only the DB open mode (no WAL), not the CLI write commands.

Impact

A caller relying on --readonly for safety can silently mutate the store. Suggest either refusing write commands under --readonly (fail with a clear error) or clarifying the documented semantics.

Activity

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