Run the AL gate on the agentic eval's own server / 在 AgentX 评测自身服务上运行 AL 门禁 #4810
All Vouch review confidence checks passed
Residual risk 0.25 = Change Risk (0.57) × (1 − Review Confidence (0.57)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.57 · 650 lines diff across 8 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.388
Shallow Review Depth
shallow_review_depth
0.289
Ai Authored
ai_authored
0.050
Real PR Conversation Timeline
1 comments
"Review active on #4810"
general
weight: 0.35
Ankur-singh
[by Claude Code]
Summary
AgentX throughput forces each speculative deployment's acceptance to its golden AL, and evals cannot see draft quality (speculative decoding is lossless), so a weak drafter goes unnoticed. #4654 measures real AL in separate gate jobs, each with its own server launch. This PR moves that gate into the agentic eval jobs we already run: one server launch serves both the gate and the eval, and the separate gate jobs are removed. The gate stays report-only, so it never fails an eval or blocks a submission.
benchmarks/srt_al_gate.shas srt-slurm's benchmark stage, then the eval as its post-benchmark eval, in the same Slurm job. The benchmark stage is the only one that receives the workers' metrics endpoints. The job is submitted withEVAL_ONLY=false RUN_EVAL=trueand telemetry off;srt_eval.shrestoresEVAL_ONLY=truefor the eval. The server keeps real verification, as eval-only servers already do.infx.bench al-gatereplays the curve's recorded SPEED-Bench collection at concurrency 64, readsAL = 1 + accepted / verificationsfrom the engine's own Prometheus counters, and writesal_gate_<RESULT_FILENAME>.jsonwithpass(within 5%),beloworabove. The shim always exits 0, so the eval runs after any outcome.skippedwith its reason: no prompts, a curve without acollectionblock, TileRT, or leader-only Dynamo vLLM DP metrics. Dynamo TRT-LLM and llm-d are gated: srtctl publishes TRT-LLM metrics by default, and a recipe that turns them off reportsno-counters.al-gate-prompts.ymlis now also callable:run-sweep.ymlande2e-tests.ymlcall it to hand the cached prompts to their agentic eval jobs. If it fails, the evals run without the gate and the sweep stays green.collect-evalsadds a gate table to its summary.collectionblocks. DeepSeek-V4.1-Flash was collected with vLLM'sdeepseek_v41tokenizer mode, soinfx/bench_serving/encoding_dsv41.pycopies vLLM's V4.1 encoder from the week of that collection (later vLLM renders reasoning efforthighas 75, not 50). Muse Spark was collected by SGLang'sbench_serving, which sends norepetition_penalty; the gate replays it on/v1/completions.Runtimeand itsbootstrap(), so a wrongbootstrapcall or a missingRuntime.aiperffails them.Removed: run-sweep's
al-gate-select,al-gate,al-gate-multinodeandal-gate-collectjobs; the templates'al-gateinput and gate-only steps; the launcher'sAL_GATErequest fields and validator,gate_args,check_gate;infx/workflows/al_gate_reuse.py; the gate-job filter incalc_success_rate.py.Coverage trade-off: only deployments that run agentic evals are gated; #4654 gated every speculative deployment and drafting configuration.
Not yet run on a cluster in this form. No config keys change, so there is no perf-changelog entry.
<details>
<summary>AI model disclosure</summary>
Runtimeregression tests intest_al_gate.py, adapted here.</details>
<details>
<summary>PR checklist and change type</summary>
Type of Change
Checklist
python -m infx.matrix.changed --base origin/mainlists affected config keys, I have appended one new entry covering them to the physical end ofinferencex-e2e/perf-changelog.yaml; if it lists none, I have added none. I have not edited historical entriesinferencex-e2e/perf-changelog.yamlentry, it carries exactly one primary sweep label (a maintainer applies it on fork PRs):full-sweep-fail-fast(recommended),full-sweep-enabled, ornon-canary-full-sweep-enabled. Optional modifiersall-evals,evals-only, andagentx-fastrequire a primary label; the last two block reuse while applied.OWNER/MEMBER/COLLABORATOR) has commented/use <run_id>(or the legacy/reuse-sweep-run) on this PR. Do this only once there is a final full sweep that is all green with evals passing, since after this comment the primary sweep label will no longer automatically kick off new sweeps. Remove and re-add the primary sweep label to force a new sweep.</details>
<details>
<summary>中文</summary>
AgentX 吞吐量测试会把每个投机解码部署的接受长度强制设为黄金 AL,而评测无法反映草稿质量(投机解码是无损的),因此较弱的草稿模型不会被发现。#4654 在单独的门禁作业中测量真实 AL,每个作业各自启动服务。本 PR 把门禁移入现有的 AgentX 评测作业:门禁与评测共用同一次服务启动,并移除单独的门禁作业。门禁仍仅作报告,不会使评测失败或阻塞提交。
benchmarks/srt_al_gate.sh,再运行基准后评测。只有基准阶段能拿到各 worker 的指标端点。作业以EVAL_ONLY=false RUN_EVAL=true提交并关闭遥测;srt_eval.sh为评测恢复EVAL_ONLY=true。服务保持真实验证,与现有仅评测服务一致。infx.bench al-gate以并发 64 重放曲线记录的 SPEED-Bench 收集设置,从引擎自身 Prometheus 计数器计算AL = 1 + accepted / verifications,并写出al_gate_<RESULT_FILENAME>.json(pass为偏差 5% 以内,另有below/above)。脚本总是以 0 退出,评测随后照常运行。skipped记录原因:无提示词、曲线缺少collection块、TileRT,或仅暴露 leader 指标的 Dynamo vLLM DP。Dynamo TRT-LLM 与 llm-d 会执行门禁:srtctl 默认发布 TRT-LLM 指标,关闭指标的配方报告no-counters。al-gate-prompts.yml现在也可被调用:run-sweep.yml与e2e-tests.yml调用它把缓存的提示词交给 AgentX 评测作业;失败时评测不做门禁,扫描保持成功。collect-evals在摘要中加入门禁表。collection块。DeepSeek-V4.1-Flash 使用 vLLM 的deepseek_v41分词器模式采集,因此infx/bench_serving/encoding_dsv41.py复制了采集当周 vLLM 的 V4.1 编码器(之后的 vLLM 把推理强度high渲染为 75,而不是 50)。Muse Spark 由 SGLang 的bench_serving采集,不发送repetition_penalty;门禁在/v1/completions上重放。Runtime及其bootstrap(),错误的bootstrap调用或缺少Runtime.aiperf都会使测试失败。移除: run-sweep 的
al-gate-select、al-gate、al-gate-multinode、al-gate-collect作业;模板的al-gate输入及门禁专用步骤;启动器的AL_GATE请求字段与校验、gate_args、check_gate;infx/workflows/al_gate_reuse.py;calc_success_rate.py中的门禁作业过滤。覆盖范围取舍: 只有运行 AgentX 评测的部署会执行门禁;#4654 会对每个投机解码部署及草稿配置执行门禁。
该形式的门禁尚未在集群上运行。 没有配置键变化,因此不新增 perf-changelog 条目。
AI 模型使用说明:claude-opus-5-5(Claude Code)在 #4654 的门禁代码上设计并实现评测内门禁,编写测试与文档,并撰写本说明;Devin AI(无法确认具体模型)编写了
test_al_gate.py中使用真实Runtime的回归测试,本 PR 对其做了改写。</details>