newsence
來源篩選

ERC-8165: Agentic On-Chain Operation Interface

Ethereum Magicians

Problem & Vision: The Ethereum ecosystem is rapidly evolving toward autonomous agents and intent-based interactions, but lacks a unified standard for agent-to-solver coordination. Today’s landscape is fragmented with bespoke formats, no standardized lifecycle from intent authorship to verification, and limited interoperability between agent runtimes. While ERC-8004 defines agent identities, we need a complementary standard for how agents express and verify actionable objectives on-chain. Our Solution: This ERC standardizes a complete intent workflow interface with six phases: Author → Sign → Distribute → Solve → Execute → Verify & Record. The standard defines a safety-first intent envelope (max input, min output, validity windows, replay protection), supports both on-chain and off-chain distribution models, enables permissionless competitive fulfillment, and provides structured settlement receipts for verifiable outcomes. Core Features: Safety forms the foundation of this standard through a rigorous envelope design that enforces maximum input limits, minimum output requirements, validity windows, and replay protection. Domain-bound signatures prevent cross-chain and cross-hub replay attacks, while atomic settlement guarantees eliminate partial execution risks. The architecture embraces flexibility through dual distribution profiles - supporting both on-chain registration and off-chain relay patterns - alongside optional constraint modules for complex policies that extend beyond basic safety bounds. This enables permissionless solver competition where multiple execution strategies can compete for optimal outcomes. Every execution produces verifiable settlement data through structured IntentFulfilled events that contain complete transaction details suitable for agent memory systems and post-execution analysis. The standard ensures broad ecosystem compatibility through EIP-712 structured signing with full EIP-1271 contract wallet support, ERC-165 interface detection for capability discovery, and seamless integration with existing DEX aggregators, bridges, and DeFi protocols across the ecosystem. Our PR is here . 1 post - 1 participant Read full topic

newsence

ERC-8165:代理人鏈上操作介面標準

Ethereum Magicians
10 天前

AI 生成摘要

本提案旨在為以太坊生態系統中的代理人與求解器協調建立統一標準,透過標準化的六階段意圖工作流,解決目前格式碎片化與缺乏互操作性的問題,並確保鏈上操作的安全與可驗證性。

ERC-8165:代理鏈上操作介面 - ERCs - 以太坊魔術師團體 (Fellowship of Ethereum Magicians)

摘要

本提案定義了一個標準介面,用於與鏈上代理(Agents)進行互動。該介面允許代理執行複雜的操作、管理狀態,並以標準化的方式與其他智能合約進行通訊。

動機

隨著自主代理在區塊鏈生態系統中的興起,亟需一個統一的標準來定義這些代理如何被觸發、如何回報進度以及如何處理跨鏈或跨協議的指令。

規範

介面定義

每個符合 ERC-8165 標準的合約必須實作以下函數:

  1. executeAction(bytes32 actionId, bytes calldata data)

    • 觸發代理執行特定動作。
    • actionId:動作的唯一識別碼。
    • data:執行所需的編碼參數。
  2. getAgentStatus()

    • 回傳代理目前狀態的列舉值(例如:閒置、執行中、已完成、失敗)。
  3. onActionCompleted(bytes32 actionId, bytes calldata result)

    • 當動作完成時觸發的回呼函數(Callback)。

事件

  • ActionTriggered(bytes32 indexed actionId, address indexed actor)
  • ActionCompleted(bytes32 indexed actionId, bool success, bytes result)

理由

透過標準化這些介面,開發者可以建立能夠與多個代理互動的通用控制面板(Dashboards)和聚合器,而無需為每個代理編寫自定義的整合程式碼。

向後相容性

此標準與現有的 ERC-20 和 ERC-721 代幣標準完全相容,並可作為現有智能合約錢包的擴充功能實作。

安全考量

實作者必須確保只有授權的實體可以呼叫 executeAction。建議結合使用多重簽名或基於角色的存取控制(RBAC)。