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
{{ message }}
Repository navigation
roundup: small untracked follow-ups from the deferred-work sweep #1565
Roundup of small, verified, untracked follow-ups from the deferred-work sweep. Each can be promoted to its own issue when picked up.
cache retry amplification (crates/cache/src/retry.rs:41): N concurrent waiters on one missing hash can each become owner in turn and run a full retry budget sequentially — up to N budgets against a down origin. The comment calls the shared retry-budget "not implemented"; decide whether the accepted trade-off needs a bound.
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.
Multicall3 batching for bond-registry bootstrap (crates/node/src/dht/capacity_bond_registry.rs:352): bootstrap_registry does an isActive call per entry on each paginated getActiveNodes read, repeated every 15-minute resync.
This is a roundup issue tracking four small, verified follow-ups surfaced during a deferred-work sweep. Each item is self-contained with an exact code location and a brief description of the accepted trade-off or deferral reason. The issue is well-structured and actionable as-is; individual items can be split into their own issues when picked up.
📊 Assessment
Dimension
Value
Reasoning
Type
Task
A tracked work-item list, not a bug report or feature request
Labels
technical, rust, low (existing — unchanged)
Accurate; all four items are low-priority Rust implementation gaps
Coding agent
Suitable (per item)
Each sub-item has a precise file:line reference and a clear acceptance criterion; they can be independently assigned
Cache retry amplification (crates/cache/src/retry.rs:41)
N concurrent waiters can each become retry owner sequentially, multiplying origin load up to N×budget. Decide whether to bound N (e.g. single-owner-with-waiters) or document the trade-off explicitly. A coding agent can implement the single-owner pattern with a tokio::sync::watch or semaphore guard.
DHT BatchStore handler (crates/protocol/src/dht.rs:28,179,308)
Wire types exist; inbound is rejected with APP_ERR_UNSUPPORTED_MESSAGE and senders fall back to per-hash Store. The chattiness is a known cost. The deferred handler needs admission logic and two-stage rate-limit accounting per ADR 022. This is the highest-complexity item — probably not a good first coding-agent task without an ADR amendment scoping the admission rules.
Multicall3 batching for bond-registry bootstrap (crates/node/src/dht/capacity_bond_registry.rs:352)
Current code: one isActive RPC call per entry per 15-minute resync cycle. Fix: batch via Multicall3. Well-scoped; a coding agent can implement this with the existing alloy stack.
S3 body-phase error context (crates/cache/src/origin/s3.rs:636)
Body-phase stream errors lose the (bucket/redacted) prefix. Fix: propagate the key into the body-phase error context (likely a map_err` closure). The simplest item here; good candidate for a first pick-up.
Activity
github-actions commentedon Aug 1, 2026
🎯 Triage report
This is a roundup issue tracking four small, verified follow-ups surfaced during a deferred-work sweep. Each item is self-contained with an exact code location and a brief description of the accepted trade-off or deferral reason. The issue is well-structured and actionable as-is; individual items can be split into their own issues when picked up.
📊 Assessment
technical,rust,low(existing — unchanged)🔗 Similar issues
💡 Notes and suggestions
Per-item breakdown for maintainer routing:
Cache retry amplification (
crates/cache/src/retry.rs:41)N concurrent waiters can each become retry owner sequentially, multiplying origin load up to N×budget. Decide whether to bound N (e.g. single-owner-with-waiters) or document the trade-off explicitly. A coding agent can implement the single-owner pattern with a
tokio::sync::watchor semaphore guard.DHT
BatchStorehandler (crates/protocol/src/dht.rs:28,179,308)Wire types exist; inbound is rejected with
APP_ERR_UNSUPPORTED_MESSAGEand senders fall back to per-hashStore. The chattiness is a known cost. The deferred handler needs admission logic and two-stage rate-limit accounting per ADR 022. This is the highest-complexity item — probably not a good first coding-agent task without an ADR amendment scoping the admission rules.Multicall3batching for bond-registry bootstrap (crates/node/src/dht/capacity_bond_registry.rs:352)Current code: one
isActiveRPC call per entry per 15-minute resync cycle. Fix: batch viaMulticall3. Well-scoped; a coding agent can implement this with the existingalloystack.S3 body-phase error context (
crates/cache/src/origin/s3.rs:636)Body-phase stream errors lose the
(bucket/redacted) prefix. Fix: propagate the key into the body-phase error context (likely amap_err` closure). The simplest item here; good candidate for a first pick-up.Suggested split order (easiest → hardest): S3 error context → Multicall3 batching → cache retry amplification → DHT BatchStore.
Add this agentic workflow to your repo
To install this agentic workflow, run
refactor(registry): honest getRegisteredNodes with on-chain active[],…
alpergundogdu commentedon Aug 5, 2026
Item 3 (Multicall3 / bond-registry bootstrap N+1) shipped in #1613. The three remaining items are split into their own issues:
Closing this roundup; follow-up tracked in the issues above.