Read first
docs/architecture/networking: the stack, cards,ip,netctl, admission rules, TLSdocs/self-hosting/remote-control:remoted, the broker, pairing, the safety boundarydocs/architecture/usb: USB Ethernet adaptersdocs/architecture/settings: the Settings app's network page
Rules a change must keep
- Keep all work in this repository and in QEMU/OVMF: never copy kernels to system paths, install or chainload on real hardware, or touch the host's
/bootor/efi. One exception: a SlopOS machine the user booted on a base paired with this host (just remote-serveand the bootstrap it prints) may be driven throughscripts/remote.pyalone, which runs programs, moves files, installs a base on its boot partition and a kernel into its spare slot. Never write its ESP, its firmware variables beyond whatbootctldoes, or another system's partitions. Commit a slot (--commit,bootctl commit) only once the boot it came from answered with the expected tag. - Every NIC enters through
nic::publishand leaves throughnic::retire, with no driver lock held. A driver keeps no thread; its interrupt only callsnapi::wake_napi. ipv4::admitsalone decides what a non-loopback device accepts: the weak host model, plus UDP port 68 on a device with no address.ipv4::sendstamps the source MAC of the device the route picked; a route delete takes only the named interface's route.rtl8168-coreis the chip overRegisterBus; versions outside its table are declined. Take facts from Linux'sr8169, never its GPL code or prose.iplasts until the next start;netctlkeeps/etc/network. Neitherorg.slopos.network.*action is the paired agent's.network::planstays pure and returns one phase; a second apply asks for nothing.netctlchanges under/run/netctl.lock.- The pairing lives only in the base;
remotednever dials from/etcor arguments, and nothing on SlopOS listens. - remoted's privd connection goes only to a mechanism or the shell.
tls-corestaysno_std,forbid(unsafe_code); signers stay undertest-server. Replace the CA bundle only withscripts/update_ca_bundle.sh.
Checks
just test 'slopos_net::*': the kernel's network stackjust test 'slopos_core::utests::utest_ip_netctl':netctlin a guestjust test-host:net-core,rtl8168-core,settings-core,tls-core,remote-corejust test-usb: a USB adapter published, leased, retiredjust test-remote: remote control under QEMU
Not yet in the docs
Read pending.md beside this file when it exists. A change that adds or alters an invariant the docs do not state appends it there in the same commit.