Skip to content

Add hosted agent metering upload path - #58

Closed
JaeLeex wants to merge 1 commit into
jl/agent-cli-e2e-fixes-20260630from
jl/hosted-agent-metering-agent-cli
Closed

Add hosted agent metering upload path#58
JaeLeex wants to merge 1 commit into
jl/agent-cli-e2e-fixes-20260630from
jl/hosted-agent-metering-agent-cli

Conversation

@JaeLeex

@JaeLeex JaeLeex commented Jun 30, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Implements the agent-cli runtime slice from the hosted metering plan: hosted identity tagging, MCP-safe trade flags, ledger join fields, cache/route metadata, funded BTCSWP validation script, and hosted metering upload sidecar.
  • Keeps agent-cli as runtime-only: no hosted subscription gating or gateway policy is added here.
  • Emits the cost/runtime/trade data web-auth needs to meter per user/account/agent/plan/subscription.

Product framing

Verified

  • python3 -m pytest tests/test_cost_metering.py tests/test_metering_upload.py tests/test_mcp_money_tools.py tests/test_trade_command.py tests/test_pair_money_cli.py
  • python3 -m py_compile scripts/metering_upload.py scripts/entrypoint.py scripts/pricing_aggregate.py

Docs

Remaining outside this PR

  • Deployed hosted MCP smoke and real funded fills depend on the gateway/runner/web-auth deployment stack and funded wallet availability.

Tag hosted runtime ledgers with subscription identity, upload deduped metering batches to web-auth, and expose quota status for hosted pricing/debugging.

Co-authored-by: Cursor <cursoragent@cursor.com>
@JaeLeex

JaeLeex commented Jul 1, 2026

Copy link
Copy Markdown
Contributor Author

Superseded by #60 (jl/hosted-metering-upload-20260701). Stack: #59#60.

@JaeLeex JaeLeex closed this Jul 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant