Repository navigation
fix: 防止手动质量检测请求被抢占或覆盖 - #849
Merged
Merged
Conversation
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.
解决的问题与行为变化
关联记录与来源
production,起点4189ed821d6e4308b2f5fc3791b73d2eb53cda8a;head=fix/issue817-ack-fencing-20261114,首个冻结候选ba931a98b。推送前 production 已前进至9aeeeb3a235014a09994ce5dc6c441edcdd9f1b3(独立 feat: scope content moderation to selected upstream accounts #848 moderation);已检查新增文件与此修复无交集,保留 brief 指定基线。发布后以 PR 实际 head SHA 和 Actions 为准。管理员新功能提示
复现与验收
quality_manual_fencing_integration_test.go;另含 generation CAS、旧 bool-only 数据、隐藏内部字段、活动 lease、过期旧 worker finish、暂停取消。真实模型/生产行为未覆盖。协议、调度或传输改动补充
实际验证
当前维护 head 为
fcfb9cebb0c7ce8f871a58b31b6c52e5bd970040。追加36758a7c9以精确时间点比较 PostgreSQL 回读时间,不增加容差;追加fcfb9cebb在 E2E 主动页面跳转前等待后台请求结束,保留零失败请求门槛。最终 head 全部 88 个 checks 已完成:45 success、43 条件 skipped,0 commit statuses;40 个 workflow runs 均成功或条件跳过。维护读取 手动并发 RED/GREEN 原始日志:旧源码两项分别在“5xx 不应消费手动请求”“保存不应覆盖新请求”断言失败,新源码 worker/update/generation/lease 命名回归 PASS。
完整页面验收成功,维护下载并读取 最终产物:21 个场景全部 passed;blocked/requestFailures/pageErrors/consoleErrors 均为空。其
full_acceptance_complete=false仍保留,不能据此关闭 #795 的完整产品验收。旧头 E2E 因一次性能统计请求net::ERR_ABORTED失败的事实不改写。与
production@9aeeeb3a235014a09994ce5dc6c441edcdd9f1b3的只读合并树7dce4d480519b74a59687eeca406dcd8235c3a03无冲突,#848 变更与本 PR 不重叠;本轮未运行本地动态测试。git diff --checkbash .github/scripts/issue817-race-gate.sh red "$PWD" '^(TestIssue817ManualWorkerInterleaving|TestIssue817ManualUpdateInterleaving)$'bash .github/scripts/issue817-race-gate.sh green "$PWD" '^(TestIssue817|TestQuality5xxClaimKeepsCronAndCoalescesScheduledRun|TestQuality5xxFinishConsumesCrossedCronWithoutOverwritingEdits|TestQualityRetestRestBlocksEveryClaimUntilDeadline)'兼容性与运行影响
_manual_quality_run_id是隐藏 runtime generation。只有未消费手动请求优先于 5xx;enabled quality 的配置保存保留请求,暂停/移除 quality 则取消。文档与用户可见变化
无新 UI、设置或提示。既有手动运行按配置执行,配置保存不再无声吞掉尚未消费的请求。本次是源码修复,未部署。
Agent 使用声明
本轮维护 Codex:角色声明 GPT-6,精确模型 ID 和推理强度未知(接口未提供);负责两项 CI 修复、原始证据/源码复核、正文与合并推进,未使用子 Agent。以下为此前实现声明。
Codex
/root:唯一源码 writer,链路分析、实现、回归、静态审阅、工作流与 PR。请求模型gpt-6.1-sol/ultra/ fast;实际完整模型与推理 metadata 在当前工具中不可核验,均未知;fast delivered 未确认,不以请求值冒充实际值。Codex
manual_fence_review:只读手动 claim / 配置更新并发审查;完整模型、推理强度未知(工具未暴露可核验值),无文件写入、无动态执行。Codex
save_ack_review:只读 SaveResult/ACK 和持久化恢复边界分析;完整模型、推理强度未知(同上),无文件写入、无动态执行。提交前自查