Skip to content

Support reproducible Wave artifacts across source and build directory locations #182

Open

Description

@LunaStev

Planned for v0.0.3-beta; reviewed against master cd13f1d9c244cfdb207f38412db6c513bd5fd543.

Vex fingerprints local inputs for safe reuse, but cache correctness is separate from producing identical distributable bytes in different directories. Whale needs portable module artifacts and provenance from independent builds.

Acceptance:

  • Define typed reproducibility/path-remapping settings backed by verified wavec capabilities. Document which fields are supported and reject unsupported settings before compilation.
  • Apply settings consistently to sources, generated/intermediate paths and debug/source paths where supported; retain usable diagnostics and local dependency files.
  • Keep portable provenance free of accidental source/build/cache-home paths. Local depfiles and diagnostic paths may remain absolute under their own contracts.
  • Include effective settings, compiler/std identity, target/profile/features and relevant tool identity in freshness/results. Cache keys need not be identical across directories.
  • Build the same fixture from two separate source and build roots and compare complete artifact bytes and portable records, including paths containing spaces/Unicode.
  • Explain remaining external linker/SDK/archive inputs; fail or report unsupported reproducibility guarantees instead of treating one matching hash as universal host support.

This extends #48/#59/#70. Wave compiler functionality missing from its public contract must be tracked as an explicit prerequisite, not emulated with unvalidated flags. Static-archive determinism belongs with the archive-output issue.

Starting points: profiles, invocation, freshness.

Integration dependencies: #181.

Activity

  1. self-assigned this
    on Nov 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions