refactor: route plugin SDK session entries through seam#89204
refactor: route plugin SDK session entries through seam#89204jalehman wants to merge 23 commits into
Conversation
|
Codex review: needs real behavior proof before merge. Reviewed June 14, 2026, 12:48 AM ET / 04:48 UTC. Summary PR surface: Source +1072, Tests +761, Config +6, Generated 0, Other +146. Total +1985 across 22 files. Reproducibility: not applicable. This is a refactor/migration slice rather than a bug report; the review proof path is compatibility validation for plugin/runtime session helper behavior. Review metrics: 1 noteworthy metric.
Stored data model 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: Land this only after the base seam is settled, the branch is refreshed against current main, SDK API option parity is preserved, generated baselines are regenerated, and redacted real plugin/runtime session proof is added. Do we have a high-confidence way to reproduce the issue? Not applicable. This is a refactor/migration slice rather than a bug report; the review proof path is compatibility validation for plugin/runtime session helper behavior. Is this the best way to solve the issue? No, not yet. The accessor seam is the right layer for the migration plan, but this PR needs branch refresh, SDK API parity, baseline regeneration, and real behavior proof before it is the best merge candidate. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 231b5a14d5d7. Label changesLabel justifications:
Evidence reviewedPR surface: Source +1072, Tests +761, Config +6, Generated 0, Other +146. Total +1985 across 22 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
|
f18f99c to
b39023f
Compare
a617bb7 to
3c7b433
Compare
a13e0eb to
890d5e3
Compare
890d5e3 to
b496b4b
Compare
3c7b433 to
51d8d95
Compare
|
Follow-up: the plugin SDK API baseline needs regeneration on this branch ( |
1e31abd to
094f9b5
Compare
9a55d1b to
58aa59e
Compare
What
Routes the Plugin SDK and plugin runtime session entry helpers through the 3.1a session accessor seam for entry-level read/list/patch/update/upsert behavior, while preserving the existing public object-parameter API shape.
Refs #88838. Depends on #88840.
Why
This is one Path 3 3.1b caller-adoption slice: plugin-facing session entry APIs need to stop depending directly on file-backed store helpers before the session storage implementation can be validated and later flipped behind the seam.
Changes
preserveActivityScope
Included: entry-level SDK/runtime
getSessionEntry,listSessionEntries,patchSessionEntry,updateSessionStoreEntry, andupsertSessionEntry, plus 3.1a seam support forpreserveActivity.Excluded: transcript identity,
sessionFileidentity, public whole-store compatibility modernization, SQLite validation branch wiring, storage flip, doctor migration, and runtime dual-read/fallback behavior.Testing
node scripts/run-vitest.mjs src/plugin-sdk/session-store-runtime.test.ts src/plugins/runtime/index.test.ts extensions/discord/src/monitor/native-command.plugin-dispatch.test.ts extensions/voice-call/src/response-generator.test.tsnode scripts/run-vitest.mjs src/config/sessions/session-accessor.test.ts src/plugin-sdk/session-store-runtime.test.ts src/plugins/runtime/index.test.ts extensions/discord/src/monitor/native-command.plugin-dispatch.test.ts extensions/voice-call/src/response-generator.test.tsnode scripts/run-vitest.mjs src/plugin-sdk/session-store-runtime.test.ts src/plugins/runtime/index.test.tsnode scripts/run-oxlint.mjs src/config/sessions/session-accessor.ts src/config/sessions/session-accessor.test.ts src/plugin-sdk/config-runtime.ts src/plugin-sdk/session-store-runtime.ts src/plugin-sdk/session-store-runtime.test.ts src/plugins/runtime/runtime-agent.ts src/plugins/runtime/types-core.ts src/plugins/runtime/index.test.tspnpm tsgo:corepnpm tsgo:core:testpnpm plugin-sdk:api:checkgit diff --check upstream/clawdbot-9c3/session-accessor-seam...HEAD