Repository navigation
docs: align database worker ownership and SDK migration guidance - #169879
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. What this changesUpdates database and Plugin SDK guides to describe worker ownership, receipt-maintained caches, awaited APIs, and existing compatibility contracts. Example: A plugin author implements conversation route ownership.
Review scores
ProductKind: Docs · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep this PR open: it corrects stale documentation, matches current source, and has no actionable findings; the earlier merge conflict is resolved. Priority: P3 Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherGateway and plugin callers await storage owners, workers execute SQLite operations, and committed receipts update cached facts consumed by readers and effect guards. flowchart LR
A[Gateway and plugin callers] --> B[Awaited owner APIs]
B --> C[Database workers]
C --> D[SQLite stores]
C --> E[Committed receipts]
E --> F[Cached facts and effect guards]
Technical reviewBest possible solution: Publish the corrected guides while preserving existing compatibility and effect-time authorization contracts. Do we have a high-confidence way to reproduce the issue? Source inspection confirms stale ownership and API descriptions on current main; runtime reproduction is unnecessary for this documentation correction. Is this the best way to solve the issue? Updating the existing guides and linking the generated migration inventory keeps guidance with its established owners and avoids another competing worklist. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 6d479f5c893a. Provenance checked
SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceDocs +90. Total +90 across 14 files. Added test files: 0. View PR surface stats
LabelsLabel changes:
Label justifications:
Rating scale6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior. WorkflowClawSweeper edits this one comment on every review. Comment HistoryReview history (1 earlier review cycle)
Reviewed October 12, 2026, 8:48 AM ET / 12:48 UTC (Revision 2). |
…nclaw#169879) Document worker SQL ownership, receipt-maintained cache contracts, shared-state v21 layout, and current async Plugin SDK replacements. Correct stale foreign-commit polling, read-custody, and legacy deletion-callback guidance. Validated internal links, MDX, changed-page Markdown lint, formatting, and two scoped reviews.
First-parent upstream f956a18..9d9761d (openclaw#169879 database worker ownership docs, UI retired render adapters, openclaw#169884 macOS discovery). No conflicts; the one file both sides touched (agent-schema-history.md, upstream reworded the snapshot paragraph) keeps our schema-27 rows and section byte-for-byte. Stops before openclaw#169646 (fp#722), which is step 69 on its own. Refs #1475 Co-Authored-By: Claude Opus 5.5 <[email protected]>
What Problem This Solves
Database and Plugin SDK documentation still described synchronous runtime paths, foreign-commit polling, and pre-v21 transcript layouts after the worker and session-actor cutovers.
User Impact
Plugin authors and maintainers can find the current awaited APIs, worker ownership, and receipt-maintained cache contracts. This is documentation only; runtime behavior, schema versions, and SDK exports are unchanged.
Why This Change Was Made
Cross-checked the database, gateway storage, and SDK guides against current source and the merged
dbasync/*campaign PRs. Added a concise worker ownership/cache table; replaced stale host-thread and foreign-polling claims; documented the shared-state v21 predicate columns and async replacements for routing, native bindings, transcript validation/mirror writes, and catalog identity preparation. Retained released compatibility contracts and real effect-time security checks. Clarified that legacy deletion callbacks run after durable Gateway commits, while stopped-owner maintenance and incognito retain native transaction semantics.The removed documentation claims concerned the old sub-second read-custody expiry, foreign-commit freshness probes, bundled synchronous routing/history readers, and main-thread registry/backup reads. No runtime checks are removed here. Existing ownership rules still require outside writers to use the Gateway or exclusive offline access.
Evidence
pnpm install --frozen-lockfileandpnpm docs:listpassed.pnpm docs:check-links: 15,284 internal links checked, zero broken links.pnpm docs:check-mdx: all 1,350 files passed.oxfmtandgit diff --checkpassed.