ouroboros/devtools/benchmarks
Ouroboros 734ac4fcbc Adopt upstream v6.105.0/v6.105.1 into the v7 branch
Merges managed/ouroboros @ e7c84240 (unified accounts, the delegation
substrate, rotation visibility, and the managed Claudexor runtime pin
3.6.0) into the split v7 tree, replaying every upstream hunk into the
leaf that now owns the symbol.

Upstream hunks against files v7 split are re-homed by hand: the
owner-surface-fact rail into loop_round_limits / control_routing /
server_owner_routing / worker_promotion, the one-shot follow-up rail
into queue_schedules, the durable nanny-nudge stamp into loop_nudges,
the typed reduction reasons and the harness-routed capability-delta
action into agent_dispatch, the typed review failure facts into
review_records, the startup prune sweeps and the zero-wait reconcile
gateway into server_maintenance, and the boundary-only acting preamble
into events_subagent_admission.

The honest-DEGRADED contract (B2) is transferred to all FOUR v7 sites
that encode the control vocabulary, not just the parser: plan_render's
outcome set and open-only clause, the typed-metadata validation in
loop_tool_execution, and the publication guard in plan_review_runtime.
v7 replaced upstream's single text parse with a producer-metadata seam,
so a DEGRADED wave would otherwise have raised at publication.

Upstream's duplicate extraction of the executor-note pair into
subagent_dispatch_notes.py is dropped in favour of v7's agent_dispatch
home; both bodies are adopted verbatim so the ledger's verbatim pin
holds against the new base.

Upstream growth pushed three modules back over v7's 1500-line ceiling,
so the route-health cluster leaves subagents.py, the runtime-section
fact builders leave context.py, and the panel-health suite leaves
test_plan_review_engine.py, each behind a re-exporting facade.

Pure line-compression hunks from the upstream size-ratchet payback
commits are dropped: v7 already split those files, so they carry no
meaning here.

Co-authored-by: Ouroboros <311266734+ouroboros-agent@users.noreply.github.com>
2026-08-19 19:54:32 +00:00
..
common Adopt upstream v6.105.0/v6.105.1 into the v7 branch 2026-08-19 19:54:32 +00:00
continual_learning Add S3 cancel-finalization and owner hurry control 2026-08-15 10:22:11 +03:00
editbench v7: Editbench t2_surgical fixture follows the review_state split 2026-08-17 20:18:17 +00:00
gaia plan review becomes a domain-neutral spec gate 2026-08-17 11:37:32 +00:00
harness_bench_fast release 6.100.0: delegated runs execute in private snapshots — capture, disposition, and GC carry one honest truth (sprint phase C) 2026-08-12 17:54:10 +03:00
osworld v7(W): split OSWorld run_step_agent.py into five owner leaves 2026-08-16 20:37:22 +00:00
programbench v6.81.0: benchmark artefacts must not carry or claim what did not happen 2026-07-26 05:04:14 +00:00
swe_bench release 6.100.0: delegated runs execute in private snapshots — capture, disposition, and GC carry one honest truth (sprint phase C) 2026-08-12 17:54:10 +03:00
swe_bench_pro refactor: unify workspace tool authority 2026-08-11 09:37:42 +03:00
terminal_bench v7: adopt upstream ouroboros through v6.104.0 (merge, single commit) 2026-08-18 05:18:57 +00:00
__init__.py feat(devtools-benchmarks): add official benchmark harnesses and workspace executor 2026-06-06 12:03:30 +03:00
evolve_smoke.py swe-pro: e1v2 evolution harness (replaces evolve_pro) 2026-06-11 16:10:31 +03:00
README.md synthesis step 7: transplant p6-ui-v2 functional range 143aa17..1534e97 2026-08-03 16:58:19 +03:00

Ouroboros Benchmark Devtools

This directory contains tracked operator tooling for reproducible benchmark work. These files are reviewed when touched, but are not imported by the runtime core and are not packaged as app runtime code.

Integrations

  • terminal_bench/ — Harbor installed-agent adapter for Terminal-Bench 2.1. Use run_tb.py for leaderboard-shaped k-trial runs and submission layout; use run_harbor_smoke.py for small local smoke runs.
  • osworld/ — OSWorld 2.0-aligned step-loop adapter (pinned xlang-ai/OSWorld-V2@c261cb57, 500-step budget, official show_result.py result layout, VM-state-aware prompting + terminal final_answer audit capture) plus logs-only audit tooling; runnable against a local vmware/docker OSWorld checkout, cloud providers and checkpoint curves not implemented — see osworld/METHODOLOGY.md.
  • swe_bench_pro/ — SWE-bench Pro patch capture/grading. Frozen prepared repos use pro_predictions.py; persistent evolutionary runs use e1v2/run_pro.py / e1v2/auto_run.py.
  • swe_bench/ — standard SWE-bench prediction helpers.
  • programbench/ — ProgramBench cleanroom runner (run_programbench_e2e.py for end-to-end Ouroboros harness runs; run_programbench.py prepare/package-only).
  • continual_learning/ — launcher wrapper for the EXTERNAL CL-Bench (continual-learning-bench.com) runner: strictly sequential memory / continual-learning runs against a live Ouroboros agent (evolution off). Use run_clb.py; the runner repo + its src/systems/ouroboros/ adapter are obtained separately (see its README).
  • harness_bench_fast/ — Ouroboros CLI wrapper and methodology notes for the public ai-forever/harness-bench-fast runner.
  • common/ — shared manifests, result ledgers, safe run roots, secret hygiene, and official command builders.

Output Roots

Write generated run artifacts under an explicit benchmark output root outside repo/ and outside live runtime data/, typically /Users/anton/Ouroboros/bench_runs/.... Tests must set OUROBOROS_BENCH_RUNS_ROOT to a temporary directory so local test runs do not pollute real benchmark bundles.

CLEAN SEED IS MANDATORY FOR SUBMITTABLE RUNS

BEFORE STARTING ANY SUBMITTABLE / LEADERBOARD RUN, THE SEED WORKTREE MUST BE CLEAN: git -C <seed> status --porcelain MUST BE EMPTY AND git describe --dirty MUST NOT CARRY A -dirty SUFFIX. A DIRTY SEED (UNCOMMITTED ADAPTER EDITS, STRAY FILES) MAKES THE RUN MANIFEST RECORD ...-dirty, THE PROVENANCE BECOMES NON-REPRODUCIBLE, AND THE RUN CANNOT BE SUBMITTED — THE MONEY IS BURNED. IF ADAPTER EDITS ARE NEEDED, COMMIT THEM FIRST (A WIP COMMIT IN THE SEED IS ACCEPTABLE IF RECORDED IN THE RUN NOTES), CLEAN UP STRAY FILES, THEN LAUNCH. IF A DIRTY SEED IS DISCOVERED AFTER LAUNCH, ESCALATE TO THE OWNER IMMEDIATELY (STOP VS FINISH IS THE OWNER'S CALL) — NEVER STAY SILENT.

Shared Sidecar Schemas

  • Run manifests record non-secret provenance: requested task ids where the benchmark runner exposes them before execution, requested counts/selection slots for deterministic first-N runs such as Terminal-Bench, exact argv, official command shape, output paths, model slots, source commit, dirty-state counts, and hashes. Defaults are adapter-specific (run_manifest.json, <predictions>.run_manifest.json, or osworld_preflight.run_manifest.json).
  • Result ledgers are denominator-preserving Ouroboros JSONL files. They record every requested instance, including setup failures, timeouts, and empty patches, even when the official benchmark prediction/submission format only accepts successful rows. Defaults are adapter-specific (result_index.jsonl, <predictions>.ledger.jsonl, or osworld_preflight.ledger.jsonl).

These sidecars are audit artifacts, not replacement scoring. Official benchmark harnesses and official result files remain the scoring authority.

Bench-Template Scaffold Defaults (v6.55.0)

All committed bench settings templates share these disclosed defaults:

  • Cost pacing (v6.56.0): tasks with a finite budget receive latched in-task COST milestones (50/25/10% remaining + ~80%-spent wrap-up note) from the task_pacing SSOT; budget_profile.cost_hard_stop_pct=0 (SWE-Pro/PB profiles) disables the in-task hard stop so deadline/rounds own the bounds.

  • OUROBOROS_MAX_WORKERS=4 — same-model subagent slots for decomposition WITHIN one task (the root agent takes one lane). Never independent attempts with selection, so pass@1 claims hold. The core default (10) is untouched.

  • OUROBOROS_SAFETY_MODE=light — bench containers/rendered data roots are disposable jails; deterministic guards stay, the LLM safety pass is kept for integration tools only. User defaults are untouched.

  • OUROBOROS_RUNTIME_MODE=pro for CONTAINER benches (Terminal-Bench, SWE-bench Pro, ProgramBench, OSWorld). GAIA stays light: its solver runs without workspace isolation against a live repo, so pro would grant benchmark prompts write authority over the system body.

  • claude_code_edit disabled in every bench solve task — benches measure the single-model Ouroboros harness; external coding delegates are a separate experiment. (D10 retired the tool itself; the legacy name in these configs stays meaningful because disabled_tools=["claude_code_edit"] also withholds the successor delegate_start.)

Per-bench METHODOLOGY files carry the full rationale.

Methodology Rule

Benchmark changes must be general-purpose harness improvements first. Do not add task-specific answers, hidden verifier knowledge, or resource/timeout overrides that violate a benchmark's official submission rules.

Upstream-Drift & Protocol-Fidelity Pre-Flight (MANDATORY before any expensive run)

Four checks, each of which failed at once in the CLB v6.81.0 campaign (continual_learning/METHODOLOGY.md §10-§12) and would have cost the whole budget if the run had been the submission:

  1. Upstream drift. Check the external benchmark repo's commits/PRs/issues AFTER our pin (via GitHub API/web; do not fetch into the pinned clone). A metric/scale change can ship as re-scored reference artifacts with no task-code commit — when reference artifacts carry two reward copies (top-level vs nested), prove which one the local scorer reads before trusting any number it prints.
  2. Empirical protocol fidelity. Verify every protocol parameter by its ARTIFACTS, not its flag. Multi-seed must mean different question orders: diff prompt hashes across seeds BEFORE mass spend (CLB: --run-index was accepted and silently dropped on 4/6 domains — five "seeds" were five replicates). This generalizes the "declared vs applied" settings rule to the harness itself.
  3. Read submission requirements BEFORE the run, not after. Which arms are mandatory (stateless baseline!), how many seeds, which artifact layout, whether a public implementation link is required — and run in submission-shape via the official runner from the start. Money burned on a non-submittable path converts to a submission only by fabricating provenance, which is prohibited.
  4. A pinned local scoring script is not ground truth. Reconcile local normalization against the PUBLIC leaderboard (top-1 value, last-updated date). A mismatch means a convention divergence to be root-caused — not "the other party's numbers are stale". Never compare two systems' raw scores without proving they are on the same scale.

LifelongAgentBench Status

lifelongagentbench (arXiv 2508.19005) has NO adapter here: the external runner is unavailable (only traces from a prior external run exist), and the observed 100% run was a metric artifact — the runner lacked a gold oracle, so e.g. a NULL-primary-key task graded as pass. Do not cite that number. Status: blocked until a real runner with gold labels is obtained.