修复 summary-ratio 端点在未配置 storage.audit_db 时 500 - #64
Merged
Conversation
Agent-Executor: grok Agent-Model: grok-4.6 Agent-Effort: unknown Dispatch-Id: dlg-20260824-102347-4edf77 Task-Id: VideoTranscriptAPI-20260824-03
Required Gate v2 — 状态面板当前状态:pass · 可合并 当前裁决: Gate 历史(v1;来源为持久化
|
| Run | Attempt | Head | 状态 | 收件人动作 |
|---|---|---|---|---|
| 32718106840 | 1 | a6d7b81 |
skipped |
无需动作(主审未跑,绿≠过审) |
| 32718433164 | 1 | a6d7b81 |
pass |
可合并 |
历史行按 run_id + run_attempt 去重并只增不删;删除本评论后可由 gate_terminal 制品重建。
⚙️ Review ledger state(机器状态记录,非评审结论)
机器状态明细
完整数据保存在 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
背景
生产 n305 实测 PR#63 新端点
GET /api/audit/summary-ratio返回 500:生产 config.jsonc 不写storage.audit_db(合法形态,context.py 有默认值约定),端点把 None 直接传给sqlite3.connect("file:None?mode=ro")。修复
复用运行中 app 已解析好的
get_audit_logger().db_path兜底(与 context.py 同款语义,单一事实源,不新增默认路径逻辑)+ 测试锁定「配置无该键时端点 200」。验证
tests/unit/ + tests/llm/全量 2827 passedTask-Id: VideoTranscriptAPI-20260824-03