Repository navigation
fix: preserve safe migration causes in update failure reports - #178689
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 SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
|
Codex review: needs maintainer review before merge. What this changesPreserve a fixed client socket migration diagnosis in update failure reports while continuing to redact private paths and exception details. Example: Migration rejects socket.path=42 in /synthetic/private state/state/openclaw.sqlite.
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep open: this PR addresses a verified reporting defect that remains on main, and the scoped patch has no actionable findings. Priority: P2 Before mergeNone. FindingsNone. Tests
Agent review detailsHow this fits togetherCredential migration validates stored socket material; schema repair converts its failure into a warning, candidate capture sanitizes that warning, and report preparation projects recognized causes into public reports. flowchart LR
A[Stored socket material] --> B[Credential migration]
B --> C[Schema repair warning]
C --> D[Candidate diagnostic capture]
D --> E[Public diagnostic projection]
E --> F[Update failure report]
Technical reviewBest possible solution: Retain the fixed diagnosis at the migration producer and admit only that value-free diagnosis through the existing public reporting owner. Do we have a high-confidence way to reproduce the issue? The report and current source establish a deterministic loss: the warning puts the cause after a private path, and conservative path redaction consumes that suffix; no target code was run during this review. Is this the best way to solve the issue? This is a small, complete reporting repair using existing owners: it classifies the original failure before capture and preserves the general path-redaction policy. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 1c4b27072712. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource +17, Tests +104, Docs +4. Total +125 across 5 files. Added test files: 1. 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 October 20, 2026, 3:17 PM ET / 19:17 UTC. |
… reports (openclaw#178689) Fixes openclaw#178550. Shared-state schema repair failures now carry a fixed public diagnosis that survives report redaction; private exception details stay local (openclaw#145390 allowlist unchanged).
What Problem This Solves
Fixes #178550. Update reports lose a client socket migration refusal's cause because private-path redaction removes the remainder of the warning.
User Impact
Saved and shared reports identify invalid client socket material while keeping database paths, credentials, and arbitrary exception details private.
Why This Change Was Made
The credential owner supplies a fixed error code. Schema repair places its value-free diagnosis before the private pathname, and public reporting admits only that closed vocabulary. The general path redactor remains unchanged. #178301 improved other diagnostics but did not cover this path.
Evidence
A real malformed credential migration, candidate subprocess capture, and public report regression failed before the fix with
[redacted-diagnostic]. It now preserves the classified cause for a private path containing spaces. A negative control rejects arbitrary prose appended to a lookalike diagnosis. Both tests passed; the migration/report case took 1.953 seconds.The campaign's five focused files passed 109 tests (three existing PostgreSQL skips). The required importer census covered 57 additional files in recorded discovery order; all ran, with no product failures. Eleven backup tests initially refused the host's world-writable temporary-directory ancestor. Using
TMPDIR="$(getconf DARWIN_USER_TEMP_DIR)"with the guard unchanged, the complete backup file passed 32/32 (177.07 seconds wall time). The original census took 2238.53 seconds. Pre-existing file test time was 171.179 seconds forupdate-candidate-state.test.tsand 184.222 seconds fordoctor-session-sqlite.deferred-plugin.test.ts.Core and scoped test types, targeted oxlint/oxfmt, four changed docs' MDX checks, line-cap ratchet, and madge passed (0 cycles). Per the campaign gate budget, the full
check:changedSQLite inventory was omitted for time; PR CI is the broad exact-head proof. Local tests used isolated HOME and state directories. Verification ran on the combined four-fix tree before mechanically splitting independent branches; each PR records only its own source and regression.Isolated Codex autoreview did not produce a verdict: the private-scratch preflight failed first, and the private-directory attempt stopped during snapshot/evidence verification. No clean review is claimed; the campaign's permitted fallback is lead review of the PR head.
Focused replay (with isolated HOME/state exported):
Diff against the campaign base: Production +19/-2; tests +104/-0; docs +4/-0.
Static proof commands (all exit 0 on the combined tree):
Final Doctor source-inventory simplification also passed
state-migrations.plan.test.ts: 7/7 tests, 129.12 seconds total (19 seconds tests, 82% transform), 137.98 seconds wrapper wall time. This is shared compiler preparation rather than slow test execution.