Skip to content

Release v0.3.8 — Kitsune P2P Phase 2#58

Merged
ApiliumDevTeam merged 5 commits intomainfrom
dev
Mar 8, 2026
Merged

Release v0.3.8 — Kitsune P2P Phase 2#58
ApiliumDevTeam merged 5 commits intomainfrom
dev

Conversation

@ApiliumDevTeam
Copy link
Contributor

Summary

  • Kitsune P2P Phase 2: 7 production hardening features (tombstones, reconnection, persistent peers, health checks, channel recv, rate limiting, cleanup)
  • P2P REST endpoints (/api/v1/p2p/*) for status, peer management, and discovery
  • 4 critical bug fixes from E2E testing (accept loop, ALPN, sync registration, lock-free pattern)
  • All product crate versions bumped to 0.3.8

Test plan

  • cargo test -p aingle_cortex --features p2p — 94 P2P tests pass
  • Manual 2-node E2E verified: create → replicate → delete → tombstone propagation
  • aingle-cortex --version → 0.3.8

…d hardening

Implements the full P2P stack behind the `p2p` feature flag:
- QUIC transport with seed-based handshake and Ed25519 identity
- Bloom filter gossip for efficient triple announcement
- mDNS peer discovery via mdns-sd
- Sync manager with tombstone-based deletion propagation (24h TTL)
- Persistent peer store (JSON-backed known_peers.json)
- Manual peer reconnection with exponential backoff (5s-300s, max 10 retries)
- Ping/pong health checks (30s interval, 10s timeout)
- Ingress rate limiting per-peer (1000/min) and global (10000/min)
- Periodic cleanup of inactive peers, expired tombstones, and stale store entries
- CLI flags: --p2p, --p2p-port, --p2p-seed, --p2p-peer, --p2p-mdns
Adds /api/v1/p2p/ routes (behind `p2p` feature):
- GET /status — node ID, port, connected peers, gossip/sync stats
- GET /peers — list connected P2P peers
- POST /peers — connect to a new peer by address
- DELETE /peers/:addr — disconnect a peer
Add lock-free accept loop for incoming QUIC connections (Task 0),
fix ALPN protocol mismatch on client config, register peers in
sync_manager at all connection points, and expose helper methods
on P2pTransport for external accept pattern.
feat: Kitsune P2P Phase 2 — Hardening & REST endpoints
@ApiliumDevTeam ApiliumDevTeam merged commit facce2f into main Mar 8, 2026
21 of 22 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant