opsx: memory-core-redesign — proposal, design, spec deltas, tasks#1570
Merged
Aaronontheweb merged 2 commits intoJul 3, 2026
Merged
Conversation
OpenSpec change for the memory-core structural redesign, grounded in the July 2026 audit (PR netclaw-dev#1568, tools/recall-research/AUDIT-2026-07.md): - New capabilities: memory-embeddings (in-process ONNX runtime, pinned allowlist provisioning, embed-on-write, loud degradation) and memory-maintenance (backfill, ratified consolidation with plan files, expiry sweep, memory status). - netclaw-agent-memory deltas: hybrid recall with an absolute cosine floor (zero-injection turns are intended), nominate-by-embedding / decide-by-LLM curation through one shared evaluator, lossless merges with a deterministic MergeGuard, recall modes that mean what they say (searchable leaves the automatic pool), short-lived trace revival, tool-use lesson memories with per-tool context injection, checkpoint enqueue gating; the never-used hierarchical anchor graph requirement is removed. - tasks.md: six independently-shippable slices with constitution gates. openspec validate: passing (17 deltas).
…h/ — research tooling is repo-external (tools/recall-research is gitignored)
Aaronontheweb
force-pushed
the
openspec/memory-core-redesign
branch
from
July 3, 2026 18:06
3c4be42 to
00726fb
Compare
This was referenced Jul 4, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What this is
The OpenSpec change for the memory-core structural redesign — the follow-on to the audit + quick wins in #1568. Planning artifacts only (no production code): proposal, design, spec deltas, and a six-slice task breakdown.
openspec validate: passing, 17 deltas.Framing
The July 2026 audit (#1568,
docs/research/memory-audit-2026-07.md) showed the memory system has lots of mechanism but no judgment (the semantic layers never functioned) and no metabolism (nothing is ever merged, expired, or deleted). This change adds both and subtracts the dead structure three redesign cycles left behind:Add judgment
memory-embeddings(new capability): in-process ONNX runtime (snowflake-arctic-embed 137M int8, CPU, zero sidecars), pinned hash-verified model allowlist with download-at-initialization, embed-on-write with derived backfill state, loud degradation (doctor + status + structured logs; lexical keeps serving, never silently).Add metabolism
memory-maintenance(new capability):netclaw memory backfill-embeddings, ratified consolidation (dry-run plan files → operator-edited → backup-first apply), an expiry sweep that actually deletes (204/384 evidence records are currently expired-but-mummified),netclaw memory status.Subtract
searchablerecall mode leaves the automatic recall pool; formation defaults new durable facts to searchable (breaks the measured 97%-auto monoculture at the source).Sequencing
Six independently-shippable slices (tasks.md): shared evaluator → embedding foundation → write-side nominate/decide → read-side hybrid → taxonomy/trace/lessons → maintenance + subtraction. Each slice carries its constitution gates; explicit measurement gate on ONNX query-embedding latency before the hybrid slice ships.
Relationship to other PRs
/opsx-applyper slice after this change is reviewed.