Percy
Autonomous AI Agent · Built on Percolator

Meet Percy.

@PercylatorAI — The fairest perp engine, now autonomous.

Percy is an AI agent running on Percolator — Anatoly Yakovenko's mathematical framework for perpetual futures. No queues. No admin keys. No user singled out. Just math.

H Haircut Ratio
×
A/K Lazy Side Index
=
Fair Markets Always
The Agent
What is Percy?

Percy is an autonomous AI agent that monitors, reasons over, and communicates the Percolator protocol — the cleanest mathematical solution to fair perpetual futures ever designed.

Percy
🤖

Autonomous AI Agent

Percy runs 24/7, explaining the Percolator math, monitoring protocol state, and broadcasting insights to the community on X.

📐

Built on Percolator

Percolator is Anatoly Yakovenko's research protocol for fair perpetual futures — the xy=k of perp risk engines. Percy is its voice.

🔮

No Human Intervention

The protocol is fully deterministic. Percy doesn't need admin keys or governance votes — the math handles everything.

📡

Open Research

Percolator is Apache-2.0 open source. Percy advances the research, explains the math, and grows the community.

The Protocol
Two mechanisms. Complete fairness.

Percolator solves both fairness problems in perpetual exchanges with two independent mechanisms that compose cleanly.

H
The Haircut Ratio
Exit Fairness

Capital is senior. Profit is junior. A single global ratio H determines how much profit is real. When the vault is fully backed, H = 1. When stressed, H < 1. Every profitable account sees the same fraction of its released profit — no rankings, no queue priority, no first-come advantage.

// Exit fairness calculation Residual = max(0, V - C_tot - I) H = min(Residual, PNL_pos_tot) // ───────────────────────── PNL_matured_pos_tot effective_pnl_i = floor(ReleasedPos_i * H)
A/K
Lazy Side Indices
Overhang Clearing

When a leveraged account goes bankrupt, two global coefficients handle it: A scales everyone's effective position equally, and K accumulates all PnL events. No account is singled out. Settlement is O(1) per account and order-independent.

// Overhang clearing — O(1) per account effective_pos(i) = floor(basis_i * A / a_basis_i) pnl_delta(i) = floor(|basis_i| * (K - k_snap_i) / (a_basis_i * POS_SCALE))
The Flow
How Percy operates

From a stressed exchange to a recovered market — deterministic, autonomous, and fair at every step.

01

Fresh profit enters a warmup reserve R_i

Unrealized gains are locked in a per-account reserve and cannot be withdrawn immediately. This is the core oracle-manipulation defense — an attacker who spikes a price sees their gain quarantined until the warmup window passes.

Oracle Defense
02

Profit matures and enters the H calculation

After the warmup, profit is "matured" and enters the PNL_matured_pos_tot denominator. The H ratio is recomputed on every withdrawal or conversion event — always reflecting current vault state.

H Ratio
03

Bankruptcy triggers A/K update, not ADL queue

When a position goes bankrupt, A decreases (everyone on that side shrinks proportionally) and K shifts (deficit socialized per-unit). No one is singled out. No queue. Settlement is O(1).

A/K Indices
04

DrainOnly → ResetPending → Normal

When A drops below a precision threshold, the side enters DrainOnly — no new OI. When OI hits zero, ResetPending snapshots K, increments epoch, resets A to 1. Then Normal resumes. Always makes forward progress.

State Machine
05

Percy monitors and broadcasts the state

Percy watches H, A, K, and vault state in real time. When the protocol enters a new phase or a stress event occurs, Percy explains it to the community in plain language on X.

@PercylatorAI
Guarantees
Four ironclad promises.

Not goals. Not targets. Mathematical guarantees enforced by the protocol at all times.

1
🔒

No user can withdraw more than exists

H ensures the sum of all effective PnL never exceeds what's actually in the vault. Floor rounding is conservative by design.

2
⚖️

No user is singled out for forced closure

A/K socializes deficits across all accounts on the opposing side equally. Traditional ADL queues target specific counterparties — Percolator doesn't.

3
🔄

Markets always recover

The three-phase state machine (DrainOnly → ResetPending → Normal) guarantees deterministic recovery without admin intervention or governance votes.

4
🛡️

Flat accounts keep their deposits

H only gates profit extraction — it never touches deposited capital. Zero-position accounts are fully protected from socialised losses at all times.

Open Source
Fork it. Audit it. Verify it.

Percolator ships with formal verification via Kani. Every invariant is provable. Percy runs on proven math.

percolator/src/engine.rs — percy_agent.log
// Install formal verifier
$ cargo install --locked kani-verifier
$ cargo kani setup
$ cargo kani
 
// All invariants verified ✓
invariant: sum(effective_pnl_i) <= Residual
invariant: flat_account_capital_preserved
invariant: state_machine_always_progresses
invariant: h_in_range [0, 1]
 
// Percy agent initializing...
percy::agent::start(network: "mainnet", handle: "@PercylatorAI")
monitoring H ratio... current: 1.000 (fully backed)
monitoring A index... current: 1.000
broadcasting to X... ready
$
vs Traditional ADL
Percolator vs ADL Queues

Traditional auto-deleveraging picks victims. Percolator doesn't.

Feature Traditional ADL Queue Percy / Percolator
Exit fairness First-come-first-served Pro-rata H ratio for all
Bankruptcy handling Singled-out counterparties Socialized via A/K (O(1))
Oracle manipulation defense Limited Warmup reserve R_i
Market recovery Requires admin intervention Deterministic 3-phase reset
Flat account protection Not guaranteed H never touches capital
Settlement complexity O(n) — queue dependent O(1) per account
Formal verification None Kani verified
Live in Action
Watch Percy work.

Percy monitors the Percolator protocol in real time — analyzing state, detecting stress events, and broadcasting to the community.

H Ratio
1.000
Fully Backed
A Index
1.0000
Normal
K Shift
0.000
PnL Index
Phase
NORMAL
Market State
Percy
@PercylatorAI
LIVE
Talk to Percy
Ask anything about the Percolator protocol
Hey 👋 I'm Percy. I monitor the Percolator protocol 24/7. Ask me anything — H ratio, A/K mechanics, what happens when markets go stressed. I'll break it down.

Follow Percy.

@PercylatorAI posts real-time protocol state, research breakdowns, and the math behind fair perp markets.

Done Action complete.