Skip to content

Composition note: ERC-8265 (Prepared Transaction Envelope) above policy cages #99

Description

@mike-diamond

From the AlphaVault launch announcement:

"User funds are secured by onchain 'policy cages' - smart contracts that enforce hard-coded rules on asset types, protocol access, and position sizes."

Policy cages enforce scope - what the Allocator Agent is allowed to do. The layer they don't cover is semantic - what the agent is specifically doing right now within that scope, and why. Between the Allocator's natural-language reasoning and the contract call that lands on-chain, there's no human-readable, signed pre-commitment that an operator can review or that future audits can cite.

ERC-8265 - "Prepared Transaction Envelope" - which I've been authoring - is exactly that typed pre-commitment shape above EIP-712. Each envelope carries decoded calldata, validity windows, counterparties, and a consumer-injected risk slot. A production ERC-8004 agent gateway (by Tiago Merlini, author of the ERC-8004 input-trust companion proposal) is already running envelopes; the shape matched without spec changes.

How this composes with alphaswarm:

  • The trading agent produces an envelope (decoded intent + counterparties + cost ceiling + rationale) before the existing execution path
  • The envelope becomes the surface a human-in-loop reviewer or audit log can cite - the layer Ron's recent X posts on AI safety read as missing today
  • Policy cages remain the on-chain backstop; envelope adds the off-chain semantic layer above them

Happy to dig in here on which trading-agent flows would benefit most - or whether the envelope shape needs sharpening for natural-language strategies specifically.

Links:

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions