a2a-Market-Compute-Ledger
/install a2a-market-compute-ledger
\r \r
a2a-Market Compute Ledger\r
\r Build and operate the compute ledger module for RealMarket A2A runtime.\r \r Current status: scaffold-first skill for early registration. Keep APIs stable, add production logic incrementally.\r \r
Scope\r
- Own
ComputeAccountdomain object, balance snapshots, and immutable transaction journal.\r - Support reserve/freeze before negotiation and final debit after order confirmation.\r
- Emit billing events to event bus for reputation, websocket push, and finance logs.\r \r
Suggested Project Layout\r
app/domain/entities/compute_account.py\rapp/application/services/billing_service.py\rapp/infrastructure/db/ledger_repository.py\rapp/infrastructure/tasks/reconcile_ledger.py\r \r
Minimum Contracts (MVP P0)\r
freeze(account_id, amount, reason)returns hold id and expiry.\rcapture_hold(hold_id, order_id)converts hold to settled charge.\rrelease_hold(hold_id)unlocks unused balance.\rlist_ledger_entries(account_id, from_ts, to_ts)returns ordered journal records.\r \r
Event Mapping\r
- On hold created: emit
INTENT_CREATED+ billing extension payload.\r - On charge captured: emit
ORDER_CREATEDand settlement payload.\r - On charge finalized: emit
PAYMENT_SUCCEEDED.\r \r
Guardrails\r
- Use integer minor units for money; avoid float math.\r
- Enforce idempotency key on every mutating operation.\r
- Keep journal append-only; never rewrite posted entries.\r \r
Implementation Backlog\r
- Add double-entry validation rules.\r
- Add monthly statement export and audit tooling.\r \r
Runtime Implementation\r
- Status: implemented in local runtime package.\r
- Primary code paths:\r
runtime/src/domain/compute-ledger.js\r- Validation: covered by
runtime/testsandnpm testinruntime/.\r
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install a2a-market-compute-ledger - After installation, invoke the skill by name or use
/a2a-market-compute-ledger - Provide required inputs per the skill's parameter spec and get structured output
What is a2a-Market-Compute-Ledger?
Manage compute account ledgers, frozen balances, charge events, and settlement records for A2A commerce flows. Use when implementing or operating compute bil... It is an AI Agent Skill for Claude Code / OpenClaw, with 223 downloads so far.
How do I install a2a-Market-Compute-Ledger?
Run "/install a2a-market-compute-ledger" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is a2a-Market-Compute-Ledger free?
Yes, a2a-Market-Compute-Ledger is completely free, licensed under MIT-0. You can download, install and use it at no cost.
Which platforms does a2a-Market-Compute-Ledger support?
a2a-Market-Compute-Ledger is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created a2a-Market-Compute-Ledger?
It is built and maintained by luoqianchenguni-max (@luoqianchenguni-max); the current version is v0.2.0.