Origin story

The kiln that built VEGA

How a solo trader's struggle with discipline became a governance platform for regulated industries.

By Leon Cigler · July 2026 · 8 min read

VEGA did not start as a platform idea. It started as a trading bot that kept breaking itself.

In 2023, I began building an automated cryptocurrency trading system. One-hour candles, TradingView indicators, a VPS on Oracle Cloud running 24/7. The technical part was straightforward. The hard part was everything around it.

The bot had a 48% win rate. That means it loses more often than it wins. The math still works because winners are larger than losers. But here is what nobody tells you about a 48% win rate: you will regularly have 5 or 6 consecutive losses. The probability is about 2%. It will happen every few months, like clockwork.

And every time it happens, the same voice appears: change the parameters.

Chapter 1

The optimization trap

My parameters had survived Walk-Forward Analysis across 4 years of data, 25 coins, 35,000+ price bars. They were validated. But after 4 losing trades in a row, none of that felt real. The urge to "fix" things was overwhelming.

I gave in. Multiple times. Every time I changed parameters after a short losing streak, I destroyed the statistical validation that made the strategy viable in the first place. I was not improving the system. I was fitting it to noise.

The worst version of this happened in early 2026. I added four filter modules over two months. Each one looked good in isolation. When I ran them together, three out of six pairs cancelled each other out. The baseline without any of them performed better. Months of work for negative value.

The problem was never the bot. The problem was the process by which I made decisions about the bot.

Chapter 2

Three AIs that cannot see each other

The solution came from an unlikely place: adversarial review.

I started sending every proposed change to three different AI models, each with a fixed role and no visibility into what the others said. The protocol was simple: a skeptic looks for statistical flaws, an optimist looks for engineering problems, and an arbiter synthesizes and casts the deciding vote.

Skeptic
Hunts overfitting, sample size gaps, confirmation bias
Optimist
Flags architecture risks, scope creep, missing edge cases
Arbiter
Verifies claims against actual code, synthesizes, votes

I called it KGR: Knowledge Guard Review. The first rule was non-negotiable: verified beats claimed. If any reviewer asserts something about the code, the arbiter checks the production server with grep before accepting it. Logical reasoning is a hypothesis. Code on disk is a verdict.

In its first month, KGR caught a resource allocation conflict between concurrent decision modules. Two independent subsystems had each built their own sizing logic. Neither knew the other existed. Both could claim the same resources simultaneously. A path to catastrophic failure that no single reviewer would have found.

No single reviewer would have caught it. The skeptic flagged the statistical anomaly in position sizes. The optimist traced it to the architecture. The arbiter confirmed both codepaths existed on the production server. Three perspectives, one truth.

80+
Review rounds
5
Modules killed
>98%
Legal accuracy
0
Overridden verdicts

Chapter 3

Six rules written in losses

Over 420+ versions of the bot, a set of immutable rules crystallized. Not from theory, but from specific, documented failures. Each rule has an evidence file with the exact trade, the exact mistake, and the exact loss.

RuleWhat it saysWhere it came from
R1 Never trust a single regime A strategy that only works in bull markets is not a strategy
R2 Verify data integrity first Missing data the bot cannot detect silently corrupts results
R3 Wait for n=30 before concluding An XLM trade that lost 6.4% looked like a pattern at n=2
R4 Never lower a threshold from boredom When the bot stops trading, the urge to lower the entry bar is not insight
R5 If you cannot ls it on production, it does not exist Code that only lives in backtests is fiction
R6 An indicator is a number; a narrative is a wish Stories about why something should work are not evidence

These rules are not guidelines. They are circuit breakers. When I proposed changing parameters after four losses in May 2026, the system blocked me with my own words from three weeks earlier. The bot had logged the date, the evidence, and the exact emotional state I was in when I wrote the rule. It was arguing with a version of myself that was thinking more clearly.

· · ·

Chapter 4

The hospital test

In June 2026, a colleague at a public-sector institution asked for help. They had approximately 80 internal regulatory documents: governance protocols, standard operating procedures, compliance records. Some of them might reference outdated legislation. Checking manually would take weeks.

I ran the same KGR protocol on the documents. Three AI reviewers, each examining independently, adversarial verification of every legal reference.

The result: over 100 compliance findings across multiple departments. One finding was critical: a governance body had expanded its formal remit beyond its original legislative mandate. The relevant authority belonged to a national-level commission, not the institution itself. It was not a typo. It was a jurisdictional anomaly with real legal consequences, buried deep in the document matrix.

"How long would it have taken you to find this manually across approximately 80 documents?" The question that changed the project's direction

That moment clarified something. The KGR protocol was not a trading tool. It was a document governance tool that happened to be born in trading.

Chapter 5

The kiln metaphor

There is a moment in ceramics when the sculpture moves from clay to kiln. In clay, you can reshape endlessly. In the kiln, you cannot open the door. If you do, the piece cracks from thermal shock.

I recognized this pattern in my own work. The transition from backtesting (clay) to live trading (kiln) required a different psychology. The artist in me wanted to keep reshaping. The engineer needed to close the door and wait.

Kip peče. Ne odpiraj peči. "The sculpture is firing. Do not open the kiln." — The mantra that held the freeze

In June 2026, the bot went into a data-collection freeze. No parameter changes. No new modules. Just collect data and wait for September. During that freeze, the methodology kept working on other problems. The same adversarial review that stopped me from destroying my trading validation was now catching legal anomalies in hospital documents.

Chapter 6

From bot to platform

VEGA is the generalization of everything that was built to keep one trading bot honest. Every architectural decision traces back to a real failure:

Governance immunity
From the Anti-Idle Protocol, when AIs proposed "just a small fix" three times during a freeze
Data isolation
From the dual-sizer bug, when one strategy did not know the other existed
Pipeline integrity
From the sandbox trap, when code existed only in backtests, not production
AI agnosticism
From swapping Kimi for DeepSeek and Gemini for GPT-4o without breaking the protocol
Legislation as configuration
From the compliance audit, when a law changed and every document needed rechecking
Offline first
From Oracle VPS outages that should not stop document processing
Auditability
From 80+ KGR rounds, each with evidence files, verdicts, and a traceable decision chain

The module protection system (four tiers from immutable to community-contributed) mirrors the bot architecture where some modules are locked and others are experimental. The document pipeline (upload, OCR, verification, AI review, approved) is the same pipeline that processes trading signals, adapted for regulatory documents. The legislative similarity groups that organize EU countries by legal tradition came from the compliance audit that revealed how differently Slovenia and Germany regulate the same medical procedure.

Chapter 7

The meta-proof

In July 2026, the VEGA Platform Specification went through its own KGR review. Round 80. Three independent reviewers examined the specification that defines how reviews should work.

They found 8 issues. A missing liability disclaimer. Insufficient GDPR data-retention language. A group name with political connotations. An apparent paradox in how "immutable" modules could receive security patches.

All 8 were fixed. All 3 reviewers ratified unanimously. The specification was improved by the process it describes.

This page exists because KGR reviewed it first. The closing line of the VEGA landing page
· · ·

VEGA was not designed on a whiteboard. It was extracted from 420 versions of a trading bot, 80 adversarial review rounds, a compliance audit of approximately 80 institutional documents, 6 rules written in real losses, and one sculptor's metaphor about not opening the kiln.

The bot is still in the kiln. The methodology is already outside it.

Early 2026
The overlay disaster
4 modules, each validated alone, cancel each other out when combined. Months of work deleted.
April 2026
KGR protocol matures
AI council self-regulates without human intervention for the first time. 8 review cycles in one session.
May 2026
Core Six rules locked
6 immutable rules, each backed by evidence files. The system can now argue with its creator.
June 2026
Hospital compliance audit
~80 documents, over 100 findings, one critical jurisdictional anomaly. Same protocol, different domain.
June 2026
VEGA Testament ratified
Constitutional document for the ecosystem. Tier 5 protection: unanimous vote of all reviewers required to amend.
July 2026
Platform Specification v1.0
KGR R80. The specification reviewed by its own protocol. 8 issues found, fixed, ratified 3/3.

Read the specification

The Platform Specification v1.0 is a Tier 4 reference document,
ratified through the process it describes.

vegaplatform.app
VEGA is licensed under EUPL v1.2. The KGR protocol is AI-agnostic: roles (skeptic, optimist, arbiter) are fixed; the AI models filling them are interchangeable. The trading bot referenced in this post operates on the author's personal capital only and does not constitute investment advice. All institutional references, document counts, and finding numbers are illustrative and anonymized. Published research: Zenodo DOI 10.5281/zenodo.21213874.