CODY-001 Bridge URL must be HTTPS (HTTP only to loopback), in the client and
in manifest generation.
CODY-002 Even host calls stay serialised until the SDK call really settles;
a microphone start that completes after its timeout is followed by
a stop.
CODY-003 Request id is stored before the first submit and cleared only on a
definitive answer; lost replies are treated as ambiguous and
reconciled under the same id; HUD no longer claims "not sent".
CODY-004 Revoking a device cancels its in-flight turns, aborts
transcription and asks Hermes to stop, from HTTP and CLI paths.
CODY-005 Speech model pinned to a commit with per-file SHA-256; fetched and
verified ahead of time; verified on every load; never downloaded
at run time; no unpinned configuration.
CODY-006 State directory 0700, database/WAL/SHM 0600 regardless of umask.
CODY-007 credential_expired handled like unauthorized on every path.
CODY-008 Approval wait start and paused agent deadline persisted and
restored across restarts (schema v2).
CODY-009 Exactly one conversation create per epoch, sent in sequence, with
stale results dropped before persistence.
CODY-010 Wrong pairing guesses no longer consume the outstanding code;
failures are indistinguishable.
Checks: typecheck clean; npm test 182 passed; client build ok;
test:real-stt 11 passed (including with no network); test:real-hermes 9
passed; test:simulator 6 passed; git diff --check clean.
Not reviewed. No physical-device, droplet or production evidence.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
41 lines
1.2 KiB
Desktop File
41 lines
1.2 KiB
Desktop File
# systemd unit for the Hermeven bridge. Example only: it has not been run on a droplet yet.
|
|
# Install: copy to /etc/systemd/system/, adjust paths, then
|
|
# systemctl daemon-reload && systemctl enable --now hermeven-bridge
|
|
[Unit]
|
|
Description=Hermeven bridge
|
|
After=network-online.target
|
|
Wants=network-online.target
|
|
|
|
[Service]
|
|
Type=simple
|
|
User=hermeven
|
|
Group=hermeven
|
|
WorkingDirectory=/opt/hermeven
|
|
# Secrets live here, mode 600, owned by the service user. Never in the repository.
|
|
Environment=HERMEVEN_ENV_FILE=/etc/hermeven/bridge.env
|
|
ExecStart=/usr/bin/npm run --silent bridge
|
|
Restart=on-failure
|
|
RestartSec=3
|
|
# In-flight turns are recovered from SQLite on the next start.
|
|
TimeoutStopSec=20
|
|
|
|
# Hardening
|
|
# Everything the service creates is owner-only (database, WAL, SHM).
|
|
UMask=0077
|
|
StateDirectory=hermeven
|
|
StateDirectoryMode=0700
|
|
NoNewPrivileges=true
|
|
PrivateTmp=true
|
|
ProtectSystem=strict
|
|
ProtectHome=true
|
|
ReadWritePaths=/var/lib/hermeven
|
|
# The verified speech model is read-only to the service: it lives under /opt (see ProtectSystem).
|
|
ProtectKernelTunables=true
|
|
ProtectControlGroups=true
|
|
RestrictSUIDSGID=true
|
|
# The speech model needs roughly 0.8 GB resident; leave headroom.
|
|
MemoryMax=1500M
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|