hive: wifi-p2p — Android WiFi Direct forager bee - #47
Open
adiled wants to merge 2 commits into
Open
Conversation
A new hive that bridges Android WiFi Direct (WPA2-PSK P2P groups) into thrum, enabling infrastructure-free peer-to-peer agent mesh between phones. Architecture: - Android foreground service (WifiP2pBeeService.kt) - WifiP2pManager wrapper for discovery + group formation (P2pManager.kt) - NDJSON thrum client to local humd (ThrumClient.kt) - Ed25519 identity persistence, byte-identical to Rust/TS hives (IdentityStore.kt) - Tone types + helpers matching thrum-core wire spec (Tone.kt) Propensity: convention-stateful / lean / wifi-p2p/tcp Wire: WiFi Direct P2P TCP on p2p0 interface, same NDJSON framing as thrum Closes the gap between gsm-modem (slow SMS) and bp7 (store-and-forward DTN) — high-bandwidth, low-latency local mesh for devices within walking distance.
A narrative use case for the wifi-p2p hive: three strangers at a picnic table whose phones form an ad-hoc agent mesh over WiFi Direct. Prompts route through the best compute the mesh can find — local LLM, cloud API, or peer's worker — without any setup or intentional cooperation.
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.
wifi-p2p hive
A new hive that bridges Android WiFi Direct (WPA2-PSK P2P groups) into thrum, enabling infrastructure-free peer-to-peer agent mesh between phones.
Architecture
Phone A runs the bee as a foreground service:
Files
README.mdOrchfileapp/.../WifiP2pBeeService.ktapp/.../P2pManager.ktapp/.../ThrumClient.ktapp/.../IdentityStore.ktapp/.../Tone.ktPropensity
Why this fits
Fills the gap between gsm-modem (slow SMS, 160 bytes) and bp7 (store-and-forward DTN for spacecraft) -- high-bandwidth, low-latency, infrastructure-free local mesh between devices within walking distance. Sid stability per peer hid means conversations survive link drops. Same hello contract as every other forager.
Caveat
This is the first hive that must be an Android app -- WifiP2pManager is a system API, not accessible from CLI binaries. Everything else maps cleanly onto existing Hum abstractions.