Skip to content

Record the terminal status of a native Stream owner - #97

Closed
moetemp wants to merge 5 commits into
moe/jetty/v2/t8-reader-floorsfrom
moe/jetty/v2/t9-close-fixes
Closed

moetemp wants to merge 5 commits into
moe/jetty/v2/t8-reader-floorsfrom
moe/jetty/v2/t9-close-fixes

Conversation

@moetemp

@moetemp moetemp commented Oct 23, 2026 •

Copy link
Copy Markdown
Owner

This PR distinguishes the end of one cron run from the end of the owner chain and records the owner’s terminal outcome on close.

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 RunEnd in chasm/lib/stream/host.go and the Workflow close path. Check terminal status and unfinished-task withdrawal together.
  2. Read the cron and terminated-owner tests. Ending one run must not be mistaken for ending the owner chain.

A Stream write now has a task_token field, which only an Activity sets. The namespace check
takes the namespace from the request when the token is empty.
A cron run's end no longer closes the chain's Streams. The first run closes its Streams in its
own transaction, and the close withdraws the run's tasks that never completed.
An empty Producer fails a client's decode, since its id is required. The crate's auto close
writes none either.
@moetemp moetemp changed the title [Jetty] Closed a chain's Streams at its real end, with a status. Record the terminal status of a native Stream owner 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