abc_runner.groups¶
WARNING
This documentation is almost entirely "vibe coded"; while a helpful resource for humans and agents to understand this codebase, it should not be considered a source of ground truth in the way documentation normally is, and the user is responsible for verifying that all instructions given here are safe.
abc_runner.groups
¶
Task-group discovery and resolution for ABC Runner.
A task group is the discrete, installable unit of benchmarks. It is a
directory (or a squashfs image of one) that contains a group.yaml, an
optional group_prompt.md, a Dockerfile.jinja2 describing the group's
runtime container layer, and one subdirectory per task.
Groups are discovered from a prioritized set of search roots. A search root
is a directory that contains task groups (<root>/<group>/ or
<root>/<group>.sqfs), analogous to a directory on the shell PATH
containing executables. Priority, highest first:
- an explicit
--task-dirsupplied on the command line, - the colon-separated
TASK_PATHenvironment variable (left-to-right), and - the installed root
~/.abc-runner/tasks(populated byabc-runner install).
The first root that provides a given group id wins; lower-priority roots that also define it are shadowed (with a warning). Squashfs groups are materialized to a temporary directory on first resolution and reused within the process.
GroupResolver
¶
GroupResolver(task_dir: Path | None = None, task_path: str | None = None, installed_root: Path | None = None, warn: bool = True)
Resolve task-group ids to concrete group directories.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
task_dir
|
Path
|
Highest-priority search root from the CLI |
None
|
task_path
|
str
|
Colon-separated search roots. Defaults to the |
None
|
installed_root
|
Path
|
Lowest-priority search root. Defaults to |
None
|
warn
|
bool
|
Emit a warning when a group id is shadowed by a higher-priority root. |
True
|
Source code in abc_runner/groups.py
list_group_ids
¶
Return all discoverable group ids across search roots (deduped).
Source code in abc_runner/groups.py
resolve_group_dir
¶
Resolve a group id to a concrete, directory-backed group path.
Squashfs images are materialized to a temporary directory (cached for the lifetime of the process).
Raises:
| Type | Description |
|---|---|
FileNotFoundError
|
If no search root provides the group. |