Repository navigation
fix(insights): refuse ungrounded quantitative claims - #2783
Conversation
Cost-rollup confidence now renders null when no priced sessions provide a denominator. The rigor policy enforces all known zero-denominator field contracts, and claim-vs-evidence suppresses rates for split cells below n_min. Compatibility: cost_rollup confidence is now nullable when pricing evidence is absent. Co-Authored-By: Codex <[email protected]>
|
Warning Review limit reached
Next review available in: 39 minutes Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available. How can I continue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews. How do review limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please refer docs for additional details. Review details⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: ASSERTIVE Plan: Pro Run ID: 📒 Files selected for processing (14)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 17d2c746dc
ℹ️ 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".
The rigor policy now discovers direct public quantitative fields and requires either a denominator contract or an explicit true-zero rationale. Plain cost-rollup output preserves absent confidence as uncovered, and n_min now gates aggregate rates as well as split cells. Co-Authored-By: Codex <[email protected]>
Adversarial review — iteration 1Findings and fixes:
Verification: focused rigor/registry/rollup/claim tests: 133 passed; Commit: |
Problem: the quantitative-field audit enumerated a hand-maintained\nsubset of insight models, so newly exposed nested numbers could bypass\nthe rigor matrix.\n\nWhat changed: registry descriptors now identify their production item\nmodels, and the audit recursively discovers every public numeric leaf.\nEvery existing leaf has an exact field contract or exemption; the policy\nrejects missing item models and unclassified nested leaves.\n\nRef polylogue-uwk3\n\nCo-Authored-By: Claude <[email protected]>
Adversarial review — iteration 2Finding: the numeric-field audit still used a hand-maintained model list, which omitted registered products and could allow a newly added nested public numeric field to bypass rigor coverage. A first pass also made envelope exemptions too broad. Fix: every registered descriptor now names its production item model. The rigor policy recursively discovers numeric leaves from the registry, requires a model for every descriptor, and accepts only exact field-contract or field-exemption paths. The regression test replaces the cost-rollup pricing-basis model with a subclass carrying a new numeric leaf and proves the policy rejects it. Verification:
Survived scrutiny: contracts/exemptions now cover every current registered public numeric leaf exactly; a future nested metric cannot pass through a prefix or envelope exemption. |
Problem: a field contract could promise null-over-empty while its\nregistered response model still serialized a numeric sentinel. Classified\nclaim rates also used the failure sample threshold instead of their own\nclassified denominator.\n\nWhat changed: the rigor policy rejects non-nullable or opt-out contracts,\nand claim-vs-evidence tracks support independently for classified rates in\nsplit and aggregate reports.\n\nRef polylogue-uwk3\nRef polylogue-jph5\n\nCo-Authored-By: Claude <[email protected]>
Adversarial review — iteration 3Findings fixed:
Verification:
Survived scrutiny: a non-nullable confidence model and a failure-supported/classified-thin report cell both fail the relevant policy or rate assertion. Commit: 1e5fd81. |
Problem: public claim-vs-evidence artifacts rendered null aggregate rates\nwithout their insufficient-sample status, leaving readers to infer why a\nclaim was withheld.\n\nWhat changed: public-summary, summary, and reproduction artifacts now\ncarry and render denominator-specific coverage/publication status next to\nevery aggregate and windowed rate.\n\nRef polylogue-jph5\n\nCo-Authored-By: Claude <[email protected]>
Adversarial review — iteration 4Finding fixed: generated public claim-vs-evidence artifacts propagated null aggregate/window rates but omitted the associated coverage and publication status. Public readers saw only “not enough labels,” not an explicit refusal. Fix: public-summary JSON, summary JSON, README, and PUBLIC_REPRODUCTION now carry and render n_min plus denominator-specific coverage/publication statuses alongside every exposed aggregate, classified, and windowed rate. Verification:
Survived scrutiny: no additional numeric-coverage, nullable-contract, split-rate, Bead-AC, or review-comment gap was found in the same cold review. Commit: 0d4da12. |
Adversarial review — iteration 5Finding: the PR body overstated the n_min scope as every rate. Calibration precision/recall are separate labeled-sample metrics and intentionally retain their own semantics. Fix: narrowed the PR body to failure-follow-up rates and explicitly distinguished calibration metrics. No runtime behavior changed. The same cold review found no unresolved Bead-note, review-comment, numeric-coverage, nullable-contract, rate-gating, or public-artifact defect. |
Final acceptance matrix — adversarial fixpoint reached
Final independent review found zero new substantive findings after re-reading both Beads (including notes/AC), the full branch diff, PR body/comments/inline threads, and production paths. Final verification:
No Beads were closed and this PR was not merged. |
…807,2780,2790,2791,2795,2802,2806,2809 uwk3, jph5 (rigor-contracts #2783), bby.17 (web-cockpit #2793), dmp (terminal-note #2801), ra3w (basetemp-fix #2807), r4no/bkff/r2kb (extension-redesign #2780) fully satisfied — closed. nhjs (#2793), peo (daemon-forensics #2802), 4g3n (#2780), 67ac/212.11 (demo-corpus #2795), rsad (mcp-ergonomics #2790, real gaps remain per 5-iteration adversarial cap), 9e5.8.4/jnj.7 (provider-origin #2806), mrxt/37t.12/p5g/rxdo.4 (annotation-judgment #2791), s7ae.8/20d.2 (live-performance-2 #2809) partially satisfied — noted with disposition, left open. Also discovered and documented the actual root cause of this session's recurring bead-revert incidents: bd reimports the live database from .beads/issues.jsonl on every CLI invocation, so a write not immediately exported is lost the moment the next bd command runs. Every mutation in this commit was individually export-verified against that behavior. Co-Authored-By: Claude <[email protected]>
|
Historical Codex triage: evidence checked at 5ebcfe5. This records that source revision; it does not claim a fresh review of current master.
Only the rows listed above are dispositioned. Held findings remain open. |
|
Historical Codex triage: evidence checked at 5ebcfe5. This records that source revision; it does not claim a fresh review of current master.
Only the rows listed above are dispositioned. Held findings remain open. |
Summary
Refuse unsupported quantitative claims in insight rollups and claim-vs-evidence reports.
Problem
Cost-rollup confidence previously collapsed an absent priced-session denominator into 0.0. The rigor audit also had no registry-derived proof that every public numeric leaf had an evidence contract or explicit true-zero rationale. Failure-follow-up reports could publish a classified-only rate using a classified denominator below n_min.
Solution
Acceptance criteria
Verification
Anti-vacuity: rollup tests exercise both the production SQLite route and pure reducer; restoring the 0.0 fallback fails them. The rigor-policy regressions replace real registered response models with nested numeric/non-nullable variants; removing recursive discovery, exact-path coverage, or nullable validation makes them fail. Claim tests call build_report against a fixture SQLite archive; removing either denominator-specific n_min gate publishes a rate and fails the assertions. The artifact regression writes a thin aggregate report and requires explicit refusal statuses in every public summary surface.