Clearwake

Proof

Everything behind the front page.

Each part below runs on this page against the recorded files. Change a value in a signed receipt and the check fails. Pull the plug and the money waits.

Measured

Numbers from the recorded runs.

Real PayPal sandbox, test money. Every figure comes from a recorded run; a figure from a local run on the local provider says so.

How it works

One dispute. Six layers. Every layer checked.

Batch case 3 ran on the real PayPal sandbox. The assembled unit stands in the middle. Take it apart layer by layer: each part shows what it does and the one real value it carried.

Real PayPal sandbox run, case 3
1Rules

The owner speaks the limits once, and every agent stays inside them.

Limit alone USD 5.00 Ceiling USD 9.00

What holds everything up. The agents act only inside what the owner said.

2Agent

It files the claim for an order it placed and cannot pay itself.

Claim USD 5.00 Order 0HW636872W597254K

The buyer agent does the work. No agent moves money on its own word.

3Agent

It reads the dispute and offers inside its owner's limit.

Offer USD 5.00 Model draft 14.6 s

The merchant agent does the work, with proof, inside its owner's limits.

1 2 3 4 5 6 Case 3 · USD 5.00

Open the signed receipts
4Gate

It checks every action before money moves, so nothing goes outside the rules.

Proposed settle_by_offer Decided settle_by_offer Overridden no

Nothing moves outside it. A wrong action stops here, before money moves.

5Seal

Each step is signed, and each receipt checks the one before it.

Policy hash 4ff70bb8a4df Offer receipt line 28

A chain of signed receipts anyone can verify offline against one dispute id.

6Judge

PayPal's record is the judge, and nothing counts until the receipts match it.

RESOLVED at INQUIRY Refund USD 5.00 USD 0.77 settlement fee instead of the USD 15.00 dispute fee

PayPal's record is the judge, and the money is what is counted.

Two agents, one dispute

You say your rules once. Two agents settle the case.

THE CONVERSATION

Recorded real sandbox batch, case 3, 11 Nov 2026. Characters: illustration.

Press Play, or scroll and it starts.

Read the scene as text
  1. The owner says the buyer's rule out loud: It becomes a signed policy.
  2. The owner says the merchant's rule out loud: It becomes a signed policy with hash .
  3. The buyer agent finds order , paid , with no tracking, and opens dispute , asking back. It writes:
  4. The merchant agent asks its model, and the proposal is ().
  5. The policy check passes: offer is inside the it may settle alone.
  6. The offer is sent alone. The merchant receipt is signed, hash .
  7. PayPal's record reads at , refund , . The buyer agent reads the same record and signs its receipt, hash . Both receipts name the same dispute id.
  8. Done. You were not asked.

Built for two people

One problem. Solved end to end.

Item not received is the whole job. Clearwake owns it from the day the parcel ships to the moment PayPal's record reads RESOLVED, for the person whose agent shops for them and the merchant who sells to agents. Anything outside your rules reaches you with the evidence ready.

  1. ShippedTracking added to PayPal
  2. WatchedThe buyer's agent sees it stall
  3. OpenedDispute inside the mandate
  4. ReadDispute, order, tracking
  5. OfferedInside the signed limit
  6. ResolvedPayPal's record says so
  7. SignedTwo receipts, one dispute id

One loop, every case

Item not received, from shipping to two receipts.

Every part of Clearwake is a step in this one sequence. No step is a separate product.

  1. Rules, set once, in plain words

    The merchant says the limits out loud. The buyer sets what their agent may claim. After that a model can propose anything, and it can never go past the signed rules.

  2. Prevention

    When the merchant ships, Clearwake adds the tracking to PayPal through the Add Tracking API, so the order is ready to defend before any dispute exists.

  3. The buyer's agent watches

    When the tracking stalls past the expected date, it opens the item not received dispute in PayPal, inside its mandate. It can only claim for orders its mandate covers.

  4. The merchant's agent reads

    The dispute, the order, the tracking on PayPal, and the signed dispatch record, with the photo count where there is one.

  5. The model drafts, the rules decide

    Delivered with proof: send the evidence. In transit: message the buyer's agent with the tracking and a date. Not shipped, lost or short shipped: offer a refund or a partial settlement inside the merchant's limits, sent alone. The buyer's agent accepts only what its mandate allows.

  6. Both sides read PayPal's record

    Until it says RESOLVED. A lost response is never retried blindly, and nothing is paid twice.

  7. Two signed receipts

    One from each side. Both name the same PayPal dispute id, and both verify offline.

Two receipts, one dispute id Two circles, the buyer on the left and the merchant on the right. Where they overlap is the same PayPal dispute id, PP-R-ISN-10198775. Two signed receipt hashes sit under the diagram. BUYERits agent opens MERCHANTits agent answers SAME DISPUTE ID Two receipts, one dispute id Two circles, the buyer above and the merchant below. Where they overlap is the same PayPal dispute id, PP-R-ISN-10198775. Two signed receipt hashes sit under the diagram. BUYERits agent opens MERCHANTits agent answers SAME DISPUTE ID

MERCHANT RECEIPT, OFFER SENT

BUYER RECEIPT, CASE SETTLED

Batch case 3, 11 Nov 2026. Both receipts name and verify offline.

The recorded proof

Real PayPal sandbox cases, each with its PayPal id.

Settled before escalation

  • Settled in conversationBatch case 3, USD 5.00 offerPP-R-ISN-10198775, RESOLVED at INQUIRY
  • Refund under the limitReal sandbox run, USD 1.506SN41486G5579815G, VERIFIED

Evidence sent

  • Item not receivedReal sandbox run, tracking sentPP-R-SLI-10195419, read back VERIFIED
  • Buyer says 2 of 3 arrivedReal sandbox run, dispatch proofPP-R-UKF-10195772, 3 of 3 counted

Needs you

  • Refund above the approval lineReal sandbox run, USD 3.502NB27940EC188891M, after approval

Settled in conversation

The wake of one dispute. Each ring is a signed step.

Real PayPal sandbox run, 11 Nov 2026, case 3 of a ten case batch. Scroll, and the rings follow five signed receipts of dispute PP-R-ISN-10198775, order 0HW636872W597254K. Pick any step and change one value in it: your browser checks every signature and hash of the whole 107 line merchant log and the 277 line buyer log with WebCrypto, and the wake shows where it breaks. Nothing is uploaded.

Five rings around a dispute Each ring is one signed receipt of case 3. A ring turns red when its signature or hash link fails.

Checking the receipts.

  1. Buyer agent

    A dispute opens.

    The buyer agent (qwen3.5:4b) wrote in PayPal's Resolution Center on dispute PP-R-ISN-10198775: "Order 0HW636872W597254K ($9.00) item not received. Request refund for the affected amount." The merchant's rule: settle an item that has not arrived on its own up to USD 5.00, ask the owner from USD 5.01 up to USD 9.00, never more.

  2. Receipt 1, dispute.decision

    The model proposes, the policy decides.

    qwen3.5:4b proposed settle_by_offer. The policy accepted it: offer USD 5.00, inside the owner's limit of USD 5.00 alone, no approval needed.

  3. Receipt 2, model.call

    The model call is signed too.

    qwen3.5:4b on ollama, 14.6 s, 211 prompt tokens, 17 completion tokens. Overridden: false. Fallback: false. Injection signals: none. The receipt holds the SHA-256 of the prompt and the policy hash.

  4. Receipt 3, dispute.offer_sent

    One offer, sent alone.

    USD 5.00, sent as an offer alone, because PayPal refuses an offer after a seller message.

  5. Receipt 4, dispute.settlement

    PayPal's record is the judge.

    PayPal reads UNDER_REVIEW at INQUIRY. Nothing is counted as settled until PayPal's own record says RESOLVED, so the receipt is signed as pending.

  6. Receipt 5, dispute.settlement

    Resolved, no claim, no dispute fee.

    PayPal reads RESOLVED (RESOLVED_BUYER_FAVOUR) at the INQUIRY stage. Refund USD 5.00, USD 0.77 settlement fee instead of the USD 15.00 dispute fee. The buyer agent signed its own closing receipt on its side.

Dispatch proof

Counted on your own machine, before the parcel leaves.

SAM 3 (open weights from Meta) counted the items in the packing photo on a laptop CPU with no network, and Clearwake signed the count. Real sandbox run, 3 Nov 2026.

Order
7RV99265V1496281G
Items
3 of 3 counted (notebook-a5)
Image sha256
893632548b14c5d54c10c4e1b788cee466dfd06900edd21135dd3b35444311f8
Sealed at
2026-11-03 10:09:29 UTC
Signature
ee8b207cfa776968d8c90d20…
Receipt id
8b92abb9e53a6244

The buyer then wrote "Only 2 of 3 notebooks arrived." on dispute PP-R-UKF-10195772. The policy found strong proof and sent evidence. PayPal refused the first send (ITEM_ID_IS_MANDATORY_FOR_MULTIPLE_EVIDENCES) and nothing was applied. The next reply was lost, so Clearwake held it as UNKNOWN and read the dispute. The third send, with the same request id, was accepted, and PayPal's record shows a PROOF_OF_FULFILLMENT from the seller.

One proof case: the network cut

Drag the plug out. Money waits.

Real run in network isolated containers, 31 Oct 2026

Drag the plug left, or focus it and press the left arrow, then send refunds 2 and 3. Press the right arrow to plug it back in.

Network cut diagram: Agents, Egress gateway, PayPal sandbox 1 Agents 2 Egressgateway 3 PayPalsandbox ← Drag plug Held queueHeld 0 ReconciliationClear Paid 1

1Agents. An isolated container with no route out except the gateway.

2Egress gateway. The one gateway out, and only to the PayPal sandbox.

3PayPal sandbox. Its record is read before any held refund is replayed.

Network upPaid 1, Held 0

    Network up. Refund 1 is paid and verified against PayPal's record. Refunds 2 and 3 are ready.

    Inside and outside

    One gateway out, and only to the PayPal sandbox.

    Clearwake boundary Agents, policy and limits, the local model and the signed receipts are inside a dashed boundary with no route out. One egress gateway in the boundary reaches only api-m.sandbox.paypal.com. A request to example.com is refused with 403 and receipted. Inside the network, no route out AgentsPolicy file, approvals, limits Local model (Ollama)Signed receipts Gateway api-m.sandbox.paypal.com example.com403, receipted

    Inside

    • Dispute text, buyer messages and evidence drafts
    • The policy file, the approvals and the limits
    • The local model and the signed receipts

    Agents have no route out. In case m their DNS lookups fail.

    Outside, through one gateway

    • Only api-m.sandbox.paypal.com is allowed (policy/merchant.yaml)
    • Only what the PayPal call needs: a message, an offer amount, tracking facts
    • Any other host is refused and receipted. In case m, example.com got a 403

    The gateway's 34 receipts from that run are published with the others.

    Check any receipt log yourself

    All recorded logs: case m merchant, egress gateway, case o dispatch, case n settle, and the manifest with public keys.

    The 1.5% line

    Drag the mercury. Watch the fee double.

    A seller with more than 100 sales in the previous 3 months and a dispute rate of 1.5% or more pays the High Volume Dispute Fee on every dispute: USD 30.00 instead of USD 15.00. PayPal Merchant Fees, US, updated 1 Oct 2026. The rule and both fees are the ones in clearwake/fees.py.

    The recorded sandbox has a handful of test orders, far under 100 sales, so the rule does not apply to it. The figures here are example values for you to change. They are not Clearwake results.

    Dispute rate against the 1.5% line A vertical gauge from 0 to 3 percent. The fill is the dispute rate. A dashed amber line marks 1.5 percent. Drag the handle to change how many more disputes escalate. 1.5% PayPal line 0%3%

    0.48%

    Under the line

    How to run it

    Python 3.12 or newer. Nothing to install.

    It starts on local records and makes no network calls.

    git clone --recurse-submodules https://github.com/Sriharsan/clearwake-paypal.git
    cd clearwake-paypal
    python -m clearwake --port 8810

    Then open http://127.0.0.1:8810/console. Speak to it from a phone with python -m clearwake --phone. The network isolated run needs Docker and your own sandbox keys: python scripts/airgap.py. Check a receipt log with the network off: python -m verdock_core verify <log.ndjson> --public-key <64 hex characters>.