Files
corescope-rx/test
efitenandClaude Opus 5 efcdc2a780 beta: give the asking an end, and make both throttles tunable on the server
Two gaps in the first cut, both raised from the field side.

"Until it answers" never ends. A repeater held in range that does not reply was asked
again on every reception for the rest of the session, which is a poll, not a
measurement. An encounter now gets betaMaxAsks unanswered asks (6) and then stops. What
reopens it is silence: after betaForgetMin (5) without hearing that node, the next
reception is a NEW encounter and the count starts clean, because the same repeater met
40 km later is a different distance and a different antenna aspect, and the failures of
the last meeting say nothing about this one. An answer still ends it permanently, and no
encounter reopens that.

The encounter is ended by silence rather than by elapsed time, so a node heard steadily
for ten minutes stays one meeting instead of being handed a fresh run halfway through.

Second, the 2s queue interval was the wrong knob to state as the rate, and it was
hardcoded. There are two distinct limits and they now live in config.json, editable on
the server between drives with no rebuild:

  betaAskGapSec     2   between ANY two transmitted asks; stops rounds overlapping
  betaTargetGapSec 15   between two asks to the SAME repeater; this is the rate that
                        matters for a node parked in range, heard many times a minute
  betaMaxAsks       6   unanswered asks per encounter
  betaForgetMin     5   silence that starts a new encounter

A value that is missing or unusable (string, negative, NaN) takes the default rather
than disabling the limit it configures: on a transmitting path a typo must not read as
"no limit".

enqueue now returns WHY it said no ('answered' / 'queued' / 'capped' / 'too-soon')
instead of a bare false, the per-ask log line carries "attempt N of M this encounter",
and the header gained a row counting receptions ignored because the repeater had used
its asks. Without that count a capped node and a node that stopped transmitting look
identical in the log.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01HSoyBhrLLtSqLgBMEKMiJV
2026-09-12 10:37:33 +02:00
..