Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions CLAUDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -117,3 +117,14 @@ subspecifications that the Lean Ethereum protocol relies on.
metacharacters escaped); prefer the explicit full-equality assertion above.
- This mirrors the full-equality rule for ordinary assertions: assert the whole object, never a
piece of it.
- **CRITICAL - KEEP TEST DOCUMENTATION IN SYNC WITH THE TEST**: This is a STRICT requirement. Every
time you change a test, update the documentation that describes it in the SAME change, following
the documentation rules (`.claude/rules/documentation.md`, and for `tests/consensus/` the
Given/When/Then standard in that file). A test's docstring is part of the test; a change that
leaves the docstring describing the old behavior is incomplete.
- When you add, remove, or change a step, assertion, or expected value, reconcile the docstring so
it still describes exactly what the test does.
- For `tests/consensus/` vectors, the step assertions and the Given/When/Then docstring must stay
one-to-one: if an assertion changes, the matching docstring line changes with it.
- Do not weaken a docstring into vagueness to avoid updating it; describe the new behavior
precisely, as the doc-writer rules require.
6 changes: 4 additions & 2 deletions tests/consensus/lstar/fork_choice/test_finalized_safety.py
Original file line number Diff line number Diff line change
Expand Up @@ -323,8 +323,10 @@ def test_fork_above_finalized_wins_at_or_below_loses(
BlockStep(
block=BlockSpec(slot=Slot(6), parent_label="block_4", label="above_6"),
checks=StoreChecks(
head_slot=Slot(5),
head_root_label="block_5",
latest_justified_slot=Slot(4),
latest_justified_root_label="block_4",
latest_finalized_slot=Slot(3),
latest_finalized_root_label="block_3",
),
),
BlockStep(
Expand Down
Loading