Repository navigation
fix(ci): keep SQLite runtime assertion private - #190303
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: needs maintainer review before merge. What this changesThis PR makes the SQLite runtime assertion private while preserving its existing implementation and internal call. Example: Run pnpm deadcode:exports after the SQLite reader cleanup.
Review scores
ProductKind: Maintenance · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review This PR is the smallest complete repair for an unused internal export left behind by the SQLite reader fix; no actionable defects were found. Priority: P3 Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherDatabase callers enter through requireNodeSqlite, which validates the loaded SQLite runtime before returning the native module. flowchart LR
A[Database callers] --> B[requireNodeSqlite]
B --> C[Private runtime assertion]
C --> D[Loaded SQLite validation]
D --> E[Validated native module]
Technical reviewBest possible solution: Keep the assertion private in its existing runtime owner and preserve validation through requireNodeSqlite. Do we have a high-confidence way to reproduce the issue? Source tracing confirms an exported function with no external consumer under a hard-zero unused-export policy; the author reports a base failure and candidate success, and no target code was run during this review. Is this the best way to solve the issue? Removing the export keyword is the smallest complete fix and preserves the existing runtime safety invariant without exclusions, replacement owners, or extra machinery. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 72a691e5f732. Provenance checked
TestingProof path: none. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource 0. Total 0 across 1 file. 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, 7:25 AM ET / 12:25 UTC. |
|
Merged via explicitly authorized admin squash with attributed pre-existing CI failures.
|
…rts (#190242) Finish and return native iterators once, keep later terminal calls in the observer, and remove unused iterator capability probing and transport. Prove WAL checkpoint progress and successor-cursor preservation. Release adaptation: retain runtime admission in node-sqlite.ts instead of introducing the newer sqlite-native-runtime.ts split. Preserve release native lifecycle, safety-floor and worker contracts; adapt admission and schema fixtures. Allocate exactly 29 net regression-test lines. Companions: 1c437d1 (#190303) runtime assertion privacy is already present. 40101a9 (#190276) has no remaining applicable SQLite change. 5954594 (#193710) certificate warnings are unrelated; e333f7e (#197657) retires main-only test grants and is not needed for this fix. Proof: 91 targeted tests passed across native observer, node SQLite and schema metadata; formatting and diff checks passed. (cherry picked from commit 2c0ab86) Co-authored-by: ava-perry <[email protected]> Co-authored-by: RomneyDa <[email protected]> Co-authored-by: vincentkoc <[email protected]>
What Problem This Solves
Knip rejects the unused
assertSafeSqliteRuntimeexport after #190242 removed its only external caller.User Impact
No runtime behavior changes. SQLite admission still calls the same guard inside
requireNodeSqlite.Why This Change Was Made
Keep the assertion private to its existing owner. Remove only the
exportkeyword; retain the full guard and its internal call. Repository-wide reference tracing found no remaining external consumer.Maintainer main-CI repair context: https://github.com/openclaw/openclaw/actions/runs/41301855987/job/124834385159.
Evidence
f278c086c76a67afd7814643e853886a483ec2b5; head:c6517cbfe5d4f57a60f848b70c88af39512148f9.pnpm deadcode:exports: baseline fails on this exact symbol in production and full-tree scans (109.68 seconds); candidate passes all three scans with zero entries (110.91 seconds).CI exception: run41305287850, attempt1 failed only
check-lint-core-2and its aggregate gate. The two unnecessaryvoidtype arguments insrc/skills/workshop/experience-review.test.tsare byte-identical at the tested baseline and PR merge; this one-keyword SQLite change does not affect them. Main already contains their removal. Independentsecurity-fastpassed; all79jobs are terminal. Scoped analyzer/static proof and exact-head review remain valid. The inherited lint failure remains failed and is being handled through the native documented exception.