Repository navigation
feat: 质量运维共享同批随机题,缺少通过对照时不隔离账号 - #642
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.
解决的问题与行为变化
随机推理题原来由每个账号独立生成,明确答错后立即执行账号策略,缺少跨账号同题基线。现在同批账号从数据库读取相同随机题,先收集结果,再按模型原名、映射目标、effort、通道、所选答题路径和判题配置比较。只有其他账号同题明确通过,答错结果才进入原有质量处置;全错或缺少通过对照时保留错误答案,不新增质量限制。
关联记录与来源
production@9039070968a2d233e832ca3eaa7f58633cf55691,已将最新 production 合入本分支。复现与验收
quality_shared_batch_test.go、quality_shared_batch_integration_test.go、已有随机题 runner 用例和AccountQualityView.spec.ts。定向配置/租约回归已在本地通过;完整结果以当前 head 的 CI 为准。协议、调度或传输改动补充
实际验证
git diff --checkproduction、贡献指南及 PR 模板核对backend:GOMAXPROCS=2 GOMEMLIMIT=2GiB go test -tags=unit ./internal/repository -run '^(TestQualityRestoreDiagnostics|TestQualityOutcomeMissingConfig)' -count=1 -timeout=3mAccountQualityView.spec.ts兼容性与运行影响
326_quality_shared_batches.sql两张运行时表,七天清理;原检测历史结构保持兼容。旧历史不补写对照,监控不将无批次依据的旧随机题作为降智惩罚。文档与用户可见变化
更新
docs/account-quality-operations.md的共享批次、处置边界、恢复与回滚说明。质量运维详情新增批次窗口、映射模型/路径、其他账号通过/失败/未知数和处置依据,保留“答错”与“缺少有效对照”的区别;中英文文案同步。UI 截图待补。Agent 使用声明
提交前自查