31 lines
1.4 KiB
Markdown
31 lines
1.4 KiB
Markdown
---
|
||
type: schema
|
||
node_id: schema:split-manifest
|
||
title: "表结构: split_manifest(切分冻结溯源)"
|
||
date: 2026-07-15
|
||
---
|
||
|
||
# 表结构: split_manifest(切分冻结溯源)
|
||
|
||
> 载体:JSON sidecar,随冻结的 `pools.json` 同目录(非 DB 表)。用途:记录切分产物的复现三元组与验收报告,任何人可据此校验/复现该次切分。
|
||
> 实现:`app/harness/split_manifest.py::write_manifest`(计划 Task 10/11)。
|
||
|
||
## 字段定义
|
||
|
||
| 键 | 类型 | 说明 |
|
||
|----|------|------|
|
||
| baseline_run_id | str | 溯源 run(`infer_adhoc`) |
|
||
| diag_fingerprint | str | 诊断指纹(与 `baseline_diagnosis` 一致,不匹配则 build 时 fail loud) |
|
||
| seed | int | 选择器随机种子 |
|
||
| config | object | 旋钮快照:n_trainval / floor_k / epsilon / report_floor / val_wrong_min |
|
||
| pools_sha256 | str | 冻结 `pools.json` 内容 SHA256(自洽校验) |
|
||
| coverage_report | object | 48格覆盖数、floor 达标情况、test 代表性偏差、各 tier 占比、默认lapse/degraded 计数 |
|
||
| generated_at | str | 生成时间(由脚本传入,非代码内 `Date.now`) |
|
||
|
||
**幂等/原子**:manifest 与 pools.json 均经 `_atomic_write_json`(tmp + os.replace)落盘;重建时 `diag_fingerprint`/`pools_sha256` 不匹配即 fail loud。
|
||
|
||
## 关联
|
||
- 实现设计:`design:results-driven-video-split`
|
||
- 承载指标:`metric:split-floor-and-representativeness`、`metric:split-cell-coverage`
|
||
|