Repository avatar
Finance
v0.1.0
active

xing

io.github.datharnu/xing

Submit and verify request-only agent payments on X Layer.

Documentation

Xing

Give your agent a way to ask for money.
The agent holds no payment funds and has no key that can transfer them.
Xing pays exactly the recipient and amount it recorded.

Start the public demo ↗   ·   View the read-only dashboard ↗   ·   Replay on DeWEB ↗   ·   Run it locally   ·   What works today

Demo video · TODO: add the finished demo link
X LAYER MAINNET   /   TAPEOUT   /   USDT0
You can watch the recorded payments and replay their decisions without a wallet.


Two small payments went through. Then the agent asked to pay the same recipient 0.16 USDT0, more than its usual amount. Xing dropped the recipient's trust tier from 2 to 0 and left the request waiting for the owner. The payment stayed in the account. Replay the trust reset · Mainnet transaction

Built during the X Layer TapeOut Accelerate event; first commit 3 December 2026. First commit

Xing’s payment contracts, nine TapeOut circuits, agent tools, TapeSend relay and DeWEB replay were built during the event.

Problem · An AI agent needs to request routine expenses while an owner keeps control of payment funds.
Solution · Agent asks, account decides, settlement is verified, everything replays.
TapeOut usage · Stateful circuits screen and verify payments, TapeSend delivers alerts, and DeWEB plus TapeKit publish wallet-free replay.
Links · Public demo · Read-only dashboard · DeWEB replay · Repo
Video · TODO: add the finished demo link.

Judging criteria

CriterionWhere to check
User Value & Commercial PotentialWho pays, proposed economics and demand evidence
InnovationCapability Separation, Match Verifier, Trust Ladder, and Panic Latch
Ecosystem IntegrationTapeOut features and replay · TapeSend receipts
Product Readiness & UXPublic walkthrough · Read-only dashboard
Demo VideoTODO: add the finished video link
Contents

A familiar payee sends a larger invoice

An agent handles recurring bills for a small team. Two payments to the same recipient go through. The next invoice is larger than usual. The owner wants routine bills paid automatically and a chance to check this one before money moves.

In Xing's recorded demo, the larger request dropped the recipient's trust tier from 2 to 0 and waited for the owner. No funds moved for that request. Replay the trust reset · Mainnet transaction

Follow request #10 to see a completed payment. The agent requested 0.01 USDT0 for a separate recipient, the owner authorized settlement, and TapeSend delivered a settled alert for the same request. Request, transfer, and alert receipts · Judge demo script

Why this problem is real

  • Business email compromise (BEC) can use a convincing message to get someone to approve a fraudulent payment. Complaints to the FBI’s Internet Crime Complaint Center recorded $3.05 billion in BEC losses in 2025, up from $2.77 billion in 2024. FBI 2025 IC3 Annual Report
  • Payment fraud is widespread among surveyed organizations. In the Association for Financial Professionals’ 2026 survey of 465 corporate professionals, 76% of organizations reported attempted or actual payments fraud in 2025, and 74% reported being affected by BEC. 2026 AFP Payments Fraud and Control Survey · Key findings
  • AI already features in fraud reports. The FBI’s 2025 report recorded 22,364 complaints involving AI and $893 million in reported losses. The count depends on complainants recognizing and reporting AI involvement. FBI 2025 IC3 Annual Report
  • Payment agents add a new risk. Researchers showed that prompt injection could manipulate an experimental shopping agent built on Google’s Agent Payments Protocol. Deutsche Bank and Ant Digital Technologies recommend that institutions be able to review how agents use their payment permissions and revoke those permissions. January 2026 preprint · Agentic Payments in Wholesale Finance

One company expressed interest in a post-launch trial after we contacted approximately five. Pilot participation and willingness to pay remain unverified. Early demand and market evidence

Xing gives agents a request key

The agent submits a recipient and amount with a request-only key. It pays transaction gas in OKB. The recorded demo agent held zero USDT0, and its key has no authority to transfer funds from the Xing account. Agent permissions and recorded evidence

Xing uses nine TapeOut circuits on X Layer to screen requests and verify settlement. The account records its decision and pays automatically, holds the request for the owner, or blocks it. The Match Verifier checks that settlement matches the recorded recipient and amount. Recorded circuit evaluations replay from the chain, including stateful before and after values. Account implementation · Verification guide

Open the public demo · Replay on DeWEB

Who it's for and how it earns

Who it's for

Xing’s first prospective buyers are small operations and procurement teams already paying vendors in stablecoins. The proposed individual plan serves solo founders. Agent platforms could distribute the request-and-receipt flow through the SDK or MCP server. Who pays and early demand

Revenue model (proposed)

The team subscription would fund shared review, policy management, and audit exports. A usage fee would cover recorded screenings and share a portion with eligible circuit designers. The demo collects no fees. Pricing, multi-user approvals, and the fee module are still to be tested or built. Proposed pricing and unit economics

Why users pay and keep using it

  • Reduce avoidable payment losses. The value of preventing misdirected or inflated payments depends on invoice size and how often owners catch exceptions. Worked example
  • The account gets more useful over time. Payee history, trust tiers and mandates build up in the account, so owners can approve more routine payments automatically and review only unusual ones.
  • There is a record you can check. Finance and audit teams can inspect the on-chain receipts and replay recorded circuit decisions at their original blocks.

Alternatives, demand, and distribution

Competition comparison · Early demand · Distribution plan

Install from a clone · After packing the SDK and MCP server, run npm install /tmp/xing-sdk-0.1.0.tgz /tmp/xing-mcp-0.1.0.tgz. 60-second quickstart · Publish checklist

From payment request to receipt

Agent submits recipient and amount → Xing account applies TapeOut rules
  ├─ Qualifies for automatic payment → verify settlement → paid
  ├─ Needs owner review              → wait for approval → verify settlement if approved
  └─ Hits a blocking rule            → blocked
TapeSend relay can alert the owner about paid, waiting, or blocked requests.

The account holds USDT0 and applies the rules. A request can qualify for automatic payment when it clears screening, the payee is saved, and a live mandate or earned trust permits the amount. The account also checks that it has enough funds. The owner can approve or reject a pending request. On settlement, the Match Verifier checks the transfer against the recorded recipient and amount. Account request and settlement code

The account records circuit inputs and prior latch state in Decision events and validated next state in LatchState events. The web console uses those records to inspect and replay decisions. A separate relay posts status alerts through TapeSend. Replay verification · TapeSend delivery

Glossary

  • Trust tier is the on-chain level earned by a saved recipient through clean payments. It can fall when the recipient’s activity changes.
  • Mandate is an owner-approved spending permission for a recipient, with limits and an expiry.
  • Crier key signs alert submissions and pays their gas.
  • Herald is the contract that checks the alert against Xing’s recorded request state before posting it through TapeSend.
  • Base unit is the smallest indivisible amount of a token. USDT0 uses six decimal places, so one base unit is 0.000001 USDT0.

What each key can do

ActorWhat it can doWhat the evidence establishes
Agent keySubmit a recipient and amount to the account.The account accepts requests from its configured agent. A request can trigger automatic payment only through the account's eligibility checks. Request code
Owner keySet spending rules, approve or reject pending requests, and withdraw account funds.The contract checks owner authority on these calls. Account code · Permission invariant
Xing accountHold USDT0, evaluate rules through TapeOut, and execute qualifying settlements.The registry pins the published circuit hashes, and the account checks settlement against the recorded payment. Registry and account code · Circuit publication
Crier keySubmit an alert through the restricted herald.The herald restricts the caller and checks the payload against the recorded request before posting to TapeSend. Herald code · Delivery evidence

The SDK and MCP tools submit requests and read receipts. The web console supports owner actions and public inspection. DeWEB packages the wallet-free replay for TapeKit.

Mainnet addresses and decision records

X Layer mainnet, chain 196.

The original mainnet demo journal contains six requests and three separate manual settlements. One settlement ran automatically inside its request transaction. Of the 255 replayed evaluations, 208 were Match Verifier evaluations across four settlements. The Decision event carries the inputs and prior latch state. LatchState carries the validated next state. Verification notes

Why the account works this way

  1. Keep payment authority in the account. The agent submits requests. The account holds USDT0 and the owner controls spending permissions, manual approval, and withdrawals. This split was implemented on 3 December 2026. Request and settlement commit
  2. Pin the checks and record state changes. Xing started with circuit specs and a rehearsal on 3 December 2026, then added stateful screening and replay the same day. Recording the inputs and latch values lets a reader repeat the checks at the original block. First commit · Stateful screening and replay commit
  3. Deliver alerts separately from payments. The payment outcome is recorded by the account. A separate relay sends status alerts from those records. The hosted relay was added on 3 December 2026, and the alert and DeWEB replay verification was recorded on 4 December. Relay commit · Verification commit

Four controls that shape a payment

Verify a result on X Layer

ClaimTransaction, page, or commandWhat it proves
The agent key has no direct transfer authority over Xing fundsforge test --offline --match-contract XingAgentInvariant · Permission codeThe agent can submit a request. Manual settlement and withdrawal require owner authority.
A held request can be settled by the ownerRequest · Settlement replayThe request waited for review. A separate transaction settled the recorded recipient and amount.
A mandate can qualify a request for automatic paymentAutomatic payment · Over-cap requestThe qualifying request paid automatically. A later request above the mandate cap waited for review.
A change in payee behavior can remove earned trustTrust reset replayThe tier fell from 2 to 0 and the request stayed pending.
A hard cap can stop a paymentRequest #8 · Blocked alertA request one USDT0 base unit over the single-payment cap was blocked. The alert was recorded separately.
Published evaluations match the consoleDeWEB replay · node deweb/verify-published.mjsAll 255 evaluations across nine published scenarios matched, including recorded latch values. The DeWEB readback matched the 7,350-byte build in one chunk. Readback evidence
TapeSend deliveries can be verifiedXing inbox · Digest evidenceEight alerts matched the digests stored in the inbox.

The published DeWEB page covers requests #1–#6 and the three separate settlements for #1–#3. Request #5 settled inside its request transaction. Later recorded requests #7–#10 replay in the web console. Scenario scope · Mainnet request hashes · Verification commands

Built on TapeOut

TapeOut features used and why

FeatureWhat Xing uses it for
CircuitsEncode spending limits, repeat invoices, payee risk, trust, freezes, and transfer matching.
ProcessorRuns the published circuits on X Layer during screening and settlement.
TapeSendDelivers pending, blocked, and settled alerts to the owner’s inbox.
DeWEBPublishes the recorded replay page on X Layer.
TapeKitOpens the DeWEB replay in a browser without a wallet.

Circuits make the checks independently replayable at the original block, including rules that remember state, such as the Trust Ladder and Panic Latch. Verification notes

TapeSend delivery is verified on chain; the official client does not yet display X Layer messages because it does not recognise the live hub implementation; Xing's inbox view reads the same hub and verifies digests. Xing inbox · TapeSend evidence

FabX and TapeCode · Neither is listed in Xing’s deployment or integration evidence. TODO: confirm whether either was evaluated.

Processor and circuit IDs

All nine circuits run on processor 0x5817b9cd1c6bff45934f4c184734be5d95e20e5a on X Layer mainnet (chain 196). Processor on the explorer

IDCircuitWhat it checks
1Payee BookWhether the recipient is known, cooling off, or blocked
2Spend WindowPayment, daily, and automatic spending limits
3Duplicate GuardRecently requested recipient and amount pairs
4Mandate CheckWhether an owner's spending permission covers the request
5Match VerifierWhether settlement used the recorded recipient and amount
6Anomaly GuardWhether the amount exceeds the payee's usual range
7Velocity GuardHow many requests arrived in the current window
8Trust LadderHow clean payments, anomalies, and rejections change payee trust
9Panic LatchWhether consecutive blocks should freeze the account

What you can try today

  • Follow a payment. The public console shows the request, the reason it paid, waited, or was blocked, and the receipt if it settled. Request #10 paid a recipient distinct from the owner and agent. Public demo · Separate-recipient proof
  • Replay without a wallet. Open the published DeWEB scenarios through TapeKit or replay a recorded request in the console. The trust reset also replayed on a physical phone. DeWEB replay · Phone evidence
  • Verify an alert. Xing's inbox shows pending, blocked, and settled examples and checks their digests against the on-chain TapeSend inbox. Open the inbox · Delivery evidence

What Xing leaves out by design

  • Open rule marketplace. Xing uses a fixed suite of nine pinned circuits so their behavior can be tested and proven as a set. Circuit publication and proof scope
  • Rule compiler. Owners configure the spending rules on deployed checks. Generating new circuits is outside this submission because the goal is to make the same checks verifiable across requests. Circuit specification
  • Agent transfer permissions. The request-only key keeps transfer authority with the account rules and the owner. Permission checks
  • Live fees and multi-owner approval. Both are outside this submission because they need separate designs and verification. Proposed business model

Current limits

  • Assurance. Xing has no third-party audit. The published circuit netlists were tested and exhaustively proven against the checked-in reference functions over their finite input and latch-prestate domains. Proof scope and threat model
  • Demo scale. Mainnet evidence uses small balances and demo or test wallets. TODO: add verified outside tester evidence. Recorded deployments · Outside tester evidence slots
  • TapeSend client. TapeSend delivery is verified on chain; the official client does not yet display X Layer messages because it does not recognise the live hub implementation; Xing's inbox view reads the same hub and verifies digests. TapeSend evidence
  • Pricing and video. Prices are proposed and untested. The demo collects no Xing fees. The demo video has yet to be recorded. Proposed economics · Video TODO
  • Browser signing. The recorded browser-wallet deposit is verified. TODO: record and verify a browser-wallet settlement. Signer-path evidence
  • Operational risks. A compromised agent can submit requests and trigger payments that qualify under the account rules. The agent cannot move funds itself, and loss is bounded by the owner's limits, mandates and hard caps. A compromised crier can affect alert delivery, and an RPC failure can interrupt live reads or replay. Threat model · Relay limits

Compare static spend limits, session keys, pre-sign checkers and Request Finance · Assurance · Verification · Simulated benchmark

Run Xing locally

Use Git and Node.js 22 for the console. Install Python 3 and Foundry for the checks. Confirm that forge --version reports the Foundry CLI.

  1. Clone the repository.

    git clone https://github.com/datharnu/xing.git
    cd xing
    
  2. Start the console. From the repository root, install from the web lockfile and run the development server.

    npm --prefix web ci
    npm --prefix web run dev
    

    Open the local URL printed by Next.js and add /app?demo=1 to view recorded requests without connecting a wallet. Open /inbox for TapeSend alerts or /certificates for circuit hashes. Live reads and replay need a reachable X Layer RPC. Set XLAYER_RPC_URL on the server to use a different endpoint. Hosting settings

  3. Check the contracts and circuit truth tables. In a second terminal, run these commands from the repository root. Foundry runs the local contract tests with test doubles, and the Python commands check the circuit outputs and state transitions.

    forge test --offline
    python3 -B -m unittest discover -s circuits -v
    python3 -B circuits/prove.py
    

    Foundry needs a cached Solidity compiler for offline runs. On a fresh setup, run forge test with network access to fetch the compiler. See the assurance notes for expected coverage and the fork rehearsal for testing against the deployed processor on a local Anvil fork.

  4. Try the agent tools. Build the SDK and MCP server from the clone, then configure the MCP client for the demo account and call xing_status for request 1. Local packages · Read-only MCP setup

Find the code and evidence

  • src/ holds the account, factory, registry, and TapeSend herald contracts. test/ covers permissions, settlement, stateful rules, and alert delivery.
  • circuits/ defines the circuit logic and includes the proof and fork rehearsal scripts.
  • web/ contains the console, inbox, and decision JSON API. agent/ contains the SDK and MCP server.
  • deweb/ contains the replay build and published-byte verifier. deployments/ holds addresses, circuit certificates, and recorded transaction journals.
  • docs/ contains the submission, verification guide, and assurance notes.

Back to top

NPM
xing-mcp
Install Command
npm install xing-mcp