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
design:economicsToken economics, pricing, fee split, bond sizingprio:highNext uprustDependabot: a Cargo update; use area: labels for Rust code otherwise
PaymentChannel.getRateBounds() is never called; bounds come only from local config as a documented stand-in (crates/common/src/config/mod.rs:2007). Governance rate-bound changes are invisible to running nodes.
Action: fetch at startup (refuse to start on u64 overflow), subscribe to RateBoundsUpdated, poll fallback (rate_bounds_poll_interval, default 1h).
Filed from the ADR→implementation gap analysis. ADR edits must be made in place with no historical/tombstone text (no "planned but cut" sentences) per repo ADR convention.
Triage note for a later run: automated dispatch skipped this because the interaction between the on-chain bounds and the existing local config is not pinned.
The mechanism itself is well specified (ADR 003 §Rate Bounds Refresh / ADR 019 §3.1). What is undecided: delivery_floor/delivery_ceiling are today plain u64 in ResolvedPayment (crates/common/src/config/resolved.rs:404) with a deliberate 0 free-serving default (#864, see the comment at crates/node/src/handlers/client.rs:2688). Does the chain value replace the local config, intersect with it, or apply only when a PaymentChannel address is configured? All three are defensible and they produce different daemons.
Worth noting getRateBounds is currently read by no Rust code at all (grep -rn 'getRateBounds|rateBounds' crates/ is empty), so this is greenfield rather than a modification.
Scope is also borderline: converting two static fields into live-updating shared state plumbed through handlers/client.rs + handlers/probe.rs, plus a new watcher task, a new rate_bounds_poll_interval config field (schema + resolver + validation + example) and startup ordering lands around 300-500 lines across ~8 files. Pinning the precedence question is the one blocker; the scope may then warrant a split.
design:economicsToken economics, pricing, fee split, bond sizingprio:highNext uprustDependabot: a Cargo update; use area: labels for Rust code otherwise
Activity
yigitdot commentedon Jul 18, 2026
Triage note for a later run: automated dispatch skipped this because the interaction between the on-chain bounds and the existing local config is not pinned.
The mechanism itself is well specified (ADR 003 §Rate Bounds Refresh / ADR 019 §3.1). What is undecided:
delivery_floor/delivery_ceilingare today plainu64inResolvedPayment(crates/common/src/config/resolved.rs:404) with a deliberate0free-serving default (#864, see the comment atcrates/node/src/handlers/client.rs:2688). Does the chain value replace the local config, intersect with it, or apply only when a PaymentChannel address is configured? All three are defensible and they produce different daemons.Worth noting
getRateBoundsis currently read by no Rust code at all (grep -rn 'getRateBounds|rateBounds' crates/is empty), so this is greenfield rather than a modification.Scope is also borderline: converting two static fields into live-updating shared state plumbed through
handlers/client.rs+handlers/probe.rs, plus a new watcher task, a newrate_bounds_poll_intervalconfig field (schema + resolver + validation + example) and startup ordering lands around 300-500 lines across ~8 files. Pinning the precedence question is the one blocker; the scope may then warrant a split.feat(node,cli): wire on-chain rate bounds, cache eviction driver, cli…
test(e2e): ratified rate bounds (G-GOV-02) reach a live daemon (#1041) (