Skip to content

v0.15.0

Choose a tag to compare

@plur9 plur9 released this 24 Jul 16:11
· 1754 commits to main since this release

Scopes go live + leaner MCP.

  • lean default — 74% fewer tokens
  • scope routing + plur scopes CLI
  • plur receipt — memory receipt
  • scope-aware sync + security fixes
  • MCP SDK v2 (split packages)
  • Windows path + ID uniqueness fix
  • two P0 security fixes: credential redaction + receipt snippet sanitization

Changed

  • Lean tool profile is now the default (#625, #694): the MCP server exposes 12 tools — 11 core + the plur_admin dispatch (down from 40) to every consumer — Claude Code, Cursor, Windsurf, OpenClaw, Hermes, and nightshift agents alike. Per-turn tool-schema overhead drops ~74% (~2K vs ~9K tokens). All 40 tools remain reachable via plur_admin { action: "<tool>", args: {...} }. Restore the full surface with PLUR_TOOL_PROFILE=full. Consumers that depend on all 40 tools being available by default must either call via plur_admin or set PLUR_TOOL_PROFILE=full.
  • MCP SDK v2 migration (#638): @plur-ai/mcp now uses the MCP SDK v2 split packages (@modelcontextprotocol/server, @modelcontextprotocol/client, @modelcontextprotocol/core @ 2.0.0-beta.4), replacing the monolithic @modelcontextprotocol/sdk@^1.12.0. Prepares for the MCP spec stable release (2026-07-28). The public API of @plur-ai/mcp is unchanged; 226 tests pass.

Added

  • plur-langchain adapter (#529): new Python package providing a LangChain BaseMemory + BaseChatMessageHistory adapter. Install with pip install plur-langchain. Chains and LCEL pipelines now get persistent engram memory with zero extra wiring.
  • plur scopes CLI — per-scope opt-out for authorized-but-unregistered scopes (#647, #656): plur scopes lists shared scopes from configured remotes (with each scope's description); plur scopes register <scope> adds one; plur scopes dismiss <scope> opts out permanently (persisted to ~/.plur/config.yaml); plur scopes --reoffer clears all dismissals. Dismissed scopes are excluded from plur scopes list and from the MCP session-start hint. The session-start nudge is now a single quiet line pointing at plur scopes (replacing the all-or-nothing register:true model and the verbose agent-facing guide text users never saw).
  • plur receipt + plur_receipt MCP tool — the memory receipt (#660): a counted, local, read-only report of what your memory actually retrieved for you — how many times a memory was put in front of the model, how many distinct engrams it drew on, and which are most relied on (with their statement text). Every figure is directly counted — no estimate, no counterfactual, no dollar or token-savings figure (on a subscription your marginal token cost is zero). Scoped to local memory (primary store + installed packs) so the number is identical from the cold CLI and the warm MCP server; retrievals of team-store engrams are reported separately. Nothing leaves the machine.
  • co_injection history events now record tokens_used and the calling source (#660): session_start / inject / hook sources are tagged at every injection call site. Hook retrievals now also carry the session id, so the receipt's (engram, session) unit is well-defined. Events written before this change remain fully readable.
  • Missing-domain nudge at capture time (#671, #677): a write without a domain cannot auto-route (the domain-prefix channel is the only signal that reliably clears the auto-route threshold), so plur_learn, plur_learn_batch, and plur learn now return an advisory domain_hint when a domain-less, scope-less write lands unrouted while covers-declaring scopes are registered. Silent on personal installs with no covers-bearing scopes; never blocks a write.
  • Scope-filtered push for shared sync remotes (#640, #678): new sync.remote_type config (personal | shared). personal (default) keeps the historical mirror-everything behavior; shared pushes ONLY shared-family-scope, non-private engrams — personal-family (local/global/user:*/agent:*) and visibility: private engrams never reach a team remote, by construction. Also fixes a latent leak: the merge-conflict resolution commit previously staged engrams.yaml verbatim, so scope:local engrams could ride into the remote on that path. Known limit: the filter covers engrams.yaml; the sibling store files (episodes.yaml/candidates.yaml/tensions.yaml) still sync verbatim — sibling-file strip tracked in #686.
  • min_confidence floor wired into the suggestion surface (#670, #675, #683): suggestScope accepts { minConfidence }, a new scope_routing.min_confidence config key floors the advisory candidate list, and plur_suggest_scope applies a display default of 0.15 so lone-keyword noise (≈0.12) no longer surfaces to agents (pass min_confidence: 0 for the unfiltered list). The auto-route gate (match_threshold) is unchanged.

Fixed

  • plur_recall_hybrid fails with ENOENT: mkdir '' on Windows (#641, #642): saveCache extracted the directory with cachePath.lastIndexOf('/'), which returns -1 on Windows backslash paths — substring(0, -1) yields '', and mkdirSync('') throws ENOENT. Replaced with path.dirname() (cross-platform) and added a guard against empty dirname. plur_recall / plur_learn / plur_doctor were unaffected; only the hybrid path (plur_recall_hybrid) hit saveCache. Regression tests added (4 cases, offline mock embedder).
  • Dependency security overrides (#632): tightened transitive dependency overrides addressing 30 Dependabot alerts across openclaw, undici, linkify-it, and js-yaml.
  • generateInjectionId / generateEventId cross-process uniqueness (#596): IDs are now unique across processes started within the same millisecond. Replaced Date.now() + 4-char random suffix with a per-process counter — eliminates the ~0.07% birthday-collision chance per 50-call batch and removes the intermittent expected 49 to be 50 flake in co-injection tests.
  • RemoteStore.load() — no cache poisoning on mid-pagination error (#550): a network or server error mid-way through a paginated remote load no longer overwrites the local cache with partial data. The local cache is only updated after a complete, successful load.
  • PID salt for cross-process ID uniqueness (#600): ID generation now includes the process ID as a salt, preventing collisions between sibling processes (e.g. parallel nightshift agents) that start in the same millisecond.
  • Security: plur status --json printed live enterprise bearer tokens (#660): StatusResult embedded the full PlurConfig, so --json piped the stores[].token values (live credentials for configured enterprise servers) to stdout — into CI logs, pasted issues, and agent transcripts. All CLI JSON output is now credential-redacted at the output boundary, so every present and future JSON command inherits the protection. Redaction also masks credentials embedded in string values (URL userinfo, e.g. https://user:pass@host), which a key-based denylist cannot reach.
  • Security: memory receipt snippet sanitized against hostile engram statements (#660): statement text can come from third-party installed packs; the "most relied on" snippet (printed to the terminal and returned to the calling agent) now strips ANSI/terminal escapes, C0/C1/DEL controls, Unicode line/paragraph separators, and bidi (Trojan-Source) reordering + zero-width spoofing characters before rendering. Truncation is grapheme-safe.
  • MCP Registry publish now fires on every release (#695): the publish workflow ran on release: published, which GitHub suppresses when the release is created by a GITHUB_TOKEN actor — v0.14.0 shipped to npm while registry.modelcontextprotocol.io stayed at 0.13.0 (the registry feeds mcp.so and PulseMCP). release.sh now triggers the workflow deterministically after gh release create (Step 7b); the workflow is workflow_dispatch-only so the suppressed/double-run event path is gone.
  • suggestScope silently inert for remote scopes (#668, #674): discoverRemoteScopes() fetched scope_metadata (including covers[]) from GET /api/v1/me but never wrote it to the local config store entries that listScopeMetadata() and suggestScope() read — so scope routing returned [] for every remote scope regardless of query relevance. New persistScopeMetadata() call at every /me pull site (session_start, registerDiscoveredScopes, registerScope) fixes this.
  • Scope metadata trust hardening + registry hygiene (#685): nine fixes from the 2026-07-24 scope audit. HIGH: a hostile/compromised enterprise /me could serve sensitivity:{allow:['secrets','infra']} and — because persistScopeMetadata() persisted it verbatim and the leak guard checks allow before forbid — silently disarm the write-time leak guard at the next session_start. Remote sensitivity now only TIGHTENS: remote allow is never persisted, forbid is sanitized to the known categories, and a hand-edited local allow remains honored. Also: the metadata change-detector now converges (no more config.yaml rewrite + mtime churn on every session_start); plur_scopes_discover register:true respects dismissed scopes (per-scope registerScope stays the override); session_start guidance describes post-#674 auto-routing honestly; overwriting hand-set local covers/description warns; endpoint URL identity folds https://x.com / https://x.com/ / https://x.com/sse spellings (new normalizeEndpointUrl); config.yaml persists run under withLock; scope-family prefixes and dismissed-scope matching are case-insensitive; the unscoped write path reloads a changed config before routing.