EIP.tools

EIP.tools

⚠️ DraftStandards Track: ERC

ERC-8537: Agent Coevolution

Verifiable records of how agents derive, review and select successive candidate solutions through reciprocal feedback

Authors
Created2026-12-05
Discussion Linkhttps://ethereum-magicians.org/t/erc-8537-agent-coevolution/30619
Requires

Markdown

https://raw.githubusercontent.com/ethereum/ERCs/re...
Pull Request#2307PR open

EIP-GPT summary

Contents
AbstractMotivationSpecificationTerminologyRegistrySessionsCandidatesStatementsObjections and reviewsIntakeReview closure checkSelectionsProvenance declarationsBlind first round profileInterfaceOff-chain materialReference configuration: two agents, one host (informative)RationaleBackwards CompatibilityTest CasesCase 1: same merged draft, same votes, different review evidenceCase 2: one result, two legitimate purposesCase 3: a set-aside branch produces a new solutionCase 4: an execution failure prompts a new elementLineage and reviewsBlind first roundVectorsReference ImplementationSecurity ConsiderationsCopyright

Abstract

This ERC defines Agent Coevolution: a registry model in which agents, humans and contracts produce successive versions of a candidate solution by building on one another's candidates and feedback, and in which any party that did not take part can later determine, from the records alone, four things about a given version: what it inherited, which feedback shaped it, which material objections are still open on it, and who selected it for what purpose under which version of the objective.

Three objects carry the model. A session fixes the problem being solved, its versioned objective, its participants' roles and its intake rules. A candidate is a content hash with declared parents, a derivation kind and the statements that influenced it. A statement is a typed, attributable record filed about a candidate or about another statement: evidence, objective changes, feedback, an author's response, a reviewer's verdict, a selection, an outcome, a relay, an intake digest or a closure.

The registry contains no selection logic, proves no truth and holds no funds. It fixes who said what about which version, keeps candidates that were set aside, and answers lineage and closure queries with a four-valued result so that incomplete records are reported as undeterminable rather than as clean.

Motivation

When several agents work on one problem, the useful result is rarely the first answer of any one of them. One agent finds a blind spot in the other's draft; the other holds half of a method the first one lacks; a human host decides which disagreement is worth another round, supplies a fact neither agent had, or raises the acceptance bar. The version that ends up adopted was not proposed by anyone at the start.

Existing agent standards cover the surroundings of this process but not the process itself. Information-flow rules say who may observe, provide and redistribute information in a channel (ERC-8489). Collective-decision registries say how an authorised body reaches a decision with procedural finality (ERC-8436). Swarm charters bound a purpose-bound group (ERC-8447). Task tenders settle a delivered result (ERC-8414). Council oracles let independent agents commit, reveal and be judged on one query (ERC-8033). Reference graphs between tokens exist for NFTs (ERC-5521). None of them records how a version came to be, what was objected to on the way, how that objection was dealt with on this version, and whether the party that adopted it had the authority and the evidence to do so.

The gap shows at hand-over. Two groups each deliver a merged draft C with the same votes and the same version history. In both, a reviewer asked the same question: after resuming from an interruption, does the report mark unfinished actions as finished? The first group changed C, reran the case and recorded a result tied to the new version. The second answered "next round" and the reviewers approved anyway. A third party that must only accept work whose material objections were closed by a designated reviewer has to treat these two deliveries differently. If both reach it as "three approvals, merge complete", the most valuable information was lost at the hand-over.

This ERC therefore standardises the records, not the collaboration. Any cell (an agent, a human or a contract acting under its own address) can propose, object, respond, revise, recombine, review or select. The records make three facts separately checkable that are usually conflated: an author saying "fixed", a designated reviewer saying "verified", and an authorised consumer saying "adopted for this purpose". They keep set-aside branches addressable so that another group can take one over with new evidence. And they let a task contract check that an authorised party selected exactly this version under the agreed rules, while the detailed material stays off-chain and is exchanged under whatever access rules apply.

The design draws on evolutionary search, and on the neural-network picture of local signals and recurrent feedback applied to the group rather than to any one model. Candidate solutions form a population. Selection decides which branches participants pursue and which versions are adopted; here it sits outside the population and is attributable, both in SELECTION statements and in the host's RELAY of what deserves another look. Crossover combines the contributions of several parents (RECOMBINATION). Mutation introduces an element that no declared parent supplied; a host or an agent can originate it, and in host-steered work the host is often its main source. Host-supplied facts, branches imported from other sessions and late joiners bring in material from outside the population (migration). Feedback from peers, reviewers and external execution travels along specific paths (FEEDBACK, RESPONSE, REVIEW, OUTCOME, RELAY) and shapes both the next candidate and the direction of the next round, the way local signals passed between units shape a network's next state. The registry records these declared relationships and trains nothing: the process works with fixed model weights. The kernel fixes the shape under which multi-agent exchange has been observed to help (independent first drafts, attributable exchange, bounded rounds, selection outside the debaters) without prescribing a collaboration method.

Specification

The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", "SHOULD", "SHOULD NOT", "RECOMMENDED", "NOT RECOMMENDED", "MAY", and "OPTIONAL" in this document are to be interpreted as described in RFC 2119 and RFC 8174.

Terminology

  • Cell: any account that takes part: an agent, a human or a contract. Cells are identified by address. Binding an address to an agent identity is out of scope.
  • Session: a bounded coevolution of candidates toward a versioned objective, opened by a host.
  • Host: the account that opened a session. The host holds all roles at opening and MAY delegate any of them.
  • Objective: the goal, constraints and evaluation basis of a session, identified by hash and versioned. Changing the objective creates a new version; adding a fact does not.
  • Candidate: a version of a possible solution: an answer, a judgement, a method, a specification, a program or a plan, identified by a content hash.
  • Parent: a candidate that another candidate declares it was derived from. A parent is in this registry (any session) or external (content hash only).
  • Derivation: how a candidate relates to its parents: seed, revision, recombination or import.
  • Generation: the length of the longest derivation chain from a seed, computed by the registry. Round: the session's discussion round at submission, advanced by the host. The two are independent.
  • Statement: a typed record filed about a session, a candidate or another statement. Kinds are listed below.
  • Material objection: a feedback statement with severity MATERIAL. Only material objections take part in closure checks.
  • Intake: the scope and cut-off under which material objections against a candidate are received.
  • Closure: a reviewer's CLOSED or CARRIED verdict on an objection for a given candidate. Closure is per version.
  • Selection: an authorised selector's record that a candidate is selected, conditionally selected, deferred or not selected for a named purpose.
  • Purpose: an opaque 32-byte identifier of what a selection is for (for example a pilot, a production release, a filing).

Registry

A conforming registry implements the IAgentCoevolution interface below and ERC-165. A timepoint in this ERC is the value of block.timestamp at the time of the call, as a uint48. Every recorded time (openedAt, closedAt, submittedAt, filedAt), every deadline (commitDeadline, revealDeadline) and every window (intakeWindow, in seconds) uses this unit.

Identifiers of sessions, candidates and statements are assigned by the registry, start at 1 and are unique across the registry, so that a candidate in one session can name a parent in another.

Sessions

openSession(config) creates a session in state OPEN, round 0, objective version 1, and grants the caller every role. config.objectiveHash MUST be non-zero. The configuration is immutable for the life of the session.

FieldMeaning
charterHashHash of the off-chain charter: the question, participants, access rules and interaction profile.
objectiveHashObjective version 1.
intakeModeNONE, ONCHAIN or DIGEST (see Intake).
carryModeNONE or EXPLICIT (see Reviews).
maxRoundsUpper bound on rounds; 0 means unbounded. With maxRounds = n, rounds 0 to n-1 exist.
intakeWindowSeconds after a candidate's submission after which its intake closes; 0 means intake closes only explicitly.
openProposalsIf true, any account may submit candidates; otherwise the PROPOSE role is required.
openFeedbackIf true, any account may file feedback and facts; otherwise any role is required.
authorMaySelectIf false, a candidate's author cannot file selections on it.
blindFirstRound, commitDeadline, revealDeadlineBlind first round profile (see below).

Roles are bits granted per session: HOST (1), PROPOSE (2), REVIEW (4), SELECT (8), INTAKE (16), OBJECTIVE (32), RELAY (64). grantRoles and revokeRoles require HOST. Granting HOST delegates the host's powers. The registry MUST emit RolesChanged with the resulting bitmap.

Objective versions. setObjective requires OBJECTIVE, increments the objective version, stores the new hash under that version, files an OBJECTIVE statement whose objectiveVersion is the new version, and emits ObjectiveChanged. Earlier versions remain readable through objectiveAt. Every candidate and statement records the objective version current at its filing, so a selection made under version 1 keeps its meaning after the host raises the bar to version 2.

Facts. addFact files a FACT statement with a claim hash and an evidence hash. It does not change the objective version. Facts are the host's or a participant's way of adding evidence that the candidates did not have.

Rounds. advanceRound requires HOST and increments the round; it MUST revert with AC_RoundLimit when the next round would reach maxRounds. In a blind first round session, advancing out of round 0 is additionally gated (see the profile).

Closure of a session. closeSession(state) requires HOST, with state one of CONVERGED, NO_CONVERGENCE or ABORTED. CONVERGED MUST revert unless at least one SELECTED or CONDITIONAL selection in the session has not been withdrawn. Closing files a CLOSURE statement. After closure the registry MUST reject new candidates, commitments, reveals, objective changes and round advances. It MUST still accept feedback, responses, reviews, selections, withdrawals, outcomes, relays, intake closures and digests about the session's existing candidates: results arrive after a session ends, and later acceptance may depend on reviews filed after it.

Candidates

submitCandidate(sessionId, contentHash, noteHash, derivation, parents, influences) records a candidate authored by the caller. The session MUST be OPEN; the caller MUST hold PROPOSE unless openProposals is set; contentHash MUST be non-zero. noteHash identifies the derivation note: which parts were taken from which parent, which parts are new (supplied by no declared parent), and why. It MAY be zero.

Derivation rules:

DerivationParents
SEEDnone
REVISIONexactly one, in this registry and in the same session
RECOMBINATIONtwo or more, each in this registry (any session) or external
IMPORTone or more, each in another session of this registry or external; none in the same session

A parent reference is (sessionId, candidateId, contentHash). With sessionId = 0 the parent is external and contentHash MUST be non-zero. Otherwise the candidate MUST exist in the named session, and a non-zero contentHash MUST equal the stored one; the registry stores the stored hash in either case. Parents MUST be distinct: no two in-registry parents may name the same candidateId, and no two external parents may carry the same contentHash; for a duplicate, the later of the two is the offending parent. The registry MUST revert with AC_InvalidParent(index) naming the first offending parent.

generation is 0 for a SEED and otherwise 1 + the maximum generation of the in-registry parents, external parents counting as generation 0. round and objectiveVersion are the session's values at submission.

influences lists statements, in any session, that shaped this candidate: objections it answers, facts it uses, outcomes that changed it. Each MUST exist. Influences are declarations by the author and do not change any statement's status.

A candidate is never deleted or modified. A set-aside candidate remains addressable as a parent for any later candidate whose author has access to it.

Statements

Every statement records the session, its kind, a kind-specific code, the filer, the objective version at filing, the timepoint, and up to two targets (candidateId, targetStatementId) with up to three hashes (claimHash, evidenceHash, auxHash) and, for selections, a purpose. The registry MUST emit StatementFiled for every statement.

KindFiled byAboutcode
FACTany role holder, or anyone if openFeedbacksession0
OBJECTIVEOBJECTIVEsession0; objectiveVersion is the new version
FEEDBACKany role holder, or anyone if openFeedbackcandidateseverity: 1 MATERIAL, 2 MINOR, 3 SUGGESTION
RESPONSEthe candidate's authora FEEDBACKdisposition: 1 ADOPTED, 2 PARTIAL, 3 REJECTED, 4 DEFERRED
REVIEWREVIEWa candidate and a FEEDBACKverdict: 1 CLOSED, 2 OPEN, 3 UNDETERMINABLE, 4 CARRIED
SELECTIONSELECTcandidate, with purposestatus: 1 SELECTED, 2 CONDITIONAL, 3 DEFERRED, 4 NOT_SELECTED, 5 WITHDRAWN
OUTCOMEanyonecandidate, optionally a SELECTIONresult: 1 SUCCESS, 2 FAILURE, 3 INCONCLUSIVE
RELAYHOST or RELAYa statement or candidate, subject = recipient0
INTAKEINTAKEcandidate1 DIGEST; claimHash = root, auxHash = count
CLOSUREHOSTsessionthe SessionState

Requirements:

  • fileFeedback with severity MATERIAL MUST revert with AC_IntakeClosed when the candidate's intake is closed. MINOR and SUGGESTION feedback MAY be filed at any time. The registry MUST keep, per candidate, the ordered list of material objections filed on it (objectionsOn).
  • respond MUST revert with AC_NotAuthor unless the caller authored the feedback's candidate. A response records the author's disposition. It never changes an objection's status.
  • reportOutcome with a non-zero selectionId MUST revert unless that selection is about the same candidate. The filer is recorded; the registry does not weigh outcomes.
  • relay records that the host routed a specific statement or candidate to a specific participant. It exists so that selective relaying, which is a hosting act, is attributable and can later be delegated.

Objections and reviews

A material objection filed on candidate X is in scope for X and for every candidate of the same session that descends from X through in-registry parents. It is not in scope for candidates in other sessions, including imports of X.

The status of an objection on a candidate C is determined only by the latest REVIEW statement whose candidateId is C and whose targetStatementId is the objection:

Latest review on CStatus on C
noneOPEN
CLOSEDCLOSED
CARRIEDCARRIED
UNDETERMINABLEUNDETERMINED
OPENOPEN

Openness therefore inherits down the lineage and closure does not: an objection closed on X is open again on a revision of X until a reviewer files a review on that revision. This is the safe default; a change can reintroduce what a parent fixed.

review(sessionId, candidateId, feedbackId, verdict, ...) requires REVIEW. The candidate MUST be the objection's candidate or a determinable descendant of it in the same session, else AC_NotInScope. A CARRIED verdict asserts that an ancestor's closure still holds. It MUST revert with AC_CarryNotAllowed unless carryMode is EXPLICIT, the candidate is not the objection's own candidate, and the objection is CLOSED or CARRIED on at least one direct same-session parent of the candidate. The registry MUST record the latest review per (candidate, objection) (latestReviewOf).

objectionStatus(candidateId, feedbackId) returns NOT_APPLICABLE when the feedback is not a material objection or is out of scope, UNDETERMINED when scope cannot be determined within the implementation's traversal bound, and otherwise the status above.

Intake

Whether "no open material objection" can be asserted depends on knowing that all objections were received. Each session declares how:

  • NONE: no intake scope is defined. intakeStatus is always UNDETERMINABLE.
  • ONCHAIN: every material objection is filed in the registry. intakeStatus is SATISFIED once the candidate's intake is closed.
  • DIGEST: objections may be received elsewhere. After the candidate's intake is closed, the INTAKE role posts a digest (postIntakeDigest) stating the total number of material objections received and a root over them. intakeStatus is SATISFIED only if a digest exists and its count equals the number of material objections filed in the registry; otherwise some objections are unverifiable and the status is UNDETERMINABLE.

A candidate's intake closes when intakeWindow seconds have passed since submission, or when closeIntake (HOST or INTAKE) is called, whichever comes first. Before that intakeStatus is UNDETERMINABLE. postIntakeDigest MUST revert with AC_IntakeOpen while intake is open and with AC_InvalidConfig outside DIGEST mode. For a candidate that does not exist, intakeStatus returns NOT_APPLICABLE.

Review closure check

reviewClosureCheck(candidateId) answers the consumer's question "are all material objections in scope closed by a review on this candidate, and is that answer complete?". It MUST be computed as follows:

  1. Let the scope be the candidate and all its same-session ancestors reachable through in-registry parents. If the traversal exceeds the implementation's node bound, return UNDETERMINABLE.
  2. For every node in scope, if intakeStatus(node) is not SATISFIED, mark the result undetermined.
  3. For every material objection filed on every node in scope, take its status on the queried candidate. Count OPEN statuses; an UNDETERMINED status marks the result undetermined.
  4. If the open count is non-zero, return UNSATISFIED with that count. Otherwise, if the result was marked undetermined, return UNDETERMINABLE. Otherwise return SATISFIED.

An open objection is thus reported as UNSATISFIED even when intake is incomplete, and a clean record is reported as SATISFIED only when the scope is complete. For a candidate that does not exist the function returns NOT_APPLICABLE.

Consumers with other acceptance rules read objectionsOn, latestReviewOf, objectionStatus and intakeStatus directly.

Selections

select(sessionId, candidateId, purpose, status, criteriaHash, evidenceHash, conditionsHash) requires SELECT. It MUST revert with AC_AuthorMayNotSelect when the caller authored the candidate and authorMaySelect is false, with AC_ConditionsRequired when status is CONDITIONAL and conditionsHash is zero, and with AC_InvalidCode for WITHDRAWN or an unknown status. The selection records the selector, the objective version at filing, the criteria, the evidence relied on, the purpose, and for CONDITIONAL the conditions still to be met.

Selections are append-only. Several candidates MAY be selected for the same purpose at the same time; one candidate MAY be selected for one purpose and conditionally selected or deferred for another; a later selection for the same purpose does not erase an earlier one. withdrawSelection lets the original selector withdraw a SELECTED or CONDITIONAL selection once, by filing a WITHDRAWN selection that targets it; the withdrawn record remains readable.

selectionsOf(candidateId) and selectionsFor(sessionId, purpose) return the ordered statement identifiers. How a consumer derives "the current selection" from them is the consumer's rule; the registry does not rank selectors.

Provenance declarations

declareProvenance(sessionId, participant, mode, provenanceHash) records, per (session, participant, declarer), a hash describing the participant's model or source lineage, with mode SELF (1; the declarer is the participant), THIRD_PARTY (2), RESTRICTED (3; a declaration exists but is not disclosed) or UNKNOWN (4). Declarations are informative. A registry MUST NOT derive any status from them, and clients SHOULD NOT treat two participants with the same declared lineage as a lower-quality exchange: the same model in different contexts holds different evidence, and different models may repeat one source.

Blind first round profile

A session with blindFirstRound set requires round-0 seeds to be committed before they are revealed. commitDeadline MUST be in the future at opening and revealDeadline MUST be later than commitDeadline.

  • commitSeed(sessionId, commitment) is accepted from a proposer before commitDeadline, once per participant, with commitment = keccak256(abi.encode(sessionId, msg.sender, contentHash, salt)).
  • revealSeed(sessionId, contentHash, salt, noteHash) is accepted from commitDeadline until revealDeadline; it MUST revert with AC_CommitmentMismatch unless the recomputed commitment equals the stored one, and otherwise creates a SEED candidate authored by the caller.
  • forfeitCommitment(sessionId, participant) MAY be called by anyone after revealDeadline for a commitment that was not revealed; it marks the commitment FORFEITED.
  • While the session is in round 0, submitCandidate MUST revert with AC_BlindRoundActive. advanceRound out of round 0 MUST revert with AC_RevealsPending before commitDeadline or while any commitment is neither revealed nor forfeited. From round 1 the session behaves as an open one; seeds from late joiners are allowed.

What the profile makes verifiable is that each revealed seed was fixed before the commit deadline and before any other seed of the session was revealed, and that the participants who committed either revealed or forfeited. It does not show that participants did not communicate off-chain. Hiding author identity from reviewers is a different, off-chain configuration and is not part of this profile.

Interface

interface IAgentCoevolution {
    enum Derivation { SEED, REVISION, RECOMBINATION, IMPORT }
    enum IntakeMode { NONE, ONCHAIN, DIGEST }
    enum CarryMode { NONE, EXPLICIT }
    enum SessionState { OPEN, CONVERGED, NO_CONVERGENCE, ABORTED }
    enum Kind { NONE, FACT, OBJECTIVE, FEEDBACK, RESPONSE, REVIEW, SELECTION, OUTCOME, RELAY, INTAKE, CLOSURE }
    enum Check { UNDETERMINABLE, SATISFIED, UNSATISFIED, NOT_APPLICABLE }
    enum ObjectionStatus { NOT_APPLICABLE, OPEN, CLOSED, CARRIED, UNDETERMINED }
    enum CommitState { NONE, COMMITTED, REVEALED, FORFEITED }

    struct SessionConfig {
        bytes32 charterHash;
        bytes32 objectiveHash;
        IntakeMode intakeMode;
        CarryMode carryMode;
        uint32 maxRounds;
        uint48 intakeWindow;
        bool openProposals;
        bool openFeedback;
        bool authorMaySelect;
        bool blindFirstRound;
        uint48 commitDeadline;
        uint48 revealDeadline;
    }
    struct SessionInfo {
        SessionConfig config;
        SessionState state;
        address host;
        uint32 round;
        uint32 objectiveVersion;
        uint48 openedAt;
        uint48 closedAt;
    }
    struct Parent { uint256 sessionId; uint256 candidateId; bytes32 contentHash; }
    struct Candidate {
        uint256 sessionId;
        address author;
        Derivation derivation;
        uint32 generation;
        uint32 round;
        uint32 objectiveVersion;
        uint48 submittedAt;
        bytes32 contentHash;
        bytes32 noteHash;
    }
    struct Statement {
        uint256 sessionId;
        Kind kind;
        uint8 code;
        address filer;
        address subject;
        uint256 candidateId;
        uint256 targetStatementId;
        bytes32 claimHash;
        bytes32 evidenceHash;
        bytes32 auxHash;
        bytes32 purpose;
        uint32 objectiveVersion;
        uint48 filedAt;
    }

    event SessionOpened(uint256 indexed sessionId, address indexed host, bytes32 charterHash, bytes32 objectiveHash);
    event RolesChanged(uint256 indexed sessionId, address indexed account, uint32 roles);
    event SeedCommitted(uint256 indexed sessionId, address indexed participant, bytes32 commitment);
    event CommitmentForfeited(uint256 indexed sessionId, address indexed participant);
    event CandidateSubmitted(uint256 indexed sessionId, uint256 indexed candidateId, address indexed author, Derivation derivation, uint32 generation, uint32 round, bytes32 contentHash);
    event StatementFiled(uint256 indexed sessionId, uint256 indexed statementId, Kind indexed kind, uint8 code, address filer, uint256 candidateId, uint256 targetStatementId);
    event ObjectiveChanged(uint256 indexed sessionId, uint32 indexed version, bytes32 objectiveHash);
    event RoundAdvanced(uint256 indexed sessionId, uint32 round);
    event IntakeClosed(uint256 indexed sessionId, uint256 indexed candidateId, uint48 at);
    event SessionClosed(uint256 indexed sessionId, SessionState state, bytes32 summaryHash);
    event ProvenanceDeclared(uint256 indexed sessionId, address indexed participant, address indexed declarer, uint8 mode, bytes32 provenanceHash);

    function openSession(SessionConfig calldata config) external returns (uint256 sessionId);
    function grantRoles(uint256 sessionId, address account, uint32 roles) external;
    function revokeRoles(uint256 sessionId, address account, uint32 roles) external;
    function setObjective(uint256 sessionId, bytes32 objectiveHash, bytes32 noteHash) external returns (uint256 statementId, uint32 version);
    function addFact(uint256 sessionId, bytes32 factHash, bytes32 evidenceHash) external returns (uint256 statementId);
    function advanceRound(uint256 sessionId) external;
    function closeSession(uint256 sessionId, SessionState state, bytes32 summaryHash) external returns (uint256 statementId);

    function commitSeed(uint256 sessionId, bytes32 commitment) external;
    function revealSeed(uint256 sessionId, bytes32 contentHash, bytes32 salt, bytes32 noteHash) external returns (uint256 candidateId);
    function forfeitCommitment(uint256 sessionId, address participant) external;

    function submitCandidate(uint256 sessionId, bytes32 contentHash, bytes32 noteHash, Derivation derivation, Parent[] calldata parents, uint256[] calldata influences) external returns (uint256 candidateId);
    function fileFeedback(uint256 sessionId, uint256 candidateId, uint8 severity, bytes32 claimHash, bytes32 evidenceHash) external returns (uint256 statementId);
    function respond(uint256 sessionId, uint256 feedbackId, uint8 disposition, bytes32 claimHash, bytes32 evidenceHash) external returns (uint256 statementId);
    function review(uint256 sessionId, uint256 candidateId, uint256 feedbackId, uint8 verdict, bytes32 claimHash, bytes32 evidenceHash) external returns (uint256 statementId);
    function select(uint256 sessionId, uint256 candidateId, bytes32 purpose, uint8 status, bytes32 criteriaHash, bytes32 evidenceHash, bytes32 conditionsHash) external returns (uint256 statementId);
    function withdrawSelection(uint256 sessionId, uint256 selectionId, bytes32 reasonHash) external returns (uint256 statementId);
    function reportOutcome(uint256 sessionId, uint256 candidateId, uint256 selectionId, uint8 result, bytes32 resultHash, bytes32 evidenceHash) external returns (uint256 statementId);
    function relay(uint256 sessionId, uint256 statementId, uint256 candidateId, address recipient, bytes32 noteHash) external returns (uint256 relayId);
    function closeIntake(uint256 sessionId, uint256 candidateId) external;
    function postIntakeDigest(uint256 sessionId, uint256 candidateId, uint32 count, bytes32 root) external returns (uint256 statementId);
    function declareProvenance(uint256 sessionId, address participant, uint8 mode, bytes32 provenanceHash) external;

    function sessionOf(uint256 sessionId) external view returns (SessionInfo memory);
    function rolesOf(uint256 sessionId, address account) external view returns (uint32);
    function objectiveAt(uint256 sessionId, uint32 version) external view returns (bytes32);
    function candidateOf(uint256 candidateId) external view returns (Candidate memory);
    function parentsOf(uint256 candidateId) external view returns (Parent[] memory);
    function influencesOf(uint256 candidateId) external view returns (uint256[] memory);
    function statementOf(uint256 statementId) external view returns (Statement memory);
    function objectionsOn(uint256 candidateId) external view returns (uint256[] memory);
    function latestReviewOf(uint256 candidateId, uint256 feedbackId) external view returns (uint256 reviewId);
    function objectionStatus(uint256 candidateId, uint256 feedbackId) external view returns (ObjectionStatus);
    function isDescendant(uint256 ancestorId, uint256 candidateId) external view returns (bool descendant, bool determinable);
    function intakeStatus(uint256 candidateId) external view returns (Check);
    function reviewClosureCheck(uint256 candidateId) external view returns (Check result, uint256 openObjections);
    function selectionsOf(uint256 candidateId) external view returns (uint256[] memory);
    function selectionsFor(uint256 sessionId, bytes32 purpose) external view returns (uint256[] memory);
    function commitmentOf(uint256 sessionId, address participant) external view returns (bytes32 commitment, CommitState state);
    function provenanceOf(uint256 sessionId, address participant, address declarer) external view returns (uint8 mode, bytes32 provenanceHash);
}

The ERC-165 interface identifier of IAgentCoevolution is 0xeab0a16a. A conforming registry MUST return true from supportsInterface for 0x01ffc9a7 (ERC-165) and 0xeab0a16a.

Views that take an identifier of a session, candidate or statement that does not exist MUST revert, except intakeStatus, reviewClosureCheck and objectionStatus, which return NOT_APPLICABLE as specified, and the list views, which return empty lists.

Off-chain material

All hashes are opaque to the registry. A session's charter SHOULD state how contentHash, noteHash, claimHash, evidenceHash and conditionsHash are computed and where the material can be obtained by those entitled to it. Clients that publish material SHOULD hash canonical bytes (for example JSON Canonicalization Scheme output) so that two implementations compute the same identifiers. A JSON schema for the envelopes used by the reference implementation is provided in the assets.

A derivation note lists the parts of a candidate with their source: a parent reference, or new for an element that no declared parent supplied. A part marked new SHOULD name who originated it and the statements that prompted it, and the candidate SHOULD list those statements in influences, so that a reader can tell what a version inherited, what it recombined and what it introduced.

Reference configuration: two agents, one host (informative)

The configuration the model was derived from runs as follows, and is the first interaction profile the reference implementation exercises end to end:

  1. The host opens a session (ONCHAIN intake, EXPLICIT carry, three or four rounds) and grants PROPOSE to two agents, REVIEW and SELECT to a reviewer, and SELECT to further selectors. With the blind first round profile, both agents commit and then reveal their seeds; otherwise both submit seeds in round 0.
  2. The host advances to round 1 and relays to each agent the specific statements worth seeing (recording RELAY statements), rather than the other's whole draft. The host may also contribute an element that neither draft contains, as a SUGGESTION, a FACT or a candidate of its own.
  3. Each agent revises its candidate or recombines both, citing the parents and the influencing statements. Objections are filed as MATERIAL feedback; authors respond; the reviewer reviews on the version under consideration.
  4. The host decides whether to open another round, keep a branch, change the objective, or send a version for external execution. Outcomes return as OUTCOME statements and feed the next revision, which cites them among its influences.
  5. Selectors select versions per purpose. The host closes the session as CONVERGED or NO_CONVERGENCE.

Group-of-groups use (independent exploration with occasional cross-group import) is expressed with IMPORT candidates between sessions and needs no further mechanism.

Rationale

Thin kernel, no selection logic. The quality of a coevolution depends on who selects and how; the records only need to make that attributable. Selection rules therefore live with the selector: a human host, an authorised agent, a collective-decision body whose executor holds SELECT, or a verifier contract. Prescribing a rule would exclude the others and add nothing to interoperability.

Three separable facts. An author's "fixed", a reviewer's "verified" and a consumer's "adopted" are different kinds of statement, filed by different roles, and the acceptance test of the motivating hand-over case cannot be expressed unless they are kept apart. In a small team one account may hold all three roles; the records still show which statement it made at each step.

Closure is per version and openness inherits. The alternative, carrying closures forward automatically, makes every revision silently inherit verification it did not receive. The chosen default costs one CARRIED review per inherited objection on a version that did not touch the relevant part, which is cheap, and it keeps the acceptance check conservative.

Four-valued checks. A consumer that receives only the three records the author chose can verify those records but cannot know how many were admitted. Intake modes and the UNDETERMINABLE result exist so that incomplete evidence is never mistaken for a clean record, which is the condition under which an on-chain acceptance rule can rely on this registry at all.

Set-aside candidates are kept. A session that must produce one winner per round discards diversity early; a candidate set aside under one objective often carries the part that becomes decisive later. Keeping NOT_SELECTED and DEFERRED as explicit, non-destructive statuses, and allowing several SELECTED candidates per purpose, preserves the population without forcing a ranking.

Block timestamps as the time base. Sessions run for minutes to weeks, and their deadlines are set by people and agents in wall-clock terms. Fixing the time base to block timestamps keeps every recorded time comparable across registries and leaves nothing to negotiate between implementations; a pluggable clock would add an interface without adding interoperability.

Generation and round are separate. Several descendants can be produced in one round, and a late joiner can seed in round 3. Conflating the two would misreport lineage depth.

Influences are declared, not inferred. The registry cannot tell which input changed a candidate; the author can. Declared influences, together with RELAY records of what the host chose to pass on, are what a later reader needs to see where one party's input changed the other's next version, which is the sense in which the process is coevolution rather than version control.

Mutation is a property of content, not of lineage. REVISION and RECOMBINATION say how many parents a version has and where they are; mutation says that some element of the version came from none of them. One recombination can inherit a method from one parent and a constraint from the other and add a mechanism that neither had, so a separate MUTATION derivation kind would force a choice that loses information. The derivation note therefore marks each part as inherited from a named parent or as new, a new part names its originator and the statements that prompted it, and influences puts those statements on-chain. Case 4 exercises the loop from an execution failure to a new element and a retest.

Distinct parents. A recombination of a candidate with itself is a revision under another name, so parent references must be distinct. Identity is compared, not content: distinct candidates with similar content remain distinct parents, and whether each contributed something is shown by the derivation note and the material.

No contribution weights in this version. A deterministic share computed from declared parent weights is a policy, and conflating it with evidence-backed contribution would mislead consumers. The lineage and the outcome statements are the extension points for an attribution profile.

Blind first round as a profile, open start in the kernel. Independent first drafts are the condition under which exchange adds information rather than conformity, so the profile makes that independence verifiable. But published drafts, imported branches and experts who join late are also legitimate starting points, so the kernel does not force a commitment phase.

Provenance is declared, never scored. Model heterogeneity is a necessary condition for useful exchange, not a sufficient one, and two instances of one model in different contexts do not hold the same evidence. The registry therefore records declarations for consumers and refuses to derive a quality label from them.

Relation to other proposals. ERC-8489 governs how information may move in a channel and expresses that an object derives from or merges others; this ERC records what happened to specific objections on specific versions and who selected a version for what. ERC-8436 produces decisions with procedural finality; a body under it is one possible selector here, and its decision receipt is natural content for evidenceHash. Workflow-enforcement proposals gate the stages of a single task execution inside a contract; this ERC records a process whose candidates, feedback and objections are expected to outlive one task and one group. ERC-8033 has independent commitment, reveal and judgement on one query but no derivation between answers and no per-version objection handling. ERC-5521 and ERC-8034 show reference graphs and graph-based royalty distribution for NFTs; the candidate lineage here is analogous but carries derivation kinds, declared influences and no economic rule. ERC-5732 standardises a bare commit; the profile here binds the commitment to session and participant and fixes the reveal.

Self-maintenance is a separate concern. What an agent writes into its own memory, skills or state after a session is the subject of self-maintenance records (ERC-8490); such a record can cite a session, a candidate or an outcome here, and nothing in this ERC depends on it.

Backwards Compatibility

No backwards compatibility issues are introduced. The registry is a standalone contract. Participants may be plain accounts, contract accounts or agents registered under identity registries such as ERC-8004; binding is by address. Collective-decision bodies, task-tender consumers, swarm charters and self-maintenance records reference sessions, candidates and statements by identifier and by the registry address, and no existing interface is modified.

Test Cases

The reference implementation ships a Foundry-compatible test suite (51 tests, including a fuzz test of the commitment binding) under the assets. The following cases are normative for the behaviours they pin; all identifiers are those assigned by a fresh registry in the order given.

Case 1: same merged draft, same votes, different review evidence

Setup for each group, in its own session with ONCHAIN intake and EXPLICIT carry: agent A submits seed A0, agent B submits seed B0, the host advances to round 1, A submits C as a RECOMBINATION of A0 and B0, the reviewer files a MATERIAL objection F on C, and the host closes intake on A0 and B0.

  • Group 1: A responds ADOPTED to F, submits C2 as a REVISION of C with influence F, reports an OUTCOME SUCCESS on C2, and the reviewer files REVIEW CLOSED on (C2, F). The host closes intake on C and C2. Three selectors select C2 for purpose keccak256("pilot"). Expected: reviewClosureCheck(C2) = (SATISFIED, 0); objectionStatus(C2, F) = CLOSED; objectionStatus(C, F) = OPEN; influencesOf(C2) = [F]; selectionsFor(session, pilot) has three entries.
  • Group 2: A responds DEFERRED to F; the host closes intake on C; three selectors select C for the pilot. Expected: reviewClosureCheck(C) = (UNSATISFIED, 1); selectionsFor(session, pilot) has three entries.
  • Variant: as group 1, but the reviewer files no review on C2. Expected: reviewClosureCheck(C2) = (UNSATISFIED, 1).
  • Variant: as group 1 in a DIGEST-mode session with no digests. Expected: reviewClosureCheck(C2) = UNDETERMINABLE. After digests with count 0 on A0, B0 and C2 and count 1 on C: SATISFIED. A digest with count 2 on C: UNDETERMINABLE.
  • Variant: a NONE-mode session with one seed and closed intake. Expected: reviewClosureCheck = UNDETERMINABLE; with one open objection: (UNSATISFIED, 1).

Case 2: one result, two legitimate purposes

In a session with one seed C and closed intake, the reviewer selects C SELECTED for pilot and CONDITIONAL for production with a non-zero conditions hash, the host changes the objective to version 2, an outcome SUCCESS is reported against the conditional selection, and the reviewer selects C SELECTED for production. Expected: selectionsFor(session, production) returns two selections with statuses CONDITIONAL (objective version 1, conditions hash preserved) and SELECTED (objective version 2); selectionsFor(session, pilot) returns one; selectionsOf(C) returns three. A CONDITIONAL selection with a zero conditions hash reverts with AC_ConditionsRequired.

Case 3: a set-aside branch produces a new solution

Session 1: A0, B0; round 1; A1 revises A0; B1 revises B0; A files a MATERIAL objection G on B1; the reviewer selects A1 SELECTED and B1 NOT_SELECTED for the pilot; the host closes the session CONVERGED. Session 2 (different host): a FACT is added; agent E submits an IMPORT of B1 with influence FACT, an IMPORT of A1, and D as a RECOMBINATION of the two imports with influences [FACT, G]. Expected, read by an account that holds no role: parentsOf(D) has two entries whose own parents resolve to (session 1, B1, contentHash of B1) and (session 1, A1, contentHash of A1); candidateOf(D).generation = 3; influencesOf(D) = [FACT, G]; objectionStatus(D, G) = NOT_APPLICABLE; objectionStatus(B1, G) = OPEN; reviewClosureCheck(D) = UNDETERMINABLE while D's intake is open; the NOT_SELECTED selection on B1 is still readable.

Case 4: an execution failure prompts a new element

In a session with the host, two agents and a reviewer: A submits seed A0, B submits seed B0, the host advances to round 1, and A submits C as a RECOMBINATION of A0 and B0. The reviewer selects C SELECTED for pilot; an account with no role reports OUTCOME FAILURE on C against that selection; the reviewer withdraws the selection. The host relays the failure to A and files FEEDBACK SUGGESTION on C proposing an element that neither parent contains; A responds ADOPTED and submits D as a REVISION of C with influences [FAILURE, SUGGESTION], whose derivation note marks that element as new. The same account reports OUTCOME SUCCESS on D, the reviewer selects D SELECTED for pilot, and the host closes the session CONVERGED. Expected, read by an account that holds no role: parentsOf(D) = [C] and parentsOf(C) = [A0, B0]; candidateOf(C).generation = 1 and candidateOf(D).generation = 2; influencesOf(D) = [FAILURE, SUGGESTION], where FAILURE is an OUTCOME on C whose target is C's pilot selection and SUGGESTION is a FEEDBACK on C filed by the host; the RELAY names A as recipient and FAILURE as target; FAILURE and SUCCESS carry the same objective version; selectionsFor(session, pilot) = [C SELECTED, its withdrawal, D SELECTED].

Lineage and reviews

  • A REVISION of a candidate on which an objection is CLOSED shows the objection OPEN; a CARRIED review on the revision is accepted in EXPLICIT mode and rejected in NONE mode; a CARRIED review on the objection's own candidate, or on a revision whose parent never held a closure, reverts with AC_CarryNotAllowed.
  • A review on a candidate that is not the objection's candidate or its descendant reverts with AC_NotInScope.
  • A RECOMBINATION naming the same candidate twice, or an IMPORT naming the same external content hash twice, reverts with AC_InvalidParent(1); a candidate and external material with the same content hash are distinct parents.
  • With objections on A0 and B0 and C2 a revision of their recombination C, reviewClosureCheck(C2) reports 2 open objections, then 1 after one CLOSED review on C2, UNDETERMINABLE after an UNDETERMINABLE review on the other, and SATISFIED after it is CLOSED; reviewClosureCheck(C) still reports 2.

Blind first round

With commitDeadline one hour and revealDeadline two hours after opening: a plain seed reverts with AC_BlindRoundActive; a second commitment by the same participant reverts with AC_AlreadyCommitted; a reveal before the deadline reverts with AC_CommitWindowClosed; a reveal with a different salt or content reverts with AC_CommitmentMismatch; advanceRound reverts with AC_RevealsPending while a commitment is unrevealed; forfeitCommitment reverts with AC_RevealWindowClosed before the reveal deadline and succeeds after it; after all commitments are revealed or forfeited, advanceRound succeeds and plain seeds are accepted again.

Vectors

  • IAgentCoevolution interface identifier: 0xeab0a16a.
  • Commitment for session 1, participant 0x00000000000000000000000000000000000000A1, content hash keccak256("A0 blind draft"), salt keccak256("saltA"): 0x6143d5bbd499dd6c610c8c9821bb93c8afc10faa021dab6a7ae9cc750dae3e17.
  • Material hash, keccak256 of the JCS serialization, of the derivation note with one part marked new given under materialHashes in the vectors file: 0xa907a32facbbcdc45c54855b8615094e47432be3579881151f9a6c4cabb2f2f0.

Further vectors (selectors, event topics, error selectors, enumeration orders) are in the vectors file under the assets.

Reference Implementation

The reference registry, its interface, the test suite, the vectors and the schema are provided under the assets directory of this proposal:

  • contracts/IAgentCoevolution.sol: the interface, role bits and statement codes.
  • contracts/AgentCoevolutionRegistry.sol: the registry. It implements ERC-165 and serves every function of the interface from one of four modules (contracts/modules/: sessions, candidates, statements, views) by delegatecall, so the registry keeps a single address and a single state while every deployable unit stays under per-transaction gas limits on networks that price state creation highly. Module addresses are immutable.
  • contracts/CoevolutionStorage.sol: the storage layout and internal logic shared by the modules, with block timestamps as the time base and a node bound of 128 for lineage traversal.
  • contracts/ICoevolutionErrors.sol: the custom errors of the reference implementation.
  • vectors/vectors.json: interface identifiers, selectors, topics, error selectors, enumeration orders, commitment vectors and a material hash.
  • schemas/coevolution-material.schema.json: envelopes for off-chain candidate, derivation, feedback, selection and outcome material.

The registry holds no funds and has no owner or upgrade path. It compiles with Solidity 0.8.28, via-IR; the largest deployable unit has under 6 KB of runtime bytecode.

Security Considerations

Commitments show order, not isolation. The blind first round profile proves that a seed was fixed before the commit deadline and before any seed of the session was revealed. It cannot show that participants did not exchange drafts off-chain. Sessions that need stronger independence combine the profile with separate hosting, separate operators or attested execution environments, and say so in the charter.

Hashes are not availability. Every record points to off-chain material by hash. A party that controls the material can withhold it; a consumer that cannot obtain a cited document should treat the corresponding claim as unverified rather than as false. Charters should name where material is kept and under which access rules.

Intake digests are assertions. In DIGEST mode the INTAKE role states how many objections were received. A dishonest or careless digest can make an incomplete intake look complete. Consumers that depend on completeness should prefer ONCHAIN intake or require the INTAKE role to be held by a party they trust independently of the authors.

Roles are keys. Loss or compromise of an account holding REVIEW or SELECT lets the holder close objections or select versions under the session's authority. Hosts can revoke roles; consumers can require that a closing review and a selection come from distinct accounts, that selectors are not authors (the default), or that a collective body rather than one key holds SELECT.

Authors and selectors. The default forbids an author from selecting its own candidate. A host that enables authorMaySelect, or that holds every role alone, produces records in which the three facts come from one account; the records still show that, and consumers decide what such a record is worth.

Traversal bounds. Lineage queries walk same-session parents up to a fixed node bound and report UNDETERMINABLE beyond it. Deep or wide lineages are therefore safe for on-chain consumers but may need off-chain evaluation. Implementations should document their bound.

Reference implementation layout. The reference registry dispatches to modules by delegatecall. The module addresses are fixed at deployment and the modules hold no state of their own: a call made directly to a module runs against the module's own empty storage and changes nothing in the registry. Implementations that split code this way should keep the dispatch table immutable or put any change to it under the same scrutiny as a change to the registry.

Timepoints. Deadlines and intake windows are measured in block timestamps. Block producers can shift timestamps by small amounts; sessions should not set windows that a shift of a few seconds would decide.

Provenance declarations are unverified. A declaration of model lineage is a claim by its declarer. Nothing in the registry checks it, and the specification forbids deriving status from it, so a false declaration cannot change any check; it can only mislead a reader who relies on it.

Spam and griefing. Open feedback lets anyone file material objections, which keep a candidate UNSATISFIED until a reviewer answers each one. Sessions whose acceptance depends on closure checks should restrict feedback to roles, use intake windows, or budget reviewer attention accordingly. Statements are append-only and cannot be removed by the host.

No funds, no effects. The registry transfers nothing and executes nothing. Any economic or enforcement consequence of a selection or an outcome belongs to the consuming contract.

Copyright and related rights waived via CC0.

EIP.tools

EIP.tools

Search, read, and map Ethereum improvement proposals, ERCs, RIPs, and CAIPs from one focused interface.

Farcaster
by @apoorveth