AGENT SKILL

benchmark_recovery_harness

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

License 许可
Apache-2.0
最近更新
2026-09-03
Stars
★ 351
Forks
27

01 前言 Front Matter

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

02 资源文件 2

03 SKILL.md 正文

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:

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.

04 同仓库更多 Skills

VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-triton-opt

Make a single PassNet Triton kernel fast AND numerically faithful: performance model (when a replacement can win at all), block/grid/warp tuning, autotune policy, launch overhead, and per-op numeric recipes to pass the dtype baseline tolerances. Use when a pass matches and is correct but speedup below expected, or when correctness fails by small numeric margins.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-solve

END-TO-END playbook for solving one PassNet sample: analyze the computation graphs, decide the optimization strategy (what to fuse, what to replace, what to leave alone), drive the iteration loop, and maximize the sample score. This is the ENTRY skill — invoke it first for any PassNet optimization task; it tells you when to use passnet-pattern-fusion, passnet-triton-opt and passnet-feedback.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-skill

PassNet GPU kernel optimization via compiler passes. Design and implement Triton-based optimization passes, create pass files under ./pass_dir/, self-evaluate with pass_evaluator, and iterate to maximize GPU speedup.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-pattern-fusion

Author PassNet pass files: write patterns that actually MATCH the FX graph, pick fusion regions (which ops to absorb into one Triton kernel), and structure multi-pass submissions with the mandatory shared-dispatch architecture. Use when creating or fixing pattern()/replacement_args()/replacement_func() files, when a pass "failed to match", or when deciding how to fuse multiple kernels/ops.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-orchestrate

Round/batch planning and decision support for PassNet graph optimization. Use for multi-sample triage, worker allocation, eval-budget policy, and post-eval keep/revert decisions. For solving one concrete sample end to end, use passnet-solve as the entry skill; consult this skill only when you need broader planning or a specific decision gate.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-feedback

Fast, deterministic feedback for PassNet work: pre-flight pattern/match verification WITHOUT burning a GPU evaluation, per-node bottleneck analysis of a sample's graphs, and eval-log parsing into per-variant status + estimated score + failure classification. Use BEFORE every GPU evaluation (check_pattern), at the START of a sample (analyze_graph), and AFTER every evaluation (parse_eval_log).

★ 351