Repository navigation
feat(docs): generated public proof page with scoreboard receipts and a staleness check - #5405
Conversation
…a staleness check docs/PUBLIC_PROOF.md is rendered by cargo xtask public-proof from receipts in metrics/public-proof/ and the pinned corpus manifest. It lists every scoreboard bar with its target and trend, mutation agreement per verdict class, verdict corpus rates, speed and memory per corpus repo, first-run results, and a computed list of where ripr falls short. --check, and an xtask unit test the required gate runs, fail when the page or a receipt is stale. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_015fdpmsrqPekHXNdotps9HA
|
Navigate logical layers of code changes, visualize relationships, and explore their blast radius. Note Reviews pausedIt looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the Use the following commands to manage reviews:
Use the checkboxes below for quick actions:
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configuration
📒 Files selected for processing (1)
🔗 Linked repositories identifiedCodeRabbit considers these linked repositories for cross-repo context during reviews:
Limit details: You’ve used all 10 included reviews currently available. Summary by CodeRabbit
WalkthroughThis change adds committed proof receipts, a generated public report, and an ChangesPublic proof report
Priority: ⬇️ Low Estimated code review effort: 4 (Complex) | ~60 minutes Change: Feature Sequence Diagram(s)sequenceDiagram
participant CLI as xtask CLI
participant Run as public_proof::run
participant Sources as canonical sources
participant Receipts as committed receipts
participant Page as docs/PUBLIC_PROOF.md
CLI->>Run: pass public-proof arguments
Run->>Sources: read sources in refresh or check mode
Sources->>Receipts: copy source data in refresh mode
Run->>Receipts: load receipt JSON
Run->>Page: render Markdown or compare page in check mode
Merge Risk: ⚪ Minimal · up to The 0.97-second figure is presented as a standalone install measurement, not as generated-workflow CI time. No concrete merge-blocking issue remains in the reviewed changes. Architecture SummaryArchitecture risk: 🔵 Low · up to The change affects 5 systems. Changed systems: Architecture concerns Review detailsSystems and components
Before / after behavior
🚥 Pre-merge checks | ✅ 3 | ❌ 2❌ Failed checks (2 warnings)
✅ Passed checks (3 passed)
Full details: Docstring CoverageExplanation Docstring coverage is 20.90% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 67 functions across 3 files. (1 skipped: 1 unsupported.) Full details: Description checkExplanation The description gives a useful summary, implementation details, limitations, and local test results. However, it omits many substantial sections required by the repository template, including source-of-truth links, candidate relationships, scope classification, impact notes, rollback, traceability, and engineering and gate results. It also conflicts with the objectives summary on the reported number of correctly tested changes classified as gaps. Resolution Complete the missing template sections. Record source-of-truth links and candidate relationships, scope and non-goals, support-tier and policy impact, claim boundary, rollback, spec-test-code traceability, engineering checks, and applicable gate results. Use n/a for CI economics if the change does not affect CI behavior. Reconcile the gap counts so the description and PR summary report consistent figures. ✨ Finishing Touches🧪 Generate unit tests (beta)
A rabbit reads the proof receipts at dawn Comment |
The prebuilt-install timing now fills the ci.install_seconds bar and its evidence line is shown in the first-run section. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_015fdpmsrqPekHXNdotps9HA
…ument dependent Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_015fdpmsrqPekHXNdotps9HA
…s not the generated workflow Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_015fdpmsrqPekHXNdotps9HA
…ce exists Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_015fdpmsrqPekHXNdotps9HA
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_015fdpmsrqPekHXNdotps9HA
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_015fdpmsrqPekHXNdotps9HA
Missing receipt fields are errors, not zeros; a missing canonical source is an error; the Reproduce section no longer names a command that is not on main. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_015fdpmsrqPekHXNdotps9HA
|
Heads-up: #5442 merged at 62fb7aa and changed Generated by Claude Code |
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_015fdpmsrqPekHXNdotps9HA
The required unit test now checks the page against its receipts alone. The corpus manifest becomes a receipt, and drift from canonical sources is reported by public-proof --check, not by required CI. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_015fdpmsrqPekHXNdotps9HA
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_015fdpmsrqPekHXNdotps9HA
|
Warning You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again! |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 0d0fdca04b
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
Pull request was converted to draft
…e the bar and shortfalls Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_015fdpmsrqPekHXNdotps9HA
|
Warning You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again! |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 403623aedd
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
…ublic proof page Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_015fdpmsrqPekHXNdotps9HA
Pull request was converted to draft
|
Warning You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again! |
There was a problem hiding this comment.
Decision
- Needs reviewer attention before upstream: findings remain.
Confirmed findings
- This diff is a docs/JSON generator wired through xtask subcommand plumbing; it does not touch memory ownership or buffer views. The active-view/resizable-buffer class of UB concern is not present in any changed line, and the strongest tested hypothesis (
Pagealiased across borrows) was refuted by the&mut selfsignatures onPage::lineandPage::table.
Verification questions
- Confirm no test pins that the rendered public-proof page fails
--checkwhen a receipt is edited in place; missing_canonical_source covers the source-side path but the page-vs-receipts divergence is only checked once in stale_page_is_reported with a hand-typed string, not a real receipt edit. Coverage is thin but not absent.
Refuted
- A resizable/active buffer or TypedArray is created and then read or written through a stale length snapshot, producing UB.; refuted because: The diff only defines
Page(String)with&mut selfmethods; noVec/slice/Box<[T]>/TypedArray is reallocated while a borrow into it is live.serde_json::from_slice(&bytes)is consumed in one call andbytesis dropped before the returnedValueis shared.unsafe-reviewconfirms zero new unsafe regions. - No JS, worker, postMessage, transferable, detach, or async-runtime surface was added or modified; the PR is Rust xtask + committed JSON receipts + generated Markdown.
- A receipt loaded with serde_json::from_slice could detach or alias bytes across a worker boundary.; refuted because: Receipts are read synchronously on the calling thread via fs::read + serde_json::from_slice into owned serde_json::Value; no shared memory, no transferable, no detached buffer is produced. The objection does not apply to this Rust xtask.
- Receipt parse path could fail by allocating Box<[u8]> and returning None on OOM, silently swallowing a critical render path.; refuted because: Out of scope per calibration; current diff and seeded thread raise no allocation-failure objection. Allocation failure on read_bytes would not return None: fs::read already returns Result<Vec, io::Error>, and the receipt maps are deserialized via serde_json::from_slice, both of which propagate errors.
- serde_json::from_slice on committed receipts could be a denial-of-service or memory-safety primitive via deep nesting or huge numeric tokens.; refuted because: Receipts are committed files in the repository and parsed only when the maintainer runs cargo xtask public-proof or cargo test -p xtask public_proof. The threat model for this command is local maintainer over a clean tree; there is no untrusted-JSON feed path introduced or modified by this diff. The seeded thread's similar concerns (Codex P1 about analyzer-version provenance) were addressed by disclosures, not by parser hardening, and that is the correct call here.
Parked follow-ups
- Threaded review queue (CodeRabbit, Codex, Devin) is unbounded by this PR's worker-handoff lane; any cross-thread handoff concern is out of scope for this Rust-only diff.
Evidence gaps
- 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_015fdpmsrqPekHXNdotps9HA
Pull request was converted to draft
|
Warning You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again! |
Review of record for head 0dcfae4Two independent reviewer agents inspected bae4c0b, each from a different angle. Head 0dcfae4 adds a repair commit and a merge of main on top of it. Correctness and edge cases (
Contract and honesty (page, receipts, allowlist, changelog)
Not checked by the reviewers: individual first-run step counts. They are covered by the receipt-rendered page test. Evidence on 0dcfae4: Generated by Claude Code |
There was a problem hiding this comment.
Decision
- Needs reviewer attention before upstream: findings remain.
Confirmed findings
- Diff is a pure-Rust xtask generator; lane focus on JS worker/async/GC/detach/transfer boundaries does not apply, so no lane-shaped issue can be raised. Public arrays kept empty.
Verification questions
- Confirm no assertion checks that the
proptest-style red/green contract distinguishes a passing metric from a failing one of the same value; tests rely on string contains of basis text rather than equality with a golden. - Confirm pR diff covers 15 files, but heavy/sensor evidence is not all available (ripr failed, cargo-test scheduled-late, miri/cargo-mutants/test/coverage skipped). Public route is unchanged and
cargo test -p xtask public_proofis the only witness on this lane; path looks correct but a full test run on a refilled head was not performed. - Confirm xtask/src/public_proof.rs:270 — workspace_root() lives only in #[cfg(test)] and is invoked from 16 tests; if any non-test code later needs repo-relative resolution it will duplicate the pattern. Promote to a private fn at module scope or document the test-only intent.
- Confirm xtask/src/public_proof.rs:1148 —
worst_samplesilently skips samples whosevalueis non-numeric. A failed-instrument sample without a number would be invisible to the shortfalls bullets. Consider filtering only bystatushere, not byvalue.as_f64().
Refuted
- Untitled: an in-flight fs::write of PUBLIC_PROOF.md could leave a partial file visible to a concurrent process, producing a torn read or lifetime bug at the page consumer.; refuted because: run() is a single-threaded synchronous command. fs::write either completes with the full byte sequence or fails; no fds, no partial buffers. Under --check no write occurs. Allowlist marks this xtask output as generated and the required unit test (
committed_page_matches_its_receipts) re-renders before comparing. - This diff contains no JavaScript, no worker thread, no async postMessage/Transferable boundary. Lane focus does not match the change class.
- Cross-worker detach or transferable aliasing could leak in docs/PUBLIC_PROOF.md generation; refuted because: No JS, no worker, no async runtime; renderer is sync std::fs and serde_json. The lane focus does not match the change.
- Loading a hand-edited metric receipt with a missing
samplesarray could let a NotMeasured bar borrow producer reason text and render it as if it were a failed-instrument detail (info-misattribution / misrepresentation).; refuted because: unmeasured_reason only descends into samples[] when the metric has a producer reason or when samples[].status == 'failed'; for a hand-edited receipt with samples=[], it falls through to 'the receipt records no reason'. The seeded test failed_instrument_keeps_its_sample_detail pins the visible attribution. No exploitable info-disclosure or trust-boundary bypass follows.
Evidence gaps
- Model proof intent was rejected by deterministic validation.
Requested by Steven · project thread
Before: A developer weighing ripr had no single page showing its measured numbers, trends or shortfalls. The scoreboards, verdict corpus and mutation spot-check are separate harnesses whose outputs live in PRs and target/.
After:
docs/PUBLIC_PROOF.mdshows 22 scoreboard bars with targets and trends, mutation agreement per verdict class, verdict-corpus rates with every case, speed and memory per corpus repo, first-run results across two releases, a standalone install timing, one agent run, and a computed "Where ripr falls short" section. Right now it says ripr misses 13 bars, including 10 of 20 correctly tested changes reported as gaps.cargo xtask public-proofrenders the page purely from receipts inmetrics/public-proof/. A receipt missing a field the page prints is an error, not a blank (an absent outcome key inside a sparse counts map is zero, as the producer omits zero outcomes). The required xtask unit test fails when the page no longer matches its receipts.--checkadditionally fails whendx-scoreboard.json,verdict-corpus.jsonorcorpus-manifest.jsonhave drifted frommetrics/dx-scoreboard/baseline.json,fixtures/rust-verdict-corpus/expected/report.jsonorbenchmarks/rust_corpus/manifest.json; a missing canonical source is an error.--refresh-receiptsre-copies them.How: receipts are committed copies. Source drift is advisory (Steven's call): corpus PRs do not fail required CI, and the page lags until someone runs
--refresh-receiptsthenpublic-proof. Running--checkautomatically in a non-required lane is #5494. The mutation, first-run, agent and install receipts have no in-repo source, so--checkcannot detect a hand edit to them; the page says so. The mutation spot-check has no command on main yet, and the Reproduce section no longer names one.ci.install_secondsstays unmeasured because the install receipt times a standalone prebuilt install, not the generated workflow. Lenientdirection/unit/casesreads are #5465. Nothing is published.Local:
cargo xtask precommitandcargo test -p xtask public_proof(10 tests) pass on the tree merged with main. Separate reviews of earlier heads found no remaining blockers; the last change (advisory drift) gets its own review.🤖 Generated with Claude Code
https://claude.ai/code/session_015fdpmsrqPekHXNdotps9HA