tournament-autoresearch

当需要在投入实际计算前对竞争性想法进行压力测试的自主研究循环时使用。多个研究子代理各自提出架构变更,一个自校准评判者根据评分标准对提案评分并反馈,提案者据此优化,评判者最终选出唯一一项变更用于实验。评判者通过将预测与实际指标变化比较来学习并改进选择能力,并在校准日志中记录预测与实际的差异。最终产出按去偏见竞赛胜出方案记录的实验日志。不适用于运行单一预先确定的实验或仅做分析的探索;若每轮只提出并运行一个无竞争假设,请使用配套的 ml-autoresearch 循环。

仓库最近推送
GitHub Stars
185
Forks
21
Issues / PRs
1

安装方式

先用 Prompt 核对来源与依赖。也可下载安装包。

用 AI 助手安装

复制提示词,让助手先核对固定版本和依赖。

查看 Prompt收起 Prompt
先检查当前 Agent 是否已安装 SkillPI Skill Finder。如果尚未安装,请按官方仓库的说明安装并启用:https://github.com/Findskills/skillpi。然后使用 Skill Finder 打开此 SkillPI 详情页并定位 "tournament-autoresearch":https://skillpi.com/zh/skills/deepskill-bcb1dac41c771bde7e2a4bf4650fde450cb830401994b59576e3637c757035ba。安装前核对上游来源和版本:https://github.com/gaasher/Agent-Loop-Skills。来源不一致时停止并说明差异。核对通过后,用 Skill Finder 安装目标 Skill,并报告安装路径和来源版本。

来源与配置

github.com

配置方式待核实

请查看原始来源中的适用工具、依赖和权限要求。

安装实测待补充

当需要在投入实际计算前对竞争性想法进行压力测试的自主研究循环时使用。多个研究子代理各自提出架构变更,一个自校准评判者根据评分标准对提案评分并反馈,提案者据此优化,评判者最终选出唯一一项变更用于实验。评判者通过将预测与实际指标变化比较来学习并改进选择能力,并在校准日志中记录预测与实际的差异。最终产出按去偏见竞赛胜出方案记录的实验日志。不适用于运行单一预先确定的实验或仅做分析的探索;若每轮只提出并运行一个无竞争假设,请使用配套的 ml-autoresearch 循环。

0 下载

介绍来源: third_party · gaasher · 0.1.0 参考来源

SkillPi 解读

能完成的任务
翻译待完成,请参阅来源文档。
适合谁
翻译待完成,请参阅来源文档。
软件、账号及付费要求
翻译待完成,请参阅来源文档。
限制与区别
翻译待完成,请参阅来源文档。
实测状态
未测试

文件浏览

在原站浏览文件 ↗

原始 SKILL.md

打开原文 ↗
Frontmatter
name: tournament-autoresearch
description: >
  Use when the user wants an autonomous ML research loop that pressure-tests competing ideas before
  spending compute — several research subagents each propose one architecture change, a self-calibrating
  Judge critiques them against a rubric, the proposers refine, and the Judge picks the single change to
  run. The Judge learns to pick better over time by scoring its own predictions against realized
  metric deltas, recording predicted-vs-realized in a calibration ledger and refining its working
  rubric. The result is an experiment ledger where each iteration's change won a de-biased tournament.
  Not for running a single pre-decided experiment, and not for analysis-only exploration — for one
  hypothesis proposed and run per iteration without competition, use the sibling ml-autoresearch loop.
compatibility: Requires Python 3.9+
metadata:
  version: "0.1.0"

Tournament Autoresearch Loop

An ML autoresearch loop whose single "form a hypothesis" step is replaced by an idea tournament. The artifact is an experiment ledger; the feedback signal is the realized <metric> delta of the change that won the tournament. Each iteration <n> ResearchAgents propose competing architecture changes, a Judge critiques and ranks them, the proposers refine, and the Judge selects one change to run. The Judge is the orchestrator and self-calibrates: it scores its predictions against realized results, so it learns which kinds of ideas actually pay off. The experiment mechanics (snapshot → run → mandatory analysis → keep/revert) match the sibling ml-autoresearch loop.

When to use

Use this for open-ended ML experimentation where competing ideas should be vetted before compute is spent and the picker should improve over time. You are the Judge: adopt roles/Judge.md and spawn the proposers with roles/ResearchAgent.md. Default to <n> competing proposers with one refine round; widen <n> or add rounds when ideas are converging too fast. Not for running a single pre-decided experiment, and not for analysis-only exploration over a dataset — for one uncompeted hypothesis per iteration use the sibling ml-autoresearch loop.

The cast and files (all in this folder):

  • roles/Judge.md — your behavior: critique, rank, decide, self-calibrate.
  • roles/ResearchAgent.md — the proposer role, spawned <n> times each round.
  • rubrics/rubric.md — the scoring criteria (shipped defaults; copied to a working copy at setup).
  • schemas/idea.schema.json — what a proposer returns (one proposed change).
  • schemas/verdict.schema.json — what the Judge records per idea (scores, rank, decision).

Setup

Resolve bindings interactively. If loop.run.yaml exists in the working dir, load it, confirm the values in one line, and skip to the loop. Otherwise: on Claude Code (the AskUserQuestion tool is available) infer a likely value for each binding and present it as the recommended option; on other hosts ask each as a quoted plain-text prompt. Then write loop.run.yaml (format: examples/run.example.yaml) and confirm the values before creating any other files.

Record <host> (claude-code or other) once — it also decides spawn-or-degrade: on Claude Code spawn real Agent subagents for the proposers, all in one turn; otherwise adopt the ResearchAgent role inline, one proposal at a time.

binding meaning default how to infer
<metric> scalar metric to optimize — infer from code/README; ask direction
<metric_direction> minimize or maximize — infer from the metric's meaning
<run_cmd> / <entrypoint> command that runs one experiment end to end — pyproject.toml/.venv/README
<editable_files> model/config/training files the loop may edit; never the eval harness — scan for the model + training script
<sandbox_root> where snapshots + ledgers live ./sandbox —
<iter_strategy> branches or snapshots snapshots git present → offer branches
<gate> / <budget> time (minutes) or epochs, plus the cap epochs / — infer epoch arg from the script
<n> proposers competing each round 3 recommend 3 — competition without a crowd
<refine_rounds> propose→critique→refine rounds before the Judge decides 1 —

If <iter_strategy> is branches, create git checkout -b autoresearch/<run_tag> (must not exist). If <gate> is time, write <sandbox_root>/run_with_timeout.sh (timeout $(( <budget> * 60 )) <entrypoint> "$@") and hard-kill at 2 × <budget> min; if epochs, cap the epoch count in an editable file.

Initialize the sandbox (after confirmation):

<sandbox_root>/
├── loop.run.yaml       ← resolved bindings (written now)
├── results.tsv         ← experiment ledger, header only
├── calibration.tsv     ← Judge predicted-vs-realized ledger, header only
├── judge_lessons.md    ← append-only Judge lessons (header only)
├── rubric.active.md    ← copy of rubrics/rubric.md; the Judge self-refines THIS, never the shipped one
└── iter1/              ← created at loop start

Copy rubrics/rubric.md → <sandbox_root>/rubric.active.md. Write the headers (see Ledger).

The loop

<run_log> = the file capturing training output for an iteration (default <sandbox_root>/iter<N>/run.log). Everything in <editable_files> is fair game; code must run and finish within <budget>. Simplicity criterion: equal metric but simpler code is a keep. The tournament yields exactly one change per iteration. Iteration 1 is the unmodified baseline — skip the tournament; just run + analyse to seed the first analysis summary.

Copy this checklist and tick items off, looping until interrupted:

  • [ ] State. branches: git log --oneline -5. snapshots: confirm iter<N>/ is new.
  • [ ] Tournament (iter 2+) — run it as the Judge (roles/Judge.md): propose (spawn <n> ResearchAgents) → critique & score against rubric.active.md → refine <refine_rounds>× → select the single top-ranked change.
  • [ ] Snapshot/commit, then apply the winning change.
  • [ ] Analysis plan → iter<N>/analysis/plan.md: deliverables table covering the winner's prediction plus useful steps from losing ideas; ≥1 row on a not-yet-measured dimension.
  • [ ] Run (redirect, never tee) → read metric.
  • [ ] Analyse — execute every plan.md row → iter<N>/results/; check the winner's prediction; write a 3–8 bullet summary ending in the empirical anchor for next round.
  • [ ] Log the results.tsv row and the realized delta + hit to calibration.tsv.
  • [ ] Keep or revert (simplicity criterion before logging discard).
  • [ ] Self-calibrate (roles/Judge.md): update judge_lessons.md, refine rubric.active.md, update the hit-rate.

In detail, each iteration:

  1. State. branches: git log --oneline -5. snapshots: confirm iter<N>/ is new.
  2. Tournament (iter 2+). As the Judge (roles/Judge.md): spawn <n> ResearchAgents (spawn-or-degrade by <host>) with roles/ResearchAgent.md, the latest analysis summary, and schemas/idea.schema.json. Critique & score each against rubric.active.md — gate (reject ideas with no testable prediction, unscored) → pointwise 0–5 per axis as the learning signal → de-biased pairwise to rank (compare each pair in both orders, keep only consistent verdicts). Refine <refine_rounds>×, re-score, then select the single rank == 1 change (no merging). Write ideas to iter<N>/ideas/, one verdict per idea to iter<N>/verdicts/, and log the Judge's predicted outcome for the winner to calibration.tsv.
  3. Snapshot/commit, then apply the winning change. snapshots: copy <editable_files> → iter<N>/code_snapshot/, copy loop.run.yaml → iter<N>/, apply the change. branches: apply, git commit -am "<idea_id>: <short description>".
  4. Analysis plan → iter<N>/analysis/plan.md: a deliverables table including the winner's prediction and any useful analysis steps from the losing ideas. ≥1 row must cover a not-yet-measured dimension.
  5. Run (redirect to <run_log>, never tee) → read the metric (grep '^<metric>:' <run_log>; on empty, tail -n 50, one trivial fix, else log crash).
  6. Analyse — mandatory, real artifacts. Execute every plan.md row → files in iter<N>/results/; verify none missing; interpret; check the winner's prediction; write a 3–8 bullet analysis summary ending in the empirical anchor for the next round.
  7. Log. Append the results.tsv row (0.000000 on crash). Append the realized delta + hit to calibration.tsv against the prediction.
  8. Keep or revert. Improved → keep, update best. Equal/worse/crash → discard/crash (branches git reset --hard HEAD~1; snapshots restore from code_snapshot/). Apply the simplicity criterion before logging discard.
  9. Self-calibrate (roles/Judge.md): update judge_lessons.md, refine rubric.active.md (weights + anchors, bounded, from realized outcomes), update the selection hit-rate.
  10. Go to step 1.

Never stop. Once running, do not pause to ask "should I continue?" — the loop runs until manually interrupted. If ideas run dry: push proposal diversity, mine results.tsv/calibration.tsv for under-explored directions, go deeper on analysis.

Ledger

Three append-only files under <sandbox_root>, all tab-separated, never commas in free text.

results.tsv — the experiment ledger (same format as ml-autoresearch). Header:

iter    <metric>    status  analysis_summary    description

status ∈ {keep, discard, crash}. Example:

iter    val_acc status  analysis_summary    description
1   0.6320  keep    baseline; grad norms even, no pathologies   baseline
2   0.6890  keep    layer-2 activations near-saturated; BN helped   iter2-a1: add BatchNorm after conv2

calibration.tsv — the Judge's track record (predicted vs realized). Header:

iter    idea_id grounding   impact  feasibility pred_direction  pred_magnitude  confidence  realized_delta  hit

Example:

iter    idea_id grounding   impact  feasibility pred_direction  pred_magnitude  confidence  realized_delta  hit
2   iter2-a1    5   4   4   improve +2% high    +0.057  1

judge_lessons.md — append-only prose, 1–3 bullets per iteration: which axis tracked gains, what kind of idea was over/under-rated, and the reason for each rubric.active.md refinement. Example:

## iter 2
- grounding tracked the gain (BN tied to the dead-unit finding hit +0.057, as predicted).
- bumped grounding weight 0.40 → 0.45; tightened the impact anchor (impact=5 picks over-promised).

Report the best iteration (highest keep metric), not necessarily the last, plus the running selection hit-rate. Leave results.tsv, calibration.tsv, judge_lessons.md, rubric.active.md, and iter*/ untracked.

Constraints

  • Only edit files in <editable_files> — confirm before every edit, because everything else (especially the eval harness) is read-only ground truth defining <metric>.
  • Exactly one change per iteration (the tournament winner) — no merging ideas — so each metric delta is attributable to one change.
  • An idea with no testable prediction is rejected before scoring; the rank is decided by de-biased pairwise comparison, never by the pointwise scores (which only feed calibration).
  • The Judge edits only rubric.active.md (the working copy), never the shipped rubrics/rubric.md.
  • Always redirect training output to <run_log>; never tee (it floods your context).
  • Do not install packages or add dependencies the project lacks; helper code stays stdlib-only.
  • Do not modify the evaluation harness, and do not pause the loop to ask for direction.
  • The sandbox must be self-contained — no ../ escapes.

当前收录版本

0.1.0

核对来源版本 ↗

质量评测

满分100 · 来自 SkillPi LAB 实验室的评测报告。

场景价值92/100

亮点

  • 解决ML研究中投入计算资源前的竞争性想法压力测试这一明确痛点
  • 提供自校准评判者机制,能够持续学习和改进选择能力
  • 生成去偏见的实验日志,确保每次迭代的变更都是竞赛中胜出的方案
触发精准88/100

待提升项

  • 文档长度超出推荐限制 原报告严重程度:轻微

    主文档长度超过500行,可能影响可读性和维护性

    改进建议:考虑将部分详细说明拆分到单独文档或附录中

亮点

  • 触发描述精准完整,明确区分了tournament-autoresearch和ml-autoresearch的使用场景
  • 边界清晰,明确指出不适用于单一预定实验或仅分析探索的场景
结构规范85/100

待提升项

  • 文档长度超出推荐限制 原报告严重程度:轻微

    主文档长度超过500行,可能影响可读性和维护性

    改进建议:考虑将部分详细说明拆分到单独文档或附录中

亮点

  • Phase和步骤清晰,包含完整的端到端示例
  • frontmatter完整,包含兼容性要求和元数据
  • 提供了详细的设置说明和循环执行清单
执行可靠82/100

待提升项

  • 部分边缘情况处理可更明确 原报告严重程度:轻微

    metric解析失败等边缘情况的处理流程可以更详细

    改进建议:增加更多错误处理示例和恢复策略说明

亮点

  • 工具来源明确,参数定义清晰
  • 覆盖了主要异常情况,如crash处理和简单性标准
  • 不可逆操作有确认机制,如setup阶段的值确认
证据可验 (前四项均值)87/100

取前四项原始分值的算术平均,四舍五入取整。可通过收录报告核对各项评分与说明,运行记录需单独查证。

正文静态检测

100 / 100 · skillpi-20261123-no-r3-v1

正文未命中当前规则。

分数仅反映正文中的规则命中,供使用前参考。附件与运行行为不在此评分范围内。

权限与使用前检查

根据当前主文档自动整理,命中内容可能是示例或防护说明;不是实际权限声明,也未覆盖附件、外部依赖或运行行为。

  • 覆盖或清理工作区

    可能覆盖未提交文件或清除未跟踪文件。先查看 git status,提交或备份改动,确认目标文件后再操作。

    主文档提及 · 第 128 行

本站展示提示不会授予权限。涉及文件改动、密钥、外部发送或费用时,仍由你使用的工具按需确认。

安全评级与访问范围

safe · 静态证据核验,不代表运行安全保证。

翻译待完成,请参阅来源文档。

使用前请由宿主核对并授权实际文件读写、外部服务和联网目的地;本站的核验不会授予任何运行权限。