Repository navigation
fix(sqlite): allow verified shared wal backports - #108287
eugene-harold-krabs wants to merge 5 commits into
Conversation
5a78b1a to
f4c502f
Compare
|
Context here are the current Packages of latest RH nodejs stating at the moment sqlite-libs-3.46.1-5.el10_1.x86_64 is used. So I can`t build openclaw on red hat with out the swtich present. |
25973fc to
86a6947
Compare
86a6947 to
6d0f27b
Compare
|
Codex review: needs real behavior proof before merge. Reviewed July 31, 2026, 10:39 PM ET / August 1, 2026, 02:39 UTC. ClawSweeper reviewWhat this changesThis branch adds Merge readiness⛔ Blocked until real behavior proof from a real setup is added - 10 items remain Keep this PR open for human review: it proposes a new environment-variable bypass for a data-corruption safety gate, but the bypass is not independently verifiable and the PR still lacks after-fix proof from a verified shared-system SQLite backport. Priority: P1 Review scores
Verification
How this fits togetherOpenClaw loads Node's SQLite runtime before opening its state databases and queries the loaded library's SQLite version. The WAL-reset gate prevents state databases from using runtimes known to risk corruption; it either admits known fixed release lines or stops startup with remediation guidance. flowchart LR
A[Node runtime] --> B[Load node SQLite]
B --> C[Query loaded SQLite version]
C --> D{Known WAL-safe release line?}
D -->|Yes| E[Open OpenClaw state database]
D -->|No| F[Block startup with remediation]
G[Proposed environment override] --> F
Decision needed
Why: This is a product and safety-boundary choice: the proposed runtime inputs prove only that SQLite is shared and that an operator set an environment variable, not that the loaded library contains the corruption fix. Before merge
Findings
Agent review detailsSecurityNeeds attention: The proposed environment variable weakens a persistent-data corruption safety boundary without independently verifying the loaded SQLite build. PR surfaceSource +4, Tests +46. Total +50 across 2 files. View PR surface stats
Review metrics
Stored data modelPersistent data-model change detected: Root-cause clusterRelationship: Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Keep the release-line guard fail-closed unless maintainers approve a supported, documented, independently verifiable contract for identifying patched shared-system SQLite builds; then prove that contract on the affected distribution. Do we have a high-confidence way to reproduce the issue? No. The current source clearly rejects an unsafe shared SQLite version, but this review has no live evidence that the reported distribution loads a backported, safe library or that the proposed override succeeds there. Is this the best way to solve the issue? No. The branch is a plausible operator waiver, but not the best safety repair because its only proof of a patched runtime is an environment value chosen by the same operator bypassing the guard. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 7fba71eb7aeb. LabelsLabel justifications:
EvidenceSecurity concerns:
What I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (9 earlier review cycles; latest 8 shown)
|
6d0f27b to
e6112ae
Compare
f6808c4 to
120a186
Compare
17b1fb8 to
13c4142
Compare
3666da6 to
56f7381
Compare
9fa873c to
4791d7f
Compare
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
fd0b341 to
f54bb93
Compare
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
This reverts commit 268e838c5da81b6af48caa2dc3213d2c3c645b90.
This reverts commit 2e3af824b7a9379a9b952ebc69528b1fac7a6419.
|
Closing because the owning GitLab maintainer confirmed this work is no longer needed: https://gitlab.com/xrow-public/helm-openclaw/-/work_items/38 |
What Problem This Solves
Node builds that link against a distribution-provided SQLite can receive the WAL-reset corruption fix through distro backports even when
sqlite_version()still reports an older upstream version such as 3.46.1. The current guard treats those runtimes like unsafe embedded SQLite builds and blocks operators who have verified their distribution backported the fix.This keeps the default safety check strict, but adds an explicit operator override for shared-system SQLite only:
OPENCLAW_ASSUME_SYSTEM_SQLITE_WAL_RESET_SAFE=1. Embedded SQLite builds remain blocked unless their embedded SQLite version is known safe.Fixes #108273
Summary
OPENCLAW_ASSUME_SYSTEM_SQLITE_WAL_RESET_SAFE=1mainso the node test shards include the latest test-runtime support changesEvidence
node scripts/run-vitest.mjs run --config test/vitest/vitest.infra.config.ts src/infra/node-sqlite.test.tspassed: 1 file, 22 tests.node scripts/run-vitest.mjs run --config test/vitest/vitest.gateway-server.config.ts src/gateway/server-startup-web-fetch-bind.test.tspassed: 1 file, 1 test.git diff --checkpassed.