@reboot sleep 10 && export SDL_VIDEODRIVER=fbcon && export SDL_FBDEV=/dev/fb0 && /usr/bin/python3 ~/blackroad-display/brady-bunch.py --fullscreen &
@reboot nohup python3 /home/blackroad/.lucidia/ollama-proxy.py > /tmp/ollama-proxy.log 2>&1 &
*/15 * * * * /usr/bin/flock -n /tmp/rclone-gdrive.lock ~/bin/rclone sync ~/blackroad gdrive-blackroad:pi-$(hostname)-backup --exclude .git/** --exclude node_modules/** --transfers 2 >> /tmp/gdrive-pi.log 2>&1
@reboot sleep 10 && python3 /home/blackroad/blackroad-server.py > /tmp/brs.log 2>&1 &
*/5 * * * * cd ~/blackroad && git pull --ff-only origin master >> ~/.blackroad/git-pull.log 2>&1
@reboot cd /home/blackroad/blackroad/blackroad-api && /usr/bin/python3 -m uvicorn app.main:app --host 0.0.0.0 --port 8788 --log-level warning >> /tmp/br-api.log 2>&1

# GitHub Relay: Gitea → GitHub (every 30 min, offset 15 from Mac push)
22,52 * * * * /home/blackroad/github-relay.sh >> /home/blackroad/github-relay.log 2>&1
# BlackRoad Fleet Autonomy v2
* * * * * /opt/blackroad/bin/fleet-autonomy.sh heartbeat >> /home/blackroad/.blackroad-autonomy/autonomy.log 2>&1
*/5 * * * * /opt/blackroad/bin/fleet-autonomy.sh heal >> /home/blackroad/.blackroad-autonomy/autonomy.log 2>&1
*/10 * * * * /opt/blackroad/bin/fleet-autonomy.sh fleet-check >> /home/blackroad/.blackroad-autonomy/autonomy.log 2>&1
*/15 * * * * /opt/blackroad/bin/fleet-autonomy.sh dial >> /home/blackroad/.blackroad-autonomy/autonomy.log 2>&1
*/5 * * * * source /opt/blackroad/stats-push.env && /opt/blackroad/push-stats.sh >> /var/log/blackroad-stats-push.log 2>&1

# BlackRoad autonomous git sync
*/30 * * * * BLACKROAD_NODE_NAME=cecilia /opt/blackroad/bin/br-git-sync sync >> /home/blackroad/.blackroad-autonomy/git-sync.log 2>&1

# BlackRoad fleet heartbeat to GitHub (every 6h)
27 */6 * * * BLACKROAD_NODE_NAME=cecilia /opt/blackroad/bin/br-heartbeat >> ~/.blackroad-autonomy/heartbeat.log 2>&1

# BlackRoad fleet love protocol (every 2h)
15 */2 * * * BLACKROAD_NODE_NAME=cecilia /opt/blackroad/bin/br-love love >> $HOME/.blackroad-autonomy/love.log 2>&1

# BlackRoad fleet mind cycle (every 4h)
20 */4 * * * BLACKROAD_NODE_NAME=cecilia /opt/blackroad/bin/br-mind cycle >> $HOME/.blackroad-autonomy/mind.log 2>&1
# BlackRoad fleet moral practice (every 3h)
25 */3 * * * BLACKROAD_NODE_NAME=cecilia /opt/blackroad/bin/br-morals practice >> $HOME/.blackroad-autonomy/morals.log 2>&1

# BlackRoad fleet intelligence (every 4h)
17 */4 * * * BLACKROAD_NODE_NAME=cecilia python3 /opt/blackroad/bin/br-intel cycle >> $HOME/.blackroad-autonomy/intel.log 2>&1

# BlackRoad GitHub agent (every 6h — cecilia is primary)
13 */6 * * * BLACKROAD_NODE_NAME=cecilia /opt/blackroad/bin/br-github cycle >> $HOME/.blackroad-autonomy/github.log 2>&1

# BlackRoad fleet journal (daily 11pm)
12 23 * * * BLACKROAD_NODE_NAME=cecilia python3 /opt/blackroad/bin/br-speak cycle >> $HOME/.blackroad-autonomy/speak.log 2>&1
# BlackRoad weekly summary (Sunday midnight)
22 0 * * 0 BLACKROAD_NODE_NAME=cecilia python3 /opt/blackroad/bin/br-speak summarize >> $HOME/.blackroad-autonomy/speak.log 2>&1
12 */6 * * * /opt/blackroad/bin/br-together auto >> $HOME/.blackroad-together.log 2>&1
*/5 * * * * $SCRIPT
0 * * * * /opt/blackroad/bin/blackroad-chatter.sh
*/5 * * * * /opt/blackroad/bin/blackroad-pissed.sh
@reboot /opt/blackroad/bin/blackroad-boot-hello.sh
