You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Memory: distill procedural strategy entries from successes and failures (ReasoningBank pattern) #308
From the memory-systems research: ReasoningBank (Google, arXiv 2509.25140, open code) shows distilling reusable STRATEGIES from both successful and failed trajectories beats fact memory (+34% relative success, -16% steps; failures carry much of the gain).
Solenta's types map as: run = episodic, knowledge = semantic, convention = closest to procedural. The gap is a true strategy type: short 'when doing X, do/don't Y' entries distilled periodically from helpful/harmful feedback evidence and failed runs (the self-judgment signal ReasoningBank uses), injected at bootstrap. Distinct from #301 (consolidation of existing entries): this creates a new abstraction layer above them.
Implementation split, in flight on coder/memory-distill-procedural-strategy-entri-f14749:
Contract (done, 136545a) — fifth entry type strategy, ranked between convention (5) and knowledge (3). widenEntryTypes() rebuilds the entries table on existing DBs since SQLite can't ALTER a CHECK; it reuses the DB's own DDL so the later column migrations still fire. memory_bootstrap gains a strategies section (whole bodies, 500-token budget) plus a protocol line.
memory_distill (grok worker) — read-only report mirroring memory_maintenance: harmful-feedback entries with their notes, abandoned tasks, recent runs, helpful entries, and the strategies already stored. The server has no LLM, so distillation is agent-driven: the report hands over the evidence and the calling agent writes the type: 'strategy' entries. Store-time dedup is what stops restatements — no new state, no watermark.
App surface (grok worker) — strategy through MemoryEntryInfo, the MemoryTab badge/filter/store form, devCoder seeds, and any electron proxy allowlist. No new UI.
Deferred: no automatic distillation schedule (the janitor stays dumb), and no server-side LLM.
Both grok workers landed; branch coder/memory-distill-procedural-strategy-entri-f14749 is complete and green (local, not pushed).
memory_distill returns { failures, successes, existing, instructions }, each list project-scoped, live-only, capped at 20 with the true total alongside so nothing truncates silently. Failures = harmful-feedback entries with their last 5 feedback_log notes + abandoned tasks; successes = helpful entries + runs from the last 14 days.
App side: strategy through MemoryEntryInfo, its own badge, the store form, and a dev seed. The electron proxy has no type allowlist, so nothing to widen there.
Seam the two workers each faked: a strategy stored over REST (how the Memory tab writes) must come back out of memory_bootstrap and memory_distill. Covered in test/rest.test.js.
Tests: memory 173/173, renderer 913/913, core 38/38, electron 1159/1160 (the failure is the pre-existing wireClient × webBridge socket baseline on main).
Activity
currentbits commentedon Aug 18, 2026
Implementation split, in flight on
coder/memory-distill-procedural-strategy-entri-f14749:strategy, ranked between convention (5) and knowledge (3).widenEntryTypes()rebuilds the entries table on existing DBs since SQLite can't ALTER a CHECK; it reuses the DB's own DDL so the later column migrations still fire.memory_bootstrapgains astrategiessection (whole bodies, 500-token budget) plus a protocol line.memory_distill(grok worker) — read-only report mirroringmemory_maintenance: harmful-feedback entries with their notes, abandoned tasks, recent runs, helpful entries, and the strategies already stored. The server has no LLM, so distillation is agent-driven: the report hands over the evidence and the calling agent writes thetype: 'strategy'entries. Store-time dedup is what stops restatements — no new state, no watermark.strategythroughMemoryEntryInfo, the MemoryTab badge/filter/store form, devCoder seeds, and any electron proxy allowlist. No new UI.Deferred: no automatic distillation schedule (the janitor stays dumb), and no server-side LLM.
currentbits commentedon Aug 18, 2026
Both grok workers landed; branch
coder/memory-distill-procedural-strategy-entri-f14749is complete and green (local, not pushed).memory_distillreturns{ failures, successes, existing, instructions }, each list project-scoped, live-only, capped at 20 with the true total alongside so nothing truncates silently. Failures = harmful-feedback entries with their last 5feedback_lognotes + abandoned tasks; successes = helpful entries + runs from the last 14 days.strategythroughMemoryEntryInfo, its own badge, the store form, and a dev seed. The electron proxy has no type allowlist, so nothing to widen there.memory_bootstrapandmemory_distill. Covered intest/rest.test.js.Tests: memory 173/173, renderer 913/913, core 38/38, electron 1159/1160 (the failure is the pre-existing
wireClient × webBridgesocket baseline on main).