Skip to content

chore(dx-scoreboard): commit the first-run baseline so the nightly lane gates installs - #8378

Merged
EffortlessSteven merged 5 commits into
mainfrom
claude/first-run-baseline
Oct 17, 2026
Merged

EffortlessSteven merged 5 commits into
mainfrom
claude/first-run-baseline

Conversation

@EffortlessSteven

Copy link
Copy Markdown
Member

Requested by Steven · project thread

Before: first-run-install ran 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.json exists, 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-install on main (run 39004390168, revision 51acaab, job green). The artifact host is blocked from this session, so the file is the dx-scoreboard.json the 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 source cargo install ripr --locked of published 0.10.0; the prebuilt route (#5311) cannot borrow this baseline. Local: file loads under cargo xtask dx-scoreboard --boards first_run --baseline ... --gate; cargo xtask precommit passes.

Caveats for review: (1) the report's binary and analyzer_version are 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

…l run 39004390168 (#5983)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01RVCbKKNfscw9XJ8By1HPGW
@gemini-code-assist

Copy link
Copy Markdown

Warning

You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again!

@EffortlessSteven EffortlessSteven self-assigned this Oct 17, 2026
@coderabbitai

coderabbitai Bot commented Oct 17, 2026 •

Copy link
Copy Markdown

Warning

Review limit reached

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).

  • Ask an admin to enable usage-based reviews

Open in CodeRabbit

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.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available. Your 68 included PR review attempts over the past 7 days set your current allowance at 1 review per hour.

Learn how review limits work.

Review configuration:

⚙️ Run configuration
  • Configuration used: Organization UI
  • Review profile: ASSERTIVE
  • Plan: Essentials
  • Run ID: 13f02f05-5018-4ddd-a498-884d08745f60
📥 Commits

Reviewing files that changed from the base of the PR and between fef6361 and 8814b99.

📒 Files selected for processing: 2
  • changelog.d/5983-first-run-baseline.md
  • metrics/dx-scoreboard/first-run-baseline.json
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Comment @coderabbitai help to get the list of available commands.

…rst-run baseline (#5983)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01RVCbKKNfscw9XJ8By1HPGW

Copy link
Copy Markdown
Member Author

Local results before merge-ready: file loads under cargo xtask dx-scoreboard --boards first_run --baseline metrics/dx-scoreboard/first-run-baseline.json --gate; cargo xtask precommit pass. Independent review (fresh Sonnet 5.5 subagent): JSON valid and internally consistent, loader and runner-mismatch behavior as documented, no correctness defects. Its one note (empty binary/analyzer_version) is now fixed in this head (ripr 0.10.0, cargo install ripr --locked) and the generator fix is #8394. The log transcription itself (timings, friction count) could not be diffed against the artifact because the artifact host is blocked from this session.


Generated by Claude Code

@EffortlessSteven
EffortlessSteven marked this pull request as ready for review October 17, 2026 05:30
@gemini-code-assist

Copy link
Copy Markdown

Warning

You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again!

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Confirmed findings

  • first_run.over_budget_steps reports value: 3.0 and below_target against target 0; the detail pins this to init_ci workflow_lines 1957 > 1500 across all three repos. Because the limit is init_ci workflow 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" and gate.enabled=false / gate.status="not_run". If the loader uses the baseline.comparable flag 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-test scheduled-late and gh-runner profile disables build leases, so on this PR the only authoritative artifact is tokmd. The artifact host was blocked during authoring, so the JSON could not be diffed against dx-scoreboard.json from 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.

Copy link
Copy Markdown
Member Author

Replies to the automated review:

  • "Focused HEAD proof failed" (--test dx_scoreboard_gate): no test target by that name exists in xtask/tests or anywhere in the tree, so exit 101 there is a bad target, not a failing check. The gate behavior is covered by the dx_scoreboard unit tests (115 pass locally on the related branch).
  • Over-budget baseline (3 steps, init_ci workflow 1957 lines): deliberate. The gate fails only when a metric is worse than this baseline by more than its tolerance, so the known oversized workflow does not trip it but growth does, and the metric stays below its target of 0 on the public-proof page until the workflow shrinks.
  • Loader branch / gate nulls / runner class: the workflow chooses the gated branch by file presence, and the loader reads only metrics, runner_class and revision from a baseline. A different runner class leaves timing metrics uncompared.
  • Transcription provenance: values were copied from the run's printed report; first gated nightly will show whether load and thresholds reproduce gaps, 3 below and 4 meets.

Also merged current main so CI re-runs after the unrelated cli_smoke python fix landed.


Generated by Claude Code

@EffortlessSteven
EffortlessSteven marked this pull request as draft October 17, 2026 06:11
@EffortlessSteven
EffortlessSteven marked this pull request as ready for review October 17, 2026 06:11
@gemini-code-assist

Copy link
Copy Markdown

Warning

You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again!

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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).

Copy link
Copy Markdown
Member Author

Rust gates failed on 345847b with only goldens red (every other gate success). This PR changes no goldens or Rust: it adds a JSON file and a changelog fragment. The drift was main's eight stale human.txt goldens, fixed by #8351, which merged at 06:35Z. I merged main into the branch (8a5f6f2) so CI re-runs against the fixed base. If goldens is still red after that, it is this PR's to root-cause.


Generated by Claude Code

@EffortlessSteven
EffortlessSteven marked this pull request as draft October 17, 2026 07:17
@EffortlessSteven
EffortlessSteven marked this pull request as ready for review October 17, 2026 07:17

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.25 matches only semver; aggregator behavior with per_repo=true needs justification.
  • Confirm over_budget_steps baseline=3 bakes in known init_ci workflow_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.

@settings settings Bot removed the merge-ready label Oct 17, 2026

Copy link
Copy Markdown
Member Author

Rust gates is red again on 8a5f6f2, again only goldens (every other gate success, including rust-tests). This is not this PR's: it adds a JSON file and a changelog fragment. The log shows human.txt drift in 35 fixtures, where ripr check now prints the stub route or No test stub here: ... for every probe family (#8412). The re-bless is in #8418, open and merge-ready. I'm not copying its 70 files into this PR, which would only conflict with it. Once #8418 lands I'll merge main in and let CI re-run; this PR stays watched until then.


Generated by Claude Code

@EffortlessSteven
EffortlessSteven marked this pull request as draft October 17, 2026 13:16
@EffortlessSteven
EffortlessSteven marked this pull request as ready for review October 17, 2026 13:16
@gemini-code-assist

Copy link
Copy Markdown

Warning

You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again!

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants