Skip to content

fix(ci): keep SQLite runtime assertion private - #190303

Merged
vincentkoc merged 1 commit into
mainfrom
fix-private-sqlite-runtime-assertion-20261101
Nov 1, 2026
Merged

vincentkoc merged 1 commit into
mainfrom
fix-private-sqlite-runtime-assertion-20261101

Conversation

@vincentkoc

@vincentkoc vincentkoc commented Nov 1, 2026 •

Copy link
Copy Markdown
Member

What Problem This Solves

Knip rejects the unused assertSafeSqliteRuntime export 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 export keyword; 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

  • Frozen base: f278c086c76a67afd7814643e853886a483ec2b5; head: c6517cbfe5d4f57a60f848b70c88af39512148f9.
  • Maintained 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).
  • Targeted maintained TypeScript, type-aware lint, formatting and whitespace checks pass.
  • Fresh complete-range local ClawSweeper review: no actionable findings; security cleared. The reviewer inspected source; analyzer and static execution above were separate.

CI exception: run41305287850, attempt1 failed only check-lint-core-2 and its aggregate gate. The two unnecessary void type arguments in src/skills/workshop/experience-review.test.ts are byte-identical at the tested baseline and PR merge; this one-keyword SQLite change does not affect them. Main already contains their removal. Independent security-fast passed; 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.

@clawsweeper

clawsweeper Bot commented Nov 1, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@vincentkoc vincentkoc self-assigned this Nov 1, 2026
@vincentkoc
vincentkoc marked this pull request as ready for review November 1, 2026 12:11
@vincentkoc
vincentkoc enabled auto-merge (squash) November 1, 2026 12:13
@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Nov 1, 2026
@clawsweeper

clawsweeper Bot commented Nov 1, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

This 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.

  • Before: The analyzer reports assertSafeSqliteRuntime as an unused export.
  • After: The function remains internally callable without exposing an unused export.

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A minimal, source-verified maintenance repair supported by reported analyzer results; runtime demonstration is unnecessary for this visibility-only change.
Proof confidence 🐚 platinum hermit (4/6) This maintainer-authored mechanical export cleanup changes no shipped runtime behavior; source inspection verifies the retained guard and call, and the body records analyzer results.
Patch quality 🦞 diamond lobster (5/6) No actionable review findings were identified.

Product

Kind: Maintenance · Worth it: Yes · Fix scope: Complete
User problem: The repository's unused-export check rejects an assertion that now has only an internal caller.
Reason: The maintainer-authored change restores the existing analyzer contract with no runtime or public API change.

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
Reviewed head: c6517cbfe5d4f57a60f848b70c88af39512148f9

Before merge

None.

Findings

None.

Agent review details

How this fits together

Database 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]
Loading

Technical review

Best 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

Testing

Proof path: none.

Security

None.

Evidence

What I checked:

Likely related people:

  • Peter Steinberger: Raw commit b0055b6 adds src/infra/sqlite-native-runtime.ts:192 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: b0055b677826; files: src/infra/sqlite-native-runtime.ts)

PR surface

Source 0. Total 0 across 1 file. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 1 1 1 0
Tests 0 0 0 0
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 1 1 1 0

Labels

Label changes:

  • add P3: A focused analyzer cleanup restores the unused-export contract without changing runtime behavior.
  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit and patch quality is 🦞 diamond lobster.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Label justifications:

  • P3: A focused analyzer cleanup restores the unused-export contract without changing runtime behavior.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit and patch quality is 🦞 diamond lobster.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Rating scale

6/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.

Workflow

ClawSweeper edits this one comment on every review. Comment @clawsweeper re-review for a fresh review only. Repair and merge execution lanes are retired.

Reviewed November 1, 2026, 7:25 AM ET / 12:25 UTC.

@vincentkoc
vincentkoc disabled auto-merge November 1, 2026 12:54
@vincentkoc
vincentkoc merged commit 1c437d1 into main Nov 1, 2026
224 of 227 checks passed
@vincentkoc
vincentkoc deleted the fix-private-sqlite-runtime-assertion-20261101 branch November 1, 2026 13:01
@vincentkoc

Copy link
Copy Markdown
Member Author

Merged via explicitly authorized admin squash with attributed pre-existing CI failures.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 2, 2026
RomneyDa added a commit that referenced this pull request Nov 14, 2026
…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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: XS status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant