fix(miner): scope checkSubmissionFreshness's claim match to the candidate's own forge host - #10104
Conversation
…date's own forge host listClaims(repoFullName) is forge-blind, so .find() picked whichever host's row had the lowest id instead of the row this attempt's own claim was recorded under -- a stale row on an unrelated forge host could discard a completed attempt (or false-pass on a claim this attempt never held). Thread apiBaseUrl through the candidate and attempt-runner's call site, defaulting to DEFAULT_FORGE_CONFIG.apiBaseUrl exactly like the ledger's own normalization, and ignore rows on a different host entirely instead of matching the first one found.
|
Tip ✅ LoopOver review result - approve/merge recommendedReview updated: 2026-07-31 07:12:47 UTC
Review summary Nits — 5 non-blocking
Decision drivers
Context & advisory signals — never blocks the verdict
Linked issue satisfactionAddressed 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.
|
|
Superagent didn't find any vulnerabilities or security issues in this PR. |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #10104 +/- ##
==========================================
+ Coverage 79.75% 79.79% +0.03%
==========================================
Files 282 284 +2
Lines 58685 58798 +113
Branches 6878 6933 +55
==========================================
+ Hits 46804 46917 +113
Misses 11593 11593
Partials 288 288
Flags with carried forward coverage won't be shown. Click here to find out more.
|
fix(miner): scope checkSubmissionFreshness's claim match to the candidate's own forge host
listClaims(repoFullName) is forge-blind, so .find() picked whichever host's row had the
lowest id instead of the row this attempt's own claim was recorded under -- a stale row on
an unrelated forge host could discard a completed attempt (or false-pass on a claim this
attempt never held). Thread apiBaseUrl through the candidate and attempt-runner's call site,
defaulting to DEFAULT_FORGE_CONFIG.apiBaseUrl exactly like the ledger's own normalization,
and ignore rows on a different host entirely instead of matching the first one found.
Closes #10004