Repository navigation
fix(dx-scoreboard): a corpus row can expect a partial outcome stopped at a named limit - #12514
Conversation
… at a named limit (#12052) typescript-compiler is partial_with_limitations by design (20,000-entry walk cap), and the warm-check gate admits only complete analyses, so its speed ceilings read as incomplete. A row may now declare expected_partial; the sample is admitted only for the typed partial outcome with a finding naming that limit. A complete result or another limit fails the row. Ceilings are unchanged. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Xt6yTH5Cun56zdAtfc4Xgn
|
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 1 minute. View limit details
|
| Layer / File(s) | Summary |
|---|---|
Define and validate expected partial admission xtask/src/reports/dx_scoreboard.rs, xtask/src/reports/dx_scoreboard/measure/check_admission.rs, xtask/src/reports/dx_scoreboard/tests.rs |
Corpus entries and check subjects can declare an expected static limit. Admission validates its typed cause, finding, outcome kind, and counts. Tests cover accepted and rejected outcomes and corpus values. |
Integrate partial admission into measurement xtask/src/reports/dx_scoreboard/measure.rs, xtask/src/reports/dx_scoreboard/tests.rs |
Warm-up and measured checks use admission status. An expected partial can yield a speed sample but remains incomplete and is excluded from contradiction scans. |
Set the TypeScript corpus expectation benchmarks/dx_scoreboard/scoreboards.toml, xtask/src/reports/dx_scoreboard/tests.rs, benchmarks/dx_scoreboard/README.md, changelog.d/12052-dx-scoreboard-expected-partial.md |
The TypeScript compiler row declares typescript_workspace_discovery_truncated. The corpus pin, documentation, and changelog describe the corresponding admission conditions. |
Estimated code review effort: 3 (Moderate) | ~25 minutes
Sequence Diagram(s)
sequenceDiagram
participant CorpusEntry
participant CheckSubject
participant Admission
participant WarmCheck
participant TrustScan
CorpusEntry->>CheckSubject: Set expected_partial
CheckSubject->>Admission: Validate outcome, cause, finding, and counts
Admission->>WarmCheck: Admit matching partial for speed measurement
Admission->>TrustScan: Exclude expected partial from contradiction scans
Possibly related issues
- Issue 12052 describes the TypeScript compiler row’s explicit workspace-truncation limitation. This change admits the row only when the expected limitation is present.
- Issue 11984 identifies
typescript_workspace_discovery_truncatedas a workspace-discovery fallback. This change validates scoreboard handling of that partial outcome. - Issue 11767 requires truncated workspace discovery to report an honest limitation. This change checks that the partial result names its declared limitation.
Possibly related PRs
- EffortlessMetrics/ripr-swarm#12285: Changes TypeScript workspace discovery pruning, which affects whether discovery reaches the truncation limit validated here.
- EffortlessMetrics/ripr-swarm#12031: Adds truncated results for workspace-discovery limits. This change validates and admits the corresponding partial outcome for speed scoring.
Merge Risk: 
Low · previous review 66125
-
Gate the new test before merging to keep non-Unix test builds working. The issue is limited to that build workflow; the supplied evidence does not establish a scoreboard runtime failure.
Pre-merge checks: 
3 · 
1 · 
1
-
Failed checks: 1 warning · 1 inconclusive Passed checks: 3 passed-
Full details: Title check
-
Explanation
The title names the change: a corpus row in the DX scoreboard can declare an expected partial outcome that stops at a named limit. The changeset adds an optional expected_partial field, admission logic for partial_with_limitations outcomes, and a typescript-compiler row declaration. The title is specific and concise, and it is conventional in form. It is a fix-prefixed title for what the description frames as a new admission path, which is a minor framing point and does not make the title misleading.
-
Full details: Docstring Coverage
-
Explanation
Docstring coverage is 57.14% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentation-only edits and deletions within surviving functions are included; unchanged diff context and fully deleted functions are excluded. Analyzed 14 functions across 4 files. (3 skipped: 3 unsupported.)
Resolution
Write docstrings for the functions missing them to satisfy the coverage threshold.
Full details: Description check
-
Explanation
The description follows the repository's template only partly. It fills the Source-of-truth fields with a governing issue (
#12052) and an acceptance delta sentence, and it gives a clear Decision, Change, Proof, and Not-established section. It leaves most template sections empty or unchecked. These include the Summary, Swarm/Source Boundary checkboxes, Candidate Relationships, Scope and Scope Classification, Support-tier Impact, Policy Impact, Claim Boundary, Rollback, Spec-Test-Code Traceability, Static Language Check, CI Economics, Engineering Check, and Gates. The proof lists test names and results but no commands run for the full gate set. The description is substantively complete on the change itself, but it is not complete against the template.Resolution
Complete the template sections that the change touches. Fill in the Summary and Scope sections, and check the Swarm/Source Boundary box that applies. Record the Candidate Relationships section, since the description refers to
#12466as a prerequisite for a passing main build. Complete the Scope Classification, including the production delta, evidence delta, single acceptance criterion, and non-goals. Mark the Support-tier Impact and Policy Impact items that apply. Add a Rollback answer and the Spec-Test-Code Traceability links. Confirm the Static Language Check and Engineering Check items. For Gates, list which commands were run and the results. State that the CI Economics section is n/a if no workflows changed. Also name the PR stack or prerequisite relationship with#12466explicitly.
-
Finishing Touches
-
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 typed result with care,
And finds the named limit waiting there.
A partial sample joins the speed-score run,
Still marked incomplete when the check is done.
No contradiction scan calls it complete,
Then hops away on quick and tidy feet.
There was a problem hiding this comment.
Code Review
This pull request introduces the expected_partial field to the DX scoreboard corpus entries, allowing rows with expected static limits (such as typescript-compiler exceeding the workspace-walk cap) to have their speed ceilings measured under a partial_with_limitations outcome. The review feedback suggests optimizing the admit_expected_partial function in check_admission.rs by passing &Value instead of &Map to avoid redundant deep cloning of the envelope map.
EffortlessSteven
left a comment
There was a problem hiding this comment.
REPAIR_REQUIRED — head aa7cb50
Read-only review of the full diff; I built and ran nothing. The direction is right (declare the intended partial outcome instead of rescoring or excluding the row), and the identity checks (schema, tool, mode, root, base, head, outcome kind/claim boundary, analysis_complete vs kind) still run before the new path. Three things stop me from calling the admission narrow and the gap visible.
-
A partial document now enters the trust scan as if it were complete (blocking).
admit_expected_partialreturnsCheckAdmission::Complete, so inrecord_warm_checktheif admission.is_complete()branch runscheck_contradictionson it and merges the result. That branch carries the comment "Trust may scan only an admitted complete document. A rejected subject or incomplete analysis cannot contribute a clean zero." A partial analysis is exactly that, and the contradiction sample's detail then says "pilot repo-exposure and warm check JSON scanned". Fix: keep the speed admission separate from the scan, so an expected-partial sample can enterspeed.warm_check_*but pushes "warm check JSON" ontomissing_sources(or is not scanned) instead of contributing a zero. -
The count and consistency validation is skipped. The normal path runs
require_outcome_counts,complete_kind_counts_contradictanddeclared_finding_counts_disagree. The expected-partial path runs none of them and takesfinding_count(..).unwrap_or(0), so a malformed partial document with no counts still passes. Fix: run the checks that apply to a partial kind (at least that the declared finding counts agree with the array), or state in a test why each one does not apply. -
The admission is narrower than the wording says, and the partial is invisible in the row (non-blocking if 1 and 2 are repaired). The rule is "kind is partial_with_limitations and any one finding carries the limit". A document that also carries a different limit, or a finding with another static limit alongside the named one, passes. The TOML comment, README and changelog say "any other limit fails the row"; that holds only when no finding names the expected limit. Either narrow it (reject when a finding carries a different static limit) or reword it, and add a mixed-limit test beside
an_expected_partial_row_rejects_everything_else. Separately, the sample detail for an admitted row reads "exit 0, N finding(s)" becausereason()is only appended for rejections, so a reader of the scoreboard cannot see that this row is partial by design. Add "expected partial: " to the detail so the gap still shows.
Checked and fine: the corpus_pins_the_typescript_commit test pins that only typescript-compiler carries expected_partial; the snake_case validation has negative cases; the manifest-derived entries get None; the ceilings stay, so the row is gated on real numbers.
Not run: anything (build, xtask tests, scoreboard, hosted Result). Merge only on green on the repaired exact head.
Generated by Claude Code
There was a problem hiding this comment.
Confirmed findings
- Expected-partial admission returns CheckAdmission::Complete, so partial analysis can enter the trust-scan path.
- Expected-partial admission returns CheckAdmission::Complete, so downstream code cannot distinguish an admitted partial analysis from a genuinely complete document.
- Expected-partial documents are returned as CheckAdmission::Complete, allowing an explicitly incomplete analysis into the complete-document contradiction/trust-scan path.
- An admitted expected-partial document is represented as CheckAdmission::Complete, which routes it into the contradiction/trust scan despite being incomplete analysis.
Verification questions
- Confirm the new rejection tests cover wrong limit, missing limit, complete output, analysis_failed, and mismatched root, but do not assert trust-scan behavior for an admitted partial.
- Confirm the new tests prove admission outcomes but do not prove expected-partial samples are excluded from trust scanning.
- Confirm the implementation clones the entire envelope to compute rendering truncation.
Test proof
- Focused HEAD proof failed (exit 101):
cargo test --locked --package xtask --test gh_pr_status_no_settings. This is a current failure, not a red/green witness.
Evidence gaps
- The ripr sensor failed and the late cargo-test receipt is absent, so the PR body's claimed 162-test result is not independently established by this review run.
- The PR's claimed cargo test result has no available receipt in this review context.
- The sensor packet lacks a cargo-test receipt while the PR body claims 162 passing tests.
- Model proof intent was rejected by deterministic validation.
…plete, and must show its typed cause (#12052) Review of aa7cb50 found the admitted partial document ran through the contradiction scan as if complete, skipped the outcome and declared count checks, accepted any finding carrying the limit, and read as an ordinary row. - CheckAdmission::ExpectedPartial is admitted for the speed sample but is not complete, so trust never scans it (the contradiction sample stays incomplete). - The partial path runs the outcome-count and declared-finding-count checks. - The declared static limit needs its typed cause in the outcome (typescript_workspace_discovery_truncated needs diff_scope_oversized); a limit with no known cause fails validation and admission. - The sample detail names the expected partial outcome and its limit. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Xt6yTH5Cun56zdAtfc4Xgn
…lemented (#12052) Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Xt6yTH5Cun56zdAtfc4Xgn
|
Repaired at 6612521 (code 6b73c1b, docs 6612521); delta review requested.
Generated by Claude Code |
EffortlessSteven
left a comment
There was a problem hiding this comment.
REVIEW_READY — head 6612521
Delta review against my REPAIR_REQUIRED at aa7cb50, from the diff only. I built and ran nothing.
-
Trust scan (was blocking): repaired. The expected-partial path now returns a separate
CheckAdmission::ExpectedPartial.is_complete()is true only forComplete, and the contradiction scan inrecord_warm_checkstill sits behindis_complete(), so a partial document is never scanned; the else branch records "warm check JSON" as a missing source, so the contradiction sample reads as not scanned rather than as a clean zero. The speed sample and the warm-up use the newis_admitted(), so the row'sspeed.warm_check_*values and its ceilings are still measured. A test pins "admitted but never complete". -
Count checks (was blocking): repaired. The partial path runs
require_outcome_countsanddeclared_finding_counts_disagree, and no longer defaults a missing count. New testthe_partial_path_keeps_the_count_consistency_checkscovers missing counts, an outcome count that disagrees, and a summary that disagrees. -
Narrowness and visibility: repaired. Admission now also requires the typed cause for the declared limit (
diff_scope_oversizedfortypescript_workspace_discovery_truncated) in the outcome's limitations, from a closed table; an unknown limit is rejected at corpus validation and at admission. The sample detail carries "expected partial outcome stopped at<limit>(not a complete analysis)". The TOML, README and changelog wording was narrowed to what the code does (a partial outcome missing the cause or the finding fails the row), so the earlier over-claim is gone. A test covers another cause of partiality plus a finding carrying the static limit.
Remaining, non-blocking: a document with the right cause and a finding naming the limit still passes if another finding carries a different static limit. The wording no longer claims otherwise.
Not run: build, xtask tests, scoreboard, hosted Result. Merge only on green on this exact head.
Generated by Claude Code
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Xt6yTH5Cun56zdAtfc4Xgn
|
Generated by Claude Code |
There was a problem hiding this comment.
Decision
- Needs focused proof failure resolved before upstream.
Test proof
- Focused HEAD proof failed (exit 101):
cargo test --locked --package xtask --test gh_pr_status_no_settings. This is a current failure, not a red/green witness.
Evidence gaps
- No cargo-test receipt is available in the shared packet, so the claimed 162-test execution is not independently established by this lane.
- Model proof intent was rejected by deterministic validation.
- The route is exercised by unit and integration-style tests, but the supplied packet contains no completed cargo-test receipt; the PR-body test claim remains unverified by this lane.
- The packet schedules cargo-test but contains no cargo-test receipt, leaving execution evidence incomplete even though the diff adds focused admission and integration tests.
|
Warning You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again! |
…tation Any further typed limitation means the run did less work than the pinned outcome, so it is not a speed measurement. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Xt6yTH5Cun56zdAtfc4Xgn
EffortlessSteven
left a comment
There was a problem hiding this comment.
REVIEW_READY — head 5f9f7da
Delta review since 6612521, from the diff only. I built and ran nothing.
PR-owned changes in the delta:
admit_expected_partialnow collects all typed limitation kinds and rejects any limitation other than the declared cause, naming the extra kind in the reason (language_scope_unsupportedin the new assertion insidethe_named_limit_must_be_why_the_analysis_is_partial). That closes the mixed-cause case I noted as remaining, at the outcome level; the admitted sample is exactly "partial, caused only by the declared limit". The ExpectedPartial/no-scan separation, the count checks and the visible-partial detail are unchanged.#[cfg(unix)]on one dx_scoreboard test (3970c86) and the merge of main. I did not review the cfg test beyond confirming it only narrows where it runs.
One risk to watch, not a blocker: the stricter rule has never been checked against a captured live document for typescript-compiler. The comment in scoreboards.toml still describes that outcome as "diff_scope_oversized plus unindexed test files". The adapter can add other typed limitations on this repository (for example LanguageScopeUnsupported for skipped symlinks or absolute baseUrl), and the truncation limitation itself is the only DiffScopeOversized source there. If the real document carries any of those, the row is rejected and stays incomplete. That fails closed and the reason names the extra kind, so the first nightly will show it. Capturing one real document's limitations list, or reading it from the next nightly, would settle it.
Not run: build, xtask tests, scoreboard, hosted Ripr Rust Small Result. Merge only on green on this exact head.
Generated by Claude Code
|
The Generated by Claude Code |
There was a problem hiding this comment.
Parked follow-ups
- Static-limit semantics are centralized in typed_cause_of_static_limit, so adding another expected_partial value requires synchronized validation and admission support rather than only manifest configuration.
Evidence gaps
- The claimed cargo test proof is not independently established because cargo-test remains receipt-absent.
- Model proof intent was rejected by deterministic validation.
- The PR's claimed cargo-test execution lacks a completed receipt in the shared evidence packet.
- The PR's claimed focused test execution is not independently established by the supplied sensor packet; cargo-test is only scheduled and no completed receipt is present.
Governing issue or accepted claim: #12052
Acceptance delta (one sentence):
typescript-compiler's warm-check speed ceilings are measured (admitted only for the typed partial outcome stopped attypescript_workspace_discovery_truncated) instead of recorded asincomplete.Decision (reversible fork, recommended option taken)
A row may declare
expected_partial = "<static limit>". The refusal with that limit is the pass condition; anything else fails. The ceilings are not stripped or raised.Change
CorpusEntry.expected_partial(optional, snake_case, validated);CheckSubject.expected_partialcarries it into admission.admit_check_document: when set, the sample is admitted only if the outcome kind ispartial_with_limitationsand some finding hasstatic_limit_kindequal to the limit. A complete outcome ("pinned diff no longer reproduces the refusal"), a different limit, no limit, oranalysis_failedis rejected. Identity checks (schema, tool, mode, root, base, head) run first, unchanged. Rows without the field behave exactly as before.scoreboards.toml:typescript-compilerdeclarestypescript_workspace_discovery_truncated; comment, README and changelog fragment updated.Proof
cargo test -p xtask dx_scoreboard: 162 passed, includingan_expected_partial_outcome_naming_the_limit_is_admitted,an_expected_partial_row_rejects_everything_else, the committed-config check that onlytypescript-compilerdeclares it, and the snake_case validation.cargo xtask precommit: pass. Run with the diff of fix(agent-stub): repair main build break from rust_test_stub arity (#12322 x #12357) #12466 applied locally (main does not compile without it); that diff is not part of this PR.Not established
That the hosted nightly now records a value for the row: that needs this merged plus a scoreboard run on a main that builds (#12466).
Generated by Claude Code