Repository navigation
fix: await native credential migration observations - #190873
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]>
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]>
Retain the existing native custody across asynchronous generation reads before and after synchronous migration writes. Prepare Doctor device credential imports through the same async owner, while preserving the released synchronous SDK driver. 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 completeClawSweeper finished reviewing this revision. The review result is being finalized. |
Integrate main to resolve CLI fixture and canonical locale conflicts. Retain the Cron backup manifest owner and await the existing asynchronous schema gate. Wait for hook notice enqueue, browser provider entry, and identity authorization completion before checking their results; retain assertions and test budgets. Add bounded failure diagnostics for early child termination. Co-authored-by: Christian Rodrigues de Oliveira <[email protected]> Co-authored-by: steipete <[email protected]>
|
Codex review: needs real behavior proof before merge. What this changesThis PR makes Doctor await credential-migration generation observations while sharing mutation policy with the synchronous credential owner. Example: Doctor imports a retained node identity into ~/.openclaw/client/credentials.sqlite during captured maintenance.
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Partial Merge readiness⛔ Blocked before merge - 7 items remain Keep this useful maintainer-authored follow-up open; the introduced diff has a failing authority-loss test, an incomplete wrapper dependency inventory, and unused companion orchestration. Priority: P1 Before merge
Findings
Tests
Agent review detailsHow this fits togetherDoctor imports legacy identities and tokens through the local credential owner; migration attribution observes database generations and records which writes belong to the update's recovery capture. flowchart TD
A[Doctor repair] --> B[Credential custody owner]
B --> C[Migration attribution]
C --> D[Isolated generation inspection]
C --> E[Synchronous native transaction]
E --> F[Local credential database]
C --> G[Update recovery receipt]
Technical reviewBest possible solution: Keep the shared synchronous mutation owner, await its required observations, repair the authority fixture and wrapper inventory, and remove companion orchestration without a production consumer. Do we have a high-confidence way to reproduce the issue? Current main synchronously invokes generation inspection around native credential transactions; the reported stack samples support the broader blocking mechanism, but this review ran no target code. Is this the best way to solve the issue? Sharing one native mutation policy between synchronous and asynchronous drivers is appropriate, but unused companion orchestration exceeds the smallest complete credential cutover. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against d858bbd383a0. Merge-risk optionsMaintainer options:
Provenance checked
TestingProof path: in-process harness. SecurityNeeds attention: No concrete authorization bypass was established, but the new credential waits require valid final-effect authority evidence. EvidenceWhat I checked:
Likely related people:
PR surfaceSource +318, Tests +182, Other +1. Total +501 across 10 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 Reviewed November 1, 2026, 11:55 PM ET / November 2, 2026, 04:55 UTC. |
Integrate the reviewed core conflict repair and retain canonical backup and live-destination guards. Update consumer fixtures to observe asynchronous producers and persisted shared-auth outcomes, with current source formatting. Co-authored-by: Christian Rodrigues de Oliveira <[email protected]> Co-authored-by: steipete <[email protected]>
Keep the existing close and no-backfill checks using logger creation metadata instead of independently buffered file offsets. Millisecond ties remain explicitly ambiguous; native lease lifetime assertions retain their own proof. Add bounded diagnostics for the unresolved config admission refusal and mark the existing platform partial mocks at their owning isolation boundaries. Co-authored-by: Christian Rodrigues de Oliveira <[email protected]> Co-authored-by: steipete <[email protected]>
Retain the selected database access guard before native effects and express the existing receiverless credential callback contract. Complete the native wrapper dependency closure for asynchronous generation observations. Co-authored-by: Christian Rodrigues de Oliveira <[email protected]> Co-authored-by: steipete <[email protected]>
|
Merge main and keep this stage limited to session-independent local credential imports and identity repair. Retain the synchronous native driver and defer unused companion preparation to its actual consumer stage. Co-authored-by: steipete <[email protected]>
Keep the seven direct inspection dependencies in the existing PR wrapper source inventory after awaited native attribution imports that reader. Co-authored-by: steipete <[email protected]>
|
Merged via squash.
|
Await native credential generation observations outside transactions while retaining the existing exclusive custody and native writes. Route Doctor device-auth/device-identity import and canonical identity repair through that adapter; retain one policy for the synchronous SDK driver. Keep this split limited to native credential observations and direct tests. Preserve main's companion/PostgreSQL contract and remove inherited later-stage/CI changes and unused future preparation. The stable Doctor token-import regression is red on main and green with the fix; test allocation151 net LF. Related: openclaw#178359, openclaw#187900. Not yet released. Co-authored-by: steipete <[email protected]> Co-authored-by: Christian Rodrigues de Oliveira <[email protected]>
Doctor's native credential imports and identity repair synchronously inspect database generations around native writes. These reads can block signal handling even though the caller is asynchronous.
Await those observations outside transactions while retaining the existing native custody. One generator supplies the native transaction/admission policy to the synchronous SDK driver and the awaited Doctor adapter. Device auth and identity import/repair consume that adapter. Main's companion/PostgreSQL migration contract is preserved; unused later-stage preparation and inherited CI/process/backup changes are removed. The wrapper inventory includes the seven direct dependencies introduced by the awaited reader import.
Validation: the stable Doctor token-import entry point fails on main with three synchronous generation-reader calls and passes with this change, preserving token and source bytes. Four named credential owner files pass (61 tests, four PostgreSQL-only skips locally), including public capture/Doctor/rollback, cancellation and authority loss. Six existing affected state-migration files pass (95 tests across two shards,55.16s). Scoped format/lint/diff checks pass on all12 changed TypeScript files. Exact-head PR CI is required before landing. Explicit Node replay of the same ten named files also passes (156 tests, four PostgreSQL-only skips,226.02s). The existing wrapper source-closure tests pass4/4, and its focused eager inventory contract passes1/1. Canonical independent P0–P2 autoreview is clean across all production/test changes and the seven required wrapper source-inventory records. Test allocation151LF; no scalar change.
Native macOS large-family/latest-stable installation qualification is not claimed by local focused tests; broad and PostgreSQL execution belongs to exact-head PR CI on this production Team host. No Gateway or live state operation is part of this PR.
Related: #178359, #187900, #185879. Preceding split stages #190870 and #190872 are landed. Not yet released.
Thanks to chrislro's reported stack.