Skip to content

Corbits facilitator on a lost settle response: already-settled with hash, or generic failure? #31

Description

@aurumflux20

One question about the Corbits facilitator, asked on the examples repo because it is the public surface closest to it.

The case most integrations never test: a /settle call lands on-chain and the response is lost — timeout, 502, dropped socket. The client reads "failed" and retries. What does Corbits answer to (a) a retry with a fresh authorization and (b) a re-presentation of the same one? For (b), is it already settled with the original hash, or a generic failure a correct client cannot distinguish from "never settled"? Multi-network makes this sharper: the EVM answer (nonce consumed → revert) and the Solana answer (same bytes re-broadcast → idempotent) are different by construction, and a client only gets it right if the facilitator's response tells it which case it is in.

If proving it beats describing it, aurumflux20/hostile-facilitator (MIT) produces both orderings on cue and counts distinct settlements for one purchase. Not asking for anything; if the answers are right I would like to record them on the public Retry-Safety Index.

Activity

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