Skip to content

Triage decision: Holoscan strict YAML 1.2 scalars, lexical numeric-kind, reserved envelopes, and DOM node budgets (out of scope) #131

Not planned

Description

@clockblocker

Part of #117

Context

Evaluated the remaining config-codec gaps cited in nvidia-holoscan/holoscan-sdk (src/config/reflect_backend.cpp, src/config/json_yyjson.cpp, src/config/reserved_envelope.hpp, src/config/yaml_scalar_policy.hpp) after landing the high-signal multi-consumer features (#123, #127, #128, #129, #119, #70, #120, #72).

Decision: Do Not Implement in reflect-cpp (Scope Creep / Wrong Layer)

  1. Strict YAML 1.2 scalar policy (yes/no/on/off/True/.inf/.nan/unquoted dates):
    • reflect-cpp is a binding layer over yaml-cpp (YAML 1.1); maintainer explicitly accepts yaml-cpp boolean behavior and does not modify third-party libraries. Consumers needing YAML 1.2 should use a YAML 1.2 parser library rather than re-lexing inside rfl::yaml::Reader.
  2. Lexical numeric-kind semantics (1 vs 1.0 vs 1e0, canonical f64 to_chars checks, rejecting JSON integers into double, and uint64_t in rfl::Generic):
    • RFC 8259 JSON makes no int/float type distinction; reflect-cpp intentionally converts integers to double (#549, TOML). Tracking raw source tokens (JsonSourceCursor) is deterministic-hashing policy, not generic struct serialization.
    • Adding uint64_t to rfl::Generic::ReflectionType would break exhaustive rfl::visit callers on rfl::Generic.
  3. Reserved-escape / typed-value envelope (reserved_envelope.hpp) & Holoscan-specific JSON glue:
    • Holoscan's canonical envelope format and holoscan::config::ConfigValue DOM are Holoscan-proprietary; Holoscan already uses yyjson + yaml-cpp directly (no nlohmann or shared third-party DOM adapter needed).
  4. Post-DOM max_nodes / max_string_bytes / max_container_entries budgets:
    • Underlying DOM parsers (yyjson_read_opts, YAML::Load, toml::parse) allocate the full DOM before reflect-cpp's Reader runs; checking node/byte budgets afterward does not prevent OOM DoS (callers should bound input byte size pre-parse, and typed structs already have rfl::Size<rfl::Maximum<N>>).

What Was Extracted (In-Scope)

Activity

  1. added
    wontfix
    on Nov 28, 2026
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

    wontfix

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions