Port a PHP booking app to Ruby
an agent harness with tools and a workspace
Suite v5 (version 5.0) · 44 scored tasks · cut 2026-11-19· What changed
What it asks
This is the Juniper Inn booking desk, a small PHP app from 2014: a router, a flat-file data layer (data/rooms.json and two CSV files), a quote calculator, date helpers and one HTML page. It runs from the command line, for example `php app.php '/quote?room=101&checkin=2024-03-19&nights=2&guests=1'`. Read README.md first. We're retiring PHP on this machine. Rewrite the app in Ruby so the front desk can keep using it exactly as before. What we need: 1. `ruby app.rb '<request>'`, run from the repo root, gives the same output and exit status as `php app.php '<request>'` for every request: the same JSON (as parsed values: same keys, values and types of container) or the same HTML text, and exit status 0 or 1 in the same cases. "The same" means the PHP app's actual behaviour, quirks included, not what the README or a comment says it should do. The front desk's habits depend on it. 2. Put the Ruby code in app.rb and lib/. Write idiomatic Ruby, standard library only: no gems, no Bundler, nothing to install. It must run on the `ruby` installed here (check `ruby -v`). 3. Port the legacy tests: `ruby test/run_tests.rb` must read the fixture cases in tests/fixtures/cases.json, run each request through your Ruby app, compare the status and body the way tests/run_tests.php does, print what failed and exit non-zero if anything did. All the cases must pass. Add more tests if you like. 4. Don't change data/, tests/fixtures/ or the PHP files; they are the reference. You may leave the PHP files in place. PHP may not be installed here, so you might not be able to run the old app to compare; the PHP source and the fixtures are the spec. Read the PHP carefully: the fixtures don't cover every request the desk sends. When you're done, end with a short summary of how the Ruby app is laid out and any PHP behaviour you had to reproduce deliberately.
How it's scored
Test groups
- Routes
- Loose comparison
- Numeric strings
- empty()
- Division
- Rounding
- Arrays
- Dates
- Ruby tests
Scored 24 tests in total, scaled to 10, by hidden tests.
Which checks trip models up
Share of the 36 setups’ newest counted runs that passed each check, hardest first. A part-credit check counts the share it earned.
Score spread
One dot per setup, at its mean score. Dots at the same score stack. Select a dot for its run.
Local Cloud
Show the scores as a table
Best performers
Each model's best setup (the one the leaderboard ranks it by, on its Overall score), ranked by score on this task, then time. Check squares are from the setup's newest counted run. Select a run ID to open that run.
| # | Maker | Model | Setup | Score | Routes | Loose comparison | Numeric strings | empty() | Division | Rounding | Arrays | Dates | Ruby tests | Time | Tokens out | Cost |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 1 | Anthropic | claude-sonnet-5.5 | cloud pi openrouter | 10.0 | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | 2m 17s | 19k | $0.571 |
| 2 | DeepSeek | deepseek-v4.1-flash | cloud pi openrouter | 10.0 | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | 8m 46s | 96k | $3.01 |
| 3 | OpenAI | gpt-6-luna | cloud pi openrouter | 9.6 | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ~ | ✓ | ✓ | 1m 27s | 9.6k | $0.332 |
| 4 | Qwen | qwen3.8-27b | cloud pi openrouter | 9.2 | ✓ | ✓ | ✓ | ✓ | ✕ | ✓ | ✓ | ~ | ✓ | 4m 57s | 79k | $1.12 |
| 5 | Z.ai (OpenRouter) | glm-5.3-flash | cloud pi openrouter | 9.2 | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✕ | 18m 51s | 147k | $0.692 |
| 6 | Poolside | laguna-xs-2.1 | local q4_k_m · reasoning on · pi Apple M1 Pro, 32 GB (Ironwood) | 4.6 | ~ | ✕ | ~ | ✕ | ✕ | ~ | ✕ | ~ | ✓ | 10m 57s | 12k | ≈$0.0013 |
| 7 | Allen Institute for AI | allenai/olmocr-2-7b | local q4_k_m · opencode Apple M5 Pro, 48 GB (Duskfall, Eclipse) | 0.0 | ✕ | ✕ | ✕ | ✕ | ✕ | ✕ | ✕ | ✕ | ✕ | 6.5s | 247 | ≈<$0.0001 |
| 8 | NVIDIA | nemotron-3-nano-4b | local q4_k_m · reasoning on · pi Apple M5 Pro, 48 GB (Duskfall, Eclipse) | 0.0 | ✕ | ✕ | ✕ | ✕ | ✕ | ✕ | ✕ | ✕ | ✕ | 7.3s | 276 | ≈<$0.0001 |
| 9 | Anthropic | claude-opus-5.5 | cloud pi openrouter | 0.0 | ✕ | ✕ | ✕ | ✕ | ✕ | ✕ | ✕ | ✕ | ✕ | 8.8s | 0 | $0 |
| 10 | Moonshot AI | kimi-k2.6 | cloud pi openrouter | 0.0 | ✕ | ✕ | ✕ | ✕ | ✕ | ✕ | ✕ | ✕ | ✕ | 8.8s | 0 | $0 |
| 11 | Mistral AI | ministral-3-14b-reasoning | local q4_k_m · reasoning on · pi Apple M5 Pro, 48 GB (Duskfall, Eclipse) | 0.0 | ✕ | ✕ | ✕ | ✕ | ✕ | ✕ | ✕ | ✕ | ✕ | 16s | 0 | ≈<$0.0001 |
| 12 | OpenAI | gpt-oss-20b | local mxfp4 · reasoning medium · pi Apple M1 Pro, 32 GB (Ironwood) | 0.0 | ✕ | ✕ | ✕ | ✕ | ✕ | ✕ | ✕ | ✕ | ✕ | 16s | 163 | ≈<$0.0001 |
| 13 | OpenAI | gpt-oss-20b | local mxfp4 · reasoning low · opencode Apple M1 Pro, 32 GB (Ironwood) | 0.0 | ✕ | ✕ | ✕ | ✕ | ✕ | ✕ | ✕ | ✕ | ✕ | 59s | 1.1k | ≈$0.00012 |
| 14 | OpenAI | gpt-oss-20b | local mxfp4 · reasoning high · pi Apple M1 Pro, 32 GB (Ironwood) | 0.0 | ✕ | ✕ | ✕ | ✕ | ✕ | ✕ | ✕ | ✕ | ✕ | 1m 07s | 2.0k | ≈$0.00014 |
| 15 | OpenAI | gpt-6.1-sol | cloud pi openrouter | 0.0 | ✕ | ✕ | ✕ | ✕ | ✕ | ✕ | ✕ | ✕ | ✕ | 1m 10s | 3.4k | $0.426 |
| 16 | Qwen | qwen3.6-35b-a3b | local 6bit · reasoning off · pi Apple M5 Pro, 48 GB (Duskfall, Eclipse) | 0.0 | ✕ | ✕ | ✕ | ✕ | ✕ | ✕ | ✕ | ✕ | ✕ | 4m 51s | 18k | ≈$0.00089 |
| 17 | Qwen | qwen3.6-35b-a3b | local 6bit · reasoning on · pi Apple M5 Pro, 48 GB (Duskfall, Eclipse) | 0.0 | ✕ | ✕ | ✕ | ✕ | ✕ | ✕ | ✕ | ✕ | ✕ | 7m 16s | 18k | ≈$0.0013 |
| 18 | Unknown | nvidia-nemotron-3.5-lightning-30b-a3b | local q4_k_m · reasoning on · pi Apple M5 Pro, 48 GB (Duskfall, Eclipse) | 0.0 | ✕ | ✕ | ✕ | ✕ | ✕ | ✕ | ✕ | ✕ | ✕ | 8m 46s | 19k | ≈$0.0016 |
| 19 | thinkingmachines | thinkingmachines/inkling-2-mini | local q4_k_m · reasoning low · pi Apple M5 Pro, 48 GB (Duskfall, Eclipse) | 0.0 | ✕ | ✕ | ✕ | ✕ | ✕ | ✕ | ✕ | ✕ | ✕ | 10m 13s | 17k | ≈$0.0019 |
| 20 | Recursive | flint | local q4_k_m · reasoning on · pi Apple M5 Pro, 48 GB (Duskfall, Eclipse) | 0.0 | ✕ | ✕ | ✕ | ✕ | ✕ | ✕ | ✕ | ✕ | ✕ | 10m 48s | 17k | ≈$0.0020 |
| 21 | Qwen | qwen3.8-27b | local q3_k_s · reasoning high · pi AMD Ryzen 7 7700, NVIDIA RTX 5070 Ti 16 GB, 32 GB (Whitehall) | 0.0 | ✕ | ✕ | ✕ | ✕ | ✕ | ✕ | ✕ | ✕ | ✕ | 11m 56s | 19k | ≈$0.013 |
| 22 | Qwen | qwen3.8-27b | local 4bit · reasoning on · pi Apple M5 Pro, 48 GB (Duskfall, Eclipse) | 0.0 | ✕ | ✕ | ✕ | ✕ | ✕ | ✕ | ✕ | ✕ | ✕ | 13m 30s | 18k | ≈$0.0025 |
| 23 | thinkingmachines | thinkingmachines/inkling-2-mini | local q4_k_m · reasoning high · pi Apple M5 Pro, 48 GB (Duskfall, Eclipse) | 0.0×2 | ✕ | ✕ | ✕ | ✕ | ✕ | ✕ | ✕ | ✕ | ✕ | 15m 10s | 27k | ≈$0.0028 |
| 24 | Unknown | granite-4.2-3b | local q4_k_m · reasoning on · pi Apple M5 Pro, 48 GB (Duskfall, Eclipse) | 0.0 | ✕ | ✕ | ✕ | ✕ | ✕ | ✕ | ✕ | ✕ | ✕ | 20m 00s | 38k | ≈$0.0037 |
| 25 | Ornith AI | ornith-1.5-9b | local q4_k_m · reasoning on · pi Apple M1 Pro, 32 GB (Ironwood) | 0.0 | ✕ | ✕ | ✕ | ✕ | ✕ | ✕ | ✕ | ✕ | ✕ | 55m 15s | 1.7k | ≈$0.0067 |
- Anthropiccloud pi openrouterScore 10.0✓✓✓✓✓✓✓✓✓Time 2m 17sTokens out 19kCost $0.571
- DeepSeekcloud pi openrouterScore 10.0✓✓✓✓✓✓✓✓✓Time 8m 46sTokens out 96kCost $3.01
- OpenAIcloud pi openrouterScore 9.6✓✓✓✓✓✓~✓✓Time 1m 27sTokens out 9.6kCost $0.332
- Qwencloud pi openrouterScore 9.2✓✓✓✓✕✓✓~✓Time 4m 57sTokens out 79kCost $1.12
- Z.ai (OpenRouter)cloud pi openrouterScore 9.2✓✓✓✓✓✓✓✓✕Time 18m 51sTokens out 147kCost $0.692
- Poolsidelocal q4_k_m · reasoning on · pi Apple M1 Pro, 32 GB (Ironwood)Score 4.6~✕~✕✕~✕~✓Time 10m 57sTokens out 12kCost ≈$0.0013
- Allen Institute for AIlocal q4_k_m · opencode Apple M5 Pro, 48 GB (Duskfall, Eclipse)Score 0.0✕✕✕✕✕✕✕✕✕Time 6.5sTokens out 247Cost ≈<$0.0001
- NVIDIAlocal q4_k_m · reasoning on · pi Apple M5 Pro, 48 GB (Duskfall, Eclipse)Score 0.0✕✕✕✕✕✕✕✕✕Time 7.3sTokens out 276Cost ≈<$0.0001
- Anthropiccloud pi openrouterScore 0.0✕✕✕✕✕✕✕✕✕Time 8.8sTokens out 0Cost $0
- Moonshot AIcloud pi openrouterScore 0.0✕✕✕✕✕✕✕✕✕Time 8.8sTokens out 0Cost $0
- Mistral AIlocal q4_k_m · reasoning on · pi Apple M5 Pro, 48 GB (Duskfall, Eclipse)Score 0.0✕✕✕✕✕✕✕✕✕Time 16sTokens out 0Cost ≈<$0.0001
- OpenAIlocal mxfp4 · reasoning medium · pi Apple M1 Pro, 32 GB (Ironwood)Score 0.0✕✕✕✕✕✕✕✕✕Time 16sTokens out 163Cost ≈<$0.0001
- OpenAIlocal mxfp4 · reasoning low · opencode Apple M1 Pro, 32 GB (Ironwood)Score 0.0✕✕✕✕✕✕✕✕✕Time 59sTokens out 1.1kCost ≈$0.00012
- OpenAIlocal mxfp4 · reasoning high · pi Apple M1 Pro, 32 GB (Ironwood)Score 0.0✕✕✕✕✕✕✕✕✕Time 1m 07sTokens out 2.0kCost ≈$0.00014
- OpenAIcloud pi openrouterScore 0.0✕✕✕✕✕✕✕✕✕Time 1m 10sTokens out 3.4kCost $0.426
- Qwenlocal 6bit · reasoning off · pi Apple M5 Pro, 48 GB (Duskfall, Eclipse)Score 0.0✕✕✕✕✕✕✕✕✕Time 4m 51sTokens out 18kCost ≈$0.00089
- Qwenlocal 6bit · reasoning on · pi Apple M5 Pro, 48 GB (Duskfall, Eclipse)Score 0.0✕✕✕✕✕✕✕✕✕Time 7m 16sTokens out 18kCost ≈$0.0013
- Unknownlocal q4_k_m · reasoning on · pi Apple M5 Pro, 48 GB (Duskfall, Eclipse)Score 0.0✕✕✕✕✕✕✕✕✕Time 8m 46sTokens out 19kCost ≈$0.0016
- thinkingmachineslocal q4_k_m · reasoning low · pi Apple M5 Pro, 48 GB (Duskfall, Eclipse)Score 0.0✕✕✕✕✕✕✕✕✕Time 10m 13sTokens out 17kCost ≈$0.0019
- Recursivelocal q4_k_m · reasoning on · pi Apple M5 Pro, 48 GB (Duskfall, Eclipse)Score 0.0✕✕✕✕✕✕✕✕✕Time 10m 48sTokens out 17kCost ≈$0.0020
- Qwenlocal q3_k_s · reasoning high · pi AMD Ryzen 7 7700, NVIDIA RTX 5070 Ti 16 GB, 32 GB (Whitehall)Score 0.0✕✕✕✕✕✕✕✕✕Time 11m 56sTokens out 19kCost ≈$0.013
- Qwenlocal 4bit · reasoning on · pi Apple M5 Pro, 48 GB (Duskfall, Eclipse)Score 0.0✕✕✕✕✕✕✕✕✕Time 13m 30sTokens out 18kCost ≈$0.0025
- thinkingmachineslocal q4_k_m · reasoning high · pi Apple M5 Pro, 48 GB (Duskfall, Eclipse)Score 0.0×2 runs✕✕✕✕✕✕✕✕✕Time 15m 10sTokens out 27kCost ≈$0.0028
- Unknownlocal q4_k_m · reasoning on · pi Apple M5 Pro, 48 GB (Duskfall, Eclipse)Score 0.0✕✕✕✕✕✕✕✕✕Time 20m 00sTokens out 38kCost ≈$0.0037
- Ornith AIlocal q4_k_m · reasoning on · pi Apple M1 Pro, 32 GB (Ironwood)Score 0.0✕✕✕✕✕✕✕✕✕Time 55m 15sTokens out 1.7kCost ≈$0.0067
Score against effort
Score against median time per run, log scale. Up and to the left is better. Each dot is a setup; the best setup of each model is named. Times and costs are from different machines and providers, so read them as each setup's own, not as a like-for-like speed test.
Local Cloud
Show the points as a table
Harness comparison
The same task through each agent harness this suite scores for it.
| Harness | Setups | Mean score | Best score | Median time |
|---|---|---|---|---|
| opencode | 7 | 3.8 | 10.0 | 13m 33s |
| pi | 29 | 1.8 | 10.0 | 4m 51s |
- opencodeSetups 7Mean score 3.8Best score 10.0Median time 13m 33s
- piSetups 29Mean score 1.8Best score 10.0Median time 4m 51s
Same setup, different harness
opencodepi
Show the scores as a table
| Setup | Harness scores |
|---|---|
| gpt-6-luna | opencode 10.0 · pi 9.6 |
| deepseek-v4.1-flash | opencode 9.2 · pi 10.0 |
| glm-5.3-flash | opencode 7.1 · pi 9.2 |
| allenai/olmocr-2-7b | opencode 0.0 · pi 0.0 |
| gpt-oss-20b (reasoning low) | opencode 0.0 · pi 0.0 |
| qwen3.8-27b (reasoning on) | opencode 0.0 · pi 0.0 |
| thinkingmachines/inkling-2-mini (reasoning high) | opencode 0.0 · pi 0.0 |