Skip to content

witforge 0.6.0

Choose a tag to compare

@github-actions github-actions released this 21 Nov 22:45
· 78 commits to main since this release

0.6.0 publishes the post-0.5.0 assurance work, the complete second-audit remediation for wire
identity, generated-code compilation, and tool safety, and the generated-output improvements for
clean Rust (rustfmt, default Clippy, -D missing_docs), hardened convert.rs, and complete
JSON Schema result shapes. The public witforge library API stays minor-compatible with 0.5.0
and MSRV remains Rust 1.88.

Generated output changes for every existing consumer (ownership headers, Rust formatting and
fallback doc comments, and, where applicable, upper-case Rust identifiers, doc-comment
normalization, JSON Schema result/f32, protobuf cross-package references/imports/wrappers,
convert.rs error fields, and multi-file ordering), and several previously accepted invalid or
ambiguous contracts and lockfiles are now refused. Read the migration section below before moving
a release pin and regenerating committed outputs.

Migration

Every change in 0.6.0 that alters generated output or refuses a previously accepted contract or
configuration, and how to tell whether your contract is affected:

  • Contract-scoped ownership headers and distinct output roots (rust, proto, schema, glue):
    Every generated file now opens with // @generated by witforge (<gen>, <pkg>); do not edit.
    (or {"$comment":"@generated by witforge (schema, <pkg>); do not edit.", for JSON Schema).
    How to tell: every existing consumer's --check fails on pre-0.6.0 output once until you
    regenerate (generation automatically adopts files with the legacy shared header), and any
    consumer script that asserts the exact first line (such as a hand-written ownership check) must
    match the new per-generator header. Any witforge.toml whose out paths coincide or nest, or
    whose output root resolves to an ancestor of or overlaps the WIT root or any released directory,
    now exits 2 before writing.
  • Generated Rust formatting, fallback doc comments, unit signatures, and type-only interfaces:
    Generated Rust now matches default rustfmt (Editions 2021 and 2024), passes default Clippy,
    documents every public item (-D missing_docs), omits -> () on unit-returning trait methods,
    and stops emitting an empty trait for type-only interfaces (zero functions). How to tell:
    every generated Rust file updates once on regeneration; compile your consumer crate after
    regenerating to find any reference to an empty trait for a type-only interface (such as
    types::Types) and remove it. If your crate uses non-default rustfmt.toml settings, keep
    #[rustfmt::skip] on the module including the generated tree.
  • WIT documentation normalization, escaping, and placement: Package, world, and
    dependency-interface docs are now emitted, .proto interface docs move above
    enum <Interface>Method, control/line-separator characters are normalized, and code blocks,
    <...>, and non-external [...] links are escaped for rustdoc. How to tell: regenerate and
    inspect diffs on any contract whose .wit files carry package, world, interface, or
    Markdown-special doc comments.
  • Plain Rust identifiers for upper-case WIT words: Upper-case words now fold to idiomatic
    Rust casing (URL -> url, HTTP-api -> http_api / HttpApi, HTTP -> Http,
    interface API -> mod api and trait Api), and --serde JSON keys follow those plain Rust
    spellings. .proto and JSON Schema names do not change. How to tell: search your .wit
    files for ASCII uppercase letters ([A-Z]) in interface, type, field, case, flag, parameter, or
    function names, and check for compiler errors or changed --serde keys after regenerating.
  • ConversionError now carries from and to fields: In generated convert.rs,
    ConversionError::MissingMember and ConversionError::UnknownCase gain from: &'static str
    and to: &'static str. How to tell: search consumer crates that include convert.rs for
    ConversionError::MissingMember or ConversionError::UnknownCase; destructuring patterns
    without .. fail to compile until from, to, or .. is added.
  • JSON Schema result forms and f32 bounds: Every result form (result<T>,
    result<_, E>, bare result, result<T, E>) now emits a closed oneOf of {"ok": ...} and
    {"err": ...} with {"type":"null"} for payload-less sides, and f32 adds finite min/max
    bounds. How to tell: search .wit files for result<_,, single-argument result<T> (no
    comma), bare result, or f32, or inspect the diff of regenerated *.schema.json files.
  • Byte-list aliases (list<byte> -> bytes / Vec<u8>): Any list<T> whose resolved
    element type is u8 (including local, use ... as ..., and dependency aliases) now projects
    to protobuf bytes, Rust Vec<u8>, and JSON Schema 8-bit integer arrays instead of repeated uint32 / Vec<Byte>. How to tell: regenerate and check for .proto fields changing from
    repeated uint32 to bytes or Rust fields changing from Vec<Alias> to Vec<u8>. Mixed
    deployments agree on values < 128 and disagree on values >= 128.
  • Protobuf cross-package references, unused imports, and structural wrappers: Cross-package
    .proto references gain a leading dot (.namespace.name.v<major>.<Type>), unused dependency
    imports are dropped, unreferenced named list/option/result types now emit their wrapper
    messages, and dependency structural wrappers are owned by the dependency package that writes the
    shape. How to tell: regenerate .proto and glue for any contract with deps/ or named
    list/option/result definitions; binary descriptors are unchanged for existing fields.
  • Multi-file WIT deterministic declaration order: Multi-file version directories and deps/
    packages now load *.wit files in ascending file-name byte order. How to tell: only
    contracts with more than one .wit file in a version directory or deps/ package are affected;
    wire numbers and wire.lock entries are unchanged, and generated files may reorder declarations
    once on regeneration.
  • Glue requires absolute --plain-root and --proto-root: Relative paths (self::...,
    super::...) and unprefixed generated module names (v<major>, witforge_deps, etc.) now
    exit 2. How to tell: check --plain-root / --proto-root flags and witforge.toml
    plain_root / proto_root keys; rewrite relative paths to crate::... or ::crate_name::....
  • GitHub Action diff-old, diff-new, diff-check, and github-token inputs: Releases
    through v0.5.0 ignored these inputs. How to tell: grep workflow files for diff-old: or
    diff-new: on asamarts/witforge@; moving to v0.6.0 starts executing
    witforge diff ... --check (which fails on source-breaking changes such as added record
    fields) unless you set diff-check: "false".
  • Unreleased lockfiles require a complete # witforge order v1 section: Every mode (check,
    check --first, check --against, and all generators) refuses an unreleased wire.lock
    missing or omitting entries from # witforge order v1 with exit 1. Released lockfiles written
    before the section existed remain accepted and unmodified. How to tell: run
    witforge check <version-dir>; if an unreleased draft predates order fingerprints, run
    witforge lock <version-dir> once to append # witforge order v1 without changing wire numbers.
  • Stricter check, lock, and generator refusals (including frozen released directories):
    witforge check now refuses every generator-only collision (WF1003: type/trait, functions /
    witforge_value / UNSPECIFIED / Empty, Request/Response, ASCII case, prost identifier
    and accessor, dependency module/filename, and synthesized wrapper collisions), non-<major>.<minor>.0
    deps/ versions, named interface imports/exports, unsupported annotations, type expansion
    beyond 32 levels / 32 alias links / 1024 bytes, --first/--against predecessor skips,
    symlinks inside listed wit/released directories (exit 2), and three conditions that can make
    an already-released, frozen directory unusable because it cannot be edited in place:
    1. a lockfile parent mixing live and reserved member kinds (e.g. a released type that changed
      kind, W10-045);
    2. a dependency graph pinning two versions of one namespace:name or reusing the root package
      name (W10-047);
    3. a lockfile violating the documented grammar (W10-053, see docs/design/lockfile.md
      section 17).
      How to tell: run witforge check and your configured generators with --check against every
      version directory. No repository fixture, example, or alint contract hits these frozen-directory
      refusals; any affected contract recovers by cutting a new version with a fresh type name or
      single pinned dependency version.

Added

  • Added the cargo-fuzz harness (fuzz/) for WIT and lockfile inputs with CI, Dependabot, and
    security-gate integration, expanded property-test and conversion/dependency/diagnostic coverage,
    and added two-version diff and conversion benchmark budgets.
  • lock --against restores a released member that the current draft removed when the source
    adds it back with the baseline's number, kind, and type. The entry is un-reserved rather than
    refused as a reintroduction; restoring a different kind or type, or a member already reserved
    in the baseline, is still refused. Without --against the reintroduction message points at
    the baseline option.
  • proto reserves every old member of a type whose kind changed, not only entries of the
    current kind, using the name the old projection gave it. A removed interface keeps its
    method-id enum with UNSPECIFIED and its reserved method ids and names, because the per-major
    proto file is shared by every minor of the major.
  • diff reports a non-defaulted required record field addition as a conversion-generation
    blocker in human, --json, JSON diagnostics (WF3004), and SARIF output. The note is
    informational; compatibility counts and exit codes are unchanged.
  • CI checks generated-output documentation snippets and README/docs/Action current-version
    references.
  • The test suite runs the command sequences of the README, the quickstart, and the evolution
    guide as written, and cargo test runs the release-script cases and the Action's unit tests.
  • Added a shared prost-build 0.14 / pbjson-build 0.9 compile-and-round-trip test harness
    (crates/witforge/tests/support/mod.rs) and compile_matrix integration suite covering name
    matrices (one-letter, upper-case, digits, all Rust 2015–2024 keywords, and all proto3 keywords),
    shape matrices (every kind in every position, three-level nesting, both byte-list spellings,
    unreferenced structural types, and two-hop dependencies), a fixed-seed property sample, and the
    committed examples/single and examples/evolved outputs in both Edition 2021 and Edition 2024
    with rustfmt/cargo fmt --check, cargo clippy -D warnings, -D missing_docs,
    cargo doc -D warnings, cargo test --doc, and protobuf binary/JSON round-trips; also wired
    committed-example compilation into ci/check-generated.sh and CI.

Changed

  • witforge check (and subset::check_diagnostics) now reports every single-version refusal
    that rust, proto, schema, or glue could make—including type/trait collisions, reserved
    functions / witforge_value / UNSPECIFIED / Empty names, Request/Response collisions,
    dependency module/filename collisions, synthesized wrapper collisions and 1024-byte limits,
    model expansion limits (WF1001), and live-vs-reserved lockfile collisions (WF1003)—so a
    passing check implies all four generators succeed. Unreachable unsupported dependency items
    and every dependency item transitively referencing them (including across multiple dependency
    packages) are now pruned to a fixed point during model construction rather than failing with
    exit 2 or emitting dangling aliases/$refs. Protobuf package segments now accept proto3
    keywords accepted by protoc/protox (such as package example:service@0.1.0;). Migration:
    if a released contract version directory was previously accepted by check while carrying a
    generator-only collision (such as record get-request beside get: func(), record functions,
    or colliding dependency modules), the extended check now reports it with WF1003 (exit 1).
  • Generated Rust (plain Rust, worlds.rs, convert.rs, witforge_deps.rs, and protobuf glue)
    now formats directly in rustfmt's default style for both Edition 2021 and Edition 2024
    (without invoking rustfmt), passes default Clippy lints (-D warnings), and documents every
    public item (-D missing_docs, emitting a concise one-line comment naming the WIT identity when
    no WIT doc comment is present). Type-only interfaces (zero functions) no longer emit an empty
    trait or root re-export—so interface error { enum error { a } } is now valid—while their empty
    <Interface>Method enum stays in .proto to preserve wire/schema history under buf breaking.
    Unit-returning trait methods omit -> () (fn ping(&self);). Migration: consumers naming
    an empty trait for a type-only interface (such as types::Types) must remove that reference;
    regenerating released per-version Rust modules updates their formatting, fallback doc comments,
    and unit signatures once. If your crate sets non-default rustfmt.toml options, put
    #[rustfmt::skip] on the module declaration that includes the generated tree.
  • Generated convert.rs adapters no longer emit untyped Result::Ok(...)? expressions or
    redundant closures, so adding consumer From<...> for ConversionError impls in the including
    crate compiles cleanly and generated code passes Clippy at the default level. Empty version
    pairs omit unused imports, reverse-conversion doc comments state that added fields and flags are
    dropped without reporting them, ConversionError's doc comment explains the scope of
    #[non_exhaustive], and both ConversionError (from and to 'static fields) and
    conversion-generation refusals now name both versions and the direction. Migration: in
    crates that include convert.rs, patterns destructuring ConversionError::MissingMember { path }
    or ConversionError::UnknownCase { path, case } must add from, to, or ...
  • Draft 7 JSON Schema now represents every result form (result<T, E>, result<T>,
    result<_, E>, and bare result) as a oneOf of closed single-key {"ok": ...} and
    {"err": ...} objects where a payload-less side has schema {"type":"null"} (matching
    payload-less variant cases), so every Ok(()) and Err(()) value has a unique valid document.
    f32 schemas now include finite bounds ("minimum":-3.4028235e38,"maximum":3.4028235e38), and
    docs/design/emitters.md section 10.2 documents the f32 precision limit, the 2^53 IEEE 754
    double caveat on 64-bit integers, Draft 7's integer/1.0 rule, and option<option<T>>'s
    shared null. Migration: result<T>, result<_, E>, bare result, and f32 schemas
    change on regeneration. To find affected contracts, search your .wit files for result<_,,
    single-argument result<T> (no comma), bare result, or f32, or inspect the diff of
    regenerated *.schema.json files (previous schemas emitted {"maxProperties":0} for bare
    result or a single-branch object without oneOf for one-sided results).
  • WIT documentation comments (/// and /** ... */) are now normalised and escaped for rustdoc
    and protobuf before emission: control characters and Unicode line separators (\r, NUL, VT, FF,
    U+0085, U+2028, U+2029) are normalised (and escaped in JSON Schema description),
    indented and fenced code blocks become closed text fences so they never run as Rust doctests,
    HTML-like <...> and non-external [...] links are escaped while real [text](url) links keep
    working, bare URLs are wrapped in <...> in Rust, and package, world, and dependency-interface
    comments are now carried to generated output. In .proto output, interface comments now attach
    directly above enum <Interface>Method instead of floating above the next declaration.
    Migration: generated files whose WIT sources carry package, world, dependency-interface,
    interface, or Markdown-special comments change once when regenerated.
  • Plain Rust, protobuf, and glue now derive all identifiers from one shared conversion module
    that reproduces prost-build 0.14's default naming (case conversion, strip_enum_prefix,
    oneof module names, and method enum zero values) directly from the stable .proto names.
    check (WF1003) and proto/glue refuse pairs of WIT names that map to one generated
    identifier (such as api-x/r beside api/xr both becoming ApiXr). Migration: .proto
    message, field, and enum-value names (and JSON Schema names) do not change; plain Rust
    identifiers for upper-case WIT words now fold to idiomatic Rust casing without non_snake_case
    or non_camel_case_types warnings (for example URL -> url, HTTP-api -> http_api /
    HttpApi, foo-BAR -> foo_bar / FooBar, HTTP -> Http, interface API -> mod api
    and trait Api), and --serde JSON keys follow those plain Rust spellings when regenerated.
  • Glue now matches prost-build 0.14's exact keyword escaping table for prost fields, flags,
    function parameters, and proto package module segments (including extern -> extern_,
    union -> union, Edition 2024 gen -> r#gen, and keyword dependency package segments such
    as example:gen and self:super), and check (WF1003), proto, and glue refuse records
    and functions whose fields collide on a prost-derive 0.14 generated accessor (such as
    mode: my-enum beside set-mode: bool sharing set_mode, or modes: list<my-enum> beside
    push-modes: bool sharing push_modes).
  • Dependency structural aliases (list<list<...>>, option<list<...>>, option<option<...>>,
    named and inline result, transitive dependency aliases, and byte-list aliases including
    aliases through u8) now define each wrapper in the proto package whose WIT source writes the
    shape, reference dependency wrappers cross-package with the matching import and prost path in
    both root and dependency glue, and project foreign byte-list aliases to bytes / Vec<u8> in
    every field, list, option, result, variant, parameter, and function-result position.
  • glue now runs the protobuf emitter's full validation for the root and every dependency so
    glue refuses every contract proto refuses (including collisions inside a dependency) with
    the same diagnostic and exit 1. Unset option wrappers now return GlueError::InvalidState
    consistently on every decode path (local named, anonymous, and foreign named options),
    synthesized glue helpers now carry doc comments naming their WIT type or function, and empty
    doc lines in plain Rust, protobuf, and glue no longer emit trailing whitespace.
  • glue now requires absolute module paths for --plain-root and --proto-root (and the
    matching witforge.toml keys): crate, crate::..., ::crate_name::..., or an external
    crate name (other::...). Relative paths starting with self or super, and unprefixed
    roots starting with a generated module name (v<major>, witforge_deps, interface/type/
    function/dependency modules), are refused with exit 2.
  • Each generator now writes a distinct ownership header naming both the generator (rust,
    proto, schema, or glue) and the root contract (namespace:name), for example
    // @generated by witforge (rust, example:plugin); do not edit. and
    {"$comment":"@generated by witforge (schema, example:plugin); do not edit.",. An output root
    holding files from another generator or another contract is refused with exit 2 before
    anything is written (and --check reports the foreign owner rather than listing an extra file),
    and witforge.toml configurations whose out paths coincide or nest are refused as a usage
    error. Migration: every generated file changes its first line once, so --check fails on
    pre-0.6.0 output until you regenerate; generation automatically adopts and rewrites files
    carrying the legacy shared header.
  • The lockfile reader now enforces the documented grammar: an entry's kind must match its key
    shape, canonical type tokens are parsed rather than checked for a slash, only ASCII spaces and
    tabs separate fields, order parents use the key grammar, and order fingerprints are exactly
    sixteen lowercase hexadecimal digits. These are parse errors (exit 2) naming the line; the
    migration forms are listed in docs/design/lockfile.md section 17.
  • diff::compare no longer collects conversion-impact notes it discards, and the new diff
    report types are documented as fixed for 1.0. emit::proto::emit_major now reports an
    inconsistent public model instead of panicking.
  • Emitter naming and type-rendering helpers now share one implementation; generated output is
    unchanged.
  • Generation replaces each generated file atomically: it writes a temporary file beside the
    target and renames it into place, and it removes stale generated files only after every
    expected file has been written. A failed or interrupted run no longer leaves a truncated
    generated file.
  • Every command that reads wit/released refuses a symlink anywhere inside a listed version
    directory (a symlinked contract.wit, wire.lock, or deps/ entry) with exit 2. Releases
    through 0.5.0 refused only a listed directory that was itself a symlink.
  • The GitHub Action aborts every GitHub API and release-asset request after 30 seconds, so a
    stalled network fails the step instead of waiting for the job timeout.
  • The release gates compare the library API with the newest published release and the protobuf
    output of every fixture with every published release. Both gates previously named 0.4.1.
  • The JSON Schema test dependency moved to jsonschema 0.61, and the locked version of the
    CLI's toml dependency moved to 1.2.1; both are internal dependency updates with no runtime
    API change.

Fixed

  • proto now writes cross-package protobuf type references with a leading dot
    (.namespace.name.v<major>.<Type>) so innermost-first resolution cannot shadow a dependency
    whose namespace matches a segment of the root package, and emits sorted import lines only
    for dependency files referenced by an emitted type (dropping unused imports for world-only or
    inlined-scalar dependencies). Migration: text-only change in dependency .proto files;
    compiled protobuf descriptors and prost-build output are unchanged.
  • proto now synthesizes the wrapper messages needed by every named list, option, and
    result type whether or not any field, case, or function refers to it, keeping proto and
    glue in step for unreferenced named structural types.
  • Multi-file version directories and multi-file deps/ packages now load their *.wit files in
    ascending file-name byte order rather than raw OS directory-enumeration order, making generated
    output deterministic across file systems and platforms. Migration: single-file contracts,
    wire numbers, and wire.lock files are unaffected; an existing multi-file contract's generated
    output may reorder declarations once into file-name byte order when regenerated.
  • The generator output-root guard now resolves existing path components canonically (following
    symlinks, dangling symlink targets, Windows junctions, and case-insensitive spellings), refuses
    .. after a missing directory component (closing the missing/../witlink/v0.1 bypass),
    refuses an output root that contains the WIT root, and applies the same guard to every directory
    listed in the released manifest for both generation and --check.
  • witforge lock now writes wire.lock atomically before reporting its changes, and CLI stdout
    and stderr writes no longer panic when piped to a reader that exits early (head, grep -q)
    or redirected to a full device: a closed stdout pipe preserves the command's exit status, while
    a non-pipe stdout write error (such as /dev/full) exits 2 after any file write completes.
  • Subset validation now reports every dependency package under deps/ (referenced or not) whose
    version is missing or not <major>.<minor>.0 as a subset diagnostic (WF1001, exit 1) naming
    the package, version, and deps/ entry instead of failing model::build with exit 2. Named
    interface imports and exports (import foo: types;, export bar: types;) are refused with their
    own message rather than as inline interfaces, annotations other than @since, @unstable, and
    @deprecated (including @external-id) are refused, diagnostics for unsupported dependency
    items pulled in by a world name the world item and note implicit imports, and two names in one
    scope that differ only in ASCII letter case (including a live member colliding with a reserved
    lockfile entry) are refused by check and lock with code WF1003 and exit 1.
  • A lockfile parent whose live and reserved members have different kinds is refused by check,
    lock, and every generator with exit 1, naming the parent and both kinds. A released type
    that changes kind (enum to record, and every other ordered pair) previously kept the old
    cases reserved beside the new members while check --against, proto, glue, and schema
    accepted the contract. diff now reports the change as wire-breaking, because every field
    that refers to the type keeps its canonical name while its encoding changes. An unreleased
    draft that already mixes kinds recovers by renaming the type in a new version (or by
    recreating the draft with lock --first, which drops its draft entries); a released
    directory in that state cannot be generated again and needs a new type name.
  • A list whose resolved element type is u8 now projects as protobuf bytes, Rust
    Vec<u8>, and a JSON Schema array of 8-bit integers in every spelling: list<u8>,
    list<byte> with type byte = u8, an alias chain, a use ... as ... alias, or an alias
    declared in a dependency. Previously list<byte> was repeated uint32 in protobuf and glue
    while list<u8> was bytes, although both lock as list<u8>; respelling changed the wire
    encoding under an unchanged lockfile. Regenerate proto, glue, plain Rust, and JSON Schema
    output. A consumer detects an affected contract by a field that changes from repeated uint32 to bytes (or, in Rust, from Vec<Byte> to Vec<u8>); mixed deployments read the
    same bytes when every value is below 128 and different bytes above it, because both
    encodings are length-delimited.
  • A dependency graph that contains two versions of one namespace:name, or a dependency that
    reuses the root package's namespace:name, is refused by check, lock, diff, and every
    generator with exit 1, naming the package, versions, and deps/ entries. Dependency type
    identity has no version, so two versions previously collapsed into one package in the lockfile
    and emitters. One graph must pin one version, and a new major is adopted by every dependent at
    once; a contract that needs both uses separate WIT roots. A released directory already in that
    state is frozen and becomes unusable, so it needs a new version that chooses one version (or
    renames the root package). No fixture, example, or known contract has such a graph. A
    same-version duplicate in two deps/ entries is refused by the same pre-scan instead of
    surfacing as a wit-parser parse error.
  • diff compares function method ids and reports a new member that takes a number reserved in
    the old lockfile as wire-breaking. Previously a renumbered interface printed no contract changes … COMPATIBLE while the protobuf emitter refused it, and a field or function that
    reused a reserved number was reported as a compatible addition.
  • lock --first and check --first are refused with exit 1 when the WIT root already holds
    an earlier minor of the same major; the message names the predecessor and the --against
    command to use. A baseline that is the wire.lock of a sibling version directory must be the
    immediate predecessor in the same major: a baseline from another major, or one that skips an
    existing intermediate minor, is refused with the --first or predecessor remedy. A baseline
    outside a version directory is accepted as given.
  • An unreleased lockfile must carry a complete # witforge order v1 section: exactly one line
    for every parent with live members, naming exactly those members in declaration order. A
    missing section, a deleted line, a subset, a non-member, an unknown parent, or a wrong order
    is exit 1; check applies the rule in default, --first, and --against modes, and every
    generator refuses a lockfile that fails it. Previously deleting the section let a reordered
    record or parameter list pass check, rust, and proto, and check --first skipped the
    comparison. A released lockfile written before the section existed has no marker and stays
    accepted and unmodified; once a released lockfile has the marker, a wrong section is refused
    rather than rewritten. Direct diff endpoints still accept stale order so they can report a
    reorder, but refuse an unknown parent or a line naming a non-member, subset, or wrong set.
  • Synthesized wrapper messages are looked up by the type they wrap, not by their generated name
    alone. Two different types that would produce one wrapper name are now refused with exit 1
    and a message naming both canonical types and the wrapper; previously the second silently
    reused the first wrapper's schema. Aliases and the byte-list spellings that resolve to one
    projection still share one wrapper. No existing wrapper name changes.
  • Generated conversions expand aliases, use … as … aliases, named list/option/result
    definitions, and dependency aliases before comparing types. Changing id to u32 (or the
    reverse), or a named list to its expansion, now generates the identity conversion instead of
    making rust refuse a pair that check --against and diff --check accepted. A changed
    alias target remains a real type change and is refused. diff now lists retyped record
    fields, variant cases, and types under conversion_blockers, so a passing diff --check
    implies rust generation succeeds.
  • Type expansion is bounded: at most 32 nested list/option/result levels, 32 alias links,
    and 1024 bytes per canonical type string. Every definition and function in the root and its
    dependencies is checked after model construction, the lockfile reader applies the same nesting
    and byte limits to a token, and wrapper message names are capped at 1024 bytes. Over-limit
    contract types are contract errors (exit 1); an over-limit lockfile token is a parse error
    (exit 2). Number assignment for a wide contract is now linear in the member count instead of
    rescanning every entry for every new member.
  • Canonical type strings now document the foreign form they already used: a dependency type
    keeps its package-qualified name whether it is an alias, a named list/option/result, or a
    member-bearing type; local aliases still expand. Because the recorded form cannot expose a
    foreign alias's target change, check --against now compares the pinned dependency graphs
    with the generators' shared rule when its baseline is a version directory's wire.lock. A
    copied baseline outside a version directory cannot be compared; check says so in a note and
    CI must run a generator over the root.
  • diff now resolves a dependency alias of a named type (record, enum, variant, or flags) and
    defaultability through the package that declares it, even when the root defines a type with
    the same name. It also reads the released manifest beside a version-directory endpoint, so a
    malformed manifest or a symlink in a listed released directory is refused with exit 2 as
    check refuses it. diff.md and the emitter guide state both behaviours.
  • check and lock now report every released-member discrepancy in one run instead of stopping
    at the first kind or type change: all kind/type changes, renumbering, un-reserving, missing
    entries, reintroductions, order changes, and mixed-kind parents are collected in lockfile key
    order. lock writes nothing when the list is non-empty. JSON and SARIF carry one diagnostic
    per discrepancy.
  • The GitHub Action reads diff-old, diff-new, diff-check, and github-token. Every Action
    release through v0.5.0 looked them up under the wrong environment names and treated them as
    empty: a workflow that passed diff-old and diff-new ran check and the generators and
    never ran witforge diff, and latest-release lookups were anonymous. Workflows pinned to an
    earlier Action release should run witforge diff as a separate step. A workflow that already
    passes diff-old and diff-new starts running witforge diff … --check when its pin moves
    to v0.6.0, and then fails on any wire-, source-, or generated-API-breaking
    change, which includes an added record field; set diff-check: "false" to print the diff
    without failing. The token is sent only to the latest-release query, not with the asset
    downloads.
  • The quickstart's first contract declared an interface and a world with one name, which WIT
    refuses, so its first command failed. The quickstart, README, and evolution guide now include
    the steps their evolution sequences omitted: creating the new version directory, copying the
    WIT, and changing the package version. The evolution guide no longer says that a field of a
    flags type is defaulted or that new-to-old conversion reports dropped fields.
  • diff rejects a reversed old/new argument order and reports a missing wire.lock on a direct
    version-directory endpoint with the same actionable guidance as check.