Expand description
Native msgpack module for MessagePack encoding and decoding.
Exports: msgpack.encode(value), msgpack.decode(data), msgpack.encode_bytes(value), msgpack.decode_bytes(data)
Phase 1.B (ADR-006 §2.7.4) status: ALL FOUR FUNCTIONS REMAIN
DEFERRED pending the N4 (any-input typed marshal) and N6
(any-output typed marshal) architectural decisions per
docs/defections.md HashMap-marshal cluster’s sub-decision queue.
msgpack.encode(value: any)andmsgpack.encode_bytes(value: any)take a polymorphicvalue: anyinput parameter that maps to the N4 architectural surface. There is noFromSlotimpl for anany-typed input in the post-bulldozer typed marshal layer (ConcreteType::Anyexists as a RETURN type only).msgpack.decode(data: string)andmsgpack.decode_bytes(data: Array<int>)returnResult<any>— the decoded payload is a recursiveserde_json::Value-equivalent tree with no currentConcreteReturn::Anyrepresentation, mapping to the N6 architectural surface.
Until N4 + N6 land, the bodies use the variadic
register_typed_function shape (per ADR-006 §2.7.4 ruling) but
return Err(...) rather than emit a partial / unsound serializer.
The schemas + ModuleParam declarations remain so the LSP surface
is unaffected. New typed-marshal test fixtures arrive with the
shape-vm cleanup workstream.
Functions§
- create_
msgpack_ module - Create the
msgpackmodule with MessagePack encoding and decoding functions.