testnet-canary: restore foreground catch-up backpressure recovery - #1937
Conversation
Review — does #1937 faithfully restore #1895?Reviewed specifically as a forward-port of #1895 onto the restructured canary tree (worth doing carefully, since #1895's retry helper Verdict: faithful and correct. All five #1895 behaviors are restored, and the port integrates cleanly with the current tree.
Details verified sound:
One follow-up worth doing — LOW, test-only, not a blockerThe admission-boundary unit coverage was dropped in the port. #1895 shipped three assertions in Recommend porting #1895's three (Trivial: the rationale docstrings on both constants — the 2000 > 1000 > 0 ranking, and "transport/authz/timeout/integrity deliberately not retried" — were lost in the move; the values themselves are unchanged.) Net: the behavior is fully and correctly restored; the only real gap is a dropped admission-layer regression test. Reviewed with multi-agent cross-verification (faithfulness / adversarial / test-coverage lenses), all checked against post-merge canary source rather than |
Canary purpose
Restores the foreground catch-up backpressure behavior from #1895 on the current testnet-canary tree for live acceptance. This is the canary counterpart of #1934.
The original #1895 merge was removed by #1903 so that its test candidate exactly matched main plus #1877 and #1898. This forward-port reapplies the behavior after that isolated candidate was accepted.
Behavior
Validation on current canary head
Live acceptance after merge
Run an explicit foreground catch-up while sync capacity is occupied and confirm transient deferral recovers, durable precedes SWM, persistent pressure remains bounded, and the node remains healthy.