feat(miner): document claim ledger and verify schema via PRAGMA - #3645
feat(miner): document claim ledger and verify schema via PRAGMA#3645kiannidev wants to merge 1 commit into
Conversation
…bored#2291) Add README coverage for the foundation claim ledger API and PRAGMA-based schema regression tests for miner_claims (JSONbored#3352). Co-authored-by: Cursor <cursoragent@cursor.com>
|
|
Superagent didn't find any vulnerabilities or security issues in this PR. |
|
Caution 🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥 🛑 Gittensory review result - reject/close recommendedReview updated: 2026-07-05 22:01:28 UTC
🛑 Suggested Action - Reject/Close
Review summary Nits — 5 non-blocking
Why this is blocked
CI checks failing
Review context
Contributor next steps
Signal definitions
🟩 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 Gittensory, a quiet PR intelligence layer for OSS maintainers.
|
|
Gittensory is closing this pull request on the maintainer's behalf (CI is failing (validate, validate-code); Linked issue overlaps another open PR; duplicate of another open PR). 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
openClaimLedger,claimIssue,releaseClaim,listActiveClaims) and note it is local bookkeeping only.miner_claimscolumns, NOT NULL constraints, defaultactivestatus, UNIQUE(repo_full_name, issue_number), and CHECK rejection of invalid statuses (Schema:repo_full_name TEXT NOT NULL, issue_number INTEGER NOT NULL, status TEXT NOT NULL CHECK(status IN ('active','released')), claimed_at TEXT NOT NULL, released_at TEXT, PRIMARY KEY (repo_full_name, issue_number). #3352).listActiveClaimsscoping coverage (Unit tests: claim-then-list, claim-then-release-then-list (released claim excluded fromlistActiveClaims), idempotent re-claim, and claims scoped correctly across two different repos. #3354).Closes #2291
Closes #3352
Test plan
test/unit/miner-claim-ledger.test.ts— PRAGMA schema + repo scoping (16 tests)test/unit/miner-claim-ledger-readme.test.ts— README API surfacenpm run build --workspace @jsonbored/gittensory-minerMade with Cursor