Skip to content
Back to skills

Benchmark Recovery Harness

ASecurity

Run bounded SBI benchmark recovery from generated skills while enforcing source boundaries and validator-compatible evidence.

  • 247 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added September 9, 2026
researchpythongobash

Security analysis

A100/100

Pro scans all 3 files and shows the line behind each finding

Scanned September 9, 2026

npx -y skills add VectorSpaceLab/AREX-Skill --skill benchmark_recovery_harness --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Benchmark Recovery Harness?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Benchmark Recovery Harness
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/vectorspacelab-benchmark-recovery-harness/badge)](https://www.skillsdirectory.com/skills/vectorspacelab-benchmark-recovery-harness)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: benchmark_recovery_harness
description: Run bounded SBI benchmark recovery from generated skills while enforcing source boundaries and validator-compatible evidence.
---

# Benchmark Recovery Harness

Use this skill after the task protocol, posterior approximation, and two-sample metric skills exist and validate. It coordinates a reduced Gaussian-linear recovery of the paper's benchmark mechanism, writes auditable Distiller artifacts, and records generated skill invocations.

Do not read the original paper repository during recovery. Use only the paper, module docs, generated skills, runtime handoff, and current-attempt snapshots or logs listed in the source manifest.

## Inputs

- `attempt_dir`
- `skill_root`
- `module_plan.json`
- `environment/runtime_handoff.json`
- Recovery parameters such as sample count, simulation count, and learning rate.

## Outputs

- Recovery plan and source manifest.
- Generated data item, training trace, skill invocation log, and recovery result.
- Numeric metric evidence and mechanism checks.
- C2ST distance-to-ideal evidence so downstream analysis can interpret classifier accuracy by closeness to `0.5`.

## Workflow

1. Write or update `recovery/experiment_plan.md`.
2. Import generated skill scripts from the skill root.
3. Build the Gaussian-linear proxy task and simulation pairs.
4. Generate analytic reference posterior samples.
5. Fit approximate posterior samples with the posterior approximation skill.
6. Compute C2ST-style metrics with the metric skill.
7. Write `recovery_result.json` using the target from `module_plan.json`.
8. Write source and invocation manifests that prove the generated skills were exercised.

## Source Boundary Invariant

Before treating a recovery as valid, search the serialized `recovery/source_manifest.json` for the original repository checkout path from the run config or source-resolution record. The manifest may mention current-attempt snapshots copied during environment preparation, but it must not list or depend on the original checkout. If the original checkout path appears, rerun recovery with only generated skills and current-attempt artifacts.

## Validation

Run:

```bash
python scripts/run_recovery.py --attempt-dir <attempt_dir> --skill-root <skill_root>
python /share/project/yuyang/workspace/Paper2Skills/Distiller/skills/recover-paper/scripts/validate_recovery_experiment.py <attempt_dir> --output <attempt_dir>/recovery/experiment_validation.json
```

## Limitations

This harness implements a declared soft-mode proxy. It must not be accepted for hard-mode recovery or described as a full reproduction across all `sbibm` tasks and algorithms.

Files in this skill

  • SKILL.md2.6 KB
  • scripts/run_recovery.py12.6 KB
  • tests/test_benchmark_recovery_harness.py1.8 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.