[Re-merge] Fix for arithmetic side effect#2722
Conversation
🛡️ AI Review — Skeptic (security review)VERDICT: SAFE BASELINE scrutiny: established write-permission contributor with matching commit authors; no Gittensor allowlist match found; branch fix/arith-side-effect -> devnet-ready. Static review only. The PR is narrowly scoped to FindingsNo findings. ConclusionNo malicious behavior or security vulnerability was found in the diff. The conversion failure path now propagates as a dispatch error instead of panicking or silently overflowing, and the added test covers that error case. 🔍 AI Review — Auditor (domain review)VERDICT: 👍 Author has write permission and substantial repo history; no curated/on-chain Gittensor allowlist match found. One overlapping open PR (#2685) touches the same files but appears to be a separate feature, not duplicate work. The Auditor proposed a replacement PR description, but the current body is non-trivial; not overwriting. Maintainers: ask the Auditor to regenerate if you want it. The prior Auditor concern has been addressed: the PR now adds a targeted Static review found the implementation narrowly scoped: TAO-to-alpha conversion now propagates fixed-point division failure, callers abort with FindingsNo findings. Prior-comment reconciliation
ConclusionApproving: the missing regression coverage from the prior review is now present, and I found no remaining domain blockers in the diff. CI should still run the focused pallet tests and the normal devnet spec-version check in an environment with working toolchain/network access. 📜 Previous run (superseded)
|
|
🔄 AI review updated — Skeptic: SAFE Auditor: 👎 |
|
🔄 AI review updated — Skeptic: SAFE Auditor: 👍 |
Description
Re-merge #2721
Related Issue(s)
Type of Change
Breaking Change
If this PR introduces a breaking change, please provide a detailed description of the impact and the migration path for existing applications.
Checklist
./scripts/fix_rust.shto ensure my code is formatted and linted correctlyScreenshots (if applicable)
Please include any relevant screenshots or GIFs that demonstrate the changes made.
Additional Notes
Please provide any additional information or context that may be helpful for reviewers.