Rivellum

Rivellum Portal

Download Wallet (Chrome)
Checking...
testnet

Debugging And Replay Reference

Deterministic debugging surface for Mist and intent execution.

Canonical Debug Artifacts

ArtifactRetrievalUse
ReceiptGET /v1/mist/receipts/:idexecution outcome + fee
PVI graphGET /v1/mist/pvi/:idvalue-flow and invariant path
Replay inputGET /v1/mist/replay_inputs/:iddeterministic re-execution payload
Event streamGET /v1/events/query, /events/streamtemporal context

Fast Triage Flow

# 1) receipt
mistc receipt RECEIPT_ID --rpc https://rpc.rivellum.network

# 2) replay input
curl https://rpc.rivellum.network/v1/mist/replay_inputs/RECEIPT_ID

# 3) deterministic replay
mistc replay RECEIPT_ID --rpc https://rpc.rivellum.network

Error Buckets

BucketTypical SignalPrimary Action
Admission rejectionsubmit returns reason codevalidate nonce/fee/policy envelope
Contract rejectionreceipt status reject + reasoninspect args + guard conditions
Invariant violationPVI/UVL failure markerinspect value edges and conservation paths
Data race expectation mismatchdeterministic mismatch absentfix app/indexer assumptions, not chain state

Event-Correlated Debug

curl "https://rpc.rivellum.network/v1/events/query?from_batch=1200&to_batch=1220&limit=500"

Use event window around failing receipt batch height to correlate:

  1. causative calls
  2. preceding state mutations
  3. competing intents

Replay Discipline

  1. Always replay with same receipt ID and chain context.
  2. Never mutate replay input payloads for root-cause claims.
  3. Persist receipt+pvi+replay_input triad in incident records.
  4. Diff only contract source and call arguments between failing/passing receipts.

Operator Script Snippets

# fetch receipt list
curl https://rpc.rivellum.network/v1/mist/receipts

# fetch one receipt json
curl https://rpc.rivellum.network/v1/mist/receipts/RECEIPT_ID > receipt.json

# fetch pvi
curl https://rpc.rivellum.network/v1/mist/pvi/RECEIPT_ID > pvi.json

Related References

  • /docs/dev/contract-lifecycle
  • /docs/dev/mist-toolchain
  • /docs/dev/testing-playbook