Registry Rewind T-Inversion Steals Bonus Share
The k=2 bonus formula scores each deposit as (T − entryTime)², where T = riskWindowEnd. DESIGN.md §11 confirms the protocol treats benign registry rewinds (e.g. PRODUCTION → UNDER_ATTACK) as a real, anticipated event, and patches withdraw() against them — but the same protection was never applied to stake(). Since riskWindowEnd seals permanently on first terminal observation, a rewind can reopen deposits after T is already fixed, letting a new deposit's entryTime land after T. Because the score is squared, this doesn't fail to penalize the late deposit — it inverts the penalty into a reward larger than genuinely early stakers earn.
Likelihood:
Triggered by any registry rewind from a terminal state back to an active-risk state — DESIGN.md §11 confirms this is already an anticipated, non-adversarial scenario, not a hypothetical.
Requires only a normal deposit during the reopened UNDER_ATTACK phase after the rewind.
Impact:
A late entrant's score can exceed an early staker's, capturing a disproportionate — potentially majority — share of the bonus pool.
Honest early stakers lose bonus they are rightfully owed, with no action of their own causing it.
The PoC seals riskWindowEnd at day 15, rewinds the registry back to UNDER_ATTACK, then has Alice deposit at day 25 — 10 days after T was already fixed. The hand-derived scores show Alice's overshoot (15−25)² = 100 beats Bob's legitimate (15−10)² = 25, so Alice collects 4× Bob's bonus despite entering 15 days later.
Capping newEntry at riskWindowEnd prevents any deposit from ever scoring an entryTime > T, so a post-rewind deposit earns a score of zero for that portion instead of an inverted reward — restoring the intended [riskWindowStart, riskWindowEnd] bound the formula assumes. An equally valid alternative is blocking deposits outright once riskWindowEnd is sealed, matching how the pool already blocks deposits during PROMOTION_REQUESTED/PRODUCTION/CORRUPTED.
The contest is live. Earn rewards by submitting a finding.
This is your time to appeal against judgements on your submissions.
Appeals are being carefully reviewed by our judges.
The contest is complete and the rewards are being distributed.