Files
Hermes Agent 137113b0a2 junction: pf.conf-style policy router for model endpoints (C99/POSIX)
Rules are ordered and first-match-wins: model glob, path glob, required context,
hook/retry overrides, pass <endpoint>[,<endpoint>] [as <model>] or block.
Endpoints carry shell pre-hooks (exit != 0 = not yet, retried with backoff after an
optional wake command), an offline window after a failed connect, and two timeouts
(idle + total) so a thinking model logs still_working instead of looking hung.

tests/run.sh: 14 checks against C stubs (failing, gated, slow, dead endpoints).
2026-10-29 13:24:31 +00:00

25 lines
627 B
Desktop File

[Unit]
Description=junction — policy router for model endpoints
After=network-online.target
Wants=network-online.target
[Service]
Type=simple
# Runs as an unprivileged user: it needs no privileges to proxy HTTP.
User=junction
Group=junction
EnvironmentFile=-/etc/junction/env
ExecStart=/usr/local/bin/junction --config /etc/junction/junction.conf
Restart=always
RestartSec=5
# hardening: the process only needs its config and network
NoNewPrivileges=true
PrivateTmp=true
ProtectSystem=strict
ProtectHome=true
ReadOnlyPaths=/etc/junction
RestrictAddressFamilies=AF_INET AF_INET6 AF_UNIX
[Install]
WantedBy=multi-user.target