|
| 1 | +# Post-v0.1.162 live topic-aware supersession preview |
| 2 | + |
| 3 | +Status: AI-authored draft. Not yet human-approved. |
| 4 | +Last updated: 2026-05-28 10:43 KST |
| 5 | + |
| 6 | +## Scope |
| 7 | + |
| 8 | +Continued from the fresh live read-only automation-policy checkpoint and inspected the concrete next-lane preview candidates against the real live DB `/Users/reddit/.agent-memory/memory.db`. |
| 9 | + |
| 10 | +Primary run directory: `/tmp/agent-memory-next-candidate-review-20260528T103752Z` |
| 11 | + |
| 12 | +No mock DB or smoke DB was used for the live decision. Focused tests were used only because the supersession preview code changed. |
| 13 | + |
| 14 | +## Live evidence inspected |
| 15 | + |
| 16 | +Re-ran the documented review-only next-lane previews: |
| 17 | + |
| 18 | +- `/tmp/agent-memory-next-candidate-review-20260528T103752Z/reinforcement-refinement-preview.json` |
| 19 | + - `kind=dogfood_reinforcement_refinement_preview` |
| 20 | + - `read_only=true`, `mutated=false`, `default_retrieval_unchanged=true` |
| 21 | + - `candidate_count=7` |
| 22 | + - high-tier reinforcement review candidates: `procedure:1`, `fact:1`, `episode:1`, `fact:6`, `fact:4`, `fact:8` |
| 23 | + - `fact:5` remained low-tier with activation count `1` |
| 24 | +- `/tmp/agent-memory-next-candidate-review-20260528T103752Z/decay-collapse-preview.json` |
| 25 | + - `kind=dogfood_decay_collapse_preview` |
| 26 | + - `read_only=true`, `mutated=false`, `default_retrieval_unchanged=true` |
| 27 | + - `candidate_count=1` |
| 28 | + - candidate `fact:5`, `resolution_hint=collect_more_activation_evidence_before_decay_action` |
| 29 | + - ref-safe evidence says the memory exists, is approved/default-visible elsewhere, has scope and one relation; no raw content included |
| 30 | +- `/tmp/agent-memory-next-candidate-review-20260528T103752Z/supersession-preview.json` |
| 31 | + - pre-fix preview returned one high-tier `same_claim_slot_conflict`: `fact:5` vs `fact:9` |
| 32 | + - live review artifacts showed this was not a semantic supersession candidate; both facts are independent user preferences under the broad `(user, prefers, project:agent-memory)` slot: |
| 33 | + - `fact:5`: real downloaded-install QA for agent-memory milestone releases |
| 34 | + - `fact:9`: autonomous agent-memory progress when next steps are clear |
| 35 | + - both have independent auto-approval graph evidence and approval history |
| 36 | + |
| 37 | +## Code change |
| 38 | + |
| 39 | +The supersession preview now reuses the existing remember-preference topic key for `subject_ref=user` and `predicate=prefers` before treating preference memories as same-slot supersession candidates. |
| 40 | + |
| 41 | +Effect: |
| 42 | + |
| 43 | +- independent preference topics no longer appear as supersession/replacement candidates just because they share `(user, prefers, scope)` |
| 44 | +- same-topic preference contradictions still appear for human review |
| 45 | +- non-preference facts keep the previous subject/predicate/scope behavior |
| 46 | +- preview remains read-only and does not write review rows, relations, status transitions, ranking data, or core memories |
| 47 | +- ref-safe review command templates now use existing CLI verbs (`review explain`, `review history`, and `review replacements`) instead of the stale invalid `review fact` shape |
| 48 | + |
| 49 | +Post-fix live artifact: |
| 50 | + |
| 51 | +- `/tmp/agent-memory-next-candidate-review-20260528T103752Z/supersession-preview-topic-aware.json` |
| 52 | + - `read_only=true` |
| 53 | + - `mutated=false` |
| 54 | + - `default_retrieval_unchanged=true` |
| 55 | + - `candidate_count=0` |
| 56 | + - quality gate red only on `no_supersession_candidates_ready` |
| 57 | + |
| 58 | +This resolves the only live supersession review candidate as a topic-grouping false positive. No supersession/replacement corridor should be opened from it. |
| 59 | + |
| 60 | +## Verification |
| 61 | + |
| 62 | +Focused code tests: |
| 63 | + |
| 64 | +```text |
| 65 | +uv run pytest tests/test_cli.py -q -k 'supersession_preview' |
| 66 | +3 passed, 254 deselected |
| 67 | +``` |
| 68 | + |
| 69 | +Live real-DB verification: |
| 70 | + |
| 71 | +```text |
| 72 | +uv run agent-memory dogfood supersession-preview /Users/reddit/.agent-memory/memory.db --limit 200 --top 20 --output /tmp/agent-memory-next-candidate-review-20260528T103752Z/supersession-preview-topic-aware.json |
| 73 | +``` |
| 74 | + |
| 75 | +Result: zero supersession candidates after topic-aware grouping, with no mutation. |
| 76 | + |
| 77 | +## Current stop gates |
| 78 | + |
| 79 | +- Do not create a supersession/replacement relation for `fact:5` and `fact:9`; they are independent preference topics. |
| 80 | +- Do not collapse/deprecate/delete `fact:5`; decay preview still recommends collecting more activation evidence, not mutation. |
| 81 | +- Do not persist duplicate lifecycle reinforcement candidates; refresh preview previously had no new unapplied targets. |
| 82 | +- Keep broad/background/default mutation, ordinary conversation auto-approval, default-ranking mutation, telemetry reset, core memory-status writes, retrieval-ranking writes, and unreviewed promotion blocked. |
| 83 | + |
| 84 | +## Next safe action |
| 85 | + |
| 86 | +Continue with real live read-only evidence. The remaining concrete review material is: |
| 87 | + |
| 88 | +1. reinforcement refinement candidates, especially high-activation approved memories, but mutation still needs a separate guarded policy/corridor; |
| 89 | +2. `fact:5` decay monitoring, where current evidence supports more activation collection rather than collapse/deprecation; |
| 90 | +3. ordinary-turn auto-approval readiness, which remains blocked until explicit remember-intent evidence exists. |
0 commit comments