Repository navigation
feat: store-quality loop — episodic discipline + consolidation hygiene + /status - #60
Merged
Merged
Conversation
Proves the deterministic episodic duplicate-skip must prevent a near-verbatim (0.945 lexical) episodic re-propose under a digit-distinct date-slug topic from minting a duplicate: turn 2 expects ignored, never the skip counter. The corpus gate parametrizes a glob, so the YAML alone is the registration. Deviation from the task brief (forced): runner.py's episodic_retention_days pin 0.0 shared the guard's recency knob, making the cutoff 'now' and deadening the guard offline (scenario fails WITH the guard in the tree at the pin). Unpinned to the production default 30.0; retirement stays inert corpus-wide (fresh temp DB rows are always inside the window, no scenario uses episodic candidates besides this one - all 15 others re-verified green).
…on floor Metis gap review (round 1, MINOR items): - compiler: a topic whose summary was cleared to "" by full episodic retirement still passed the relevance gate on its slug and injected a header-only [topic-summary | memories=0] stub; skip empty summaries. - config: episodic_retention_days comment claims >=0 but negatives were accepted; enforce with Field(ge=0) so validation backs the comment. - tests: stub-absence lock in test_episodic_retirement.py (fails without the guard) + ValidationError-on-negative config test.
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 changes for the daily driver
memory.episodic_retention_daysknob (0 disables), with topic summaries rebuilt for touched topics. Events are untouched — retirement is a derived-status flip.GET /statusoperator window: consolidated health + store/jobs/consolidation/skip counters.Evidence (live store, 2026-10-17)
Measured on the production store (v0.6.2): 2,385 active memories across 1,744 topics; episodic is the largest type at 941 (39%); 84% of memories were never reinforced; consolidation recorded 8 merges across 5,086 passes, of which 2,937 were zero-churn no-ops.
What we expect to move
tests/test_consolidation.py.Deviation note
The corpus runner unpins
episodic_retention_daysto the production 30.0 default (commit 21e4806). The runner's 0.0 retirement pin shared the skip guard's recency knob and deadened the skip guard offline; with the unpin, retirement stays inert in the corpus scenarios.Do not merge — review rounds pending.
Review round 1 notes (gap review)
568d5c6as amend ofafb2586); the branch was unpushed at the time and final history is linear, one commit per plan todo.learning.enabled: falseor upstream-busy deferral pauses retirement too (by design, invariant 5).