Repository navigation
feat: Scallion Network — privacy-aware three-hop route planning and sticky sessions - #383
Merged
Merged
Conversation
…e and security backlog
ThreatCrush Security Scan14 finding(s) HIGH/CRITICAL: 2 | MEDIUM: 8 | LOW: 4
Snippets are redacted; ThreatCrush never prints matched credential material. |
ralyodio
marked this pull request as ready for review
November 15, 2026 05:44
11 tasks
This was referenced Nov 15, 2026
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
Introduce Scallion Network (green-onion branding) as an experimental, privacy-aware P2P routing foundation for c0mpute. This is a draft architecture/route-planning PR, not a functioning anonymous VPN or onion transport.
c0mpute_net::scallionwith a three-hop entry/guard -> middle -> opt-in exit route planner.CircuitLeases: rotate circuits for new sessions while keeping SSH/HQTerm, streaming API and long-lived compute sessions pinned to their existing route.docs/protocol/scallion-network.mdcovering the threat model, naming, route optimization, sticky-session semantics and HQTerm/Mosh integration limitations.Motivation
Basic permissionless peer-to-peer discovery and local key-based identity should be separate from the privacy routing protocol. A fast route is not necessarily a safe or private route; Scallion plans should account for independent operators and avoid tearing down live GPU streams just to rotate exit IPs.
What this PR does not claim
Test coverage
Unit tests in
node/crates/c0mpute-net/src/scallion.rscover route scoring, exit consent, three-hop diversity, measurement staleness, load-aware selection, no direct fallback, and session stickiness after rotation.Not locally executed: the authoring environment has no Rust toolchain. GitHub Actions
rustbuild/test is the required validation gate. Leave as draft until green and security review of the first real transport implementation.Next milestones
Brand: Scallion Network — Green routes. Private roots. 🌱