Skip to content

Complete eight follow-up bundles for Whale, diagnostics, std and CI - #1058

Merged
LunaStev merged 8 commits into
wavefnd:masterfrom
LunaStev:fix/eight-followup-designs
Nov 1, 2026
Merged

LunaStev merged 8 commits into
wavefnd:masterfrom
LunaStev:fix/eight-followup-designs

Conversation

@LunaStev

@LunaStev LunaStev commented Oct 30, 2026 •

Copy link
Copy Markdown
Member

Summary

Implement the eight approved follow-up bundles in eight DCO-signed commits. These changes fix reproducible scalar-lowering, diagnostic, nesting, std boundary, installation and CI-input failures while preserving the existing backend and release contracts.

Bundle Resulting behavior Issues
1 Adapt official format 8 and current interpreter diagnostics; execute exact-bit floating fixtures with shared resource limits. Closes #996, closes #997
2 Carry frontend-owned enum identities, values and conversions through Typed HIR; lower local pre/post increment and decrement with one evaluation. Closes #1031, closes #1032
3 Preserve duplicate-declaration provenance, immutable cross-file source snapshots, 160-cell grapheme-safe previews and bounded deterministic spelling suggestions. Closes #995, closes #1025, closes #1026, closes #1027
4 Enforce independent block/type/import limits and process accepted deep trees without increasing the OS stack. Closes #852, closes #1029
5 Validate descriptor representability and native sockaddr family/length, preserve zero-length Unix read semantics and reject MSG_PEEK in both exact-read APIs. Closes #988, closes #989, closes #990, closes #904
6 Validate POSIX PID ranges, reject invalid async timeouts before descriptor mutation and use target-correct overflow/timeout/connect-pending codes. Closes #991, closes #1003, closes #1005, closes #1006, closes #1010
7 Use per-root OS locks, monotonic subprocess/output budgets, descendant cleanup, link rejection and recoverable installation with directory identity checks. Closes #1015, closes #1016, closes #1017
8 Share a validated multiline environment codec, retry fixed-identity CI propagation without relaxing eligibility and validate all LLVM bundle links before use. Closes #999, closes #1018, closes #1020

Motivation

The linked issues cover source programs that were rejected by the Whale adapter despite supported scalar semantics, diagnostics that lost provenance or rendered unbounded lines, inputs that could exhaust compiler recursion, narrowing at OS boundaries, and installation/CI transactions that lacked agreed validation limits. The implementation follows the approved enum, diagnostic, nesting, socket, installer, environment-record, Nightly and LLVM-link policies.

Target and compatibility impact

  • LLVM remains the default and the existing --whale selection remains unchanged. The development version stays 0.0.1-alpha-dev; existing LLVM/release targets and installation/package layouts are preserved.
  • Whale retains the official master Git dependency and intentionally resolves a48f74addcd2ec776f33b67325bf6dfe8cfa15c8. Format-8 reader/verifier round trips and bounded scalar interpretation are tested; this does not add native Whale execution or full backend parity.
  • Enum backing types and conversions remain frontend decisions. Existing explicit enum representation syntax is retained. Unsupported lvalues and constructs remain source errors, with previous outputs preserved on failure.
  • Human previews are clipped in display cells; original byte offsets, source spans and JSON coordinates are retained. Expression/block/type/import limits are independent (128/128/128/512); no production stack limit is increased.
  • Windows SOCKET width is preserved. std exact reads now reject MSG_PEEK with EINVAL before consuming data or modifying buffers. std installation rejects all input links, whereas LLVM bundles permit only validated relative links terminating at regular files inside the bundle.
  • Nightly still requires successful canonical master push CI and every required job from that source's workflow contract. Failure, cancellation, skipped and timed-out jobs never qualify; only propagation snapshots are retried at 0/10/20/30/40/50/60 seconds.
  • Contributor-owned lexer-column scanning and std-example runtime contracts are excluded. Existing local experiments and local documentation are outside this PR.

Validation

Local checks used Rust 1.89, Cargo --jobs 2 and LLVM 21 (LLVM_SYS_211_PREFIX=/usr/lib64/llvm21).

  • 571 Rust regressions passed, combining cargo +1.89 test --workspace --all-targets --jobs 2 with final focused reruns of corrected/remaining targets. The initial workspace invocation stopped at an obsolete assertion that local increment was unsupported; that expectation was corrected, and the affected CLI suite, related unit/integration suites and all remaining test targets passed. This is an aggregate result, not a claim that one final uninterrupted workspace run passed.
  • Full Python tooling discovery: 434 tests, no failures, 34 conditional skips. Final environment/Nightly/LLVM-bundle changes: 49 focused tests passed.
  • Existing std native I/O regressions and six focused socket/PID/timeout/address/error-domain cases at both O0 and O2 passed on Linux amd64 using the checkout compiler and std.
  • Installed-tree rollback, lock contention/abnormal-exit recovery, symlink classes and late insertion, parent replacement, foreign staging preservation, subprocess time/output limits and abnormal exit regressions passed.
  • Accepted nesting boundaries were checked with the Linux compiler child's stack reduced to 1 MiB, including check/IR/AST paths; excessive depths remain located errors and cycles remain distinct.
  • Windows GNU, macOS and FreeBSD installer OS modules passed Rust metadata compilation. Native execution on those operating systems and remote CI have not been performed locally.
  • cargo +1.89 clippy --workspace --all-targets --jobs 2 -- -D warnings, cargo +1.89 fmt --all -- --check, touched Rust function spacing, std policy/API synchronization and git diff --check passed.
  • RUSTDOCFLAGS="-D warnings" cargo +1.89 doc --locked --workspace --no-deps --jobs 2 passed.
  • New Python modules passed Ruff lint/format checks. Existing touched Python files have no additional Ruff diagnostic categories/counts relative to the base; this is not a claim that unrelated pre-existing lint findings were cleaned up.

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/.

CI repair

Validation exposed four platform/concurrency paths:

  • Windows API fixture content retained CRLF while the workflow-contract parser assumed LF. Normalize CRLF before parsing, preserve all 50 required names and return a controlled error for a missing jobs section. LF/CRLF/mixed-ending and base64-API regressions continue rejecting skipped jobs.

  • Windows Clippy found a Unix-only mutable binding and duplicate Win32 file-information declarations with distinct Rust structure types. Share one API declaration/layout for installation and output protection, and confine builder mutability to Unix. No warnings are suppressed.

  • Linux parallel installer tests exposed lock retention after an error: closing the parent handle is insufficient while another descriptor retains its open-file description (as in the fork-to-exec window). Explicitly unlock in the transaction guard before closing the file. A deterministic regression retains a duplicate descriptor across failed validation and immediate retry; lock fixtures use the same guard. Existing busy/no-mutation, parent replacement and foreign-file preservation assertions remain enforced.

  • The native socket regression queried an unbound UDP socket, although Winsock getsockname requires a bound address. Bind explicitly to loopback with an ephemeral port before testing family rejection; still check EINVAL, output preservation and a valid nonzero local port. This corrects fixture setup without changing std's native error contract.

The failures were reproduced locally before their fixes. Validation after the fixes:

  • 104 focused CI/Nightly/environment/LLVM tests passed; the Windows Python stage also passed 368 tests after the line-ending repair.
  • All 24 driver/installer unit tests passed, including 10 consecutive runs at 24 test threads after the lock repair. This is stress coverage, not an inflated count of distinct tests.
  • Warning-denied workspace/all-target Clippy passed. A combined harness including the actual output-guard, installer path/process modules, lock guard and directory-builder functions passes warning-denied metadata/Clippy for both Windows x64 and ARM64 MSVC.
  • Rustfmt, parser Ruff, Python syntax and whitespace checks passed. Source/JSON coordinates, OS error contracts and strict CI eligibility requirements are preserved.

The final socket fixture passed all six local boundary cases at O0/O2, a focused rerun with the freshly built compiler, and x64/ARM64 Windows COFF object generation.

The changes are folded into their respective socket/installer/CI bundles, retaining exactly eight DCO commits. Final CI 41051527276 completed successfully for exact head f7ff92c54bf8b41c2877245788890935b4ca3ba1: all 50 jobs completed/success, including both Windows native build/test lanes, both macOS lanes, Linux validation and all distribution packages. There are no skipped, failed or unfinished jobs. The returned job-name set also matches the source workflow contract.

@LunaStev
LunaStev force-pushed the fix/eight-followup-designs branch 3 times, most recently from ceb8f7a to dd394a2 Compare October 30, 2026 11:38
@LunaStev
LunaStev force-pushed the fix/eight-followup-designs branch from dd394a2 to f7ff92c Compare October 30, 2026 11:55
@LunaStev
LunaStev merged commit baf9eb9 into wavefnd:master Nov 1, 2026
50 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment