Skip to content

[Ready for Review] Adapter: DRACO - #63

Open
CatherineYin1213 wants to merge 3 commits into
harbor-framework:mainfrom
CatherineYin1213:draco-adapter
Open

CatherineYin1213 wants to merge 3 commits into
harbor-framework:mainfrom
CatherineYin1213:draco-adapter

Conversation

@CatherineYin1213

Copy link
Copy Markdown

Summary

Adds a Harbor adapter for DRACO (paper, grader library, dataset) by Perplexity.

  • 100 deep-research queries with 3,934 expert-written, weighted rubric criteria (16 to 77 per task, 415 with negative weights); all 100 tasks adapted, no exclusions.
  • The agent writes a Markdown report to /app/report.md; the query is passed through verbatim.
  • The verifier calls the grader library the paper links to, pinned to commit eb0755a, whose default judge prompt matches the paper's Appendix C.5: one LLM-judge call per criterion, binary MET / UNMET verdicts, and the paper's normalized score clamp(Σ(weight × met) / Σ(positive weights), 0, 1).

Judge

  • Default gemini/gemini-3-pro-preview with thinking level low and temperature 0.2: the paper's primary judge and its Table 16 settings.
  • Model, endpoint and sampling settings are configurable through JUDGE_* environment variables.

Oracle

image

1. Pipeline check (ORACLE_MODE=true): 100/100 tasks, reward 1.0, 0 exceptions. Verifies the report is written and the rubric loads; no judge calls.

2. Judge-graded run (real judge path, all 100 tasks). I use GPT-5.2, one of the paper's three judges, with its Table 16 settings:

Tasks Criteria graded Judge settings Served judge model Mean reward Mean pass rate
100 3,934 / 3,934 reasoning none, temperature 0 gpt-5.2-2025-12-11 (100/100 tasks) 0.741 (median 0.789, range 0.054 to 0.980) 0.768

Status / next steps

  • Adapter code, task template, README
  • Oracle pipeline check: 100/100
  • Judge-graded oracle run (GPT-5.2): 100/100 tasks, 3,934/3,934 criteria
  • Parity plan (agent, model, judge, number of runs).
  • Parity experiments, parity_experiment.json, dataset PR

@CatherineYin1213

Copy link
Copy Markdown
Author

Hi @XiangningLin, here is a proposed parity plan for DRACO.

  • Scenario 2: upstream ships only the dataset and the grader library. The original side runs the same agent outside Harbor and grades with PerCriterionGrader from paper-instruments/rubric at eb0755a. The runner will live in a fork.
  • Agent and model: claude-code (pinned version) with claude-haiku-5-5.
  • Judge: the paper uses Gemini-3-Pro (temperature 0.2, thinking low), which is the task.toml default. I don't have Gemini 3 access, so I validated the oracle with GPT-5.2 using the same prompt. Could the team provide a Gemini-3-Pro key, or should I use GPT-5.2 on both sides? On 5 oracle tasks, open-weight judges (DeepSeek-V4-Pro, GLM-5.2) agreed with GPT-5.2 on only about 80% of criteria, mostly by being more lenient, so I'd rather not use them unless you prefer.
  • Tasks: all 100.
  • Runs: 3 per side, starting with 1 per side.
  • Metric: average normalized score.

- The verifier runs in its own container built from tests/Dockerfile. Only
  /app/report.md is handed over, so the agent cannot read or modify the
  rubric, grader library or judge client.
- test.sh removes stale reward files and runs Python in isolated mode.
- A symlinked or non UTF-8 report counts as missing.
- ORACLE_MODE accepts only the staged oracle report (SHA-256 check).
- README: Harbor 0.25.0 or later, verifier isolation, public rubric note.
@CatherineYin1213 CatherineYin1213 changed the title [WIP] Adapter: DRACO [Ready for Review] Adapter: DRACO Nov 16, 2026
@CatherineYin1213

Copy link
Copy Markdown
Author

Hi @XiangningLin @audreina17, this is ready for review. Oracle pipeline check passes 100/100 on Harbor 0.25.0. Could one of you trigger /review-adapter when you get a chance? Thanks!

@audreina17

Copy link
Copy Markdown
Collaborator

/review-adapter

@github-actions

Copy link
Copy Markdown
Contributor

Structural validation of commit bd51c09 at 2026-11-17 01:26:23 UTC

Adapter contract v1 (docs/adapters.mdx).

❌ Adapter Validation: draco

✅ 30 passed | ❌ 2 errors | ⚠️ 3 warnings

Errors (must fix)

  • ❌ Parity PR link empty: Entry 0: dataset_pr is an empty list. — src/draco/parity_experiment.json:15
  • ❌ Parity PR link empty: Entry 0: parity_pr is an empty list. — src/draco/parity_experiment.json:16

Warnings (recommended)

  • ⚠️ ADP-PARITY: insufficient runs: Entry 0, metric 0 (normalized_score): original_runs needs at least two runs for sample SEM. A single published score does not satisfy the parity contract. — src/draco/parity_experiment.json:23
  • ⚠️ ADP-PARITY: insufficient runs: Entry 0, metric 0 (normalized_score): harbor_runs needs at least two runs for sample SEM. A single published score does not satisfy the parity contract. — src/draco/parity_experiment.json:24
  • ⚠️ Metadata: parity_costs: parity_costs is missing or null — fill in a USD cost estimate when available (canonical format: a string such as $150). — src/draco/adapter_metadata.json
Passed checks (30)
  • ✅ README.md exists
  • ✅ parity_experiment.json exists
  • ✅ adapter_metadata.json exists
  • ✅ src/draco/ package exists
  • ✅ src/draco/adapter.py exists
  • ✅ src/draco/main.py exists
  • ✅ src/draco/task-template/ directory exists
  • ✅ src/draco/task-template/task.toml exists
  • ✅ src/draco/task-template/instruction.md exists
  • ✅ src/draco/task-template/environment/Dockerfile exists
  • ✅ src/draco/task-template/tests/test.sh exists
  • ✅ src/draco/task-template/solution/solve.sh exists
  • ✅ Template [task].name present
  • ✅ Template [task].authors present
  • ✅ parity_experiment.json is valid JSON array
  • ✅ adapter_metadata.json is valid JSON array
  • ✅ README section Overview present
  • ✅ README section What is present
  • ✅ README section Adapter Features present
  • ✅ README section Generated Task Structure present
  • ✅ README section Run Evaluation present
  • ✅ README section Usage present
  • ✅ README section Parity present
  • ✅ README section Notes & Caveats present
  • ✅ README section Installation / Prerequisites present
  • ✅ README section Citation present
  • ✅ README section Authors & Contributions present
  • ✅ Parity table column count correct
  • ✅ test.sh writes to reward path
  • ✅ No canary strings found

@audreina17

Copy link
Copy Markdown
Collaborator

Quick heads-up: the automated run for bd51c090 stopped at structural validation, so Claude’s code review was skipped. The structural report flags incomplete dataset_pr, parity_pr links.

If you consider this PR ready for review, please address those structural items before the next full review. If you know it’s still a work in progress or waiting on parity coordination, feel free to ignore this note for now and come back when ready. Thanks!

@CatherineYin1213

Copy link
Copy Markdown
Author

Hi @XiangningLin @audreina17, here is an updated parity plan for DRACO.

  • Agent: claude-code with claude-haiku-5-5, same version and settings on both sides.
  • Original side: upstream ships only the data and a grader library, so a fork runs the same agent and grades with that library.
  • Judge: Gemini-3-Pro with the paper's settings (temperature 0.2, thinking low) on both sides.
  • Tasks: 10 of 100, one per domain, fixed seed, generated with --split parity. Happy to increase the number if you want more coverage.
  • Runs: a 5-task sanity check, then 3 runs per side, comparing the average normalized score (mean ± SEM).
  • Key needed: Claude Haiku and Gemini-3-Pro.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants