fix: 过滤政治话题并禁止诊断图自动发送 - #16
Merged
Merged
Conversation
Merged
damingishere-coder
added a commit
that referenced
this pull request
Sep 4, 2026
## 改动摘要 - 将 OCR 中带前导零的整数按数值归一化,避免 `05/09/01` 被误判为未知事实 - 将可信 `run.json` 元数据(群名、运行日期、统计区间和计数)加入图片事实证据,修复 `2026-09-04` 中 `04` 的误判 - 图片恢复成功后清除 `IMAGE_CONTENT_VERIFICATION_FAILED` 的旧错误字段 - 新增真实运行日期通过、其他日期拒绝和恢复状态回归测试 - 记录 2026-09-04 群 23、群 27 必须恢复为正常分镜群报,Level 3 排行/诊断卡不算成功 ## 验证结果 - 相关测试:18 passed - 全量后端测试:775 passed - `git diff --check`:通过(仅 Git LF/CRLF 提示) - 群 23、群 27 新群报均通过 PNG 解码、SHA-256、严格 OCR 事实校验和 HTTP `image/png` 核验 - 08:30 后复核:两群 `send_hold=true`,发送认领、提交、文字、图片和完成时间戳全部为空 ## 风险 - 仅归一化整数部分冗余前导零;未知数字、单位、百分比和禁止事实仍保持严格拒绝 - 本 PR 修复日期事实误判;Level 3/Pillow 诊断图禁止进入发送流程的防线在独立 PR #16 - PR #15/#16 均未合并,生产 8766 服务也未重启,因此永久防线尚未部署生效 - 两个恢复群均保留人工发送锁,本次未触发微信发送 ## 回滚 - 代码:回滚本 PR 新增提交 - 群 23 当前验收态备份:`output/.backups/image-date-fact-post-recovery-20260904-075918/` - 群 27 错误卡片备份:`output/.backups/invalid-group-report-hold-20260904-081524/` - 两群被替换的数据卡仍保留为各自的 `daily_image.previous.png`
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.
改动摘要
验证
风险与边界
回滚