Repository navigation
Add typed rate-limit domain evidence contract - #684
GraciousGazelles wants to merge 7 commits into
Conversation
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
Code Review
This pull request introduces a new rate_limit_domain module to define structures and logic for reasoning about rate-limit domains, including RateLimitDomainScope, LocalRequestFacts, ProviderObservedFacts, and RateLimitEvidence, along with associated unit tests. The feedback suggests optimizing performance on the request hot path by replacing String fields with std::sync::Arc<str> to prevent multiple heap allocations when cloning these immutable structures.
4fa752e to
d2d954b
Compare
|
Superseded by #688, which replays this provider rate-limit domain evidence work onto the current |
Summary
Add a small, side-effect-free typed contract for retaining provider-reported rate-limit evidence.
The contract:
No provider I/O or production admission path is changed in this pull request. Consumer wiring is intentionally a separate follow-up.
Validation
git diff --checkcargo fmt --manifest-path codex-rs/Cargo.toml --all -- --check374adb59336f1907acbb3956f30ac44564ad2c63\n\nBase:mainat097c362e349d029c29539d7c38ad01e8a6c67b63\nHead:feature/rate-limit-domain-contract-w12698at374adb59336f1907acbb3956f30ac44564ad2c63