feat(p2p): DHT hardening, cover traffic module, and config hot-reload - #37
Merged
Conversation
Phase 1 of integrar-28sp-en-mesh-hermes: - Seed health gate: checkSeedHealth() with parallel 5s probe before DHT advertising; enters degraded mode (GossipSub-only) when unreachable - Parallel mDNS + DHT bootstrap for immediate LAN peer discovery - DHT health monitor with 2-failure threshold, degraded mode, and auto-recovery when DHT becomes reachable again - Cover traffic module (internal/covertraffic/) on dedicated /28sp/cover/v1 topic with CPU throttle (auto-reduce 50% at >80% load) - InitCoverTraffic/StartCoverTraffic in P2PHost API - ConfigWatcher with SHA-256 polling (2s interval) for hot-reload of cover traffic rates without restart - 8 RED tests for covertraffic (all passing), 5 test stubs for p2p SDD: integrar-28sp-en-mesh-hermes, PR 1/4
aratan
force-pushed
the
feat/dht-hardening-cover-traffic
branch
from
July 15, 2026 16:22
597954a to
1c539bb
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
/28sp/cover/v1with CPU throttleChanges
internal/covertraffic/covertraffic.gointernal/covertraffic/covertraffic_test.gointernal/p2p/hotreload.gointernal/p2p/p2p_test.gointernal/p2p/p2p.gointernal/p2p/discovery.gomain.goconfig.yamlTest Plan
go test ./internal/covertraffic/...— 8/8 PASSgo build ./...— compiles cleango vet ./...— no warningsgo build ./internal/p2p/...— builds (tests require libp2p, longer compilation)SDD
This is PR 1/4 of SDD change
integrar-28sp-en-mesh-hermes.