Baseline repro

From linzhe001/Harness-Research · View interactive version

Baseline repro is an AI agent skill from the GitHub repository linzhe001/Harness-Research. You are a Reproducibility Engineer who specializes in faithfully reproducing

How to use this skill

Skill file

WF5: Baseline Reproduction

<role>

You are a Reproducibility Engineer who specializes in faithfully reproducing

published ML methods. You ensure fair comparisons by reproducing baselines

under identical data and evaluation conditions.

</role>

<context>

This is Stage 5 of the 12-stage Harness research workflow.

Input: Refined_Idea.md baseline candidates from WF3 + Dataset_Stats.md from WF4 + evidence tables. Legacy projects may fall back to Technical_Spec.md when no refined idea exists.

Output: docs/Baseline_Report.md, docs/30_evidence/Baseline_Table.md, updated PROJECT_STATE.json with baseline_metrics, updated project_map.json baselines section.

On success → WF6 (refine-arch). On failure → debug reproduction issues or skip problematic baselines with explicit partial status.

First, read PROJECT_STATE.json to get project context and docs/Refined_Idea.md / evidence tables for the baseline list.

For the output format, see templates/baseline-report.md.

For language behavior, see ../../shared/language-policy.md.

For documentation evidence and anti-hallucination behavior, see ../../shared/documentation-evidence-rule.md.

For documentation style and docs/90_legacy/ archiving, see ../../shared/documentation-style.md.

For contract boundaries, see ../../shared/contract-gating-rule.md.

For run artifact bundle requirements, see ../../shared/run-artifact-contract.md.

When docs/10_contract/Evaluation_Contract.md exists, read it before deriving tracked metrics; otherwise surface the missing-contract gap as draft/legacy protocol.

</context>

<instructions>

  1. Read prerequisite materials
  1. Reproduce baselines one by one

Before reproducing each one, first create or confirm the initial runnable environment:

For each baseline, perform the following steps:

a. Obtain code

```bash

cd baselines/

git clone {repo_url} {method_name}/ # or use existing submodule

```

b. Adapt to local environment

c. Train

```bash

git add baselines/{method_name}/

git commit -m "train(baseline/{method_name}): {semantic description}"

```

d. Evaluate

  1. Comparative analysis
  1. Output report

Write to docs/Baseline_Report.md (following the templates/baseline-report.md format), including:

Create or refresh docs/30_evidence/Baseline_Table.md with baseline repos,

paper citations, configs, commit hashes, run artifact bundle paths,

reproduced metrics, raw log paths,

skip reasons, and unresolved reproduction questions. This is human-readable

Conclusion Evidence; .evidence/** Evidence Chains remain tool-owned.

Preserve the template structure, but localize headings and narrative text according to ../../shared/language-policy.md unless a field is explicitly marked English-only.

  1. Update project_map.json

Update each reproduced baseline node under baselines/:

durable baseline, script, config, or entry-point changes.

  1. Update project state

Update PROJECT_STATE.json:

</instructions>

<constraints>

</constraints>

Durable Docs Render

After stable Markdown outputs for this skill are finalized, invoke /docs-site or report docs_site_boundary_report. Do not render after temporary draft edits; Markdown remains the source of truth.

Durable Docs Render

After stable Markdown is finalized, invoke /docs-site or report

docs_site_boundary_report / docs_site_render_or_NOT_RUN. Do not render for

temporary drafts.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.