Changelog
This file tracks changes to the ethdebug/format specification: the schemas
under schemas/. Those schemas ship inside the @ethdebug/format package,
whose build generates its distributed copies from schemas/, so the spec
version is that package's version and this file is keyed by it. Each published
package that implements the spec (@ethdebug/pointers, @ethdebug/evm, and so
on) has its own CHANGELOG.md under packages/<name>/; this file covers only
the spec itself.
Each entry gives a summary of what changed. Three sub-items follow:
Schemas:the fully qualified name(s) of the schema(s) the change touches.Producers:what the change means for an emitter ofethdebug/formatdata (a compiler such as solc or bugc).Consumers:what the change means for a reader ofethdebug/formatdata (a debugger such as soldb).
Each Producers: and Consumers: sub-item starts with one of three prefixes:
no change needed.Nothing that was valid becomes invalid, and nothing changes meaning for this party. One short reason may follow.optional:The change adds a capability. Nothing that was valid in the previous published version changes. No party is obliged to do anything. The sub-item says what the party may now do.required:Output that was valid in the previous published version no longer validates, or the specification adds or changes a normative must, or the meaning of data that was already valid changes. The sub-item names the schema keyword, or quotes the specification prose, that imposes the obligation. Prose that says should or "preferred" is neverrequired:.
A consumer has an obligation only where producers can now emit something that a conforming consumer would otherwise misread or reject, or where the meaning of data that was already valid changed. A consumer that does not use a new optional feature has no obligation.
A new branch in a closed oneOf that a consumer must interpret to read the data
at all (for example a new pointer expression or collection) is required: for
consumers, because producers may start to emit it at any time. An addition that
a consumer can skip without misreading anything else (for example a new kind of
context) is optional:.
Each impact line states the net effect for a party that moves from the previous
published version to the version of the section. A change inside a schema that
is new in that version obliges nobody, so its lines are optional: or
no change needed. and describe how the new schema works. An obligation that a
later change in the same version reverses does not appear in an impact line; the
summary may tell the history.
Each version has at most two sections. ### Added holds a new schema, or a new
keyword or capability. ### Changed holds a change to something that exists.
The sections do not signal obligations; the prefixes do.
Unreleased
Added
-
The ethdebug/format/type/elementary/flags type is new. It is a set of named members, with
values(a list of unique strings) and an optionaldefinition. A set bitiin the value's bytes meansvalues[i]is present. Zero is the empty set. A set bit at or past the length ofvaluesis invalid (#282).- Schemas: ethdebug/format/type/elementary/flags
- Producers: optional: a type may have kind
flags. - Consumers: required: a type may have kind
flags. A consumer must read it as described to read the data at all.
-
The ethdebug/format/type/complex/variant type is new. It has
cases, a list ofname,discriminant(an ethdebug/format/data/value) and optionalpayload(a type wrapper), and an optionaldefinition. The type says what each case is. The active case is the one whosediscriminantmatches the value read as the discriminant. No match is invalid (#282).- Schemas: ethdebug/format/type/complex/variant
- Producers: optional: a type may have kind
variant. - Consumers: required: a type may have kind
variant. A consumer must read it as described to read the data at all.
Changed
-
Every type kind is replaced. A type now says what a value is, and no longer says where its bytes are or how many there are. The layout keywords
bits,sizeandcountare gone, and the integer, fixed-point, address and tuple kinds merge into fewer kinds. The descriptions of most kinds now state their standard interpretation: how a consumer reads a value from the bytes the value occupies. Every type may have an optionallabel, the type as its language spells it (e.g.,uint256,bytes32,uint8[3]), for display only. Nothing interprets a label. A complex base type may now omitcontainsif it givesclassascomplex, since the newvariantandfunctionkinds have nocontains(#282).- Schemas: ethdebug/format/type, ethdebug/format/type/base, ethdebug/format/type/elementary, ethdebug/format/type/complex, ethdebug/format/type/specifier
- Producers: required: the kinds below replace the old kinds, and the old kinds no longer validate. See the entries for each kind.
- Consumers: required: producers emit the new kinds. A consumer must read
them and must not expect the old kinds. See the entries for each kind.
A consumer that uses ethdebug/format/type/base to classify complex
types must accept a complex type without
contains.
-
The ethdebug/format/type/elementary/number type replaces the
uint,int,ufixedandfixedkinds. It has an optionalsigned(default false) and an optionalplaces(default 0, minimum 0), and has no width. The value is the big-endian integer over the value's bytes, in two's complement ifsigned, divided by 10 to the power ofplaces. For example,{ "kind": "uint", "bits": 256 }becomes{ "kind": "number", "label": "uint256" }, and{ "kind": "int", "bits": 8 }becomes{ "kind": "number", "signed": true, "label": "int8" }(#282).- Schemas: ethdebug/format/type/elementary/number, ethdebug/format/type/elementary/uint, ethdebug/format/type/elementary/int, ethdebug/format/type/elementary/ufixed, ethdebug/format/type/elementary/fixed
- Producers: required: the schemas for kinds
uint,int,ufixedandfixedare removed, so a type with one of those kinds no longer validates. Use kindnumber. Thebitskeyword has no meaning now, and consumers ignore it. - Consumers: required: a type with kind
numberis an integer or fixed-point number as described. The width comes from the pointer, not the type.
-
The ethdebug/format/type/elementary/address type now also covers contract references, and the
contractkind is removed. An address has an optionalpayable(absent means unknown) and an optionaldefinition. A type withoutdefinitionis a plain address. A type withdefinitionis a reference to a contract, and thedefinitionmay also havelibraryorinterface(not both true) (#282).- Schemas: ethdebug/format/type/elementary/address, ethdebug/format/type/elementary/contract
- Producers: required: the schema for kind
contractis removed. Use kindaddresswith adefinition. - Consumers: required: a type with kind
addressand adefinitionrefers to a contract. It is read as an address.
-
The ethdebug/format/type/elementary/bytes type no longer has
size. Its value is the bytes of the value, in order (#282).- Schemas: ethdebug/format/type/elementary/bytes
- Producers: required: the
sizekeyword is removed. It has no meaning now, and consumers ignore it. A fixed-sizebytestype is{ "kind": "bytes" }, and the pointer gives the size. - Consumers: required: a type with kind
byteshas nosize. Take the length from the bytes the value occupies.
-
The ethdebug/format/type/elementary/enum type now has
valuesas a non-empty list of unique strings. The value is the unsigned big-endian integeriover the value's bytes, and the member isvalues[i]. Anipast the end ofvaluesis invalid (#282).- Schemas: ethdebug/format/type/elementary/enum
- Producers: required:
valuesmust be a non-empty list of unique strings. Data with any othervaluesno longer validates. - Consumers: required: read an enum value as the index into
valuesdescribed above.
-
The ethdebug/format/type/elementary/bool and ethdebug/format/type/elementary/string types may have a
label, and their descriptions now state the standard interpretation. A bool is 0 (false) or 1 (true). A string is text in itsencoding(default utf-8) (#282).- Schemas: ethdebug/format/type/elementary/bool, ethdebug/format/type/elementary/string
- Producers: optional: a type may have a
label. - Consumers: required: "Any other value is invalid" (bool) and "If the bytes are not a valid sequence in that encoding, the value is invalid" (string). The previous text did not say how to read such values.
-
The ethdebug/format/type/complex/struct type replaces the
tuplekind. A struct has an orderedcontainslist whose items may each have aname. An unnamed list is a tuple, and the list may be empty. Thedefinitionis optional (#282).- Schemas: ethdebug/format/type/complex/struct, ethdebug/format/type/complex/tuple
- Producers: required: the schema for kind
tupleis removed. Use kindstructwith unnamed items. - Consumers: required: a type with kind
structmay have unnamed items, and may have none.
-
The ethdebug/format/type/complex/array type no longer has
count. Its items are all of thecontainstype. The pointer gives how many there are (#282).- Schemas: ethdebug/format/type/complex/array
- Producers: required: the
countkeyword is removed. It has no meaning now, and consumers ignore it. A stalecountdoes not fix the length of the array. - Consumers: required: an array type has no length. Take the item count from the pointer.
-
The ethdebug/format/type/complex/function type has a new shape.
parametersandreturnsare top-level lists (returnsis required, and[]means no values). They replacecontains.parametersandcontains.returns. An external function may have a top-levelcontractwrapper, whose type is an ethdebug/format/type/elementary/address with adefinitionor a type reference. It replacescontains.contract. Exactly one ofinternalandexternalis true, as before (#282).- Schemas: ethdebug/format/type/complex/function
- Producers: required:
returnsis required, so data in the old shape no longer validates.containshas no meaning in a function type now, and consumers ignore it. - Consumers: required: read
parameters,returnsandcontractat the top level of the function type.
-
The ethdebug/format/type/complex/alias and ethdebug/format/type/complex/mapping types may have a
label, and their descriptions now state the standard interpretation. An alias is read as itscontainstype. A mapping entry's value is read as thevaluetype and its key as thekeytype (#282).- Schemas: ethdebug/format/type/complex/alias, ethdebug/format/type/complex/mapping
- Producers: optional: a type may have a
label. - Consumers: no change needed. The new prose describes how these kinds were already read.
-
The examples that embed types now use the new kinds (#282).
- Schemas: ethdebug/format/info, ethdebug/format/info/resources, ethdebug/format/program
- Producers: no change needed.
- Consumers: no change needed.
0.1.0-draft.3 — 2026-11-19
Added
- A region with
"location": "virtual"holds the bytes of a computed value, e.g., a variable the optimizer removed. It uses the newfragmentaddressing scheme: a width-bearingexpressionsupplies the bytes, and optionaloffsetandlengthselect a range of them (#411).- Schemas: ethdebug/format/pointer/region/virtual, ethdebug/format/pointer/scheme/fragment, ethdebug/format/pointer/region
- Producers: optional: a pointer may describe a value that no data location stores as a virtual region.
- Consumers: required: a region may have
"location": "virtual". Its bytes are the fragment of itsexpression's value, which a consumer must evaluate. A fragment outside the value's bytes is invalid.
Changed
-
The
placesof afixedorufixedtype may now be 0, as Solidity allows. The minimum was 1 (#420).- Schemas: ethdebug/format/type/elementary/fixed, ethdebug/format/type/elementary/ufixed
- Producers: optional: a
fixedorufixedtype may haveplaces: 0. - Consumers: required: the
minimumofplacesis now 0. A consumer must acceptplaces: 0, which means the value is not scaled.
-
The members of a
defineno longer depend on their order, since JSON objects are unordered. A member may use any other member of the samedefine. Inside its own expression, its own name means the variable of the enclosing scope. A cycle of members makes the pointer invalid (#408).- Schemas: ethdebug/format/pointer/collection/scope
- Producers: required: a name of a later member of the same
definenow means that member, not the enclosing scope's variable with that name. Data that used such a name for the outer variable must put the member in a nested scope. Data that uses only earlier members, a member's own name, or other outer names resolves as before. - Consumers: required: "A consumer evaluates each member after the members it uses. If members depend on each other in a cycle, the pointer is invalid."
-
The description of
placesin the fixed-point types calls the integer before scaling an "unscaled value" instead of a "raw value". "Raw" now means bytes only (#413).- Schemas: ethdebug/format/type/elementary/fixed, ethdebug/format/type/elementary/ufixed
- Producers: no change needed.
- Consumers: no change needed.
-
Variables now have a stated sort. A list's
eachvariable is an integer. Adefinevariable has the sort of its expression, so a bytes variable keeps its width. A template'sexpected variable takes the sort of the variable in scope at the reference (#404).- Schemas: ethdebug/format/pointer/expression, ethdebug/format/pointer/collection/scope, ethdebug/format/pointer/collection/list, ethdebug/format/pointer/template
- Producers: optional: a bytes variable may be an operand of
~concator~keccak256without a resize. - Consumers: required: a variable has the sort of its defining expression.
The previous text did not say so. A consumer that read every variable as
an integer must keep a bytes variable's width. One that already kept the
sort (as
@ethdebug/pointersdoes) needs no change.
-
The description of the resize forms (
~sized<N>,~wordsized) said that their left-side padding and truncation match how Solidity resizes bothbytesNanduintN. That holds only foruintN. Solidity pads and truncatesbytesNon the right. The description now says so (#402).- Schemas: ethdebug/format/pointer/expression
- Producers: no change needed. The resize forms work as before. To pad a
bytesNvalue on the right, concatenate it with zero bytes (~concat). - Consumers: no change needed. The evaluation rules did not change.
-
The rule for a lookup (
{ ".<property>": <region> }) of an omitted property said that the property's schema must specify a default. A segment'slengthand a fragment'slengthhave defaults that only their descriptions give. The rule now accepts a default given either way (#411).- Schemas: ethdebug/format/pointer/expression
- Producers: no change needed.
- Consumers: required: a lookup of an omitted segment or fragment
lengthgives the default that its description defines.
0.1.0-draft.2 — 2026-10-07
Changed
-
The format's own vocabulary inside pointer expressions uses the sigil
~instead of$, which leaves$free for source-language names (Solidity allows a name to start with$). The terms are the constants and references~wordsizeand~this, and the operators~sum,~difference,~product,~quotient,~remainder,~read,~keccak256,~concat,~wordsized, and~sized<N>. An identifier still must not start with~(#323).- Schemas: ethdebug/format/pointer/expression, ethdebug/format/pointer/identifier, ethdebug/format/pointer, ethdebug/format/pointer/collection/group, ethdebug/format/pointer/collection/scope, ethdebug/format/pointer/region/stack, ethdebug/format/pointer/region/storage, ethdebug/format/pointer/region/transient, ethdebug/format/pointer/scheme/segment, ethdebug/format/info, ethdebug/format/info/resources
- Producers: required: emit
~for the operators, constants and the~thisreference; the$forms no longer validate. ethdebug/format/pointer/expression names the operators inproperties(~sum,~read,~keccak256, and so on) andpatternProperties(^~sized([1-9]+[0-9]*)$,^~wordsized$), the constant inenum(~wordsize), and the reference inconst(~this). - Consumers: required: read the
~operators, constants and reference named by ethdebug/format/pointer/expression'sproperties,patternProperties,enumandconst. The$spellings, such as"$wordsize"and{ "$sum": [...] }, are no longer format terms.
-
An identifier may now start with
$, so a compiler can use a source-language name such as Solidity's$balanceas it is. This relies on the~sigil of #323: a name that starts with$cannot be confused with a format term (#325).- Schemas: ethdebug/format/pointer/identifier
- Producers: optional: a name may now start with
$(ethdebug/format/pointer/identifierpattern^[a-zA-Z$_\-]+[a-zA-Z0-9$_\-]*$). - Consumers: required: accept a name that starts with
$, which ethdebug/format/pointer/identifier'spatternnow allows. Such a string is a name, not a format term:"$wordsize"is a variable and{ ".offset": "$this" }looks up a region named$this.
-
The variables of a scope (
define/in) are visible only within itsin. Pointers outside the scope, such as later members of an enclosing group, do not see them, and a variable defined with an outer variable's identifier shadows it only withinin. The description now says so (#318).- Schemas: ethdebug/format/pointer/collection/scope
- Producers: no change needed. The text states the existing meaning; solc's storage templates already depend on it.
- Consumers: required: a consumer that keeps a scope's variables after its
inmust discard them there.@ethdebug/pointersdoes so from #317.
0.1.0-draft.1 — 2026-10-03
Added
- A stamp in an
ethdebugfield on ethdebug/format/info, ethdebug/format/info/resources and ethdebug/format/program names the schema the object conforms to and the specification version that defines it. The new ethdebug/format/data/stamp schema defines the stamp. Info documents and resources objects must carry the stamp (#305).- Schemas: ethdebug/format/data/stamp, ethdebug/format/info, ethdebug/format/info/resources, ethdebug/format/program
- Producers: required: ethdebug/format/info and
ethdebug/format/info/resources list
ethdebuginrequired, so an info document or resources object must carryethdebug: { schema, version }. A program emitted outside an info document should carry the stamp; a program inside an info document should not. All objects of one compilation must name the sameversion. - Consumers: required: a consumer that validates data against the
schemas must use this version's schemas. ethdebug/format/program
and ethdebug/format/info are closed objects
(
unevaluatedProperties: false), so the previous version's schemas reject theethdebugkey.
Changed
- The
offsetof a segment counts bytes from the most significant byte of the slot: byte0is the first byte of the slot's big-endian word. The description now says so, says how to convert from a layout that counts from the low-order end ($wordsize - o - n), and allows writing that conversion as an expression. New segment examples pack anaddressand auint32into one slot, each written with literal offsets (12and8) and with an expression that takes the value's size from the region's ownlength({ ".length": "$this" }) (#309).- Schemas: ethdebug/format/pointer/scheme/segment
- Producers: no change needed. The reference implementation and bugc already resolve offsets this way; the text states existing meaning.
- Consumers: no change needed. A consumer that resolved
offsetagainst the big-endian word already follows this.
0.1.0-draft.0 — 2026-09-21
The version scheme changed: prerelease versions of the specification are now
draft.<n>, and 0.1.0-draft.0 follows 0.1.0-2. No schema changed.
0.1.0-2 — 2026-09-17
Changed
-
The pointer fields of an external call or contract creation
invoke(target,gas,value,input,salt) describe the operands that the marked CALL or CREATE instruction consumes, so they resolve against the state immediately before that instruction executes. This is the one exception to the rule from #281 that a context's pointers resolve after its instruction. Theinvokedescription had kept the earlier "trace step" sentence, which contradicted that rule; the context itself stays on the call instruction (#303).- Schemas: ethdebug/format/program/context/function/invoke, ethdebug/format/program/instruction, ethdebug/format/program/context/function/return
- Producers: no change needed. The
invokeexamples already placed the context on the call instruction with pointers to its operands. - Consumers: required: resolve the pointer fields of a
messageorcreateinvokeagainst the state before the marked instruction executes (a new exception in thecontextdescription). A consumer that followed theinvokeexamples already does this.
-
A segment's
offsetis no longer limited to a value below$wordsize: an offset at or past$wordsizenow carries into later slots. The defaultlengthis now$wordsize - (offset mod $wordsize), which runs to the end of the slot in which the segment begins and equals the earlier default for an offset inside the slot. Alengththat spans slots was already defined. A new segment example shows the carry, and a new pointer example collapses a long storage string to one multi-slot region (#284).- Schemas: ethdebug/format/pointer/scheme/segment, ethdebug/format/pointer
- Producers: optional: a producer may emit an
offsetat or past$wordsizeand let it carry into later slots. Every pointer that was valid before keeps its meaning. - Consumers: required: find the slot and byte of an
offsetby division and remainder against$wordsize, and compute the defaultlengthas$wordsize - (offset mod $wordsize). Theoffsetdescription no longer says that the offset "must begin inside the slot".
-
A property lookup through
$this(for example{ ".length": "$this" }) must not be circular: the property it reads has to be resolvable without depending on the value being defined. A struct-array example that named its own region the long way around now uses$this(#284).- Schemas: ethdebug/format/pointer/expression, ethdebug/format/pointer
- Producers: required: do not emit a circular property lookup through
$this. A new "must not be circular" in the description imposes this; no validator catches it. A pointer that already resolves is not affected. - Consumers: no change needed. The rule constrains producers only, and no valid data changes meaning.
-
Expressions now evaluate to one of two sorts, an unbounded integer or definite-width bytes, and the
$concatand$keccak256operands must be width-bearing bytes rather than bare integers. A hexadecimal literal with an even number of digits is bytes of exactly the width written, a literal with an odd number of digits is an integer, and widths are never inferred from context; the earlier text let a literal omit leading zeroes and padded it to the width of its context. No schema keyword changes, so a validator accepts the same documents as before, but an expression that passes a bare integer to$concator$keccak256, as the schema's own earlier examples did, no longer conforms. Those examples are corrected (#286