GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||||||||||||||||||||
GeezerVison is showing github.com — feat(id): server-side identity backup per #5033 decision (#7360) by dezren39 · Pull Request #7658 · developing-today/code Conversation
|
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 10 minutes. View limit details
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. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Codex Review Summary: ✅ CompletedThis 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. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Here are some automated review suggestions for this pull request.
Reviewed commit: 8e13dfb5c2
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
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".
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
… scope restore confirmations to epoch (#7360)
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Here are some automated review suggestions for this pull request.
Reviewed commit: 29d07078c0
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
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".
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Codex P2 on PR #7658 (comment 4506143649): after a delete + recreate, restore_epoch restarts at 1, so a delayed confirm_restore_notifications(pub, 1) from the deleted backup could clear the recreated backup's pending notifications and make is_authoritative() true prematurely. Confirmations now present a RestoreToken { generation, restore_epoch }: generation is a store-level per-identity counter bumped on every record creation and never reset by deletion or tombstone purge. DeviceNotification and RestoreReceipt carry the token; regression test covers the delete + recreate reuse path.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Here are some automated review suggestions for this pull request.
Reviewed commit: 873d2d7254
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
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".
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| fn retry_after_ms(&self, now_ms: u64) -> u64 { | ||
| let rolled = self.rolled(now_ms); | ||
| let elapsed = now_ms.saturating_sub(rolled.cur_start_ms); | ||
| rolled.window_ms.saturating_sub(elapsed).max(1) |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Calculate retry-after from weighted-budget availability
When ten downloads exhaust the hourly budget at time 0, a refusal at 1,000 ms advertises a retry after 3,599,000 ms. Retrying at exactly that boundary is refused again because the previous window still contributes all ten downloads, and this function then advertises another full-hour delay—even though the estimator permits a download just one millisecond later. Clients honoring these delays can unnecessarily wait nearly two hours, with an analogous extra-day delay for the daily budget. Calculate the next admissible instant from the weighted estimate rather than returning the next fixed-window boundary.
Useful? React with 👍 / 👎.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
@/tmp/lane-m-reply-13046.md
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Fixed in 0e48a53: retry_after_ms now binary-searches the weighted estimator for the earliest admissible instant (estimate < limit) instead of advertising the next fixed-window boundary, where the previous window still contributes its full count. Regression test download_budget_retry_after_is_the_next_admissible_instant: ten downloads at t0 exhaust the hour budget, a refusal at t0+1000ms advertises window-1000+1 ms, and a download at the advertised instant is admitted. Oracle: the weighted estimator itself. (This reply replaces the garbled body on the earlier reply 4506325920.) — queue worker lane code-y, task 13046
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
|
AUDIT-7 Lane 4 completed-later note (2026-11-25): later merged backup fixes extended the implementation from PR #7658: PR #8953 enforces the passphrase floor, PR #9020 blocks new device bindings during pending restore notifications, PR #10916 validates envelopes before signing uploads, and PR #12401 preserves the identity generation floor after account purge. These fixes and the #7360 acceptance history are linked in the issue record. PR #7658 is labelled |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
id: implement server-side identity backup per #5033 decision (v1 envelope blob, epoch-guarded storage, download budget)
There was an error while loading. Please reload this page.