superlab 0.1.8 → 0.1.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -55,6 +55,8 @@ This writes:
55
55
  - `.lab/changes/`
56
56
  - `.lab/.managed/templates/`
57
57
  - `.lab/.managed/scripts/`
58
+ - `results/`
59
+ - `figures/`
58
60
 
59
61
  If you prefer non-interactive use:
60
62
 
@@ -87,6 +89,14 @@ Refresh a specific project:
87
89
  superlab update --target /path/to/project
88
90
  ```
89
91
 
92
+ Attach a user-provided LaTeX template directory without rewriting it:
93
+
94
+ ```bash
95
+ superlab paper attach-template --target /path/to/project --path /path/to/template
96
+ ```
97
+
98
+ This only records the template root in project config. Template files are treated as user-owned assets and may already include upstream or local modifications. `superlab` does not rewrite them by default.
99
+
90
100
  Refresh every registered project initialized from this user account:
91
101
 
92
102
  ```bash
@@ -133,8 +143,11 @@ superlab doctor
133
143
 
134
144
  - required `.lab` files
135
145
  - `workflow.json` schema
146
+ - `results_root` and `figures_root` placement
136
147
  - `deliverables_root` placement
148
+ - `paper_template_root` when configured
137
149
  - LaTeX-first paper output layout under `<deliverables_root>/paper/`
150
+ - boundary violations such as durable run outputs stored under `.lab/changes/*/runs`
138
151
 
139
152
  ## Version
140
153
 
@@ -174,7 +187,10 @@ This installer also writes `.lab/config/workflow.json`, which is the global cont
174
187
  - `workflow_language`
175
188
  - `paper_language`
176
189
  - `paper_format`
190
+ - `results_root`
191
+ - `figures_root`
177
192
  - `deliverables_root`
193
+ - `paper_template_root`
178
194
 
179
195
  Stages should follow that file rather than guess language locally.
180
196
 
@@ -189,9 +205,11 @@ Stages should follow that file rather than guess language locally.
189
205
  ## Command Set
190
206
 
191
207
  - `/lab:idea` researches an idea, critiques it, and writes the initial research framing.
208
+ - `/lab:data` turns the approved idea into a dataset and benchmark package with years, paper usage, source audit, download plans, explicit benchmark-role rationale for classic-public, recent-strong-public, and claim-specific benchmarks, and explicit comparison rationale for canonical baselines, strong historical baselines, recent strong public methods, and closest prior work.
192
209
  - `/lab:framing` locks paper-facing method names, module names, titles, and contribution wording before drafting.
193
210
  - `/lab:spec` converts the approved idea into one `.lab/changes/<change-id>/` directory.
194
211
  - `/lab:run` executes a small-scale validation run and establishes the evaluation pipeline.
212
+ - Durable run outputs should go under the configured `results_root`, not `.lab/changes/`.
195
213
  - `/lab:iterate` runs bounded experiment loops with fixed mission, explicit thresholds, and per-round reports.
196
214
  - `/lab:review` audits documents and results in reviewer mode.
197
215
  - `/lab:report` produces the final report from accumulated artifacts.
@@ -208,6 +226,7 @@ See the source command docs in [commands/codex/lab.md](/Users/zhouhao119/coding/
208
226
  - `skills/lab/` contains the shared workflow contract and reference guidance.
209
227
  - `templates/` contains durable document templates.
210
228
  - `scripts/` contains reproducibility helpers.
229
+ - `results/` and `figures/` are the natural roots for durable experiment outputs and plots.
211
230
  - `tests/` contains minimal regression coverage for the helper scripts.
212
231
  - `examples/` contains a minimal end-to-end usage example.
213
232
  - `docs/` contains the design spec and release notes.
@@ -215,13 +234,14 @@ See the source command docs in [commands/codex/lab.md](/Users/zhouhao119/coding/
215
234
  ## Typical Flow
216
235
 
217
236
  1. Run `/lab:idea` to produce the initial idea artifact.
218
- 2. Run `/lab:spec` to convert the idea into one self-contained lab change directory.
219
- 3. Run `/lab:run` to verify the experiment path and register the first run.
220
- 4. Run `/lab:iterate` to improve against fixed targets using bounded iterations.
221
- 5. Run `/lab:review` whenever you need reviewer-grade critique.
222
- 6. Run `/lab:report` to synthesize the final report.
223
- 7. Run `/lab:framing` to lock naming, title, and contribution wording.
224
- 8. Run `/lab:write` to draft paper sections from stable report evidence.
237
+ 2. Run `/lab:data` to lock the approved dataset package, source hierarchy, benchmark-class coverage, and the rationale for each comparison-method class.
238
+ 3. Run `/lab:spec` to convert the idea into one self-contained lab change directory.
239
+ 4. Run `/lab:run` to verify the experiment path and register the first run.
240
+ 5. Run `/lab:iterate` to improve against fixed targets using bounded iterations.
241
+ 6. Run `/lab:review` whenever you need reviewer-grade critique.
242
+ 7. Run `/lab:report` to synthesize the final report.
243
+ 8. Run `/lab:framing` to lock naming, title, and contribution wording.
244
+ 9. Run `/lab:write` to draft paper sections from stable report evidence.
225
245
 
226
246
  `/lab:write` writes final manuscript output under the configured `deliverables_root` (default: `docs/research`):
227
247
 
@@ -235,6 +255,14 @@ Internal writing-control artifacts stay under:
235
255
  - `.lab/writing/plan.md`
236
256
  - `.lab/writing/iterations/*.md`
237
257
 
258
+ If `paper_template_root` is configured, `/lab:write` should inspect that template directory first and align drafting to it. If no template is configured, it falls back to the managed default LaTeX scaffold.
259
+
260
+ `/lab` treats `.lab/` as the workflow-control layer only. Durable outputs should use natural project roots:
261
+
262
+ - `results_root` for logs, checkpoints, and metrics
263
+ - `figures_root` for plots and exported figures
264
+ - `deliverables_root` for reports and paper sources
265
+
238
266
  ## Helper Scripts
239
267
 
240
268
  - `scripts/register_run.py` records run metadata in a JSON registry.
package/README.zh-CN.md CHANGED
@@ -53,6 +53,8 @@ npx github:zhouhaoUCAS/superlab init
53
53
  - `.lab/changes/`
54
54
  - `.lab/.managed/templates/`
55
55
  - `.lab/.managed/scripts/`
56
+ - `results/`
57
+ - `figures/`
56
58
 
57
59
  如果你更喜欢非交互方式,也可以直接传参:
58
60
 
@@ -85,6 +87,14 @@ superlab update
85
87
  superlab update --target /path/to/project
86
88
  ```
87
89
 
90
+ 接入一个用户自己提供的 LaTeX 模板目录,但默认不改模板文件:
91
+
92
+ ```bash
93
+ superlab paper attach-template --target /path/to/project --path /path/to/template
94
+ ```
95
+
96
+ 这个命令只会把模板目录记录进项目配置。模板目录会被视为用户资产,里面可能已经有上游或你自己的修改,`superlab` 默认不会重写它。
97
+
88
98
  刷新当前用户登记过的所有项目:
89
99
 
90
100
  ```bash
@@ -131,8 +141,11 @@ superlab doctor
131
141
 
132
142
  - 必需的 `.lab` 文件是否存在
133
143
  - `workflow.json` 结构是否合法
144
+ - `results_root` 和 `figures_root` 是否放在合理位置
134
145
  - `deliverables_root` 是否放在合理位置
146
+ - `paper_template_root` 在配置时是否合法
135
147
  - `<deliverables_root>/paper/` 下是否仍然满足 LaTeX-first 输出约束
148
+ - 是否把长期 run 输出错误地堆在 `.lab/changes/*/runs`
136
149
 
137
150
  ## 版本查询
138
151
 
@@ -172,7 +185,10 @@ superlab init --lang en
172
185
  - `workflow_language`
173
186
  - `paper_language`
174
187
  - `paper_format`
188
+ - `results_root`
189
+ - `figures_root`
175
190
  - `deliverables_root`
191
+ - `paper_template_root`
176
192
 
177
193
  后续 stage 应该按这个配置决定语言和论文格式,而不是各模板自己猜。
178
194
 
@@ -187,9 +203,11 @@ superlab init --lang en
187
203
  ## 命令集合
188
204
 
189
205
  - `/lab:idea` 调研 idea、文献、数据集、指标和 baseline,并输出初始方案。
206
+ - `/lab:data` 把已批准的 idea 收敛成数据集与 benchmark 方案,要求记录年份、使用论文、来源审计、下载计划,并明确 classic-public、recent-strong-public、claim-specific 三类 benchmark 的纳入理由,以及 canonical baselines、strong historical baselines、recent strong public methods、closest prior work 四类对比方法的纳入理由。
190
207
  - `/lab:framing` 在正式写作前收紧方法名、模块名、论文题目和 contribution wording。
191
208
  - `/lab:spec` 把批准后的方案转换成一个统一的 `.lab/changes/<change-id>/` 目录。
192
209
  - `/lab:run` 执行最小可运行实验,并建立首版评估链路。
210
+ - 持久 run 输出应写到 `results_root`,不要写进 `.lab/changes/`。
193
211
  - `/lab:iterate` 以固定 mission、固定阈值和最大轮次做有边界的实验迭代。
194
212
  - `/lab:review` 以审稿人模式检查方法、对照、公平性、泄漏和统计问题。
195
213
  - `/lab:report` 根据累积工件生成最终实验报告。
@@ -201,13 +219,14 @@ superlab init --lang en
201
219
 
202
220
  1. 在目标项目执行 `superlab init`。
203
221
  2. 在 Codex 或 Claude 中直接调用 `/lab:idea`。
204
- 3. 经确认后执行 `/lab:spec`。
205
- 4. `/lab:run` 打通最小实验链路。
206
- 5. 用 `/lab:iterate` 进行多轮迭代。
207
- 6. 在关键节点运行 `/lab:review`。
208
- 7. 最后用 `/lab:report` 产出总报告。
209
- 8. `/lab:framing` 收紧题目、命名和 contribution wording。
210
- 9. 用 `/lab:write` 把稳定结果写成论文各 section
222
+ 3. 经确认后执行 `/lab:data`,锁定数据集、下载来源、benchmark 类别覆盖,以及各类对比方法的纳入理由。
223
+ 4. 再执行 `/lab:spec`。
224
+ 5. 用 `/lab:run` 打通最小实验链路。
225
+ 6. `/lab:iterate` 进行多轮迭代。
226
+ 7. 在关键节点运行 `/lab:review`。
227
+ 8. 最后用 `/lab:report` 产出总报告。
228
+ 9. 用 `/lab:framing` 收紧题目、命名和 contribution wording
229
+ 10. 用 `/lab:write` 把稳定结果写成论文各 section。
211
230
 
212
231
  `/lab:write` 会把最终可交付物写到 `deliverables_root` 指定的目录,默认是 `docs/research`:
213
232
 
@@ -221,6 +240,14 @@ superlab init --lang en
221
240
  - `.lab/writing/plan.md`
222
241
  - `.lab/writing/iterations/*.md`
223
242
 
243
+ 如果配置了 `paper_template_root`,`/lab:write` 应先检查该模板目录并按其结构写作;如果没有配置模板,就回退到内置的默认 LaTeX scaffold。
244
+
245
+ `/lab` 把 `.lab/` 视为工作流控制层,不是正式结果目录。持久输出应按自然根目录放置:
246
+
247
+ - `results_root`:日志、checkpoint、metrics
248
+ - `figures_root`:图表和导出图片
249
+ - `deliverables_root`:报告和论文源码
250
+
224
251
  ## 仓库内容
225
252
 
226
253
  - `commands/` 是源码仓库里的说明文件。
@@ -228,6 +255,7 @@ superlab init --lang en
228
255
  - `skills/lab/` 是仓库开发时使用的共享 workflow 定义。
229
256
  - `templates/` 是研究工件模板。
230
257
  - `scripts/` 是运行登记、评估汇总和结果校验脚本。
258
+ - `results/` 和 `figures/` 是默认的自然结果目录。
231
259
  - `tests/` 是脚本与安装器测试。
232
260
  - `examples/` 是最小端到端示例。
233
261
  - `docs/` 存放设计文档和发布说明。