Trim menu formatting work#1572
Conversation
5ab41dc to
f9b2906
Compare
|
Codex review: needs maintainer review before merge. Reviewed June 16, 2026, 3:55 AM ET / 07:55 UTC. Summary Reproducibility: not applicable. this is a cleanup/performance PR rather than a bug report. The PR body provides benchmark and checksum evidence instead of a failing user reproduction path. Review metrics: 2 noteworthy metrics.
Merge readiness Overall follows the weaker of proof and patch quality, so missing proof can cap an otherwise strong patch. Rank-up moves:
Risk before merge
Maintainer options:
Next step before merge
Security Review detailsBest possible solution: Land the focused optimization after final CI/check confirmation, preserving the current user-visible strings and Bedrock day-selection behavior covered by tests. Do we have a high-confidence way to reproduce the issue? Not applicable; this is a cleanup/performance PR rather than a bug report. The PR body provides benchmark and checksum evidence instead of a failing user reproduction path. Is this the best way to solve the issue? Yes, the proposed approach is narrow: it removes hot-path formatter allocation while keeping the same visible token/date strings and adding focused coverage. The remaining merge condition is validation completion, not a different design. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against ac01d73625ee. Label changesLabel changes:
Label justifications:
Evidence reviewedWhat I checked:
Likely related people:
What the crustacean ranks mean
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics. How this review workflow works
|
f9b2906 to
24452ba
Compare
|
Maintainer repair pushed at Changes:
Proof:
The invalid-date regressions exercise June 31 and prove it cannot outrank a valid billing day or populate usage totals. That malformed upstream shape cannot be produced reliably by a live AWS account, so deterministic exact-head parser/menu coverage is the meaningful end-to-end proof for this repair. |
Summary
yyyy-MM-ddday-key comparison and direct month/day rendering.Before / After
Temporary benchmark harness, not committed. Same checksums before/after.
Baseline:
mainatac01d736Branch:
5ab41dc1Command:
/usr/bin/time -l swift test --skip-build --filter FormatterHotPathBenchmarkTeststokenCountStringsmall values, 2,000,000 callsChecksums:
tokenCountStringSmallValues:5780000before and afterbedrockMenuModel:175000before and afterVerification
swift test --filter UsageFormatterTestspassed: 34 testsswift test --filter BedrockMenuCardTestspassed: 2 testsswift build --build-testspassedswiftlint --strictpassed: 0 violations in 1138 filesgit diff --checkpassedNotes
mainbenchmark worktree needed the local Sparkle framework symlink workaround under.build/out/Products/Debug/PackageFrameworksbefore running the focused test binary.