Skip to content

Opt-in <rfl/error_format.hpp>: TreeFormatter, LeafHook, and RFC 6901 JSON Pointer #75

Not planned

Description

@clockblocker

Context

Consumers bridging reflect-cpp into TypeScript/Effect frontends, JSON-RPC servers, and human-facing CLIs frequently need:

  • Dot/bracket path formatting (users[0].address.zip)
  • RFC 6901 JSON Pointer formatting (/users/0/address/zip, escaping ~ / /)
  • Hierarchical tree error rendering grouped by shared path prefix, with an optional LeafHook callback Fn(const rfl::ErrorDetail&) -> std::string (matching Effect's TreeFormatter + LeafHook) and automatic line:col display when ErrorDetail::location is present.

Current Soaking Prototype

Implemented in fork PR #73 (error-ergonomics-and-format, stacked on main-based #70) with zero changes to rfl::ErrorDetail itself (if constexpr (requires { detail.location; }) for optional location formatting).

Scope & Sequencing

  • Fork-only tracking ticket — kept out of the initial upstream ErrorKind + ErrorDetail::code wave to keep upstream proposals small and focused; re-evaluate for a later opt-in upstream PR after core structured errors (#70 + code) land.

Activity

  1. added
    enhancement
    needs-triage
    wayfinder:prototype
    and removed
    enhancement
    needs-triage
    on Nov 27, 2026
  2. clockblocker commented on Nov 27, 2026

    @clockblocker
    OwnerAuthor

    Tracked as a Lane 5 Wayfinder prototype ticket under Map (Lane 5): Structured Diagnostics.

    • Showcase Migration evidence: osmium-tool#3 (needed a manual error_kind_name switch and concise [kind] path: message renderer, overlapping soaking PR #73).
    • Throwing Rocks execution: Prototype & refine <rfl/error_format.hpp> on showcase/all-lanes, validate by replacing osmium-tool#3's manual formatter, and run Judges (gemini-4-neon + claude-opus-5-5 high via antigravity delegates) before landing.
  3. clockblocker commented on Nov 27, 2026

    @clockblocker
    OwnerAuthor

    Closing as out of scope (deferred indefinitely — low/negative ROI). Full <rfl/error_format.hpp> error-format library is deferred until personally hit in an owned project. Recorded under ## Out of scope on Lane 5 Map #89 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