Skip to content

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

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.

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