From 1ca6c800f580cf6b9efc595b4b7e9a797d7ae4ea Mon Sep 17 00:00:00 2001 From: Lilleman auf Larv Date: Tue, 24 Nov 2026 00:20:11 +0100 Subject: [PATCH] Re-score item 507 to L 4 and say how a shipped feature is found --- todo.md | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/todo.md b/todo.md index 6de38a62..ecf1cf6b 100644 --- a/todo.md +++ b/todo.md @@ -16,7 +16,7 @@ | ID | Release | Blocked by | Exempt | Item | L | E | I | R | S | Moves | Score | |---|---|---|---|---|---|---|---|---|---|---|---| -| 507 | 0.16.0 | | owner | **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.** | 3 | 2 | 1 | 4 | 5 | 1.1 by 3 | 0.7 | +| 507 | 0.16.0 | | owner | **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.** | 4 | 2 | 1 | 5 | 6 | 1.1 by 3 | 0.5 | | 524 | 0.16.0 | | owner | **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.** | 3 | 2 | 1 | 4 | 6 | 1.1 by 3 | 0.5 | | 526 | 0.16.0 | | owner | **Plant bugs for `task-bench` in Rust, from the mutants cargo-mutants kills.** | 3 | 2 | 1 | 4 | 4 | 1.1 by 1 | 0.3 | | 527 | 0.16.0 | | owner | **Plant bugs for `task-bench` in TypeScript, from the mutants Stryker kills.** | 3 | 2 | 1 | 4 | 4 | 1.1 by 1 | 0.3 | @@ -114,7 +114,19 @@ ### 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 commit 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 skipped. + +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: + +- 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. + +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. + +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. ### 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.