1
00:00:00,180 --> 00:00:06,820
Similarly, I want to make sure that my agent is running the tests

2
00:00:06,820 --> 00:00:14,640
and has run the tests before doing a get commit. And so here, I'm going to use this previous

3
00:00:14,640 --> 00:00:21,340
keyword, and I'm going to make sure that I am only allowed to commit if the

4
00:00:21,340 --> 00:00:28,080
last thing I did was a successful cargo test. So if I do a cargo test,

5
00:00:28,840 --> 00:00:34,980
that exits with zero, get commit. That's great. Cargo test, that fails, and then try

6
00:00:34,980 --> 00:00:39,660
get commit, denied. If I do a cargo test and then something else, I modify one of the

7
00:00:39,660 --> 00:00:46,200
files, denied, or if I wait too long, denied. So this is

8
00:00:46,200 --> 00:00:50,800
really cool, right? Like I can write these policies that express these sort of common

9
00:00:50,800 --> 00:00:55,860
sense -ish things. Now I'll grant it not in a common sense syntax, but we'll sort of

10
00:00:55,860 --> 00:01:01,360
get to that. But I can express these common sense things about what agents can do by

11
00:01:01,360 --> 00:01:04,960
thinking about these concepts of before and after and so on.
