Skip to content

chapters segments 种子与 notes 锚点加载器同源化(修 #227) - #228

Merged
zj1123581321 merged 1 commit into
mainfrom
card/VideoTranscriptAPI-20261015-01
Oct 10, 2026
Merged

zj1123581321 merged 1 commit into
mainfrom
card/VideoTranscriptAPI-20261015-01

Conversation

@zj1123581321

Copy link
Copy Markdown
Collaborator

修复 issue #227

chapters 分层缓存补种逻辑的 segments 分支不再取运行态 cache_data["segments"](内存形态随运行条件漂移),改用与 notes reader 同源的 transcriber.segments.load_segments(file_path)——chapters 存储指纹自此永远可从磁盘复现,notes 生成不再确定性失败。

生产实证(BV1fcHD6cEw3):writer 存指纹 b5bebec0a91b,reader load_segments 556 段复算 ed62cc163258,MISMATCH → notes 任务 task_744c0ad4f5ea4a2c9539f7a00d510117 8ms 确定性失败。

改动

  • transcription.py:删 2 行(cache_data["segments"] 分支);dialogs 优先与 load_segments 兜底保留
  • test_layered_cache.py:新增同构性回归测试(内存形态 ≠ 磁盘形态时,种子指纹必须 == notes reader 指纹)

验证

部署后动作(合并部署后执行)

删 BV1fcHD6cEw3 的 llm_chapters.json → 重提重生成 chapters → 重试详细笔记,验证 #227 闭环。

transcription.py 分层缓存补种逻辑的 segments 分支不再取运行态
cache_data["segments"],改用与 notes reader 同源的
transcriber.segments.load_segments(file_path),使 chapters 存储指纹
永远可从磁盘复现,修复 notes 生成因指纹错配而确定性失败的问题。

Agent-Executor: agy
Agent-Model: gemini-3.8-flash-high
Agent-Effort: unknown
Dispatch-Id: dlg-20261010-142849-1cebf3
Task-Id: VideoTranscriptAPI-20261015-05
Fixes-Issue: #227
@github-actions

Copy link
Copy Markdown

Required Gate v2 — 状态面板

当前状态:pass · 可合并

当前裁决:code_pass / primary_pass

PR 累计主审轮(影子):1/5 · collecting

历史可能不完整:1 个制品处理失败:URLError;1 个历史重建预算耗尽

Gate 历史(v1;来源为持久化 gate_terminal 制品)

Run Attempt Head 状态 PR 累计主审轮(影子) 收件人动作
38061553847 1 cf4d8a5 pass 1/5 · collecting 可合并

历史行按 run_id + run_attempt 去重并只增不删;删除本评论后可由 gate_terminal 制品重建。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant