feat(state): prioritize durable cluster intake - #882
Conversation
|
Codex review: needs maintainer review before merge. Reviewed July 27, 2026, 3:06 AM ET / 07:06 UTC. ClawSweeper reviewWhat this changesThe branch adds a durable Merge readinessKeep this PR open for maintainer review. It introduces a durable-state schema migration and shared writer scheduling policy in the middle of a five-layer cluster-intake stack; the supplied migration and fairness tests are meaningful, but landing should wait for an upgrade-path exercise against the stacked/current deployment shape. Likely related people: RomneyDa (recent area contributor, medium confidence) and steipete (recent reviewer of the rebased stack, low confidence). Priority: P2 Review scores
Verification
How this fits togetherCluster intake turns selected repair clusters into durable state before later layers publish and dispatch planning work. This PR changes the Durable Object append window and its shared writer coordinator so intake writes can make bounded progress without permanently starving ordinary state writers. flowchart LR
A[Cluster candidate selection] --> B[Cluster intake append]
B --> C[Durable append window]
C --> D[State writer coordinator]
D --> E[Materialization and publication]
E --> F[Planning job dispatch]
D --> G[Ordinary state writers]
Decision needed
Why: This is a compatibility and availability decision over persisted Durable Object state and scheduling semantics; automated tests reduce risk but cannot establish the production upgrade and contention behavior by themselves. Before merge
Agent review detailsSecurityNone. Review metrics
Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Land this layer only after a staged upgrade from the current merged candidate-selection state proves preservation of queued append rows and retry history, then verify mixed ordinary, publication, and cluster-intake load before merging the dependent stack layers. Do we have a high-confidence way to reproduce the issue? Not applicable: this PR introduces an internal durability and scheduling capability rather than fixing a separately reproducible user report. The relevant verification is an upgrade and mixed-load exercise against the changed Durable Object paths. Is this the best way to solve the issue? Unclear: the bounded shared-priority design matches the downstream durable-intake stack, but the best landing path still depends on maintainer acceptance of the persisted-state migration and operational scheduling contract. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against d1c837ea2f63. 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)
|
26cc500 to
9ee9e9e
Compare
1b65ffd to
19817b2
Compare
|
ClawSweeper status: review started. I am starting a fresh review of this pull request: feat(state): prioritize durable cluster intake This is item 1/1 in the current shard. Shard 0/1. This placeholder means the worker is alive and reading the current context. I will edit this same comment with the actual review when the claws are done clicking. Crustacean status: shell secured, claws on keyboard, evidence pebbles being sorted. |
Summary
This is 2/5 in the cluster-fixer reliability stack, based on PR 881.
cluster_intakeas a first-class durable state-append kind.Validation
pnpm run build:allStack
No timeout is enlarged, and no merge/automerge or production gate is enabled.