Skip to content
EbbwaterPublic

Latest commit

 

History

93 Commits

Folders and files

Repository files navigation

EbbTop

Native btop-style window showing remote hosts live: CPU, memory, network, disk and a sortable, filterable process table, with a per-process detail inspector. 1 s tick over a plain WebSocket, no SSH. Run it on a tailnet, VPN, or LAN; the token is the gate.

The client is multi-host with onboarding, Settings and a source picker (token per host, kept in the OS credential store).

Start Here

  1. Install the Linux agent. One command on each host you want to monitor (x86-64, glibc 2.39 or newer, systemd user session):

    curl -fsSL https://github.com/Ebbwater/ebbtop/releases/latest/download/ebbtop-install.sh | bash

    It resolves the release, verifies the agent archive's sha256 against the digest the release reports, runs the packaged installer (systemd user service, token, linger guidance) and prints what the desktop app needs: ws://<this host>:45976/ws and the token file path. To read it before running it instead:

    curl -fsSL -o ebbtop-install.sh https://github.com/Ebbwater/ebbtop/releases/latest/download/ebbtop-install.sh
    less ebbtop-install.sh && bash ebbtop-install.sh

    Pin an exact release with --version v0.2.9, or install from a tarball with no network with --archive ebbtop-agent-linux-x86_64.tar.gz. ebbtop-install.sh is attached to releases from v0.2.9 onward: on an older release that URL is a 404, so use the archive steps or the checkout wizard (bash deploy/agent-wizard.sh install, which builds with Rust/Cargo).

  2. Install the desktop app. On Windows x64, download EbbTop-Windows-x64.zip from Releases, extract the entire ZIP, and double-click Install EbbTop.cmd. For releases without the ZIP, use the individual Windows files. On Mac, download EbbTop.app.zip from the newest release that includes it, unzip it, and move EbbTop to Applications. See macOS client for first-launch help.

  3. Connect to your first host. On the same private network or VPN, open EbbTop. Click Find agents on this network to list the agents this segment can see (name, version, address), pick one, and type the 6-digit code ebbtop-agent --pair prints on that host — the client stores the issued read-only token for you. If the host is on a tailnet, another subnet, or has no pairing support, enter the address yourself and paste the token from ~/services/ebbtop-agent/ebbtop.token instead. Either way the last two steps are the same: select Test, then Save and connect, and wait for LIVE. Add other hosts in Settings → Sources through the same discovery-and-code flow.

Parts

Part Where What
crates/ebbtop-agent monitored Linux host Owned agent. Same WebSocket wire protocol; SOCKTOP_* env names still accepted as fallback for EBBTOP_*.
crates/ebbtop-core any OS Wire decode, reconnecting poll loop, history and tick stats, view helpers, ebbtop-probe. No GUI types; a Tauri or TUI front end can reuse it.
crates/ebbtop-gui Windows and Mac ebbtop exe, egui 0.37 / eframe (glow).
deploy/ Agent user unit and install script, the one-line bootstrap/ebbtop-install.sh installer for prebuilt agents (Linux systemd and macOS LaunchAgent), install/uninstall wizards (agent-wizard.sh, windows/setup.ps1, mac/setup.sh), agent-host acceptance script, Windows/macOS build scripts, log parsers.

Agent extensions (marked ebbtop in source)

  1. EBBTOP_BIND / --bind (SOCKTOP_BIND still works): listen address.
  2. Processes.sampled_at_ms (proto field 3): each process list carries its sample time.
  3. Process.user (5) and Process.state (6) for the table.
  4. Metrics JSON gains load_avg, uptime_s and disk_io (per whole disk, cumulative bytes from /proc/diskstats; loop, ram, zram and dm-* skipped so LVM is not double-counted).
  5. GPU collection enabled (--features gpu) with gfxinfo's AMD/libdrm path off. NVML tries the versioned libnvidia-ml.so.1 soname, then an optional explicit EBBTOP_AGENT_NVML_LIB path. GpuMetrics gains an additive temperature_c field (null when unavailable).
  6. Phase 2 kill (see below): Process.start_time_ms (proto field 7) and a kill:<pid>:<start_time_ms>:<TERM|INT> request handler with journal audit.
  7. Process.cgroup (proto field 8): the process's cgroup path, unified v2 0:: path or the v1 name=systemd path, with the 0:: prefix stripped so both hierarchies look the same. Read once per pid and cached until the pid exits. ebbtop-core turns it into a workload with view::workload_key, which prefers the nearest systemd .service unit (a container's own unit on a quadlet host), then a libpod-<id> scope, then a .scope, else the host. view::container_id pulls the id out of a podman scope so a client can label it with a name and image; view::group_by_workload sums pids, CPU and RSS per workload. The path is data, not policy: grouping stays in the client so one agent serves every view.
  8. P3a discovery (UDP, unauthenticated, read-only). The agent answers one exact datagram — EBBTOP-DISCOVER/1 — on udp://<agent-host>:45978 (EBBTOP_DISCOVERY_PORT) with one JSON object: {"ebbtop_discovery":1,"name":"<hostname>","agent_version":"<what --version prints>","nonce":"<32 hex per boot>","port":45976}. agent_version is the agent crate's build version, the same string ebbtop-agent --version prints; it is not the release tag, so quote it from the binary rather than assuming they match. Nothing else is reachable through it: no token, no request syntax beyond the literal, no process or host inventory, so the only thing a probe can learn is "an ebbtop agent is at this address". Replies are limited to one per source address per second and 20 per second overall, and only private/loopback/link-local/CGNAT sources are answered at all. EBBTOP_AGENT_DISCOVERY=0 (false/no/off too) disables it and binds no socket. Client decoder: ebbtop_core::pairing.
  9. P3a pairing enrollment (HTTP, code-gated). POST /pair on the agent's existing port takes {"code":"123456","label":"optional"} in the body and returns {"token","host","agent_version","nonce","scope":"read_only"}. The code is minted on the agent host by ebbtop-agent --pair (six digits, 5 min TTL, single use, five wrong guesses invalidate it), written to <state>/pairing.json (mode 600) and printed once on stdout — never journalled, never accepted from a query string, never echoed in a response. The issued token goes into the same credential store the manual token lives beside (<state>/clients.json, mode 600, newest 64 kept) and authenticates the ws gate the same way, but its scope is read-only: get_metrics, get_processes, get_disks, per-process detail and journal work; kill: is refused with read-only token scope. <state> is EBBTOP_STATE_DIR, default ~/services/ebbtop-agent. The operator's manual token path is untouched.
  10. Metrics JSON gains agent_version and boot_nonce (the same nonce the discovery responder reports). Both are optional: a frame from an older agent decodes with None, so a client shows "version unknown" rather than guessing.

P3a consumes no protobuf tags: both new channels are JSON control-plane traffic (discovery datagram, /pair request/response), which is where this repo puts host-level facts. Process field 9 and Processes field 4 remain free for the next additive change.

New proto fields are additive. The client decodes a legacy agent too, with empty user/state/cgroup and no process timestamp.

Contract

  • Endpoint: ws://<agent-host>:45976/ws?token=<token>. Port 45976; check with ss -tlnp.
  • Token: 32 random bytes hex, in ~/services/ebbtop-agent/agent.env and ebbtop.token (mode 600). Client keeps one token per host in the OS credential store (service ebbtop, user = source name). EBBTOP_TOKEN env overrides for tests.
  • Request/response, one in flight: get_metrics gives JSON with sampled_at_ms; get_processes gives protobuf (each row carries cgroup, field 8, for client-side workload grouping); get_disks gives JSON; Phase 2 kill:<pid>:<start_time_ms>:<TERM|INT> (on demand, queued between ticks on the same connection) gives a small JSON reply. Frames over 768 bytes are gzipped binary.
  • Client tick: 1000 ms (MissedTickBehavior::Skip), disks every 5 ticks, 3 s reply deadline, reconnect backoff 0.5 s doubling to 4 s, forever.
  • Agent metrics cache TTL: 100 ms (SOCKTOP_AGENT_METRICS_TTL_MS, upstream 250). In a 15 min soak at 250 ms, one delayed poll followed by a fast one got a cached repeat, giving one 2047 ms interval.
  • Agent process cache TTL: 500 ms (SOCKTOP_AGENT_PROCESSES_TTL_MS). At 900 ms a 1 s poll sometimes got a cached repeat (process interval p95 2002 ms in the first smoke run), so 500 ms it is.
  • Transport: plain ws:// on a private network (tailnet, VPN, or LAN). The token travels in the query string, so do not expose the port to the open internet; the agent has no TLS listener.
  • Discovery (P3a): udp://<agent-host>:45978, one datagram EBBTOP-DISCOVER/1, JSON reply {ebbtop_discovery,name,agent_version,nonce,port}. Unauthenticated, private sources only, one reply per source per second and 20/s overall, EBBTOP_AGENT_DISCOVERY=0 disables it. Contains no token and accepts no command. The socket binds every IPv4 interface on that one port (a socket bound to a single address would never receive a broadcast); the reply rule, not the bind address, is what limits it.
  • Pairing (P3a): POST http://<agent-host>:45976/pair with {"code":"123456"} in the body. The code comes from ebbtop-agent --pair on the agent host: six digits, 5 minutes, single use, five wrong guesses invalidate it. The reply carries one client token, scope read_only.
  • Client pairing (P3b): the wizard and Settings → Sources send the discovery datagram to udp://255.255.255.255:45978 and udp://127.0.0.1:45978 for 1.4 s (three probes, 24 hosts at most, cancellable), list what answered, and exchange the typed 6-digit code with POST http://<host>:45976/pair (body {"code":"…","label":"<source name>"}, 5 s deadline). The issued token goes straight to the OS credential store under the source name and never into a text field, a log line or a support summary; a wrong/expired/reused/locked-out code and an unreachable or non-agent host each render their own class, next action and scrubbed detail. Test → Save and connect is unchanged: pairing fills the credential, not the gate.
  • Credentials: the manual token (agent.env / ebbtop.token) keeps its original gate and full scope, including kill:. Tokens issued by /pair live in ~/services/ebbtop-agent/clients.json (EBBTOP_STATE_DIR overrides the directory), are validated by the same /ws?token= gate, and are read-only. Both files are mode 600; pairing.json holds the pending code and is deleted on use.

Why discovery is UDP broadcast

A TCP hello on the existing port can only be sent to an address you already know, so it confirms a host rather than finding one; "which address do I type" is exactly the step onboarding needs to remove. One datagram to the broadcast address reaches every agent on the segment without knowing any address, and each reply carries the source address and the agent's ws port, so a client can prefill a source from it.

The cost is reachability, and it is real:

  • Broadcast stays inside one L2 segment: it does not cross routers, VLANs, or a Tailscale/WireGuard overlay (those are routed point-to-point, not broadcast domains). A tailnet-only agent is therefore invisible to discovery — the operator still enters host and token as today. That is a fallback, not a regression.
  • A host firewall that drops inbound UDP 45978 hides the agent the same way.
  • IPv4 broadcast only: no multicast, mDNS or SSDP.
  • A unicast probe to the same port works from anywhere the ws port is reachable (that is the same exposure the agent already has), which is why the responder refuses non-private source addresses and never echoes anything but its own identity.
  • Two agents on one host (a live one and a scratch candidate) would share port 45978; the second reports the bind failure and keeps serving its WebSocket. Set EBBTOP_DISCOVERY_PORT for the second instance.

Install

Get desktop downloads from the Releases page. Look for EbbTop-Windows-x64.zip or the individual Windows files, and for EbbTop.app.zip on macOS. On Linux, ebbtop-install.sh installs the prebuilt agent with no toolchain; install-agent.sh from a checkout still builds it with Rust/Cargo.

Wizards (install and uninstall)

Three guided scripts sit on top of the same install paths described below. Each one shows the state it found, prints the plan, asks once, acts, then verifies the result and says what was kept. With no arguments the script opens a menu; with an action it runs one step and exits.

Surface Wizard Install Uninstall
Agent host (Linux, local or over SSH) deploy/agent-wizard.sh builds or ships the agent, unit, token, probe stops and disables the unit, removes the binary; --purge also deletes the token
Windows client deploy/windows/setup.ps1 verifies SHA256SUMS, then runs install.ps1 removes exe, backup and shortcuts; -Purge also deletes config, logs and the stored credentials
macOS client deploy/mac/setup.sh installs EbbTop.app from dist/, ~/Downloads or --from removes the bundle; --purge also deletes config, log and the keychain tokens
deploy/agent-wizard.sh                                    # menu (this host)
deploy/agent-wizard.sh install                            # this host, from this tree
deploy/agent-wizard.sh install --host user@otherhost       # remote host over SSH
deploy/agent-wizard.sh status
deploy/agent-wizard.sh uninstall --purge

powershell -ExecutionPolicy Bypass -File deploy\windows\setup.ps1          # menu
powershell -ExecutionPolicy Bypass -File setup.ps1 -Action install -Exe .\ebbtop.exe -Autostart
powershell -ExecutionPolicy Bypass -File setup.ps1 -Action uninstall -Purge

bash deploy/mac/setup.sh                                   # menu
bash deploy/mac/setup.sh install --from ~/Downloads/EbbTop.app.zip
bash deploy/mac/setup.sh uninstall --purge

--yes / -Yes takes every default (scripted installs), --dry-run / -WhatIf prints the plan and changes nothing, --help lists the flags. The agent wizard also accepts --port and --bind; the Windows wizard -NoLaunch; the Mac wizard --app-dir and --no-open.

No wizard reads a token out. Uninstall counts the stored tokens and leaves them alone unless --purge / -Purge is given; the token value is never printed in any mode.

Agent host (Linux or macOS)

One command installs the prebuilt agent (no Git, no Rust, no checkout) and prints what the client needs. The same published script serves both platforms: it selects the package from uname -s and uname -m before it touches the network.

curl -fsSL https://github.com/Ebbwater/ebbtop/releases/latest/download/ebbtop-install.sh | bash
Host Package it installs Service
Linux x86_64, glibc ≥ 2.39, systemd user manager ebbtop-agent-linux-x86_64.tar.gz systemd user unit
macOS 13+, Apple Silicon ebbtop-agent-macos-arm64.tar.gz per-user LaunchAgent

Anything else — an Intel Mac, a Rosetta shell, Windows, aarch64 Linux — is refused with one line and no network access. The macOS side, including the fail-closed token and bind rules and what metrics are unavailable there, is documented in docs/platform-macos.md.

To read it before running it:

curl -fsSL -o ebbtop-install.sh https://github.com/Ebbwater/ebbtop/releases/latest/download/ebbtop-install.sh
less ebbtop-install.sh && bash ebbtop-install.sh
Flag What it does
--version v0.3.0 pin a release tag: that tag is resolved, not latest
--archive <path> install a local tarball for this platform: no API, no download
--yes, -y take the default answer, no prompt
--dry-run, -n print the plan and change nothing

Before anything on this host changes it refuses: an unsupported OS or architecture, a glibc older than 2.39, no systemd user manager (Linux) or no logged-in launchd domain (macOS), an archive whose sha256 does not match the digest the release reports, an archive whose inner SHA256SUMS does not verify, or an archive carrying a member that is not one of the five packaged files. After that it hands the extracted directory to the packaged install-agent.sh --prebuilt and installs nothing itself, so the source-build and prebuilt paths cannot drift. EBBTOP_ADDR pre-answers the bind prompt with this host's tailnet/LAN IP; EBBTOP_PORT is ignored deliberately, because the packaged service definition fixes the port and the script reports the port it actually starts.

ebbtop-install.sh is attached to releases from v0.2.9 on. On an older release that URL is a 404, so install the archive from a checkout as before:

EBBTOP_ADDR=<this host's tailnet/LAN IP> ~/ebbtop/deploy/install-agent.sh          # build, install, enable, start; keeps an existing token
~/ebbtop/deploy/install-agent.sh --rollback

EBBTOP_ADDR is only needed for a fresh install (bind address for agent.env). The unit is ~/.config/systemd/user/ebbtop-agent.service: Restart=always, StartLimitIntervalSec=0, so it rebinds when the address appears after boot. Enable linger so it starts without a login (loginctl enable-linger $USER).

A second host is one command (no Rust needed there — the binary ships from your machine, x86_64 Linux targets only):

EBBTOP_SSH_OPTS="-i ~/.ssh/mykey" ~/ebbtop/deploy/install-agent-remote.sh user@host

It checks the arch, detects the tailnet bind address (or pass it explicitly), installs and starts the user unit on port 45976, keeps an existing token, and probes the agent before printing the client setup. Then add the host in the client via Settings/source picker, one token per host (ssh user@host cat services/ebbtop-agent/ebbtop.token).

Windows client

For a release that includes EbbTop-Windows-x64.zip, download and extract the ZIP, then double-click Install EbbTop.cmd. Keep the extracted files together. The launcher opens the install wizard, which asks for confirmation before installing and launching EbbTop.

For releases with individual downloads, get ebbtop.exe, ebbtop-probe.exe, install.ps1, setup.ps1 and SHA256SUMS from the Releases page and compare hashes. In PowerShell on the desktop:

mkdir $env:TEMP\ebbtop; cd $env:TEMP\ebbtop
# (place the five downloaded files here)
Get-FileHash ebbtop.exe -Algorithm SHA256      # compare with SHA256SUMS
powershell -ExecutionPolicy Bypass -File setup.ps1            # wizard: install, uninstall, status
powershell -ExecutionPolicy Bypass -File install.ps1 -Exe .\ebbtop.exe -Autostart   # or the plain install

setup.ps1 checks the exe against SHA256SUMS first, then runs the same install.ps1, so the result is identical; the wizard adds the prompts, the uninstall path and -Purge. Uninstalling from a folder with only install.ps1 means removing the shortcuts, %LOCALAPPDATA%\ebbtop and %APPDATA%\ebbtop by hand.

Or fetch the same files from the build host with scp "<user>@<agent-host>:ebbtop/dist/*" . (same hashes as the release). Fetch the agent token with ssh <user>@<agent-host> cat services/ebbtop-agent/ebbtop.token | Set-Clipboard.

Then click EbbTop on the Desktop: the onboarding wizard takes the host URL and token once (Test checks the connection before saving).

Only build from source if you are changing the client (about 1 GB toolchain, no Visual Studio, no C dependencies in the Windows graph):

winget install Rustlang.Rustup                       # once
git clone <your-fork-or-mirror-url>
cd ebbtop
powershell -ExecutionPolicy Bypass -File deploy\windows\build.ps1 -Install -Autostart

install.ps1 copies the exe to %LOCALAPPDATA%\ebbtop\ebbtop.exe, keeps .bak, makes Desktop\EbbTop.lnk (one click) and, with -Autostart, a Startup shortcut. No admin. setup.ps1 -Action uninstall reverses all of it and leaves %APPDATA%\ebbtop alone unless -Purge is given.

Config: %APPDATA%\ebbtop\config.json (sources, graph window, interface, disk pin, panels). Log: %LOCALAPPDATA%\ebbtop\ebbtop.log, one stats line a minute plus every disconnect, rotated at 2 MiB.

macOS client

Easiest: download EbbTop.app.zip from the Releases page, then, from the repo, bash deploy/mac/setup.sh install --from ~/Downloads/EbbTop.app.zip. That unpacks it, installs to /Applications (or ~/Applications when that is not writable), clears the quarantine flag and verifies the signature; without --from it uses dist/, and it offers a local build when neither exists. bash deploy/mac/setup.sh uninstall reverses it. Manual route: unzip and open EbbTop.app (first launch may need right-click > Open — the bundle is ad-hoc signed). Then onboard with the host URL and token as below.

Or build from source. Same workspace, no VM and no exe change: ebbtop builds natively on Apple Silicon (aarch64-apple-darwin). ebbtop-core has no Windows-only APIs (tokio/tungstenite, prost, serde, flate2 only); the only OS-specific code in ebbtop-gui is the windows_subsystem cfg (a no-op on macOS) plus the keyring v4 crate, which already maps to the macOS Keychain (service ebbtop, one entry per host), and dirs for ~/Library/Application Support/ebbtop/ (config.json, ebbtop.log). cargo check --target aarch64-apple-darwin is clean on this branch (type-check only, not linked).

On the Mac:

git clone <your-fork-or-mirror-url>
cd ebbtop
bash deploy/mac/check.sh        # rustup, cargo check (Mac target), cargo test, release build

That produces target/release/ebbtop (and ebbtop-probe). Fetch the token with ssh <user>@<agent-host> cat services/ebbtop-agent/ebbtop.token | pbcopy, launch ./target/release/ebbtop, and the onboarding wizard takes it from there. No .dmg; run the binary directly.

macOS agent host (Apple Silicon)

The agent runs on Apple Silicon Macs too, installed by the same one-line command as on Linux, and a Mac then appears in the client alongside the Linux hosts:

curl -fsSL https://github.com/Ebbwater/ebbtop/releases/latest/download/ebbtop-install.sh | bash

Unlike the Linux install it fails closed: a nonempty token is required and the bind address must be loopback or private, with broadcast discovery off by default. Per-disk throughput, temperatures, Apple GPU metrics, cgroups and process logs are reported as unavailable rather than guessed. The whole picture — what is reported, what is not, where state lives, upgrade/rollback/ uninstall, and which checks run natively versus on Linux — is in docs/platform-macos.md.

Window

  • Status bar: LIVE / STALE (no new sample for 2 s or more) / CONNECTING / DOWN with reason and retry time; agent sample time; age; tick p95; reconnect count. Hover age for lag and the full stats line.
  • Staleness uses only the desktop clock (time since a new sample arrived), so clock drift between the machines cannot cause a false STALE. Lag (agent sample time to now) needs synced clocks and is shown as information only.
  • CPU graph plus per-core meters, temperature, load average and uptime; memory and swap; network rx/tx rates per interface (busiest first, lo last); disk usage and per-disk read/write rates; 60 s or 5 min window.
  • GPU panel when the agent reports a GPU: name, utilization history graph, load meter, VRAM used/total and edge temperature. Omitted entirely on hosts with no usable GPU.
  • Processes: PID, name, user (root in amber), state letter, CPU%, MEM%, RSS. Click headers to sort; filter matches name, user or PID; Esc clears. CPU% is the share of the whole machine (btop's default, not per core).
  • Workloads: a roll-up pane above the process table groups the sample by the cgroup boundary that owns each process (the container's own systemd unit, a libpod-<id> scope for rootless containers with no unit, a transient scope, or the host) with PID count, CPU% and RSS summed, biggest memory first. Click a workload to filter the table to it; click it again, or the chip in the proc header, to clear. The process table also carries a Workload column. An agent without proto field 8 reports no cgroup, so everything lands in (host); the pane is skipped when the window leaves less than 240 px for it so the table keeps its rows. The workloads and process tables scroll together as a group (like the resource boxes) while each keeps its own independent inner scroll, and hovering a row highlights the matching rows in the other table.
  • Selecting a row opens the detail inspector: full command with Copy, CPU time, vmem/shared, start time, cwd, exe, children (click to jump), top threads, and CPU+RSS history graphs.
  • Sources: the status-bar picker switches hosts (token per host); Settings manages sources, display and connection. The disk graphs follow the busiest disk or a pinned one.
  • Language: Settings → Display switches the interface between English, Simplified Chinese (Mainland) and Traditional Chinese (Taiwan); the choice is stored in config.json and lasts across launches. Host data stays canonical (hostnames, process names, users, paths and every number are painted as the agent reports them), and the bundled Noto Sans SC/TC faces are compiled in so Chinese renders offline. A stored value the build does not know falls back to English. docs/l10n-scope.md lists exactly what is and is not translated, and Settings → Display → Fonts and license shows the bundled font's OFL notice.
  • At under 1100 px wide it switches to a stacked layout. The upper boxes scroll so the process table keeps about 45% of the height down to the 480x420 minimum.

Evidence

Check Result How
Agent tests 25 passed (includes proc parsers) cd crates/ebbtop-agent && cargo test --release --locked --no-default-features
Client tests 17 core + 4 GUI passed cargo test --workspace
Agent killed 10 s, restarted 1 reconnect, data back 2.5 s after the agent returned (12.5 s gap), no token prompt 60 s ebbtop-probe on loopback
Agent frozen 15 s (SIGSTOP) no reply within 3000 ms, then connect timed out retries, recovered on SIGCONT (17.5 s gap) 45 s ebbtop-probe on loopback
Process freshness at TTL 500 ms process interval p50 1000 / p95 1091 ms, 0 repeats same runs
Loopback 15 s probe, patched agent metrics interval p50 1000 / p95 1093 ms, lag p95 1 ms, 0 gaps, 0 repeats; wrong token rejected; token absent from agent and probe logs ebbtop-probe against 127.0.0.1:45977 (TTL 900 ms in that run)
Real render PNGs at 960x1040, 1920x1080, 640x520 reviewed; fixed meter text overlap, header truncation, a picker with no accessible name, and an unusable table at small heights EBBTOP_SHOT_DIR=... cargo test -p ebbtop-gui screenshot -- --ignored (egui_kittest + wgpu, software Vulkan)
Frame cost 0.69 ms p50, 1.04 ms p95 CPU per frame, 400 processes, 960x1040 cargo test --release -p ebbtop-gui frame_cost -- --ignored --nocapture
Windows target cargo check --target x86_64-pc-windows-gnu clean type-check only; not linked here
Mac target cargo check --target aarch64-apple-darwin clean type-check only; runtime proof in the macos-agent workflow
Linux exe size 12.3 MB stripped target/release/ebbtop
Agent service live ebbtop-agent.service active, listening on the tailnet/LAN address only; loopback refused; wrong token rejected; agent.env and ebbtop.token mode 600 deploy/install-agent.sh, 2026-11-07
Private-network probe, 30 s, agent host to its own address metrics interval p50 1000 / p95 1097 / max 1106 ms; process interval p95 1101 ms; 0 gaps, 0 repeats, 0 reconnects deploy/acceptance-kserver.sh 30
15 min soak, live agent over tailnet, metrics TTL 100 ms 900 frames, max interval 1487 ms, 0 gaps over 2000 ms, 0 repeats, 0 disconnects; agent RSS about 8 MB, 27 s CPU (about 3% of one core) ebbtop-probe --seconds 900, 2026-11-07 10:38-10:53
Windows exe ebbtop.exe 8.97 MB (GUI subsystem), ebbtop-probe.exe 1.38 MB; imports only system DLLs deploy/cross-build-windows.sh; hashes in dist/SHA256SUMS
First run on the Windows desktop window LIVE, data matches the agent host. Agent side: one established connection from the desktop to :45976. First build had no clipboard (paste into Token did nothing); fixed in 621eba8 (eframe clipboard feature) operator report, ss -tn state established sport = :45976, 2026-11-07
GPU path Agent builds with --features gpu and no libdrm; agent tests 25 passed; core 19 + GUI 5 passed; synthetic renders at 960x1040, 1920x1080 and 640x520 show the panel. Live before reboot: cached 595.91.07 NVML pinned, gpu: NVIDIA GeForce GTX 1650 util=0% vram=381 MiB/4.0 GiB temp=54C over the private network. Panel visually confirmed on the desktop after installing ebbtop.exe e6a13225… cargo build/test above; LD_LIBRARY_PATH=.../nvml-595.91.07 nvidia-smi; ebbtop-probe --seconds 5; operator report, 2026-11-08
Phase 2 kill Agent test incl. real SIGTERM to an owned sleep child (stale-start refusal first, child alive until correct start_time); journal lines verified via journalctl -g "ebbtop kill"; core 22 + GUI 11 passed (kill grammar/decode, dialog text, status-bar result); frame cost 0.59/0.62 ms p50/p95; Windows check clean. No live agent was restarted and nothing was deployed cargo test --workspace; cd crates/ebbtop-agent && cargo test --release --locked --no-default-features; cargo test --release -p ebbtop-gui frame_cost -- --ignored --nocapture; cargo check --target x86_64-pc-windows-gnu, 2026-11-08

| EbbTop 0.2.0 suite (ebbtop-distributable) | core 36 + GUI 59 passed, 2 ignored; no warnings | cargo test --workspace, 2026-11-08 | | EbbTop 0.2.0 targets | cargo check --target x86_64-pc-windows-gnu and --target aarch64-apple-darwin clean | type-check only, 2026-11-08 | | EbbTop 0.2.0 renders | PNGs at 960x1040, 1920x1080, 640x520 plus detail, onboarding and settings shots reviewed; fixed a nameless password field, thread ? states, and a hardcoded host fallback | EBBTOP_SHOT_DIR=... cargo test -p ebbtop-gui screenshot -- --ignored, 2026-11-08 | | EbbTop 0.2.0 live probe | 15 s over tailnet: 1 s ticks, GPU line, process list, no errors | ebbtop-probe --seconds 15, 2026-11-08 | | EbbTop 0.2.0 frame cost | 0.63 ms p50, 0.67 ms p95 CPU per frame, 400 processes, 960x1040 | cargo test --release -p ebbtop-gui frame_cost -- --ignored --nocapture, 2026-11-08 | | EbbTop 0.2.0 Linux exes | ebbtop 15.8 MB, ebbtop-probe 1.6 MB, stripped, no warnings | cargo build --release, 2026-11-08 | | EbbTop acceptance-kserver, 30 s (on the agent host) | agent active, listening on its tailnet/LAN address only; 30/30 distinct samples, 0 repeats, 0 gaps, 0 reconnects; metrics interval p50 1000 / p95 1210 / max 1327 ms; GPU line present (GTX 1650 ... temp=58C) | deploy/acceptance-kserver.sh 30, 2026-11-09 | | EbbTop macOS native build (Apple Silicon, aarch64) | deploy/mac/check.sh clean; first launch: wizard took ws://server.ebbwater.net:45976/ws + token cleanly, LIVE, hovered interval_p95 = 1004 ms, no visual glitches | operator report, 2026-11-09 | | EbbTop macOS bundle + Keychain | deploy/mac/package.sh builds dist/EbbTop.app (new-mark Dock icon, launches with no terminal); quit-and-relaunch reconnects with no token prompt (Keychain save under service ebbtop confirmed by the one-time access prompt) | operator report, 2026-11-09 | | EbbTop brand fold-in | pack vendored under crates/ebbtop-gui/assets/brand/; window icon bytes replaced (new rgba byte-identical to the pack's 64 px PNG decode; Pillow tobytes is straight alpha, matching egui::IconData); build.rs links the pack's 8-frame ebbtop.ico instead of generating a 64-only one; new deploy/mac/package.sh assembles dist/EbbTop.app (iconutil .icns from the hinted PNG ladder, ad-hoc sign fail-soft). Suite still green: core 36 + GUI 59, 2 ignored; Windows check clean (soft-fail warning path exercised) | cargo test --workspace, cargo check --target x86_64-pc-windows-gnu, 2026-11-09 | | Owned ebbtop-agent cutover | agent/socktop_agent deleted; crates/ebbtop-agent live via deploy/install-agent.sh: unit active, listening on its tailnet/LAN address only. Agent tests 15 + 7 integration pass; loopback probe (existing client, unchanged) clean; token gate verified (right token data, wrong token no samples); 30 s tailnet acceptance 30/30 samples, metrics p50 1000 / p95 1002 ms, GPU line present (GTX 1650 ... temp=48C), top ground truth matches. Old socktop_agent binary kept at $SVC/bin/ for --rollback only | cargo test -p ebbtop-agent, deploy/install-agent.sh, deploy/acceptance-kserver.sh 30, 2026-11-09 |

Done on the Windows desktop: steps 1–6 pass (reboot launch, stacked layout, LIVE in 1 s, p95 1138 ms, btop match, no-SSH LIVE, reboot reconnect with no token prompt). Step 7 (overnight log) is still pending.

Acceptance (brief steps 1 to 7)

  1. Reboot desktop, click EbbTop on the Desktop.
  2. Snap to half screen. The stacked layout applies below 1100 px.
  3. Within 10 s: LIVE. Hover age for interval_p95; pass is under 2000 ms (1 s design target).
  4. Accuracy: compare with btop on the agent host (its default CPU% is share of the whole machine, like EbbTop). Or run deploy/acceptance-kserver.sh 30, but note top shows per-process %CPU per core: divide by the host's thread count to compare. Pass: total CPU and memory % within 5 points, same top name/PID with EbbTop sorted by CPU%.
  5. No SSH windows open; still LIVE.
  6. Reboot, one click, reconnects with no token prompt.
  7. Overnight: next morning check %LOCALAPPDATA%\ebbtop\ebbtop.log. Each minute line has gaps=, reconnects=, interval_p95=. A disconnected line during sleep followed by recovery is expected.

Remaining acceptance

Only step 3 is evidenced so far (LIVE after launch, see Evidence). Steps 1, 2, 4, 5, 6, 7 are not yet recorded. Run powershell -ExecutionPolicy Bypass -File deploy\acceptance-desktop.ps1 on the desktop: it prints the step 7 log summary, the step 4 btop snippet, and this checklist. Tailnet-only: it reads the local log, never prints the token, and opens nothing.

Step Status How to record it
1. Reboot desktop, one-click launch Pass (2026-11-09) Reboot, click EbbTop. Note whether it launches with no dialog, date/time
2. Snap to half screen Pass (2026-11-09) Snap under 1100 px; note the stacked layout applies
3. LIVE within 10 s, interval_p95 < 2000 ms Pass: LIVE in 1 s, p95 1138 ms (2026-11-09) Hover age after step 1/6 and note the value
4. btop accuracy Pass (2026-11-09) btop on the agent host side by side with EbbTop, or deploy/acceptance-kserver.sh 30; top numbers are per-core, divide by the host's thread count. Record total CPU/mem deltas (pass within 5 points) and top name/PID match with EbbTop sorted by CPU%
5. No SSH windows open, still LIVE Pass (2026-11-09) Close every SSH window first, then note LIVE
6. Reboot, one-click reconnect, no token prompt Pass (2026-11-09) Reboot, one click; reconnected with no token prompt, or not
7. Overnight log check Not recorded Next morning run the helper above (or deploy/parse-ebbtop-log.sh <log> on a copied log). Paste the VERDICT plus gaps/reconnects/interval_p95 maxima. A disconnected line during sleep with recovery is expected

NVML pin note (resolved 2026-11-09): the host rebooted onto 595.99.02, the pin was deleted from agent.env, and the agent reports the GPU through the normal libnvidia-ml.so.1 soname (gpu: NVIDIA GeForce GTX 1650 ... temp=58C over the tailnet probe).

Known gaps

  • If the host's loaded NVIDIA module ever drifts from its installed libs (nvidia-smi reports a driver/library mismatch), the normal libnvidia-ml.so.1 lookup fails; pin a known-good library via EBBTOP_AGENT_NVML_LIB in agent.env until the next reboot, then delete the pin.
  • Only device_by_index(0) is queried; a multi-GPU host would show the first GPU only.
  • GPU VRAM "used" comes from NVML v1, which includes the driver-reserved pool (about 379 MiB idle on this 4 GiB card). nvidia-smi's "Used" excludes it; btop uses the same v1 call, so the panel matches btop.
  • Upstream token check is a plain string compare and the token travels in the query string. Acceptable inside the tailnet; noted.
  • deploy/bootstrap/ebbtop-install.sh binds the agent archive to the digest the GitHub release reports over HTTPS. That is stronger than the archive's own SHA256SUMS, which travels inside the archive it describes, but it is still not a publisher signature: a compromised release entry would serve a matching digest. Signed manifests remain open; see Linux agent distribution.
  • The client's discovery scan is IPv4 limited broadcast, so it finds only agents on the client's own L2 segment, and it lists an agent once per (source address, per-boot nonce). A tailnet-only or firewalled host needs its address typed; the manual token path stays available for agents older than the pairing endpoint. /pair is plain HTTP on the private network, the same transport posture as the ws token, and the six-digit code is the only secret in that exchange.
  • A paired client token is read-only (kill: is refused by the agent). Pairing a second client means minting a second code; a code is single use and dies after five wrong guesses, which an attacker on the segment can trigger (enrollment denial of service, not credential theft — the operator re-mints).
  • pairing.json and clients.json are agent state in ~/services/ebbtop-agent, beside agent.env, but they are not in the unit's EnvironmentFile. install-agent.sh --purge deletes them with the token and the unit; a plain uninstall leaves them in place.
  • Discovery cannot cross a broadcast boundary (see "Why discovery is UDP broadcast"), and it reports the hostname the agent already serves over ws, so it adds reachability, not information.

Code signing

Windows downloads from GitHub are unsigned. Integrity comes from the published SHA256SUMS over HTTPS: compare the hash of what you downloaded before you run it. This is not a temporary state — EbbTop applied to the SignPath Foundation open source signing program and SignPath declined the application for insufficient download reputation, so there is no signing certificate and no pending application. If a SmartScreen warning or a Defender !ml quarantine appears, it is a reputation false positive, not a modified download: check the hash and decide whether to exclude it yourself.

The Microsoft Store is the signed channel. EbbTop is packaged as an MSIX for the Store, and Microsoft re-signs it with a Microsoft certificate during publishing, so a Store install carries a trusted signature and no SmartScreen reputation problem. The package is built and certified by the store-package and wack-gate jobs; submission through Partner Center is the owner's step. See the Store listing pack for the listing copy and docs/SIGNING.md for what each artifact carries.

Both Windows executables already carry the metadata a package needs (ProductName EbbTop, file and product version from the crate version) and the cross-build refuses to package an exe whose PE version block is missing or wrong. Two workflows exist, so they cannot drift:

  • .github/workflows/windows-build.yml windows-x64 builds the GitHub ZIP with deploy/cross-build-windows.sh on hosted ubuntu-latest with a pinned llvm-mingw toolchain.
  • The same workflow's store-package job builds the MSIX from the same recipe with the store cargo feature (no in-app updater, since the Store delivers updates), and wack-gate runs Microsoft's Windows App Certification Kit against it on windows-latest, uploading the report as an artifact.

Both trigger on v* tags or manual dispatch only, so neither runs for an ordinary push.

Phase 2 kill: implemented

  • Request, on demand only (never per-tick): kill:<pid>:<start_time_ms>:<TERM|INT>, nothing else. The agent refuses any other kill… text with an error reply and a journal line.
  • Agent checks, in order (token auth is the existing ws upgrade; unchanged transport, plain string compare, token in query string): pid is not 1, not the agent's own pid, not a kernel thread (ppid 0); process uid equals the agent uid (kyler), so root-owned processes are refused; start_time_ms matches the process's current start time (PID-reuse guard; the process table carries it as protobuf field 7, computed from btime + /proc/<pid>/stat starttime); then the signal is sent with pidfd_open + pidfd_send_signal (raw syscall instruction, no new deps). Non-Linux returns kill unsupported on this platform.
  • Reply: small JSON text frame {"ok":bool,"pid":n,"signal":"TERM|INT","error":null|"reason"}. Stable reasons: bad request grammar, no such process, pid 1, agent itself, kernel thread, uid mismatch, stale start_time, plus pidfd_open: … / pidfd_send_signal: … on syscall failure.
  • Journal: every request and its result is written to journald over the native journal socket (/run/systemd/journal/socket, priority 6; stderr fallback), one line per event: ebbtop kill request pid=… start_time_ms=… signal=…, ebbtop kill result pid=… signal=… ok=true|false err="…", and ebbtop kill request raw="…" ok=false err="…" for malformed requests. Query with journalctl --no-pager -g "ebbtop kill". The token never appears in any log.
  • Client: the GUI queues the job on a channel and the client sends it between ticks on the same connection (one request in flight; a kill reply timeout drops the connection, reconnecting to re-establish frame alignment). The Kill button is disabled for root-owned rows and for rows with no reported start time (unpatched agent). The confirm dialog names the process, pid and host (Send SIGTERM to "…"?, buttons Send TERM / Send INT / Cancel); the result shows in the status bar (kill <pid> TERM sent / kill <pid> refused: <reason>) and in %LOCALAPPDATA%\ebbtop\ebbtop.log. Tailnet-only; no new public exposure.