Implement rent-pending ATA materialization#1381
Conversation
This comment was marked as outdated.
This comment was marked as outdated.
- Fetch real commit nonces for rent-pending eATAs, defaulting missing delegation metadata to nonce 0 only for allowed pubkeys, so repeat commits use the on-chain nonce instead of a hardcoded 1 - Default rent reimbursement to the materialization validator for rent-pending eATAs so commit-and-undelegate no longer aborts on the not-yet-created delegation-metadata PDA - Initialize Token-2022 rent-pending ATAs via unpack_uninitialized with required account extensions and account-type byte - Add legacy bincode fallback for MagicContext so pending intents persisted by the previous binary still deserialize
- Derive rent-pending materializations from committed eATA rows on committor recovery: prepend init/delegate only when the base delegation-metadata PDA is actually missing, and default undelegate rent reimbursement to the validator for derived entries, making the flow restart-recoverable without persisting metadata - Reject default wallet owner/mint in rent-pending detection and creation: default pubkeys are reserved as the MagicContext legacy-decode sentinel and must never be written as materializations - Reuse the pre-construction fee-vault decision in process_schedule_intent_bundle so undelegating the payer mid-bundle cannot skip the fee charge - Add regression tests: rent-pending commit without fee vault is rejected, detection negative gates, default owner/mint rejection - Clarify missing-metadata nonce semantics in the fetcher docs
93118f2 to
ec351fb
Compare
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 2a80d96fa2
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 9ab55195d7
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 813ebc4074
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: c217614ded
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 887ce08aa5
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
Summary
Summary by CodeRabbit
New Features
Bug Fixes
Documentation
Tests