Commit 810b8b6
authored
docs: refresh CLAUDE.md, devnet skills, and Table docs to match code (#532)
## Why
CLAUDE.md and the devnet skills had drifted from the code as PRs landed.
Every claim below was verified against the current source before
changing.
## What
**CLAUDE.md**
- Structure: 12 workspace crates — `net/api` and `common/test-fixtures`
were missing from the tree; added the newer `blockchain/src` modules
(`block_builder.rs`, `aggregation.rs`, `reaggregate.rs`,
`sync_status.rs`)
- Attestation pipeline: buffers are `new_payloads`/`known_payloads`
(promotion at intervals 0/4), not
`new_attestations`/`known_attestations`
- Req/Resp: added `BlocksByRange`
- Block-fetch retry: doubling from `INITIAL_BACKOFF_MS` (5ms → 2560ms),
`MAX_FETCH_RETRIES` (10) attempts — was "10/40/160/640/2560, max 5"
- XMSS signature size: `SIGNATURE_SIZE` = 2536 bytes, not 3112
- Dependencies: `ethereum_ssz`/`tree_hash` →
`libssz`(+derive/types)/`libssz-merkle`; `tree_hash_root()` →
`hash_tree_root()`
- `stf_spectests.rs` lives in
`crates/blockchain/state_transition/tests/`, not
`crates/blockchain/tests/`
- Replaced the rotted `store.rs:368` line reference with the function
name (`on_gossip_attestation`)
- Added a `docs/` index line to Resources
**devnet-log-review skill**
- The justification threshold examples were wrong: code is `3 * votes >=
2 * N` (= `ceil(2N/3)`), so 6 validators need 4 votes and 9 need 6 — the
skill said 5 and 7 (">2/3")
- Block proposal flow updated for the pre-build path (#445) and the
`Finished building block` marker (#474)
**test-pr-devnet skill**
- Log analysis now points at this repo's own `devnet-log-review` skill
(was pointing into lean-quickstart) and dumps container logs first
- Fixed a broken relative link to CLAUDE.md; removed the stale client
protocol-compatibility table
**tables.rs**
- `BlockSignatures` doc said `H256 -> BlockSignatures` and "all other
blocks must have an entry"; the key is `(slot || root)` (slot-ordered
pruning) and entries are pruned below the finalized boundary
- `States` doc now references `SNAPSHOT_ANCHOR_INTERVAL` by name instead
of hardcoding 1024
Docs/comments only — no behavior change.1 parent 405a258 commit 810b8b6
4 files changed
Lines changed: 58 additions & 55 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
145 | 145 | | |
146 | 146 | | |
147 | 147 | | |
148 | | - | |
| 148 | + | |
149 | 149 | | |
150 | 150 | | |
151 | 151 | | |
| |||
154 | 154 | | |
155 | 155 | | |
156 | 156 | | |
157 | | - | |
158 | | - | |
159 | | - | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
160 | 162 | | |
161 | 163 | | |
162 | 164 | | |
| |||
184 | 186 | | |
185 | 187 | | |
186 | 188 | | |
187 | | - | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
188 | 192 | | |
189 | | - | |
190 | | - | |
191 | | - | |
192 | | - | |
193 | | - | |
194 | | - | |
195 | | - | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
196 | 198 | | |
197 | 199 | | |
198 | 200 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
56 | | - | |
| 56 | + | |
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
| |||
139 | 139 | | |
140 | 140 | | |
141 | 141 | | |
142 | | - | |
143 | | - | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
144 | 146 | | |
145 | 147 | | |
146 | 148 | | |
147 | | - | |
148 | | - | |
149 | | - | |
150 | | - | |
151 | | - | |
152 | | - | |
153 | | - | |
154 | | - | |
155 | | - | |
156 | | - | |
157 | | - | |
158 | | - | |
159 | | - | |
160 | | - | |
161 | 149 | | |
162 | 150 | | |
163 | 151 | | |
| |||
256 | 244 | | |
257 | 245 | | |
258 | 246 | | |
259 | | - | |
260 | | - | |
| 247 | + | |
| 248 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
| 12 | + | |
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
21 | 25 | | |
22 | 26 | | |
23 | | - | |
24 | | - | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
25 | 30 | | |
26 | 31 | | |
27 | 32 | | |
28 | 33 | | |
29 | | - | |
| 34 | + | |
| 35 | + | |
30 | 36 | | |
31 | | - | |
| 37 | + | |
| 38 | + | |
32 | 39 | | |
33 | 40 | | |
34 | 41 | | |
| |||
56 | 63 | | |
57 | 64 | | |
58 | 65 | | |
59 | | - | |
60 | | - | |
61 | | - | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
62 | 69 | | |
63 | 70 | | |
64 | 71 | | |
| 72 | + | |
| 73 | + | |
65 | 74 | | |
66 | 75 | | |
67 | 76 | | |
| |||
105 | 114 | | |
106 | 115 | | |
107 | 116 | | |
108 | | - | |
| 117 | + | |
109 | 118 | | |
110 | 119 | | |
111 | 120 | | |
| |||
252 | 261 | | |
253 | 262 | | |
254 | 263 | | |
255 | | - | |
| 264 | + | |
256 | 265 | | |
257 | 266 | | |
258 | 267 | | |
| |||
268 | 277 | | |
269 | 278 | | |
270 | 279 | | |
271 | | - | |
| 280 | + | |
272 | 281 | | |
273 | 282 | | |
274 | | - | |
275 | | - | |
| 283 | + | |
| 284 | + | |
276 | 285 | | |
277 | 286 | | |
278 | 287 | | |
| |||
301 | 310 | | |
302 | 311 | | |
303 | 312 | | |
304 | | - | |
305 | | - | |
306 | | - | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
307 | 316 | | |
308 | 317 | | |
309 | 318 | | |
| |||
316 | 325 | | |
317 | 326 | | |
318 | 327 | | |
319 | | - | |
| 328 | + | |
320 | 329 | | |
321 | 330 | | |
322 | 331 | | |
| |||
368 | 377 | | |
369 | 378 | | |
370 | 379 | | |
371 | | - | |
| 380 | + | |
372 | 381 | | |
373 | 382 | | |
374 | 383 | | |
| |||
383 | 392 | | |
384 | 393 | | |
385 | 394 | | |
386 | | - | |
387 | | - | |
| 395 | + | |
| 396 | + | |
388 | 397 | | |
389 | 398 | | |
390 | 399 | | |
| |||
397 | 406 | | |
398 | 407 | | |
399 | 408 | | |
| 409 | + | |
400 | 410 | | |
401 | 411 | | |
402 | 412 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
| 8 | + | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
12 | 15 | | |
13 | 16 | | |
14 | 17 | | |
15 | | - | |
16 | | - | |
| 18 | + | |
| 19 | + | |
17 | 20 | | |
18 | 21 | | |
19 | 22 | | |
| |||
0 commit comments