Skip to content

refactor: align native model streaming with envelope bindings#236

Draft
PsiACE wants to merge 2 commits into
mainfrom
refactor/native-runtime-cleanup
Draft

refactor: align native model streaming with envelope bindings#236
PsiACE wants to merge 2 commits into
mainfrom
refactor/native-runtime-cleanup

Conversation

@PsiACE

@PsiACE PsiACE commented Jun 14, 2026

Copy link
Copy Markdown
Collaborator

It moves model streaming toward native envelopes, removes the shared runtime.py event layer.

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Jun 14, 2026

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Preview URL Updated (UTC)
✅ Deployment successful!
View logs
bub 43bc6ec Commit Preview URL

Branch Preview URL
Jun 16 2026, 07:08 AM

Comment thread src/bub/hookspecs.py
Comment on lines +48 to 51
@hookspec(firstresult=True)
def bind_envelope(self, envelope: Envelope, session_id: str, state: State) -> EnvelopeBinding | None:
"""Bind producer-defined capabilities to an envelope."""
raise NotImplementedError

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The envelope-related hooks still need discussion. The outer framework should stay lightly constrained and avoid understanding model/agent-specific stream semantics.

Comment thread src/bub/tape.py
@PsiACE PsiACE force-pushed the refactor/native-runtime-cleanup branch 9 times, most recently from ae21707 to 9100628 Compare June 16, 2026 07:02
@PsiACE PsiACE force-pushed the refactor/native-runtime-cleanup branch from 9100628 to 43bc6ec Compare June 16, 2026 07:07
@PsiACE PsiACE changed the title refactor: native runtime cleanup refactor: align native model streaming with envelope bindings Jun 16, 2026
@PsiACE

PsiACE commented Jun 16, 2026

Copy link
Copy Markdown
Collaborator Author

emmmm, I'll consider it after version 0.4.0.

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