Repository navigation
fix(active-memory): restore SQLite recall sessions - #105255
Conversation
|
Codex review: needs maintainer review before merge. Reviewed July 12, 2026, 6:07 AM ET / 10:07 UTC. Summary PR surface: Source +186, Tests +396, Docs +1, Other -27. Total +556 across 12 files. Reproducibility: yes. at source level. The linked release report gives a consistent log-based reproduction, and current main visibly lacks the canonical SQLite session row required by the strict plugin ownership path; this read-only review did not independently execute the deployment. Review metrics: none identified. Stored data model Root-cause cluster Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. Merge readiness Overall follows the weaker of proof and patch quality, so missing proof can cap an otherwise strong patch. Rank-up moves:
Next step before merge
Security Review detailsBest possible solution: Land the canonical per-run SQLite registration and exact lifecycle cleanup after the PR leaves draft state and passes the repository's normal exact-head landing gates. Do we have a high-confidence way to reproduce the issue? Yes at source level. The linked release report gives a consistent log-based reproduction, and current main visibly lacks the canonical SQLite session row required by the strict plugin ownership path; this read-only review did not independently execute the deployment. Is this the best way to solve the issue? Yes. Registering the embedded recall through the canonical session-store API fixes the ownership invariant without adding a fallback, while unique identities and storage-boundary checks keep cleanup isolated. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 199993510897. Label changesLabel changes:
Label justifications:
Evidence reviewedPR surface: Source +186, Tests +396, Docs +1, Other -27. Total +556 across 12 files. View PR surface stats
What I checked:
Likely related people:
What the crustacean ranks mean
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics. How this review workflow works
|
782acc6 to
2d320b0
Compare
|
Merged via squash.
|
* fix(qa): seed memory scenarios through SQLite * fix(active-memory): initialize SQLite recall sessions * test(active-memory): model missing harness reservation * fix(active-memory): clean up transient recall sessions * fix(active-memory): isolate concurrent recall sessions * fix(active-memory): discard transient SQLite recalls * fix(active-memory): preserve transient recall boundaries * fix(active-memory): retry transient recall cleanup * fix(active-memory): always clean transient recall workspaces * chore: drop release-owned changelog entry
Related: #100167
What Problem This Solves
Fixes an issue where Active Memory recall stopped producing pre-prompt context after session storage moved to SQLite. Embedded recall runs used a transient session identity that was not present in the canonical registry, so strict plugin session ownership could reject the run; QA memory scenarios also still seeded retired JSONL/session-index state.
Why This Change Was Made
Creates each recall session through the canonical SQLite session-store API, uses a unique session key per run, preserves configured transcript artifacts, and removes the transient registry/transcript state after completion. QA scenarios now seed transcript events through the same SQLite runtime path. Cleanup retries remain bounded, cleanup failures are surfaced, and temporary workspaces are still removed if registry cleanup fails.
User Impact
Active Memory can provide pre-prompt recall again under SQLite-backed sessions without leaving transient session rows, transcript artifacts, or temporary workspaces behind. Repeated or overlapping recalls remain isolated.
Evidence
tbx_01kxawxbdj8vb91ne98fq3ecc6: Active Memory tests169/169and QA runtime tests15/15passed.session-memory-rankingandactive-memory-preprompt-recallpassed in.artifacts/qa-e2e/memory-final-c9f8f37d3a5/qa-suite-summary.json.tbx_01kxax74rpm0m0sdtbp7vxrqjg: scopedpnpm check:changedpassed for the 12 PR paths, including Plugin SDK baseline,tsgowith root-levelnoUncheckedIndexedAccess, all oxlint shards, and runtime import cycles.