Repository navigation
refactor: keep outbound queue operations on their admitted connection - #148355
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review blockedAutomated review did not run, so no review verdict was produced. Reason: The input-safety check could not safely complete for this revision. ClawSweeper will not retry this unchanged revision. Next step: No contributor action is requested. Maintainers should inspect the linked workflow run. |
|
Codex review: blocked before merge. Reviewed September 14, 2026, 2:03 PM ET / 18:03 UTC (Revision 2). ClawSweeper reviewWhat this changesThe PR extracts reusable SQLite queue operations while preserving existing delivery claims, settlement, and attachment cleanup behavior. Merge readiness⛔ Blocked before merge - 1 item remains Keep open as useful, maintainer-requested preparation work. No blocking defect was found, and the earlier migration-proof blocker is not supported by the introduced diff. Priority: P2 Review scores
Verification
How this fits togetherOpenClaw’s outbound queue stores pending messages and attachment custody until delivery settles. Its database operations coordinate claims, recovery, and completion before attachment files can be released. flowchart TD
A[Outbound delivery or recovery] --> B[Queue facade selects database]
B --> C[Existing write admission]
C --> D[Connection-bound queue operations]
D --> E[SQLite claims and settlement]
E --> F[Attachment cleanup after settlement]
Before merge
Agent review detailsSecurityNone. PR surfaceSource +271, Other -1. Total +270 across 13 files. View PR surface stats
Review metrics
Stored data modelPersistent data-model change detected: Technical reviewBest possible solution: Keep queue mutations owned by one connection-bound implementation, with existing facades retaining admission and filesystem cleanup following durable settlement. Do we have a high-confidence way to reproduce the issue? Not applicable: this is a behavior-preserving extraction, and source review found no introduced failure to reproduce. Is this the best way to solve the issue? Yes. The extraction follows the existing store-owner pattern, reuses established serialization and transaction helpers, and leaves worker activation to separate work. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 8430fcfb40ba. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (1 earlier review cycle)
|
f1a1202 to
2d77ada
Compare
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
Merged via squash.
|
Related: #144592
What Problem This Solves
Maintainer-requested outbound worker scheduling needs reusable queue operations that stay on the caller's admitted SQLite connection.
User Impact
No user-visible change: retained API return contracts, pending-only reads, stored data, claim behavior, and media retention remain unchanged.
Why This Change Was Made
Extract synchronous connection-bound kernels and have the existing facades consume them immediately. Facades retain connection selection and write admission; filesystem cleanup still follows durable settlement. Claim IDs, timestamps, and terminal preparation retain their original ordering. Shared media-path helpers and namespace constants keep kernels independent of runtime facades. Remove the internal expiry wrapper whose only caller moved to its existing kernel, and remove the media facade's stale assertion allowance.
Storage compatibility: the schema/version, queue namespace strings, entry JSON shapes, completion receipts, media retention policy, and migration-source reads are unchanged. This extraction requires no data migration. The existing namespace, ACK, media, and compound-settlement/reopen tests exercise those retained contracts.
Evidence
check-changedgate passes againstee0cf16623068ff535cc20f4a1ce175c8c5b8d25for all 13 changed files, including core and full core-test types, lint, all three dead-export scans, and the remaining guards.This is the lasting kernel-extraction preparation cut. Worker activation is separate work.
Exact-head CI passed at
2d77ada4f61e6932d506a811a88c14825b57bb8bafter a patch-identical refresh that included the already-landed Wizard test fix (#148337). All 13 reviewed source hashes remained unchanged.