Skip to content

[R-002] Independent second implementation of the core registry #21

Open
ERC8312/bounded-agent-actions
#3

Description

@everest-an

Request

We are seeking an independent team or developer to implement the ERC-8350 core registry from the published spec alone, in any language (Solidity, Rust, Python, Go, ...), and pass the published conformance vectors.

Status update, 2026-11-08: PR #41 is merged into main, and the independently authored wallet suite has been reproduced successfully on the merged main commit. The scoped Python evidence retains its historical pins; full-scope second-Registry/account acceptance remains open.

@haot3x delivered selected Safe/ERC-1271/7702 execution evidence, pinned to haot3x/agent-economy-contributions@b4ba24169e63ede14eb2f11f8115ff058845aa55, against official reference source 8b11215cf267f710b49ea003384e678bcf953eae. The maintainer reproduction record passed 34 scenarios plus 1 negative control, with 188 mined receipts (131 success, 57 expected reverts; no persisted logs on reverts), local Anvil blocks 4–196. Coverage and limitations and native reports/logs are published in PR #41, with a passing read-only Linux CI reproduction. After external approval, PR #41 merged as 7e9932e0057b7ce51c675773d8162cf1cc37be39 on 2026-11-08. A fresh manual main reproduction passed 35/35 outcomes and 16/16 gate tests with zero skips, reproducing 188 receipts (131 success, 57 expected reverts) over local Anvil blocks 4-196. The downloaded acceptance record identifies this exact clean main checkout; all 16 artifact hashes were verified. Main clean-checkout conformance also passed, with all 13 v1 fields matching in core TS, minimal TS and Solidity. Real-account, exact-source and CodeQL workflows on the same merge commit passed. The earlier run remains historical evidence, not relabelled as this new run. The initial wrapper failure is also preserved: serialized ethers receipts omit type, so type-4 verification relies on the unchanged pinned executable's explicit assertion, not a nonexistent JSON property.

This client tests the official Registry; it is not a new independently implemented Registry and does not add wallet support to the Python client below. Contributor provenance remains self-declared; our wrapper is maintainer work. The stale interface comment was corrected by official #2151, merged as 47c7f884; the reproduction retains its earlier exact source pin.

@0x2kNJ published the scoped results from ERC8312/bounded-agent-actions at 95ca613bac0d7ef9192f32264f1f315d869d5ce2. The contributor declares no affiliation with AwareLiquid and no AgentMemoryState code/package import. This is contributor-declared provenance, not a maintainer identity audit, and no continuing maintenance commitment is presumed.

Our clean-checkout reproduction passed spec 21/21, hash 59/59, fixture 58/58, state 34/34, ecdsa 55/55 and reference-error compatibility 28/28. All 41 upstream unit tests ran with zero skips, including the cast cross-check. These results were rerun successfully on final main 5770a9090700cc6df925b7a399e53014eac16667, locally and in the independent-client CI run. Clean pnpm/Foundry conformance, both external replay suites and maintainer real-account tests also passed on that commit; they retain their separate scopes.

Remaining scope: reconcile the delivered Python and separate wallet-client layers against the full acceptance matrix without combining them into a fictitious single implementation. Selected empty/short signatures, malformed/reverting returns, real Safe 1.4.1 approvals, mined 7702 policy/key fallback and rejection atomicity now have external execution evidence. Exhaustive optional direct-empty capabilities, gas/liveness and historical-state coverage, arbitrary wallet versions and an independently implemented account-capable Registry remain outside that bounded result. AQ-01/AQ-02 wording merged in official #2147; the older Python evidence keeps its historical inputs. Current-runtime audit acceptance (#11/#22) remains a separate release objective. Issue #21 stays open.

What to implement

The entry point is docs/implementing.md - it defines what conformance does and does not mean, the surface to implement, and what to do with a mismatch. The testable artifact is ** est-vectors/v2.json**:

  • a 5-transition chain where each delta is only computable from the previous one's nextStateRoot
  • 12 rejection cases checked against held state, including unchanged head/authorization on rejection; reference error names and check order are a separate compatibility layer, not additional normative requirements
  • driven end-to-end by pnpm check:vectors (TypeScript) and contracts/test/unit/VectorsV2.t.sol (Solidity)

Independence requirements:

  • must not be a maintainer of AwareLiquid/ERC-8350
  • must not import this repository's packages (dependency-isolated)
  • should publish the implementation and its conformance run publicly

Feedback questions

  1. Is docs/implementing.md + test-vectors/v2.json sufficient for a stranger to implement the core registry? What document or artifact is missing?
  2. Which language/runtime would you choose, and why?
  3. What does a passing conformance run need to look like for you to trust it (exact commands, pinned toolchain, ...)?

Why this matters

The scoped Python delivery is evidence that an external contributor can implement the delivered layers from the pinned Draft and vectors. It is not yet a full account-capable client, ecosystem adoption, a security audit or production-readiness acceptance. This issue tracks the remaining scope without discounting the delivered evidence or requiring an unstated maintenance commitment.

Activity

  1. added
    help wanted
    on Aug 5, 2026
  2. everest-an commented on Aug 5, 2026

    @everest-an
    ContributorAuthor

    ERC-8350's roadmap has one large open gap: the repository ships two implementations, but both are maintained by the same project, so the standard has never been proven implementable by a stranger working from the spec alone. The entry point is now docs/implementing.md, and the testable artifact is test-vectors/v2.json — a 5-transition chain where each delta is only computable from the previous one's nextStateRoot, plus 12 rejection cases with their errors and check order.

    Feedback questions:

    Is docs/implementing.md + test-vectors/v2.json sufficient for a stranger to implement the core registry? What document or artifact is missing?
    Which language/runtime would you choose, and why?
    What does a passing conformance run need to look like for you to trust it (exact commands, pinned toolchain)?

  3. XiaoHai67890 commented on Nov 1, 2026

    @XiaoHai67890
    Collaborator

    Implementation handoff update (not a completion claim): PR #32 publishes the official-text baseline/difference register; PR #34 adds the narrowly scoped AQ-03 malformed-1271-return fix; PR #35 adds executable real Safe/7702 account evidence and the external-client acceptance package.

    Pinned handoff: https://github.com/AwareLiquid/AgentMemoryState/blob/d6755e07a6f9286e6be9a33a9a64d8faf3aa0ae0/docs/interop/independent-client-handoff.md
    Account scenarios: https://github.com/AwareLiquid/AgentMemoryState/blob/d6755e07a6f9286e6be9a33a9a64d8faf3aa0ae0/docs/interop/account-conformance.md

    @0x2kNJ @babyblueviper1 Would either of you be interested in reviewing the acceptance matrix or proposing a scoped independent-client contribution? A different language is welcome but separate authorship/maintenance is what establishes independence. Please flag AQ-01/AQ-02 wording disagreements first; the project proposal is not yet merged official normative text.

    Suggested first response: language/runtime, supported layer, disputed rules, and a reproducible command. Acceptance separates v1/v2 computations, state-machine rejection/atomicity, wallet authorization and offline fixture verification. No project SDK import; record limitations explicitly. Our own 58 account tests and local mined type-4 transactions are maintainer evidence, not an external second implementation. Portable signature-vector/adapters work remains a follow-up. No compensation or commitment is implied. #21 remains open.

  4. XiaoHai67890 commented on Nov 1, 2026

    @XiaoHai67890
    Collaborator

    Reopened to correct an unintended GitHub auto-close from PR #33. The negated phrase in that PR description was still parsed as a closing keyword; the description has now been corrected. PR #33 restores the pinned external replay evidence only. A full independently maintained second implementation remains outstanding; the acceptance criteria and handoff in this issue are unchanged.

  5. 0x2kNJ commented on Nov 1, 2026

    @0x2kNJ

    Thanks for the ping. We're working on a scoped piece of this: an independent Python client, extending the existing recompute/ in ERC8312/bounded-agent-actions, written from the official Draft at b9651bc and the published vectors, with no project code imported.

    Layers in scope for this pass:

    • hash/encoding: v1 and v2 typehashes, spaceId, transitionId, signing digests, state roots and the three baseline commitments
    • offline fixture: the v2 five-transition chain and the Sepolia fixture, recomputed end to end
    • state machine: all 12 v2 rejection cases executed against held state, with head and authorization snapshots compared before and after, including the two EOA ECDSA authorization cases
  6. 0x2kNJ commented on Nov 1, 2026

    @0x2kNJ

    Results for the scoped client, at ERC8312/bounded-agent-actions@95ca613 (recompute/erc8350_client.py, sha256 33dd89de…):

    spec 21/21 · hash 59/59 · fixture 58/58 · state 34/34 · ecdsa 55/55 · compat (reference error names) 28/28, all PASS

    pip install pycryptodome==3.23.0
    python3 recompute/erc8350_client.py --json result.json
    

    Inputs are fetched and sha256-pinned: Draft b9651bc, vectors at aa9bbe5. CI on the commit: https://github.com/ERC8312/bounded-agent-actions/actions/runs/41310234213. No mismatches against the vectors or the Draft. ERC-1271, Safe and 7702 accounts are not implemented. --emit-signature-vectors writes 46 static ECDSA cases with public test keys, if useful for the portable signature suite.

    Provenance: written and maintained in this repository; no affiliation with AwareLiquid, and no AgentMemoryState code or package is used.

  7. XiaoHai67890 commented on Nov 6, 2026

    @XiaoHai67890
    Collaborator

    @0x2kNJ Thank you for the scoped Python client and the exported 46 ECDSA cases. PRs #36/#37 are now merged, with the client replay and portable TS/Solidity adapters. Your results remain attributed only to hash/encoding, fixture, state and EOA coverage; we have not expanded that claim to ERC-1271, Safe or EIP-7702.

    A focused official clarification/fix is now proposed in ethereum/ERCs#2147 at 397426c046049e1a0c3436e543f9731408708fd3 (still Draft). It clarifies original empty/custom ERC-1271 bytes, nonempty self-calls, strict ABI return words and same-byte ECDSA fallback. Wire/typehash/v1/v2 inputs are unchanged. The official accepted baseline remains b9651bc until an upstream merge; your original pinned evidence remains valid for its stated inputs.

    Project evidence runner and handoff: #38, latest runner 9e8dd09c776ef1d27e8b71ea8283d0dd6610ac14. It tests the exact fetched candidate and the old-source AQ-03 negative control. Existing main has the 58-case real-account harness plus local mined type-4 receipts; those are our maintainer results, not an independent implementation.

    If you have interest and bandwidth, would a bounded follow-up reviewing the acceptance table or independently running a selected ERC-1271/Safe/7702 subset be feasible? Please declare unsupported rows and the exact rule/version used. There is no assumed maintenance commitment or expectation to expand the original best-effort scope. Issue #21 remains open for the remaining independent account coverage.

  8. XiaoHai67890 commented on Nov 6, 2026

    @XiaoHai67890
    Collaborator

    @0x2kNJ The handoff is now pinned to the merged official Draft, not a pending candidate: ethereum/ERCs#2147 merged at 8b11215cf267f710b49ea003384e678bcf953eae. Project #39 is merged at f654fe023909ef93e1478e79dbcee7cbd7b05835, recording baseline 3 while preserving baselines 1/2 and your historical evidence.

    The v1/v2 vectors and core hash/wire/domain definitions are unchanged. node scripts/review-candidate.mjs --official now verifies the exact merged sources; the default mode preserves the earlier candidate and its negative control. All four fresh main CI workflows passed.

    Your existing client results remain credited only to their stated historical pins and implemented layers, not to baseline 3 or independent wallet coverage. The earlier optional request for a bounded acceptance-table/ERC-1271/Safe/7702 follow-up remains open; there is no assumed expansion of your scope or maintenance commitment. Please state unsupported rows and exact inputs in any follow-up.

    The separate peer-review status request is ethereum/ERCs#2148 and the public update is https://ethereum-magicians.org/t/erc-8350-agent-memory-state-registry/29098/36. #21 stays open for the remaining independent coverage. Thank you.

  9. haot3x commented on Nov 7, 2026

    @haot3x

    I ran a separate wallet client against official 8b11215: 34 scenarios + 1 negative control pass, including real Safe 1.4.1 and mined 7702 transactions (code, CI). This is account execution evidence against the reference, not a second registry implementation.

    The relayed-empty-signature case exposed a stale interface comment; proposed the wording fix in ethereum/ERCs#2151.

  10. XiaoHai67890 commented on Nov 7, 2026

    @XiaoHai67890
    Collaborator

    @haot3x Thank you for the bounded contribution. I reviewed and author-approved ethereum/ERCs#2151; it is now merged as 47c7f884eb12e110d915b20f7cf0e8077542158b.

    I reproduced your unchanged client at b4ba24169e63ede14eb2f11f8115ff058845aa55 against the exact official 8b11215 sources. Results: 34 scenarios + 1 negative control PASS, 188 mined receipts (131 success / 57 expected reverts, zero persisted logs on reverted calls), local Anvil receipt blocks 4–196. Node 24.11.0, npm 11.6.1, Foundry 1.7.1, solc 0.8.24, Cancun compilation / Prague execution. Both local darwin/arm64 and fresh Linux/x64 CI passed.

    The first maintainer-wrapper failure is preserved alongside the successful run: ethers receipt JSON omits type. The corrected validator relies on your unchanged executable's explicit type-4 assertion and required named outcome; no external test or expected count was relaxed.

    This adds independent client execution against the reference, not a second Registry or an audit. Earlier Python results retain their own pins. Unsupported rows and full-scope reconciliation remain explicit, and #21 stays open. No additional work or maintenance commitment is presumed. I have updated the issue body accordingly.

  11. XiaoHai67890 commented on Nov 8, 2026

    @XiaoHai67890
    Collaborator

    Merged main verification (2026-11-08)

    Thanks @haot3x for the review and approval. PR #41 is now merged as 7e9932e0057b7ce51c675773d8162cf1cc37be39.

    I manually dispatched Independent wallet evidence on main at that exact clean checkout, then downloaded and checked the native artifacts:

    • Wallet scenarios: 34 + 1 historical decoder negative control = 35 PASS, 0 FAIL.
    • Gate regression tests: 16 PASS, 0 FAIL, 0 skips.
    • Mined receipts: 188 unique transactions, 131 success + 57 expected reverts, with no persisted logs on reverts; local Anvil blocks 4-196.
    • All 16 artifact SHA-256 values match the acceptance record. The manifest pins 11 external files; the merged runner and manifest hashes were also checked against the exact main commit.
    • External client remains pinned to b4ba24169e63ede14eb2f11f8115ff058845aa55; tested official reference remains 8b11215cf267f710b49ea003384e678bcf953eae.
    • acceptance.json SHA-256: 1e48a158e46fb58369083c82dd38af99727b6213aa22b82f79f71c9058890012.

    Same-commit checks also passed: clean-checkout pnpm/Foundry and three vector suites, real accounts, pinned official/historical sources, and CodeQL. Conformance recorded 155 TS and 120 Solidity tests; all 13 v1 fields matched across core TS, minimal TS and Solidity.

    Merged coverage and limitations and previous failed/successful records remain intact. The receipt-type caveat is unchanged: type-4 is asserted by the pinned executable, not a field in serialized receipt JSON.

    Acceptance scope: this completes merge/main reproduction of the selected independent wallet-client evidence. It does not turn the Python client into a wallet implementation, establish a second independent Registry, or satisfy current-runtime audit/G4 acceptance. #21 remains open for its remaining scope; #11/#22 remain separate.

  12. XiaoHai67890 commented on Nov 11, 2026

    @XiaoHai67890
    Collaborator

    Next scoped contribution and acceptance boundary (2026-11-11)

    @0x2kNJ @haot3x Thank you for the delivered, separately scoped implementations and results. They remain valid at their recorded inputs; this request does not presume further work or maintenance from either of you.

    I found that the handoff still directed new implementers to the old baseline-2 proposal. Documentation-only PR #42 corrects that and publishes a pinned handoff and remaining-scope table. The PR is not yet merged. The recorded new-work baseline is spec-baseline-3, official Draft 8b11215cf267f710b49ea003384e678bcf953eae; no old run or baseline manifest is being rewritten.

    Work item Existing evidence Narrow next request
    Python hash/state/EOA client 95ca613, historical Draft/vector pins, six passing layers @0x2kNJ: would you be interested in a contributor-owned baseline-3 assessment and a fresh pinned report? Please identify any changed/unsupported rules; this need not add wallets.
    Separate wallet execution b4ba241, 34 scenarios plus one negative control against the official reference @haot3x: could you confirm or correct the handoff's coverage boundaries, if convenient? No additional wallet implementation is presumed.
    Independent account-capable Registry Not established by combining the two artifacts Open invitation: propose one separately authored implementation and a bounded account profile before writing code. We can agree the exact remaining rows here.

    For a new agreed delivery, record exact source/vector pins, operation and wallet coverage, enabled/disabled direct-empty capability, toolchain/dependencies, command, native outputs/digests and limitations. Validate normative outcomes separately from reference error labels; rejected calls should preserve head/authorization/candidate transition state and retain no Registry logs. Unsupported cases should be reported as unsupported, not passed or failed.

    Could you reply with availability, the scope you would voluntarily take, any missing inputs, and an estimated delivery if practical? A smaller scope or a decline is welcome. No compensation, deadline or maintenance obligation is implied.

    The Python and wallet results remain separate; the latter executes the official Registry rather than implementing a new one. Gas/liveness, historical state and arbitrary wallet versions are not silently added as universal acceptance requirements. #21 stays open. Audit acceptance (#11/#22) and Editor review (ethereum/ERCs#2148) are separate tracks; these project quality goals are not new EIP-1 prerequisites.

  13. XiaoHai67890 commented on Nov 11, 2026

    @XiaoHai67890
    Collaborator

    Reopened after an unintended automatic closure when PR #42 merged. Its description used a negated closing-keyword phrase, which GitHub still interpreted as a closing reference. The PR description and the post-merge acceptance wording have been corrected.

    PR #42 updates the handoff documentation only; it does not complete the independently implemented Registry/account-capable scope. The Python and wallet-client results retain their separately stated coverage and historical source pins. This issue remains open, with the existing acceptance criteria unchanged.

    Merged handoff: https://github.com/AwareLiquid/AgentMemoryState/blob/e31aed2cee5c6eb180d4cee2126a0e93abb6386e/docs/interop/independent-client-handoff.md
    Main acceptance record: #42 (comment)

  14. haot3x commented on Nov 15, 2026

    @haot3x

    The wallet section looks right to me: 34 scenarios plus one negative control against the pinned reference. It doesn't establish a second Registry or general gas/history coverage.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wanted

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions