Skip to content

Prototype cross-format rfl::json::Raw interop with rfl::nlohmann and MsgPack #96

Not planned

Description

@clockblocker

Question

How should raw/pass-through JSON payloads (rfl::json::Raw or a format-agnostic raw trait/bridge) interoperate with rfl::nlohmann::Reader/Writer and rfl::msgpack so structs containing opaque payload fields can be reused across JSON, nlohmann::json, and MsgPack without hitting static_assert?

Evidence & Context

  • Parent map: Map (Lane 2): JSON / RPC & Format Interop
  • obs-websocket#1: rfl::json::Raw currently static_asserts outside rfl::json, blocking reuse of protocol structs shared across rfl::json, <rfl/nlohmann.hpp>, and MsgPack.

Prototype & Measurement Plan

  • Prototype on: showcase/all-lanes — prototype an rfl::nlohmann::Reader/Writer bridge and MsgPack interop (or format-agnostic raw value trait) without breaking zero-copy rfl::json::Raw performance.
  • Measure against real Showcase Migration: Validate in obs-websocket#1 by unifying duplicated DTOs/adapters across JSON, nlohmann::json, and MsgPack paths.
  • Judges & landing: Run Judges (gemini-4-neon + claude-opus-5-5 high via antigravity delegates) on the prototype diff and measurements; if green, hand to coordinator to land on showcase/all-lanes.

Activity

  1. added
    wayfinder:prototype
    on Nov 27, 2026
  2. clockblocker commented on Nov 27, 2026

    @clockblocker
    OwnerAuthor

    Landed Showcase Confirmation (clockblocker/obs-websocket#1, 14aefd0):

    • Exact failure site pinned: include/rfl/json/Raw.hpp:109 (static_assert) rejects rfl::json::Raw outside rfl::json, preventing reuse of envelope/passthrough structs across rfl::json, <rfl/nlohmann.hpp>, and MsgPack in obs-websocket#1.
  3. clockblocker commented on Nov 27, 2026

    @clockblocker
    OwnerAuthor

    Closing as out of scope (deferred indefinitely — low/negative ROI). Niche rfl::json::Raw × rfl::nlohmann/MsgPack glue is deferred until personally hit in an owned project. Recorded under ## Out of scope on Lane 2 Map #86 and Umbrella Map #84.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    wayfinder:prototype

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions