Skip to content

feat(docs): generated public proof page with scoreboard receipts and a staleness check - #5405

Merged
EffortlessSteven merged 33 commits into
mainfrom
claude/project-thread-69zd0d
Oct 5, 2026
Merged

EffortlessSteven merged 33 commits into
mainfrom
claude/project-thread-69zd0d

Conversation

@EffortlessSteven

@EffortlessSteven EffortlessSteven commented Oct 4, 2026 •

Copy link
Copy Markdown
Member

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.md shows 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-proof renders the page purely from receipts in metrics/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. --check additionally fails when dx-scoreboard.json, verdict-corpus.json or corpus-manifest.json have drifted from metrics/dx-scoreboard/baseline.json, fixtures/rust-verdict-corpus/expected/report.json or benchmarks/rust_corpus/manifest.json; a missing canonical source is an error. --refresh-receipts re-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-receipts then public-proof. Running --check automatically in a non-required lane is #5494. The mutation, first-run, agent and install receipts have no in-repo source, so --check cannot 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_seconds stays unmeasured because the install receipt times a standalone prebuilt install, not the generated workflow. Lenient direction/unit/cases reads are #5465. Nothing is published.

Local: cargo xtask precommit and cargo 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

…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
@EffortlessSteven EffortlessSteven self-assigned this Oct 4, 2026
@coderabbitai

coderabbitai Bot commented Oct 4, 2026 •

Copy link
Copy Markdown

Review in Change Stack →

Navigate logical layers of code changes, visualize relationships, and explore their blast radius.

Note

Reviews paused

It 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 reviews.auto_review.auto_pause_after_reviewed_commits setting.

Use the following commands to manage reviews:

  • @coderabbitai resume to resume automatic reviews.
  • @coderabbitai review to trigger a single review.

Use the checkboxes below for quick actions:

  • ▶️ Resume reviews
  • 🔍 Trigger review

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration
  • Configuration used: Organization UI
  • Review profile: ASSERTIVE
  • Plan: Advanced
  • Run ID: 0d468415-842e-4d9b-af62-9a67f1626d45
📥 Commits

Reviewing files that changed from the base of the PR and between 38bbef4 and 1bd0dbe.

📒 Files selected for processing (1)
  • CHANGELOG.md
🔗 Linked repositories identified

CodeRabbit considers these linked repositories for cross-repo context during reviews:

Limit details: You’ve used all 10 included reviews currently available.


Summary by CodeRabbit

  • New Features
    • Added a public report of measured performance, memory use, CI adoption, trust, first-run results, and agent-assisted use, with targets and measurement limitations.
    • Added commands to regenerate the report, refresh supporting measurements, and check that the report and measurements match their sources.
    • Added evidence on verdict-corpus outcomes and mutation-test agreement, including observed errors and limits on agreement claims.
    • Added recorded installation, first-run, and agent-assisted results, showing which metrics meet targets, fall short, or have not been measured.

Walkthrough

This change adds committed proof receipts, a generated public report, and an xtask public-proof command. The command renders the report, checks the page and receipts for drift, or refreshes receipts from available canonical sources.

Changes

Public proof report

Layer / File(s) Summary
Pinned proof receipt datasets
metrics/public-proof/*.json, policy/non-rust-allowlist.toml
Adds scoreboard, verdict-corpus, mutation spot-check, first-run, agent-as-user, and installation datasets with recorded measurements and evidence details. The allowlist identifies the receipt files as generated repository content.
Command wiring and metric processing
xtask/src/command.rs, xtask/src/dispatch.rs, xtask/src/main.rs, xtask/src/public_proof.rs
Adds the public-proof command and its options. The command loads receipts, validates required data, computes metric values and target statuses, and supports receipt refresh and drift checks.
Report rendering and drift checks
xtask/src/public_proof.rs, docs/PUBLIC_PROOF.md, CHANGELOG.md
Renders report tables, corpus results, shortfalls, and measurement limits. Tests cover report consistency, stale inputs, argument validation, and formatting. The changelog describes the generated report and its checks.

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
Loading

Merge Risk: ⚪ Minimal · up to 1bd0d

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 Summary

Architecture risk: 🔵 Low · up to 1bd0d

The change affects 5 systems.

Changed systems: metrics, xtask, CHANGELOG.md, docs, policy

Architecture concerns
No architecture-level concerns identified.

Review details

Systems and components

  • observed — metrics (service) was modified; 7 changed files map to changed impact.
  • observed — xtask (service) was modified; 4 changed files map to changed impact.
  • observed — CHANGELOG.md (service) was modified; 1 changed file maps to changed impact.
  • observed — docs (service) was modified; 1 changed file maps to changed impact.

Before / after behavior

  • observed — Modified behavior in metrics/public-proof/agent-as-user.json: Added a JSON metrics dataset for the agent-as-user source, including the evidence reference, metric values, per-repository records, and completion flags.
  • observed — Modified behavior in metrics/public-proof/dx-scoreboard.json: Adds a complete DX scoreboard snapshot identifying the analyzer, binary, revision, runner class, schema, and four measured corpus repositories. It records an enabled passing gate against the specified baseline and a rollup of 12 below-target, 6 meeting-target, 4 not-measured, 0 failed, and 0 regressed metrics. Board and repository sections include metric definitions, targets, observed values, statuses, samples, and missing-measurement reasons across speed, CI, trust, paste safety, and first-run results.
  • observed — Modified behavior in metrics/public-proof/first-run-current.json: Adds the complete first-run metrics snapshot for three package cases, including their command results, timings, output counts, friction, verdicts, workflow properties, ripr version, schema version, and source-fetch setup result.
  • observed — Modified behavior in metrics/public-proof/first-run-previous.json: Added a JSON metrics record for three dependency cases, including command outcomes, timings, output counts, friction, verdicts, and workflow details; it also records the ripr 0.10.0 schema and successful Cargo source-fetch setup.
🚥 Pre-merge checks | ✅ 3 | ❌ 2

❌ Failed checks (2 warnings)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning 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: … Write docstrings for the functions missing them to satisfy the coverage threshold.
Description check ⚠️ Warning 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-o… 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…
✅ 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 summarizes the main change: a generated public-proof page with scoreboard receipts and a staleness check.
Full details: Docstring Coverage

Explanation

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 check

Explanation

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)
  • Commit to this branch
  • Create a new PR
  • Autopilot · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

A rabbit reads the proof receipts at dawn
Six bars shine, while others wait
The report takes shape from measured facts
A check finds drift and marks the page
Then hops away with metrics in tow

Comment @coderabbitai help to get the list of available commands.

gemini-code-assist[bot]

This comment was marked as resolved.

coderabbitai[bot]

This comment was marked as resolved.

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
coderabbitai[bot]

This comment was marked as resolved.

coderabbitai[bot]

This comment was marked as resolved.

claude added 7 commits October 4, 2026 09:10
…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

Copy link
Copy Markdown
Member Author

Heads-up: #5442 merged at 62fb7aa and changed fixtures/rust-verdict-corpus/expected/report.json to 34 cases, with false actionable 10/20 and contradictions 4/42. When this PR merges main, run cargo xtask public-proof --refresh-receipts so the verdict-corpus receipt matches.


Generated by Claude Code

claude added 2 commits October 4, 2026 15:51
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
@EffortlessSteven
EffortlessSteven marked this pull request as ready for review October 4, 2026 19:30
@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!

chatgpt-codex-connector[bot]

This comment was marked as resolved.

@EffortlessSteven
EffortlessSteven enabled auto-merge (squash) October 5, 2026 00:37

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 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".

Comment thread xtask/src/public_proof.rs Resolved
@EffortlessSteven
EffortlessSteven marked this pull request as draft October 5, 2026 00:46
auto-merge was automatically disabled October 5, 2026 00:46

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
@EffortlessSteven
EffortlessSteven marked this pull request as ready for review October 5, 2026 00:50
@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!

@EffortlessSteven
EffortlessSteven enabled auto-merge (squash) October 5, 2026 00:50

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 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".

Comment thread xtask/src/public_proof.rs Resolved
Comment thread xtask/src/public_proof.rs Resolved
@EffortlessSteven
EffortlessSteven marked this pull request as draft October 5, 2026 04:55
auto-merge was automatically disabled October 5, 2026 04:55

Pull request was converted to draft

@EffortlessSteven
EffortlessSteven marked this pull request as ready for review October 5, 2026 04:56
@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!

@EffortlessSteven
EffortlessSteven enabled auto-merge (squash) October 5, 2026 04:56

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

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 (Page aliased across borrows) was refuted by the &mut self signatures on Page::line and Page::table.

Verification questions

  • Confirm no test pins that the rendered public-proof page fails --check when 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 self methods; no Vec/slice/Box<[T]>/TypedArray is reallocated while a borrow into it is live. serde_json::from_slice(&bytes) is consumed in one call and bytes is dropped before the returned Value is shared. unsafe-review confirms 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.

@EffortlessSteven
EffortlessSteven marked this pull request as draft October 5, 2026 05:42
auto-merge was automatically disabled October 5, 2026 05:42

Pull request was converted to draft

@EffortlessSteven
EffortlessSteven marked this pull request as ready for review October 5, 2026 05:42
@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!

@EffortlessSteven
EffortlessSteven enabled auto-merge (squash) October 5, 2026 05:42

Copy link
Copy Markdown
Member Author

Review of record for head 0dcfae4

Two 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 (xtask/src/public_proof.rs)

  • Found: an empty first-run walk summed to 0 s and met the target. Resolved: a case with no steps is now not measured. Test: empty_walk_is_not_measured_not_zero_seconds.
  • Found: a derived metric's real cause was replaced by a blank producer reason. Resolved: the derived basis is kept and says an untimed or empty step list leaves no total. Covered in untimed_walk_step_is_not_measured_not_summed.
  • Found (cosmetic): dedup removed only adjacent duplicate details. Resolved: duplicates are removed in full.

Contract and honesty (page, receipts, allowlist, changelog)

  • No defects. public-proof --check passes. Receipt copies match their canonical sources. Page rates match the verdict-corpus receipt. Allowlist entries cover every file in metrics/public-proof/. The changelog fragment exists and CHANGELOG.md is unchanged. The page makes no runtime-mutation or sufficiency claims.

Not checked by the reviewers: individual first-run step counts. They are covered by the receipt-rendered page test.

Evidence on 0dcfae4: cargo xtask precommit passes and cargo test -p xtask public_proof passes (19 tests). The goldens failure on 403623a was main drift; goldens pass on the merged tree. After the refresh of receipts from main's grown corpus, the page matches its receipts. Required check for this head is pending.


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.

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_proof is 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_sample silently skips samples whose value is non-numeric. A failed-instrument sample without a number would be invisible to the shortfalls bullets. Consider filtering only by status here, not by value.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 samples array 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.

@EffortlessSteven
EffortlessSteven merged commit 9773b3f into main Oct 5, 2026
31 of 32 checks passed
@EffortlessSteven
EffortlessSteven deleted the claude/project-thread-69zd0d branch October 5, 2026 06:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants