Skip to content

Implement local reputation scoring (EWMA from delivery outcomes) #321

Closed

Description

@alpergundogdu

Context

ADR 008 specifies a local reputation score (0.0–1.0) computed from delivery interactions. PoC scope is local-only scoring (no network gossip aggregation). Required for node selection.

Scope (crates/reputation)

  • Score model: EWMA with configurable alpha (default 0.1)
  • Initial score: 0.5 for unknown peers
  • Input signals:
    • Delivery speed: bytes/sec vs expected 10 MiB/s baseline
    • Data correctness: BLAKE3 verification pass/fail
    • Connection success: reachability (connect succeeded/failed)
  • Score update: on each completed or failed stream interaction
  • Score query: fn score(node_id) -> f64 for node selection
  • Persistence: scores survive restarts (serialize to data_dir)

PoC simplifications (per ADR 008 §12)

  • No network gossip aggregation (local observations only)
  • No reporter weight calculation
  • No wash-trading detection
  • No score decay (can add post-PoC)
  • No cold-start bootstrap bonus

References

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

No type

Fields

Priority

None yet

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions