Repository navigation
fix(sessions): converge projections during active writes - #142018
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: needs maintainer review before merge. Reviewed September 18, 2026, 1:04 AM ET / 05:04 UTC (Revision 13). ClawSweeper reviewWhat this changesAllows session history and search indexes to finish rebuilding during bounded concurrent transcript writes, using shared append classification and generation checks. Merge readiness✅ Ready for maintainer review This remains a useful fix: current main and v2026.9.4 still reject rebuilds when concurrent appends advance the snapshot. The prior content-block finding is resolved, and no blocking defect was found. The earlier separate storage-design approval blocker is not warranted by this contract-preserving repair. Priority: P1 Review scores
Verification
How this fits togetherSession transcript projections turn canonical stored events into active conversation history and searchable text. A background worker prepares the projection, and the existing database writer publishes it for readers. flowchart TD
A[Transcript writes] --> B[Canonical stored events]
B --> C[Worker prepares snapshot]
C --> D[Claim and publish base chunks]
B --> E[Validate bounded append tail]
D --> F[Finalize current projection]
E --> F
F --> G[History and search readers]
Before mergeNone. Agent review detailsSecurityNone. PR surfaceSource +229, Tests +313, Other -1. Total +541 across 10 files. View PR surface stats
Review metrics
Root-cause clusterRelationship: Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. Technical reviewBest possible solution: Keep history and search current during ordinary concurrent writes without weakening exact-current reads or rewriting canonical transcripts. Do we have a high-confidence way to reproduce the issue? Yes, at source level: append after worker preparation and before claim or finalization; current main rejects the advanced snapshot and leaves reconciliation pending. No runtime reproduction was executed during this read-only review. Is this the best way to solve the issue? Yes for bounded transcript convergence: the patch reuses append classification and rechecks authoritative state before publication. It preserves the storage contract and does not claim to solve every broader Gateway starvation report. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 7acf043d85c2. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (12 earlier review cycles; latest 8 shown)
|
f5dfbab to
4745f5e
Compare
|
Rebased and reconciled with current @steipete @shakkernerd @vincentkoc: requesting storage-owner review and an explicit accept/reject decision on the bounded same-generation catch-up publication contract. The PR body now records the no-schema compatibility story, conservative rejection paths, recovery limits, rollback behavior, 86-test integration proof, and live large-session recovery evidence. @clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
4745f5e to
30064f5
Compare
|
Pushed exact head |
30064f5 to
9e907c2
Compare
|
Rebased the unchanged patch onto current |
9e907c2 to
377f7c6
Compare
19c07c7 to
d539dd4
Compare
d539dd4 to
dbcefaf
Compare
dbcefaf to
c41c168
Compare
7dd4bc0 to
faeebd8
Compare
Co-authored-by: CanadaOrNaw <[email protected]>
faeebd8 to
ed94965
Compare
…2018) Co-authored-by: CanadaOrNaw <[email protected]>
Summary
This ports the convergence design from #116259 onto the current projection/reconcile architecture and addresses the sustained-write livelock described in #115908.
Safety bounds
Compatibility and recovery
Validation
pnpm check:changedpassed on the rebased treeReview decision requested
Storage owner: please explicitly accept or reject the bounded same-generation catch-up publication contract above, including the compatibility, recovery, and rollback limits. This is the remaining material-store checkpoint identified by ClawSweeper.
Worked on by