Repository navigation
fix(scoring): 对齐真实精选解释并修正提示词统计 - #226
Merged
Merged
Conversation
Closed
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.
算法解释原先对有限样本独立评分,提示词页面则把同一场景的调用量重复显示在多份模板上。现在解释页复用真实精选的完整候选、个人忽略、静音、事件代表和评分过程,样本数量只影响展示;提示词目录按场景汇总请求尝试、成功和失败,并明确所有历史版本的统计边界。
页面区分原始维度、权重贡献、软降权和未入选原因,标记本地降级待复核;普通用户不显示管理分析动作。窗口优先发布时间,诊断计数不能阻止真实候选执行;解释缓存绑定用户、事件修订和有限有效期。目录补齐至31份,代码继续作为模板真源。
Closes #225
Verification
TEST_PG_PORT=5564 bash backend/scripts/test_full_local.sh -k 'test_prompt_registry or test_scoring_flow or test_today_picks or test_url_only_content or test_explanation_window_matches_published_time',88项通过、退出0,临时容器已清理。npm run test:coverage:447项通过;最后名称常量/文案/布局调整后6项针对性复验、npx tsc --noEmit、生产构建均通过。/root/navigation_final_verify,非本轮实现者)发现时间窗口P2,已统一发布时间口径并补跨窗口/诊断为0回归;复查无剩余阻塞。边界与长期合同
未调整评分权重、提示词意图或数据库schema。旧日志未记录模板组合、版本、独立业务请求与响应缓存身份,不推算重试/缓存/单版模板用量;请求成功不等于业务结果验证成功。模型质量、真实Provider、生产运行和用户收益不在上述本地证据范围内。
新建提示词统计归因owning note,更新评分证据owning note;独立复核确认长期维护价值。AGENTS约定未变;截图与原始运行记录保留本地,不进入PR。