Recover paper result

From VectorSpaceLab/AREX-Skill · View interactive version

Recover paper result is an AI agent skill from the GitHub repository VectorSpaceLab/AREX-Skill. Reproduce a fast paper result using only the paper, module documents, generated module skills, and datasets, explicitly forbidding reads from the original source repository during recovery.

How to use this skill

Skill file

Recover Paper Result

Use this skill after all module skills have been generated and validated. The goal is to test whether the skills can reconstruct the paper's behavior without relying on the original repository.

All recovery artifacts must be in English.

Before recovery, load prepare-paper-recovery-env when available and read environment/runtime_handoff.json. Treat the handoff as the authoritative runtime preflight: use its allowed sources, package/model blockers, benchmark snapshot paths, GPU notes, and environment mutation status instead of repeating broad discovery.

Hard Source Boundary

During recovery, do not read the original paper repository. Allowed sources are:

Write recovery/source_manifest.json listing every source path or URL used. If any original repo path appears, the recovery is invalid.

For independent evaluation runs, do not use prior attempt outputs as shortcuts. Prior generated data items, prompts, model outputs, training logs, or recovery results are not allowed recovery evidence for the current attempt. If a fresh benchmark or dataset fetch is blocked and a local benchmark checkout from another attempt or workspace path is the only practical source, treat it as a reused benchmark source: record the fresh-fetch command and blocker, the reused path, commit/version if available, why reuse was necessary, and copy or snapshot the concrete resource files used into the current attempt under recovery/benchmark_sources/. The current attempt must still derive its own data item and run its own recovery/training step.

Runtime Boundary

If the user supplies a model path, GPU ids, or environment path, prefer that runtime for recovery. If the supplied environment has incompatible packages, do not modify it unless the user explicitly permits mutation. Use an existing compatible environment or create a separate one, and record:

Preflight and Time Budgets

Do a bounded preflight before expensive recovery:

does not show an allowed isolated environment setup, install attempt,

permitted download, or user credential/permission request, go back to

prepare-paper-recovery-env instead of accepting the blocker. Recovery

should consume a prepared runtime handoff, not turn first-pass probes into a

final blocked result.

private recovery environment, use that executable for the recovery harness and

record it in recovery/logs/experiment_command_log.json and

recovery/source_manifest.json. Do not silently run recovery with the

host/shared conda Python after preparing a private env.

Workflow

  1. Read the paper target from module_plan.json.fast_recovery_target.
  2. Select the smallest meaningful dataset subset that exercises the paper mechanism.
  3. Read environment/runtime_handoff.json. If it is missing, run

prepare-paper-recovery-env first or record a blocker; do not continue to an

accepted recovery with an unprepared or still-pending environment stage.

  1. Write recovery/experiment_plan.md before running the experiment. It must name the full target, reduced target if any, chosen target, why it is the strongest feasible target, commands to run, expected artifacts, and minimum acceptance criteria.
  2. Load the generated module skills needed for the experiment.
  3. Build or run a recovery harness from the generated skills. Do not hand-write recovery_result.json as the primary evidence; it must be produced by an executable command such as python recovery/run_recovery.py.
  4. Record the experiment command(s), return codes, elapsed time, and stdout/stderr tails in recovery/logs/experiment_command_log.json.
  5. Exercise each core generated module that the proxy claims to validate, or record why a module is not applicable. If scoring/loss logic is split into a standalone generated skill and a training harness skill, call or cross-check the standalone skill and log the comparison.
  6. Write recovery/logs/generated_skill_invocations.json listing each generated module exercised, the evidence type (called script, imported helper, cross-check, or not applicable), and the log/artifact path proving it.
  7. Populate recovery_result.json.paper_target from module_plan.json.fast_recovery_target; do not hard-code a different dataset, metric, or target value in the recovery harness.
  8. For proxy recovery, add mechanism_checks that show the selected run exercised the paper mechanism. Include required search/tool calls, grounding checks for intermediate evidence, and any module-specific invariants.
  9. Record commands, parameters, sample count, predictions, labels, metrics, training traces, and the runtime handoff path.
  10. Save recovery/recovery_result.json.
  11. Run the experiment gate and save it:
python <skills_root>/recover-paper-result/scripts/validate_recovery_experiment.py \
  <attempt_dir> \
  --output <attempt_dir>/recovery/experiment_validation.json
  1. If the gate fails, fix the recovery artifacts or mark the attempt as blocked/refine. Do not proceed to an accept analysis with a failing gate.
  2. If the task is QA, use scripts/evaluate_qa.py for EM/F1.

QA Recovery Requirements

Recovery Result Schema

{
  "schema_version": 1,
  "paper_id": "short_slug",
  "experiment": "dataset or table target",
  "is_proxy": true,
  "sample_count": 1,
  "metrics": {"em": 1.0, "f1": 1.0},
  "paper_target": {"metric": "f1", "value": 0.497},
  "commands": ["command used"],
  "artifacts": ["relative/path"],
  "mechanism_checks": {},
  "notes": "limitations and interpretation"
}

Acceptance Criteria

before recovery artifacts are accepted.

Minimal Recovery Runs

When the user allows a reduced run for papers that require data generation or expensive training, the recovery must still perform real work:

Scripts

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.