WIP mirror: universal Flow runtime (fable) - #177
Draft
roninjin10 wants to merge 1 commit into
Draft
Conversation
…ement FlowWire is the transport-neutral flow execution contract: one serializable Request in, one Response out, the same Flow definitions and FlowEngine underneath whether the serving function runs in a browser Service Worker's message listener, a local Bun process's HTTP route, an edge worker's fetch handler, or a cloud sandbox guest's socket loop. serveHttp adds the shared body-in/body-out projection those HTTP placements would otherwise each hand-roll, mapping refusals onto 400/403/404 while always encoding a Response body. CapabilityEnvelope is the one serializable authority that travels with a request: versioned capability patterns every placement interprets the same way, by intersecting the executing host's ambient CapabilitySet — an envelope can only narrow, and both the missing-interpreter and uninterpretable cases refuse execution instead of running wide. The exit now crosses the wire in its JSON codec form, and client rejections carry the refusal's code and detail so a caller can tell refused apart from ran-and-failed without decoding the reason by hand. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This draft PR is a mirror of local Smithers worktree progress.
Do not merge this PR on GitHub. The synthesized result will be reviewed, merged in a clean local clone, pushed to main, and this mirror will be closed.