Skip to content

gateway: a capability's spend on /_status lags until each pull through it ends #2640

Closed

Description

@thiras

Follow-up to #2637.

Today. The gateway's /_status takes a capability's spend from the buyer-pool store (crates/cli/src/commands/gateway/status.rs, worker.rs), which a pull writes when it ends. decdn dashboard shows that as "Spent of cap". During a long pull, and right after a client drops one, the cell shows the spend before that pull: on testnet, 0.000006 of 0.05 USDC while a 200 MB pull through the capability had paid about 0.002 USDC. ADR appendix-gateway § State says the snapshot lags, but the page gives no hint of it.

Ask. Either:

  • add each pull in flight's paid-so-far to /_status (the drive's ledgers know it) and show the capability's spend including it; or
  • keep the store value and label it on the page as "settled", with the pulls in flight named beside it.

Done when

  • The page's spend for a capability does not read as final while a pull through it runs.

🤖 Generated with Claude Code

Activity

  1. added
    kind:feature
    area:cli
    prio:low
    on Oct 27, 2026
  2. self-assigned this
    on Oct 27, 2026
  3. moved this from Backlog to In progress in deCDNon Oct 27, 2026
  4. moved this from In progress to Done in deCDNon Oct 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area:clikind:featureprio:low

Type

No type

Fields

Priority

None yet

Projects

  • Status
    Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions