Skip to content

Discussion: keep or remove LoadHint from NodeAnnounce #616

Closed

Description

@alpergundogdu

Status

Open question, no proposal attached. The goal of this thread is to decide whether LoadHint carries its weight in NodeAnnounce, or whether it should be dropped, or whether the missing cross-check should be built. Two steelmen below; please pick holes in both.

What LoadHint is today

A 5-byte struct (active_streams: u32, bandwidth_utilization: u8) carried inside the signed NodeAnnounceBody, broadcast every announce interval (PoC default: 60s). Defined in adr/001-network.md lines 62–66. Described as "advisory and untrusted" — ADR 001 line 72 claims the reputation system "penalizes nodes whose observed delivery performance contradicts their advertised load."

It feeds tier 1 of the 4-tier tie-breaker in adr/008-reputation.md § Tie-Breaking when two nodes' unified selection scores are within 1% of each other (tiers: load → geographic diversity → stake → random).

State of the implementation:

  • Publisher writes LoadHint { active_streams: 0, bandwidth_utilization: 0 } on every announce — see crates/gossip/src/service.rs (the publish loop)
  • Onboarding's first announce is also 0, 0 — adr/019-node-onboarding.md Step 4.2
  • Tie-break logic compares bandwidth_utilization first, then active_streams — crates/node/src/selection.rs::compare_load
  • ProbeResponse does not carry load, only rate and RTT — LoadHint is the only load-shaped signal anywhere in the selection path
  • Schema is frozen per ADR 013; any removal is an ALPN bump

Steelman — KEEP

  1. Only load-balancing signal available at selection time. Without it, two nodes with identical price/RTT/reputation are indistinguishable until a request actually lands. Tie-break would fall through to geographic diversity, which doesn't help if all candidates are in the same region.
  2. Cost is essentially zero. ~5 bytes inside a ~150–800 byte signed message at one announce per minute. Removing it saves nothing measurable.
  3. Incentive alignment is structurally sound. Under-report → get oversubscribed → miss SLA → reputation drops. Over-report → lose selections you could have won. Same advisory-but-self-correcting pattern as region self-attestation, which ADR 030 explicitly endorsed over cryptographic attestation.
  4. Schema freeze cost is real. Removing it now triggers an ALPN bump on a live testnet. ADR 013's freeze policy is meant to prevent exactly this churn.
  5. Current zero-write is unfinished wiring, not a design defect. Plumbing real counters through is a small, contained change in the gossip publisher. The schema doesn't need to move.
  6. Future P2P load-shedding would re-add a near-identical field. Keeping it preserves optionality at no marginal cost.

Steelman — REMOVE

  1. The "reputation penalizes lying" linkage is documented but not built. Reputation in ADR 008 is updated from delivery outcomes (latency, errors), not from any advertised-vs-observed load comparison. There is no telemetry path where a client says "claimed 20% util, behaved like 95%." A node that lies just looks slow — same penalty as an honest slow node — so the honesty incentive is rhetorical at the implementation level.
  2. Inert in production today. Publisher writes 0/0, onboarding writes 0/0, every test writes 0/0. The tier-1 tie-break has been comparing zero to zero since the gossip crate landed — tier 2 (geographic diversity) is doing the actual work.
  3. The closed-loop signals already cover saturation. A saturated node responds more slowly → its rtt_ms rises in the next probe → it slides in the selection score → its reputation drops from observed slow deliveries. The loop closes within seconds. LoadHint is an open-loop hint that weakly duplicates this.
  4. Adversarial signaling is a real surface. Two failure modes that need defending: (a) coordinated honest-reporters get out-selected by zero-reporters once heterogeneity appears; (b) a sybil cluster claims 0% util to win tier-1 ties from honest competitors reporting 50%. Defending these needs the cross-check that doesn't exist.
  5. Precedent in this repo is to drop unenforceable signals. ADR 027 was deleted, ADR 030 rejected cryptographic region attestation, ADR 010 dropped multi-token. The principle is "if we can't defend it on-chain or via reliable observation, don't bake it into wire." LoadHint fits the pattern — and unlike region, has no latency-based observability fallback.
  6. ADR 013's freeze policy supports removal. Two-phase deserialization is designed to allow signed-field changes via ALPN bump; the freeze is "don't churn casually," not "never change." Pre-launch testnet is the cheapest moment.

Third option — BUILD THE CROSS-CHECK

If the honesty incentive is the load-bearing argument for keeping the field, then "keep" implicitly commits us to building the missing telemetry: a path where a client tracks observed pull throughput against the advertised bandwidth_utilization from the most recent NodeAnnounce, feeds it into a dedicated reputation component, and rate-limits to avoid noise. If that work isn't on the roadmap, the field is decorative.

Scope sketch (not a proposal, just for cost estimation):

  • Cache pull-completion telemetry: log (node_id, advertised_util_at_probe_time, observed_mb_per_s) per completed transfer
  • New reputation sub-signal in ADR 008: load_honesty_score updated on each completed pull, EWMA with per-report clamp
  • Decide whether load_honesty_score rolls into final_score or stays as a separate per-operator attribute (like the regional-coverage signal already added in ADR 008)
  • Spec the threshold ("claimed N%, observed equivalent of M%") — non-trivial because real throughput depends on the client's own pipe too

Questions for the thread

  1. Is the honesty incentive in ADR 001 line 72 something we intend to actually build, or is the field load-bearing only for tie-breaking?
  2. If only for tie-breaking: how often does tier 1 actually fire at PoC scale (tens of nodes, 1%-band ties), and is geographic-diversity tier 2 a sufficient substitute?
  3. Does the "future load-shedding" argument hold weight, or is it speculative scope?
  4. Is the ALPN-bump cost on testnet a real blocker or routine?

Related

Activity

  1. github-actions commented on May 20, 2026

    @github-actions

    🎯 Triage report

    This is a well-structured design discussion (not a bug report) asking the team to decide the fate of LoadHint in NodeAnnounce: keep it and wire up real counters, remove it (with an ALPN bump), or commit to building the missing reputation cross-check that would make it honest-signal rather than decorative. The issue already has adr-review and technical labels; the existing labels are appropriate and no additional ones are needed. The issue author also correctly identifies #412 (popular_hashes removal) as the closest analogue precedent.

    📊 Assessment

    Dimension Value Reasoning
    Type Task Design decision thread requiring an ADR update once resolved; not a bug or pure feature request
    Labels unchanged (adr-review, technical) Existing labels are accurate; scope or missing-decision could apply but would be redundant given the content
    Coding agent Not suitable Requires a team design decision first — three mutually exclusive outcomes, each with different implementation scope and ADR impact

    🔗 Similar issues

    💡 Notes and suggestions

    Key tension: The "KEEP" steelman's strongest argument is that the current zero-write is wiring debt, not a design flaw — fixing it is a small, contained change. The "REMOVE" steelman's strongest counter is that the honesty incentive documented in ADR 001 §72 is unimplemented at the reputation layer, making the field a promise the system doesn't keep. These two frames can be separated:

    1. Tie-break question (independent of honesty): Does tier-1 (bandwidth_utilization) actually fire at PoC scale? At tens of nodes with 1%-band similarity thresholds, tier-1 ties may be vanishingly rare. If geographic diversity (tier 2) is doing all the real work today, the argument for keeping the field weakens significantly. The team could check: in any existing integration tests or simulation, how often do two candidates land within 1% of each other?

    2. Honesty-incentive question (separate): If the team decides to keep the field for tie-breaking only, the ADR 001 §72 claim should be retracted or scoped as "future work" to avoid misleading reviewers. Leaving an asserted-but-unbuilt honesty mechanism documented as live is a maintenance hazard.

    3. ALPN bump cost: The issue notes ADR 013 freeze policy; the question is whether a pre-launch testnet bump is "cheap" or "disruptive." The team should agree on this before treating bump cost as a tiebreaker argument.

    Suggested decision tree for the thread:

    • Agree on how often tier-1 tie-break fires at PoC scale (data from tests or simulation)
    • Decide: is LoadHint needed for tie-breaking or only for honesty enforcement?
      • If tie-breaking only → drop honesty claim from ADR 001, wire real counters (small PR), close thread
      • If honesty enforcement is load-bearing → commit to the cross-check scope or remove the field
    • If removing: scope the ALPN bump (ADR 013 two-phase deserialization handles it; cost is a testnet redeploy)
    • Update affected ADRs: 001, 008, 013 (and optionally 012, 019, 005) to reflect the decision

    Rust implementation note: The zero-write is in crates/gossip/src/service.rs publish loop. Wiring real counters would require a handle into the connection metrics already tracked by ConnectionLimiter in crates/node/. Given the anti-panic policy and the existing metrics guard pattern in handlers, this is straightforward but crosses a crate boundary — gossip is currently a leaf crate with no node dependency, so the counter would need to be injected (e.g., as an Arc<AtomicU32> at construction time).

    Generated by Agentic Triage for issue #616 · ● 2.2M · ◷

    To install this agentic workflow, run

    gh aw add githubnext/agentics/workflows/issue-triage.md@94ec5db57374c5b04a4b8eef8b4413f9af44d63f
    
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Fields

Priority

None yet

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions