Skip to content

Add holder-consented skill migration and creator rotation - #1

Closed
NubsCarson wants to merge 1 commit into
IQCoreTeam:mainfrom
NubsCarson:codex/account-recovery-local-20261031
Closed

NubsCarson wants to merge 1 commit into
IQCoreTeam:mainfrom
NubsCarson:codex/account-recovery-local-20261031

Conversation

@NubsCarson

@NubsCarson NubsCarson commented Nov 1, 2026 •

Copy link
Copy Markdown

My wallet was drained. Existing IQ functionality let me recover database-root control, 11 transferable skill-mint authority fields, Blockchan/ArNS ownership and my public profile. Seven soulbound skill copies (four purchased and three self-published) and three ItemConfig.creator payout records remain tied to the compromised address. This PR proposes a way to finish that wallet change without buying the copies again.

Design decision requested: should soulbound copies be movable?

This changes strict lifetime wallet binding. A holder and recipient could use the same mechanism for a wallet change or a resale. Both signatures prove control of keys, not the original human's identity; an attacker who has the old key can sign to their own destination and race the owner.

If permanent wallet binding is intentional, please reject/close this proposal or keep it as a design discussion. My drained-wallet recovery is the motivation, not a reason this must be merged. No claim is made that the current soulbound policy is a bug.

Proposed behavior

  • migrate_item: current holder and recipient both sign. Atomically burn one source copy and issue one replacement under the same mint. Require canonical Token-2022 ATAs, a non-transferable zero-decimal mint, different wallets, exactly one source copy, an empty destination, and the recipient's workflow prerequisites. Failed replacement issuance rolls back the burn; failed migration rolls back destination-ATA creation/rent. The companion SDK makes the recipient pay any new ATA rent. No purchase price is charged again and no publisher co-signature or administrator seizure key is added.
  • rotate_creator: current and new creator both sign. Change only ItemConfig.creator, preserving mint identity, price and prerequisites. This is separate from migrating either a purchased or publisher-held copy.
  • Purchases and migration share the existing prerequisite checker; existing purchase payments remain unchanged.

Validation at this PR head

  • Locked offline SBF build passed. The fresh binary hash matches the tested candidate.
  • Offline Surfpool 1.6.1: 29 focused transaction cases, including 14 expected rejections; 18 real publish/purchase/migration/payout lifecycle cases, including four expected rejections.
  • Tests cover signer/account constraints, prerequisite order, unchanged supply, replay rejection, failed-mint rollback, ATA-rent rollback, exact purchase payments and future payouts after creator rotation. Publisher-held copies migrate separately.
  • tests/recovery/README.md documents reproducible runners and fixture boundaries. Focused cases inject ItemConfig fixtures; lifecycle cases inject only fixed-address collection genesis fixtures and create actual Token-2022 mints/configs/balances through program operations. Generated keys and offline loopback RPC only; no personal wallet used.
  • Patch whitespace checked. No hosted PR CI workflow exists here, so these are local integration results, not a hosted CI pass, independent audit or mainnet acceptance.

Before any release

Agree on the policy first; review the account/CPI checks and companion builders; regenerate/version the matching IDL; integrate the recovery tests into the normal CI/release process; then coordinate an authorized program upgrade and SDK release. Ready for review does not mean approved to deploy. The current mainnet deployment rejects both proposed entrypoints with InstructionFallbackNotFound in unsigned simulations. Nothing in this PR has been deployed by us, and the seven copies/three creator records have not moved.

Related PRs

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing.

@zo-sol

zo-sol commented Nov 5, 2026

Copy link
Copy Markdown
Contributor

Closing this together with the SDK companion (AgentNet#251), as the description asked if soulbound is intentional. It is.

Skills are soulbound by design because the IP belongs to the creator: buyers use a copy, they do not resell it. The creator keeps selling fresh copies at their own price, and there is no secondary market or floor undercutting those primary sales. migrate_item introduces a holder-approved wallet-to-wallet move, which is a resale path and breaks that property, so we are not taking it. The drained-wallet recovery motive is understood, but creator/payout recovery would have to be a separate change that does not make copies transferable.

@zo-sol zo-sol closed this Nov 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants