Repository navigation
fix: 质量分组仅选正常时跳过已知耗尽额度账号 - #818
Merged
Merged
Conversation
ranxi2001
marked this pull request as ready for review
November 12, 2026 18:06
This was referenced Nov 13, 2026
Merged
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.
解决的问题与行为变化
usage_limit_reached429。静态追踪发现候选查询不读额度快照,已分发计划执行不再检查分组规则。active的分组规则在分配候选及领取执行租约后,根据已保存的可信 5h/7d 观测与未过期原生 429 冷却跳过已知耗尽账号;窗口恢复后可再次参与。缺失、无效、未来或已过期且无未来重置的观测不推定耗尽;按字段版本保留实际观察时间。关联记录与来源
9837bfbfc845027a61b86cec1460785e869c4e54;普通合入独立 feat: 账号菜单显示并支持复制用户站内 ID #810 后 base422e0b524c28818c0b711efc5771532b19cff55a。base=production,head=fix/issue817-quality-exhausted-filter,首次冻结候选f1733c2bf4391deb32df2be2f913a87007071a32;当前 headff0558f24d152f2fc235f5e4c236db2939a37619(追加非空 isolation ownership/恢复回归及测试格式整理)。管理员新功能提示
复现与验收
active的分组规则,账号持久状态仍正常且 5h 或 7d 已知使用率为 100%。quality_quota_filter_test.go、quality_template_quota_integration_test.go、quality_quota_ownership_integration_test.go;覆盖 5h/weekly、99%、未知/坏/过期观测、重置、身份冲突、无关平台/API Key、按字段时间、显式其他状态、手动、原生 429、领取后竞态。复用原质量/401/rest/ownership/BPS回归。真实上游/生产未覆盖。协议、调度或传输改动补充
statuses=["active"],codex_5h_used_percent=100或codex_7d_used_percent=100,当前有效观测 → 自动轮次跳过;["active","rate_limited"]保留显式检测意图。实际验证
当前 head
ff0558f24d152f2fc235f5e4c236db2939a37619的专用远程 CI 已排队;旧候选专用 run 被后续推送按 concurrency 取消;本分支其他旧 head 排队/运行的 CI 已定向取消,均不算通过。默认 CI 当前 head:运行链接。git diff --checkgo test -race -tags=unit ./internal/service -run '^(TestIssue817|TestQuality|TestPelicanSchedule)' -count=1 -v -timeout=10m(backend)go test -tags=integration ./internal/repository -run '^(TestIssue817|TestQualityRuleTemplate|TestQualityRetestRest|TestQualityOAuth401|TestQualityOwnership|TestQualityIsolation|TestQualityEnableBPS)' -count=1 -v -timeout=15m(backend)兼容性与运行影响
_manual_quality_run是存储 JSON 内部一次性字段,scan 后不进入公开 DTO,成功 claim 原子清除。文档与用户可见变化
沿用现有“正常 / 限流 / 临时不可调度”等筛选文案,无 Vue/CSS/i18n 变动,无新 UI 或提示 ID。此 PR 仅源码与回归;不代表已上线。
Agent 使用声明
/root:唯一源码 writer;分析、实现、回归、静态自审、CI 工作流、正文与状态记录。系统确认 GPT-6 系列;完整模型 ID 未暴露,写“未知(仅可确认 GPT-6 系列)”;推理强度未知(本会话未暴露配置)。fast:未请求、未声称启用。quota_review:只读额度及兼容性审查,无写入/测试;完整模型名未知、推理强度未知(子 Agent 工具不暴露实际值)。scheduler_review:只读执行/租约/手动路径审查,无写入/测试;完整模型名未知、推理强度未知(继承配置但实际值未暴露)。提交前自查