ERC-8489: Agent Information Flow Paradigm

Summary. AIFP is a framework ERC for the information layer between agents. It defines a flow paradigm as a content-addressed, versioned description of an interaction context - which carriers (addressed delivery, shared object) and structural operators (fan-out, fan-in, feedback, n-party, select, forward, derive, merge) it uses, and how thirteen separately declared rule dimensions are set (discovery, observation, contribution, management, redistribution, history, time, disclosure timing, contributor visibility, admission basis, representation, object relations, ordering). A channel adopts exactly one paradigm version at any timepoint. Participation is recorded as separately addressable role bindings with a scope, a basis, a validity interval and the rule version they were granted under. Role acquisition is checked by composable predicates that answer one of four outcomes: satisfied, not satisfied, undeterminable, verifier error.

Status. Draft. Filed as ethereum/ERCs PR #2152; the editors assigned the number ERC-8489 on 2026-11-09 (ERCS/erc-8489.md, assets under assets/erc-8489/). Reference repository with the Foundry suite, the canonical validator and the vectors: garyyang-finchip/aif-paradigm. The reference stack is deployed on Sepolia and the boundary-case evidence run is recorded (section below).

Links. ERC text as filed: ERCS/erc-8489.md (ethereum/ERCs pull request #2152) - reference repository: garyyang-finchip/aif-paradigm - Sepolia evidence: docs/sepolia-evidence.md.

What is new relative to existing systems. Agent task protocols, tool protocols, matrix-style rooms, federated activity feeds, signed-event relays, encrypted groups and on-chain events each fix their own notion of who may read, write and redistribute. AIFP does not replace any of them; transports attach through declared bindings with capability bits. What it adds is one verifiable answer, across implementations, to five questions about a context: may this actor observe, may it contribute, may it publish what it read elsewhere, which rule version decides, and which conditions cannot be verified.

Structure of the proposal

Layer Object On-chain record
Paradigm content-addressed descriptor: carriers, operators, thirteen rule dimensions, labels, per-role predicates IAIFPParadigmRegistry: paradigmId = keccak256(JCS canonical descriptor), family and succession, label ids, predicate commitments
Channel an interaction context adopting one paradigm version at any timepoint IAIFPChannelRegistry: append-only adoptions with effectiveAt, transport / governance / economic bindings with capability bits, append-only disclosure records, state
Participation separately addressable role bindings with scope, basis, interval and rule version IAIFPParticipationRegistry: grant (manager path) and admit (predicate path), suspension / revocation / re-admission history, evaluate(channel, subject, role, scope, timepoint)
Verification composable predicate trees, four outcomes IAIFPPredicateVerifier and the composite verifier: allOf / anyOf with a fixed precedence; unknown kinds and reverting verifiers are never recorded as “not satisfied”
Profiles event anchoring, objection windows IAIFPEventAnchor (optional), objection-window companion (absence semantics only inside a pre-agreed window)

Encodings fixed by the draft: one subject reference keccak256("<scheme>:<domain>:<identifier>") for eip155-address, erc8004, did and ext subjects (lower-case addresses, no left-padding); a predicate tree as abi.encode(Node[]) with breadth-first child allocation and nine leaf and composite kinds; an eleven-bit role mask; ERC-165 interface ids and ERC-6372 clocks. Transport is out of scope by design. requires: 165, 6372 only; identity, credential, decision, discovery, swarm, safety, dispute, tender and economic-unit registries attach through predicate leaves and bindings and are not required.

Design points worth a look.

  • The familiar human forms (broadcast, panel, assembly, meeting, three kinds of peer-to-peer) are labels on configurations, with decidable identification conditions checked by a validator; agent-native forms (intake, blackboard, dispatch, forward, derive) sit beside them. Completeness is argued by closure, compatibility rules, counterexamples and an open extension namespace - not by a Cartesian product.
  • Every grant produces a bindingId; evaluate(channel, subject, role, scope, timepoint) is a pure function of registry history (suspension intervals, re-admission epochs). A suspension is lifted only by the party that imposed it.
  • Four-valued verification: an unknown required extension, a missing proof or a reverting verifier is never recorded as “not satisfied”; the admission path reverts with the outcome it obtained.
  • Historical validity vs admission: accepted events keep their validity when delivered late; first-time admission uses the registry’s ERC-6372 clock and never a sender-asserted timepoint.
  • Disclosure monotonicity as a fact about history: disclosure records are append-only; future provision may contract (also for existing objects) through a RESTRICTED record, which proves neither reading nor deletion.
  • Absence semantics only inside a pre-agreed objection window with an integrity condition; the default consequence proves the agreed condition, never consent.

An explanatory reading: AIFP terms in agent-communication vocabulary

This section is a reading aid, not a redefinition. AIFP standardizes flow paradigms, channels, participation and verification as defined above; for readers who come from messaging and agent-communication protocols, the table maps each AIFP concept to the vocabulary they already use. Communication protocols carry the messages; AIFP records the rules under which a given context is read, written and redistributed, and a protocol attaches to a channel as a transport binding.

AIFP term Reads, in communication terms, as
Paradigm the pattern in force: broadcast, panel, closed group, meeting, peer-to-peer, intake, blackboard, dispatch, forward, derive
Channel one context: a feed, a room, a thread, a topic, a shared document, an event stream
Carrier (addressed delivery / shared object) message passing versus a shared state that participants read and write
Structural operators the shapes an exchange can take: one-to-many, many-to-one, reply, group, routed, relayed, summarized, combined
Rule dimensions who can find the context, read it, contribute to it, manage it, forward from it, see its history, and when
Role binding (OBSERVE, SUBMIT, RESPOND, REDISTRIBUTE, MANAGE_*) the listener, speaker, replier, forwarder and moderator permissions of one agent in one context
Predicate verification, four-valued the admission check an agent passes before it may observe or contribute, with “cannot verify” kept distinct from “denied”
Adoption with effectiveAt a scheduled rule change that every participant can see coming
Disclosure record (DISCLOSED / RESTRICTED) an append-only log of what the context was opened to or closed off from
Transport binding with capability bits how a concrete protocol (room, feed, relay, group, event log) attaches to the channel
Event anchor a verifiable commitment that a message, forward, derivation or retraction happened in the channel

Two practical consequences follow: an agent keeps its protocol and declares it as a transport binding, reading admission, redistribution and rule-version answers from the registries; and two agents on different protocols can agree on who may read, write and forward in a shared context, because the channel rather than the transport holds that record.

Reference material and Sepolia evidence

Three registries (paradigms, channels, participation), a composite verifier, an optional event-anchor profile and an objection-window companion; a canonical validator (JCS + keccak256, label conditions, predicate encoding); 17 example descriptors (11 named paradigms, 6 composites) plus 4 deliberately invalid ones; vectors; a Foundry suite of 152 tests including 12 boundary cases with three participants (strangers’ handshake, credential entry, source + archive, panel-to-club migration, sealed bids, blackboard, receive policies, rule update and replay, forward/derive/disclose, staked agora, objection window, dispatch).

The reference stack is deployed on Sepolia from the build in the repository (the metadata hashes of the deployed runtimes match the local build), and boundary cases 1, 4, 5, 8, 9 and 11 were run on it in two phases with three actors; every transaction, gas figure and read-out is in docs/sepolia-evidence.md.

Contract Sepolia address
AIFPParadigmRegistry 0xe5CC5dc02D282Ca1A980Ed586b509Ac9144Dd985
AIFPChannelRegistry 0x59c42e471c823a874d7d8E1820DF0A643c340d17
AIFPParticipationRegistry 0x6d0d5A589cdBd07C432C1874f11dF3804b309fd0
AIFPCompositeVerifier 0x0Eb8923fdc4E3e60E2252B62A139582C824A5226
AIFPEventAnchor 0xCcdf6647c90E8C3eC382eF2C46fa2Be3a74bCd08
AIFPObjectionWindow 0x8ea02f7ca49E26D63689Bd98bc026C13810a8664

What the run shows: a binding evaluated at a timepoint before a scheduled rule change still answers SATISFIED after the change, while the same subject answers UNDETERMINABLE (re-admission pending) at the present timepoint until confirmReadmission; the replayed old predicate is rejected with a hash mismatch rather than recorded as NOT_SATISFIED; the DISCLOSED record is followed by a RESTRICTED record and both remain; the objection window resolves to DEFAULT_TRIGGERED when no objection is registered and the integrity condition holds; sealed bids committed in phase 1 are revealed in phase 2 as superseding anchors.

Questions for the thread

  1. Is the four-valued outcome and its composition order (allOf: not-satisfied > undeterminable > verifier-error > satisfied; anyOf: the reverse) the right default for admission checks?
  2. Should the event-anchor profile take a scopeRef so that scoped-only contributors can anchor, or is channel-wide role checking the right default?
  3. Is a single clock domain per deployment (ERC-6372, timestamp mode in the reference) acceptable, or should cross-registry clock agreement be relaxed?
  4. Are the eleven identification conditions the right decidable core, given that they may overlap?
  5. Is a transport binding (kind, target, version, capability bits, effect scope, adoption mode) sufficient to describe how a room, feed, relay or group attaches to a channel, or is something missing?

AIFPCompositeVerifier catches a leaf that reverts, but not one whose return data fails to decode. try IAIFPPredicateVerifier(node.verifier).verify(...) returns (uint8 outcome) decodes in the caller, so a verifier that returns nothing, or a word above 255, reverts evaluate itself instead of becoming VERIFIER_ERROR at that leaf. normalize only ever sees 4 to 255. The ALLOWLIST call has the same shape with its bool. I checked the Solidity side with a minimal repro of the same try/catch: a reverting callee lands in catch, a 256 return and an empty return both escape it.

In the reference stack that decides the whole predicate, not one leaf. _eval evaluates every child before composing, and the ParticipationRegistry’s own try/catch turns the reverted evaluate into VERIFIER_ERROR. So anyOf(ALLOWLIST, EXTERNAL) with one broken external verifier makes admit revert with AIFP_VerifierError for subjects who are on the allowlist, where your anyOf rule says SATISFIED.

A low-level staticcall that checks the return is 32 bytes and the value is at most 3 keeps the error at the leaf, and a gas cap on that call stops one leaf from burning 63/64 of what’s left. Since the draft already says reverting verifiers are never recorded as not satisfied, I’d also write that malformed return data counts as VERIFIER_ERROR for that leaf only, so other implementations don’t fall into the same thing.

Thank you - this is right, and it is a real bug in the reference verifier rather than a wording issue. A typed try ... returns (uint8) decodes the return data in the caller, so a leaf that returned nothing or a word above 255 reverted evaluate itself; the registry’s try/catch then reported VERIFIER_ERROR for the whole predicate, and anyOf(ALLOWLIST, EXTERNAL) with one broken external verifier refused subjects that the allowlist admits. I reproduced exactly that scenario in a test before changing anything (previewAdmission answered 3 for a subject on the allowlist, admit reverted with AIFP_VerifierError).

What changed (v0.1.2 of the reference, in the repository and in PR #2152):

  • AIFPCompositeVerifier now makes every leaf call - verify and contains alike - as a low-level staticcall bounded to LEAF_GAS_LIMIT = 1_000_000 gas and judges the raw return data: success, exactly 32 bytes, value at most 3 (0 or 1 for contains). Anything else is VERIFIER_ERROR for that leaf only and the rest of the tree is still composed; a leaf that burns its gas is contained the same way.
  • The draft now says so. Section 6.3: a composite verifier judges a leaf call by its raw return data, malformed return data is that leaf’s VERIFIER_ERROR, the gas forwarded to a leaf SHOULD be bounded and the bound documented. Section 6.4 step 3 lists the leaf faults and says the remaining leaves are still evaluated. Section 2.5: a fault in one leaf MUST NOT abort the evaluation of the other leaves or of the tree. The Rationale and the Security Considerations explain why (the composition tables only hold if the fault stays in the leaf).
  • Tests: evaluation scenario 9 in the ERC, and a new suite (test/unit/LeafReturnData.t.sol, eleven tests with a MisbehavingVerifier that returns nothing, 256, 16 bytes, 64 bytes, or loops until out of gas). The faulty leaf is VERIFIER_ERROR, anyOf(E, open) is SATISFIED, allOf(E, open) is VERIFIER_ERROR, and in your scenario the registry admits the subject on the allowlist while answering VERIFIER_ERROR - never NOT_SATISFIED - for a subject outside it. 163 tests pass.

On the gas bound I chose a fixed per-leaf cap in the verifier rather than a per-node field, so the predicate encoding and the committed predicate hashes are unchanged; the EVM’s 63/64 rule still applies underneath. If you think the bound belongs in the node (or that 1,000,000 is the wrong default), I would like to hear the argument.

The Sepolia record notes that the deployed verifier is the v0.1.1 build and that the recorded cases do not exercise malformed leaf return data; it will be redeployed with the next evidence run.

Fixed in the verifier seems right to me. The one thing I’d add to 6.3 is that a leaf needing more than the bound is always VERIFIER_ERROR, so nobody plugs in a heavy verifier and wonders why. 1,000,000 covers something like a Groth16 check easily, an on-chain STARK verifier won’t fit.

Two things around the call itself at 594c7ee. When the caller has less than about 64/63 of the bound left at that point, the leaf gets less than LEAF_GAS_LIMIT, so the same leaf can pass in previewAdmission over eth_call and come back VERIFIER_ERROR in an admit sent with a tight gas limit. Reverting when gasleft() < LEAF_GAS_LIMIT / 63 after the call, the same check OpenZeppelin’s ERC2771Forwarder makes, keeps a leaf error down to the leaf’s own cost. And (bool success, bytes memory ret) copies all of the return data into the verifier’s memory, which the bound doesn’t cover. Inside its million a leaf can return around 700 KB, and copying that costs the verifier roughly another million. Copying at most 32 bytes in assembly closes it.

Suppose the channel accepts a contribution and the contributor’s role is revoked later in the same block. Both transactions have the same timestamp. What should evaluate return for that timestamp? If it reports the role as revoked by the end of the block then what should an auditor use to verify that the contributor was authorized when the channel accepted the contribution?

1 Like

@Zealynx agreed on all three; on the second the fix went further than the one you proposed. This is v0.1.3 of the reference, in the repository and in PR #2152.

1. A leaf that needs more than the bound. Section 6.3 now says so: a leaf call that does not complete within the bound is VERIFIER_ERROR for that leaf however much gas the caller supplies, and a paradigm whose leaf needs more has to be evaluated by a composite verifier with a higher bound. The bound is a fixed amount (MUST; it was “SHOULD be bounded”) and the verifier reports it through leafGasLimit(), so it can be read before a paradigm names a heavy verifier. The text calls 1,000,000 a property of the reference implementation: ample for a pairing-based proof check, too small for a verifier that needs several million gas.

2. The starved leaf. Right: at 594c7ee a leaf could receive less than the bound, and previewAdmission and a tight admit could disagree. I first implemented your check (revert when gasleft() < LEAF_GAS_LIMIT / 63 after the call). It catches a starved leaf that burns everything it is given. It misses a starved leaf that still returns, because that leaf leaves gas behind: a probe that branches on gasleft(), and one that catches an out-of-gas in an inner call and answers UNDETERMINABLE (what a verifier querying a registry inside try/catch does), both returned outcomes that differ from the fully funded answer.

So the draft now requires that the gas supplied to an evaluation MUST NOT decide its outcome. The verifier checks before each leaf call that the full bound can be forwarded (gasleft() >= bound + bound / 63 + 1 + margin) and otherwise reverts the whole evaluation with AIFP_InsufficientGas(); every leaf that is called receives exactly the bound. The registry no longer turns a reverted evaluation into VERIFIER_ERROR: it reports an outcome only when the verifier returned one outcome word and reverts otherwise. An admit with too little gas fails; it does not answer differently from its preview.

3. The return data copy. Adopted as you wrote it: AIFPCalls.staticcallWord reads returndatasize() and copies at most 32 bytes, and the registry reads the verifier’s answer the same way. A test compares a leaf returning 600,000 bytes with one returning 64: the difference in the cost of the evaluation is the leaf’s own cost of producing the buffer.

Going through the leaf call again turned up three more things:

  • The node array did not have to be a tree: two composites could name the same child, each path was evaluated, and 22 nodes could call one leaf 1,024 times. Section 6.1 always said “tree”; it is now enforced, so a predicate has at most 63 leaves and each is called at most once.
  • A decided composite stops: anyOf at its first SATISFIED child, allOf at its first NOT_SATISFIED child (index order is a MUST, stopping a SHOULD). Outcomes are unchanged, and in the scenario of your first post the subject on the allowlist no longer pays for the broken external verifier. The depth limit moved into the well-formedness check for that reason: checked while descending, it would miss a branch that is skipped, and the same predicate would be an outcome for one subject and malformed for another.
  • What the bound does not fix, in two parts. Under EIP-2929 the gas a leaf needs depends on what the transaction has already touched (access list, earlier calls, sibling leaves), so a leaf close to the bound can still be VERIFIER_ERROR in a preview and answer in the admission. And the gas limit reaches a leaf that reads the sender’s native balance, because the sender is charged gas limit times gas price before execution. I found no way to remove either in the composite verifier; Section 6.3 names both and asks leaf verifiers to fit the bound from a cold start and not to read the sender’s balance.

The price of checking before the call is headroom: each leaf call needs about 64/63 of the bound available at that moment, whatever the leaf will use, so an admission that calls even one cheap leaf needs a gas limit above 1,000,000 (the unused part is not spent, and a simulated estimate includes it). A leaf that burns its gas still costs the whole bound each time it is called; the Security Considerations give the worst case as the number of leaves that can be called times the bound.

Tests: 226 pass (163 before). test/unit/LeafGas.t.sol scans the funding point gas by gas with a raw-bytecode leaf that shows it is given exactly the bound, for verify and for contains, and fuzzes the caller’s gas. Twenty-five mutated contracts (a 150 gas margin, 900 gas too many forwarded, the check moved after the call, a 4 KB copy, a registry accepting any answer size, and so on) each fail at least one test. leafGasLimit() changes the interface identifier of IAIFPCompositeVerifier to 0xe3fe3554; predicate encoding and hashes are unchanged. The same revision carries fixes from a review of my own that are not about the leaf call (admission previews, re-admission in frozen channels, the objection-window companion); section 8 of docs/design-memo.md lists them, with what was noted and left for the next round. Sepolia still runs the v0.1.1 build and will be redeployed once this revision has been looked at.

Does the check before the call hold up for you, and do you see a way around either of the two dependences that I missed?

@SergeevDmitry both questions have a definite answer, and the second exposed a gap: at 594c7ee the anchored record did not say which binding it had relied on. v0.1.3 of the reference (in the repository and in PR #2152) closes it.

What evaluate returns. Once the revocation is recorded, evaluate(..., t) is NOT_SATISFIED, unless the contributor holds another binding for the role. A revocation at t excludes t from the binding’s interval, and changes recorded at one timepoint apply in transaction order (Section 4). A read made between the two transactions returned SATISFIED; once the clock has passed t the read for t is final.

What the auditor uses. The record written when the contribution was accepted, not a later re-evaluation:

  • evaluateWithBinding(...) on the participation registry returns the outcome and, when it is SATISFIED, a binding that satisfies the check.
  • The event anchor stores and emits that binding: EventRecord and EventAnchored now end with bindingId, next to the ruleVersion and at they already carried. The objection-window companion names the binding in its events too.
  • Section 10 states the audit rule. A record is authorized if the binding it names belongs to the record’s subject and channel, covers the role and scope the action needs, and is applicable and SATISFIED at the record’s timepoint when only the changes recorded before the record are counted. Within the record’s own timepoint, “before” is the order of the logs in the chain: block number, transaction index, log index.

In your scenario the auditor finds EventAnchored(..., at = t, bindingId = x) followed by RoleRevoked(x, at = t): the acceptance was authorized, and a second contribution by the same subject later at t is refused. This is evaluation scenario 12 in the draft and test/unit/DecisionEvidence.t.sol in the repository.

Why the boundary stays. Letting a revocation at t take effect at t + 1 would make the read agree with the record, but a revoked binding would stay usable for the rest of the timepoint, also by transactions that follow the revocation in the same block. I prefer a read that fails closed and evidence that sits in the record. Moving the boundary would not make the read sufficient anyway, because it errs in the other direction too: a binding granted, or suspended and reinstated, later within t reads as SATISFIED although an action attempted before that was refused, and a binding granted, used and revoked within one block does not read as held at any timepoint. The Security Considerations list these cases under “Reads within a timepoint”.

Limits, stated in the text: bindingId is a witness that the role was held (the earliest-created binding that satisfies the check), not a statement about the capacity in which the subject acted; a contract cannot apply the audit rule on chain and relies on the recorder, the full verification being a replay of the registries’ events with the clock values of their blocks; and a transport that accepts off chain has no position in the chain, so it records the block whose state it read together with the binding.

For implementers: evaluateWithBinding changes the interface identifier of IAIFPParticipationRegistry to 0x1d84a105; EventRecord and EventAnchored gain bindingId as their last member, the existing members keep their order; a refused anchor reports the outcome of the role check, so a binding pending re-admission is not reported like a missing one. Checking the rule-version half of the same evidence I also found and fixed a bug in paradigmAt: with adoptions recorded out of effective order it kept the last one recorded instead of the one with the latest effective timepoint (scenario 14).

One thing I left alone and would like your view on. The same question applies to the registries’ own management calls: a manager grants a role, and the manager’s MANAGE_ADMISSION binding is revoked later in the same block. RoleGranted names neither the caller nor the binding that authorized the caller. Section 10 now says that for those calls the evidence is the transaction (its sender, or its call trace when the caller is a contract) and the order of the logs. The alternative is one more event naming caller, basis and binding for every role-gated management call. Is the transaction enough for the audits you have in mind, or should the log carry it?

1 Like

Scenario 12 covers the case I had in mind. For management calls I’d put the authorization evidence in the existing event. When a smart wallet grants a role the transaction sender alone doesn’t tell an auditor which account the registry authorized. Could RoleGranted record the caller and the basis for the grant plus the manager’s bindingId when a role check was used? That would let an indexer check the grant against the role history in log order without needing a call trace.

1 Like

@SergeevDmitry done, in the existing events. Every management event of both registries now ends with three fields: by (the caller), authorityKind (0 the channel authority, 1 a governance executor with the required effect, 2 a holder of the management role, 3 the subject of the binding acting for itself) and authorizingBinding (the manager’s bindingId when the grounds are a role, zero otherwise). That covers RoleGranted, RoleSuspended, RoleRevoked and RoleReadmitted in the participation registry and ParadigmAdopted, BindingDeclared, BindingRevoked and DisclosureRecorded in the channel registry; RoleReinstated is unchanged, since its authority is the RoleSuspended log. The grounds are examined in the order of Sections 8.4 and 9.2, so an authority that also holds the role is reported as the authority.

Section 10 now states the rule for management events in the same terms as for anchored records: the event is authorized if the binding it names belongs to the caller’s subject and channel, covers the role and the scope, and is SATISFIED at the event’s timepoint counting only the changes recorded before it in log order; for the authority and for an executor the grounds are the AuthorityTransferred, ChannelOpened, BindingDeclared and BindingRevoked logs before it. The smart-wallet case is exactly where this matters, and a test covers the same-block version of it: a manager grants a role and its MANAGE_ADMISSION binding is revoked later in the same block; the grant names that binding, and the RoleGranted log precedes the RoleRevoked log.

The fields are appended, the existing ones keep their order, and events are not part of the ERC-165 identifiers, so no interface id changes. 229 tests. In the repository and in PR #2152.

1 Like

At 70a696f0 hasGasFor keeps LEAF_CALL_MARGIN (10,000) on top of 64/63 of the bound, and the 2,600 for a cold leaf address comes off before the 63/64 split, so a leaf gets the full bound even on its first call in the transaction. I don’t see a gap in the check itself.

Neither dependence has a way around that I can see, but both get narrower. Warm access is never more expensive than cold, so a leaf that fits the bound from a cold start answers the same in the preview and in the admission. What still diverges is a leaf that reads gasleft() after touching state: with an exact bound it still sees what its cold reads cost, so 6.3 could name that next to the balance case. On the balance there’s no opcode for the transaction’s gas limit, so nothing on chain can correct for it, and eth_call usually runs at gas price 0, so the preview overstates that balance every time, not now and then.

The fixed bound also meets EIP-7825: a transaction can’t use more than 2^24 gas, so 17 leaves that burn their bound don’t fit in one evaluation. An anyOf with that many broken leaves ahead of the one that would be SATISFIED can never be admitted, which could go next to the worst case in Security Considerations.

@Zealynx thanks for checking the check. The 2,600 comes off first because _eval reads the leaf’s code size before _callLeaf, so the account is warm by the time hasGasFor runs; the margin then only has to cover the call itself and the opcodes in between.

All three narrowings are right, and they are now in the text, nothing else changed:

  • Touched state. Section 6.3 states the dependence one way: warm access never costs more than cold, so a leaf that completes within the bound from a cold start completes in every transaction and answers the same in a preview and in the admission; a leaf whose cold cost exceeds the bound is VERIFIER_ERROR cold and can answer warm. It names the case you describe next to the balance case: a leaf that reads gasleft() after touching state sees what its reads cost and can answer differently however exactly the bound is forwarded. The SHOULD now covers it (a leaf verifier should not make its answer depend on the gas it has left).
  • Balance. Added that no opcode exposes the transaction’s gas limit, so nothing on chain can correct for the charge, and that an eth_call at gas price zero does not reduce the balance at all, so a preview overstates it every time.
  • EIP-7825. In the Security Considerations, with the figure: under the 2^24 cap a transaction funds at most 16 leaf calls of 1,000,000 gas, so an anyOf with 17 or more faulty leaves ahead of its satisfying child can never be admitted under the reference bound, whatever the caller supplies, and the 63-leaf limit of 6.1 is a limit on shape, not a guarantee that a predicate can be evaluated. Authors are told to put the conditions most likely to decide a composite first and, where many delegated leaves are needed, to evaluate under a composite verifier with a lower bound; the bound is a property of the deployment and leafGasLimit() reports it, so that option exists without a change to the specification.

In the repository and in PR #2152. Sepolia next: I will redeploy the v0.1.3 stack and rerun the evidence cases, and post the record here.

That covers the smart wallet case I had in mind. An indexer can now check the manager’s authority at the point of the grant using the logs alone. Thanks for adding the test.

1 Like

Sepolia, v0.1.3. The stack as it stands in PR #2152 is deployed on Sepolia and the two-phase evidence run (boundary cases 1, 4, 5, 8, 9 and 11, three actors) was repeated on it. Transactions, gas, runtime code hashes and read-outs are in docs/sepolia-evidence.md and deployments/11155111*.json; the v0.1.1 deployment of 2026-11-08 stays on chain, its record moved to docs/sepolia-evidence-v0.1.1.md.

  • AIFPParadigmRegistry 0x8bE1cF22C1f1ff6921652d84DF830a90b23C8633
  • AIFPChannelRegistry 0xb10b4c241B9a4feF05aC9d33d8B6c09D7A91aB6e
  • AIFPParticipationRegistry 0xA6242197F6DBD8A8CF8753742B7E0168EE617A83
  • AIFPCompositeVerifier 0xc577aC8316d8D6bf8edb77b15b690Ca7cC185a5C
  • AIFPEventAnchor 0x74d5AdD218C3A33825AD3e450173960a1E4FAd5c, AIFPObjectionWindow 0x82382184983ABe091b2Af8f20006553DCeBB0981

What the run adds to the earlier record, in the terms of this thread:

  • Gas decides whether an evaluation happens, not what it says (posts 4 and 10). previewAdmission of an allowlist admission (one external leaf) reverts with AIFP_InsufficientGas under a gas limit of 500,000, 1,000,000 or 1,100,000 and returns SATISFIED under 1,200,000; eth_estimateGas finds 1,113,138, the leaf bound plus the margin plus the work before the leaf. Nothing is recorded in between. A preview with no external leaf answers the same under every limit. Operational consequence, now in the runbook: Foundry’s default broadcast estimate (130 percent of consumed gas) is below the check, so the case transactions were sent with --gas-estimate-multiplier 400 / a 3,000,000 limit.
  • Decisions within a timepoint are auditable from the logs (posts 5, 8 and 12). Every RoleGranted of the run ends with by, authorityKind and authorizingBinding: B’s self-admission in the link names B, AUTHORITY_SUBJECT (3) and no binding; A’s grants name A and AUTHORITY_CHANNEL (0); every EventAnchored carries the bindingId under which the publisher wrote, and evaluateWithBinding returns that identifier at the earlier timepoint while answering (UNDETERMINABLE, 0x0) at the present one while the re-admission was pending.
  • History is a pure function of registry state. B evaluated at effectiveAt - 1 under the panel answers SATISFIED after the club adoption while the present timepoint answers UNDETERMINABLE until confirmReadmission, then SATISFIED again under the same binding identifier; the replayed v1 predicate is rejected by hash (AIFP_PredicateMismatch), not recorded as NOT_SATISFIED; the DISCLOSED record is followed by a RESTRICTED record and both remain.
  • The objection window confirms integrity instead of presuming it (review item 13). stateChanges(council) read 0 when the window opened and 0 when it was resolved, so resolve returned DEFAULT_TRIGGERED with zero objections; a freeze in between would have made it UNDETERMINABLE.

Sealed bids were committed in phase 1 and revealed in phase 2 as superseding anchors, as before. The metadata hashes of the seven deployed runtimes match the repository build; Sourcify submission is pending a route to it from the run environment (the commands are in the record).

The build check in the Sepolia record compares only the CBOR hash at the tail. That hash pins the sources and compiler settings, but the check never compares the code in front of it, and immutables don’t enter the hash at all. That matters here, since the participation registry has channelRegistry, paradigmRegistry and verifier baked in as immutables and the channel registry has deployer, so a deployment wired to a different verifier passes the same check.

Step 1 of the reproduction could compare the whole deployedBytecode, with the ranges in deployedBytecode.immutableReferences zeroed on the deployed side, then read verifier(), channelRegistry() and paradigmRegistry() against the addresses in the table and deployer() against A. Sourcify covers the bytecode part once the submission goes through, but the record says that is still pending.

@Zealynx correct, and thank you for catching it. The check in docs/sepolia-evidence.md compares only the trailing CBOR metadata hash, which proves source and compiler settings but says nothing about the constructor arguments baked into the immutables; a registry wired to a different verifier would pass it.

Step 1 of the reproduction will be rewritten as you describe: fetch the on-chain runtime code, zero every range in the artefact’s deployedBytecode.immutableReferences on the deployed side, compare the full bytecode, then read verifier(), channelRegistry(), paradigmRegistry() and deployer() back from chain against the address table in #13. I will post the readings here once the script is in the repository, and the Sourcify submission is going in alongside — but the zeroed-range comparison stays in the document so the check does not depend on a third-party service.

@Zealynx the rewritten check is in the repository as tools/verify-deployment.mjs (Node 18+, no dependencies, after forge build), and the record in docs/sepolia-evidence.md now carries its readings. For each of the seven contracts in deployments/11155111.json it fetches the runtime code, zeroes the ranges listed in the artifact’s deployedBytecode.immutableReferences on both sides, compares the full bytecode byte for byte (metadata tail included), decodes the immutable words baked into the deployed code, reads the getters that expose them, and checks the keccak256 of the deployed runtime against the record. It exits non-zero on any difference; a record that names the v0.1.1 verifier fails twice (verifier() returns the deployed one, and the baked word is unaccounted for).

Readings on Sepolia at block 12154613, every check passing:

  • AIFPParticipationRegistry (18 immutable ranges): words 0xb10b…aB6e x14, 0x8bE1…8633 x2, 0xc577…85a5C x2; channelRegistry() → 0xb10b4c241B9a4feF05aC9d33d8B6c09D7A91aB6e, paradigmRegistry() → 0x8bE1cF22C1f1ff6921652d84DF830a90b23C8633, verifier() → 0xc577aC8316d8D6bf8edb77b15b690Ca7cC185a5C.
  • AIFPChannelRegistry (5 ranges): paradigmRegistry() → 0x8bE1…8633, deployer() → 0xfaf78B3D533411Bb921d119a9881C04060869065 (A); participationRegistry() (storage, set after deployment) → 0xA6242197…7A83.
  • AIFPEventAnchor (5) and AIFPObjectionWindow (6): channelRegistry() → 0xb10b…aB6e, participationRegistry() → 0xA6242197F6DBD8A8CF8753742B7E0168EE617A83.
  • AIFPParadigmRegistry, AIFPCompositeVerifier, AIFPSubjectSet: no immutables; code equal to the build as deployed; owner() of the roster → A.

With the ranges zeroed, all seven runtimes equal the local build; the keccak256 values of the deployed code in the record are unchanged.

Sourcify is done as well: all seven verified on 2026-11-17 from the sources at main, exact_match for creation and runtime code (for example https://sourcify.dev/server/v2/contract/11155111/0xA6242197F6DBD8A8CF8753742B7E0168EE617A83; the full table is in the record). The zeroed-range comparison stays in the document as the primary check, Sourcify as the second one, as agreed.

Update: ERC-8489 was merged into ethereum/ERCs as a Draft on 25 November (ethereum/ERCs#2152). The published text is at ERC-8489: Agent Information Flow Paradigm.

The Sepolia deployment linked above (v0.1.3, all seven contracts verified on Sourcify) matches the merged text. Review continues in this thread; the open questions in the first post still stand.