6ff8f34666af0f9d72d40cf40cee5c98ad090dc0 / bench/tasks/multitask/__init__.py · 914 bytes · raw
"""Multitask task modules — auto-discovered by agentic_multitask.py.
Each .py file (not starting with _) exposes:
TASK_NAME str stable item_id
CATEGORY str capability bucket: go | rust | ts
PLAN str the task plan the agent executes
STARTER dict starter scaffold files
REFERENCE dict reference solution (`validate` only: gates run on it after VALIDATE_PREP)
VALIDATE_PREP tuple optional shell commands run on REFERENCE first (e.g. "go mod tidy")
TOOLSET tools.Toolset tool schema + impls (per language: run_build/run_test differ)
GATES tuple gate names, in order
PORT_TOKEN str|None text in PLAN replaced by the item's free port (e.g. "8080")
ENV dict extra env for every tool/gate subprocess (None value = unset)
gates(ws, port) -> ({gate: bool}, detail) ws = tools.Workspace of the attempt
"""