This alpha, what changed, and what is next
0.4.0-alpha1 is an alpha that is not yet published: expect interfaces to change before 1.0, and pin the version. Beyond it, the upstream roadmap is a plan, and the proposals are proposals.
wireframe 0.4.0-alpha1 · samples verified 2026-12-02

Not yet published · targeted for 2 December 2026
In 0.4.0-alpha1
- Routing by message ID, the bundled
Envelopeand customPackettypes, and correlation IDs. - Pluggable framing through
FrameCodec, with length-delimited framing by default; preambles with a deadline. Transformmiddleware, connection setup and teardown hooks, and everyWireframeProtocolhook, fromon_connection_setuptoon_eof.- Streamed and multi-packet replies through
route_response, and server pushes through per-connection push queues and aSessionRegistry. - Codec recovery policies, consulted on every decoder failure.
- Transport fragmentation, protocol message assembly, and three-tier memory budgets.
- A client with correlated calls, streamed replies, streaming sends, hooks, tracing, and pools.
- The
testkitfeature and thewireframe_testingcrate.
A connection dispatches one request at a time. A live request body or a streamed reply occupies the dispatch slot, and pushes can slip between reply frames.
Since 0.3.0
What to act on
The migration guide lists every change. The ones most likely to surprise are those that still compile.
- A prepared application.
WireframeServer::newcalls its factory once per server run and shares the prepared application across connections. Per-connection state moves toon_connection_setup;WireframeServer::from_apptakes an application already built, andspawnreturns aServerShutdown. - Preamble deadlines. The preamble read has a 10-second default deadline, a preamble that encodes to no bytes reads nothing at all, and an error from the success handler now closes the connection.
- Bounded, exact decoding. The bundled bincode decoders cap peer-declared lengths at 16 MiB for messages and 1 KiB for preambles, and trailing bytes after an envelope are a decoding error.
- Binding totals and counted fragments. A declared
total_body_lenis a commitment, and fragment bytes count towards memory budgets. - Every hook runs.
before_sendruns once on every outbound frame, including each fragment, andon_command_end,handle_error, andon_eofnow fire too. Look for code that stood in for them. - Hook values.
ProtocolHooksis an enum; a struct literal becomesCustomProtocolHooks { .. }.into().ConnectionContextis#[non_exhaustive], and the protocol error parameter defaults toNoProtocolErrorrather than(). - Extractors and
app_dataremoved. ADR 0017 removes APIs no dispatch path ever called; capture shared state in the handler’s closure, as anArc. - Shutdown and teardown.
stop()closes idle connections. The listener closes when the last accept loop exits, and tracked tasks can still delay the drain. Teardown runs once after errors and handler panics, but not if the connection future is dropped or aborted. - Sessions and pushes.
SessionRegistry::insertreturns whether it published and refuses to replace a live entry, andtry_pushnow obeys the rate limit. - Metrics.
wireframe_connections_activecounts a connection from accept until its task ends, and an oversized frame’s codec error is nowframing, notio. - Pool limits. At most
max_waitersacquisitions may queue, closed pools say so, and interrupted work discards its socket. - Reassembly caps.
FragmentationConfiggainsmax_concurrent_partialsandmax_buffered_bytes, andReassembler::newtakes both. - Error enums.
ClientErroris now#[non_exhaustive], and it,ServerError,PushError,MessageAssemblyError, andReassemblyErrorgain variants. - No linger.
SocketOptions::lingerand the builder’slingerare gone;close().awaitis the graceful path. - Deprecations.
WireframeApp::handle_connectionandhandle_connection_resultrebuild the middleware chains for every connection. Prepare the application once and usePreparedApp.with_push_dlqis deprecated too; give the queue template adlqsender. - Dependencies.
metrics-exporter-prometheusandtracing-subscriberare no longer brought along at run time. Declare them if the application uses them.
In 0.4.0-alpha1 · new since 0.3.0
The connection, wired
Every server connection now runs its own connection actor, so the parts 0.3.0 shipped as building blocks reach the wire. The upstream roadmap’s phase 20, prepared applications and runtime ownership, is complete.
- Streamed replies.
WireframeApp::route_responsetakes aResponseHandlerthat returns aResponse: one frame, several, none, a stream, or a multi-packet channel, closed by the framestream_end_framereturns. - Streamed requests. Register a
streaming_routeto handle a request body in chunks. - Server pushes.
with_push_queuesgives each connection its own queues,on_connection_setupreceives itsPushHandle, andwith_session_registrylets any task find it. A frame a policy drops is counted bywireframe_push_drops_total. - Every protocol hook runs.
before_sendon each outbound frame,on_command_endafter each completed reply,handle_erroron a streamed reply’s protocol error, andon_eof, with the bytes that arrived, when a peer vanishes mid-frame. - Recovery policies. A
RecoveryPolicyHookis consulted on decoder failures, and each failure is counted bywireframe_codec_errors_total. With no hook installed, a failure still closes the connection.
Limits of this release
Before you build on it
Four things to plan around. The README lists them, and the users’ guide says how far each goes.
- Request streaming is opt-in. Ordinary routes receive buffered messages. Streaming routes bypass middleware.
- One request at a time. Other requests wait behind a live body or a streamed reply. Pushes can slip between reply frames.
- Idle peers stay connected.
read_timeout_msis a housekeeping interval, not an idle timeout, so bound quiet peers in the protocol. Shutdown closes idle connections. Tracked tasks can still delay the drain. - No built-in TLS. Terminate it in front of the server.
Proposed · none implemented in 0.4.0-alpha1
Seven proposals
Seven requests for comments describe where the runtime could go next. Their documents have merged; their runtime has not, and the roadmap calls them “proposed work, not shipped guarantees”. Each link is the proposal as it stands in 0.4.0-alpha1.
- RFC 0003, Native message adapter boundary. Keep the protocol’s identity: a typed boundary between native frames, application operations, and native replies, in place of mandatory envelope mapping.
- RFC 0004, Duplex session driver. Give each direction room to move: a full-duplex lifecycle for reads, dispatch, unsolicited output, streams, and bounded termination.
- RFC 0005, Negotiated transport entry points. Establish and transition connections, including negotiated upgrades and supplied streams, while keeping buffered bytes and transport ownership intact.
- RFC 0006, Configurable framing primitives. Small, bounded framing primitives for native codecs, such as fixed-width lengths, short headers, and delimiters, without protocol state machines in core.
- RFC 0007, Budgets, scheduling, and assembly. Capacity is part of the design: bound native frames, retained data, assembly, admitted work, and queued output across connections and streams.
- RFC 0008, External adapter conformance harness. Show the working: test generic APIs and bounded protocol toys through public connectors and independent byte oracles. It is explicitly not certification.
- RFC 0009, Datagram session transport. Expose packet boundaries and peer metadata to datagram adapters. Datagram boundaries and duplex progress are separate questions.




The first consumers proposed for these contracts are mxd serving Hotline, Modbus TCP, and a toy for the Agent Client Protocol. The toy is a prospective consumer test of bounded framing and duplex progress; it is not shipped, and the protocol’s own semantics stay outside wireframe.
Planned · upstream roadmap
Toward 1.0
- Zero-copy payloads through the public byte APIs. This is not in the alpha:
Serializer::serializestill returnsVec<u8>. - Alternative transports beyond raw TCP, a formal message versioning system, and built-in middleware or guides for TLS.
- Formal verification of message assembly and dispatch: bounded model checks with Kani, model checks with Stateright, and proofs with Verus.
Track the detail in the upstream roadmap and the changelog.
