WEBVTT

1
00:00:01.200 --> 00:00:04.154
An AI agent that sits and waits still costs money. So

2
00:00:04.184 --> 00:00:08.187
Firstmate doesn’t wait. It hands that job to a watcher.

3
00:00:08.217 --> 00:00:10.137
The watcher is a tiny shell script,

4
00:00:10.167 --> 00:00:14.805
with no AI in it at all. While it runs, supervision costs nothing.

5
00:00:14.835 --> 00:00:20.533
And there’s only ever one. A lock stops a second copy from starting.

6
00:00:20.563 --> 00:00:22.193
Each time round its loop,

7
00:00:22.223 --> 00:00:27.550
it touches a heartbeat file. That’s how everything else knows someone is on watch.

8
00:00:27.580 --> 00:00:30.441
Then it waits. Where the terminal can report events,

9
00:00:30.471 --> 00:00:35.586
it reacts in under a second. Otherwise, it looks again every fifteen seconds.

10
00:00:35.616 --> 00:00:39.127
There’s one more safety net. Whenever Firstmate’s turn ends,

11
00:00:39.157 --> 00:00:42.099
a check makes sure a healthy watcher really is on duty.

12
00:00:42.129 --> 00:00:45.193
If it isn’t, Firstmate isn’t allowed to stop.
