# Roadmap

> What is next for hashspan: what 1.0 froze, candidates such as an ethers adapter and x402 resource servers, and what shipped up to 1.3.

Source: https://hashspan.dev/roadmap

What hashspan will trace next, and what it already does. There are no dates: an item ships with the first release after its pull request is merged.

Roadmap on GitHub: https://github.com/selimaytac/hashspan/blob/main/docs/roadmap.md. Request something: https://github.com/selimaytac/hashspan/discussions/categories/ideas

## Stable: 1.0

1.0.0 is out and every exit criterion was met. What it froze.

- **hashspan 1.0.0** (release): npm install gives 1.0.0. The public API in the API reports is frozen. It removes what was announced: the positional handle methods, blockchain.system (use blockchain.system.name) and the timeout status constant. It also traces sendRawTransaction and sendRawTransactionSync (#33). [migration guide](https://github.com/selimaytac/hashspan/blob/@hashspan/core@1.0.0/docs/migrating-to-1.0.md)
- **What 1.0 freezes** (release): The declarations in each package’s API report and the behaviour the docs promise freeze; the semantic conventions stay development under their change policy. Decided in ADR 0027 (accepted). [ADR 0027](https://github.com/selimaytac/hashspan/blob/main/docs/adr/0027-what-1-0-freezes.md)
- **Exit criteria already met** (release): Every export documented and checked in CI, no open P0 or P1 issue, the names reviewed as a whole, each adapter validated in a real integration, and a first run that needs nothing beyond the docs (#242). [roadmap.md](https://github.com/selimaytac/hashspan/blob/main/docs/roadmap.md#toward-10-a-stable-api)
- **Rules for untrusted input** (core): What telemetry reads from remote parties, the caller and error text is untrusted: own data only, validated and bounded, with closed sets for metric labels (ADR 0025, accepted; the core applies its bounds since 0.10). [ADR 0025](https://github.com/selimaytac/hashspan/blob/main/docs/adr/0025-untrusted-input.md)
- **API decisions, shipped** (core): Core API boundary (ADR 0014) and the send span as the active context (ADR 0015) in 0.4; status from chain data only (ADR 0016) in 0.4 and 0.5. [ADR 0014](https://github.com/selimaytac/hashspan/blob/main/docs/adr/0014-core-api-boundary.md)

## Candidates

Not scheduled: each needs a user or an integration that asks for it.

- **Trace viem deployContract** (viem) [#36 · good first issue](https://github.com/selimaytac/hashspan/issues/36)
- **x402 resource servers and facilitators** (x402): Payments a server receives, as payment spans of the payee (ADR 0023, proposed). [ADR 0023 · #164](https://github.com/selimaytac/hashspan/blob/main/docs/adr/0023-x402-resource-servers.md)
- **ethers v6 adapter** (adapter) [roadmap.md](https://github.com/selimaytac/hashspan/blob/main/docs/roadmap.md)
- **Non-EVM chains** (core) [roadmap.md](https://github.com/selimaytac/hashspan/blob/main/docs/roadmap.md)
- **Blockchain semantic conventions for OpenTelemetry** (semconv): An upstream proposal based on the draft span and attribute names. [Semconv feedback](https://github.com/selimaytac/hashspan/discussions/categories/semconv-feedback)

## Shipped

Released in 0.1 to 1.3. Newest first; every release is in the changelog (https://hashspan.dev/changelog.md).

### 1.3

- **A JSON-RPC fault proxy for tests** (test): The new @hashspan/faults 0.1.0 sits between an EVM client and a local node such as Anvil and makes chosen JSON-RPC methods hang, fail with an HTTP status or a JSON-RPC error, reset or answer wrong, so a client’s own retries run as in production. It works with any JSON-RPC client and does not depend on hashspan (ADR 0032, accepted). [ADR 0032](https://github.com/selimaytac/hashspan/blob/main/docs/adr/0032-json-rpc-fault-proxy.md)
- **RPC gateways in the same trace** (viem): propagateTraceContext(), an opt-in hook for viem’s http() transport, sends each JSON-RPC span’s traceparent, so a gateway such as eRPC records its spans in the agent’s trace. It never sends baggage; needs viem 2.21.25 or later (viem 1.3). [ADR 0030](https://github.com/selimaytac/hashspan/blob/main/docs/adr/0030-trace-context-on-json-rpc-requests.md)
- **User operations sent elsewhere** (viem): watchUserOperation() confirms a user operation that a smart account SDK or a hosted wallet sent and returned only a hash for: from the userOpHash through a bundler, or from the bundle hash and the sender. The confirm span is the user operation’s, not the bundle transaction’s (viem 1.3). [ADR 0031](https://github.com/selimaytac/hashspan/blob/main/docs/adr/0031-watch-user-operation.md)
- **JSON-RPC span without a method name** (viem): A request whose method is not a method name gets a span named jsonrpc instead of _OTHER. rpc.method stays _OTHER, so a query on rpc.method matches before and after (viem 1.3). [#477](https://github.com/selimaytac/hashspan/pull/477)
- **Example: an agent that pays an x402 API** (example): examples/x402-agent: an AI SDK agent sends a tip and buys a report from a paid API, both in its trace. It runs offline on Anvil, with no API key. [example](https://github.com/selimaytac/hashspan/tree/main/examples/x402-agent)

### 1.2

- **MPP payments** (payments): The new @hashspan/mpp 0.1.0 records each Tempo charge paid through an mppx client, push or pull, as a payment span; with a reader, a linked confirm span and blockchain.payment.verified. Needs @hashspan/core 1.2 (ADR 0029, accepted). [ADR 0029](https://github.com/selimaytac/hashspan/blob/main/docs/adr/0029-mpp-payments.md)
- **A replacement viem missed** (viem): A transaction replaced before viem’s wait read it ends as replaced, with the replacing hash, instead of timeout; checkReplacement: false turns the search off (viem 1.1.1). [#446](https://github.com/selimaytac/hashspan/pull/446)
- **Tempo fee tokens on any receipt** (viem): A Tempo fee paid by an EIP-1559 transaction records the receipt’s feeToken as blockchain.tx.fee_asset, not the native currency (viem 1.1.1). [#442](https://github.com/selimaytac/hashspan/pull/442)
- **Smart account SDK sends** (viem): A smart account SDK’s sendTransaction, writeContract and sendCalls on a finished client are no longer recorded as the bundle transaction; apply withHashspan() before the SDK’s actions for user operation spans (viem 1.1.1). [#443](https://github.com/selimaytac/hashspan/pull/443)
- **x402 batch-settlement** (x402): A batch-settlement payment records the request’s charge as its settled amount, not the channel deposit, and no transaction (x402 1.1.1). [#440](https://github.com/selimaytac/hashspan/pull/440)

### 1.1

- **The asset a fee was paid in** (core): On chains that charge gas in a token (Celo, Tempo), the confirm span records blockchain.tx.fee_asset and the fee sample carries blockchain.fee.denomination token. Fee values are not converted (1.1). [ADR 0028](https://github.com/selimaytac/hashspan/blob/main/docs/adr/0028-fee-asset.md)
- **OP Stack operator fee** (core): Chains with the Isthmus operator fee record it as blockchain.tx.operator_fee on the confirm span, apart from blockchain.tx.fee (1.1). [#416](https://github.com/selimaytac/hashspan/pull/416)
- **Sponsored fees and Tempo receipts** (viem): A fee paid by another account is marked blockchain.fee.payer sponsor. A pending Tempo receipt ends the confirm span without an outcome, and followMultisigOperations optionally waits for the relayed transaction (1.1). [#421](https://github.com/selimaytac/hashspan/pull/421)
- **The confirmations a wait asked for** (core): The confirm span records blockchain.tx.wait.confirmations, from the wait that ended it (1.1). [#426](https://github.com/selimaytac/hashspan/pull/426)
- **The error a send failed with** (viem): A failed send records the error viem classified it as, such as NonceTooLowError or InsufficientFundsError, as error.type, not the wrapper class. Queries on the wrapper need the new values (1.1). [#411](https://github.com/selimaytac/hashspan/pull/411)

### 1.0

- **Raw transactions** (viem): A transaction signed elsewhere (a KMS or HSM signer, a relayer) and broadcast through viem gets a send span from sendRawTransaction and sendRawTransactionSync; the span has no sender, since only the signature gives it (1.0). [#33](https://github.com/selimaytac/hashspan/issues/33)

### 0.12

- **sendTransactionSync and writeContractSync** (viem): viem 2.38 and later: the calls that send and return the receipt in one go record a send span and a confirm span with the receipt’s status, fees and revert reason (0.12). [#377](https://github.com/selimaytac/hashspan/pull/377)
- **A reorg shows on the confirm span** (viem): A wait for more than one confirmation reads the receipt again after the last one. If a reorganisation moved the transaction the span records the new receipt; if it removed it, the span ends with error.type not_on_chain (0.12). [ADR 0026](https://github.com/selimaytac/hashspan/blob/main/docs/adr/0026-receipt-after-several-confirmations.md)
- **Metrics once the SDK is up** (core): A tracker whose first transaction is sent before an SDK registers a meter provider records metrics once one is registered (0.12). [#384](https://github.com/selimaytac/hashspan/pull/384)

### 0.11

- **Who paid the fee** (core): Fee samples whose fee the traced sender did not pay carry blockchain.fee.payer: facilitator for a payment’s settlement transaction, paymaster for a user operation. Filter on it to chart what an agent spent (0.11). [#351](https://github.com/selimaytac/hashspan/pull/351)
- **blockchain.system.name** (semconv): blockchain.system is renamed to blockchain.system.name, as OpenTelemetry names the system attribute of db.* and rpc.*. Both are recorded with the same value until 1.0; metric series gain a label, so rate() across the upgrade undercounts once (0.11). [#365](https://github.com/selimaytac/hashspan/pull/365)
- **Unusual errors and input** (core): A failed call whose error cannot be read is still recorded as a failure, URLs after other text are cut to their origin in sanitized messages, and agent identity from Baggage is recorded only within a bounded character set (0.11). [#359](https://github.com/selimaytac/hashspan/pull/359)
- **Every export documented** (docs): The type declarations of all four packages carry a doc comment on every export and every member, and CI fails on a stale API report (0.11). [#362](https://github.com/selimaytac/hashspan/pull/362)

### 0.10

- **Retries after a failed receipt request** (viem): Background confirmation and watch() poll again after an HTTP 429, a JSON-RPC error, a timeout or a reset, until timeoutMs; before, one failed request ended the confirm span. The CDP and x402 readers go through watch() too (0.10). [#322](https://github.com/selimaytac/hashspan/pull/322)
- **Every span ends** (core): A send, confirm or payment span whose receipt, result or rejection cannot be read ends with error.type _OTHER instead of staying open, and a receipt status other than success or reverted is no longer recorded as success (0.10). [#308](https://github.com/selimaytac/hashspan/pull/308)
- **Bounded input** (core): The tracker validates and bounds every value it records, also the ones a caller or an adapter passes in: chain ids, hashes, addresses, error names, revert reasons (ADR 0025, 0.10). [#338](https://github.com/selimaytac/hashspan/pull/338)

### 0.9

- **EIP-5792 call batches** (viem): sendCalls, waitForCallsStatus and sendCallsSync as send and confirm spans keyed by the batch id, with the batch status (0.9). [ADR 0022](https://github.com/selimaytac/hashspan/blob/main/docs/adr/0022-call-batches.md)
- **EIP-7702 authorizations** (viem): The send span of a type 4 transaction records how many authorizations it carries, and each delegated address and chain id; never signatures or nonces (0.9). [#165](https://github.com/selimaytac/hashspan/issues/165)
- **Addresses in one form** (core): Lower case on every span, so queries match one value. Queries and dashboards that match checksummed addresses need the lower-case form (0.9). [ADR 0004](https://github.com/selimaytac/hashspan/blob/main/docs/adr/0004-privacy-defaults.md)
- **Grafana dashboard in the local lab** (example): make lab-metrics adds Prometheus and Grafana with a dashboard for the send, confirmation and fee histograms (0.9). [backends](https://hashspan.dev/docs/backends#grafana-dashboard-for-the-metrics)
- **Privacy fixes** (core): A hex value cut by a length bound is dropped whole, URLs in sanitized error messages are cut to their origin, watch() checks the chain of a client without one, and CDP leaves the keys of wrapped objects alone (0.9, cdp 0.9.1). [release notes](https://github.com/selimaytac/hashspan/releases)
- **Tested further** (test): Every documented integration runs against Anvil in CI, user operations go through a real bundler, fee and receipt matching is mutation-tested, and the packages are checked on every supported Node.js (0.9). [0.9 milestone](https://github.com/selimaytac/hashspan/milestone/1)

### 0.8

- **Smart account user operations** (core): ERC-4337 user operations as send and confirm spans, for viem bundler clients and CDP smart accounts (0.8). [ADR 0021](https://github.com/selimaytac/hashspan/blob/main/docs/adr/0021-user-operations.md)
- **Permit2 payments verified by their nonce** (x402): The settlement transaction must pass the payer’s Permit2 nonce, so an earlier payment’s transaction is never taken for this one (0.8). [ADR 0017](https://github.com/selimaytac/hashspan/blob/main/docs/adr/0017-x402-payment-verification.md)
- **Revert reasons after a same-block deploy** (viem): A transaction that calls a contract created earlier in the same block is replayed on its own block (viem 0.8.2). [ADR 0005](https://github.com/selimaytac/hashspan/blob/main/docs/adr/0005-revert-reason-replay.md)
- **Fees from the sealed receipt** (viem): On flashblocks RPCs such as Base's, a confirm span waits for the sealed receipt before it records fees (viem 0.8, CDP 0.8.1). [ADR 0024](https://github.com/selimaytac/hashspan/blob/main/docs/adr/0024-sealed-receipt-fees.md)

### 0.7

- **JSON-RPC spans from a viem transport** (viem): traceTransport() records each provider request as a client span named after its method (0.7). [ADR 0019](https://github.com/selimaytac/hashspan/blob/main/docs/adr/0019-json-rpc-spans.md)
- **A limit on background confirmations** (viem): At most 256 background confirmations poll at once by default (0.7). [ADR 0018](https://github.com/selimaytac/hashspan/blob/main/docs/adr/0018-background-confirmation-limit.md)
- **Metrics** (core): Send and confirmation duration and fee histograms, with chain and outcome attributes only (0.7). [ADR 0020](https://github.com/selimaytac/hashspan/blob/main/docs/adr/0020-metrics.md)

### 0.6

- **Verify x402 settlements** (x402): blockchain.payment.verified records whether the settlement transaction carries your payment: for exact payments authorized with EIP-3009 (0.6), and with Permit2, exact and upto (0.7). [ADR 0017](https://github.com/selimaytac/hashspan/blob/main/docs/adr/0017-x402-payment-verification.md)
- **Example on Base Sepolia** (example): make demo-base-sepolia runs the example agent on a public testnet. [example](https://github.com/selimaytac/hashspan/tree/main/examples/ai-sdk-agent#run-it-on-base-sepolia)

### 0.5

- **Settled amount for x402** (x402): blockchain.payment.settled_amount records what was actually charged, next to the amount the payer authorized. [release notes](https://github.com/selimaytac/hashspan/releases)

### 0.4

- **x402 payments** (x402): A payment span per paid request; with a reader, the settling transaction gets a confirm span linked to it. [ADR 0013](https://github.com/selimaytac/hashspan/blob/main/docs/adr/0013-x402-payments.md)

### 0.3

- **Background confirmation and watch()** (viem): Confirms transactions without an explicit wait, including ones sent by a wallet API. [roadmap.md](https://github.com/selimaytac/hashspan/blob/main/docs/roadmap.md)
- **Coinbase CDP server accounts** (cdp) [ADR 0012](https://github.com/selimaytac/hashspan/blob/main/docs/adr/0012-cdp-adapter.md)

### 0.1 and 0.2

- **send and confirm spans** (core): Linked by transaction hash, with agent identity from Baggage and privacy modes. [ADR 0002](https://github.com/selimaytac/hashspan/blob/main/docs/adr/0002-send-confirm-spans.md)
- **viem adapter** (viem): Hooks for sendTransaction, writeContract and waitForTransactionReceipt. [package](https://github.com/selimaytac/hashspan/tree/main/packages/viem)
- **One confirm span per transaction** (core) [ADR 0007](https://github.com/selimaytac/hashspan/blob/main/docs/adr/0007-confirmation-ownership.md)
- **Replaced transactions** (core): Receipts are attributed to the transaction that was mined. [ADR 0008](https://github.com/selimaytac/hashspan/blob/main/docs/adr/0008-replaced-transactions.md)
- **Revert reason decoding** (viem): Mined reverts are replayed and decoded. [ADR 0005](https://github.com/selimaytac/hashspan/blob/main/docs/adr/0005-revert-reason-replay.md)
- **Privacy controls** (core): Error messages and call arguments are opt-in; addresses can be hashed or dropped. [ADR 0006](https://github.com/selimaytac/hashspan/blob/main/docs/adr/0006-error-privacy.md)
- **Telemetry off the call path** (core): Chain id resolution never delays a send. [ADR 0009](https://github.com/selimaytac/hashspan/blob/main/docs/adr/0009-telemetry-off-the-call-path.md)
- **flush() before shutdown** (core) [ADR 0010](https://github.com/selimaytac/hashspan/blob/main/docs/adr/0010-flush-before-shutdown.md)
- **Example agent and make demo** (example): An AI SDK agent on a local chain, no API key needed. [example](https://github.com/selimaytac/hashspan/tree/main/examples/ai-sdk-agent)
- **npm releases with provenance** (release) [releases](https://github.com/selimaytac/hashspan/releases)
