Skip to content
Back to skills

X402 Concordium Commerce

ASecurity

Title: x402 Concordium Commerce & HTTP Proofs Keywords: x402, x401, concordium-commerce, plt, eudemo, facilitator, escrow, spending-ledger, payment-receipt, verify-commerce, x402-doctor, mainnet-proof Agents: commerce-payments, backend, api, integration-reliability-engineer, incident-responder, finops-steward When to use: When implementing, configuring, debugging, or auditing x402 PLT payments, x401 HTTP proof-gated routes, payment facilitators, escrow simulation, spending-ledger caps, or Con...

  • 4 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added December 5, 2026
ai-agentsrustgonoderailsdebuggingapibackend

Works with

  • api

Security analysis

A100/100

Scanned December 5, 2026

npx -y skills add ronnikc/agent-os-protocol --skill x402-concordium-commerce --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of X402 Concordium Commerce?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for X402 Concordium Commerce
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/ronnikc-x402-concordium-commerce/badge)](https://www.skillsdirectory.com/skills/ronnikc-x402-concordium-commerce)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
Title: x402 Concordium Commerce & HTTP Proofs
Keywords: x402, x401, concordium-commerce, plt, eudemo, facilitator, escrow, spending-ledger, payment-receipt, verify-commerce, x402-doctor, mainnet-proof
Agents: commerce-payments, backend, api, integration-reliability-engineer, incident-responder, finops-steward
When to use: When implementing, configuring, debugging, or auditing x402 PLT payments, x401 HTTP proof-gated routes, payment facilitators, escrow simulation, spending-ledger caps, or Concordium payment receipts in `@agent-os/concordium-commerce`.
Version: 1.0.0
Last updated: 2026-12-05

Implement, verify, and troubleshoot sovereign agent commerce on Concordium using `@agent-os/concordium-commerce`: x402 preflight, PLT (`EUDemo`/CCD) settlement via facilitator, spending-ledger limits, escrow state machines, x401 proof policies, and cryptographic payment receipts.

---

## Workflow

### Step 1 — Preflight endpoints & facilitator health
- For live diagnostics, run read-only probes (`node scripts/probe-public-services.mjs x402-testnet` or `agent-os doctor --x402 <url>`).
- Verify CAIP-2 network identifiers (e.g. `ccd:4221332d34e1694168c2a0c0b3fd0f27` for testnet), asset symbol (`EUDemo` / PLT / CCD), recipient base58 `AccountAddress`, and facilitator availability before attempting settlement.

### Step 2 — Enforce spending-ledger & proof policy guardrails
- Check `spending-ledger.ts` per-request, per-session, and cumulative caps before issuing a payment request.
- Enforce `proof-policy.ts` and `agent-id-proof.ts` for x401/x402 routes: confirm issuer, audience, nonce freshness, expiry, and revocation. Never forward unnecessary browser credentials and set `Cache-Control: no-store` on all proof/payment responses including error paths.

### Step 3 — Validate statements, receipts, and lost-response idempotency
- Build spend statements with `buildSpendStatement(payerAddress, ...)` and validate receipts with `validatePaymentReceipt`.
- When a facilitator HTTP response is lost or times out, reconcile using the durable operation/request ID before retrying — never double-submit an unconfirmed payment.
- Validate escrow transitions (`escrow-simulator.ts`) for release, refund, and timeout paths.

### Step 4 — Preserve consent isolation
- When x402 gates content or API access alongside AesirX CMP, confirm payment verification does NOT grant analytics, advertising, or third-party tracking consent.

### Step 5 — Run commerce verification suites
Run `npm run verify-commerce` (plus `npx tsx agent-os/scripts/verify-x402-trust.ts`, `verify-facilitator-plt.ts`, `verify-escrow-simulator.ts`, and `verify-test-merchant.ts` when those surfaces change).

---

## Input Schema

```yaml
input:
  operation:
    type: string
    required: true
    enum: [preflight, implement_route, audit_receipt, diagnose_facilitator, verify_escrow]
  network:
    type: string
    required: false
    enum: [testnet, mainnet, simulator]
    default: testnet
  asset:
    type: string
    required: false
    default: EUDemo
  endpoint_url:
    type: string
    required: false
    description: "Target x401/x402 endpoint for preflight or doctor checks"
```

## Output Schema

```yaml
output:
  preflight_ok: { type: boolean }
  spending_cap_enforced: { type: boolean }
  receipt_verified: { type: boolean }
  idempotency_safe: { type: boolean }
  verify_commerce_passed: { type: boolean }
```

## Quality Gate

- No private keys, wallet seeds, or raw facilitator signing credentials logged or committed.
- Spending-ledger caps checked before settlement; exceeded budgets fail closed.
- Lost facilitator responses reconcile by durable operation ID rather than blind retry.
- `Cache-Control: no-store` enforced on x401/x402 responses including error responses.
- `npm run verify-commerce` passes cleanly.

## Chain Metadata

```yaml
chain_metadata:
  skill_slug: "x402-concordium-commerce"
  stage: "S1"
  suggested_next:
    - slug: "derived-identity-and-delegation"
      stage: "S4"
      reason: "Bind agent spending authority to verified human-delegated credentials"
    - slug: "consent-negotiation-compliance"
      stage: "S4"
      reason: "Confirm pay-for-access endpoints maintain strict consent isolation"
```

## Error Handling

- Facilitator returns `503` → run `node scripts/probe-public-services.mjs x402-testnet` to verify facilitator configuration before retrying or escalating to `incident-responder`.
- Invalid CAIP-2 network or malformed base58 `AccountAddress` → fail preflight immediately with explicit field diagnostic.
- Receipt verification fails (mismatched amount, asset, payer, or nonce replay) → deny resource access and log sanitized audit event.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.