Repository navigation
Closed
Labels
prio:lowWhen convenient
Description
Umbrella for the LOW findings from the 2026-06-09 full-repository review. None is urgent; each is a small, localized fix. Split out individual issues if/when picked up.
Higher-severity findings from the same review are tracked separately: #835, #836 (HIGH); #837–#844 (MEDIUM). Already-tracked items were not re-filed: contracts pausedTotal growth (#780), buyer orphan-deposit reconciliation (#763), gossip Sybil-flood lockout (documented, gated on the on-chain staking registry).
node
-
handlers/client.rs:726-734—collect_voucheronly matchesRateError::Underpayment; any future non-underpaymentRateErrorvariant falls through and is silently treated as acceptable (downstreamapply_voucheris the only backstop). Match allErrarms explicitly so new variants fail the build. -
admin.rsbind— no warning on a non-loopback bind, unlikemetrics::bind(Origin pull-through SSRF + metrics_bind non-loopback warning #579). Mirror the warning as defense-in-depth for the unauthenticated admin surface. -
handlers/dht.rs:217-253— per-connection stream-accept loop has no cap on total streams or connection lifetime; a peer staying under the rate limit holds a dispatch permit indefinitely. Consider max-requests-per-connection or max-connection-age. (done in fix: close out remaining LOW review follow-ups (#845 #864) #869 —MAX_DHT_REQUESTS_PER_CONN+MAX_DHT_CONN_AGEcaps) -
dht/chain_staker_set.rs:8-9— module doc says "six membership-mutating events" but the watcher installs five filters (the:354comment is the accurate one). Fix the stale count.
gossip / protocol
-
gossip/src/service.rssubscriber — no self-announce filter (announce.body.node_id == self_id); latent (Plumtree doesn't echo to origin) but a one-line guard beforedispatch_insertis cheap. (done in fix: batch of six quick-win review follow-ups (#845 #864) #868) -
protocol/src/dht.rs:364-384— bounded-Vec hooks cap length afterVec::deserialize; safety rests on postcard not pre-allocating from the untrusted length prefix. Pin the assumption with a comment and/or a regression test (giant length prefix + truncated body ⇒ bounded allocation). - Appendix peer-table-eviction ADR — note the implicit ~60 s announce-replay window for peers not currently in the table (clock-skew tolerance is the only guard there; known peers get strict monotonicity). (done in fix: batch of six quick-win review follow-ups (#845 #864) #868)
incentive
-
voucher.rs/channel.rs— off-chain verification is EOA-only while the contract path (SignatureChecker) also accepts ERC-1271 smart accounts; fail-closed (smart-account clients are un-servable) but undocumented at these call sites. Document the ADR 024 deferral or add an explicit guard. (done in fix: batch of six quick-win review follow-ups (#845 #864) #868 — doc note at theverify_signercall site) -
channel.rs:255-260—apply_voucherdoes not itself enforce amount-vs-bytes rate consistency (lives in the node handler); document the obligation onapply_voucherso future callers don't skipverify_rate.
cache
-
engine.rs:878-928(+:1737,:1812) —evict()does a blockingsync_all()on the async runtime and is invoked from the hash-mismatch hot path; move the log append tospawn_blocking(also noted in cache: drain-path hash mismatch leaves a persistent named tag — wrong-hash bytes are GC-unreclaimable (unbounded disk growth) #837). (done in fix: batch of six quick-win review follow-ups (#845 #864) #868 —evict()is now async and runs the append onspawn_blocking)
cli
-
commands/bundle.rs:191-215—--excludedoesn't prune directory descent (filter_entry), excluded files are canonicalized first, and an escaping symlink inside an excluded dir still hard-bail!s. Consult the excluder before canonicalize/escape-check and prune directories. (done in fix: close out remaining LOW review follow-ups (#845 #864) #869 —filter_entryprunes before canonicalize; sentinel probe keeps one-level globs correct) -
commands/node.rs:241—decdn node announceexits 0 withannounce_queued=falsewhen the server reportstriggered=false; emit to stderr and/or non-zero exit, or rename the field.
contracts (docs only)
-
interfaces/IFeeRouter.sol/IFeeRouterSettlement.sol— docs assert a fixed 60/30/10 split, butFeeRouter._setSharesmakes it governance-mutable within bounds. Fix the doc drift. (done in fix: close out remaining LOW review follow-ups (#845 #864) #869 — on verification the drift was still present inIFeeRouter.sol(not resolved by fix(contracts): security audit pass — High + Medium findings #777); NatSpec now marks 60/30/10 as the governance-mutable default.IFeeRouterSettlement.solnever mentioned the split — no change needed.) -
PaymentChannel.sol:88— optionally note at theVOUCHER_TYPEHASHdeclaration that cross-chain/cross-contract replay protection relies on the EIP-712 domain separator (correct as-is). (done in fix: batch of six quick-win review follow-ups (#845 #864) #868)
Reacted by github-actions
Activity
github-actions commentedon Jun 9, 2026
🎯 Triage report
Well-structured umbrella tracking 13 low-severity findings from the 2026-06-09 full-repository review, spanning
node,gossip/protocol,incentive,cache,cli, andcontracts(docs only). All items include precise file:line references and explicit fix descriptions. None are urgent; several are quick wins (one-liners or doc edits). The umbrella should not be assigned directly — maintainers should split individual items into their own issues when picking them up.📊 Assessment
low(existing) +technical(added)lowalready captures severitycollect_vouchermatch arm, admin bind warning, and gossip self-announce filter. The DHT stream-cap and incentive EOA guard items need design judgment.🔗 Similar issues
evict()blockingsync_allitem listed here. Whoever fixes cache: drain-path hash mismatch leaves a persistent named tag — wrong-hash bytes are GC-unreclaimable (unbounded disk growth) #837 should fold in thespawn_blockingLOW item at the same time.💡 Notes and suggestions
Quick-win items (low effort, minimal design judgment needed):
dht/chain_staker_set.rs:8-9— stale doc count (six→five). One-line edit.gossip/src/service.rs— self-announce guard is a singleif announce.body.node_id == self_id { return; }beforedispatch_insert.interfaces/IFeeRouter.sol/IFeeRouterSettlement.sol— doc drift on 60/30/10 split; update comments to reflect governance-mutability.commands/node.rs:241— exit code / stderr onannounce_queued=falseis a straightforward change.admin.rsbind warning — copy the pattern already established inmetrics::bind(Origin pull-through SSRF + metrics_bind non-loopback warning #579).Items that need care or design input:
handlers/dht.rs:217-253— the issue says "consider" a cap, so the exact mechanism (max-requests-per-connection vs max-connection-age vs both) needs a decision before implementation.protocol/src/dht.rs:364-384— the postcard pre-allocation assumption should be verified against postcard source before adding the comment/test.commands/bundle.rs:191-215— symlink escape +--excludeinteraction; the fix order (excluder before canonicalize) is clear, but edge cases around traversal need a test.voucher.rs/channel.rsEOA-only — documenting the ADR 024 deferral is straightforward; adding an explicit guard needs clarity on whether smart-account clients should error with a specific code.Batching opportunity: The
evict()→spawn_blockingitem (cache) and the persistent-named-tag fix in #837 touch the same code region (engine.rs:878–1812). Consider a single PR that unifies all three wrong-hash paths plus thespawn_blockingmigration.Suggested sub-task checklist for tracking (copy into split issues as needed):
collect_voucherexhaustive match (handlers/client.rs:726-734)admin.rs)handlers/dht.rs:217-253) — needs design decisionservice.rs)dht.rs:364-384)voucher.rs/channel.rs)apply_voucherobligation doc (channel.rs:255-260)evict()spawn_blocking(batch with cache: drain-path hash mismatch leaves a persistent named tag — wrong-hash bytes are GC-unreclaimable (unbounded disk growth) #837 fix)--excludeprune + symlink fix (bundle.rs:191-215)node announceexit code (node.rs:241)VOUCHER_TYPEHASHEIP-712 replay note (optional)Add this agentic workflows to your repo
To install this agentic workflow, run
thiras commentedon Jun 10, 2026
PR #867 addresses six items from this umbrella: the
collect_voucherexhaustiveRateErrormatch, the non-loopback admin-bind warning, thechain_staker_set"six"→"five" doc fix, the bounded-Vec allocation comment + regression test, theapply_voucherrate-consistency doc, and thedecdn node announcenon-zero exit ontriggered=false. Checkboxes ticked accordingly; the remaining items are untouched.fix(cli): defer announce stdout until after the triggered check (#845)
fix: batch of nine quick-win review follow-ups (#845 #864) (#867)
fix: batch of six quick-win review follow-ups (#845 #864) (#868)
thiras commentedon Jun 10, 2026
#868 closed 5 items: gossip self-announce filter, appendix peer-table ~60s replay-window note, incentive EOA-only/ERC-1271 doc,
PaymentChannel.solEIP-712 domain-separator note, andcache::evict()async + spawn_blocking fsync.Remaining open:
handlers/dht.rsper-connection stream cap andcommands/bundle.rs--excludepruning (both larger than quick-win, deferred). TheIFeeRouter.soldoc-drift item appears already resolved by the #777 audit pass — left unchecked pending a confirm. Keeping the issue open.thiras commentedon Jun 10, 2026
All remaining items resolved in #869 (DHT per-connection cap,
bundle --excludeprune-before-canonicalize, and theIFeeRouterNatSpec drift — which on verification was still present). Every box is now ticked; this umbrella can be closed once #869 merges.fix: address multi-agent review findings (#845 #864)
fix: close out remaining LOW review follow-ups (#845 #864) (#869)
thiras commentedon Jun 10, 2026
All items resolved and merged in #869 (commit e125744). Closing — both 2026-06 review umbrellas are fully addressed.
refactor: two protocol simplifications — probe-hold reason label, ADR…