Skip to main content

Router hierarchy: bounded chain proof

The #430 harness replays real agent clients against a local scripted SSE upstream directly and through router chains. The table records scheduled mock runs, not a complete API compatibility matrix.

Scheduled runAgent chain cellsSandboxed Codex Responses cellsEvidence
2026-10-2820/205/5router / v45-proof / 430, snapshot 1e3af31b
2026-10-2920/205/5snapshot 1e3af31b
2026-10-3024/245/5snapshot 1e3af31b
2026-10-3124/245/5snapshot be5e58bf

The first 20 cells cover pi, LangGraph, OpenAI Agents SDK and Claude Code at depths 0, 1, 2, 3 and 5 in their same dialect. Four Claude Messages → Chat cells at depths 1, 2, 3 and 5 were added by #508, with thinking disabled. Codex is a separate sandboxed Responses matrix. Each cell checks a scripted tool continuation, not complete stream equivalence. The runs report zero hosted calls and $0 hosted cost.

Separately, a small live comparison sampled depths 2 and 3 against a provider; evidence is router / v45-proof / 430, snapshot dcb4d3d3. Its $0.00009210 list-rate calculation is an estimate; actual billed cost is not reconciled. It is not a latency or accounting benchmark.

Rerun​

With Go, Node/npm, Python and uv installed, run from a checkout:

make agent-chain-mock

This credential-free local command installs pinned dependencies and writes per-cell results to tests/agent_compat/.out/chain-matrix.json; dependency downloads may require network access. It covers the 24 agent cells, not the separate sandboxed Codex cells. See the suite README for prerequisites and Codex.

Limits​

Four scheduled observations are not a week of green or triaged nightly runs. Unlisted cells, complete streaming, live-provider and billing behavior, per-hop latency (p50, p99 and TTFT), trace propagation and complete per-hop accounting are not proven. Per-hop p50/p99/TTFT measurement is tracked in #587. The loop protection implementation uses best-effort normalized Via entries and excludes Bedrock. The observed trace correlation gap is tracked in #492; the layered deployment and hierarchy release gate continue in #434. See #430 for other observations and limitations.