You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
DHT BatchStore handler (crates/protocol/src/dht.rs:28,179,308): ADR 022 discriminants 4/5 exist as wire types only; inbound BatchStore is closed with APP_ERR_UNSUPPORTED_MESSAGE and senders fall back to per-hash Store. Correct but chatty; the deferred handler (admission + two-stage rate-limit accounting) is untracked.
This is a concrete, well-scoped deferred implementation task split from #1565. The BatchStore wire types (ADR 022 discriminants 4/5) are already defined in crates/protocol/src/dht.rs; the missing piece is the handler-side admission logic — two-stage rate-limit accounting on DhtRateLimiter plus the publisher-side fallback cache. Issue #648 (now closed/completed) covered the same ground but was closed as completed in May 2026 — it's worth verifying whether that work actually landed or was closed prematurely before starting fresh implementation.
📊 Assessment
Dimension
Value
Reasoning
Type
Task
Deferred implementation with clear acceptance criteria inherited from ADR 022 / #648
Activity
github-actions commentedon Aug 5, 2026
🎯 Triage report
This is a concrete, well-scoped deferred implementation task split from #1565. The
BatchStorewire types (ADR 022 discriminants 4/5) are already defined incrates/protocol/src/dht.rs; the missing piece is the handler-side admission logic — two-stage rate-limit accounting onDhtRateLimiterplus the publisher-side fallback cache. Issue #648 (now closed/completed) covered the same ground but was closed as completed in May 2026 — it's worth verifying whether that work actually landed or was closed prematurely before starting fresh implementation.📊 Assessment
technical,rust,low(existing)DhtRateLimiter, replace stub handler arm, add per-receiverunsupported_untilcache. Wire types and ADR ACs 17-20 provide well-defined success criteria🔗 Similar issues
💡 Notes and suggestions
Before starting, verify #648's closure:
DhtRateLimiterhas a partial-admit method and whetherread_dht_requeststill sendsAPP_ERR_UNSUPPORTED_MESSAGEforBatchStore.crates/node/src/handlers/dht.rs— look for theBatchStorearm inread_dht_request.crates/protocol/src/dht.rs:28,179,308— wire type stubs mentioned in issue body.Implementation checklist (from ADR 022 ACs 17-20):
APP_ERR_UNSUPPORTED_MESSAGEarm inread_dht_requestwith real handler routingBatchStorethroughRecordStore::insert_atper-hashpartial_admit(n: usize) -> (usize, bool)(or equivalent) method onDhtRateLimiterfor two-stage token consumptionhashes.len() > 256→MALFORMED_MESSAGE(0x03) rejection (AC 19)client::batch_storeprimitive in the publisher pathunsupported_until: Option<Instant>fallback cache (AC 20)References:
adr/022-content-discovery.md§STORE Flow and §DHT Bandwidth Analysiscrates/protocol/src/dht.rs—BatchStoreRequest,BatchStoreAck,MAX_BATCH_STORE_HASHEScrates/node/src/handlers/dht.rs— current stub rejection armAdd this agentic workflow to your repo
To install this agentic workflow, run
feat(node): batch DHT re-publish by receiver; drop BatchStore fallback (