feat: mute the TV while the box listens, if the brain turns that on
check / check (push) Waiting to run
check / check (push) Waiting to run
whisper hears people better without the show behind them. The brain sets a mute code (and an unmute code, if not the same) with mute_while_listening on its ir capability, or turns it off; ir-server keeps the setting in its state directory. Mute is often a toggle, and the camera can't reliably tell whether the sound is off, so the box senses nothing: the setting is the brain's to turn on or off. The button service holds a connection to ir-server's conversation socket for each conversation: ir-server mutes when it opens and unmutes, with the same codes, when it closes. The socket's group is the button's alone, and the button still can't send any code. Generated-by: Claude Opus 5.5
This commit is contained in:
1 parent
5191ee9931
commit
f50c871521
10 files changed
+269
-22
No files matched your search
+1
-1
@@ -29,7 +29,7 @@ The connections are [Cap'n Web](https://github.com/cloudflare/capnweb) over WebS
|
||||
|
||||
### Confinement
|
||||
|
||||
The box's services run under systemd with `ProtectSystem=strict`, `DynamicUser` where possible, `DevicePolicy=closed` and only the devices they need (the GPIO chip and ALSA for the button; the Pico's tty for `ir`), and `IPAddressAllow` limited to the private network, plus the camera's LAN for `look` alone. `look` won't take a frame unless the button service is there to show it: it connects to the button's socket, whose group is look's alone, and waits for the box to flash and tap. [box/module.nix](box/module.nix) has the details.
|
||||
The box's services run under systemd with `ProtectSystem=strict`, `DynamicUser` where possible, `DevicePolicy=closed` and only the devices they need (the GPIO chip and ALSA for the button; the Pico's tty for `ir`), and `IPAddressAllow` limited to the private network, plus the camera's LAN for `look` alone. `look` won't take a frame unless the button service is there to show it: it connects to the button's socket, whose group is look's alone, and waits for the box to flash and tap. Likewise the button service can't send IR codes: for each conversation it holds a connection to `ir`'s socket, whose group is the button's alone, and `ir` mutes the TV meanwhile if the brain turned that on. [box/module.nix](box/module.nix) has the details.
|
||||
|
||||
The brain runs in [bwrap](brain/brain.service): a read-only system, an empty home directory except for its workspace, its channel's keys (read-only), and the claude binary; its own source is in the Nix store, read-only, so it can read how it works. The systemd and D-Bus sockets, the ssh and gpg agents, and X are hidden. The network is not yet confined: it needs its model's API, but today it could also reach the home network.
|
||||
|
||||
|
||||
Reference in new issue
Block a user