Add four harder benchmark tasks
All seven newer local models passed the original four tasks 20 of 20, so the benchmark no longer told them apart. The new tasks keep plans explicit, as the planner is told to write them, and make the work itself harder: - trace-bug: a wrong multi-currency total whose cause is a shared rate helper; discounts and tax go through it too, so a fix at the call site fails the check. - refactor-rename: rename load_config across a ten-module package, leaving load_config_defaults and reload_config alone. - spec-parser: implement parse_duration from an eight-rule SPEC.md given three examples, and write tests for every rule. - long-milestone: eight dependent steps adding due dates to a task tracker, from the model through storage versions to the CLI. Self-tests prove that a call-site fix, a blind text replace and a partial rename all fail their checks. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
1 parent
f2c48d8b16
commit
25fd57351d
67 files changed
+2115
-2
No files matched your search
@@ -0,0 +1,15 @@
|
||||
title: Implement a parser from a written specification
|
||||
check: python -m pytest -q .bench_check
|
||||
plan: |
|
||||
Milestone 1: implement `parse_duration` as `SPEC.md` specifies.
|
||||
|
||||
1. Read all of `SPEC.md`. It has eight numbered rules; every one applies.
|
||||
2. In `durations.py`, replace the body of `parse_duration(text: str) -> int`
|
||||
so that it follows every rule in `SPEC.md`, including the inputs each
|
||||
rule says are invalid and the error message for them. Examples:
|
||||
"1h30m" -> 5400; "90" -> 90; "1:02:03" -> 3723.
|
||||
3. Create `test_durations.py` with pytest tests: at least one valid and one
|
||||
invalid input for each of the eight rules.
|
||||
4. Run `python -m pytest -q test_durations.py`, and fix `durations.py`
|
||||
until every test passes.
|
||||
5. Call finish.
|
||||
Reference in new issue
Block a user