Repository navigation
v0.18.0
Your agents' memory, on a dashboard.
- Open it:
plur dashboard - Recall stats and written-per-day
- Also inside DeepSeek Harness
plur migrateheals stale hashes
The memory dashboard. plur dashboard opens a local web view of everything your
agents learned — every engram, what actually gets recalled and how often, and a
written-per-day chart with the most-recalled list. It speaks English and
中文, stays read-only and local-only by default, and the same dashboard rides
inside DeepSeek Harness as /plur-memory via the new native @plur-ai/dsh
plugin — engrams land in the system prompt, no tool call. Upgrades self-repair:
plur migrate recomputes stale content hashes, plur doctor counts them, and
plur_learn records measurement conditions.
Migration note — non-ASCII stores
If your store contains statements with non-ASCII letters (Cyrillic, Japanese,
Korean, Arabic, Greek, accented Latin, etc.), those engrams have a stale
content_hash after upgrading. The normalizer used ASCII-only \w in older
versions, so non-Latin text normalized to the empty string and every such engram
shared SHA-256("") — they collided with each other and absorbed unrelated writes.
The normalizer is fixed in this cycle, and the repair ships with it.
Affected population: stores with any non-ASCII letter in at least one statement.
Pure-ASCII stores are unaffected — hashes are byte-identical before and after.
How to repair: run plur migrate once after upgrading — migration 006 (#928) recomputes
the stale hashes, under the store lock, with a backup taken first and a rollback on
failure. plur reindex-hashes --apply remains available for the repair alone, and
its dry-run (plur reindex-hashes, no flag) reports the count without writing.
plur doctor also counts stale hashes and prints the remedy if any are detected
(#911).
Added
-
plur dashboardopens a local memory viewer (#934, #936) (alias:plur ui;
plur statuspoints at it) — every engram, what gets recalled and how
often, a written-per-day chart, and the most-recalled list. Selecting a row expands the
whole engram. Read-only: browsing memory never mutates it, including through a lazy write
path such as decay. Binds127.0.0.1by default and deliberately — the viewer serves an
entire memory store with no authentication;--hostwidens it and prints a warning.
The pages live inpackages/ui— zero-dependency, pure render functions, with the HTTP
host behind a/serversubpath so the root entry stays free ofnode:http. It is
internal and bundled into its consumers, not published. -
@plur-ai/dsh— a native DeepSeek Harness plugin. Not an MCP bridge: PLUR mounts as (#918)
a Cordis plugin and writes engrams into the system prompt, so the model reads them the
way it reads its own instructions — no tool call, no round trip, no turn spent deciding
whether to look. The section is re-rendered on each prompt assembly rather than appended,
so memory does not accumulate in the context as a session runs; the blocking cost on the
turn path measured 0.0ms p50, because recall happens off it. Five tools are still
registered for deliberate use. Scope defaults closed, resolved per workspace from its
.plur.yaml— a global store holds server addresses and client names and must not follow
you into an unrelated project. -
Bilingual viewer (English / 中文). Follows the browser's
Accept-Language, or force
it with?lang=zh. Each language owns its own punctuation and date format rather than
sharing a template — an ideographic sentence closed with a Latin full stop reads as
machine output. Dates are formatted by hand rather than throughIntl, so the page
renders identically regardless of the host's ICU build. Engram content is never
translated; it is your data, not chrome. -
/plur-memoryinside DeepSeek Harness opens that same viewer. A command rather than
a native tab: dsh renders its UI as a React client assembled over a typed slot registry,
so a tab would mean shipping a browser bundle bound to that registry's pre-1.0 internals. -
plur doctorreports stalecontent_hashvalues (#911, #919): after upgrading,
any engram whosecontent_hashno longer matchescomputeContentHash(statement)
is counted and surfaced as an advisory. Non-zero meansplur reindex-hashes --applyis needed. Does not fail the overall doctor check — pure read, no lock,
no writes. -
plur reindex-hashes(#852, #897): repair command for engrams whose
content_hashis stale (does not match the current statement) or missing
(predates the field). Dry-run by default; writes only with--apply. Ships
counts separately — stale hashes actively absorb unrelated writes; missing hashes
are inert until something matches on them. -
content_hashexposed as an MCP lookup key (#895): agents can now retrieve
an engram by its exact content hash, enabling stable cross-session references
without relying on ids that change on MERGE. -
measured_underfield onplur_learn(#869): numeric and benchmark engrams
can now record their measurement conditions (date, dataset, config, hardware),
preventing stale numbers from being treated as eternal facts out of context. -
PLUR_MODEL_CACHE_DIRplaces the embedding-model cache (#886): transformers.js
derives its cache from the package location and reads no environment variable, so
an npm-installed consumer kept the ~128MB model insidenode_modulesand every
npm cidestroyed it. Precedence:PLUR_MODEL_CACHE_DIR, thenHF_HOME
(honoured even though the library ignores it, because an operator reasonably
expects it to work), then the library default. -
injection_countfield (#866): countsinject()selections separately from
recall()activations. High injection with low positive feedback is the
efficacy-failure signal #865 needs.
Fixed
-
CJK bigram emission is capped per space-less run (#899, #903): one long
pasted CJK document wrote ~n GIN index entries and dominated the index.
MAX_SPACELESS_RUN_CHARS = 512truncates the run — prefix kept, because the
opening of a run is what a query is most likely to share. -
Installed-pack engrams are injected once, not twice (#901, #903): the
corpus merge and the pack loop each scored the same engram under different
rules, letting the stray copy displace a distinct engram and inflating
total_injections.pack_countstelemetry now buckets in the pack loop,
preserving #553's guarantee. -
A compacted engram id is never minted again (#816, #903): max-suffix id
allocation now consultshistory.jsonl(append-only, synced, never pruned)
as well as the live corpus, socompact()cannot free an id for reuse. No
new persistent state; a missed history write can only leave allocation where
it is, never collide. Also from #903: everyRemoteStorerequest is bounded,
andforget/feedbackremote walks distinguish "not found" from "could not
look" (#907) —forgetrefuses on uncertainty,feedbackwarns and proceeds. -
plur doctorsanitises remote error response bodies (#912, #919):RemoteStore.append
now truncates server error responses to 200 characters and strips control characters
before storing inoutbox.last_error, preventing large HTML error pages from
polluting the outbox view or injecting terminal escape sequences. -
content_hashkept in step with the statement on UPDATE and MERGE (#852, #894): whenlearn()rewrote a statement (UPDATE path) or merged two engrams
(MERGE path), the storedcontent_hashwas not recomputed. The updated statement
therefore had a hash pointing at its old text — making it an attractor for any
future write whose statement hashed to the old value. Now recomputed on every
path that changes the statement, and absorptions are recorded. -
Non-Latin statements no longer collapse to a shared hash (#896):
normalizeStatement
used JavaScript's ASCII-only\w([A-Za-z0-9_]), so every non-Latin character
was stripped before hashing. Statements in Cyrillic, Japanese, Korean, Arabic,
Greek, and accented Latin all normalized to the empty string and therefore to
SHA-256(""). Four unrelated facts written in the same non-Latin script were
absorbed into one engram, with three silently destroyed and four reported as
successes. Fixed in the #896/#900 audit pass; a migration command (plur reindex-hashes --apply) ships alongside so existing stale hashes can be repaired. -
reindex-hashes --applynow runs inside the store lock (#900): the previous
implementation did an unlocked whole-corpus read-modify-write, reproduced as a
silent data-loss race on a 4,642-engram store at 6/6. Moved inside
_withStoreLockand refuses to write the shared empty-string hash (reporting
those rows as a third category rather than stamping the collision hash onto every
previously-affected engram). -
Eleven post-merge defects (#900): a three-pass audit over the 2026-08-13
batch — data-loss, adversarial, and evaluator passes run blind to each other —
found and fixed: non-Latin dedup collapse (#896), locked reindex, local-scope
remote-DELETE, unbounded fetch inside store lock, supersedes flush ordering,
inject whole-corpus writer, outbox merge-back snapshot revert, circuit breaker
dual state file, Japanese loanword tokenizer split,searchBM25Exhaustive
readonly whitelist gap, and asaveEngramsquarantine precondition. Every fix
has a test that fails when the fix is reverted. -
js-yaml advisory GHSA-5p4m-2wfm-xmqj (high): the root pnpm override permitted 4.3.0.
Tightened to>=4.3.1 <5. -
Remote error sanitisation no longer destroys non-ASCII diagnostics (#923, #925):
the truncation added above stripped[^\x20-\x7E]— everything outside printable
ASCII — so a server error in Japanese, Cyrillic or any accented Latin arrived in
outbox.last_erroras a row of nothing. The escape-injection vector it exists to
block is entirely within the control-character range, so the class is narrowed to
[\x00-\x1F\x7F]and the 200-character truncation is now code-point-safe rather
than UTF-16-safe (an emoji at the boundary was being cut in half). -
ENGRAM-STANDARD-v1.mddocumentsmeasured_under, and cannot silently drift
again (#924, #927): the field shipped in the schema but not in the published
interoperability standard, so an implementer reading the standard concluded it was
not part of v1 while the reference implementation accepted and wrote it. The JSON
Schema was already drift-guarded in CI; the markdown was not. A test now asserts
every top-levelEngramSchemafield appears in the standard. Two fields are
excluded with the reason recorded:exchange(documented asexchange.*
sub-fields) andinsight(genuinely undocumented — a real gap, tracked rather
than hidden). -
Deliberate feedback is no longer erased by mere use (#888): passive retrieval
movedretrieval_strengthby +0.10 while an explicit positive rating moved it
+0.05 and a negative one −0.10 — so a star was worth half of being incidentally
fetched, and a considered "this is wrong" was exactly cancelled by the next recall
that returned the engram. The field saturated at 1.0 within three recalls, after
which no feedback in either direction was visible in it at all. Retrieval and
rating are now separated rather than rebalanced, so each remains legible. -
Local cosine dedup actually runs when no LLM is configured (#854, #856): the
cosine fallback existed only in comments — candidates were fetched, filtered, and
discarded unread, so every install without an LLM key had exact-hash dedup only
and wrote every reworded near-duplicate. Measured on the store: 131 near-duplicate
engrams in 63 clusters over five months. Local similarity now decides, and both
write paths reportdedup.near_duplicatesinstead of guessing a threshold. -
Every script is tokenized, not just ASCII and Han (#890): measured before the
fix, Japanese kana, Korean, Arabic and Hindi returned[]from the FTS tokenizer,
Russian and Thai returned only embedded English words, and accented Latin split at
each accent (déploiement→ploiement). Nonspacing marks (\p{M}) join the
character class, space-less runs are stripped from the word path, and the length
floor respects dense scripts where two-character words are ordinary (도커). -
plur_learnreports ids in the namespaced form recall returns (#914, #916):
the write report handed back the server-assigned id while every read path returns
the namespaced one, so a caller that recorded what it had just written held a
shape no read path produces. The namespacing rule lives in one function
(namespaceEngramId) so the two surfaces cannot drift apart. (The batch path was
missed and still misreports — tracked as #930.) -
supersedesis remapped or refused on outbox flush, never dropped (#863, #892): an edge pointing at a local id was silently discarded when the engram was
delivered to a remote store. It is now remapped when the target resolves and the
write refused with the reason recorded when it cannot — an explicit failure
instead of quietly severed provenance. -
A rescoped engram is not later delivered to the store it was moved away from
(#882): the outbox entry kept the original target, so when that host recovered —
arbitrarily later — the delivery silently undid the rescope. The pending entry is
now cancelled at rescope time. -
Outbox flush consults the per-host circuit breaker (#887): the read leg
already backed off after three network-class failures; the write leg attempted one
full-timeout write per queued engram against a host the client had already given
up on, every session start, and never fed its failures back. -
Remote writes carry
pinned,rationale,commitmentandtags(#768,
in #875): the POST body serialized only statement/scope/domain/type, so a
team-scope policy engram written withpinned: truewas stored without the pin
and never bypassed the relevance gate for subscribers. -
Server
nulls in scope metadata no longer disable covers-based auto-routing
(#880): Zod's.optional()rejectsnull, and an unset nullable column is
exactly what a server serialises as null — every ordinary scope row failed
parsing, vanished inside aflatMap, and team knowledge silently stopped
reaching team scopes while the admin dashboard showed every scope healthy. The
schema now tolerates the shape, and a dropped entry is logged instead of silent. -
An explicit empty
forbidlist means "not configured", not "forbid nothing"
(#883):?? defaultsupplies the default only for null/undefined, so a policy
normalised withforbid: []turned the sensitive-content scan off while looking
more governed than no policy at all. Core's own paths were not live-exposed (the
schema already coerces[]to the default — pinned by two tests), but the guard
was wrong standalone and now defaults on emptiness too. -
readonly: trueworks on stores that answer queries themselves (#884):
ReadonlyStoreGuardforwarded a whitelist that omittedrole/searchBM25, so a
guarded query-capable store failed the adapter check and recall fell through to a
path with nothing to read — a crash exactly where readonly is most wanted
(shared multi-tenant storage). -
Hybrid recall no longer reads the whole corpus when a Postgres primary can
filter server-side (#906, #922):recallHybridWithMetacalled
_loadAllEngrams— a full table read — on every invocation even when the
primary store supports a scoped query._filterEngramsnow pushes
status/scope/domain filters down to the adapter, with packs and remote
secondary stores merged through the same loader every other read path uses.
ReadonlyStoreGuardforwardsloadFiltered, so guarded multi-tenant stores
keep the pushdown instead of demoting to the fallback; a query-capable store
withoutloadFilteredtakes the fallback read rather than crashing. -
plur doctorreports the live remote state, not a cached failure (#864, #873): one cold-start timeout stamped a degradation warning onto every later
response for the life of the process, pointing the operator at a healthy server.
Outcomes now carry their age; present-tense surfaces fall silent past the TTL
while doctor keeps history and renders the age.
Also in this release
- Release pipeline: the smoke gate waits for core propagation instead of
burning a version on registry lag (#842);--trust-civerifies required CI
on the exact commit when the release machine is too contended for the local
suite (#943). - The forensic payload-drop log records scalar-only drops, so it can falsify
rather than assume #297's array hypothesis (#853). - CI detects the
addAssigneessilent-drop for first-time contributors (#862). - Engram field-compatibility rules live in one place, applied at every loader
(#879). - A pushdown storage adapter can signal candidate-set exhaustion, saving 2-3x
re-query amplification at 50k+ engram scale (#891); the routing test spy
counts both adapter entry points (#893). - The geo-visibility skill was added (#849) and removed (#926) within this
cycle — net absent from 0.18.0. - The 0.18.0 notes themselves were audited against the shipped-PR manifest and
completed (#929, #944) — including entries this gate itself forced.
Changed — operations that used to succeed can now refuse
-
forget()refuses an ambiguous bare id (#831, #855): ids are minted per
store, so one bare id can name several unrelated engrams.forgetresolved
primary-first and retired whichever it reached — in real use it destroyed the
wrong engram (history for one id showed three creations across three scopes).
An unqualified id that resolves in more than one place is now an error;
{ scope }disambiguates. Retiring is destructive and not reversible from the
caller's side, so refusing beats guessing by a wide margin. -
feedback()refuses an ambiguous bare id across stores (#850, #851): the
same ambiguity, the same resolution — a rating that could land on the wrong
engram is refused with the candidate scopes listed, rather than applied to a
coin-flip target.
Changed — forward compatibility
-
commitmentaccepts a fifth value,draft(#905, #908): the schema documented
a review-queue state that deployments could supposedly add through the schema's
passthrough(). That mechanism cannot work —passthrough()preserves undeclared
keys, never an out-of-enum value for a declared key — socommitment: 'draft'
failed validation and was quarantined at load. The enum is widened rather than the
claim deleted, because a review queue is genuinely wanted.Core stores and recalls a
draftengram like any other; it is not withheld from
recall, injection or sync. Enforcement belongs to deployments that implement a queue.
A positive feedback signal does not promote it out of review (nextCommitment).This is a forward-compatibility break worth planning around. Widening an enum is
safe for readers of old data, but not for writers of new: an engram written with
commitment: 'draft'fails validation on an older core and is quarantined there.
In a mixed-version fleet, or a store synced between machines on different versions,
upgrade the readers before anything starts writingdraft. -
reference_countis renamedwrite_count(#866, #874, #875): Node 26 is
supported in the same change. the schema field
name never matched what the write path set, so the counter never incremented —
4,496 of 4,559 engrams stuck at 1 confirmed the bug was universal.loadEngrams
backfills the legacy key on first parse and strips it on the next write; both
decrement sites readreference_countas a fallback so an old store arriving
mid-decrement does not lose its count. Per the spec: implementations MUST
backfill on first parse of old stores. The JSON Schema and
ENGRAM-STANDARD-v1.mdare updated.