Repository navigation
PurposeStore: purpose-indexed memory, stage 0 (#6, part 2) - #14
Merged
Merged
Conversation
…lls from (#6, stage 0) ExtractionUnits keyed by purpose (content-hash id, optional embedding), injected write/read strategies (upsert; relevance x importance x recency), a dol-able backend. The agent's opt-in memory is offered to the evaluator before sweeping: the same purpose run twice reuses its prior extractions instead of re-sweeping. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…s, embedding backfill, exact membership Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
4 tasks
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.
Part 2 of #6 (part 1, the run-log, is #13). Stage 0 of the issue.
raglab.memory:ExtractionUnit(purpose,SearchHit.to_dict()with raw magnitude + provenance, recorded_at, importance, confidence, level, supersedes),purpose_id(content hash of the normalized statement),WriteStrategy/ReadStrategyProtocols withupsert_writeandmake_relevance_recency_reader(relevance^alpha x importance x half-life recency, alpha=1).PurposeStore:MutableMapping[purpose, units]over an injected JSON-cleanbackend(dict or dol store);store[purpose]recalls from related purposes (same normalized text, or cosine >=min_relevancewith an injectedembedder). Calling it with aRoundRecordjournals the round (it is a RunLog sink).memory(MemoryProtocol). Before sweeping a sub-task, recalled hits go to the evaluator (round -1); sufficient means no sweep, else the loop runs with them kept.memory=Noneleaves the loop unchanged.Acceptance: same purpose twice reuses prior extractions (retriever called once); related purpose via a fake embedder;
import raglabimports neither oa nor vd; JSON-clean raw records.Deferred to follow-up issues: CONSOLIDATE, SUPERSEDE/bi-temporal staleness, purpose DAG transfer, cross-run benchmark (the issue's staged follow-ups).
🤖 Generated with Claude Code