Skip to content

Test and qualify LE and QVI revocation withdrawal - #75

Merged
kentbull merged 4 commits into
mainfrom
test/upstream-revocation
Nov 10, 2026
Merged

kentbull merged 4 commits into
mainfrom
test/upstream-revocation

Conversation

@kentbull

Copy link
Copy Markdown
Collaborator

Draft. Depends on the EOA Verifier upstream-revocation stack, which provides revoke-source and present-source and the revoked status for LE and QVI revocation. The head of that stack is GLEIF-IT/eoa-verifier#50 (stacked on #49 and #48). Please merge this after that stack.

What and why

When an LE or QVI credential is revoked, the Verifier now revokes every association chained to it, so the Oracle can receive a burst of ordinary revoked events at once. This PR adds tests for that, a qualification step, and documentation. There is no production-code change, and vlei-comply needs no change.

  • Tests: events from a burst queue in arrival order with selection kept per wallet; only the selected wallets are withdrawn, and the writer resumes after a restart; a revoked association that was never selected completes without a transaction; a withdrawal repeated after the first landed (lost receipt, or an outside withdrawal) has no second effect; and a rejected claim stays rejected after a withdrawal, so nothing unselected is promoted.
  • Qualification: the paired scenario issues fresh associations for both wallets, confirms the mappings and a transfer, revokes the shared LE credential with the Verifier fixture, presents that evidence, and requires both statuses revoked with an LE revocationSource, both endorsements withdraw/completed, both mappings empty and a following transfer that moves no balance. The Verifier pin in scripts/integration/dependencies.json moves to the stack head, 7ea246aa27049075ec615b2dd1d409a7eb6a9c8b. The Comply pin is unchanged.
  • Docs: the README, Oracle API protocol and qualification guide describe the burst behaviour and state that a withdrawn mapping is not replaced automatically.

Verification

  • Paired qualification against the stack head (env qualify with the Verifier source checked out at that commit and the pinned Comply checkout): 1 passed.
  • Full Oracle suite, installed wheel, with the Verifier and Comply checkouts selected explicitly: 92 passed.

Reviewer notes

  • The Verifier event carries no cause for the revocation, so the Oracle sees an LE or QVI revocation as an ordinary revoked status. The cause field is deferred in Include the revocation cause in the revoked webhook event eoa-verifier#47.
  • The writer sends one withdrawal per association, each its own transaction and nonce, so it needs funds for all of them.
  • The pin points at a commit on a branch in a draft stack. If that stack is rebased before merge, the pin needs updating.

A revoked LE or QVI credential revokes every association chained to it, so the Oracle can receive a burst of revoked events at once. These tests cover that burst: events queue in arrival order with selection kept per wallet, only the selected wallets are withdrawn, and the writer resumes after a restart. A revoked association that was never selected completes without a transaction.

They also cover a withdrawal repeated after the first one landed, whether because a receipt was lost or because the registry was withdrawn from outside. The repeat has no second effect. A rejected claim stays rejected after the owner's withdrawal and only a new claim publishes. The tests need no production-code change.
The paired qualification now issues fresh associations for both wallets, confirms both mappings and a transfer, then revokes the shared LE credential with the Verifier fixture and presents that evidence. It requires both statuses `revoked` with an LE `revocationSource`, both endorsements `withdraw` and `completed`, both contract mappings empty, and a following transfer that moves no balance.

The Verifier pin in `scripts/integration/dependencies.json` moves to the revision that provides `revoke-source` and `present-source`. The Comply pin is unchanged.
A revoked LE or QVI credential now arrives as an ordinary `revoked` status, so the guides say that the Verifier reports it that way and that the event carries no cause. They also state that a burst of such events queues serial withdrawals in arrival order, each its own transaction and nonce, so the writer needs funds for all of them.

Two behaviours are written down: a revoked association that was not selected completes with no transaction, and a withdrawn mapping is not replaced automatically, so a claim has to be presented again as a new association. The qualification guide lists the new LE revocation step.
Main advanced the Verifier pin after this branch started. The pin here is a descendant of that commit and carries the fixture commands this branch's qualification needs, so it is kept.
@kentbull
kentbull marked this pull request as ready for review November 10, 2026 00:51
@kentbull
kentbull merged commit fbadc64 into main Nov 10, 2026
1 check passed
@kentbull
kentbull deleted the test/upstream-revocation branch November 10, 2026 00:58
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.

1 participant