Skip to content

WIP mirror: universal Flow runtime (fable) - #177

Draft
roninjin10 wants to merge 1 commit into
mainfrom
agent/universal-flow-runtime/run-1786156719408/fable
Draft

WIP mirror: universal Flow runtime (fable)#177
roninjin10 wants to merge 1 commit into
mainfrom
agent/universal-flow-runtime/run-1786156719408/fable

Conversation

@roninjin10

Copy link
Copy Markdown
Contributor

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.

…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>
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