WEBVTT

1
00:00:01.200 --> 00:00:05.575
The watcher’s real job is deciding when Firstmate needs to think.

2
00:00:05.605 --> 00:00:09.708
It keeps an eye on each worker’s status notes. When one changes,

3
00:00:09.738 --> 00:00:14.316
it waits a few seconds, so a burst of updates arrives as one.

4
00:00:14.346 --> 00:00:16.174
Harmless updates, like “still working”,

5
00:00:16.204 --> 00:00:19.935
are noted and let go. Firstmate isn’t woken for those.

6
00:00:19.965 --> 00:00:26.009
Anything that needs judgement goes on a wake-up list, and the watcher steps aside.

7
00:00:26.039 --> 00:00:31.720
Every few minutes, it also runs small checks, like: has this pull request merged yet?

8
00:00:31.750 --> 00:00:34.820
And now and then it reviews the whole fleet. If nothing has changed,

9
00:00:34.850 --> 00:00:39.573
it waits twice as long before the next look, up to two hours.

10
00:00:39.603 --> 00:00:43.079
When the watcher stops, Firstmate wakes up with a one-line reason:

11
00:00:43.109 --> 00:00:48.162
a new status, a stuck worker, a check result, or a routine review.
