@coreguard/agent-commerce 0.1.3 → 0.1.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -1,5 +1,7 @@
1
1
  # @coreguard/agent-commerce
2
2
 
3
+ [![Coreguard Agent Commerce MCP server](https://mcprush.com/badge/coreguard-agent-commerce-mcp/card.svg)](https://mcprush.com/to/coreguard-agent-commerce-mcp?ref=badge)
4
+
3
5
  Consent receipts and fail-closed execution verification for agentic purchases —
4
6
  an offline, deterministic surface for binding a user's approval to the exact
5
7
  bytes approved, and for verifying any executed trace against that receipt.
@@ -10,7 +12,7 @@ bytes approved, and for verifying any executed trace against that receipt.
10
12
  - **Fail-closed execution verification** — a consent plus an executed trace
11
13
  yields a verdict with named drift classes (AGR/1 taxonomy); incomplete or
12
14
  ambiguous evidence is never treated as a pass.
13
- - **stdio MCP server** (JSON-RPC 2.0, protocol `2025-06-18`) exposing ten tools,
15
+ - **stdio MCP server** (JSON-RPC 2.0, protocol `2025-06-18`) exposing twenty-six tools,
14
16
  all offline, all deterministic, zero keys.
15
17
 
16
18
  MIT. Node ≥ 18. No network calls, no stored credentials, no wall clock.
@@ -185,6 +187,36 @@ Output: `{ receiptId, action, consumed, ledger, boundary }`.
185
187
 
186
188
  **Boundary:** the default ledger is **process-local** to this MCP server process. With `storePath` (or `COREGUARD_CONSUMPTION_STORE`), the AC-CS/1 store is used: lock-guarded and atomic across processes **on one host**. Cross-host reconciliation is CG-SPEND/1 log merge (`spend.mjs`), not this file. **NOT_BUILT:** a distributed/global register, consensus, HA replication, on-chain anchoring.
187
189
 
190
+ ### Wave 1 — Machine Economy (CG-ME/1, deterministic offline)
191
+
192
+ These 10 tools extend CoreGuard into x402/machine/delegation evidence flows. **Boundaries:** no payment custody, no broadcast, no network calls; x402 settlement/telemetry/physical completion verified only from caller-supplied evidence; signature trust roots/device attestation/physical-world truth NOT proven here. `VERIFIED != SAFE`.
193
+
194
+ | Tool | Purpose |
195
+ |---|---|
196
+ | `coreguard_parse_x402_challenge` | Parse/normalize x402 402 accepts; fail-closed on missing fields. |
197
+ | `coreguard_authorize_x402_payment` | Evaluate challenge against policy (maxAmount, allowedNetworks/Assets/PayTo); decision only, no payment. |
198
+ | `coreguard_verify_x402_settlement` | Verify caller-supplied settlement evidence against challenge; no network confirmation. |
199
+ | `coreguard_reconcile_payment` | Reconcile authorization, settlement evidence, and receipt. |
200
+ | `coreguard_meter_agent_usage` | Deterministic usage/cost metering from event amounts. |
201
+ | `coreguard_register_machine` | Create local machine registration record from manifest; no external attestation. |
202
+ | `coreguard_create_machine_task` | Create deterministic task record with terms/price/SLA. |
203
+ | `coreguard_verify_telemetry` | Verify telemetry structure/digest/signature presence; trust/physical truth not proven. |
204
+ | `coreguard_verify_task_completion` | Verify completion evidence against task; evidence acceptance != physical proof. |
205
+ | `coreguard_verify_delegation_chain` | Verify delegation chain structure/continuity; signatures not cryptographically verified without trust roots. |
206
+
207
+ ### Wave 2 — CGCP/1 Mapping + Trusted Signatures
208
+
209
+ 6 MCP tools map the missing/partial proposed contracts to the self-hosted CGCP/1 control plane (file-backed, single host, hash-chained audit). Additionally, `coreguard_verify_telemetry` and `coreguard_verify_delegation_chain` now perform real Ed25519 signature verification when an optional `trust` object with public keys/keyring is supplied. Verification covers signature validity over the supplied payload; it does not prove device identity, key custody, or physical-world truth.
210
+
211
+ | Tool | CGCP/1 mapping |
212
+ |---|---|
213
+ | `coreguard_create_intent` | `requestApproval` (intent/approval request) |
214
+ | `coreguard_issue_receipt` | `recordExecution` (execution receipt record) |
215
+ | `coreguard_verify_receipt` | audit-chain verification + receipt lookup |
216
+ | `coreguard_check_limits` | `evaluate` (policy/limit decision) |
217
+ | `coreguard_revoke_consent` | `decideApproval` / `revokeAgent` / `revokePolicy` |
218
+ | `coreguard_audit_transaction` | `auditReport` with optional filters |
219
+
188
220
  ## Errors
189
221
 
190
222
  Failures are tool results, never exceptions and never a process exit: