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.
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.