Skip to content

Parse wavec dry-run JSON without first-brace last-brace heuristics #39

Closed

Description

@LunaStev

Problem

Vex extracts a dry-run plan by slicing from the first { to the last } in stdout or stderr. Any diagnostic, debug line, or path containing braces before or after the plan makes the selected slice invalid or combines multiple JSON objects.

The current noisy-output test covers extra text but not extra braces or multiple JSON values.

Expected behavior

Vex should consume an unambiguous machine-readable plan and reject ambiguous output with useful diagnostics.

Acceptance criteria

  • Define which stream carries the plan and whether it is one JSON document or JSON Lines.
  • Parse complete JSON values rather than brace positions.
  • Reject zero or multiple candidate plans explicitly.
  • Preserve compiler diagnostics separately from the plan.
  • Add tests for braces in logs, nested objects, multiple JSON objects, leading BOM or whitespace, and invalid UTF-8.
  • Keep schema-version mismatch guidance intact.

Activity

  1. added
    bug
    wave compatibility
    stability
    on Sep 18, 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

    bugstabilitywave compatibility

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions