Wave icon indicating copy to clipboard operation
Wave copied to clipboard

v0.2.1-pre-beta

Open LunaStev opened this issue 2 months ago • 0 comments

Motivation

Track the work included in or planned for v0.2.1-pre-beta, targeting October 5, 2026. This is the release tracking issue to pin; checked PR entries mean merged into the audited canonical history, not that a release has already been published.

The baseline is v0.2.0-pre-beta (bd5549bd99a6cd8372b6542b4170a2221bac85d0). Audited canonical master: e5c17efd0bf164c7fac81a26618ab6c200d5c68c on October 3, 2026. The merged list below was checked by Git ancestry against that baseline and the GitHub PR inventory, not inferred from issue closure or a recent date cutoff.

Scope

Stabilize the compiler, standard library, runtime boundaries and release validation. The requested platform scope is Linux amd64/arm64/riscv64/loongarch64; macOS amd64/arm64; Windows MSVC amd64/arm64; FreeBSD amd64; and wasm64. Native compiler distribution, code generation, ABI validation and actual runtime execution remain distinct claims. Existing wasm32 coverage is preserved during migration. Whale migration and additional OS targets are outside this release work selection.

Current tooling — updated after #1071

The Python orchestration layout previously recorded here is historical and has been superseded by PR #1071, merged November 2, 2026 as e40018fcfa1a6ab99acd24f7d729aaee3d59f5f7. #1054 completed the earlier x.py-to-Meson transition; #641 and #1070 are now completed as well. They are not pending invitations to restore Python helpers or add another test package.

Current responsibilities:

  • Cargo compiles Rust; Meson owns local build targets and suites.
  • tools/src/*.rs in the wave-tools crate owns shared execution, validation, packaging and publication contracts; tools/tests/*.rs holds the native tooling contracts.
  • .github/workflows/ci.yml, release.yml and nightly.yml declare explicit platform steps, dependencies, permissions and artifact transport. The old Python/JSON procedure interpreter and python3 -m tools.ci.* entry points have been removed.
  • Keep Meson's own Python runtime and the optional offline high-precision tools/generate_trig_vectors.py. Node hosts and required narrow PowerShell/standalone bootstrap adapters also remain.
  • FreeBSD compiler and validation executables build on Linux with pinned existing LLVM/runtime/sysroot inputs. The FreeBSD VM validates those artifacts; it does not install Rust/LLVM or build the compiler through Cargo/Meson.

Current local entry points include:

meson setup build -Dbuildtype=release
meson compile -C build release
meson test -C build --suite tooling --print-errorlogs
cargo +1.89.0 test --locked --jobs 2 -p wave-tools

The release checklist and PR inventory below retain their dated historical scope. This tooling refresh does not independently mark the whole release tracker complete or assert that its older pending-release statements describe the latest release state.

Release procedures cover gates, version checks, the target matrix, compiler builds, matching std/sysroot staging, Vex-compatible packages, archives, checksums and artifact metadata. Local artifact generation does not implicitly publish a release.

Nightly policy (#831): canonical master updates trigger common CI and packaging; only a complete successful generation updates the single nightly tag and Wave Nightly pre-release. Failed builds retain the previous usable generation. There is no cron schedule or dated-release accumulation. Release notes identify the exact SHA/build time/compiler version, and install.sh/install.ps1 exclude nightly, including explicit nightly requests. Manual download remains available. Late older runs cannot overwrite a newer published generation; uploads preserve old assets until promotion succeeds.

Selected Utils and AST work

  • [x] #835 — Integrate WSON into Utils and replace standalone JSON handling. Delivered in #837; shared APIs and serializers preserve existing JSON consumer contracts.
  • [x] #836 — Add S-expression AST dumps and WSON/JSON AST output. Delivered in #837 with the approved parsed-AST schema and output formats.

The selected WSON/AST and shared CI work was merged in #837. Rolling Nightly was merged in #839; its remaining packaging failures are part of the final stabilization batch below. Rust WSON source integration is retained; a Wave-built WSON dependency remains outside this release.

Historical Python CI and release implementation

  • [x] #824 — Define a shared target model for CI and release commands
  • [x] #825 — Move compiler builds and prerequisite checks into tools.ci.build
  • [x] #826 — Run target-specific regression stages through tools.ci.test
  • [x] #827 — Centralize policy and artifact gates in tools.ci.validate
  • [x] #828 — Build Vex-compatible release packages through tools.ci.package
  • [x] #829 — Move release planning and publication gates into tools.ci.release
  • [x] #830 — Consolidate build and case workflows into an orchestration-only ci.yml
  • [x] #831 — Publish a rolling Nightly pre-release after validated master updates

Newly reproduced audit findings

  • [x] #818 — Diagnose excessive expression nesting before the compiler stack overflows
  • [x] #819 — Honor stdin and expected exit metadata in cross-runtime case execution
  • [x] #820 — Require a checksum entry for every release archive (good first issue)
  • [x] #821 — Prevent FreeBSD validation reports from overwriting VM inputs
  • [x] #822 — Resolve x.py cleanup paths against the repository root (good first issue)
  • [x] #823 — Return a failure exit status for unknown x.py commands (good first issue)

Each issue distinguishes executed reproduction from source inspection and defines its own completion criteria. These are work items, not an assertion that every fix has already been implemented.

Existing related work and boundaries

  • #791 is selected below for native FreeBSD amd64 distribution. Runtime VM coverage alone does not complete this package contract.
  • #459 tracks shared-case runtime capability classification; #453 was delivered in #838; #451 remains a separate WASM capability-diagnostic issue. Earlier #817 runtime reports exposed 63 host-dependent shared-case failures per WASM target. They were explicitly deferred from #817; this roadmap does not authorize shims, passing exceptions or an unrelated takeover of #459.
  • #712 (native artifact validation after expected nonzero exits) and #813 (maintainer path normalization) were delivered in #838.
  • #641 was the completed Python test relocation, followed by the completed Rust consolidation #1070/#1071. Other historical related references (#426, #490, #769 and #771) are not automatic additions to this release batch.
  • Some issues fixed by #817 remain OPEN in the GitHub inventory. They are represented by the merged PR below, not mislabelled as untouched first-contribution work.

Final stabilization batch (PR #843; CI pending)

The following eight issues are assigned to @LunaStev. Implemented in PR #843 (f9e88182f5d8e7722462e95de416756718f14794). The initial CI run exposed seven failures; follow-up fixes are pushed and awaiting native CI validation. These entries remain unchecked until merge and required validation.

  • [ ] #791 — FreeBSD amd64 native compiler package, built and tested in pinned FreeBSD 14.4-RELEASE. Bundle LLVM 21, LLD and non-system runtime dependencies; keep base OS libraries external.
  • [ ] #530 — Fair Windows event delivery when ready registrations exceed output capacity.
  • [ ] #646 — Require smoke cases to belong to the target's selected suites.
  • [ ] #647 — Require exclusions to identify real case sources in selected suites.
  • [ ] #638 — Check DCO trailers on every commit in a patch series.
  • [ ] #639 — Restore patch-verification state on success, failure and interruption.
  • [ ] #652 — Align patch-verification Cargo commands with contributor checks.
  • [ ] #643 — Add focused browser/WASI smoke-host regression tests.

Additional release work in this batch:

  • [ ] Fix macOS versioned LLD provisioning and transitive dylib bundling, and the LoongArch LLVM/LLD build target.
  • [ ] Cross-build the RISC-V compiler and LLVM on amd64; use QEMU for target configuration and extracted-package execution. Cache the toolchain, generated headers and Cargo inputs; stream build output with elapsed times.
  • [ ] Validate all nine native compiler distributions in CI, release and Nightly: Linux amd64/arm64/riscv64/loongarch64, macOS amd64/arm64, Windows MSVC amd64/arm64, FreeBSD amd64. Unix archives use tar.gz; Windows uses zip. Require matching checksums and metadata for the entire generation.
  • [ ] Credit PR authors, commit authors and co-authors in generated release notes; compare the latest published versioned release with the exact validated SHA. DCO signers and reviewers alone do not receive authorship credit.
  • [ ] Set 0.2.1-pre-beta, verify compiler/std compatibility, and complete native package CI before the release cut.

The maintainer approved the FreeBSD 14.4 package baseline and bundling policy. wasm64 remains a compiler output target; no separate wasm SDK archive is planned. Local Python regressions and the Linux amd64 extracted package have passed. The new FreeBSD/RISC-V distribution paths and macOS/Windows native package execution still require CI evidence.

Integrated contribution PRs

No open contribution PRs remained at this snapshot. Closed originals are not counted as independently merged deliveries:

  • #797 and #796 — Integrated with contributor history in #839, then closed.
  • #691 — Generic shared-source selection is represented by #816; the original was closed without duplicate delivery.

Included merged PRs (85)

All PRs present after v0.2.0-pre-beta in the audited canonical history
  • [x] #330 — FUNDING.yml update
  • [x] #331 — Update README.md
  • [x] #332 — Harden semantic validation and preserve source diagnostics
  • [x] #333 — Harden target configuration validation
  • [x] #334 — Define the RISC-V 64 target contract
  • [x] #335 — Relicense the Wave standard library under Apache 2.0
  • [x] #336 — Reject mutations in condition expressions
  • [x] #337 — Complete RV64 psABI interoperability contracts
  • [x] #338 — Make architecture tests cross-target contracts
  • [x] #339 — Refresh repository presentation and contribution metadata
  • [x] #340 — Add Comment
  • [x] #341 — Remove let syntax and integrate v0.2.1 CI gates
  • [x] #342 — patchs mail update
  • [x] #343 — Stabilize cross-platform ABI contract tests
  • [x] #344 — Complete the Wave module import system
  • [x] #345 — Discover RISC-V Linux sysroots automatically
  • [x] #374 — Implement typed HIR variant frontend
  • [x] #387 — docs: add file I/O examples
  • [x] #418 — Position Wave as a modern evolution of C
  • [x] #419 — Preserve pointer depth in semantic validation
  • [x] #420 — ci: build every minimal LLVM target feature
  • [x] #421 — fix-byte
  • [x] #422 — feat(std): establish a portable versioned standard library foundation
  • [x] #438 — feat(std): overhaul portable networking through phase 2
  • [x] #446 — feat(frontend): enforce explicit types and typed HIR codegen
  • [x] #448 — feat(std): overhaul core utilities and debugging
  • [x] #456 — feat: complete WebAssembly and payload variant support
  • [x] #457 — feat: add platform case matrix and wasm64 support
  • [x] #474 — feat: expand native 64-bit architecture support
  • [x] #485 — docs: align CONTRIBUTING.md with current CI verification
  • [x] #502 — Expand FreeBSD sys support and strengthen platform regression coverage
  • [x] #520 — Add async execution, structured diagnostics, and distinct platform regressions
  • [x] #545 — fix: resolve #537 Allow the Wave case runner to show help before locating a compiler
  • [x] #546 — fix: bound JSON nesting depth to prevent stack overflow (#540)
  • [x] #569 — fix(codegen): support typed integer indices and restore strict Clippy
  • [x] #573 — test(regressions): support mixed Windows/Unix path separators in JSON assertions
  • [x] #574 — fix: stabilize linker outputs, test cleanup, and Darwin pipes
  • [x] #582 — test(msvc): inspect linker arguments in independence assertion
  • [x] #586 — fix(tools): validate corpus checker timeout as finite positive float (#585)
  • [x] #588 — fix(tools): restrict legacy platform metadata check to wave-test directives
  • [x] #589 — fix(tools): read test metadata as UTF-8 with path-aware decode errors
  • [x] #590 — fix(tools): treat explicit wavec overrides as authoritative in corpus checker
  • [x] #601 — fix: recognize all ASCII whitespace
  • [x] #602 — fix: preserve corpus timeout output
  • [x] #603 — fix: reject non-launchable wavec paths
  • [x] #604 — fix: resolve maintainers from repository root
  • [x] #605 — fix: normalize maintainer input paths
  • [x] #606 — fix: stabilize process streams, ARM64 LLVM ownership, and IOCP restart
  • [x] #630 — fix: make CI case results reliable and restore ARM64 validation
  • [x] #631 — fix: preserve numeric results, file data, and I/O deadlines
  • [x] #665 — fix: write case source-check reports atomically
  • [x] #666 — fix(tools): validate compiler path before checking case sources (#655)
  • [x] #667 — feat(msvc): add native build, SDK discovery, and COFF validation foundations
  • [x] #668 — fix(msvc): validate native Windows runtime and C ABI
  • [x] #675 — time: accept one to nine ISO 8601 fractional digits
  • [x] #686 — fix: resolve native CI regressions and preserve independent checks
  • [x] #687 — feat(windows): switch to MSVC and add native acceptance gates
  • [x] #689 — fix(tools): report invalid UTF-8 case manifests as CaseManifestError
  • [x] #698 — fix(ci): repair MSVC checks and preserve case execution reports
  • [x] #701 — Fix typed codegen and expand portable std capabilities
  • [x] #707 — Fix numeric lowering and standard-library boundary handling
  • [x] #722 — Align issue templates with existing issue style
  • [x] #723 — Fix frontend contracts and native regression tests
  • [x] #741 — Fix scalar I/O, constant lowering, and frontend contracts
  • [x] #742 — fix(std/fs): reject null write buffers before opening files
  • [x] #743 — Handle non-UTF-8 program output in the native case runner
  • [x] #744 — Record typed HIR conversions and add checked std operations
  • [x] #798 — Stabilize compiler inputs, target ABIs, and freestanding runtimes
  • [x] #799 — perf: avoid live-block scans in wasm allocator
  • [x] #800 — Fix native providers and add Darwin and FreeBSD runtime validation
  • [x] #801 — Fix std path, descriptor wait, and WASI clock boundaries
  • [x] #802 — Stabilize frontend semantics and std boundaries
  • [x] #803 — Fix native filesystem, memory, environment and CLI boundaries
  • [x] #804 — Stabilize constant expressions, std installation and platform boundaries
  • [x] #806 — Fix arithmetic runtime, platform errors, diagnostics, and trig accuracy
  • [x] #816 — fix(tools): complete generic shared runtime source selection
  • [x] #817 — Fix runtime boundaries and release validation gaps
  • [x] #833 — fix: fail on unknown x.py commands
  • [x] #834 — Harden validation, cleanup, and release asset checks
  • [x] #837 — Integrate WSON and parsed AST output with shared Python CI procedures
  • [x] #838 — Fix expression depth limits, WASI access checks, and validation diagnostics
  • [x] #839 — Publish rolling Nightly builds and complete Windows local IPC support
  • [x] #840 — Add ASCII-insensitive string equality
  • [x] #841 — Add reverse substring search
  • [x] #842 — Fix Nightly installer verification HTTP requests

Historical merge records requiring separate accounting

GitHub also records these PRs as merged during this release period, but their recorded merge commits are not ancestors of the audited master. They are listed for completeness and are not counted as independently delivered changes:

  • #486 — Fix parser regressions and native target CI (recorded merge 07b63448a3ba594a2e576803ea300eb1de953d8b).
  • #494 — Remove unrequested additions (recorded merge 529965209383ee18531bbb9cfe036742ea82be93).

Completion criteria

  • [ ] Resolve the selected release work with linked PRs, or record an explicit maintainer-approved deferral before the release cut.
  • [ ] Keep merged, open, superseded and deferred PRs distinct; update the inventory at the final canonical release commit.
  • [ ] Preserve supported target/ABI coverage and verify actual native/QEMU/VM/WASM execution separately from compile-only checks.
  • [ ] Verify the new CI and release entry points locally and in the intended runners; no required stage may silently disappear or pass without evidence.
  • [x] Vex metadata/layout and the frontend nesting limit were approved and implemented. Nightly follows the rolling master-build policy in #831; final packaging validation remains above.
  • [ ] Set the release version to 0.2.1-pre-beta, verify compiler/std compatibility, extracted packages, complete checksums/metadata, and canonical master immediately before publication.
  • [ ] Record final release notes and tag only after release gates and outstanding scope decisions are complete.

For items with unresolved design decisions, please mention @LunaStev to discuss the design before starting implementation.

LunaStev avatar Sep 30 '26 11:09 LunaStev