flybrain/infra/units/fly-runtime-probation.service
acamilo c1f0dde9e9 infra: CUT-01 speed probation after fly-runtime session
fly-runtime session now starts fly-runtime-probation (timer every 60 s, 30 minutes):
after a 300 s warm-up, a sustained median realtime factor below 0.97 or lag growth
over 30 s in a 10-minute window runs fly-runtime fallback with reason speed. A pass
writes /run/fly/runtime-probation.json and stops the timer; fly-runtime legacy and
every fallback cancel it; state on disk resumes it after a reboot. Lint drives it over
synthetic traces; runbook gets the end-to-end cutover procedure.
2026-09-30 12:58:05 +00:00

13 lines
604 B
Desktop File

# infra/units/fly-runtime-probation.service -- triggered by fly-runtime-probation.timer.
#
# One sample (10 s of flysim's /metrics) and one decision of CUT-01's speed probation: see
# infra/bin/fly-runtime-probation. On a sustained speed failure it runs `fly-runtime fallback
# "speed: ..."`. With no probation running it disables its own timer. Root: the fallback removes a
# drop-in in /etc/systemd and restarts flysim.
[Unit]
Description=fly-runtime-probation: is the session runtime at real time? (CUT-01)
[Service]
Type=oneshot
ExecStart=/opt/fly/bin/fly-runtime-probation tick
TimeoutStartSec=240