Skip to content

Add CDN segment transport and targeted shared memo fallback - #47

Merged
tzarebczan merged 9 commits into
mainfrom
codex/cdn-shared-memos
Oct 19, 2026
Merged

tzarebczan merged 9 commits into
mainfrom
codex/cdn-shared-memos

Conversation

@tzarebczan

Copy link
Copy Markdown
Owner

Summary

Rebase the remaining codex/shield-cancellation work onto current main (a25cfa8). Cancellation (#35), shared-memo request bounds (#46), and saved-byte submit context were already on main, so those commits are not replayed. retryPendingSubmission on main already resubmits the Rust-owned receipt with { txid } and keeps the original reservation on failure, so the older pendingTxs retry is not added.

What this adds:

  • CDN segment transport, with exact sub-range fallback, 5xx backoff, and live-tip ranges sent to the light server.
  • Subtree-root pages of 32, per-pool deadlines, and cancellation that still aborts the outer wait.
  • On-demand memo fill through one-block sharedMemos when the transport has no tx method. Enhance PIR still replaces public txid lookups. A cloud wallet with sharedMemos and enhance and no tx keeps the shared-memo path.
  • Whole-shard boundary hashing when no seeded root covers that shard.

origin/codex/shield-cancellation stays at 589191d so the live nwallet pin remains fetchable until that pin moves.

Verification

  • cargo fmt --all -- --check
  • pnpm check:packages
  • SDK tests for CDN transport, subtree roots, prefetch, public data, storage, and the gRPC-web proxy (169 passing)

CI rust is the required check.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 19, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-19T18:45:00.653271Z b43e5b9 PR opened
🔒 Security Review ✅ Completed 2026-10-19T18:49:18.283632Z b43e5b9 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: b43e5b904f

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

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".

Comment thread packages/sdk/src/wasm-client-sync.ts Outdated
Comment thread packages/sdk/src/cdn-transport.ts Outdated
Comment thread packages/sdk/src/cdn-transport.ts Outdated
A 200 that is short, torn, oversized, or stalled fell through as a usable
segment or stayed unbounded. Those cases now fall back to the live range
once. Pending memo heights come from historyQuery by txid so an older
incomplete row is not dropped by the newest history page.
@tzarebczan
tzarebczan merged commit 1f57324 into main Oct 19, 2026
8 checks passed
@tzarebczan
tzarebczan deleted the codex/cdn-shared-memos branch October 19, 2026 19:34
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