Repository navigation
fix: Grok 定时检测保存结果后再恢复限流 - #937
Merged
ranxi2001 merged 5 commits intoNov 18, 2026
Merged
Conversation
2 tasks done
ranxi2001
marked this pull request as ready for review
November 18, 2026 22:31
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:45ebcb708867dd61caae10435d19d2df17cd41f3;headfix/issue817-persistence-followup-20261119:f4fc785cef20bbc5bd00ccbdda081ac87c4e0214。管理员新功能提示
复现与验收
协议、调度或传输改动补充
实际验证
固定当前 head 的 Grok 五模式 Actions,父级已读取五个 completed/success job 的原始日志:
git diff 45ebcb708867dd61caae10435d19d2df17cd41f3..f4fc785cef20bbc5bd00ccbdda081ac87c4e0214 --checkcd backend && go build ./internal/service ./internal/repositorybash .github/scripts/issue817-race-gate.sh green "$PWD" '^(TestIssue817GrokScheduledRecoveryRequiresSavedResult|TestIssue817GrokManualRecoveryRemainsImmediate|TestIssue817GrokNegativePreservesAdaptiveCooldown)$'red,pattern^TestIssue817GrokScheduledRecoveryRequiresSavedResult$/(headerless_create|available_create)$negative_red,pattern^TestIssue817GrokScheduledRecoveryRequiresSavedResult$/negative_(shorter_429|equal_429|exhausted_200)_auto_(off|on)_(saved|prune)$backoff_red,pattern^TestIssue817GrokNegativePreservesAdaptiveCooldown$/(forty_minutes|thirty_minutes_exact|thirty_minutes_below)$edit_red,pattern^TestIssue817GrokNegativePreservesAdaptiveCooldown$/(forty_minutes|thirty_minutes_exact|ten_minutes_exact)$cd backend && go test -race -tags=integration ./internal/repository -run '^(TestIssue817SaveResultFailureDoesNotAcknowledge|TestIssue817ConnectivitySaveFailureDoesNotCompleteOrRecover|TestIssue817QuotaSkipPreservesPending5xxExecution)$' -count=1 -v -timeout=10mcd backend && go test -race -tags=integration ./internal/repository -run '^TestAccountRepoSuite$/(TestSetRateLimitedIfLaterDoesNotShortenReset|TestClearRateLimitIfObservedProtectsRearmed429Generation|TestGrokNegativeObservationAdvancesGenerationWithoutShorteningReset|TestGrokConfigurationEditRuntimeBoundary)$' -count=1 -v -timeout=10mcd backend && go test -race -tags=unit ./internal/service -run '^TestGrokAdaptiveCooldownRequiresMatchingHistory$' -count=1 -v -timeout=10m各 RED 使用隔离 checkout 的指定生产 blob 与相同新 oracle,记录并比对 blob/head/binary 身份;编译错误、skip、无测试、崩溃/race 不能替代业务 RED。初头 QF1001 曾失败,48ae8cfef 等价布尔修复后由当前头重新验收,不掩盖历史失败。
兼容性与运行影响
文档与用户可见变化
纯内部恢复/并发修复,无 UI/i18n/提示更新;合并不等于 Release 或部署。未实施独立 durable-continuation 设计草案。
Agent 使用声明
gpt-6.1-sol/ultra,源码、回归、定向 CI 与本地普通提交;父级读取实际 rollout turn_context 核实模型、强度和隔离 cwd。fast 仅 requested,实际 tier 未确认。gpt-6.1-sol/ultra,同样核实际 metadata;逐项提出并复审关闭三项源码 finding,最终固定 f4fc785 SOURCE CLEAR。无本地动态。review_contract请求过边界分析;返回旧 baseline、未提供本修复实质分析,无写入/动态;模型/强度未知(当前可见记录未提供)。最后 stale-edit 增量无子 Agent。gpt-6.1-sol,推理强度未知(环境未公开);任务 framing、亲自完整 diff/模板检查、普通推送、远端/原始日志核验与验收合并。没有继承子 Agent 的自证结论。提交前自查
精确头最终验收
父级当前回读
f4fc785cef20bbc5bd00ccbdda081ac87c4e0214:99 checks = {'success': 87, 'skipped': 12};40 workflows = 39 success / 1 条件 skip;传统 commit statuses 为0。skip 包含无关 OpenAI 特定分支门槛及范围选择,不豁免 Grok 五模式。生产目标仍为 45ebcb7,mergeable clean;三项源码 finding 已独审关闭。当前范围验收通过,可按已授权固定 SHA 合并;#817 完整要求仍未完成。