Skip to content

Extend Whale scalars and harden std, diagnostics and CI - #970

Merged
LunaStev merged 8 commits into
wavefnd:masterfrom
LunaStev:fix/eight-batch-correctness
Oct 21, 2026
Merged

LunaStev merged 8 commits into
wavefnd:masterfrom
LunaStev:fix/eight-batch-correctness

Conversation

@LunaStev

@LunaStev LunaStev commented Oct 21, 2026 •

Copy link
Copy Markdown
Member

Summary

Enable unsigned 8-bit char values and integer match in the opt-in Whale adapter. Harden source diagnostics, target filtering, native descriptor/status handling, WASI providers, byte-reader peeks and CI validation. Unconstrained array statements now receive a source error, and oversized POSIX descriptors cannot alias a different live descriptor.

Motivation

This PR contains exactly eight DCO commits, one per bundle:

Bundle Changes Issues
1 Typed char lowering and source-ordered scalar integer match Closes #878. Closes #882.
2 Accurate Whale capability queries, named diagnostics, README examples and multi-input output-preservation regressions Closes #885. Closes #886. Closes #887. Closes #894.
3 Correct I/O argument spans, concrete array-statement contexts and actionable selected-std recovery Closes #942. Closes #955. Closes #956.
4 Complete inactive private async removal and lexical trailing target-attribute comments Closes #950. Closes #951.
5 POSIX descriptor representability and target-specific continued/stopped/signaled status decoding Closes #936. Closes #908.
6 WASI symlink-follow lookup, bounded environment-buffer growth and wasm32 mapping-option validation Closes #937. Closes #938. Closes #943.
7 Non-advancing BE/LE u16/u32/u64 and ULEB128/SLEB128 reader peeks Closes #717. Closes #763.
8 JSON-object validation before runner creation and aggregated orphan case-directory diagnostics Closes #856. Closes #460.

Related: #773; this extends a verified subset, not full backend parity.

Target and compatibility impact

  • LLVM remains the default. Whale keeps --whale, Linux amd64/O0 textual IR and the official Git dependency locked to 9eed1958; no native or floating interpreter execution is added.
  • Char keeps Wave's existing unsigned 8-bit semantics. Match consumes validated HIR patterns and evaluates its scrutinee once.
  • POSIX range checks retain Windows HANDLE/SOCKET width and existing zero-length accumulation behavior. Wait-status predicates use each OS's encoding.
  • WASI byte-capacity retries have a provider status distinct from entry-count limits and native errors. Symlink lookup retains preopen containment. wasm32 accepts only its established read/write private anonymous mapping subset.
  • Workflow callers serialize absent matrix/dispatch-input contexts as {}; explicit non-object environment JSON still fails before runner creation. The actual shared matrix lane was replayed successfully with object-valued configuration.
  • Public std recovery preserves lookup precedence and invalid-tree rejection. Byte peeks preserve positions and failure outputs.
  • Existing LLVM/release targets, 0.0.1-alpha-dev, dependencies and the compiler/std license boundary remain intact.

Validation

  • Rust 1.89.0, Cargo --jobs 2, local LLVM 21: 493 tests across all 59 workspace/all-target suites passed. The workspace run and resumed suites cover the full set after adapting two existing provider mocks to the corrected contracts. Focused Whale checks passed 41 library and 24 CLI tests, included in that total.
  • Default workspace/all-target Clippy and AArch64-only workspace/all-target Clippy passed with -D warnings; the final Linux mock adaptation also passed focused Clippy.
  • 148 Python unit tests passed across CI, case manifests/contracts, release gates/publication, formatting, FreeBSD cache/VM reporting and Nightly policy; 8 Node output-host tests passed.
  • Native Linux descriptor alias protection and actual child stop/continue wait statuses passed at O0/O2. FreeBSD VM test15 passed actual kernel execution at O0/O2; local FreeBSD IR/object generation and static linking also passed.
  • Byte peeks executed on native Linux and bare wasm32, WASI Preview 1 and wasm64 at O0/O2. WASI tests cover real symlink chains/dangling links/preopen escape rejection, environments around and above 32 KiB, entry-count failure, and mmap rejection/reuse.
  • Rustfmt, touched-file function spacing, std policy, manifest validation and diff whitespace checks passed.
  • Canonical PR CI 39598627178 completed successfully: all 35 jobs passed on head d2f58962aecc272241ee5d4e130fa49cb171a005. This includes both macOS and both Windows build/test lanes, all case lanes, actual FreeBSD VM runtime tests and all packaging jobs. macOS actual stop/continue and native descriptor tests passed; Windows native I/O passed.
  • The real WASI environment fixture constructs the guest environment without clearing the host process environment, preserving Node discovery and avoiding Windows environment-variable length limits.

Checklist

  • Commits include a DCO Signed-off-by line.
  • Tests cover new behavior or the PR explains why no test is needed.
  • User-facing changes include documentation or diagnostics updates.
  • The change preserves the license boundary between the compiler and std/.

@LunaStev
LunaStev force-pushed the fix/eight-batch-correctness branch from 9331251 to f7e48cc Compare October 21, 2026 12:09
@LunaStev
LunaStev force-pushed the fix/eight-batch-correctness branch from f7e48cc to d2f5896 Compare October 21, 2026 12:18
@LunaStev
LunaStev merged commit 42b65e4 into wavefnd:master Oct 21, 2026
35 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment