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
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.
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
@fleetmesh/leaf across ≥2 independent Anchor mediators with full local WebCrypto verification.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
tier_weight = 0.00, welcoming honest users while bounding Sybil blast radius.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).× 0.5); prolonged disuse decays back to opening floor.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
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.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
w(r) = tier_weight × min(1, streak/168) × (1 − false_rate); binding horizon Σ w(r) ≥ 1.0 (fixed-point millionths).kind 30802 reports never harm the reporter; refuted claims slash the liar’s future weight. Explore the full simulator at reputation.html.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
(peer, shard, transport) to widen receipt buffers automatically and flag >70% single-peer topological fragility.meshnode; see antifragility.html and anatomy.html.