Repository navigation
0.7.0 is the final planned pre-1.0 Rust-library source break. Library consumers must apply the
W10-094, W10-095, and W10-096 migration notes below before moving their dependency.
Generated output changes for every contract that uses @since, @unstable, or @deprecated:
regenerate and commit plain Rust, protobuf, JSON Schema, glue, and shared metadata together.
Contracts without stability annotations do not gain those comments or deprecation attributes,
but should still run every generator with --check. Invalid annotation versions newly fail
validation as documented under W10-094. Wire numbers and lockfile identity do not change.
Added
- Adopter & contributor documentation and dual GitHub/Pages link checking (
W10-091,W10-092):- Added
docs/guide/wiring.md(empty crate to compilingprost/protox
round trip, verified bywiring_guide_crate_generates_compiles_and_roundtrips, prebuilt
archive checksum/attestation verification, and--lock/--released/releasedoptions),
docs/guide/reference.md(complete CLI &witforge.toml
reference verified againstCli::command()), and
docs/guide/migration.md(per-release generated-output migration
index linking toCHANGELOG.mdsections). - Added
CONTRIBUTING.md, GitHub issue forms (.github/ISSUE_TEMPLATE/),
and.github/PULL_REQUEST_TEMPLATE.md; enabledjekyll-relative-linksindocs/_config.yml,
converted all internaldocs/links to.md, and added dual GitHub/Pages link and anchor
verification (documentation_links_and_anchors_resolve_on_github_and_pages).
- Added
- Structure-aware fuzz target, tracked seed corpus, and asserted invariants (
W10-089):- Added a tracked fixture-derived seed corpus under
fuzz/seeds/, a WIT keyword dictionary
(fuzz/wit.dict), and the structure-awarestructured-contracttarget exercising one-letter
and upper-case names, multiple.witfiles, anddeps/packages. - Updated
wit-packageandstructured-contractto assert full compiler invariants (generation
success across all four emitters, determinism, canonical/idempotent lockfiles, empty
self-diff, and two-version conversion) and added the matching fixed-seed property test
structured_contracts_satisfy_fuzz_invariantsto the stable suite.
- Added a tracked fixture-derived seed corpus under
- GitHub Action ref-pinned versions,
against/format/sarif-file/binary, annotations, and
failed-command(W10-086):- Non-tag refs (commit SHAs, branches, floating tags, and local
./) now install the workspace
version fromCargo.tomlin the Action's own tree instead of silently floating tolatest
(latestis installed only whenversion: latestis passed explicitly; missing assets fail
namingversion). - Added
against,format(human/json/sarif),sarif-file, andbinaryinputs plus
failed-commandandsarif-fileoutputs, pre-download input validation, bounded retries on
transient network/5xx errors (never retrying 4xx or checksum mismatches), archive/checksum
scratch cleanup, and GitHub workflow annotations (::error file=...,line=...,col=...::...)
on failing checks.
- Non-tag refs (commit SHAs, branches, floating tags, and local
- Atomic releases, SLSA build provenance, Linux arm64, archive licenses, and crate metadata
(W10-087,W10-090):- Reordered
.github/workflows/release.ymlso platform binaries (includinglinux/arm64/
aarch64-unknown-linux-gnu) are built, attested viaactions/attest-build-provenance, and
smoke-tested from workflow artifacts before publishing crates (using--no-verifyafter
verifying.crateSHA-256 digests against the unprivilegedverifyjob) or creating a
draft-first GitHub release without--clobber. The Action verifies build provenance with
gh attestation verifyon releases0.7.0+before extracting. - Normalized Windows runner scratch paths before GNU tar extraction so the required Windows
pre-publish archive smoke runs before trusted publication. - Corrected the immutable
crates-io-auth-actionv1.0.6 commit pin used for trusted OIDC
publishing. - Included
LICENSE-APACHE,LICENSE-MIT, andREADME.mdin every release archive, added
homepage/documentation/[package.metadata.binstall]crate metadata, excludedtests/
from the publishedwitforgelibrary crate, enabled GitHub Private Vulnerability Reporting,
documented the threat model and download verification inSECURITY.md, and ignored local-only
paths (/.private/,/.github-account) in.gitignore.
- Reordered
- CI concurrency, weekly schedule, pinned lint toolchain, and benchmark ceilings (
W10-088):- Grouped
mainCI runs per commit so no commit is cancelled while pending, pinned the gating
Rust lint toolchain (1.100.0) with a weekly scheduledfloating-stable+fuzz-smoke+
securityrun, removed retired self-hosted runner leftovers and unusedci/deny.toml
licenses, made everyci/*.shscript default scratch to${TMPDIR:-$HOME/.tmp}, cached
historicalbufbaseline binaries in manual CI only, and tightenedtests/bench.rsrelease
ceilings to ~10x hosted-runner baselines.
- Grouped
- Protobuf binary decode-compatibility view in
diff(W10-097):- Added a directional decode compatibility view (
new_reads_oldandold_reads_new) to
witforge diff, modelling two processes speaking the same major's protobuf schema over binary
encoding under the documented decode profile (distinguishingoption<T>and non-bytelist<T>
from required fields andoptional byteslist<u8>, closed enum/variant cases, flags,
functions, and parameters). - Extended
diff --check=<views>to acceptdecode(for example--check=decodeor
--check=wire,decode); bare--checkcontinues to gate onwire,source,apiwithoutdecode
by default. - Added additive JSON fields (
decode_breaking,new_reads_old,old_reads_newper change and
decode_breaking,new_reads_old_breaking,old_reads_new_breakinginsummary) and
additive library types/functions (diff::DecodeVerdict,diff::DecodeSummary,
diff::FullDiff,diff::compare_full).
- Added a directional decode compatibility view (
- Major-version boundaries, partial cross-major adapters, per-major dependencies, and version retirement (
W10-093):- Across a major-version boundary (
old.major != new.major),witforge rustno longer refuses
breaking changes: plain types for every live version are always written,convert.rsgenerates
adapters for every type that still converts, and non-convertible types (and types containing
them transitively) are omitted per direction with a deterministic sorted comment block at the
top ofconvert.rs. Intra-major incompatible evolutions remain refused (WF2002). witforge diffacross a major boundary now permits changed, added, removed, or upgraded
dependencies and reports the exact same per-direction omission set asconvert.rs(human
notes,--jsonconversion_omissions,WF3004notes in--format json|sarif, plus additive
library APIsdiff::ConversionOmission,diff::compare_omissions, and
diff::compare_with_omissions).- Pinned dependency-graph identity is now enforced per major rather than across majors: identical
dependencies stay at the sharedwitforge_deps::<ns>_<pkg>/<ns>.<pkg>.v<dep_major>paths,
while dependencies that change or upgrade across live majors are scoped per root major across
Rust, protobuf, JSON Schema, and glue. - Added
<name> retiredentries inwit/released(withReleasedManifest::is_retired,
retired_directories,live_directories, andvalidate_retirement_order): retiring a
contiguous oldest prefix of versions keeps their directories frozen on disk while removing them
from generated output (and drops a major's.protoand glue once all its versions are
retired).witforge freezeaccepts the one-waylive -> retiredtransition and refuses
un-retiring, removals, or edits to retired directories.
- Across a major-version boundary (
- Built-in release-freeze verification (
witforge freeze,W10-083):- Added
witforge freeze [<WIT_ROOT>] [--config PATH] [--project NAME] [--base REV]and the
witforge::freezelibrary module enforcing the Git-history release-freeze rule across
platforms (including shallow-clone refusal with exit2/WF9004,core.autocrlf=true,
full-history rename tracking stopping at copies, symlink/untracked/case-sensitivewire.lock
hygiene, multi-project config runs, and full violation collection underWF1109). - Reduced
ci/check-release-freeze.shto a thin wrapper overwitforge freezeand added the
freezeinput to the GitHub Action.
- Added
- High-level contract workflow commands and upward
witforge.tomldiscovery (W10-084):- Added
witforge generate,witforge new-version [--major],witforge release <WIT_DIR>,
whole-WIT-root and config-drivenwitforge check, and upwardwitforge.tomldiscovery
(stopping at.gitor filesystem root, with--no-configopt-out and safe preservation of
self-contained explicit CLI invocations).
- Added
- Build identity,
--quiet, per-viewdiff --check, shell completions, andexplain(W10-085):witforge --versionnow includes the short Git commit (and-dirtywhen tracked files have
local edits) on development builds, printing the bare version on exact clean release tags and
builds without Git metadata (with no embedded timestamps).- Added global
--quiet/-qto suppress human notes and summaries without suppressing errors,
changing exit codes, or modifying JSON/SARIF output. - Extended
witforge diff --checkto accept--check=<views>(wire,source,api,
comma-separated; defaults to all three) and mapped the GitHub Action'sdiff-checkinput onto
it. - Added
witforge completions <bash|zsh|fish>generated directly from theclapcommand tree,
andwitforge explain <CODE>backed bywitforge::diagnostic::explanationas a single source
of truth verified againstdocs/design/diagnostics.md.
Changed
-
Consumer-visible stability and deprecation metadata (
W10-094):- Added
Stability::Deprecatedwith the WIT introduction/feature origin, deprecation version,
and deterministic note. Invalid annotation versions are refused, and WIT-root checks plus all
generators verify@sinceagainst the first declaration when the claimed version is present. - Plain Rust now emits stability docs and
#[deprecated]; protobuf emits stability comments,
deprecated = trueoptions, and deprecated method-enum values; JSON Schema emits stability
descriptions and"deprecated": true. Generated Rust, prost, conversion, and glue code
compile under denied deprecation warnings without suppressing warnings in consumer code. diffreports introduction, unstable-feature, deprecation, and undeprecation changes as
non-breakingstability-changedentries in human and JSON output.- Library migration:
ChangeKindis deliberately exhaustive and gains the final pre-1.0
StabilityChanged { from, to }variant; exhaustive 0.6 matches must add that arm for 0.7.
Matches onStabilityalready require a wildcard because it is#[non_exhaustive].
- Added
-
Extensible library data types and a machine-checked public API inventory (
W10-095):- Marked every public struct and enum in
model,lock, anddiagnostic
#[non_exhaustive], and added constructors for model values, lockfile inputs, source
positions, and related locations. Downstream exhaustive matches now require a wildcard arm,
and downstream struct literals must use the documented constructors,Default, parsers, or
builders. - Added a pinned-rustdoc, machine-checked inventory of every public item, field and function
signature, variant, associated item, explicit trait implementation, and extensibility
attribute. Through the 0.7.0 tag commit, the gate requires the complete API delta from 0.6.0
to equal the reviewed pre-1.0 inventory, while cargo-semver-checks separately requires its
detected failures to equal the checked exception. On descendants of the tag, the tag's
inventory becomes the signature-aware baseline: removals and type/signature changes fail,
while reviewed additive entries remain possible. Removed the unused
emit::output::absolutefunction and made the four internal model size-limit constants
private. - Library migration: this is the planned pre-1.0 source break. Search library consumers for
struct literals ofwitforge::model,witforge::lock, orwitforge::diagnosticvalues and
for exhaustive matches on their enums; replace literals with constructors and add wildcard
match arms. Replace any use ofemit::output::absolutewithstd::path::absolute, and do not
depend on the former internal model limit constants.
- Marked every public struct and enum in
-
Library-owned check/lock workflows, in-memory loading, and typed findings (
W10-096):- Added
SourceFile/load_sourcesfor deterministic in-memory root and textualdeps/
packages with physical source names and positions, and moved single-version/rootcheckplus
side-effect-free lock reconciliation intowitforge::workflow.LockReportexposes canonical
text and writes only through an explicit method; the CLI retains configuration parsing,
rendering, and exit-status policy. - Replaced generator
Vec<String>drift results withGeneratedFileFinding/
GeneratedFileStatus, and replaceddiff::Change.element: StringwithChangeElement.
Generated-output paths and diff categories are now typed end to end; the CLI no longer derives
structure from message text. Human, JSON, and SARIF output remain unchanged. - Library migration: callers of emitter
checkfunctions inspect each finding'spathand
status(or callmessage/diagnostic) instead of parsing strings. Diff callers match
ChangeElementinstead of comparingChange.elementwith string literals.witforge.toml
remains a CLI-only configuration model; library/build-script callers pass options directly.
- Added
-
Source positions, SARIF 2.1.0 physical/logical/related locations, and public diagnostic guide (
W10-080):- Structured diagnostics (JSON and SARIF) now report physical file paths (cwd-relative with
/
or percent-encodedfile:///URIs outside cwd, never..or Windows\\?\), 1-based UTF-16
line/column ranges (handling tabs, BMP/supplementary characters, CRLF, and leading UTF-8 BOMs),
logical/logicalLocations,related/relatedLocations(pairing WIT declarations with
their conflictingwire.lockline), SARIF ruleshortDescription+helpUripointing at
the new publicdocs/guide/diagnostics.mdreference, renderedwit-parsererror snippets,
and exit-aligneddiffSARIF levels (warningon zero-exit runs,erroron failing gates).
- Structured diagnostics (JSON and SARIF) now report physical file paths (cwd-relative with
-
Per-rule diagnostic codes and cross-command machine-readable parity (
W10-079):- Subset violations previously reported under the single umbrella code
WF1001are now split
into one stable code per rule (WF1010–WF1030;WF1001remains for unrecognised constructs
and is recorded in the Prior column ofdocs/design/diagnostics.mdbeside every split
code). Consumers filtering JSON or SARIF reports onWF1001should update filters to the
specificWF1010–WF1030codes or match theWF10prefix. - Generators (
rust,proto,schema,glue),diff,check, andlocknow emit the same
diagnostic code, path, and message for every contract violation, and preserve multiple
violations as separate diagnostics instead of joining them with"; "into a singleWF9000. WF9000is now strictly reserved for internal compiler errors. Usage/argument errors emit
WF9001(including early argument-parsing errors when--format jsonor--format sarifis
present on the command line, printed to stdout with exit2), filesystem/I/O errors emit
WF9002, WIT/lockfile/manifest/config parse errors emitWF9003, and safety-guard/freeze
refusals emitWF9004.lock --againstandcheck --againstnow both emitWF1002for a foreign-package lockfile,
withpathnaming the offending file (the current lockfile or the baseline file).diff --json --format sarifsuppresses the diagnostic envelope on both success and error so
--jsonalways takes precedence.
- Subset violations previously reported under the single umbrella code
-
Output mode preservation, unchanged-file skip, and
--check/--diffexplanations (W10-076):- Generators now skip rewriting expected files whose on-disk bytes already match (preserving
inode, modification time, and permissions), preserve replaced files' permission bits during
atomic replacement, use process-unique temporary siblings (.witforge.<name>.<pid>.<seq>.tmp)
so concurrent runs into one root do not delete each other's temporaries, and ignore unreadable
unrelated files. --checknow names the regenerating command (preserving--config/--projector explicit
paths) and prints the first differing line or acore.autocrlfCRLF-only hint for changed
files. All four generator commands gain--diffto print a unified diff without changing exit
status.
- Generators now skip rewriting expected files whose on-disk bytes already match (preserving
-
Stricter version-directory discovery, UTF-8 BOM handling, and config path guards (
W10-082):- Version-like entries starting with
v/Vfollowed by a digit that are not canonical
v<major>.<minor>directories (v0.2.0,V0.2,v0.2-rc1,v00.2,v1, non-directories)
are refused instead of silently skipped. wit/releasedaccepts a leading UTF-8 BOM; WIT parse errors note when a file begins with a
UTF-8 BOM;witforge.tomlrefuses a leading UTF-8 BOM and refuses unexpanded shell paths
(~,$VAR,%VAR%).
- Version-like entries starting with
-
Accurate error remedies and runnable commands (
W10-081):- Reversed
diffendpoints report the versions in the right order with a quoted runnable command;
every missing/stale lockfile hint quotes paths and prints a runnable--firstor--against
command;checkandlockon a WIT root list the discovered version directories with a
runnable example command.
- Reversed
-
Specified
--serdeformat-independence,serde_jsonlimits, and JSON names (W10-071):- Documented
--serde's format-independent derives, exact Rust-spelled JSON keys (self_,
type, folded upper-case names,"DoneNow", variant/flags/byte-list/result encodings),
differences from JSON Schema reading rules andconvert.rscross-version defaults, and exact
serde_jsonlimitations (Some(None)on nested options, non-finite floats), pinned by an
expandedserdefixture and compile/round-trip test.
- Documented