Skip to content

feat(mcp): per-call reconsolidate opt-out makes smem_recall a read-only probe when asked - #235

Merged
acidkill merged 2 commits into
mainfrom
feat/recall-read-only-probe
Sep 7, 2026
Merged

acidkill merged 2 commits into
mainfrom
feat/recall-read-only-probe

Conversation

@acidkill

@acidkill acidkill commented Sep 7, 2026

Copy link
Copy Markdown
Owner

Summary

  • smem_recall gains a reconsolidate argument (boolean, default true), threaded through ReflexPipeline.queryfalse skips post-recall reconsolidation for that invocation only.
  • docs/guides/mcp-server.md gains a "Recall writes by design" section: the deferred-write flush and reconsolidation behaviour, the per-brain reconsolidation_enabled switch, and when speculative callers should pass false.

Why

Closes #198. Recall is a writing operation (conductivity flush + top-5 reconsolidation) gated by a per-brain switch that agent harnesses calling the MCP tool speculatively several times per turn cannot see or scope per call. The docs make the contract findable where callers look; the per-call opt-out gives a genuinely read-only probe without taking the global behaviour away from anyone.

Test plan

  • pytest tests/ -m "not stress" -n auto — 7344 passed (4 new: default True threads through, explicit False threads through, non-boolean rejected, engine signature contract).
  • ruff check / ruff format --check clean; mypy — only the pre-existing google.genai attr-defined noise.
  • Tool schema updated (reconsolidate documented in the input schema).

Verified by

@acidkill

…ly probe when asked

Recall writes by design — deferred-write flush (fiber conductivity, Hebbian
strengthening) plus reconsolidation of the top five matched fibers — but that
contract lived only in retrieval.py, invisible to speculative tool callers.
smem_recall now accepts reconsolidate (bool, default true), threaded through
ReflexPipeline.query alongside the per-brain reconsolidation_enabled switch,
and the guide documents the write-by-design behaviour plus both switches.

Closes #198
@acidkill
acidkill force-pushed the feat/recall-read-only-probe branch from b7ac3fa to fc4f9e0 Compare September 7, 2026 15:51
@acidkill
acidkill merged commit cdb9467 into main Sep 7, 2026
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Which is the source of truth for reconsolidation_enabled?

1 participant