Skip to Main Content

Imagine giving an AI agent access to your money and telling it to make trades on your behalf. You trust it to make decisions, but what happens when it makes a mistake? What if it accidentally executes the same trade twice because of a network timeout? What if it buys more shares than you can afford? These aren't just hypothetical problems. Alpaca, a brokerage platform, has explicitly warned that retrying an order after an error can result in duplicate trades. Delayed fill updates and partial fills make this an even bigger challenge. That's why we're building TradeOnce. TradeOnce repairs the code, independently verifies the trades, and remembers what worked. Repair: Google Research Harness² proposes better instructions, probes them by running Gemini 4 Argon's Python fixes, then composes improved guidance (Propose-Probe-Compose). Verify: patches use typed Pydantic contracts and run in a macOS sandbox against a fault-injecting broker simulator. A fixed Python Auditor checks the broker ledger, regressions, and private tests. The Builder cannot edit the Judge or its hidden cases. Remember: Git versions the approved code. MongoDB saves verified Builder guidance with revision checks; rejection keeps the previous state. The next task starts with broken code and reloads the approved lesson through a fresh database connection. Measured results: Recorded coding run: timeout repair took 3 proposals / 147 seconds; a related server-error repair with the saved lesson took 1 proposal / 36 seconds. Both passed 5/5 hidden checks. Different tasks: observed lesson transfer, not a controlled speedup. Six matched Alpaca paper-broker scenarios: the original Executor made 3 duplicate orders; the Gemini-written version made 0 and completed 6/6 safely by our checks. The unmodified ai-hedge-fund pipeline runs through our adapter. These use fake money, real broker APIs, injected faults, and cached stand-in analyst signals.

Team

geeteshc10shrhiranush_harish+1

More from AIE Code Summit 2026 Hackathon

Labbit is a minimal live robotic-hand workbench and a reproducible simulation dataset factory. The goal is 100,000 useful, diverse 20-second episodes of…

Labbit project preview

A lot of what you send a coding agent is easy - “yes, push it”, “commit it”. Sending that to a cheap model sounds smart, but every switch kills the prompt…

Frankenstein brings back the lost source code of classic games by rewriting it, byte-for-byte. Meta's Muse reads a game's compiled cartridge and rewrites the…

Frankenstein project preview

Self improving editing software for short form content. "one must imagine Sisyphus editing"

Sisyphus project preview

Clean Room rebuilds software by watching it. No source code, no decompiler, no peeking under the hood. You show it an app running, a phone calculator, a…

ShriAli project preview

child-1 makes LLM decode faster on the Qualcomm Hexagon NPU and proves every speedup on a real phone. It optimizes llama.cpp's Hexagon NPU backend…

Child1 project preview