Repository navigation
fix(dx-scoreboard): mark measured warm-check capture errors Failed - #7283
Conversation
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>
|
Warning You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again! |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info
Summary by CodeRabbit
WalkthroughWhen 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. ChangesWarm-check classification
Priority: ⬇️ Low Estimated code review effort: 2 (Simple) | ~12 minutes Change: Bug fix Merge Risk: ⚪ Minimal · up to The warm-check classification change is ready to merge after normal checks. Pre-merge checks |
|
Clippy -D warnings rejected the explicit 'a on warm_check_pair. Co-authored-by: Steven Zimmerman, CPA <EffortlessSteven@users.noreply.github.com>
EffortlessSteven
left a comment
There was a problem hiding this comment.
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.
|
Warning You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again! |
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
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.
|
Confirming the ub-review verification question against current head
The claim still holds: capture |
EffortlessSteven
left a comment
There was a problem hiding this comment.
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
Summary
When warm-up capture succeeds and the measured
capture_output_measuredcall returnsErr(spawn or pipe-drain failure),record_warm_checkrecorded bothspeed.warm_check_*samples asSampleOutcome::Incompletewith the warm-up duration/RSS.--gateonly treats metric statusfailedas a broken instrument, so that case did not fail without a baseline.This PR records both warm-check metrics as
Failedon that arm. Timeout and a skipped second run (Ok(None)) stayIncomplete. A successful admitted pair staysValue.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 fortrusted same-repo
riprwork. Confirm the change belongs here:dependency, or repo-ops development for
ripr-swarmsurface
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/riprunless 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--gateeven without a baseline.Candidate Relationships
Candidate branch (GitHub PR head is authoritative after publication):
cursor/dx-scoreboard-warm-check-failed-f013Stack 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 onorigin/main5d8893478: the(Ok(warmup), Err)arm still recordedIncomplete. Neighbor fences: nomeasure/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:
Production delta:
(Ok(warmup), Err(capture))recordsSampleOutcome::Failedfor bothspeed.warm_check_msandspeed.warm_check_peak_rss_mb, with the capture error in the detail. Warm-up duration/RSS are no longer substituted asIncomplete.Ok(None)arms are unchanged (Incompletewith retained warmup timings).Value.Evidence/support delta:
Ok(warmup), Err(...)intorecord_warm_checkand a gated report with no baseline.Ok(None)stayIncompleteand do not fail--gatewithout a baseline.a_valid_complete_child_is_admitted_as_warm_successremains 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 samplesFailedand fails--gateeven without a baseline; timeout / measured-run-not-taken stay Incomplete; a good pair stays Value.Non-goals:
Failed.check_admission.rschange.Support-tier Impact
docs/status/SUPPORT_TIERS.mdClaim/proof notes:
Policy Impact
Ledger or exception notes:
Proof
Result, failures, or skipped proof:
precommitfailed Clippyneedless_lifetimeson the new helper; repaired on this head.precommitandcheck-fastpassed ondfd85bc26.Ripr Rust Small Resulttriggered by Draft → Ready on this head.REVIEW_INCOMPLETEuntil that hosted check is current.Claim Boundary
What may be claimed after this PR? What must not be claimed yet?
Failedon both warm-check metrics and fails--gatewithout a baseline; timeout and skipped second run remainIncomplete; a successful admitted pair remainsValue.Rollback
How can this PR be reverted safely?
Spec-Test-Code Traceability
xtask/src/reports/dx_scoreboard/tests.rs::a_measured_capture_error_fails_both_warm_check_metrics_and_the_gate;timeout_and_unmeasured_second_run_stay_incomplete; existinga_valid_complete_child_is_admitted_as_warm_successxtask/src/reports/dx_scoreboard/measure.rs::record_warm_checkspeed.warm_check_ms/speed.warm_check_peak_rss_mbtaxonomy only; no new metricStatic Language Check
killed,survived,untested,proven, andadequate.CI Economics
Engineering Check
panic,unwrap,expect,todo, orunimplementedin production code.panic,unwrap,expect,todo, orunimplementedin tests.Gates
Local focused
reports::dx_scoreboardsuite,clippy -p xtask --all-targets,check-fast, andprecommitpassed ondfd85bc26. Hosted merge-gate matrix owns required checks.