Repository navigation
fix(update): preserve snapshot size mismatch diagnostics - #177158
Conversation
Recognize the fixed SQLite snapshot size mismatch cause in public update summaries without exposing its private path or size details. Align the real-worker regression with the snapshot refusal introduced by #177082 while retaining source-scope and best-effort guidance assertions.
|
🦞👀 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 changesThis PR preserves the fixed SQLite snapshot size-mismatch cause in update diagnostics while excluding private details. Example: Snapshot verification reports expected 4096 bytes but observes 4112 bytes for /private/example/a.sqlite.
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep this PR open: it is a useful, maintainer-authored diagnostic fix that current main still needs, with no actionable correctness or security findings. Priority: P2 Before mergeNone. FindingsNone. Tests
Agent review detailsHow this fits togetherSQLite verification produces detailed worker errors; the shared support redactor extracts recognized causes for updater diagnostics and public failure summaries. flowchart TD
A[Update generation verification] --> B[SQLite snapshot verification]
B --> C[Worker error output]
C --> D[Inspection diagnostics]
D --> E[Shared support redactor]
E --> F[Update and support summaries]
Technical reviewBest possible solution: Extend the existing diagnostic allowlist with the fixed size-mismatch cause while retaining private-detail redaction and all refusal checks. Do we have a high-confidence way to reproduce the issue? The producer emits SQLite snapshot size mismatch, while current main's closed-cause matcher excludes it; the supplied formatter baseline also reports the resulting redaction failure, but this review executed no target code. Is this the best way to solve the issue? This is the smallest complete fix: the existing redactor remains the sole public-diagnostic owner, and both test changes protect distinct boundaries without adding machinery. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 806334a94765. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource 0, Tests +1. Total +1 across 3 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 October 19, 2026, 4:55 AM ET / 08:55 UTC. |
The valid version-4 write introduced by #177130 happens after private snapshot acquisition. Its final generation check correctly refuses the changed family, not a snapshot-size mismatch from the earlier corruption fixture in #177158. Serial exact CI merge and base replays reproduce the stale expectation. Keep the exact cause, both source paths, best-effort advice, and committed version assertion. All nine schema cases pass; targeted native types, lint and format pass. The suppression audit reports an unrelated main-owned UI helper allowlist mismatch (13 pass, 1 fail); this test-only change adds no suppression.
…7158) Recognize the fixed SQLite snapshot size mismatch cause in public update summaries without exposing its private path or size details. Align the real-worker regression with the snapshot refusal introduced by openclaw#177082 while retaining source-scope and best-effort guidance assertions.
The valid version-4 write introduced by openclaw#177130 happens after private snapshot acquisition. Its final generation check correctly refuses the changed family, not a snapshot-size mismatch from the earlier corruption fixture in openclaw#177158. Serial exact CI merge and base replays reproduce the stale expectation. Keep the exact cause, both source paths, best-effort advice, and committed version assertion. All nine schema cases pass; targeted native types, lint and format pass. The suppression audit reports an unrelated main-owned UI helper allowlist mismatch (13 pass, 1 fail); this test-only change adds no suppression.
What Problem This Solves
Fixes update generation-verification reports that hide a SQLite snapshot size mismatch behind
[redacted-diagnostic].User Impact
Operators can see the safe failure cause in the update summary. Private paths, sizes, arbitrary diagnostic prose, and credentials remain excluded from public support summaries. Database verification and refusal behavior are unchanged.
Why This Change Was Made
#177082 (
908d45c48795) intentionally reduced repeated database reads: its body states that the generation owner brackets an admitted private image with source-family checks and that the final double-read verifies the provisional observation. The existing concurrent-write fixture consequently fails in snapshot size verification before the later generation check. The public diagnostic owner recognized snapshot hash mismatches but omitted the equally fixed size-mismatch cause.Recognize that one additional cause and update the real-worker regression to require its actual diagnostic. All source-scope, best-effort guidance, and refusal assertions remain intact. The existing support-redaction table also requires the cause without its private path or size details. Three lines added, two removed; no new helper or lifecycle mechanism.
Evidence
[redacted-diagnostic]. The target assertion completed before applying this patch; the baseline wrapper's final source-stability check then detected the edit, so it is not claimed as a clean full baseline run.[redacted-diagnostic]instead of the fixed cause.--maxWorkers=1(101.62 seconds wrapper wall time, including compiled subprocess preparation). The changed schema file spends 38.37 seconds exercising real worker and SQLite behavior; the redaction shard completes in 0.753 seconds.pnpm buildpassed in 5m20.1s, including runtime, declarations, 156 public SDK subpaths, and Control UI budgets. No timeout, suppression, schema, or dependency changes.