Two changes:
1. CORRECTION. The path-learning subsection previously described the
reference implementation's path-replacement as "replace only if
the new path's hash size is not smaller and SNR is not materially
worse" — but upstream's BaseChatMesh::onContactPathRecv() does an
UNCONDITIONAL replace, with an inline comment flagging hash-size/
SNR selection as future work. The spec now reflects upstream's
actual behavior and notes that quality heuristics are an
implementation extension, not a reference-implementation behavior.
Likewise, removed the implication that the reference implementation
has a cached-path TTL — it doesn't.
2. ADDITION. Document PATH_RETURN scheduling delay
(TXT_ACK_DELAY=200ms default in upstream BaseChatMesh.cpp:9), with
the rationale of spacing PATH_RETURN, ACK, and reply across
distinct slots.
Validated against upstream meshcore-dev/MeshCore @ 1a7b361
(BaseChatMesh.cpp:304-307 unconditional replace; cpp:228, 255
TXT_ACK_DELAY-spaced PATH_RETURN emission).
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Add a "Sender Behavior (Informational)" section to Section 17 that
captures the cross-implementation conventions for how senders should
behave above the wire format:
- Path Learning: cache the reversed accumulated path from received
flood-routed packets; replace only when the new path is at least as
good (hash size, SNR threshold implementation-defined).
- PATH_RETURN: proactive emission lets the original sender switch to
direct routing without waiting for an explicit path probe.
- Flood Fallback and Retries: track outstanding DMs by expected
ack_crc, increment attempt on each retry, hold timestamp constant,
fall back from direct to flood after N unacknowledged direct
retries.
- Transmission Priority (sender-originated) table: ACK > PATH >
direct reply > flood reply > req/resp > group > advert.
All of these are informational guidance; numeric tunings remain
implementation-defined. Complements the existing forwarding-priority
table.
Validated against upstream meshcore-dev/MeshCore @ 1a7b361
(BaseChatMesh send/recv flow, Mesh::createPathReturn,
handleReturnPathRetry).
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>