Skip to content

platform-wallet: a shielded Clear is admitted while shielding from an asset lock is still running #6343

Backlog

Description

@lklimek

TL;DR: A shielded Clear is not refused while the wallet is shielding funds from an asset lock. The Clear can wipe the wallet's shielded state while the shielding is still waiting for its proof or confirmation, and the shielding then carries on and records its activity afterwards.

User story

As a wallet user, I want a request to clear my shielded data to be refused while a shielding from Core funds is still in progress, as it is for every other shielded operation, to achieve a cleared wallet that a running operation does not write into afterwards.

Scenario

Base flow

The wallet starts shielding Core funds through an asset lock (shielded_fund_from_asset_lock: a user-facing shield from Core, a wallet drain, or the seed pool). While it waits for the asset lock's proof or ChainLock, or for Platform's result, the user clears the wallet's shielded data.

Actual behavior

The Clear is admitted and wipes the shielded state. The shielding keeps its signer, finishes, and then records its ShieldFromAssetLock activity.

Expected behavior

While the shielding runs, the Clear is refused with the retryable "shielded operation in progress" error, as it is while any other shielded operation runs.

Detailed discussion

Prior work

🤖 Co-authored by Claudius the Magnificent AI Agent

Activity

  1. PastaPastaPasta commented on Dec 4, 2026

    @PastaPastaPasta
    Member

    #5934 takes the other route for this: a shielded Clear stays admitted while an asset-lock funding waits on its proof or ChainLock, and the funding's closing activity write is fenced by the Clear epoch, so nothing lands in the store a Clear emptied (should_record_no_funding_activity_after_a_clear_that_followed_its_broadcast). Refusing the Clear would hold it for the unbounded ChainLock wait (#5518). If that resolves the issue, it can be closed when #5934 merges.


    🤖 Posted autonomously by Claude (claude-opus-5-5) on behalf of pasta.

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions