Commit dd67b7e
[forge] Tighter binary classifier: lower threshold + zero failed_weight + larger window
Tunes the existing ProposerAndVoter binary classifier on three axes so it
reliably bans a slow validator instead of leaving it oscillating at the
threshold boundary:
- failure_threshold_percent: 10 -> 5
V6's injected real failure rate is 10%, exactly at the default threshold.
Sampling noise pushed it above only ~26-38% of windows. Lowering the
threshold to 5 makes V6's 10% clearly exceed it under any window size.
- failed_weight: 1 -> 0
When a validator IS classified failed, it currently keeps a tiny weight
(1 vs active 1000), still leaking ~1/N share. Setting to 0 fully excludes.
- proposer_window_num_validators_multiplier: 10 -> 50
Larger observation window reduces variance in the failure-rate estimate,
so classification flips less and is more decisive when it does.
No heuristic changes. Stacks on baseline #19330.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 9e0d4e5 commit dd67b7e
1 file changed
Lines changed: 32 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
24 | | - | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
25 | 26 | | |
26 | 27 | | |
27 | 28 | | |
| |||
452 | 453 | | |
453 | 454 | | |
454 | 455 | | |
| 456 | + | |
| 457 | + | |
| 458 | + | |
| 459 | + | |
| 460 | + | |
| 461 | + | |
| 462 | + | |
| 463 | + | |
| 464 | + | |
| 465 | + | |
| 466 | + | |
| 467 | + | |
| 468 | + | |
| 469 | + | |
| 470 | + | |
| 471 | + | |
| 472 | + | |
| 473 | + | |
| 474 | + | |
| 475 | + | |
| 476 | + | |
| 477 | + | |
| 478 | + | |
| 479 | + | |
| 480 | + | |
| 481 | + | |
| 482 | + | |
| 483 | + | |
455 | 484 | | |
456 | | - | |
457 | | - | |
| 485 | + | |
458 | 486 | | |
459 | 487 | | |
460 | 488 | | |
| |||
0 commit comments