Real Bifrost (github.com/maximhq/bifrost) integration for the Geek Room hackathon's Bifrost-by-Maxim-AI track, replacing zero prior usage: - BENCH_LLM_GATEWAY=bifrost routes every LLM-backed call (leaderboard's llm row, the auto cascade, and the agent loop's judge stage) through Bifrost's universal OpenAI-compatible endpoint instead of the provider directly, via one choke point (callBifrostStructured in llm.server.ts). - Per-call telemetry read straight from Bifrost's own response (extra_fields), not recomputed: SystemOneBifrostTelemetry type, a new Gateway badge/column on /leaderboard (LeaderboardRow.gateway). - Real run against a local Bifrost v2.5.1 gateway + Anthropic: 93/93 gold calls (accuracy 0.9794), fault-injected re-run (67/93 calls, robustness 0.621), and a real Bifrost-side fallback demo (5/5 calls served by the fallback model, routing_info.is_fallback: true). Full numbers in bifrost-run-results.json; reproduce with verify-bifrost.mjs. Committed leaderboard.json's llm row now carries this real Bifrost-routed run. - README gets a "How Bifrost powers Umpirix" section; HACKATHON-SUBMISSION.md gets a dedicated Bifrost section + honest-limits bullet. - Pitch deck: new slide "How Bifrost powers Umpirix", title renamed to Umpirix — Benchmark Arena for AI Agents (the owner's submitted project title), now 14 slides; re-verified against the actual committed PDF (not just the Marp PNG preview) and fixed one real overflow found that way. PPTX/PDF rebuilt. - demo.mp4 rebuilt as a 42.9s real video (real Playwright screen recording of the Gateway badge + code-rendered stat cards, no AI footage); prior cuts kept as demo-v2-120s-narrated.mp4 / demo-v1-33s-silent.mp4. Repo/package name intentionally left as openjev (not renamed) per the owner's direction; Umpirix is the submission's project title. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
587 lines
34 KiB
Markdown
587 lines
34 KiB
Markdown
# Geek Room Global AI Hackathon submission — Umpirix, the benchmark arena for AI agents
|
||
|
||
**Project title (as submitted on the form): Umpirix — Benchmark Arena for AI
|
||
Agents.** Umpirix is the submission identity; the underlying open-source
|
||
repo/package are still named `openjev` (not renamed for this submission — see
|
||
[Links](#links)). "Jev-compatible" below refers to the typed-decision wire
|
||
contract Umpirix's engine shares with the TypeSafe/Jev SDKs, not a product
|
||
name.
|
||
|
||
Geek Room Global AI Hackathon, $11,500 pool, prototype submission deadline
|
||
**Nov 15, 2026, 11:59 PM IST = Nov 15, 2026, 18:29 UTC**, judging Nov 29 2026.
|
||
Targets the official theme **"Build a Benchmarking Platform for AI Agents,
|
||
Not Just Models"** — verified live 2026-11-10 directly on
|
||
`hackculture.io/hackathons/ai-global-hackathon` (no Discord gate needed to
|
||
read it; that was a stale assumption from an earlier pass), one of 6 published
|
||
problem statements under the "AI Agents & Intelligent Systems" category. This
|
||
is a **Bifrost (by Maxim AI) track** problem statement, competing for the
|
||
$1,000 cash prize pool (the other two themes, Tavily Research Agent and the
|
||
Stale-Answer Detector, are the separate Tavily-credits track). Official theme
|
||
text: "Build a framework-independent benchmarking platform that evaluates AI
|
||
agents against identical tasks. The platform must measure task success,
|
||
execution steps, tool calls, token usage, cost, and completion time across
|
||
repeated runs. It should also test how agents respond to failing tools,
|
||
unavailable models, and misleading instructions, while providing a comparison
|
||
interface with detailed execution traces to help developers understand agent
|
||
performance and reliability."
|
||
|
||
## How Bifrost powers Umpirix (read this first)
|
||
|
||
Umpirix is built USING [**Bifrost**](https://github.com/maximhq/bifrost),
|
||
Maxim AI's open-source LLM gateway — this is not a track name bolted on
|
||
after the fact. One env switch (`BENCH_LLM_GATEWAY=bifrost`) routes every
|
||
LLM-backed call this platform makes — the public leaderboard's `llm` row,
|
||
the `auto` escalation cascade, and the judge stage of the router→gate→judge
|
||
agent loop (`src/lib/jev/loop.ts`) — through Bifrost's universal
|
||
OpenAI-compatible endpoint instead of the provider directly. All three reach
|
||
the SAME choke point, `src/lib/jev/llm.server.ts`'s `callBifrostStructured`,
|
||
so there is one Bifrost integration, not three.
|
||
|
||
**Verified live against a real local Bifrost gateway (v2.5.1, run the
|
||
documented way — `npx -y @maximhq/bifrost -port 8099` — with a file-based
|
||
`config.json` provider and `ANTHROPIC_API_KEY`), 2026-11-11, no mocks:**
|
||
|
||
| What | Real number |
|
||
| --- | --- |
|
||
| Gold-suite run through Bifrost → Anthropic claude-opus-5 | **93/93 real calls**, accuracy **0.9794**, strict pass 100% |
|
||
| Bifrost's OWN measured latency (from `extra_fields`, not our timer) | p50 **1567 ms** / p95 **2324 ms** |
|
||
| This app's independent timer on the same calls (cross-check) | p50 1580 ms / p95 2327 ms |
|
||
| Real tokens (Bifrost-reported = this app's own usage sum, exact match) | **106,543 in / 7,350 out** |
|
||
| Fault-injected re-run (15%/15%/10% timeout/5xx/malformed) | **67/93 real calls** (26 short-circuited before the network call) — accuracy **0.6082**, robustness **0.621** |
|
||
| Bifrost's real server-side **fallback** (primary model deliberately invalid, `BIFROST_FALLBACK_MODEL` set) | **5/5 calls** served by the fallback model, `routing_info.is_fallback: true` on every one |
|
||
| Committed leaderboard row (`/leaderboard`, real, not a script-only number) | `llm` row: **242 real Bifrost calls** (93 gold + 150 OOD probes − 1 transient error), 273,825 in / 22,321 out tokens, p50 1981 ms / p95 3023 ms |
|
||
|
||
Full machine-readable output:
|
||
[`hackathons/geekroom-2026/bifrost-run-results.json`](bifrost-run-results.json).
|
||
Reproduce it yourself:
|
||
|
||
```bash
|
||
npx -y @maximhq/bifrost -port 8099 # with a config.json provider, see README
|
||
BENCH_LLM_GATEWAY=bifrost BIFROST_BASE_URL=http://localhost:8099 \
|
||
LLM_PROVIDER=anthropic ANTHROPIC_API_KEY=... \
|
||
node hackathons/geekroom-2026/verify-bifrost.mjs
|
||
```
|
||
|
||
**What this gets you that calling the provider directly doesn't:**
|
||
|
||
1. **Multi-provider routing with zero code changes** — switching providers
|
||
is an env var (`LLM_PROVIDER` + Bifrost's own provider config), because
|
||
Bifrost's provider slugs (anthropic/groq/openai/xai/ollama/…) are
|
||
identical to the `LlmProvider` ids this app already used before Bifrost
|
||
existed in this codebase.
|
||
2. **Real fallback, proven, not asserted** — the table above is an actual
|
||
run where the primary model does not exist and Bifrost's own
|
||
`fallbacks` array served a working one, visible in the response's
|
||
`routing_info`. This is the robustness signal the official theme asks
|
||
for ("test how agents respond to... unavailable models"), demonstrated
|
||
at the GATEWAY level, not simulated by this app.
|
||
3. **A Gateway column judges can see**, not just a log line: `/leaderboard`'s
|
||
gold-suite table renders a **Gateway** badge (provider/model, call count,
|
||
fallback count) on any row run with `BENCH_LLM_GATEWAY=bifrost`
|
||
(`src/routes/leaderboard.tsx`, `LeaderboardRow.gateway` in
|
||
`src/lib/jev/leaderboard.ts`) — real Bifrost telemetry, not recomputed.
|
||
4. **Honest scope, not oversold:** Bifrost's dashboard-auth-gated features
|
||
(`GET /api/logs` history, budget/rate-limit governance) need an admin
|
||
account (`BIFROST_SETUP_TOKEN`) this integration does not provision —
|
||
every number above comes straight off the inference response itself
|
||
(`extra_fields`), which needs no extra auth. The fallback demo used the
|
||
SAME real Anthropic key as the primary (a different, invalid model id)
|
||
because only one real provider key was available for this pass —
|
||
Bifrost's `fallbacks` field is provider-agnostic and would failover
|
||
across providers identically with a second key configured; this was
|
||
not fabricated to look cross-provider.
|
||
|
||
## What this actually is (read this before the pitch)
|
||
|
||
OpenJev is a real, production-grade open-source platform already in daily
|
||
use: a TypeScript web console + API server (TanStack Router/Vite + React,
|
||
Postgres via Neon or embedded PGLite), a native calibration engine
|
||
([`src/lib/jev/calibration.ts`](../../src/lib/jev/calibration.ts)), a public
|
||
[`/leaderboard`](../../src/routes/leaderboard.tsx) that scores every OpenJev
|
||
model on a 93-case in-repo gold suite plus three public datasets (Banking77,
|
||
CLINC150+OOS, AG News), and a real auth/API-key/quota/rate-limit system
|
||
(`src/lib/auth/`, `migrations/0004_quotas.sql`,
|
||
`migrations/0005_llm_rate_limit.sql`). It is not a toy or a side CLI script.
|
||
|
||
A first pass on this theme shipped `otsone eval-external`, a Python CLI
|
||
addition that let a third party point the existing gold-case harness at their
|
||
own model. The owner's correction: that was too small a surface for "a
|
||
benchmarking platform for AI agents" — the real submission has to be a
|
||
first-class part of the platform itself, not a script judges have to go dig
|
||
for in a subfolder. **This is that submission: "Benchmark Submissions," a
|
||
production-integrated subsystem of the real platform.**
|
||
|
||
The Benchmark Submissions subsystem itself (migration 0011,
|
||
`benchmark-scoring.ts`, `benchmark-submissions.server.ts`,
|
||
`outbound-guard.server.ts`, `submit-model.tsx`) was built in commit `c70f3d0`
|
||
on 2026-11-07, inside the hackathon's official Nov 1–15 problem-statement/
|
||
build window; the surrounding OpenJev platform (leaderboard, calibration
|
||
engine, auth/quota system) is the pre-existing infrastructure Rule 1
|
||
explicitly allows reusing. The execution-trace + fault-injection half
|
||
(migration 0012, item 7 below) landed in commit `cececb2` on 2026-11-10,
|
||
also inside the same build window.
|
||
|
||
### What was built
|
||
|
||
1. **A real migration** —
|
||
[`migrations/0011_external_benchmarks.sql`](../../migrations/0011_external_benchmarks.sql):
|
||
`benchmark_submissions` (submitter, model label, source — a live HTTP
|
||
endpoint or a precomputed-answers upload, status, timestamps) and
|
||
`benchmark_results` (one row for the overall score plus one row per
|
||
question type — choice/noul/score — each with accuracy, strict pass rate,
|
||
ECE, adaptive ECE, MCE, Brier, NLL).
|
||
2. **A real, pure scoring module** —
|
||
[`src/lib/jev/benchmark-scoring.ts`](../../src/lib/jev/benchmark-scoring.ts):
|
||
builds a `Runner` that either POSTs `{state, questions}` to the
|
||
submitter's endpoint and reads back `{answers}` (the identical contract
|
||
`HttpEngine` in `otsone/laya_mlx/eval_external.py` expects), or replays a
|
||
precomputed answers payload in the gold suite's own order (mirrors
|
||
`AnswersFileEngine`). The actual scoring is NOT reimplemented — it calls
|
||
the exact same `evalGoldWith` (`src/lib/jev/gold.ts`) and `buildReliability`
|
||
(`src/lib/jev/calibration.ts`) engine every OpenJev model, and
|
||
`scripts/leaderboard.mjs`, already use. One canonical TypeScript scoring
|
||
engine; the Python harness and this module compute the same metric
|
||
definitions (ECE/MCE/Brier/NLL per question type), not two divergent ones.
|
||
3. **A real API route** —
|
||
[`src/routes/api/v1/benchmark-submissions.ts`](../../src/routes/api/v1/benchmark-submissions.ts)
|
||
(`GET`/`POST`, same auth as every other `/api/v1/*` route —
|
||
`resolveConsoleUser`, then the real `checkQuota` rate-limit/monthly-quota
|
||
check — so a submission counts against the submitter's own quota like any
|
||
other decision volume) plus a public, unauthenticated
|
||
[`.../leaderboard`](../../src/routes/api/v1/benchmark-submissions.leaderboard.ts)
|
||
feed for the public page. `POST` runs the full 93-case gold suite
|
||
synchronously, persists the submission + its overall and per-type results,
|
||
and returns real computed scores — not a queued job id to poll.
|
||
4. **A new shared SSRF guard** —
|
||
[`src/lib/jev/outbound-guard.server.ts`](../../src/lib/jev/outbound-guard.server.ts),
|
||
extracted from the existing outbound-webhooks SSRF protection (one
|
||
guard, not two implementations that could drift) — rejects
|
||
localhost/loopback/RFC1918-private/link-local/cloud-metadata/CGNAT targets
|
||
before any submitted endpoint URL is ever called, both by literal-IP check
|
||
and a real DNS-resolution check.
|
||
5. **Real UI integration, not a separate page** —
|
||
[`src/routes/leaderboard.tsx`](../../src/routes/leaderboard.tsx) now fetches
|
||
completed submissions client-side and renders them as extra rows, kind
|
||
`"external"` / "Community submitted," in the SAME gold-suite table as
|
||
OpenJev's own models (same columns: accuracy, strict pass, ECE, Brier).
|
||
A new [`/submit-model`](../../src/routes/submit-model.tsx) page, linked
|
||
from the leaderboard header and method notes, is a real form (model label,
|
||
live-endpoint URL or pasted answers JSON) that calls the API and renders
|
||
the computed scores plus the per-question-type breakdown table.
|
||
6. **Real tests** — `src/lib/jev/benchmark-scoring.test.ts` (9 tests,
|
||
including an end-to-end check that replaying the real `system-one`
|
||
engine's own answers through the external-submission path reproduces
|
||
`evalGold()`'s numbers byte-for-byte — proof it is the same engine, not a
|
||
parallel one) and `src/lib/jev/outbound-guard.server.test.ts` (5 tests for
|
||
the SSRF guard), run via the existing native-Node `--test` runner
|
||
(`npm test`).
|
||
7. **Execution tracing + fault injection** (2026-11-10, the "Not Just Models"
|
||
half of the official theme) —
|
||
[`src/lib/jev/benchmark-scoring.ts`](../../src/lib/jev/benchmark-scoring.ts)
|
||
wraps a submission's `Runner` with `instrumentRunner`: every gold case's
|
||
run records steps, outbound/tool-call count, wall-clock latency, tokens
|
||
in/out, and `cost_usd` when the submitter's own endpoint reports them on
|
||
its response body (an optional, additive `{answers, usage?, cost_usd?}`
|
||
contract — a plain `{answers}` response still works exactly as before).
|
||
The rollup (`buildSubmissionTrace`) reports latency p50/p95 and
|
||
error/timeout counts across the whole suite. Opting into
|
||
`faultInjection: {enabled: true, seed?, timeoutRate?, serverErrorRate?,
|
||
malformedRate?}` re-runs the whole suite a SECOND time through a
|
||
deterministic mulberry32-seeded wrapper that injects timeouts, 5xx
|
||
responses, and malformed answers at the given rates (same seed + rates
|
||
always fault the same cases the same way — reproducible, not a one-off
|
||
roll) and reports **robustness**: the faulted run's accuracy divided by
|
||
the clean run's own accuracy. Persisted on two new, additive, nullable
|
||
columns (`migrations/0012_benchmark_execution_trace.sql`:
|
||
`execution_trace`, `fault_injection` — existing rows keep both null and
|
||
render with no trace, no backfill, no breaking change) and surfaced as
|
||
real UI: new "p50 ms" / "Outbound calls" / "Errors" / "Robustness"
|
||
columns on `/leaderboard`'s gold-suite tab
|
||
([`src/routes/leaderboard.tsx`](../../src/routes/leaderboard.tsx)), and a
|
||
full per-submission "Execution trace" + "Robustness under faults" card on
|
||
[`/submit-model`](../../src/routes/submit-model.tsx) (a checkbox opts into
|
||
the stress test; the result card shows clean vs. faulted accuracy,
|
||
robustness, and both runs' traces).
|
||
|
||
## Real run against the real gold set (not simulated)
|
||
|
||
This was exercised end to end on a real local server (`npm run dev`), not
|
||
just read from source. A precomputed-answers payload built from the real
|
||
`system-one` engine's own 93 gold-case answers was submitted through the
|
||
actual UI form at `/submit-model` (filled the model-label field, pasted the
|
||
answers JSON, clicked "Submit and score" — a real browser session, not a
|
||
curl-only check):
|
||
|
||
```
|
||
Scored: ui-driven-e2e-test
|
||
ACCURACY 85.6% STRICT PASS 100.0% ECE 0.096 ADAPTIVE ECE 0.081
|
||
MCE 0.806 BRIER 0.127 NLL 0.828 CASES 93
|
||
|
||
choice n=48 accuracy=87.5% ece=0.136 brier=0.132 nll=1.292
|
||
noul n=32 accuracy=78.1% ece=0.124 brier=0.159 nll=0.484
|
||
score n=17 accuracy=94.1% ece=0.025 brier=0.049 nll=0.162
|
||
```
|
||
|
||
These numbers are byte-identical to `evalGold("system-one")`'s own internal
|
||
report run directly against `src/lib/jev/gold.ts` — proof the external
|
||
submission path is scored by the real engine, not a second implementation.
|
||
The submission then appeared, live, as a "Community submitted" row on
|
||
`/leaderboard`'s gold-suite tab, ranked in the same table next to OpenJev's
|
||
own `system-one` / lexical rows, confirmed with a real headless-browser
|
||
screenshot after JS hydration (not just the server-rendered shell).
|
||
|
||
The SSRF guard was also exercised for real: submitting
|
||
`endpointUrl: "http://127.0.0.1:.../leaderboard"` and
|
||
`endpointUrl: "http://169.254.169.254/latest/meta-data"` (the cloud metadata
|
||
address) both returned a real 400 rejection before any outbound request was
|
||
attempted.
|
||
|
||
```bash
|
||
npm run typecheck # clean
|
||
npm test # 138 passed, 1 pre-existing skip, 0 failed
|
||
npm run gold # gold: 61 passed, 0 failed (unchanged by this work)
|
||
```
|
||
|
||
## Recorded demo + a second, genuinely different submission (2026-11-09)
|
||
|
||
The run above was a one-off verification in a live session, not an artifact a
|
||
judge could watch. Closed that gap with two real additions, neither of which
|
||
touched `benchmark-scoring.ts` / `benchmark-submissions.server.ts` /
|
||
`outbound-guard.server.ts`:
|
||
|
||
- **`hackathons/geekroom-2026/demo.mp4`** (poster: `poster.png`) — a real
|
||
Playwright-driven Chromium screen recording against an actual running
|
||
`npm run dev` instance: create a real API key on `/keys`, submit **three**
|
||
real, different answer sources through the actual `/submit-model` form
|
||
(`system-one-replay`, `uniform-baseline-v1`, and `trace-fault-demo` with
|
||
"Stress-test with fault injection" checked), then the live `/leaderboard`
|
||
rows showing the real computed scores. No staged footage, no mocked UI.
|
||
The original 33s silent capture (built by
|
||
`hackathons/geekroom-2026/record-demo.mjs`, raw source:
|
||
`demo-raw.webm`) is kept as `demo-v1-33s-silent.mp4`. **Upgraded
|
||
2026-11-11** to a 120s narrated cut (`build-demo-video.py`): the same real
|
||
captured frames (slowed/held/gently zoomed, never fabricated), a real
|
||
Deepgram Aura-2 narration track with nova-3 round-trip-verified word
|
||
timing (`narration-script.json` → `narration-lines.json`, built by
|
||
`plans/gtm/tools/deepgram_voice.py`) driving burned-in captions, and a
|
||
handful of plain typographic title/outro cards (no AI-generated footage
|
||
anywhere). Mastered to -14.6 LUFS integrated / -2.3 dBTP true peak
|
||
(`alimiter`, not `loudnorm` apply mode) — real h264, 1280x800, 119.8s,
|
||
~5.6MB. Every contact-sheet frame was reviewed for overflow/legibility
|
||
before shipping. **Superseded as the primary `demo.mp4` on 2026-11-11**
|
||
(see "Bifrost demo video" below) and kept for provenance as
|
||
`demo-v2-120s-narrated.mp4`.
|
||
- **A second, genuinely different example submission: `uniform-baseline-v1`**
|
||
— not another replay of `system-one`. It is a content-blind uninformed
|
||
baseline (`hackathons/geekroom-2026/generate-baseline-submission.ts`): for
|
||
every gold-suite question it picks the alphabetically-first choice option,
|
||
the score midpoint, or `noul: 0.5`, with confidence set to the honest
|
||
uninformed-guess rate (`1/N` for an `N`-option choice) — it never reads
|
||
`state`, never imports the scoring engine, and never looks at the gold
|
||
suite's expected answers, so there is no test-set leakage and no disguised
|
||
reuse of `system-one`. Submitted through the real `/submit-model` form in
|
||
the same recorded session, it scored (full precision in
|
||
`uniform-baseline-v1-answers.json`'s companion run):
|
||
|
||
```
|
||
Scored: uniform-baseline-v1
|
||
ACCURACY 35.0% STRICT PASS 13.1% ECE 0.027 ADAPTIVE ECE 0.123
|
||
MCE 0.500 BRIER 0.214 NLL 0.619 CASES 93
|
||
```
|
||
|
||
Both `system-one-replay` (85.6% accuracy) and `uniform-baseline-v1` (35.0%
|
||
accuracy) now show up side by side as real "Community submitted" rows on
|
||
`/leaderboard`'s gold-suite tab — concrete proof the platform scores more
|
||
than one self-referential submission, with a visible, honest spread between
|
||
a competent model and a floor baseline.
|
||
|
||
Reproduce either payload yourself:
|
||
```bash
|
||
node --experimental-strip-types hackathons/geekroom-2026/generate-system-one-replay.ts
|
||
node --experimental-strip-types hackathons/geekroom-2026/generate-baseline-submission.ts
|
||
```
|
||
|
||
## Real execution-trace + fault-injection run (2026-11-10, not simulated)
|
||
|
||
Verified end to end, twice, with real network round trips and a real
|
||
running server — `hackathons/geekroom-2026/verify-execution-trace.mjs`
|
||
reproduces both:
|
||
|
||
**1. Real HTTP POST to a real `npm run dev` instance** (sourceKind
|
||
"answers", the existing `system-one-replay-answers.json` fixture, fault
|
||
injection on, seed 42, 10% each of timeout/5xx/malformed):
|
||
|
||
```
|
||
status: completed
|
||
accuracy: 0.8557 ece: 0.0961
|
||
clean trace: 93 cases, 0 errors, 0 outbound calls (no real network call —
|
||
an "answers" replay never fabricates tokens/cost no provider
|
||
reported)
|
||
faulted trace: 93 cases, 30 errors (11 of them timeouts), accuracy 0.0722
|
||
robustness (faulted accuracy / clean accuracy): 0.0844
|
||
```
|
||
|
||
The just-created submission was then read back from the PUBLIC, unauthenticated
|
||
`/api/v1/benchmark-submissions/leaderboard` feed — confirming the trace and
|
||
robustness are real persisted/queryable columns
|
||
(`migrations/0012_benchmark_execution_trace.sql`), not response-only values.
|
||
|
||
**2. `endpointRunner` against a REAL local HTTP agent** (plain `node:http`,
|
||
backed by the real `runLocal` engine, reporting real `usage`/`cost_usd` on
|
||
its own response body — the exact optional contract `endpointRunner` now
|
||
parses):
|
||
|
||
```
|
||
93 real HTTP round trips (verified: the server's own request counter == 93)
|
||
latency p50/p95: 3.3ms / 21.5ms (real measured wall-clock, not simulated)
|
||
tokens in/out: 3906 / 651 (= 93 x the real {42, 7} the agent reported)
|
||
cost: $0.011439 (= 93 x the real $0.000123 the agent reported)
|
||
errors/timeouts: 0 / 0
|
||
```
|
||
|
||
**3. Fault injection against the SAME real endpoint** (seed 7, 20% each of
|
||
timeout/5xx/malformed = 60% total fault rate):
|
||
|
||
```
|
||
faulted accuracy: 0.3402 clean accuracy: 0.8557 robustness: 0.3976
|
||
faulted errors/timeouts: 55 / 19
|
||
real HTTP hits during the faulted pass: 58 of 93 — fewer than the gold-case
|
||
count, the expected signature of timeout/server_error faults short-
|
||
circuiting BEFORE the real call is ever made (verified via the same server
|
||
request counter: it did not advance on those cases).
|
||
```
|
||
|
||
Honest scope on "steps": today's runners (endpoint, answers) make exactly
|
||
one outbound call per gold case, so `steps`/`outboundCalls` are 1 per case —
|
||
the trace shape (`CaseTrace.steps`/`outboundCalls` as separate counters) is
|
||
built so a future multi-step/multi-tool-call agent runner can report more
|
||
than one call per step without a schema change, but nothing in this
|
||
submission exercises that yet; the 93 in-repo gold cases are single-turn
|
||
typed-decision questions, not multi-step agent tasks.
|
||
|
||
```bash
|
||
node hackathons/geekroom-2026/verify-execution-trace.mjs # parts 2-3, standalone
|
||
npm run dev -- --port 8099 # then, in another shell, with part 1 included:
|
||
BASE_URL=http://localhost:8099 node hackathons/geekroom-2026/verify-execution-trace.mjs
|
||
npm run typecheck # clean
|
||
npm test # 138 passed, 1 pre-existing skip, 0 failed — unchanged
|
||
npm run gold # gold: 61 passed, 0 failed — unchanged
|
||
```
|
||
|
||
## How to run it yourself
|
||
|
||
```bash
|
||
npm install
|
||
npm run dev # self-hosted: PGLite embedded DB, auth disabled (dev-user)
|
||
# open http://localhost:8080/submit-model
|
||
```
|
||
|
||
Your HTTP endpoint must accept `POST {"state": ..., "questions": {...}}` and
|
||
return `{"answers": {"<question_id>": {...}}}` — the same shape OpenJev's own
|
||
`/api/v1/systemone` responses use (choice: `{"type":"choice","choice":...,
|
||
"probabilities":{...},"confidence":...}`; noul: `{"type":"noul","noul":<0..1>}`;
|
||
score: `{"type":"score","score":<number>,"confidence":<0..1>}`). Or skip the
|
||
live endpoint and paste a precomputed `{"<gold case id>": {<answers>}}` JSON
|
||
map directly into the form.
|
||
|
||
The earlier, smaller `otsone eval-external` Python CLI addition
|
||
(`otsone/laya_mlx/eval_external.py`) still exists and still works
|
||
standalone — this platform feature supersedes it as the real submission, but
|
||
does not remove it; both compute the same metric definitions against the
|
||
same kind of gold-case contract, one as a platform feature, one as a
|
||
local CLI script for teams that only want the Python harness.
|
||
|
||
## Honest limits (what this is NOT claiming)
|
||
|
||
- OpenJev is **self-host only** (see the README's status line) — there is no
|
||
official hosted `openjev.com` service. A judge running this must clone the
|
||
repo and `npm run dev` (or Docker) themselves; there is no public URL to
|
||
submit a model to right now. This doc does not claim otherwise.
|
||
- The gold set is OpenJev's own 93-case set (customer-support/agent-style
|
||
choice/score/noul questions, including out-of-scope probes). This is a
|
||
real, working **benchmark harness for typed-decision models**, not an
|
||
independently-curated, cross-domain agent benchmark suite covering every
|
||
possible agent task — a team benchmarking a very different agent would
|
||
still need their own gold cases in this JSON shape.
|
||
- Submissions run synchronously inside the request (no background job
|
||
queue exists in this app yet): an "endpoint" submission is up to 93
|
||
sequential HTTP round trips to the submitter's server, so a slow or
|
||
rate-limited third-party endpoint makes a submission slow — not a crash,
|
||
but a real, documented limitation. A future pass could move this to a
|
||
queued/polled job.
|
||
- No benchmark numbers are claimed for any real external competitor's
|
||
production model in this submission. `system-one-replay` is real but is
|
||
literally `system-one` replaying its own answers, shown because the run is
|
||
real and reproducible. `uniform-baseline-v1` (2026-11-09) is a genuinely
|
||
different, independently-computed scoring source — it never imports the
|
||
scoring engine and never reads the gold suite's expected answers — but it
|
||
is a deliberately uninformed floor baseline, not a real third party's
|
||
competitive model. Both are shown to prove the platform scores more than
|
||
one submission and shows a real, honest spread, not to claim a third-party
|
||
leaderboard result.
|
||
- **Bifrost integration scope:** verified against providers'/Bifrost's real
|
||
behavior (anthropic, confirmed live) using a file-based `config.json` and
|
||
no dashboard admin account — `GET /api/logs` history, budget/rate-limit
|
||
governance, and virtual keys are real Bifrost features this pass does not
|
||
provision (they need `BIFROST_SETUP_TOKEN` + an admin login), so
|
||
per-call telemetry comes from the inference response's own `extra_fields`
|
||
rather than Bifrost's historical log store. The fallback demo used one
|
||
real provider (Anthropic) with a deliberately-invalid model as "primary"
|
||
and the real model as the `fallbacks` target, because only one real
|
||
provider key was available for this pass — this is real, Bifrost-side
|
||
server failover (not a client-side retry), just not demonstrated
|
||
cross-provider.
|
||
- The SSRF guard blocks loopback/private/link-local/metadata/CGNAT
|
||
addresses via both a literal-IP check and a DNS-resolution check; it does
|
||
not defend against a submitter's endpoint being compromised *after*
|
||
submission-time validation (a standard TOCTOU limitation shared with the
|
||
existing outbound-webhooks feature this guard was extracted from).
|
||
- **Against the official theme's fuller spec** (verified live on
|
||
hackculture.io 2026-11-10: "measure task success, execution steps, tool
|
||
calls, token usage, cost, and completion time across repeated runs...
|
||
test how agents respond to failing tools, unavailable models, and
|
||
misleading instructions, while providing a comparison interface with
|
||
detailed execution traces") — as of 2026-11-10 this submission covers
|
||
**both halves** with real, working, production-integrated code: accuracy
|
||
and calibration (task-success quality, confidence trustworthiness), AND
|
||
execution-trace metrics (steps, outbound/tool-call count, wall-clock
|
||
latency p50/p95, tokens + cost when reported, error/timeout counts) plus
|
||
fault injection (deterministically seeded timeouts, 5xx responses, and
|
||
malformed responses at configurable rates, reporting a robustness score)
|
||
— see "Real execution-trace + fault-injection run" above for real numbers
|
||
from both a real HTTP submission and a real local agent endpoint. One
|
||
real, narrower gap remains, stated plainly: the 93 in-repo gold cases are
|
||
single-turn typed-decision questions, so today's trace is one outbound
|
||
call per case (`steps`/`outboundCalls` = 1), not a multi-step/multi-tool-
|
||
call agent trace across a longer task — the trace schema is built to
|
||
extend to that (separate `steps`/`outboundCalls` counters, not one merged
|
||
counter) but nothing in this submission exercises more than one call per
|
||
case yet. "Unavailable models" and "misleading instructions" (two of the
|
||
theme's named fault scenarios) are approximated by `server_error`/
|
||
`malformed` faults rather than modeled as distinct fault kinds of their
|
||
own.
|
||
|
||
## Bifrost demo video (2026-11-11, now the primary `demo.mp4`)
|
||
|
||
`hackathons/geekroom-2026/demo.mp4` (poster: `poster.png`, re-captured from
|
||
the same real frame) was rebuilt to make the Bifrost integration the headline,
|
||
per the owner's explicit direction to go fully on Bifrost. Real h264,
|
||
1280x800, **42.9s** (well under the 3-minute cap), silent (title/stat cards,
|
||
no narration this cut — a deliberate scope choice to keep every number
|
||
on-screen and exact rather than spoken/rounded). Built entirely from real
|
||
material, no AI-generated footage:
|
||
|
||
1. A real Playwright screen recording (`record-bifrost-demo.mjs`, raw source
|
||
`bifrost-demo-raw.webm`) of the actual `/leaderboard` page's gold-suite
|
||
tab, scrolled to the real `llm` row — **"LLM via Bifrost gateway
|
||
(anthropic:claude-opus-5)"**, 97.9% accuracy, and the real **Gateway**
|
||
badge (`anthropic/claude-opus-5 · 242 calls`) — against a dev server
|
||
serving the actual patched `src/lib/content/leaderboard.json`.
|
||
2. Plain typographic/code-rendered stat cards (`build-bifrost-cards.py`,
|
||
assembled by `build-bifrost-demo-video.sh`) quoting the exact real numbers
|
||
from `bifrost-run-results.json` and this doc's own tables: the 93/93 gold
|
||
run, the fault-injected re-run (67/93 calls, robustness 0.621), and the
|
||
real fallback demo (5/5 calls, `is_fallback: true`, real Anthropic
|
||
completion ids).
|
||
|
||
A 1-frame/3s contact sheet (plus a direct check of the actual final seconds
|
||
via `ffmpeg -sseof`) was reviewed before shipping — no blank or unreadable
|
||
frames. The prior 120s narrated cut (Benchmark Submissions, pre-Bifrost) is
|
||
kept for provenance as `demo-v2-120s-narrated.mp4`, and the original 33s
|
||
silent capture as `demo-v1-33s-silent.mp4`.
|
||
|
||
## Links
|
||
|
||
- Repo (source of truth): https://github.com/caelum0x/openjev — this is the
|
||
repo a judge would actually clone. (The prior local dev clone this line
|
||
used to point at, `dev-tools/openjev`, was a stale duplicate removed on
|
||
2026-11-09; `github.com/caelum0x/openjev` is the sole real repo now.)
|
||
- Pitch deck: `hackathons/geekroom-2026/PITCH-DECK.md` — a real Marp-format
|
||
deck (13 slides — title + 12 numbered sections — YAML front matter with a
|
||
tuned `style:` block so every slide's real content fits the frame),
|
||
exportable to PPTX/PDF in one command: `npx @marp-team/marp-cli@latest
|
||
PITCH-DECK.md --pptx -o PITCH-DECK.pptx` / `--pdf -o PITCH-DECK.pdf`
|
||
(re-verified live 2026-11-11 via `unzip -l`/`unzip -t PITCH-DECK.pptx`: 100
|
||
real parts incl. 13 slide images, ~3.9MB, valid zip; `pdfinfo
|
||
PITCH-DECK.pdf`: 13 pages, valid PDF 1.7; every slide was also rendered to
|
||
PNG via `--images png` and visually reviewed). Honest history: a same-day
|
||
earlier pass claimed "8 of 11 slides fixed, zero overflow" after a
|
||
font/padding tighten — a second, independent judge pass re-rendered every
|
||
slide to PNG *and the actual committed PDF* and found that claim was
|
||
still false for 2 of the 11 slides (the architecture slide was missing 3
|
||
full bullets — SSRF guard, Real UI, Real API — and the proof slide was
|
||
missing its entire "execution trace + fault injection real numbers"
|
||
paragraph, both silently clipped below the frame with no visual
|
||
indicator). Fixed for real this time by splitting the two overloaded
|
||
slides into four (architecture → data/tracing + scoring/auth/SSRF/UI/API;
|
||
proof → accuracy/calibration + execution-trace/fault-injection), not by
|
||
shrinking fonts further, and re-verified by rendering every one of the 13
|
||
slides in the rebuilt PPTX/PDF to PNG and looking at pixel-level crops of
|
||
every slide that had been near the edge. Built `PITCH-DECK.pptx` and
|
||
`PITCH-DECK.pdf` are committed alongside the source for judges who want
|
||
the file directly.
|
||
**Update, 2026-11-11 (same day, Bifrost pass):** title renamed to
|
||
**Umpirix — Benchmark Arena for AI Agents**; a new slide 5, "How Bifrost
|
||
powers Umpirix" (architecture + the real run table), was inserted,
|
||
renumbering every later slide and every internal cross-reference
|
||
(including the judging-criteria map's cells) — the deck is now **14
|
||
slides** (title + 13 numbered). Re-exported, re-rendered every slide to
|
||
PNG, and additionally cross-checked the ACTUAL committed PDF with
|
||
`pdftoppm` (not just the Marp PNG preview, the same lesson from the prior
|
||
pass above) — found one real, new overflow this time: old slide 6's final
|
||
verification command block sat with its bottom border touching the
|
||
literal frame edge with zero margin (confirmed by cropping the last 10% of
|
||
the PDF page). Fixed by trimming that slide's content (condensed the
|
||
per-question-type table row to one line, shortened the SSRF paragraph,
|
||
merged the 3-line verification command into 2 lines) — re-rendered and
|
||
re-cropped the same page: real margin now visible before the page number.
|
||
Every one of the 14 pages' bottom 18-25% was then cropped and visually
|
||
checked against the real PDF; all clean. `PITCH-DECK.pptx` (105 real
|
||
parts, valid zip, ~4.3MB) and `PITCH-DECK.pdf` (14 pages, valid PDF)
|
||
rebuilt from the fixed source.
|
||
- Live-in-repo capability (after `npm run dev`):
|
||
`http://localhost:8080/leaderboard` (gold-suite tab, "Community submitted"
|
||
rows) and `http://localhost:8080/submit-model` (the submission form).
|
||
- New platform code: `migrations/0011_external_benchmarks.sql`,
|
||
`migrations/0012_benchmark_execution_trace.sql`,
|
||
`src/lib/jev/benchmark-scoring.ts`, `src/lib/jev/benchmark-scoring.test.ts`,
|
||
`src/lib/jev/benchmark-submissions.server.ts`,
|
||
`src/lib/jev/outbound-guard.server.ts`,
|
||
`src/lib/jev/outbound-guard.server.test.ts`,
|
||
`src/routes/api/v1/benchmark-submissions.ts`,
|
||
`src/routes/api/v1/benchmark-submissions.leaderboard.ts`,
|
||
`src/routes/submit-model.tsx`, plus the `/leaderboard` integration in
|
||
`src/routes/leaderboard.tsx` and `src/lib/jev/leaderboard.ts`.
|
||
- Execution-trace + fault-injection verification (2026-11-10):
|
||
`hackathons/geekroom-2026/verify-execution-trace.mjs`.
|
||
- **Bifrost gateway integration (2026-11-11):** `src/lib/jev/bifrost.server.ts`
|
||
(URL/model helpers, `telemetryFromResponse`), the `callBifrostStructured`
|
||
gateway switch in `src/lib/jev/llm.server.ts`, the `SystemOneBifrostTelemetry`
|
||
type in `src/lib/jev/types.ts`, the `judge_bifrost` field on
|
||
`src/lib/jev/loop.ts`'s `LoopResult`, the `LeaderboardRow.gateway`
|
||
summary + `buildGatewaySummary` in `src/lib/jev/leaderboard.ts`, and the
|
||
**Gateway** column in `src/routes/leaderboard.tsx`. Real run output:
|
||
`hackathons/geekroom-2026/bifrost-run-results.json`, reproducible with
|
||
`hackathons/geekroom-2026/verify-bifrost.mjs`.
|
||
- Existing calibration engine this reuses (not reimplements):
|
||
`src/lib/jev/calibration.ts`, `src/lib/jev/gold.ts`,
|
||
`src/lib/jev/leaderboard.ts`.
|
||
- The earlier, smaller Python addition this supersedes as the primary
|
||
submission: `otsone/laya_mlx/eval_external.py`,
|
||
`otsone/tests/test_eval_external.py`.
|
||
- **Current `demo.mp4` (2026-11-11, the Bifrost demo)**: poster
|
||
`poster.png`; built from `hackathons/geekroom-2026/record-bifrost-demo.mjs`
|
||
(raw source `bifrost-demo-raw.webm`), `build-bifrost-cards.py`, and
|
||
`build-bifrost-demo-video.sh`.
|
||
- Prior demo cuts, kept for provenance: `demo-v2-120s-narrated.mp4`
|
||
(Benchmark Submissions, narrated, 2026-11-11 pre-Bifrost) and
|
||
`demo-v1-33s-silent.mp4` (original 33s silent capture, raw source
|
||
`demo-raw.webm`), built by `hackathons/geekroom-2026/record-demo.mjs`,
|
||
`hackathons/geekroom-2026/build-demo-video.py`,
|
||
`hackathons/geekroom-2026/narration-script.json`,
|
||
`hackathons/geekroom-2026/narration-lines.json`,
|
||
`hackathons/geekroom-2026/generate-baseline-submission.ts`,
|
||
`hackathons/geekroom-2026/generate-system-one-replay.ts`,
|
||
`hackathons/geekroom-2026/uniform-baseline-v1-answers.json`,
|
||
`hackathons/geekroom-2026/system-one-replay-answers.json`.
|