Repository navigation
Conversation
Consolidate duplicate percentile algorithms across daemon, insights, and archive subsystems. Five implementations existed (three linear interpolation, two nearest-rank) with different behaviors and scaling (q vs p). This caused divergent p50/p95 results across operator-facing surfaces. New single implementation in core.stats.percentile() supports both 'linear' (default, numpy-compatible) and 'nearest' methods, with q in [0,1] quantile scale. Call sites updated: - daemon/status.py, cursor_lag_baseline.py, live_ingest_attempt_progress.py → percentile(..., method='linear') - insights/portfolio.py → percentile(..., method='nearest') - archive/semantic/timing.py → percentile(..., method='nearest') with p→q conversion - insights/archive_rollups.py → percentile(..., method='nearest') Ref polylogue-a7xr.4 Co-Authored-By: Claude <[email protected]>
|
Warning Review limit reached
Next review available in: 21 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 (9)
✨ 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: 296517ee80
ℹ️ 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".
|
Duplicate of #2896 (same diff targeting the same bead, polylogue-a7xr.4, plus one extra test file — a resume-after-pause artifact that re-ran an already-completed Haiku item). Closing without merge. |
|
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. |
Move all three Sinex wire dependency pins directly from `f2951e51` to qualified merged `c8a5e4b1` (Sinex PR #2886), including its source-retirement and sealed-repair fixes and immutable common `v0.5.20` pin. Update the four corresponding lock sources together. Polylogue's Nix package consumes this Cargo lock; there is no separate Sinex flake input. The preserved formatting/boundaries push hook passed (devkit 2450). Locked metadata resolution passed (job 1520), verifying model/macros/protocol/transport all resolve exactly to `c8a5e4b1eb7f9f6724d7d1da4ea8fe4c73722687`. Their complete crate trees, including manifests, are byte-identical at the old pin, prior native witness `99cbdf3c`, and this merged revision. Registry dependency constraints are unchanged; Polylogue already pins common `v0.5.20`. The existing ordinary producer/wire witness is job 1478 on SX `99cbdf3c` and PL `199659e682`. It predates the sealed-store repair, so this update does not claim a new native daemon/store replay. Upstream PR #2885 owns its daemon/store repair controls; PR #2886 owns the locked API masking controls. Root's coalesced paired qualification follows these pins. No Rust source, harness, schema, or package build is added here.
Summary
Consolidate duplicate percentile algorithms across daemon, insights, and archive subsystems into a single implementation in core/stats.py that supports both linear and nearest-rank methods.
Problem
Five separate implementations existed (three using linear interpolation, two using nearest-rank) with different behaviors and scaling conventions (q vs p). This caused divergent p50/p95 results across operator-facing surfaces when displaying metrics side by side.
Solution
Created
polylogue.core.stats.percentile()with:Updated call sites to use the new function:
Verification
Ref polylogue-a7xr.4