feat: emberd in-VM daemon for structured RPC over vsock#9
Open
jasonhernandez wants to merge 2 commits intoaljoscha:mainfrom
Open
feat: emberd in-VM daemon for structured RPC over vsock#9jasonhernandez wants to merge 2 commits intoaljoscha:mainfrom
jasonhernandez wants to merge 2 commits intoaljoscha:mainfrom
Conversation
3 tasks
Lightweight daemon that runs inside Ember VMs and exposes structured RPC over vsock (port 1024) or Unix domain socket (for testing). Operations: ping, exec, read_file, write_file, agent_status. Protocol: JSON-lines, matching Thermite's EmberdClient. Thread-per-connection model. Linux uses AF_VSOCK via nix crate, macOS supports UDS-only mode for development.
Bake emberd binary + systemd unit into agent VM images so it starts automatically on boot. Docker-based cross-compilation from macOS via `make emberd-image`.
1265c02 to
9ae41bd
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
Add
emberd, a lightweight daemon that runs inside Ember VMs and exposes structured RPC over vsock (or UDS for testing). Replaces ad-hoc SSH commands with a proper API.emberd/— Rust binary, ~500 linesping,exec,read_file,write_file,agent_statusmake emberd-image)Design
AF_VSOCKlistener via nix crate--uds /path/to/socket)Files changed
emberd/Cargo.tomlemberd/src/main.rsemberd/README.mdimages/Dockerfile.ubuntu-devimages/Dockerfile.ubuntu-slimimages/emberd.serviceCargo.tomlMakefilemake emberd,make emberd-imagetargetsIndependent of the vsock PR (#8) — emberd can be reviewed and merged separately.
Test plan
cargo build --workspacecleancargo clippy --workspacecleancargo build -p emberdproduces working binaryemberd --uds /tmp/test.sock, connect, send{"op":"ping"}🤖 Generated with Claude Code