Repository navigation
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 16, 2026, 1:38 PM ET / 17:38 UTC (Revision 20). ClawSweeper reviewWhat this changesMoves Gateway task-list preparation onto the existing asynchronous storage owner, bounds projection retries, and adds ownership and pagination regression coverage. Merge readiness✅ Ready for maintainer review Keep open: current main still prepares task pages synchronously, and this maintainer-sponsored change remains useful. No actionable introduced defect was found. Priority: P2 Review scores
Verification
How this fits togetherThe Gateway task-list endpoint turns stored background-task records into ordered, access-filtered summaries for clients. The task registry prepares those records through its SQLite worker before pagination and final response checks. flowchart TD
A[Task list request] --> B[Capture storage owner]
B --> C[Prepare registry through SQLite worker]
C --> D[Bounded page selection]
D --> E[Recheck owner and session access]
E --> F[Task summaries and cursor]
D --> G[Retry or refresh response]
Before mergeNone. Agent review detailsSecurityNone. PR surfaceSource +25, Tests +297. Total +322 across 7 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 task-page preparation with the existing worker-backed registry while preserving bounded retries, pending-write settlement, and fresh authorization before responses. Do we have a high-confidence way to reproduce the issue? Not applicable as a standalone bug report: this is an internal storage refactor, and current source confirms the synchronous preparation path it replaces. Is this the best way to solve the issue? Yes. Reusing the existing preparation and publication owners is a narrow solution that preserves public task APIs and avoids a competing storage path. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 35a59d632fac. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (19 earlier review cycles; latest 8 shown)
|
Preserve the focused task paging and continuation checks while integrating complete current-main and restored-flow ancestry. Source review, quick guards and admin paging pass; remaining canonical qualification and committed build are pending on this private checkpoint.
Preserve the exact reviewed eight-file paging and continuation delta on the actual media parent. Prior F edit review is bound to identical before/after blobs and binary patch; changed upstream owners have current C/E review. Fresh quick guards pass. Current-head runtime, canonical qualification and isolated normal build remain pending.
Carry the focused paging and continuation changes onto the current owner graph. Each existing page attempt now spends one bounded projection attempt; epoch churn reaches the existing registry_changed response without cancelling pending mutation settlement. Default preparation callers remain unchanged. The finite regression failed on original code and thirteen controlled cases pass after repair. Fresh scoped source review and quick guards pass; full canonical types, ordinary flows and committed build remain pending.
Add six temporary synthetic checkpoint labels for the unresolved hosted close timeout. Preserve existing awaits, timers, assertions and cleanup. Remove the diagnostic markers before final landing; this commit does not repair or explain the timeout.
Inherit the complete current parent and its media continuation guards. Remove temporary startup checkpoint markers while preserving the incoming real-timer fixture. Reuse the existing projection publication helper so synchronous and asynchronous restoration retain the same pending scopes. Full current-head qualification remains separate from this reviewed private source checkpoint.
Preserve the complete final parent graph and both task-query control groups. The query-test merge unions imports without changing existing case bodies; task paging production changes remain identical to the reviewed seven-file checkpoint. Full committed-head qualification is recorded separately.
|
Closing as superseded by #152655 (merge Read preparation joins the accepted-write fence and registry readiness, validates the captured owner, and bounds projection preparation. Page selection preserves revision retries; its returned currentness check validates the selected identities before the Gateway response. Ordering, pagination bounds, sharing checks, stale-cursor handling, and retryable |
Related: #144592. Stacked on #148583; focused seven-file task-page change.
Behavior
Gateway task pagination prepares its projection through the existing worker-backed owner. It carries one captured context/store across awaits and revision retries, validates that owner before cursor/error/results, and spends one preparation attempt within each existing page attempt. Persistent invalidation retains the existing
registry_changed/ retryableUNAVAILABLEresponse. Default callers retain full preparation; pending writes retain settlement and publication obligations.Synchronous projection refresh uses the same existing publication helper after snapshot installation. It clears dirty state and restores every pending scope, preserving revision/epoch timing and rollback while removing duplicate state handling.
The parent owns the media continuation guard, its tightened controls, and runtime-config generation checks. F preserves those bytes. Page ordering, bounds, summaries, access filtering and public task APIs remain intact. Non-admin session-metadata reads remain separately owned and synchronous; SQL-zero evidence covers the selected admin flow only.
Current candidate
Head
d1edd90fc639e05a1c3c93c9f7f6feae7a3323ed, tree7fb0fbec7d524f0c68b86642e09ad7f9f3049bb1, normally merges actual Ecfc6d11f033fe32b9d41ced630daef4dd8c04e84into the previous F cut. It includes Ca7c4ed1204386d2afe15b441593b96cebc3a7da9and captured mainb94fe8ffe8cf587d81ca9cf2f6d308fbaeb89e02. All seven F preimages/postimages and the complete focused patch are byte-identical to the prior qualified F/E pair; all other bytes equal the actual parent.Fresh scoped P2 review found no actionable findings or missing source. The identical final tree passed 15 selected query controls and the persisted-row admin pagination control through worker close with all six parent SQLite counters zero. Six quick checks passed, including the current line-cap policy against the actual staged parent.
All 31 canonical requirements passed on the actual committed head, including production types, the canonical full core test-type graph, lint, reference-sensitive guards and runtime import-cycle checks. The isolated normal build passed in 17m 28.2s, with embedded metadata identifying this exact commit. It used an owned frozen install and separate build outputs. Exact-head hosted CI passed with 117 successful jobs and 17 skipped. The retained observer and fresh terminal run/job reconciliation agree. The same run passed the unmarked startup group: 14 files / 228 cases, including both post-ready cases; its tested merge tree equals this candidate. Prior whole-app artifacts remain historical.
Historical CI and limits
The previous unmarked F run passed all 14 startup files / 228 cases, including both post-ready cases. Its only substantive failure was the inherited memory maintenance stopwatch assertion; this carry preserves the canonical #150098 / #150090 repair unchanged. No contention replay or timeout/assertion change was added here.
All six temporary diagnostic markers remain absent, and the canonical #149835 real-timer fixture is unchanged. The earlier marked pass did not establish the original 120-second timeout cause. The historical published-driver cell executed frozen F63, not this package or its current worker/schema/dependency inputs.
No new upgrade, native-fault, held-process, provider or startup-diagnostic replay ran locally. This cut adds no schema, retention, configuration option or cancellation policy and makes no whole-operation/non-admin SQL-zero or broader migration-completion claim.