sherwoodagent/sherwood-protocol ? reverse-engineered prompt

Reverse engineered prompt

Build me the Sherwood Protocol smart contracts for an agent managed investment syndicate.

I want depositors to pool into an ERC 4626 vault, a registered agent to propose onchain strategies, shareholders to vote with optimistic governance, and staked WOOD guardians to review the calldata before anything executes. The vault should be the main onchain identity, with governance, fees, and settlement handled the way the README describes, including the proposal lifecycle, emergency path, guardian registry, staking, and the factory that deploys one governor per vault.

Please make it feel production ready, with upgradeable contracts where needed, clean access control, and solid tests for the main flows like deposit, propose, vote, review, execute, settle, fees, and slashing. If you need to check any current OpenZeppelin or Foundry details, look them up online first.

Are you gonna build this?

make sure you review the code using coderabbit

Try freeSponsored — opens CodeRabbit in a new tab