Repository navigation
Closed
Closed
Copy link
Labels
prio:lowWhen convenient
Description
Umbrella for the LOW findings from the 2026-06-10 full-repository review (the follow-up to #845's 2026-06-09 review, focused on code merged since: #828–#834). None is urgent; each is a small, localized fix. Split out individual issues if/when picked up.
Higher-severity findings from the same review: #850–#853 (HIGH); #854–#863 (MEDIUM).
incentive
-
channel.rs:249-292—apply_voucheracceptsamount == last_amountwithbytes_deliveredadvanced and unconditionally overwriteslast_signature(:292), but the contract's_requireBytesTrackPaymentreverts close/dispute on exactly that shape (ByteAdvanceWithoutPayment). Withrate_per_mb = 0— a legal config (delivery_floordefaults 0;verify_rateblesses zero-rate serving,rate.rs:179-192) — every voucher strands the close path:closeChannelreverts,withdrawrevertsNothingToWithdraw, the sweep burns gas, and the channel only exits via expiry +reclaimExpired. No signature history is kept, so there is no fallback voucher. Mirror the contract predicate inapply_voucher(or refuse to overwritelast_signaturewith a zero-delta voucher; or forbidrate_per_mb == 0at validation).
node
-
reputation_indexer.rs:250-288,332-336,372—ChannelSettledprocessed before itsChannelOpened(same poll window, independent filter streams) resolvesclient_addrtoNone;apply_settlementstill markssettled_seen, so the client party's reporter credit is dropped permanently with no retry. Park unmatched settled events keyed bychannelIdand re-process on the matching open (or don't mark seen). (done in fix: batch of six quick-win review follow-ups (#845 #864) #868 — bounded FIFO park-and-re-credit) -
reputation_indexer.rs:120-128—IndexerState.channels(everyChannelOpenednetwork-wide, never removed after settlement credit) andsettled_seenonly grow for the process lifetime. Remove the channel entry once credited; boundsettled_seen(rolling window/LRU). (channelsentry removal landed in fix: batch of nine quick-win review follow-ups (#845 #864) #867;settled_seenbounded via companion FIFO (MAX_SETTLED_SEEN) in fix: close out remaining LOW review follow-ups (#845 #864) #869 — now fully resolved.) -
runtime/mod.rs:1243-1256+gossip/src/service.rs:394-396—report_drainis gated only onnode_to_node_pull_through_enabled; withgossip.subscribe_reputation = falsethe gossip service returns with no tasks and no log, so outbound reports silently never publish while theObservationBufferkeeps accumulating (node_origin.rs:473). Warn at bring-up whenreport_drain.is_some() && !subscribe_reputation(defaults are live; only this opt-out combination is inert).
reputation
-
network.rs:224-316— the distinct-reporter threshold gates visibility (score()/is_scored()neutral until 3 reporters) but not magnitude:record()folds every accepted report intoentry.scorepre-threshold, so one staked reporter at the 1/(pair·hour) rate limit can pre-load an extreme score that two one-shot reporters then instantly reveal. Begin accumulating only at the floor, or track per-reporter contributions so no single reporter dominates pre-threshold. (Arguably an ADR 008 design gap as much as code.) (done in fix: batch of six quick-win review follow-ups (#845 #864) #868 — fold gated on the distinct-reporter threshold) -
network.rs:236-242,coverage.rs:77-84—NetworkEntry/coverage buckets are created on first report for any 32-byteproviderwith no existence check against the peer table / staker set, and eviction requires near-neutral and >26 weeks idle. Staked-gated and rate-limited, hence LOW — but defer entry creation to the reporter threshold or validate the provider id. (done in fix: batch of six quick-win review follow-ups (#845 #864) #868 —accept()now drops reports for providers not in the active staker set)
cli
-
commands/node.rs:896-910,commands/node_top.rs:335-347—decdn node */node topderive the admin/metrics URL from flag →DECDN_ADMIN_URL→ file → default, ignoring the daemon'sDECDN_ADMIN_PORT/DECDN_METRICS_PORTenv vars (common/src/cli/run.rs:188-200); in an env-only deployment the CLI dials 9191 and reports "is the node running?". Consult the port env vars between the URL flag and the config file. (done in fix: batch of six quick-win review follow-ups (#845 #864) #868) -
commands/config.rs:262-335(DEFAULT_CONFIG) +:61-231(validate summary) — whole sections absent from both:[gossip],[security],[dht],[receipts]; plusnetwork.enable_0rtt,cache.origin/origins/pinned_hashes/origin_retry/user_agent,payment.voucher_interval_mb,observability.metrics_bind, and the Implement on-chain CapacityBond and PaymentChannel contract integration #327/Node-to-node buyer-side openChannel for cache-miss settlement #744/Implement a configurable per-channel settlement trigger so nodes can automatically submit on-chain settlement when a channel's outstanding voucher value crosses a governance-set threshold #742 blockchain knobs. Combined with config: deny_unknown_fields missing on FileConfig and 7 section structs — typos in [blockchain]/[network]/[gossip]/[observability] silently no-op #842, a typo'd[gosip]table is invisible at every layer. Add commented template blocks and surface at least the kill-switch/rate-limit knobs in the summary. (done in fix: close out remaining LOW review follow-ups (#845 #864) #869 — all four sections + missing knobs added to the template; kill-switch/rate-limit knobs surfaced in the validate summary; round-trip parse test added)
ci
-
.github/workflows/ci.yml:276—cargo llvm-cov nextestnever runs doctests (nor doesrelease.ymlor pre-commit), so thecompile_faildoctest guard atcrates/node/src/receipt_log.rs:112is dead and any future runnable doctest will silently never execute. Addcargo test --doc --workspaceto the test job.
Reacted by github-actions
Activity
github-actions commentedon Jun 10, 2026
🎯 Triage report
A well-formed umbrella tracking 9 LOW-severity findings from the 2026-06-10 repository review, covering code merged in PRs #828–#834. All items include precise file and line-number references with suggested fixes. This is the direct successor to #845 (2026-06-09 LOW umbrella); higher-severity findings from the same review session are tracked in #850–#863.
📊 Assessment
technical,low(already applied)🔗 Similar issues
💡 Notes and suggestions
Item breakdown by crate and suitability once split out:
incentiveapply_voucherzero-rate channel stranding (channel.rs:249-292)nodereputation_indexerevent-ordering race, permanent credit drop (rs:250-288)nodeIndexerState.channels/settled_seenunbounded growth (rs:120-128)nodesubscribe_reputation = false(runtime/mod.rs:1243)reputationnetwork.rs:224-316)reputationNetworkEntrycreation without peer-table validation (network.rs:236)cliDECDN_ADMIN_PORT/DECDN_METRICS_PORTenv varscliDEFAULT_CONFIG/ validate summary missing[gossip],[dht],[security], etc.cicompile_failguard atreceipt_log.rs:112is deadcargo test --doc --workspaceSuggested split order: CI doctest and node startup-warn items are the lowest-friction splits (no design ambiguity). The reputation pre-loading item (#5 above) needs an ADR 008 annotation before code changes land.
Cross-cutting note: The
commands/config.rsgap (#842 interaction) and theapply_voucherchannel-stranding item are the two findings here with the most user-visible impact, even at LOW severity — consider bumping those to individual issues sooner.Add this agentic workflows to your repo
To install this agentic workflow, run
thiras commentedon Jun 10, 2026
PR #867 addresses three items: the
apply_voucherzero-payment byte-advance documentation, the bring-up warning when a report drain is wired withsubscribe_reputation = false, and thecargo test --doc --workspaceCI step.Partial: the
reputation_indexer.rs:120-128unbounded-growth item is half done — PR #867 removes thechannelsentry once a settlement is credited, but does not yet boundsettled_seen(LRU/rolling window). Left unchecked. Thereputation_indexer.rs:250-288settle-before-open parking item is also untouched.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 4 items: reputation_indexer settle-before-open parking (bounded FIFO re-credit),
network.rspre-threshold fold gating,network.rs/coverage.rsnon-staked-provider drop, and the CLIDECDN_ADMIN_PORT/DECDN_METRICS_PORTconsult.Remaining open:
reputation_indexer.rs:120-128is only partially done — thechannelsentry removal landed in #867, but boundingsettled_seenis still outstanding — andcommands/config.rsDEFAULT_CONFIG/validate-summary coverage. Keeping the issue open.thiras commentedon Jun 10, 2026
All remaining items resolved in #869 (
settled_seennow bounded by a companion FIFO, completing the #867channelsremoval; and the full config-surface gap —[gossip]/[security]/[dht.rate_limit]/[receipts]+ missing knobs — closed in both DEFAULT_CONFIG and the validate summary). 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 — every box ticked and shipped.
ci: move doctests to a dedicated parallel job
ci: run doctests in a dedicated parallel job (off the critical-path t…
fix(contracts): enforce per-byte price floor at settlement (#846) (#891)