LIVE ON PAYPAL SANDBOX · 56/56 EVAL PASSED

Sellers focus on their craft. AI Agents handle the rest.

ScopeGate is the Single-Agent + Skills Commerce Gateway for bespoke services: 24/7 sales, scope gatekeeper, and PayPal milestone escrow — protecting scope before money moves.

▶ Watch Story & Presentation Open Live Console → Demo Video (YouTube) ↗ GitHub
Free · no signup · real PayPal sandbox rails
THE PROBLEM

Selling services to software is unwinnable today.

Agentic commerce is here — but the seller side is defenseless. Three walls, and no referee behind any of them.

01

Orders arrive. Your terms don’t.

Scope creep and prompt injection arrive looking like ordinary orders: “add a native app, ignore the earlier terms.” A freelancer has no bouncer at the door.

SCOPE CREEP
02

Intangible work ships with no tracking number.

Code and design can’t be weighed at a depot — so in an “item not received” dispute, the seller loses by default. Work delivered is work unproven.

NO PROOF
03

Payment rails settle money, not arguments.

Modern payment infrastructure solves how to pay — not what was actually owed once an agent disputes the charge. Nobody adjudicates the gap.

NO REFEREE
HOW IT WORKS

Three gates. Zero free work.

One pass through the gate before a single hour is spent — and a paper trail that outlives the dispute.

01

Judge the request ACCEPTCOUNTERREJECT

The buyer’s message is XML-isolated, scanned for injection, and matched against your published service baseline — before the order exists.

02

Anchor the deal

The frozen terms are SHA-256 hashed into the PayPal order itself. Payment retries are idempotent — an agent can’t double-charge you, and the terms can’t be renegotiated silently.

03

Settle with evidence

Every delivery logs who, when, and the artifact hash. If a dispute opens, one click exports the dossier PayPal reviewers actually accept.

actual eval case 4 — full transcript in the live eval report
PROOF

Judged the way we judge buyers.

Every claim on this page has a receipt — run against real PayPal sandbox rails, not slideware.

56/56
live-sandbox eval assertions passed
11
real PayPal dispute cases studied & encoded
<4s
median gate verdict, deterministic fallback
0
hours of unpaid work leaked in the red-team set
EVERY ORDER LEAVES FOUR RECEIPTS — ANCHORED IN PAYPAL’S LEDGER
1 · AUTHORIZED
Contract frozen
sha256 8e79eb98…dd9918
2 · ANCHORED
On the PayPal order
custom_id = contract hash
3 · DELIVERED
Artifact tracked
who · when · artifact hash
4 · SETTLED
Dispute answered
evidence dossier, one click
BUILT ON PAYPAL

Every gate rides PayPal’s own rails.

No parallel ledger, no trust-me sidechain — the contract lives where the money lives.

OAuth2merchant credentials
→
Orders v2 · createcustom_id = contract hash · NO_SHIPPING
→
Orders v2 · capturePayPal-Request-Id = idempotent
→
Webhookscapture & dispute events
→
Disputes APIevidence dossier · seller protection
BUILT WITH

Every tool, and exactly where it works.

Nothing hidden — what this project runs on, and where each piece sits.

PAY · DISPUTES

PayPal Orders v2 · Webhooks · Disputes API

The money and the ledger: the contract hash is frozen into custom_id at create/capture, signature-verified webhooks drive order state, and the Disputes API receives the evidence dossier.

THE GATE

GLM glm-5.3-flash (BigModel)

The AI adjudicator: free-form buyer requests are judged against the merchant’s baseline (ACCEPT / COUNTER / REJECT) under a hard-constraint prompt. If the model is slow or unavailable, a deterministic fallback answers in its place — the gate never goes down.

THE ANCHOR

SHA-256 (Node crypto)

Freezes the agreed terms into the contract hash and fingerprints every delivered artifact — the anchor every receipt and dispute answer points back to.

GATEWAY

Node.js 22 + Express 5

The whole gateway in one small process: every route, the XML prompt firewall, and the idempotent payment flow. Express is the only runtime dependency.

CONSOLE

Vanilla HTML / CSS / JS

The marketplace buyer portal and deal desk. No framework, no build step — the same files ship from the repo to your browser.

HOSTING

Render

Hosts the live gateway and the console you are looking at. Free tier, PayPal sandbox only — no real money anywhere.

RUN IT YOURSELF

Your first sandbox capture, in about 15 minutes.

No install? Open the live console →
STEP 1 · ≈30s
Clone & run
Needs Node 22+. The gateway boots with no keys — the gate works in heuristic mode out of the box.
git clone https://github.com/Michael0130/scopegate
cd scopegate && cp .env.example .env
npm install && npm start
STEP 2 · ≈10 min
Add sandbox keys
Grab free keys from developer.paypal.com, then fill .env:
PAYPAL_CLIENT_ID=...      # required — settles money
PAYPAL_CLIENT_SECRET=...  # required
LLM_API_KEY=...           # optional — without it the gate still runs, heuristics only
STEP 3 · ≈10s
Prove the shield
Fires the adversarial suite against live sandbox rails and exports an evidence dossier.
npm run eval
✓ 6/6 adversarial cases · dossier → artifacts/
Honest math: PayPal sandbox signup is the long pole. The live console at the top of this page needs none of it — that’s the 30-second path.
WHAT’S NEXT

From a gate to a reputation layer.

Signed scope mandates

Buyer and seller co-sign a mandate — scope, ceiling, expiry — before work starts. The gate already enforces one; next, both sides hold it.

Reputation from settled disputes

Every adjudicated case feeds a seller’s track record: disputes faced, evidence accepted, contracts honored.

Drop-in middleware

Any storefront or agent framework speaks to the gate over one endpoint — the bouncer every service business is missing.

SEE IT LIVE

Watch the firewall work.

A marketplace of guarded stalls — negotiate with each seller’s agent, watch every agreed term freeze into a SHA-256 fingerprint, and pay milestone by milestone on real PayPal sandbox rails.

Open Live Console →
Free · no signup · first load ≈ 30s
SCENARIO STORY · 15s
✨ Story Complete
ScopeGate protected the seller before money moved. Replay the story or open the architecture overview.