Conversation
Filter shared model rankings by provider and label omitted history as partial. Keep day-scoped models out of full-window rankings, preserving unknown totals. Reuse checked aggregation without changing missing-cost or overflow behavior. Fixes #3714 Closes #3747 Co-authored-by: Alec Gutman <44984861+Chipagosfinest@users.noreply.github.com>
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: needs maintainer review before merge. Reviewed September 21, 2026, 3:37 AM ET / 07:37 UTC. ClawSweeper reviewWhat this changesShared usage cards and copied statistics retain complete providers’ model families, label incomplete rankings, and exclude day-scoped models from full-window summaries. Merge readiness✅ Ready for maintainer review Keep open: this remains useful work, and no actionable patch defect was found. The owner-authored proposal explicitly revises the earlier all-or-nothing sharing policy while preserving conservative provider eligibility. Priority: P2 Review scores
Verification
How this fits togetherCodexBar’s sharing subsystem converts Usage & Spend dashboard aggregates into local images and copied text. Provider completeness and reporting-window metadata determine which model families appear. flowchart LR
A[Provider usage history] --> B[Usage and Spend dashboard]
B --> C[Provider completeness checks]
C --> D[Full reporting window check]
D --> E[Sanitized model families]
E --> F[Shared image]
E --> G[Copied statistics]
Before mergeNone. Agent review detailsSecurityNone. Review metrics
Root-cause clusterRelationship: Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. Technical reviewBest possible solution: Keep complete-provider model families shareable with explicit partial coverage, unchanged privacy sanitization, and consistent reporting-window semantics. Do we have a high-confidence way to reproduce the issue? Yes, source establishes that one incomplete provider suppresses healthy model rows in the same currency group on current main. No runtime reproduction was executed during this review. Is this the best way to solve the issue? Yes: reusing provider completeness metadata is a narrow solution, and explicit partial labeling preserves honest ranking semantics under the owner’s revised sharing policy. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 6f59667e12c2. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
One unpriced or incomplete USD provider could erase every provider's model breakdown from a shared usage snapshot. The builder now uses the dashboard's existing per-provider completeness metadata, retains complete providers' families, and labels omitted history PARTIAL on the image and Top models (partial) in copied text. Complete rankings keep BY USAGE.
Day-scoped models stay out of full-window rankings; only proven-zero totals qualify for the idle exception. Checked family aggregation replaces the private accumulator while preserving missing costs and overflow behavior. Production code decreases by 24 lines.
This is a credited rewrite of @Chipagosfinest's partial-card presentation from #3747, including the incomplete-request case that its currency-wide filter still excluded.
Validation
Result: 69 tests in 4 suites passed, zero failures.
Result: passed; SwiftLint reported 0 violations in 2511 files. An initial run hit a process-cleanup fixture timeout under shared-host load; subsequent complete checks passed.
The original builder produced 22 failed regression assertions. Additional selected-day regressions reproduced 2 failures for an empty selected day and 6 for unavailable full-window totals before correction; all now pass. Coverage includes the three-provider USD group, complete rankings, copied text, multiple accounts, explicit zero totals, missing costs, and token/cost overflow. Final independent review found no actionable P0–P2 issues.
Synthetic before / after
Rendered through the production builder and PNG renderer, with the same three USD providers and unpriced Antigravity history. Both complete captures were inspected; they contain synthetic aggregate data only.
Fixes #3714
Closes #3747