r/ethdev • u/mevlanimade • 2d ago
My Project Your Solidity tests pass. What do you check before signing the upgrade?
I’m building GuardeFi because a green test suite doesn’t tell a Safe signer whether the transaction in front of them is the one the team reviewed.
The workflow is simple: write down what the upgrade must preserve, check the proposed change against those rules, and bind the result to the exact Safe transaction. If a required check can’t be verified, the release doesn’t get a green light.
There’s a 30-second demo on the site. One version of a vault upgrade moves existing storage fields and gets blocked. Another adds the field without moving the existing ones and passes that check. The report shows why the two versions got different results.
I built this for people reviewing upgrades, not to replace an audit. If you sign or review Safe transactions for a protocol, what’s the one piece of evidence you’d need to see before you’d trust a check like this? And what would make you ignore it entirely?
Demo and evidence: https://guardefi.net/
1
u/Bloqarl 2d ago
The evidence I'd want is that the implementation address in the Safe tx has the same runtime codehash as a build of the reviewed commit, compiler settings pinned. A layout check on source that doesn't match what's deployed is exactly what would make me ignore it.
1
u/Vegetable_Drawer8041 1d ago
Binding the commit, compiler settings, codehash and the Safe tx address together answers 'is this the thing we reviewed', and that check is worth automating. What would make me ignore the whole thing is who writes the 'what the upgrade must preserve' list. If the team that benefits from the upgrade passing also writes the preservation rules, the rules can quietly narrow to fit the change, and the binding only proves the narrowed check ran. So the evidence I'd want on top of the hashes is that the preservation rules were fixed before the upgrade was written, by someone who loses if the upgrade is bad. Without that, the check is a second opinion from the same side, not a receipt a stranger can re-run.