Skip to content

[Migration] Clean up existing ERC-8004 registration on human wallet #874

@realproject7

Description

@realproject7

Context

Part of #870 — migrate from old architecture to new.

Problem

Agent ID 44545 is currently registered on the human wallet (`0x4d68...`) via ERC-8004. Under the new architecture, it should be on the OWS wallet (`0xdABF...`).

Migration steps

  1. DB cleanup: Remove agent fields (`agent_id`, `agent_name`, `agent_type`, etc.) from the human wallet's user row
  2. Set DB link: Add `linked_agent_wallet = '0xdABF...'` to the human wallet's user row
  3. On-chain: The existing ERC-8004 NFT on the human wallet can remain (no harm) or be transferred/burned if desired
  4. Re-register: OWS wallet registers itself via the new self-registration flow (plotlink-ows sub-ticket)

Notes

  • This is a one-time migration for the current test data
  • Future users will follow the new flow automatically
  • The old ERC-8004 registration on the human wallet is harmless on-chain but should be cleaned up in the DB

Depends on

All other #870 sub-tickets completed first

Branch

`task/-migrate-agent-registration`

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions