analyze-paper-recovery
Analyze the gap between a recovered paper result and the paper target, decide whether generated skills are acceptable, and produce actionable module-level feedback for another distillation cycle.
- License 许可
- Apache-2.0
- 最近更新
- 2026-09-03
- Stars
- ★ 351
- Forks
- 27
01 前言 Front Matter
- name
- analyze-paper-recovery
- metadata
- { "disco-role": "meta" }
- description
- Analyze the gap between a recovered paper result and the paper target, decide whether generated skills are acceptable, and produce actionable module-level feedback for another distillation cycle.
02 资源文件 1
- 脚本scripts/compare_recovery.py24.3 KB
03 SKILL.md 正文
Analyze Paper Recovery
Use this skill after recover-paper-result has produced recovery/recovery_result.json. The goal is to decide whether the generated skills are good enough or whether specific module skills need refinement.
Write all analysis artifacts in English.
Inputs
paper_profile.mdmodule_plan.jsonmodules/*.md- generated skill validation JSON files
environment/runtime_handoff.jsonenvironment/logs/command_log.jsonrecovery/source_manifest.jsonrecovery/recovery_result.jsonrecovery/experiment_validation.json
Outputs
analysis/analysis_report.jsonanalysis/feedback.md
Workflow
- Confirm the recovery respected the source boundary. If the source manifest includes the original repo, return
refine. - Confirm
recovery/recovery_result.json.paper_targetmatchesmodule_plan.json.fast_recovery_targetfor dataset, metric, and target value. If the recovery target drifted, returnrefineuntil the plan or recovery is corrected. - Compare recovered metrics against the target declared in
module_plan.json.fast_recovery_target. - Inspect
recovery_result.json.mechanism_checkswhen present. Metric success is not sufficient if the recovery skipped required searches, injected unsupported facts, or failed to exercise a core module contract. - Separate full-result gaps from proxy-result gaps:
- Full result: compare directly to the paper metric.
- Proxy result: evaluate whether the proxy exercised the method contracts and whether the proxy metric passed its declared threshold.
- Inspect generated skill validation logs for failures or weak coverage.
- Inspect
recovery/experiment_validation.jsonor runrecover-paper-result/scripts/validate_recovery_experiment.py. Do not accept a run whose experiment gate fails. - Produce a decision:
accept: skills are usable and recovery/proxy evidence is sufficient.refine: skills need another cycle.
- When refining, assign feedback to concrete module ids and explain what to change.
Decision Heuristics
Accept if all are true:
- Source boundary is valid.
- The declared module-plan target and the recovered-result target metadata match.
- All module skill validations passed.
- Recovery produced a numeric metric.
recovery/experiment_validation.jsonreportsok: true.- Recovery has executable command evidence, not only hand-written result JSON.
- The generated skill invocation log proves each claimed core module was called, imported, or cross-checked.
- Mechanism checks pass when the recovery harness records them.
- For full reproduction, the primary metric gap is within the configured tolerance.
- For proxy reproduction, the proxy is justified and exercises the core paper mechanism.
Refine if any are true:
- A module skill test failed.
- The run reports missing packages, model cache, dataset, benchmark files, or
search credentials as a blocker, but
environment/logs/command_log.jsondoes not show the allowed setup attempts first: isolated environment creation/reuse under the DisCo-private env root, targeted package installs, permitted model/dataset downloads, configured network/VPN or mirror retries, or a user credential/permission request when credentials are genuinely required. Treat this asrefineof environment preparation, not a terminal blocker. environment/runtime_handoff.jsonpoints to a private recovery Python, but the recovery experiment command log or source manifest shows the experiment used the host/shared conda Python instead.- The recovery result targets a different dataset, metric, or paper value than the module plan.
- A proxy recovery omits
mechanism_checks; proxy acceptance requires explicit evidence that the paper mechanism was exercised. - A nontrivial recovery run lacks
environment/runtime_handoff.json, or recovery ignores a handoff blocker by claiming a full runtime succeeded without matching package/model evidence. - Environment preparation lacks
environment/logs/command_log.json, or that file does not contain a command list for subprocess probes, installs, downloads, clone attempts, and version checks. recovery/experiment_plan.md,recovery/logs/experiment_command_log.json,recovery/logs/generated_skill_invocations.json, orrecovery/experiment_validation.jsonis missing.- The experiment command log has no successful command, no command strings, or cannot be tied to the produced recovery result.
- A benchmark/runtime source was obtained, but the recovery item is only described as benchmark-style and does not record concrete resource-file provenance when resource-derived construction was feasible.
- A recovery reuses a benchmark checkout from another attempt or workspace path without recording the fresh-fetch blocker, reused path, commit/version, concrete files used, and a current-attempt snapshot or copy of those resource files. Reusing previous attempt generated data, prompts, outputs, training logs, or recovery results as evidence should return
refine. - A reduced data-generation/training recovery lacks
recovery/logs/generated_data_item.jsonor a discoverable primary training trace with loss/metric before and after, parameter or optimizer-change evidence, and fallback/full-runtime booleans. Preferparams_beforeandparams_afterin the trace;parameters_beforeandparameters_aftermay appear as readable aliases. - The recovery claims to exercise a generated loss, scoring, retrieval, or prompting module but bypasses that module with duplicate harness logic and provides no cross-check or equivalence log.
- A trajectory-derived skill puts failed or invalid actions into
golden_workflowinstead of keeping them inmistake_analysis, unless the paper requires retaining failed attempts in the ideal plan. - A prompt-separation test rejects ordinary task/environment words instead of privileged-only skill content; refine the test contract rather than weakening the prompt-separation invariant.
- The recovery metric passes but the mechanism check shows missing required searches, unsupported Reason-in-Documents facts, or no live search events.
- Recovery skipped a core method component.
- The result relies on original repo code.
- The metric gap is large and unexplained.
- The raw answer is semantically correct but the extracted/evaluated answer fails due to a missing answer-formatting or canonicalization rule.
- A retrieval/document-refinement module injects final-answer text or other downstream-control text that is outside its output contract.
- The run used a mutable environment change that was not authorized or not recorded.
- The artifacts are not sufficient for a future agent run to repeat the experiment.
Scripts
scripts/compare_recovery.py: compare recovery metrics and produceanalysis_report.json.
04 同仓库更多 Skills
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.
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.
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.
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.
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.
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).