Skip to content

Keep Fable to the hardest stages, at medium thinking at most (0.16.0) - #16

Merged
bryanwieg merged 2 commits into
mainfrom
fable-cap
Nov 26, 2026
Merged

bryanwieg merged 2 commits into
mainfrom
fable-cap

Conversation

@bryanwieg

@bryanwieg bryanwieg commented Nov 26, 2026 •

Copy link
Copy Markdown
Owner

Fable took 148 of 258 scored stages, mostly Fable low on middle+, at $1.59 a stage against $0.35–0.61 for Opus high at similar token counts. Its benchmark run cost (2862 vs Opus high's 2716) understates its real spend, so the router treated it as a cheap step up.

Changes (select-models.py)

  • PICK_CEILINGS: Fable is never picked above medium. Its higher levels still set the best score, so the tier floors keep middle on Opus high and small on Haiku xhigh.
  • No premium pair below top, except a --up retry after a failed build once the standard pairs run out (drops PREMIUM_RATIO_MARGIN).
  • The J2/C2 and speed preferences never move a standard pick onto a premium pair, and top is never below middle+'s standard pick.
  • A tier that no pair meets takes the best-scoring pair, then the 3-point tie rule.
  • A --down retry after a budget stop now goes one pair below the held pick instead of landing on the stopped pair again.

Effect on the 258 real stages

Before After
Fable high / medium / low 4 / 11 / 133 0 / 0 / 4 (top+ only)
Opus high / medium 76 / 8 220 / 8
Haiku xhigh / Sonnet high 25 / 1 25 / 1
Reviews Fable medium or high Opus high; Fable low for phases with a top+ stage

Tests

test_select_models.py is updated and has a new pick-ceiling test.

A second commit adds tests/conftest.py. The tests put stub claude/codex scripts on PATH under pytest's temp directory. On a noexec /tmp (the ai-coding sandbox) the stubs couldn't run, so the real CLI answered and 36 tests failed. When the temp directory is noexec, the temp root moves to the ignored tests/.pytest-tmp, and git is stopped there (GIT_CEILING_DIRECTORIES). A noexec --basetemp is refused rather than silently calling the real CLI. On CI's /tmp it changes nothing.

All 151 tests pass in the sandbox with CI's command, and with an exec-capable TMPDIR (CI's path).

🤖 Generated with Claude Code

bryanwieg and others added 2 commits November 26, 2026 18:06
Fable took 148 of 258 scored stages, mostly Fable low on middle+, at $1.59
a stage against $0.35-0.61 for Opus high at similar token counts: its
benchmark run cost understates real spend.

- PICK_CEILINGS: Fable is never picked above medium; its higher levels
  still set the best score, so the floors keep the other tiers' picks.
- No premium pair below top, except a --up retry once the standard pairs
  run out (drops PREMIUM_RATIO_MARGIN). The J2/C2 and speed preferences
  never move a standard pick onto a premium pair; top is never below
  middle+'s standard pick.
- A tier no pair meets takes the best one, then the 3-point tie rule.

On the 258 real stages: Fable low 4 (top+ only), Opus high 220, Opus
medium 8, Haiku xhigh 25, Sonnet high 1. Reviews: Opus high, Fable low
for a phase with a top+ stage.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The tests put stub claude and codex scripts on PATH under pytest's temp
directory. On a noexec /tmp (the ai-coding sandbox) the stubs could not
run, so the real CLI answered and 36 tests failed. When the temp
directory is noexec, conftest.py moves it to the ignored
tests/.pytest-tmp and stops git there (GIT_CEILING_DIRECTORIES), so test
directories are not taken as part of this repository. A noexec
--basetemp is refused instead of silently calling the real CLI.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@bryanwieg
bryanwieg merged commit f251bd9 into main Nov 26, 2026
1 check 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