Repository navigation
witforge 0.6.0
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--checkfails 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. Anywitforge.tomlwhoseoutpaths coincide or nest, or
whose output root resolves to an ancestor of or overlaps the WIT root or any released directory,
now exits2before writing. - Generated Rust formatting, fallback doc comments, unit signatures, and type-only interfaces:
Generated Rust now matches defaultrustfmt(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-defaultrustfmt.tomlsettings, 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,.protointerface 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.witfiles 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 apiandtrait Api), and--serdeJSON keys follow those plain Rust
spellings..protoand 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--serdekeys after regenerating. ConversionErrornow carriesfromandtofields: In generatedconvert.rs,
ConversionError::MissingMemberandConversionError::UnknownCasegainfrom: &'static str
andto: &'static str. How to tell: search consumer crates that includeconvert.rsfor
ConversionError::MissingMemberorConversionError::UnknownCase; destructuring patterns
without..fail to compile untilfrom,to, or..is added.- JSON Schema
resultforms andf32bounds: Everyresultform (result<T>,
result<_, E>, bareresult,result<T, E>) now emits a closedoneOfof{"ok": ...}and
{"err": ...}with{"type":"null"}for payload-less sides, andf32adds finite min/max
bounds. How to tell: search.witfiles forresult<_,, single-argumentresult<T>(no
comma), bareresult, orf32, or inspect the diff of regenerated*.schema.jsonfiles. - Byte-list aliases (
list<byte>->bytes/Vec<u8>): Anylist<T>whose resolved
element type isu8(including local,use ... as ..., and dependency aliases) now projects
to protobufbytes, RustVec<u8>, and JSON Schema 8-bit integer arrays instead ofrepeated uint32/Vec<Byte>. How to tell: regenerate and check for.protofields changing from
repeated uint32tobytesor Rust fields changing fromVec<Alias>toVec<u8>. Mixed
deployments agree on values< 128and disagree on values>= 128. - Protobuf cross-package references, unused imports, and structural wrappers: Cross-package
.protoreferences gain a leading dot (.namespace.name.v<major>.<Type>), unused dependency
imports are dropped, unreferenced namedlist/option/resulttypes now emit their wrapper
messages, and dependency structural wrappers are owned by the dependency package that writes the
shape. How to tell: regenerate.protoandgluefor any contract withdeps/or named
list/option/resultdefinitions; binary descriptors are unchanged for existing fields. - Multi-file WIT deterministic declaration order: Multi-file version directories and
deps/
packages now load*.witfiles in ascending file-name byte order. How to tell: only
contracts with more than one.witfile in a version directory ordeps/package are affected;
wire numbers andwire.lockentries are unchanged, and generated files may reorder declarations
once on regeneration. - Glue requires absolute
--plain-rootand--proto-root: Relative paths (self::...,
super::...) and unprefixed generated module names (v<major>,witforge_deps, etc.) now
exit2. How to tell: check--plain-root/--proto-rootflags andwitforge.toml
plain_root/proto_rootkeys; rewrite relative paths tocrate::...or::crate_name::.... - GitHub Action
diff-old,diff-new,diff-check, andgithub-tokeninputs: Releases
throughv0.5.0ignored these inputs. How to tell: grep workflow files fordiff-old:or
diff-new:onasamarts/witforge@; moving tov0.6.0starts executing
witforge diff ... --check(which fails on source-breaking changes such as added record
fields) unless you setdiff-check: "false". - Unreleased lockfiles require a complete
# witforge order v1section: Every mode (check,
check --first,check --against, and all generators) refuses an unreleasedwire.lock
missing or omitting entries from# witforge order v1with exit1. 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 v1without changing wire numbers. - Stricter
check,lock, and generator refusals (including frozen released directories):
witforge checknow 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/--againstpredecessor skips,
symlinks inside listedwit/releaseddirectories (exit2), and three conditions that can make
an already-released, frozen directory unusable because it cannot be edited in place:- a lockfile parent mixing live and reserved member kinds (e.g. a released type that changed
kind,W10-045); - a dependency graph pinning two versions of one
namespace:nameor reusing the root package
name (W10-047); - a lockfile violating the documented grammar (
W10-053, seedocs/design/lockfile.md
section 17).
How to tell: runwitforge checkand your configured generators with--checkagainst every
version directory. No repository fixture, example, oralintcontract hits these frozen-directory
refusals; any affected contract recovers by cutting a new version with a fresh type name or
single pinned dependency version.
- a lockfile parent mixing live and reserved member kinds (e.g. a released type that changed
Added
- Added the
cargo-fuzzharness (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 --againstrestores 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--againstthe reintroduction message points at
the baseline option.protoreserves 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 withUNSPECIFIEDand its reserved method ids and names, because the per-major
proto file is shared by every minor of the major.diffreports 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, andcargo testruns the release-script cases and the Action's unit tests. - Added a shared
prost-build0.14 /pbjson-build0.9 compile-and-round-trip test harness
(crates/witforge/tests/support/mod.rs) andcompile_matrixintegration 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
committedexamples/singleandexamples/evolvedoutputs in both Edition 2021 and Edition 2024
withrustfmt/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 intoci/check-generated.shand CI.
Changed
witforge check(andsubset::check_diagnostics) now reports every single-version refusal
thatrust,proto,schema, orgluecould make—including type/trait collisions, reserved
functions/witforge_value/UNSPECIFIED/Emptynames,Request/Responsecollisions,
dependency module/filename collisions, synthesized wrapper collisions and 1024-byte limits,
model expansion limits (WF1001), and live-vs-reserved lockfile collisions (WF1003)—so a
passingcheckimplies 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
exit2or emitting dangling aliases/$refs. Protobuf package segments now accept proto3
keywords accepted byprotoc/protox(such aspackage example:service@0.1.0;). Migration:
if a released contract version directory was previously accepted bycheckwhile carrying a
generator-only collision (such asrecord get-requestbesideget: func(),record functions,
or colliding dependency modules), the extendedchecknow reports it withWF1003(exit1).- Generated Rust (plain Rust,
worlds.rs,convert.rs,witforge_deps.rs, and protobuf glue)
now formats directly inrustfmt's default style for both Edition 2021 and Edition 2024
(without invokingrustfmt), 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—sointerface error { enum error { a } }is now valid—while their empty
<Interface>Methodenum stays in.prototo preserve wire/schema history underbuf breaking.
Unit-returning trait methods omit-> ()(fn ping(&self);). Migration: consumers naming
an empty trait for a type-only interface (such astypes::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-defaultrustfmt.tomloptions, put
#[rustfmt::skip]on the module declaration that includes the generated tree. - Generated
convert.rsadapters no longer emit untypedResult::Ok(...)?expressions or
redundant closures, so adding consumerFrom<...> for ConversionErrorimpls 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 bothConversionError(fromandto'staticfields) and
conversion-generation refusals now name both versions and the direction. Migration: in
crates that includeconvert.rs, patterns destructuringConversionError::MissingMember { path }
orConversionError::UnknownCase { path, case }must addfrom,to, or... - Draft 7 JSON Schema now represents every
resultform (result<T, E>,result<T>,
result<_, E>, and bareresult) as aoneOfof closed single-key{"ok": ...}and
{"err": ...}objects where a payload-less side has schema{"type":"null"}(matching
payload-less variant cases), so everyOk(())andErr(())value has a unique valid document.
f32schemas now include finite bounds ("minimum":-3.4028235e38,"maximum":3.4028235e38), and
docs/design/emitters.mdsection 10.2 documents thef32precision limit, the 2^53 IEEE 754
double caveat on 64-bit integers, Draft 7'sinteger/1.0rule, andoption<option<T>>'s
sharednull. Migration:result<T>,result<_, E>, bareresult, andf32schemas
change on regeneration. To find affected contracts, search your.witfiles forresult<_,,
single-argumentresult<T>(no comma), bareresult, orf32, or inspect the diff of
regenerated*.schema.jsonfiles (previous schemas emitted{"maxProperties":0}for bare
resultor a single-branch object withoutoneOffor 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 Schemadescription),
indented and fenced code blocks become closedtextfences 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.protooutput, interface comments now attach
directly aboveenum <Interface>Methodinstead 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 reproducesprost-build0.14's default naming (case conversion,strip_enum_prefix,
oneof module names, and method enum zero values) directly from the stable.protonames.
check(WF1003) andproto/gluerefuse pairs of WIT names that map to one generated
identifier (such asapi-x/rbesideapi/xrboth becomingApiXr). 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 withoutnon_snake_case
ornon_camel_case_typeswarnings (for exampleURL->url,HTTP-api->http_api/
HttpApi,foo-BAR->foo_bar/FooBar,HTTP->Http,interface API->mod api
andtrait Api), and--serdeJSON keys follow those plain Rust spellings when regenerated. - Glue now matches
prost-build0.14's exact keyword escaping table for prost fields, flags,
function parameters, and proto package module segments (includingextern->extern_,
union->union, Edition 2024gen->r#gen, and keyword dependency package segments such
asexample:genandself:super), andcheck(WF1003),proto, andgluerefuse records
and functions whose fields collide on aprost-derive0.14 generated accessor (such as
mode: my-enumbesideset-mode: boolsharingset_mode, ormodes: list<my-enum>beside
push-modes: boolsharingpush_modes). - Dependency structural aliases (
list<list<...>>,option<list<...>>,option<option<...>>,
named and inlineresult, transitive dependency aliases, and byte-list aliases including
aliases throughu8) now define each wrapper in the proto package whose WIT source writes the
shape, reference dependency wrappers cross-package with the matchingimportand prost path in
both root and dependency glue, and project foreign byte-list aliases tobytes/Vec<u8>in
every field, list, option, result, variant, parameter, and function-result position. gluenow runs the protobuf emitter's full validation for the root and every dependency so
gluerefuses every contractprotorefuses (including collisions inside a dependency) with
the same diagnostic and exit1. Unset option wrappers now returnGlueError::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.gluenow requires absolute module paths for--plain-rootand--proto-root(and the
matchingwitforge.tomlkeys):crate,crate::...,::crate_name::..., or an external
crate name (other::...). Relative paths starting withselforsuper, and unprefixed
roots starting with a generated module name (v<major>,witforge_deps, interface/type/
function/dependency modules), are refused with exit2.- Each generator now writes a distinct ownership header naming both the generator (
rust,
proto,schema, orglue) 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 exit2before
anything is written (and--checkreports the foreign owner rather than listing an extra file),
andwitforge.tomlconfigurations whoseoutpaths coincide or nest are refused as a usage
error. Migration: every generated file changes its first line once, so--checkfails 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 (exit2) naming the line; the
migration forms are listed indocs/design/lockfile.mdsection 17. diff::compareno longer collects conversion-impact notes it discards, and the newdiff
report types are documented as fixed for 1.0.emit::proto::emit_majornow 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/releasedrefuses a symlink anywhere inside a listed version
directory (a symlinkedcontract.wit,wire.lock, ordeps/entry) with exit2. 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
jsonschema0.61, and the locked version of the
CLI'stomldependency moved to 1.2.1; both are internal dependency updates with no runtime
API change.
Fixed
protonow 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 sortedimportlines 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.protofiles;
compiled protobuf descriptors andprost-buildoutput are unchanged.protonow synthesizes the wrapper messages needed by every namedlist,option, and
resulttype whether or not any field, case, or function refers to it, keepingprotoand
gluein step for unreferenced named structural types.- Multi-file version directories and multi-file
deps/packages now load their*.witfiles 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, andwire.lockfiles 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 themissing/../witlink/v0.1bypass),
refuses an output root that contains the WIT root, and applies the same guard to every directory
listed in thereleasedmanifest for both generation and--check. witforge locknow writeswire.lockatomically 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) exits2after any file write completes.- Subset validation now reports every dependency package under
deps/(referenced or not) whose
version is missing or not<major>.<minor>.0as a subset diagnostic (WF1001, exit1) naming
the package, version, anddeps/entry instead of failingmodel::buildwith exit2. 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 bycheckandlockwith codeWF1003and exit1. - A lockfile parent whose live and reserved members have different kinds is refused by
check,
lock, and every generator with exit1, 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 whilecheck --against,proto,glue, andschema
accepted the contract.diffnow 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 withlock --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
u8now projects as protobufbytes, Rust
Vec<u8>, and a JSON Schema array of 8-bit integers in every spelling:list<u8>,
list<byte>withtype byte = u8, an alias chain, ause ... as ...alias, or an alias
declared in a dependency. Previouslylist<byte>wasrepeated uint32in protobuf and glue
whilelist<u8>wasbytes, although both lock aslist<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 fromrepeated uint32tobytes(or, in Rust, fromVec<Byte>toVec<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'snamespace:name, is refused bycheck,lock,diff, and every
generator with exit1, naming the package, versions, anddeps/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 twodeps/entries is refused by the same pre-scan instead of
surfacing as awit-parserparse error. diffcompares function method ids and reports a new member that takes a number reserved in
the old lockfile as wire-breaking. Previously a renumbered interface printedno contract changes … COMPATIBLEwhile the protobuf emitter refused it, and a field or function that
reused a reserved number was reported as a compatible addition.lock --firstandcheck --firstare refused with exit1when 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 thewire.lockof 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--firstor predecessor remedy. A baseline
outside a version directory is accepted as given.- An unreleased lockfile must carry a complete
# witforge order v1section: 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 exit1;checkapplies the rule in default,--first, and--againstmodes, and every
generator refuses a lockfile that fails it. Previously deleting the section let a reordered
record or parameter list passcheck,rust, andproto, andcheck --firstskipped 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. Directdiffendpoints 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 exit1
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, namedlist/option/result
definitions, and dependency aliases before comparing types. Changingidtou32(or the
reverse), or a named list to its expansion, now generates the identity conversion instead of
makingrustrefuse a pair thatcheck --againstanddiff --checkaccepted. A changed
alias target remains a real type change and is refused.diffnow lists retyped record
fields, variant cases, and types underconversion_blockers, so a passingdiff --check
impliesrustgeneration succeeds. - Type expansion is bounded: at most 32 nested
list/option/resultlevels, 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 (exit1); an over-limit lockfile token is a parse error
(exit2). 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 namedlist/option/result, or a
member-bearing type; local aliases still expand. Because the recorded form cannot expose a
foreign alias's target change,check --againstnow compares the pinned dependency graphs
with the generators' shared rule when its baseline is a version directory'swire.lock. A
copied baseline outside a version directory cannot be compared;checksays so in a note and
CI must run a generator over the root. diffnow 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 thereleasedmanifest beside a version-directory endpoint, so a
malformed manifest or a symlink in a listed released directory is refused with exit2as
checkrefuses it.diff.mdand the emitter guide state both behaviours.checkandlocknow 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.lockwrites 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, andgithub-token. Every Action
release through v0.5.0 looked them up under the wrong environment names and treated them as
empty: a workflow that passeddiff-oldanddiff-newrancheckand the generators and
never ranwitforge diff, and latest-release lookups were anonymous. Workflows pinned to an
earlier Action release should runwitforge diffas a separate step. A workflow that already
passesdiff-oldanddiff-newstarts runningwitforge diff … --checkwhen its pin moves
tov0.6.0, and then fails on any wire-, source-, or generated-API-breaking
change, which includes an added record field; setdiff-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. diffrejects a reversed old/new argument order and reports a missingwire.lockon a direct
version-directory endpoint with the same actionable guidance ascheck.