Skip to content

Read native Workflow Stream ranges by offset - #95

Closed
moetemp wants to merge 5 commits into
moe/jetty/v2/t6-nested-streamfrom
moe/jetty/v2/t7-direct-reads
Closed

moetemp wants to merge 5 commits into
moe/jetty/v2/t6-nested-streamfrom
moe/jetty/v2/t7-direct-reads

Conversation

@moetemp

@moetemp moetemp commented Oct 22, 2026 •

Copy link
Copy Markdown
Owner

This PR serves native Workflow reads by offset. History can retain range metadata while replay fetches the Records from the native Store.

This layer belongs to the frozen Jetty server prototype. The active Streams contract has no close operation and does not require a server change.

Current Streams design and project plan.

Reviewer's guide

Review this as a frozen prototype. The active Streams API uses a separate contract.

  1. Start with service/frontend/nexus_direct.go, then chasm/lib/stream/read.go. Check range boundaries and whether transport errors preserve their reasons.
  2. Read the History-size and expired-range cases in tests/stream_test.go. Replay must fail when its range is unavailable instead of reading newer Records.

A wake_only read in History gives the Workflow offsets only, and its pages come through the direct System Nexus call (api#720 shape) or the frontend, bounded by to_offset so replay reads the same range (S105).
…ect-reads

# Conflicts:
#	tests/stream_test.go
With one transport for native reads, a direct call reads as the frontend ReadRecords does.
@moetemp moetemp changed the title [Jetty] Served direct Workflow reads with no Records in History. Read native Workflow Stream ranges by offset Nov 27, 2026
@moetemp moetemp closed this Nov 28, 2026
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