Repository navigation
ci: nightly size-scaling gate and same-run warm-check A/B on pinned ripr diffs - #10496
Conversation
Advisory lane, not part of the required workflow; the report is kept as an artifact so the cost trend is visible run over run. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_015jyhvmnQnqYgyfnycQYsvx
|
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 50 minutes. View limit details
No actionable comments were generated in the recent review.
|
| Layer / File(s) | Summary |
|---|---|
Run size-scaling and upload reports .github/workflows/size-scaling.yml |
Adds scheduled and manual triggers, builds the locked release binary, runs the size-scaling task with a 512 KiB base, and uploads matching reports even if earlier steps fail. |
Register and describe the CI lane policy/ci-lane-whitelist.toml, policy/workflow_allowlist.txt, xtask/src/command.rs, docs/SIZE_SCALING.md, docs/roadmap/experience.md, changelog.d/10362-size-scaling-nightly.md |
Registers the advisory lane and report family, marks the command CI-enforced in the catalog, and updates documentation and changelog text. |
Estimated code review effort: 2 (Simple) | ~12 minutes
Change: Feature
Sequence Diagram(s)
sequenceDiagram
participant GitHubActions
participant Cargo
participant RiprBinary
participant SizeScalingTask
participant ArtifactStore
GitHubActions->>Cargo: Build locked release ripr binary
Cargo->>RiprBinary: Produce release binary
GitHubActions->>SizeScalingTask: Run with binary and 512 KiB base
SizeScalingTask->>ArtifactStore: Write size-scaling reports
GitHubActions->>ArtifactStore: Upload matching reports
Possibly related issues
- No gate caught a 2x warm-check regression on ripr's own repository (#10489 to #10630) #10639: The issue identifies this nightly workflow as a candidate for adding a
ripr-on-riprperformance row.
Merge Risk: 
Minimal · previous review 1e58d
-
No merge-blocking risk is established by the reviewed changes.
Pre-merge checks: 
3 · 
2
-
Failed checks: 2 warnings Passed checks: 3 passedFull details: Docstring Coverage
-
Explanation
Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 1 functions across 1 files. (6 skipped: 6 unsupported.)
Resolution
Write docstrings for the functions missing them to satisfy the coverage threshold.
Full details: Description check
-
Explanation
The description explains the main changes and verification results, but it omits most required template sections, including Candidate Relationships, Scope, Scope Classification, Support-tier Impact, Policy Impact, Proof, Claim Boundary, Rollback, Spec-Test-Code Traceability, Static Language Check, CI Economics, Engineering Check, and Gates.
Resolution
Complete the missing template sections. Replace or supplement Verification with the required Proof section, document scope and policy impact, record CI economics and rollback details, list source-of-truth links and candidate relationships, complete traceability and engineering checks, and mark applicable gates with results.
-
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 nightly run,
As release builds greet the sun.
A 512 KiB base takes flight,
Reports are gathered through the night.
“Size scales well!” the bunny sings,
Then hops away on artifact wings.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_015jyhvmnQnqYgyfnycQYsvx
There was a problem hiding this comment.
Verification questions
- Confirm the lane claims it runs at 1x, 2x, and 4x and fails on nonlinear cost, deadline, or no-analysis conditions, but this review did not receive a successful behavioral receipt for that command.
- Confirm no changed test provides a red/green oracle for the newly registered nightly workflow.
Refuted
- The Rust metadata change introduces a JS-backed worker/async memory-transfer UB path.; refuted because: The only Rust change flips the existing command's ci_enforced metadata flag; it introduces no JavaScript execution, worker handoff, asynchronous capture, GC, detach, transfer, ownership, or lifetime logic.
- The changed command catalog boolean might expose or create a memory-lifetime/ownership defect.; refuted because: The right-side Rust diff is metadata-only: it flips a flag and changes no executable ownership, borrowing, aliasing, unsafe block, FFI, or native boundary code.
- The new lane is added to the required PR workflow.; refuted because: The workflow has only workflow_dispatch and schedule triggers and is absent from the required-workflow path; the policy describes it as advisory.
- The changed CI registration might be only a reachability check that never validates measured scaling behavior.; refuted because: The workflow invokes the substantive existing size-scaling command, which owns the matrix and verdict; the diff adds no mocked or tautological assertion.
Evidence gaps
- No hosted-run artifact receipt is available to prove the newly added route completes successfully end to end.
- Release and hosted-run behavior has not yet been witnessed by the supplied evidence.
- The changed workflow is not covered by the unavailable zizmor hardening sensor, and the PR explicitly states it has not run on a hosted runner.
- Artifact retention on a failing size-scaling verdict is asserted but not proven by a changed test.
- Model proof intent was rejected by deterministic validation.
- Hosted-run execution and artifact retention after a timeout or build failure are not demonstrated by the available evidence.
|
Generated by Claude Code |
|
Required run 40286986436 failed on Generated by Claude Code |
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01JJgwEL5EqfhxV47nHYYpMV
EffortlessSteven
left a comment
There was a problem hiding this comment.
Review of record (exact-head sweep, head 54a3cf9356a71de544b8416716dd53679a976c63)
Verified
All head content read via gh api repos/EffortlessMetrics/ripr-swarm/contents/<path>?ref=54a3cf9356a71de544b8416716dd53679a976c63; the diff read via gh api repos/EffortlessMetrics/ripr-swarm/pulls/10496/files?per_page=100 (7 files, matches the body's claimed scope: new workflow, lane/allowlist registration, catalog flag, docs, changelog; nothing added to the required PR workflow — the workflow triggers are workflow_dispatch and schedule only).
- Timeout arithmetic verified against the implementation, not just the comment:
cells()yields exactly 11 cells (3 languages x 2 roles x 2 shapes minus the Python test one-line skip,xtask/src/size_scaling/cells.rs:66-72), 3 steps per cell (xtask/src/size_scaling/mod.rs:245),DEADLINE = 3 min(mod.rs:33), and the report is written only after all cells (mod.rs:210-234) — so 99 minutes worst case and the 150-minute job timeout is justified. The Devin timeout finding on the earlier head is properly fixed at this head. - Report retention on failure is real:
run()writes bothsize-scaling.jsonandsize-scaling.mdbefore returningErrnaming the failed cells (mod.rs:89-113), so theif: always()upload genuinely keeps failing runs' reports as the trend artifact. - Workflow hardening matches the sibling nightly
dx-scoreboard.ymlexactly:permissions: contents: read,persist-credentials: false, no secrets, nopull_request_target, both third-party actions pinned to immutable 40-char SHAs, same concurrency pattern andif-no-files-found: warnupload. - The
xtask/src/command.rsflip is the correct positional:command_entry(command, mutability, writes, judgment_required, ci_enforced, notes)(xtask/src/command.rs:2649-2666). Consumers are help rendering (xtask/src/command/help.rs:21,42) and two help tests. The advisory-nightly precedentdx-scoreboardis alsoci_enforced = true, so the flag reads "a CI lane fails on gate failure", not "required PR check" — the flip is consistent. No test pins size-scaling's flag value specifically; the existing help tests pin the rendering pattern only. Acceptable for a help marker. policy/ci-lane-whitelist.tomlentry mirrors the dx-scoreboard schema; the two lane command strings match the workflow run blocks byte-for-byte.policy/workflow_allowlist.txtbudget|2|matches the checker's per-workflowmax_non_empty_linessemantics (tools/repo-policy/src/lib.rs:452) and the workflow's exactly 2 non-empty run lines.- Platform branch is owned by the command:
build_packetrefuses non-Unix hosts (mod.rs:183), consistent withubuntu-latest. - Governing issue #10362 is open with a matching title;
changelog.d/10362-size-scaling-nightly.mdfollows the<issue>-<slug>.mdconvention; the docs claims are arithmetically right (512 KiB x 4 = 2 MiB); the roadmap row's updated middle column is accurate and its unchanged "misses" status is still correct while the TypeScript test cells fail (#10017/#10488).
Done well: the timeout fix reasons from the measured worst case rather than a round number, the report-before-error ordering makes the artifact series survive red runs, and the PR body discloses its own evidence gap (no hosted run yet) instead of claiming one.
Findings
1 inline [P2]: killed-run residue under target/ interacts with rust-cache (see inline comment).
Validation signal
- Observed: head content of all 7 changed files;
xtask/src/size_scaling/mod.rs,cells.rs,xtask/src/command.rs,xtask/src/command/help.rs,xtask/tests/help_hierarchy.rs,policy/ci-lane-whitelist.toml,policy/workflow_allowlist.txt,tools/repo-policy/src/lib.rs,.github/workflows/dx-scoreboard.yml,docs/CI.mdat head54a3cf93; issue #10362 via REST; existing reviews/threads (no substantive review of record on this head — the EffortlessSteven review at this SHA is an empty-body carrier for an inline reply). - Reported (not independently verified): PR-body claims that
cargo xtask check-workflows,check-command-catalogandprecommitpass on this branch; the local gate run on a debug binary. - Not verified: this review did not run any xtask check (the local worktree is not at the PR head, so a local rerun would not be head evidence); the workflow has never executed on a hosted runner — the first
workflow_dispatchor nightly run is the only end-to-end oracle for the lane wiring, and until #10488 lands the first runs should report the TypeScript test cells failing, which is the disclosed #10017 residual.
Disposition: Findings above; none blocking.
|
Root cause of the earlier failure: the run's merge tree predated #10493 (its panic message Generated by Claude Code |
) Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01JJgwEL5EqfhxV47nHYYpMV
There was a problem hiding this comment.
Verification questions
- Confirm the changed workflow has no changed red/green test for its newly enabled nightly lane.
- Confirm the pre-clean and report-upload steps do not constitute an old-versus-new behavioral oracle for the pre-existing size-scaling command.
- Confirm no changed Rust execution path can establish that the workflow's behavioral claims—1x/2x/4x cells, nonlinear-cost detection, deadline failure, or analyzed-evidence failure—currently pass on a hosted release run.
Refuted
- The size-scaling nightly might create a new unsafe/native memory-lifetime path.; refuted because: The diff only flips a catalog boolean and adds a workflow, policy registrations, and documentation; it changes no unsafe or native execution code.
- A metadata-only ci_enforced flip requires a new red/green test distinguishing old and new product behavior.; refuted because: The changed Rust line only updates command-catalog metadata; it does not change execution, thresholds, generated inputs, or verdict logic. The workflow claims to exercise the already-existing size-scaling command.
- This PR could introduce a resizable-buffer or stale active-view length bug.; refuted because: The only Rust change is a command-catalog metadata flag; no buffer allocation, mutation, resize, detach, transfer, worker, async, or active-view implementation is touched.
- The new workflow becomes a required PR gate and can block pull requests.; refuted because: Its only triggers are workflow_dispatch and schedule, and the lane policy explicitly marks it advisory; no required PR workflow was changed.
- The Rust metadata flip could expose or create a memory-lifetime or native-ownership defect.; refuted because: The only Rust change is a boolean catalog flag. It adds no executable path or data transfer and therefore cannot introduce worker handoff, async capture, GC, detach, transfer, aliasing, or ownership behavior.
Evidence gaps
- The new nightly workflow has no PR-visible hosted-run receipt proving its end-to-end artifact and failure behavior.
- The nightly lane has no successful hosted-run or behavioral receipt at the current head.
- The lane's behavioral claims remain dependent on an unobserved hosted-run receipt.
- Model proof intent was rejected by deterministic validation.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01JJgwEL5EqfhxV47nHYYpMV
… nightly (#10639) cargo xtask warm-ab times a warm ripr check of a pinned diff with a baseline and a candidate build on one runner and fails past 1.5x. Control: the pre-#10638 build as candidate failed at 2.17x; the fix as candidate passed. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_015jyhvmnQnqYgyfnycQYsvx
There was a problem hiding this comment.
Verification questions
- Confirm the changed workflow and --pins orchestration have no changed red/green test exercising checkout, ref resolution, two release builds, per-pin worktrees/diffs, report generation, and upload.
- Confirm the sibling-path scan covered the principal warm-ab helper classes but not every repository-wide benchmark, cache, hashing, worktree or report helper.
- Confirm the new --pins orchestration has no changed red/green test proving its end-to-end behavior.
Refuted
- The warm-ab implementation requires unsafe/native ownership or lifetime handling beyond normal scoped Rust ownership.; refuted because: No such boundary was introduced. Files, worktrees, child processes, caches, and reports are held by ordinary owned Rust values; the unsafe-review sensor reported no new gaps, and no unsafe block, FFI, detach, transfer, or native pointer operation appears in the changed Rust.
- The measured JSON report could rely on a stale active-view length after a buffer resize, detach, or transfer.; refuted because: The path has no JavaScript, ArrayBuffer, TypedArray, worker, transfer, detach, resize, or native aliasing surface. Each stdout buffer is parsed as an owned serde_json::Value, and findings_count validates the array before using its length.
Evidence gaps
- The available evidence does not provide a successful behavioral receipt for the nightly lane itself.
- The nightly path remains materially under-executed: no receipt demonstrates two real release builds, worktrees, pinned diffs, and artifact production on a hosted runner.
- The strongest remaining security-relevant uncertainty is execution of the complete --pins path on a hosted runner; supplied receipts do not demonstrate worktree creation, two locked release builds, diff generation, and per-pin verdict delivery end to end.
- The report parser obtains the findings array from each independently parsed serde_json::Value and rejects a missing or non-array field; it does not expose a stale length view.
- The nightly orchestration and workflow have not been proven end to end on a hosted runner.
- Model proof intent was rejected by deterministic validation.
- No hosted end-to-end witness is available for the new nightly orchestration, leaving residual integration risk despite no local UB defect.
EffortlessSteven
left a comment
There was a problem hiding this comment.
Independent review (fresh-context reviewer, head dbe5b3b): REPAIR_REQUIRED - the required Rust lane is red on this head for two repository-policy violations that this PR itself introduces, and the base is green for the same lane, so the red is attributable here.
Inspected:
- Head re-read immediately before posting via
gh pr view 10496 --json headRefOid:dbe5b3bf1f5ab6c4ba29c8e14f521e79be24be9d, base25109806952148bd55547841122f169bc7f57340, state OPEN, isDraft false, branchcodex/size-scaling-warm-ab. - Prior coverage state: of the 15 existing
EffortlessStevenreview records on this PR, 10 are bound to this head and ALL 10 have empty bodies, so no prior review body carries a disposition, the four required sections or the head footer for this head. The four reviews that do carry bodies are bound to older heads. This is the first substantive review fordbe5b3bf. - Whole PR diff via
pulls/10496/files?per_page=100(14 paths) and head source viacontents/...?ref=dbe5b3bfforpolicy/workflow_allowlist.txt,policy/ci-lane-whitelist.toml,policy/no-panic-allowlist.toml,xtask/src/command.rs,xtask/src/dispatch.rs,xtask/src/main.rs,xtask/src/warm_ab/tests.rsand.github/workflows/size-scaling.yml. - Hosted state at this head: run
Merge-ready request dbe5b3bf...id 41060904744, conclusion failure. The jobRipr Rust Small on GitHub Hosted / Rust gatesfailed at stepRepository policy preflight(thecargo xtask ci-policystep, 13:13:48Z) and every later substantive step was skipped. The check runRipr Rust Small Resultisfailure. An earlier merge-ready run for the same head (41060829354) wascancelledby the superseding push and is not treated as a defect; the terminal run for this head is the failure. - Attribution confirmed, not assumed: the base
25109806carriesRipr Rust Small Result= success ANDRipr Rust Small on GitHub Hosted / Rust gates= success. The same lane is green at the base and red at this head, so the red is attributable to this PR rather than to a pre-existing base condition. The failure is a substantive step failure, not a post-job cache-save cancellation, so runner infrastructure does not explain it. - Failure detail read from the run log (
gh run view 41060904744 --log-failed): two violations, reported at 13:14:19Z -xtask/src/warm_ab/tests.rs:219:27 contains unallowed panic-family 'panic_macro'; add exact allowlist entry with explanationandpolicy/workflow_allowlist.txt:44 prohibited static-language term 'killed' in '.github/workflows/size-scaling.yml|3|Nightly hostile-input size gate (#10362)...' - this gate scans all tracked prose, not just analyzer output. In comments or docs, use a plain synonym (e.g. removed/terminated). To intentionally allow this line, append 'ripr-allow: static-language: <reason>'. - Matcher semantics confirmed in source rather than assumed:
forbidden_static_terms()inxtask/src/main.rsreturns["killed", "survived", "untested", "proven", "adequate"], and the gate matches throughcontains_wordinxtask/src/no_panic.rs:205, which requires a non-word character on BOTH sides of the term - a hyphen counts as non-word, which is whykilled-runmatches whileprovenanceandunprovendo not. I independently scanned every added line of all five PRs I reviewed with that exact word-boundary rule:policy/workflow_allowlist.txt:44is the ONLY prohibited-term instance anywhere in this PR's diff, and the only panic-family instance in the PR's added lines is thepanic!atxtask/src/warm_ab/tests.rs:219. - The panic gate is semantic, not textual: it parses Rust with
ra_ap_syntaxand reports a realpanic_macromacro invocation with a column, so this is a genuine macro call and not a string literal that merely contains the word. policy/no-panic-allowlist.tomlread: it is the canonical schema 0.3 allowlist consumed bycargo xtask check-no-panic-family, each entry carryingid,path,family,classification,explanation,ownerandexpires. It contains no entry forxtask/src/warm_ab/orxtask/src/warm_ab/tests.rs, so the new file has no exception.- The new workflow read in full.
.github/workflows/size-scaling.ymldeclaresname: Size Scaling, triggers only onworkflow_dispatchandschedule: cron "41 7 * * *",permissions: contents: read, aconcurrencygroup ofsize-scaling-${{ github.ref }}-${{ github.event_name }}withcancel-in-progress: true, and two jobs:size-scaling(timeout 150 min) that builds the release binary and then runscargo xtask size-scaling --binary target/release/ripr --base-kib 512after clearing the previous run's scratch directory, andwarm-ab(timeout 200 min) that runscargo xtask warm-ab --baseline-ref "$INPUT_BASELINE" --candidate-ref "$INPUT_CANDIDATE" --pins xtask-tests=a58975de,product-rust=af8136f7after clearing its own scratch directory. Both upload their reports withif: always(). - Pins verified to resolve at this head:
xtask-tests=a58975de->a58975de7bf239a12ee3a86de7f56a84dbce26ed(2026-10-26, "Let new specs register their index row as a per-PR fragment (#10550)") andproduct-rust=af8136f7->af8136f7f6074a3c1199954725d29daf06a08753(2026-10-26, "fix(syntax): inner-loop breaks, while true and aliased process exits end the test before assertions (#8983) (#10489)"). Both are fixed commits whose trees and diffs do not drift with main. check-workflows: passandcheck-agent-skills: passwere reported by the same preflight, so the new workflow file itself satisfies the workflow policy gate; the two failures are in the prose and panic-family gates, not in the workflow shape.- Command surface read:
xtask/src/command.rsaddsXtaskCommand::WarmAb(Vec<String>), the"warm-ab"name arm, theknown_commands()line"warm-ab --baseline <path> --candidate <path> --tree <dir> --diff <file>", and acommand_catalog()entry;xtask/src/dispatch.rsroutes it tosuper::warm_ab::run(&args);xtask/src/main.rsdeclaresmod warm_ab;.command_entryhas the signature(command, mutability, writes, judgment_required: bool, ci_enforced: bool, notes)atxtask/src/command.rs:2682-2688. policy/ci-lane-whitelist.tomlregisters asize-scalingartifact family and awarm-abartifact family, and a lanesize-scalingwithposture = "advisory",workflow = ".github/workflows/size-scaling.yml",jobs = ["size-scaling", "warm-ab"], the exact command list the workflow runs,estimated_lem = 60andartifact_families = ["size-scaling", "warm-ab"]. The file's own header statespolicy_state = "advisory-ledger",enforcement = "none"and that it "does not change GitHub Actions behavior by itself".docs/SIZE_SCALING.mdread for the added sections: it states the lane is "not part of the required PR workflow", documents the warm-check failure conditions (candidate median above--max-ratiodefault 1.5 times the baseline AND over a 2 s noise floor, above--ceiling-secsdefault 300, a timeout, a signal, an exit code other than 0 or 1, a non-JSON report or a report with nofindingsarray, and "either binary reports no finding in any measured check ... A one-sided empty report fails even when the other side still finds something"), and states that a difference between the two findings reports is reported, not failed, because the two are different builds.
Blocking:
check-static-languagefails on this PR's own added line.policy/workflow_allowlist.txt:44is the row this PR adds for the new workflow, and its description contains the prohibited termkilled("... the warm-ab job adds one run block in which an rm -rf reclaim of killed-run workspaces precedes one cargo xtask warm-ab command ..."). The gate scans all tracked prose, and the violation is reported atpolicy/workflow_allowlist.txt:44. The workflow's own comments already use the neutral wording ("A run terminated at the timeout or cancelled by the concurrency group ..."), so the allowlist prose is the outlier. The gate's own instruction gives the remedy: use a plain synonym such as "removed" or "terminated", or appendripr-allow: static-language: <reason>to that line if the wording is intended. I confirmed by word-boundary scan that this is the only prohibited-term instance in the PR's diff, so the fix is a one-line wording change.check-no-panic-familyfails on this PR's new file.xtask/src/warm_ab/tests.rs:219:27isOk(packet) => panic!("missing candidate findings accepted: {}", packet.detail), a realpanic_macroinvocation.policy/no-panic-allowlist.tomlhas no entry forxtask/src/warm_ab/tests.rs(the file is new in this PR), and the gate requires an exact allowlist entry with an explanation. The check is semantic, so this is not a false positive from textual matching. Either add the exact entry with an owner, classification, explanation and expiry, or rewrite the assertion to use the module's existingResult-returning style, which the surrounding tests already use.
Non-blocking:
- Enforcement language differs between two surfaces that describe the same lane. This PR flips the
size-scalingcommand's catalog flag fromci_enforced: falsetotrue(the fifth parameter ofcommand_entry) and registers the newwarm-abentry asci_enforced: true, whilepolicy/ci-lane-whitelist.tomlregisters the same lane withposture = "advisory"and the file declaresenforcement = "none", and the changelog says the lane keeps the report "without adding a step to the required workflow". Ifci_enforcedmeans "some CI lane enforces this command's verdict", then true is accurate, because both nightly jobs fail their job on a bad verdict; if it means "a required PR check enforces it", then true overstates the lane. The catalog is a machine-readable claim surface, so the two should be reconciled rather than left to interpretation. - The machine-readable command surface does not show the form the workflow actually uses.
known_commands()andcommand_catalog()advertise onlywarm-ab --baseline <path> --candidate <path> --tree <dir> --diff <file>, and the doc's usage line shows that same single-diff form plus--pin <id>; the nightly invokes the multi-pin form--baseline-ref <ref> --candidate-ref <ref> --pins <id=commit,...>. The doc's prose does mention the nightly form, so this is a catalog gap rather than a contradiction, butcargo xtask help --allwill not show the invocation the scheduled lane depends on. - The
warm-abA/B design is conservative in the right direction and worth recording: it fails when either side reports no finding, so a one-sided empty report fails even when the other side still finds something; it applies a 2 s noise floor alongside the 1.5x ratio so a drifting runner does not produce a false regression; it treats a byte-difference between the two findings reports as reported-not-failed, because the two sides are different builds; and it states plainly that the measurement is wall time only, with no peak-memory claim. - The lane is correctly kept outside the required PR workflow: the workflow triggers only on a schedule and manual dispatch, its
permissionsarecontents: read, checkout usespersist-credentials: false, and third-party actions are pinned by commit SHA.check-workflowspassed on it. - The
concurrencygroup includesgithub.event_name, so a manual dispatch cannot cancel the nightly mid-measurement as the comment claims. The scratch-reclaim steps run before each measurement, which is consistent with the workflow comment that a run terminated at the timeout or cancelled by the concurrency group never reaches the command's own cleanup. estimated_lem = 60on the lane entry is below the workflow's own stated worst case (99 minutes for size-scaling plus 160 minutes for warm-ab, against 150- and 200-minute job timeouts). The ledger is declared advisory and non-enforcing, so this is a forecast-quality note rather than a defect.
Not run:
- No local Rust toolchain on this host:
cargo/rustcare absent from PATH, so build and test execution could not be performed locally; all Rust proof below is hosted CI plus source reading. - The hosted lane failed at
Repository policy preflight, so the substantive Rust steps never ran: Required Rust tests, Golden output contracts, Fixture contracts, Verdict corpora, doctests, PR evidence, the schema producer sweep and the base-still-merges check were all skipped. There is therefore no hosted compile, test, clippy or golden proof for this candidate, independent of the two failures above. - The new
xtask warm-abimplementation was not executed. Its 473-line module, its 143-line judge, its 224-line nightly driver and its 223-line test module were reviewed by reading only; the A/B timing semantics, the ratio-plus-noise-floor verdict and the zero-subject refusals are unexecuted here. - I did not determine whether
cargo xtask ci-policyreports every violation in its bundle or stops after the first per checker. My independent scan of the PR's added lines for the forbidden term set and for panic-family calls found exactly the two reported instances and no others, but other checks in that bundle remain unobserved at this head. - The
warm-abpins were checked for existence and tree identity only; neither pinned tree was checked out, built or timed.
Reviewed by an independent Mavis review agent on behalf of the maintainer; bound to head dbe5b3bf1f5ab6c4ba29c8e14f521e79be24be9d.
…ze-scaling gate Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01YVdGzSiDdMNjK7Lxr7u3ZT
There was a problem hiding this comment.
Verification questions
- Confirm the principal warm-ab orchestration path lacks a changed end-to-end hosted-run witness; unit and stub tests do not exercise checkout, ref resolution, worktrees, release builds, per-pin diffs, or artifact upload.
- Confirm the public xtask route reaches the nightly implementation through command parsing and dispatch, then invokes warm_ab::run; nightly --pins creates baseline/candidate worktrees, builds release binaries, creates each pinned diff, and calls report per pin.
- Confirm the new --pins orchestration has no changed end-to-end red/green test.
- Confirm the nightly command uses abbreviated pin revisions, but the workflow does not explicitly fetch those revisions' complete ancestry.
- Confirm the process-to-report tests cover one-sided empty findings, both-empty findings, healthy output, and malformed output, but do not cover a JavaScript-style worker or transfer lifecycle.
- Confirm the workflow's end-to-end orchestration has no changed red/green test; current tests cover judge logic, argument parsing, and local stub processes but not nightly refs, worktrees, builds, and diffs.
Refuted
- The changed Rust implementation contains no JavaScript, worker, async, GC, detach, transfer, FFI, raw-pointer, or native ownership crossing.
Evidence gaps
- No changed red/green test executes the workflow's checkout, build, cleanup, command, timeout, or artifact-upload behavior.
- The workflow exposes only one warm-ab command route and registers the expected report families; workflow lint passed, but zizmor evidence is unavailable.
- Model proof intent was rejected by deterministic validation.
- The changed workflow has no hosted-run behavioral oracle in the changed test suite.
- End-to-end hosted behavior of the workflow and pinned orchestration remains unverified in this lane.
There was a problem hiding this comment.
Verification questions
- Confirm the nightly warm-A/B workspace is not covered by the size-scaling lane's cache/scratch lease, so it may run concurrently with another lane that reclaims the same target subtree.
- Confirm the public --pins route has no changed red/green test exercising ref resolution, worktrees, release builds, per-pin diffs, and report generation.
- Confirm the warm-A/B orchestration has unit and stub-process coverage but no changed red/green test for ref resolution, two worktree release builds, pin diff creation, per-pin reports, or artifact-producing workflow behavior.
- Confirm the changed tests cover the repaired one-sided-empty and malformed-report acceptance boundaries, but do not cover the --pins orchestration end to end.
Refuted
- The warm-ab implementation introduces an unsafe/native memory-lifetime or ownership path.; refuted because: The changed Rust uses scoped owned PathBuf, String, Vec, serde values, copied byte buffers, and child-process status/output types. It adds no unsafe block, FFI, raw pointer, native handle, callback lifetime, aliasing, transfer, detach, or resize operation.
- The warm-ab implementation introduces unsafe or native ownership/lifetime handling requiring a worker-handoff review.; refuted because: The changed code copies binaries, creates owned paths, invokes child processes synchronously, and parses owned output without unsafe code or FFI.
- The CLI registration could expose a different implementation than the reviewed warm-ab route.; refuted because: XtaskCommand::WarmAb is parsed from warm-ab and dispatched directly to super::warm_ab::run; run selects nightly::run only when --pins is present, otherwise report/build_packet.
- The changed implementation may expose a stale active-view length after buffer resize, detach, or transfer.; refuted because: The path has no JavaScript runtime, ArrayBuffer/TypedArray, worker handoff, detach, transfer, resize, aliasing, or native-pointer surface. Captured stdout is an owned byte buffer parsed into an independent serde_json::Value, and timing samples are owned vectors.
- A crafted pin could execute arbitrary shell commands or smuggle a git option.; refuted because: Pin IDs and revisions have restrictive character sets; duplicate IDs are rejected; git invocations use argv and do not interpolate text into a shell command.
Evidence gaps
- No changed end-to-end hosted-run receipt proves checkout ancestry, pinned worktrees, release builds, artifact publication, and both reports together.
- The workflow's hosted-run behavior has no changed red/green oracle; no test proves the command is reached with both pins and that both per-pin reports are uploaded.
- Model proof intent was rejected by deterministic validation.
EffortlessSteven
left a comment
There was a problem hiding this comment.
Exact-head static review of 0907424 (no cargo run). No blocking findings.
Inspected:
- Workflow:
size-scaling.ymlis a nightly plus dispatch lane withcontents: read, no PR trigger, and separate concurrency groups per event. Run blocks match the allowlist count of 3 and the ci-lane-whitelist entry. Blank dispatch inputs become empty strings andPlan::newdrops them. - Pins: both pinned commits (a58975d, af8136f) are ancestors of main. Their diffs match the doc shapes. The job uses
fetch-depth: 0, so the 24-hour baseline lookup works. warm-ablogic: ratio, noise floor and ceiling are enforced. Positive findings are required on each side for every cold and warm check. A missingfindingsarray is rejected rather than counted as zero. A timeout, a signal or an exit code other than 0 or 1 fails the check. Pin ids and commits are validated before they reach git. Worktrees are cleaned up.- Tests cover the judge (including a 2x slowdown), one-sided zero findings on each side, a malformed report, and pin parsing.
- Changelog, SIZE_SCALING.md and the roadmap row are present.
Minor, non-blocking:
- The
known_commandsand catalog usage string forwarm-abdocuments only the single-pin form (--baseline ... --tree ... --diff). The workflow uses--baseline-ref/--candidate-ref/--pins, so the catalog should mention it. - The default baseline is the newest first-parent commit at least 24 hours old. The doc already discloses the one-night detection window.
- Hosted Rust gates are red on this head. The failing step is the main-wide user-text golden ceiling (
discriminator3278 against a ceiling of 3274), which this PR does not touch. Thewarm-abjob and the nightly size-scaling job are not exercised by PR CI. The negative-control evidence in the doc is a local run.
Generated by Claude Code
Summary
.github/workflows/size-scaling.yml: a nightly (and on-demand) advisory workflow with two jobs, neither in the required PR workflow.size-scaling: builds the releaseriprand runscargo xtask size-scaling --binary target/release/ripr --base-kib 512(gate: size-scaling probe per language, role and shape (doubling ratio), so a quadratic term fails CI #10362); the report is thesize-scalingartifact, whose series is the trend.warm-ab(No gate caught a 2x warm-check regression on ripr's own repository (#10489 to #10630) #10639):cargo xtask warm-ab --baseline-ref … --candidate-ref … --pins xtask-tests=a58975de,product-rust=af8136f7builds a baseline (newest first-parent commit at least 24 h older, orbaseline_ref) and a candidate release binary, makes a worktree and diff per pinned commit, and times a warmripr checkof each pinned diff with both binaries on one runner (own cache each, alternating runs). Fails when the candidate median is over 1.5x the baseline's and over a 2 s noise floor, over a 300 s ceiling, or when nothing was analyzed. Reports whether the two findings reports are byte-identical.policy/ci-lane-whitelist.tomlandpolicy/workflow_allowlist.txt, addswarm-abto the command catalog, documents it indocs/SIZE_SCALING.mdand the scoreboard row.Swarm / Source Boundary
Source-of-truth Links
Governing issue or accepted claim: #10362 (gate in CI against a release binary) and #10639 (no gate caught the 2x warm-check regression of #10489)
Acceptance delta (one sentence): A nightly job fails when a candidate build's warm check of a pinned ripr-on-ripr diff costs more than 1.5x a baseline build on the same runner, with a demonstrated negative control.
Verification
a58975deand3fa4ad28= Read a file's std::process imports once per file, not once per test #10638's head, 4 cores, 3 warm runs interleaved, pina58975detwo-xtask-file diff): the pre-fix build as candidate FAILED at 2.17x (medians 24.4 s baseline, 52.9 s candidate); with roles swapped the fixed build PASSED at 0.46x. Findings reports byte-identical across the two builds.cargo test -p xtask warm_ab(judge on the fix(syntax): inner-loop breaks, while true and aliased process exits end the test before assertions (#8983) #10489 shape, noise floor, ceiling, empty samples, pin parsing and unsafe-text rejection),cargo xtask precommitpass.--pinsorchestration (worktrees, two release builds, per-pin diff) and the workflow have not run end to end on a hosted runner (first exercised byworkflow_dispatchor the first nightly;baseline_ref/candidate_refallow running the negative control there). Wall time only; peak memory is not measured. Two pins do not cover other shapes of change.Generated by Claude Code