Skip to content

ci: nightly size-scaling gate and same-run warm-check A/B on pinned ripr diffs - #10496

Merged
EffortlessSteven merged 16 commits into
mainfrom
claude/size-scaling-nightly-10362
Oct 31, 2026
Merged

EffortlessSteven merged 16 commits into
mainfrom
claude/size-scaling-nightly-10362

Conversation

@EffortlessSteven

@EffortlessSteven EffortlessSteven commented Oct 25, 2026 •

Copy link
Copy Markdown
Member

Summary

  • Adds .github/workflows/size-scaling.yml: a nightly (and on-demand) advisory workflow with two jobs, neither in the required PR workflow.
  • Registers both jobs in policy/ci-lane-whitelist.toml and policy/workflow_allowlist.txt, adds warm-ab to the command catalog, documents it in docs/SIZE_SCALING.md and the scoreboard row.

Swarm / Source Boundary

  • swarm-only CI, runner, routing, source-of-truth, or agent-operating surface

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

  • Negative control, run locally (release builds of a58975de and 3fa4ad28 = Read a file's std::process imports once per file, not once per test #10638's head, 4 cores, 3 warm runs interleaved, pin a58975de two-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 precommit pass.
  • Not covered: the --pins orchestration (worktrees, two release builds, per-pin diff) and the workflow have not run end to end on a hosted runner (first exercised by workflow_dispatch or the first nightly; baseline_ref/candidate_ref allow 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

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
@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 25, 2026 •

Copy link
Copy Markdown

Review in Change Stack →

Warning

Review limit reached

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

  • Ask an admin to enable usage-based reviews

Open in CodeRabbit

Reviews can continue after your included limit without a manual trigger. An admin must approve usage-based billing.

Next included review available in 50 minutes.

Check out review usage here.

View limit details

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

Learn how review limits work.

Review configuration:

Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: ASSERTIVE
  • Plan: Essentials
  • Run ID: 74f9b6c5-a1b0-4e0a-9ee0-ebb0e0455981
Commits

Reviewing files that changed from the base of the PR and between 1e58d50 and cd75038.

Files selected for processing: 14
  • .github/workflows/size-scaling.yml
  • changelog.d/10362-size-scaling-nightly.md
  • changelog.d/10639-warm-ab-nightly.md
  • docs/SIZE_SCALING.md
  • docs/roadmap/experience.md
  • policy/ci-lane-whitelist.toml
  • policy/workflow_allowlist.txt
  • xtask/src/command.rs
  • xtask/src/dispatch.rs
  • xtask/src/main.rs
  • xtask/src/warm_ab/judge.rs
  • xtask/src/warm_ab/mod.rs
  • xtask/src/warm_ab/nightly.rs
  • xtask/src/warm_ab/tests.rs

No actionable comments were generated in the recent review.

Recent review info
Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: ASSERTIVE
  • Plan: Essentials
  • Run ID: 908ba359-0bf5-477e-9a66-5d441446f04d
Commits

Reviewing files that changed from the base of the PR and between 1459aa1 and 1e58d50.

Files selected for processing: 7
  • .github/workflows/size-scaling.yml
  • changelog.d/10362-size-scaling-nightly.md
  • docs/SIZE_SCALING.md
  • docs/roadmap/experience.md
  • policy/ci-lane-whitelist.toml
  • policy/workflow_allowlist.txt
  • xtask/src/command.rs

Included review availability: This review used your included allowance. 0 included reviews remain after this review. Your included PR review attempts over the past 7 days set your current allowance at 1 review per hour.

Summary by CodeRabbit

  • New Features

    • Added a nightly advisory check that evaluates performance as input sizes grow and saves a report for review. The check is not part of required pull-request workflows.
  • Documentation

    • Updated guidance to describe the nightly check, its report, and the tested input sizes. The documentation also clarifies that memory usage is not measured.

Walkthrough

Adds a nightly and manually triggered advisory workflow that builds the release ripr binary, runs size scaling with a 512 KiB base, and uploads reports. Policy, command metadata, documentation, and the changelog now describe the workflow and its lane.

Changes

Size-scaling CI lane

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
Loading

Possibly related issues

Merge Risk: Minimal · previous review 1e58d

No merge-blocking risk is established by the reviewed changes.

Pre-merge checks: Passed 3 · Failed 2

Failed Failed checks: 2 warnings

Check name Status Explanation Resolution
Docstring Coverage Warning 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 … Write docstrings for the functions missing them to satisfy the coverage threshold.
Description check Warning 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, P… 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, …
Passed Passed checks: 3 passed
Check name Status Explanation
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Title check Passed The title clearly identifies both primary changes: the nightly size-scaling gate and the warm-check A/B comparison on pinned diffs.
Full 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.

@devin-ai-integration devin-ai-integration 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.

Devin Review found 1 potential issue.

Devin Review

Comment thread .github/workflows/size-scaling.yml Resolved

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Verification questions

  • Confirm 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.

Copy link
Copy Markdown
Member Author

Ripr Rust Small failed on head 54a3cf9 in loop_count_guard::tests::binding_names_skip_defaults_and_keys (2 s wall-clock bound, "(a, (" reduction is not bounded). This PR touches no Rust analysis code (workflow, policy, one catalog flag, docs), and the failure is the known load-sensitive flake tracked in #10483 (same failure on #10478). Not fixing it here; re-applied merge-ready to re-run on the same head.


Generated by Claude Code

Copy link
Copy Markdown
Member Author

Required run 40286986436 failed on analysis::language::typescript::loop_count_guard::tests::binding_names_skip_defaults_and_keys, a timing-bound test in TypeScript code this workflow-only PR does not touch (tracked in #10483; #10493 changed the bound on main). I re-ran the failed jobs once. If it fails again I will treat the cause as real and merge current main into this branch before deciding.


Generated by Claude Code

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

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

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 both size-scaling.json and size-scaling.md before returning Err naming the failed cells (mod.rs:89-113), so the if: always() upload genuinely keeps failing runs' reports as the trend artifact.
  • Workflow hardening matches the sibling nightly dx-scoreboard.yml exactly: permissions: contents: read, persist-credentials: false, no secrets, no pull_request_target, both third-party actions pinned to immutable 40-char SHAs, same concurrency pattern and if-no-files-found: warn upload.
  • The xtask/src/command.rs flip 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 precedent dx-scoreboard is also ci_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.toml entry mirrors the dx-scoreboard schema; the two lane command strings match the workflow run blocks byte-for-byte. policy/workflow_allowlist.txt budget |2| matches the checker's per-workflow max_non_empty_lines semantics (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_packet refuses non-Unix hosts (mod.rs:183), consistent with ubuntu-latest.
  • Governing issue #10362 is open with a matching title; changelog.d/10362-size-scaling-nightly.md follows the <issue>-<slug>.md convention; 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.md at head 54a3cf93; 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-catalog and precommit pass 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_dispatch or 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.

Comment thread .github/workflows/size-scaling.yml Resolved

Copy link
Copy Markdown
Member Author

Root cause of the earlier failure: the run's merge tree predated #10493 (its panic message "(a, (" reduction is not bounded has no 10k/20k timings, which main's rewritten test prints), so it was the old 2 s wall-clock bound from #10483, not a new failure. I merged current main (1e58d50, clean merge, precommit green) and re-applied merge-ready so a required run executes against a tree that carries #10493.


Generated by Claude Code

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Verification questions

  • Confirm 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.

… 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
@EffortlessSteven
EffortlessSteven marked this pull request as ready for review October 30, 2026 13:08

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Verification questions

  • Confirm 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 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.

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, base 25109806952148bd55547841122f169bc7f57340, state OPEN, isDraft false, branch codex/size-scaling-warm-ab.
  • Prior coverage state: of the 15 existing EffortlessSteven review 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 for dbe5b3bf.
  • Whole PR diff via pulls/10496/files?per_page=100 (14 paths) and head source via contents/...?ref=dbe5b3bf for policy/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.rs and .github/workflows/size-scaling.yml.
  • Hosted state at this head: run Merge-ready request dbe5b3bf... id 41060904744, conclusion failure. The job Ripr Rust Small on GitHub Hosted / Rust gates failed at step Repository policy preflight (the cargo xtask ci-policy step, 13:13:48Z) and every later substantive step was skipped. The check run Ripr Rust Small Result is failure. An earlier merge-ready run for the same head (41060829354) was cancelled by 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 25109806 carries Ripr Rust Small Result = success AND Ripr 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 explanation and policy/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() in xtask/src/main.rs returns ["killed", "survived", "untested", "proven", "adequate"], and the gate matches through contains_word in xtask/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 why killed-run matches while provenance and unproven do not. I independently scanned every added line of all five PRs I reviewed with that exact word-boundary rule: policy/workflow_allowlist.txt:44 is the ONLY prohibited-term instance anywhere in this PR's diff, and the only panic-family instance in the PR's added lines is the panic! at xtask/src/warm_ab/tests.rs:219.
  • The panic gate is semantic, not textual: it parses Rust with ra_ap_syntax and reports a real panic_macro macro 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.toml read: it is the canonical schema 0.3 allowlist consumed by cargo xtask check-no-panic-family, each entry carrying id, path, family, classification, explanation, owner and expires. It contains no entry for xtask/src/warm_ab/ or xtask/src/warm_ab/tests.rs, so the new file has no exception.
  • The new workflow read in full. .github/workflows/size-scaling.yml declares name: Size Scaling, triggers only on workflow_dispatch and schedule: cron "41 7 * * *", permissions: contents: read, a concurrency group of size-scaling-${{ github.ref }}-${{ github.event_name }} with cancel-in-progress: true, and two jobs: size-scaling (timeout 150 min) that builds the release binary and then runs cargo xtask size-scaling --binary target/release/ripr --base-kib 512 after clearing the previous run's scratch directory, and warm-ab (timeout 200 min) that runs cargo xtask warm-ab --baseline-ref "$INPUT_BASELINE" --candidate-ref "$INPUT_CANDIDATE" --pins xtask-tests=a58975de,product-rust=af8136f7 after clearing its own scratch directory. Both upload their reports with if: 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)") and product-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: pass and check-agent-skills: pass were 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.rs adds XtaskCommand::WarmAb(Vec<String>), the "warm-ab" name arm, the known_commands() line "warm-ab --baseline <path> --candidate <path> --tree <dir> --diff <file>", and a command_catalog() entry; xtask/src/dispatch.rs routes it to super::warm_ab::run(&args); xtask/src/main.rs declares mod warm_ab;. command_entry has the signature (command, mutability, writes, judgment_required: bool, ci_enforced: bool, notes) at xtask/src/command.rs:2682-2688.
  • policy/ci-lane-whitelist.toml registers a size-scaling artifact family and a warm-ab artifact family, and a lane size-scaling with posture = "advisory", workflow = ".github/workflows/size-scaling.yml", jobs = ["size-scaling", "warm-ab"], the exact command list the workflow runs, estimated_lem = 60 and artifact_families = ["size-scaling", "warm-ab"]. The file's own header states policy_state = "advisory-ledger", enforcement = "none" and that it "does not change GitHub Actions behavior by itself".
  • docs/SIZE_SCALING.md read 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-ratio default 1.5 times the baseline AND over a 2 s noise floor, above --ceiling-secs default 300, a timeout, a signal, an exit code other than 0 or 1, a non-JSON report or a report with no findings array, 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-language fails on this PR's own added line. policy/workflow_allowlist.txt:44 is the row this PR adds for the new workflow, and its description contains the prohibited term killed ("... 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 at policy/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 append ripr-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-family fails on this PR's new file. xtask/src/warm_ab/tests.rs:219:27 is Ok(packet) => panic!("missing candidate findings accepted: {}", packet.detail), a real panic_macro invocation. policy/no-panic-allowlist.toml has no entry for xtask/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 existing Result-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-scaling command's catalog flag from ci_enforced: false to true (the fifth parameter of command_entry) and registers the new warm-ab entry as ci_enforced: true, while policy/ci-lane-whitelist.toml registers the same lane with posture = "advisory" and the file declares enforcement = "none", and the changelog says the lane keeps the report "without adding a step to the required workflow". If ci_enforced means "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() and command_catalog() advertise only warm-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, but cargo xtask help --all will not show the invocation the scheduled lane depends on.
  • The warm-ab A/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 permissions are contents: read, checkout uses persist-credentials: false, and third-party actions are pinned by commit SHA. check-workflows passed on it.
  • The concurrency group includes github.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 = 60 on 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/rustc are 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-ab implementation 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-policy reports 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-ab pins 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

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Verification questions

  • Confirm 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.

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Verification questions

  • Confirm 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 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.

Exact-head static review of 0907424 (no cargo run). No blocking findings.

Inspected:

  • Workflow: size-scaling.yml is a nightly plus dispatch lane with contents: 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 and Plan::new drops 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-ab logic: ratio, noise floor and ceiling are enforced. Positive findings are required on each side for every cold and warm check. A missing findings array 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_commands and catalog usage string for warm-ab documents 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 (discriminator 3278 against a ceiling of 3274), which this PR does not touch. The warm-ab job 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

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants