--- pretty_name: TrialPD-Bench (Harbor tasks, test split) task_categories: - document-question-answering - text-generation language: - en tags: - clinical-trials - protocol-digitization - harbor - coding-agents size_categories: - n<1K license: cc-by-nc-4.0 --- # TrialPD-Bench: Harbor tasks (test split) Clinical trial protocol PDFs and expert-verified reference annotations, packaged as [Harbor](https://github.com/harbor-framework/harbor) tasks so that a coding agent can be run and scored end to end. Only the **test split** is included; the protocols used to develop TrialScribe's skills and checklists are not in this dataset. | Subset | Tasks | Input | Output | Headline metric | | --- | ---: | --- | --- | --- | | `indication/` | 40 | full protocol PDF | `indications.json` | indication F1 | | `criteria/` | 134 | full protocol PDF | `criteria.json` | criterion F1 | | `objectives/` | 89 | full protocol PDF | `objectives.json` | objective / endpoint F1 | | `soa_page/` | 86 | one SoA page (PDF) | `soa_table.html` | Activity-Visit F1 | | `soa_document/` | 37 | full protocol PDF | `p.html`, one per SoA page | Activity-Visit and Sub/sup F1 (missed pages score 0) | | `timeline/` | 3 | full protocol PDF | `timeline.json` | metric v2 (epoch accuracy, encounter / activity / timing F1) | One task is one protocol (or, for `soa_page`, one page). `manifest.csv` lists all 389. ## Layout ``` // task.toml timeouts, resources; the verifier runs with no network instruction.md the prompt, including the output contract environment/ Dockerfile self-contained (python:3.11-slim + poppler + node) inputs/ the PDF (and SPEC.md for the SoA subsets), baked in at /app solution/ oracle: copies the gold into place tests/ scorer, vendored evaluator, and the gold manifest.csv ``` ## Run ```bash harbor run -p criteria -a oracle -n 4 -o # should score 1.0 harbor run -p criteria -a claude-code -m -n 4 -o ``` `-o` must be on local disk (Docker bind-mounts the verifier directory). The PDFs are full protocols (median 122 pages), so each task image is large; use `--limit` while iterating.