Repository navigation
Description
Problem or Motivation
devops roadmap eval implement and devops roadmap eval stage run fixtures with our own harness. The numbers cannot be compared with other agents or harnesses, and each trial runs one at a time. A change to the prompt or the shell policy needs a pass rate over many trials to show a gain or a loss.
Proposed Solution & Architectural Design
Export each eval fixture as a Harbor task: a folder with instruction.md, an environment/ Dockerfile, tests/test.sh that writes a 0 or 1 reward, and task.toml with the limits. Run the Coder harness of the Service on these tasks with the Harbor CLI, N trials each, before and after a change to the prompt or the shell policy.
First step, a spike: export 3 fixtures, run 5 trials each with Docker, and record the pass rate and the cost. Check whether Harbor runs on our cluster. The sources found Docker, Daytona and E2B, and found no Kubernetes support, so this is unverified.
Target Subsystem
src/devops_cli/roadmap (eval commands), tests/roadmap fixtures, docs/TESTING.md.
Existing Tool Considered
Harbor (the framework of Terminal-Bench). pydantic-ai documents a Coder run on Terminal-Bench 2.1 through Harbor. Cost to build the exporter: about 30k tokens and 2 hours. Cost to keep: one exporter and the Harbor pin.
Alternatives check of 2026-11-05: partly.
Tool: harbor-framework/harbor (https://github.com/harbor-framework/harbor), Apache-2.0, last activity 2026-11-05, maintained.
Proposed design
Problem statement
devops roadmap eval implement and devops roadmap eval stage score their fixtures with the project's own harness. The numbers cannot be compared with other agents or harnesses, and each trial runs one at a time. A change to the prompt or to the shell policy needs a pass rate over many trials to show a gain or a loss. This change exports each implement fixture as a Harbor task and runs N trials of it with the Harbor CLI, with the Service's Coder harness as the agent, and records the pass rate and the cost. The run on the project's cluster is deferred to #3166.
Acceptance criteria
Requirement: One Harbor task folder for each implement fixture
The exporter SHALL write one Harbor task folder for each fixture under tests/fixtures/roadmap_eval/implement.
Scenario: A fixture becomes a task folder
- WHEN The exporter runs on the fixture 2747-env-keys
- THEN The output folder holds instruction.md, environment/Dockerfile, tests/test.sh and task.toml, and each of the four files holds text.
Requirement: The instruction holds the issue and the plan
The generated instruction.md MUST hold the issue body and the plan files of its fixture.
Scenario: The issue body reaches instruction.md
- WHEN The exporter writes the task of a fixture whose issue.md holds a sentence and whose plan/ holds proposal.md, design.md and tasks.md
- THEN instruction.md holds that sentence and the text of the three plan files.
Requirement: The task configuration carries the time limit
The generated task.toml MUST carry the time limit that the export command is given, and the documented default when the option is absent.
Scenario: A 600 second limit reaches task.toml
- WHEN The exporter runs with --timeout 600
- THEN task.toml holds 600 as the time limit of the task.
Requirement: The test script writes the reward of a trial
The generated tests/test.sh MUST run the tests_pass commands of its fixture and write the reward of the trial as 1 when they pass and 0 otherwise.
Scenario: A passing check writes the reward 1
- WHEN tests/test.sh runs in a task whose tests_pass command exits 0
- THEN The script writes 1 as the reward, in the file and form that the pinned Harbor task format defines.
Requirement: An incomplete fixture is refused
The exporter MUST refuse a fixture that lacks a required file or field and name the fixture and the field.
Scenario: A fixture with no issue text is refused
- WHEN The exporter reads a fixture whose issue.md is empty
- THEN The command exits 1 with an ImplementEvalError of code ROADMAP_EVAL_REFUSED that names the fixture and issue.md.
Requirement: The trial command passes the trials, the agent and the provider to Harbor
The trial command SHALL pass the trial count, the task folder, the Coder agent and the sandbox provider to the Harbor CLI.
Scenario: Five trials of one task
- WHEN The trial command runs with trial count 5, the Coder agent and the Docker provider
- THEN The recorded Harbor argv holds the trial count 5, the task folder, the Coder agent and the Docker provider.
Requirement: The run records the pass rate and the cost
The trial command SHALL write a result.json under the data directory with the pass rate, the trial count and the total cost.
Scenario: Four trials, three of them pass
- WHEN The trial command reads four trials and three hold the reward 1
- THEN result.json holds a pass rate of 0.75, a trial count of 4 and the sum of the costs of the four trials.
Requirement: The Harbor version is pinned
The change MUST pin one Harbor version in pyproject.toml and uv.lock.
Scenario: The dependency files name one Harbor version
- WHEN pyproject.toml and uv.lock are read
- THEN Both files name the same Harbor version.
Requirement: No test starts Harbor or Docker
Every test of the exporter and of the trial command MUST answer the Harbor CLI and Docker through the process seam.
Scenario: The trial command runs offline
- WHEN The test of the trial command runs with process_fake
- THEN No real harbor and no real docker program starts, and the recorded calls hold the argv.
Requirement: The testing document holds the export and trial commands
docs/TESTING.md SHALL document the export command and the trial command.
Scenario: The testing document names both commands
- WHEN docs/TESTING.md is read
- THEN It holds the export command and the trial command with its trial count option.
Existing Tool Considered
Harbor (harbor-framework/harbor, Apache-2.0, maintained; README fetched 2026-11-12) covers the run: harbor run with a dataset or task folder, -a/--agent, -m/--model, --n-concurrent and --env <provider>, over local Docker by default or a cloud provider (Daytona, Modal, LangSmith, Blaxel, Novita Sandbox, Tensorlake, Runta, Sail). It lacks an exporter from this project's eval fixture format (case.json, issue.md, plan/), a Kubernetes sandbox provider (its provider list holds none; deferred to #3166), and the aggregation of trial rewards into this project's pass-rate-and-cost report. The project builds the exporter and the aggregator: about 30k tokens and 2 hours, plus the cost to keep one exporter and the Harbor pin.
Key questions
- Which open, maintained tool covers the need of this item?: Harbor (harbor-framework/harbor, Apache-2.0, maintained) is the framework of Terminal-Bench and covers the task run, the agent, the concurrency and the sandbox provider. It lacks an exporter from this project's fixture format, a Kubernetes provider and the pass-rate and cost aggregation, so the project builds those two parts and pins Harbor. (best practice) [sources: https://github.com/harbor-framework/harbor]
- Chosen: Adopt Harbor and build the exporter and the aggregator. Harbor is the harness of Terminal-Bench, installs with
uv tool install harbor, runs a dataset or a task folder with an agent, a concurrency and a provider, and needs no new harness. - Rejected: Keep the project's own eval harness. The numbers cannot be compared with other harnesses and the trials run one at a time, which is the problem of the item.
- Rejected: Build a new harness. It repeats the run, the agent and the providers that Harbor gives and costs more to keep.
- Chosen: Adopt Harbor and build the exporter and the aggregator. Harbor is the harness of Terminal-Bench, installs with
- What does Harbor provide for N trials, a custom agent and a sandbox provider?: Harbor runs a task or a dataset with
harbor run -d/--dataset <name> -a/--agent <agent> -m/--model <model> --n-concurrent <n> --env <provider>, on local Docker by default; its README lists Daytona, Modal, LangSmith, Blaxel, Novita Sandbox, Tensorlake, Runta and Sail as providers, and no Kubernetes provider. It installs withuv tool install harbororpip install harbor. The flag for the trial count and the way a custom agent is named are read fromharbor run --helpof the pinned version. [sources: https://github.com/harbor-framework/harbor] - Which task layout does the exporter write for each fixture?: Harbor's task folder layout, as the item states it: instruction.md, environment/Dockerfile, tests/test.sh that writes the reward, and task.toml with the limits. instruction.md is built from the fixture's issue.md and plan/, because the fixture holds no instruction field. The exact file names and the reward form are checked against the task format of the pinned Harbor version when the exporter is written. (best practice) [sources: https://github.com/harbor-framework/harbor]
- Chosen: Harbor's task folder layout. Harbor consumes its own task folders, so the exporter writes the layout that the pinned version accepts and no wrapper is needed.
- Rejected: A bare Dockerfile with the check in one script. Harbor would still need its task folder, so the exporter would build the layout plus a private format.
- Rejected: Keep the fixture format and run it with the project's harness. That is the problem of the item: the numbers stay incomparable and the trials stay serial.
- Which agent does the trial run use, and how is the Coder harness of the Service plugged in?: A Harbor custom agent adapter that runs the Service's Coder harness in the Harbor orchestrator process, selected on the CLI. The Coder harness is already a Python dependency of this project (
pydantic-ai-harness[coder]==0.59.0), so no agent is installed in the task container. (best practice) [sources: pyproject.toml:41, https://github.com/harbor-framework/harbor]- Chosen: A Harbor custom agent adapter over the Coder harness. The Coder harness is a Python library of this project (pyproject.toml:41), so it runs beside the Harbor orchestrator with no install step.
- Rejected: A built-in Harbor agent. A built-in agent runs no Coder harness of the Service, so the numbers would not measure this project's prompt and shell policy.
- Rejected: An agent command line installed in the task container. The Coder harness is no command-line program, so there is nothing to install in the container.
- What does an eval fixture hold, and where do the eval commands and fixtures live?: The eval commands live under src/devops_cli/roadmap (implement/implement_eval.py, stage/) and the implement fixtures under tests/fixtures/roadmap_eval/implement. A fixture is a folder with case.json, issue.md and plan/. case.json holds name, source, issue, title, group, change, a full base SHA, changes, tests_pass, allow_lost_tests and the recorded results; it holds no instruction text and no time limit. [sources: src/devops_cli/roadmap/implement/implement_eval.py:77, tests/fixtures/roadmap_eval/implement/2747-env-keys/case.json, src/devops_cli/config/constants.py:3802]
- Where does the exporter take the time limit of a task?: From its own option with a documented default (600 seconds): a fixture holds no time limit or resource limit, so the exporter writes the --timeout value and the container resource defaults of the task into task.toml. (best practice) [sources: src/devops_cli/roadmap/implement/implement_eval.py:77, src/devops_cli/roadmap/implement/implement_limits.py:1]
- Chosen: An option of the export command with a documented default. The schema of case.json holds no limit, so a fixture cannot carry one; an option with a default gives every task a bound.
- Rejected: Read the limits from case.json. The schema holds no such field, so the exporter would refuse every fixture of the set.
- Rejected: Write no limit into task.toml. Harbor takes the limits of a task from task.toml, so a task without them has no bound.
- Where does the trial command record the pass rate and the cost?: A JSON report under the data directory, in roadmap_eval/harbor/<run>/result.json, with the pass rate, the trial count, the reward of each trial and the total cost, as the stage and verify evals store their reports. (best practice) [sources: docs/ROADMAP_WORKFLOW.md:386, docs/ROADMAP_WORKFLOW.md:361]
- Chosen: result.json under the data directory. The stage and verify evals already store their reports as JSON under the data directory, so the run keeps its pass rate and cost beside the trials in the same place.
- Rejected: Only Harbor's own per-trial output. It holds each trial but not the pass rate and the total cost that the item needs.
- Rejected: A comment on the issue. It keeps no durable copy beside the trials and no test can read it.
- How does an offline test answer the Harbor CLI and the Docker run?: Through the process seam in src/devops_cli/core/process.py, with process_fake: a test of src starts no program, so the fake records the argv of the Harbor CLI and no real harbor and no Docker start. [sources: src/devops_cli/core/process.py:1, docs/adr/0007-tests-double-only-process-edges.md:23, docs/TESTING.md:77]
- How is the real five-trial Docker spike verified?: By a devops ci row or by a run recorded in the pull request, not by a unit test: a test of src starts no program. The spike exports 3 fixtures, runs 5 trials each with Docker, and records the pass rate and the cost in the pull request. (best practice) [sources: docs/adr/0007-tests-double-only-process-edges.md:23, docs/adr/0007-tests-double-only-process-edges.md:31]
- Chosen: A devops ci row or a run recorded in the pull request. ADR 0007 keeps real programs out of tests of src and sends real tool runs to a devops ci row or to a recorded run.
- Rejected: A unit test that starts real Docker. ADR 0007 forbids a test of src from starting a program and reading the host.
- Rejected: No real run. The item asks for the pass rate and the cost of 3 fixtures at 5 trials, which only a real run gives.
- How is a dependency pinned in this project?: Every runtime dependency of pyproject.toml carries an exact == version (for example pydantic-ai-harness[coder]==0.59.0), and uv.lock holds the resolved version. Harbor is pinned the same way, at one version in both files. [sources: pyproject.toml:11, pyproject.toml:41]
- Which error does a refused fixture raise?: ImplementEvalError with the error code ROADMAP_EVAL_REFUSED and exit code 1. [sources: src/devops_cli/exceptions/roadmap.py:93, docs/ERRORS.md:67]
Fit
Fits in one pull request.
Suspected block
None.
Dependencies
None.
Activity
dan-petty commentedon Nov 1, 2026
Intake placed this item to the backlog: intake puts every new item in the backlog. A person plans the milestones.
featprefix of the title gives the type.(roadmap)scope of the title gives the scope.It adds cross-harness comparison and multi-trial runs but is not blocking; the internal eval commands already work.It enables comparison with other agents and harnesses, but the project can still measure changes with the existing internal harness.Building the exporter, Dockerfiles, task.toml files, and verifying Harbor cluster support is a bounded but non-trivial task.Both target the implement eval fixtures, but 3030 creates them and the internal eval command while the candidate exports them to Harbor task format for external harness execution.devops-cli-service commentedon Nov 2, 2026
Status set to Ready at ac16675 (see proposed design in issue body).
Moved to new items: #3166.
devops-cli-service commentedon Nov 2, 2026
The stage job returned the item to New. The premise of the issue does not hold at the staging commit, so the job planned no change and opened no pull request.
Evidence:
Not yet: I need to inspect the repository first.
27 remaining items
wip: 1 of 2 tasks of group 6, Add the harbor export and run commands (#…
feat(roadmap): Add the harbor export and run commands (#3104)
wip: 1 of 2 tasks of group 7, Document the export and trial commands (#…
feat(roadmap): Document the export and trial commands (#3104)
docs(openspec): archive the change (#3104)
feat(roadmap): Make check Static Analysis pass (#3104)
devops-cli-service commentedon Nov 15, 2026
Pull request #5780 is ready for review. The checks passed.
Spend: 432 model requests, 39147433 input tokens, 172842 output tokens.
devops-cli-service commentedon Nov 15, 2026
The runner Job devops-cli-implement-devops-cli-3104-7da723 ended: succeeded.
Image digest: sha256:08f15cca400448cd0f0f1cb8259ebb7347868caed8a27e723ddbd6eb1722fa9a
The last lines of its log:
devops-cli-service commentedon Nov 15, 2026
Released in v0.150.0: https://github.com/dan-petty/devops-cli/releases/tag/v0.150.0
devops-cli-service commentedon Nov 15, 2026
Live since 2026-11-15 06:04 UTC