Skip to content

Add item migration and creator rotation instruction builders - #251

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
Contributor

After my wallet was drained, existing IQ functionality let me recover database-root control, transferable skill-mint authorities, Blockchan/ArNS ownership and my public profile. Seven skill copies and three creator/payout records remain on the old wallet. This is the low-level SDK companion to the proposed contract operations, so an accepted recovery path would not require buying those copies again.

Maintainer policy decision first

This proposal permits holder-approved wallet changes and resale, rather than strict lifetime wallet binding. Current-holder and recipient signatures prove key control, not a particular person's identity; an attacker with the old key can also sign. If strict soulbound behavior is intentional, please reject/close this proposal along with the contract change. The drained-wallet case explains why it was proposed, not why it must be merged.

Changes

Add migrateItemIx and rotateCreatorIx beside the existing publish/buy builders. Reuse current ItemConfig/mint-authority PDAs and Token-2022 ATA derivations.

  • Holder migration requires the current holder and recipient signatures, recipient-funded destination ATA rent, and recipient prerequisite accounts.
  • Creator/payout rotation requires current and new creator signatures and is separate from moving a copy.

These are instruction builders only: no automatic migration, default behavior change, private-key export or finished migration UI. They must not be offered against a deployment lacking the matching instructions.

Validation at this PR head

  • The actual bundled builders were exercised against the matching compiled contract in offline Surfpool: 29 focused transaction cases (14 expected rejections) and 18 full publish/purchase/migration/payout lifecycle cases (four expected rejections).
  • Checks cover account order, signer requirements, prerequisite sequencing, rollback, unchanged supply, no second purchase-price payment on migration, and correct future payouts after creator rotation.
  • Current source matches the tested bundle apart from generated path comments; patch whitespace is clean. Hosted test-and-build CI is successful.

Release dependency

Review the contract policy/account validation first, then coordinate matching IDL/versioning, the authorized contract upgrade and SDK release. Ready for review is not deployment approval. Unsigned mainnet checks currently reject both proposed entrypoints with InstructionFallbackNotFound; no upgrade or skill migration has been performed by us.

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
Collaborator

Closing this. Soulbound (lifetime wallet binding, no resale) is intentional and we are keeping it.

The design point is IP ownership, not just floor price: a skill's value belongs to its creator, who sells fresh copies at their own price for as long as they want. A copy holder is a user of that IP, not a reseller of it. Letting a buyer move or resell a copy would let a non-creator monetize someone else's skill and would create a secondary floor that undercuts the creator's primary sales. migrate_item opens exactly that wallet-to-wallet resale path, so per the condition you stated in the description this is a reject.

Closing the matching contract proposal (agentnet-nft-contract#1) for the same reason. The drained-wallet recovery motive is understood; creator/payout recovery, if it is ever wanted, would be a separate proposal that does not make copies transferable.

@zo-sol zo-sol closed this Nov 5, 2026
@NubsCarson
NubsCarson deleted the codex/account-recovery-local-20261031 branch December 2, 2026 23:29
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