Ethlabs’ position on Glamsterdam

Over the past weeks, Ethlabs has been helping with the Glamsterdam impact analysis. This is a brief outline of our updated thinking on the discussion. For context, read our previous note on the topic.

tl;dr:

  • We recommend going ahead with Glamsterdam as is. This is a difficult trade-off, and the problems found are serious and valid. Much of the disruption comes from repricing state creation, which is a necessary step on Ethereum’s path to 1000x scaling. The only option to avoid this would be to remove EIP-8037 outright, but this would give up Glamsterdam’s roughly 3x higher gas limit, and only postpone the problem to a later hardfork. A secondary source of the disruption is the new state gas reservoir. Here changes to the EIP could address some of the concerns, but only for a subset of affected projects and at the cost of further months of delay. On net, in our assessment, neither of these options pass the cost-benefit test.
  • There are important lessons from Glamsterdam on how to improve future hard forks. We need to flag disruptive changes early and bring app developers in, scope impact analysis more carefully for sensitive EIPs, establish a shared understanding of which invariants app developers can rely on, and provide new primitives where there are gaps today, including those introduced by EIP-8037.

Why we recommend moving ahead with Glamsterdam

While this is a difficult trade-off and the concerns raised are serious and valid, on net we recommend going ahead with Glamsterdam as is. The two alternatives discussed are modifying EIP-8037 to address the concerns raised, or pulling it from the fork entirely. We don’t think either is better, for the following reasons:

  1. Pulling EIP-8037 removes the path towards L1 scaling. Glamsterdam’s headline theme is L1 scaling and EIP-8037 is a necessary change as it addresses the state growth bottleneck. Shipping the hard fork without EIP-8037 would then mean the core of Glamsterdam, incl. headliners ePBS and BALs, cannot be leveraged to actually scale Ethereum. See a note by Ansgar and Caspar from last year on how repricings enable higher gas limits. But more than that, repricings are a necessary part on the road to 1000x scaling via zkEVMs. This is a major part of Ethereum’s roadmap that would be blocked. Pulling it would only buy time to try to modify it for a later fork, which still runs into the same trade-offs discussed.
  2. Pulling or modifying EIP-8037 would both cause delays. Any change to the fork adds months at this point, including pulling the EIP. The Sepolia testnet already forked with the old version of Glamsterdam and it would be non-trivial to figure out how to either rescue or sunset Sepolia.
  3. Modifying EIP-8037 could only address a subset of the problem, at the cost of even longer delays. The problems caused by EIP-8037 are of two different natures. The first is the repricing itself, i.e., making state creation more expensive. Any repricing breaks contracts that hardcode gas costs, and as Vitalik discusses in his post, no modification of the EIP avoids this without giving up on scaling. The second is the state gas reservoir mechanism introduced in the EIP. Some of the observed problems are downstream of the specifics of that mechanism, so that changes to the EIP could in principle be helpful. But given that any such changes could only help the relatively small portion of affected projects with issues specific to that reservoir mechanism, and in light of the significant cost in the form of additional hard fork delays, in our assessment this option doesn’t pass a cost-benefit test either.
  4. The damage is reasonably contained. The primary type of damage is smart contracts already deployed whose behavior is impacted by the EIP. A limited number of projects are affected in this way, most of them can mitigate and are already doing so, and none have significant money at stake without a way to react. Glamsterdam being delayed gives affected projects additional time to migrate. A second type of damage are constraints imposed on future smart contract development by the specific behavior of the reservoir mechanism in the EIP. Some patterns, in particular around try/catch handling for calls into untrusted contracts, are more difficult to handle in the presence of that mechanism. This second type of damage however can be mitigated in future hard forks, both through adjustments to the mechanism and other explicit new features.

On net, we recommend moving ahead with Glamsterdam as is. It isn’t clear that any modification of EIP-8037 would be a net improvement, and dropping it gives up Glamsterdam’s headline theme of L1 scaling. More fundamentally, repricings like EIP-8037 are a necessary step on Ethereum’s path to 1000x scaling via zkEVMs, so dropping it now only means facing the same problem in a later fork. Rather than blocking on EIP-8037, we think the better path is to fix the underlying issues that got us here, so that future forks, starting with Hegotá, don’t repeat them.

Lessons from Glamsterdam

  1. Flag disruptive changes early and bring the community along.

    The disruption in Glamsterdam is not purely an accident. As Vitalik explains well in his recent post, Ethereum wants to scale, scaling requires repricing, and any repricing, however it is done, will break some contracts that rely on current gas costs. We think getting started on the path towards 1000x scaling (Glamsterdam scaling is only the first step!) is worth some disruption. What was much less clear is what this disruption means for app developers. That trade-off should have been laid out early, with app developers involved from the start, but it was never clearly articulated. Vitalik’s write-up is the first community-facing document to lay it out. More pieces like this early on are much needed, and we will work to make sure they happen!

    Going forward, we will push to flag potentially disruptive changes early in the process, so that app developers and the community can be brought in as decisions are being made.

  2. Improve impact analysis pipeline.

    While it was clear that Glamsterdam had the potential to disrupt existing contracts, this was not sufficiently taken into account when scoping the impact analysis. As a result, even though the analysis was understood to be comprehensive, it missed major classes of affected contracts, and these were only discovered late.

    Going forward, impact analysis should be scoped to how sensitive an EIP is, erring on the side of caution. Once the auditor findings came in, AI tools quickly became very important to the analysis for Glamsterdam, e.g., coordinating agent swarms across orgs. We plan to make them a standard part of impact analysis beyond the existing frameworks, and eventually to stress test every EIP with agent-driven impact analysis. For Hegotá this work is already starting, in particular for frame transactions (EIP-8141).

  3. Establish a shared understanding of invariants.

    The EVM only evolves slowly over time, so many parts of it stay the same for years. Some of this is intentional, i.e., invariants that are meant to be relied on and will not change their behavior over time. Other parts have just not changed in a long time, but can, or will have to, change in the future. This distinction was not clearly drawn, in part coming from a communication gap between protocol and app developers. Some guidance has existed, but there is no explicit agreement on what can and cannot be relied on. This has led to reliance on things that were never meant to be relied on.

    Going forward, we need to draw clear boundaries, so that it is explicitly agreed upon which parts of the EVM are invariant by design vs. unchanged by coincidence, and to flag early which of the latter are likely to change in upcoming forks, e.g., via an informational EIP.

  4. Provide new primitives where there are gaps.

    While agreeing on what can and cannot be safely relied on is helpful, sometimes reliance on unsafe patterns is without clear alternative. A good example is the distinction between a subcall that runs out of gas and one that fails, which is not possible today without relying on specifics of the gas mechanism. A similar situation exists for some of the patterns impacted by the new gas reservoir mechanism. In such cases, the best outcome is to ship explicit new features that enable such patterns in a safe and long term reliable way.

2 Likes