Thanks @Amxx for putting this together. Some thoughts on the open questions from the OpenZeppelin Contracts side:
Current duration or historical lookup?
I think the current duration covers most cases if contracts anchor on TIMESTAMP instead of genesis. On L1, block.timestamp is the start of slot SLOTNUM, so:
ts(s) = TIMESTAMP + (s - SLOTNUM) * SLOTDURATION / 1000
That’s exact for any slot since the last duration change, and it’s what I’d put in a library helper. A contract can also detect that a stored (t0, s0) observation crossed a change, since TIMESTAMP - t0 won’t match (SLOTNUM - s0) * SLOTDURATION / 1000. It just can’t tell where the change happened.
The Lido case (timestamps for arbitrary past slots) does need history though. Instead of a full EL schedule, what about one extra header field with the first slot where the current duration took effect? Contracts would know exactly how far back the formula above is valid, and the EL still just copies a value from the CL.
Milliseconds.
Agree. I’d add a test case with a duration that isn’t a multiple of 1000 (e.g. 250). That’s where mixing it with TIMESTAMP gets lossy: several blocks share a timestamp and SLOTDURATION / 1000 rounds down to 0. Worth a line in Security Considerations recommending to do the math in ms.
0 for “no regular interval.”
My main concern is “MUST return 0” for on-demand chains. Anvil and Hardhat are where most contracts get tested, so test suites would only ever hit the 0 branch and the real path would run for the first time on mainnet. I’d keep 0 as the meaning of “no regular interval”, but let dev chains return a configured value (they already support interval mining). A SHOULD instead of a MUST would be enough.
L1 already can’t produce 0 since the CL rejects any value other than the scheduled duration, so I don’t think the EL needs an extra check.
Also, an L1 Core EIP can’t really make L2s do anything (“Chains without a beacon chain … MUST”). Some rollups don’t have a fixed interval either, so it’s not obvious whether they should return their target, their max, or 0. I’d frame that part as guidance, or leave it to an RIP.
Execution-layer decoupling.
Seems consistent with how EIP-7843 handles slotNumber. One detail: 7843 already defines ExecutionPayloadV4, PayloadAttributesV4, engine_newPayloadV5, engine_getPayloadV6 and engine_forkchoiceUpdatedV4. If both ship in the same fork, 8484 should extend those instead of adding new versions. Probably worth saying explicitly.
Another use case: governance
Governors that count time in blocks (ERC-6372 mode=blocknumber) are also affected. Lots of DAOs set votingDelay and votingPeriod in blocks assuming 12s (e.g. 50400 blocks for ~1 week). A shorter slot duration silently shortens every voting window, and fixing it usually requires a proposal that runs under the shortened periods. Could be a good second example next to Lido in the Motivation.
Timing
Agree on activating before any duration change (EIP-8198). Since 7843 already changes the header and Engine API, shipping 8484 in the same fork seems cheap.