Repository navigation
额度校准 v2:API 价格先验 + 单一隐藏额度 + 已知变更日切分 - #272
Merged
Merged
Conversation
- 有公开价目的族共用一个拟合系数(Claude 按 API input 价比,Codex 按官方 credit 表), 新族零样本也能按价比估算(自身样本不足时最多 B);Antigravity 仍逐族拟合。 - Codex 族内 output 权重 8 → 5(官方 credit 表);训练集从已知计量变更日 (09-22 / 09-29 / 10-29)截断,变更日落在周期中段时突变检测看不到。 - 定级改看逐日留出多天总偏差(A ≤10%、B ≤20%,至少 3 个计分日),不再被单个异常日主导。 - 读侧不再下发 backtest_max_error(v2 不再计算单日最大误差),菜单栏提示退化为不带数字; App 源码不变,只同步 golden 与 Swift 测试期望。 - 新增 10-07 生产只读快照 fixture;10-07 回放:Claude 总偏差 11.7%(B)、Codex 8.6% (sol A)、Antigravity flash B。冷启动 CPU:Claude 6.4→4.7ms、Codex 7.1→5.4ms。 Refs #271 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This was referenced Oct 7, 2026
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.
用户结果
菜单栏的模型周额度估算从「全部显示 —」变为可用:按 10-07 生产快照回放,Claude 四个族 B 档、Codex sol A 档(其余有价比档位 B)、Antigravity flash B。新模型上线当天即可按价比估算。
改动
src/calibration/)KNOWN_CHANGE_POINTS:Codex 训练集从最近一个已知计量变更日(09-22 / 09-29 / 10-29)之后开始;这些日期落在周期中段,原突变检测看不到。FORMULA_VERSIONv1 → v2:部署后到各 provider 轮到 cron 之前(≤3 天),旧行显示「未校准:换算口径已更新」。backtest_failed门槛跟随B_MAX_DEVIATION;不再下发backtest_max_error(v2 不再计算单日最大误差,客户端该字段可选,提示退化为不带数字)。DB schema、API path、其余 JSON 字段不变。quota-unavailable-owner.jsongolden 与对应 Swift 测试期望。calibration_fixture_2026-10-07.json(生产只读导出,脱敏),导出脚本增加--source-note并在头注释补重新生成命令。验证(证据等级 3)
scripts/verify.sh --full:Python 833 通过;Worker 378 通过(含tsc --noEmit)。107 ≤ 61不成立等),实现后全绿。expected 'A' to be 'B')。measure_calibration_cold_cpu.mjs,Mac mini):Claude 6.4 → 4.7ms、Codex 7.1 → 5.4ms、Antigravity ≈2.4ms。脚本自带 5ms 门槛在本机对 main 同样不成立(main Codex 7.1ms),Free 计划 10ms 上限满足。未验证 / 已知局限
check_cf_usage.py回源(等级 7)待合并后执行。Refs #271
🤖 Generated with Claude Code