Working paper No. 1
Allocation under published rules
How far a fixed policy can go before it needs human judgment, and how to tell when it has gone too far.
Draft
Commune is autonomous DeFi infrastructure. Onchain agents pool liquidity from many depositors and allocate it across lending markets and exchanges, following a published policy that no single party can change.
Custody
Non-custodial vaults
Decisions
Made by rule-bound agents
Policy changes
Seven-day public timelock
Record
Every action written onchain
§1
Most DeFi capital is still managed by hand, one wallet at a time. Commune treats that work as shared infrastructure: one pool, a few bounded agents and a policy anyone can read.
Each depositor watches rates, prices risk and rebalances alone. The same work is repeated thousands of times, and the results are uneven: the attentive do well, and everyone else carries idle or misplaced capital.
In Commune, depositors contribute to a common pool. A small set of autonomous agents does the watching and the moving, bounded by a policy written in advance and enforced by contract. Returns and losses would be shared pro rata. Policy constraints do not eliminate loss risk.
The design borrows from older institutions: the clearing house, the mutual fund, the cooperative bank. What is new is that the clerk is software and its ledger is public.1
1 In medieval Europe a commune was a sworn association of townspeople who pooled their resources and governed them by charter.
§2
Commune runs in epochs. In each one the agents read the market, score every venue against the policy and move capital only where the rules allow.
Agents read rates, utilization and depth from every approved venue each epoch.
Each venue is scored on yield net of risk, using the weights set in the policy.
Capital moves toward the best-scoring venues, never past a venue's cap.
Deposits and withdrawals are matched against each other first, so fewer transfers reach the market.
Each decision is written onchain with its inputs, so anyone can replay it.
§3
Four agents share the work. Each has one job and a hard limit on what it can do. None of them can change the policy or withdraw on anyone's behalf.
| Agent | Role | Runs | Limit |
|---|---|---|---|
| Allocator | Moves capital between approved venues | every epoch | Per-venue cap and reserve floor |
| Sentinel | Watches prices, oracles and venue health | continuous | Can pause a venue, cannot move funds |
| Clearer | Nets deposits against withdrawals | every epoch | Queue no longer than one epoch |
| Recorder | Publishes each decision with its inputs | every action | Append-only log |
§4
The policy is a short list of numbers. Changing any of them takes a public proposal and a seven-day wait before the change applies.
Policy parameters, draft v0.1
| Epoch length | 6 h |
| Max share per venue | 35% |
| Reserve floor | 10% |
| Oracle deviation halt | 2.0% |
| Withdrawal queue | ≤ 1 epoch |
| Policy timelock | 7 days |
Final values ship with the audited contracts.
§5
Commune is built in the open. Each part of the design is written up and published before it ships.
Working paper No. 1
How far a fixed policy can go before it needs human judgment, and how to tell when it has gone too far.
Draft
Working paper No. 2
How much market impact is saved by matching deposits and withdrawals inside the pool before anything reaches a venue.
In progress
Working paper No. 3
What the system does when an oracle, a venue or one of its own agents stops behaving as expected.
Planned
Review the proposed parameters and design before using any future deployment. The protocol is at the research stage.