Skip to content

fix(dx-scoreboard): mark measured warm-check capture errors Failed - #7283

Merged
EffortlessSteven merged 2 commits into
mainfrom
cursor/dx-scoreboard-warm-check-failed-f013
Oct 10, 2026
Merged

EffortlessSteven merged 2 commits into
mainfrom
cursor/dx-scoreboard-warm-check-failed-f013

Conversation

@EffortlessSteven

@EffortlessSteven EffortlessSteven commented Oct 10, 2026 •

Copy link
Copy Markdown
Member

Summary

When warm-up capture succeeds and the measured capture_output_measured call returns Err (spawn or pipe-drain failure), record_warm_check recorded both speed.warm_check_* samples as SampleOutcome::Incomplete with the warm-up duration/RSS. --gate only treats metric status failed as a broken instrument, so that case did not fail without a baseline.

This PR records both warm-check metrics as Failed on that arm. Timeout and a skipped second run (Ok(None)) stay Incomplete. A successful admitted pair stays Value.

Closes #7275 (follow-up from #7271 / residual of #7259; parents #3794 / #5363).

Exact candidate SHA: dfd85bc266a7d98be1c9abe62e73db1142ea9f6e.

Swarm / Source Boundary

This PR targets EffortlessMetrics/ripr-swarm, the normal development trunk for
trusted same-repo ripr work. Confirm the change belongs here:

  • ordinary feature, analyzer, editor, docs, spec, fixture, badge,
    dependency, or repo-ops development for ripr-swarm
  • repair or follow-up for a same-repo swarm PR
  • swarm-only CI, runner, routing, source-of-truth, or agent-operating
    surface
  • other swarm-scoped work:

If this PR moves crates.io publishing, VS Marketplace publishing, Open VSX
publishing, GitHub Release assets, signing, release environments, or release
secrets, close or retarget it. Those surfaces belong in EffortlessMetrics/ripr
unless a dedicated release-boundary change has already been approved.

Source-of-truth Links

Proposal:
Spec:
ADR:
Plan item:
Governing issue or accepted claim: #7275; residual of #7259 via #7271; parents #3794 / #5363
Acceptance delta (one sentence): A measured warm-check capture error is a failed instrument on both speed.warm_check_* metrics and fails --gate even without a baseline.

Candidate Relationships

Candidate branch (GitHub PR head is authoritative after publication): cursor/dx-scoreboard-warm-check-failed-f013
Stack parent or prerequisite PR (if any): none (#7271 already on main)
Proposed replacement of PR (if any; not yet accepted): none
Acceptance retained from a replaced candidate (if any): n/a
Accepted winner and losing candidate disposition (when decided): n/a

All-state search for #7275, record_warm_check, and "measured capture failed" found no equivalent open owner. Verified on origin/main 5d8893478: the (Ok(warmup), Err) arm still recorded Incomplete. Neighbor fences: no measure/check_admission.rs (#7276); did not take #7273/#7274/#7276/#7277; did not touch files of #7281/#7282.

Scope

One taxonomy decision in record_warm_check's (Ok(warmup), Err) arm.

Scope Classification

This PR is scoped by:

  • One production behavior
  • One public contract
  • One architectural seam
  • Docs/spec/test-only evidence package
  • Other:

Production delta:

  • (Ok(warmup), Err(capture)) records SampleOutcome::Failed for both speed.warm_check_ms and speed.warm_check_peak_rss_mb, with the capture error in the detail. Warm-up duration/RSS are no longer substituted as Incomplete.
  • Timeout / Ok(None) arms are unchanged (Incomplete with retained warmup timings).
  • Successful admitted pair remains Value.

Evidence/support delta:

  • Production-path test injects Ok(warmup), Err(...) into record_warm_check and a gated report with no baseline.
  • Controls: timeout and Ok(None) stay Incomplete and do not fail --gate without a baseline.
  • Existing a_valid_complete_child_is_admitted_as_warm_success remains the Value control. No prior test asserted Incomplete on this arm, so no existing expectation was rewritten.

Single acceptance criterion:

  • Ok(warmup), Err(capture) marks both warm-check samples Failed and fails --gate even without a baseline; timeout / measured-run-not-taken stay Incomplete; a good pair stays Value.

Non-goals:

Support-tier Impact

  • none
  • updates docs/status/SUPPORT_TIERS.md
  • changes a README, release, docs, CLI, JSON, editor, CI, or package claim

Claim/proof notes:

  • Internal xtask measurement honesty only. Does not change public check JSON or support tiers.

Policy Impact

  • none
  • doc artifacts
  • CI lane
  • package boundary
  • lint / Clippy
  • no-panic
  • file policy
  • generated artifact
  • dependency
  • process/network

Ledger or exception notes:

  • Changelog fragment only.

Proof

# Inherited baseline on origin/main 5d8893478 before mutation:
# cargo xtask worktree doctor → pass
# cargo xtask check-fast → 6 gates / 0 files / skipped clippy+4
# cargo check -p xtask --all-targets → pass
# Defect still present: (Ok(warmup), Err) → Incomplete(warmup_ms) + rss_sample(..., false)

cargo test -p xtask reports::dx_scoreboard
# 83 passed (2 new tests; existing Value control still green)

cargo clippy -p xtask --all-targets -- -D warnings
# pass after eliding needless 'a on warm_check_pair (dfd85bc26)

cargo xtask check-fast
# 10 gates, 3 files, skipped check-fixture-contracts

cargo xtask precommit
# pass, exit 0, head dfd85bc26

Result, failures, or skipped proof:

  • Focused suite passed (83 tests) after the taxonomy change.
  • First precommit failed Clippy needless_lifetimes on the new helper; repaired on this head.
  • Re-run precommit and check-fast passed on dfd85bc26.
  • Hosted Ripr Rust Small Result triggered by Draft → Ready on this head.
  • Author self-review COMMENT posted; disposition REVIEW_INCOMPLETE until that hosted check is current.

Claim Boundary

What may be claimed after this PR? What must not be claimed yet?

  • May claim: a measured warm-check capture error is Failed on both warm-check metrics and fails --gate without a baseline; timeout and skipped second run remain Incomplete; a successful admitted pair remains Value.
  • Must not claim: analyzer correctness; runtime mutation results; that timeout is now a failed instrument; support-tier or release readiness; that historical retained measurements used invalid output.

Rollback

How can this PR be reverted safely?

  • Revert the squash commit. Only xtask dx-scoreboard measurement + changelog fragment. No schema, analyzer, CI, or Cargo.toml delta.

Spec-Test-Code Traceability

Static Language Check

  • Static output avoids killed, survived, untested, proven, and adequate.
  • Unknowns include stop reasons where applicable.

CI Economics

  • LEM impact: n/a
  • Workflows touched: n/a
  • Branch protection impact: n/a
  • Failure mode caught: n/a
  • Cheaper signal considered: n/a
  • Required lanes affected: n/a
  • Advisory lanes affected: n/a
  • On-demand/release lanes affected: n/a
  • Labels that alter behavior: n/a
  • Artifact families affected: n/a
  • Rollback path: n/a

Engineering Check

  • No new panic, unwrap, expect, todo, or unimplemented in production code.
  • No new panic, unwrap, expect, todo, or unimplemented in tests.
  • New non-Rust programming files are allowlisted with owner, surface, and reason.
  • New generated, dependency, process-spawn, or network surfaces are allowlisted with owner and reason.
  • Errors are reported with actionable context.
  • Public JSON/schema changes are documented.

Gates

Local focused reports::dx_scoreboard suite, clippy -p xtask --all-targets, check-fast, and precommit passed on dfd85bc26. Hosted merge-gate matrix owns required checks.

Open in Web Open in Cursor 

When warm-up capture succeeds and the measured capture returns Err,
record both speed.warm_check_* samples as Failed so --gate sees a
broken instrument even without a baseline. Timeout and a skipped
second run stay Incomplete; a successful admitted pair stays Value.

Closes #7275

Co-authored-by: Steven Zimmerman, CPA <EffortlessSteven@users.noreply.github.com>
@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!

@coderabbitai

coderabbitai Bot commented Oct 10, 2026 •

Copy link
Copy Markdown

Review in Change Stack →

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration
  • Configuration used: Organization UI
  • Review profile: ASSERTIVE
  • Plan: Advanced
  • Run ID: 25c0eec7-63f0-4c5f-960b-64374a185336


📥 Commits

Reviewing files that changed from the base of the PR and between 7aafeee and dfd85bc.



📒 Files selected for processing (3)
  • changelog.d/7275-warm-check-capture-error-failed.md
  • xtask/src/reports/dx_scoreboard/measure.rs
  • xtask/src/reports/dx_scoreboard/tests.rs


🔗 Linked repositories identified

CodeRabbit considers these linked repositories for cross-repo context during reviews:



Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 9 remain after this review.




Summary by CodeRabbit

  • Bug Fixes
    • DX scoreboards now mark both warm-check duration and peak memory samples as Failed when the warm-up succeeds but the measured capture encounters an instrument error.
    • With --gate, these failed samples now cause the run to fail even when no baseline is available.
    • Warm-up timeouts and skipped measured runs remain Incomplete.

Walkthrough

When measured capture returns an error after a successful warm-up, both warm-check metrics are now Failed. Timeout and skipped measured runs remain Incomplete. Tests cover gate outcomes with and without a baseline.

Changes

Warm-check classification

Layer / File(s) Summary
Classify measured capture outcomes
xtask/src/reports/dx_scoreboard/measure.rs, xtask/src/reports/dx_scoreboard/tests.rs, changelog.d/7275-warm-check-capture-error-failed.md
A measured-capture error after a successful warm-up marks both warm-check metrics Failed. Tests check that gating fails without a baseline and that timeout or an absent measured run leaves both metrics Incomplete. The changelog records these outcomes.

Priority: ⬇️ Low

Estimated code review effort: 2 (Simple) | ~12 minutes

Change: Bug fix

Merge Risk: ⚪ Minimal · up to dfd85

The warm-check classification change is ready to merge after normal checks.

Pre-merge checks | Passed 4 | Failed 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage Warning Docstring coverage is 45.45% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 11 functions across 2 files. (1 skipped: … Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
Linked Issues check Passed Issue #7275 requires the (Ok(warmup), Err(capture)) branch to record both speed.warm_check_ms and speed.warm_check_peak_rss_mb as SampleOutcome::Failed, so --gate fails without a baseline. T…
Out of Scope Changes check Passed The reported changes are limited to record_warm_check, focused tests, and a changelog entry for #7275. The tests verify the required failure and control outcomes. The changelog documents the same be…
Description check Passed The description follows the repository template and documents the behavior change, scope, controls, proof, traceability, claim boundary, rollback, and policy impact. It is sufficiently complete; the G…
Title check Passed The title is concise, specific, and accurately describes the main change: measured warm-check capture errors are marked as Failed in the DX scoreboard.

Full details: Docstring Coverage

Explanation

Docstring coverage is 45.45% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 11 functions across 2 files. (1 skipped: 1 unsupported.)


  • Fix all pre-merge checks with AI
✨ Finishing Touches 💡 1
📝 Generate docstrings 💡
  • Commit to this branch
  • Create a new PR




🧪 Generate unit tests (beta)
  • Commit to this branch
  • Create a new PR



  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

A rabbit checks the warm-up run,
Then marks two measures Failed when capture’s done.
If timeout comes, Incomplete stays,
If no second run, the same status remains.
The gate reports the samples clear,
And hops along with carrots near.

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

Clippy -D warnings rejected the explicit 'a on warm_check_pair.

Co-authored-by: Steven Zimmerman, CPA <EffortlessSteven@users.noreply.github.com>
@EffortlessSteven
EffortlessSteven marked this pull request as ready for review October 10, 2026 20:48

@EffortlessSteven EffortlessSteven left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Author self-review of exact head dfd85bc266a7d98be1c9abe62e73db1142ea9f6e. GitHub cannot request changes from the author; COMMENT is not approval.

reviewed_head_sha: dfd85bc266a7d98be1c9abe62e73db1142ea9f6e
integration_basis: origin/main (behind-only movement since 5d8893478; no content conflict with this three-file delta)
claim_boundary: #7275 — (Ok(warmup), Err(capture)) records Failed on both speed.warm_check_* so --gate fails without a baseline; timeout / Ok(None) stay Incomplete; admitted pair stays Value. No schema/CI/check_admission.rs change.
changed_surfaces_and_semantic_owners_inspected:
- xtask/src/reports/dx_scoreboard/measure.rs::record_warm_check (producer)
- xtask/src/reports/dx_scoreboard.rs gate failed_instruments / SampleOutcome::Failed (consumer)
- xtask/src/reports/dx_scoreboard/tests.rs production-path inject + gated report
- changelog.d/7275-warm-check-capture-error-failed.md
blocking_findings: none on source/oracle for this claim
non_blocking_suggestions: none in-claim
refuted_or_stale_findings: gemini-code-assist quota comment is missing review for that provider, not a source defect
proof_and_ci_observed:
- cargo test -p xtask reports::dx_scoreboard: 83 passed (2 new tests; Value control still green)
- cargo clippy -p xtask --all-targets -- -D warnings: pass after eliding needless 'a
- cargo xtask check-fast: 10 gates, 3 files, skipped check-fixture-contracts
- cargo xtask precommit: pass (exit 0)
proof_or_review_missing:
- Hosted Ripr Rust Small Result has not run yet (PR still Draft at review time)
- CodeRabbit still processing; Gemini quota-limited
affected_currentness_dimensions: production implementation; test stimulus; test oracle; public claim (changelog); candidate head identity
residual_assumptions_and_non_claims:
- Test injects Err into record_warm_check rather than spawning a failing child; that is the decision owner measure_corpus_entry already forwards
- Timeout of the measured child (Ok(Some(timed_out))) stays on the last arm as Incomplete via admission; this PR does not retarget it
- No existing test asserted Incomplete on the capture-error arm, so no prior expectation was rewritten
disposition: REVIEW_INCOMPLETE until hosted Ripr Rust Small Result is current on this head. Source and oracle inspection found no blocker. After that check is green on this exact SHA, a published-head pass may emit REVIEW_READY.

Oracle challenge: restoring Incomplete(warmup_ms)+rss_sample(..., false) would fail a_measured_capture_error_fails_both_warm_check_metrics_and_the_gate (Failed + --gate without baseline). The sibling test proves Incomplete still does not fail --gate without a baseline, so collapsing timeout/Ok(None) into Failed would also fail. Fences held: timeout/Ok(None) arms untouched; check_admission.rs untouched; #7281/#7282 files untouched.

@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!

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 10, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-10T20:50:13.150165Z dfd85bc Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@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 one verification check before upstream.

Verification questions

  • Confirm the timeout-only arm is asserted only via both_incomplete on samples; the 'no baseline → no fail' gate assertion runs on the Ok(None) skipped_samples, not on a timeout-only samples set, so a regression that flipped just the timeout arm to Failed while leaving Ok(None) untouched would slip past the gate-level guard.

Refuted

  • The detail-string assertions ('measured capture failed: pipe drain failed' and 'pipe drain failed') make the test brittle to incidental wording and could miss a producer swap between ms and rss details.; refuted because: Detail strings use assert! with .contains and == on a single error, not exact multi-line equality; assertions on SampleOutcome::Failed per metric and the gated failed_instruments IDs already distinguish ms vs rss independently of the wording.
  • A sibling producer of speed.warm_check_* could still emit Incomplete on capture error; refuted because: measure.rs is the single producer per doc comment and module layout; ast-grep structural scan + value-control test staying green confirm no parallel path was missed.
  • The fix should also classify the (Err, _) warmup arm (warmup capture itself failed) as Failed on both warm-check metrics instead of leaving it on its pre-existing arm.; refuted because: PR body and changelog scope the change to the (Ok(warmup), Err(capture)) arm only; (Err, _) is a different taxonomy decision explicitly out of scope (non-goals: 'Timeout / no-second-run are not retargeted to Failed'). No claim boundary in #7275 says warmup-capture errors must also Fail.

Evidence gaps

  • Model proof intent was rejected by deterministic validation.

@EffortlessSteven

Copy link
Copy Markdown
Member Author

Confirming the ub-review verification question against current head dfd85bc266a7d98be1c9abe62e73db1142ea9f6e — this is not a source defect and does not need a head change.

record_warm_check has no separate timeout arm. Warm-up timeout is forwarded as Ok(None) by measure_corpus_entry (Ok(warmup) if !warmup.output.timed_out else Ok(None)), so both the timeout fixture (measured(true, …), Ok(None)) and the skipped-second-run fixture (measured(false, …), Ok(None)) hit the same (Ok(warmup), Ok(None)) arm.

timeout_and_unmeasured_second_run_stay_incomplete already asserts both_incomplete on the timeout samples before the gate check on skipped_samples. A split that marked only timed_out warmup as Failed would fail that sample-level assertion. The --gate / no_baseline check is the discriminator that Incomplete is not a broken instrument; it does not have to be duplicated on the timeout fixture because that fixture is already required to be Incomplete.

The claim still holds: capture Err is Failed and fails --gate with no baseline; timeout / Ok(None) stay Incomplete. Head frozen.

@EffortlessSteven EffortlessSteven left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Published-head author self-review of exact SHA dfd85bc266a7d98be1c9abe62e73db1142ea9f6e. COMMENT is not approval.

reviewed_head_sha: dfd85bc266a7d98be1c9abe62e73db1142ea9f6e
integration_basis: origin/main 7aafeee192 (behind-only vs the candidate base; mergeable CLEAN, no content conflict)
claim_boundary: #7275 — (Ok(warmup), Err(capture)) is Failed on both speed.warm_check_*; --gate fails with no baseline; timeout / Ok(None) stay Incomplete; admitted pair stays Value.
changed_surfaces_and_semantic_owners_inspected:
- record_warm_check producer (measure.rs)
- gate failed_instruments consumer (dx_scoreboard.rs)
- production-path tests + changelog fragment
blocking_findings: none
non_blocking_suggestions: none in-claim
refuted_or_stale_findings:
- ub-review timeout-arm gate question: no separate timeout arm; warmup timeout is Ok(None); both_incomplete already covers the timeout fixture; replied in #issuecomment-6102257443
- CodeRabbit: no actionable comments; docstring-coverage warning is their generic check, not a repo contract
- Codex: completed with no findings
- Gemini quota / Devin trial-expired: missing provider review, not source defects; CodeRabbit + ub-review + this pass cover the claim
proof_and_ci_observed:
- Ripr Rust Small Result: success on this head
- Ripr Rust Small on GitHub Hosted / Rust gates: success
- mergeStateStatus CLEAN / MERGEABLE
- no unresolved review threads
proof_or_review_missing: none required for this claim
affected_currentness_dimensions: exact-head CI/receipts (now current); other dimensions unchanged since the candidate review
residual_assumptions_and_non_claims: same as candidate review; #7284 is #7276 (check_admission.rs) and is not this claim
disposition: REVIEW_READY

@EffortlessSteven
EffortlessSteven merged commit 9c88b96 into main Oct 10, 2026
34 of 35 checks passed
@EffortlessSteven
EffortlessSteven deleted the cursor/dx-scoreboard-warm-check-failed-f013 branch October 10, 2026 21:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

dx-scoreboard: mark measured warm-check capture errors Failed

2 participants