-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathopenapi.yaml
More file actions
347 lines (347 loc) · 10.1 KB
/
Copy pathopenapi.yaml
File metadata and controls
347 lines (347 loc) · 10.1 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
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
openapi: 3.1.0
info:
title: MathEvidence Agent API
# Pinned Agent API release version (keep in sync with PROTOCOL_VERSION and agent/CHANGELOG.md).
version: 0.1.0
description: |
Operation-level tools for mathematical AI agents.
Does NOT expose arbitrary shell or code execution.
Theorem acceptance remains Lean-only via evidence checkers.
servers:
- url: http://127.0.0.1:8787
description: Local orchestration (not part of theorem TCB)
paths:
/v1/health:
get:
operationId: health
summary: Liveness probe
responses:
"200":
description: OK
content:
application/json:
schema:
type: object
required: [status, protocolVersion]
properties:
status:
type: string
const: ok
protocolVersion:
type: string
const: "0.1.0"
/v1/operations:
get:
operationId: list_operations
summary: List registered Agent API operations (no shell tools)
responses:
"200":
description: Operation catalog
content:
application/json:
schema:
type: object
required: [protocolVersion, operations]
properties:
protocolVersion:
type: string
operations:
type: array
items:
$ref: "#/components/schemas/OperationDescriptor"
/v1/capabilities:
get:
operationId: list_capabilities
summary: Discover registry capabilities
parameters:
- name: status
in: query
schema:
type: string
enum: [experimental, candidate, stable, deprecated]
- name: domain
in: query
schema:
type: string
responses:
"200":
description: Capability list
content:
application/json:
schema:
$ref: "./schemas/list-capabilities.output.schema.json"
/v1/check-support:
post:
operationId: check_support
summary: Check whether a capability/backend/claim combination is supported
requestBody:
required: true
content:
application/json:
schema:
$ref: "./schemas/check-support.input.schema.json"
responses:
"200":
description: Support decision
content:
application/json:
schema:
$ref: "./schemas/agent-result.schema.json"
/v1/compute:
post:
operationId: compute_evidence
summary: Invoke a named adapter compute (operation-level only)
requestBody:
required: true
content:
application/json:
schema:
$ref: "./schemas/compute-evidence.input.schema.json"
responses:
"200":
description: Candidate evidence + status (never Lean-certified from this API alone)
content:
application/json:
schema:
$ref: "./schemas/agent-result.schema.json"
/v1/bundles/open:
post:
operationId: open_bundle
summary: Load and summarize an EvidenceBundle by opaque bundleId
requestBody:
required: true
content:
application/json:
schema:
$ref: "./schemas/open-bundle.input.schema.json"
responses:
"200":
description: Bundle summary with epistemic resultStatus
content:
application/json:
schema:
$ref: "./schemas/agent-result.schema.json"
/v1/bundles/inspect:
post:
operationId: inspect_bundle
summary: Inspect an EvidenceBundle (alias of open_bundle; never closes goals)
requestBody:
required: true
content:
application/json:
schema:
$ref: "./schemas/open-bundle.input.schema.json"
responses:
"200":
description: Bundle summary
content:
application/json:
schema:
$ref: "./schemas/agent-result.schema.json"
/v1/bundles/replay:
post:
operationId: replay_bundle
summary: Offline schema+digest replay of an EvidenceBundle by bundleId
requestBody:
required: true
content:
application/json:
schema:
$ref: "./schemas/replay-bundle.input.schema.json"
responses:
"200":
description: Replay result
content:
application/json:
schema:
$ref: "./schemas/agent-result.schema.json"
/v1/ttp/build-proof-plan:
post:
operationId: build_proof_plan
summary: Trace-to-Plan build (returns unsupported without Lean ProofPlan)
requestBody:
required: true
content:
application/json:
schema:
$ref: "./schemas/ttp.input.schema.json"
responses:
"200":
description: Unsupported or rejected
content:
application/json:
schema:
$ref: "./schemas/agent-result.schema.json"
/v1/ttp/reconstruct-plan:
post:
operationId: reconstruct_plan
summary: Trace-to-Plan reconstruct (returns unsupported without Lean receipt)
requestBody:
required: true
content:
application/json:
schema:
$ref: "./schemas/ttp.input.schema.json"
responses:
"200":
description: Unsupported or rejected
content:
application/json:
schema:
$ref: "./schemas/agent-result.schema.json"
/v1/hypothesis/propose-conditions:
post:
operationId: propose_conditions
summary: Propose untrusted side conditions
requestBody:
required: true
content:
application/json:
schema:
$ref: "./schemas/hypothesis.input.schema.json"
responses:
"200":
description: Proposed conditions (never auto-inserted)
content:
application/json:
schema:
$ref: "./schemas/agent-result.schema.json"
/v1/hypothesis/prove-sufficient:
post:
operationId: prove_sufficient
summary: Sufficiency preview (Lean owns acceptance)
requestBody:
required: true
content:
application/json:
schema:
$ref: "./schemas/hypothesis.input.schema.json"
responses:
"200":
description: Sufficiency preview
content:
application/json:
schema:
$ref: "./schemas/agent-result.schema.json"
/v1/hypothesis/delete:
post:
operationId: delete_hypothesis
summary: Hypothesis deletion with redundancy justification preview
requestBody:
required: true
content:
application/json:
schema:
$ref: "./schemas/hypothesis.input.schema.json"
responses:
"200":
description: Deletion outcome
content:
application/json:
schema:
$ref: "./schemas/agent-result.schema.json"
/v1/hypothesis/find-counterexample:
post:
operationId: find_counterexample
summary: Bounded finite counterexample search
requestBody:
required: true
content:
application/json:
schema:
$ref: "./schemas/hypothesis.input.schema.json"
responses:
"200":
description: Untrusted witness candidate
content:
application/json:
schema:
$ref: "./schemas/agent-result.schema.json"
/v1/hypothesis/verify-counterexample:
post:
operationId: verify_counterexample
summary: Verify finite counterexample (Python mirror of Lean)
requestBody:
required: true
content:
application/json:
schema:
$ref: "./schemas/hypothesis.input.schema.json"
responses:
"200":
description: Verification result
content:
application/json:
schema:
$ref: "./schemas/agent-result.schema.json"
/v1/hypothesis/build-lattice:
post:
operationId: build_condition_lattice
summary: Build condition lattice artifact
requestBody:
required: true
content:
application/json:
schema:
$ref: "./schemas/hypothesis.input.schema.json"
responses:
"200":
description: Lattice artifact (claimsMinimal false by default)
content:
application/json:
schema:
$ref: "./schemas/agent-result.schema.json"
/v1/conjecture/campaign:
post:
operationId: conjecture_campaign
summary: Conjecture episode — candidates vs certified refutations only
requestBody:
required: true
content:
application/json:
schema:
$ref: "./schemas/hypothesis.input.schema.json"
responses:
"200":
description: Episode with state machine update
content:
application/json:
schema:
$ref: "./schemas/agent-result.schema.json"
components:
schemas:
OperationDescriptor:
type: object
additionalProperties: false
required:
- id
- summary
- inputSchema
- outputSchema
- claimClasses
- maxResourcePolicy
properties:
id:
type: string
summary:
type: string
inputSchema:
type: string
outputSchema:
type: string
claimClasses:
type: array
items:
type: string
maxResourcePolicy:
type: object
additionalProperties: false
properties:
maxWallTimeMs:
type: integer
maxOutputBytes:
type: integer
notes:
type: array
items:
type: string