Repository navigation
fix: await Doctor session and shared-auth inspection - #190870
Conversation
Add Doctor snapshot cancellation and capacity regressions for CI baseline proof before completing the async owner cutover. Co-authored-by: Christian Rodrigues de Oliveira <[email protected]> Co-authored-by: steipete <[email protected]>
Await snapshot preparation and cleanup across Doctor inspection and repair planning, preserve original-path admission, and reject snapshots that exceed measured cache capacity. Retain synchronous public and transaction authority contracts. Co-authored-by: Christian Rodrigues de Oliveira <[email protected]> Co-authored-by: steipete <[email protected]>
Bind task-worker cancellation to snapshot custody, retain the updater identity export, and repair async consumer fixtures and wrapper source closure. Keep the lease SQL kernel at its existing lifecycle owner. Co-authored-by: Christian Rodrigues de Oliveira <[email protected]> Co-authored-by: steipete <[email protected]>
Preserve per-run cancellation semantics in worker handler fixtures after adding the task-owned abort signal. Co-authored-by: Christian Rodrigues de Oliveira <[email protected]> Co-authored-by: steipete <[email protected]>
…ries Keep inaccessible state roots in the diagnostic result, and update source-isolation, lease-poll, and PostgreSQL transport fixtures to observe the actual async owners. Complete task control fixture migration. Co-authored-by: Christian Rodrigues de Oliveira <[email protected]> Co-authored-by: steipete <[email protected]>
Integrate tested main 1347e90 to resolve the named numeric-parser CI contract mismatch from #189993. Preserve specific ExpectedCliError diagnostics and refused dispatch in capability fixtures. Correct the generated IPC preload newline found by review; its cooked script passes node --check. Co-authored-by: Christian Rodrigues de Oliveira <[email protected]> Co-authored-by: steipete <[email protected]>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Apply the repository formatter to the two exact files reported by main-tier CI. Co-authored-by: Christian Rodrigues de Oliveira <[email protected]> Co-authored-by: steipete <[email protected]>
Await session and legacy-auth images, private engine reads, and fresh recovery inventories through the existing cancellable snapshot owner. Preserve writer and SDK contracts and reassert effect authority after awaited reads. Co-authored-by: Christian Rodrigues de Oliveira <[email protected]> Co-authored-by: steipete <[email protected]>
Use the gateway retention role explicitly in idle coverage, await the authoritative target and presented route pane, and retain failed restart diagnostics without relaxing its assertions. Co-authored-by: Christian Rodrigues de Oliveira <[email protected]> Co-authored-by: steipete <[email protected]>
…/doctor-awaited-readers
|
🦞👀 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 rejected material in this revision. No detected value, path, or scanner output is reproduced here. Automatic review is on hold, including after source changes. Request a fresh re-review after resolving the failure; maintainers can also release the hold through an intentional scanner-policy update. Next step: If this is a genuine credential, remove and rotate it. If it is an intentional test fixture, a maintainer must review and qualify it. |
Validated reopen may reuse inventory metadata. Invoke the existing registration owner explicitly to verify native filenames retain the configured locator and refresh the sampled file size. Co-authored-by: Christian Rodrigues de Oliveira <[email protected]> Co-authored-by: steipete <[email protected]>
…#191050) Split the CI prerequisites out of #190870. Node-hosted standalone codegen needs its pinned Bun child, and native Baseten credential fixtures need the existing infra worker owner. Allocate exactly 40 regression-test lines: the 39-line planner case plus one row in the existing routing contract. Keep the shared scalar unchanged. Co-authored-by: steipete <[email protected]>
|
These CI prerequisites landed separately in #191050 as ea3f0b8ee5d28a4a006c940f8e690090e192ddfa: pinned Bun provisioning for Node-hosted standalone codegen, and the existing infra worker registration for Baseten admission. Exact-head CI and PR tooling Darwin passed; ancestry on main is verified. AU: please merge main into #190870 and drop these prerequisites, including the old Doctor-named test-line allocation, so this PR's diff is Doctor-only. The landed split uses |
Keep this stage limited to inspection owners and their direct consumers. Drop separately landed CI prerequisites and unrelated backup, lease, quarantine and snapshot changes. Co-authored-by: steipete <[email protected]>
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
|
Codex review: needs real behavior proof before merge. What this changesThis PR makes session and shared-auth inspection preparation asynchronous and updates their callers to await cleanup and recheck repair ownership. Example: Doctor prepares a private inspection image for the reported 8.4 GB builder agent database.
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Partial Merge readiness⛔ Blocked before merge - 4 items remain Keep open: this maintainer-authored PR provides a useful, focused stage of the Doctor cancellation repair, and source review found no discrete introduced bug. Priority: P1 Before merge
FindingsNone. Tests
Agent review detailsHow this fits togetherDoctor and update cleanup inspect agent and shared-state databases through existing snapshot owners, then consume the results under current ownership before publishing credentials or retiring recovery files. flowchart TD
A[Doctor or update cleanup] --> B[Session and shared auth readers]
B --> C[Async snapshot owner]
C --> D[Private database image]
D --> E[Inspection results]
E --> F[Current ownership checks]
F --> G[Credential publication or recovery retirement]
Technical reviewBest possible solution: Complete this focused cutover through the existing snapshot and ownership owners while preserving synchronous native bootstrap and recovery retention contracts. Do we have a high-confidence way to reproduce the issue? Current main visibly enters synchronous snapshot preparation from these readers, matching the reported blocking mechanism; this read-only review ran no target code and does not reproduce every linked Doctor wait. Is this the best way to solve the issue? The patch is a coherent minimal stage: it reuses existing asynchronous snapshot owners, migrates direct callers, removes the replaced synchronous inspection path, and preserves the released native bootstrap contract. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 75be4d0f9332. Merge-risk optionsMaintainer options:
Provenance checked
TestingProof path: in-process harness. SecurityNeeds attention: No concrete vulnerability was found, but the new awaited authority boundaries still require final-effect revocation evidence. EvidenceWhat I checked:
Likely related people:
PR surfaceSource +128, Tests +83, Other +1. Total +212 across 37 files. Added test files: 0. View PR surface stats
LabelsLabel changes:
Label justifications:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
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 Reviewed November 2, 2026, 8:18 AM ET / 13:18 UTC. |
|
The review reports no code findings. Additional exact-head execution evidence is now in the PR body: This reader stage changes no storage schema, serialized data format, or retention contract. Large-database native cancellation and latest-stable upgrade qualification remain explicitly unrun follow-ups; the unavailable Testbox request was stopped under the production-host policy. The PR does not claim universal Doctor cancellation or resolution of every linked hang. Remaining gateway lease preparation belongs to #190872. Canonical independent P0–P2 autoreview is scoped-clean. Proceeding under the requested split-stack flow only once exact-head CI is fully green; no CI or enforced security/review gate is waived. |
|
Merged via squash.
|
…openclaw#191050) Split the CI prerequisites out of openclaw#190870. Node-hosted standalone codegen needs its pinned Bun child, and native Baseten credential fixtures need the existing infra worker owner. Allocate exactly 40 regression-test lines: the 39-line planner case plus one row in the existing routing contract. Keep the shared scalar unchanged. Co-authored-by: steipete <[email protected]>
Await private Doctor session and shared-auth inspection, join snapshot cleanup, and recheck repair ownership after awaited reads before effects. Keep native auth bootstrap synchronous. The regression allocation is 83 net test LF for retained shared-auth ownership, awaited preparation observation, and direct async consumer fixtures. Focused owner and migration proof passed; the copied-auth regressions fail against main at the intended boundary. Exact-head CI passed on attempt 1: https://github.com/openclaw/openclaw/actions/runs/41450833324. Related: openclaw#178359, openclaw#187900. Not yet released. Co-authored-by: steipete <[email protected]> Co-authored-by: Christian Rodrigues de Oliveira <[email protected]>
Related: #178359, #187900.
What Problem This Solves
Doctor can block cancellation while preparing private session and shared-auth database inspection images.
User Impact
These session and shared-auth readers await preparation and cleanup while preserving source files and current repair ownership. This is one stage of the Doctor cancellation repair; it does not claim to resolve every Doctor hang. Not yet released.
Why This Change Was Made
Move private preparation to the existing async reader owners, await shared-auth migration detection and session recovery inventories at their callers, and retain synchronous native auth bootstrap. Recheck repair ownership after awaited reads before publishing credentials or retiring recovery artifacts.
Merged current main and removed the CI prerequisites already landed in #191050, along with unrelated backup/port, quarantine, generic snapshot and fixture changes. The remaining 37-file diff covers these readers and their direct consumers and tests. Later split stages remain #190872, #190873, #190874 and #190875.
Evidence
1c8d7583b4c252ff078f4e4bc45bfb513d57a4dcand candidate treeb7fe5f09f4275988e31201698ec384e9ebfcc847. Two staged cutover mistakes were corrected before this final review.Broad tests and packaging run in PR CI. Production Gateway and operator state were not used.
Thanks to chrislro, kodaclawd and JordanNewell for the inspection reports.