feat: multisig_execute + simulation panel - #34
Merged
Conversation
- New on-chain `multisig_execute` instruction that verifies a Squads proposal is approved, then executes the transfer directly from the policy PDA. Funds never leave the guardrails layer — all policy checks (allowlist, max_tx, daily budget, session expiry) still apply, only the escalation threshold is skipped. - Extract shared helpers (parse_verified_amount, snapshot_balance) from guarded_execute into instructions/shared.rs for reuse. - Add POST /api/escalations/report endpoint so clients can report escalations directly (Helius cannot parse failed transactions). - Implement proper escalation poller using @sqds/multisig SDK to sync on-chain proposal status (was a stub returning null). - Update dashboard Execute button to call multisig_execute on the guardrails program instead of Squads vaultTransactionExecute. - Add webhook receipt logging, reconstructed instruction support for client-reported escalations, and resolve-escalation pipeline stage.
Slide-out panel on the agent detail page where users can paste their agent's secret key and run real guarded_execute transactions to test guardrails in real-time. Supports honest, attack, and custom simulation modes. Key never leaves the browser.
|
Important Review skippedToo many files! This PR contains 152 files, which is 2 over the limit of 150. ⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Plus Run ID: ⛔ Files ignored due to path filters (10)
📒 Files selected for processing (152)
You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Test plan
anchor test --skip-local-validator --skip-deploy🤖 Generated with Claude Code