ai-incidents 1.0.0
test / test (macos-latest, 3.13) (push) Canceled after 0s
test / test (ubuntu-latest, 3.11) (push) Successful in 17s
test / test (ubuntu-latest, 3.12) (push) Successful in 18s
test / test (ubuntu-latest, 3.13) (push) Successful in 15s

This commit is contained in:
Holden Salomon
2026-09-21 17:48:40 +00:00
commit a9e8287065
41 changed files with 4546 additions and 0 deletions
+24
View File
@@ -0,0 +1,24 @@
# A systemd *user* service. Install with:
# cp ai-incidents.service ai-incidents.timer ~/.config/systemd/user/
# systemctl --user daemon-reload
# systemctl --user enable --now ai-incidents.timer
# loginctl enable-linger "$USER" # so it runs while you are logged out
#
# Check on it with:
# systemctl --user list-timers ai-incidents.timer
# journalctl --user -u ai-incidents.service
[Unit]
Description=ai-incidents: judge new agent sessions and update the ledger
After=network-online.target
Wants=network-online.target
[Service]
Type=oneshot
# pipx / uv tool installs land in ~/.local/bin, which is not on a user unit's PATH.
Environment=PATH=%h/.local/bin:/usr/local/bin:/usr/bin:/bin
ExecStart=%h/.local/bin/ai-incidents run
# A quiet run makes no model call and finishes in seconds. A busy one waits on the judge
# ([judge] timeout, default 900s); leave headroom over it.
TimeoutStartSec=1200
Nice=10
+13
View File
@@ -0,0 +1,13 @@
[Unit]
Description=Run ai-incidents nightly
[Timer]
# Nightly is plenty: the state file makes runs incremental, and a night with nothing to judge
# costs no model call. Run it more often than your transcripts are cleaned up (Claude Code's
# cleanupPeriodDays defaults to 30), or sessions can be deleted before they are judged.
OnCalendar=*-*-* 02:30:00
Persistent=true
RandomizedDelaySec=600
[Install]
WantedBy=timers.target