EIP-7577 EIP versioning scheme (Versioning Scheme for EIPs)

No call decision · Other · EIP status Stagnant · created 2023-12-13

A proposal to attach a semantic version number (like 1.2.3) and a CHANGELOG entry every time an EIP specification changes. It does not change the protocol itself, only how EIP documents are managed.

Why it is needed

While an EIP moves from Draft through Review, its specification keeps changing based on client team implementation and community review. Yet there is no standard way to track these changes. The execution-layer reference tests (execution-spec-tests) currently can only warn that "the spec has changed" by comparing the digest SHA (hash) of the EIP document file via the GitHub API, and cannot distinguish whether that change is a trivial typo fix or a major change requiring tests to be rewritten. Since client teams and test authors have no quick way to tell whether the spec they are looking at is current or compatible, this EIP aims to standardize version numbers and a changelog.

What changes

Today

After EIP-7577

Who is affected

In depth

Definition of the versioning scheme

Versions are assigned as three numbers, MAJOR.MINOR.PATCH, following Semantic Versioning 2.0.0. MAJOR denotes a breaking change requiring both implementation and reference tests to be updated, MINOR denotes an addition to the spec requiring additional implementation and additional test coverage, and PATCH denotes a wording-only fix (typo, rephrasing, etc.) that does not change the content of the spec.

When it applies

Once an EIP leaves Draft status, it MUST use this versioning scheme. It can also be applied early while still in Draft, which is useful when the spec is being actively implemented. If two or more teams are implementing it concurrently, moving the status to Review is recommended.

Initial version and the transition to Review

If versioning begins while an EIP is still in Draft, MAJOR must start at 0. When the status changes from Draft to Review, the version must be updated to 1.0.0.

CHANGELOG requirements

Every PR submitted to ethereum/EIPs must add a new entry to the CHANGELOG section. This entry must include the new version number, the date the change was merged, the corresponding PR number, and a short description line for each change made to the spec. The new version must also be reflected in the version field of the markdown file's metadata header at the same time, so that tooling can parse it easily.

Commit message scope markers

The author must indicate the scope of a change by starting one of the commit messages pushed to the PR branch with "major:", "minor:", or "patch" (case-insensitive). If multiple commits carry different scopes, the most severe scope applies; if no commit carries a scope, the PR is blocked from merging until a commit with a scope marker is pushed.

Tooling needed

Tooling to support applying this versioning scheme must be added to the ethereum/EIPs repository. This tooling must automatically update the version in the metadata header (to 1.0.0 when the status changes from Draft to Review) and automatically add a new CHANGELOG entry based on the PR title.

Value for the test toolchain, with examples

Currently, execution-spec-tests specifies the digest SHA of the EIP markdown file a test is based on, and can only warn whether it has changed by comparing it against the latest digest via the GitHub API. Once this EIP's versioning scheme is applied, clients can report the version of the EIP they have implemented, and tests can specify in their metadata the version they target, warning by marking themselves xfail on a MAJOR or MINOR mismatch. The source uses EIP-4788's actual change history as an example, showing how, if it had been moved to Review and assigned 1.0.0 on 2023-04-11, subsequent PRs would have bumped the version to 2.0.0, 3.0.0, 7.0.0, 8.0.0, 9.0.0, and so on, building up a CHANGELOG.

Current status

This EIP is of Meta type, proposing a change to how the EIP repository is operated rather than to the protocol itself, and its current status is Stagnant. There is no fork-inclusion decision for this proposal in the call records.

Original EIP · ← EIPs