Skip to content

fix(p2p-10): harden redirect correctness (#671)#8

Open
jlon wants to merge 2 commits into
p2p-09-data-plane-redirectfrom
p2p-10-correctness-hardening
Open

fix(p2p-10): harden redirect correctness (#671)#8
jlon wants to merge 2 commits into
p2p-09-data-plane-redirectfrom
p2p-10-correctness-hardening

Conversation

@jlon
Copy link
Copy Markdown
Owner

@jlon jlon commented Mar 26, 2026

Summary

  • Close correctness gaps in the redirect path after the data-plane architecture is in place.
  • Keep this branch intermediate-only; runtime listener and reader lifecycle safety still land in p2p-11.

Design

  • Reject redirects to empty peers and scope cached tickets by request context.
  • Keep rollout posture unchanged and avoid mixing in runtime lifecycle changes.

Implementation

  • Serve published chunks before persist completes and add pending-fetched visibility glue.
  • Refresh provider advertisement on republish and prevent stale ticket reuse across tenant/mtime.

Verification

  • Verify there is no stale ticket reuse across tenant or mtime boundaries.
  • Verify published chunks remain readable before persist completes and provider refresh works after republish.

@chatgpt-codex-connector
Copy link
Copy Markdown

Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits.
Credits must be used to enable repository wide code reviews.

@jlon jlon force-pushed the p2p-09-data-plane-redirect branch from 8df93d8 to cb050bc Compare March 26, 2026 10:26
@jlon jlon force-pushed the p2p-10-correctness-hardening branch from c5bbf47 to a85fe48 Compare March 26, 2026 10:26
@jlon jlon force-pushed the p2p-09-data-plane-redirect branch from cb050bc to d73b245 Compare March 27, 2026 09:32
@jlon jlon force-pushed the p2p-10-correctness-hardening branch from a85fe48 to 5ab0e12 Compare March 27, 2026 09:33
@jlon jlon force-pushed the p2p-09-data-plane-redirect branch from d73b245 to b5dce20 Compare March 30, 2026 00:55
@jlon jlon force-pushed the p2p-10-correctness-hardening branch from 5ab0e12 to 62fb81b Compare March 30, 2026 00:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant