Skip to content

Low-severity follow-ups from the 2026-06 full-repository review (umbrella) #845

Closed

Description

@thiras

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_voucher only matches RateError::Underpayment; any future non-underpayment RateError variant falls through and is silently treated as acceptable (downstream apply_voucher is the only backstop). Match all Err arms explicitly so new variants fail the build.
  • admin.rs bind — no warning on a non-loopback bind, unlike metrics::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_AGE caps)
  • dht/chain_staker_set.rs:8-9 — module doc says "six membership-mutating events" but the watcher installs five filters (the :354 comment is the accurate one). Fix the stale count.

gossip / protocol

  • gossip/src/service.rs subscriber — no self-announce filter (announce.body.node_id == self_id); latent (Plumtree doesn't echo to origin) but a one-line guard before dispatch_insert is 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 after Vec::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 the verify_signer call site)
  • channel.rs:255-260 — apply_voucher does not itself enforce amount-vs-bytes rate consistency (lives in the node handler); document the obligation on apply_voucher so future callers don't skip verify_rate.

cache

cli

  • commands/bundle.rs:191-215 — --exclude doesn'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_entry prunes before canonicalize; sentinel probe keeps one-level globs correct)
  • commands/node.rs:241 — decdn node announce exits 0 with announce_queued=false when the server reports triggered=false; emit to stderr and/or non-zero exit, or rename the field.

contracts (docs only)

Activity

  1. added
    prio:low
    on Jun 9, 2026
  2. github-actions commented on Jun 9, 2026

    @github-actions

    🎯 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, and contracts (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

    Dimension Value Reasoning
    Type Task Tracking/cleanup umbrella for review follow-ups, not a single bug report
    Labels low (existing) + technical (added) Code-quality and correctness fixes across implementation crates; low already captures severity
    Coding agent Needs more info As an umbrella, not directly assignable. Once split, most items are well-specified — particularly the doc fixes, collect_voucher match arm, admin bind warning, and gossip self-announce filter. The DHT stream-cap and incentive EOA guard items need design judgment.

    🔗 Similar issues

    💡 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 single if announce.body.node_id == self_id { return; } before dispatch_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 on announce_queued=false is a straightforward change.
    • admin.rs bind warning — copy the pattern already established in metrics::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 + --exclude interaction; the fix order (excluder before canonicalize) is clear, but edge cases around traversal need a test.
    • voucher.rs/channel.rs EOA-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_blocking item (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 the spawn_blocking migration.

    Suggested sub-task checklist for tracking (copy into split issues as needed):

    • node: collect_voucher exhaustive match (handlers/client.rs:726-734)
    • node: admin bind non-loopback warning (admin.rs)
    • node: DHT stream-accept loop cap (handlers/dht.rs:217-253) — needs design decision
    • node: chain_staker_set.rs doc count fix
    • gossip: self-announce guard (service.rs)
    • protocol: postcard pre-alloc comment + regression test (dht.rs:364-384)
    • ADR appendix: peer-table-eviction announce-replay window note
    • incentive: EOA-only guard/doc (voucher.rs/channel.rs)
    • incentive: apply_voucher obligation doc (channel.rs:255-260)
    • cache: 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)
    • cli: --exclude prune + symlink fix (bundle.rs:191-215)
    • cli: node announce exit code (node.rs:241)
    • contracts docs: IFeeRouter split mutability note
    • contracts docs: VOUCHER_TYPEHASH EIP-712 replay note (optional)

    Generated by Agentic Triage for issue #845 · sonnet46 896.8K · ◷

    Add this agentic workflows to your repo

    To install this agentic workflow, run

    gh aw add githubnext/agentics/workflows/issue-triage.md@94ec5db57374c5b04a4b8eef8b4413f9af44d63f
    
  3. thiras commented on Jun 10, 2026

    @thiras
    ContributorAuthor

    PR #867 addresses six items from this umbrella: the collect_voucher exhaustive RateError match, the non-loopback admin-bind warning, the chain_staker_set "six"→"five" doc fix, the bounded-Vec allocation comment + regression test, the apply_voucher rate-consistency doc, and the decdn node announce non-zero exit on triggered=false. Checkboxes ticked accordingly; the remaining items are untouched.

  4. thiras commented on Jun 10, 2026

    @thiras
    ContributorAuthor

    #868 closed 5 items: gossip self-announce filter, appendix peer-table ~60s replay-window note, incentive EOA-only/ERC-1271 doc, PaymentChannel.sol EIP-712 domain-separator note, and cache::evict() async + spawn_blocking fsync.

    Remaining open: handlers/dht.rs per-connection stream cap and commands/bundle.rs --exclude pruning (both larger than quick-win, deferred). The IFeeRouter.sol doc-drift item appears already resolved by the #777 audit pass — left unchecked pending a confirm. Keeping the issue open.

  5. self-assigned this
    on Jun 10, 2026
  6. thiras commented on Jun 10, 2026

    @thiras
    ContributorAuthor

    All remaining items resolved in #869 (DHT per-connection cap, bundle --exclude prune-before-canonicalize, and the IFeeRouter NatSpec drift — which on verification was still present). Every box is now ticked; this umbrella can be closed once #869 merges.

  7. thiras commented on Jun 10, 2026

    @thiras
    ContributorAuthor

    All items resolved and merged in #869 (commit e125744). Closing — both 2026-06 review umbrellas are fully addressed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

prio:low

Type

Fields

Priority

None yet

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions