One fixed session, born once, kept and compacted forever. The daemon wakes on its own impulse, works on a persistent goal, detects repeated failures, reflects, changes approach, and records everything. It starts as root, builds a debootstrap chroot, then drops to an unprivileged uid and applies Landlock and seccomp. Dashboard, HTTP API and MCP expose the same snapshot; the event log is root-owned and append-only. Offline suites cover the engine, the daemon, both sandbox layers and the dashboard/MCP sockets; a root-only script covers debootstrap, chroot, uid drop and plugin loading.
29 lines
761 B
Desktop File
29 lines
761 B
Desktop File
# krang -- systemd unit.
|
|
#
|
|
# Install to /etc/systemd/system/krang.service, then:
|
|
# systemctl daemon-reload
|
|
# systemctl enable --now krang
|
|
#
|
|
# No User=: krang starts as root to build the chroot, then drops to
|
|
# sandbox_uid itself. Restart=always is the liveness guarantee; an unexpected
|
|
# exit (including the model killing its own daemon) restarts the same session.
|
|
[Unit]
|
|
Description=krang autonomous agent
|
|
After=network-online.target
|
|
Wants=network-online.target
|
|
|
|
[Service]
|
|
Type=simple
|
|
ExecStart=/usr/local/bin/krang --config /etc/krang/krang.conf
|
|
Restart=always
|
|
RestartSec=10
|
|
KillMode=control-group
|
|
TimeoutStopSec=30
|
|
LimitNOFILE=65536
|
|
EnvironmentFile=-/etc/krang/krang.env
|
|
StandardOutput=journal
|
|
StandardError=journal
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|