feat(miner): SqliteDriver store seam + migrate run-state (Advances #7175)#7192
feat(miner): SqliteDriver store seam + migrate run-state (Advances #7175)#7192RealDiligent wants to merge 1 commit into
Conversation
|
Superagent didn't find any vulnerabilities or security issues in this PR. |
…ored#7175) Part 1: vendor the ORB D1/SqliteDriver adapter into loopover-miner, open stores via openLocalStoreAdapter, and route run-state CRUD through driver.query while keeping the sync public API and node:sqlite self-host default. Co-authored-by: Cursor <cursoragent@cursor.com>
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #7192 +/- ##
=======================================
Coverage 93.77% 93.77%
=======================================
Files 694 695 +1
Lines 68975 69014 +39
Branches 18799 18799
=======================================
+ Hits 64679 64718 +39
Misses 3302 3302
Partials 994 994
Flags with carried forward coverage won't be shown. Click here to find out more.
|
|
Caution 🛑 LoopOver review result - reject/close recommendedReview updated: 2026-07-18 09:52:26 UTC
Review summary Nits — 5 non-blocking
Why this is blocked
📋 Copy for AI agents — paste into your coding agentDecision drivers
Context & advisory signals — never blocks the verdict
Review context
Contributor next steps
Signal definitions
🧪 Chat with LoopOverAsk LoopOver a question about this PR directly in a comment — grounded only in the same cached, public-safe facts shown above, never a new claim.
Full command reference: https://loopover.ai/docs/loopover-commands 🧪 Experimental — new and may change. 🟩 Safe / merged · 🟦 Advisory · 🟨 Held for review · 🟥 Blocked / closed 💰 Earn for open-source contributions like this. Gittensor lets GitHub contributors earn for the work they already do — register to start earning →. Checked by LoopOver, a quiet PR intelligence layer for OSS maintainers.
|
|
LoopOver is closing this pull request on the maintainer's behalf (No linked issue detected; Maintainer requires a linked issue). This is an automated maintenance action — to pursue this change, please open a new pull request with the issues resolved. Closed PRs may be analyzed later to improve review accuracy, but they are not automatically reopened or re-reviewed. |
Summary
packages/loopover-miner/lib/store-db-adapter.js(mirrors ORBsrc/selfhost/d1-adapter.ts:SqliteDriver,nodeSqliteDriver,createD1Adapter).openLocalStoreAdapterbesideopenLocalStoreDb.run-stateCRUD ontodriver.querywhile keeping the sync public API and node:sqlite self-host default.Advances #7175 (part 1 of N) — does not close the issue. Remaining: other ~12 stores, async D1 call sites,
createPgAdapter/ Postgres, interactivebatchClaim/runOn, lease-expiry-by-time.Test plan
npx vitest run test/unit/miner-store-db-adapter.test.tsnpx vitest run test/unit/miner-run-state.test.ts(functional cases)