consciousness/poc-memory
ProofOfConcept c5ce6e515f fix seen set pollution from agent tool calls
The CLI render command was marking keys as seen in the user's session
whenever POC_SESSION_ID was set. Agent processes inherit POC_SESSION_ID
(they need to read the conversation and seen set), so their tool calls
to poc-memory render were writing to the seen file as a side effect —
bypassing the dedup logic in surface_agent_cycle.

Fix: set POC_AGENT=1 at the start of cmd_run_agent (covers all agents,
not just surface), and guard the CLI render seen-marking on POC_AGENT
being absent. Agents can read the seen set but only surface_agent_cycle
should write to it.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-24 12:35:59 -04:00
..
.claude feedback: not-relevant/not-useful commands, edge strength adjustment 2026-03-14 12:14:17 -04:00
agents surface agent: add surface_hooks config and reduce search hops 2026-03-24 12:27:40 -04:00
defaults split into workspace: poc-memory and poc-daemon subcrates 2026-03-08 20:43:59 -04:00
schema transcript progress: capnp append-only log replaces stub nodes 2026-03-16 17:40:32 -04:00
src fix seen set pollution from agent tool calls 2026-03-24 12:35:59 -04:00
build.rs split into workspace: poc-memory and poc-daemon subcrates 2026-03-08 20:43:59 -04:00
Cargo.toml JsonlBackwardIter: use memrchr3 for SIMD-accelerated scanning 2026-03-22 03:11:30 -04:00
config.example.jsonl split into workspace: poc-memory and poc-daemon subcrates 2026-03-08 20:43:59 -04:00