FleetMesh fleetmesh
Mesh Guide 8 Chapters
L4 Economics, Reputation & Antifragility L4 Economics, Reputation & Antifragility

Economics, Reputation & Antifragility.

An open peer-to-peer network faces a classic trap: let anyone flood the wire and the mesh collapses; charge admission tokens and newcomers get locked out. Layer 4 solves both with zero-stake probation, explicit bilateral grants, hash-chained receipts, local S0–S4 reverse reputation, and 4-rung antifragile load shedding.

4.0 · Layer 4 Big Picture

Fairness without gatekeepers, resilience without collapse

Traditional relays defend themselves with secret rate limiters, opaque bans, and third-party blocklists. Honest peers cannot tell throttling from packet loss, and a single moderation cartel ends up policing the whole network.

FleetMesh replaces opaque policing with five transparent bilateral mechanisms: zero-privilege node classes, published kind 30801 grants with load-weighted AIMD, SHA-256 hash-chained receipts, adverse-only S0–S4 reverse reputation, and 4-rung host capacity shedding backed by 32 isolated compartments.

Interactive Lab 4.0 · Layer 4 Peer Lifecycle Simulator
Step through how a brand-new stranger earns trust—and how abuse is contained
L4 L4
Companion Explainer 4.0
Layer 4: Economics, Reputation & Antifragility
Node Classes Node Classes

4.1 · Connectivity Without Privilege

Three Node Classes: Anchor, Edge & Leaf

The Concept

Many peer-to-peer networks accidentally recreate centralized rulers by granting datacenter “super-nodes” special voting rights or automatic trust. FleetMesh strictly separates network reachability from protocol authority: a cloud server, a home Raspberry Pi, and a web browser tab play different connectivity roles while obeying the exact same cryptographic and accounting rules.

FleetMesh Implementation

  • Anchor (Static Backbone): Always-on host with static TLS/FIPS endpoints that mediates Leaves and holds reciprocal shards—with zero automatic privilege.
  • Edge (Home / NAT Peer): Raspberry Pi, laptop, or office server behind NAT that dials outbound via WSS, the opt-in iroh rung, or opt-in local LAN mDNS.
  • Leaf (Zero-Install Browser): Browser tab or PWA running @fleetmesh/leaf across ≥2 independent Anchor mediators with full local WebCrypto verification.
Interactive Lab 4.1 · Node Class & Authority Comparison
Inspect each node class’s hardware role, peering posture, and earned trust path
Node Classes Node Classes
Companion Explainer 4.1
Three Node Classes: Anchor, Edge & Leaf
Bilateral Grants Bilateral Grants

4.2 · Published Contracts & Open Probation

Bilateral Grants, Open Probation & AIMD

The Concept

Instead of hiding private rate limits or charging entry fees, two peers agree on an explicit, signed traffic budget upfront. Any stranger can start immediately in bounded probation (zero stake required), earn higher limits smoothly by carrying real verified traffic cleanly, halve ceilings on overruns, and gently decay back to the opening floor when idle.

FleetMesh Implementation

  • No Floors / Open Probation: Newcomers enter at 25% opening volume and tier_weight = 0.00, welcoming honest users while bounding Sybil blast radius.
  • Blinded kind 30801 Grants: NIP-44 encrypted, keyed by a pairwise HKDF-SHA256 blinded d-tag, locking exact window size, event caps, and byte limits (blob_bytes = 0 default).
  • Load-Weighted AIMD + Disuse Decay: Only receipted utilization grows ceilings (idle keepalives earn zero credit); overruns apply multiplicative decrease (× 0.5); prolonged disuse decays back to opening floor.
Interactive Lab 4.2 · Load-Weighted AIMD & Disuse Decay Simulator
Compare how real throughput, idle pings, bursts, and disuse reshape a peer’s grant ceiling
Grants Grants
Companion Explainer 4.2
Bilateral Grants, Open Probation & AIMD
Hash-Chained Receipts Hash-Chained Receipts

4.3 · Non-Repudiable Accounting

Hash-Chained Receipts & Partition Tolerance

The Concept

If two peers disagree about how much traffic crossed a link, how do you settle the dispute without a central referee—and without punishing someone whose home internet simply went down? Linking each hourly signed receipt to the SHA-256 hash of the previous receipt makes past counters tamper-proof, while physical egress checks distinguish real disconnects from evasion.

FleetMesh Implementation

  • DIDComm budget/1.0 Chains (r0 → r1 → r2): Each monotonic receipt commits window event/byte counters + prev_hash = SHA256(r_{n-1}) under the sender’s BIP-340 key.
  • Active vs. Inactive Silence: Missing receipts with traffic > 0 = Active Silence (local S2, no public report); missing receipts with traffic = 0 = clean network partition (zero penalty).
  • Counterparty-Signed Proof: Honest peers mathematically refute false claims, while dishonest edits break the chain immediately (S4).
Interactive Lab 4.3 · Real WebCrypto Receipt Chain & Silence Classifier
Verify a live SHA-256 receipt chain, test retroactive tampering, or classify silence
Computing SHA-256 receipt chain...
Receipts Receipts
Companion Explainer 4.3
Hash-Chained Receipts & Partition Tolerance
Reverse Reputation Reverse Reputation

4.4 · Evidence-Only Local Standing

Reverse Reputation & S0–S4 Severity Ladder

The Concept

Global star ratings and “web-of-trust” praise scores collapse under Sybil bots spinning up thousands of fake accounts to upvote each other. Reverse Reputation flips the model: normal honest work stays private, and public reports exist strictly for evidence-backed faults—weighted locally by each operator’s own trust graph rather than a central authority.

FleetMesh Implementation

  • Deterministic S0–S4 Ladder: S0 clean drift (+1 streak), S1 honest burst (×0.5, notice first), S2 misreport (×0.25, probation), S3 abuse flood (0 for 24h), S4 crypto malice (revoked).
  • Local Subjective Weighting: w(r) = tier_weight × min(1, streak/168) × (1 − false_rate); binding horizon Σ w(r) ≥ 1.0 (fixed-point millionths).
  • Evidence Immunity & Liar Slashing: Valid counterparty-signed kind 30802 reports never harm the reporter; refuted claims slash the liar’s future weight. Explore the full simulator at reputation.html.
Interactive Lab 4.4 · S0–S4 Severity & Subjective Horizon Evaluator
Test severity rungs and Sybil-resistant reporter weight scenarios
Reverse Reputation Reverse Reputation
Companion Explainer 4.4
Reverse Reputation & S0–S4 Severity Ladder
Antifragility & Compartments Antifragility & Compartments

4.5 · Surge Defense & Bulkhead Isolation

Antifragility, 4-Rung Shedding & 32 Compartments

The Concept

Even twenty honest peers staying inside individual limits can saturate one host’s CPU, RAM, or NIC simultaneously. An antifragile node absorbs surges from the outside in—stepping through predictable defensive load-shedding rungs, self-tuning retry margins from real turbulence, and isolating subsystems behind bulkheads so one failing adapter never sinks the node.

FleetMesh Implementation

  • 4-Rung Capacity Shedding: Engages live at 75% (refuse new), 85% (narrow shards), 95% (amend down proportionally), and 100% (Leaf Mode), restoring below 60% hysteresis—never marked adverse.
  • Directional Strain Ledgers: Tracks 6 pressure counters per (peer, shard, transport) to widen receipt buffers automatically and flag >70% single-peer topological fragility.
  • 32 Isolated Compartments: 23 core + 9 optional compartments across 6 planes inside meshnode; see antifragility.html and anatomy.html.
Interactive Lab 4.5 · 4-Rung Host Capacity Shedding Simulator
Click a host aggregate load level to see which shedding rungs engage
Antifragility Antifragility
Companion Explainer 4.5
Antifragility, 4-Rung Shedding & 32 Compartments