Repository navigation
章节梗概 (5/9):缓存层 timeline 落盘与读回 - #19
Conversation
- CapsWriter save_cache 传 funasr_json_data 写 transcript_capswriter.json - YouTube 平台字幕改 get_subtitle_result,segments 作为 extra_json_data - youtube-api fetch_for_transcription 解析 SRT 时保留 transcript_segments - get_cache 经 load_segments 附带返回 segments - get_subtitle 薄委托 get_subtitle_result,去掉平行分支 - capswriter _split_long_segment 对非有限时间诚实降级
ℹ️ PR 体积预检:将自动分片审查当前审查 Patch 为 7367 行,超过单轮预算 4000 行,Codex 会覆盖所有分片并做跨模块整合。
这次可以继续,但下次优先按单一功能拆成 small PR,以缩短反馈时间。 |
|
Reviewed commit: 🤖 Review 门禁 — 判定:
|
📒 Review ledger state
完整数据保存在 |
|
Codex review waiver: 本 PR 的 agent review 再次产出内容干净但 verdict 字段错填的判定(run 详见 Actions,head 4a38572,主审 claude-glm):summary 明确「最终集成审查通过」,前一轮 codex-sub 报出的 4 条 major 全部核实已修复(侧车覆盖清理 cache_manager.py:684-693、两条 YouTube 路径 segments 正文重建、None 时间统计 TypeError 修复、倒挂区间降级 None),回归测试覆盖完整;剩余 findings 为 2 minor(transcription.py:1918 不可触发的防御性缺口、youtube.py:423 get_subtitle 兼容性边角)+ 1 nit(导入风格),无任何 blocker/major——但 verdict 字段仍错填 fail,与 PR #18 同型的 verdict/findings 自相矛盾故障(本次 stack 第 5 次)。lint 与 tests 门槛真实通过(2457 单测全绿),2 条 minor 作为已接受 backlog 记录,故对 review 步骤行使审计豁免。豁免仅针对 head 4a38572。validate_verdict 一致性校验的修复建议将汇总提交给 gate-hub。 |
章节梗概 (5/9):缓存层 timeline 落盘与读回
范围
Stacked PR 系列第 5 个(依赖 #18)。单个原子提交「接通 CapsWriter/YouTube timeline 落盘与 get_cache 读回」(6210 行,单提交无法再拆,CI review 将自动分片):
配置/Schema 触点
缓存存储格式扩展(timeline 字段);无配置文件变更。
验证证据
uv run pytest tests/unit全绿(本地边界点已预验证)Stacked 结构