mirror of
https://relay.ngit.dev/npub15qydau2hjma6ngxkl2cyar74wzyjshvl65za5k5rl69264ar2exs5cyejr/ngit-grasp.git
synced 2026-10-06 15:38:25 +00:00
A global five-second cursor makes descendant recovery latency scale with every relay, while advancing at request admission can skip a filter whose queued or active subscription later fails. Permanent coverage also needs a historic baseline because limit:0 protects only events arriving after admission. Give each constrained relay one EOSE-confirmed fallback cursor. Every five-second maintenance pass may start one filter per constrained relay, but never a second while that relay has a queued or active descendant batch. Successful terminal completion advances the cursor; failure retains the same filter. Later requests begin at the last successful upper bound minus fifteen minutes. All work uses the existing transient permit queue without request-class priority. Pair every permanent live admission with complete descendant history, and augment ordinary core historic batches with direct-member filters already known locally. A test-only NIP-11 subscription limit forces fallback end to end; a normal source proves retained live delivery. Large frontiers are verified to split across several grouped subscriptions. Cursors remain session-local, descendants remain non-recursive, core and auxiliary filter packing remain separate, and multi-connection sharding is excluded. Correctness assumes failed or CLOSED batches are removed through the existing terminal paths, which now release the matching in-flight cursor without advancing it. Validated locally with cargo check --lib, cargo test --lib (673 passed), both descendant integration scenarios, and the large-frontier grouping test. Archive production at the pre-amend behavior-identical tip installed permanent coverage, split six filters across two subscriptions, and rotated constrained Shakespeare filters sequentially with successful terminal results. The amendment only corrects the terminal log label so it also describes the historic baseline used by permanent coverage.