Skip to content

fix(pro): use an example that is not a bench problem - #11

Merged
Tromset merged 3 commits into
mainfrom
claude-code/peaceful-hamilton-89ge2k
Oct 8, 2026
Merged

Tromset merged 3 commits into
mainfrom
claude-code/peaceful-hamilton-89ge2k

Conversation

@Tromset

@Tromset Tromset commented Oct 8, 2026

Copy link
Copy Markdown
Owner

Why

The worked example in Modelfile.pro solved parse_duration, which is also the bench problem py-parse-duration. Every conversation with flycoder0.3pro would carry a near-answer to that problem, so its bench score would be inflated.

What changes

  • New example: it now validates an IPv4 address (is_valid_ipv4), a task that is not in the bench. It keeps the same shape: assumption, code, pytest tests, run command.
  • New guard test: tests/modelfile.test.mjs fails if the example's request names the function of any bench problem.

Verification

  • npm test: 67 tests pass.
  • The example code passes its 16 pytest cases.
  • npm test fails if the leading-zero check is removed from the example.
  • The 9B proxy of the pro recipe (flycoder-pro-recipe9b) is rebuilt with this example, and its A/B bench is queued. The bench results will come in a follow-up commit.

🤖 Generated with Claude Code

https://claude.ai/code/session_013QgiejZTjqQAUv4N4EFskK


Generated by Claude Code

claude added 3 commits October 8, 2026 19:35
The pro example conversation solved parse_duration, which is also the
bench problem py-parse-duration: the model would have seen the answer
and its score would have been inflated. The example now validates an
IPv4 address, and a test fails if the example ever matches a bench
problem again.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_013QgiejZTjqQAUv4N4EFskK
Partial results written by the running bench; the final run replaces them.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_013QgiejZTjqQAUv4N4EFskK
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_013QgiejZTjqQAUv4N4EFskK
@Tromset
Tromset marked this pull request as ready for review October 8, 2026 19:37
@Tromset
Tromset merged commit ebb0311 into main Oct 8, 2026
2 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.

2 participants