agentmemory
agentmemory copied to clipboard
.env.example describes AGENTMEMORY_SLOTS and MAX_OBS_PER_SESSION incorrectly
Current-main boundary
On main 007a1a7 (0.9.30), two comments in .env.example describe behavior the code does not have. Operators copy this file to ~/.agentmemory/.env (onboarding does it automatically), so the comments read as the contract.
Reproduction and results
.env.exampleline 165:# AGENTMEMORY_SLOTS=memory # Comma-separated plugin slot names the CLI should claim.isSlotsEnabled()accepts only the exact stringtrue. Following the comment (AGENTMEMORY_SLOTS=memory, or any list of names) leaves slots off while the.envlooks configured..env.exampleline 127:# MAX_OBS_PER_SESSION=500 # Per-session observation cap before consolidation kicks in. Reaching the cap does not start consolidation.mem::observerefuses every further observation of that session withSession observation limit reached (500), and capture parks each one as a dead letter.
Required behavior
- The
AGENTMEMORY_SLOTScomment says the value must betrueand names what it enables. - The
MAX_OBS_PER_SESSIONcomment says it is a hard per-session write limit, that later observations are refused, and that0disables the cap.
Acceptance checks
Comments match isSlotsEnabled() and the cap branch in mem::observe. npm run docs:check and npm run skills:check stay green.
Source and existing work
.env.example L127, .env.example L165, isSlotsEnabled, observe cap.
#888 and PR #894 cover the MCP error when slots are off; neither changes .env.example.
Environment: agentmemory 0.9.30, Node v26.10.0, macOS 27.0.1 (arm64).