Wave icon indicating copy to clipboard operation
Wave copied to clipboard

Do not silently ignore --std-revision when release asset validation omits --source

Open LunaStev opened this issue 3 weeks ago • 0 comments

Problem

The metadata/std revision check lives inside the optional source-validation branch. An explicit --std-revision request succeeds without inspecting any metadata when --source is absent.

Reproduction and evidence

Audited canonical master 69a67c6e0fb700f37ee6114f5a66d37ee13771a5 (0.0.1-alpha-dev). Matching checkout-built compiler/std were used for compiler probes on Linux amd64 with Rust 1.89.0 and LLVM 21.1.8. Artifact inspection, mocked/projection checks and foreign-target object emission are identified below and are not native execution on those operating systems.

Create nine disposable archive files and matching .sha256 sidecars with the version/target names expected by the manifest; intentionally omit all metadata. Run:

target/debug/wave-tools check release-assets --directory assets --version 0.0.1-alpha-dev --std-revision 999999

Observed: exit 0 and Verified 9 archives. This fixture checks flag handling, not package contents.

Scope

Either enforce the argument dependency explicitly or validate std metadata independently. A bounded fix can require --source whenever --std-revision is supplied.

Starting points: tools/src/checks.rs:98, tools/src/checks.rs:148.

Completion criteria

  • [ ] A requested revision check cannot be skipped with a successful verdict.
  • [ ] Incompatible argument combinations produce a clear usage/validation error.
  • [ ] Keep ordinary checksum-only checks and complete identity checks working.

This is a bounded newcomer task with the starting point and focused negative/positive checks above.

Related: #1000, #768. Related broad trackers or completed implementations are context, not claims that their entire scope is unfinished.

LunaStev avatar Nov 12 '26 12:11 LunaStev