Bench adding a data source in task-bench, from a register a seeded script generates
This commit is contained in:
@@ -26,15 +26,19 @@ class Kind(typing.NamedTuple):
|
||||
|
||||
BUG = Kind("bug", "A test of this project fails with the message below. Find the bug in the code and fix it. Change no test.\n\n{told}", "a planted bug")
|
||||
FEATURE = Kind("feature", "Build the feature below in this project.\n\n{told}", "a feature's acceptance tests")
|
||||
DATA_SOURCE = Kind("data-source", "Add the data source below to this project.\n\n{told}", "a data source's acceptance tests")
|
||||
# By the value --tasks takes. A panel of three readers, seated as the README's audience, picked `--tasks features` on 2026-11-23,
|
||||
# 3 to 0, over a bare `--features` and a `features` subcommand: it names what the bench runs, and the bugs as its other value.
|
||||
KINDS = {"bugs": BUG, "features": FEATURE}
|
||||
# Such a panel picked `data-sources` the same day, 3 to 0, over `sources` and `imports`, which read as source code and as import
|
||||
# statements.
|
||||
KINDS = {"bugs": BUG, "features": FEATURE, "data-sources": DATA_SOURCE}
|
||||
|
||||
|
||||
@dataclasses.dataclass(frozen=True)
|
||||
class Task:
|
||||
"""A task for Haiku: its number from 1, its name, and per side the tree it starts in and what Haiku is told there. file is the
|
||||
file a bug is in, and acceptance the folder of a feature's acceptance tests; each is None in a task of the other kind."""
|
||||
file a bug is in, and acceptance the folder of the acceptance tests of a feature or a data source; each is None in a task
|
||||
of another kind."""
|
||||
number: int
|
||||
name: str
|
||||
trees: dict[Side, str]
|
||||
|
||||
Reference in New Issue
Block a user