Skip to content

Reject malformed compiler version tokens in doctor and version queries #166

Closed

Description

@LunaStev

Audited against merged master 13289d7a74ad45561554bbb6673a189dbb192a27 (PR #161).

Problem and reproduction

Compiler::version() verifies the wavec prefix and token count, then accepts any second token as the version.

A fixture returning wavec banana for --version and valid capability responses produces exit 0 from vex doctor --format=json outside a project. Its wavec check is ok, with version: "banana".

Scope and acceptance

  • Validate the version token as a semantic version before caching or reporting success.
  • Keep valid prerelease/development versions such as 0.2.1-pre-beta-dev working and preserve any currently supported trailing version description.
  • Do not apply Vex's release-only build-metadata prohibition to general compiler discovery as part of this fix.
  • Add malformed-token, missing-token, wrong-prefix and valid-prerelease fixture cases.
  • Doctor must report a failed compiler check for malformed output, rather than reporting the compiler as healthy.

Keep this change within compiler-response validation; no compiler download or compatibility-policy change is requested.

Starting points

This is a bounded follow-up suitable for a first contribution; no broader feature redesign is requested.

Activity

  1. added
    bug
    good first issue
    tooling
    on Oct 18, 2026
  2. self-assigned this
    on Nov 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

buggood first issuetooling

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions