Escrow Breaker Endpoint: POST /v1/firewall/policy-check MCP Tool: firewall_policy_check Zero Payload Retention & Zero Training-Data Resale $0 Charged on HTTP 402 / 403 Blocks

HTTP 402 & 403 Zero-Charge Agent Firewall Billing: Never Pay for Blocked Calls

Guarantee strictly charged_micros == 0 whenever an agent tool call is blocked for SSRF, prompt injection, policy violation (HTTP 403), or budget exhaustion (HTTP 402)—backed by idempotent Creem HMAC-SHA256 credit settlement.

Target Role: FinOps Lead & API Product Architect · Primary Keyword: HTTP 402 budget exceeded HTTP 403 policy denied zero charge gateway · Pipeline Stage: Stage 2 — Escrow Circuit Breaker (SQLite WAL 4D Budget)

Zero Payload Retention & Zero Training-Data Resale Pledge: Enterprise-Trust-Firewall runs on 100% pure Python 3 stdlib + SQLite WAL. Raw customer payloads, prompts, headers, and secrets are never persisted to disk, never logged in plaintext, and never sold or reused for model training. Audit receipts store redacted SHA-256 digests only.
Launch 5-Second Zero-Signup Try-Now Console Read Agent Skill Spec (REST + MCP + Treg Hub) Browse All 24 Guides

1. Threat Surface & Deterministic Firewall Controls

Traditional SaaS proxies and LLM guardrails bill customers even when a malformed or hostile request is rejected—turning a prompt-injection flood or misconfigured loop into a denial-of-wallet attack against your security tool itself. Enterprise-Trust-Firewall enforces a strict zero-charge invariant: every HTTP 402 budget circuit trip, HTTP 403 security block, or invalid input settles at charged_micros == 0.

How Enterprise-Trust-Firewall Enforces This Boundary

  1. Maps security, SSRF, prompt-injection, and allowlist violations cleanly to HTTP 403 Forbidden with charged_micros == 0.
  2. Maps budget cap and sliding-window circuit trips cleanly to HTTP 402 Payment Required with charged_micros == 0.
  3. Credits tenant ledgers via HMAC-SHA256 verified, idempotent Creem webhooks (POST /webhooks/creem) across $149 / $399 / $999 tiers.
  4. Records charged_micros and zero_charge_reason explicitly inside every SHA-256 TrustAuditReceipt.

2. Concrete Benchmark & Threshold Metrics

Control / Benchmark Metric Enforced Threshold & Guarantee
Concurrency safetySQLite WAL (PRAGMA journal_mode=WAL; busy_timeout=5000ms) + BEGIN IMMEDIATE lock: 0 overspend under 20+ concurrent threads
4D policy dimensionsmax_cost_micros per call, per-minute sliding-window rate limit, tenant daily budget cap, tool/domain allowlist
Policy verdict statesDeterministic allow, ask (human approval gate), or deny (HTTP 402 budget / HTTP 403 policy)
Circuit-trip charge guaranteeStrictly charged_micros == 0 whenever budget or policy circuit trips

3. Working REST (cURL) & MCP JSON-RPC 2.0 Examples

REST API Invocation (POST https://trustwall.fastmesh.dev/v1/firewall/policy-check)

curl -sS -X POST https://trustwall.fastmesh.dev/v1/firewall/policy-check \
  -H "Content-Type: application/json" \
  -H "X-API-Key: ${TRUSTWALL_API_KEY}" \
  -d '{"tenant_id":"zero_bill_verified_tenant","tool_name":"blocked_domain_call","target_url":"https://unapproved.example.com/v1/export","estimated_cost_micros":20000,"max_cost_micros":50000,"rate_limit_per_min":30,"daily_budget_micros":500000,"allowed_domains":["approved.example.org"]}'

Structured Request Payload

{
  "tenant_id": "zero_bill_verified_tenant",
  "tool_name": "blocked_domain_call",
  "target_url": "https://unapproved.example.com/v1/export",
  "estimated_cost_micros": 20000,
  "max_cost_micros": 50000,
  "rate_limit_per_min": 30,
  "daily_budget_micros": 500000,
  "allowed_domains": [
    "approved.example.org"
  ]
}

Native Streamable MCP Invocation (POST https://trustwall.fastmesh.dev/mcp)

{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "firewall_policy_check",
    "arguments": {
      "tenant_id": "zero_bill_verified_tenant",
      "tool_name": "blocked_domain_call",
      "target_url": "https://unapproved.example.com/v1/export",
      "estimated_cost_micros": 20000,
      "max_cost_micros": 50000,
      "rate_limit_per_min": 30,
      "daily_budget_micros": 500000,
      "allowed_domains": [
        "approved.example.org"
      ]
    }
  }
}

Run via cURL against /mcp:

curl -sS -X POST https://trustwall.fastmesh.dev/mcp \
  -H "Content-Type: application/json" \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"firewall_policy_check","arguments":{"tenant_id":"zero_bill_verified_tenant","tool_name":"blocked_domain_call","target_url":"https://unapproved.example.com/v1/export","estimated_cost_micros":20000,"max_cost_micros":50000,"rate_limit_per_min":30,"daily_budget_micros":500000,"allowed_domains":["approved.example.org"]}}}'

Expected Deterministic Firewall Response

{
  "decision": "deny",
  "http_status": 403,
  "reason": "domain_not_in_allowlist",
  "charged_micros": 0,
  "zero_charge_guaranteed": true
}

4. Tamper-Evident SHA-256 TrustAuditReceipt (Zero Payload Retention)

Every request produces a canonical 64-hex SHA-256 TrustAuditReceipt stored in SQLite WAL using redacted payload digests only. Verify any receipt free ($0) via GET /v1/firewall/receipt/tr_3b726aa12209ba83, MCP tool firewall_verify_receipt, or offline Python 3 stdlib SHA-256 hashing:

{
  "receipt_id": "tr_3b726aa12209ba83",
  "service": "enterprise-trust-firewall",
  "version": "1.0.0",
  "action": "policy_check",
  "tenant_hash": "1c45126098a6",
  "target_host": "unapproved.example.com",
  "verdict": "BLOCKED",
  "decision": "deny",
  "http_status": 403,
  "charged_micros": 0,
  "zero_bill_reason": "blocked_or_unbilled_blocked",
  "input_sha256": "73a93775c9334eefc07dd1406a02470cff31faea125fb7c3c116502d64aa4679",
  "output_sha256": "2946324e64a4a50dc267f1c6226f96a6b503a20c4b334fc5bc8ff52f7b1eeba8",
  "redaction_count": 0,
  "redacted_categories": [],
  "policy_checks": [
    {
      "stage": "stage2_escrow_breaker",
      "endpoint": "/v1/firewall/policy-check",
      "verdict": "BLOCKED"
    }
  ],
  "stage_summary": {
    "primary_stage": "stage2_escrow_breaker",
    "mcp_tool": "firewall_policy_check"
  },
  "sla_cert_id": null,
  "zero_payload_retention": true,
  "issued_at_utc": "2026-12-02T05:30:00Z",
  "receipt_sha256": "e7085c08f5e21f2c1a18234dca3e2e363e36aac921aaebd691dce018b29870ea",
  "sha256_attestation": "e7085c08f5e21f2c1a18234dca3e2e363e36aac921aaebd691dce018b29870ea"
}

5. Architecture & Capability Benchmark Comparison

Solution Pricing & Billing Model Agent Runtime Defense Audit & Data Retention Operational Outcome
Enterprise-Trust-FirewallPrepaid Creem ($149/$399/$999) + $0 on 402/403 tripsTransactional BEGIN IMMEDIATE micro-USD reservation, settlement, and automatic refund4D allow/ask/deny policy + SHA-256 TrustAuditReceiptPrevents $50,000 agent retry storms deterministically
Cloud Billing AlertsFree with cloud account (delayed 15-60 min)Post-facto email alert after the bill has already explodedZero inline blocking or per-tool escrowCannot stop runaway loops in real time
API Gateway Rate Limiter$50-$500/moCounts requests/sec only; blind to per-call micro-USD tool costNo reservation/refund ledger or ask-gate semanticsAllows high-cost tool calls to drain budget
In-Memory Python CountersDIYRace conditions under multi-worker load; lost on restartOverspends under concurrent fan-outZero durable audit trail

6. Transparent Creem Plans ($0 on Blocked Calls)

Start immediately in the 5-second zero-signup Try-Now Console, then activate prepaid Creem tiers with HMAC-SHA256 idempotent credit settlement:

Team Gateway $149

$149.00 non-expiring prepaid credits (149,000,000 micros, ~7,450 headline ops at $0.02), zero seat tax, all 4 firewall stages, SHA-256 receipts, and $0 on blocked calls.

SKU: sku_trustwall_team_gateway_149 · Creem Checkout

Security Pro $399

$450.00 non-expiring prepaid credits (+$51.00 bonus, 450,000,000 micros, ~22,500 headline ops), multi-tenant SQLite WAL escrow pools, 10% repeat ArchiveCache tier, and 24h SLA certificates.

SKU: sku_trustwall_security_pro_399 · Creem Checkout

Enterprise Firewall $999

$1,250.00 non-expiring prepaid credits (+$251.00 bonus, 1,250,000,000 micros, ~62,500 headline ops), unlimited agents, custom policy packs, replay-safe Creem webhook auto-topup, and Zero Payload Retention attestation.

SKU: sku_trustwall_enterprise_firewall_999 · Creem Checkout

7. Frequently Asked Questions

How are Creem credit top-ups secured against replay attacks?

POST /webhooks/creem verifies the HMAC-SHA256 webhook signature and enforces idempotent event_id deduplication inside SQLite WAL so duplicate deliveries never double-credit.

Why distinguish HTTP 402 from HTTP 403?

HTTP 402 signals an automated budget/escrow trip (top up or wait for window reset), while HTTP 403 signals a hard security or allowlist violation requiring security investigation.

Do blocked calls via Treg Hub or Causal Bazaar also charge $0?

Yes. Both treg hub (0% seller commission) and Causal Bazaar (run_hand.py) strictly enforce $0 billing on blocked, empty, or invalid inputs.

8. Related Enterprise-Trust-Firewall Guides

Try Live Firewall Console → · Explore All 24 Security & GEO Guides →