Skip to content

Remove sentinel-based URL rewriting from WSON parsing #32

Closed

Description

@LunaStev

Problem

Manifest and lockfile parsing replace every :// sequence with a magic sentinel before calling wson_rs, then replace the sentinel inside parsed strings. A legitimate user value containing __VEX_WSON_URL_SEPARATOR__ or __VEX_LOCK_URL_SEPARATOR__ is therefore corrupted into ://.

The transformation is textual and applies before parsing, so it cannot distinguish string contents, comments, or syntax.

Expected behavior

Parsing must preserve every user string byte-for-byte while still supporting URL values.

Acceptance criteria

  • Remove collision-prone global string replacement.
  • Prefer a parser-level fix or a token-aware compatibility layer.
  • Preserve URLs, paths, descriptions, author fields, selectors, and arbitrary sentinel-like text exactly.
  • Keep manifest and lockfile diagnostics location-aware.
  • Add regression tests containing URLs, both current sentinel strings, escaped quotes, comments, and repeated separators.
  • Define the minimum supported wson_rs behavior or replace it behind an internal parser boundary.

Activity

  1. added
    bug
    technical debt
    stability
    on Sep 18, 2026
  2. LunaStev commented on Oct 2, 2026

    @LunaStev
    MemberAuthor

    Verified completed against master 67797f6415f640e8c33f9a072879124b83934f84.

    A shared token-aware WSON boundary removes collision-prone sentinel rewriting. Tests preserve literal sentinels, URLs, comments, quotes, and legacy backslashes. New escapes use the approved format-version boundary.

    Evidence: wson/src/lib.rs, tests/wson_compatibility.rs.

    Master CI run 36963423149 passed all eight jobs, including native Windows, macOS, and Linux tests. Closing as completed.

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

    bugstabilitytechnical debt

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions