An open research program building toward domain super-intelligence for Python software engineering โ a deterministic predictor that judges any AI-generated code change Pass or Fail against reality, before you ever trust it.
The Mission ยท Why It Matters ยท What It Does ยท How It Works ยท The Journey ยท Roadmap
This repository is the public window into one mission: teaching a machine to predict, with certainty, whether AI-generated software actually works. It is where you can watch โ commit by commit, number by number โ an AI agent climb toward domain super-intelligence for Python software engineering. Crack Python, and the same blueprint unlocks every other language. Unlock every language, and you unlock super-intelligence for the entire discipline of engineering. That is the goal. This is the climb.
Today, AI can write code. It cannot know whether that code is correct โ and neither can you, until a human reads it or a test suite runs. That trust gap is the single biggest thing standing between "AI that suggests code" and "AI that ships engineering."
The Oracle closes that gap. It is a binary reality predictor: give it any change an AI agent proposes to a Python codebase, and it tells you whether that change will pass or fail against the ground truth of real, executed tests โ and it tells you why when it predicts failure.
The mission is deliberately staged:
Python software engineering โโบ every programming language โโบ engineering itself
โโ prove it once, rigorously โโ โโ replicate the blueprint โโ โโ domain super-intelligence โโ
When the predictor is right often enough, reliably enough, on hard enough problems, a line is crossed: reviewing AI-generated Python patches by hand becomes statistically unjustified. That crossing is the first instance of domain super-intelligence โ and the template for all the rest.
AI writes code faster than any human can possibly review it. But speed without trust is a liability:
- ๐ณ๏ธ AI hallucinates correctness. It will confidently claim a fix works when it doesn't.
- ๐ง Human review doesn't scale. Reading every AI patch re-introduces the bottleneck AI was supposed to remove.
- ๐ฒ "Looks right" isn't "is right." Static inspection โ by humans or models โ repeatedly fails to catch behavioral bugs that only surface when the code actually runs.
The Oracle's answer is to stop guessing from how code looks and start predicting from what code does. Every verdict is anchored to a single, incorruptible source of truth: the real test suite, executed in a real environment. No vibes. No opinions. Just a falsifiable prediction against reality.
The promise: Ship AI-written Python with the confidence that a calibrated machine โ not a tired reviewer at 4 PM โ has already told you whether it works.
For any AI-generated code change, the Oracle answers four grounded questions โ each one checked against reality, not asserted:
| Question | What you get | Grounded against | |
|---|---|---|---|
| Q1 | Does what the AI claimed it did actually exist? | Pass / Fail | The bytes & AST on disk |
| Q2 | Does the change work? | Pass / Fail + confidence | The real Docker test oracle |
| Q3 | Why would it fail? | A named failure mode + closest real examples | Attached to the Q2 verdict |
| Q5 | How does it impact reality? | Predicted vs. observed change events | The live runtime shift log |
Feature โ benefit, in one line each:
| The Oracle gives youโฆ | โฆso that you can |
|---|---|
| A binary Pass/Fail verdict on AI code | trust a patch without reading every line |
| A calibrated confidence + abstention | know exactly when not to trust the prediction |
| A named reason on predicted failure | fix the real defect instead of hunting for it |
| Verdicts anchored to executed tests | stop shipping code that only looks correct |
| A learning loop that converts mistakes into training | watch the predictor get sharper over time |
The Oracle is built on ME-JEPA-Code โ a Joint-Embedding Predictive Architecture for code. The pipeline is deliberately simple to state and hard to fool:
- Perceive. An AI agent's edit โ its
Edit,Write,Bash, and test runs โ is the data-generating process. The Oracle perceives the change as it happens. - Encode. The change is projected through a panel of distinct, frozen embedders โ each a different "sense" for what code means (see The Panel below).
- Predict. A trained head emits a binary verdict with a conformal confidence interval and a teleological-constellation guard that rejects out-of-distribution inputs instead of bluffing.
- Ground. The verdict is measured against the Docker oracle โ
swebench.harness.run_evaluationโ the same real test execution that defines whether code truly works. - Learn. Every miss becomes weighted training signal through a protected mistake-loop, so the predictor's calibration improves with experience.
The discipline that makes it trustworthy: fail closed on the unknown, never fake a pass, and read the source of truth back for every claim.
The Oracle never collapses code into a single opaque vector. Instead it builds a teleological constellation โ an array of per-embedder vectors, each living in its own space, each a different perspective on the same change. Meaning emerges from the whole constellation, the way a single star tells you nothing but a constellation tells you where you are.
A core research finding drives the whole program: static embedders see what code looks like, not what it does. Behavioral bugs hide in execution, not in syntax. So the frontier of this work is teaching the panel to perceive execution โ coverage, value divergence, and real test behavior โ which is exactly where the Oracle's accuracy has climbed the most.
Everything here traces to one falsifiable predicate โ and it is deliberately strict. A single high accuracy number is not enough. The system has reached domain super-intelligence for Python only when every condition below holds at once, and stays true across time:
SUPERHUMAN_VERIFIER(Python) โ โ a deterministic predictor P such that:
TIER 1 โ ship-gate numbers
corr(P, Docker-oracle) โฅ 0.95 (raw Pearson vs real test Pass/Fail)
STABLE ร 4 consecutive rolling windows
AND a second, independent sensor panel also โฅ 0.95
AND |corr_A โ corr_B| โค 0.05 (learned reality, not one panel)
TIER 2 โ per-cell quality
every (mutation-class ร language) cell clears its own bar
(Pearson / class-recall + Brier โค 0.05 + ECE โค 0.05 + conformal coverage)
TIER 3 โ it learns from being wrong
mistake_repeat_rate โค 0.05 AND no damage to unrelated cells
TIER 4 โ doctrine invariants hold EXACTLY (fences, not goals)
slot identity preserved ยท no flat-vector fusion ยท no inner generator ยท
frozen-target gradient leak = 0 ยท oracle labels never used as live inputs
TIER 5 โ the substrate can actually carry the answer
I(panel ; oracle) โฅ 0.95 bits (the panel SHARES the verdict's bits)
oracle_self_consistency โฅ 0.97 (the oracle agrees with itself)
oracle_validity โฅ 0.97 (the verdict tracks real correctness)
TIER 6 โ every sensor earns its place
novelty < 0.7 vs existing slots AND per-cell utility lift โฅ 0.005
Two facts make this honest rather than aspirational:
- The oracle is the ceiling. You can never agree with the test oracle more often than it agrees with itself โ and only when its verdicts track real correctness. So
0.95is bounded above by oracle self-consistency and validity, and we measure and defend the oracle first. - The panel must carry the bits before any model can. By the data-processing inequality, no predictor can know more about the verdict than
I(panel; oracle)shares with it. If the panel is information-starved, no amount of training moves Tier 1. That is the current binding constraint โ see the climb below.
The moment this whole predicate evaluates TRUE and holds, human review of AI-generated Python patches becomes statistically unjustified. That is the finish line โ the first instance of operational super-intelligence in a domain, and the template for every domain after it.
๐ The complete predicate โ all five eligibility prerequisites, all six tiers, every threshold and why it has that value, the verification protocol, and the full predictor architecture โ is set out in the project's North Star specification, developed alongside the companion papers The Oracle and the Kernel (the oracle as grounding anchor; mutual information as a kernel-existence test) and The Calculus of Association (frozen embedders as designable measurement instruments).
This is honest, in-progress research, and the deepest finding so far is where the bottleneck actually is.
Predicting correctness from how code looks hits a hard ceiling โ and we proved it cleanly. On a perfectly clean oracle, the static-text panel shares only ~0.46 of the ~1 bit the verdict needs (I(panel; oracle) โ 0.46). By the data-processing inequality, that caps every possible predictor reading it โ so the fix is not "train harder," it is a better panel: sensors that perceive what code does, not what it looks like. Teaching the panel to perceive execution is what moves the number:
| Stage of the climb | Oracle correlation* |
|---|---|
| ๐ Static-text panel (judging code by appearance) | ~0.48 |
| โ Execution value-capture (return-value divergence) | ~0.46 โ 0.54 |
| โ Coverage gating (ignore tests that never run the change) | ~0.54 |
| โ Real oracle-scope tracing (run what the oracle runs) | ~0.66 |
| ๐ Combined execution-aware panel, covered rows (best head) | ~0.74 |
| ๐ฏ The target | 0.95 |
Best-head correlation on covered behavioral rows of the 300 ร 8 SWE-bench Lite Python corpus. The real gate is the substrate-sufficiency test I(panel; oracle) โฅ 0.95 bits โ the constraint these execution sensors exist to satisfy. Numbers move as the work advances; that's the point of tracking them in the open.
In parallel, the oracle itself is being hardened (Tier 5 validity): auditing where SWE-bench's curated tests are too weak to observe a real bug, then recovering those labels with stronger, independent oracles โ because a predictor can only ever be as truthful as the oracle it is measured against.
Every one of these jumps is a logged experiment in this repo's issue history โ the climb from a starved static panel to a sufficient execution-aware one is the work that remains, and you can watch it close in real time.
โ
Build the binary reality predictor for Python โ the engine exists
โ
Prove the clean negative: static panel is starved โ I(panel;oracle) โ 0.46 bits
๐ฌ Assemble an execution-aware panel to I โฅ 0.95 bits โ we are here (Tier 5)
๐ฌ Harden the oracle: audit + repair weak-test validity โ we are here (Tier 5)
๐ฏ Drive oracle correlation to 0.95, stable, cross-panel โ the ship gate (Tiers 1โ4)
๐ Make human review of Python patches unjustified โ the first super-intelligence
๐ Replicate the blueprint across every language โ generalize
๐๏ธ Domain super-intelligence for engineering itself โ the mission
The Oracle is a Rust workspace. The trunk:
| Crate | Role |
|---|---|
context-graph-mejepa |
The predictor, compiler, heal scheduler, and evaluation โ the trunk model |
context-graph-mejepa-embedders |
The panel: distinct embedder "senses" for code |
context-graph-mejepa-instruments |
Frozen teleological constellation (zero-trainable-parameter targets) |
context-graph-mejepa-corpus |
Mutation operators + the SWE-bench Docker-oracle bridge |
context-graph-mejepa-train |
Trainer, replay buffer, and the mistake-loop learner |
context-graph-mejepa-tct |
Teleological constellations + the out-of-distribution guard |
context-graph-mcp |
The product surface โ an MCP server AI agents call over JSON-RPC |
Architecture invariant: slot identity is sacred. The panel is an array of per-embedder vectors โ never flattened into a single blob for comparison. Meaning lives in the constellation, not in any one star.
# Clone
git clone https://github.com/ChrisRoyse/TheOracle.git
cd TheOracle
# Build the trunk model and the MCP server
cargo build --release -p context-graph-mejepa
cargo build --release -p context-graph-mcp
# Run the test suite
cargo testRequires a recent stable Rust toolchain (see rust-toolchain.toml).
This repository is the progress tracker. The mission advances in the open:
- ๐ Issues are the live research log โ every experiment, finding, and number is recorded there.
- ๐ Commits move specific numbers on the North Star sheet, or they don't ship.
- โญ Star the repo to follow the climb from 0.74 toward 0.95 โ and the moment the first engineering super-intelligence is proven.
Built by Chris Royse. The Oracle is the work of an AI agent, supervised in the open, climbing toward something that has never existed before.
Released under the PolyForm Noncommercial License 1.0.0. Free for noncommercial use, research, and study.




