Skip to content

Add the native Jetty Stream component - #89

Closed
moetemp wants to merge 10 commits into
mainfrom
moe/jetty/v2/t1-stream-component
Closed

moetemp wants to merge 10 commits into
mainfrom
moe/jetty/v2/t1-stream-component

Conversation

@moetemp

@moetemp moetemp commented Oct 22, 2026 •

Copy link
Copy Markdown
Owner

This PR adds the CHASM Stream component, its stored batches and its lifecycle tasks. Namespace configuration controls whether the service is available.

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 chasm/lib/stream/stream.go, then producer.go and read.go. Compare retry fencing with the Records readers can observe.
  2. Use stream_test.go to check retention, close, and parked-read outcomes. Namespace configuration must keep the prototype disabled where it is not selected.

A child node that the update of a new CHASM execution adds is not persisted, so the start makes the read and the batch nodes.
Workflow writes now come over gRPC from the Core extension (S95), so the Stream keeps the run's task index and applies failed_tasks and withdraw_run in the write's transition. Errors carry StreamErrorDetails (S99).
A batch before a Local Activity has no task facts yet, so it fences, dedupes and joins the task index but withdraws nothing, as the crate's deferred batch.
The SDK sends wait on a Workflow ReadRecords, and the frontend long poll answers an empty page at the wait, so the parked Nexus read does the same.
@moetemp moetemp changed the title [Jetty] Added the CHASM Stream component. Add the native Jetty Stream component 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