Skip to content

[Ready for Review] Adapter: ResearchRubrics - #5

Open
CatherineYin1213 wants to merge 5 commits into
harbor-framework:mainfrom
CatherineYin1213:researchrubrics-adapter
Open

CatherineYin1213 wants to merge 5 commits into
harbor-framework:mainfrom
CatherineYin1213:researchrubrics-adapter

Conversation

@CatherineYin1213

Copy link
Copy Markdown

Summary

Adds a Harbor adapter for ResearchRubrics (paper, code, dataset) by Scale AI.

  • 101 deep-research prompts with 2,593 expert-written, weighted rubric criteria; all 101 tasks adapted, no exclusions.
  • The agent writes a Markdown report to /app/report.md; the upstream prompt is passed through verbatim.
  • The verifier ports the upstream evaluator (prompts copied verbatim): one LLM-judge call per rubric, binary grading, and the upstream compliance score Σ(weight × score) / Σ(positive weights).

Judge

  • Default gemini/gemini-2.5-pro: the GA release of the judge used upstream (gemini-2.5-pro-preview-06-05) and the judge the paper found most aligned with human graders (0.76 Macro F1).

Oracle

image

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

2. Judge-graded run (real judge path, all 101 tasks):

Tasks Rubrics graded Judge errors Trial exceptions Served judge model Mean reward
101 2,593 / 2,593 0 0 gemini-2.5-pro (101/101 tasks) 0.210 (median 0.132, range −0.125 to 0.750)

The default oracle report is rubric-derived (it restates each task's positive criteria rather than doing the research), so a low score is expected: the judge marks most content criteria as not met. This run validates that every task grades end to end with the real judge; it is not a quality ceiling.

Status / next steps

  • Adapter code, task template, README
  • Oracle pipeline check: 101/101
  • Judge-graded oracle run: 101/101 tasks, 0 judge errors
  • Parity plan (agent, model, judge, number of runs)
  • Original-side fork with the same judge configuration
  • Parity experiments, parity_experiment.json, dataset PR

@CatherineYin1213

Copy link
Copy Markdown
Author

Hi @XiangningLin, here is a proposed parity plan for ResearchRubrics. Could you confirm or change it?

  • Scenario 2: upstream only grades submitted reports and has no agent runner. The original side runs the same agent outside Harbor on the upstream prompts and grades with upstream's evaluate_reports_batch.py and calculate_compliance_score.py. The runner will live in a fork.
  • Agent and model: claude-code (pinned version) with claude-haiku-5-5, using its built-in web search. Could the team provide the key?
  • Judge: upstream's Gemini 2.5 Pro on both sides (the task.toml default). Is that fine, or would you prefer another judge?
  • Tasks: all 101.
  • Runs: 3 per side, starting with 1 per side to compare.
  • Metric: average rubric compliance 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
  rubrics, prompts or judge client.
- A judge call that fails without a response (outage, timeout, rate limit,
  bad key) leaves the reward unwritten instead of scoring the rubric 0.
  Unparseable judge responses keep upstream's Error = 0.
- 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, judge failure handling, public rubric note.
@CatherineYin1213 CatherineYin1213 changed the title [WIP] Adapter: ResearchRubrics [Ready for Review] Adapter: ResearchRubrics Nov 16, 2026
@CatherineYin1213

Copy link
Copy Markdown
Author

Hi @XiangningLin @audreina17, this is ready for review. Oracle pipeline check passes 101/101 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 073a843 at 2026-11-17 01:26:19 UTC

Adapter contract v1 (docs/adapters.mdx).

❌ Adapter Validation: researchrubrics

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

Errors (must fix)

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

Warnings (recommended)

  • ⚠️ ADP-PARITY: insufficient runs: Entry 0, metric 0 (rubric_compliance_score): original_runs needs at least two runs for sample SEM. A single published score does not satisfy the parity contract. — src/researchrubrics/parity_experiment.json:23
  • ⚠️ ADP-PARITY: insufficient runs: Entry 0, metric 0 (rubric_compliance_score): harbor_runs needs at least two runs for sample SEM. A single published score does not satisfy the parity contract. — src/researchrubrics/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/researchrubrics/adapter_metadata.json
Passed checks (30)
  • ✅ README.md exists
  • ✅ parity_experiment.json exists
  • ✅ adapter_metadata.json exists
  • ✅ src/researchrubrics/ package exists
  • ✅ src/researchrubrics/adapter.py exists
  • ✅ src/researchrubrics/main.py exists
  • ✅ src/researchrubrics/task-template/ directory exists
  • ✅ src/researchrubrics/task-template/task.toml exists
  • ✅ src/researchrubrics/task-template/instruction.md exists
  • ✅ src/researchrubrics/task-template/environment/Dockerfile exists
  • ✅ src/researchrubrics/task-template/tests/test.sh exists
  • ✅ src/researchrubrics/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 073a8437 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 ResearchRubrics.

  • Agent: claude-code with claude-haiku-5-5, same version and settings on both sides.
  • Original side: upstream has no agent runner, so a fork runs the same agent on the upstream prompts and grades with upstream's scripts.
  • Judge: Gemini 2.5 Pro (upstream default) on both sides.
  • Tasks: 10 of 101, 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 compliance score (mean ± SEM).
  • Key needed: Claude Haiku and Gemini 2.5 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