Run the bot service as one launchd user agent on the Studio #9
Labels
No labels
ready-for-agent
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
bryan/nix-configs#9
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem / Motivation
The bot service that replaces Hermes's cron and Matrix gateway needs to be kept alive on the Studio. Pi Durable also needs to find its send command once
hermesis gone.Proposed behavior
One launchd user agent keeps the bot service running. That one service runs the clock, the Matrix bridge, and starts the
botsRex session. It is a user agent because jobs need the login session for Reminders and the Claude login.Scope
In scope
servicesmodule for the bot service, modelled onlaunchd.user.agents.pi-durable-sgg.hermes(modules/services/pi-durable.nix).Out of scope
Implementation hints
fseventsdwatchdog module is the model for metrics file plus "went silent" rule.Acceptance criteria
Decision record:
vault/decisions/2026-11-09-pi-as-primary-harness.mdinbryan/dotfiles-workspace(commit 321ed03).Parent: bryan/dotfiles-workspace#30.
Pieces
Each piece is one Pi session. The full breakdown and the loop's rules are in
vault/plans/pi-primary-harness-work-breakdown.mdinbryan/dotfiles-workspace.2ff3842(#17); live 2026-11-10.4cf9454(#18):/run/current-system/sw/bin/pi-bots; live after the nextupdate-system.The "clock silent" rule from this issue's scope landed in #22 (
c861ef1, with N10.4 on #10):PiBotsClockSilent(no clock tick for over a minute while the service runs, 5 min), plusPiBotsJobFailed,PiBotsJobWaitingandPiBotsJobFileUnusable. Merged and Studio builds; live after the nextupdate-system.