Demo · simulated data
ABOUT

How the tiny machine works.

Pocket Mainframe is a concept for a treasury you can audit by watching. This site is a front-end demo of that idea: everything on it is generated in your browser.

The idea

A token generates small fees. Instead of vanishing into a black box, those fees flow into one machine. A fixed splitter divides each fee between four buckets, and 96 small agents each run one desk's rules with their share. Every action is written to a public ledger the moment it happens.

The point is not that the agents are clever. The point is that you can read exactly what they did, check it against stated rules, and decide for yourself whether you trust the machine.

The four buckets

Trading — short-lived long and short positions on fictional tickers, each with a target, a stop and a time limit.

Lending — a vault spread over three pools. The blended rate moves with utilization.

Dice — a small bankroll bet on a simulated over/under dice game at fixed bet sizes.

Reserve — a buffer nobody trades. Its share is checked against the target on a schedule.

Transparency, specifically

"Transparent" is cheap to say. Here is what this demo actually commits to, and what a real version would need to match.

  • Every state change is a row. Fee in, split, position opened, position closed, roll played, interest posted, pool shifted, allocation changed.
  • The rules are printed. The dice odds table below is generated from the same function the agents call, and live rolls can be re-derived from a committed seed.
  • Config changes are logged. Moving the splitter writes a "Config" row with the before and after values.
  • Receipts are placeholders. Each row carries an id shaped like DEMO…a3f9. In a real system this is where a verifiable reference would go.

A ledger row looks like this:

{
  "time":    "14:02:31",
  "agent":   "Pip Gamma (#018)",
  "type":    "Trading",
  "action":  "Closed long ZORP · 0.04120 → 0.04188 · held 0:46",
  "amount":  "+$1.84",
  "receipt": "DEMO…a3f9"
}

What the ledger does not show: the agents' internal reasoning beyond a short note, and anything that happens outside the four desks. A real deployment should say plainly where those limits are.

Desk rules

Trading. At most nine positions are open at once. Each position gets a take-profit between 1.2% and 4%, a stop between 1% and 3%, and a time limit. Costs are charged on every close, so a flat trade is a small loss.

Lending. The vault rate is a function of utilization plus noise, and is clamped to a sane range. The demo clock runs 600× faster so you can see interest accrue.

Dice. Two six-sided dice. An agent bets that the sum lands over or under a target; landing exactly on the target loses. The payout multiplier is 0.98 divided by the win chance, so the house keeps 2%. Bets are fixed per agent and set by its risk level. Each live roll is derived from a hash of server seed, client seed and nonce; the server seed is committed (its hash is shown) and revealed every 25 rolls so you can verify the round on the home page. This is a provably-fair-style demo using a small non-cryptographic hash, not an audited system.

Over bets: win chance and payout

Under bets: win chance and payout

Payout is the multiplier on the bet (stake included). Landing exactly on the target loses.

Risks (read this)

This demo has no real risk because it has no real assets. A real treasury machine would, and it would be wrong to pretend otherwise.

  • Trading can lose money. Small, illiquid tokens can gap, vanish or be manipulated. Stops do not always fill.
  • Lending can fail. Borrowers can default, collateral can fall faster than liquidations, and contracts can have bugs.
  • Dice has a negative expectation. The 2% house edge loses a little over time whatever target is chosen. Short runs are noisy; long runs are not kind.
  • Agents can be wrong. Scripted or AI-driven, an agent can follow a bad rule perfectly. Limits and a reserve exist for that reason, and they can still be too loose.
  • Transparency is not safety. A public log lets you see losses. It does not prevent them, and it does not guarantee any payout.

Concept demo. Not financial advice. No real assets. No promise of returns.

FAQ

What is actually simulated?

All of it: prices, positions, interest, dice rolls, fees, balances, agent names and personalities, and the pre-generated history. A seeded generator builds the history; live events use your browser's random numbers.

Is there a token, wallet or contract?

There is no token and no contract. You can sign in with your Solana wallet by signing a plain message; we never request transactions or move funds. Sponsoring an agent just adds a local badge with your short address in this browser.

Why do some agents never seem to do anything?

Reserve agents mostly rest by design, and any agent can be idle between moves. Blinking cells are agents that are working right now.

Can the agents beat the dice desk?

No. Every bet pays slightly less than its fair odds, so over many rolls the dice bucket drifts down on average, and the demo does not hide that.

What does the demo clock mean?

Interest is real-time arithmetic multiplied by 600 so a counter visibly ticks. In a real vault it would move far more slowly.

Does anything I do get saved or sent anywhere?

No. Slider changes and ledger filters live only in the page. The ledger export creates a CSV on your device from the rows you see.

How do I reset the demo?

Reload the page. The machine restarts from its seeded state.