Skip to content

test: qualify agent parity and separate Python/Rust runtime costs - #1204

Merged
PurpleCHOIms merged 11 commits into
mainfrom
experiment/agent-parity-functional-20261116
Nov 17, 2026
Merged

PurpleCHOIms merged 11 commits into
mainfrom
experiment/agent-parity-functional-20261116

Conversation

@PurpleCHOIms

@PurpleCHOIms PurpleCHOIms commented Nov 16, 2026 •

Copy link
Copy Markdown
Member

This replaces echo-only performance claims with an isolated five-feature qualification task and separates framework comparisons from an architecture-matched Python/Rust control. Every candidate actually plans, delegates to an inspector, reads a file, executes the same Docker sandbox program, persists memory, survives SIGKILL at a durable boundary, restores its pending work in a fresh process, writes the report and completes its plan. Rust HTTP servers are specified to use Axum in AGENTS.md; this fixture adds no Rust server or production runtime.

Results and scope

  • 50 qualified runs: 15 live runs with 180 actual gpt-6.1-sol calls, 25 exact-trajectory replays and 10 additional CPU-affinity control runs. Replays make no new model calls; they still execute the real tools, Docker and SQLite recovery.
  • All 12 upstream requests match the captured live trajectory in each replay. The Python/native-Rust pair has identical ordered histories across all 23 checkpoints in each of ten pairs. Five deliberately changed requests fail before tool execution or upstream model calls.
  • CPU-affinity control medians: Python/Rust active CPU 181.8/45.6 ms, cold-process CPU 796.4/76.1 ms, peak RSS 35.55/7.22 MiB. CPU time is not user-visible completion time. Live completion medians are 40.5/37.4 s. Shared-host variation and every initial failure are retained; these are scenario-specific implementation costs, not a universal language speedup or a complete Rust LangGraph port.
  • Direct LangChain uses the same Deep Agents capability middleware and LangGraph engine. Rig uses the official AgentRun state machine. The fixture does not certify production maturity, arbitrary cancellation/failure recovery, parallelism or full API compatibility.

Measured results, raw archive and limitations · reproduction and controls · CHAGELOG.md

Intent and blast radius

Follow-up to #1202 and #1203; applies the evidence requirement in ADR-0004 before drawing performance conclusions. Anti-goal: production migration, deployment, a mature framework release or an implementation of a Rust HTTP server. Tier-auto: isolated tests/research, with no changes to product packages, root dependency manifests, release automation or Docker isolation settings. The standalone locked manifests only support this explicitly invoked fixture. Runtime-code budget is zero outside excluded tests; remaining changes are agent instructions and changelog documentation. Longer orchestration functions keep the complete experimental boundary visible for review.

End-to-end verification

Built both Rust release features through with-build-slot, copied the separately identified binaries, then ran tests/agent_parity/.venv/bin/python tests/agent_parity/suite.py --output-dir /home/catow/research/decepticon-agent-parity-20261116/final-suite and paired.py --golden .../final-suite/live-0-native.json --output-dir .../affinity-pairs through that coordinator. Inspected public model/tool/graph events and actual Docker inspect/stdout. Ran reject.sh against the live trace and verified all five candidates rejected the changed request before any tool/upstream call. summarize.py rejected incomplete/missing-negative evidence, then validated all 50 cases, exact request equality, actual sandbox settings, SQLite versions and checkpoint history equality. Independently verified archived source/binary hashes against this tree and scanned for authentication fields.

Local checks

  • Both Cargo release builds, fmt and clippy features native/rig with -D warnings: pass; heavy Cargo work used the shared coordinator.
  • uv run pytest tests/ -q: 37 passed in 10.47s. The initial -n 4 run had 35 passed/2 failures from the existing temporary .env fixture racing across workers; this failure is documented, no product/test guard was changed or skipped.
  • make ci-lint: zero errors, 949 existing warnings. Final root Ruff check/format pass (931 files). Explicit checking of all seven new Python files: zero errors and zero warnings.
  • No product/UI/image changes: full production app builds and make smoke were not run. Package-wide product tests were not claimed. GitHub Actions are not represented as passed; verification is local under the account billing constraint.

The archive includes public messages, synthetic task files and resource metadata; it excludes credentials and hidden reasoning. Full source was reviewed, generated locks/data were validated, and failed trials were preserved.

Integration review — 2026-11-17

Integrated latest main (309a9b51) and reviewed every source file, lock, original archive and checkpoint proof. Found and fixed a real replay safety defect: an empty replay map could fall through to the live provider. Replay mode is now explicit, and malformed, unqualified, non-live or empty captures fail before Docker/provider access. Six regressions fail against the original runner and pass after the fix; no paid call was made by those tests.

  • Root tests: 43 passed, exit 0. Canonical locked make ci-lint: Ruff/format pass (935 files), basedpyright 0 errors / 964 warnings; fixture-only analysis 0 errors / 0 warnings. Cargo fmt passes; unchanged Rust binaries were independently hash-verified against the original archive.
  • Replayed all five frameworks with the live provider replaced by an unconditional failure: 5 qualified runs / 60 captured calls / 0 live calls, real cached Docker sandbox and durable restart/checkpoints. Heavy execution used with-build-slot.
  • Independently checked all original 50 cases, 180 live / 420 replay calls, 11 source hashes, all ten paired histories, isolation and summary medians. Original measurements remain attributed to original source e308a341; the review does not claim a new performance batch.
  • Separate public review archive: tests/agent_parity/artifacts/review-20261117.json.gz, SHA256 c04bebb64de1b67e92b5bae56aca382946b04062b82e32f63946991307be955e. Initial fixture setup/formatter diagnostics are retained and described in README.
  • Actual GitHub checks on head 1ccf3521a122ad810cab4f877d563c021df0f995 are complete, including required CI OK, Python, dependency review and security scans. Skipped unrelated Docker/telemetry jobs are not claimed as passed.

Updated version history. No product runtime/deployment change or production parity claim.

@PurpleCHOIms
PurpleCHOIms merged commit 0455ebc into main Nov 17, 2026
24 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant