Skip to content

Coordinate project state and harden release readiness - #145

Merged
LunaStev merged 3 commits into
wavefnd:masterfrom
LunaStev:patch/release-readiness
Sep 25, 2026
Merged

LunaStev merged 3 commits into
wavefnd:masterfrom
LunaStev:patch/release-readiness

Conversation

@LunaStev

@LunaStev LunaStev commented Sep 25, 2026 •

Copy link
Copy Markdown
Member

Summary

Concurrent Vex commands can otherwise change dependency checkouts while a compiler reads them, and interrupted updates can leave a partially published graph. This change coordinates project state, publishes validated dependency transactions with recovery, and gives each run its own retained output generation so the state lock can be released before launching the program.

  • Hold a stable project lock from before the first lockfile read through compiler planning and compilation. Git/compiler children retain protection if the Vex parent exits; dry-run readers share the lock.
  • Stage and validate the complete Git graph before publication. Use a synced journal, backups, atomic renames and a lockfile commit point; ordinary commands recover interrupted publication, while dry-run reports pending recovery. Preserve dirty data and retain backups.
  • Validate targeted-update names against the current local graph without implicit network access. Require an explicit fetch when local sources are insufficient.
  • Separate compilation from execution using the structured compiler plan. Compile into a unique run generation, release the lock before spawn, preserve runtime arguments, and perform no automatic generation GC.
  • Introduce a shared token-aware WSON parser. Legacy backslashes remain literal; manifest format 2 and lockfile v3 enable JSON string escapes. Compatible --locked v2/v3 files retain their exact bytes.
  • Pin supported Rust, CI and release builds to 1.96.0; reject release build metadata; bundle third-party license texts and check their Cargo.lock fingerprint with CRLF normalized to LF, so Windows checkout line endings do not invalidate it.

The CLI and existing top-level crate boundaries remain intact, with new state and wson crates. Compatibility and migration details are in docs/release-readiness.md.

Validation

  • Full python3 x.py check: fmt, workspace tests (81 Rust tests), Clippy with -D warnings, and workspace build. The final notice addition passed the expanded 26-test Python suite (including LF/CRLF notice generation and detection of actual lockfile changes); expanded unchanged-lock recovery cases and workspace Clippy also passed afterward.
  • Process tests cover parent death during compilation, shared dry-run readers blocking a writer, nested Vex calls and build/update while a program runs, and retained run artifacts. Recovery tests exercise failures before/after publication, unchanged lockfile bytes, restart recovery, dirty candidates and unexpected lockfile deletion.
  • Workspace cross-checks passed for Windows GNU x86_64, Linux aarch64 and Linux riscv64. These are compile checks, not native execution results.
  • Linux amd64 optimized archive passed version/help smoke and checksum validation. The extracted binary passed real development-wavec smoke: PATH execution, Hello World, path/transitive Git imports, public re-export, private rejection, locked/offline preservation and raw-option rejection.
  • OSV querybatch API checked all 45 locked crates.io package/version pairs on 2026-09-25: no findings or continuation tokens. This used the live API, not a pinned advisory snapshot. Cargo.lock SHA-256: ac00ebd913aa2b50e612b23bc7e405742596f1b49ad60fcb5d754a05aa7165c4.

Remaining release gates

All eight hosted checks passed on 4892399 (CI run), including native Windows/macOS/ARM64 tests and RISC-V QEMU smoke. Windows checkout differences are covered by LF/CRLF notice tests and semantic migration checks; locked/reused lockfiles still require exact byte preservation. The local compiler was 0.2.1-pre-beta-dev; its exact build SHA is not established. The latest official Wave release remains v0.2.0-pre-beta, which lacks the required canonical package import support, so mandatory real-compiler CI remains deferred pending the next compatible official release (#66, #131). No release version is assigned and no release is published here. Run generations and checkout backups require deliberate cleanup.

The approved master ruleset was separately applied and verified: PR required, eight Actions checks, latest base, no force push/deletion, and no bypass actors, including administrators. That repository setting is not part of this source diff.

Related: #23, #44, #122, #32, #117, #136, #65, #115. This contributes to #75 and #79 without claiming their full release acceptance is complete.

@LunaStev
LunaStev merged commit 0f29f5e into wavefnd:master Sep 25, 2026
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant