Local Caveling vs subscription frontier models
Measured on a fixed eight-task subset: MAI-Code-2 passed 7/8 · 53–98%, GPT-6.1 Sol 7/8 · 53–98% and Claude Opus 5.5 6/8 · 41–93%, one attempt per task, against 12/24 · 31–69% for local Caveling-2-Mini Q4_K_M (three attempts/task). On the complete ten-task real-repository corpus, a separate and harder suite from its 24/30 Polyglot result, Caveling passed 14/30 · 30–64%. Inferred: hosted models were materially faster and used fewer tool calls; one hosted attempt per task is not a statistical estimate, and Caveling's three-attempt denominator gives it more opportunities, so the rates are not equivalent.
Comparison
Overall
| Model/configuration | Attempts | Pass, 95% interval | Wall time (s) | Retries |
|---|---|---|---|---|
| Caveling Q4_K_M 64K, subset | 24 | 12/24 · 31–69% | 14,902 | n/r |
| MAI-Code-2 | 8 | 7/8 · 53–98% | 599 | n/m |
| GPT-6.1 Sol | 8 | 7/8 · 53–98% | 406 | n/m |
| Claude Opus 5.5 | 8 | 6/8 · 41–93% | 283 | n/m |
All three frontier models missed the review-config-default-port acceptance check. Opus 5.5 additionally produced the migration fix without the required failed-then-successful tool sequence in recover-migration-index.
Tokens and tool calls
| Model/configuration | Input/new tokens | Cache read | Output | Reasoning | Tool calls / errors |
|---|---|---|---|---|---|
| Caveling Q4_K_M 64K, subset | n/r | n/c | 64,368 | n/r | 228 / 13 |
| MAI-Code-2 | 317,786 | 708,608 | 24,929 | 8,190 | 92 / 36 |
| GPT-6.1 Sol | 138 | 239,001 | 8,188 | 499 | 38 / 5 |
| Claude Opus 5.5 | 112 | 406,315 | 20,100 | 1,574 | 45 / 2 |
n/r = not separately reported; n/c = not comparable (local server cache reuse); n/m = not measured reliably. Output for Caveling is generated tokens.
Caveling has 24 attempts because it uses three per task. Each frontier model had one per task. “Input/new” is provider reporting through Pi; cache reads are separate. Frontier requests kept provider output and temperature defaults, now recorded in the JSON. The first runner passed raw JSONL strings through retry/error counters, so historical retry and extension-error counts are not reliable measurements; all 24 files mark them unknown. The normalized runner counts them. Pi did not expose premium-request use, so it is not measured.
Fixed eight-task subset
The subset was selected before the hosted runs and was not changed after results
| Task | Source | Why included |
|---|---|---|
go-robot-simulator |
Polyglot | Multi-step Go implementation |
python-bowling |
Polyglot | Stateful Python implementation |
python-two-bucket |
Polyglot | Algorithmic Python implementation |
go-octal |
Polyglot | Small Go conversion problem |
bugfix-dhlisting-json |
SlabLedger | Small production bug fix |
testgen-intelligence-json |
SlabLedger | Test generation against required mutants |
review-config-default-port |
SlabLedger | Structured code review |
recover-migration-index |
SlabLedger | Tool-call recovery plus migration fix |
The machine-readable fixed list and reason are in evals/tasks/frontier-subset.json.
Per task
| Task | Caveling Q4_K_M | MAI-Code-2 | GPT-6.1 Sol | Opus 5.5 |
|---|---|---|---|---|
go-robot-simulator |
0/3 | pass | pass | pass |
python-bowling |
1/3 | pass | pass | pass |
python-two-bucket |
2/3 | pass | pass | pass |
go-octal |
3/3 | pass | pass | pass |
bugfix-dhlisting-json |
0/3 | pass | pass | pass |
testgen-intelligence-json |
3/3 | pass | pass | pass |
review-config-default-port |
0/3 | fail: wrong/extra finding | fail: wrong/extra finding | fail: wrong/extra finding |
recover-migration-index |
3/3 | pass | pass | fail: missing recovery sequence |
No result changed a path outside scope. GPT-6.1 Sol's passing tests exceeded the reference change by 27 lines; Opus 5.5 exceeded it by 123. The policy records unnecessary-change evidence but does not fail it alone.
Full Caveling real-world corpus
Measured, all ten tasks × three attempts: 14/30 · 30–64%, 20,534 s total wall, 118,327 generated tokens, 556 tool calls and 22 tool errors across Go tasks, plus 30,971 generated tokens and 46 tool calls for the Python CI task.
| Task | Caveling |
|---|---|
bugfix-intelligence-json |
3/3 |
bugfix-dhlisting-json |
0/3 |
testgen-intelligence-json |
3/3 |
ci-paths-filter |
0/3 |
feature-config-default-port |
2/3 |
review-config-default-port |
0/3 |
recover-migration-index |
3/3 |
refactor-sell-sheet-cents |
3/3 |
refactor-shared-helpers |
0/3 |
plan-dh-cert-resolution |
0/3 |
Timeouts dominated no-diff and multi-step failures. The runner classified completed failures from verified evidence. JSON retains acceptance criteria and Pi/tool events.
Credential and network design
The design comparison considered:
- Run Pi inside bwrap. Strong boundary, but Pi cannot read the existing Copilot credential.
- Keep Pi on the host and replace its four model tools with bwrap operations. Selected. Host Pi keeps authentication; the model gets only sandboxed
read,edit,writeandbash. Extensions, skills, MCP, prompt templates and sessions are disabled. - Run Pi in bwrap with a host auth forwarder. Rejected: Copilot's token flow was not shown to be safe, and the broker would carry credentials.
- Plain Docker. Rejected: it needs credential injection or proxying plus unapproved setup and downloads.
profiles/pi-frontier/pi-frontier starts host Pi. sandbox-tools.ts replaces each enabled tool, and sandbox.py invokes the clear-environment, network-isolated bwrap command. Only the task workspace is writable. Provider traffic stays in host Pi; tool processes have no network route.
Observed negative tests:
- reading a real host
$HOMEsentinel failed inside the tool sandbox; - reading
~/.pi/agent/auth.jsonand the credential placeholder failed; - a host loopback listener and a public address were unreachable;
- a host environment secret was absent;
- task and state paths remained writable while toolchain mounts were read-only.
Profile loading and all five profile tests passed. No credential contents were read and no hosted request was sent before approval.
Harness issues and corrections
MAI-Code-2's eight runs used profile 1d0c72f. A path bug sent read to host-absolute paths. Models recovered with sandboxed bash; those failures are counted above. The local server reproduced the bug. 495c7c2 maps host task paths to /workspace, and a local Pi probe then read successfully. GPT-6.1 Sol and Opus 5.5 used that profile.
A final review found two differences after 24 hosted attempts. The tool sandbox lacked the pre-fetched Go module cache, so model-driven tests could not resolve dependencies with GOPROXY=off. Acceptance still had the cache; models lacked its feedback. Polyglot diff evidence also used host Git, not the runner's sandboxed commands. A benign test showed model-controlled Git metadata could redirect evidence outside the attempt. No redirect appears in the records, but these runs do not evidence the final boundary. Both are fixed: tools receive a read-only cache bind, and test/diff/stat collection is sandboxed.
These setup differences matter: MAI has 36 read errors, and every model lacked the module cache during testing. GPT and Opus had working read but still lacked the cache. MAI passed 7/8, yet timing, token and tool-error values are not clean like-for-like evidence. Hosted reruns were not used: the task and subscription budget fixed one attempt per model.
Failure classification
| Model | Task | Failure | Classification |
|---|---|---|---|
| MAI-Code-2 | review-config-default-port |
missed expected finding and added an unrecognized location | model |
| GPT-6.1 Sol | review-config-default-port |
missed expected finding and added an unrecognized location | model |
| Opus 5.5 | review-config-default-port |
missed expected finding and added an unrecognized location | model |
| Opus 5.5 | recover-migration-index |
fix passed but required failure-then-success recovery event was absent | model |
MAI's repeated read errors were harness failures but failed no task. The 24 hosted results record no Copilot connection error or infrastructure abort. Historical retry and extension-error counts remain unknown because of the collection bug. No host intervention was observed.
Measured vs inferred
Measured: pass/fail, wall time, provider token buckets, Pi tool counts, protected-file and scope checks, acceptance, local server identity/context and negative sandbox tests. Historical retry and extension-error counts remain unmeasured; the corrected runner measures them.
Inferred: hosted pass superiority, delegation suitability and relative efficiency. Hosted rows have one attempt per task; Caveling has three. MAI had a corrected tool-path issue, and all hosted attempts preceded the cache mount and sandboxed-diff fix. Reasoning tokens are measured only when Pi/provider usage exposes them; premium-request use was not visible.
Raw evidence
results/reference/20261202T080000Z-caveling-real-suite.jsonresults/reference/20261202T010000Z-caveling-q4-k-m-64k-polyglot-suite.json- Per-run frontier JSON files under
results/reference/, one for each of 24 task/model pairs.
The runner accepts existing real-task source/module caches with --cache-dir ... --cache-only, avoiding public-source fetches during measured attempts. The Caveling server remained unchanged, healthy, and idle at 65,536 context after the runs.