Skip to content

Map (Lane 5): Structured Diagnostics #89

Backlog
3 of 3 issues completed
Backlog

Description

@clockblocker

Destination

Complete machine-readable structured diagnostics (ErrorKind, ErrorDetail::code, variant branch causes) on showcase/all-lanes so RPC servers and CLIs never parse error message strings.

Phase 1 Status: COMPLETE (fork/showcase/all-lanes d0f1fca1 · 0/3 open child tickets). Phase 2 active in Wave 4 (#70 + error-detail-code from #104 in PLANNED_PR_WAVES.md).

Notes

  • Parent map: Map: Close reflect-cpp Adoption Gaps into showcase/all-lanes.
  • Phase 2 mapping (PLANNED_PR_WAVES.md):
    • Wave 4 (Structured Diagnostics): #70 (error-kind, 6736d814, SHIP AS-IS — zero-alloc inline 10-value uint8_t, variant microbench neutral) + extract error-detail-code from #104 (stacked on #70).
    • Parked in #116 (Easy & Landable): #74 (ErrorDetail::causes, showcase/all-lanes 2b1fdb9b), #105 (nlohmann::Reader ErrorKind), #112 (xml::Reader ErrorKind).
    • Parked in #117 (Moonshots): #75 / #73 (<rfl/error_format.hpp> library, closed/preserved), #42–#45 (YAML SourceLocation / SourceMap / NoDuplicateKeys / SequenceErrors, closed/preserved).
  • Phase 1 Showcase Evidence (archived research artifacts):
    • clockblocker/obs-websocket#1 (14aefd0): src/protocol/RequestCodec.h verified 402/403 mapping via ErrorDetail::code (#104) with zero string matching (3/3 CTest / 789 assertions).
    • clockblocker/transmission#1 (6478ae0d0): 31/31 CTest/GTest with pure reflect-cpp JSON-RPC 2.0 dispatch.

Decisions so far

  • Prototype ErrorDetail::code vocabulary and validator rule-ID propagation: Landed zero-size-growth ErrorDetail::code + Error::code() (6966dec6, built-in validator rule IDs, rfl::error(..., code) & static V::code hooks, OneOf double-catch fix); verified obs-websocket 402/403 mapping with zero string matching (3/3 CTest / 789 assertions). Scheduled for Phase 2 Wave 4 (error-detail-code, stacked on #70).
  • Add additive ErrorDetail::causes for per-branch std::variant / AnyOf failures: Landed trailing defaulted std::vector<ErrorDetail> causes = {}; with 1-cause-per-alternative structured trees in std::variant, rfl::Variant, rfl::AnyOf, and Size/CodePoints<AnyOf> on showcase/all-lanes (2b1fdb9b, dual-Judge approved, unchanged sizeof(rfl::Error), zero-alloc leaf/happy paths). Parked in #116.

Not yet specified

  • Phase 2 Wave 4 extraction: Carve clean main-based error-detail-code PR from #104 (6966dec6) stacked on #70.

Out of scope

Sub-issues

Sub-issues

3 of 3 Issues completed
Loading 3 sub-issues

Metadata

Metadata

Assignees

No one assigned

    Labels

    wayfinder:map

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions