Skip to content

Prototype unified wrapper composition, recursive trait peeling, and deep-unwrap #92

Not planned

Description

@clockblocker

Question

How should reflect-cpp unify wrapper composition so nested wrappers (rfl::Description, rfl::Rename, rfl::Attribute, validators, defaults) compose cleanly in any order with recursive trait peeling, ergonomic brace-initialization, and deep unwrap instead of outermost-only checks and triple .value().value().value() chains?

Evidence & Context

  • Parent map: Map (Lane 1): Core Hygiene & Perf
  • ccache#2: is_rename_v only inspects the outermost wrapper, breaking composed wrapper orders.
  • obs-websocket#1: Triple .value().value().value() unwrap chains and rfl::Description<..., std::vector<T>> rejecting {...} brace initialization.
  • cppcheck#3: is_attribute_v outermost-only check failing when composed with other wrappers.
  • Prior design overlap: Reconcile with #52 (rfl::unwrap) and #58 (TransparentWrapper).

Prototype & Measurement Plan

  • Prototype on: showcase/all-lanes.
  • Measure against real Showcase Migrations: Refactor wrapper declarations and call sites in obs-websocket#1 and ccache#2, verifying removal of .value().value().value() chains, {...} brace-init support, and order-independent trait detection with no compile-time regression.
  • 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):

    • Confirmed in obs-websocket/src/protocol/ProtocolTypes.h: stacked rfl::Description + rfl::DefaultVal + rfl::Validator wrappers require chained .value().value().value() access and reject bare {...} brace-initialization on rfl::Description<..., std::vector<T>>. Use ProtocolTypes.h as a direct verification target for deep-unwrap and brace-init ergonomics.
  3. clockblocker commented on Nov 27, 2026

    @clockblocker
    OwnerAuthor

    Closing as out of scope (deferred indefinitely — low/negative ROI). Broad wrapper rewrite is deferred until personally hit in an owned project. Recorded under ## Out of scope on Lane 1 Map #85 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