Skip to content

mirror_worker: implement the add-entries submission API - #264

Draft
lukevalenta wants to merge 2 commits into
mainfrom
lvalenta/mirror-worker-add-entries
Draft

mirror_worker: implement the add-entries submission API#264
lukevalenta wants to merge 2 commits into
mainfrom
lvalenta/mirror-worker-add-entries

Conversation

@lukevalenta

Copy link
Copy Markdown
Contributor

Stream and verify entry packages against the target pending checkpoint, persist them as tlog-tiles entry bundles and hash tiles (see commit.rs), and advance the persisted-entry frontier. A complete upload cosigns the mirror checkpoint and returns 200; a client-truncated upload persists the verified prefix and returns 202 with the advanced next entry so the client can resume (C2SP/C2SP#253).

Includes body-decoding (transparent gzip), a streaming buffer adapter, per-origin prefixed R2 storage, and the ticket-sealer for recovering a past pending checkpoint on resume.

@lukevalenta lukevalenta self-assigned this Jul 24, 2026
@lukevalenta
lukevalenta force-pushed the lvalenta/mirror-worker-add-entries branch 2 times, most recently from e3f7fa5 to 0a3922c Compare July 28, 2026 14:32
Make read_edge_tiles, the TileWithBytes struct (with public fields), and
HashReaderWithOverlay public so the mirror worker can share the committed
right-edge-tile reader instead of carrying its own copy.

Switch the storage-read helpers (read_edge_tiles, tile_reader_for_indexes)
and ProofError::Other from anyhow::Error to worker::Error, matching
ObjectBackend's error type. anyhow stays for the sequencer paths that rely
on its blanket error conversion.
@lukevalenta
lukevalenta force-pushed the lvalenta/mirror-worker-add-entries branch from 0a3922c to e3ae842 Compare July 28, 2026 21:13
Stream and verify entry packages against the target pending checkpoint,
persist them as tlog-tiles entry bundles and hash tiles (see commit.rs),
and advance the persisted-entry frontier. A complete upload cosigns the
mirror checkpoint and returns 200; a client-truncated upload persists the
verified prefix and returns 202 with the advanced next entry so the
client can resume (C2SP/C2SP#253).

Includes body-decoding (transparent gzip), a streaming buffer adapter,
per-origin prefixed R2 storage, and the ticket-sealer for recovering a
past pending checkpoint on resume.
@lukevalenta
lukevalenta force-pushed the lvalenta/mirror-worker-add-entries branch from e3ae842 to 0b8665c Compare July 29, 2026 13:03
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