Repository navigation
fix(memory): preserve index and session-state integrity - #114319
kevin2966n wants to merge 1 commit into
Conversation
|
Codex review: needs real behavior proof before merge. Reviewed July 31, 2026, 9:15 AM ET / 13:15 UTC. ClawSweeper reviewWhat this changesThe draft changes memory-file pagination, QMD search-result parsing, derived SQLite FTS index reconciliation and disable behavior, and Windows session-path ownership extraction. Merge readiness⛔ Blocked until real behavior proof is added - 9 items remain Keep this PR open. PR close coverage proof kept this PR open against #115685: PR B materially covers only the derived FTS-disable slice of PR A. PR A contains additional material memory parser, pagination, and session-state behavior that PR B does not carry forward, so closing the umbrella PR as fully covered would leave independent work without a canonical review path. Priority: P2 Review scores
Verification
How this fits togetherMemory Core reads local memory files and QMD search output, then stores searchable derived FTS indexes alongside canonical memory rows. Session-path helpers also derive agent ownership for memory transcript ingestion, so incorrect parsing or path normalization can affect memory retrieval and agent-scoped session attribution. flowchart LR
A[Memory files and QMD output] --> B[Memory host parser]
B --> C[Canonical memory rows]
C --> D[Derived FTS indexes]
E[Session file paths] --> F[Agent ownership extraction]
D --> G[Memory search results]
F --> H[Session transcript ingestion]
G --> H
Before merge
Findings
Agent review detailsSecurityNone. PR surfaceSource +129, Tests +177. Total +306 across 11 files. View PR surface stats
Review metrics
Stored data modelPersistent data-model change detected: Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Keep this PR open until a linked canonical PR proves it covers this PR's unique work, or a maintainer confirms closure. Do we have a high-confidence way to reproduce the issue? No high-confidence current-head reproduction is provided by this draft. The changed parser, FTS, and session-path boundaries make the original reports source-reproducible, but the branch lacks inspectable failing-before/after runtime evidence and several portions have since received targeted fixes. Is this the best way to solve the issue? No. The best maintainable path is not to merge this historical umbrella patch unchanged: targeted current-main fixes already cover part of it, so any remaining defect should be isolated after rebasing and compared against those canonical repairs. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against aaab981ab097. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
History |
|
Thank you for documenting this memory-integrity cluster. Every linked issue has already been fixed on main: terminal-newline continuation pages by #115722, noisy QMD output by #115023, invalid primitive QMD results by #115705, derived FTS schema reconciliation by #115775, complete FTS disablement by #115685, and Windows session ownership by #115851. I verified the canonical reader, parser, FTS lifecycle, and Windows owner plus their direct regressions; an actual SQLite in-memory exercise confirmed tokenizer reconciliation, retained source rows, removed disabled indexes and triggers, and no schema-version bump. Closing as superseded by the six focused landed owner fixes; thank you. |
Closes #114313
Closes #114314
Closes #114315
Closes #114316
Closes #114317
Closes #114318
What Problem This Solves
Fixes six memory and session-integrity failures: phantom file pages after terminal newlines, QMD framing noise and primitive entries, stale or malformed derived FTS schemas, incomplete FTS disable cleanup, and loss of agent ownership from case-variant Windows session paths.
Why This Change Was Made
The change validates data at each owning boundary: file-line framing, QMD result framing/types, exact derived FTS schema identity and lifecycle, and centralized platform-aware session ownership extraction. Derived indexes are rebuilt only from canonical rows; no state-schema version bump is needed.
User Impact
Memory reads paginate accurately, noisy QMD output cannot hide or corrupt valid results, FTS configuration transitions recover safely, and Windows session paths retain the correct agent owner.
Evidence
oxfmt, targetedoxlint,git diff --check, state-schema guard, public Plugin SDK surface, protected-path, and secret scans passed.