Skip to content

docs: follow EthLib's open reports to beacon-APIs #3503

Not planned

Description

@tcoratger

EthLib's formal work found two defects in the Beacon API and reported them upstream; this issue follows them until EthLib has reacted to each outcome.
Size: S

The problem

When a proof or a test of EthLib disagrees with a source, the defect is reported to the repository that owns the source (CONTRIBUTING.md, "Defects found upstream").
A report is only half the work: once upstream merges or closes it, EthLib must move its pin, change its rule, or record the divergence in SOUNDNESS.md.
Without a tracking issue, a merged fix stays invisible and EthLib keeps citing the old text.

The idea

One checkbox per open report, with what EthLib does when it merges and what it does if it is closed.

  • beacon-APIs#678: getLightClientUpdatesByRange should take the fork digest of each update's own epoch, as EthLib's light client answers already do.
    • Merged: move the Beacon API pin; no rule changes.
    • Closed: record in SOUNDNESS.md § Beacon API that EthLib keeps the per-update digest, and why.
  • beacon-APIs#683: the source does not define the depth and epoch of a chain_reorg event, nor when a head event sets epoch_transition. EthLib chose readings in its event rules (closed specs+proofs: decide when the fork choice emits a Beacon API event, and what it carries #2091).
    • Resolved: align the event rules with the answer and drop the open point from SOUNDNESS.md.
    • Closed with no answer: keep the readings and say so in SOUNDNESS.md.

The third report, beacon-APIs#682 on the epoch range of getStateRandao, was closed without a merge; its follow-up has its own issue.

Example

Since Fulu, the fork digest of an epoch also mixes in the blob parameters of that epoch.
After a BPO fork, which changes only the blob parameters, the fork version stays the same but the digest changes.
The current text computes the context of each update from its fork version alone, so after a BPO fork it gives a digest that differs from the one the p2p rules and EthLib compute from the epoch.

Done when

  • Each box is ticked with the EthLib PR that reacted, or with the SOUNDNESS.md entry that records the divergence.
  • The links in this issue show the final state of each report.

Activity

  1. added
    consensus
    type: docs
    on Nov 20, 2026
  2. tcoratger commented on Nov 21, 2026

    @tcoratger
    CollaboratorAuthor

    New report: ethereum/beacon-APIs#685 limits the general PTC dependent-root rule (the head_v2 bullets and the formula) to epochs after GLOAS_FORK_EPOCH, so it no longer contradicts the fork-epoch paragraph that #3560 follows.

  3. tcoratger commented on Nov 25, 2026

    @tcoratger
    CollaboratorAuthor

    Status on 2026-11-25:

    The pin moves once, after #687 resolves, so that one pin move covers #676, #678, #685 and #687.

  4. tcoratger commented on Nov 26, 2026

    @tcoratger
    CollaboratorAuthor

    Folded into #3632, which now tracks every open upstream report in one checklist, with EthLib's action for each outcome.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    consensustype: docs

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions