build-tables — 表格组装
触发场景
- "把 calibration.csv 转成 LaTeX 表"
- "做 baseline vs counterfactual 比对表"
- "出 IRF 峰值表"
- "做矩匹配(数据 vs 模型)表"
输入契约
| 字段 | 类型 | 说明 |
|---|---|---|
model_name |
str | |
table_kind |
enum | calibration / moment / irf_peak / cf_compare |
source_files |
list[path] | |
format |
enum | csv / tex / both(默认 both) |
步骤清单
- 读源文件(calibration.csv / IRF JSON / cf JSON)。
- 依
table_kind应用对应模板(在templates/下)。 - 导出 CSV 与 LaTeX(
booktabs风格)到output/tables/。 - 更新 LaTeX 报告
\input{}索引。
输出契约
| 文件 | 必产 | 说明 |
|---|---|---|
output/tables/<model>_<kind>.csv |
✅ | |
output/tables/<model>_<kind>.tex |
✅ |
不允许的操作
- 把未经 verifier 核对的数字直接写进 .tex
- 用 fixed point precision 隐藏数值漂移
失败回退
| 症状 | 处理 |
|---|---|
| 必备前置未满足 | 报错并指出缺什么;不绕过 |
| 上游产物 stale | 重跑上游 skill;不"凭旧的 checkpoint 继续" |
| 用户口径模糊 | 调用 interview-me skill 反向访谈 |