Skip to content

feat(sdk): reconcile unknown transaction outcomes with a durable submission journal #357

Description

@karagozemin

Difficulty

Hard — production engineering across multiple components; a small cleanup or test-only patch does not complete this issue.

Context

The submitter exposes a hash/status response, and the OZ Channels adapter throws when an accepted request has no hash. A lost acknowledgement must be distinguishable from a rejected transaction before callers construct another operation.

Starting points

Scope

  • Define prepared, submitted, unknown, confirmed and failed states with a pluggable durable journal.
  • Bind operation identity to network, contract, caller, method, arguments and the signed transaction hash.
  • Reconcile direct RPC and relayer acceptance/confirmation before permitting a replacement transaction.
  • Make retry/cancel policy explicit and provide structured recovery information to callers.

Acceptance criteria

  • An accepted request followed by a dropped response enters unknown and is reconciled rather than blindly recreated.
  • Concurrent calls sharing a logical operation key cannot create different independently executable submissions.
  • A key cannot be reused for another payload, contract or network.
  • Journal replay after restart produces the same terminal outcome for both submitter adapters.
  • Timeout, not-found, rejected, expired and confirmed responses have deterministic state transitions.
  • No secret or signed XDR is logged; any persisted signed material has a documented access/retention policy.

Verification

Use deterministic fake RPC/relayer servers, concurrent clients, acknowledgement loss and process restarts. Assert logical effects rather than claiming that network delivery itself can occur exactly once.

Out of scope

Keeper lease ownership, changes to auction clearing, new relayer vendors or live fund transfers.

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