diff --git a/todo.md b/todo.md index ecf1cf6b..9167e0e3 100644 --- a/todo.md +++ b/todo.md @@ -114,19 +114,18 @@ ### 507. Bench rebuilding a feature the project shipped: revert its commit at the head, hand Haiku its item tagline, and check with the tests that commit added. -Such tasks cost nothing to write and are realistic. A shipped feature whose revert doesn't apply cleanly at both the base and the head is skipped. +Such tasks cost nothing to write and are realistic. A shipped feature whose revert doesn't apply cleanly at both the base and the head is passed over. -A chunk lands as several commits, not one: test, code and review-answer commits, sometimes merges of the default branch, ending in the commit that removes the item's row from the plan. So the bench finds a shipped feature by that finishing commit, on the base's first-parent history, newest first: +A chunk lands as several commits, not one. So a shipped feature is a chunk on the base's first-parent history that took an item out of the plan, as `branch_chunks` cuts that history, newest first: -- The tagline Haiku is told is the one in the row the finishing commit removes. -- The feature's commits are the commits that are no merge, on the first-parent history from the finishing commit back to the one before it. -- The revert applies each of those commits' diffs in reverse, newest first, to a copy of each side's tree, leaving out the project's records: the plan, the changelog and the other files its config names. Later chunks append to those, so a revert of them would never apply. -- The reference patch is the same diffs forwards, and the acceptance tests are the test files those commits touched, as the head holds them. -- A shipped feature counts as a bench feature does, in `feature_tasks.py`: the tests fail at both sides after the revert and pass with the reference patch. One that touches no test or no other file is passed over. +- Haiku is told the tagline of each item the chunk took out. +- The feature's change is one diff, from the commit before the chunk to its tip, leaving out the project's records: the plan, the changelog and the other files its config names. Later chunks append to those, so a revert of them would never apply. +- The revert applies that diff in reverse to a copy of each side's tree. The reference patch is the same diff forwards, and the acceptance tests are the test files it touches, as the head holds them. +- A shipped feature counts as a bench feature does, in `feature_tasks.py`: the tests fail at both sides after the revert and pass with the reference patch. One whose change holds no test is passed over. -A panel of readers seated as the audience picks the new value of `--tasks` and the flag that says how many shipped features to take. +A panel of three readers seated as the audience picked the spellings on 2026-11-24: `--tasks shipped-features`, 3 to 0, and `--shipped `, first for two and second for the third. -Re-scored after the first read of the code, from L 3 and S 5: about 600 lines in 8 or 9 files, across `task_bench`, the plan's table reader, `project_config` and `git_cli`, and deriving tasks from git history is a new pattern. +Re-scored after the first read of the code, from L 3 and S 5, when deriving tasks from git history looked like a new pattern across four packages. Reusing `branch_chunks` kept it to about 330 lines. ### 524. Write fejkdata's first six bench features, each a spec, acceptance tests in Go and a reference patch that builds it, in the `bench-tasks` folder its config names.