You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: cli/docs/oracle-role.md
+21-17Lines changed: 21 additions & 17 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -42,23 +42,6 @@ antij token | jq .state
42
42
43
43
Critically the owner matches the wallet owner.
44
44
45
-
## Publishing the oracle configuration
46
-
47
-
Before requesters can request test-runs, the oracle should select the agent identity and in general expose validation parameters so that the requesters and the agent can pre-validate their requests.
48
-
49
-
This is done with the `anti oracle config set` command.
50
-
51
-
52
-
```bash
53
-
anti oracle config set --min-test-duration MIN_TEST_HOURS --max-test-duration MAX_TEST_HOURS --agent-pkh PUBLIC_KEY_HASH
54
-
```
55
-
56
-
This will end up in a fact and so we can inspect it with the `anti facts` command.
57
-
58
-
```bash
59
-
antij facts config
60
-
```
61
-
62
45
## Updating the anti token
63
46
64
47
The main responsibility of the oracle is to include change requests in the Antithesis token.
@@ -86,3 +69,24 @@ To delete the Antithesis token, you can use the `anti oracle token delete` comma
86
69
```bash
87
70
anti oracle token delete
88
71
```
72
+
73
+
## Publishing the oracle configuration
74
+
75
+
Before requesters can request test-runs, the oracle should select the agent identity and in general expose validation parameters so that the requesters and the agent can pre-validate their requests.
76
+
77
+
This is done with the `anti oracle config set` command.
78
+
79
+
80
+
```bash
81
+
anti oracle config set --min-test-duration MIN_TEST_HOURS --max-test-duration MAX_TEST_HOURS --agent-pkh PUBLIC_KEY_HASH
82
+
```
83
+
84
+
In this situation the oracle is acting like a user and so this request will end up in the Antithesis token as a request for change.
85
+
86
+
*Apply the token update command to commit the request to the Antithesis token*
87
+
88
+
This will end up in a fact and so anyone can inspect it with the `anti facts` command.
Copy file name to clipboardExpand all lines: cli/docs/requester-role.md
+94-10Lines changed: 94 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -16,37 +16,121 @@ Be careful that there is no imperativity here, so i.e. you cannot unregister a u
16
16
17
17
### Registering a user public key
18
18
19
-
To register yourself as a user, you can use the `anti requester register-user` command.
19
+
To register yourself as a user, you can use the `antij requester register-user` command.
20
20
21
21
```bash
22
-
anti requester register-user --platform github --username alice --pubkeyhash AAAAC3NzaC1lZDI1NTE5AAAAIO773JHqlyLm5XzOjSe+Q5yFJyLFuMLL6+n63t4t7HR8
22
+
antij requester register-user --platform github --username alice --pubkeyhash AAAAC3NzaC1lZDI1NTE5AAAAIO773JHqlyLm5XzOjSe+Q5yFJyLFuMLL6+n63t4t7HR8
23
23
```
24
24
25
25
As with all other requests, once submitted regularly you have to wait for the oracle to merge your request into the Antithesis token.
26
26
27
-
You can use the `anti token` command to inspect your pending requests in the Antithesis token.
27
+
You can use the `antij token` command to inspect your pending requests in the Antithesis token.
28
28
29
-
You can use the `anti facts` command to query the Antithesis token and see if your user is part of the facts.
29
+
You can use the `antij facts` command to query the Antithesis token and see if your user is part of the facts.
30
30
31
31
```bash
32
-
anti token | jq '.result.requests'"
32
+
antij token | jq '.result.requests'"
33
33
```
34
34
35
35
Until your requests is there, you cannot proceed with the next steps.
36
36
37
-
As with all requests to an mpfs you can retract your request using the `anti retract` command, anytime before the oracle merges it into the Antithesis token.
37
+
As with all requests to an mpfs you can retract your request using the `antij retract` command, anytime before the oracle merges it into the Antithesis token.
38
38
39
39
Get the `outputRefId` of your request from pending requests command output and use it to retract your request
40
40
41
41
```bash
42
-
anti retract -o 9ec36572e01bca9f7d32d791a5a6c529ef91c10d536f662735af26311b2c8766-0
ATM the oracle is not able to justify a request rejection. But anti cli will apply the oracle validation before submitting it, so rejections will be caught before submitting the request.
44
+
ATM the oracle is not able to justify a request rejection. But antij cli will apply the oracle validation before submitting it, so rejections will be caught before submitting the request.
45
45
46
46
### Unregistering a user public key
47
47
48
-
To unregister a user, you can use the `anti requester unregister-user` command.
48
+
To unregister a user, you can use the `antij requester unregister-user` command.
49
49
50
50
```bash
51
-
anti requester unregister-user --platform github --username alice --pubkeyhash AAAAC3NzaC1lZDI1NTE5AAAAIO773JHqlyLm5XzOjSe+Q5yFJyLFuMLL6+n63t4t7HR8
51
+
antij requester unregister-user --platform github --username alice --pubkeyhash AAAAC3NzaC1lZDI1NTE5AAAAIO773JHqlyLm5XzOjSe+Q5yFJyLFuMLL6+n63t4t7HR8
52
52
```
53
+
54
+
### Registering a role
55
+
56
+
This is necessary to register a user as a github repository antitheisis test requester.
57
+
58
+
Before you do this make sure your repository CODEOWNERS file contains a line like this:
59
+
60
+
```
61
+
antithesis: @your-github-username
62
+
```
63
+
64
+
You can have as many user as you want but registering them as test-run requesters has to be done one by one.
65
+
66
+
To register a role, you can use the `antij requester register-role` command.
67
+
68
+
```bash
69
+
antij requester register-role --platform github --username alice --repository yourorg/yourrepo
70
+
```
71
+
72
+
> Registering a role is not enough to gain rights to request test-runs. Your repository have to be white-listed by the agent. This requires you to get in contact with the agent and ask them to white-list your repository.
73
+
74
+
### Unregistering a role
75
+
76
+
```bash
77
+
antij requester unregister-role --platform github --username alice --repository yourorg/yourrepo
78
+
```
79
+
80
+
## Test-runs
81
+
82
+
83
+
### Setup
84
+
85
+
Once you are registered as a user and a role, you can request test-runs.
86
+
87
+
Before doing that make sure you have a commit in your repository containing a directory with "valid"test assets inside.
88
+
89
+
You can obtain a set of standard test assets by running the following command:
90
+
91
+
If you are in your repository directory, you can run:
0 commit comments