Repository navigation
chore(dx-scoreboard): commit the first-run baseline so the nightly lane gates installs - #8378
Conversation
…l run 39004390168 (#5983) Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01RVCbKKNfscw9XJ8By1HPGW
|
Warning You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again! |
|
Warning Review limit reachedEnable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
Reviews can continue after your included limit without a manual trigger. An admin must approve usage-based billing. Next included review available in 47 minutes. View limit details
Comment |
…rst-run baseline (#5983) Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01RVCbKKNfscw9XJ8By1HPGW
|
Local results before Generated by Claude Code |
|
Warning You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again! |
There was a problem hiding this comment.
Confirmed findings
first_run.over_budget_stepsreportsvalue: 3.0andbelow_targetagainst target 0; the detail pins this toinit_ciworkflow_lines 1957 > 1500 across all three repos. Because the limit isinit_ciworkflow size, not a transient runtime cost, this baseline bakes in a known over-budget artifact and makes the future gate trip on lines-of-yaml rather than regressions. Suggest freezing that budget threshold or excluding workflow-size from the gate until rationale is documented. (metrics/dx-scoreboard/first-run-baseline.json:288).
Verification questions
- Confirm every metric ships with
baseline.comparable=false/"no baseline supplied"andgate.enabled=false/gate.status="not_run". If the loader uses thebaseline.comparableflag to pick the gated vs ungated branch, this file may still drive the ungated path despite existing. - Confirm two transcript-derived numeric assertions (install 87.23 / walk values / friction 9 / over_budget 3) cannot be independently verified by this lane because the artifact host is blocked and the JSON was hand-transcribed from the job log; this PR introduces trust in those numbers as future gate decisions. Author flagged this; verify on first gated nightly that JSON load + threshold evaluation reproduces the reported status (gaps, 3 below_target, 4 meets_target).
- Confirm no proof receipts verify the gated-branch behavior change. Sensor plan shows
cargo-testscheduled-late and gh-runner profile disables build leases, so on this PR the only authoritative artifact istokmd. The artifact host was blocked during authoring, so the JSON could not be diffed againstdx-scoreboard.jsonfrom run 39004390168; transcript-only provenance leaves a small trust gap on values. - Confirm log-transcription provenance is unverified: artifact host blocked this session so the committed JSON cannot be diffed against the source dx-scoreboard.json the run printed. Re-serialization with sorted keys and 2-space indent is reversible, but typo or copy-paste drift in timings (87.23, 87.27) or counts (9 friction, 3 over-budget, 1 unknown, 0 failed) cannot be ruled out without the source artifact or a second independent capture. PR body acknowledges this gap.
- Confirm runner_class is recorded as 'github-hosted-linux-x86_64-4cpu-amd-epyc-9v45-96-core-processor' but gate.baseline_runner_class is null. If the loader keys comparison on gate.baseline_runner_class rather than top-level runner_class, the nightly lane on a different class will either incorrectly compare or be marked uncompared; if it keys on top-level runner_class it will work but the schema's gate.baseline_runner_class field is misleading.
- Confirm prior reviewer's note that log transcription could not be diffed against the artifact (host blocked) means the JSON is the only witness for non-runner metrics (friction=9, unknown_verdicts=1, over_budget_steps=3). Architecture has no objection since data shape is correct, but this is residual provenance risk for any later dispute of those counts.
- Confirm baseline file is loader-only artifact; no public API route, helper, or CI step is added in this diff. Source-route impact is restricted to one new JSON the nightly lane reads via
cargo xtask dx-scoreboard --boards first_run --baseline ... --gate.
Test proof
- Focused HEAD proof failed (exit 101):
cargo test --locked --package xtask --test dx_scoreboard_gate -- --nocapture. This is a current failure, not a red/green witness.
Refuted
- The baseline file would self-gate (gate.enabled true or non-null gate.baseline_revision), which would cause the nightly lane to gate against itself with no live run, silently passing.; refuted because: gate.enabled=false, gate.status='not_run', gate.baseline_revision=null, gate.baseline_runner_class=null; every metric.baseline.comparable=false with reason 'no baseline supplied'. The file is a stored observation; gating is done by the loader at lane time, not by the file itself.
- Committing this baseline could create a duplicate-baseline or loader-coupling risk if a second baseline file (e.g., prebuilt route #5311) is added later with the same id.; refuted because: Each route is expected to own its own baseline file under metrics/dx-scoreboard/ and loader resolves by route; current diff does not introduce coupling, only adds the source-route baseline as documented.
Evidence gaps
- Model proof intent was rejected by deterministic validation.
|
Replies to the automated review:
Also merged current main so CI re-runs after the unrelated Generated by Claude Code |
|
Warning You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again! |
There was a problem hiding this comment.
Confirmed findings
- No code duplication or helper-shape concern in this PR: it adds only a docs file and a data artifact. Architecture lane scope is satisfied with the candidate finding on over_budget_steps and the residual risk note on loader branching by file presence.
- With Source changed=false this PR cannot introduce or modify a public API route, helper, or sibling path; reviewer value is limited to data-file correctness and the unverifiable claim that file presence flips a gate that lives outside the diff.
Verification questions
- Confirm file-presence gate enables nightly comparison; per-metric comparable=false is expected baseline-only state (this file IS the baseline).
- Confirm prior review concern that the JSON was hand-transcribed from a job log because the artifact host was blocked is partially closed by Steven's reply (115 dx_scoreboard unit tests pass locally, loader reads only metrics/runner_class/revision) but transcription provenance itself remains unverified.
- Confirm the PR's central claim — that file presence alone causes the nightly lane to take the gated branch — is unverifiable from this diff because no loader or gate-wiring code is modified here.
Test proof
- Focused HEAD proof failed (exit 101):
cargo test --locked --package xtask --test dx_scoreboard. This is a current failure, not a red/green witness.
Refuted
- This PR introduces new Rust code paths, helpers, or module boundaries that need architectural review.; refuted because: Diff flags and hunk inspection confirm only a 2-line markdown add and a 324-line JSON data artifact. No source-general Rust surface changed; no helper shape or duplication risk applies.
- Committed file might still trigger the ungated branch because every metric is comparable=false; refuted because: Author reply + code invariant -- presence of the file toggles gated branch; baseline.comparable controls per-metric comparison, not branch selection.
- The PR may change a public API route or helper caller via the JSON baseline.; refuted because: Diff contains only a changelog fragment and a new JSON file; no source code surface is modified. Verified by Changed files list and Source changed=false flag.
Evidence gaps
- Model proof intent was rejected by deterministic validation.
Parked follow-ups
- github-actions bot flagged over_budget_steps=3 as a baked-in artifact (init_ci workflow 1957>1500) gating on yaml size rather than regressions.
- runner_class uses vendor-model substring ('amd-epyc-9v45-96-core-processor') rather than a normalized class token; if the gate matches on substring rather than on a normalized class id, GitHub Actions runner hardware refreshes will silently uncompare timing metrics in future without any signal. Worth a follow-up to canonicalize runner_class in the generator (#8394 generator fix referenced).
|
Generated by Claude Code |
There was a problem hiding this comment.
Verification questions
- Confirm walk_secs samples carry 3 different per-repo values (semver 0.25, fastrand 0.09, bytesize 0.10) but top-level
value=0.25matches only semver; aggregator behavior with per_repo=true needs justification. - Confirm over_budget_steps baseline=3 bakes in known
init_ciworkflow_lines 1957>1500 across all 3 repos; gate then trips on lines-of-yaml, not runtime regression. - Confirm pR title's 'gate installs' claim is unverifiable from this 2-file data-only diff; proof must come from the workflow repo (out of scope) plus a future gated nightly run.
- Confirm transcription provenance for the seven metric values (install 87.23 s, walk 87.27 / 0.25 / 0.09 / 0.10 s, friction 9, over_budget 3, unknown_verdicts 1) cannot be independently verified from the diff because the artifact host is blocked from this session and the JSON was hand-transcribed from run 39004390168's job log. The numbers are now policy-bearing for nightly gate decisions; reviewer faith in them rests on the author's claim and on later reproductions.
- Confirm loader/wiring code that 'file presence flips gate' is not in this PR; unverifiable from the diff and already covered in seed thread (architecture lane).
Test proof
- Focused HEAD proof failed (exit 101):
cargo test --locked --package xtask --test dx_scoreboard. This is a current failure, not a red/green witness.
Refuted
- PR should include the loader/gate wiring change to make file-presence flip verifiable in this diff; refuted because: Scope is intentionally data-only; gate enablement is the smallest-complete-fix and the wiring is documented elsewhere. Adding loader edits would expand scope without fixing the missing-evidence gap (nightly empirical validation is the right proof).
- A Box::from(slice)/allocation-failure concern was hypothesized for this PR.; refuted because: Diff is docs/JSON only; no Rust source changed (Source changed=false). Pattern does not apply; per lane calibration this is a false premise.
- This PR hides a red/green test gap because no behavior test is added; refuted because: Source changed=false; the PR's only behavior is file presence flipping a runtime branch that lives in main's workflow code. Adding a new Rust test in this PR would not localize to this diff; the canonical unit coverage (115 dx_scoreboard tests) is already on main per author's reply, and out-of-diff gates are nightly-e2e.
Evidence gaps
- Transcription provenance (timings, friction 9, over_budget 3) hand-copied from job log; artifact host blocked; values now anchor future gate decisions.
- Baseline values were transcribed from run 39004390168 job log; artifact host was blocked so values cannot be locally re-verified.
- Model proof intent was rejected by deterministic validation.
|
Generated by Claude Code |
|
Warning You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again! |
There was a problem hiding this comment.
Decision
- Needs reviewer attention before upstream: findings remain.
Confirmed findings
- runner_class mismatch (EPYC 9V45 vs Xeon 8370C) leaves runner-dependent metrics uncompared rather than gated; author disclosed this in PR body caveat (2).
Verification questions
- Confirm transcription provenance for 7 numeric values (install 87.23, walk 0.25/0.09/0.10, friction 9, over_budget 3, unknown_verdicts 1) is unverified: artifact host blocked, JSON hand-copied from job log 39004390168.
- Confirm this 2-file data-only diff (JSON baseline + changelog fragment) cannot be rejected on correctness grounds from the diff alone, but carries five trust-bearing residual risks that are not closable by additional diff.
- Confirm transcription provenance for the seven numeric metric values (install 87.23, walk 0.25/0.09/0.10, friction 9, over_budget 3, unknown_verdicts 1) cannot be independently verified: artifact host blocked, numbers hand-transcribed from run 39004390168 job log. These numbers are now policy-bearing for nightly gate decisions; first gated nightly run is the only independent oracle.
Refuted
- Code duplication or helper-shape concern in this PR; refuted because: PR adds only a docs file and a data artifact; no helper, route, or sibling path exists to duplicate.
Test proof
- Focused HEAD proof failed (exit 101):
cargo test --locked --package xtask --test dx_scoreboard. This is a current failure, not a red/green witness.
Parked follow-ups
- Baseline bakes in known over_budget_steps=3 (init_ci workflow_lines 1957>1500 across 3 repos); gate trips on lines-of-yaml, not runtime regression. Architecture risk: metric definition conflates size and runtime cost.
Evidence gaps
- Model proof intent was rejected by deterministic validation.
Requested by Steven · project thread
Before:
first-run-installran ungated ("Compare with the baseline" skipped, "no baseline supplied"), so a slower or worse first run failed nothing.After:
metrics/dx-scoreboard/first-run-baseline.jsonexists, so the nightly lane takes the gated branch. Thresholds are unchanged. Approved on #5983 (coordinator decision answering for Steven, 2026-10-17).How: dispatched
first-run-installon main (run 39004390168, revision 51acaab, job green). The artifact host is blocked from this session, so the file is thedx-scoreboard.jsonthe run printed in its job log, re-serialized with sorted keys and 2-space indent. Values: install 87.23 s, time to first useful result 87.27 s, walk 0.25 s, 9 friction events, 3 over-budget steps (init_ci workflow 1957 lines), 1*_unknown, 0 failed steps. Route is the sourcecargo install ripr --lockedof published 0.10.0; the prebuilt route (#5311) cannot borrow this baseline. Local: file loads undercargo xtask dx-scoreboard --boards first_run --baseline ... --gate;cargo xtask precommitpasses.Caveats for review: (1) the report's
binaryandanalyzer_versionare empty; identity is only in the row details (ripr 0.10.0). (2) The runner class differs from the Oct 10 run (EPYC 9V45 vs Xeon 8370C), so runner-dependent metrics will be uncompared on a different class rather than gated; non-runner metrics (friction, over-budget steps, unknown verdicts) gate regardless.Generated by Claude Code