Cleanup SubnetUidToLeaseId in do_terminate_lease#2912
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
🛡️ AI Review — Skeptic (security review)VERDICT: SAFE BASELINE scrutiny: repository write access, matching PR author/committer, no Gittensor association found; profile/contribution signals unavailable. The change narrowly removes the stale netuid-to-lease mapping during lease termination, accounts for the additional database write, and extends the existing cleanup test. No trusted review instructions, dependencies, origins, or economic logic are modified. FindingsNo findings. ConclusionNo malicious behavior or security vulnerability was found in this small, purpose-aligned patch. 🔍 AI Review — Auditor (domain review)VERDICT: 👍 Gittensor association UNKNOWN; newer contributor with repository write access, reviewed with heightened scrutiny. The fix removes the stale reverse lease mapping during successful termination, updates the corresponding database-write weight, and extends the existing termination test. PR #2837’s file overlap is incidental and not duplicate work. No runtime confirmation was needed. The local runtime is already at FindingsNo findings. ConclusionThe implementation is minimal, behaviorally correct, properly weight-accounted, and covered by the relevant cleanup test. No blocking domain issues found. |
|
🔄 AI review updated — Skeptic: SAFE Auditor: 👍 |
do_terminate_leaseremovesSubnetLeases, shares, and accumulated dividends, but never removesSubnetUidToLeaseId. Coinbase subsequently follows the stale mapping and invokes a no-op distribution path.This PR adds the removal and extends the cleanup assertion in the existing test.