{"eip":7577,"title":"Versioning Scheme for EIPs","description":"Use a versioning scheme for EIPs based on changes made to their Specification section.","authors":["danceratopz (@danceratopz)","Ahmad Bitar (@smartprogrammer93)"],"status":"Stagnant","type":"Meta","created":"2023-12-13","discussionsTo":"https://ethereum-magicians.org/t/add-eip-versioning-scheme-for-eips/17295","repo":"EIPs","label":"EIP-7577","officialUrl":"https://eips.ethereum.org/EIPS/eip-7577","sourceUrl":"https://github.com/ethereum/EIPs/blob/master/EIPS/eip-7577.md","url":"https://eips.huatuo.xyz/eip-7577/","tldr":{"en":"A proposal to give each EIP a semantic version and a changelog, so client teams and test suites can tell at a glance whether a spec change breaks their implementation.","ja":"各 EIP にセマンティックバージョンと変更履歴を付け、クライアントチームやテストスイートが、仕様の変更が自分たちの実装を壊すかどうかをひと目で判断できるようにする提案。","ko":"각 EIP에 시맨틱 버전과 변경 내역을 부여해, 클라이언트 팀과 테스트 스위트가 명세 변경이 자신들의 구현을 깨뜨리는지 한눈에 알 수 있게 하는 제안.","zh":"一项为每个 EIP 引入语义化版本号和变更日志的提案，让客户端团队和测试套件一眼就能看出规范的改动是否会破坏他们的实现。"},"tags":["meta","process","versioning","testing"],"explainers":{"en":{"lang":"en","tldr":"A proposal to give each EIP a semantic version and a changelog, so client teams and test suites can tell at a glance whether a spec change breaks their implementation.","tags":["meta","process","versioning","testing"],"related":[1,4788],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/eip-7577/","markdown":"## What problem does it solve?\n\nCore EIPs often keep changing after client teams start implementing them: constants move, addresses change, behaviour is tweaked after audits. Those changes are hard to follow. Reference tests are maintained separately from the EIPs, so it is difficult to know whether a given test release matches the current spec, or which revision a client actually implements.\n\nAt the time of writing, the execution-spec-tests repository tracked this by pinning the git digest of each EIP file and warning when it changed. That catches any edit, even a typo fix, and says nothing about how serious the change is.\n\nEIP-7577 proposes a version number and changelog inside each Standards Track EIP so that the scope of a change is obvious and machine-readable.\n\n## How it works\n\n- Every EIP gets a `version` field in its front matter using Semantic Versioning `MAJOR.MINOR.PATCH`:\n  - **MAJOR**: breaking spec change; implementations and reference tests must change.\n  - **MINOR**: an addition to the spec that needs extra implementation and test coverage.\n  - **PATCH**: cosmetic or wording change, no spec change.\n- While in Draft, the MAJOR version is `0`. Moving to Review sets it to `1.0.0`; from then on versioning is mandatory.\n- Every PR to an EIP adds a **CHANGELOG** entry with the new version, date, PR number and a line per spec change.\n- Tooling in the EIPs repository would bump the version and write the changelog automatically. Authors signal the scope by starting a commit message with `Major:`, `Minor:` or `Patch:`; if none is found, the PR cannot merge.\n\nWith this, a client could report which version of an EIP it implements, tests could declare which version they cover, and a test runner could mark tests as expected failures when MAJOR or MINOR versions do not match. The spec illustrates the idea by retroactively versioning the history of [EIP-4788](/eip-4788/).\n\n## Sample code\n\nWhat an EIP header and changelog would look like under this scheme (illustrative):\n\n```markdown\n---\neip: 9999\ntitle: Example Opcode\nstatus: Review\nversion: 2.1.0\n---\n\n## Changelog\n\n- 2.1.0 - 2024-03-02: Add gas cost for the cold access case, #8123.\n  - Charge 2600 gas on first access.\n- 2.0.0 - 2024-02-20: Change opcode number to avoid a clash, #8050.\n- 1.0.1 - 2024-02-10: Fix typo, #8001.\n- 1.0.0 - 2024-02-01: Move to Review, #7990.\n```\n\nA test runner comparing versions:\n\n```python\ndef compatible(eip_version: str, tested_version: str) -\u003e bool:\n    em, en, _ = map(int, eip_version.split(\".\"))\n    tm, tn, _ = map(int, tested_version.split(\".\"))\n    return (em, en) == (tm, tn)  # PATCH differences are ignored\n```\n\n## Things to know\n\n- Status is **Stagnant**: it has not been adopted, and EIPs today do not carry a `version` field or mandatory changelog.\n- It would apply only to Standards Track EIPs, and only going forward: no retroactive changelogs are required.\n- The process for EIPs in general is defined in [EIP-1](/eip-1/); this proposal would add to it rather than replace it.\n"},"ja":{"lang":"ja","tldr":"各 EIP にセマンティックバージョンと変更履歴を付け、クライアントチームやテストスイートが、仕様の変更が自分たちの実装を壊すかどうかをひと目で判断できるようにする提案。","tags":["meta","process","versioning","testing"],"related":[1,4788],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/ja/eip-7577/","markdown":"## 何を解決するのか\n\nCore EIP は、クライアントチームが実装を始めた後も変更され続けることがよくあります。定数が動き、アドレスが変わり、監査の後に動作が調整されます。こうした変更は追いかけにくいものです。リファレンステストは EIP とは別に管理されているため、あるテストのリリースが現在の仕様と一致しているかどうか、クライアントが実際にどのリビジョンを実装しているかを知るのは困難です。\n\n執筆時点では、execution-spec-tests リポジトリは、各 EIP ファイルの git ダイジェストを固定し、変更があると警告することでこれを追跡していました。この方法はタイプミスの修正も含めてあらゆる編集を検出しますが、その変更がどれほど重大なのかは何も教えてくれません。\n\nEIP-7577 は、各 Standards Track EIP の中にバージョン番号と変更履歴を持たせ、変更の範囲が明確かつ機械可読になるようにすることを提案します。\n\n## 仕組み\n\n- すべての EIP は、フロントマターにセマンティックバージョニング `MAJOR.MINOR.PATCH` を使った `version` フィールドを持ちます。\n  - **MAJOR**: 仕様の破壊的変更。実装とリファレンステストの変更が必要。\n  - **MINOR**: 実装とテストのカバレッジの追加が必要な、仕様への追加。\n  - **PATCH**: 見た目や文言の変更で、仕様の変更はなし。\n- Draft の間、MAJOR バージョンは `0` です。Review に移ると `1.0.0` に設定され、それ以降はバージョニングが必須になります。\n- EIP へのすべての PR は、新しいバージョン、日付、PR 番号、仕様の変更ごとの 1 行を記した **CHANGELOG** エントリを追加します。\n- EIPs リポジトリのツールが、バージョンを上げて変更履歴を自動的に書き込みます。作者はコミットメッセージの先頭を `Major:`、`Minor:`、`Patch:` で始めて範囲を示します。どれも見つからない場合、PR はマージできません。\n\nこれにより、クライアントは実装している EIP のバージョンを報告でき、テストはカバーしているバージョンを宣言でき、テストランナーは MAJOR や MINOR のバージョンが一致しないときにテストを期待される失敗としてマークできます。仕様は、[EIP-4788](/eip-4788/) の履歴に遡ってバージョンを付けることで、このアイデアを説明しています。\n\n## サンプルコード\n\nこの方式での EIP のヘッダーと変更履歴は次のようになります（説明用）。\n\n```markdown\n---\neip: 9999\ntitle: Example Opcode\nstatus: Review\nversion: 2.1.0\n---\n\n## Changelog\n\n- 2.1.0 - 2024-03-02: Add gas cost for the cold access case, #8123.\n  - Charge 2600 gas on first access.\n- 2.0.0 - 2024-02-20: Change opcode number to avoid a clash, #8050.\n- 1.0.1 - 2024-02-10: Fix typo, #8001.\n- 1.0.0 - 2024-02-01: Move to Review, #7990.\n```\n\nバージョンを比較するテストランナー:\n\n```python\ndef compatible(eip_version: str, tested_version: str) -\u003e bool:\n    em, en, _ = map(int, eip_version.split(\".\"))\n    tm, tn, _ = map(int, tested_version.split(\".\"))\n    return (em, en) == (tm, tn)  # PATCH differences are ignored\n```\n\n## 知っておくべきこと\n\n- ステータスは **Stagnant** です。採用されておらず、現在の EIP には `version` フィールドも必須の変更履歴もありません。\n- 適用されるのは Standards Track の EIP だけで、今後のものに限られます。遡っての変更履歴は求められません。\n- EIP 全般のプロセスは [EIP-1](/eip-1/) で定義されています。この提案はそれを置き換えるのではなく、それに追加するものです。\n"},"ko":{"lang":"ko","tldr":"각 EIP에 시맨틱 버전과 변경 내역을 부여해, 클라이언트 팀과 테스트 스위트가 명세 변경이 자신들의 구현을 깨뜨리는지 한눈에 알 수 있게 하는 제안.","tags":["meta","process","versioning","testing"],"related":[1,4788],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/ko/eip-7577/","markdown":"## 어떤 문제를 해결하나요?\n\n코어 EIP는 클라이언트 팀이 구현을 시작한 뒤에도 계속 바뀌는 경우가 많습니다. 상수가 움직이고, 주소가 바뀌고, 감사 이후 동작이 조정됩니다. 이런 변경은 따라가기 어렵습니다. 레퍼런스 테스트는 EIP와 별도로 관리되므로, 특정 테스트 릴리스가 현재 명세와 일치하는지, 클라이언트가 실제로 어느 리비전을 구현하는지 알기 어렵습니다.\n\n작성 시점에 execution-spec-tests 저장소는 각 EIP 파일의 git 다이제스트를 고정해 두고 변경되면 경고하는 방식으로 이를 추적했습니다. 이 방법은 오타 수정까지 포함해 모든 수정을 잡아내지만, 변경이 얼마나 중대한지는 전혀 알려 주지 않습니다.\n\nEIP-7577은 각 Standards Track EIP 안에 버전 번호와 변경 내역을 두어, 변경의 범위가 분명하고 기계가 읽을 수 있게 하자고 제안합니다.\n\n## 어떻게 동작하나요?\n\n- 모든 EIP는 프런트매터에 시맨틱 버저닝 `MAJOR.MINOR.PATCH`를 사용하는 `version` 필드를 가집니다.\n  - **MAJOR**: 명세의 호환성을 깨는 변경. 구현과 레퍼런스 테스트가 바뀌어야 함.\n  - **MINOR**: 추가 구현과 테스트 커버리지가 필요한 명세 추가.\n  - **PATCH**: 외형이나 표현만 바꾸는 변경으로, 명세 변경은 없음.\n- Draft 상태에서는 MAJOR 버전이 `0`입니다. Review로 넘어가면 `1.0.0`으로 설정되고, 그때부터 버전 관리가 필수입니다.\n- EIP에 대한 모든 PR은 새 버전, 날짜, PR 번호, 명세 변경마다 한 줄을 담은 **CHANGELOG** 항목을 추가합니다.\n- EIPs 저장소의 도구가 버전을 올리고 변경 내역을 자동으로 작성합니다. 작성자는 커밋 메시지를 `Major:`, `Minor:`, `Patch:`로 시작해 범위를 알리며, 아무것도 없으면 PR을 병합할 수 없습니다.\n\n이렇게 하면 클라이언트는 구현한 EIP 버전을 보고할 수 있고, 테스트는 자신이 다루는 버전을 선언할 수 있으며, 테스트 러너는 MAJOR나 MINOR 버전이 맞지 않을 때 테스트를 예상된 실패로 표시할 수 있습니다. 명세는 [EIP-4788](/eip-4788/)의 이력에 소급해 버전을 붙여 보이며 이 아이디어를 설명합니다.\n\n## 샘플 코드\n\n이 방식에서 EIP 헤더와 변경 내역은 다음과 같은 모습입니다(설명용).\n\n```markdown\n---\neip: 9999\ntitle: Example Opcode\nstatus: Review\nversion: 2.1.0\n---\n\n## Changelog\n\n- 2.1.0 - 2024-03-02: Add gas cost for the cold access case, #8123.\n  - Charge 2600 gas on first access.\n- 2.0.0 - 2024-02-20: Change opcode number to avoid a clash, #8050.\n- 1.0.1 - 2024-02-10: Fix typo, #8001.\n- 1.0.0 - 2024-02-01: Move to Review, #7990.\n```\n\n버전을 비교하는 테스트 러너:\n\n```python\ndef compatible(eip_version: str, tested_version: str) -\u003e bool:\n    em, en, _ = map(int, eip_version.split(\".\"))\n    tm, tn, _ = map(int, tested_version.split(\".\"))\n    return (em, en) == (tm, tn)  # PATCH differences are ignored\n```\n\n## 알아둘 점\n\n- 상태는 **Stagnant**입니다. 채택되지 않았으며, 현재의 EIP에는 `version` 필드도 필수 변경 내역도 없습니다.\n- Standards Track EIP에만 적용되고 앞으로 나오는 것에만 적용됩니다. 소급해서 변경 내역을 쓸 필요는 없습니다.\n- EIP 전반의 프로세스는 [EIP-1](/eip-1/)에 정의되어 있으며, 이 제안은 그것을 대체하는 것이 아니라 보태는 것입니다.\n"},"zh":{"lang":"zh","tldr":"一项为每个 EIP 引入语义化版本号和变更日志的提案，让客户端团队和测试套件一眼就能看出规范的改动是否会破坏他们的实现。","tags":["meta","process","versioning","testing"],"related":[1,4788],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/zh/eip-7577/","markdown":"## 它解决什么问题？\n\n核心 EIP 在客户端团队开始实现之后常常还会继续变化：常量被调整，地址被更改，行为在审计后被微调。这些变化很难追踪。参考测试与 EIP 是分开维护的，因此很难知道某个测试版本是否与当前规范一致，也不知道客户端实际实现的是哪一个修订版。\n\n在撰写本文时，execution-spec-tests 仓库是通过固定每个 EIP 文件的 git 摘要，并在其变化时发出警告来追踪的。这种方法会捕捉到任何编辑，哪怕只是修正一个错别字，却完全无法说明这次改动有多严重。\n\nEIP-7577 提议在每个 Standards Track EIP 中加入版本号和变更日志，使改动的范围一目了然，并且可被机器读取。\n\n## 它如何运作\n\n- 每个 EIP 在 front matter 中都有一个 `version` 字段，采用语义化版本 `MAJOR.MINOR.PATCH`：\n  - **MAJOR**：破坏性的规范变更；实现和参考测试必须修改。\n  - **MINOR**：对规范的新增内容，需要额外的实现和测试覆盖。\n  - **PATCH**：外观或措辞上的改动，不涉及规范变化。\n- 处于 Draft 阶段时，MAJOR 版本为 `0`。进入 Review 后设为 `1.0.0`，从那时起版本管理是强制的。\n- 每个针对 EIP 的 PR 都要添加一条 **CHANGELOG** 条目，包含新版本号、日期、PR 编号，以及每项规范变更各一行。\n- EIPs 仓库中的工具会自动提升版本号并写入变更日志。作者通过让提交信息以 `Major:`、`Minor:` 或 `Patch:` 开头来标明范围；如果找不到这些前缀，PR 将无法合并。\n\n这样一来，客户端可以报告自己实现的是某个 EIP 的哪个版本，测试可以声明自己覆盖的是哪个版本，测试运行器则可以在 MAJOR 或 MINOR 版本不匹配时把测试标记为预期失败。规范通过为 [EIP-4788](/eip-4788/) 的历史追溯性地标注版本，来说明这一想法。\n\n## 示例代码\n\n按这套方案，EIP 的头部和变更日志大致如下（仅作演示）：\n\n```markdown\n---\neip: 9999\ntitle: Example Opcode\nstatus: Review\nversion: 2.1.0\n---\n\n## Changelog\n\n- 2.1.0 - 2024-03-02: Add gas cost for the cold access case, #8123.\n  - Charge 2600 gas on first access.\n- 2.0.0 - 2024-02-20: Change opcode number to avoid a clash, #8050.\n- 1.0.1 - 2024-02-10: Fix typo, #8001.\n- 1.0.0 - 2024-02-01: Move to Review, #7990.\n```\n\n一个比较版本的测试运行器：\n\n```python\ndef compatible(eip_version: str, tested_version: str) -\u003e bool:\n    em, en, _ = map(int, eip_version.split(\".\"))\n    tm, tn, _ = map(int, tested_version.split(\".\"))\n    return (em, en) == (tm, tn)  # PATCH differences are ignored\n```\n\n## 需要注意\n\n- 状态为 **Stagnant**：它尚未被采纳，目前的 EIP 既没有 `version` 字段，也没有强制的变更日志。\n- 它只适用于 Standards Track 的 EIP，并且只面向今后：不要求追溯补写变更日志。\n- EIP 的总体流程由 [EIP-1](/eip-1/) 定义；本提案是对它的补充，而不是取代。\n"}}}
