Repository navigation
fix(goals): 学习产生的内部询问到期自动结束 - #118
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.
学习产生的内部询问长期保持 open,积累后会挤占回复准备的目标名额。本次在每日维护中自动结束超过保留天数的内部询问,保留原目标、来源和审计历史。
origin=internal、kind=question、state=open、未被合并的目标;变更为abandoned,closed_by=maintenance。按角色时区自然日计算:创建当天为第 0 天,第 N 天仍保留,第 N+1 天起首次维护可结束。默认 N=7,即 10 月 10 日创建的询问从 10 月 18 日起可结束。goals.internal_question_expiry_days为严格整数 1—365,缺省 7。现阶段仅通过Goals.configure_question_expiry(days)配置,旧管理设置保存保留该键;管理接口和 UI 暂不暴露。expire_question、固定原因question_expired,不复制正文。重启沿用本次维护的开始时间和角色时区判断到期,关闭时间为实际执行时间。question_expiry={count,goal_ids}与summary.questions_expired;README 目标一节说明规则。验证:
uv build成功(wheel + sdist)。测试后已清理自己的.pytest-tmp,.venv仍为 3.13.13。范围:仅 goals.py、maintenance.py 的目标阶段与报告、README 目标一节、新测试文件
tests/test_question_goal_expiry.py。未修改任何现有测试文件,无新迁移。没有读取真实模型配置或隐藏验收材料,没有真实模型评测。后续由规划者安排:CO 合并后将
internal_question_expiry_days接入 settings_api 的读取/PATCH/严格校验,UX 增加保留天数输入、自动结束原因和维护结果展示;设计文档与 DECISIONS 需记录“系统不自动放弃”的内部询问例外、自然日口径、合并及开关规则。当前未开放管理设置新字段,已结束目标及可能重复历史仍保留。完整原始记录和报告:
/Users/cassia/Local/Code/iris-eval-artifacts/question-goal-expiry-20261017/implementation.md(仓库外)。基线为134b21acc385fcccd00f9d7db34ed9653d5ab3b9。验证期间 main 新增 #117 的入口画像准入保留强度修复与文档(当前
b1493c4)。本分支保持已全量验证的134b21a基线;新 main 的产品修改仅在入口画像准入分支,README 为另一章节。git merge-tree已确认可无冲突合并;补充与最新 main 的两类对照也已通过:116 案例/272 批学习请求与结果、七份召回语料的 1,140 组有序返回及 104 次判断请求均零差异。