Skip to content

Harden Git dependency state, lockfiles, and release validation - #144

Merged
LunaStev merged 1 commit into
wavefnd:masterfrom
LunaStev:patch/package-manager-stability
Sep 23, 2026
Merged

LunaStev merged 1 commit into
wavefnd:masterfrom
LunaStev:patch/package-manager-stability

Conversation

@LunaStev

Copy link
Copy Markdown
Member

Summary

  • Harden managed Git commands and declared source identity, and keep checkouts detached at locked commits.
  • Publish lockfiles atomically and reject malformed v2 fields and dependency graphs before changing managed state.
  • Follow changed remote default branches during explicit updates and expand local-Git selector coverage.
  • Preserve existing release archives on failure, require exact binary versions, and verify the release commit's native CI before publication.
  • Refresh release documentation and add an explicit real-Wave package smoke script.

Why

Vex needs stronger dependency-state and release guarantees before adding more package-manager features. Inherited Git context, rewritten transport URLs, malformed lockfiles, interrupted writes, and stale or insufficiently validated release commits can otherwise undermine reproducibility and recovery.

Behavior

  • Git subprocesses remove repository-selection environment variables without stripping authentication, SSH, proxy, or ordinary user configuration. Origin validation checks the declared URL, including missing/ambiguous-origin errors, rather than the insteadOf-expanded transport URL.
  • Clean managed checkouts detach even when a branch already points to the locked commit. Already-detached matching checkouts retain the no-checkout fast path; dirty files remain protected.
  • Ordinary dependency reuse remains pinned. Only unresolved or explicitly updated selector-free dependencies refresh the advertised default branch. Tag and exact-revision selectors remain pinned.
  • Lockfiles are fully written and synced to an exclusive temporary sibling before replacement. Invalid v2 fields, conflicting selectors, duplicate edges, missing nodes, self-edges, and cycles fail without rewriting the file. Historical/future fixtures exercise migration, preservation, object IDs, and graph semantics.
  • Archive creation and verification finish before replacing an existing archive. Binary smoke compares the complete version value.
  • Release publication checks the exact commit's latest master-push CI attempt and all eight required jobs, then rechecks upstream master immediately before tag creation. Dispatches share a concurrency group across versions. The final check is not an atomic GitHub branch/tag transaction.
  • Missing or malformed projects are covered by status-order regression tests.

Scope and follow-ups

Closes #109
Closes #108
Closes #42
Closes #22
Closes #118
Closes #119
Closes #20
Closes #125
Closes #98
Closes #134
Closes #135
Closes #140
Closes #141

Validation

  • python3 x.py check — formatting, 23 Python tests, workspace Rust tests, warning-free Clippy, and workspace build passed; rerun before commit.
  • cargo test --locked, cargo clippy --locked --all-targets -- -D warnings, and cargo build --locked passed.
  • Workspace cross-checks passed for Windows GNU, Linux aarch64, and Linux riscv64; these are compile checks, not native runtime-test claims.
  • Linux amd64 release build, package version/help smoke, and SHA256SUMS verification passed.
  • Local Wave development-build smoke passed: PATH compiler selection without VEX_WAVEC, Hello World, path/transitive local-Git imports, public re-exports, private-symbol rejection, locked/offline reuse with the original Git source moved away, and raw-flag rejection.
  • Official wavec v0.2.0-pre-beta Linux artifact was SHA-256 verified; its canonical-import incompatibility was reproduced and documented, not treated as a successful full compatibility test.
  • The release gate was exercised read-only against upstream master 71f29da, CI run 35824820670, attempt 1. No release or tag was created.
  • git diff --check passed. Local .tmp design/progress notes and build artifacts are excluded.

Isolate managed Git commands, preserve declared source identity, detach locked checkouts, and refresh default branches on explicit updates. Atomically publish lockfiles and release archives, validate locked graphs and exact package versions, and gate releases on the exact upstream master CI results. Add regression fixtures, compatibility smoke tooling, and updated release guidance.

Signed-off-by: LunaStev <[email protected]>
@LunaStev
LunaStev merged commit fe40870 into wavefnd:master Sep 23, 2026
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment