mirror of
https://github.com/efiten/coredrive-rx.git
synced 2026-11-24 13:27:59 +00:00
An experiment, not a proposed default. Built for rx.on8ar.eu/beta and compiled in only by `REGION_BETA=1 vite build`; a normal build folds the flag to false and drops every branch, which the prod bundle confirms (none of the beta strings survive it). The premise under test, in the requester's words: a moving receiver goes from node to node, so a repeater is never asked often enough to block its own TX window. So this path removes all three throttles at once — the shared one-ask-per-60s airtime budget, the 5/15/30-minute per-target backoff, and the single in-flight slot. Procedure it implements: a reception of a repeater resolves to a full pubkey (advert carries one; discover and path-hash prefixes go through the CoreScope resolve endpoint the app already uses for names), the target is queued, and the queue drains one ask per 2s. A repeater is taken out of rotation only by answering. A target already queued is not queued twice, so the ask rate is the RECEPTION rate rather than a 2s clock; 2s is a floor between transmissions, not a generator. Dropping the single in-flight slot breaks the reply matcher: applyRegionsReply resolves one pending request, and with several outstanding, "something is pending" would file one repeater's regions under another. matchOutstanding keys on the 4-byte tag the companion echoes in its RESP_CODE_SENT ack, an unmatched reply is dropped rather than guessed at, and tags older than 120s are pruned so the map cannot grow without bound. Kept deliberately: the contact-path override (a saved contact with a stale out_path is FLOODed and repeaters ignore flooded requests), and its 20s restore hold. Whether restoring earlier costs the reply is a firmware question, and this experiment is not the place to answer it, so a round that needs an override blocks the queue for 20s. Overrides were needed twice in three field logs. What the field log will have to show, since the per-ask lines roll out of the 200-line buffer: two new header rows carry repeaters answered over repeaters seen, asks sent over replies, and the queue/outstanding/timed-out/unmatched/FLOOD counters. Not addressed here: simple_repeater rate-limits anon requests to 4 per 180s shared across all requesters and all types, so a repeater held in range for minutes will start dropping these. That is part of what the measurement is for. No service worker in this build: it is served from a subdirectory of the production origin, and registering '/sw.js' from there would claim the root scope and serve the experiment to the production URL. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01HSoyBhrLLtSqLgBMEKMiJV