-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathtamarin-config-schema.json
More file actions
207 lines (207 loc) · 6.14 KB
/
tamarin-config-schema.json
File metadata and controls
207 lines (207 loc) · 6.14 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
{
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "https://github.com/tamarin-prover/batch-tamarin/tamarin-config-schema.json",
"title": "Batch Tamarin Configuration",
"description": "JSON schema for Tamarin prover automation configuration",
"type": "object",
"required": ["config", "tamarin_versions", "tasks"],
"properties": {
"config": {
"type": "object",
"description": "Global configuration settings",
"required": [
"global_max_cores",
"global_max_memory",
"default_timeout",
"output_directory"
],
"properties": {
"global_max_cores": {
"oneOf": [
{
"type": "integer",
"minimum": 1
},
{
"type": "string",
"enum": ["max"]
}
],
"description": "Maximum number of CPU cores available system-wide for all tasks (integer or 'max' for system maximum)"
},
"global_max_memory": {
"oneOf": [
{
"type": "integer",
"minimum": 1
},
{
"type": "string",
"enum": ["max"]
}
],
"description": "Maximum memory in GB available system-wide for all tasks (integer or 'max' for system maximum)"
},
"default_timeout": {
"type": "integer",
"minimum": 1,
"description": "Default timeout in seconds for tasks (used when task doesn't specify resources)"
},
"output_directory": {
"type": "string",
"description": "Base directory path for all output files"
}
},
"additionalProperties": false
},
"tamarin_versions": {
"type": "object",
"description": "Named aliases for different Tamarin prover executables",
"additionalProperties": {
"type": "object",
"required": ["path"],
"properties": {
"path": {
"type": "string",
"description": "File path to the Tamarin prover executable"
},
"version": {
"type": "string",
"description": "Version identifier for this Tamarin prover"
},
"test_success": {
"type": "boolean",
"description": "Whether this Tamarin executable passed connectivity tests"
}
},
"additionalProperties": false
}
},
"tasks": {
"type": "object",
"description": "Named tasks, each defining a Tamarin execution configuration",
"additionalProperties": {
"type": "object",
"required": ["theory_file", "tamarin_versions", "output_file_prefix"],
"properties": {
"theory_file": {
"type": "string",
"description": "Path to the .spthy theory file to analyze"
},
"tamarin_versions": {
"type": "array",
"description": "List of Tamarin version aliases to run this task on",
"items": {
"type": "string"
},
"minItems": 1,
"uniqueItems": true
},
"output_file_prefix": {
"type": "string",
"description": "Prefix for the output file, filled with _{lemma}_{tamarin-version}"
},
"lemmas": {
"type": "array",
"description": "List of lemmas to prove. If empty or omitted, all lemmas will be proved using --prove",
"items": {
"type": "object",
"required": ["name"],
"properties": {
"name": {
"type": "string",
"description": "Name of the lemma to prove"
},
"tamarin_versions": {
"type": "array",
"description": "List of Tamarin version aliases to run this lemma on. If not specified, inherits from task",
"items": {
"type": "string"
},
"minItems": 1,
"uniqueItems": true
},
"tamarin_options": {
"type": "array",
"description": "Additional command-line options to pass to Tamarin for this lemma. Overrides task-level options",
"items": {
"type": "string"
}
},
"preprocess_flags": {
"type": "array",
"description": "Preprocessor flags to pass to Tamarin using -D=flag format for this lemma. Overrides task-level flags",
"items": {
"type": "string"
}
},
"resources": {
"type": "object",
"description": "Resource allocation for this lemma. If not specified, inherits from task",
"properties": {
"max_cores": {
"type": "integer",
"minimum": 1,
"description": "Maximum CPU cores for this lemma"
},
"max_memory": {
"type": "integer",
"minimum": 1,
"description": "Maximum memory in GB for this lemma"
},
"timeout": {
"type": "integer",
"minimum": 1,
"description": "Timeout in seconds for this lemma"
}
},
"additionalProperties": false
}
},
"additionalProperties": false
}
},
"tamarin_options": {
"type": "array",
"description": "Additional command-line options to pass to Tamarin",
"items": {
"type": "string"
}
},
"preprocess_flags": {
"type": "array",
"description": "Preprocessor flags to pass to Tamarin using -D=flag format",
"items": {
"type": "string"
}
},
"resources": {
"type": "object",
"description": "Resource allocation for this task. If not specified, defaults to 4 cores, 8GB RAM, 3600s timeout",
"properties": {
"max_cores": {
"type": "integer",
"minimum": 1,
"description": "Maximum CPU cores for this task (default: 4)"
},
"max_memory": {
"type": "integer",
"minimum": 1,
"description": "Maximum memory in GB for this task (default: 8)"
},
"timeout": {
"type": "integer",
"minimum": 1,
"description": "Timeout in seconds for this task (default: default_timeout from config)"
}
},
"additionalProperties": false
}
},
"additionalProperties": false
}
}
}
},
"additionalProperties": false
}