Skip to content

Add ERC: Intent spec for contracts#1557

Open
collinsadi wants to merge 12 commits intoethereum:masterfrom
collinsadi:erc-intent-spec
Open

Add ERC: Intent spec for contracts#1557
collinsadi wants to merge 12 commits intoethereum:masterfrom
collinsadi:erc-intent-spec

Conversation

@collinsadi
Copy link
Copy Markdown

This PR introduces a draft ERC defining a standardized, machine-readable semantic metadata layer for smart contracts.

The proposal specifies:

  • An ERC-165 discoverable interface (IIntentSpec) exposing a metadata URI.
  • A canonical JSON schema defining contract-level and function-level semantic intent.
  • Normative requirements for metadata resolution and schema compliance.

The goal is to provide a structured documentation layer enabling automated systems to reason about contract behavior prior to execution.

This ERC is complementary to ERC-8004. While ERC-8004 standardizes identity, reputation, and validation primitives for autonomous agents, this proposal standardizes semantic intent disclosure at the contract level.

Discussion thread:
To be opened on Ethereum Magicians.

@eip-review-bot
Copy link
Copy Markdown
Collaborator

eip-review-bot commented Feb 21, 2026

File ERCS/erc-8174.md

Requires 1 more reviewers from @g11tech, @jochem-brouwer, @samwilsn, @xinbenlv

@eip-review-bot eip-review-bot changed the title Add ERC: Intent Spec (Agent-Readable Smart Contract Documentation Layer) Add ERC: Agent-Readable Smart Contract Documentation Layer (Intent Spec) Feb 21, 2026
@github-actions github-actions bot added the w-ci label Feb 21, 2026
@abcoathup
Copy link
Copy Markdown
Contributor

@collinsadi your PR includes 3 files, please remove the duplicate files.

@github-actions github-actions bot removed the w-ci label Feb 25, 2026
@collinsadi
Copy link
Copy Markdown
Author

@abcoathup I’ve completed that step, but I haven’t been able to start a discussion on Ethereum Magicians yet since I’m new to the platform.

@abcoathup
Copy link
Copy Markdown
Contributor

What is your user name?

@collinsadi
Copy link
Copy Markdown
Author

@abcoathup Collins Adi

@collinsadi
Copy link
Copy Markdown
Author

@collinsadi

@github-actions github-actions bot added the w-ci label Feb 25, 2026
Comment thread ERCS/erc-8174.md
@@ -0,0 +1,256 @@
---
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
---
---
eip: 8174

Assigning next sequential EIP/ERC/RIP number.
Numbers are assigned by editors & associates.

Please also update the filename.

Comment thread ERCS/erc-2004.md Outdated
@@ -0,0 +1,256 @@
---
title: Agent-Readable Smart Contract Documentation Layer (Intent Spec)
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
title: Agent-Readable Smart Contract Documentation Layer (Intent Spec)
title: Intent spec for contracts

Title needs to be 44 characters or less. Note: I am NOT an editor.

Comment thread ERCS/erc-2004.md Outdated
---
title: Agent-Readable Smart Contract Documentation Layer (Intent Spec)
description: A standard for machine-verifiable semantic metadata to enable autonomous agent reasoning
author: Collins Adi <@collinsadi>
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
author: Collins Adi <@collinsadi>
author: Collins Adi (@collinsadi)

Comment thread ERCS/erc-2004.md Outdated
title: Agent-Readable Smart Contract Documentation Layer (Intent Spec)
description: A standard for machine-verifiable semantic metadata to enable autonomous agent reasoning
author: Collins Adi <@collinsadi>
discussions-to:
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please create a discussions topic on Eth Magicians. I have bumped your permissions so you can create one. It needs to include a link to this PR.

Comment thread ERCS/erc-2004.md Outdated

This proposal defines a standard for attaching machine-readable semantic manifests to Ethereum smart contracts. It specifies:

1. An ERC-165 discoverable interface (`IIntentSpec`) exposing a metadata URI.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
1. An ERC-165 discoverable interface (`IIntentSpec`) exposing a metadata URI.
1. An [ERC-165](./eip-165.md) discoverable interface (`IIntentSpec`) exposing a metadata URI.

Comment thread ERCS/erc-2004.md Outdated

## Motivation

This ERC is complementary to ERC-8004.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
This ERC is complementary to ERC-8004.
This ERC is complementary to [ERC-8004](./eip-8004.md).

@collinsadi
Copy link
Copy Markdown
Author

@abcoathup Thanks for the feedbacks, working on them

@eip-review-bot eip-review-bot changed the title Add ERC: Agent-Readable Smart Contract Documentation Layer (Intent Spec) Add ERC: Intent spec for contracts Mar 1, 2026
@github-actions github-actions bot removed the w-ci label Mar 1, 2026
@github-actions
Copy link
Copy Markdown

github-actions bot commented Mar 1, 2026

The commit 3b4bb29 (as a parent of 22f0a3f) contains errors.
Please inspect the Run Summary for details.

@github-actions github-actions bot added the w-ci label Mar 1, 2026
@github-actions github-actions bot removed the w-ci label Mar 5, 2026
@collinsadi collinsadi requested a review from abcoathup March 5, 2026 18:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants