refactor: add SQLite transcript identity adapter#90437
Conversation
|
Codex review: needs real behavior proof before merge. Reviewed June 21, 2026, 8:55 AM ET / 12:55 UTC. Summary PR surface: Source +2392, Tests +1652, Generated +91. Total +4135 across 17 files. Reproducibility: yes. for the review findings at source level. Current main rejects raw message events and uses a non-mutating runtime read target, while the PR head accepts raw SQLite/file-backed message events and routes read probes through the write target. Review metrics: 2 noteworthy metrics.
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:
Proof guidance:
Risk before merge
Maintainer options:
Next step before merge
Security Review findings
Review detailsBest possible solution: Restack this adapter onto current main and the active SQLite foundation, preserve current schema and transcript read/write invariants, then merge only after focused tests plus real SQLite adapter and upgrade proof. Do we have a high-confidence way to reproduce the issue? Yes for the review findings at source level. Current main rejects raw message events and uses a non-mutating runtime read target, while the PR head accepts raw SQLite/file-backed message events and routes read probes through the write target. Is this the best way to solve the issue? No. The branch-by-abstraction direction aligns with the tracker, but this branch is not the best merge shape until it is rebased, preserves current-main schema, fixes the raw-message and read-probe invariants, and supplies real proof. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against c85113e30e2a. Label changesLabel justifications:
Evidence reviewedPR surface: Source +2392, Tests +1652, Generated +91. Total +4135 across 17 files. View PR surface stats
Security concerns:
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
|
a5012a3 to
a0e06d4
Compare
8432a1b to
efbe88d
Compare
cb112eb to
57aa52c
Compare
What
Adds the SQLite-side transcript runtime identity/state adapter for the canonical transcript identity contract. This keeps the storage-neutral transcript runtime API shape while adding temp-DB backed SQLite coverage for the future storage flip.
Why
Path 3 needs the file-backed transcript identity contract and SQLite implementation to agree before transcript readers, writers, and plugin/memory consumers can be validated under SQLite without depending on filesystem
sessionFileidentity.Changes
Testing
node scripts/run-vitest.mjs src/agents/embedded-agent-runner/transcript-runtime-state.test.ts src/config/sessions/session-accessor.conformance.test.ts src/config/sessions/session-accessor.test.ts.agents/skills/autoreview/scripts/autoreview --mode branch --base clawdbot-d02.1.9.1.15.1/31b-transcript-identity-state-contract --no-web-search --thinking codex=lowRefs #88838