HashKey Chain Horizon Hackathon · AI track
The agent has to earn the right to trade
Glassbox is an AI trading agent that writes every prediction to HSK Chain before the outcome is known. The chain scores it. Until its public record passes a fixed test, the contract refuses to switch live trading on, even for the owner.
RiskGuard 0x9414c8E3aE3cB696A5Eb29D6600289001D9a96D0
2-minute demo video
Coming here before submission. Until then, the two real clips below show the safety stops working.
How it works, in three steps
The agent cannot quietly drop its bad calls, and nobody can turn it loose before the record is in.
- Paper trades are priced from the live HSKSwap V3 WHSK/USDT pool on mainnet, not a mock.
- Owner and operator are separate keys: the operator runs the agent, only the owner can ask for live mode, and the contract still says no until the gate passes.
- If the agent crashes, its trade ledger is checked against a hash stored on-chain before it runs again. A mismatch halts it for a human. A price older than 20 seconds also halts it.
What is different from the look-alikes
Other AI trading entries on HSK Chain either trade first and hope, or keep a record that nothing reads. Glassbox makes the record the key.
| Question | Chat + vault agents (Keel, SayTrade) | Record-only (HSKHorizon) | Glassbox |
|---|---|---|---|
| When can it trade real money? | From day one, inside spending caps | Not its job | Only after its on-chain record passes the gate |
| Is the track record checked? | No record before going live | Recorded, never enforced | Scored by the contract, enforced by setLive |
| Do they trade real pools? | Yes, live, with no record behind it | Does not trade | Paper trades on the live HSKSwap V3 pool until the gate passes |
| Shows what happens when it breaks? | No | No | Yes: crash-restart and stale-price halts, on video |
| Chat? | The headline | - | A side panel; the gate is the product |
Live public scorecard
Rebuilt from RiskGuard events on HSK mainnet, then cross-checked against the contract's own counters. Anyone can rerun the recount: npx hardhat run scripts/scorecard.js.
Committed
-
Scored
-
Still open
-
Voided (tiny move)
-
Average Brier (≤ 0.20 needed)
-
Live-trading gate
-
| # | Chance of up | Status | Brier | Commit tx |
|---|---|---|---|---|
| Loading… | ||||
Paper only. Live trading is off.
- The contract reports
live = false, and the gate has not passed yet. You can check both on the explorer. - Every trade shown is a paper trade, priced from the real pool, with a 30 bps fee assumed. No funds move.
- No profit is claimed or promised. A good forecast score is not a promise of returns.
Roadmap
- DoneRiskGuard deployed and verified on HSK mainnet; HSKSwap V3 price adapter; crash-safe ledger; stale-price halt; 52 passing tests.
- Next weeksCommit a 24-hour call about every 6.6 hours (27 in all) until 10+ predictions are scored, in public, whatever the result. Moves under 0.1% are voided, not scored.
- After the gateSmall live trades only, behind the existing hourly cap, with the same scoring kept on.
- LaterA gate any agent can plug into, so other HSK agents can earn their leash the same way. Legal review for Korea (EFTA, VAUPA, PIPA) before any real users.
Code
Contracts, agent, tests and the scorecard recount are in one repository.