Repository navigation
refactor: share current-conversation binding row serialization - #152134
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: blocked before merge. Reviewed September 18, 2026, 4:52 PM ET / 20:52 UTC (Revision 2). ClawSweeper reviewWhat this changesShares SQLite row serialization between conversation-binding writes and legacy imports, expands persistence tests, and removes an obsolete file-length exemption. Merge readiness⛔ Blocked before merge - 2 items remain The refactor remains useful and introduces no identified correctness defect. Current main still duplicates serialization; the repository-required published-updater validation remains outstanding. Priority: P3 Review scores
Verification
How this fits togetherConversation bindings connect a channel conversation to its target session. Runtime updates and legacy-file imports serialize those links into SQLite, where subsequent routing lookups read them. flowchart TD
A[Runtime binding update] --> C[Normalize conversation and prepare key]
B[Legacy binding file] --> C
C --> D[Shared row serializer]
D --> E[Transactional SQLite write]
E --> F[Conversation routing lookup]
Before merge
Agent review detailsSecurityNone. PR surfaceSource -26, Tests +61, Other -1. Total +34 across 5 files. View PR surface stats
Review metrics
Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Retain one internal serializer with unchanged persistence semantics and establish the required installed-updater compatibility evidence. Do we have a high-confidence way to reproduce the issue? Not applicable: this is a behavior-preserving refactor, and the PR explicitly reports a PASS/PASS comparison rather than a bug reproduction. Is this the best way to solve the issue? Yes: sharing the existing field encoding while retaining caller-owned normalization, transactions, and query caching is a narrow solution to the duplication. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 56173343fe59. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (1 earlier review cycle)
|
…/current-conversation-binding-row * commit 'f5276e5a54c088dd23475f08479acd9738d959bd': (46 commits) perf(plugins): combine runtime and tool call scopes (#152101) test(memory): seed restart fixtures with the Gateway stopped (#152038) perf(gateway): avoid session list stalls on broad updates (#152074) fix: preserve model failure causes and worker fallback runtime (#152028) perf(logging): reduce Gateway hot-path info log volume (#152080) improve(gateway): reduce duplicate worker data fetched from SQLite (#151878) improve: format messages with many links faster (#152112) perf(cron): avoid unused SQL binding in config projections (#152029) fix: explain cloud worker startup failures (#152043) refactor(discord): share Markdown edit projection (#149214) refactor(media): remove unreachable geometry metadata backfills (#149272) chore(autoreview): sync mirror to agent-skills a7e91e1 (#152039) fix(ui): restore sidebar and chat test collection (#152099) fix(clickclack): finish SQLite cleanup between persistence tests (#152061) fix(workboard): isolate board deletion from unrelated subscriptions (#152102) refactor(agents): unify tool availability and plugin work ownership (#152073) fix: session group moves lag while requests are pending (#151689) fix(agents): preserve active cleanup during requester settlement (#151907) perf(sessions): keep deletion responsive under disk pressure (#152092) fix: preserve successful direct replies without serializing bookkeeping keys (#151870) ...
|
Merged via squash.
|
…pr-149099-main-20260918 * commit '795e460278d4f8f41545dc8b4a66da1d12defd90': (1902 commits) refactor(slack): share Markdown preparation (#149129) fix(tooling): release completed PR operations with exited loaders (#152209) fix(release): allow stable npm bootstrap under an operator soak waiver (#152206) fix(daemon): avoid false restart timeouts during slow startup (#151387) feat: read agent documents from a host-owned workspace (#150584) improve(startup): skip redundant single-agent directory checks (#152192) test(ui): await board widget readiness before size reports (#152198) perf(browser): move dashboard event discovery to SQLite worker (#151952) improve(auth): reduce pauses during concurrent credential reads (#152140) improve(ui): load older chat history in smaller pages (#152093) fix(release): reject incomplete legacy npm install trees (#152186) refactor: share current-conversation binding row serialization (#152134) test(tooling): preserve Node and terminal fixture ownership under Bun (#152187) fix(sqlite): service worker admission through retained path aliases (#152190) improve: reduce CPU work for long CLI reasoning streams (#152191) chore(ui): refresh control ui locales (#152196) test(subagents): align lifecycle retries with durable completion owners (#152184) perf(gateway): defer participant maps for owned sessions (#152097) refactor(stream): share auxiliary queue overflow handling (#149282) fix(test): execute CLI fixture preloads on Node and Bun (#152076) ...
What Problem This Solves
Current-conversation binding writes and migration preparation duplicate the same stored-row serialization.
User Impact
No user-visible change. Update behavior, SQL schema, stored values, configuration, and public SDK contracts remain unchanged; no migration or operator action is required.
Why This Change Was Made
Use one internal serializer for the existing 15 fields while retaining migration normalization and key preparation, runtime query caching, write fences, and transactions. Remove the now-unused file-length suppression and its matching baseline entry.
Evidence
c3a8964526251a96c5ce5a39bbdb0e9d256baaff: passed in one isolated synthetic legacy-binding cell. The genuine candidate package was built before private harness overlays, and installed payload/build identity plus Doctor entrypoint hashes were verified. The released updater's first candidate Doctor on the seeded state imported all 15 stored columns, preserved a pre-existing conflicting row, and archived the exact legacy input before any standalone Doctor. Three later same-state Doctors preserved rows, timestamps and archive; two isolated canary observations were explicitly excluded. Testbox run: command exit 0, owned checkout removed, lease stopped and children joined. Earlier failed harness attempts remain failed evidence; the portal-sync warning does not establish the backing Actions conclusion.c3a8964526251a96c5ce5a39bbdb0e9d256baaff. The signed main merge incorporated the upstream duplicate-declaration repair without changing this PR's patch.This is a refactor PASS/PASS comparison, not a bug reproduction. The updater cell uses a synthetic isolated state directory; it is not operator/live-state validation or a full release matrix.