Datasets:
|
Download harbor/README.md from ExpertCrowd/TOP-MC: direct link, hf CLI and curl.
- Browser
- Download file 3.51 kB
-
https://huggingface.co/datasets/ExpertCrowd/TOP-MC/resolve/main/harbor/README.md
- Command line
-
hf download hf://datasets/ExpertCrowd/TOP-MC/harbor/README.md
-
curl -L -o README.md https://huggingface.co/datasets/ExpertCrowd/TOP-MC/resolve/main/harbor/README.md
3.51 kB
| # Running the tasks with Harbor | |
| Each folder under `tasks/` is a self-contained [Harbor](https://github.com/harbor-framework/harbor) | |
| task. An agent works in a Linux container that holds the case files and a | |
| document toolchain; a separate grading container then reads what the agent left | |
| and asks an LLM judge about every rubric row. | |
| ## Requirements | |
| - Docker, and Harbor 0.25 (`pip install "harbor>=0.25,<0.26"`). | |
| - An API key for an OpenAI-compatible endpoint that serves the judge model. The | |
| default is OpenRouter with `anthropic/claude-sonnet-4.6`. | |
| - On Windows, run from WSL or a short folder path: a few case-room file names | |
| are long enough to pass Windows' 260-character path limit in a deep folder. | |
| ## Run one task | |
| ```bash | |
| export JUDGE_API_KEY=<your OpenRouter key> | |
| harbor run -p tasks/corvane-component-supply -a <agent> -m <model> --yes | |
| ``` | |
| `--yes` lets Harbor pass `JUDGE_API_KEY` into the grading container. The task's | |
| reference solution runs with `-a oracle`; it should score close to 1.0. | |
| ## What the agent sees | |
| - `instruction.md`: where the case files are, where to write, and the ask. | |
| - `/workspace/target/case_room/`: the case files (Word, Excel, PowerPoint, PDF, | |
| emails as `.eml`, and saved web filings). | |
| - Python 3.12 with pandas, python-docx, openpyxl, python-pptx and pypdf, plus | |
| LibreOffice and Poppler. No network. | |
| The agent writes its deliverables anywhere under `/workspace/target` and its final | |
| answer to `/workspace/target/final_response.md`. Files under `scratch/` and | |
| unchanged case files are not graded. | |
| ## How it is graded | |
| The grader in `tests/grader/mcbench` is the original task environment's grading | |
| code, unchanged. For every rubric row the judge decides met or not met, from the | |
| extracted text of each submitted file and the final answer. It may open further | |
| pages, rendered page images and the original case files. Workbook formulas are | |
| recalculated with LibreOffice first. | |
| - Rows carry points. Positive rows add up to 100 in every task; negative rows | |
| are penalties, judged separately, and fire only with a quoted passage. | |
| - reward = max(0, min(1, (points earned + penalties) / 100)). | |
| - An empty submission scores 0. A judge that cannot be reached, or leaves a row | |
| unanswered, gives no reward, so the trial counts as failed rather than as 0. | |
| - `/logs/verifier/grading.json` in the trial folder has every row's verdict and | |
| reason. | |
| ## Choosing the judge | |
| | Variable | Default | Meaning | | |
| | --- | --- | --- | | |
| | `JUDGE_API_KEY` | none | Key for the judge endpoint (required) | | |
| | `JUDGE_BASE_URL` | `https://openrouter.ai/api/v1` | Any OpenAI-compatible endpoint | | |
| | `JUDGE_MODEL` | `anthropic/claude-sonnet-4.6` | The judge model at that endpoint | | |
| The grading container can reach only `openrouter.ai` and `inference.hud.ai`. To | |
| use another endpoint, add its host to `allowed_hosts` under | |
| `[verifier.environment]` in the task's `task.toml`. The default judge is the one | |
| the published model scores were graded with; a different judge model gives | |
| different scores. | |
| ## Differences from the original environment | |
| - The original returns the agent's last chat message as its answer; here the | |
| agent writes it to `final_response.md`. | |
| - The original serves `.eml` correspondence only through a mail-search tool and | |
| removes the files; here the emails stay in the case room as files. | |
| - Rubrics, prompts, case files and the grader are unchanged, except that file | |
| metadata naming document authors was removed and saved web filings lost their | |
| tracking scripts. | |