You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(inference): scope run picker to selected scenario
On the /inference dashboard, the "Run N/M" picker listed every workflow
run for the date regardless of the selected scenario (Agentic Traces vs
Single Turn): it filtered only by changelog config_keys (model +
precision, no benchmark_type). A same-day single_turn sweep therefore
leaked into the Agentic Traces picker, and selecting it poisoned the
asOfRunId cutoff, blanking the chart.
Fix, DB-side and non-circular: the runConfigs coverage in the
workflow-info response (which enumerates all runs on a date
independently of the asOf cutoff) now carries the raw benchmark_type /
isl / osl columns. New pure helpers scenarioRunIdsForDate()
(runEnumeration.ts) and restrictRunsToScenario() (utils.ts) derive the
run ids with coverage for the selected model + scenario and restrict
the picker list to them, with fallbacks so the selector still renders
when coverage data is unavailable. GlobalFilterContext exposes
runConfigs; InferenceContext filters the picker's runs by the selected
scenario before deriving asOf. Filtering from loaded chart rows was
rejected as circular (those rows depend on asOfRunId). Unofficial-run
overlays are unaffected: dataRunsForDate() dedupes by run id, so the
finer-grained DISTINCT rows collapse.
中文:修复 /inference 面板中 "Run N/M" 选择器不区分场景的问题。此前
选择器仅按 changelog 的 config_keys(模型 + 精度)过滤,不含
benchmark_type,导致同一天的 single_turn 运行泄漏进 Agentic Traces
的选择器,选中后会污染 asOfRunId 截断点、使图表变空。修复方案在数据
库侧且无循环依赖:workflow-info 响应中的 runConfigs 覆盖数据(独立于
asOf 截断点、枚举当天全部运行)新增 benchmark_type / isl / osl 原始
列;新增纯函数 scenarioRunIdsForDate()(runEnumeration.ts)和
restrictRunsToScenario()(utils.ts),按所选模型 + 场景推导有数据覆盖
的运行 id 并据此收窄选择器列表,覆盖数据缺失时回退到原列表以保证选择
器正常渲染。GlobalFilterContext 暴露 runConfigs;InferenceContext 在
推导 asOf 之前按所选场景过滤选择器的运行列表。基于已加载图表行的客户
端过滤方案因循环依赖(这些行本身依赖 asOfRunId)被否决。非官方运行
叠加层不受影响:dataRunsForDate() 按运行 id 去重,更细粒度的
DISTINCT 行会被合并。
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
0 commit comments